sqllogictest
Artifact Content
Not logged in

Artifact 9f7f096f9846ce6ae1fd8a50d0d6775f072a140a:


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 # DIV for integer division: 
query I rowsort label-0
SELECT ALL - 25 DIV 11
----
-2

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL - 25 / 11
----
-2

query I rowsort
SELECT DISTINCT - 16 * + 7 AS col1
----
-112

query I rowsort
SELECT ALL - COALESCE ( - 21, 48 ) AS col2
----
21

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

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

query I rowsort
SELECT DISTINCT + 44 * 20 AS col0
----
880

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

query I rowsort
SELECT ALL - ( - 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT 82 * COUNT( * ) col0
----
82

skipif mysql # not compatible
query I rowsort label-7
SELECT 82 * COUNT ( * ) col0
----
82

query I rowsort
SELECT ALL + 53 * + 81 * 72
----
309096

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT ALL - 99 * + COALESCE ( + 98, - NULLIF ( 44, - ( 86 ) ) * + 42 + MIN( 26 ) * 42 )
----
-9702

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL - 99 * + COALESCE ( + 98, - NULLIF ( 44, - ( 86 ) ) * + 42 + MIN ( 26 ) * 42 )
----
-9702

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT ALL CASE + + ( 8 ) WHEN 45 THEN + 29 * - COUNT( * ) + + 4 * + 15 ELSE NULL END + SUM( DISTINCT 72 ) * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL CASE + + ( 8 ) WHEN 45 THEN + 29 * - COUNT ( * ) + + 4 * + 15 ELSE NULL END + SUM ( DISTINCT 72 ) * + 56
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT COALESCE ( - - COUNT( * ), - 3 - - 27, + 94 )
----
1

skipif mysql # not compatible
query I rowsort label-13
SELECT COALESCE ( - - COUNT ( * ), - 3 - - 27, + 94 )
----
1

query I rowsort
SELECT ALL + - 64 + + 63 AS col0
----
-1

query I rowsort
SELECT + 55 * 32 + - 34 * + 81
----
-994

query I rowsort
SELECT 73 - + 26 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT - NULLIF ( + NULLIF ( 75, 13 ), + 11 * - COUNT( * ) ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-17
SELECT - NULLIF ( + NULLIF ( 75, 13 ), + 11 * - COUNT ( * ) ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT - 6 + COUNT( * ) - - 86 * 33 col1
----
2833

skipif mysql # not compatible
query I rowsort label-18
SELECT - 6 + COUNT ( * ) - - 86 * 33 col1
----
2833

query I rowsort
SELECT DISTINCT ( - + 4 ) + 30
----
26

query I rowsort
SELECT ALL 81 * + 72 AS col1
----
5832

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

query I rowsort
SELECT DISTINCT - + 22 + 0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-23
SELECT DISTINCT CAST( NULL AS SIGNED ) + + NULLIF ( 42, 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + NULLIF ( 42, 17 )
----
NULL

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

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

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

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

query I rowsort
SELECT + 86 + 85 + 29 * - 10 AS col1
----
-119

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT ALL + ( - NULLIF ( + COUNT( * ), + 77 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-28
SELECT ALL + ( - NULLIF ( + COUNT ( * ), + 77 ) ) AS col1
----
-1

query I rowsort
SELECT 49 + - 62 + 92 AS col2
----
79

query I rowsort
SELECT + 14 * - + 98 * 15 col1
----
-20580

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT - ( + - SUM( DISTINCT + 66 ) ) + - 56 * 9 AS col1
----
-438

skipif mysql # not compatible
query I rowsort label-31
SELECT - ( + - SUM ( DISTINCT + 66 ) ) + - 56 * 9 AS col1
----
-438

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-32
SELECT - 36 + + - 53 DIV MIN( 60 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-32
SELECT - 36 + + - 53 / MIN ( 60 ) AS col2
----
-36

query I rowsort
SELECT ALL 6 - 32 * 25
----
-794

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT ALL - 20 * COALESCE ( COUNT( * ), - 55 + - COUNT( * ) ) * + ( - 22 )
----
440

skipif mysql # not compatible
query I rowsort label-34
SELECT ALL - 20 * COALESCE ( COUNT ( * ), - 55 + - COUNT ( * ) ) * + ( - 22 )
----
440

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

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

query I rowsort
SELECT DISTINCT 25 * + + 66 AS col2
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT ALL MAX( + + NULLIF ( + - CASE - 68 WHEN + 69 THEN NULL WHEN 81 + 70 * 76 THEN + 71 * - 96 WHEN 50 THEN NULL END, + 25 + + 98 ) ) * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL MAX ( + + NULLIF ( + - CASE - 68 WHEN + 69 THEN NULL WHEN 81 + 70 * 76 THEN + 71 * - 96 WHEN 50 THEN NULL END, + 25 + + 98 ) ) * - 79
----
NULL

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

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

query I rowsort
SELECT ALL 54 * COALESCE ( + 47, 12 ) * 25
----
63450

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT - COUNT( ALL - 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-40
SELECT - COUNT ( ALL - 57 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-41
SELECT DISTINCT 57, + 86 * - MIN( 67 ) * 27 + + 17 * + 69 col0
----
57
-154401

skipif mysql # not compatible
query II rowsort label-41
SELECT DISTINCT 57, + 86 * - MIN ( 67 ) * 27 + + 17 * + 69 col0
----
57
-154401

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT COUNT( ALL - 11 ) * - 98 - 14 - 11 AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-42
SELECT COUNT ( ALL - 11 ) * - 98 - 14 - 11 AS col0
----
-123

onlyif mysql # aggregate syntax: 
query II rowsort label-43
SELECT COUNT( * ), 28 AS col2
----
1
28

skipif mysql # not compatible
query II rowsort label-43
SELECT COUNT ( * ), 28 AS col2
----
1
28

onlyif mysql # aggregate syntax: 
query II rowsort label-44
SELECT COUNT( * ) AS col0, - COUNT( * ) + + - 43 + - 4
----
1
-48

skipif mysql # not compatible
query II rowsort label-44
SELECT COUNT ( * ) AS col0, - COUNT ( * ) + + - 43 + - 4
----
1
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-45
SELECT + 98 DIV - 70 - + + 10 col1
----
-11

skipif mysql # not compatible
query I rowsort label-45
SELECT + 98 / - 70 - + + 10 col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT 75 * 68 * - - 48 * + COUNT( * ) AS col0
----
244800

skipif mysql # not compatible
query I rowsort label-46
SELECT 75 * 68 * - - 48 * + COUNT ( * ) AS col0
----
244800

query I rowsort
SELECT DISTINCT - COALESCE ( 5, + - 30 + + 51 ) col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT SUM( DISTINCT + 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-48
SELECT SUM ( DISTINCT + 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT ALL - 62 * + + SUM( - 44 ) * + 84 + MAX( DISTINCT 62 )
----
229214

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL - 62 * + + SUM ( - 44 ) * + 84 + MAX ( DISTINCT 62 )
----
229214

query I rowsort
SELECT ALL + 79 * + 72 + - 86 + + 63 AS col1
----
5665

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

skipif mysql # not compatible
query I rowsort label-51
SELECT 31 * + + COUNT ( * ) - 83 AS col0
----
-52

query I rowsort
SELECT DISTINCT 34 * ( + 52 ) * 19 + 37 AS col0
----
33629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-53
SELECT - MIN( ALL + 69 ) * CAST( - 23 AS SIGNED ) - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-53
SELECT - MIN ( ALL + 69 ) * CAST ( - 23 AS INTEGER ) - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-55
SELECT + 88, + MAX( + 6 ) * 59 + 94 AS col2
----
88
448

skipif mysql # not compatible
query II rowsort label-55
SELECT + 88, + MAX ( + 6 ) * 59 + 94 AS col2
----
88
448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-56
SELECT ALL + 85 * MIN( + ( + CAST( 68 AS SIGNED ) ) ) + COUNT( * ) AS col2
----
5781

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL + 85 * MIN ( + ( + CAST ( 68 AS INTEGER ) ) ) + COUNT ( * ) AS col2
----
5781

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-57
SELECT NULLIF ( + 9, CAST( - 88 AS SIGNED ) ) col1
----
9

skipif mysql # not compatible
query I rowsort label-57
SELECT NULLIF ( + 9, CAST ( - 88 AS INTEGER ) ) col1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-58
SELECT + 8 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-58
SELECT + 8 / - 57
----
0

query I rowsort
SELECT - 53 * - 60 * + + 53 + - 31 * 25
----
167765

query I rowsort
SELECT ALL + - 36 * 75 col1
----
-2700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-61
SELECT - 91 + NULLIF ( ( + 36 ), + CAST( NULL AS SIGNED ) ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-61
SELECT - 91 + NULLIF ( ( + 36 ), + CAST ( NULL AS INTEGER ) ) AS col2
----
-55

query II rowsort
SELECT ALL + 75 AS col0, + 51 col0
----
75
51

query I rowsort
SELECT ALL + - 24 + - 88
----
-112

query I rowsort
SELECT DISTINCT + + 7 * - 83 AS col0
----
-581

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT DISTINCT - 23 - - + CASE + 80 WHEN 55 - - 98 * 70 THEN NULL WHEN 47 * + ( + COUNT( * ) ) THEN 66 END + NULLIF ( + 69, 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT - 23 - - + CASE + 80 WHEN 55 - - 98 * 70 THEN NULL WHEN 47 * + ( + COUNT ( * ) ) THEN 66 END + NULLIF ( + 69, 67 )
----
NULL

query II rowsort
SELECT DISTINCT 53 AS col0, 0
----
53
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-67
SELECT CASE 19 WHEN - CAST( NULL AS SIGNED ) * 85 + + 64 THEN + 28 WHEN 5 THEN ( 68 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-67
SELECT CASE 19 WHEN - CAST ( NULL AS INTEGER ) * 85 + + 64 THEN + 28 WHEN 5 THEN ( 68 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT DISTINCT 10 - + - COUNT( * ) + - 98 + 65 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT 10 - + - COUNT ( * ) + - 98 + 65 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT - + COUNT( DISTINCT CASE - + 94 WHEN + ( + 69 ) THEN NULL ELSE + 64 END ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-69
SELECT - + COUNT ( DISTINCT CASE - + 94 WHEN + ( + 69 ) THEN NULL ELSE + 64 END ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-70
SELECT + 36 * + 74 - 60 DIV - 89 + + 13 AS col2
----
2677

skipif mysql # not compatible
query I rowsort label-70
SELECT + 36 * + 74 - 60 / - 89 + + 13 AS col2
----
2677

query I rowsort
SELECT DISTINCT + 82 - - + 77 + + 17
----
176

query I rowsort
SELECT ALL - 24 * + - 96 AS col2
----
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT - SUM( ALL + NULLIF ( + + 12, 81 * + 89 + 84 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-73
SELECT - SUM ( ALL + NULLIF ( + + 12, 81 * + 89 + 84 ) )
----
-12

query II rowsort
SELECT - - 13 AS col0, + 65
----
13
65

query I rowsort
SELECT ALL COALESCE ( - 43, + 87, + 61 * - 19 )
----
-43

query I rowsort
SELECT DISTINCT - 80 * 54
----
-4320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-77
SELECT DISTINCT CAST( + - 68 AS SIGNED ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-77
SELECT DISTINCT CAST ( + - 68 AS INTEGER ) AS col0
----
-68

query I rowsort
SELECT + 90 + + - 45 * - - 37 AS col2
----
-1575

query I rowsort
SELECT DISTINCT - 16 * 67
----
-1072

query I rowsort
SELECT - 36 * + + 22
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT + NULLIF ( - + 67, + - MIN( ALL 14 ) ) * 45 AS col2
----
-3015

skipif mysql # not compatible
query I rowsort label-81
SELECT + NULLIF ( - + 67, + - MIN ( ALL 14 ) ) * 45 AS col2
----
-3015

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT - SUM( 0 ) + MAX( 45 )
----
45

skipif mysql # not compatible
query I rowsort label-82
SELECT - SUM ( 0 ) + MAX ( 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT - 30 + - COUNT( ALL - + 69 )
----
-31

skipif mysql # not compatible
query I rowsort label-83
SELECT - 30 + - COUNT ( ALL - + 69 )
----
-31

query I rowsort
SELECT + 36 - + 74 AS col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-85
SELECT ALL 0 DIV - MIN( - 47 )
----
0

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL 0 / - MIN ( - 47 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT + NULLIF ( + - 2, - 5 ) + + COUNT( * ) * CASE WHEN NULL >= ( 63 ) THEN + 26 ELSE 40 END col1
----
38

skipif mysql # not compatible
query I rowsort label-86
SELECT + NULLIF ( + - 2, - 5 ) + + COUNT ( * ) * CASE WHEN NULL >= ( 63 ) THEN + 26 ELSE 40 END col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-87
SELECT ALL + 35 DIV 32 + 53 * 81 col1
----
4294

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL + 35 / 32 + 53 * 81 col1
----
4294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-88
SELECT + 76 + 31 - - - COUNT( * ) / + 90 + CAST( NULL AS SIGNED ) / + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-88
SELECT + 76 + 31 - - - COUNT ( * ) / + 90 + CAST ( NULL AS INTEGER ) / + 55
----
NULL

query I rowsort
SELECT ALL 82 * + 33 * - 6 AS col1
----
-16236

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT ( - COALESCE ( 20, - - ( - 67 ) + MIN( ALL 69 ), MIN( + 86 ) ) ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-90
SELECT ( - COALESCE ( 20, - - ( - 67 ) + MIN ( ALL 69 ), MIN ( + 86 ) ) ) AS col0
----
-20

query I rowsort
SELECT DISTINCT 76 * - + 49 AS col2
----
-3724

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-93
SELECT + CASE - 24 WHEN 25 DIV - ( + COUNT( * ) ) + - 9 THEN 53 WHEN CAST( - 48 AS DECIMAL ) THEN NULL ELSE - 59 DIV 62 END * - 31 + - 93
----
-93

skipif mysql # not compatible
query I rowsort label-93
SELECT + CASE - 24 WHEN 25 / - ( + COUNT ( * ) ) + - 9 THEN 53 WHEN CAST ( - 48 AS REAL ) THEN NULL ELSE - 59 / 62 END * - 31 + - 93
----
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-94
SELECT + 16 * 96, - 69 * NULLIF ( + 33, 35 ) DIV 14 AS col1
----
1536
-162

skipif mysql # not compatible
query II rowsort label-94
SELECT + 16 * 96, - 69 * NULLIF ( + 33, 35 ) / 14 AS col1
----
1536
-162

query I rowsort
SELECT + + 24 + - + 93 + + + 68
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-97
SELECT - - NULLIF ( - COALESCE ( NULLIF ( CASE + 51 WHEN + 3 THEN 25 WHEN 23 THEN COALESCE ( MIN( ALL - CAST( 18 AS SIGNED ) ), 42 * 14, COUNT( * ), + 20 * 20 + + 0 ) / 31 + ( 2 ) ELSE COUNT( * ) END, COUNT( 93 ) ), - 78 - - 81 ), 32 * + 31 ) * 91 + CASE + SUM( ALL 7 ) WHEN 82 THEN - 83 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-97
SELECT - - NULLIF ( - COALESCE ( NULLIF ( CASE + 51 WHEN + 3 THEN 25 WHEN 23 THEN COALESCE ( MIN ( ALL - CAST ( 18 AS INTEGER ) ), 42 * 14, COUNT ( * ), + 20 * 20 + + 0 ) / 31 + ( 2 ) ELSE COUNT ( * ) END, COUNT ( 93 ) ), - 78 - - 81 ), 32 * + 31 ) * 91 + CASE + SUM ( ALL 7 ) WHEN 82 THEN - 83 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT DISTINCT + COUNT( * ) * COALESCE ( MIN( + + 43 ), + 43, - COUNT( * ) * 83 ) + + COUNT( * ) - 16 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-98
SELECT DISTINCT + COUNT ( * ) * COALESCE ( MIN ( + + 43 ), + 43, - COUNT ( * ) * 83 ) + + COUNT ( * ) - 16 AS col0
----
28

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

query I rowsort
SELECT + 99 * - 36 AS col2
----
-3564

onlyif mysql # DIV for integer division: 
query I rowsort label-101
SELECT + 8 + - + 6 DIV + 36 * + 51 + + 89 * 79 AS col1
----
7039

skipif mysql # not compatible
query I rowsort label-101
SELECT + 8 + - + 6 / + 36 * + 51 + + 89 * 79 AS col1
----
7039

query I rowsort
SELECT 39 * - 56 - + 87 AS col1
----
-2271

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT - + COUNT( * ) + + 37 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-103
SELECT - + COUNT ( * ) + + 37 AS col1
----
36

query I rowsort
SELECT DISTINCT + 68 * + 54 + - 35 - 57
----
3580

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT ALL + + COUNT( * ) * MAX( + - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL + + COUNT ( * ) * MAX ( + - 38 )
----
-38

query I rowsort
SELECT - - 48 * 56
----
2688

query I rowsort
SELECT DISTINCT 27 * - + 20
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT - 71 + + - NULLIF ( + - 59, - 73 / COUNT( * ) + + 68 ) + - 99 AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-108
SELECT - 71 + + - NULLIF ( + - 59, - 73 / COUNT ( * ) + + 68 ) + - 99 AS col1
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-109
SELECT - + COALESCE ( 64, + + 33, - + 18 * 53 ) - + 45 DIV - 10
----
-60

skipif mysql # not compatible
query I rowsort label-109
SELECT - + COALESCE ( 64, + + 33, - + 18 * 53 ) - + 45 / - 10
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT - SUM( + + 77 ) + + 67 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-110
SELECT - SUM ( + + 77 ) + + 67 AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-111
SELECT ALL ( SUM( + ( + CAST( NULL AS SIGNED ) ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-111
SELECT ALL ( SUM ( + ( + CAST ( NULL AS INTEGER ) ) ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 66 + + + 41 col1
----
107

query I rowsort
SELECT - NULLIF ( + 14, - + 36 ) * + 70 AS col1
----
-980

query I rowsort
SELECT + 36 + + 77
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-115
SELECT ALL CAST( + - ( + 97 ) AS SIGNED ) col1
----
-97

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL CAST ( + - ( + 97 ) AS INTEGER ) col1
----
-97

query I rowsort
SELECT DISTINCT + 85 + 79 AS col0
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-117
SELECT DISTINCT + 12 + + ( CAST( NULL AS SIGNED ) ) + + 28 + 55 * CASE + COUNT( * ) WHEN + 0 THEN + CASE 24 WHEN - 91 THEN 7 - + COUNT( * ) * - 58 ELSE - 66 END ELSE - 72 * 1 - 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-117
SELECT DISTINCT + 12 + + ( CAST ( NULL AS INTEGER ) ) + + 28 + 55 * CASE + COUNT ( * ) WHEN + 0 THEN + CASE 24 WHEN - 91 THEN 7 - + COUNT ( * ) * - 58 ELSE - 66 END ELSE - 72 * 1 - 69 END
----
NULL

query I rowsort
SELECT DISTINCT 36 + - 31
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-119
SELECT ALL SUM( ALL + CAST( NULL AS SIGNED ) ) + - 17 + - 29 * - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-119
SELECT ALL SUM ( ALL + CAST ( NULL AS INTEGER ) ) + - 17 + - 29 * - 76
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-120
SELECT ALL + 94 * CAST( + NULLIF ( + + 66, - COUNT( * ) ) AS SIGNED ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL + 94 * CAST ( + NULLIF ( + + 66, - COUNT ( * ) ) AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-121
SELECT ALL CAST( NULL AS SIGNED ), 26 * 60 AS col1
----
NULL
1560

skipif mysql # not compatible
query II rowsort label-121
SELECT ALL CAST ( NULL AS INTEGER ), 26 * 60 AS col1
----
NULL
1560

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-122
SELECT - NULLIF ( 60, CAST( - 71 AS DECIMAL ) * 5 + 19 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-122
SELECT - NULLIF ( 60, CAST ( - 71 AS REAL ) * 5 + 19 ) AS col1
----
-60

query I rowsort
SELECT DISTINCT - 22 + - 35 - + 56
----
-113

query I rowsort
SELECT ALL + 67 + 88 AS col0
----
155

query I rowsort
SELECT 81 * - 80 * + 28 AS col1
----
-181440

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT ALL - 4 + + 45 + - COUNT( * ) - + + NULLIF ( - + COUNT( DISTINCT + 4 ), - COALESCE ( - AVG ( 89 ), + 87 * 76 + 63 ) * 69 + + 94 )
----
41

skipif mysql # not compatible
query I rowsort label-126
SELECT ALL - 4 + + 45 + - COUNT ( * ) - + + NULLIF ( - + COUNT ( DISTINCT + 4 ), - COALESCE ( - AVG ( 89 ), + 87 * 76 + 63 ) * 69 + + 94 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT MIN( 93 ) * + 89 - 79
----
8198

skipif mysql # not compatible
query I rowsort label-127
SELECT MIN ( 93 ) * + 89 - 79
----
8198

onlyif mysql # DIV for integer division: 
query I rowsort label-128
SELECT DISTINCT ( 11 ) DIV - 38
----
0

skipif mysql # not compatible
query I rowsort label-128
SELECT DISTINCT ( 11 ) / - 38
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-129
SELECT ALL + 9 - - NULLIF ( - 0, + 14 * - COUNT( * ) ) + 25 * 98 DIV + ( 10 ) AS col2
----
254

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL + 9 - - NULLIF ( - 0, + 14 * - COUNT ( * ) ) + 25 * 98 / + ( 10 ) AS col2
----
254

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-130
SELECT - 17 DIV 48 DIV - 53, - MAX( + 59 ) * + 40 + 2 col0
----
0
-2358

skipif mysql # not compatible
query II rowsort label-130
SELECT - 17 / 48 / - 53, - MAX ( + 59 ) * + 40 + 2 col0
----
0
-2358

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT - 86 * 17 - NULLIF ( COUNT( * ), + + 61 ) + 11 - - 87 * - COUNT( * )
----
-1539

skipif mysql # not compatible
query I rowsort label-131
SELECT - 86 * 17 - NULLIF ( COUNT ( * ), + + 61 ) + 11 - - 87 * - COUNT ( * )
----
-1539

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT ALL 13 - - SUM( - 55 ) * 63 * 66 col2
----
-228677

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL 13 - - SUM ( - 55 ) * 63 * 66 col2
----
-228677

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT - 83 DIV 68 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-133
SELECT - 83 / 68 AS col1
----
-1

query I rowsort
SELECT ALL ( + 81 ) * + 4 * - 81
----
-26244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-135
SELECT COUNT( * ) + - - 89 DIV + ( - 22 )
----
-3

skipif mysql # not compatible
query I rowsort label-135
SELECT COUNT ( * ) + - - 89 / + ( - 22 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT + ( + 97 ) * 19 - + COUNT( * ) + + + COUNT( * ) AS col2
----
1843

skipif mysql # not compatible
query I rowsort label-136
SELECT + ( + 97 ) * 19 - + COUNT ( * ) + + + COUNT ( * ) AS col2
----
1843

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT ALL - 57 * + - NULLIF ( - + 75, - - 91 ) + + 52 + ( - COUNT( * ) )
----
-4224

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL - 57 * + - NULLIF ( - + 75, - - 91 ) + + 52 + ( - COUNT ( * ) )
----
-4224

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT CASE 15 WHEN + 63 THEN + + MIN( - 29 ) WHEN + 22 * + MIN( 53 ) THEN 78 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-138
SELECT CASE 15 WHEN + 63 THEN + + MIN ( - 29 ) WHEN + 22 * + MIN ( 53 ) THEN 78 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-139
SELECT 94 * - 50 + + 10 DIV + 3 + 25 + + COUNT( * )
----
-4671

skipif mysql # not compatible
query I rowsort label-139
SELECT 94 * - 50 + + 10 / + 3 + 25 + + COUNT ( * )
----
-4671

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

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

query I rowsort
SELECT + 33 * + 70 AS col2
----
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT ALL - CASE COALESCE ( - + 18, - - ( 36 ) ) WHEN 97 THEN NULL WHEN 48 THEN NULL ELSE MIN( ALL - 75 ) END
----
75

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL - CASE COALESCE ( - + 18, - - ( 36 ) ) WHEN 97 THEN NULL WHEN 48 THEN NULL ELSE MIN ( ALL - 75 ) END
----
75

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

skipif mysql # not compatible
query I rowsort label-143
SELECT DISTINCT - CAST ( + 45 AS INTEGER ) col1
----
-45

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-145
SELECT - COUNT( * ), NULLIF ( - 82, - ( + + MIN( ALL 81 ) ) + 41 * 6 ) AS col1
----
-1
-82

skipif mysql # not compatible
query II rowsort label-145
SELECT - COUNT ( * ), NULLIF ( - 82, - ( + + MIN ( ALL 81 ) ) + 41 * 6 ) AS col1
----
-1
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-146
SELECT MIN( DISTINCT 82 ) + + + 68 + + 79 DIV - COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-146
SELECT MIN ( DISTINCT 82 ) + + + 68 + + 79 / - COUNT ( * ) AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-147
SELECT 16 AS col0, - CAST( NULL AS SIGNED )
----
16
NULL

skipif mysql # not compatible
query II rowsort label-147
SELECT 16 AS col0, - CAST ( NULL AS INTEGER )
----
16
NULL

query I rowsort
SELECT ALL + 71 + - + NULLIF ( 30, + ( + + CASE 51 WHEN - 92 THEN NULL WHEN 40 THEN + 13 END ) ) * 50 AS col1
----
-1429

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-149
SELECT CAST( ( CASE + + 70 WHEN - + 7 THEN + ( - 35 ) + - ( 28 + - 31 ) * + 12 WHEN 83 THEN NULL END ) AS SIGNED ) + 79 / 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-149
SELECT CAST ( ( CASE + + 70 WHEN - + 7 THEN + ( - 35 ) + - ( 28 + - 31 ) * + 12 WHEN 83 THEN NULL END ) AS INTEGER ) + 79 / 85 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-150
SELECT CASE MIN( ALL + 19 ) WHEN + - 48 THEN - 54 + + + CAST( 2 AS SIGNED ) + - 39 END + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-150
SELECT CASE MIN ( ALL + 19 ) WHEN + - 48 THEN - 54 + + + CAST ( 2 AS INTEGER ) + - 39 END + 99 AS col1
----
NULL

query I rowsort
SELECT ALL + 98 + + 10 - + 79
----
29

query II rowsort
SELECT - 4 AS col2, COALESCE ( 91, - + ( - 11 ) ) AS col2
----
-4
91

query I rowsort
SELECT 91 - 10
----
81

query I rowsort
SELECT ALL 65 * 82 AS col0
----
5330

query I rowsort
SELECT DISTINCT 24 + + + 51 + - 96 * - 37 + + 51
----
3678

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

skipif mysql # not compatible
query I rowsort label-156
SELECT ALL - COUNT ( * ) / COUNT ( ALL + 44 ) AS col2
----
-1

query I rowsort
SELECT 81 + - + 45 * - COALESCE ( + 33, 71 )
----
1566

query I rowsort
SELECT 17 * + 29
----
493

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT 91 + + - COUNT( * ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-159
SELECT 91 + + - COUNT ( * ) AS col0
----
90

query I rowsort
SELECT 26 * 24 * - 17 AS col1
----
-10608

query I rowsort
SELECT 0 + - - 97 col2
----
97

query I rowsort
SELECT 36 - - 71 AS col2
----
107

query I rowsort
SELECT 16 * - 10 AS col0
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT ALL - COUNT( ALL 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-164
SELECT ALL - COUNT ( ALL 10 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-165
SELECT 37 DIV 70 + + 92 + + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-165
SELECT 37 / 70 + + 92 + + COUNT ( * )
----
93

query I rowsort
SELECT - 14 + - 25 + - 15
----
-54

query I rowsort
SELECT + 23 * + 69 * - 31
----
-49197

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

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

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

skipif mysql # not compatible
query I rowsort label-169
SELECT + - ( - + NULLIF ( + + COALESCE ( + COUNT ( * ), - 62 ), - - CAST ( NULL AS INTEGER ) ) )
----
1

query II rowsort
SELECT + 99 AS col1, + 94
----
99
94

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT 8 * + ( - - COUNT( * ) ) * 81 + 95 * 83 - 89 AS col2
----
8444

skipif mysql # not compatible
query I rowsort label-171
SELECT 8 * + ( - - COUNT ( * ) ) * 81 + 95 * 83 - 89 AS col2
----
8444

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-173
SELECT COUNT( * ) DIV + 68 + 14 + + 58
----
72

skipif mysql # not compatible
query I rowsort label-173
SELECT COUNT ( * ) / + 68 + 14 + + 58
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-174
SELECT - CAST( NULL AS SIGNED ) / 49 + - 27 + CASE WHEN NOT 32 BETWEEN - 37 + - 51 AND - ( + 3 ) / COUNT( * ) THEN NULL WHEN 80 + MAX( + ( 47 ) ) >= + 28 * 8 THEN + 29 + 81 ELSE NULL END - - 25 * + 34 * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-174
SELECT - CAST ( NULL AS INTEGER ) / 49 + - 27 + CASE WHEN NOT 32 BETWEEN - 37 + - 51 AND - ( + 3 ) / COUNT ( * ) THEN NULL WHEN 80 + MAX ( + ( 47 ) ) >= + 28 * 8 THEN + 29 + 81 ELSE NULL END - - 25 * + 34 * + COUNT ( * ) col0
----
NULL

query II rowsort
SELECT 77 AS col0, - 2
----
77
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-176
SELECT AVG ( + + CAST( NULL AS SIGNED ) ) * + ( 11 ), 0 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-176
SELECT AVG ( + + CAST ( NULL AS INTEGER ) ) * + ( 11 ), 0 AS col1
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-177
SELECT 19 DIV + 87 * + 62
----
0

skipif mysql # not compatible
query I rowsort label-177
SELECT 19 / + 87 * + 62
----
0

query II rowsort
SELECT ALL - 62 AS col0, - 35 AS col0
----
-62
-35

query II rowsort
SELECT ALL - 52 AS col1, 41 - - 27 AS col0
----
-52
68

query I rowsort
SELECT + - 81 * 7 + - 42
----
-609

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-181
SELECT 65 * + 35 + - - 88 + - ( - 5 ) + + - COUNT( * ) DIV + 37 * + 69 AS col2
----
2368

skipif mysql # not compatible
query I rowsort label-181
SELECT 65 * + 35 + - - 88 + - ( - 5 ) + + - COUNT ( * ) / + 37 * + 69 AS col2
----
2368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-182
SELECT ALL - 1 + - + 49 + + - 97 DIV + 94 + - 63 + - COUNT( * ) AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL - 1 + - + 49 + + - 97 / + 94 + - 63 + - COUNT ( * ) AS col1
----
-115

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

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

query I rowsort
SELECT + ( - + CASE WHEN NOT 31 BETWEEN - 60 AND 89 THEN 99 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-185
SELECT DISTINCT 60 + - CAST( + COUNT( * ) AS SIGNED ) + - + 43 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT 60 + - CAST ( + COUNT ( * ) AS INTEGER ) + - + 43 AS col1
----
16

query II rowsort
SELECT DISTINCT 30 * + 52 AS col2, 17
----
1560
17

query I rowsort
SELECT DISTINCT 24 + 50 AS col0
----
74

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

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

query I rowsort
SELECT - CASE + + 63 WHEN 93 * + ( - 61 ) THEN - 83 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT + 41 DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-191
SELECT + 41 / 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT DISTINCT 53 * COUNT( * ) * - ( + 71 ) * COUNT( * ) * + 99 + + - 9
----
-372546

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT 53 * COUNT ( * ) * - ( + 71 ) * COUNT ( * ) * + 99 + + - 9
----
-372546

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

onlyif mysql # aggregate syntax: 
query II rowsort label-194
SELECT DISTINCT SUM( - 99 ), 15 AS col2
----
-99
15

skipif mysql # not compatible
query II rowsort label-194
SELECT DISTINCT SUM ( - 99 ), 15 AS col2
----
-99
15

query I rowsort
SELECT ALL - 4 - ( - + 73 )
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-196
SELECT + 11 DIV - - 6 col1, + 5 AS col0
----
1
5

skipif mysql # not compatible
query II rowsort label-196
SELECT + 11 / - - 6 col1, + 5 AS col0
----
1
5

query II rowsort
SELECT DISTINCT 17 * ( + - 6 ) AS col2, + 67 - + + 12 AS col1
----
-102
55

query II rowsort
SELECT - 87 * 92 * + 63 AS col2, - 25 AS col1
----
-504252
-25

query I rowsort
SELECT DISTINCT ( - 13 ) * - 19 AS col1
----
247

query I rowsort
SELECT + - 1 - - 6 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT - COUNT( * ) * + 47 col1
----
-47

skipif mysql # not compatible
query I rowsort label-201
SELECT - COUNT ( * ) * + 47 col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-202
SELECT - + 38 * + CAST( 46 AS SIGNED )
----
-1748

skipif mysql # not compatible
query I rowsort label-202
SELECT - + 38 * + CAST ( 46 AS INTEGER )
----
-1748

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT + 14 * - 84 - - COUNT( * ) + - + 65 * 57
----
-4880

skipif mysql # not compatible
query I rowsort label-203
SELECT + 14 * - 84 - - COUNT ( * ) + - + 65 * 57
----
-4880

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

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

query II rowsort
SELECT DISTINCT - 8 * - + 47 AS col0, 62
----
376
62

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT - + 86 - - NULLIF ( 66, CASE - 16 WHEN + 86 THEN + + 39 + - COUNT( * ) ELSE COUNT( * ) END * - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-206
SELECT - + 86 - - NULLIF ( 66, CASE - 16 WHEN + 86 THEN + + 39 + - COUNT ( * ) ELSE COUNT ( * ) END * - 20 )
----
-20

query I rowsort
SELECT ALL - 75 * 57 + + 96 AS col0
----
-4179

query II rowsort
SELECT - - 69 * 69, - 11 AS col1
----
4761
-11

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

skipif mysql # not compatible
query I rowsort label-209
SELECT - 51 / + 53 + + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - 90 * - 70 AS col1
----
6300

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

skipif mysql # not compatible
query I rowsort label-211
SELECT + 78 - + CAST ( NULL AS INTEGER ) * + 72
----
NULL

query I rowsort
SELECT ALL 65 * - 38 + + + 85 AS col1
----
-2385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-213
SELECT COALESCE ( - - CAST( NULL AS SIGNED ), + 17 * + + 84, - 76 )
----
1428

skipif mysql # not compatible
query I rowsort label-213
SELECT COALESCE ( - - CAST ( NULL AS INTEGER ), + 17 * + + 84, - 76 )
----
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT DISTINCT 28 * + 41 + - COUNT( * ) AS col1
----
1147

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT 28 * + 41 + - COUNT ( * ) AS col1
----
1147

query I rowsort
SELECT - CASE - - 26 WHEN - 9 THEN NULL ELSE - 9 END * + 22 AS col0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT MIN( + 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-216
SELECT MIN ( + 51 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT ALL COUNT( * ) * - - 13 - - 63 * 2
----
139

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL COUNT ( * ) * - - 13 - - 63 * 2
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT ALL COUNT( * ) * COALESCE ( + COUNT( * ), - 55 ) * + - 81 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL COUNT ( * ) * COALESCE ( + COUNT ( * ), - 55 ) * + - 81 AS col1
----
-81

query II rowsort
SELECT - ( ( + 74 ) ) AS col2, COALESCE ( + - 52, - 15 ) AS col0
----
-74
-52

query I rowsort
SELECT ALL 12 * + 49 AS col1
----
588

query I rowsort
SELECT - 18 + + 3 AS col2
----
-15

query I rowsort
SELECT ALL 29 - + - 75 + + 75 AS col1
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT + 94 + - COUNT( * ) + - MAX( DISTINCT 85 )
----
8

skipif mysql # not compatible
query I rowsort label-223
SELECT + 94 + - COUNT ( * ) + - MAX ( DISTINCT 85 )
----
8

query I rowsort
SELECT - CASE - + 41 WHEN - 85 THEN - 34 + - 43 WHEN 56 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + 70 * - - 92
----
6440

query I rowsort
SELECT ALL 76 * ( + 1 ) AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-227
SELECT + AVG ( ALL - 20 ) + + COUNT( * ) + 6 + - COUNT( + + 79 ) + - ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-227
SELECT + AVG ( ALL - 20 ) + + COUNT ( * ) + 6 + - COUNT ( + + 79 ) + - ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

query II rowsort
SELECT ALL 81 col0, + 69 * + 69
----
81
4761

query I rowsort
SELECT + 40 + - + 67 + + - 0 * + + 64 AS col1
----
-27

query I rowsort
SELECT + 51 + 13
----
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-231
SELECT + 57 DIV NULLIF ( - + 93, + AVG ( ALL + CAST( - 8 AS SIGNED ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-231
SELECT + 57 / NULLIF ( - + 93, + AVG ( ALL + CAST ( - 8 AS INTEGER ) ) ) AS col2
----
0

query II rowsort
SELECT ALL 39 AS col2, - NULLIF ( ( - 44 ), + - 34 ) AS col0
----
39
44

onlyif mysql # aggregate syntax: 
query II rowsort label-233
SELECT ALL COUNT( DISTINCT 70 ) * + 63 AS col0, 43 AS col2
----
63
43

skipif mysql # not compatible
query II rowsort label-233
SELECT ALL COUNT ( DISTINCT 70 ) * + 63 AS col0, 43 AS col2
----
63
43

onlyif mysql # DIV for integer division: 
query I rowsort label-234
SELECT + 63 + + 55 DIV - 55
----
62

skipif mysql # not compatible
query I rowsort label-234
SELECT + 63 + + 55 / - 55
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-235
SELECT ALL - 70 * - - SUM( DISTINCT 10 ) col0, SUM( - + 88 ) AS col0
----
-700
-88

skipif mysql # not compatible
query II rowsort label-235
SELECT ALL - 70 * - - SUM ( DISTINCT 10 ) col0, SUM ( - + 88 ) AS col0
----
-700
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-236
SELECT + - 64 DIV + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-236
SELECT + - 64 / + 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT ALL - NULLIF ( MIN( DISTINCT - 28 ), - 46 + + + COUNT( * ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL - NULLIF ( MIN ( DISTINCT - 28 ), - 46 + + + COUNT ( * ) ) AS col0
----
28

query I rowsort
SELECT - + ( + 31 ) AS col2
----
-31

query I rowsort
SELECT DISTINCT - 79 + - - 83
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-240
SELECT DISTINCT - + 64 / + 38 / - ( - CAST( NULL AS SIGNED ) ) + + - 54 * + COUNT( * ) + + + MIN( ALL + CAST( - 0 AS SIGNED ) ) + 67 * - 68 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT - + 64 / + 38 / - ( - CAST ( NULL AS INTEGER ) ) + + - 54 * + COUNT ( * ) + + + MIN ( ALL + CAST ( - 0 AS INTEGER ) ) + 67 * - 68 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-241
SELECT - + 40 + 7 + - CASE - - 6 WHEN ( + 82 ) * + + 28 * - + CAST( NULL AS SIGNED ) * - 78 THEN NULL WHEN - 77 / COUNT( * ) THEN COUNT( * ) END * - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-241
SELECT - + 40 + 7 + - CASE - - 6 WHEN ( + 82 ) * + + 28 * - + CAST ( NULL AS INTEGER ) * - 78 THEN NULL WHEN - 77 / COUNT ( * ) THEN COUNT ( * ) END * - 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-242
SELECT ALL + COUNT( DISTINCT - 28 ) DIV + - 97 + - + 40
----
-40

skipif mysql # not compatible
query I rowsort label-242
SELECT ALL + COUNT ( DISTINCT - 28 ) / + - 97 + - + 40
----
-40

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

skipif mysql # not compatible
query II rowsort label-243
SELECT + 19 AS col2, COUNT ( * ) / + COUNT ( * )
----
19
1

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT + - 29 * - 50 + - MIN( 34 ) AS col0
----
1416

skipif mysql # not compatible
query I rowsort label-244
SELECT + - 29 * - 50 + - MIN ( 34 ) AS col0
----
1416

onlyif mysql # DIV for integer division: 
query I rowsort label-245
SELECT ALL - 65 DIV 23 * - - 35 * - 58 + + - 82 AS col2
----
3978

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL - 65 / 23 * - - 35 * - 58 + + - 82 AS col2
----
3978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-246
SELECT DISTINCT 66 / 95 + + 74 * + + 13 * - 71 / CAST( NULL AS SIGNED ) AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-246
SELECT DISTINCT 66 / 95 + + 74 * + + 13 * - 71 / CAST ( NULL AS INTEGER ) AS col2, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT - CASE COUNT( * ) WHEN - - ( + + 77 ) + + 73 + 77 / + ( 3 ) THEN 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-247
SELECT - CASE COUNT ( * ) WHEN - - ( + + 77 ) + + 73 + 77 / + ( 3 ) THEN 41 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-248
SELECT ALL + CAST( - - CASE MIN( DISTINCT - 28 ) WHEN + 44 THEN + + 47 WHEN 80 THEN CAST( NULL AS SIGNED ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL + CAST ( - - CASE MIN ( DISTINCT - 28 ) WHEN + 44 THEN + + 47 WHEN 80 THEN CAST ( NULL AS INTEGER ) END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT - COUNT( * ) * 96 + + SUM( ( - 52 ) ) + + 50 * + 33
----
1502

skipif mysql # not compatible
query I rowsort label-249
SELECT - COUNT ( * ) * 96 + + SUM ( ( - 52 ) ) + + 50 * + 33
----
1502

query I rowsort
SELECT 4 * 7 AS col2
----
28

query I rowsort
SELECT ALL - 49 * + + 98 AS col2
----
-4802

query I rowsort
SELECT CASE - 17 WHEN - 49 THEN - 42 END * 47
----
NULL

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

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

query I rowsort
SELECT 30 * 60 * - 13 AS col1
----
-23400

query I rowsort
SELECT DISTINCT - CASE + + 87 WHEN + 20 THEN - 65 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 32 * + 5 * 71 * + - ( 48 ) AS col2
----
-545280

onlyif mysql # DIV for integer division: 
query II rowsort label-257
SELECT ALL ( - 6 ) DIV + + 34 + + 81 AS col0, + 67 * - 91 + + 95 AS col2
----
81
-6002

skipif mysql # not compatible
query II rowsort label-257
SELECT ALL ( - 6 ) / + + 34 + + 81 AS col0, + 67 * - 91 + + 95 AS col2
----
81
-6002

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT 29 * + 67 * + + NULLIF ( - ( - COALESCE ( - 85, - COUNT( * ) + + 4 + + 62 ) ), - CASE COUNT( * ) WHEN - 21 THEN - 27 * 39 + + COALESCE ( 25, - 70 ) ELSE NULL END ) AS col2
----
-165155

skipif mysql # not compatible
query I rowsort label-258
SELECT 29 * + 67 * + + NULLIF ( - ( - COALESCE ( - 85, - COUNT ( * ) + + 4 + + 62 ) ), - CASE COUNT ( * ) WHEN - 21 THEN - 27 * 39 + + COALESCE ( 25, - 70 ) ELSE NULL END ) AS col2
----
-165155

query I rowsort
SELECT ALL 76 * 59
----
4484

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-260
SELECT 10 DIV COUNT( 53 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-260
SELECT 10 / COUNT ( 53 ) AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-261
SELECT ALL - 14 + - + 84 * - 6 - + 81 + COUNT( 13 ) DIV - 16 * - + 92 * - - 78 * ( 11 * - 45 ) + 17 * + 20 AS col0
----
749

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL - 14 + - + 84 * - 6 - + 81 + COUNT ( 13 ) / - 16 * - + 92 * - - 78 * ( 11 * - 45 ) + 17 * + 20 AS col0
----
749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-262
SELECT - 8 / + 67 + - + 9 * - AVG ( DISTINCT - + 2 ) * - 52 / + 39 + + - 17 * - CAST( NULL AS SIGNED ) * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-262
SELECT - 8 / + 67 + - + 9 * - AVG ( DISTINCT - + 2 ) * - 52 / + 39 + + - 17 * - CAST ( NULL AS INTEGER ) * 54
----
NULL

query II rowsort
SELECT DISTINCT 82 + - + 34 * + COALESCE ( 97, 76 ) AS col1, + 61 AS col2
----
-3216
61

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT ALL MAX( DISTINCT 22 )
----
22

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL MAX ( DISTINCT 22 )
----
22

query I rowsort
SELECT DISTINCT 9 + - 45 AS col0
----
-36

query I rowsort
SELECT ALL + 49 + + 14 AS col1
----
63

query I rowsort
SELECT - 41 + 73
----
32

query I rowsort
SELECT ALL 94 + 12 AS col0
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-269
SELECT COUNT( * ) DIV - - 58 + + - 40
----
-40

skipif mysql # not compatible
query I rowsort label-269
SELECT COUNT ( * ) / - - 58 + + - 40
----
-40

query I rowsort
SELECT DISTINCT + 64 * 56 * - - 21
----
75264

query I rowsort
SELECT + ( 17 ) + - 10 - + ( 7 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-272
SELECT ALL + 53 - + COUNT( * ) DIV + 5
----
53

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL + 53 - + COUNT ( * ) / + 5
----
53

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-274
SELECT 68 * + + CAST( NULL AS SIGNED ) * + ( - 95 ) - - - 10 + 3 * SUM( - ( + - 32 ) ) + + 99 * 57 * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-274
SELECT 68 * + + CAST ( NULL AS INTEGER ) * + ( - 95 ) - - - 10 + 3 * SUM ( - ( + - 32 ) ) + + 99 * 57 * 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT - 13 * - - COUNT( * ) * + + NULLIF ( + + 26, + - COUNT( * ) * - 4 + + - 63 - - CASE + - COUNT( * ) WHEN + + 86 THEN NULLIF ( 58, 66 * 47 ) END * 39 ) * + 96 - + ( 6 )
----
-32454

skipif mysql # not compatible
query I rowsort label-275
SELECT - 13 * - - COUNT ( * ) * + + NULLIF ( + + 26, + - COUNT ( * ) * - 4 + + - 63 - - CASE + - COUNT ( * ) WHEN + + 86 THEN NULLIF ( 58, 66 * 47 ) END * 39 ) * + 96 - + ( 6 )
----
-32454

query I rowsort
SELECT ( + - 2 ) * - CASE - 31 WHEN - 63 THEN + + 61 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-277
SELECT DISTINCT ( 81 ) DIV - - 37
----
2

skipif mysql # not compatible
query I rowsort label-277
SELECT DISTINCT ( 81 ) / - - 37
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-278
SELECT 30 DIV - ( 97 )
----
0

skipif mysql # not compatible
query I rowsort label-278
SELECT 30 / - ( 97 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT ALL - COUNT( - 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL - COUNT ( - 8 )
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-281
SELECT DISTINCT + COUNT( ALL 61 ) * - 22 AS col0, + CAST( NULL AS DECIMAL )
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-281
SELECT DISTINCT + COUNT ( ALL 61 ) * - 22 AS col0, + CAST ( NULL AS REAL )
----
-22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT ALL - MIN( - ( + + NULLIF ( + 16, + 60 ) ) ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL - MIN ( - ( + + NULLIF ( + 16, + 60 ) ) ) AS col2
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-283
SELECT DISTINCT + ( + + COUNT( * ) ) * - 84 DIV 16 * COUNT( * ) + - 45 - + 25 * - COUNT( * ) + + 17 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT + ( + + COUNT ( * ) ) * - 84 / 16 * COUNT ( * ) + - 45 - + 25 * - COUNT ( * ) + + 17 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT ALL - COUNT( * ) + - 3 - - + 44
----
40

skipif mysql # not compatible
query I rowsort label-284
SELECT ALL - COUNT ( * ) + - 3 - - + 44
----
40

query I rowsort
SELECT 25 + + 79 AS col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT MAX( + - 75 ) - + 90
----
-165

skipif mysql # not compatible
query I rowsort label-286
SELECT MAX ( + - 75 ) - + 90
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT 35 + - MAX( DISTINCT + - 67 ) AS col2
----
102

skipif mysql # not compatible
query I rowsort label-287
SELECT 35 + - MAX ( DISTINCT + - 67 ) AS col2
----
102

query I rowsort
SELECT ALL - 10 + + 98
----
88

query II rowsort
SELECT ( - + 95 ) + 29, + CASE - 47 WHEN + 0 THEN + + 33 ELSE NULL END AS col2
----
-66
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-290
SELECT DISTINCT - - 49 + ( - + 9 ), - NULLIF ( + 16, - CAST( + + 6 AS SIGNED ) ) AS col2
----
40
-16

skipif mysql # not compatible
query II rowsort label-290
SELECT DISTINCT - - 49 + ( - + 9 ), - NULLIF ( + 16, - CAST ( + + 6 AS INTEGER ) ) AS col2
----
40
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-291
SELECT + NULLIF ( - 82, ( - 61 ) / - 83 - - CAST( - 61 AS SIGNED ) * - - 89 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-291
SELECT + NULLIF ( - 82, ( - 61 ) / - 83 - - CAST ( - 61 AS INTEGER ) * - - 89 ) AS col2
----
-82

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

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

query I rowsort
SELECT 73 * + 79
----
5767

query II rowsort
SELECT - 36 AS col1, 57 * - 50 + - 79 AS col2
----
-36
-2929

onlyif mysql # aggregate syntax: 
query II rowsort label-295
SELECT ALL + + 24 + - COUNT( - 36 ) AS col2, 95 + - COUNT( 97 ) + - + 29
----
23
65

skipif mysql # not compatible
query II rowsort label-295
SELECT ALL + + 24 + - COUNT ( - 36 ) AS col2, 95 + - COUNT ( 97 ) + - + 29
----
23
65

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

skipif mysql # not compatible
query I rowsort label-296
SELECT + CAST ( NULL AS INTEGER ) + + - 68 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL - NULLIF ( - 99, 46 * + 64 + + 29 ) * - 89 - + + 74 AS col2
----
-8885

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-299
SELECT + COALESCE ( - 85, - 19 * + - 37 + - - 21 + - + SUM( ALL COALESCE ( + 0, + 63 - + ( + 67 ), - 95 DIV 70 ) ) ) + 62 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-299
SELECT + COALESCE ( - 85, - 19 * + - 37 + - - 21 + - + SUM ( ALL COALESCE ( + 0, + 63 - + ( + 67 ), - 95 / 70 ) ) ) + 62 AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-300
SELECT DISTINCT + 24 - COUNT( * ) DIV + - 43 * + 98 - + CAST( 9 AS SIGNED ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-300
SELECT DISTINCT + 24 - COUNT ( * ) / + - 43 * + 98 - + CAST ( 9 AS INTEGER ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT DISTINCT + - MAX( ALL - + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT + - MAX ( ALL - + 82 )
----
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-302
SELECT - CAST( NULL AS DECIMAL ) * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-302
SELECT - CAST ( NULL AS REAL ) * + 57
----
NULL

query I rowsort
SELECT + 31 * 76
----
2356

onlyif mysql # aggregate syntax: 
query II rowsort label-304
SELECT + COUNT( * ) * - - 14 + 47 * 45 AS col2, - MAX( + 53 ) col1
----
2129
-53

skipif mysql # not compatible
query II rowsort label-304
SELECT + COUNT ( * ) * - - 14 + 47 * 45 AS col2, - MAX ( + 53 ) col1
----
2129
-53

query I rowsort
SELECT + NULLIF ( 66, + + AVG ( + ( + 54 ) ) * 8 - + ( - - 52 ) ) AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-306
SELECT ALL 6 * - 91, - 84 + 82 + + CAST( + 99 AS SIGNED ) AS col0
----
-546
97

skipif mysql # not compatible
query II rowsort label-306
SELECT ALL 6 * - 91, - 84 + 82 + + CAST ( + 99 AS INTEGER ) AS col0
----
-546
97

query I rowsort
SELECT - ( 51 ) * - + 52 + - 78 - 46 AS col2
----
2528

query I rowsort
SELECT + NULLIF ( - 33, - COALESCE ( + + 2, - + 87 ) ) col1
----
-33

query I rowsort
SELECT ALL 53 * - - 78 AS col2
----
4134

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

skipif mysql # not compatible
query I rowsort label-310
SELECT DISTINCT - 90 * - COUNT ( * ) / + COUNT ( * ) + - + COUNT ( * )
----
89

query I rowsort
SELECT ALL - 57 * 24 + + 86 + - 52 + + - 33 AS col1
----
-1367

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT ALL - SUM( + 79 ) * - COUNT( * ) + + 95 * COUNT( * ) * 4 AS col2
----
459

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL - SUM ( + 79 ) * - COUNT ( * ) + + 95 * COUNT ( * ) * 4 AS col2
----
459

query I rowsort
SELECT - 34 + + 99 + 77 AS col1
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-314
SELECT DISTINCT 40 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-314
SELECT DISTINCT 40 / 85
----
0

query I rowsort
SELECT + 5 * - + 54
----
-270

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

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

query I rowsort
SELECT DISTINCT + 69 + + 45 AS col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT ALL - 15 + COUNT( * ) + + 91
----
77

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL - 15 + COUNT ( * ) + + 91
----
77

query II rowsort
SELECT - ( + 34 ) AS col1, + 2 + - 85 * 49 * + + 39 AS col2
----
-34
-162433

query I rowsort
SELECT ALL + + 76 + 21 * - 15
----
-239

query I rowsort
SELECT - - 2 * + - 28
----
-56

query II rowsort
SELECT - 19, - 56 AS col0
----
-19
-56

query II rowsort
SELECT DISTINCT + 82, 68 col1
----
82
68

query I rowsort
SELECT ALL + 47 + + 10
----
57

query I rowsort
SELECT + 18 - + - 67
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-326
SELECT - 87 AS col2, 15 - - COUNT( * )
----
-87
16

skipif mysql # not compatible
query II rowsort label-326
SELECT - 87 AS col2, 15 - - COUNT ( * )
----
-87
16

onlyif mysql # DIV for integer division: 
query II rowsort label-327
SELECT ALL 98, + 27 DIV - + 18 AS col1
----
98
-1

skipif mysql # not compatible
query II rowsort label-327
SELECT ALL 98, + 27 / - + 18 AS col1
----
98
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT ALL + - 96 - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL + - 96 - COUNT ( * )
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-329
SELECT ALL - 31 DIV + 23 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL - 31 / + 23 AS col1
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-331
SELECT DISTINCT - COALESCE ( - 35, - 30 ) / COUNT( * ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-331
SELECT DISTINCT - COALESCE ( - 35, - 30 ) / COUNT ( * ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-332
SELECT ALL - - COALESCE ( - - 2, - 21 + - - 44 * - 25 * + ( + - 60 ) ) / 75 * + - 28 / - CASE - + COUNT( * ) WHEN - 17 THEN NULL ELSE ( CAST( NULL AS SIGNED ) ) + + CAST( 91 AS SIGNED ) END * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL - - COALESCE ( - - 2, - 21 + - - 44 * - 25 * + ( + - 60 ) ) / 75 * + - 28 / - CASE - + COUNT ( * ) WHEN - 17 THEN NULL ELSE ( CAST ( NULL AS INTEGER ) ) + + CAST ( 91 AS INTEGER ) END * 1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-333
SELECT - 17 DIV - MIN( ALL 56 ) * + 54 + + - 71 * + - 87 col1
----
6177

skipif mysql # not compatible
query I rowsort label-333
SELECT - 17 / - MIN ( ALL 56 ) * + 54 + + - 71 * + - 87 col1
----
6177

query I rowsort
SELECT - 61 + - 67 AS col0
----
-128

query I rowsort
SELECT ALL + 18 * 63 AS col2
----
1134

query I rowsort
SELECT - 19 * - - 52 * - 86 AS col2
----
84968

onlyif mysql # DIV for integer division: 
query I rowsort label-337
SELECT 27 DIV 32 + - + 35 * + 36 AS col0
----
-1260

skipif mysql # not compatible
query I rowsort label-337
SELECT 27 / 32 + - + 35 * + 36 AS col0
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT ALL - MAX( ALL 60 ) * + 68 + - - 13
----
-4067

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL - MAX ( ALL 60 ) * + 68 + - - 13
----
-4067

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-339
SELECT DISTINCT - COUNT( * ) DIV - - COUNT( * ) + 12 * + 65 * - COUNT( * ) * - - COUNT( ALL + 10 ) - - 35 AS col1
----
-746

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT - COUNT ( * ) / - - COUNT ( * ) + 12 * + 65 * - COUNT ( * ) * - - COUNT ( ALL + 10 ) - - 35 AS col1
----
-746

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-340
SELECT DISTINCT - 46 DIV + 28 + COUNT( * ) + 20 * 72 DIV 50
----
28

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT - 46 / + 28 + COUNT ( * ) + 20 * 72 / 50
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT ALL - 29 * - MAX( DISTINCT 28 ) + + 32 * - 40
----
-468

skipif mysql # not compatible
query I rowsort label-341
SELECT ALL - 29 * - MAX ( DISTINCT 28 ) + + 32 * - 40
----
-468

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-344
SELECT + 5 DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-344
SELECT + 5 / - 91
----
0

query I rowsort
SELECT ALL + 52 * + ( - + 51 ) + + 1 + + 38 + + + 41
----
-2572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-346
SELECT CASE - 12 WHEN - NULLIF ( - CAST( + ( - + 4 ) AS SIGNED ), - 61 - - + ( + MIN( ALL 20 ) ) ) * - - 84 * - - 84 * 40 THEN + 16 WHEN ( 2 ) THEN + 72 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-346
SELECT CASE - 12 WHEN - NULLIF ( - CAST ( + ( - + 4 ) AS INTEGER ), - 61 - - + ( + MIN ( ALL 20 ) ) ) * - - 84 * - - 84 * 40 THEN + 16 WHEN ( 2 ) THEN + 72 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-347
SELECT + 75 DIV + 1
----
75

skipif mysql # not compatible
query I rowsort label-347
SELECT + 75 / + 1
----
75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-349
SELECT - 89 + CAST( + + 91 AS SIGNED ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-349
SELECT - 89 + CAST ( + + 91 AS INTEGER ) AS col2
----
2

query I rowsort
SELECT + - 87 * + 47
----
-4089

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT + 36 * + + COUNT( * ) + - 67
----
-31

skipif mysql # not compatible
query I rowsort label-351
SELECT + 36 * + + COUNT ( * ) + - 67
----
-31

query I rowsort
SELECT + 16 + - 37 * 51 AS col0
----
-1871

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT + COUNT( * ) + + - ( + 63 )
----
-62

skipif mysql # not compatible
query I rowsort label-353
SELECT + COUNT ( * ) + + - ( + 63 )
----
-62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT + COUNT( * ) + + - 51 * 83 * + 0
----
1

skipif mysql # not compatible
query I rowsort label-355
SELECT + COUNT ( * ) + + - 51 * 83 * + 0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT ALL - COUNT( 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL - COUNT ( 35 )
----
-1

query I rowsort
SELECT + + 30 + + + 35
----
65

query I rowsort
SELECT 71 + + + 95 + + 27 * + 17
----
625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-359
SELECT ALL - + 81 * CAST( NULL AS SIGNED ) + + ( + - 71 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL - + 81 * CAST ( NULL AS INTEGER ) + + ( + - 71 ) AS col0
----
NULL

query I rowsort
SELECT + 79 + + 9 * + - 89 AS col2
----
-722

query I rowsort
SELECT ALL COALESCE ( + 64, 5 ) * - - ( + + COALESCE ( - 96, - - 63 + + - 70 ) ) AS col1
----
-6144

query I rowsort
SELECT - 19 * + ( 98 )
----
-1862

query I rowsort
SELECT 48 * + 0 AS col2
----
0

query II rowsort
SELECT - 93 + + - 10 AS col1, + 87 * 94 - 87 AS col2
----
-103
8091

query I rowsort
SELECT DISTINCT - 42 * + 3 - - 6 * + 31 AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-366
SELECT 9 + + 17 + - 21 DIV + 63 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-366
SELECT 9 + + 17 + - 21 / + 63 AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-367
SELECT 40 + - - COUNT( - 41 ) col0, - 7 AS col1
----
41
-7

skipif mysql # not compatible
query II rowsort label-367
SELECT 40 + - - COUNT ( - 41 ) col0, - 7 AS col1
----
41
-7

query I rowsort
SELECT 27 * - ( 20 ) + 85
----
-455

query I rowsort
SELECT DISTINCT - 92 + - 16
----
-108

query I rowsort
SELECT 13 * - 54 * - ( + - 7 ) AS col0
----
-4914

query I rowsort
SELECT ALL - 32 + - + 84
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT ALL + 59 + + 41 - + 5 * + 84 * + - 73 + - 75 + + 56 - - MAX( + 79 ) AS col1
----
30820

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL + 59 + + 41 - + 5 * + 84 * + - 73 + - 75 + + 56 - - MAX ( + 79 ) AS col1
----
30820

query II rowsort
SELECT ALL - 90, + 32 AS col0
----
-90
32

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT COUNT( ALL + 8 ) * 89 - - + 68
----
157

skipif mysql # not compatible
query I rowsort label-374
SELECT COUNT ( ALL + 8 ) * 89 - - + 68
----
157

query II rowsort
SELECT 19 AS col2, - 50 AS col0
----
19
-50

query I rowsort
SELECT DISTINCT + 15 + 36 AS col0
----
51

query I rowsort
SELECT DISTINCT + 42 * - 55
----
-2310

query I rowsort
SELECT DISTINCT - 70 * - + 91 col1
----
6370

query I rowsort
SELECT 64 * 38 col2
----
2432

onlyif mysql # aggregate syntax: 
query II rowsort label-380
SELECT MAX( DISTINCT + + 49 ) * 82 * - 21 - - 64 + + - 3 * - - ( + 5 ), + 85 AS col2
----
-84329
85

skipif mysql # not compatible
query II rowsort label-380
SELECT MAX ( DISTINCT + + 49 ) * 82 * - 21 - - 64 + + - 3 * - - ( + 5 ), + 85 AS col2
----
-84329
85

query I rowsort
SELECT ALL - 52 - 95
----
-147

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

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

query I rowsort
SELECT + CASE 63 WHEN - 30 + - 51 THEN + ( - COALESCE ( - + 24, 11 ) ) * - 98 - - ( - - 61 ) WHEN - 92 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT DISTINCT COUNT( * ) * + + 27 * 97
----
2619

skipif mysql # not compatible
query I rowsort label-384
SELECT DISTINCT COUNT ( * ) * + + 27 * 97
----
2619

query II rowsort
SELECT + 22 AS col0, - 63
----
22
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-386
SELECT DISTINCT - COUNT( * ) AS col0, 75 * - 33 * + 25 + - 59 DIV + ( + 46 ) * - - COUNT( * ) + - - COUNT( * ) AS col1
----
-1
-61875

skipif mysql # not compatible
query II rowsort label-386
SELECT DISTINCT - COUNT ( * ) AS col0, 75 * - 33 * + 25 + - 59 / + ( + 46 ) * - - COUNT ( * ) + - - COUNT ( * ) AS col1
----
-1
-61875

query I rowsort
SELECT 86 * - 84 AS col1
----
-7224

query I rowsort
SELECT ALL 33 * - 86
----
-2838

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

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

query II rowsort
SELECT - 61 AS col1, - 62 AS col0
----
-61
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT + 16 - + COUNT( * ) + 81 + 42
----
138

skipif mysql # not compatible
query I rowsort label-391
SELECT + 16 - + COUNT ( * ) + 81 + 42
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-392
SELECT - 91 DIV + 33 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-392
SELECT - 91 / + 33 AS col0
----
-2

query I rowsort
SELECT ALL 60 + + 52
----
112

query I rowsort
SELECT 65 * + 53 AS col1
----
3445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-395
SELECT MIN( DISTINCT - 29 ) DIV COALESCE ( 1, COUNT( - 86 ), - COUNT( * ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-395
SELECT MIN ( DISTINCT - 29 ) / COALESCE ( 1, COUNT ( - 86 ), - COUNT ( * ) ) AS col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-396
SELECT ( + - 46 ) - - 72 / + 50 - - + CAST( NULL AS SIGNED ) + - 18 * - 42 * - 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-396
SELECT ( + - 46 ) - - 72 / + 50 - - + CAST ( NULL AS INTEGER ) + - 18 * - 42 * - 27 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-397
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - NULLIF ( - COUNT( * ), 86 + COUNT( ALL 75 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - NULLIF ( - COUNT ( * ), 86 + COUNT ( ALL 75 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 55 * 34 AS col1
----
-1870

query I rowsort
SELECT ALL ( - 90 ) + ( + - 18 ) * 23
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT DISTINCT SUM( 66 ) * 53 + - + COUNT( * ) + - - 82 AS col0
----
3579

skipif mysql # not compatible
query I rowsort label-400
SELECT DISTINCT SUM ( 66 ) * 53 + - + COUNT ( * ) + - - 82 AS col0
----
3579

onlyif mysql # aggregate syntax: 
query II rowsort label-401
SELECT COUNT( * ) + + - 84 col2, - 7 AS col2
----
-83
-7

skipif mysql # not compatible
query II rowsort label-401
SELECT COUNT ( * ) + + - 84 col2, - 7 AS col2
----
-83
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT ALL 82 + - COUNT( * ) - - 16 + + 90
----
187

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL 82 + - COUNT ( * ) - - 16 + + 90
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT COALESCE ( + - COUNT( * ), COUNT( * ) ) + MAX( - 88 )
----
-89

skipif mysql # not compatible
query I rowsort label-403
SELECT COALESCE ( + - COUNT ( * ), COUNT ( * ) ) + MAX ( - 88 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT + MIN( DISTINCT + ( + + 91 ) ) col1
----
91

skipif mysql # not compatible
query I rowsort label-404
SELECT + MIN ( DISTINCT + ( + + 91 ) ) col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-405
SELECT ALL CASE + 81 WHEN 44 / - 20 + + COUNT( * ) + + 11 THEN NULL WHEN + 29 THEN CAST( NULL AS SIGNED ) ELSE - 7 END * + ( 38 ) + - - CASE - MIN( ALL - - 75 ) WHEN CAST( 38 AS SIGNED ) + 15 * + 34 THEN 13 ELSE 17 + 90 * - 24 END * + ( 8 ) AS col2
----
-17410

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL CASE + 81 WHEN 44 / - 20 + + COUNT ( * ) + + 11 THEN NULL WHEN + 29 THEN CAST ( NULL AS INTEGER ) ELSE - 7 END * + ( 38 ) + - - CASE - MIN ( ALL - - 75 ) WHEN CAST ( 38 AS INTEGER ) + 15 * + 34 THEN 13 ELSE 17 + 90 * - 24 END * + ( 8 ) AS col2
----
-17410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-406
SELECT DISTINCT - NULLIF ( - - CAST( - 80 AS SIGNED ), + 51 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT - NULLIF ( - - CAST ( - 80 AS INTEGER ), + 51 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-407
SELECT MAX( - 96 ) AS col2, 94 AS col2
----
-96
94

skipif mysql # not compatible
query II rowsort label-407
SELECT MAX ( - 96 ) AS col2, 94 AS col2
----
-96
94

onlyif mysql # DIV for integer division: 
query I rowsort label-408
SELECT 20 DIV + - 51 - 6
----
-6

skipif mysql # not compatible
query I rowsort label-408
SELECT 20 / + - 51 - 6
----
-6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-409
SELECT CAST( + 56 AS SIGNED ) DIV - 50
----
-1

skipif mysql # not compatible
query I rowsort label-409
SELECT CAST ( + 56 AS INTEGER ) / - 50
----
-1

query I rowsort
SELECT ALL + 93 * - 48 * - 4
----
17856

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

skipif mysql # not compatible
query I rowsort label-411
SELECT - CAST ( NULL AS INTEGER ) * - 99 AS col0
----
NULL

query II rowsort
SELECT - 34 - + - 66 AS col2, + 54
----
32
54

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT ALL + 8 * - 23 - COUNT( * ) * + MAX( + 33 ) AS col2
----
-217

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL + 8 * - 23 - COUNT ( * ) * + MAX ( + 33 ) AS col2
----
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT COUNT( * ) * + 87 + 78 + COUNT( * ) - - 59 * + + ( 24 ) AS col0
----
1582

skipif mysql # not compatible
query I rowsort label-414
SELECT COUNT ( * ) * + 87 + 78 + COUNT ( * ) - - 59 * + + ( 24 ) AS col0
----
1582

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-415
SELECT + - 64 * - SUM( 43 ) * - - 81 * 46 - - 75 DIV - ( + + 30 ) + - + ( - - 22 ) col1
----
10253928

skipif mysql # not compatible
query I rowsort label-415
SELECT + - 64 * - SUM ( 43 ) * - - 81 * 46 - - 75 / - ( + + 30 ) + - + ( - - 22 ) col1
----
10253928

query I rowsort
SELECT - - 78 + + 99 AS col2
----
177

query I rowsort
SELECT ( - + 73 ) * + 92 - + - 40 * ( - - 73 )
----
-3796

query I rowsort
SELECT - + 3 + + - 17 + - COALESCE ( - 47, 18, 41 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT ALL CASE WHEN NOT NULL BETWEEN NULL AND COUNT( * ) THEN - - 46 * 93 + + 22 END + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL CASE WHEN NOT NULL BETWEEN NULL AND COUNT ( * ) THEN - - 46 * 93 + + 22 END + - 73
----
NULL

query II rowsort
SELECT ALL - 23 + - - 35 AS col0, 6 * - 69
----
12
-414

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT + 64 + - - MAX( - - 96 )
----
160

skipif mysql # not compatible
query I rowsort label-421
SELECT + 64 + - - MAX ( - - 96 )
----
160

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-423
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * + COUNT( * ) + + - 82 - 60 + + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) + + - 82 - 60 + + + 98
----
NULL

query I rowsort
SELECT - 12 * + 20
----
-240

query I rowsort
SELECT + 89 * 31
----
2759

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

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

query I rowsort
SELECT ALL 76 - + 1 + - 47
----
28

query I rowsort
SELECT + 82 * - NULLIF ( - 50, - 66 ) AS col1
----
4100

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT + COUNT( * ) * + + 15 * - + MIN( ALL - 15 )
----
225

skipif mysql # not compatible
query I rowsort label-431
SELECT + COUNT ( * ) * + + 15 * - + MIN ( ALL - 15 )
----
225

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

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

query I rowsort
SELECT ALL 34 * - COALESCE ( 34, + ( - 25 ), + + 22 ) AS col2
----
-1156

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-434
SELECT COALESCE ( - 32, - 36 ) DIV + 76 - + - SUM( - 45 ) - 45 + + - ( 78 ) DIV + + 37 AS col0, + 23 AS col1
----
-92
23

skipif mysql # not compatible
query II rowsort label-434
SELECT COALESCE ( - 32, - 36 ) / + 76 - + - SUM ( - 45 ) - 45 + + - ( 78 ) / + + 37 AS col0, + 23 AS col1
----
-92
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-435
SELECT 25 / CAST( NULL AS DECIMAL ) * SUM( - 21 ) + + MIN( DISTINCT 32 ) + 92 + ( + + 11 ) * 28 * + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-435
SELECT 25 / CAST ( NULL AS REAL ) * SUM ( - 21 ) + + MIN ( DISTINCT 32 ) + 92 + ( + + 11 ) * 28 * + 15 AS col1
----
NULL

query I rowsort
SELECT - ( - - ( 49 ) ) AS col2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-437
SELECT - + SUM( - 85 ) DIV + - NULLIF ( + 92, + 30 ) + 10 * 70 AS col1
----
700

skipif mysql # not compatible
query I rowsort label-437
SELECT - + SUM ( - 85 ) / + - NULLIF ( + 92, + 30 ) + 10 * 70 AS col1
----
700

query I rowsort
SELECT ALL - CASE - 72 WHEN - 47 THEN + 47 - 82 END * - ( - 91 ) + ( - 55 )
----
NULL

query I rowsort
SELECT + 85 * + + 37
----
3145

query I rowsort
SELECT - 55 + 66
----
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT DISTINCT + 70 * - 41 * + - COUNT( * ) + + 18 * - 37 * - 16
----
13526

skipif mysql # not compatible
query I rowsort label-442
SELECT DISTINCT + 70 * - 41 * + - COUNT ( * ) + + 18 * - 37 * - 16
----
13526

query I rowsort
SELECT ALL + 34 * - + 15 + 59 + + 51
----
-400

query I rowsort
SELECT - - 16 * + 85
----
1360

query II rowsort
SELECT 27 AS col1, - 59 * 59 * + 74 AS col2
----
27
-257594

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT DISTINCT - 91 * - 39 + - COUNT( * ) + 70 AS col2
----
3618

skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT - 91 * - 39 + - COUNT ( * ) + 70 AS col2
----
3618

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT - COALESCE ( - 64, + 81, - 11 - - 87 + + 62 - + SUM( - 50 ) + - 35 )
----
64

skipif mysql # not compatible
query I rowsort label-447
SELECT - COALESCE ( - 64, + 81, - 11 - - 87 + + 62 - + SUM ( - 50 ) + - 35 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT ALL + COUNT( * ) * - + 66 * CASE - - 82 WHEN - NULLIF ( + 34, 78 - - 41 + - 12 * - + 84 ) * + - 16 THEN NULL WHEN 30 THEN + - COUNT( * ) * - + 87 + + 46 END + ( + 26 + - 9 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL + COUNT ( * ) * - + 66 * CASE - - 82 WHEN - NULLIF ( + 34, 78 - - 41 + - 12 * - + 84 ) * + - 16 THEN NULL WHEN 30 THEN + - COUNT ( * ) * - + 87 + + 46 END + ( + 26 + - 9 ) col1
----
NULL

query II rowsort
SELECT 64 col2, + 43
----
64
43

query I rowsort
SELECT - + 91 * + 30 + 97
----
-2633

query I rowsort
SELECT - 13 - + + 1 AS col1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-452
SELECT - CASE - 80 WHEN - 60 THEN NULL WHEN 31 / + + 38 THEN NULL ELSE - + CAST( - 66 AS SIGNED ) END AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-452
SELECT - CASE - 80 WHEN - 60 THEN NULL WHEN 31 / + + 38 THEN NULL ELSE - + CAST ( - 66 AS INTEGER ) END AS col2
----
-66

query I rowsort
SELECT - 89 * ( - 61 ) AS col2
----
5429

query I rowsort
SELECT + ( - 74 ) * 89 AS col0
----
-6586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-455
SELECT ALL CAST( + COUNT( ALL - ( - - 1 ) ) AS SIGNED ) AS col0, - 55
----
1
-55

skipif mysql # not compatible
query II rowsort label-455
SELECT ALL CAST ( + COUNT ( ALL - ( - - 1 ) ) AS INTEGER ) AS col0, - 55
----
1
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-456
SELECT DISTINCT + 83 - + 77 AS col0, COUNT( * ) - - + 64 AS col0
----
6
65

skipif mysql # not compatible
query II rowsort label-456
SELECT DISTINCT + 83 - + 77 AS col0, COUNT ( * ) - - + 64 AS col0
----
6
65

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT + COUNT( * ) - + - 19 - 47
----
-27

skipif mysql # not compatible
query I rowsort label-457
SELECT + COUNT ( * ) - + - 19 - 47
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-458
SELECT DISTINCT - 11 * - - CAST( - 49 AS SIGNED )
----
539

skipif mysql # not compatible
query I rowsort label-458
SELECT DISTINCT - 11 * - - CAST ( - 49 AS INTEGER )
----
539

onlyif mysql # DIV for integer division: 
query I rowsort label-459
SELECT - 23 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-459
SELECT - 23 / - 55
----
0

query I rowsort
SELECT + 81 - - - 89 AS col1
----
-8

query II rowsort
SELECT ALL + 34 AS col2, - 94 * - 33 AS col0
----
34
3102

onlyif mysql # DIV for integer division: 
query I rowsort label-462
SELECT + 93 DIV 73 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-462
SELECT + 93 / 73 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT CASE NULLIF ( 25, - + 60 ) WHEN 97 * + - 1 / - COUNT( * ) + - 16 - 13 * + 39 / + 89 THEN + 79 END * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-463
SELECT CASE NULLIF ( 25, - + 60 ) WHEN 97 * + - 1 / - COUNT ( * ) + - 16 - 13 * + 39 / + 89 THEN + 79 END * - 46
----
NULL

query I rowsort
SELECT DISTINCT - 19 + - + 82
----
-101

query I rowsort
SELECT + - 45 * + 70 + + 51
----
-3099

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-466
SELECT ALL - COALESCE ( - 15, CAST( + 22 AS SIGNED ) )
----
15

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL - COALESCE ( - 15, CAST ( + 22 AS INTEGER ) )
----
15

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

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

query I rowsort
SELECT 92 * - 58 AS col1
----
-5336

query I rowsort
SELECT - 69 + - + 62
----
-131

query I rowsort
SELECT 71 + 62
----
133

query II rowsort
SELECT ALL - 74, - 17 col1
----
-74
-17

query I rowsort
SELECT DISTINCT ( + 63 ) + 10 AS col1
----
73

query II rowsort
SELECT + - 63, 8 AS col1
----
-63
8

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT 70 * CASE 96 WHEN - 31 THEN + COUNT( * ) ELSE NULL END + - SUM( DISTINCT - 3 ) + + 30 * - + ( - 53 ) - - COUNT( * ) + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-474
SELECT 70 * CASE 96 WHEN - 31 THEN + COUNT ( * ) ELSE NULL END + - SUM ( DISTINCT - 3 ) + + 30 * - + ( - 53 ) - - COUNT ( * ) + - 5
----
NULL

query II rowsort
SELECT DISTINCT 88 * - 48 * 86 * - 30, + ( 81 ) col2
----
10897920
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-476
SELECT 3, 28 + + 32 - - MAX( ALL + 26 ) + - 34 * 92 DIV - 72 col1
----
3
129

skipif mysql # not compatible
query II rowsort label-476
SELECT 3, 28 + + 32 - - MAX ( ALL + 26 ) + - 34 * 92 / - 72 col1
----
3
129

query II rowsort
SELECT ALL 9 AS col1, 73 AS col1
----
9
73

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT COUNT( * ) + - - 8 * 4 * 83
----
2657

skipif mysql # not compatible
query I rowsort label-478
SELECT COUNT ( * ) + - - 8 * 4 * 83
----
2657

onlyif mysql # DIV for integer division: 
query I rowsort label-479
SELECT DISTINCT 12 DIV - 47 * - 57
----
0

skipif mysql # not compatible
query I rowsort label-479
SELECT DISTINCT 12 / - 47 * - 57
----
0

query I rowsort
SELECT 48 * - ( - + ( + - CASE 32 WHEN + ( + - 43 ) * + + 69 + + 80 / + + 64 THEN 46 * - + 20 * 81 END ) ) * - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT 54 + - + COUNT( * ) + + 41 * 50 AS col0
----
2103

skipif mysql # not compatible
query I rowsort label-481
SELECT 54 + - + COUNT ( * ) + + 41 * 50 AS col0
----
2103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-482
SELECT ALL CASE - 69 WHEN 60 THEN 38 / + - 55 + + CAST( - + CASE - + CAST( NULL AS SIGNED ) WHEN + 29 + - 2 / - 58 THEN + - 65 WHEN + 71 * ( - 60 ) + + ( COUNT( * ) ) - AVG ( ALL 24 ) THEN NULL WHEN - CAST( NULL AS DECIMAL ) THEN NULL END AS SIGNED ) + - 72 ELSE ( + 93 ) END * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL CASE - 69 WHEN 60 THEN 38 / + - 55 + + CAST ( - + CASE - + CAST ( NULL AS INTEGER ) WHEN + 29 + - 2 / - 58 THEN + - 65 WHEN + 71 * ( - 60 ) + + ( COUNT ( * ) ) - AVG ( ALL 24 ) THEN NULL WHEN - CAST ( NULL AS REAL ) THEN NULL END AS INTEGER ) + - 72 ELSE ( + 93 ) END * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 35 * 7
----
245

query I rowsort
SELECT 83 + 80 + - 43 * + 25
----
-912

query I rowsort
SELECT 73 * - 30
----
-2190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-486
SELECT ALL - AVG ( + CAST( NULL AS SIGNED ) ) + + - COUNT( * ) + + COUNT( * ) * - + 76 + + + 92 + - 96 - - ( - AVG ( ALL 73 ) ) + + 81 * 55 AS col0, + 2 AS col1
----
NULL
2

skipif mysql # not compatible
query II rowsort label-486
SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ) + + - COUNT ( * ) + + COUNT ( * ) * - + 76 + + + 92 + - 96 - - ( - AVG ( ALL 73 ) ) + + 81 * 55 AS col0, + 2 AS col1
----
NULL
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-487
SELECT ALL COUNT( * ) + - CAST( ( - 9 ) AS SIGNED ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL COUNT ( * ) + - CAST ( ( - 9 ) AS INTEGER ) AS col0
----
10

query I rowsort
SELECT DISTINCT + ( 87 ) + - 37 AS col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-489
SELECT ALL - - 66 + 27 * - + NULLIF ( - - 35, + 16 - COUNT( * ) ) + - + NULLIF ( + + 93, - + 30 + - 75 ) DIV + - ( 38 ) + - COUNT( * ) - - ( - 63 ) AS col1
----
-941

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL - - 66 + 27 * - + NULLIF ( - - 35, + 16 - COUNT ( * ) ) + - + NULLIF ( + + 93, - + 30 + - 75 ) / + - ( 38 ) + - COUNT ( * ) - - ( - 63 ) AS col1
----
-941

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-490
SELECT 9 - + 31 * - COUNT( * ) + 33 + ( - 8 ) + - COUNT( - 89 ) DIV 70 * + 48, - 30 AS col2
----
65
-30

skipif mysql # not compatible
query II rowsort label-490
SELECT 9 - + 31 * - COUNT ( * ) + 33 + ( - 8 ) + - COUNT ( - 89 ) / 70 * + 48, - 30 AS col2
----
65
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT - CASE - 45 WHEN - COUNT( ALL + + 45 ) THEN + 1 * + 11 * - - 2 END / - COALESCE ( - 56, - + 39 ) * 97 * - ( - - 25 ) + SUM( + 13 ) + + + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-491
SELECT - CASE - 45 WHEN - COUNT ( ALL + + 45 ) THEN + 1 * + 11 * - - 2 END / - COALESCE ( - 56, - + 39 ) * 97 * - ( - - 25 ) + SUM ( + 13 ) + + + 90 AS col2
----
NULL

query I rowsort
SELECT + 74 * 29 + + 11 * - - 75
----
2971

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

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL - 85 + COUNT ( * ) + + COUNT ( * ) AS col1
----
-83

query I rowsort
SELECT ALL + 27 + + 1 AS col0
----
28

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-496
SELECT ALL 33 + - + 29, COUNT( * ) AS col1
----
4
1

skipif mysql # not compatible
query II rowsort label-496
SELECT ALL 33 + - + 29, COUNT ( * ) AS col1
----
4
1

query II rowsort
SELECT DISTINCT + 93 + + 41 * - 45 AS col2, + 84
----
-1752
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-498
SELECT - 95 * - CAST( NULL AS SIGNED ) * - 38 + + - ( 40 ) / + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-498
SELECT - 95 * - CAST ( NULL AS INTEGER ) * - 38 + + - ( 40 ) / + 47
----
NULL

query I rowsort
SELECT ( - 28 ) - 90 col2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT DISTINCT NULLIF ( + 69, - 27 ) - COUNT( * ) + - NULLIF ( - COUNT( * ), 0 * + 96 + MIN( - 7 ) ) * + 54 * + 90
----
4928

skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT NULLIF ( + 69, - 27 ) - COUNT ( * ) + - NULLIF ( - COUNT ( * ), 0 * + 96 + MIN ( - 7 ) ) * + 54 * + 90
----
4928

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT SUM( ALL + 97 ) + + - COALESCE ( - 77, - 70 + + 77 ) * - 65 col2
----
-4908

skipif mysql # not compatible
query I rowsort label-502
SELECT SUM ( ALL + 97 ) + + - COALESCE ( - 77, - 70 + + 77 ) * - 65 col2
----
-4908

query I rowsort
SELECT ALL 60 * 11 AS col0
----
660

query I rowsort
SELECT ALL 71 * 89
----
6319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-505
SELECT DISTINCT ( + 36 ) - - CAST( - - 4 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-505
SELECT DISTINCT ( + 36 ) - - CAST ( - - 4 AS INTEGER )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT DISTINCT MAX( 24 ) * ( + + ( 2 ) )
----
48

skipif mysql # not compatible
query I rowsort label-506
SELECT DISTINCT MAX ( 24 ) * ( + + ( 2 ) )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT DISTINCT 12 - + - 62 + + - 23 + - + MIN( + 61 ) - 85 * + 48 * 65 * + + 22 col2
----
-5834410

skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT 12 - + - 62 + + - 23 + - + MIN ( + 61 ) - 85 * + 48 * 65 * + + 22 col2
----
-5834410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-508
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-509
SELECT COUNT ( * ) / - 48
----
0

query I rowsort
SELECT 44 - + NULLIF ( 56, + 64 * + - 23 ) + - COALESCE ( - 75, ( - 81 ) ) col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-511
SELECT 63 - - MIN( DISTINCT - CAST( - 62 AS SIGNED ) ) * 69 AS col1
----
4341

skipif mysql # not compatible
query I rowsort label-511
SELECT 63 - - MIN ( DISTINCT - CAST ( - 62 AS INTEGER ) ) * 69 AS col1
----
4341

query II rowsort
SELECT ALL 11 AS col2, ( + 92 ) * 41
----
11
3772

query I rowsort
SELECT + 93 * - 67 * 59
----
-367629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-514
SELECT + CASE 37 WHEN + 45 - + + 33 * - CAST( NULL AS SIGNED ) * - + COUNT( * ) THEN NULL WHEN - 51 THEN CAST( NULL AS SIGNED ) + + ( + - COUNT( * ) ) * - COUNT( * ) * + 79 END * + + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT + CASE 37 WHEN + 45 - + + 33 * - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) THEN NULL WHEN - 51 THEN CAST ( NULL AS INTEGER ) + + ( + - COUNT ( * ) ) * - COUNT ( * ) * + 79 END * + + 76 AS col1
----
NULL

query I rowsort
SELECT ALL 58 + + 31 * + + 75 * - + ( - ( 6 ) )
----
14008

query I rowsort
SELECT ALL 75 * - 93 AS col0
----
-6975

query I rowsort
SELECT ALL - 75 + + 66 + 75 * 63
----
4716

query I rowsort
SELECT - 46 - 19 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-519
SELECT DISTINCT 10 + 31 + ( + 33 ) * - SUM( - 54 ) + + - COUNT( * ) * - + 48 col1, 72 * 14 + + - 57 * + 89 AS col1
----
1871
-4065

skipif mysql # not compatible
query II rowsort label-519
SELECT DISTINCT 10 + 31 + ( + 33 ) * - SUM ( - 54 ) + + - COUNT ( * ) * - + 48 col1, 72 * 14 + + - 57 * + 89 AS col1
----
1871
-4065

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-520
SELECT - CASE - COUNT( * ) WHEN - COALESCE ( - CAST( NULL AS SIGNED ), 26 ) * - 98 - + 45 * 53 + 22 + + 35 THEN NULL WHEN - - 30 * + AVG ( - 29 ) * + COUNT( * ) + + - SUM( ALL - 84 ) + + 7 THEN - 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-520
SELECT - CASE - COUNT ( * ) WHEN - COALESCE ( - CAST ( NULL AS INTEGER ), 26 ) * - 98 - + 45 * 53 + 22 + + 35 THEN NULL WHEN - - 30 * + AVG ( - 29 ) * + COUNT ( * ) + + - SUM ( ALL - 84 ) + + 7 THEN - 99 END
----
NULL

query I rowsort
SELECT DISTINCT + 30 + + 5 AS col1
----
35

query II rowsort
SELECT - 52 col1, + 35
----
-52
35

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

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

query II rowsort
SELECT + - 54 AS col0, - 60
----
-54
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT DISTINCT + 15 * - 57 + + + COUNT( * )
----
-854

skipif mysql # not compatible
query I rowsort label-525
SELECT DISTINCT + 15 * - 57 + + + COUNT ( * )
----
-854

query II rowsort
SELECT ALL + 90 AS col1, COALESCE ( - + 72, 46 ) * + - 51
----
90
3672

query II rowsort
SELECT + 48 AS col2, - 20 AS col1
----
48
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT ALL + + CASE + 70 WHEN - - ( - COUNT( * ) ) THEN - 82 + 77 WHEN - + 67 * COUNT( * ) + - + 40 + - COALESCE ( 21, - + 67 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL + + CASE + 70 WHEN - - ( - COUNT ( * ) ) THEN - 82 + 77 WHEN - + 67 * COUNT ( * ) + - + 40 + - COALESCE ( 21, - + 67 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-529
SELECT - MAX( + 19 ) DIV - 80 - - 37 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-529
SELECT - MAX ( + 19 ) / - 80 - - 37 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT + - 4 * - + COUNT( * ) + - 49 + + 77 col0
----
32

skipif mysql # not compatible
query I rowsort label-530
SELECT + - 4 * - + COUNT ( * ) + - 49 + + 77 col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT - - SUM( - - 67 ) + + - 27 * - 95 * 4 AS col0
----
10327

skipif mysql # not compatible
query I rowsort label-531
SELECT - - SUM ( - - 67 ) + + - 27 * - 95 * 4 AS col0
----
10327

query III rowsort
SELECT - + 18 + 21 + + 5 AS col2, + 28 AS col0, + 66 + 93 AS col0
----
8
28
159

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT ALL + AVG ( - 54 ) * - CASE 42 WHEN + - 61 THEN 22 * AVG ( ALL + 6 ) * - - NULLIF ( 10, + + 94 ) ELSE NULL END * + COUNT( * ) * - + 2 * 44 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL + AVG ( - 54 ) * - CASE 42 WHEN + - 61 THEN 22 * AVG ( ALL + 6 ) * - - NULLIF ( 10, + + 94 ) ELSE NULL END * + COUNT ( * ) * - + 2 * 44 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-534
SELECT - 94 * CAST( NULL AS SIGNED ) - + 79 AS col1
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-535
SELECT DISTINCT + + 73, + 12 DIV 90 AS col2
----
73
0

skipif mysql # not compatible
query II rowsort label-535
SELECT DISTINCT + + 73, + 12 / 90 AS col2
----
73
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-537
SELECT ALL + SUM( ALL 7 ) DIV 83 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-537
SELECT ALL + SUM ( ALL 7 ) / 83 * COUNT ( * )
----
0

query II rowsort
SELECT - 6 * - 88 col0, 7 + + + 92 + 73 + 83 - + 27 * 66 * 9
----
528
-15783

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT 70 * - + CASE - 16 WHEN + 31 THEN - COALESCE ( + COUNT( * ), 86 - + 56, 31 + - 16 ) / - CASE + - AVG ( DISTINCT + 99 ) WHEN - + 64 * - NULLIF ( - 32, + 57 + 25 ) - - 1 + - 92 THEN + 13 WHEN 5 + 76 THEN NULL END END / - 33 + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-539
SELECT 70 * - + CASE - 16 WHEN + 31 THEN - COALESCE ( + COUNT ( * ), 86 - + 56, 31 + - 16 ) / - CASE + - AVG ( DISTINCT + 99 ) WHEN - + 64 * - NULLIF ( - 32, + 57 + 25 ) - - 1 + - 92 THEN + 13 WHEN 5 + 76 THEN NULL END END / - 33 + - 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT MIN( ALL + - 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-540
SELECT MIN ( ALL + - 15 ) AS col0
----
-15

query I rowsort
SELECT - 0 + + + 44
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-542
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( * ) + + 71 * CAST( + + 92 AS DECIMAL ) + - COALESCE ( + 3, + 66 ) * - COUNT( * ) * - 43 + 23 * - CAST( + 10 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 71 * CAST ( + + 92 AS REAL ) + - COALESCE ( + 3, + 66 ) * - COUNT ( * ) * - 43 + 23 * - CAST ( + 10 AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT MIN( DISTINCT 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-543
SELECT MIN ( DISTINCT 78 ) AS col1
----
78

query II rowsort
SELECT + 52 + - - 93 AS col1, 68 AS col2
----
145
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT - COALESCE ( 76, + 43 + + 51 + - COALESCE ( - NULLIF ( + 2, + COUNT( * ) ), + - 19 + + + 40 + + ( 39 ) * - - NULLIF ( - SUM( DISTINCT + 0 ), + + 20 - 73 ) ) + + 74 - ( 51 ) + NULLIF ( - COUNT( * ), + COUNT( * ) * + 21 ), 68 )
----
-76

skipif mysql # not compatible
query I rowsort label-546
SELECT - COALESCE ( 76, + 43 + + 51 + - COALESCE ( - NULLIF ( + 2, + COUNT ( * ) ), + - 19 + + + 40 + + ( 39 ) * - - NULLIF ( - SUM ( DISTINCT + 0 ), + + 20 - 73 ) ) + + 74 - ( 51 ) + NULLIF ( - COUNT ( * ), + COUNT ( * ) * + 21 ), 68 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT ALL 34 + - + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-547
SELECT ALL 34 + - + COUNT ( * )
----
33

query I rowsort
SELECT + ( 51 ) + + 86 + NULLIF ( - - 57, 51 )
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT ALL SUM( ALL + - 45 ) col2
----
-45

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL SUM ( ALL + - 45 ) col2
----
-45

query II rowsort
SELECT ALL 28 + 25, 42 col1
----
53
42

query II rowsort
SELECT + 98 + - + 80 * - 56 + + ( - 97 ), - ( - 1 ) col1
----
4481
1

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

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

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

skipif mysql # not compatible
query I rowsort label-553
SELECT + ( - 66 ) * - COUNT ( * ) / + 78
----
0

query II rowsort
SELECT - - ( - 57 ) AS col1, 79 * 52 - NULLIF ( 30, + 68 )
----
-57
4078

query I rowsort
SELECT + ( - - ( 56 ) ) + - - 93 AS col2
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-556
SELECT + + MIN( + 73 ) DIV NULLIF ( + NULLIF ( + CAST( + - 61 AS SIGNED ), + - 11 ), - - 88 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-556
SELECT + + MIN ( + 73 ) / NULLIF ( + NULLIF ( + CAST ( + - 61 AS INTEGER ), + - 11 ), - - 88 ) AS col2
----
-1

query I rowsort
SELECT ALL 10 + - 61 col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT DISTINCT + - SUM( DISTINCT + 98 ) * + 34
----
-3332

skipif mysql # not compatible
query I rowsort label-558
SELECT DISTINCT + - SUM ( DISTINCT + 98 ) * + 34
----
-3332

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

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

query I rowsort
SELECT ALL + NULLIF ( + 37, 7 )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-561
SELECT + 76 DIV - - 90 + + + 64
----
64

skipif mysql # not compatible
query I rowsort label-561
SELECT + 76 / - - 90 + + + 64
----
64

query I rowsort
SELECT ALL CASE + 93 WHEN 31 THEN 82 / - 41 - + 38 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-563
SELECT DISTINCT + CASE + - 22 WHEN - 3 * NULLIF ( + 39, + COUNT( * ) ) - + ( + - 22 ) * + 24 + + - 86 THEN + 10 * + + CAST( + SUM( DISTINCT + 84 ) AS SIGNED ) ELSE - COALESCE ( + 51, + - 6 + + 30 + 95 ) * + 27 + - 72 END * - MIN( ALL 10 DIV 22 + 90 )
----
130410

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT + CASE + - 22 WHEN - 3 * NULLIF ( + 39, + COUNT ( * ) ) - + ( + - 22 ) * + 24 + + - 86 THEN + 10 * + + CAST ( + SUM ( DISTINCT + 84 ) AS INTEGER ) ELSE - COALESCE ( + 51, + - 6 + + 30 + 95 ) * + 27 + - 72 END * - MIN ( ALL 10 / 22 + 90 )
----
130410

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT ALL + 19 * - 53 - + SUM( + 45 ) AS col1
----
-1052

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL + 19 * - 53 - + SUM ( + 45 ) AS col1
----
-1052

query II rowsort
SELECT - 23 * - 87 + - 14 * - 33 AS col0, 1
----
2463
1

query II rowsort
SELECT + - 64 - - 84 + 15 + + NULLIF ( - 69, - 67 / - COALESCE ( + 41, 58 ) ), ( - 65 ) AS col2
----
-34
-65

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

query I rowsort
SELECT DISTINCT + ( - 22 ) AS col0
----
-22

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

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

query I rowsort
SELECT - 92 * + + 72
----
-6624

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT - COUNT( * ) * 27 col1
----
-27

skipif mysql # not compatible
query I rowsort label-571
SELECT - COUNT ( * ) * 27 col1
----
-27

query II rowsort
SELECT - ( 12 ) * - + 78 AS col1, 40 col1
----
936
40

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-574
SELECT + 40, + 29 + + 53 + - ( + COUNT( * ) ) * - + COUNT( * ) + 89 * 47 + 1 + + COUNT( * ) + - 85 * - 26 AS col1
----
40
6478

skipif mysql # not compatible
query II rowsort label-574
SELECT + 40, + 29 + + 53 + - ( + COUNT ( * ) ) * - + COUNT ( * ) + 89 * 47 + 1 + + COUNT ( * ) + - 85 * - 26 AS col1
----
40
6478

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT + COUNT( * ) + + - 69
----
-68

skipif mysql # not compatible
query I rowsort label-575
SELECT + COUNT ( * ) + + - 69
----
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-576
SELECT 63 * - CAST( NULL AS DECIMAL ) * - ( - 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-576
SELECT 63 * - CAST ( NULL AS REAL ) * - ( - 8 )
----
NULL

query I rowsort
SELECT DISTINCT - 66 * - + 74
----
4884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-578
SELECT ALL 64 + COALESCE ( + ( + NULLIF ( + + 54, + 55 DIV + - 91 ) ), 58 - + 27 - - - COUNT( DISTINCT + + 64 ) * - CASE 1 WHEN + 9 - - 40 THEN - COUNT( ALL 86 ) + + - COUNT( - + CAST( - 57 AS SIGNED ) ) ELSE NULL END + 18 DIV 91 DIV - COALESCE ( - ( + 18 ) * - 57, + 40 DIV 49 + 90 * 39, 79 ) ) + 77 * 63 AS col2
----
4969

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL 64 + COALESCE ( + ( + NULLIF ( + + 54, + 55 / + - 91 ) ), 58 - + 27 - - - COUNT ( DISTINCT + + 64 ) * - CASE 1 WHEN + 9 - - 40 THEN - COUNT ( ALL 86 ) + + - COUNT ( - + CAST ( - 57 AS INTEGER ) ) ELSE NULL END + 18 / 91 / - COALESCE ( - ( + 18 ) * - 57, + 40 / 49 + 90 * 39, 79 ) ) + 77 * 63 AS col2
----
4969

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-579
SELECT DISTINCT + 93 + 93 + - 3 AS col0, - 34 - + + 89 - CAST( NULL AS DECIMAL ) + - 61 * - 76 / - 35
----
183
NULL

skipif mysql # not compatible
query II rowsort label-579
SELECT DISTINCT + 93 + 93 + - 3 AS col0, - 34 - + + 89 - CAST ( NULL AS REAL ) + - 61 * - 76 / - 35
----
183
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-580
SELECT DISTINCT 58 DIV 60 * - + 56 * - 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT 58 / 60 * - + 56 * - 74 AS col2
----
0

query I rowsort
SELECT 63 + + 28 - + 29
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-582
SELECT MAX( - - 93 ) * + 62 DIV - - COUNT( * ) + - 39
----
5727

skipif mysql # not compatible
query I rowsort label-582
SELECT MAX ( - - 93 ) * + 62 / - - COUNT ( * ) + - 39
----
5727

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-583
SELECT ALL + 76 + - CASE 40 WHEN - + MAX( - 9 ) - + 56 + - COUNT( * ) THEN + 60 + - - SUM( ALL - 22 ) * 81 WHEN + - NULLIF ( 95, 43 * 68 - - + ( + NULLIF ( - 93, + COALESCE ( + 71, 56 ) * 72 ) ) - 19 * - COUNT( * ) ) THEN - 15 + - 82 * + 25 ELSE - MAX( DISTINCT 68 ) END + COALESCE ( - MAX( DISTINCT 97 ), 82, ( - COUNT( * ) ) ) DIV 99
----
144

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL + 76 + - CASE 40 WHEN - + MAX ( - 9 ) - + 56 + - COUNT ( * ) THEN + 60 + - - SUM ( ALL - 22 ) * 81 WHEN + - NULLIF ( 95, 43 * 68 - - + ( + NULLIF ( - 93, + COALESCE ( + 71, 56 ) * 72 ) ) - 19 * - COUNT ( * ) ) THEN - 15 + - 82 * + 25 ELSE - MAX ( DISTINCT 68 ) END + COALESCE ( - MAX ( DISTINCT 97 ), 82, ( - COUNT ( * ) ) ) / 99
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-584
SELECT DISTINCT - COUNT( * ) DIV - COALESCE ( - 6, - 56, 39 - 41 * + + CAST( 16 AS SIGNED ) * - ( - NULLIF ( + + COALESCE ( - COUNT( * ), COUNT( + 24 ) * - COUNT( * ) ), - + 70 ) ) - - 48 + - - 34 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT - COUNT ( * ) / - COALESCE ( - 6, - 56, 39 - 41 * + + CAST ( 16 AS INTEGER ) * - ( - NULLIF ( + + COALESCE ( - COUNT ( * ), COUNT ( + 24 ) * - COUNT ( * ) ), - + 70 ) ) - - 48 + - - 34 ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-585
SELECT 79 - 84 + CAST( + NULLIF ( 46, 74 * + + 62 + AVG ( + 71 ) * - COUNT( * ) + + - 39 * 77 ) AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-585
SELECT 79 - 84 + CAST ( + NULLIF ( 46, 74 * + + 62 + AVG ( + 71 ) * - COUNT ( * ) + + - 39 * 77 ) AS INTEGER )
----
41

query II rowsort
SELECT 68 AS col2, + 35 AS col0
----
68
35

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT COALESCE ( + 49, + - 40 - + - 27, - - 62 ) * - + 47 + + NULLIF ( + COUNT( * ), - 8 ) AS col2
----
-2302

skipif mysql # not compatible
query I rowsort label-587
SELECT COALESCE ( + 49, + - 40 - + - 27, - - 62 ) * - + 47 + + NULLIF ( + COUNT ( * ), - 8 ) AS col2
----
-2302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-588
SELECT - - CASE - 31 WHEN + 47 THEN NULL WHEN - COUNT( ALL 54 ) THEN - + 8 * - - 58 * 89 * ( 12 ) ELSE - 44 / + CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-588
SELECT - - CASE - 31 WHEN + 47 THEN NULL WHEN - COUNT ( ALL 54 ) THEN - + 8 * - - 58 * 89 * ( 12 ) ELSE - 44 / + CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT + 4 + - + 74 AS col1
----
-70

query I rowsort
SELECT + 74 - - - 31 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT ALL - COUNT( * ) - 99 AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL - COUNT ( * ) - 99 AS col0
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-592
SELECT - 22, + 70 + - + 60 * COUNT( DISTINCT + - 80 ) AS col1
----
-22
10

skipif mysql # not compatible
query II rowsort label-592
SELECT - 22, + 70 + - + 60 * COUNT ( DISTINCT + - 80 ) AS col1
----
-22
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-593
SELECT - 40 + - COUNT( * ) - - 40 + - - NULLIF ( + 60, + NULLIF ( CAST( NULL AS DECIMAL ), NULLIF ( - 4, + CAST( - COUNT( * ) AS SIGNED ) ) ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-593
SELECT - 40 + - COUNT ( * ) - - 40 + - - NULLIF ( + 60, + NULLIF ( CAST ( NULL AS REAL ), NULLIF ( - 4, + CAST ( - COUNT ( * ) AS INTEGER ) ) ) ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-594
SELECT NULLIF ( + 96, COUNT( * ) + - 2 + + - 83 + + 66 * ( - 15 ) + - + ( 1 ) + 1 ) * - + COUNT( * ) * - ( - + COUNT( * ) ) * + - 44 AS col0, - SUM( 29 ) AS col0
----
4224
-29

skipif mysql # not compatible
query II rowsort label-594
SELECT NULLIF ( + 96, COUNT ( * ) + - 2 + + - 83 + + 66 * ( - 15 ) + - + ( 1 ) + 1 ) * - + COUNT ( * ) * - ( - + COUNT ( * ) ) * + - 44 AS col0, - SUM ( 29 ) AS col0
----
4224
-29

query I rowsort
SELECT - 54 + - - 83 + + 77
----
106

query II rowsort
SELECT DISTINCT - - 28 AS col0, - 21 AS col2
----
28
-21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-598
SELECT ( - NULLIF ( - 95, 22 ) ) DIV - - NULLIF ( + 41, + - 24 ) + 94 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-598
SELECT ( - NULLIF ( - 95, 22 ) ) / - - NULLIF ( + 41, + - 24 ) + 94 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT DISTINCT 51 + + + 3 + + COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-599
SELECT DISTINCT 51 + + + 3 + + COUNT ( * ) AS col0
----
55

query I rowsort
SELECT DISTINCT 55 * 69 * + 33 + - 79 AS col2
----
125156

onlyif mysql # aggregate syntax: 
query II rowsort label-601
SELECT ALL - + NULLIF ( SUM( ALL - + 77 ), + 65 / + 23 ), - 89 * - COUNT( * ) AS col0
----
77
89

skipif mysql # not compatible
query II rowsort label-601
SELECT ALL - + NULLIF ( SUM ( ALL - + 77 ), + 65 / + 23 ), - 89 * - COUNT ( * ) AS col0
----
77
89

onlyif mysql # DIV for integer division: 
query I rowsort label-602
SELECT 12 DIV NULLIF ( - 8, 67 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-602
SELECT 12 / NULLIF ( - 8, 67 ) col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-603
SELECT 74 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-603
SELECT 74 / 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-604
SELECT 6 / 47 + + - 74 * + ( - - CAST( NULL AS SIGNED ) ) + COUNT( * ) + - ( + + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-604
SELECT 6 / 47 + + - 74 * + ( - - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) + - ( + + 11 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ALL 95 + - 36 - + - 56 + + MIN( ALL + 47 ) * - 63
----
-2846

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL 95 + - 36 - + - 56 + + MIN ( ALL + 47 ) * - 63
----
-2846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-606
SELECT CAST( + 60 AS SIGNED ) + + - 71 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-606
SELECT CAST ( + 60 AS INTEGER ) + + - 71 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-607
SELECT 22, COUNT( * ) AS col2
----
22
1

skipif mysql # not compatible
query II rowsort label-607
SELECT 22, COUNT ( * ) AS col2
----
22
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-608
SELECT ALL - COUNT( * ) + - + CAST( NULLIF ( - - 94, - - NULLIF ( - 78, + 73 ) + + 8 ) AS SIGNED ) + 72 * + + 12
----
769

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL - COUNT ( * ) + - + CAST ( NULLIF ( - - 94, - - NULLIF ( - 78, + 73 ) + + 8 ) AS INTEGER ) + 72 * + + 12
----
769

query II rowsort
SELECT DISTINCT - 5, + 31 + + 10 AS col0
----
-5
41

query I rowsort
SELECT ALL 59 + - 5 * - 94
----
529

query I rowsort
SELECT + 92 * + 28 - + + 91 AS col1
----
2485

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

skipif mysql # not compatible
query II rowsort label-612
SELECT 8 AS col1, - CAST ( NULL AS INTEGER ) AS col1
----
8
NULL

query I rowsort
SELECT 98 + ( + - 45 ) AS col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-614
SELECT ALL - 44 + 98 + + 41 - + - 4 DIV - 69
----
95

skipif mysql # not compatible
query I rowsort label-614
SELECT ALL - 44 + 98 + + 41 - + - 4 / - 69
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-615
SELECT 69 * COUNT( * ) * COALESCE ( + + 96, + 53, COALESCE ( 19, + 26, + 75 * 0 ), 47 * - - 79 + + + CAST( NULL AS SIGNED ) - - 95 )
----
6624

skipif mysql # not compatible
query I rowsort label-615
SELECT 69 * COUNT ( * ) * COALESCE ( + + 96, + 53, COALESCE ( 19, + 26, + 75 * 0 ), 47 * - - 79 + + + CAST ( NULL AS INTEGER ) - - 95 )
----
6624

query II rowsort
SELECT 95 col1, + 10 + - 96 AS col1
----
95
-86

query II rowsort
SELECT - 10 * + + 42 * 48 + 54 AS col2, 81 AS col2
----
-20106
81

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT + 35 * + 87 + + 58 * - - COUNT( * )
----
3103

skipif mysql # not compatible
query I rowsort label-618
SELECT + 35 * + 87 + + 58 * - - COUNT ( * )
----
3103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-619
SELECT DISTINCT - CASE + 55 WHEN - 11 THEN NULL WHEN - 95 + 11 THEN - + 26 * + 95 * CAST( NULL AS SIGNED ) + MAX( DISTINCT - 55 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT - CASE + 55 WHEN - 11 THEN NULL WHEN - 95 + 11 THEN - + 26 * + 95 * CAST ( NULL AS INTEGER ) + MAX ( DISTINCT - 55 ) END
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 79, - 36 ) * - 50 AS col1
----
-3950

query I rowsort
SELECT 98 + - 92 AS col1
----
6

query II rowsort
SELECT DISTINCT 77, 12 AS col0
----
77
12

query I rowsort
SELECT ALL - 17 * + + 45
----
-765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-624
SELECT CAST( NULL AS SIGNED ) / 81
----
NULL

skipif mysql # not compatible
query I rowsort label-624
SELECT CAST ( NULL AS INTEGER ) / 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-625
SELECT + 45 + + CAST( NULL AS SIGNED ) + 25 * - - ( + MAX( DISTINCT 21 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-625
SELECT + 45 + + CAST ( NULL AS INTEGER ) + 25 * - - ( + MAX ( DISTINCT 21 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-626
SELECT ALL 55 AS col1, 43 - - + SUM( 49 )
----
55
92

skipif mysql # not compatible
query II rowsort label-626
SELECT ALL 55 AS col1, 43 - - + SUM ( 49 )
----
55
92

query I rowsort
SELECT 99 + - CASE + + 74 WHEN + 79 * - - 72 * - + 75 + - - ( - - 28 ) + + 80 THEN - + 77 WHEN 64 * - + 90 - - - 3 THEN NULL ELSE NULL END * + AVG ( + NULLIF ( - + 48, - + 97 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-628
SELECT ALL - 77 DIV + - 93 * + 82
----
0

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL - 77 / + - 93 * + 82
----
0

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

skipif mysql # not compatible
query I rowsort label-629
SELECT 86 / + + 83
----
1

query I rowsort
SELECT 29 * + - 4 + - 12
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-631
SELECT DISTINCT - 60 DIV - 93 * + 65
----
0

skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT - 60 / - 93 * + 65
----
0

query II rowsort
SELECT ALL 89, 84 AS col2
----
89
84

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-635
SELECT 55 * 85 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-635
SELECT 55 * 85 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-637
SELECT DISTINCT - MAX( + 25 ) AS col1, - NULLIF ( - + 29, 87 )
----
-25
29

skipif mysql # not compatible
query II rowsort label-637
SELECT DISTINCT - MAX ( + 25 ) AS col1, - NULLIF ( - + 29, 87 )
----
-25
29

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT DISTINCT - + MIN( - 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-638
SELECT DISTINCT - + MIN ( - 90 ) AS col1
----
90

query I rowsort
SELECT ALL 85 * + + 23 + + COALESCE ( + 27, - + 22 ) + - 38
----
1944

query I rowsort
SELECT 54 * - 35 * + 7 AS col2
----
-13230

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT CASE + 38 WHEN - 49 + COUNT( * ) + + 31 * - 33 * COUNT( * ) - 55 THEN NULL WHEN 27 + - MAX( - 17 ) * + 80 THEN 68 + + 63 + - - 73 ELSE 5 + + + 76 * CASE + 35 WHEN - COUNT( * ) THEN - COALESCE ( + 21, + 44, 57 * 36 ) WHEN - 29 THEN 62 WHEN 52 - 9 THEN NULL ELSE + MIN( DISTINCT 55 ) * 81 END END
----
338585

skipif mysql # not compatible
query I rowsort label-641
SELECT CASE + 38 WHEN - 49 + COUNT ( * ) + + 31 * - 33 * COUNT ( * ) - 55 THEN NULL WHEN 27 + - MAX ( - 17 ) * + 80 THEN 68 + + 63 + - - 73 ELSE 5 + + + 76 * CASE + 35 WHEN - COUNT ( * ) THEN - COALESCE ( + 21, + 44, 57 * 36 ) WHEN - 29 THEN 62 WHEN 52 - 9 THEN NULL ELSE + MIN ( DISTINCT 55 ) * 81 END END
----
338585

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT ALL SUM( ALL 58 ) * 74 + 83 AS col2
----
4375

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL SUM ( ALL 58 ) * 74 + 83 AS col2
----
4375

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT DISTINCT 63 * - - 37 + + 55 + + COUNT( * ) * + 65 AS col1
----
2451

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT 63 * - - 37 + + 55 + + COUNT ( * ) * + 65 AS col1
----
2451

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-644
SELECT ALL COUNT( * ) * + 95 * - 14 + + ( 77 ) + - 61 DIV - NULLIF ( - COUNT( * ), - + 57 )
----
-1314

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL COUNT ( * ) * + 95 * - 14 + + ( 77 ) + - 61 / - NULLIF ( - COUNT ( * ), - + 57 )
----
-1314

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT ALL 11 * 6 * 61 * - 79 * - - SUM( ALL 34 )
----
-10813836

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL 11 * 6 * 61 * - 79 * - - SUM ( ALL 34 )
----
-10813836

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT MIN( ALL - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-646
SELECT MIN ( ALL - 72 )
----
-72

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-647
SELECT + CASE - 91 WHEN - + 63 THEN + CAST( + - 88 AS DECIMAL ) / - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-647
SELECT + CASE - 91 WHEN - + 63 THEN + CAST ( + - 88 AS REAL ) / - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-648
SELECT + COUNT( * ) * + + 39 * - - 59 * + 16 * - COUNT( * ), - 46 + COUNT( * ) col2
----
-36816
-45

skipif mysql # not compatible
query II rowsort label-648
SELECT + COUNT ( * ) * + + 39 * - - 59 * + 16 * - COUNT ( * ), - 46 + COUNT ( * ) col2
----
-36816
-45

query I rowsort
SELECT DISTINCT 46 * + 39 * - - 75
----
134550

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT - 17 * + + SUM( + + 75 ) * - + MAX( DISTINCT - - 26 ) AS col1
----
33150

skipif mysql # not compatible
query I rowsort label-650
SELECT - 17 * + + SUM ( + + 75 ) * - + MAX ( DISTINCT - - 26 ) AS col1
----
33150

query I rowsort
SELECT - 93 + - 24 + + + 62
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-652
SELECT AVG ( DISTINCT - + CASE + - 90 WHEN - 61 * + 48 THEN + ( + 27 ) + - 23 * + - 95 WHEN 62 DIV - 39 + + 34 THEN NULL END ) AS col0, 35 DIV COUNT( * ) col1
----
NULL
35

skipif mysql # not compatible
query II rowsort label-652
SELECT AVG ( DISTINCT - + CASE + - 90 WHEN - 61 * + 48 THEN + ( + 27 ) + - 23 * + - 95 WHEN 62 / - 39 + + 34 THEN NULL END ) AS col0, 35 / COUNT ( * ) col1
----
NULL
35

query I rowsort
SELECT + 81 * - - ( ( + 55 ) )
----
4455

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

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

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

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

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

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

query I rowsort
SELECT ALL - 86 * - 33 * 41
----
116358

query I rowsort
SELECT + ( 49 ) * + 7 * + + 26
----
8918

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT ALL - 31 * + CASE 20 WHEN + + ( 95 ) - - COUNT( * ) + - - COUNT( * ) THEN + 79 WHEN - 66 THEN NULL END * - + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL - 31 * + CASE 20 WHEN + + ( 95 ) - - COUNT ( * ) + - - COUNT ( * ) THEN + 79 WHEN - 66 THEN NULL END * - + 34 AS col2
----
NULL

query II rowsort
SELECT + - 26 - 15 + - 30 AS col0, - 0 col1
----
-71
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-661
SELECT - - COUNT( * ) DIV 14
----
0

skipif mysql # not compatible
query I rowsort label-661
SELECT - - COUNT ( * ) / 14
----
0

query I rowsort
SELECT - + 51 + + 26
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-663
SELECT + COUNT( ALL - - 2 ) AS col0, 51
----
1
51

skipif mysql # not compatible
query II rowsort label-663
SELECT + COUNT ( ALL - - 2 ) AS col0, 51
----
1
51

query I rowsort
SELECT DISTINCT 83 * + - 19 + + 69 * ( 99 )
----
5254

query II rowsort
SELECT DISTINCT 87 + + 60 AS col1, + 98 * 41 * - 33 * 88 * 56
----
147
-653423232

onlyif mysql # DIV for integer division: 
query I rowsort label-666
SELECT - 31 DIV - 16 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-666
SELECT - 31 / - 16 AS col0
----
1

query I rowsort
SELECT ALL - + 58 + - + 54 * 89 AS col2
----
-4864

onlyif mysql # aggregate syntax: 
query III rowsort label-668
SELECT DISTINCT + 38 * + 81 AS col2, MIN( COALESCE ( + - 68, - 48, + + 56 ) ) - + COUNT( * ) AS col2, 71 AS col0
----
3078
-69
71

skipif mysql # not compatible
query III rowsort label-668
SELECT DISTINCT + 38 * + 81 AS col2, MIN ( COALESCE ( + - 68, - 48, + + 56 ) ) - + COUNT ( * ) AS col2, 71 AS col0
----
3078
-69
71

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT ALL - CASE ( 31 ) WHEN + MIN( + + 60 ) * 39 / + ( - - 64 ) + 24 + - - 63 + - + 77 THEN 21 ELSE NULL END + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL - CASE ( 31 ) WHEN + MIN ( + + 60 ) * 39 / + ( - - 64 ) + 24 + - - 63 + - + 77 THEN 21 ELSE NULL END + 59
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-670
SELECT - 58 - - 23, - CAST( NULL AS SIGNED ) AS col2
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-670
SELECT - 58 - - 23, - CAST ( NULL AS INTEGER ) AS col2
----
-35
NULL

query I rowsort
SELECT DISTINCT - + 83 + 9 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-672
SELECT - 72 - - 74 + + - COUNT( * ), - 96 AS col2
----
1
-96

skipif mysql # not compatible
query II rowsort label-672
SELECT - 72 - - 74 + + - COUNT ( * ), - 96 AS col2
----
1
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-673
SELECT DISTINCT + 71 DIV + - 18
----
-3

skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT + 71 / + - 18
----
-3

query I rowsort
SELECT ALL - - 33 + 51
----
84

query I rowsort
SELECT - + 49 * - 45 AS col2
----
2205

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT + MAX( ALL 62 ) col1
----
62

skipif mysql # not compatible
query I rowsort label-676
SELECT + MAX ( ALL 62 ) col1
----
62

query I rowsort
SELECT DISTINCT - ( + + 99 ) + + + 49 AS col2
----
-50

query I rowsort
SELECT - - 75 + - - 65
----
140

query II rowsort
SELECT + ( + + 6 ) AS col2, - 29 + + 71 AS col0
----
6
42

query I rowsort
SELECT ALL - - CASE 15 WHEN + 79 + + 91 THEN 2 END * - 70
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-682
SELECT DISTINCT 90 DIV + 84 + - 90
----
-89

skipif mysql # not compatible
query I rowsort label-682
SELECT DISTINCT 90 / + 84 + - 90
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-683
SELECT DISTINCT 65 / - ( - COUNT( * ) ) * - 74 - 82 - + CAST( + COUNT( + 30 ) AS SIGNED ) * + 35 * ( - + 46 ) * - CASE CAST( + NULLIF ( - ( COALESCE ( - 7, ( + + 8 ) ) ), + + 1 + - 70 * 42 ) AS SIGNED ) WHEN - - 49 * + 21 THEN - 3 - + 99 ELSE NULL END * + 56 + - 29 * 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-683
SELECT DISTINCT 65 / - ( - COUNT ( * ) ) * - 74 - 82 - + CAST ( + COUNT ( + 30 ) AS INTEGER ) * + 35 * ( - + 46 ) * - CASE CAST ( + NULLIF ( - ( COALESCE ( - 7, ( + + 8 ) ) ), + + 1 + - 70 * 42 ) AS INTEGER ) WHEN - - 49 * + 21 THEN - 3 - + 99 ELSE NULL END * + 56 + - 29 * 56 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-684
SELECT + 46 DIV 26 + - - 58 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-684
SELECT + 46 / 26 + - - 58 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT + NULLIF ( MIN( - 36 ), 43 )
----
-36

skipif mysql # not compatible
query I rowsort label-685
SELECT + NULLIF ( MIN ( - 36 ), 43 )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-686
SELECT + 90 DIV 2 + + + MIN( DISTINCT + 17 ) DIV + + 63 + 89
----
134

skipif mysql # not compatible
query I rowsort label-686
SELECT + 90 / 2 + + + MIN ( DISTINCT + 17 ) / + + 63 + 89
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT - 87 + - - COUNT( * ) + 24 + + 25 - 17 + + 86 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-687
SELECT - 87 + - - COUNT ( * ) + 24 + + 25 - 17 + + 86 AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-688
SELECT ALL COUNT( ALL + 87 ) DIV 97 col2
----
0

skipif mysql # not compatible
query I rowsort label-688
SELECT ALL COUNT ( ALL + 87 ) / 97 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-689
SELECT + COUNT( * ) * + 17 DIV + 67 + - 21 AS col1, COUNT( + - 2 ) + ( - + SUM( 89 ) ) AS col1
----
-21
-88

skipif mysql # not compatible
query II rowsort label-689
SELECT + COUNT ( * ) * + 17 / + 67 + - 21 AS col1, COUNT ( + - 2 ) + ( - + SUM ( 89 ) ) AS col1
----
-21
-88

query I rowsort
SELECT ALL + COALESCE ( + + 70, 46 * + 89 ) AS col2
----
70

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-692
SELECT ALL ( 97 ) * - + 74 AS col0, CAST( NULL AS SIGNED ) col1
----
-7178
NULL

skipif mysql # not compatible
query II rowsort label-692
SELECT ALL ( 97 ) * - + 74 AS col0, CAST ( NULL AS INTEGER ) col1
----
-7178
NULL

query I rowsort
SELECT + 34 + + + 58
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT ALL COALESCE ( + 18, - 84, - COUNT( ALL - 12 ) ) * COUNT( * ) - - ( - 12 )
----
6

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL COALESCE ( + 18, - 84, - COUNT ( ALL - 12 ) ) * COUNT ( * ) - - ( - 12 )
----
6

query II rowsort
SELECT ALL + 62 AS col2, - 12
----
62
-12

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

skipif mysql # not compatible
query I rowsort label-696
SELECT + 10 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-697
SELECT + - 71 / 72
----
0

query II rowsort
SELECT - - 29 * + + 25 + - - 57 AS col2, + 99
----
782
99

query I rowsort
SELECT ALL + + 10 col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-700
SELECT - + COALESCE ( - 35, - 81 ) * 40 + + 82 * + COUNT( * ) AS col0, - 43 * 77
----
1482
-3311

skipif mysql # not compatible
query II rowsort label-700
SELECT - + COALESCE ( - 35, - 81 ) * 40 + + 82 * + COUNT ( * ) AS col0, - 43 * 77
----
1482
-3311

query I rowsort
SELECT ALL - 58 * + - 7 + 55 AS col2
----
461

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT + NULLIF ( 92, + 27 ) + - ( ( + 12 ) ) - COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-702
SELECT + NULLIF ( 92, + 27 ) + - ( ( + 12 ) ) - COUNT ( * ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT NULLIF ( - NULLIF ( - COUNT( * ), - 73 ), - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-703
SELECT NULLIF ( - NULLIF ( - COUNT ( * ), - 73 ), - 29 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT + 20 * SUM( ALL + 44 )
----
880

skipif mysql # not compatible
query I rowsort label-704
SELECT + 20 * SUM ( ALL + 44 )
----
880

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT ALL + COUNT( + 59 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL + COUNT ( + 59 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT - - COUNT( * ) + COUNT( * ) + + + ( 47 ) - - + 31 col1
----
80

skipif mysql # not compatible
query I rowsort label-706
SELECT - - COUNT ( * ) + COUNT ( * ) + + + ( 47 ) - - + 31 col1
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-707
SELECT 75, COUNT( * ) * - ( - CASE - 82 WHEN - 38 THEN + + COUNT( * ) WHEN 21 - + - 12 * ( COUNT( * ) ) THEN 1 ELSE NULL END ) AS col2
----
75
NULL

skipif mysql # not compatible
query II rowsort label-707
SELECT 75, COUNT ( * ) * - ( - CASE - 82 WHEN - 38 THEN + + COUNT ( * ) WHEN 21 - + - 12 * ( COUNT ( * ) ) THEN 1 ELSE NULL END ) AS col2
----
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT + CASE ( + 22 ) WHEN 73 THEN NULL ELSE + + 57 * + COUNT( * ) - - - 44 END * + SUM( ALL + - 67 )
----
-871

skipif mysql # not compatible
query I rowsort label-708
SELECT + CASE ( + 22 ) WHEN 73 THEN NULL ELSE + + 57 * + COUNT ( * ) - - - 44 END * + SUM ( ALL + - 67 )
----
-871

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

skipif mysql # not compatible
query I rowsort label-709
SELECT - CAST ( MAX ( - 2 ) AS INTEGER ) AS col0
----
2

query I rowsort
SELECT ALL - 84 + 8
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT 95 + - - 29 - - COUNT( DISTINCT ( - 0 ) ) * - + NULLIF ( 20, - 96 ) * 26 - + COUNT( * ) AS col1
----
-397

skipif mysql # not compatible
query I rowsort label-711
SELECT 95 + - - 29 - - COUNT ( DISTINCT ( - 0 ) ) * - + NULLIF ( 20, - 96 ) * 26 - + COUNT ( * ) AS col1
----
-397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-712
SELECT ALL + ( + 53 ) * CAST( NULL AS SIGNED ) * + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL + ( + 53 ) * CAST ( NULL AS INTEGER ) * + 60 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-713
SELECT ALL 1 * - 24 DIV + 11 + + CAST( + - 67 AS SIGNED ) * - 91
----
6095

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL 1 * - 24 / + 11 + + CAST ( + - 67 AS INTEGER ) * - 91
----
6095

query I rowsort
SELECT ALL 6 + - 43
----
-37

query II rowsort
SELECT + 70 AS col0, - 9 AS col1
----
70
-9

query I rowsort
SELECT ALL 18 - - 87 col0
----
105

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

skipif mysql # not compatible
query I rowsort label-717
SELECT 83 * - COUNT ( DISTINCT + 69 ) AS col2
----
-83

query I rowsort
SELECT 99 + - 47
----
52

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

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

query I rowsort
SELECT 73 * + - NULLIF ( 92, + + ( + - 60 ) * NULLIF ( 71, 44 ) * - COALESCE ( - - 76, - 94 * - + 22 ) + - 46 + - 73 - - ( - ( - 95 ) ) * - - 91 * + 9 + 9 * 48 * + - 75 ) AS col0
----
-6716

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT 82 * + MIN( ALL + 62 ) AS col1
----
5084

skipif mysql # not compatible
query I rowsort label-721
SELECT 82 * + MIN ( ALL + 62 ) AS col1
----
5084

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT - NULLIF ( ( ( - - COUNT( * ) ) ), 96 ) * - 54 + + + 50 + - 94 + NULLIF ( - 18, - COUNT( + 71 ) + - + 71 ) * ( COUNT( * ) ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-722
SELECT - NULLIF ( ( ( - - COUNT ( * ) ) ), 96 ) * - 54 + + + 50 + - 94 + NULLIF ( - 18, - COUNT ( + 71 ) + - + 71 ) * ( COUNT ( * ) ) col2
----
-8

query I rowsort
SELECT DISTINCT - CASE 91 WHEN + 17 THEN 59 END
----
NULL

query I rowsort
SELECT DISTINCT + 3 * + - 37 * - NULLIF ( COALESCE ( 31, 69 ), 83 + 45 + 25 + - AVG ( - 12 ) * - ( + 89 ) ) AS col2
----
3441

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT 8 * - COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-725
SELECT 8 * - COUNT ( * ) AS col1
----
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT 98 * NULLIF ( - 28, + + 90 * - 37 - 57 + - - COUNT( * ) ) AS col2
----
-2744

skipif mysql # not compatible
query I rowsort label-727
SELECT 98 * NULLIF ( - 28, + + 90 * - 37 - 57 + - - COUNT ( * ) ) AS col2
----
-2744

query II rowsort
SELECT ALL + 86 * + 39 AS col1, - ( - 65 ) * + + 9 AS col1
----
3354
585

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

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL - CAST ( NULL AS INTEGER ) + 70 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-730
SELECT DISTINCT - CAST( - 99 AS SIGNED ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-730
SELECT DISTINCT - CAST ( - 99 AS INTEGER ) AS col2
----
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT 84 * - + COUNT( DISTINCT - 70 ) + - 91 AS col0
----
-175

skipif mysql # not compatible
query I rowsort label-732
SELECT 84 * - + COUNT ( DISTINCT - 70 ) + - 91 AS col0
----
-175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-733
SELECT ALL 21 + 44 * + 73 * - 61 * + 36 DIV COUNT( * )
----
-7053531

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL 21 + 44 * + 73 * - 61 * + 36 / COUNT ( * )
----
-7053531

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT DISTINCT - 82 + 96 + 18 + - MIN( DISTINCT ( - 30 ) ) + + 98 AS col1
----
160

skipif mysql # not compatible
query I rowsort label-734
SELECT DISTINCT - 82 + 96 + 18 + - MIN ( DISTINCT ( - 30 ) ) + + 98 AS col1
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT ALL - 49 + - 75 + + MAX( + 95 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL - 49 + - 75 + + MAX ( + 95 ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT + 13 * + 10 + 18 + - MIN( - 2 ) * - - 89 + - - 35 + + 76 * 64
----
5225

skipif mysql # not compatible
query I rowsort label-736
SELECT + 13 * + 10 + 18 + - MIN ( - 2 ) * - - 89 + - - 35 + + 76 * 64
----
5225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-737
SELECT ALL + COUNT( * ) DIV - + MIN( - - ( 44 ) ) + - 51 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL + COUNT ( * ) / - + MIN ( - - ( 44 ) ) + - 51 AS col1
----
-51

query I rowsort
SELECT ALL - ( - 47 ) + + 61 AS col1
----
108

query I rowsort
SELECT DISTINCT + 4 * + 77 + - 19 - + 92
----
197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-740
SELECT ALL - 88 + COUNT( * ) DIV + 70 col0
----
-88

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL - 88 + COUNT ( * ) / + 70 col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT - COUNT( ALL + + 56 ) * - ( + 69 ) + + 34 + - 56 + - - 12 * - 71 * + 79 * 25 * - - COUNT( * ) * - 2 * - - 8 + - 70 + 4 * - 78 AS col1
----
26922865

skipif mysql # not compatible
query I rowsort label-741
SELECT - COUNT ( ALL + + 56 ) * - ( + 69 ) + + 34 + - 56 + - - 12 * - 71 * + 79 * 25 * - - COUNT ( * ) * - 2 * - - 8 + - 70 + 4 * - 78 AS col1
----
26922865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-742
SELECT ALL CAST( NULL AS SIGNED ) + 14 - + 55 + 73 * - 94 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-742
SELECT ALL CAST ( NULL AS INTEGER ) + 14 - + 55 + 73 * - 94 * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 32 + - 28
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-744
SELECT ALL 33 * + + CAST( NULL AS SIGNED ) / + 19 * + AVG ( 59 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL 33 * + + CAST ( NULL AS INTEGER ) / + 19 * + AVG ( 59 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT - + NULLIF ( + + COUNT( * ), + - MIN( - + 75 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-745
SELECT - + NULLIF ( + + COUNT ( * ), + - MIN ( - + 75 ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-746
SELECT DISTINCT - ( - 46 ) AS col0, CAST( COUNT( * ) AS SIGNED ) AS col0
----
46
1

skipif mysql # not compatible
query II rowsort label-746
SELECT DISTINCT - ( - 46 ) AS col0, CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
46
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-747
SELECT DISTINCT + COALESCE ( COUNT( * ), - 89 ) - 6 DIV + 77 + 74
----
75

skipif mysql # not compatible
query I rowsort label-747
SELECT DISTINCT + COALESCE ( COUNT ( * ), - 89 ) - 6 / + 77 + 74
----
75

query I rowsort
SELECT DISTINCT - COALESCE ( 46, 8 )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-749
SELECT ALL - + COALESCE ( 92, - CAST( + 24 AS SIGNED ) ) - + 40
----
-132

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL - + COALESCE ( 92, - CAST ( + 24 AS INTEGER ) ) - + 40
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-750
SELECT ALL CAST( + 59 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL CAST ( + 59 AS INTEGER )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT ALL COUNT( - - 78 ) * + + 68
----
68

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL COUNT ( - - 78 ) * + + 68
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-752
SELECT CAST( COUNT( + COALESCE ( 98, - 8 ) ) AS SIGNED ) * 69 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-752
SELECT CAST ( COUNT ( + COALESCE ( 98, - 8 ) ) AS INTEGER ) * 69 AS col1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-753
SELECT DISTINCT + 72 * 54 DIV + - 34
----
-114

skipif mysql # not compatible
query I rowsort label-753
SELECT DISTINCT + 72 * 54 / + - 34
----
-114

query II rowsort
SELECT ALL 49 AS col2, 81
----
49
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-755
SELECT 8 * 32 * CAST( + + COUNT( * ) AS SIGNED ) * - - COUNT( ALL + 71 ) * 47 col2
----
12032

skipif mysql # not compatible
query I rowsort label-755
SELECT 8 * 32 * CAST ( + + COUNT ( * ) AS INTEGER ) * - - COUNT ( ALL + 71 ) * 47 col2
----
12032

query I rowsort
SELECT DISTINCT 64 * - + 59 col0
----
-3776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-757
SELECT 27 DIV SUM( DISTINCT + + 28 ) + + + NULLIF ( 8, - COUNT( * ) * COUNT( * ) ) * + 95 * - + 45
----
-34200

skipif mysql # not compatible
query I rowsort label-757
SELECT 27 / SUM ( DISTINCT + + 28 ) + + + NULLIF ( 8, - COUNT ( * ) * COUNT ( * ) ) * + 95 * - + 45
----
-34200

query I rowsort
SELECT 33 * + 33
----
1089

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT ALL - 29 * 63 + + MAX( DISTINCT - 2 ) + + 68
----
-1761

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL - 29 * 63 + + MAX ( DISTINCT - 2 ) + + 68
----
-1761

query I rowsort
SELECT 18 * - 59 + - 60 * - 20 col1
----
138

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

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

query I rowsort
SELECT 43 * - 34
----
-1462

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT - 56 * - COUNT( * ) - 91
----
-35

skipif mysql # not compatible
query I rowsort label-763
SELECT - 56 * - COUNT ( * ) - 91
----
-35

query I rowsort
SELECT ALL + 29 * 69 + - - 19 AS col2
----
2020

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

skipif mysql # not compatible
query I rowsort label-765
SELECT 23 + + - 54 / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-766
SELECT ALL + COUNT( + CAST( - + 85 AS SIGNED ) ) * + 5 + - 27 * - 80
----
2165

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL + COUNT ( + CAST ( - + 85 AS INTEGER ) ) * + 5 + - 27 * - 80
----
2165

query II rowsort
SELECT - + 92 * 8 + - + 93 AS col1, + 28
----
-829
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-768
SELECT ALL + 35 * ( - MIN( DISTINCT - 89 ) ) + + COUNT( * ) + CAST( NULL AS SIGNED ) - + 95 + - - 79 * - - 10 * - + 30 * + 23 + + + 72 * + 6 * + COUNT( * ) * + + 61 + - - ( + 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-768
SELECT ALL + 35 * ( - MIN ( DISTINCT - 89 ) ) + + COUNT ( * ) + CAST ( NULL AS INTEGER ) - + 95 + - - 79 * - - 10 * - + 30 * + 23 + + + 72 * + 6 * + COUNT ( * ) * + + 61 + - - ( + 38 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT ALL + 52 + - - MIN( 16 )
----
68

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL + 52 + - - MIN ( 16 )
----
68

query II rowsort
SELECT + - 29 AS col0, - 98 - + - 27 + - 33 AS col1
----
-29
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-771
SELECT ALL - - 30 + - + 11 / - + CASE + SUM( 4 ) WHEN - 0 + + + 11 * - 14 + - 80 THEN NULL WHEN COUNT( * ) THEN + 97 ELSE NULL END AS col1, ( - ( 37 ) ) + - 77 + 51 + + CAST( - 79 AS SIGNED ) * + COUNT( * ) * + COUNT( * ) * - CAST( - 77 AS SIGNED ) * - ( 92 ) AS col0
----
NULL
559573

skipif mysql # not compatible
query II rowsort label-771
SELECT ALL - - 30 + - + 11 / - + CASE + SUM ( 4 ) WHEN - 0 + + + 11 * - 14 + - 80 THEN NULL WHEN COUNT ( * ) THEN + 97 ELSE NULL END AS col1, ( - ( 37 ) ) + - 77 + 51 + + CAST ( - 79 AS INTEGER ) * + COUNT ( * ) * + COUNT ( * ) * - CAST ( - 77 AS INTEGER ) * - ( 92 ) AS col0
----
NULL
559573

query I rowsort
SELECT + ( + 18 ) * - ( + - 96 ) + 8 AS col2
----
1736

query I rowsort
SELECT ALL + 8 * - 42 AS col2
----
-336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-774
SELECT DISTINCT - COUNT( ALL - - 33 ) + - 95 + - - 49 * 27 * - + 72 + + + 42 DIV - 91 + + - 94
----
-95446

skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT - COUNT ( ALL - - 33 ) + - 95 + - - 49 * 27 * - + 72 + + + 42 / - 91 + + - 94
----
-95446

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

query I rowsort
SELECT 68 + + 26 - 55 + - 28
----
11

query I rowsort
SELECT - 78 * 76 AS col1
----
-5928

query I rowsort
SELECT + + 31 * 93
----
2883

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT ALL + CASE CASE - - NULLIF ( SUM( - 24 ), + 16 ) WHEN - 27 + 98 + 0 + - 46 THEN NULL WHEN 70 THEN - - 52 ELSE 40 END WHEN 55 THEN NULL WHEN 2 THEN - 59 WHEN 56 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL + CASE CASE - - NULLIF ( SUM ( - 24 ), + 16 ) WHEN - 27 + 98 + 0 + - 46 THEN NULL WHEN 70 THEN - - 52 ELSE 40 END WHEN 55 THEN NULL WHEN 2 THEN - 59 WHEN 56 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-780
SELECT ALL - - 84 DIV + 79
----
1

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL - - 84 / + 79
----
1

query I rowsort
SELECT + 41 + - + 43
----
-2

query I rowsort
SELECT - 80 * - 96 AS col1
----
7680

query II rowsort
SELECT ALL 78, 53 AS col1
----
78
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-784
SELECT - ( - - CAST( + + COUNT( + NULLIF ( 45, + 13 ) ) AS SIGNED ) ) * - 30 + 46 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-784
SELECT - ( - - CAST ( + + COUNT ( + NULLIF ( 45, + 13 ) ) AS INTEGER ) ) * - 30 + 46 AS col0
----
76

query II rowsort
SELECT 76 AS col1, - 22 col0
----
76
-22

query II rowsort
SELECT 49, - 68 AS col1
----
49
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT + MAX( ALL - 40 ) + + 42 + + 75 * + MIN( DISTINCT - 64 ) * 17 * - COALESCE ( - 50, + COUNT( * ) ) col1
----
-4079998

skipif mysql # not compatible
query I rowsort label-787
SELECT + MAX ( ALL - 40 ) + + 42 + + 75 * + MIN ( DISTINCT - 64 ) * 17 * - COALESCE ( - 50, + COUNT ( * ) ) col1
----
-4079998

query I rowsort
SELECT ALL + 30 * + + 42 * + - 85
----
-107100

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT DISTINCT MIN( ALL 0 ) + + 83 * COUNT( * ) * - - 19 * + - 6
----
-9462

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT MIN ( ALL 0 ) + + 83 * COUNT ( * ) * - - 19 * + - 6
----
-9462

query I rowsort
SELECT DISTINCT 40 + 36 + - - 57 + + - 2 * - 75
----
283

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

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL COUNT ( * ) + + 66 AS col2
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-792
SELECT - NULLIF ( - 79, - 35 / 93 ), + 39 * + MIN( ( 79 ) ) AS col1
----
79
3081

skipif mysql # not compatible
query II rowsort label-792
SELECT - NULLIF ( - 79, - 35 / 93 ), + 39 * + MIN ( ( 79 ) ) AS col1
----
79
3081

query I rowsort
SELECT - 87 * - - 98 * ( + + 42 ) AS col2
----
-358092

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

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

query I rowsort
SELECT DISTINCT 10 * + - 95
----
-950

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT ALL + 7 * - MAX( + ( - ( + 88 ) ) ) + COUNT( * ) + - - 15 * + - NULLIF ( - 0, - - 52 + - 18 - CASE 6 WHEN + 11 + 97 THEN - 72 WHEN 80 - + 41 * + 91 * - 83 THEN NULL ELSE - COUNT( ALL 31 ) END * - 82 * + - 27 + 73 )
----
617

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL + 7 * - MAX ( + ( - ( + 88 ) ) ) + COUNT ( * ) + - - 15 * + - NULLIF ( - 0, - - 52 + - 18 - CASE 6 WHEN + 11 + 97 THEN - 72 WHEN 80 - + 41 * + 91 * - 83 THEN NULL ELSE - COUNT ( ALL 31 ) END * - 82 * + - 27 + 73 )
----
617

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

skipif mysql # not compatible
query I rowsort label-797
SELECT ALL 39 / + COUNT ( * )
----
39

query I rowsort
SELECT ALL 7 * + 26 + - 61
----
121

query II rowsort
SELECT ALL + - 43, + 90 AS col0
----
-43
90

query I rowsort
SELECT ALL 56 * 16 AS col1
----
896

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT DISTINCT + + 62 * - 39 + CASE + 98 WHEN 9 THEN + ( 91 ) ELSE + ( 3 ) + + 52 END + 87 DIV - 55
----
-2364

skipif mysql # not compatible
query I rowsort label-801
SELECT DISTINCT + + 62 * - 39 + CASE + 98 WHEN 9 THEN + ( 91 ) ELSE + ( 3 ) + + 52 END + 87 / - 55
----
-2364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-802
SELECT ALL - - CAST( + 67 AS SIGNED ) * + 6 * 20 + - - 3 AS col1
----
8043

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL - - CAST ( + 67 AS INTEGER ) * + 6 * 20 + - - 3 AS col1
----
8043

onlyif mysql # aggregate syntax: 
query II rowsort label-803
SELECT COUNT( * ), - 43 AS col2
----
1
-43

skipif mysql # not compatible
query II rowsort label-803
SELECT COUNT ( * ), - 43 AS col2
----
1
-43

query II rowsort
SELECT + + 41 - - 74 AS col0, + 55
----
115
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-805
SELECT + - CASE - CAST( COUNT( DISTINCT 74 ) AS SIGNED ) WHEN - 64 THEN NULL WHEN + 29 THEN NULL WHEN 78 + + 98 * + 49 / + COALESCE ( 94, 30 ) * - ( - 98 ) * + + COUNT( * ) + 65 THEN - 17 END / - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-805
SELECT + - CASE - CAST ( COUNT ( DISTINCT 74 ) AS INTEGER ) WHEN - 64 THEN NULL WHEN + 29 THEN NULL WHEN 78 + + 98 * + 49 / + COALESCE ( 94, 30 ) * - ( - 98 ) * + + COUNT ( * ) + 65 THEN - 17 END / - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT - - 60 * + COUNT( * ) - 55 col2
----
5

skipif mysql # not compatible
query I rowsort label-806
SELECT - - 60 * + COUNT ( * ) - 55 col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT DISTINCT - 63 * - - COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-807
SELECT DISTINCT - 63 * - - COUNT ( * ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT ALL 11 * + 34 - 7 + + MIN( DISTINCT - - 46 )
----
413

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL 11 * + 34 - 7 + + MIN ( DISTINCT - - 46 )
----
413

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT DISTINCT - 47 * - COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT - 47 * - COUNT ( * ) AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-810
SELECT ALL + 52 AS col1, + CAST( NULL AS SIGNED ) * COUNT( * )
----
52
NULL

skipif mysql # not compatible
query II rowsort label-810
SELECT ALL + 52 AS col1, + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT - COUNT( * ) - + 2 col0
----
-3

skipif mysql # not compatible
query I rowsort label-811
SELECT - COUNT ( * ) - + 2 col0
----
-3

query I rowsort
SELECT ALL - 14 * - 97 col1
----
1358

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-813
SELECT + 55 + + + 52 - - CASE - NULLIF ( + + NULLIF ( - + 41, - - 14 ), - - 36 + - + 56 ) WHEN MIN( ALL + - ( 86 ) ) THEN 68 ELSE 90 DIV + + 13 END - + 48 * 32 AS col0
----
-1423

skipif mysql # not compatible
query I rowsort label-813
SELECT + 55 + + + 52 - - CASE - NULLIF ( + + NULLIF ( - + 41, - - 14 ), - - 36 + - + 56 ) WHEN MIN ( ALL + - ( 86 ) ) THEN 68 ELSE 90 / + + 13 END - + 48 * 32 AS col0
----
-1423

query II rowsort
SELECT ALL 49, 48 AS col1
----
49
48

query I rowsort
SELECT - ( + + 16 ) + + + 49
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-816
SELECT - - COUNT( * ), 67 AS col0
----
1
67

skipif mysql # not compatible
query II rowsort label-816
SELECT - - COUNT ( * ), 67 AS col0
----
1
67

query I rowsort
SELECT ALL - 70 * 91
----
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT - - 64 * - 97 * + - COUNT( * )
----
6208

skipif mysql # not compatible
query I rowsort label-818
SELECT - - 64 * - 97 * + - COUNT ( * )
----
6208

query I rowsort
SELECT - ( + + 92 ) + + 26
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-820
SELECT ALL CAST( - 45 AS SIGNED ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL CAST ( - 45 AS INTEGER ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT - COUNT( * ) + - COUNT( * ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-821
SELECT - COUNT ( * ) + - COUNT ( * ) col0
----
-2

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

query I rowsort
SELECT ALL - 72 + 13
----
-59

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

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

query II rowsort
SELECT + 35 * + 96 AS col1, 94 + - 3 * + + 59 * - 45 AS col0
----
3360
8059

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-826
SELECT ALL CAST( 68 AS SIGNED ) col1
----
68

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL CAST ( 68 AS INTEGER ) col1
----
68

query I rowsort
SELECT + 70 + - 20 col0
----
50

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-829
SELECT - 99 - 84 DIV + 80 + COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-829
SELECT - 99 - 84 / + 80 + COUNT ( * )
----
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT - 75 * - NULLIF ( + - 88, - COUNT( * ) ) AS col0
----
-6600

skipif mysql # not compatible
query I rowsort label-831
SELECT - 75 * - NULLIF ( + - 88, - COUNT ( * ) ) AS col0
----
-6600

query I rowsort
SELECT + 34 + 50 * + + 92 AS col2
----
4634

query I rowsort
SELECT DISTINCT - ( - - 70 ) * 63 * - 5
----
22050

query I rowsort
SELECT ALL 63 + - COALESCE ( - 66, - 5 * - 60 )
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-835
SELECT DISTINCT + 81 DIV 1 DIV + COUNT( * ) + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-835
SELECT DISTINCT + 81 / 1 / + COUNT ( * ) + COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT - 63 * - - 31 + COUNT( * ) AS col2
----
-1952

skipif mysql # not compatible
query I rowsort label-836
SELECT - 63 * - - 31 + COUNT ( * ) AS col2
----
-1952

onlyif mysql # DIV for integer division: 
query II rowsort label-837
SELECT ALL - 40 DIV 84 - - 59 AS col0, + 33 * + 31 AS col0
----
59
1023

skipif mysql # not compatible
query II rowsort label-837
SELECT ALL - 40 / 84 - - 59 AS col0, + 33 * + 31 AS col0
----
59
1023

query II rowsort
SELECT ( - 15 ) + + 94 AS col1, + 82 * - 94 + + 55
----
79
-7653

query II rowsort
SELECT ( 46 ) * 29 col1, 15 AS col2
----
1334
15

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-841
SELECT - 60 + - - 21 AS col1, SUM( + 62 ) AS col0
----
-39
62

skipif mysql # not compatible
query II rowsort label-841
SELECT - 60 + - - 21 AS col1, SUM ( + 62 ) AS col0
----
-39
62

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT ALL + - 16 + + COUNT( * ) * + MIN( ALL 39 )
----
23

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL + - 16 + + COUNT ( * ) * + MIN ( ALL 39 )
----
23

query I rowsort
SELECT 79 * - - 37 * - 99
----
-289377

onlyif mysql # DIV for integer division: 
query I rowsort label-847
SELECT 98 DIV + COALESCE ( + - 53, + ( + 11 ) * - + 6 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-847
SELECT 98 / + COALESCE ( + - 53, + ( + 11 ) * - + 6 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT DISTINCT 71 + 6 + + 74 + + MIN( ALL + 67 ) col0
----
218

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT 71 + 6 + + 74 + + MIN ( ALL + 67 ) col0
----
218

query I rowsort
SELECT ALL - 67 * 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-850
SELECT ALL 34, 80 * + 91 * + COUNT( * ) AS col2
----
34
7280

skipif mysql # not compatible
query II rowsort label-850
SELECT ALL 34, 80 * + 91 * + COUNT ( * ) AS col2
----
34
7280

query I rowsort
SELECT ALL - 68 * + - 70
----
4760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-852
SELECT 33 * + 70 DIV + ( + COUNT( * ) ) col2
----
2310

skipif mysql # not compatible
query I rowsort label-852
SELECT 33 * + 70 / + ( + COUNT ( * ) ) col2
----
2310

query I rowsort
SELECT ALL + COALESCE ( - 91, + - 72, + 33 * + 54 ) + - + 98 col0
----
-189

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

onlyif mysql # DIV for integer division: 
query II rowsort label-855
SELECT 23 + - 22 DIV - 12, 50 col1
----
24
50

skipif mysql # not compatible
query II rowsort label-855
SELECT 23 + - 22 / - 12, 50 col1
----
24
50

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-857
SELECT ALL 11 col1, - COUNT( DISTINCT + - 91 ) DIV - 6 * ( - COUNT( * ) ) AS col2
----
11
0

skipif mysql # not compatible
query II rowsort label-857
SELECT ALL 11 col1, - COUNT ( DISTINCT + - 91 ) / - 6 * ( - COUNT ( * ) ) AS col2
----
11
0

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT ALL 39 * + + 93 * + NULLIF ( 50, - 17 / - 76 + 74 + COUNT( * ) + + 75 )
----
181350

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL 39 * + + 93 * + NULLIF ( 50, - 17 / - 76 + 74 + COUNT ( * ) + + 75 )
----
181350

query I rowsort
SELECT 58 + + 47
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-860
SELECT ALL + CAST( NULL AS SIGNED ) / - + 96 * + 95 * COUNT( * ) col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT SUM( - 88 ) + + ( - + 73 ) + 26 * 42
----
931

skipif mysql # not compatible
query I rowsort label-861
SELECT SUM ( - 88 ) + + ( - + 73 ) + 26 * 42
----
931

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-862
SELECT - - CAST( + 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-862
SELECT - - CAST ( + 12 AS INTEGER )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT DISTINCT - CASE + 94 WHEN 48 THEN COUNT( * ) ELSE NULL END * + AVG ( ALL - 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT - CASE + 94 WHEN 48 THEN COUNT ( * ) ELSE NULL END * + AVG ( ALL - 5 ) AS col2
----
NULL

query I rowsort
SELECT 66 * 52 AS col2
----
3432

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

skipif mysql # not compatible
query I rowsort label-865
SELECT DISTINCT + 97 * - COUNT ( * ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT ALL + COUNT( * ) - + 69
----
-68

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL + COUNT ( * ) - + 69
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT DISTINCT + 27 * 92 - - + 45 - - 61 * COUNT( * ) * - COUNT( * ) AS col0
----
2468

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT + 27 * 92 - - + 45 - - 61 * COUNT ( * ) * - COUNT ( * ) AS col0
----
2468

query I rowsort
SELECT ALL - 69 * + 19 * + 39 * 96
----
-4908384

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT + 67 * - MAX( + - 29 ) * - 18 - - 62 * 36 AS col0
----
-32742

skipif mysql # not compatible
query I rowsort label-869
SELECT + 67 * - MAX ( + - 29 ) * - 18 - - 62 * 36 AS col0
----
-32742

query I rowsort
SELECT ALL - + ( + - 69 ) col0
----
69

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

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

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

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

query I rowsort
SELECT - 46 - + + 66
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-874
SELECT NULLIF ( + NULLIF ( - - COUNT( * ), - 59 * - 80 + - 74 ), 98 ) * - + 31 AS col1, 14
----
-31
14

skipif mysql # not compatible
query II rowsort label-874
SELECT NULLIF ( + NULLIF ( - - COUNT ( * ), - 59 * - 80 + - 74 ), 98 ) * - + 31 AS col1, 14
----
-31
14

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT + COUNT( ALL - ( 49 ) ) * ( - COUNT( * ) ) * - - NULLIF ( + - COALESCE ( 58, - + 56 ), - - 22 + - ( - 91 ) + + + 79 ) * + 66 + - - 16 + + + ( - 80 ) * - 79 + 63 + - 64 * - 14 + 92 - 85
----
11130

skipif mysql # not compatible
query I rowsort label-875
SELECT + COUNT ( ALL - ( 49 ) ) * ( - COUNT ( * ) ) * - - NULLIF ( + - COALESCE ( 58, - + 56 ), - - 22 + - ( - 91 ) + + + 79 ) * + 66 + - - 16 + + + ( - 80 ) * - 79 + 63 + - 64 * - 14 + 92 - 85
----
11130

onlyif mysql # aggregate syntax: 
query II rowsort label-876
SELECT ALL - + 13 AS col1, - MIN( ALL 39 )
----
-13
-39

skipif mysql # not compatible
query II rowsort label-876
SELECT ALL - + 13 AS col1, - MIN ( ALL 39 )
----
-13
-39

query I rowsort
SELECT DISTINCT + 51 + - 7
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-878
SELECT ALL COUNT( ALL - ( 4 ) ) + CAST( 7 AS SIGNED ) col1
----
8

skipif mysql # not compatible
query I rowsort label-878
SELECT ALL COUNT ( ALL - ( 4 ) ) + CAST ( 7 AS INTEGER ) col1
----
8

query I rowsort
SELECT DISTINCT ( + 72 ) + + + 66
----
138

query I rowsort
SELECT ALL - 72 + + 96 AS col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-881
SELECT 17 - + + COALESCE ( + + 57, 3, + - CAST( NULL AS SIGNED ) )
----
-40

skipif mysql # not compatible
query I rowsort label-881
SELECT 17 - + + COALESCE ( + + 57, 3, + - CAST ( NULL AS INTEGER ) )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-882
SELECT CAST( NULL AS DECIMAL ) * - + MAX( - ( - 80 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-882
SELECT CAST ( NULL AS REAL ) * - + MAX ( - ( - 80 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-883
SELECT ALL NULLIF ( - + MAX( DISTINCT 13 ), + 12 ) + - + 4 AS col2, 37
----
-17
37

skipif mysql # not compatible
query II rowsort label-883
SELECT ALL NULLIF ( - + MAX ( DISTINCT 13 ), + 12 ) + - + 4 AS col2, 37
----
-17
37

query I rowsort
SELECT 1 + - ( + + 77 ) AS col0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-885
SELECT CAST( NULL AS SIGNED ) + + - 49 + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-885
SELECT CAST ( NULL AS INTEGER ) + + - 49 + + 2
----
NULL

query I rowsort
SELECT - 27 * - 31 + - - 92 * - 8
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-887
SELECT - CASE + 77 WHEN + 6 THEN NULL ELSE COUNT( * ) + + 64 DIV 10 * + COUNT( * ) END
----
-7

skipif mysql # not compatible
query I rowsort label-887
SELECT - CASE + 77 WHEN + 6 THEN NULL ELSE COUNT ( * ) + + 64 / 10 * + COUNT ( * ) END
----
-7

query I rowsort
SELECT ALL 16 - - 85
----
101

query I rowsort
SELECT 42 * 68
----
2856

query I rowsort
SELECT ALL + 10 - 38
----
-28

query I rowsort
SELECT 52 * 61
----
3172

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT - MAX( 14 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-892
SELECT - MAX ( 14 ) AS col0
----
-14

query II rowsort
SELECT 61 + + - 91 AS col1, 98 AS col2
----
-30
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-894
SELECT - + 53 + - COALESCE ( - NULLIF ( - 91, 15 + + NULLIF ( ( - 58 ), 51 + - 95 ) ), + MAX( + 61 ) * - - 28 + + + 22 + 65 * - 17 ) * 19 * + AVG ( 14 ) * - NULLIF ( 67, 63 ) + + 94 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-894
SELECT - + 53 + - COALESCE ( - NULLIF ( - 91, 15 + + NULLIF ( ( - 58 ), 51 + - 95 ) ), + MAX ( + 61 ) * - - 28 + + + 22 + 65 * - 17 ) * 19 * + AVG ( 14 ) * - NULLIF ( 67, 63 ) + + 94 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 93 * - 72
----
-6696

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

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

query I rowsort
SELECT - NULLIF ( - 24, - 95 / - 93 - - ( + 82 ) )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-898
SELECT - 96 DIV - - 73 - - 65 * - 59 + - 95 AS col2
----
-3931

skipif mysql # not compatible
query I rowsort label-898
SELECT - 96 / - - 73 - - 65 * - 59 + - 95 AS col2
----
-3931

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT + 17 * + 27 * - + 85 + + 64 * + + MAX( DISTINCT + 69 )
----
-34599

skipif mysql # not compatible
query I rowsort label-899
SELECT + 17 * + 27 * - + 85 + + 64 * + + MAX ( DISTINCT + 69 )
----
-34599

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT ALL + MIN( ALL - 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL + MIN ( ALL - 15 ) AS col0
----
-15

query I rowsort
SELECT DISTINCT + 31 * - - 68 + - 77 AS col2
----
2031

query I rowsort
SELECT ALL + 95 * 57 + - NULLIF ( 39, - 41 + 49 ) + 19 AS col1
----
5395

onlyif mysql # DIV for integer division: 
query I rowsort label-903
SELECT + 4 DIV 32 + - 9
----
-9

skipif mysql # not compatible
query I rowsort label-903
SELECT + 4 / 32 + - 9
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-904
SELECT + 5 DIV - 55 * - CASE - - 64 WHEN 45 THEN + 30 WHEN - 78 THEN + COUNT( * ) ELSE + + 34 END * 73 * MIN( 53 )
----
0

skipif mysql # not compatible
query I rowsort label-904
SELECT + 5 / - 55 * - CASE - - 64 WHEN 45 THEN + 30 WHEN - 78 THEN + COUNT ( * ) ELSE + + 34 END * 73 * MIN ( 53 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT ALL ( + - COUNT( * ) ) * - + 42 * 23 + + - 48 * - 30
----
2406

skipif mysql # not compatible
query I rowsort label-905
SELECT ALL ( + - COUNT ( * ) ) * - + 42 * 23 + + - 48 * - 30
----
2406

query I rowsort
SELECT DISTINCT 83 * - 7 * - + 79 + ( + 26 ) * - ( 9 ) * + 89 + + + 94 + + 93 * - 77 AS col0
----
18006

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT ALL 33 * + 75 + + MAX( - 21 ) + ( + 34 ) AS col1
----
2488

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL 33 * + 75 + + MAX ( - 21 ) + ( + 34 ) AS col1
----
2488

onlyif mysql # DIV for integer division: 
query I rowsort label-908
SELECT DISTINCT ( + 41 ) DIV - + 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-908
SELECT DISTINCT ( + 41 ) / - + 59 AS col0
----
0

query I rowsort
SELECT ALL - 94 * + - 3 + - 79
----
203

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-912
SELECT + 31 AS col1, 80 * - + CAST( NULL AS DECIMAL ) AS col2
----
31
NULL

skipif mysql # not compatible
query II rowsort label-912
SELECT + 31 AS col1, 80 * - + CAST ( NULL AS REAL ) AS col2
----
31
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-913
SELECT DISTINCT + 69, + COUNT( * ) + ( COUNT( * ) ) AS col0
----
69
2

skipif mysql # not compatible
query II rowsort label-913
SELECT DISTINCT + 69, + COUNT ( * ) + ( COUNT ( * ) ) AS col0
----
69
2

query I rowsort
SELECT - 82 * - 71
----
5822

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT 13 * - COUNT( * ) + + COUNT( * ) * COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-915
SELECT 13 * - COUNT ( * ) + + COUNT ( * ) * COUNT ( * )
----
-12

query I rowsort
SELECT ALL + 75 * + 52 * 9 + - + 80 AS col0
----
35020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-917
SELECT MIN( - + CASE - 80 WHEN CAST( NULL AS SIGNED ) THEN - - 59 + + ( 40 ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-917
SELECT MIN ( - + CASE - 80 WHEN CAST ( NULL AS INTEGER ) THEN - - 59 + + ( 40 ) END ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT + CAST ( 19 AS INTEGER ) AS col1
----
19

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-920
SELECT - NULLIF ( + 89, - NULLIF ( - + CAST( - + CAST( + 66 AS SIGNED ) AS SIGNED ), + 34 + 77 ) ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-920
SELECT - NULLIF ( + 89, - NULLIF ( - + CAST ( - + CAST ( + 66 AS INTEGER ) AS INTEGER ), + 34 + 77 ) ) AS col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-921
SELECT DISTINCT 75 * - CAST( 97 AS SIGNED )
----
-7275

skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT 75 * - CAST ( 97 AS INTEGER )
----
-7275

onlyif mysql # aggregate syntax: 
query II rowsort label-922
SELECT ALL COUNT( * ), 12 + + CASE + NULLIF ( + COALESCE ( COUNT( * ), + - 31 ), - - 26 + - COUNT( * ) ) WHEN - 7 THEN NULL WHEN - + ( + 17 ) THEN - - COUNT( DISTINCT + ( - 73 ) ) ELSE NULL END + + 93 + - + 10 - + 83 * + 99 * - COUNT( * ) / 14 + - - SUM( ALL - 79 ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-922
SELECT ALL COUNT ( * ), 12 + + CASE + NULLIF ( + COALESCE ( COUNT ( * ), + - 31 ), - - 26 + - COUNT ( * ) ) WHEN - 7 THEN NULL WHEN - + ( + 17 ) THEN - - COUNT ( DISTINCT + ( - 73 ) ) ELSE NULL END + + 93 + - + 10 - + 83 * + 99 * - COUNT ( * ) / 14 + - - SUM ( ALL - 79 ) AS col0
----
1
NULL

query I rowsort
SELECT + 5 * + 89
----
445

query I rowsort
SELECT + 16 * - 24 AS col2
----
-384

onlyif mysql # DIV for integer division: 
query I rowsort label-925
SELECT + 69 DIV + 31 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-925
SELECT + 69 / + 31 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-926
SELECT - 74 * 98 * - COALESCE ( 46, + 97 DIV 56 + - - 59 + - 89 - + 12 )
----
333592

skipif mysql # not compatible
query I rowsort label-926
SELECT - 74 * 98 * - COALESCE ( 46, + 97 / 56 + - - 59 + - 89 - + 12 )
----
333592

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT + 86 + COUNT( * ) + - 83 col0
----
4

skipif mysql # not compatible
query I rowsort label-927
SELECT + 86 + COUNT ( * ) + - 83 col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-928
SELECT + COUNT( * ) - 18 * + - 26 + - - ( - + 55 ) AS col2, + 29 * - 39 AS col0
----
414
-1131

skipif mysql # not compatible
query II rowsort label-928
SELECT + COUNT ( * ) - 18 * + - 26 + - - ( - + 55 ) AS col2, + 29 * - 39 AS col0
----
414
-1131

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-930
SELECT ALL - COALESCE ( + COUNT( * ), + COUNT( * ) ) DIV + 66 col0
----
0

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL - COALESCE ( + COUNT ( * ), + COUNT ( * ) ) / + 66 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT ALL - - 52 * + + SUM( DISTINCT + - ( - 26 ) ) - - 83 + - 88 + + + 66 - + COUNT( * )
----
1412

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL - - 52 * + + SUM ( DISTINCT + - ( - 26 ) ) - - 83 + - 88 + + + 66 - + COUNT ( * )
----
1412

onlyif mysql # DIV for integer division: 
query I rowsort label-932
SELECT DISTINCT 5 DIV 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-932
SELECT DISTINCT 5 / 82 AS col1
----
0

query I rowsort
SELECT ALL + COALESCE ( + - 96, 79 + + - 40 * 16 ) + 6
----
-90

query I rowsort
SELECT - 49 + 4
----
-45

query I rowsort
SELECT - + 29 col2
----
-29

query II rowsort
SELECT + 79 AS col0, + 77
----
79
77

onlyif mysql # DIV for integer division: 
query I rowsort label-937
SELECT - 76 + + - 52 DIV + + ( + + 73 ) + 14 * + - 65 + + + 91 DIV + 17
----
-981

skipif mysql # not compatible
query I rowsort label-937
SELECT - 76 + + - 52 / + + ( + + 73 ) + 14 * + - 65 + + + 91 / + 17
----
-981

query II rowsort
SELECT 52 AS col0, 49 * + 40 + - + 6 AS col2
----
52
1954

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-940
SELECT - + CAST( NULL AS SIGNED ) + + ( 20 ) col0, - 40
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-940
SELECT - + CAST ( NULL AS INTEGER ) + + ( 20 ) col0, - 40
----
NULL
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT ALL 81 / 13 + CASE - - 58 WHEN + 27 THEN + 12 * - - 68 WHEN - COUNT( * ) / + - 66 * - COUNT( * ) + - 78 THEN NULL WHEN 99 * + 34 * + - 90 THEN - ( + 59 ) END, + 31 * + 62 * 31 AS col0
----
NULL
59582

skipif mysql # not compatible
query II rowsort label-941
SELECT ALL 81 / 13 + CASE - - 58 WHEN + 27 THEN + 12 * - - 68 WHEN - COUNT ( * ) / + - 66 * - COUNT ( * ) + - 78 THEN NULL WHEN 99 * + 34 * + - 90 THEN - ( + 59 ) END, + 31 * + 62 * 31 AS col0
----
NULL
59582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-942
SELECT ALL - - COUNT( * ) / + 81 + + CAST( 56 AS SIGNED ) + - 7 * - CASE + 69 WHEN + + CAST( NULL AS SIGNED ) + + 76 THEN NULL WHEN + 68 THEN + 66 / - - 80 * - 75 + - MIN( - 88 ) + 18 + + ( NULLIF ( + NULLIF ( - COUNT( * ), - + 41 ), - NULLIF ( + COUNT( ALL CAST( - 98 AS DECIMAL ) ), - + 3 ) ) ) * - + 20 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL - - COUNT ( * ) / + 81 + + CAST ( 56 AS INTEGER ) + - 7 * - CASE + 69 WHEN + + CAST ( NULL AS INTEGER ) + + 76 THEN NULL WHEN + 68 THEN + 66 / - - 80 * - 75 + - MIN ( - 88 ) + 18 + + ( NULLIF ( + NULLIF ( - COUNT ( * ), - + 41 ), - NULLIF ( + COUNT ( ALL CAST ( - 98 AS REAL ) ), - + 3 ) ) ) * - + 20 END AS col0
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-945
SELECT ALL + 81 DIV + 95 - - ( + + ( 88 ) )
----
88

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL + 81 / + 95 - - ( + + ( 88 ) )
----
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-946
SELECT - 83 - + 68 * 98 / - CAST( NULL AS DECIMAL ) + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-946
SELECT - 83 - + 68 * 98 / - CAST ( NULL AS REAL ) + - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT - 88 * + ( - CASE + SUM( + 80 ) WHEN + + 39 THEN - COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-947
SELECT - 88 * + ( - CASE + SUM ( + 80 ) WHEN + + 39 THEN - COUNT ( * ) END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-948
SELECT - 76 * CASE + ( 12 ) WHEN + 70 - + CAST( NULL AS SIGNED ) + - 80 THEN + - 4 END - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-948
SELECT - 76 * CASE + ( 12 ) WHEN + 70 - + CAST ( NULL AS INTEGER ) + - 80 THEN + - 4 END - 95
----
NULL

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

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

query I rowsort
SELECT ( + CASE 68 WHEN + 29 THEN NULL ELSE - 55 END ) AS col2
----
-55

query I rowsort
SELECT - 52 * ( - - 84 )
----
-4368

query I rowsort
SELECT ALL 13 * - + 1 - - NULLIF ( 97, 2 ) AS col2
----
84

query I rowsort
SELECT ALL + 37 * 92 * 7 AS col2
----
23828

query I rowsort
SELECT - 5 - + 44
----
-49

query II rowsort
SELECT 32 * + 33, 9 AS col1
----
1056
9

onlyif mysql # aggregate syntax: 
query II rowsort label-956
SELECT 68 * - - 73, COUNT( * ) AS col1
----
4964
1

skipif mysql # not compatible
query II rowsort label-956
SELECT 68 * - - 73, COUNT ( * ) AS col1
----
4964
1

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT 36 AS col0, COUNT( * )
----
36
1

skipif mysql # not compatible
query II rowsort label-957
SELECT 36 AS col0, COUNT ( * )
----
36
1

query I rowsort
SELECT 51 + - 44
----
7

query I rowsort
SELECT ALL 57 * + 48
----
2736

query I rowsort
SELECT 58 * - 34 * + 83
----
-163676

query I rowsort
SELECT DISTINCT 92 * + + 84
----
7728

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT DISTINCT 12 + - 34 * 72 + + - ( SUM( ALL + + 37 ) ) + - + COUNT( * ) col2
----
-2474

skipif mysql # not compatible
query I rowsort label-963
SELECT DISTINCT 12 + - 34 * 72 + + - ( SUM ( ALL + + 37 ) ) + - + COUNT ( * ) col2
----
-2474

query I rowsort
SELECT ALL - 90 + + - 96
----
-186

query I rowsort
SELECT ALL + 15 + - 12 AS col1
----
3

query I rowsort
SELECT 7 + - 95 col1
----
-88

query I rowsort
SELECT + 17 * + + 11 - + 9
----
178

onlyif mysql # DIV for integer division: 
query I rowsort label-968
SELECT ALL + 66 DIV + - 93
----
0

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL + 66 / + - 93
----
0

query I rowsort
SELECT ALL 96 + - - 39 col2
----
135

query I rowsort
SELECT ALL - 97 + - + ( + 2 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT ALL - + ( - MAX( - 53 ) ) + + 91 + + 20 * + + 18
----
398

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL - + ( - MAX ( - 53 ) ) + + 91 + + 20 * + + 18
----
398

onlyif mysql # DIV for integer division: 
query I rowsort label-972
SELECT ALL 23 DIV - 12 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL 23 / - 12 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-973
SELECT + 70 DIV - + 74 * + 11 + 97
----
97

skipif mysql # not compatible
query I rowsort label-973
SELECT + 70 / - + 74 * + 11 + 97
----
97

query I rowsort
SELECT - 61 * 72 * + - 57 * + 75 + - 11 col2
----
18775789

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT DISTINCT - COUNT( ALL + + 6 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-975
SELECT DISTINCT - COUNT ( ALL + + 6 ) col2
----
-1

query I rowsort
SELECT 17 + 88 * + 79 col1
----
6969

query II rowsort
SELECT DISTINCT 0 * 29, - 88 AS col0
----
0
-88

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

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

query I rowsort
SELECT COALESCE ( + 99, - 0 * + 17 ) * + 77 AS col1
----
7623

query I rowsort
SELECT 61 + - + 99 AS col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-981
SELECT ALL - CAST( - 62 AS SIGNED ) DIV + 11 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL - CAST ( - 62 AS INTEGER ) / + 11 AS col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-982
SELECT SUM( DISTINCT + 1 ) * + + 45 * + - ( - + 61 ) + + 2 + + 27 + - COUNT( * ) DIV 82
----
2774

skipif mysql # not compatible
query I rowsort label-982
SELECT SUM ( DISTINCT + 1 ) * + + 45 * + - ( - + 61 ) + + 2 + + 27 + - COUNT ( * ) / 82
----
2774

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT + MAX( + + 35 ) * - 30 + 72 col0
----
-978

skipif mysql # not compatible
query I rowsort label-983
SELECT + MAX ( + + 35 ) * - 30 + 72 col0
----
-978

query I rowsort
SELECT ALL + 42 * - 94
----
-3948

query I rowsort
SELECT 58 + + 24
----
82

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

skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT + 61 * - + COUNT ( * ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT ALL MIN( - 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL MIN ( - 20 ) AS col2
----
-20

query I rowsort
SELECT DISTINCT - 88 + + - 71 AS col2
----
-159

query I rowsort
SELECT - 52 - + 55 col0
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT - MIN( ALL + 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-990
SELECT - MIN ( ALL + 63 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT + 89 * + + ( + COUNT( * ) ) + + - ( - MIN( - 18 ) )
----
71

skipif mysql # not compatible
query I rowsort label-991
SELECT + 89 * + + ( + COUNT ( * ) ) + + - ( - MIN ( - 18 ) )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-992
SELECT DISTINCT - - 81 + + 89 * + CAST( + COUNT( * ) AS SIGNED ) * - 39 AS col2
----
-3390

skipif mysql # not compatible
query I rowsort label-992
SELECT DISTINCT - - 81 + + 89 * + CAST ( + COUNT ( * ) AS INTEGER ) * - 39 AS col2
----
-3390

onlyif mysql # DIV for integer division: 
query I rowsort label-993
SELECT ALL - - 31 + + + 64 + + 94 + 13 DIV 52
----
189

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL - - 31 + + + 64 + + 94 + 13 / 52
----
189

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-994
SELECT - - ( - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-994
SELECT - - ( - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-995
SELECT COUNT( DISTINCT 14 ) + COUNT( DISTINCT + + 66 ) + 47 * 5 + - + 7 AS col1, - 1 AS col1
----
230
-1

skipif mysql # not compatible
query II rowsort label-995
SELECT COUNT ( DISTINCT 14 ) + COUNT ( DISTINCT + + 66 ) + 47 * 5 + - + 7 AS col1, - 1 AS col1
----
230
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT DISTINCT + 78 + 8 * + MAX( DISTINCT - 44 ) + - 28
----
-302

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT + 78 + 8 * + MAX ( DISTINCT - 44 ) + - 28
----
-302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-997
SELECT DISTINCT + CAST( NULLIF ( 16, - + ( + - COUNT( * ) ) + COUNT( * ) * + + CAST( NULL AS SIGNED ) * ( - 17 ) - - 8 ) AS SIGNED ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-997
SELECT DISTINCT + CAST ( NULLIF ( 16, - + ( + - COUNT ( * ) ) + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * ( - 17 ) - - 8 ) AS INTEGER ) AS col2
----
16

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

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

query I rowsort
SELECT + ( - 53 ) * + NULLIF ( - + 37, - 89 )
----
1961

query II rowsort
SELECT + ( 67 ), 29 - 90 col0
----
67
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT SUM( + 78 ) + + + 25 + - 51 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-1001
SELECT SUM ( + 78 ) + + + 25 + - 51 AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1002
SELECT ALL 30 - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL 30 - CAST ( NULL AS INTEGER ) col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1004
SELECT DISTINCT - COALESCE ( 65, + MAX( ALL + - 21 ) ) - COUNT( * ) AS col1, 17
----
-66
17

skipif mysql # not compatible
query II rowsort label-1004
SELECT DISTINCT - COALESCE ( 65, + MAX ( ALL + - 21 ) ) - COUNT ( * ) AS col1, 17
----
-66
17

query I rowsort
SELECT 84 * + 57 * - + 21 AS col0
----
-100548

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT CASE 32 WHEN - 48 * 99 + + + 84 THEN NULL WHEN ( + - 87 ) * - 30 * + 48 * 12 THEN NULL WHEN - 50 THEN + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1006
SELECT CASE 32 WHEN - 48 * 99 + + + 84 THEN NULL WHEN ( + - 87 ) * - 30 * + 48 * 12 THEN NULL WHEN - 50 THEN + + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL - 27 * 44 - + - 70 AS col1
----
-1118

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1009
SELECT + COALESCE ( - SUM( + 38 ), - + 68, - + 64 - - 49 * - 22 - + 59 ) AS col1, + 31 + - 34 + + - 14 + CASE - 43 WHEN - CAST( 94 AS SIGNED ) THEN - - 26 WHEN + + 17 THEN - 42 END + - 49 + + MAX( - 72 ) + - ( + 5 )
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-1009
SELECT + COALESCE ( - SUM ( + 38 ), - + 68, - + 64 - - 49 * - 22 - + 59 ) AS col1, + 31 + - 34 + + - 14 + CASE - 43 WHEN - CAST ( 94 AS INTEGER ) THEN - - 26 WHEN + + 17 THEN - 42 END + - 49 + + MAX ( - 72 ) + - ( + 5 )
----
-38
NULL

query I rowsort
SELECT + 76 * + 60 AS col0
----
4560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1011
SELECT ALL + COUNT( CAST( - + 37 AS SIGNED ) ) AS col0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT COUNT( + 5 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1012
SELECT COUNT ( + 5 ) AS col1
----
1

query I rowsort
SELECT + 52 * + + 49 AS col0
----
2548

onlyif mysql # aggregate syntax: 
query II rowsort label-1014
SELECT COUNT( * ), - 79 AS col0
----
1
-79

skipif mysql # not compatible
query II rowsort label-1014
SELECT COUNT ( * ), - 79 AS col0
----
1
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1015
SELECT COUNT( * ), - COUNT( DISTINCT - + COALESCE ( - + 3, - 68 * CAST( + - 91 AS SIGNED ) * 8 ) ) + + 87 * - - 66 col0
----
1
5741

skipif mysql # not compatible
query II rowsort label-1015
SELECT COUNT ( * ), - COUNT ( DISTINCT - + COALESCE ( - + 3, - 68 * CAST ( + - 91 AS INTEGER ) * 8 ) ) + + 87 * - - 66 col0
----
1
5741

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT ALL 81 * - - ( + COUNT( * ) ) * - - COUNT( * ) - ( ( 35 ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL 81 * - - ( + COUNT ( * ) ) * - - COUNT ( * ) - ( ( 35 ) ) AS col1
----
46

query I rowsort
SELECT ALL 17 * + 8 + - 92
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT + COUNT( * ) + - + 84 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-1018
SELECT + COUNT ( * ) + - + 84 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT ALL 66 * 80 * + + 53 + + - 81 * + COUNT( * ) AS col2
----
279759

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL 66 * 80 * + + 53 + + - 81 * + COUNT ( * ) AS col2
----
279759

query I rowsort
SELECT DISTINCT + COALESCE ( - + ( + 38 ), - - ( - 39 ), 73 ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT ALL 4 * + 16 + + 72 * 98 * COUNT( * ) * - 60
----
-423296

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL 4 * + 16 + + 72 * 98 * COUNT ( * ) * - 60
----
-423296

query I rowsort
SELECT - ( + 77 ) - + 3 * + + 35 AS col1
----
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-1023
SELECT - ( + ( 33 ) ) DIV + CASE + - 69 WHEN 1 DIV + 62 - - 4 THEN - 52 ELSE - 68 + - 4 END col1
----
0

skipif mysql # not compatible
query I rowsort label-1023
SELECT - ( + ( 33 ) ) / + CASE + - 69 WHEN 1 / + 62 - - 4 THEN - 52 ELSE - 68 + - 4 END col1
----
0

query I rowsort
SELECT 96 * - + 81 * - 69 * + 58 + + - 19 - + + 89
----
31119444

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1025
SELECT ALL - - CAST( + CAST( - 93 AS DECIMAL ) AS SIGNED ) + - 16 col2
----
-109

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL - - CAST ( + CAST ( - 93 AS REAL ) AS INTEGER ) + - 16 col2
----
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1026
SELECT DISTINCT + - COUNT( * ) DIV + SUM( + 11 ) + MAX( + + 54 ) * + + 57 AS col2
----
3078

skipif mysql # not compatible
query I rowsort label-1026
SELECT DISTINCT + - COUNT ( * ) / + SUM ( + 11 ) + MAX ( + + 54 ) * + + 57 AS col2
----
3078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1027
SELECT - + 21 DIV - NULLIF ( - MAX( DISTINCT - 49 ), - 97 ) * 54 + 15 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-1027
SELECT - + 21 / - NULLIF ( - MAX ( DISTINCT - 49 ), - 97 ) * 54 + 15 AS col2
----
15

query I rowsort
SELECT ALL + 99 * + - ( + - 35 ) * - + 4 * - + 17 AS col0
----
235620

query I rowsort
SELECT DISTINCT + 66 * + 23 AS col2
----
1518

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT ALL COALESCE ( - 97, + + COUNT( * ) )
----
-97

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL COALESCE ( - 97, + + COUNT ( * ) )
----
-97

query I rowsort
SELECT - + 44 * + - 5 * 51
----
11220

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT ALL - - COUNT( * ) - - - 7 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL - - COUNT ( * ) - - - 7 AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1033
SELECT DISTINCT + 55 AS col0, CAST( 85 AS SIGNED ) * + - 50 + + 81 * - 4 * + 45
----
55
-18830

skipif mysql # not compatible
query II rowsort label-1033
SELECT DISTINCT + 55 AS col0, CAST ( 85 AS INTEGER ) * + - 50 + + 81 * - 4 * + 45
----
55
-18830

query I rowsort
SELECT - + 94 + - 69 AS col2
----
-163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1035
SELECT - 75 * + + CAST( NULL AS SIGNED ) / - 7 + - ( - - 35 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1035
SELECT - 75 * + + CAST ( NULL AS INTEGER ) / - 7 + - ( - - 35 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT - - COUNT( * ) + 79 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1036
SELECT - - COUNT ( * ) + 79 AS col2
----
80

query I rowsort
SELECT ( CASE + 65 WHEN + 69 - + - 0 THEN + - 1 END ) AS col0
----
NULL

query II rowsort
SELECT - - 6 AS col0, - 93 * 22 col1
----
6
-2046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1039
SELECT - - 17 + + + COALESCE ( + + COUNT( * ), + + COALESCE ( - - CAST( ( 55 ) AS SIGNED ), + COUNT( * ) * - + 89 + - 54, 9 + 56 ) ) DIV ( + 45 )
----
17

skipif mysql # not compatible
query I rowsort label-1039
SELECT - - 17 + + + COALESCE ( + + COUNT ( * ), + + COALESCE ( - - CAST ( ( 55 ) AS INTEGER ), + COUNT ( * ) * - + 89 + - 54, 9 + 56 ) ) / ( + 45 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1040
SELECT ALL + COALESCE ( + CAST( NULL AS SIGNED ), - - 59 ) * + 85
----
5015

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL + COALESCE ( + CAST ( NULL AS INTEGER ), - - 59 ) * + 85
----
5015

query I rowsort
SELECT - 30 - - 0 AS col1
----
-30

query I rowsort
SELECT - 0 + + + 78 - 86
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1043
SELECT ALL + 78 * - 29 col0, - CAST( NULL AS DECIMAL )
----
-2262
NULL

skipif mysql # not compatible
query II rowsort label-1043
SELECT ALL + 78 * - 29 col0, - CAST ( NULL AS REAL )
----
-2262
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1044
SELECT CASE 72 WHEN 56 THEN + NULLIF ( CAST( + 97 AS SIGNED ), - 67 ) * + 87 WHEN - 85 + + - 42 THEN NULL ELSE NULL END * - 71 + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1044
SELECT CASE 72 WHEN 56 THEN + NULLIF ( CAST ( + 97 AS INTEGER ), - 67 ) * + 87 WHEN - 85 + + - 42 THEN NULL ELSE NULL END * - 71 + - 30
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1045
SELECT - MAX( 67 ) DIV - - 10 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-1045
SELECT - MAX ( 67 ) / - - 10 AS col2
----
-6

query II rowsort
SELECT ( 14 ) AS col1, + 36 * + + 31
----
14
1116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1047
SELECT ALL COUNT( * ) DIV + ( - ( + + MIN( - - 27 ) ) ) + - + 7
----
-7

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL COUNT ( * ) / + ( - ( + + MIN ( - - 27 ) ) ) + - + 7
----
-7

query I rowsort
SELECT + 46 + - 11 col1
----
35

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1050
SELECT ALL 87 * CAST( - - 75 AS SIGNED ) + + + 60 AS col2
----
6585

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL 87 * CAST ( - - 75 AS INTEGER ) + + + 60 AS col2
----
6585

query I rowsort
SELECT ALL 81 * + - 83 + 25 + + + 49 * 61
----
-3709

onlyif mysql # DIV for integer division: 
query I rowsort label-1052
SELECT - 86 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-1052
SELECT - 86 / - 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1053
SELECT ALL 98 DIV - 30 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL 98 / - 30 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT + MAX( + 8 ) * MAX( 72 )
----
576

skipif mysql # not compatible
query I rowsort label-1054
SELECT + MAX ( + 8 ) * MAX ( 72 )
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT + ( - 95 ) + + - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-1055
SELECT + ( - 95 ) + + - COUNT ( * )
----
-96

query I rowsort
SELECT DISTINCT 92 * 31
----
2852

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

skipif mysql # not compatible
query I rowsort label-1057
SELECT + + MIN ( + 48 )
----
48

query I rowsort
SELECT + - NULLIF ( 41, 40 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT ALL 0 * + 43 + MAX( DISTINCT - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL 0 * + 43 + MAX ( DISTINCT - 17 )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1060
SELECT ALL - MIN( ALL + CAST( + - ( 16 ) AS SIGNED ) ) * + 78
----
1248

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL - MIN ( ALL + CAST ( + - ( 16 ) AS INTEGER ) ) * + 78
----
1248

query II rowsort
SELECT DISTINCT + - NULLIF ( + 36, NULLIF ( 89, - - 97 ) * - 24 * 90 ) AS col1, - 63 AS col0
----
-36
-63

query I rowsort
SELECT ALL - COALESCE ( - 40, + - 56 ) * 66 - - + 37
----
2677

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT + + 29 - + - 96 + - 85 DIV 79 col2
----
124

skipif mysql # not compatible
query I rowsort label-1063
SELECT + + 29 - + - 96 + - 85 / 79 col2
----
124

query I rowsort
SELECT 7 * - ( ( - + 28 ) ) + 46 + - 98 + - 75 AS col1
----
69

query I rowsort
SELECT + 73 * - 88
----
-6424

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT - + COUNT( * ) + - + 5 + 3 + + - 22 + + 92 col2
----
67

skipif mysql # not compatible
query I rowsort label-1066
SELECT - + COUNT ( * ) + - + 5 + 3 + + - 22 + + 92 col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1067
SELECT + - NULLIF ( - 77, 4 + + - NULLIF ( 87, + + COUNT( * ) + CAST( - SUM( - + 29 ) AS DECIMAL ) ) - - 8 + - 24 + + 95 ) + 31
----
108

skipif mysql # not compatible
query I rowsort label-1067
SELECT + - NULLIF ( - 77, 4 + + - NULLIF ( 87, + + COUNT ( * ) + CAST ( - SUM ( - + 29 ) AS REAL ) ) - - 8 + - 24 + + 95 ) + 31
----
108

query I rowsort
SELECT - + COALESCE ( - 86, - 94 * - 76 + - 11 + + + 52 )
----
86

query I rowsort
SELECT - - 71 * - 8 + 72 AS col2
----
-496

onlyif mysql # aggregate syntax: 
query II rowsort label-1070
SELECT ALL - 60 * + COUNT( * ) AS col1, MAX( 77 ) * COUNT( * ) AS col0
----
-60
77

skipif mysql # not compatible
query II rowsort label-1070
SELECT ALL - 60 * + COUNT ( * ) AS col1, MAX ( 77 ) * COUNT ( * ) AS col0
----
-60
77

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

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

query II rowsort
SELECT 17 * - ( - + 51 ) AS col1, COALESCE ( - - 82, - 80 )
----
867
82

query I rowsort
SELECT ALL + ( 22 ) * - 44 AS col0
----
-968

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

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

query II rowsort
SELECT - 35, 20 col0
----
-35
20

query II rowsort
SELECT 48, + 50 AS col1
----
48
50

query I rowsort
SELECT 52 * ( 89 )
----
4628

query I rowsort
SELECT DISTINCT 52 + + 22 * + 83
----
1878

query I rowsort
SELECT 51 + 73 * + - 6 * - 98 * 68 * - ( - NULLIF ( - 21, + 86 * 57 + - 29 * + 72 ) )
----
-61295421

onlyif mysql # DIV for integer division: 
query II rowsort label-1080
SELECT ALL - COALESCE ( + 32, + 18 - 86 + - 10 ) AS col0, - 28 DIV + 84 + + 57 + 27
----
-32
84

skipif mysql # not compatible
query II rowsort label-1080
SELECT ALL - COALESCE ( + 32, + 18 - 86 + - 10 ) AS col0, - 28 / + 84 + + 57 + 27
----
-32
84

query I rowsort
SELECT ALL - 29 * 10 AS col0
----
-290

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

skipif mysql # not compatible
query I rowsort label-1082
SELECT DISTINCT - COUNT ( * ) * - + 28 AS col1
----
28

query I rowsort
SELECT ALL 51 - + + 96 * - NULLIF ( - 71, - 93 ) - + 88
----
-6853

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1084
SELECT + 76 * + ( - + 60 ) - - 85 / - + MAX( DISTINCT + - 16 ) * + CAST( NULL AS SIGNED ) * + + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1084
SELECT + 76 * + ( - + 60 ) - - 85 / - + MAX ( DISTINCT + - 16 ) * + CAST ( NULL AS INTEGER ) * + + 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT COUNT( DISTINCT + + 68 ) * + 79 - 38 + 48 * + 3 * - + COUNT( * ) AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-1085
SELECT COUNT ( DISTINCT + + 68 ) * + 79 - 38 + 48 * + 3 * - + COUNT ( * ) AS col1
----
-103

query I rowsort
SELECT ALL - - 94 col1
----
94

query I rowsort
SELECT 28 * + + 19 - 67 AS col0
----
465

query II rowsort
SELECT DISTINCT - 72, - ( - 66 ) + 98 AS col0
----
-72
164

query I rowsort
SELECT ALL 7 - - 16 AS col2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT DISTINCT + 49 DIV 44 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT + 49 / 44 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT - 34 + COUNT( ALL - 51 )
----
-33

skipif mysql # not compatible
query I rowsort label-1091
SELECT - 34 + COUNT ( ALL - 51 )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1092
SELECT + - CAST( + 56 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-1092
SELECT + - CAST ( + 56 AS INTEGER )
----
-56

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

skipif mysql # not compatible
query I rowsort label-1093
SELECT 0 / + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 27 * - 37 AS col1
----
-999

query I rowsort
SELECT ALL + 97 * - 72
----
-6984

onlyif mysql # aggregate syntax: 
query II rowsort label-1096
SELECT + COUNT( - 93 ) + - - 33 col2, 8 + 11 - + 11
----
34
8

skipif mysql # not compatible
query II rowsort label-1096
SELECT + COUNT ( - 93 ) + - - 33 col2, 8 + 11 - + 11
----
34
8

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

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

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

skipif mysql # not compatible
query I rowsort label-1098
SELECT - + 40 * ( + + 86 ) + COUNT ( * ) AS col1
----
-3439

query I rowsort
SELECT ALL - 15 + + - ( - 43 )
----
28

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

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

query I rowsort
SELECT + 59 + ( + 86 ) - + + 36 + + 74
----
183

query II rowsort
SELECT 77 AS col1, - 49 + + - 50 * ( + 4 ) + + - 7
----
77
-256

query II rowsort
SELECT ALL 31 AS col2, - 8 + - 41 + 47 + 38 * + ( + 37 ) + - 78
----
31
1326

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1104
SELECT DISTINCT - 15 * 18 * CAST( NULL AS DECIMAL ) * 1 col0, 22 * + COUNT( * ) AS col1
----
NULL
22

skipif mysql # not compatible
query II rowsort label-1104
SELECT DISTINCT - 15 * 18 * CAST ( NULL AS REAL ) * 1 col0, 22 * + COUNT ( * ) AS col1
----
NULL
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1105
SELECT DISTINCT MIN( ALL - 87 ) DIV + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1105
SELECT DISTINCT MIN ( ALL - 87 ) / + 91 AS col1
----
0

query I rowsort
SELECT ALL - 88 + + 72 AS col0
----
-16

query I rowsort
SELECT DISTINCT 22 * 7 AS col2
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1108
SELECT CAST( + COUNT( * ) AS SIGNED ) + - COALESCE ( - CASE + 21 WHEN 3 THEN - + 18 * - - 87 + + + ( - 40 ) WHEN + 22 THEN NULL END, + 16 * - 95 * + 95 ) DIV 74 col2
----
1952

skipif mysql # not compatible
query I rowsort label-1108
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + - COALESCE ( - CASE + 21 WHEN 3 THEN - + 18 * - - 87 + + + ( - 40 ) WHEN + 22 THEN NULL END, + 16 * - 95 * + 95 ) / 74 col2
----
1952

onlyif mysql # DIV for integer division: 
query I rowsort label-1109
SELECT 86 + 51 + - 30 DIV + ( + 57 ) AS col2
----
137

skipif mysql # not compatible
query I rowsort label-1109
SELECT 86 + 51 + - 30 / + ( + 57 ) AS col2
----
137

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT + SUM( DISTINCT - 97 ) col0
----
-97

skipif mysql # not compatible
query I rowsort label-1111
SELECT + SUM ( DISTINCT - 97 ) col0
----
-97

query II rowsort
SELECT ALL - 41 AS col2, - 19 * - + 52
----
-41
988

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT 12 * + + 83 * COUNT( * ) AS col1
----
996

skipif mysql # not compatible
query I rowsort label-1113
SELECT 12 * + + 83 * COUNT ( * ) AS col1
----
996

query II rowsort
SELECT ALL - 15, - 91 + + 95 AS col0
----
-15
4

onlyif mysql # aggregate syntax: 
query III rowsort label-1115
SELECT COUNT( * ) AS col0, - 52 AS col1, - COUNT( * ) AS col0
----
1
-52
-1

skipif mysql # not compatible
query III rowsort label-1115
SELECT COUNT ( * ) AS col0, - 52 AS col1, - COUNT ( * ) AS col0
----
1
-52
-1

query I rowsort
SELECT 62 * - 43 + + 71 AS col0
----
-2595

query I rowsort
SELECT + 61 * 13 * 6
----
4758

query I rowsort
SELECT DISTINCT - 20 * - 71
----
1420

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT - + COALESCE ( 81, - CASE - 85 WHEN + - 29 THEN + 49 + 22 END ) * CASE MIN( + - 9 ) WHEN 62 THEN - 90 END - - NULLIF ( 81, - SUM( 39 ) * + + 45 * 89 ) / + - 50 / - 94 / + - 14 + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-1119
SELECT - + COALESCE ( 81, - CASE - 85 WHEN + - 29 THEN + 49 + 22 END ) * CASE MIN ( + - 9 ) WHEN 62 THEN - 90 END - - NULLIF ( 81, - SUM ( 39 ) * + + 45 * 89 ) / + - 50 / - 94 / + - 14 + - 87
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1120
SELECT + + 91, 50 DIV + + COUNT( * ) * + + COUNT( * ) col2
----
91
50

skipif mysql # not compatible
query II rowsort label-1120
SELECT + + 91, 50 / + + COUNT ( * ) * + + COUNT ( * ) col2
----
91
50

query I rowsort
SELECT 66 * + + 85 AS col2
----
5610

query I rowsort
SELECT 32 * + 85 * 16 + 53
----
43573

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT DISTINCT - COUNT( ALL + 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT - COUNT ( ALL + 26 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT - 77 + - SUM( ALL + 88 ) AS col1
----
-165

skipif mysql # not compatible
query I rowsort label-1124
SELECT - 77 + - SUM ( ALL + 88 ) AS col1
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-1125
SELECT ALL - 24 + + 13 * - 18 + + - 92 DIV 85
----
-259

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL - 24 + + 13 * - 18 + + - 92 / 85
----
-259

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT ALL - - SUM( - 19 ) col0
----
-19

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL - - SUM ( - 19 ) col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1127
SELECT ALL - 44 + - + NULLIF ( + 93, + COUNT( * ) + + 56 ) + + + CAST( NULL AS SIGNED ) + COUNT( * ) + - - 40 * COUNT( * ) / 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL - 44 + - + NULLIF ( + 93, + COUNT ( * ) + + 56 ) + + + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - - 40 * COUNT ( * ) / 80
----
NULL

query I rowsort
SELECT ALL 35 + - + 57 + - 18 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT - + COUNT( ALL + - 11 ) * - - ( - 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1129
SELECT - + COUNT ( ALL + - 11 ) * - - ( - 3 ) AS col2
----
3

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

query I rowsort
SELECT DISTINCT 92 + - 35 col0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1132
SELECT ALL 97 + - 54 DIV - - 95 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL 97 + - 54 / - - 95 AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1133
SELECT - - CASE - 66 WHEN + 84 / + 96 THEN NULL ELSE + COALESCE ( 41, - 89 * ( - - ( 73 ) ) - - CAST( NULL AS SIGNED ) ) END
----
41

skipif mysql # not compatible
query I rowsort label-1133
SELECT - - CASE - 66 WHEN + 84 / + 96 THEN NULL ELSE + COALESCE ( 41, - 89 * ( - - ( 73 ) ) - - CAST ( NULL AS INTEGER ) ) END
----
41

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

skipif mysql # not compatible
query I rowsort label-1134
SELECT DISTINCT 82 * + COUNT ( * ) AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1135
SELECT DISTINCT - CAST( + ( + 72 ) AS SIGNED ) + + 42 * ( + 79 ) AS col1
----
3246

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT - CAST ( + ( + 72 ) AS INTEGER ) + + 42 * ( + 79 ) AS col1
----
3246

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1137
SELECT ALL COUNT( * ) + + 24 * - - CAST( + + 89 AS SIGNED )
----
2137

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL COUNT ( * ) + + 24 * - - CAST ( + + 89 AS INTEGER )
----
2137

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT + ( - 48 ) + 43 * + + 28 + - 74 - + COUNT( * ) * + COUNT( * ) * 39 + 34 * + - COALESCE ( + - 63, + 77 ) * - - ( + - 23 ) * 61 AS col2
----
-3004183

skipif mysql # not compatible
query I rowsort label-1138
SELECT + ( - 48 ) + 43 * + + 28 + - 74 - + COUNT ( * ) * + COUNT ( * ) * 39 + 34 * + - COALESCE ( + - 63, + 77 ) * - - ( + - 23 ) * 61 AS col2
----
-3004183

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT + MIN( ALL 16 ) + + 69 + + COUNT( * ) col1
----
86

skipif mysql # not compatible
query I rowsort label-1139
SELECT + MIN ( ALL 16 ) + + 69 + + COUNT ( * ) col1
----
86

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

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

query II rowsort
SELECT DISTINCT 69 * + 76, - 99 AS col0
----
5244
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT - COALESCE ( 16, - - MIN( DISTINCT + + 50 ) * + ( + 64 ) + - 38 - - - 74 + - 25, - - COUNT( * ) ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1142
SELECT - COALESCE ( 16, - - MIN ( DISTINCT + + 50 ) * + ( + 64 ) + - 38 - - - 74 + - 25, - - COUNT ( * ) ) AS col0
----
-16

query II rowsort
SELECT ( 48 ), 12 AS col0
----
48
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1144
SELECT ALL 15 DIV + 16 AS col0, 15 - - 85 DIV COUNT( * )
----
0
100

skipif mysql # not compatible
query II rowsort label-1144
SELECT ALL 15 / + 16 AS col0, 15 - - 85 / COUNT ( * )
----
0
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1145
SELECT + 12 DIV COUNT( * ) DIV + 3 DIV - COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1145
SELECT + 12 / COUNT ( * ) / + 3 / - COUNT ( * ) AS col2
----
-4

query I rowsort
SELECT 41 * - 17 + + + 54 AS col2
----
-643

onlyif mysql # aggregate syntax: 
query II rowsort label-1147
SELECT ALL + - MAX( ALL + - 48 ) AS col2, 38
----
48
38

skipif mysql # not compatible
query II rowsort label-1147
SELECT ALL + - MAX ( ALL + - 48 ) AS col2, 38
----
48
38

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1148
SELECT - CAST( NULL AS SIGNED ) * + 58 + - 73 + - 59 + - COALESCE ( - 43, + 20 * - ( - 84 ) / - 10 / - - 10 * - + COALESCE ( 89, - + CAST( NULL AS DECIMAL ) + + - 57 ) + + 26 + 71 ) * - + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-1148
SELECT - CAST ( NULL AS INTEGER ) * + 58 + - 73 + - 59 + - COALESCE ( - 43, + 20 * - ( - 84 ) / - 10 / - - 10 * - + COALESCE ( 89, - + CAST ( NULL AS REAL ) + + - 57 ) + + 26 + 71 ) * - + 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT - - COUNT( * ) * - - 7 * + - 35 - 89 + 78 - - 15 + 35 * - CASE - 66 WHEN + + 15 THEN - 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1149
SELECT - - COUNT ( * ) * - - 7 * + - 35 - 89 + 78 - - 15 + 35 * - CASE - 66 WHEN + + 15 THEN - 32 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1150
SELECT DISTINCT 13 * + - 26 + - CAST( + - 32 AS SIGNED ) * CAST( ( 77 ) AS SIGNED ) - + + 2 col2
----
2124

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT 13 * + - 26 + - CAST ( + - 32 AS INTEGER ) * CAST ( ( 77 ) AS INTEGER ) - + + 2 col2
----
2124

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT DISTINCT + 10 * - 61 + - + 30 + - + 38 * - - SUM( DISTINCT - 58 )
----
1564

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT + 10 * - 61 + - + 30 + - + 38 * - - SUM ( DISTINCT - 58 )
----
1564

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT - + MIN( ALL - 65 ) * - 73 * - + 57 * 64 + 44 AS col1
----
17309804

skipif mysql # not compatible
query I rowsort label-1152
SELECT - + MIN ( ALL - 65 ) * - 73 * - + 57 * 64 + 44 AS col1
----
17309804

query I rowsort
SELECT - 66 + 45
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-1154
SELECT + 28 * + - 71, + COUNT( * ) col2
----
-1988
1

skipif mysql # not compatible
query II rowsort label-1154
SELECT + 28 * + - 71, + COUNT ( * ) col2
----
-1988
1

query I rowsort
SELECT NULLIF ( + 50, + 6 * 14 + + 4 ) AS col0
----
50

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

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

query I rowsort
SELECT DISTINCT ( - - ( + 64 ) ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT + ( - MIN( + 5 ) ) * ( + 79 ) AS col0
----
-395

skipif mysql # not compatible
query I rowsort label-1158
SELECT + ( - MIN ( + 5 ) ) * ( + 79 ) AS col0
----
-395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1159
SELECT ALL CAST( + NULLIF ( + COUNT( * ), 29 * 66 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1159
SELECT ALL CAST ( + NULLIF ( + COUNT ( * ), 29 * 66 ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT - ( NULLIF ( 28, + ( + SUM( + ( - 30 ) ) ) ) )
----
-28

skipif mysql # not compatible
query I rowsort label-1160
SELECT - ( NULLIF ( 28, + ( + SUM ( + ( - 30 ) ) ) ) )
----
-28

query I rowsort
SELECT - ( + + 53 ) * - 25 AS col1
----
1325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1162
SELECT + 46 * - + CAST( - CAST( - ( - COUNT( * ) ) AS SIGNED ) AS DECIMAL ) * + CAST( NULL AS SIGNED ), - 46 + COALESCE ( + 80, 15 ) AS col0
----
NULL
34

skipif mysql # not compatible
query II rowsort label-1162
SELECT + 46 * - + CAST ( - CAST ( - ( - COUNT ( * ) ) AS INTEGER ) AS REAL ) * + CAST ( NULL AS INTEGER ), - 46 + COALESCE ( + 80, 15 ) AS col0
----
NULL
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1163
SELECT - CAST( + - 47 AS SIGNED ) + + 69 AS col1, - 49 + + - 24
----
116
-73

skipif mysql # not compatible
query II rowsort label-1163
SELECT - CAST ( + - 47 AS INTEGER ) + + 69 AS col1, - 49 + + - 24
----
116
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1164
SELECT - COUNT( * ) * - - 97 DIV 19
----
-5

skipif mysql # not compatible
query I rowsort label-1164
SELECT - COUNT ( * ) * - - 97 / 19
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1165
SELECT ALL CAST( ( - + COALESCE ( 95, - 37 ) ) AS SIGNED ) col1
----
-95

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL CAST ( ( - + COALESCE ( 95, - 37 ) ) AS INTEGER ) col1
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1166
SELECT + 10 + 54 DIV + 53 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1166
SELECT + 10 + 54 / + 53 AS col2
----
11

query I rowsort
SELECT DISTINCT + 7 * - ( 29 ) AS col0
----
-203

query I rowsort
SELECT + 86 * 48
----
4128

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT + 3 + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1169
SELECT + 3 + - COUNT ( * )
----
2

query I rowsort
SELECT + 80 + 86 + + 21 * - 73
----
-1367

query II rowsort
SELECT + + 59 AS col0, 27 AS col1
----
59
27

query I rowsort
SELECT - NULLIF ( - 14, - 32 ) * 60 + - 49 AS col0
----
791

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

query I rowsort
SELECT + + 79 + + + 1 col2
----
80

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1176
SELECT ALL - - 9 DIV 26 + + - MIN( + + 8 ) + COUNT( * ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL - - 9 / 26 + + - MIN ( + + 8 ) + COUNT ( * ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-1177
SELECT - - 78 * + + ( 96 ) + COUNT( * ) AS col1, MAX( DISTINCT - + 70 ) AS col2
----
7489
-70

skipif mysql # not compatible
query II rowsort label-1177
SELECT - - 78 * + + ( 96 ) + COUNT ( * ) AS col1, MAX ( DISTINCT - + 70 ) AS col2
----
7489
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-1178
SELECT ALL - 21 DIV + + 97 + 25
----
25

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL - 21 / + + 97 + 25
----
25

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

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

query II rowsort
SELECT + 90 AS col0, 0 AS col0
----
90
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT ALL + MIN( DISTINCT 27 ) + + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL + MIN ( DISTINCT 27 ) + + COUNT ( * )
----
28

query I rowsort
SELECT ALL - + ( + 25 ) + 54 AS col1
----
29

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

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

query I rowsort
SELECT DISTINCT 18 + - 86
----
-68

query I rowsort
SELECT DISTINCT 31 + + 68
----
99

query II rowsort
SELECT DISTINCT - 56 - + 88 AS col1, - 27 AS col2
----
-144
-27

query I rowsort
SELECT 45 - + 93 AS col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1189
SELECT CAST( + 19 AS SIGNED ) * - 55 * NULLIF ( + 96, + 49 + + 0 ) * ( COUNT( * ) ) * - - ( + 27 ) + - + SUM( DISTINCT + 80 ) + - 10 + 97 - COALESCE ( - 74, - ( + 72 ) ) DIV + 80 AS col0
----
-2708633

skipif mysql # not compatible
query I rowsort label-1189
SELECT CAST ( + 19 AS INTEGER ) * - 55 * NULLIF ( + 96, + 49 + + 0 ) * ( COUNT ( * ) ) * - - ( + 27 ) + - + SUM ( DISTINCT + 80 ) + - 10 + 97 - COALESCE ( - 74, - ( + 72 ) ) / + 80 AS col0
----
-2708633

query I rowsort
SELECT 90 * - + 56
----
-5040

query I rowsort
SELECT ALL - 38 - + 25 AS col2
----
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-1192
SELECT 80 DIV - 1 AS col1, - 28 * - 16
----
-80
448

skipif mysql # not compatible
query II rowsort label-1192
SELECT 80 / - 1 AS col1, - 28 * - 16
----
-80
448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1193
SELECT ALL + 93 * CASE - 16 WHEN - 2 THEN - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL + 93 * CASE - 16 WHEN - 2 THEN - CAST ( NULL AS INTEGER ) END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL 80 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1195
SELECT 5 * - + 9 AS col2, SUM( 0 )
----
-45
0

skipif mysql # not compatible
query II rowsort label-1195
SELECT 5 * - + 9 AS col2, SUM ( 0 )
----
-45
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1196
SELECT 15 * - + 13 AS col0, COUNT( * ) AS col1
----
-195
1

skipif mysql # not compatible
query II rowsort label-1196
SELECT 15 * - + 13 AS col0, COUNT ( * ) AS col1
----
-195
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT DISTINCT - 49 + 43 DIV - 85 + - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT - 49 + 43 / - 85 + - COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT 31 * + - 55 * - COUNT( * ) AS col0
----
1705

skipif mysql # not compatible
query I rowsort label-1198
SELECT 31 * + - 55 * - COUNT ( * ) AS col0
----
1705

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT 1 - + - 86 + 37 * + 56 * + COUNT( * )
----
2159

skipif mysql # not compatible
query I rowsort label-1199
SELECT 1 - + - 86 + 37 * + 56 * + COUNT ( * )
----
2159

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT DISTINCT - MAX( + 23 ) + 7
----
-16

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT - MAX ( + 23 ) + 7
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-1201
SELECT ALL + 39 + + 62 DIV 57
----
40

skipif mysql # not compatible
query I rowsort label-1201
SELECT ALL + 39 + + 62 / 57
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT DISTINCT 56 + 87 + - 64 + + COUNT( * ) * + ( 6 ) * 3 * 19 AS col1
----
421

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT 56 + 87 + - 64 + + COUNT ( * ) * + ( 6 ) * 3 * 19 AS col1
----
421

query I rowsort
SELECT 12 * + 94 AS col0
----
1128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1204
SELECT ALL + + 68 * + COUNT( * ) * - 50 + + + CAST( NULL AS SIGNED ) AS col0, + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1204
SELECT ALL + + 68 * + COUNT ( * ) * - 50 + + + CAST ( NULL AS INTEGER ) AS col0, + CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT 92 + 91
----
183

query I rowsort
SELECT - 71 * - 9 AS col0
----
639

query I rowsort
SELECT + + ( + + ( - 3 ) ) col2
----
-3

query I rowsort
SELECT ALL - - 63 col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL 20 - 89 + - + 74 + COUNT( * ) / - CASE NULLIF ( 72, - MIN( DISTINCT + 66 ) / + + MAX( ALL + 63 ) ) WHEN - 14 THEN - 57 / - 6 * - + 34 ELSE NULL END * + COUNT( ALL + 56 ) + - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL 20 - 89 + - + 74 + COUNT ( * ) / - CASE NULLIF ( 72, - MIN ( DISTINCT + 66 ) / + + MAX ( ALL + 63 ) ) WHEN - 14 THEN - 57 / - 6 * - + 34 ELSE NULL END * + COUNT ( ALL + 56 ) + - 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT ( - + 65 ) + + NULLIF ( + + 36, - COUNT( * ) ) * + 80 AS col0
----
2815

skipif mysql # not compatible
query I rowsort label-1210
SELECT ( - + 65 ) + + NULLIF ( + + 36, - COUNT ( * ) ) * + 80 AS col0
----
2815

query II rowsort
SELECT + 73 col1, + 49 AS col2
----
73
49

onlyif mysql # aggregate syntax: 
query II rowsort label-1212
SELECT 97 col1, + NULLIF ( - + SUM( + 27 ), + + 39 ) - + ( 81 )
----
97
-108

skipif mysql # not compatible
query II rowsort label-1212
SELECT 97 col1, + NULLIF ( - + SUM ( + 27 ), + + 39 ) - + ( 81 )
----
97
-108

query I rowsort
SELECT DISTINCT 0 * + 88 * 37
----
0

query I rowsort
SELECT ALL 58 * + 2
----
116

query I rowsort
SELECT 61 * - 22 AS col2
----
-1342

query I rowsort
SELECT 96 * + 11
----
1056

onlyif mysql # aggregate syntax: 
query II rowsort label-1217
SELECT 99 + + - MAX( - 68 ) AS col0, - 75 AS col0
----
167
-75

skipif mysql # not compatible
query II rowsort label-1217
SELECT 99 + + - MAX ( - 68 ) AS col0, - 75 AS col0
----
167
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT DISTINCT 64 * CASE - COUNT( * ) WHEN + - AVG ( DISTINCT + - 27 ) * 93 * 6 * - - 14 THEN - 21 WHEN - - ( - 78 ) THEN 13 * - COUNT( * ) - + 15 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT 64 * CASE - COUNT ( * ) WHEN + - AVG ( DISTINCT + - 27 ) * 93 * 6 * - - 14 THEN - 21 WHEN - - ( - 78 ) THEN 13 * - COUNT ( * ) - + 15 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT MAX( ALL 10 ) * - 97 AS col2
----
-970

skipif mysql # not compatible
query I rowsort label-1219
SELECT MAX ( ALL 10 ) * - 97 AS col2
----
-970

query I rowsort
SELECT 96 * + 93 AS col2
----
8928

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT DISTINCT + COUNT( ALL 11 ) * + COUNT( * ) * - 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT + COUNT ( ALL 11 ) * + COUNT ( * ) * - 40 AS col2
----
-40

query II rowsort
SELECT 13 AS col1, + 3 AS col0
----
13
3

query I rowsort
SELECT 86 + - 53 + 10 col0
----
43

query I rowsort
SELECT 21 * + - 94 AS col1
----
-1974

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT ALL - CASE + + 72 WHEN - 26 THEN NULL WHEN + + 17 * - 20 THEN - COUNT( DISTINCT + 19 ) END + - AVG ( ALL - 33 ) + + - AVG ( 1 ) * - 26 + + 88 * - 41 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL - CASE + + 72 WHEN - 26 THEN NULL WHEN + + 17 * - 20 THEN - COUNT ( DISTINCT + 19 ) END + - AVG ( ALL - 33 ) + + - AVG ( 1 ) * - 26 + + 88 * - 41 + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT ALL 58 AS col1, + 55 * 61
----
58
3355

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT DISTINCT SUM( DISTINCT - 35 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-1228
SELECT DISTINCT SUM ( DISTINCT - 35 ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT 11 + + 85 * - SUM( ALL - 83 ) AS col1
----
7066

skipif mysql # not compatible
query I rowsort label-1229
SELECT 11 + + 85 * - SUM ( ALL - 83 ) AS col1
----
7066

query I rowsort
SELECT ALL 50 + - 12
----
38

query I rowsort
SELECT 35 + + + 60
----
95

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

skipif mysql # not compatible
query I rowsort label-1232
SELECT ALL + 52 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - - 71 * 75
----
5325

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

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT - ( + 13 ) / + COUNT ( * ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT MIN( - + 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1235
SELECT MIN ( - + 1 ) AS col0
----
-1

query I rowsort
SELECT - - 22 + + 57 * 39 AS col1
----
2245

query II rowsort
SELECT + + 81 AS col2, 96
----
81
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1238
SELECT CAST( 84 AS SIGNED ) DIV ( + 39 ) + COUNT( * ) col1
----
3

skipif mysql # not compatible
query I rowsort label-1238
SELECT CAST ( 84 AS INTEGER ) / ( + 39 ) + COUNT ( * ) col1
----
3

query I rowsort
SELECT ALL - 67 * - + 14
----
938

query I rowsort
SELECT DISTINCT + 34 * 33
----
1122

query I rowsort
SELECT ALL 74 * + - 25 AS col0
----
-1850

query I rowsort
SELECT ALL - + 99 * + 32
----
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT CASE 93 WHEN - 65 * + + 15 THEN NULL ELSE - - 66 * + + 95 + + COUNT( * ) END AS col2
----
6271

skipif mysql # not compatible
query I rowsort label-1243
SELECT CASE 93 WHEN - 65 * + + 15 THEN NULL ELSE - - 66 * + + 95 + + COUNT ( * ) END AS col2
----
6271

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1245
SELECT + ( - - 26 ) + - - 75 + + CASE + 39 WHEN 97 / + + 24 THEN - - MIN( DISTINCT + 71 ) - + + 96 WHEN - 73 * + CAST( 31 AS DECIMAL ) THEN NULL ELSE NULL END / - - 22 / COUNT( * ) * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1245
SELECT + ( - - 26 ) + - - 75 + + CASE + 39 WHEN 97 / + + 24 THEN - - MIN ( DISTINCT + 71 ) - + + 96 WHEN - 73 * + CAST ( 31 AS REAL ) THEN NULL ELSE NULL END / - - 22 / COUNT ( * ) * - 19
----
NULL

query II rowsort
SELECT + 71 AS col2, 75 AS col2
----
71
75

query I rowsort
SELECT - 41 * + 52
----
-2132

query I rowsort
SELECT + 47 * + 20 col1
----
940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1249
SELECT COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col2, 7 DIV + 6, 39 AS col1
----
0
1
39

skipif mysql # not compatible
query III rowsort label-1249
SELECT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col2, 7 / + 6, 39 AS col1
----
0
1
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1250
SELECT + CAST( NULL AS SIGNED ) + + + 75 + - + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-1250
SELECT + CAST ( NULL AS INTEGER ) + + + 75 + - + 84
----
NULL

query I rowsort
SELECT ALL 5 * + 95 AS col0
----
475

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT + COUNT( * ) * 95 * - 76 * COUNT( * )
----
-7220

skipif mysql # not compatible
query I rowsort label-1252
SELECT + COUNT ( * ) * 95 * - 76 * COUNT ( * )
----
-7220

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT ALL 65 * + 52 * - - 24 + COUNT( * ) AS col0
----
81121

skipif mysql # not compatible
query I rowsort label-1253
SELECT ALL 65 * + 52 * - - 24 + COUNT ( * ) AS col0
----
81121

query I rowsort
SELECT + CASE + 47 WHEN + 90 THEN + 43 ELSE - 58 END
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT + 4 + - + COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1255
SELECT + 4 + - + COUNT ( * ) AS col2
----
3

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1257
SELECT 67 * + ( 72 ) + - 15 * CAST( NULL AS DECIMAL ) + + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1257
SELECT 67 * + ( 72 ) + - 15 * CAST ( NULL AS REAL ) + + 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT ALL 45 * + MAX( - 15 ) * NULLIF ( - - 31, 22 - 65 ) AS col1
----
-20925

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL 45 * + MAX ( - 15 ) * NULLIF ( - - 31, 22 - 65 ) AS col1
----
-20925

query I rowsort
SELECT + 57 + - + 52 AS col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1260
SELECT - CASE - 31 WHEN COUNT( * ) + - 61 THEN + 25 WHEN - 46 THEN NULL ELSE 69 * + 78 - ( + 72 ) * - NULLIF ( - - 15, + 68 * + AVG ( ALL + 53 ) ) + + MIN( - ( - + 72 ) ) + - + 90 DIV 96 * + 32 END AS col2, 81 + - ( - COUNT( * ) )
----
-6534
82

skipif mysql # not compatible
query II rowsort label-1260
SELECT - CASE - 31 WHEN COUNT ( * ) + - 61 THEN + 25 WHEN - 46 THEN NULL ELSE 69 * + 78 - ( + 72 ) * - NULLIF ( - - 15, + 68 * + AVG ( ALL + 53 ) ) + + MIN ( - ( - + 72 ) ) + - + 90 / 96 * + 32 END AS col2, 81 + - ( - COUNT ( * ) )
----
-6534
82

query I rowsort
SELECT ALL NULLIF ( ( - 78 ), + + 3 - 27 ) + + - NULLIF ( 18, - - NULLIF ( 88, + + 26 ) ) AS col1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-1262
SELECT + 45 DIV - - 49 * + 13 * - 42
----
0

skipif mysql # not compatible
query I rowsort label-1262
SELECT + 45 / - - 49 * + 13 * - 42
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1263
SELECT ALL MAX( ALL + CAST( NULL AS SIGNED ) ) + - 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL MAX ( ALL + CAST ( NULL AS INTEGER ) ) + - 5 AS col2
----
NULL

query I rowsort
SELECT ALL 9 * - 83
----
-747

query I rowsort
SELECT DISTINCT COALESCE ( + 0, + - 91 * + 1, + 79 )
----
0

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

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

query I rowsort
SELECT ALL - - 51 * 60 * + 89 AS col2
----
272340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1268
SELECT - CAST( 96 AS SIGNED ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-1268
SELECT - CAST ( 96 AS INTEGER ) AS col0
----
-96

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

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

query I rowsort
SELECT + 92 - 97 col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT - 62 * - 36 * MAX( DISTINCT + + 77 )
----
171864

skipif mysql # not compatible
query I rowsort label-1271
SELECT - 62 * - 36 * MAX ( DISTINCT + + 77 )
----
171864

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1272
SELECT DISTINCT - - 76 - - CASE 97 WHEN 14 * + 78 - 92 * + ( - 18 ) / + + 16 THEN NULL WHEN + 18 * - CAST( - - 40 AS DECIMAL ) THEN - 37 ELSE - - 91 * - + COUNT( * ) END AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT - - 76 - - CASE 97 WHEN 14 * + 78 - 92 * + ( - 18 ) / + + 16 THEN NULL WHEN + 18 * - CAST ( - - 40 AS REAL ) THEN - 37 ELSE - - 91 * - + COUNT ( * ) END AS col1
----
-15

query II rowsort
SELECT DISTINCT + 26 col1, + 25 * - 67 AS col2
----
26
-1675

query I rowsort
SELECT - + 99 * + 45 AS col1
----
-4455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1275
SELECT DISTINCT + CAST( - 58 AS SIGNED ) * 91 * + ( - COUNT( * ) )
----
5278

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT + CAST ( - 58 AS INTEGER ) * 91 * + ( - COUNT ( * ) )
----
5278

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT ALL + ( SUM( 24 ) ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL + ( SUM ( 24 ) ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT + 42 * + COUNT( * ) - + + 93 * 81 + - 72 * + + SUM( + - 63 ) - 97 AS col0
----
-3052

skipif mysql # not compatible
query I rowsort label-1277
SELECT + 42 * + COUNT ( * ) - + + 93 * 81 + - 72 * + + SUM ( + - 63 ) - 97 AS col0
----
-3052

query I rowsort
SELECT ALL + - NULLIF ( + 70, + 72 ) AS col1
----
-70

query I rowsort
SELECT - 95 * + 11 AS col1
----
-1045

query I rowsort
SELECT - - 80 + - 34
----
46

query II rowsort
SELECT + - 67 AS col2, 65 - - 34 - 41 col0
----
-67
58

query II rowsort
SELECT + - 98 AS col0, - COALESCE ( + - ( + + 95 ), 11 * 86 * 32 ) * + 56 + + - 99 * 98 + 83 + 68 col1
----
-98
-4231

query III rowsort
SELECT DISTINCT + - 47 AS col1, 65 AS col0, + - 55 AS col2
----
-47
65
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT 43 * + 10 + + NULLIF ( - 17, - COUNT( * ) + - 9 + - 8 + 16 * - 8 ) AS col0
----
413

skipif mysql # not compatible
query I rowsort label-1284
SELECT 43 * + 10 + + NULLIF ( - 17, - COUNT ( * ) + - 9 + - 8 + 16 * - 8 ) AS col0
----
413

onlyif mysql # DIV for integer division: 
query I rowsort label-1285
SELECT DISTINCT + 52 DIV + 35
----
1

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT + 52 / + 35
----
1

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

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT COUNT ( 45 ) / 80 + + ( 88 ) AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1287
SELECT - CAST( NULL AS DECIMAL ) / - COUNT( * ), NULLIF ( + - COUNT( * ), + MAX( DISTINCT + + 78 ) * - - 52 - + 38 * - 15 * 27 + - - 65 * - - NULLIF ( 14, + 39 * 84 * + 54 ) + + 27 ) * + 43 * - 30 AS col0
----
NULL
1290

skipif mysql # not compatible
query II rowsort label-1287
SELECT - CAST ( NULL AS REAL ) / - COUNT ( * ), NULLIF ( + - COUNT ( * ), + MAX ( DISTINCT + + 78 ) * - - 52 - + 38 * - 15 * 27 + - - 65 * - - NULLIF ( 14, + 39 * 84 * + 54 ) + + 27 ) * + 43 * - 30 AS col0
----
NULL
1290

query I rowsort
SELECT ALL 92 * 15 + CASE + 92 WHEN + + 24 THEN + - 42 + ( 66 ) ELSE 87 END
----
1467

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT ALL ( + + COUNT( * ) ) * + + 21 + - - 30 + - COUNT( * ) + + COUNT( * ) * - - 36 * + COUNT( * ) * + 44
----
1634

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL ( + + COUNT ( * ) ) * + + 21 + - - 30 + - COUNT ( * ) + + COUNT ( * ) * - - 36 * + COUNT ( * ) * + 44
----
1634

query I rowsort
SELECT DISTINCT + ( - 53 ) col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1291
SELECT ALL + CAST( + - 79 AS SIGNED ) AS col2, 56 * + 17 * + + 5
----
-79
4760

skipif mysql # not compatible
query II rowsort label-1291
SELECT ALL + CAST ( + - 79 AS INTEGER ) AS col2, 56 * + 17 * + + 5
----
-79
4760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1292
SELECT 80 * + - 65 DIV - COUNT( ALL - + 21 ) + - COUNT( + 53 ) DIV + - 98
----
5200

skipif mysql # not compatible
query I rowsort label-1292
SELECT 80 * + - 65 / - COUNT ( ALL - + 21 ) + - COUNT ( + 53 ) / + - 98
----
5200

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

query II rowsort
SELECT + ( - 64 ), + 1 AS col1
----
-64
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT ALL + 18 * - SUM( + + 88 ) + + 59 + COUNT( * ) AS col0
----
-1524

skipif mysql # not compatible
query I rowsort label-1295
SELECT ALL + 18 * - SUM ( + + 88 ) + + 59 + COUNT ( * ) AS col0
----
-1524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1296
SELECT NULLIF ( + + 74, + - 80 + CAST( NULL AS SIGNED ) ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-1296
SELECT NULLIF ( + + 74, + - 80 + CAST ( NULL AS INTEGER ) ) AS col2
----
74

query I rowsort
SELECT NULLIF ( + 12, - ( 24 ) )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT - 35 * - ( - 28 ) + COUNT( DISTINCT + - 86 )
----
-979

skipif mysql # not compatible
query I rowsort label-1298
SELECT - 35 * - ( - 28 ) + COUNT ( DISTINCT + - 86 )
----
-979

query II rowsort
SELECT ALL + 36 + + 18 * - - 41 AS col2, - 28
----
774
-28

query I rowsort
SELECT DISTINCT ( 92 ) * - 86 + - 15 + + 79 + - 33 * - + ( - + 8 ) * - 71 + - 21 AS col2
----
10875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1301
SELECT COALESCE ( + - 82, 23, - 83 * - + 55 ) * + ( + 94 ) DIV - COUNT( * ) * COUNT( * )
----
7708

skipif mysql # not compatible
query I rowsort label-1301
SELECT COALESCE ( + - 82, 23, - 83 * - + 55 ) * + ( + 94 ) / - COUNT ( * ) * COUNT ( * )
----
7708

query I rowsort
SELECT 95 - + 69 col1
----
26

query I rowsort
SELECT 44 * - ( 80 ) * - 57 AS col1
----
200640

query I rowsort
SELECT ALL CASE 68 WHEN + 65 THEN 33 + - 0 END * + 37
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1305
SELECT DISTINCT CAST( - 8 AS SIGNED ) * + 89 + - NULLIF ( - 66, + 63 + 25 ) AS col1
----
-646

skipif mysql # not compatible
query I rowsort label-1305
SELECT DISTINCT CAST ( - 8 AS INTEGER ) * + 89 + - NULLIF ( - 66, + 63 + 25 ) AS col1
----
-646

query I rowsort
SELECT ALL ( - 37 ) col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT DISTINCT SUM( ALL + 81 ) col0
----
81

skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT SUM ( ALL + 81 ) col0
----
81

query I rowsort
SELECT - 39 + + 72
----
33

query I rowsort
SELECT 36 + 88 AS col1
----
124

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

query I rowsort
SELECT 67 * + 65 + - + 3 AS col0
----
4352

query I rowsort
SELECT + COALESCE ( 45, + 84, 88 )
----
45

query II rowsort
SELECT 94 AS col0, 16
----
94
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT ALL + 39 * - + MAX( ALL - COALESCE ( + ( - 45 ), 95 + NULLIF ( - 14, + 26 ), - - ( - 96 ) ) ) AS col2
----
-1755

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL + 39 * - + MAX ( ALL - COALESCE ( + ( - 45 ), 95 + NULLIF ( - 14, + 26 ), - - ( - 96 ) ) ) AS col2
----
-1755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1315
SELECT ( - CASE - COALESCE ( + 22, ( COUNT( ALL 77 ) ) / - - 53 ) WHEN - + 74 * - 36 + - 59 THEN - COUNT( * ) * + 18 ELSE NULL END ) * 69 + + + 39 * - - CAST( - - 28 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1315
SELECT ( - CASE - COALESCE ( + 22, ( COUNT ( ALL 77 ) ) / - - 53 ) WHEN - + 74 * - 36 + - 59 THEN - COUNT ( * ) * + 18 ELSE NULL END ) * 69 + + + 39 * - - CAST ( - - 28 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 0 + - + 51 AS col1
----
-51

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1318
SELECT DISTINCT 35 + + 41 * COUNT( * ) DIV - 62 + 95
----
130

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT 35 + + 41 * COUNT ( * ) / - 62 + 95
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-1319
SELECT ( 61 ) DIV + 82 * + 75
----
0

skipif mysql # not compatible
query I rowsort label-1319
SELECT ( 61 ) / + 82 * + 75
----
0

query II rowsort
SELECT 37 AS col1, 80 AS col0
----
37
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT ALL + COUNT( * ) + + 47 * + SUM( ALL - 70 ) AS col2
----
-3289

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL + COUNT ( * ) + + 47 * + SUM ( ALL - 70 ) AS col2
----
-3289

query I rowsort
SELECT ALL - 49 + 7 * - + ( - 4 )
----
-21

query II rowsort
SELECT ALL - 40, 19 AS col2
----
-40
19

query I rowsort
SELECT ALL - 76 * + - 72 AS col2
----
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT 21 + MIN( ALL + - 57 ) + - COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-1325
SELECT 21 + MIN ( ALL + - 57 ) + - COUNT ( * ) AS col2
----
-37

query II rowsort
SELECT ALL - 4 + - ( + 73 ) AS col2, 62
----
-77
62

query I rowsort
SELECT ALL 9 - + - 47 AS col0
----
56

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

skipif mysql # not compatible
query I rowsort label-1328
SELECT DISTINCT + 31 * + + COUNT ( * ) AS col0
----
31

query II rowsort
SELECT ALL - 75 AS col2, + 3
----
-75
3

query I rowsort
SELECT 46 + 85
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1331
SELECT COUNT( * ) * + - 31 DIV - + 5 col0
----
6

skipif mysql # not compatible
query I rowsort label-1331
SELECT COUNT ( * ) * + - 31 / - + 5 col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT + 42 * COUNT( * ) - + 55 + COUNT( * ) + + 33 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1332
SELECT + 42 * COUNT ( * ) - + 55 + COUNT ( * ) + + 33 AS col1
----
21

query I rowsort
SELECT + 21 + 42 - + ( + 84 ) AS col2
----
-21

query II rowsort
SELECT ALL - 0 AS col1, 21 AS col1
----
0
21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1336
SELECT ALL + - 67 * + CAST( + CAST( - 19 AS SIGNED ) AS SIGNED ) * 77 - + 19
----
98002

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL + - 67 * + CAST ( + CAST ( - 19 AS INTEGER ) AS INTEGER ) * 77 - + 19
----
98002

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT - COUNT( ALL ( - 56 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1337
SELECT - COUNT ( ALL ( - 56 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT 82 * 69 * + - MIN( ALL - 81 ) - SUM( DISTINCT + 98 ) col1
----
458200

skipif mysql # not compatible
query I rowsort label-1338
SELECT 82 * 69 * + - MIN ( ALL - 81 ) - SUM ( DISTINCT + 98 ) col1
----
458200

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT - - MAX( - + 71 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-1339
SELECT - - MAX ( - + 71 ) AS col1
----
-71

query II rowsort
SELECT - 67, - 47 + 57 AS col0
----
-67
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1341
SELECT 60 AS col1, + COUNT( * ) * 42 * + 73 * + NULLIF ( - + 88, + 37 ) AS col1
----
60
-269808

skipif mysql # not compatible
query II rowsort label-1341
SELECT 60 AS col1, + COUNT ( * ) * 42 * + 73 * + NULLIF ( - + 88, + 37 ) AS col1
----
60
-269808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1342
SELECT ALL + 52 + - COALESCE ( + 6, + COUNT( * ) + - + ( + - 3 ) DIV - - COUNT( * ) * + 62 DIV - + 98 )
----
46

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL + 52 + - COALESCE ( + 6, + COUNT ( * ) + - + ( + - 3 ) / - - COUNT ( * ) * + 62 / - + 98 )
----
46

query I rowsort
SELECT 38 - 42 * + + 57 * - 40 + + 85 AS col1
----
95883

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT ALL - ( COUNT( * ) ) + - 97 * + ( + + 86 )
----
-8343

skipif mysql # not compatible
query I rowsort label-1344
SELECT ALL - ( COUNT ( * ) ) + - 97 * + ( + + 86 )
----
-8343

query I rowsort
SELECT DISTINCT + 25 + + 7
----
32

query II rowsort
SELECT ALL 73 AS col2, 76
----
73
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT ALL 87 + - + 73 DIV - - 19
----
84

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL 87 + - + 73 / - - 19
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-1348
SELECT 99 DIV + 17 AS col0, 87 AS col0
----
5
87

skipif mysql # not compatible
query II rowsort label-1348
SELECT 99 / + 17 AS col0, 87 AS col0
----
5
87

query I rowsort
SELECT ALL + 74 * + 50 + + 76 col1
----
3776

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT MAX( DISTINCT + 42 ) col1
----
42

skipif mysql # not compatible
query I rowsort label-1350
SELECT MAX ( DISTINCT + 42 ) col1
----
42

query I rowsort
SELECT 34 * + 88
----
2992

query I rowsort
SELECT - 84 * - - 57 + + 93 AS col1
----
-4695

query I rowsort
SELECT DISTINCT 34 * 1 * + - ( 7 ) - - - 24
----
-262

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT + NULLIF ( - 22, + - 15 * + + COUNT( * ) ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1354
SELECT + NULLIF ( - 22, + - 15 * + + COUNT ( * ) ) AS col1
----
-22

query I rowsort
SELECT + 80 + - 9 * + - 47
----
503

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT ALL + 70 * - 7 * + COUNT( * ) - - + 16 - 44
----
-518

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL + 70 * - 7 * + COUNT ( * ) - - + 16 - 44
----
-518

onlyif mysql # aggregate syntax: 
query II rowsort label-1357
SELECT - 98 * 36 AS col2, + COUNT( * )
----
-3528
1

skipif mysql # not compatible
query II rowsort label-1357
SELECT - 98 * 36 AS col2, + COUNT ( * )
----
-3528
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1358
SELECT ALL 27 * - CAST( + 93 AS SIGNED ) - - + ( - 46 ) * - 48 + - 5, - COUNT( 6 ) + 3 + + + 82 * - 68 * COUNT( * ) * + 80 AS col1
----
-308
-446078

skipif mysql # not compatible
query II rowsort label-1358
SELECT ALL 27 * - CAST ( + 93 AS INTEGER ) - - + ( - 46 ) * - 48 + - 5, - COUNT ( 6 ) + 3 + + + 82 * - 68 * COUNT ( * ) * + 80 AS col1
----
-308
-446078

onlyif mysql # aggregate syntax: 
query II rowsort label-1359
SELECT + NULLIF ( + 78, - 70 * - MIN( DISTINCT 72 ) ) AS col0, 62 AS col2
----
78
62

skipif mysql # not compatible
query II rowsort label-1359
SELECT + NULLIF ( + 78, - 70 * - MIN ( DISTINCT 72 ) ) AS col0, 62 AS col2
----
78
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT 18 * ( SUM( ALL ( + + ( + + 21 ) ) ) ) * + 88 * + 45 + + - 76 AS col1
----
1496804

skipif mysql # not compatible
query I rowsort label-1360
SELECT 18 * ( SUM ( ALL ( + + ( + + 21 ) ) ) ) * + 88 * + 45 + + - 76 AS col1
----
1496804

query I rowsort
SELECT + 62 * 16
----
992

query I rowsort
SELECT + 52 * 84 + + + ( + 63 ) AS col1
----
4431

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

skipif mysql # not compatible
query I rowsort label-1363
SELECT + MAX ( + + 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT - 45 - + NULLIF ( - SUM( + - 44 ), - 48 + - 49 ) * 77 AS col1
----
-3433

skipif mysql # not compatible
query I rowsort label-1364
SELECT - 45 - + NULLIF ( - SUM ( + - 44 ), - 48 + - 49 ) * 77 AS col1
----
-3433

onlyif mysql # DIV for integer division: 
query I rowsort label-1365
SELECT - - 94 DIV 10 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-1365
SELECT - - 94 / 10 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT - SUM( - 85 ) + - MIN( + + 17 )
----
68

skipif mysql # not compatible
query I rowsort label-1366
SELECT - SUM ( - 85 ) + - MIN ( + + 17 )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1367
SELECT - 85 DIV - 30
----
2

skipif mysql # not compatible
query I rowsort label-1367
SELECT - 85 / - 30
----
2

query I rowsort
SELECT DISTINCT - - 2 * - 29 * + 76 AS col2
----
-4408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1369
SELECT DISTINCT - SUM( + 84 ) + + CASE COUNT( * ) WHEN - - 10 * + 24 + 54 + + 27 THEN NULL ELSE + 30 * + CASE + 50 WHEN + 7 + + COALESCE ( AVG ( ALL + + 41 ), - 56 * + - COUNT( * ) + - 77 ) + + 41 * + - COUNT( * ) * - CAST( NULL AS SIGNED ) + + COUNT( * ) THEN - 32 WHEN + - 22 THEN - 68 * - CAST( + - 62 AS SIGNED ) * - - 63 / 29 * ( 15 ) END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT - SUM ( + 84 ) + + CASE COUNT ( * ) WHEN - - 10 * + 24 + 54 + + 27 THEN NULL ELSE + 30 * + CASE + 50 WHEN + 7 + + COALESCE ( AVG ( ALL + + 41 ), - 56 * + - COUNT ( * ) + - 77 ) + + 41 * + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) THEN - 32 WHEN + - 22 THEN - 68 * - CAST ( + - 62 AS INTEGER ) * - - 63 / 29 * ( 15 ) END END AS col2
----
NULL

query I rowsort
SELECT - - CASE - 22 WHEN + 73 / + 88 THEN + AVG ( + + 11 ) ELSE NULL END * 41 AS col0
----
NULL

query I rowsort
SELECT + - 87 * 32
----
-2784

query I rowsort
SELECT - 74 + + ( - - 60 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT - CASE + SUM( - - 87 ) WHEN 41 THEN 13 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1373
SELECT - CASE + SUM ( - - 87 ) WHEN 41 THEN 13 ELSE NULL END col0
----
NULL

query I rowsort
SELECT - ( + - 17 ) + + - ( + - 16 )
----
33

query I rowsort
SELECT ALL - - 47 + + 81
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT ALL - 41 + + MIN( ALL - 32 ) * - 46 AS col1
----
1431

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL - 41 + + MIN ( ALL - 32 ) * - 46 AS col1
----
1431

query I rowsort
SELECT + 88 + 42 AS col2
----
130

query I rowsort
SELECT ALL ( - - NULLIF ( + 56, - + 21 ) )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1379
SELECT ALL - 21 DIV COUNT( * ) DIV ( 15 ) * 31
----
-31

skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL - 21 / COUNT ( * ) / ( 15 ) * 31
----
-31

query I rowsort
SELECT DISTINCT 88 + + 21 AS col0
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1381
SELECT ALL NULLIF ( - + 31, 50 + - CAST( + 90 AS SIGNED ) ) + - ( 10 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL NULLIF ( - + 31, 50 + - CAST ( + 90 AS INTEGER ) ) + - ( 10 ) AS col1
----
-41

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1383
SELECT CAST( + + 7 AS SIGNED ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-1383
SELECT CAST ( + + 7 AS INTEGER ) AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1384
SELECT ALL - 76 DIV + + COALESCE ( 57, - + 70, - 28 ) - + 58 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL - 76 / + + COALESCE ( 57, - + 70, - 28 ) - + 58 AS col1
----
-59

query I rowsort
SELECT ( + + 79 ) col2
----
79

query I rowsort
SELECT + NULLIF ( 70, ( - 54 ) ) AS col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1387
SELECT ALL + COUNT( * ) DIV - 31 - + ( - 32 ) * + - 94
----
-3008

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL + COUNT ( * ) / - 31 - + ( - 32 ) * + - 94
----
-3008

query I rowsort
SELECT + 98 * ( - 35 )
----
-3430

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT ( - - CASE + - CASE + 94 WHEN - - MAX( - 40 ) THEN - 91 * - 89 - - 11 WHEN NULLIF ( + + 2, + COUNT( * ) ) - + 81 - + - ( - ( + 40 ) ) + - 64 * + - 51 * - 45 THEN + NULLIF ( 95, + + ( + - 42 ) + 15 ) + + + COUNT( * ) + - SUM( DISTINCT + 7 ) - - + NULLIF ( - 33, + 13 - - 77 ) * ( + MIN( + 11 ) ) ELSE 75 END WHEN MIN( ( 17 ) ) * - - 68 THEN - - 22 * 30 * + COUNT( DISTINCT + 10 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1389
SELECT ( - - CASE + - CASE + 94 WHEN - - MAX ( - 40 ) THEN - 91 * - 89 - - 11 WHEN NULLIF ( + + 2, + COUNT ( * ) ) - + 81 - + - ( - ( + 40 ) ) + - 64 * + - 51 * - 45 THEN + NULLIF ( 95, + + ( + - 42 ) + 15 ) + + + COUNT ( * ) + - SUM ( DISTINCT + 7 ) - - + NULLIF ( - 33, + 13 - - 77 ) * ( + MIN ( + 11 ) ) ELSE 75 END WHEN MIN ( ( 17 ) ) * - - 68 THEN - - 22 * 30 * + COUNT ( DISTINCT + 10 ) END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT + SUM( - 39 ) + - 85
----
-124

skipif mysql # not compatible
query I rowsort label-1390
SELECT + SUM ( - 39 ) + - 85
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1391
SELECT ( + + SUM( + 57 ) ) AS col1, - 35 + - 6 DIV + 93 AS col1
----
57
-35

skipif mysql # not compatible
query II rowsort label-1391
SELECT ( + + SUM ( + 57 ) ) AS col1, - 35 + - 6 / + 93 AS col1
----
57
-35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT + 38 * - + COUNT( * ) col1
----
-38

skipif mysql # not compatible
query I rowsort label-1393
SELECT + 38 * - + COUNT ( * ) col1
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1394
SELECT + + COUNT( * ) * + - 36 DIV 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1394
SELECT + + COUNT ( * ) * + - 36 / 93 AS col1
----
0

query I rowsort
SELECT DISTINCT + ( - 52 ) col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1396
SELECT ALL - NULLIF ( - 19, + SUM( ALL 32 ) ) * + + 45 * CASE 65 WHEN 74 THEN - 22 + + 22 * + CASE - 3 WHEN + NULLIF ( + - 73, + CAST( - - 99 AS SIGNED ) ) * - - 3 - + + MIN( - 58 ) THEN NULL WHEN - 65 THEN NULL WHEN + + AVG ( + + 74 ) THEN - 46 * 58 ELSE - - 70 + CASE 14 WHEN NULLIF ( - + 88, + 92 ) * + + COUNT( * ) THEN COUNT( * ) - 7 + CAST( - - 85 AS SIGNED ) + - + 10 + + 38 * - 38 + + 96 * - MIN( - 28 ) / ( + 84 ) + 17 + + 60 * COUNT( * ) ELSE NULL END / + 77 END * - COALESCE ( - 44, - 21 ) + 65 * - 47 WHEN ( ( - 57 ) ) THEN NULL ELSE NULL END + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL - NULLIF ( - 19, + SUM ( ALL 32 ) ) * + + 45 * CASE 65 WHEN 74 THEN - 22 + + 22 * + CASE - 3 WHEN + NULLIF ( + - 73, + CAST ( - - 99 AS INTEGER ) ) * - - 3 - + + MIN ( - 58 ) THEN NULL WHEN - 65 THEN NULL WHEN + + AVG ( + + 74 ) THEN - 46 * 58 ELSE - - 70 + CASE 14 WHEN NULLIF ( - + 88, + 92 ) * + + COUNT ( * ) THEN COUNT ( * ) - 7 + CAST ( - - 85 AS INTEGER ) + - + 10 + + 38 * - 38 + + 96 * - MIN ( - 28 ) / ( + 84 ) + 17 + + 60 * COUNT ( * ) ELSE NULL END / + 77 END * - COALESCE ( - 44, - 21 ) + 65 * - 47 WHEN ( ( - 57 ) ) THEN NULL ELSE NULL END + + 4
----
NULL

query I rowsort
SELECT + - 88 + - 94
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT + + COUNT( ALL + 3 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1398
SELECT + + COUNT ( ALL + 3 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT ALL + 77 * 7 * + 17 * + - 97 * COUNT( * )
----
-888811

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL + 77 * 7 * + 17 * + - 97 * COUNT ( * )
----
-888811

query I rowsort
SELECT + + 71 * - 42 AS col0
----
-2982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1401
SELECT - COALESCE ( - COALESCE ( - COUNT( + 99 ), + 10 + - COUNT( DISTINCT ( + 88 ) ) + + 67 ), + 39 ) AS col0, + 43 + AVG ( - - NULLIF ( + CAST( NULL AS SIGNED ), + ( + - 83 ) + - ( + 11 ) ) )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1401
SELECT - COALESCE ( - COALESCE ( - COUNT ( + 99 ), + 10 + - COUNT ( DISTINCT ( + 88 ) ) + + 67 ), + 39 ) AS col0, + 43 + AVG ( - - NULLIF ( + CAST ( NULL AS INTEGER ), + ( + - 83 ) + - ( + 11 ) ) )
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1402
SELECT - 6 + + 22 DIV + 65
----
-6

skipif mysql # not compatible
query I rowsort label-1402
SELECT - 6 + + 22 / + 65
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT DISTINCT + COALESCE ( + COUNT( * ), - 30 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT + COALESCE ( + COUNT ( * ), - 30 ) AS col1
----
1

query I rowsort
SELECT + 59 * 90 + + 40
----
5350

onlyif mysql # DIV for integer division: 
query I rowsort label-1405
SELECT DISTINCT - ( NULLIF ( + COALESCE ( - 32, 44, + 14 ), + 32 ) ) DIV - - 40 col1
----
0

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT - ( NULLIF ( + COALESCE ( - 32, 44, + 14 ), + 32 ) ) / - - 40 col1
----
0

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

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

query I rowsort
SELECT ALL + 45 + - 75
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT DISTINCT + - 83 DIV 68
----
-1

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT + - 83 / 68
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1409
SELECT ALL - + COALESCE ( - 52, + 27 DIV + - COUNT( * ) ) + - 80
----
-28

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL - + COALESCE ( - 52, + 27 / + - COUNT ( * ) ) + - 80
----
-28

query I rowsort
SELECT + + 70 - + 81
----
-11

query I rowsort
SELECT - - 6 * 29
----
174

onlyif mysql # aggregate syntax: 
query II rowsort label-1412
SELECT - 67 AS col0, 58 + + 78 - + NULLIF ( + - COALESCE ( + 94, - 89 * COUNT( * ), + - 4 ), - 91 ) * 20 * - 95 AS col1
----
-67
-178464

skipif mysql # not compatible
query II rowsort label-1412
SELECT - 67 AS col0, 58 + + 78 - + NULLIF ( + - COALESCE ( + 94, - 89 * COUNT ( * ), + - 4 ), - 91 ) * 20 * - 95 AS col1
----
-67
-178464

query I rowsort
SELECT ALL - 17 - - 49
----
32

query I rowsort
SELECT - 52 * - 1 AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1415
SELECT DISTINCT - COUNT( * ) - + + COUNT( ALL NULLIF ( 45, - + 99 + - + 21 ) ) * + NULLIF ( - CASE 47 WHEN + - COALESCE ( - + 77, 45, + 79, ( - + 77 ) ) * + CASE + 7 WHEN - - 50 THEN - 89 * + - 93 + - - 53 WHEN + - 21 THEN 64 END * 67 + + 32 THEN NULL WHEN - + 62 + COALESCE ( ( - + CAST( - - ( 75 ) AS DECIMAL ) ), - AVG ( ALL + 24 ) ) * + 27 / + 66 THEN ( - COUNT( * ) ) * 63 END, + + 23 ) / + COALESCE ( + COUNT( * ), + + 28 * COUNT( * ) + - 92, + 67, 69 * 53 + + 87 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT - COUNT ( * ) - + + COUNT ( ALL NULLIF ( 45, - + 99 + - + 21 ) ) * + NULLIF ( - CASE 47 WHEN + - COALESCE ( - + 77, 45, + 79, ( - + 77 ) ) * + CASE + 7 WHEN - - 50 THEN - 89 * + - 93 + - - 53 WHEN + - 21 THEN 64 END * 67 + + 32 THEN NULL WHEN - + 62 + COALESCE ( ( - + CAST ( - - ( 75 ) AS REAL ) ), - AVG ( ALL + 24 ) ) * + 27 / + 66 THEN ( - COUNT ( * ) ) * 63 END, + + 23 ) / + COALESCE ( + COUNT ( * ), + + 28 * COUNT ( * ) + - 92, + 67, 69 * 53 + + 87 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-1416
SELECT ALL 78 AS col1, 77 * - 23 * - 10 AS col0, - ( - + COUNT( * ) )
----
78
17710
1

skipif mysql # not compatible
query III rowsort label-1416
SELECT ALL 78 AS col1, 77 * - 23 * - 10 AS col0, - ( - + COUNT ( * ) )
----
78
17710
1

query I rowsort
SELECT ALL - 17 - + + 89 AS col1
----
-106

query II rowsort
SELECT DISTINCT 82 AS col0, - 14
----
82
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1419
SELECT ALL CAST( - MAX( DISTINCT + 57 ) AS SIGNED ) - 96 * + 89 * - 67 col0
----
572391

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL CAST ( - MAX ( DISTINCT + 57 ) AS INTEGER ) - 96 * + 89 * - 67 col0
----
572391

query I rowsort
SELECT 40 * - - 18 col1
----
720

query I rowsort
SELECT 11 * - - 53 AS col0
----
583

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT 14 + + 4 * + 35 + - 18 * - - SUM( + 87 )
----
-1412

skipif mysql # not compatible
query I rowsort label-1422
SELECT 14 + + 4 * + 35 + - 18 * - - SUM ( + 87 )
----
-1412

query I rowsort
SELECT - 0 * 79 - + 28
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-1424
SELECT 30 DIV 1 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-1424
SELECT 30 / 1 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT MIN( ALL 96 ) * - 74
----
-7104

skipif mysql # not compatible
query I rowsort label-1425
SELECT MIN ( ALL 96 ) * - 74
----
-7104

query I rowsort
SELECT ALL 50 * 41 col2
----
2050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1427
SELECT ALL + CAST( - + COUNT( * ) AS SIGNED ) * - 62 - + - NULLIF ( - + 49, 79 + + 78 + + 94 - + 13 + + + ( - 57 ) * + 26 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL + CAST ( - + COUNT ( * ) AS INTEGER ) * - 62 - + - NULLIF ( - + 49, 79 + + 78 + + 94 - + 13 + + + ( - 57 ) * + 26 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( + - 94, - 90 ) * + 54
----
5076

query I rowsort
SELECT 57 + + 8 + + + 25
----
90

query I rowsort
SELECT ALL - - 48 + 35 AS col0
----
83

query II rowsort
SELECT + 98 * - 73 + - ( + 61 ) AS col0, 25 AS col2
----
-7215
25

query I rowsort
SELECT - 52 * - - 99 + + 84 AS col1
----
-5064

query I rowsort
SELECT 64 * + 12
----
768

query I rowsort
SELECT DISTINCT 46 + + + 43 + - 95 AS col2
----
-6

query I rowsort
SELECT - 90 * 72
----
-6480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1436
SELECT 26 + - 98 * MAX( - 24 ) AS col0, - ( - CAST( + + 23 AS SIGNED ) ) + 97 col0
----
2378
120

skipif mysql # not compatible
query II rowsort label-1436
SELECT 26 + - 98 * MAX ( - 24 ) AS col0, - ( - CAST ( + + 23 AS INTEGER ) ) + 97 col0
----
2378
120

query II rowsort
SELECT ALL - - 64 AS col0, + 69 + - - 0
----
64
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1438
SELECT DISTINCT - SUM( ALL + CAST( 16 AS SIGNED ) ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-1438
SELECT DISTINCT - SUM ( ALL + CAST ( 16 AS INTEGER ) ) AS col1
----
-16

query I rowsort
SELECT ALL + 40 + + 70 * 29 * - - 73 + 86
----
148316

query I rowsort
SELECT DISTINCT + + 43 + - 60 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT + 56 + COUNT( * ) + + 18 + - + 59 * + 63
----
-3642

skipif mysql # not compatible
query I rowsort label-1441
SELECT + 56 + COUNT ( * ) + + 18 + - + 59 * + 63
----
-3642

query II rowsort
SELECT ALL + 49, - 6 - + - 39 AS col2
----
49
33

onlyif mysql # aggregate syntax: 
query II rowsort label-1443
SELECT DISTINCT COUNT( * ) * SUM( + + 69 ) * + - 43 * - 31 * + 64 AS col2, - 14
----
5886528
-14

skipif mysql # not compatible
query II rowsort label-1443
SELECT DISTINCT COUNT ( * ) * SUM ( + + 69 ) * + - 43 * - 31 * + 64 AS col2, - 14
----
5886528
-14

query I rowsort
SELECT ALL - 4 * - + NULLIF ( - + 33, + 42 ) * + + 26 AS col2
----
-3432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1445
SELECT - COUNT( * ) + + + 37 DIV + ( 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-1445
SELECT - COUNT ( * ) + + + 37 / + ( 52 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT - 6 - + - MAX( DISTINCT - 63 )
----
-69

skipif mysql # not compatible
query I rowsort label-1446
SELECT - 6 - + - MAX ( DISTINCT - 63 )
----
-69

query I rowsort
SELECT ALL 76 - 20
----
56

query II rowsort
SELECT - 42 AS col2, 32 - 67
----
-42
-35

query I rowsort
SELECT 5 + + + ( - - 25 ) AS col0
----
30

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1451
SELECT ALL + CAST( + CAST( 69 AS SIGNED ) AS SIGNED ) DIV 41 * - 60 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL + CAST ( + CAST ( 69 AS INTEGER ) AS INTEGER ) / 41 * - 60 AS col0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1452
SELECT ALL COUNT( * ) - + + COUNT( * ) DIV + 30 AS col2, + 29 * - 96 * + 80 * + 68 AS col2
----
1
-15144960

skipif mysql # not compatible
query II rowsort label-1452
SELECT ALL COUNT ( * ) - + + COUNT ( * ) / + 30 AS col2, + 29 * - 96 * + 80 * + 68 AS col2
----
1
-15144960

query I rowsort
SELECT 30 * - + 93 AS col1
----
-2790

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1454
SELECT 34 * + 38 col2, + 76 DIV MAX( DISTINCT - 67 ) DIV NULLIF ( + 40, 56 ) + + ( + - 10 ) AS col1, + + 78
----
1292
-10
78

skipif mysql # not compatible
query III rowsort label-1454
SELECT 34 * + 38 col2, + 76 / MAX ( DISTINCT - 67 ) / NULLIF ( + 40, 56 ) + + ( + - 10 ) AS col1, + + 78
----
1292
-10
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1455
SELECT - MAX( - - 71 ) AS col0, - 85 AS col0
----
-71
-85

skipif mysql # not compatible
query II rowsort label-1455
SELECT - MAX ( - - 71 ) AS col0, - 85 AS col0
----
-71
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1456
SELECT MAX( ALL - 37 ) + - + 54 + - 22 + + CAST( - - 37 AS SIGNED ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-1456
SELECT MAX ( ALL - 37 ) + - + 54 + - 22 + + CAST ( - - 37 AS INTEGER ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT ALL COUNT( * ) * - 47 * + + 20
----
-940

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL COUNT ( * ) * - 47 * + + 20
----
-940

query II rowsort
SELECT ALL - 96 + + 13 col2, - 59
----
-83
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT DISTINCT - NULLIF ( + - ( - + 43 ), - COUNT( * ) * SUM( DISTINCT - 70 ) ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT - NULLIF ( + - ( - + 43 ), - COUNT ( * ) * SUM ( DISTINCT - 70 ) ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT DISTINCT - MIN( DISTINCT 41 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT - MIN ( DISTINCT 41 ) AS col2
----
-41

query I rowsort
SELECT DISTINCT - 14 + + 58 - + + 27
----
17

query II rowsort
SELECT ALL + 24 * 85, 40 * + 26 AS col2
----
2040
1040

query II rowsort
SELECT ALL + 51 + 56 AS col0, 36 - - COALESCE ( - 47, + 51 ) + 17 * - + 3 * - 1 AS col1
----
107
40

query I rowsort
SELECT ALL - 52 + - - 46
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT - MIN( + 2 ) - - 50
----
48

skipif mysql # not compatible
query I rowsort label-1465
SELECT - MIN ( + 2 ) - - 50
----
48

query I rowsort
SELECT - 96 * + 90 - + - 56
----
-8584

query I rowsort
SELECT - 65 * - + COALESCE ( + + 81, - 67 ) AS col2
----
5265

query I rowsort
SELECT - NULLIF ( + 66, + - 39 ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT + MIN( - + 47 ) + - + 43
----
-90

skipif mysql # not compatible
query I rowsort label-1469
SELECT + MIN ( - + 47 ) + - + 43
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-1470
SELECT DISTINCT + + 83 * 51 AS col0, + 44 * CASE + MIN( DISTINCT - + 29 ) WHEN 19 THEN NULL WHEN - 57 + - 72 THEN + COALESCE ( - 16, - COUNT( * ) * + - 87 ) ELSE NULL END + - 34 AS col1
----
4233
NULL

skipif mysql # not compatible
query II rowsort label-1470
SELECT DISTINCT + + 83 * 51 AS col0, + 44 * CASE + MIN ( DISTINCT - + 29 ) WHEN 19 THEN NULL WHEN - 57 + - 72 THEN + COALESCE ( - 16, - COUNT ( * ) * + - 87 ) ELSE NULL END + - 34 AS col1
----
4233
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT ALL + + 41 * - + 78 + - COUNT( * ) AS col1
----
-3199

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL + + 41 * - + 78 + - COUNT ( * ) AS col1
----
-3199

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT + - 38 * - COUNT( * ) + - + 48 * - 94 AS col0
----
4550

skipif mysql # not compatible
query I rowsort label-1472
SELECT + - 38 * - COUNT ( * ) + - + 48 * - 94 AS col0
----
4550

query I rowsort
SELECT ALL - 8 * - 87 - - 64 AS col2
----
760

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

skipif mysql # not compatible
query I rowsort label-1474
SELECT 51 * - ( COUNT ( * ) )
----
-51

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

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT - 75 - 9 + + + CAST ( NULL AS INTEGER ) + - - 30
----
NULL

query I rowsort
SELECT - 12 + + 17 * - ( - 16 ) col1
----
260

query I rowsort
SELECT ALL + NULLIF ( + 91, + 92 ) - - 48
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1478
SELECT + 4 + - COUNT( * ) - - COUNT( * ) * + 87 * - COALESCE ( + - 11, - 21 * - + 37 + 82 DIV + + 79 * - ( + COUNT( * ) ) DIV - 50 ) * - 2 + + 44 AS col0
----
-1867

skipif mysql # not compatible
query I rowsort label-1478
SELECT + 4 + - COUNT ( * ) - - COUNT ( * ) * + 87 * - COALESCE ( + - 11, - 21 * - + 37 + 82 / + + 79 * - ( + COUNT ( * ) ) / - 50 ) * - 2 + + 44 AS col0
----
-1867

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1479
SELECT ALL CAST( + 83 AS SIGNED ) AS col0, + 11 AS col1
----
83
11

skipif mysql # not compatible
query II rowsort label-1479
SELECT ALL CAST ( + 83 AS INTEGER ) AS col0, + 11 AS col1
----
83
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT ALL NULLIF ( CASE 19 WHEN 49 THEN 30 * + 13 ELSE NULL END, + NULLIF ( COUNT( * ), + + SUM( - 79 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL NULLIF ( CASE 19 WHEN 49 THEN 30 * + 13 ELSE NULL END, + NULLIF ( COUNT ( * ), + + SUM ( - 79 ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT ALL CASE 91 WHEN + AVG ( ALL 88 ) THEN 87 / COUNT( * ) END * - + COUNT( * ) + MIN( ALL 24 ) + - 83 / 71
----
NULL

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL CASE 91 WHEN + AVG ( ALL 88 ) THEN 87 / COUNT ( * ) END * - + COUNT ( * ) + MIN ( ALL 24 ) + - 83 / 71
----
NULL

query I rowsort
SELECT + 99 * 27 AS col1
----
2673

query I rowsort
SELECT - NULLIF ( + + 95, + NULLIF ( + ( 44 ), 33 ) ) AS col0
----
-95

query I rowsort
SELECT + 70 - + 1 + 45 * + 18 * + ( - + 32 ) AS col0
----
-25851

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1485
SELECT + 46 + 32 + - + NULLIF ( CAST( + - 76 AS SIGNED ), 66 ), - 14 + - + 90 * - 27 AS col2
----
154
2416

skipif mysql # not compatible
query II rowsort label-1485
SELECT + 46 + 32 + - + NULLIF ( CAST ( + - 76 AS INTEGER ), 66 ), - 14 + - + 90 * - 27 AS col2
----
154
2416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1486
SELECT - CASE + COUNT( * ) WHEN - 17 * - - 24 * - 61 / + - ( + - COUNT( * ) ) THEN NULL WHEN + 83 + 50 * + + 95 + - 19 THEN - COALESCE ( - CAST( NULL AS SIGNED ), COUNT( * ) + - - 44 / AVG ( ALL - - 67 ) - - 82, 84 ) + + 59 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1486
SELECT - CASE + COUNT ( * ) WHEN - 17 * - - 24 * - 61 / + - ( + - COUNT ( * ) ) THEN NULL WHEN + 83 + 50 * + + 95 + - 19 THEN - COALESCE ( - CAST ( NULL AS INTEGER ), COUNT ( * ) + - - 44 / AVG ( ALL - - 67 ) - - 82, 84 ) + + 59 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1487
SELECT + 63 DIV + 14
----
4

skipif mysql # not compatible
query I rowsort label-1487
SELECT + 63 / + 14
----
4

query II rowsort
SELECT DISTINCT 88 AS col0, 27 * 53
----
88
1431

query I rowsort
SELECT ALL 10 + 60 AS col0
----
70

query II rowsort
SELECT ALL 47 AS col2, 13 AS col1
----
47
13

query I rowsort
SELECT + 92 - - 4
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT ALL MAX( 10 ) col2
----
10

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL MAX ( 10 ) col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1493
SELECT ALL 74 + - + COUNT( * ) + + 46, COUNT( * ) * - - NULLIF ( + + 45, - MAX( DISTINCT - 11 ) * - + NULLIF ( - ( COUNT( ALL + 25 ) ), - MIN( 30 ) / - - 83 * AVG ( - - 91 ) + 90 ) ) col0
----
119
45

skipif mysql # not compatible
query II rowsort label-1493
SELECT ALL 74 + - + COUNT ( * ) + + 46, COUNT ( * ) * - - NULLIF ( + + 45, - MAX ( DISTINCT - 11 ) * - + NULLIF ( - ( COUNT ( ALL + 25 ) ), - MIN ( 30 ) / - - 83 * AVG ( - - 91 ) + 90 ) ) col0
----
119
45

query II rowsort
SELECT 2, + 51 col1
----
2
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1495
SELECT - CAST( NULL AS SIGNED ), CASE 21 WHEN CASE + 11 WHEN 9 THEN + 2 + + 60 END / - 0 + 93 THEN + + ( + - 69 ) END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1495
SELECT - CAST ( NULL AS INTEGER ), CASE 21 WHEN CASE + 11 WHEN 9 THEN + 2 + + 60 END / - 0 + 93 THEN + + ( + - 69 ) END AS col2
----
NULL
NULL

query II rowsort
SELECT ALL + 37, + 94 AS col1
----
37
94

query I rowsort
SELECT ALL - 13 * - 30 + 98 - + 12 AS col0
----
476

query II rowsort
SELECT DISTINCT + + 4 AS col2, - 55
----
4
-55

query II rowsort
SELECT ALL 26 * + 96 - 51, + ( - 34 ) AS col2
----
2445
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT + + 57 + + ( - + COUNT( + 16 ) ) * + COUNT( * ) * + + 2
----
55

skipif mysql # not compatible
query I rowsort label-1500
SELECT + + 57 + + ( - + COUNT ( + 16 ) ) * + COUNT ( * ) * + + 2
----
55

query I rowsort
SELECT + 96 * - 4 AS col1
----
-384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1502
SELECT - CASE + 48 WHEN - 42 + - 33 - + - 7 THEN - CAST( NULL AS SIGNED ) * 60 + + 94 + + NULLIF ( ( + - 21 ), + ( - COALESCE ( - 8, + COUNT( * ) * 6 / + ( - 66 ) ) ) ) * + + COALESCE ( + - CAST( NULL AS SIGNED ), - 93 * 89 * + 51 * - ( + + 68 ) + 39 + COUNT( * ) ) * - 17 - COUNT( * ) + - - 36 + COALESCE ( 37, + SUM( + 16 ) * - + 75, - COUNT( * ), + 14 ) WHEN 29 + - 71 + + 55 THEN 52 + - 56 / + 15 + 36 ELSE NULL END * + 58 + + 82, SUM( ALL - 73 ) - + MAX( ALL CAST( NULL AS SIGNED ) ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1502
SELECT - CASE + 48 WHEN - 42 + - 33 - + - 7 THEN - CAST ( NULL AS INTEGER ) * 60 + + 94 + + NULLIF ( ( + - 21 ), + ( - COALESCE ( - 8, + COUNT ( * ) * 6 / + ( - 66 ) ) ) ) * + + COALESCE ( + - CAST ( NULL AS INTEGER ), - 93 * 89 * + 51 * - ( + + 68 ) + 39 + COUNT ( * ) ) * - 17 - COUNT ( * ) + - - 36 + COALESCE ( 37, + SUM ( + 16 ) * - + 75, - COUNT ( * ), + 14 ) WHEN 29 + - 71 + + 55 THEN 52 + - 56 / + 15 + 36 ELSE NULL END * + 58 + + 82, SUM ( ALL - 73 ) - + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
NULL
NULL

query I rowsort
SELECT - - 33 * 24
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT ALL - 22 * + COUNT( * ) * + 33 AS col1
----
-726

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL - 22 * + COUNT ( * ) * + 33 AS col1
----
-726

onlyif mysql # DIV for integer division: 
query I rowsort label-1505
SELECT DISTINCT - 11 DIV - 22
----
0

skipif mysql # not compatible
query I rowsort label-1505
SELECT DISTINCT - 11 / - 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT DISTINCT - + 88 * 88 + 95 - - + 8 * COUNT( * ) * + 62 AS col2
----
-7153

skipif mysql # not compatible
query I rowsort label-1506
SELECT DISTINCT - + 88 * 88 + 95 - - + 8 * COUNT ( * ) * + 62 AS col2
----
-7153

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

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

query II rowsort
SELECT DISTINCT ( 25 ) AS col1, 0 AS col0
----
25
0

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

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

query I rowsort
SELECT - 70 + - 7 * + - 23
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT + MAX( ALL + - 53 ) - - + 46
----
-7

skipif mysql # not compatible
query I rowsort label-1511
SELECT + MAX ( ALL + - 53 ) - - + 46
----
-7

query I rowsort
SELECT + 52 + + 91 * - + 95 AS col0
----
-8593

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1514
SELECT + COALESCE ( 46, + 61, - ( 11 ) * - 63 ) + CAST( NULL AS SIGNED ) * - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1514
SELECT + COALESCE ( 46, + 61, - ( 11 ) * - 63 ) + CAST ( NULL AS INTEGER ) * - 35 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL CAST ( NULL AS INTEGER ) + - - ( - - 69 )
----
NULL

query I rowsort
SELECT ALL 10 + - 53 AS col2
----
-43

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

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT - COUNT ( * ) + + 71 AS col0
----
70

query I rowsort
SELECT ALL 4 * - 39
----
-156

query I rowsort
SELECT + 62 + 67 + - 57 * + - 90 * - - 35
----
179679

query I rowsort
SELECT - CASE + 86 WHEN - 48 THEN - - 50 ELSE ( + 34 ) END
----
-34

query I rowsort
SELECT + 14 + - 18 AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1522
SELECT ALL 78 DIV + 96 - - - 5 * - NULLIF ( 81, 20 + + - 59 ) AS col0
----
405

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL 78 / + 96 - - - 5 * - NULLIF ( 81, 20 + + - 59 ) AS col0
----
405

onlyif mysql # DIV for integer division: 
query I rowsort label-1523
SELECT DISTINCT 16 DIV 14 - ( + - 51 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT 16 / 14 - ( + - 51 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT ALL + MIN( DISTINCT 26 )
----
26

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL + MIN ( DISTINCT 26 )
----
26

query I rowsort
SELECT + + 47 + + 92
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT DISTINCT + + MIN( 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-1526
SELECT DISTINCT + + MIN ( 51 ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT DISTINCT - - COUNT( * ) * - 89
----
-89

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT - - COUNT ( * ) * - 89
----
-89

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

skipif mysql # not compatible
query I rowsort label-1528
SELECT + - CAST ( NULL AS REAL ) - - + 95 AS col2
----
NULL

query I rowsort
SELECT ALL - 17 * + 7 col0
----
-119

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1531
SELECT DISTINCT - 84 * + ( + 6 ) * + 15 DIV - 15 + + 86 * + 45 + - 68 AS col1
----
4306

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT - 84 * + ( + 6 ) * + 15 / - 15 + + 86 * + 45 + - 68 AS col1
----
4306

query I rowsort
SELECT ALL + 26 * + 45 / + 96 * + - CASE - 7 WHEN - 74 * + 84 + ( + + 4 ) THEN 48 WHEN + 56 THEN - 29 + + 7 + + 69 * 1 + 63 * + 74 + + 70 / - + 56 / ( - 9 ) + - + 17 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT ALL - - MIN( ALL + 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL - - MIN ( ALL + 49 ) AS col2
----
49

query I rowsort
SELECT - 65 * 84 + - 88 AS col0
----
-5548

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

query I rowsort
SELECT ALL 99 * + + 6 AS col2
----
594

onlyif mysql # aggregate syntax: 
query II rowsort label-1537
SELECT ALL + 65 * - COUNT( DISTINCT 30 ) - + 82 + + 74 AS col2, - 20 + - 38 * 47
----
-73
-1806

skipif mysql # not compatible
query II rowsort label-1537
SELECT ALL + 65 * - COUNT ( DISTINCT 30 ) - + 82 + + 74 AS col2, - 20 + - 38 * 47
----
-73
-1806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1538
SELECT ALL - - CAST( - + 84 AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL - - CAST ( - + 84 AS INTEGER )
----
-84

query I rowsort
SELECT ALL - + 92 col2
----
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-1540
SELECT 34 * + - 97 * - - 83, 77 DIV - - 39 AS col0
----
-273734
1

skipif mysql # not compatible
query II rowsort label-1540
SELECT 34 * + - 97 * - - 83, 77 / - - 39 AS col0
----
-273734
1

query I rowsort
SELECT 5 * - ( + + 26 )
----
-130

query I rowsort
SELECT ALL - CASE + 35 WHEN + + 96 * 58 THEN 94 END
----
NULL

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

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

query I rowsort
SELECT 59 * 99 AS col0
----
5841

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

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

query I rowsort
SELECT DISTINCT - 9 + - 22 AS col1
----
-31

query I rowsort
SELECT ALL - ( - 41 ) * ( 41 )
----
1681

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT ALL - 0 + 53 * + - 99 - + ( 59 ) * + CASE + + 53 WHEN - COUNT( * ) THEN 26 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL - 0 + 53 * + - 99 - + ( 59 ) * + CASE + + 53 WHEN - COUNT ( * ) THEN 26 END AS col1
----
NULL

query II rowsort
SELECT 49 * + + COALESCE ( - 61, - 10 - 50 ) * - - 47 * 82 * - 65 AS col0, + 17
----
748774390
17

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

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL - CAST ( NULL AS INTEGER ) + - 96
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1551
SELECT SUM( - 73 ) * - - 3, - 52 AS col1
----
-219
-52

skipif mysql # not compatible
query II rowsort label-1551
SELECT SUM ( - 73 ) * - - 3, - 52 AS col1
----
-219
-52

query I rowsort
SELECT ALL + ( + 79 ) + + 22 AS col0
----
101

query I rowsort
SELECT ALL 80 + - 63 col0
----
17

query II rowsort
SELECT 41 col2, - 10
----
41
-10

query II rowsort
SELECT 39 + - 37 * 75, 23 AS col1
----
-2736
23

query I rowsort
SELECT 74 * - 25 AS col2
----
-1850

query I rowsort
SELECT 49 + + 72 AS col1
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-1558
SELECT 84 * 96 * 29 AS col2, COUNT( * )
----
233856
1

skipif mysql # not compatible
query II rowsort label-1558
SELECT 84 * 96 * 29 AS col2, COUNT ( * )
----
233856
1

query I rowsort
SELECT ALL 21 - 18
----
3

query I rowsort
SELECT 74 - 84 AS col0
----
-10

query I rowsort
SELECT ALL 14 * + 24 AS col2
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT SUM( 42 ) + COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-1562
SELECT SUM ( 42 ) + COUNT ( * ) AS col1
----
43

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

skipif mysql # not compatible
query I rowsort label-1563
SELECT DISTINCT 49 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 93 + - 43 AS col1
----
50

query I rowsort
SELECT ALL 67 - - 87 * + 67 AS col2
----
5896

query I rowsort
SELECT ALL 78 * - 90
----
-7020

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT - COUNT( * ) * - 42 - 84 * - 61 AS col0
----
5166

skipif mysql # not compatible
query I rowsort label-1567
SELECT - COUNT ( * ) * - 42 - 84 * - 61 AS col0
----
5166

query I rowsort
SELECT DISTINCT 13 * + 8 AS col0
----
104

query I rowsort
SELECT 83 + - 82 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1570
SELECT 3 DIV 48 - + 11 * + 92
----
-1012

skipif mysql # not compatible
query I rowsort label-1570
SELECT 3 / 48 - + 11 * + 92
----
-1012

query I rowsort
SELECT 89 * 66
----
5874

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT COUNT( * ) * COUNT( DISTINCT - 37 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1572
SELECT COUNT ( * ) * COUNT ( DISTINCT - 37 ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT 3 * 14 + ( + COUNT( * ) - 33 * + ( 53 + + 20 ) )
----
-2366

skipif mysql # not compatible
query I rowsort label-1574
SELECT 3 * 14 + ( + COUNT ( * ) - 33 * + ( 53 + + 20 ) )
----
-2366

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

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL COUNT ( * ) / ( 94 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT DISTINCT - MIN( ALL + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT - MIN ( ALL + 45 )
----
-45

query I rowsort
SELECT 18 + - 41 AS col0
----
-23

query I rowsort
SELECT DISTINCT NULLIF ( + 35, ( + 10 ) + + 98 * - 75 ) * + 74
----
2590

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT ALL MAX( - ( 31 ) ) + + SUM( 98 )
----
67

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL MAX ( - ( 31 ) ) + + SUM ( 98 )
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1580
SELECT COUNT( * ) + COUNT( * ) DIV 16
----
1

skipif mysql # not compatible
query I rowsort label-1580
SELECT COUNT ( * ) + COUNT ( * ) / 16
----
1

query I rowsort
SELECT ( + 60 ) * - 10
----
-600

query I rowsort
SELECT 31 * ( 23 ) + - ( 86 )
----
627

query I rowsort
SELECT ALL 58 + + 41 col1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1584
SELECT 59 DIV 35 col1
----
1

skipif mysql # not compatible
query I rowsort label-1584
SELECT 59 / 35 col1
----
1

query I rowsort
SELECT - 68 * + 46 + + 15
----
-3113

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

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

query I rowsort
SELECT ALL - COALESCE ( ( NULLIF ( 87, + 23 ) ), 18 + 72 )
----
-87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT ALL MIN( DISTINCT 64 ) * - 26 AS col1
----
-1664

skipif mysql # not compatible
query I rowsort label-1589
SELECT ALL MIN ( DISTINCT 64 ) * - 26 AS col1
----
-1664

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT COUNT( + 4 ) * + ( - COUNT( DISTINCT 12 ) ) + 91 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-1590
SELECT COUNT ( + 4 ) * + ( - COUNT ( DISTINCT 12 ) ) + 91 AS col0
----
90

query I rowsort
SELECT ALL - 96 + - 94 AS col1
----
-190

query I rowsort
SELECT 65 * + 30 AS col1
----
1950

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

skipif mysql # not compatible
query I rowsort label-1593
SELECT CAST ( NULL AS INTEGER ) + 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT 74 + + COUNT( * ) * 19 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-1594
SELECT 74 + + COUNT ( * ) * 19 AS col0
----
93

query I rowsort
SELECT 84 + 2 AS col1
----
86

query I rowsort
SELECT ALL - 97 - + ( - 1 )
----
-96

query I rowsort
SELECT 94 + ( + 48 ) col2
----
142

query I rowsort
SELECT ALL - 33 - 86 AS col0
----
-119

query I rowsort
SELECT 68 * - 71 AS col1
----
-4828

query I rowsort
SELECT 74 + + 22 AS col0
----
96

query I rowsort
SELECT ALL + 61 * + 11 AS col1
----
671

query I rowsort
SELECT DISTINCT + 88 * 47
----
4136

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT DISTINCT MIN( - 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT MIN ( - 54 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT DISTINCT + 83 * CASE - NULLIF ( 69, 12 ) WHEN 97 THEN 21 + + COUNT( * ) WHEN 99 THEN NULL ELSE NULLIF ( - 17, - MAX( ALL - 31 ) + 43 ) END
----
-1411

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT + 83 * CASE - NULLIF ( 69, 12 ) WHEN 97 THEN 21 + + COUNT ( * ) WHEN 99 THEN NULL ELSE NULLIF ( - 17, - MAX ( ALL - 31 ) + 43 ) END
----
-1411

query I rowsort
SELECT DISTINCT - + 44 - 23 * 90
----
-2114

query I rowsort
SELECT 71 + 31 AS col0
----
102

query I rowsort
SELECT 74 * - 12 AS col0
----
-888

query I rowsort
SELECT - 32 + - 89 col1
----
-121

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT + COUNT( * ) + - 42 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1610
SELECT + COUNT ( * ) + - 42 AS col0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-1611
SELECT DISTINCT + - 56 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT + - 56 / - 93
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1612
SELECT ALL CASE - 53 WHEN - ( + AVG ( 85 ) ) + + CAST( NULL AS SIGNED ) THEN - COALESCE ( + 60, COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL CASE - 53 WHEN - ( + AVG ( 85 ) ) + + CAST ( NULL AS INTEGER ) THEN - COALESCE ( + 60, COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT - 7 + - ( 48 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT DISTINCT - - COUNT( * ) * 2 + - 40
----
-38

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT - - COUNT ( * ) * 2 + - 40
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1615
SELECT ALL + + CAST( COALESCE ( ( 13 ), - COUNT( * ), - COUNT( * ) ) AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL + + CAST ( COALESCE ( ( 13 ), - COUNT ( * ), - COUNT ( * ) ) AS INTEGER )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT - COUNT( 79 ) - + 37 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-1616
SELECT - COUNT ( 79 ) - + 37 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT DISTINCT - 84 * + COUNT( * ) + 78 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT - 84 * + COUNT ( * ) + 78 AS col1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1618
SELECT - - CASE 45 WHEN + 88 * - CASE + 97 WHEN - 7 THEN NULL ELSE ( ( - ( - COALESCE ( + CAST( NULL AS SIGNED ), + ( SUM( - 31 ) ), MIN( 4 ) / 41 ) ) ) ) * + AVG ( 78 ) END THEN NULL WHEN 60 THEN + 72 * - 80 ELSE NULL END * 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT - - CASE 45 WHEN + 88 * - CASE + 97 WHEN - 7 THEN NULL ELSE ( ( - ( - COALESCE ( + CAST ( NULL AS INTEGER ), + ( SUM ( - 31 ) ), MIN ( 4 ) / 41 ) ) ) ) * + AVG ( 78 ) END THEN NULL WHEN 60 THEN + 72 * - 80 ELSE NULL END * 13 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1619
SELECT + + 98 DIV 56 + + 19
----
20

skipif mysql # not compatible
query I rowsort label-1619
SELECT + + 98 / 56 + + 19
----
20

query I rowsort
SELECT + 29 + - 9
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1621
SELECT DISTINCT - 74 * - CASE - 99 WHEN - 68 THEN - COUNT( * ) + 19 END + 5 * MIN( ALL - 69 + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1621
SELECT DISTINCT - 74 * - CASE - 99 WHEN - 68 THEN - COUNT ( * ) + 19 END + 5 * MIN ( ALL - 69 + CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT MAX( 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1622
SELECT MAX ( 93 ) AS col1
----
93

query I rowsort
SELECT ALL + 25 * - 54 + 4 AS col1
----
-1346

query I rowsort
SELECT DISTINCT 32 * ( 13 ) + 71
----
487

onlyif mysql # DIV for integer division: 
query I rowsort label-1625
SELECT DISTINCT 93 DIV + 13
----
7

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT 93 / + 13
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT DISTINCT 1 * 95 * COUNT( * ) - + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT 1 * 95 * COUNT ( * ) - + COUNT ( * )
----
94

query I rowsort
SELECT + ( - + 87 ) * 57 col2
----
-4959

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1629
SELECT ALL 4 * CASE + 51 WHEN 42 + 49 * + CASE + CAST( + COUNT( * ) AS DECIMAL ) * 67 WHEN - 89 * - CAST( NULL AS DECIMAL ) - - CASE COUNT( * ) + 49 * + 55 WHEN 67 * - CAST( NULL AS DECIMAL ) + 84 THEN ( + COUNT( * ) ) * 78 + + 6 END THEN NULL ELSE - 88 * 91 END THEN 92 + 93 * COUNT( * ) ELSE 95 * + CASE 81 WHEN 73 THEN + 55 ELSE NULL END + + 29 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL 4 * CASE + 51 WHEN 42 + 49 * + CASE + CAST ( + COUNT ( * ) AS REAL ) * 67 WHEN - 89 * - CAST ( NULL AS REAL ) - - CASE COUNT ( * ) + 49 * + 55 WHEN 67 * - CAST ( NULL AS REAL ) + 84 THEN ( + COUNT ( * ) ) * 78 + + 6 END THEN NULL ELSE - 88 * 91 END THEN 92 + 93 * COUNT ( * ) ELSE 95 * + CASE 81 WHEN 73 THEN + 55 ELSE NULL END + + 29 END AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( - 81, ( 46 ), 62 * - 72 + 55 ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT DISTINCT MIN( DISTINCT - - COALESCE ( 9, + 86 + + 81, + 54 + 4 * + 3 ) ) - + MAX( DISTINCT - 42 )
----
51

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT MIN ( DISTINCT - - COALESCE ( 9, + 86 + + 81, + 54 + 4 * + 3 ) ) - + MAX ( DISTINCT - 42 )
----
51

query I rowsort
SELECT + ( - ( 84 ) ) * - 57 AS col0
----
4788

query I rowsort
SELECT DISTINCT 50 * 8 AS col1
----
400

query I rowsort
SELECT ALL 9 - - 81
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT ALL MIN( DISTINCT + + 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL MIN ( DISTINCT + + 84 ) AS col0
----
84

query I rowsort
SELECT DISTINCT 3 * + 69
----
207

query I rowsort
SELECT + 67 + 45 AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT + COUNT( DISTINCT - NULLIF ( 89, 87 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1638
SELECT + COUNT ( DISTINCT - NULLIF ( 89, 87 ) )
----
1

query I rowsort
SELECT + - 99 * 82
----
-8118

query I rowsort
SELECT + 46 + 63 * 5
----
361

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

query I rowsort
SELECT - - 60 * - 13 AS col1
----
-780

query I rowsort
SELECT + - 49 - - 44 + 84
----
79

query I rowsort
SELECT ALL - - 92 + - - 24 + - 34 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT - + CASE - 70 WHEN 38 * COUNT( * ) THEN 49 ELSE NULL END + - CASE + ( 38 ) WHEN + 71 THEN NULL ELSE - 82 END / + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1645
SELECT - + CASE - 70 WHEN 38 * COUNT ( * ) THEN 49 ELSE NULL END + - CASE + ( 38 ) WHEN + 71 THEN NULL ELSE - 82 END / + 12 AS col2
----
NULL

query I rowsort
SELECT ALL + 5 + 5 AS col0
----
10

query I rowsort
SELECT - 96 + + 90 AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1648
SELECT DISTINCT CAST( + 46 AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT CAST ( + 46 AS INTEGER )
----
46

query I rowsort
SELECT ALL + + ( - + 17 ) + 85
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT + 49 + + - MAX( - 99 )
----
148

skipif mysql # not compatible
query I rowsort label-1650
SELECT + 49 + + - MAX ( - 99 )
----
148

query I rowsort
SELECT + - 76 col0
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT - + 73 DIV - 83 + 51 + 88 col2
----
139

skipif mysql # not compatible
query I rowsort label-1652
SELECT - + 73 / - 83 + 51 + 88 col2
----
139

query I rowsort
SELECT - 95 * 37 + + 97 - - 45
----
-3373

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT - + 17 DIV - 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1654
SELECT - + 17 / - 67 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1655
SELECT DISTINCT - 95 DIV + 83
----
-1

skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT - 95 / + 83
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1656
SELECT ALL + + 77 DIV + + 36 + ( + ( 86 ) ) DIV - 58 + + 95 DIV 84
----
2

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL + + 77 / + + 36 + ( + ( 86 ) ) / - 58 + + 95 / 84
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1657
SELECT ALL - 68 DIV + 12 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL - 68 / + 12 AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1658
SELECT - 17 DIV + 14
----
-1

skipif mysql # not compatible
query I rowsort label-1658
SELECT - 17 / + 14
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1659
SELECT DISTINCT - COUNT( * ) DIV + + COUNT( * ) + + - 16
----
-17

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT - COUNT ( * ) / + + COUNT ( * ) + + - 16
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1660
SELECT ALL + CASE 34 WHEN - CAST( + 81 AS DECIMAL ) * + 50 THEN 51 - + ( 54 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL + CASE 34 WHEN - CAST ( + 81 AS REAL ) * + 50 THEN 51 - + ( 54 ) END AS col2
----
NULL

query I rowsort
SELECT - 52 + - - 48
----
-4

query II rowsort
SELECT ALL + 23 AS col0, - 91 * + 64 AS col0
----
23
-5824

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT - 81 + - MIN( DISTINCT + 36 ) col1
----
-117

skipif mysql # not compatible
query I rowsort label-1663
SELECT - 81 + - MIN ( DISTINCT + 36 ) col1
----
-117

query I rowsort
SELECT - 40 * - 58 AS col1
----
2320

query I rowsort
SELECT ALL + 5 * + 28
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT DISTINCT ( + + 89 ) * - 28 - COUNT( * ) * 67 AS col0
----
-2559

skipif mysql # not compatible
query I rowsort label-1666
SELECT DISTINCT ( + + 89 ) * - 28 - COUNT ( * ) * 67 AS col0
----
-2559

query I rowsort
SELECT ALL 4 * + 29 * NULLIF ( 12, 34 ) AS col0
----
1392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1668
SELECT + ( MAX( + - CAST( 59 AS SIGNED ) ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1668
SELECT + ( MAX ( + - CAST ( 59 AS INTEGER ) ) ) AS col2
----
-59

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1670
SELECT ALL + 39 AS col1, - 11 * 46 * CAST( NULL AS SIGNED ) + - SUM( ALL - 37 ) AS col2
----
39
NULL

skipif mysql # not compatible
query II rowsort label-1670
SELECT ALL + 39 AS col1, - 11 * 46 * CAST ( NULL AS INTEGER ) + - SUM ( ALL - 37 ) AS col2
----
39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT + COUNT( * ) + - + 34 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-1671
SELECT + COUNT ( * ) + - + 34 AS col0
----
-33

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

skipif mysql # not compatible
query I rowsort label-1672
SELECT + 33 * + ( COUNT ( * ) ) + - 51 * 51 AS col0
----
-2568

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT ALL MIN( DISTINCT - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL MIN ( DISTINCT - 46 )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1674
SELECT + 77 * - CASE 99 WHEN COALESCE ( - 1, 68 / + ( - 25 ), - 61 ) * + CAST( NULL AS SIGNED ) THEN NULL WHEN + 43 * + AVG ( DISTINCT - 6 ) THEN - 81 - - 88 * 64 WHEN 31 * - 52 THEN CASE + 78 WHEN - 34 THEN + 70 * 83 + + 44 WHEN 35 THEN NULL ELSE - 78 + 47 END * 34 + COUNT( * ) * 44 ELSE + 97 + + 6 END + 14 col2
----
-7917

skipif mysql # not compatible
query I rowsort label-1674
SELECT + 77 * - CASE 99 WHEN COALESCE ( - 1, 68 / + ( - 25 ), - 61 ) * + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 43 * + AVG ( DISTINCT - 6 ) THEN - 81 - - 88 * 64 WHEN 31 * - 52 THEN CASE + 78 WHEN - 34 THEN + 70 * 83 + + 44 WHEN 35 THEN NULL ELSE - 78 + 47 END * 34 + COUNT ( * ) * 44 ELSE + 97 + + 6 END + 14 col2
----
-7917

onlyif mysql # DIV for integer division: 
query I rowsort label-1675
SELECT + 32 DIV - + 58 * - + ( 90 ) * 9
----
0

skipif mysql # not compatible
query I rowsort label-1675
SELECT + 32 / - + 58 * - + ( 90 ) * 9
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1676
SELECT ALL 38 DIV - 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL 38 / - 53 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1677
SELECT DISTINCT 60, + 63 DIV + COUNT( * ) AS col0
----
60
63

skipif mysql # not compatible
query II rowsort label-1677
SELECT DISTINCT 60, + 63 / + COUNT ( * ) AS col0
----
60
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT ALL + COUNT( * ) / ( - CASE 36 WHEN COUNT( * ) THEN CASE 74 WHEN 94 * 3 THEN NULL ELSE 99 * + 89 + + 19 END WHEN COUNT( * ) THEN NULL WHEN 33 + COUNT( * ) THEN 98 END ) * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL + COUNT ( * ) / ( - CASE 36 WHEN COUNT ( * ) THEN CASE 74 WHEN 94 * 3 THEN NULL ELSE 99 * + 89 + + 19 END WHEN COUNT ( * ) THEN NULL WHEN 33 + COUNT ( * ) THEN 98 END ) * - 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT 55 + + 55 + + CASE - 91 WHEN 31 THEN NULL WHEN + 29 * + 96 + - 25 THEN + 66 WHEN + COUNT( * ) THEN NULL ELSE 87 END AS col2
----
197

skipif mysql # not compatible
query I rowsort label-1679
SELECT 55 + + 55 + + CASE - 91 WHEN 31 THEN NULL WHEN + 29 * + 96 + - 25 THEN + 66 WHEN + COUNT ( * ) THEN NULL ELSE 87 END AS col2
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT DISTINCT - 0 * + 13 * COUNT( * ) + NULLIF ( 36 + 40, 7 )
----
76

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT - 0 * + 13 * COUNT ( * ) + NULLIF ( 36 + 40, 7 )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1681
SELECT + COUNT( * ) DIV + 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1681
SELECT + COUNT ( * ) / + 23 AS col1
----
0

query I rowsort
SELECT ( 90 ) + - 20 * 21 AS col0
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT DISTINCT COALESCE ( - 91, - CASE CASE - 67 WHEN - ( - 67 ) * COUNT( * ) THEN NULL WHEN + ( COUNT( * ) ) THEN NULL WHEN COUNT( * ) - 5 THEN 87 + + 51 * + 12 ELSE NULL END WHEN - 37 THEN NULL WHEN 15 * - 12 + 0 * 3 THEN NULL ELSE 4 END ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT COALESCE ( - 91, - CASE CASE - 67 WHEN - ( - 67 ) * COUNT ( * ) THEN NULL WHEN + ( COUNT ( * ) ) THEN NULL WHEN COUNT ( * ) - 5 THEN 87 + + 51 * + 12 ELSE NULL END WHEN - 37 THEN NULL WHEN 15 * - 12 + 0 * 3 THEN NULL ELSE 4 END ) AS col1
----
-91

query I rowsort
SELECT ALL 97 + 14 AS col1
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1685
SELECT 34 + CASE 36 WHEN COUNT( * ) * - ( ( 96 ) * 29 ) THEN NULL WHEN + 18 + 64 THEN 5 WHEN 58 * 59 THEN NULL ELSE + CAST( 0 AS SIGNED ) + + 22 END AS col0
----
56

skipif mysql # not compatible
query I rowsort label-1685
SELECT 34 + CASE 36 WHEN COUNT ( * ) * - ( ( 96 ) * 29 ) THEN NULL WHEN + 18 + 64 THEN 5 WHEN 58 * 59 THEN NULL ELSE + CAST ( 0 AS INTEGER ) + + 22 END AS col0
----
56

query I rowsort
SELECT 80 + - - 25 AS col0
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-1687
SELECT - - 11 AS col2, 95 * + COUNT( * ) * + COUNT( * ) + - 1
----
11
94

skipif mysql # not compatible
query II rowsort label-1687
SELECT - - 11 AS col2, 95 * + COUNT ( * ) * + COUNT ( * ) + - 1
----
11
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT DISTINCT - COUNT( * ) + - - ( + - 32 ) + 96 col1
----
63

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT - COUNT ( * ) + - - ( + - 32 ) + 96 col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1689
SELECT ALL - COALESCE ( + COALESCE ( - 58, - 91, - 57 * COALESCE ( COALESCE ( + 64, - 69 ), COUNT( * ) ), 50 DIV 23 + 11 * - 46 ), - 88, - 31 * 45 ) + - 35 * + 42 col0
----
-1412

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL - COALESCE ( + COALESCE ( - 58, - 91, - 57 * COALESCE ( COALESCE ( + 64, - 69 ), COUNT ( * ) ), 50 / 23 + 11 * - 46 ), - 88, - 31 * 45 ) + - 35 * + 42 col0
----
-1412

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT ALL + 74 + + 9 + + COUNT( * ) * CASE 54 - COUNT( + 87 ) WHEN 86 THEN NULL WHEN - 74 THEN NULL ELSE - 85 - 93 * 87 END
----
-8093

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL + 74 + + 9 + + COUNT ( * ) * CASE 54 - COUNT ( + 87 ) WHEN 86 THEN NULL WHEN - 74 THEN NULL ELSE - 85 - 93 * 87 END
----
-8093

query I rowsort
SELECT DISTINCT 82 + - 3 AS col1
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT ( + 78 ) + 12 + MIN( DISTINCT + 68 - 90 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-1693
SELECT ( + 78 ) + 12 + MIN ( DISTINCT + 68 - 90 ) AS col2
----
68

query I rowsort
SELECT DISTINCT - 66 * 18 AS col2
----
-1188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1695
SELECT DISTINCT - 55 + 83 + + - COUNT( - CAST( - NULLIF ( 78, + 97 ) AS SIGNED ) ) + + 54 * + 36 AS col2
----
1971

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT - 55 + 83 + + - COUNT ( - CAST ( - NULLIF ( 78, + 97 ) AS INTEGER ) ) + + 54 * + 36 AS col2
----
1971

onlyif mysql # DIV for integer division: 
query I rowsort label-1696
SELECT ALL - + 85 + - 34 DIV + + 90 * 62 + 27 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL - + 85 + - 34 / + + 90 * 62 + 27 AS col2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-1697
SELECT ALL 66 DIV + 49 + + 14 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL 66 / + 49 + + 14 AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1698
SELECT DISTINCT - - 71 AS col0, + 81 / - COUNT( * ) * COUNT( * ) + CAST( NULL AS SIGNED ) AS col1
----
71
NULL

skipif mysql # not compatible
query II rowsort label-1698
SELECT DISTINCT - - 71 AS col0, + 81 / - COUNT ( * ) * COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
71
NULL

query I rowsort
SELECT DISTINCT - 64 - - 38 * 39 - + - 50
----
1468

query I rowsort
SELECT ALL - COALESCE ( + 66, - 6 )
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT ALL - MIN( + 75 ) * + 9
----
-675

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL - MIN ( + 75 ) * + 9
----
-675

query I rowsort
SELECT 33 - - + 25
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT 68 * NULLIF ( - + 79, - MAX( ALL + 19 ) )
----
-5372

skipif mysql # not compatible
query I rowsort label-1704
SELECT 68 * NULLIF ( - + 79, - MAX ( ALL + 19 ) )
----
-5372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1705
SELECT NULLIF ( - 39, - 92 ) * - + ( + 66 ) + 21 * + CAST( 69 AS SIGNED )
----
4023

skipif mysql # not compatible
query I rowsort label-1705
SELECT NULLIF ( - 39, - 92 ) * - + ( + 66 ) + 21 * + CAST ( 69 AS INTEGER )
----
4023

query I rowsort
SELECT DISTINCT - 64 - 28
----
-92

query I rowsort
SELECT ALL - NULLIF ( + - 29, 76 )
----
29

query I rowsort
SELECT 84 + + 64 AS col0
----
148

query I rowsort
SELECT 58 * - 29
----
-1682

query I rowsort
SELECT 94 + 33 + + ( - - 45 )
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-1711
SELECT ALL - 38 DIV ( - 6 ) * - + 49 * - 65 + - 3 AS col2
----
19107

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL - 38 / ( - 6 ) * - + 49 * - 65 + - 3 AS col2
----
19107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1712
SELECT DISTINCT 33 - + + 59 + + 4 * + COALESCE ( 0, + MAX( ALL - 54 ), AVG ( ALL + CAST( NULL AS SIGNED ) ) DIV 54 ) * + 6
----
-26

skipif mysql # not compatible
query I rowsort label-1712
SELECT DISTINCT 33 - + + 59 + + 4 * + COALESCE ( 0, + MAX ( ALL - 54 ), AVG ( ALL + CAST ( NULL AS INTEGER ) ) / 54 ) * + 6
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-1713
SELECT DISTINCT - 20 DIV 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT - 20 / 86 AS col2
----
0

query I rowsort
SELECT 77 - COALESCE ( - - 80, + 91 ) * - 87 AS col2
----
7037

query I rowsort
SELECT DISTINCT - NULLIF ( - - 22, + + 7 )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1716
SELECT ALL - CASE - - 10 WHEN + MIN( ALL + - 14 ) * - COUNT( * ) THEN NULL WHEN 51 THEN + 92 * - 50 WHEN - 28 - CAST( 24 AS SIGNED ) / AVG ( ALL 79 * 23 ) THEN 64 * CAST( 63 AS SIGNED ) + CAST( COUNT( * ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL - CASE - - 10 WHEN + MIN ( ALL + - 14 ) * - COUNT ( * ) THEN NULL WHEN 51 THEN + 92 * - 50 WHEN - 28 - CAST ( 24 AS INTEGER ) / AVG ( ALL 79 * 23 ) THEN 64 * CAST ( 63 AS INTEGER ) + CAST ( COUNT ( * ) AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1717
SELECT ALL - COALESCE ( + 26, + + SUM( - + 22 ) * - CASE + ( - 25 ) * + ( + NULLIF ( 55, - 56 DIV 78 + 11 ) DIV 75 ) WHEN - 68 THEN 40 * 71 ELSE + COUNT( * ) DIV - 51 + 6 * + CAST( - 65 AS SIGNED ) END, - COUNT( * ) + - 87 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL - COALESCE ( + 26, + + SUM ( - + 22 ) * - CASE + ( - 25 ) * + ( + NULLIF ( 55, - 56 / 78 + 11 ) / 75 ) WHEN - 68 THEN 40 * 71 ELSE + COUNT ( * ) / - 51 + 6 * + CAST ( - 65 AS INTEGER ) END, - COUNT ( * ) + - 87 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT ALL - 48 * - COUNT( DISTINCT + 92 ) col1
----
48

skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL - 48 * - COUNT ( DISTINCT + 92 ) col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT 83 * ( + + 84 ) * - 27 + NULLIF ( - 30, - 86 * - ( COUNT( * ) ) )
----
-188274

skipif mysql # not compatible
query I rowsort label-1719
SELECT 83 * ( + + 84 ) * - 27 + NULLIF ( - 30, - 86 * - ( COUNT ( * ) ) )
----
-188274

query I rowsort
SELECT DISTINCT - ( 30 ) + + ( - 64 ) AS col0
----
-94

query I rowsort
SELECT ALL 68 + + 10 AS col1
----
78

query I rowsort
SELECT + 51 * - 91
----
-4641

query I rowsort
SELECT DISTINCT - 11 + - 48 * - - 98
----
-4715

onlyif mysql # DIV for integer division: 
query I rowsort label-1724
SELECT ALL + 89 DIV 58 * + 8 * 90 * 77 AS col0
----
55440

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL + 89 / 58 * + 8 * 90 * 77 AS col0
----
55440

query I rowsort
SELECT ALL - 78 + 70 + 80 * + 0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT + 18 + - - SUM( + ( 41 ) ) + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-1726
SELECT + 18 + - - SUM ( + ( 41 ) ) + COUNT ( * )
----
60

query I rowsort
SELECT ( 96 ) + - + 94 - - + 19 AS col2
----
21

query I rowsort
SELECT ALL - 28 * 39 col1
----
-1092

onlyif mysql # DIV for integer division: 
query II rowsort label-1729
SELECT 18 DIV 31, CASE - - 1 WHEN + 74 * 49 THEN NULL WHEN - 25 THEN 26 + 77 WHEN - 80 THEN 27 END * + 32 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1729
SELECT 18 / 31, CASE - - 1 WHEN + 74 * 49 THEN NULL WHEN - 25 THEN 26 + 77 WHEN - 80 THEN 27 END * + 32 AS col1
----
0
NULL

query I rowsort
SELECT 5 * - 73
----
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT ALL 97 - - COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL 97 - - COUNT ( * ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT - CASE COUNT( - - 92 ) WHEN - 88 THEN NULL WHEN COUNT( * ) + ( 75 + 70 ) THEN 92 ELSE NULL END + - 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT - CASE COUNT ( - - 92 ) WHEN - 88 THEN NULL WHEN COUNT ( * ) + ( 75 + 70 ) THEN 92 ELSE NULL END + - 72 AS col1
----
NULL

query I rowsort
SELECT 97 + + ( ( - 32 ) ) * - 23 AS col1
----
833

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT COUNT( * ) + + 72 + - - 64 * + COUNT( * ) AS col0
----
137

skipif mysql # not compatible
query I rowsort label-1734
SELECT COUNT ( * ) + + 72 + - - 64 * + COUNT ( * ) AS col0
----
137

query I rowsort
SELECT 42 + - 34 AS col1
----
8

query I rowsort
SELECT 49 * - 51
----
-2499

onlyif mysql # DIV for integer division: 
query II rowsort label-1737
SELECT + 21 AS col1, - 57 * - 11 DIV - - 11 AS col2
----
21
57

skipif mysql # not compatible
query II rowsort label-1737
SELECT + 21 AS col1, - 57 * - 11 / - - 11 AS col2
----
21
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT SUM( ALL 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-1738
SELECT SUM ( ALL 54 ) AS col1
----
54

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1740
SELECT ALL - COALESCE ( + 0, - + 8, + CAST( NULL AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL - COALESCE ( + 0, - + 8, + CAST ( NULL AS INTEGER ) ) col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1741
SELECT ALL - COUNT( * ) AS col1, ( - COALESCE ( + 79, - 95 ) ) AS col0
----
-1
-79

skipif mysql # not compatible
query II rowsort label-1741
SELECT ALL - COUNT ( * ) AS col1, ( - COALESCE ( + 79, - 95 ) ) AS col0
----
-1
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT SUM( - 16 ) + + MIN( + 32 ) + + COUNT( * ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-1743
SELECT SUM ( - 16 ) + + MIN ( + 32 ) + + COUNT ( * ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT + SUM( 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-1744
SELECT + SUM ( 43 ) AS col2
----
43

query I rowsort
SELECT + 25 * - 48 + - 86
----
-1286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1746
SELECT + 31 * 86 + - + 8 - ( - NULLIF ( - 22, AVG ( DISTINCT - 88 ) * - CAST( 78 * + ( - CAST( 32 AS DECIMAL ) * + 59 ) AS SIGNED ) ) ) * COUNT( * )
----
2636

skipif mysql # not compatible
query I rowsort label-1746
SELECT + 31 * 86 + - + 8 - ( - NULLIF ( - 22, AVG ( DISTINCT - 88 ) * - CAST ( 78 * + ( - CAST ( 32 AS REAL ) * + 59 ) AS INTEGER ) ) ) * COUNT ( * )
----
2636

query I rowsort
SELECT - 26 * + 1 * 78 col0
----
-2028

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT - 14 + - + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-1748
SELECT - 14 + - + COUNT ( * )
----
-15

query I rowsort
SELECT - - 62 + + 50
----
112

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

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT + + COUNT ( * ) * 83 AS col0
----
83

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT - - COUNT( * ) + + + CASE + 96 WHEN 33 + COUNT( * ) THEN - 55 * ( + 60 ) WHEN 30 - 39 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1753
SELECT - - COUNT ( * ) + + + CASE + 96 WHEN 33 + COUNT ( * ) THEN - 55 * ( + 60 ) WHEN 30 - 39 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 18 + - + 41 * + 69 AS col2
----
-2811

query I rowsort
SELECT - 15 * + ( - + 15 ) col0
----
225

query I rowsort
SELECT - 85 + - 16
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT ALL - COALESCE ( - 42, 47, COUNT( * ) ) * MIN( DISTINCT - 66 ) - 12
----
-2784

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL - COALESCE ( - 42, 47, COUNT ( * ) ) * MIN ( DISTINCT - 66 ) - 12
----
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT MIN( - COALESCE ( - - 94, + 57 ) )
----
-94

skipif mysql # not compatible
query I rowsort label-1758
SELECT MIN ( - COALESCE ( - - 94, + 57 ) )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1759
SELECT DISTINCT - - ( + - SUM( 99 ) ) * + 17 + 45 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT - - ( + - SUM ( 99 ) ) * + 17 + 45 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - + 60 * - + 51 col1
----
3060

query I rowsort
SELECT ALL - + 76 * - 98 * + - 52
----
-387296

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1763
SELECT ALL - 53, + 19 * + 56 + + NULLIF ( - SUM( DISTINCT + 70 ), 1 ) * 79 AS col2
----
-53
-4466

skipif mysql # not compatible
query II rowsort label-1763
SELECT ALL - 53, + 19 * + 56 + + NULLIF ( - SUM ( DISTINCT + 70 ), 1 ) * 79 AS col2
----
-53
-4466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1764
SELECT + COUNT( ALL - - CAST( - + 20 AS SIGNED ) ) * + - 10 DIV - + 81 * - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1764
SELECT + COUNT ( ALL - - CAST ( - + 20 AS INTEGER ) ) * + - 10 / - + 81 * - 95 AS col1
----
0

query I rowsort
SELECT DISTINCT + 72 - - 79
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT CASE - - ( - 12 ) WHEN + 39 * + 88 + 27 - 4 THEN + 45 WHEN 79 - COUNT( * ) THEN NULL WHEN COUNT( * ) * + 88 + 64 THEN + COUNT( * ) - + 79 ELSE + 86 END col0
----
86

skipif mysql # not compatible
query I rowsort label-1766
SELECT CASE - - ( - 12 ) WHEN + 39 * + 88 + 27 - 4 THEN + 45 WHEN 79 - COUNT ( * ) THEN NULL WHEN COUNT ( * ) * + 88 + 64 THEN + COUNT ( * ) - + 79 ELSE + 86 END col0
----
86

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1768
SELECT DISTINCT 46 * CAST( + + CASE WHEN NOT 55 > NULL THEN + + 58 * CAST( 74 AS SIGNED ) ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT 46 * CAST ( + + CASE WHEN NOT 55 > NULL THEN + + 58 * CAST ( 74 AS INTEGER ) ELSE NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1769
SELECT ALL 81 * - COALESCE ( - 94, + 95 * - + 1 + - 62 DIV - 59, 40 + + 13 )
----
7614

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL 81 * - COALESCE ( - 94, + 95 * - + 1 + - 62 / - 59, 40 + + 13 )
----
7614

query I rowsort
SELECT + 81 + + 45
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1771
SELECT ALL ( + - ( + 32 ) ) DIV 88 + - + 74 * + 93 + COUNT( * ) + + 75 AS col0
----
-6806

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL ( + - ( + 32 ) ) / 88 + - + 74 * + 93 + COUNT ( * ) + + 75 AS col0
----
-6806

query I rowsort
SELECT + CASE WHEN NOT ( NULL ) BETWEEN ( NULL ) AND ( - 22 ) THEN + 72 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT + SUM( DISTINCT + 7 ) col0
----
7

skipif mysql # not compatible
query I rowsort label-1773
SELECT + SUM ( DISTINCT + 7 ) col0
----
7

query I rowsort
SELECT - 27 - - + 88
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT + COUNT( * ) * - CASE WHEN ( NOT ( CASE - 36 WHEN + 6 * + 64 THEN NULL WHEN + 22 / 66 THEN MIN( - 96 ) ELSE NULL END ) > ( 54 + - 3 ) ) THEN 38 END * + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1775
SELECT + COUNT ( * ) * - CASE WHEN ( NOT ( CASE - 36 WHEN + 6 * + 64 THEN NULL WHEN + 22 / 66 THEN MIN ( - 96 ) ELSE NULL END ) > ( 54 + - 3 ) ) THEN 38 END * + 38 AS col1
----
NULL

query I rowsort
SELECT 75 * - 21 + + - 47
----
-1622

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT ( NULLIF ( + 68, - ( + 29 ) * + + ( COUNT( * ) ) ) )
----
68

skipif mysql # not compatible
query I rowsort label-1777
SELECT ( NULLIF ( + 68, - ( + 29 ) * + + ( COUNT ( * ) ) ) )
----
68

query I rowsort
SELECT ( + - NULLIF ( 44, - 15 ) )
----
-44

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1780
SELECT ALL - 41 * - - 42 + - - 93 + 86 AS col2, MIN( + 61 ) * 49 + 88
----
-1543
3077

skipif mysql # not compatible
query II rowsort label-1780
SELECT ALL - 41 * - - 42 + - - 93 + 86 AS col2, MIN ( + 61 ) * 49 + 88
----
-1543
3077

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT + COALESCE ( - COALESCE ( 25, - 23 * + + 34 ), + 6 - COUNT( * ) * + 91 ) * - 14 AS col0
----
350

skipif mysql # not compatible
query I rowsort label-1781
SELECT + COALESCE ( - COALESCE ( 25, - 23 * + + 34 ), + 6 - COUNT ( * ) * + 91 ) * - 14 AS col0
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT DISTINCT 52 * + + COUNT( * ) * - + COUNT( * ) * + + 17 + + 86
----
-798

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT 52 * + + COUNT ( * ) * - + COUNT ( * ) * + + 17 + + 86
----
-798

query I rowsort
SELECT ALL + 22 * + 68
----
1496

onlyif mysql # aggregate syntax: 
query II rowsort label-1784
SELECT COUNT( * ) AS col0, 16 * - 72 * - + NULLIF ( - COUNT( * ), - 64 )
----
1
-1152

skipif mysql # not compatible
query II rowsort label-1784
SELECT COUNT ( * ) AS col0, 16 * - 72 * - + NULLIF ( - COUNT ( * ), - 64 )
----
1
-1152

query I rowsort
SELECT ALL + 28 * - 8 + - - 23 + 34
----
-167

query I rowsort
SELECT CASE + + 55 WHEN - 85 * 1 THEN ( + 54 ) / - 43 WHEN - 24 THEN 9 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1787
SELECT - + 50 DIV COUNT( * ) * - 24 + - COUNT( * ) col1
----
1199

skipif mysql # not compatible
query I rowsort label-1787
SELECT - + 50 / COUNT ( * ) * - 24 + - COUNT ( * ) col1
----
1199

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

skipif mysql # not compatible
query II rowsort label-1788
SELECT - COUNT ( * ) col1, 13 AS col0
----
-1
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1789
SELECT ALL - + 56 * + 78 * - CAST( NULL AS SIGNED ) * - COUNT( * ) - COUNT( DISTINCT 21 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL - + 56 * + 78 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) - COUNT ( DISTINCT 21 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1790
SELECT DISTINCT ( + COALESCE ( - + ( + 98 ), - CAST( NULL AS SIGNED ) ) ) * + + 39 AS col1
----
-3822

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT ( + COALESCE ( - + ( + 98 ), - CAST ( NULL AS INTEGER ) ) ) * + + 39 AS col1
----
-3822

onlyif mysql # DIV for integer division: 
query I rowsort label-1791
SELECT DISTINCT + ( + - 72 ) DIV 72
----
-1

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT + ( + - 72 ) / 72
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT DISTINCT SUM( - 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT SUM ( - 98 ) AS col1
----
-98

query II rowsort
SELECT + 10 AS col2, 90 AS col1
----
10
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1794
SELECT ALL + 34 DIV + + 37 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL + 34 / + + 37 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT - + COALESCE ( - COALESCE ( + 64, ( 12 ) ), + + 93 * SUM( DISTINCT 93 ) ) * + COALESCE ( + 44 * COUNT( * ), + 4 * 17, - 60 ) AS col1
----
2816

skipif mysql # not compatible
query I rowsort label-1795
SELECT - + COALESCE ( - COALESCE ( + 64, ( 12 ) ), + + 93 * SUM ( DISTINCT 93 ) ) * + COALESCE ( + 44 * COUNT ( * ), + 4 * 17, - 60 ) AS col1
----
2816

onlyif mysql # DIV for integer division: 
query II rowsort label-1796
SELECT ALL 22, 84 DIV + 88 AS col2
----
22
0

skipif mysql # not compatible
query II rowsort label-1796
SELECT ALL 22, 84 / + 88 AS col2
----
22
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1797
SELECT - + 4 + - 47 AS col0, CAST( CAST( - + 37 AS SIGNED ) AS SIGNED ) AS col2
----
-51
-37

skipif mysql # not compatible
query II rowsort label-1797
SELECT - + 4 + - 47 AS col0, CAST ( CAST ( - + 37 AS INTEGER ) AS INTEGER ) AS col2
----
-51
-37

query I rowsort
SELECT ALL + 78 * + NULLIF ( - + 10, 80 ) AS col0
----
-780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1799
SELECT - 87 + - + 43 * - + ( - COUNT( * ) ) * CAST( + COUNT( * ) AS SIGNED ) + + 19 * - 63
----
-1327

skipif mysql # not compatible
query I rowsort label-1799
SELECT - 87 + - + 43 * - + ( - COUNT ( * ) ) * CAST ( + COUNT ( * ) AS INTEGER ) + + 19 * - 63
----
-1327

query I rowsort
SELECT DISTINCT + 60 * + 1
----
60

query I rowsort
SELECT DISTINCT - 6 + - + 9 + + 68 + + 89 + - - 30
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1802
SELECT - ( - - SUM( 3 ) ) * 52 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1802
SELECT - ( - - SUM ( 3 ) ) * 52 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1803
SELECT - 40 + + NULLIF ( + + 30, - - COUNT( * ) ) + - + COUNT( * ) AS col2, 8
----
-11
8

skipif mysql # not compatible
query II rowsort label-1803
SELECT - 40 + + NULLIF ( + + 30, - - COUNT ( * ) ) + - + COUNT ( * ) AS col2, 8
----
-11
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1804
SELECT ALL - 88 + + 26 + + 48 + 9 + - COUNT( * ) * - COUNT( * ) DIV + 41 * COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL - 88 + + 26 + + 48 + 9 + - COUNT ( * ) * - COUNT ( * ) / + 41 * COUNT ( * ) AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1805
SELECT DISTINCT CAST( CASE + - COALESCE ( - - 39, - + NULLIF ( + 84, - 31 ), 85 - MAX( 43 + + 48 * - 85 ), + COALESCE ( COUNT( * ), 29 * 4 ) ) WHEN - 80 THEN NULL WHEN - 74 THEN NULL ELSE MIN( ALL 5 ) END AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT CAST ( CASE + - COALESCE ( - - 39, - + NULLIF ( + 84, - 31 ), 85 - MAX ( 43 + + 48 * - 85 ), + COALESCE ( COUNT ( * ), 29 * 4 ) ) WHEN - 80 THEN NULL WHEN - 74 THEN NULL ELSE MIN ( ALL 5 ) END AS INTEGER )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT COALESCE ( + + 8, + - SUM( 83 ), + COALESCE ( + 94, 51 ) ) * ( COUNT( * ) + 1 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-1806
SELECT COALESCE ( + + 8, + - SUM ( 83 ), + COALESCE ( + 94, 51 ) ) * ( COUNT ( * ) + 1 ) AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1807
SELECT 89 DIV - 7 + - 85
----
-97

skipif mysql # not compatible
query I rowsort label-1807
SELECT 89 / - 7 + - 85
----
-97

query I rowsort
SELECT ALL 33 + 27
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1809
SELECT ALL + 16 DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL + 16 / + 82 AS col1
----
0

query I rowsort
SELECT ALL + NULLIF ( - 68, + ( - 78 ) + + - 12 * + 14 ) + 89 + NULLIF ( + 3, + 88 ) AS col1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1811
SELECT + CAST( - 0 AS SIGNED ) + + 26 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-1811
SELECT + CAST ( - 0 AS INTEGER ) + + 26 AS col2
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1812
SELECT - 85 DIV + - 91 + ( 38 ) - + COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1812
SELECT - 85 / + - 91 + ( 38 ) - + COUNT ( * ) AS col2
----
37

query I rowsort
SELECT - 93 * 75 + - + 6 + + + 96
----
-6885

onlyif mysql # aggregate syntax: 
query II rowsort label-1814
SELECT ALL - - MAX( + 92 ) AS col0, 82 * - 12 + + COUNT( * )
----
92
-983

skipif mysql # not compatible
query II rowsort label-1814
SELECT ALL - - MAX ( + 92 ) AS col0, 82 * - 12 + + COUNT ( * )
----
92
-983

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT - COUNT( * ) + 56
----
55

skipif mysql # not compatible
query I rowsort label-1815
SELECT - COUNT ( * ) + 56
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1816
SELECT CAST( 71 AS SIGNED ) * + 38
----
2698

skipif mysql # not compatible
query I rowsort label-1816
SELECT CAST ( 71 AS INTEGER ) * + 38
----
2698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1817
SELECT - COUNT( * ) * - COUNT( * ) * - + 9 + - + 7 + + 56 + - 78 DIV + + 39
----
38

skipif mysql # not compatible
query I rowsort label-1817
SELECT - COUNT ( * ) * - COUNT ( * ) * - + 9 + - + 7 + + 56 + - 78 / + + 39
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT - 61 + ( 28 ) * - 96 + + 55 + - COUNT( * )
----
-2695

skipif mysql # not compatible
query I rowsort label-1818
SELECT - 61 + ( 28 ) * - 96 + + 55 + - COUNT ( * )
----
-2695

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT + NULLIF ( + 6, - + 17 / + + 76 ) * - COUNT( * ) * + 27 * - 44 + - 37 AS col2
----
7091

skipif mysql # not compatible
query I rowsort label-1819
SELECT + NULLIF ( + 6, - + 17 / + + 76 ) * - COUNT ( * ) * + 27 * - 44 + - 37 AS col2
----
7091

query I rowsort
SELECT 72 + + 65
----
137

query I rowsort
SELECT + 97 + + 90
----
187

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

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

query I rowsort
SELECT ALL 10 + 26 AS col0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1824
SELECT DISTINCT - 1 DIV - - 50 DIV - COUNT( * ) col2, - 65
----
0
-65

skipif mysql # not compatible
query II rowsort label-1824
SELECT DISTINCT - 1 / - - 50 / - COUNT ( * ) col2, - 65
----
0
-65

query I rowsort
SELECT ALL - 92 + + 38 + + 41 - 90 col2
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-1826
SELECT 77 * + - COUNT( * ) * + ( + 75 ) AS col2, 69 + 84 + + + ( - + 10 )
----
-5775
143

skipif mysql # not compatible
query II rowsort label-1826
SELECT 77 * + - COUNT ( * ) * + ( + 75 ) AS col2, 69 + 84 + + + ( - + 10 )
----
-5775
143

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT 84 DIV - - 70
----
1

skipif mysql # not compatible
query I rowsort label-1828
SELECT 84 / - - 70
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1829
SELECT - 71 AS col2, CAST( NULL AS SIGNED ) / 12 AS col2
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-1829
SELECT - 71 AS col2, CAST ( NULL AS INTEGER ) / 12 AS col2
----
-71
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1830
SELECT CAST( 90 AS SIGNED ) * - + ( + - 18 ) - + 67 AS col1
----
1553

skipif mysql # not compatible
query I rowsort label-1830
SELECT CAST ( 90 AS INTEGER ) * - + ( + - 18 ) - + 67 AS col1
----
1553

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1831
SELECT 30 AS col1, 58 / - 82 * + CAST( NULL AS SIGNED )
----
30
NULL

skipif mysql # not compatible
query II rowsort label-1831
SELECT 30 AS col1, 58 / - 82 * + CAST ( NULL AS INTEGER )
----
30
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1832
SELECT - 82 AS col0, - MIN( DISTINCT + 64 ) col1
----
-82
-64

skipif mysql # not compatible
query II rowsort label-1832
SELECT - 82 AS col0, - MIN ( DISTINCT + 64 ) col1
----
-82
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT DISTINCT + COUNT( * ) * - - 12 col2
----
12

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT + COUNT ( * ) * - - 12 col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1834
SELECT DISTINCT MAX( + 93 ) + - CASE - MIN( DISTINCT - + 93 ) WHEN NULLIF ( COUNT( * ), + NULLIF ( 39, - 45 + COUNT( * ) ) - + 88 ) THEN NULL WHEN - 35 THEN NULL ELSE + NULLIF ( + MIN( DISTINCT - CAST( + 90 AS SIGNED ) ), COUNT( * ) * + COUNT( * ) - 26 ) DIV 59 END * + 45
----
138

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT MAX ( + 93 ) + - CASE - MIN ( DISTINCT - + 93 ) WHEN NULLIF ( COUNT ( * ), + NULLIF ( 39, - 45 + COUNT ( * ) ) - + 88 ) THEN NULL WHEN - 35 THEN NULL ELSE + NULLIF ( + MIN ( DISTINCT - CAST ( + 90 AS INTEGER ) ), COUNT ( * ) * + COUNT ( * ) - 26 ) / 59 END * + 45
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT 9 + + 5 * - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-1835
SELECT 9 + + 5 * - COUNT ( * )
----
4

query I rowsort
SELECT DISTINCT + COALESCE ( + 4, - 67 ) - - - ( + 72 ) + + - 13 * - 36 + - 59 AS col0
----
341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1837
SELECT DISTINCT CASE - - 73 WHEN - 55 - + - 14 THEN - + 54 WHEN + 89 * 25 * - - ( 47 ) + + AVG ( 87 ) THEN COUNT( * ) + CAST( NULL AS SIGNED ) ELSE ( + 92 ) * 63 + - COUNT( * ) END - + 90 * - 12
----
6875

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT CASE - - 73 WHEN - 55 - + - 14 THEN - + 54 WHEN + 89 * 25 * - - ( 47 ) + + AVG ( 87 ) THEN COUNT ( * ) + CAST ( NULL AS INTEGER ) ELSE ( + 92 ) * 63 + - COUNT ( * ) END - + 90 * - 12
----
6875

query I rowsort
SELECT 92 * 27 AS col0
----
2484

query I rowsort
SELECT 2 + + - CASE + - 36 WHEN - + 3 * 15 * - 71 THEN 9 ELSE + - 24 END + 17 * + 98
----
1692

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT DISTINCT - + ( CASE - SUM( - 99 ) WHEN COUNT( * ) THEN 89 + 76 WHEN + - 19 * CASE 1 + 35 * 53 WHEN + 39 THEN NULLIF ( - 99, 30 + - COUNT( * ) ) END THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT - + ( CASE - SUM ( - 99 ) WHEN COUNT ( * ) THEN 89 + 76 WHEN + - 19 * CASE 1 + 35 * 53 WHEN + 39 THEN NULLIF ( - 99, 30 + - COUNT ( * ) ) END THEN NULL END )
----
NULL

query I rowsort
SELECT DISTINCT + 3 - 6
----
-3

query I rowsort
SELECT 49 * - 30 AS col2
----
-1470

query I rowsort
SELECT DISTINCT + 11 * + 78 + - 44
----
814

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1844
SELECT DISTINCT - COUNT( * ) DIV 9 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT - COUNT ( * ) / 9 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1845
SELECT - 9 / - - COUNT( * ) / AVG ( DISTINCT - NULLIF ( + CAST( CASE - 73 WHEN 93 * 75 THEN 64 WHEN 54 - 11 THEN NULL END AS SIGNED ), - 6 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1845
SELECT - 9 / - - COUNT ( * ) / AVG ( DISTINCT - NULLIF ( + CAST ( CASE - 73 WHEN 93 * 75 THEN 64 WHEN 54 - 11 THEN NULL END AS INTEGER ), - 6 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT - ( + + 68 ) * - - 36 - + COUNT( * )
----
-2449

skipif mysql # not compatible
query I rowsort label-1846
SELECT - ( + + 68 ) * - - 36 - + COUNT ( * )
----
-2449

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT + 75 DIV 19
----
3

skipif mysql # not compatible
query I rowsort label-1847
SELECT + 75 / 19
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT + 86 * 47 - + CASE + COUNT( DISTINCT - 82 ) WHEN - 13 + MAX( - 8 ) THEN 77 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT + 86 * 47 - + CASE + COUNT ( DISTINCT - 82 ) WHEN - 13 + MAX ( - 8 ) THEN 77 ELSE NULL END
----
NULL

query II rowsort
SELECT + 6 AS col2, - 39 * + - 19 + - - 99 col2
----
6
840

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

query II rowsort
SELECT - 6 AS col0, 29 AS col2
----
-6
29

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

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

query I rowsort
SELECT ALL - 60 * - + 48
----
2880

query I rowsort
SELECT ALL 78 + + + 43
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1855
SELECT DISTINCT 17 + CAST( NULL AS SIGNED ) AS col0, 38 * + ( + 26 ) * + - ( 43 ) AS col1
----
NULL
-42484

skipif mysql # not compatible
query II rowsort label-1855
SELECT DISTINCT 17 + CAST ( NULL AS INTEGER ) AS col0, 38 * + ( + 26 ) * + - ( 43 ) AS col1
----
NULL
-42484

onlyif mysql # aggregate syntax: 
query II rowsort label-1856
SELECT - COUNT( ALL + + 15 ) AS col0, + 59
----
-1
59

skipif mysql # not compatible
query II rowsort label-1856
SELECT - COUNT ( ALL + + 15 ) AS col0, + 59
----
-1
59

onlyif mysql # aggregate syntax: 
query II rowsort label-1857
SELECT 87 * - 46 AS col2, - NULLIF ( + 35, + NULLIF ( - 99, CASE - COUNT( * ) WHEN 69 * + 59 + NULLIF ( 85, 15 + + ( 54 + COUNT( * ) ) ) THEN + 24 * + 78 WHEN + 26 THEN 57 END ) )
----
-4002
-35

skipif mysql # not compatible
query II rowsort label-1857
SELECT 87 * - 46 AS col2, - NULLIF ( + 35, + NULLIF ( - 99, CASE - COUNT ( * ) WHEN 69 * + 59 + NULLIF ( 85, 15 + + ( 54 + COUNT ( * ) ) ) THEN + 24 * + 78 WHEN + 26 THEN 57 END ) )
----
-4002
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1858
SELECT 58 + CAST( NULL AS SIGNED ) * + MIN( + - 67 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1858
SELECT 58 + CAST ( NULL AS INTEGER ) * + MIN ( + - 67 ) AS col1
----
NULL

query I rowsort
SELECT ALL 64 * - 6 * 43 * 67
----
-1106304

query I rowsort
SELECT ALL 22 + 18 * 33 AS col2
----
616

query I rowsort
SELECT + 34 - + 58
----
-24

query I rowsort
SELECT ALL 16 * - 11 * + ( - + 86 ) AS col0
----
15136

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT + ( - 93 ) + - - COUNT( * ) + + 58 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-1863
SELECT + ( - 93 ) + - - COUNT ( * ) + + 58 AS col0
----
-34

query I rowsort
SELECT ALL 63 * - 67 AS col2
----
-4221

onlyif mysql # DIV for integer division: 
query I rowsort label-1865
SELECT ALL - ( - 27 ) DIV + - 11
----
-2

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL - ( - 27 ) / + - 11
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1866
SELECT + 50 + - + ( - 1 ) + - ( - 81 ) * - 32 / CAST( NULL AS SIGNED ) + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT + 50 + - + ( - 1 ) + - ( - 81 ) * - 32 / CAST ( NULL AS INTEGER ) + - 5
----
NULL

query I rowsort
SELECT ALL CASE 13 WHEN + - 6 + - 38 THEN - + 4 ELSE NULL END - + + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT - 27 + - 65 + - 49 * + 64 * - CASE + + COUNT( * ) WHEN 29 THEN NULL WHEN + + ( COUNT( DISTINCT - 93 ) ) * 61 THEN NULL ELSE ( COUNT( * ) ) END
----
3044

skipif mysql # not compatible
query I rowsort label-1868
SELECT - 27 + - 65 + - 49 * + 64 * - CASE + + COUNT ( * ) WHEN 29 THEN NULL WHEN + + ( COUNT ( DISTINCT - 93 ) ) * 61 THEN NULL ELSE ( COUNT ( * ) ) END
----
3044

query I rowsort
SELECT - 44 * - 12 AS col0
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT + CASE COUNT( * ) WHEN - + 14 - - + 44 / + - 44 THEN - - 0 END + - + 33 * + AVG ( DISTINCT + 40 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1870
SELECT + CASE COUNT ( * ) WHEN - + 14 - - + 44 / + - 44 THEN - - 0 END + - + 33 * + AVG ( DISTINCT + 40 ) AS col2
----
NULL

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

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

query I rowsort
SELECT - 20 * - 16 col2
----
320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1873
SELECT - NULLIF ( - 28, 85 + + - CAST( NULL AS SIGNED ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1873
SELECT - NULLIF ( - 28, 85 + + - CAST ( NULL AS INTEGER ) ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT DISTINCT - MIN( DISTINCT + 13 ) * - MAX( - 6 ) * + ( + 15 ) AS col2
----
-1170

skipif mysql # not compatible
query I rowsort label-1874
SELECT DISTINCT - MIN ( DISTINCT + 13 ) * - MAX ( - 6 ) * + ( + 15 ) AS col2
----
-1170

query I rowsort
SELECT - 79 * + - 63 * + + 13 + 26
----
64727

query I rowsort
SELECT ALL - + 34 * - 87 + + 46 * - 34 AS col0
----
1394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1877
SELECT - + CAST( - COUNT( * ) AS SIGNED ) - + 24 * + 98 AS col0
----
-2351

skipif mysql # not compatible
query I rowsort label-1877
SELECT - + CAST ( - COUNT ( * ) AS INTEGER ) - + 24 * + 98 AS col0
----
-2351

onlyif mysql # DIV for integer division: 
query II rowsort label-1878
SELECT - + 27 * + ( - 12 ) * - 14 AS col1, - 14 DIV + 94
----
-4536
0

skipif mysql # not compatible
query II rowsort label-1878
SELECT - + 27 * + ( - 12 ) * - 14 AS col1, - 14 / + 94
----
-4536
0

query I rowsort
SELECT + 55 + + + 31 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT + COALESCE ( + COUNT( * ), - + 80 )
----
1

skipif mysql # not compatible
query I rowsort label-1880
SELECT + COALESCE ( + COUNT ( * ), - + 80 )
----
1

query I rowsort
SELECT ALL - - 7 * 80 + + NULLIF ( 74, + ( + 59 ) )
----
634

query II rowsort
SELECT - 68 + + - 37 AS col1, 71
----
-105
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT - 52 - COUNT( * ) - - 28 - 86 * - COUNT( + 92 ) + 46 + - 54 * + 76 - 30 * + 62 AS col1
----
-5857

skipif mysql # not compatible
query I rowsort label-1883
SELECT - 52 - COUNT ( * ) - - 28 - 86 * - COUNT ( + 92 ) + 46 + - 54 * + 76 - 30 * + 62 AS col1
----
-5857

query I rowsort
SELECT + CASE 55 WHEN 97 * 66 * + 51 * - 8 THEN NULL WHEN - 49 * + + ( 45 ) + - 58 + + 95 THEN + 57 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT + 46 * + NULLIF ( + COUNT( * ), + 75 ) + 94
----
140

skipif mysql # not compatible
query I rowsort label-1885
SELECT + 46 * + NULLIF ( + COUNT ( * ), + 75 ) + 94
----
140

query I rowsort
SELECT - - 0 + - 80 * + 10
----
-800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1887
SELECT ALL CAST( - + 49 AS SIGNED ) * + + 15 - - + 90 * - 21 + 96 + 65 * - COALESCE ( + 24, + 59 ) AS col2
----
-4089

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL CAST ( - + 49 AS INTEGER ) * + + 15 - - + 90 * - 21 + 96 + 65 * - COALESCE ( + 24, + 59 ) AS col2
----
-4089

query I rowsort
SELECT DISTINCT + 62 * + 26 - + - 64
----
1676

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT - 28 * - MIN( - + NULLIF ( 1, + 71 ) ) * + - 2
----
56

skipif mysql # not compatible
query I rowsort label-1889
SELECT - 28 * - MIN ( - + NULLIF ( 1, + 71 ) ) * + - 2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT ALL COUNT( * ) + - 40 + + 37 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL COUNT ( * ) + - 40 + + 37 AS col2
----
-2

query II rowsort
SELECT DISTINCT 20 AS col0, 27 AS col0
----
20
27

query I rowsort
SELECT ALL - 30 * + 63 AS col0
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT - 98 * + 67 * - COUNT( * ) AS col0
----
6566

skipif mysql # not compatible
query I rowsort label-1893
SELECT - 98 * + 67 * - COUNT ( * ) AS col0
----
6566

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT DISTINCT - 12 - - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT - 12 - - COUNT ( * )
----
-11

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1896
SELECT - CAST( NULL AS SIGNED ) - 23 + - - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1896
SELECT - CAST ( NULL AS INTEGER ) - 23 + - - 80
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT ALL COUNT( * ) * - ( - ( + + 94 ) ) * 11 AS col2
----
1034

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL COUNT ( * ) * - ( - ( + + 94 ) ) * 11 AS col2
----
1034

query I rowsort
SELECT - 15 - - 79 AS col2
----
64

query I rowsort
SELECT + 32 * + 30
----
960

query I rowsort
SELECT + 38 + - 10 + - 5 + - + 48 * + 33 * 11 - - ( - 55 )
----
-17456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1902
SELECT - NULLIF ( + 46, 71 * - 35 + ( 65 ) + - - 60 * - - ( COALESCE ( + 18, + ( 56 ) * 41 + - CAST( 31 AS SIGNED ) * 11, + COUNT( ALL - 68 ) ) ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-1902
SELECT - NULLIF ( + 46, 71 * - 35 + ( 65 ) + - - 60 * - - ( COALESCE ( + 18, + ( 56 ) * 41 + - CAST ( 31 AS INTEGER ) * 11, + COUNT ( ALL - 68 ) ) ) ) AS col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-1903
SELECT + 85 DIV + 37 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1903
SELECT + 85 / + 37 AS col0
----
2

query I rowsort
SELECT + 73 + - + 39
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1905
SELECT DISTINCT 42 * - ( - MIN( - 82 ) ) - - + CAST( 39 AS SIGNED )
----
-3405

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT 42 * - ( - MIN ( - 82 ) ) - - + CAST ( 39 AS INTEGER )
----
-3405

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT ALL + 62 / - CAST( NULL AS SIGNED ) / + + 59 * + NULLIF ( - COALESCE ( - ( - 49 ), 93 * + 21 ), CAST( NULL AS SIGNED ) + - 28 ) + 93 / + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL + 62 / - CAST ( NULL AS INTEGER ) / + + 59 * + NULLIF ( - COALESCE ( - ( - 49 ), 93 * + 21 ), CAST ( NULL AS INTEGER ) + - 28 ) + 93 / + 9 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT + 0 / - + CASE 15 WHEN - 40 / ( + 35 ) + COUNT( * ) + + 20 THEN + 0 * + - ( - 5 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1908
SELECT + 0 / - + CASE 15 WHEN - 40 / ( + 35 ) + COUNT ( * ) + + 20 THEN + 0 * + - ( - 5 ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1909
SELECT ALL + + 29 DIV - 15 - + - COALESCE ( + 55, + 23, 64 ) + + - 89 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL + + 29 / - 15 - + - COALESCE ( + 55, + 23, 64 ) + + - 89 AS col1
----
-35

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

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

query I rowsort
SELECT - 13 * - 28 AS col2
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT DISTINCT + 39 / - - ( - - COUNT( * ) ) / - CASE 71 WHEN - 94 THEN NULL WHEN 49 THEN + 13 / - 83 ELSE NULL END + + - 66 * + 51 + + 20 + 83 * 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT + 39 / - - ( - - COUNT ( * ) ) / - CASE 71 WHEN - 94 THEN NULL WHEN 49 THEN + 13 / - 83 ELSE NULL END + + - 66 * + 51 + + 20 + 83 * 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1913
SELECT + - 53 DIV 95 DIV COUNT( ALL - - 58 ) + 45 AS col1, 5
----
45
5

skipif mysql # not compatible
query II rowsort label-1913
SELECT + - 53 / 95 / COUNT ( ALL - - 58 ) + 45 AS col1, 5
----
45
5

query I rowsort
SELECT ALL - - 39 * - 25
----
-975

onlyif mysql # DIV for integer division: 
query I rowsort label-1915
SELECT DISTINCT - COALESCE ( - 21, + 92, - 11 + - 73 ) DIV ( + 23 ) + + 74 + - 39 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT - COALESCE ( - 21, + 92, - 11 + - 73 ) / ( + 23 ) + + 74 + - 39 AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-1916
SELECT DISTINCT + + 44 DIV + 44 + - 39
----
-38

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT + + 44 / + 44 + - 39
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT ALL 27 DIV - 63 + - 31
----
-31

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL 27 / - 63 + - 31
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1918
SELECT DISTINCT MIN( - - 50 ) DIV + + 73 + + 25
----
25

skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT MIN ( - - 50 ) / + + 73 + + 25
----
25

query I rowsort
SELECT - 16 * - - 38
----
-608

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1920
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 47 * - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 47 * - 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1921
SELECT ALL + MIN( ALL + - 26 ) DIV + + 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL + MIN ( ALL + - 26 ) / + + 48 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1922
SELECT + 65 AS col1, - 31 + COUNT( * ) + - COUNT( * )
----
65
-31

skipif mysql # not compatible
query II rowsort label-1922
SELECT + 65 AS col1, - 31 + COUNT ( * ) + - COUNT ( * )
----
65
-31

query I rowsort
SELECT DISTINCT 46 - - 20 - - 20 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT 12 - - + 67 + + COUNT( - + 87 ) * - 53 * 2
----
-27

skipif mysql # not compatible
query I rowsort label-1924
SELECT 12 - - + 67 + + COUNT ( - + 87 ) * - 53 * 2
----
-27

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1926
SELECT DISTINCT + SUM( - CAST( NULL AS DECIMAL ) ) * - NULLIF ( 69, - - 58 ) - - 59 * - + MIN( DISTINCT + + 74 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT + SUM ( - CAST ( NULL AS REAL ) ) * - NULLIF ( 69, - - 58 ) - - 59 * - + MIN ( DISTINCT + + 74 ) AS col1
----
NULL

query II rowsort
SELECT ALL 32 AS col0, 86
----
32
86

query I rowsort
SELECT 92 + + 30
----
122

query I rowsort
SELECT 28 * - 60 * + 44 AS col0
----
-73920

query I rowsort
SELECT 2 + - - 81 AS col2
----
83

query I rowsort
SELECT NULLIF ( 95, 77 ) - - - 70
----
25

query II rowsort
SELECT ALL 89 AS col2, + 73
----
89
73

query I rowsort
SELECT 11 + + - 34
----
-23

query I rowsort
SELECT 18 * 79 AS col1
----
1422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1935
SELECT AVG ( ALL - CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED ) * - COUNT( * ) / - COUNT( * ) * - - 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT AVG ( ALL - CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) / - COUNT ( * ) * - - 96 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 81 * 82
----
-6642

query I rowsort
SELECT 37 + + 61
----
98

query I rowsort
SELECT 93 + + 95 AS col1
----
188

query II rowsort
SELECT ALL 78 AS col2, 76 + + + 73 AS col2
----
78
149

query I rowsort
SELECT - - COALESCE ( - 38, - 86 + - 53 * - 11 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT ALL - SUM( + 88 ) + ( + 50 )
----
-38

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL - SUM ( + 88 ) + ( + 50 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1942
SELECT + COUNT( * ) + - 26 + ( - CAST( 69 AS SIGNED ) ) + + COUNT( * ) * - 85 AS col1
----
-179

skipif mysql # not compatible
query I rowsort label-1942
SELECT + COUNT ( * ) + - 26 + ( - CAST ( 69 AS INTEGER ) ) + + COUNT ( * ) * - 85 AS col1
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT DISTINCT COUNT( ALL ( + 19 ) ) + - + 68 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT COUNT ( ALL ( + 19 ) ) + - + 68 AS col1
----
-67

query I rowsort
SELECT + ( + NULLIF ( + 13, - 93 + - 74 ) ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT DISTINCT - - COUNT( * ) + - ( - 72 ) * + 23
----
1657

skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT - - COUNT ( * ) + - ( - 72 ) * + 23
----
1657

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT - 87 + - CAST( NULL AS SIGNED ) * - 60 * - + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT - 87 + - CAST ( NULL AS INTEGER ) * - 60 * - + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT 41 * - 43 * + COUNT( ALL - 70 ) * + - 38 - + 74 * + 22 AS col1
----
65366

skipif mysql # not compatible
query I rowsort label-1948
SELECT 41 * - 43 * + COUNT ( ALL - 70 ) * + - 38 - + 74 * + 22 AS col1
----
65366

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1950
SELECT + 53 + + 2 DIV - 80 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-1950
SELECT + 53 + + 2 / - 80 AS col1
----
53

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1952
SELECT CASE - COUNT( * ) WHEN - + 61 / 75 THEN NULL WHEN + 69 THEN NULL WHEN + SUM( DISTINCT 72 ) * + 30 * + 2 THEN 11 + + + CAST( NULL AS SIGNED ) END * ( - COUNT( * ) + ( - 47 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1952
SELECT CASE - COUNT ( * ) WHEN - + 61 / 75 THEN NULL WHEN + 69 THEN NULL WHEN + SUM ( DISTINCT 72 ) * + 30 * + 2 THEN 11 + + + CAST ( NULL AS INTEGER ) END * ( - COUNT ( * ) + ( - 47 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1953
SELECT + COUNT( * ) - + + CAST( NULL AS DECIMAL ) - - MAX( DISTINCT 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT + COUNT ( * ) - + + CAST ( NULL AS REAL ) - - MAX ( DISTINCT 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT + + 26 * - - COUNT( + 48 ) + - 39 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1954
SELECT + + 26 * - - COUNT ( + 48 ) + - 39 AS col1
----
-13

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1956
SELECT CASE + 16 WHEN - 80 * 53 * - 22 + + + 96 THEN + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) END * + 65 - - + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT CASE + 16 WHEN - 80 * 53 * - 22 + + + 96 THEN + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) END * + 65 - - + 51 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT DISTINCT COUNT( * ) * - - 79
----
79

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT COUNT ( * ) * - - 79
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1958
SELECT CASE 29 WHEN + 91 THEN NULL WHEN CASE + - 15 WHEN - 78 THEN - COUNT( * ) * - + ( - 36 ) + + + ( - + 53 ) * - COUNT( * ) - MAX( 69 + 74 / + ( CAST( NULL AS SIGNED ) ) ) * 28 END THEN - 88 - + 11 * 62 ELSE NULL END * + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1958
SELECT CASE 29 WHEN + 91 THEN NULL WHEN CASE + - 15 WHEN - 78 THEN - COUNT ( * ) * - + ( - 36 ) + + + ( - + 53 ) * - COUNT ( * ) - MAX ( 69 + 74 / + ( CAST ( NULL AS INTEGER ) ) ) * 28 END THEN - 88 - + 11 * 62 ELSE NULL END * + 15 AS col1
----
NULL

query I rowsort
SELECT ( - 77 ) + - + 3
----
-80

query I rowsort
SELECT ALL + ( + NULLIF ( + 26, - + 43 * + 45 ) ) * - 41 * + 96 AS col2
----
-102336

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT - 47 * MAX( + 86 ) + + 58 col0
----
-3984

skipif mysql # not compatible
query I rowsort label-1961
SELECT - 47 * MAX ( + 86 ) + + 58 col0
----
-3984

query I rowsort
SELECT 28 * - 34
----
-952

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1964
SELECT 47 + 13 + 39 * - - 47 + + - 2 + - 2 * - SUM( ALL + + 58 ) + COUNT( DISTINCT - 47 ) * + COUNT( * ) + + - CAST( NULL AS SIGNED ) + 97 * + NULLIF ( 86, - COUNT( * ) - + 48 ) * - AVG ( DISTINCT 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT 47 + 13 + 39 * - - 47 + + - 2 + - 2 * - SUM ( ALL + + 58 ) + COUNT ( DISTINCT - 47 ) * + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) + 97 * + NULLIF ( 86, - COUNT ( * ) - + 48 ) * - AVG ( DISTINCT 88 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1965
SELECT 18 DIV 25, 67 AS col2
----
0
67

skipif mysql # not compatible
query II rowsort label-1965
SELECT 18 / 25, 67 AS col2
----
0
67

query II rowsort
SELECT ALL + 95 * + + 45 AS col1, 86
----
4275
86

query I rowsort
SELECT 43 + 54 + - - 4 * - 55 AS col2
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1968
SELECT DISTINCT - ( - ( 37 ) ) + CAST( + 46 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - ( - ( 37 ) ) + CAST ( + 46 AS INTEGER )
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1969
SELECT COUNT( * ) DIV + - 90 + + 23 + CASE + COALESCE ( - 90, + 46 * + AVG ( ALL 91 ) ) WHEN - 5 THEN - 17 ELSE - - 46 END AS col0
----
69

skipif mysql # not compatible
query I rowsort label-1969
SELECT COUNT ( * ) / + - 90 + + 23 + CASE + COALESCE ( - 90, + 46 * + AVG ( ALL 91 ) ) WHEN - 5 THEN - 17 ELSE - - 46 END AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1970
SELECT + CAST( NULL AS SIGNED ) - - 99 + - + 9 + + 92 * - ( - - 36 ) / - 37 - - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1970
SELECT + CAST ( NULL AS INTEGER ) - - 99 + - + 9 + + 92 * - ( - - 36 ) / - 37 - - 74
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1971
SELECT - 21 DIV + 26
----
0

skipif mysql # not compatible
query I rowsort label-1971
SELECT - 21 / + 26
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1972
SELECT 41 - + - COUNT( * ) + 20, 3 col0
----
62
3

skipif mysql # not compatible
query II rowsort label-1972
SELECT 41 - + - COUNT ( * ) + 20, 3 col0
----
62
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1974
SELECT DISTINCT - - 85 + - CAST( NULL AS SIGNED ) + + ( 81 ) * 14 * - - ( - 72 ) * 74 + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT - - 85 + - CAST ( NULL AS INTEGER ) + + ( 81 ) * 14 * - - ( - 72 ) * 74 + - 37
----
NULL

query I rowsort
SELECT ALL + - 72 + 52 + - 47 * + 40 - + 17 * - 70 AS col0
----
-710

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT ALL + - MAX( ALL - 6 ) * + 27 + - 15
----
147

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL + - MAX ( ALL - 6 ) * + 27 + - 15
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT - 37 * - 54 + - COUNT( * ) AS col2
----
1997

skipif mysql # not compatible
query I rowsort label-1977
SELECT - 37 * - 54 + - COUNT ( * ) AS col2
----
1997

onlyif mysql # DIV for integer division: 
query I rowsort label-1978
SELECT DISTINCT + NULLIF ( + 72, ( - - 33 ) ) DIV 89 * - 71 DIV 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT + NULLIF ( + 72, ( - - 33 ) ) / 89 * - 71 / 20 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT + 51 * 21 * 37 + - 16 + + 79 * + - MIN( - 2 ) * + - 91 + 55
----
25288

skipif mysql # not compatible
query I rowsort label-1979
SELECT + 51 * 21 * 37 + - 16 + + 79 * + - MIN ( - 2 ) * + - 91 + 55
----
25288

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

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

query I rowsort
SELECT ALL 95 * + ( + + 23 ) * - + 32
----
-69920

onlyif mysql # DIV for integer division: 
query I rowsort label-1982
SELECT - 63 DIV + 4 + - 99
----
-114

skipif mysql # not compatible
query I rowsort label-1982
SELECT - 63 / + 4 + - 99
----
-114

query I rowsort
SELECT DISTINCT - - 38 * - ( 9 ) + + + 37
----
-305

query I rowsort
SELECT ALL - 71 * - 20
----
1420

query II rowsort
SELECT ALL + 77, CASE - 42 WHEN + 6 / 83 THEN + 41 END * + NULLIF ( - 34, - - 12 ) col1
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT SUM( NULLIF ( - 82, ( - 37 ) ) )
----
-82

skipif mysql # not compatible
query I rowsort label-1986
SELECT SUM ( NULLIF ( - 82, ( - 37 ) ) )
----
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-1987
SELECT ALL + 48 col0, 7 DIV + 34
----
48
0

skipif mysql # not compatible
query II rowsort label-1987
SELECT ALL + 48 col0, 7 / + 34
----
48
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1988
SELECT - 22 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-1988
SELECT - 22 / - 56
----
0

query I rowsort
SELECT + 28 * + + 50
----
1400

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT MAX( 73 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-1990
SELECT MAX ( 73 ) AS col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1991
SELECT DISTINCT 51 DIV 46 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT 51 / 46 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1992
SELECT + CASE + - 97 WHEN NULLIF ( + 42, 63 + + 43 ) * + 87 - - + 97 - - 48 / + 54 * - 62 THEN + - COUNT( * ) * - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1992
SELECT + CASE + - 97 WHEN NULLIF ( + 42, 63 + + 43 ) * + 87 - - + 97 - - 48 / + 54 * - 62 THEN + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1993
SELECT ALL 86 DIV 81 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL 86 / 81 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1994
SELECT + 92 * - COUNT( + - 1 ) AS col0, 98 AS col0, + 87 * + - CAST( - CASE - 23 WHEN ( MAX( - + 95 ) ) THEN NULL ELSE + - COUNT( * ) END AS SIGNED ) col2
----
-92
98
-87

skipif mysql # not compatible
query III rowsort label-1994
SELECT + 92 * - COUNT ( + - 1 ) AS col0, 98 AS col0, + 87 * + - CAST ( - CASE - 23 WHEN ( MAX ( - + 95 ) ) THEN NULL ELSE + - COUNT ( * ) END AS INTEGER ) col2
----
-92
98
-87

query II rowsort
SELECT - 98 * + NULLIF ( 27, + - 12 ), - 53 AS col1
----
-2646
-53

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

skipif mysql # not compatible
query I rowsort label-1996
SELECT MAX ( + 19 )
----
19

query I rowsort
SELECT + 68 * 71 col1
----
4828

query I rowsort
SELECT ALL + 56 * - 57 + + + 9
----
-3183

query II rowsort
SELECT ALL + 63 AS col2, 63 * COALESCE ( 47, + + ( 1 ) + + 46 ) AS col1
----
63
2961

query I rowsort
SELECT ALL 50 + + - ( - + 38 ) + - 84
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT 36 * - - COUNT( * ) - + + 45 + + 70 * 82 AS col2
----
5731

skipif mysql # not compatible
query I rowsort label-2001
SELECT 36 * - - COUNT ( * ) - + + 45 + + 70 * 82 AS col2
----
5731

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2002
SELECT + COALESCE ( + CAST( COUNT( * ) AS SIGNED ), + CAST( NULL AS SIGNED ) ) + - - 82
----
83

skipif mysql # not compatible
query I rowsort label-2002
SELECT + COALESCE ( + CAST ( COUNT ( * ) AS INTEGER ), + CAST ( NULL AS INTEGER ) ) + - - 82
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2003
SELECT ALL CAST( NULL AS SIGNED ) + - 6 * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL CAST ( NULL AS INTEGER ) + - 6 * + 46
----
NULL

query I rowsort
SELECT + 26 + + + 2 * 14 * 7 * 87
----
17078

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

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

query I rowsort
SELECT + 10 + ( - 37 )
----
-27

query I rowsort
SELECT + 23 + 77 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT - CASE + 84 WHEN - COALESCE ( 0, - ( + 36 ) + + COUNT( + 27 ), + + 3 ) THEN NULL WHEN + SUM( - + 1 ) * - MIN( 26 ) + 81 * - 94 THEN NULL ELSE + 78 END - 13 * + 24 AS col2
----
-390

skipif mysql # not compatible
query I rowsort label-2008
SELECT - CASE + 84 WHEN - COALESCE ( 0, - ( + 36 ) + + COUNT ( + 27 ), + + 3 ) THEN NULL WHEN + SUM ( - + 1 ) * - MIN ( 26 ) + 81 * - 94 THEN NULL ELSE + 78 END - 13 * + 24 AS col2
----
-390

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

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

query I rowsort
SELECT ALL - ( - 56 ) + - 64 * + - 60
----
3896

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

skipif mysql # not compatible
query I rowsort label-2011
SELECT - - 33 * COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-2012
SELECT + 58 AS col2, MAX( 89 )
----
58
89

skipif mysql # not compatible
query II rowsort label-2012
SELECT + 58 AS col2, MAX ( 89 )
----
58
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT DISTINCT 25 - CASE - - COUNT( 54 ) WHEN - MIN( ALL + 79 ) THEN - CASE - COUNT( DISTINCT + 94 ) WHEN + COALESCE ( + 54, - + 43, - 92 * AVG ( DISTINCT 30 / 4 ) ) THEN NULL WHEN 96 THEN 2 ELSE 33 * + COUNT( * ) - 17 END WHEN 8 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2013
SELECT DISTINCT 25 - CASE - - COUNT ( 54 ) WHEN - MIN ( ALL + 79 ) THEN - CASE - COUNT ( DISTINCT + 94 ) WHEN + COALESCE ( + 54, - + 43, - 92 * AVG ( DISTINCT 30 / 4 ) ) THEN NULL WHEN 96 THEN 2 ELSE 33 * + COUNT ( * ) - 17 END WHEN 8 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2014
SELECT DISTINCT - 89 * + + MIN( - - 36 ) AS col0, ( - + SUM( ALL 70 ) )
----
-3204
-70

skipif mysql # not compatible
query II rowsort label-2014
SELECT DISTINCT - 89 * + + MIN ( - - 36 ) AS col0, ( - + SUM ( ALL 70 ) )
----
-3204
-70

query I rowsort
SELECT - - 84 + - - 13 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT + COUNT( * ) + 51 col1
----
52

skipif mysql # not compatible
query I rowsort label-2016
SELECT + COUNT ( * ) + 51 col1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-2017
SELECT + + 98 * + 27 - SUM( + + 80 ) AS col1, 78 * - COUNT( 70 ) * 87
----
2566
-6786

skipif mysql # not compatible
query II rowsort label-2017
SELECT + + 98 * + 27 - SUM ( + + 80 ) AS col1, 78 * - COUNT ( 70 ) * 87
----
2566
-6786

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2018
SELECT - COUNT( * ) DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2018
SELECT - COUNT ( * ) / 73 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT - COUNT( * ) + 4 + + 36 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-2019
SELECT - COUNT ( * ) + 4 + + 36 AS col2
----
39

query I rowsort
SELECT DISTINCT + + 27 col2
----
27

query I rowsort
SELECT ALL + 26 * - 21
----
-546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2022
SELECT - + 15 + + COUNT( * ) - + - 96 DIV - 76
----
-15

skipif mysql # not compatible
query I rowsort label-2022
SELECT - + 15 + + COUNT ( * ) - + - 96 / - 76
----
-15

query II rowsort
SELECT + + COALESCE ( - 90, - 40 ) AS col0, + 13 AS col1
----
-90
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT - + 32 * + 65 - + CASE + - 60 WHEN - - COUNT( ALL - 51 ) THEN 56 * 33 * 8 + + 50 WHEN 38 THEN NULL ELSE 18 * COUNT( * ) END + - 3 AS col1
----
-2101

skipif mysql # not compatible
query I rowsort label-2024
SELECT - + 32 * + 65 - + CASE + - 60 WHEN - - COUNT ( ALL - 51 ) THEN 56 * 33 * 8 + + 50 WHEN 38 THEN NULL ELSE 18 * COUNT ( * ) END + - 3 AS col1
----
-2101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2025
SELECT 3 * + 55 + 1 + - - 87 DIV + 81 * - COUNT( * ) + - - 62 - + 33
----
194

skipif mysql # not compatible
query I rowsort label-2025
SELECT 3 * + 55 + 1 + - - 87 / + 81 * - COUNT ( * ) + - - 62 - + 33
----
194

query I rowsort
SELECT ( - - 36 ) AS col2
----
36

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

query I rowsort
SELECT ALL - 40 * + 56 AS col0
----
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT 3 * + COUNT( ALL - 16 ) + - 49 + + 53 * 30
----
1544

skipif mysql # not compatible
query I rowsort label-2029
SELECT 3 * + COUNT ( ALL - 16 ) + - 49 + + 53 * 30
----
1544

query II rowsort
SELECT + 22 - 16 AS col1, + 14
----
6
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT - 51 * + - 85 + + COUNT( * )
----
4336

skipif mysql # not compatible
query I rowsort label-2031
SELECT - 51 * + - 85 + + COUNT ( * )
----
4336

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2033
SELECT ALL + CASE - CAST( NULL AS SIGNED ) WHEN - - 64 * - 73 * - + 71 THEN + 18 WHEN 79 THEN + COUNT( * ) * CAST( 40 AS SIGNED ) END * - COUNT( * ) + + 34 * - + 38 + - CAST( - 41 AS SIGNED ) + - COALESCE ( 98 + 36, + COUNT( * ), COALESCE ( 3, + COUNT( DISTINCT 49 ) ) + 80 ) * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL + CASE - CAST ( NULL AS INTEGER ) WHEN - - 64 * - 73 * - + 71 THEN + 18 WHEN 79 THEN + COUNT ( * ) * CAST ( 40 AS INTEGER ) END * - COUNT ( * ) + + 34 * - + 38 + - CAST ( - 41 AS INTEGER ) + - COALESCE ( 98 + 36, + COUNT ( * ), COALESCE ( 3, + COUNT ( DISTINCT 49 ) ) + 80 ) * + 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT ALL + 85 * + COUNT( * ) + 47 + 30 + + 55
----
217

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL + 85 * + COUNT ( * ) + 47 + 30 + + 55
----
217

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2035
SELECT ALL - 35 * - 92 + + + 10 + + 65 AS col1, CAST( NULL AS DECIMAL )
----
3295
NULL

skipif mysql # not compatible
query II rowsort label-2035
SELECT ALL - 35 * - 92 + + + 10 + + 65 AS col1, CAST ( NULL AS REAL )
----
3295
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2036
SELECT - 50 * - CAST( NULL AS SIGNED ) * - - 46 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2036
SELECT - 50 * - CAST ( NULL AS INTEGER ) * - - 46 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2037
SELECT COALESCE ( + COUNT( * ), + + SUM( DISTINCT - - 44 ) * 49 + COUNT( * ), + + 5 ) AS col2, + 44 + - + 83 col2
----
1
-39

skipif mysql # not compatible
query II rowsort label-2037
SELECT COALESCE ( + COUNT ( * ), + + SUM ( DISTINCT - - 44 ) * 49 + COUNT ( * ), + + 5 ) AS col2, + 44 + - + 83 col2
----
1
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2038
SELECT COALESCE ( ( COALESCE ( - 49, + MAX( ALL + 55 ) ) ), - - 77 + + 0, 53 + + 41 * - CAST( NULL AS SIGNED ) + + 6 + + 58 + CAST( SUM( DISTINCT 86 ) AS SIGNED ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-2038
SELECT COALESCE ( ( COALESCE ( - 49, + MAX ( ALL + 55 ) ) ), - - 77 + + 0, 53 + + 41 * - CAST ( NULL AS INTEGER ) + + 6 + + 58 + CAST ( SUM ( DISTINCT 86 ) AS INTEGER ) ) AS col0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT ALL 96 DIV - - 18
----
5

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL 96 / - - 18
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT + COUNT( * ) + - COALESCE ( + 45, - - 11 )
----
-44

skipif mysql # not compatible
query I rowsort label-2040
SELECT + COUNT ( * ) + - COALESCE ( + 45, - - 11 )
----
-44

query I rowsort
SELECT - NULLIF ( 76, 14 - + 51 )
----
-76

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

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

query I rowsort
SELECT DISTINCT - 49 * - 20
----
980

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT 70 * - 18 * + + 75 - - 54 + MAX( + 12 )
----
-94434

skipif mysql # not compatible
query I rowsort label-2044
SELECT 70 * - 18 * + + 75 - - 54 + MAX ( + 12 )
----
-94434

query I rowsort
SELECT - 24 - 68 + - 45 AS col2
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT COUNT( * ) + - - 74 col2
----
75

skipif mysql # not compatible
query I rowsort label-2046
SELECT COUNT ( * ) + - - 74 col2
----
75

query I rowsort
SELECT ALL - COALESCE ( + + 29, - 23 * 7 + 25, - - 27 ) col1
----
-29

query I rowsort
SELECT ( + ( - 44 ) ) * + 57
----
-2508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2049
SELECT DISTINCT - ( MAX( + + 59 ) ) DIV + + COUNT( * ) + + - ( + 38 )
----
-97

skipif mysql # not compatible
query I rowsort label-2049
SELECT DISTINCT - ( MAX ( + + 59 ) ) / + + COUNT ( * ) + + - ( + 38 )
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2050
SELECT DISTINCT MIN( + - 30 ) AS col2, + 19
----
-30
19

skipif mysql # not compatible
query II rowsort label-2050
SELECT DISTINCT MIN ( + - 30 ) AS col2, + 19
----
-30
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2051
SELECT ALL - COUNT( * ) DIV - 15 + - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL - COUNT ( * ) / - 15 + - - COUNT ( * )
----
1

query I rowsort
SELECT - 82 * - 92 * 68 AS col1
----
512992

query I rowsort
SELECT ALL + 8 + 92 AS col0
----
100

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2055
SELECT - 72 DIV + 93 + + 5 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2055
SELECT - 72 / + 93 + + 5 AS col2
----
5

query II rowsort
SELECT 12 * - 62 * 40 AS col2, + 59
----
-29760
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2057
SELECT 47 + CAST( NULL AS SIGNED ) / + + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT 47 + CAST ( NULL AS INTEGER ) / + + 71 AS col0
----
NULL

query I rowsort
SELECT ALL - 35 + - - 10 col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT DISTINCT - 54 + - 71 * + COUNT( * ) * - + 50 AS col2
----
3496

skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT - 54 + - 71 * + COUNT ( * ) * - + 50 AS col2
----
3496

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2062
SELECT ALL - NULLIF ( + + 3, 88 * CAST( 14 AS SIGNED ) ) + - CASE ( - + COUNT( ALL - 8 ) ) WHEN + - 22 * + 38 THEN - - CAST( + 13 AS SIGNED ) * + 48 - 0 WHEN + 4 + 51 * COUNT( * ) THEN NULL WHEN 95 THEN + 51 * + 83 WHEN - COUNT( * ) THEN 25 * - 80 ELSE NULL END * - 21 AS col0
----
-42003

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL - NULLIF ( + + 3, 88 * CAST ( 14 AS INTEGER ) ) + - CASE ( - + COUNT ( ALL - 8 ) ) WHEN + - 22 * + 38 THEN - - CAST ( + 13 AS INTEGER ) * + 48 - 0 WHEN + 4 + 51 * COUNT ( * ) THEN NULL WHEN 95 THEN + 51 * + 83 WHEN - COUNT ( * ) THEN 25 * - 80 ELSE NULL END * - 21 AS col0
----
-42003

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT - 46 * CASE ( - CASE 91 WHEN 33 + + 95 THEN + 87 END ) WHEN - 85 THEN COALESCE ( + 86, - COUNT( * ), + 9 * + 37 * - - 3 ) * 44 + - 70 * - 80 WHEN 0 + - 55 * + 92 THEN NULL ELSE NULL END - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2063
SELECT - 46 * CASE ( - CASE 91 WHEN 33 + + 95 THEN + 87 END ) WHEN - 85 THEN COALESCE ( + 86, - COUNT ( * ), + 9 * + 37 * - - 3 ) * 44 + - 70 * - 80 WHEN 0 + - 55 * + 92 THEN NULL ELSE NULL END - 57
----
NULL

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

query I rowsort
SELECT 62 * 61 AS col1
----
3782

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT 46 + + - 60 + + + MIN( - ( + 1 ) ) - - 33 + 2 * + + 60 * + 54
----
6498

skipif mysql # not compatible
query I rowsort label-2066
SELECT 46 + + - 60 + + + MIN ( - ( + 1 ) ) - - 33 + 2 * + + 60 * + 54
----
6498

query I rowsort
SELECT 52 * - - 86
----
4472

query II rowsort
SELECT ALL - 91 AS col0, 29 AS col2
----
-91
29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2069
SELECT DISTINCT - COALESCE ( 25, + ( + + CAST( NULLIF ( + 30, - CAST( 10 AS SIGNED ) + + - ( + - 13 ) ) AS SIGNED ) ) - - 13 DIV - - 39 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT - COALESCE ( 25, + ( + + CAST ( NULLIF ( + 30, - CAST ( 10 AS INTEGER ) + + - ( + - 13 ) ) AS INTEGER ) ) - - 13 / - - 39 ) AS col0
----
-25

query I rowsort
SELECT ALL + + 49 - - 87 AS col1
----
136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT 62 + - SUM( - - 38 ) + + + 5 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-2072
SELECT 62 + - SUM ( - - 38 ) + + + 5 AS col0
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-2073
SELECT DISTINCT + 21, COUNT( * ) + - ( + 8 ) AS col2
----
21
-7

skipif mysql # not compatible
query II rowsort label-2073
SELECT DISTINCT + 21, COUNT ( * ) + - ( + 8 ) AS col2
----
21
-7

query I rowsort
SELECT - 55 * + - 69
----
3795

query I rowsort
SELECT 95 + 87 * + - 0 - - 49
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-2076
SELECT + 64 DIV + - 56 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2076
SELECT + 64 / + - 56 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT COUNT( * ) * 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-2077
SELECT COUNT ( * ) * 26 AS col1
----
26

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

skipif mysql # not compatible
query I rowsort label-2078
SELECT COUNT ( * ) + + 7 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT CASE WHEN NULL IN ( + ( - - 56 ), - 7 + 97 + - ( + - 98 ) ) THEN NULL ELSE - 51 END - + 69 + + + COUNT( 47 ) * + + 23 + + 35 + + - 98 AS col2
----
-160

skipif mysql # not compatible
query I rowsort label-2079
SELECT CASE WHEN NULL IN ( + ( - - 56 ), - 7 + 97 + - ( + - 98 ) ) THEN NULL ELSE - 51 END - + 69 + + + COUNT ( 47 ) * + + 23 + + 35 + + - 98 AS col2
----
-160

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

skipif mysql # not compatible
query I rowsort label-2080
SELECT - SUM ( - ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2081
SELECT - 31 DIV + + 79 * + - 15 * - 1
----
0

skipif mysql # not compatible
query I rowsort label-2081
SELECT - 31 / + + 79 * + - 15 * - 1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2082
SELECT ALL + + 57 DIV 4 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL + + 57 / 4 AS col2
----
14

query I rowsort
SELECT 11 + + 92 + 44 AS col2
----
147

query I rowsort
SELECT DISTINCT + 77 * 80 col0
----
6160

query I rowsort
SELECT + 80 * + 10 * + + ( 38 ) AS col1
----
30400

onlyif mysql # aggregate syntax: 
query II rowsort label-2086
SELECT ALL - 44 + - - COUNT( * ) * - - 48 AS col1, 45
----
4
45

skipif mysql # not compatible
query II rowsort label-2086
SELECT ALL - 44 + - - COUNT ( * ) * - - 48 AS col1, 45
----
4
45

query I rowsort
SELECT 2 + - - ( + + 87 ) col0
----
89

query I rowsort
SELECT DISTINCT 28 + - 97 AS col0
----
-69

query I rowsort
SELECT 47 * - + 69 AS col1
----
-3243

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

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

query I rowsort
SELECT ALL + 13 * - + 3 + + 5 AS col0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2092
SELECT DISTINCT - 63 AS col1, - 31 + - - 93 + CASE COALESCE ( - - 41, + COUNT( * ) ) WHEN 29 THEN - - CAST( NULL AS SIGNED ) WHEN - - 84 + - 97 THEN NULL ELSE + 83 - - CAST( NULL AS SIGNED ) END * + + 84 col1
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-2092
SELECT DISTINCT - 63 AS col1, - 31 + - - 93 + CASE COALESCE ( - - 41, + COUNT ( * ) ) WHEN 29 THEN - - CAST ( NULL AS INTEGER ) WHEN - - 84 + - 97 THEN NULL ELSE + 83 - - CAST ( NULL AS INTEGER ) END * + + 84 col1
----
-63
NULL

query I rowsort
SELECT ALL + 77 * + 83 AS col2
----
6391

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT - 43 * + COALESCE ( + 96, - 42 + 95 + - 81 ) DIV 2 * + 10 + - 9
----
-20649

skipif mysql # not compatible
query I rowsort label-2094
SELECT - 43 * + COALESCE ( + 96, - 42 + 95 + - 81 ) / 2 * + 10 + - 9
----
-20649

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2095
SELECT ALL + 97 * + 45 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL + 97 * + 45 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2096
SELECT DISTINCT ( - 10 ) DIV + + 75 * - ( 63 )
----
0

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT ( - 10 ) / + + 75 * - ( 63 )
----
0

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

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

query I rowsort
SELECT ( 60 ) * - 72 AS col0
----
-4320

query I rowsort
SELECT 56 + + - 60
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2100
SELECT ALL CAST( NULL AS DECIMAL ) * - + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL CAST ( NULL AS REAL ) * - + 94 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2101
SELECT ( - - COUNT( ALL + 35 ) ) + + - 31 AS col0, 72
----
-30
72

skipif mysql # not compatible
query II rowsort label-2101
SELECT ( - - COUNT ( ALL + 35 ) ) + + - 31 AS col0, 72
----
-30
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2102
SELECT + 92 DIV NULLIF ( + 32, 78 * + 31 + 24 ) * - 25 + 11 - - - COUNT( * ) * 79 AS col0
----
-118

skipif mysql # not compatible
query I rowsort label-2102
SELECT + 92 / NULLIF ( + 32, 78 * + 31 + 24 ) * - 25 + 11 - - - COUNT ( * ) * 79 AS col0
----
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-2103
SELECT COUNT( * ), 23 AS col2
----
1
23

skipif mysql # not compatible
query II rowsort label-2103
SELECT COUNT ( * ), 23 AS col2
----
1
23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2105
SELECT + ( + 80 ) * + COALESCE ( + + CAST( NULL AS SIGNED ), + 35 ) * + 71 + - - ( COUNT( * ) )
----
198801

skipif mysql # not compatible
query I rowsort label-2105
SELECT + ( + 80 ) * + COALESCE ( + + CAST ( NULL AS INTEGER ), + 35 ) * + 71 + - - ( COUNT ( * ) )
----
198801

onlyif mysql # aggregate syntax: 
query II rowsort label-2106
SELECT ALL CASE + + 83 WHEN + COUNT( * ) THEN NULL WHEN + + 42 * + + 46 * + + 50 THEN - - 46 ELSE NULL END * 72 * + + 34, + 18 AS col2
----
NULL
18

skipif mysql # not compatible
query II rowsort label-2106
SELECT ALL CASE + + 83 WHEN + COUNT ( * ) THEN NULL WHEN + + 42 * + + 46 * + + 50 THEN - - 46 ELSE NULL END * 72 * + + 34, + 18 AS col2
----
NULL
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT ALL - - COUNT( * ) - - NULLIF ( - + 61, - - 15 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL - - COUNT ( * ) - - NULLIF ( - + 61, - - 15 ) AS col0
----
-60

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

query I rowsort
SELECT - - 55 * 24 * - 47 col0
----
-62040

onlyif mysql # aggregate syntax: 
query III rowsort label-2110
SELECT ALL + COUNT( * ), - ( 34 ) + - 77 AS col1, + - COALESCE ( - + COUNT( * ), - 50 * + NULLIF ( - 53, - 55 ) + 87 ) * COUNT( * ) + 69 AS col0
----
1
-111
70

skipif mysql # not compatible
query III rowsort label-2110
SELECT ALL + COUNT ( * ), - ( 34 ) + - 77 AS col1, + - COALESCE ( - + COUNT ( * ), - 50 * + NULLIF ( - 53, - 55 ) + 87 ) * COUNT ( * ) + 69 AS col0
----
1
-111
70

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2112
SELECT ALL - 0 AS col1, - MAX( + 69 )
----
0
-69

skipif mysql # not compatible
query II rowsort label-2112
SELECT ALL - 0 AS col1, - MAX ( + 69 )
----
0
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT DISTINCT + SUM( DISTINCT 7 ) * 79
----
553

skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT + SUM ( DISTINCT 7 ) * 79
----
553

query II rowsort
SELECT DISTINCT + 74 AS col1, 18
----
74
18

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2115
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2, 5 + - + 82
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-2115
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2, 5 + - + 82
----
NULL
-77

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

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

query I rowsort
SELECT - + 28 + - 91
----
-119

query I rowsort
SELECT DISTINCT + 6 * - 50
----
-300

query I rowsort
SELECT ALL - 48 + - 29 + - 35 * + 83
----
-2982

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT - MIN( DISTINCT 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-2120
SELECT - MIN ( DISTINCT 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT - 4 * - - 18 * + + COUNT( * ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-2121
SELECT - 4 * - - 18 * + + COUNT ( * ) AS col0
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2122
SELECT - - 9 - + SUM( DISTINCT - - 46 ) + - - ( + 58 ) * 45 DIV + 50
----
15

skipif mysql # not compatible
query I rowsort label-2122
SELECT - - 9 - + SUM ( DISTINCT - - 46 ) + - - ( + 58 ) * 45 / + 50
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2123
SELECT - COALESCE ( - COUNT( * ), - 96 * + 20 + 71 + + + 99 - - 15 + + 60 DIV + 52 * 30 ) * - 43 * - - COALESCE ( - - 76, - ( + 19 ) ) * - CAST( - 51 AS SIGNED ) + 97
----
-166571

skipif mysql # not compatible
query I rowsort label-2123
SELECT - COALESCE ( - COUNT ( * ), - 96 * + 20 + 71 + + + 99 - - 15 + + 60 / + 52 * 30 ) * - 43 * - - COALESCE ( - - 76, - ( + 19 ) ) * - CAST ( - 51 AS INTEGER ) + 97
----
-166571

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2124
SELECT + 87 + - + CAST( NULL AS SIGNED ) + 98 + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2124
SELECT + 87 + - + CAST ( NULL AS INTEGER ) + 98 + 70
----
NULL

query I rowsort
SELECT DISTINCT ( + 0 ) + + 52 AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2126
SELECT + 99 + + SUM( 94 ) AS col2, + 54 * - - 45 + - COUNT( * ) DIV + - 88
----
193
2430

skipif mysql # not compatible
query II rowsort label-2126
SELECT + 99 + + SUM ( 94 ) AS col2, + 54 * - - 45 + - COUNT ( * ) / + - 88
----
193
2430

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

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

query I rowsort
SELECT + 87 * + 87
----
7569

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

query I rowsort
SELECT - NULLIF ( + 70, - 21 )
----
-70

query I rowsort
SELECT + 22 - + - 52 - - + 43 AS col2
----
117

query I rowsort
SELECT - 51 * - 29
----
1479

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2133
SELECT DISTINCT + ( 46 ) / - 32 - + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ), - 3 AS col0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-2133
SELECT DISTINCT + ( 46 ) / - 32 - + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ), - 3 AS col0
----
NULL
-3

query I rowsort
SELECT + 86 * + + 29
----
2494

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT + CASE + 49 WHEN - + MIN( + - 48 ) THEN + 52 - + ( - - ( + - ( - COUNT( * ) ) ) ) + - 31 * 20 + - 27 END * + 21 + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT + CASE + 49 WHEN - + MIN ( + - 48 ) THEN + 52 - + ( - - ( + - ( - COUNT ( * ) ) ) ) + - 31 * 20 + - 27 END * + 21 + + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT ALL 38 * + ( + - COUNT( * ) ) - 2 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL 38 * + ( + - COUNT ( * ) ) - 2 AS col0
----
-40

query I rowsort
SELECT DISTINCT - 93 * - 20 - - - 68
----
1792

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2139
SELECT + ( + + CASE + 4 WHEN - + 90 - + COUNT( * ) + 34 THEN + COALESCE ( + 11, 44, 54 ) END ) AS col0, ( - 37 )
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-2139
SELECT + ( + + CASE + 4 WHEN - + 90 - + COUNT ( * ) + 34 THEN + COALESCE ( + 11, 44, 54 ) END ) AS col0, ( - 37 )
----
NULL
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-2140
SELECT ALL 31 DIV 80 * - 79
----
0

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL 31 / 80 * - 79
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2141
SELECT + ( + - 31 ) + CAST( - - 19 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-2141
SELECT + ( + - 31 ) + CAST ( - - 19 AS INTEGER )
----
-12

query I rowsort
SELECT ALL - + 82 * - 10 AS col0
----
820

onlyif mysql # DIV for integer division: 
query I rowsort label-2143
SELECT + 86 DIV - 49 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2143
SELECT + 86 / - 49 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2144
SELECT ALL + 8 * + 87 - + COUNT( * ) + + 29 * - COALESCE ( + ( - + 46 ), + + 19 DIV 34 + COALESCE ( + 95, + 39 ), 19 + - 68 DIV - - NULLIF ( - 32, 19 ) * NULLIF ( + 46, COUNT( * ) + + 49 ) )
----
2029

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL + 8 * + 87 - + COUNT ( * ) + + 29 * - COALESCE ( + ( - + 46 ), + + 19 / 34 + COALESCE ( + 95, + 39 ), 19 + - 68 / - - NULLIF ( - 32, 19 ) * NULLIF ( + 46, COUNT ( * ) + + 49 ) )
----
2029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2145
SELECT DISTINCT + 80 * + 62 + + 68 + COUNT( * ) + - CAST( - + 86 AS SIGNED ) col2
----
5115

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT + 80 * + 62 + + 68 + COUNT ( * ) + - CAST ( - + 86 AS INTEGER ) col2
----
5115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT ALL + 44 * 75 + + 57 + + CAST( NULL AS SIGNED ) + ( + 18 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL + 44 * 75 + + 57 + + CAST ( NULL AS INTEGER ) + ( + 18 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT 74 * + + 60 - COUNT( * ) + + 67
----
4506

skipif mysql # not compatible
query I rowsort label-2147
SELECT 74 * + + 60 - COUNT ( * ) + + 67
----
4506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2148
SELECT - 10 * - 95 * - + CASE - - NULLIF ( + - CASE 57 WHEN + 33 * - 29 THEN CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ELSE + COUNT( * ) * - + MIN( ALL - + 25 ) END, - - 77 * - + COUNT( * ) ) WHEN - 78 THEN - 97 WHEN - 40 * - 8 + 34 THEN + COUNT( * ) * 42 ELSE - CAST( NULL AS SIGNED ) + + NULLIF ( + AVG ( - 73 ) + 47 * COUNT( * ), COALESCE ( + 31, 44, 48 / + 61 ) ) END * - 56 + 8 / 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2148
SELECT - 10 * - 95 * - + CASE - - NULLIF ( + - CASE 57 WHEN + 33 * - 29 THEN CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ELSE + COUNT ( * ) * - + MIN ( ALL - + 25 ) END, - - 77 * - + COUNT ( * ) ) WHEN - 78 THEN - 97 WHEN - 40 * - 8 + 34 THEN + COUNT ( * ) * 42 ELSE - CAST ( NULL AS INTEGER ) + + NULLIF ( + AVG ( - 73 ) + 47 * COUNT ( * ), COALESCE ( + 31, 44, 48 / + 61 ) ) END * - 56 + 8 / 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT ALL - 15 * 90 + MAX( DISTINCT ( - - 18 ) ) * + 12 * 66 * ( 62 ) * - + COUNT( * ) + 12
----
-885210

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL - 15 * 90 + MAX ( DISTINCT ( - - 18 ) ) * + 12 * 66 * ( 62 ) * - + COUNT ( * ) + 12
----
-885210

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT + 93 + - COUNT( ALL - - 95 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-2150
SELECT + 93 + - COUNT ( ALL - - 95 ) AS col2
----
92

query I rowsort
SELECT - 6 + + 61 col0
----
55

query I rowsort
SELECT - 76 - - + 51 AS col0
----
-25

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 95 * + 29
----
-2755

query II rowsort
SELECT - 22 + ( 62 ) AS col0, - 52 * + - 27 AS col0
----
40
1404

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2160
SELECT - 86 DIV + 13
----
-6

skipif mysql # not compatible
query I rowsort label-2160
SELECT - 86 / + 13
----
-6

query I rowsort
SELECT - 3 + + 19 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT - MIN( 34 ) + + + 91 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-2162
SELECT - MIN ( 34 ) + + + 91 AS col0
----
57

query I rowsort
SELECT ALL 68 * - 58
----
-3944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2164
SELECT DISTINCT + 16 DIV + 49 - 55 * + ( + - ( - - COUNT( + + ( + 76 ) ) ) ) * + 66 + + + 76 col2
----
3706

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT + 16 / + 49 - 55 * + ( + - ( - - COUNT ( + + ( + 76 ) ) ) ) * + 66 + + + 76 col2
----
3706

query I rowsort
SELECT + 96 * - 79 + - 17 + - 9 AS col0
----
-7610

query II rowsort
SELECT ALL - 46, 31 AS col1
----
-46
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2167
SELECT 51 DIV - 41 + - + 90 col2, - COUNT( - 86 ) AS col0
----
-91
-1

skipif mysql # not compatible
query II rowsort label-2167
SELECT 51 / - 41 + - + 90 col2, - COUNT ( - 86 ) AS col0
----
-91
-1

query I rowsort
SELECT DISTINCT 90 * + 83 * + - 83 * - 93 AS col2
----
57660930

query I rowsort
SELECT 91 + - 26 AS col0
----
65

query II rowsort
SELECT DISTINCT - 29 col2, 52 AS col0
----
-29
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT ALL - CAST( NULL AS SIGNED ) * - + 96 * + - NULLIF ( - - 56, 49 + - 3 ) + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 96 * + - NULLIF ( - - 56, 49 + - 3 ) + - 42
----
NULL

query II rowsort
SELECT + + 47 AS col0, - 91 col1
----
47
-91

query I rowsort
SELECT 91 + + + 60 AS col0
----
151

query II rowsort
SELECT + + 24 AS col1, 79 + + 81
----
24
160

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2176
SELECT CASE + 41 WHEN - 55 + - 38 THEN - NULLIF ( - 51, + - 4 * + 67 * - CAST( NULL AS SIGNED ) ) + 25 * - 86 * - 51 END + 63 + - + ( + 12 ) - + 13 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2176
SELECT CASE + 41 WHEN - 55 + - 38 THEN - NULLIF ( - 51, + - 4 * + 67 * - CAST ( NULL AS INTEGER ) ) + 25 * - 86 * - 51 END + 63 + - + ( + 12 ) - + 13 col2
----
NULL

query I rowsort
SELECT DISTINCT 76 + - 35
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT DISTINCT + 89 DIV 55
----
1

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT + 89 / 55
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT - SUM( DISTINCT - 35 ) * 1
----
35

skipif mysql # not compatible
query I rowsort label-2179
SELECT - SUM ( DISTINCT - 35 ) * 1
----
35

query I rowsort
SELECT ALL + 56 * + 87 AS col0
----
4872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT + CAST( + + 5 AS SIGNED ) + 93
----
98

skipif mysql # not compatible
query I rowsort label-2181
SELECT + CAST ( + + 5 AS INTEGER ) + 93
----
98

query I rowsort
SELECT DISTINCT + 65 + + 68 + 11
----
144

query I rowsort
SELECT + 27 * + 31 AS col2
----
837

onlyif mysql # DIV for integer division: 
query I rowsort label-2184
SELECT ALL 96 * - COALESCE ( - 56, 21 * - 9 DIV + 38 * - 82 DIV + 44 ) + + 51 * - 6
----
5070

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL 96 * - COALESCE ( - 56, 21 * - 9 / + 38 * - 82 / + 44 ) + + 51 * - 6
----
5070

query I rowsort
SELECT ALL 4 - 94 AS col0
----
-90

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

skipif mysql # not compatible
query I rowsort label-2186
SELECT 21 * + CAST ( COUNT ( * ) AS INTEGER )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT ( - - 41 ) - - ( - - 78 ) + - + 94 * + - ( + MAX( 65 ) )
----
6229

skipif mysql # not compatible
query I rowsort label-2187
SELECT ( - - 41 ) - - ( - - 78 ) + - + 94 * + - ( + MAX ( 65 ) )
----
6229

query I rowsort
SELECT 72 + - - 38 + + 45 + + NULLIF ( + 63, + + 81 ) * + 85 * - 23 * 79 AS col2
----
-9729880

query I rowsort
SELECT DISTINCT - 28 * + 26 col2
----
-728

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

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

query I rowsort
SELECT ALL - 46 * - 76 col2
----
3496

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2193
SELECT 62 * 72, COUNT( * ) AS col2
----
4464
1

skipif mysql # not compatible
query II rowsort label-2193
SELECT 62 * 72, COUNT ( * ) AS col2
----
4464
1

query I rowsort
SELECT DISTINCT + 2 + + - 58 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ALL + - 15 + + + COUNT( ALL - + 5 ) * + 45 * NULLIF ( - 79, + 28 - + 77 ) + - 41
----
-3611

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL + - 15 + + + COUNT ( ALL - + 5 ) * + 45 * NULLIF ( - 79, + 28 - + 77 ) + - 41
----
-3611

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT + + 86 * + - NULLIF ( + 49, 64 * NULLIF ( + + ( SUM( ALL + 80 ) ), + 93 ) / + 70 + - - 94 / 32 + - ( - + 60 ) ) * - + 91 + + - CASE + NULLIF ( + - 10, - 70 ) WHEN - 43 * + 81 - + 2 * - SUM( DISTINCT 96 - 21 ) THEN + 90 * NULLIF ( - 87, - COUNT( * ) ) WHEN COUNT( * ) THEN 57 * - 43 + 15 ELSE NULL END - - 59 / SUM( DISTINCT 44 * - 70 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2196
SELECT + + 86 * + - NULLIF ( + 49, 64 * NULLIF ( + + ( SUM ( ALL + 80 ) ), + 93 ) / + 70 + - - 94 / 32 + - ( - + 60 ) ) * - + 91 + + - CASE + NULLIF ( + - 10, - 70 ) WHEN - 43 * + 81 - + 2 * - SUM ( DISTINCT 96 - 21 ) THEN + 90 * NULLIF ( - 87, - COUNT ( * ) ) WHEN COUNT ( * ) THEN 57 * - 43 + 15 ELSE NULL END - - 59 / SUM ( DISTINCT 44 * - 70 ) AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT 21 * 79 * + 60 * + 80 AS col1
----
7963200

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT - 8 * - MAX( + 58 ) + + 73
----
537

skipif mysql # not compatible
query I rowsort label-2199
SELECT - 8 * - MAX ( + 58 ) + + 73
----
537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2200
SELECT ALL - ( CAST( NULL AS SIGNED ) ) + + COUNT( ALL - 45 ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2201
SELECT 71 * + COALESCE ( + + 4, MAX( DISTINCT - - 13 ) ) + - + 68 DIV - 33
----
286

skipif mysql # not compatible
query I rowsort label-2201
SELECT 71 * + COALESCE ( + + 4, MAX ( DISTINCT - - 13 ) ) + - + 68 / - 33
----
286

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2202
SELECT DISTINCT - - NULLIF ( - 6, + + MAX( + 42 ) * + ( 63 ) + - 66 - - 94 + + + COUNT( * ) * - - CAST( NULL AS DECIMAL ) ) * - 28
----
168

skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT - - NULLIF ( - 6, + + MAX ( + 42 ) * + ( 63 ) + - 66 - - 94 + + + COUNT ( * ) * - - CAST ( NULL AS REAL ) ) * - 28
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT + + COUNT( * ) * - - 38 + + NULLIF ( - 58, + COUNT( * ) )
----
-20

skipif mysql # not compatible
query I rowsort label-2203
SELECT + + COUNT ( * ) * - - 38 + + NULLIF ( - 58, + COUNT ( * ) )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT - COUNT( * ) * + 46 + 64 - + COUNT( ALL 48 ) + - 98 - + 14 + + + 45 * COUNT( * ) * - ( - 92 ) + - 91 + + 48
----
4002

skipif mysql # not compatible
query I rowsort label-2204
SELECT - COUNT ( * ) * + 46 + 64 - + COUNT ( ALL 48 ) + - 98 - + 14 + + + 45 * COUNT ( * ) * - ( - 92 ) + - 91 + + 48
----
4002

query I rowsort
SELECT ALL - 27 * + 53 * - COALESCE ( 39, 9 + 73, 55 ) + 24
----
55833

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2207
SELECT ALL - 36 - ( + 60 ) + - + COUNT( * ) * + + 80, 4 + COUNT( ALL + 45 ) + - - COUNT( * ) col0
----
-176
6

skipif mysql # not compatible
query II rowsort label-2207
SELECT ALL - 36 - ( + 60 ) + - + COUNT ( * ) * + + 80, 4 + COUNT ( ALL + 45 ) + - - COUNT ( * ) col0
----
-176
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2208
SELECT ( 79 ) AS col1, + 36 * - 17 * - 59 + - 97 - - - 27 + - SUM( 95 )
----
79
35889

skipif mysql # not compatible
query II rowsort label-2208
SELECT ( 79 ) AS col1, + 36 * - 17 * - 59 + - 97 - - - 27 + - SUM ( 95 )
----
79
35889

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT - 51 * - 24 * COUNT( * ) + - - 61 + 35 * + + 45 - 13
----
2847

skipif mysql # not compatible
query I rowsort label-2209
SELECT - 51 * - 24 * COUNT ( * ) + - - 61 + 35 * + + 45 - 13
----
2847

onlyif mysql # DIV for integer division: 
query I rowsort label-2210
SELECT ALL 50 DIV COALESCE ( + 63, 79 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL 50 / COALESCE ( + 63, 79 ) AS col0
----
0

query II rowsort
SELECT - 24 + 53 * + 21 * 60, - 94 AS col2
----
66756
-94

query I rowsort
SELECT ALL 94 - - - 3 * + + 25 AS col2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-2213
SELECT ALL COALESCE ( + - 2, + 4, 80 * - + 63 * + - 12 ) DIV + + 18 + + 46 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL COALESCE ( + - 2, + 4, 80 * - + 63 * + - 12 ) / + + 18 + + 46 AS col0
----
46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2215
SELECT ALL COALESCE ( - 26, - + 48 + 49 - + 80 ) DIV - NULLIF ( - ( + - 81 ), - 24 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL COALESCE ( - 26, - + 48 + 49 - + 80 ) / - NULLIF ( - ( + - 81 ), - 24 ) AS col1
----
0

query I rowsort
SELECT 59 * - 0 + - ( - 68 ) + - 44
----
24

query I rowsort
SELECT - COALESCE ( - 23, + + 91 ) AS col1
----
23

query I rowsort
SELECT DISTINCT 57 * + 6 AS col1
----
342

query I rowsort
SELECT 75 + 77 * - 3 * - 62 + + 87 * + 16 AS col1
----
15789

onlyif mysql # DIV for integer division: 
query II rowsort label-2220
SELECT COALESCE ( + 83, + 62, + - 52 ) * + 46, + 19 DIV ( + + 18 ) AS col0
----
3818
1

skipif mysql # not compatible
query II rowsort label-2220
SELECT COALESCE ( + 83, + 62, + - 52 ) * + 46, + 19 / ( + + 18 ) AS col0
----
3818
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2221
SELECT DISTINCT ( - + 56 ) * 90 * - 77 + + - ( - 96 ) + + + 37 - 24 - + - CAST( - 14 AS SIGNED ) * - ( + 6 ) AS col0
----
388273

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT ( - + 56 ) * 90 * - 77 + + - ( - 96 ) + + + 37 - 24 - + - CAST ( - 14 AS INTEGER ) * - ( + 6 ) AS col0
----
388273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2222
SELECT DISTINCT ( ( + + 18 ) ) * + ( - CAST( + - 8 AS SIGNED ) ) AS col1
----
144

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT ( ( + + 18 ) ) * + ( - CAST ( + - 8 AS INTEGER ) ) AS col1
----
144

query I rowsort
SELECT + 9 + + + 82
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2224
SELECT ALL 15 * - + MAX( - 88 ) AS col2, - 96 * 60
----
1320
-5760

skipif mysql # not compatible
query II rowsort label-2224
SELECT ALL 15 * - + MAX ( - 88 ) AS col2, - 96 * 60
----
1320
-5760

query I rowsort
SELECT + 21 * + 36 * + 32
----
24192

query I rowsort
SELECT - 26 * + + 65 * + 39 * 68 AS col1
----
-4481880

query I rowsort
SELECT + 38 + 82
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT - MIN( DISTINCT + - COALESCE ( - + 50, 1, + NULLIF ( 35, + - 16 ) ) ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-2228
SELECT - MIN ( DISTINCT + - COALESCE ( - + 50, 1, + NULLIF ( 35, + - 16 ) ) ) AS col0
----
-50

query I rowsort
SELECT - 96 * - + 82
----
7872

query I rowsort
SELECT ALL - 15 + + - 2
----
-17

query I rowsort
SELECT - 84 + 28 col0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2232
SELECT DISTINCT 33 * CAST( NULL AS SIGNED ) + 35 - - 88 - - 34 / - - 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT 33 * CAST ( NULL AS INTEGER ) + 35 - - 88 - - 34 / - - 8 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2233
SELECT DISTINCT + + 62 * 26 DIV - 90 + - + 47 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT + + 62 * 26 / - 90 + - + 47 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-2234
SELECT DISTINCT - 96 * - - 20 + + - 50, + COUNT( * ) AS col0
----
-1970
1

skipif mysql # not compatible
query II rowsort label-2234
SELECT DISTINCT - 96 * - - 20 + + - 50, + COUNT ( * ) AS col0
----
-1970
1

query I rowsort
SELECT ALL + - 20 * - 61 AS col0
----
1220

onlyif mysql # DIV for integer division: 
query I rowsort label-2236
SELECT - 4 DIV + 61 * - - 35 * + - 24 + - 52 * + 57
----
-2964

skipif mysql # not compatible
query I rowsort label-2236
SELECT - 4 / + 61 * - - 35 * + - 24 + - 52 * + 57
----
-2964

query I rowsort
SELECT + + 0 * + 84 - + 50 * 63 AS col1
----
-3150

query I rowsort
SELECT DISTINCT + - 71 col1
----
-71

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

skipif mysql # not compatible
query II rowsort label-2239
SELECT - CAST ( NULL AS INTEGER ), - CAST ( - 72 AS INTEGER ) AS col1
----
NULL
72

query I rowsort
SELECT - + 20 + + 48 AS col0
----
28

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

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

query I rowsort
SELECT + 29 + - 60 + - 91 * - 69
----
6248

query I rowsort
SELECT - 68 * - 21 * + 12
----
17136

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

skipif mysql # not compatible
query I rowsort label-2244
SELECT MIN ( + - 44 )
----
-44

query II rowsort
SELECT ALL + 59 * - 28 * 20 - 21 - + 82 AS col2, - 50 AS col1
----
-33143
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT + + COUNT( DISTINCT + 33 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2246
SELECT + + COUNT ( DISTINCT + 33 ) col1
----
1

query I rowsort
SELECT ALL + COALESCE ( + 12, + - 97, - 15 )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2248
SELECT - 95 DIV - COUNT( DISTINCT + + 72 ) + + 64
----
159

skipif mysql # not compatible
query I rowsort label-2248
SELECT - 95 / - COUNT ( DISTINCT + + 72 ) + + 64
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2249
SELECT ALL + COUNT( ALL - 44 ) * - 51 DIV - + ( + 28 )
----
1

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL + COUNT ( ALL - 44 ) * - 51 / - + ( + 28 )
----
1

query I rowsort
SELECT ALL 39 * 63 col0
----
2457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2251
SELECT ALL - - 44 * + + 39 - + 13 + + AVG ( DISTINCT - ( - - 1 ) ) * 46 * ( - CAST( NULL AS SIGNED ) ) / + 54 * - ( 48 ) + - + 7 - - - 18 + - SUM( DISTINCT - - 59 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL - - 44 * + + 39 - + 13 + + AVG ( DISTINCT - ( - - 1 ) ) * 46 * ( - CAST ( NULL AS INTEGER ) ) / + 54 * - ( 48 ) + - + 7 - - - 18 + - SUM ( DISTINCT - - 59 ) * COUNT ( * )
----
NULL

query I rowsort
SELECT - - 99 * 12 AS col1
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT - + NULLIF ( + COALESCE ( - COALESCE ( + 68, COALESCE ( + 83, - 96 ) ), + ( - 68 ) * - 47 * - 92 * 92 ), COUNT( * ) + - + 45 ) - - 7
----
75

skipif mysql # not compatible
query I rowsort label-2253
SELECT - + NULLIF ( + COALESCE ( - COALESCE ( + 68, COALESCE ( + 83, - 96 ) ), + ( - 68 ) * - 47 * - 92 * 92 ), COUNT ( * ) + - + 45 ) - - 7
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT + CASE - SUM( + 12 ) WHEN - - 8 / + ( 38 ) + - - 59 + + 18 THEN - - 23 - + 68 WHEN - - 54 * 12 THEN NULL WHEN - ( - - 62 ) THEN + 62 * 94 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT + CASE - SUM ( + 12 ) WHEN - - 8 / + ( 38 ) + - - 59 + + 18 THEN - - 23 - + 68 WHEN - - 54 * 12 THEN NULL WHEN - ( - - 62 ) THEN + 62 * 94 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2255
SELECT ALL + CAST( 58 AS SIGNED ) * - + 66 + - - COUNT( * ) * 22 AS col1
----
-3806

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL + CAST ( 58 AS INTEGER ) * - + 66 + - - COUNT ( * ) * 22 AS col1
----
-3806

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT MIN( DISTINCT 81 ) col2
----
81

skipif mysql # not compatible
query I rowsort label-2256
SELECT MIN ( DISTINCT 81 ) col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT - 4 * - COUNT( * ) * + 53 AS col0
----
212

skipif mysql # not compatible
query I rowsort label-2257
SELECT - 4 * - COUNT ( * ) * + 53 AS col0
----
212

onlyif mysql # aggregate syntax: 
query II rowsort label-2258
SELECT + 7, + COUNT( * ) + - 66 AS col0
----
7
-65

skipif mysql # not compatible
query II rowsort label-2258
SELECT + 7, + COUNT ( * ) + - 66 AS col0
----
7
-65

query II rowsort
SELECT ALL 9, 36 AS col2
----
9
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT - MIN( DISTINCT CASE 8 WHEN + 88 THEN NULL ELSE + - 33 END )
----
33

skipif mysql # not compatible
query I rowsort label-2260
SELECT - MIN ( DISTINCT CASE 8 WHEN + 88 THEN NULL ELSE + - 33 END )
----
33

query I rowsort
SELECT ALL + ( - NULLIF ( + - 80, + - 98 * + 48 ) ) * - CASE + 19 WHEN - AVG ( - CASE + 88 WHEN - 19 THEN NULL WHEN - 45 + 67 THEN ( 60 ) * - 93 END ) * + + 45 + - 51 + + - ( + 8 ) THEN NULL ELSE + 78 - 36 END AS col0
----
-3360

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

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

query II rowsort
SELECT ALL 21, + 27 * - 13 + + 4 AS col1
----
21
-347

query I rowsort
SELECT + 50 + + 87 AS col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT - MIN( - 98 )
----
98

skipif mysql # not compatible
query I rowsort label-2266
SELECT - MIN ( - 98 )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2267
SELECT + ( - 42 ) DIV - 10 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2267
SELECT + ( - 42 ) / - 10 AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2268
SELECT 46, - ( - 96 ) * + COUNT( * ) - + - 61 AS col0
----
46
157

skipif mysql # not compatible
query II rowsort label-2268
SELECT 46, - ( - 96 ) * + COUNT ( * ) - + - 61 AS col0
----
46
157

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

query I rowsort
SELECT ALL 9 + 27 AS col0
----
36

query I rowsort
SELECT DISTINCT 67 + + - 56
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-2272
SELECT 90 AS col0, + 94 * + 2 + - - COUNT( * ) AS col0
----
90
189

skipif mysql # not compatible
query II rowsort label-2272
SELECT 90 AS col0, + 94 * + 2 + - - COUNT ( * ) AS col0
----
90
189

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT + 97 + + COUNT( * ) - + ( 2 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-2274
SELECT + 97 + + COUNT ( * ) - + ( 2 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT DISTINCT COUNT( * ) + - 60 * - + 94
----
5641

skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT COUNT ( * ) + - 60 * - + 94
----
5641

onlyif mysql # DIV for integer division: 
query I rowsort label-2276
SELECT DISTINCT 14 DIV 11 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT 14 / 11 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT ALL 73 + - + COUNT( * ) - - ( - + 84 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL 73 + - + COUNT ( * ) - - ( - + 84 ) AS col0
----
-12

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

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

query I rowsort
SELECT ALL ( + + COALESCE ( 99, 44, - CASE - 27 WHEN + 88 + + 24 THEN 48 ELSE NULL END ) ) + + + 1 + + - 94 AS col0
----
6

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

query I rowsort
SELECT + + 15 * + 84 AS col1
----
1260

query I rowsort
SELECT ALL + 10 + - 55
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-2283
SELECT ALL COUNT( * ) AS col2, + 12 + 5 - - 38 AS col2
----
1
55

skipif mysql # not compatible
query II rowsort label-2283
SELECT ALL COUNT ( * ) AS col2, + 12 + 5 - - 38 AS col2
----
1
55

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

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

query II rowsort
SELECT 83, + 64 AS col0
----
83
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2286
SELECT 20 col0, 82 + - 8 - - - 13 + + COUNT( * ) + - 90 * - - 1
----
20
-28

skipif mysql # not compatible
query II rowsort label-2286
SELECT 20 col0, 82 + - 8 - - - 13 + + COUNT ( * ) + - 90 * - - 1
----
20
-28

query II rowsort
SELECT + + 91, 86 AS col1
----
91
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2288
SELECT ALL + + 85 DIV - 74 + - - MIN( ALL - 70 ) - - ( + - 70 ) col1, - CAST( NULL AS SIGNED ) + + COUNT( * ) + - + 63 + + 65 * 18
----
-141
NULL

skipif mysql # not compatible
query II rowsort label-2288
SELECT ALL + + 85 / - 74 + - - MIN ( ALL - 70 ) - - ( + - 70 ) col1, - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - + 63 + + 65 * 18
----
-141
NULL

query I rowsort
SELECT DISTINCT + - 43 * ( + 36 ) AS col0
----
-1548

query III rowsort
SELECT ALL + + 10, 58 AS col0, + + ( - 18 ) AS col1
----
10
58
-18

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

skipif mysql # not compatible
query I rowsort label-2291
SELECT + 72 / 20 / - 54 * - CAST ( NULL AS INTEGER ) * CAST ( COUNT ( * ) AS INTEGER ) + - - ( + 62 ) - + ( 5 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2292
SELECT ALL + CAST( NULL AS SIGNED ) col1, - 47 col2
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-2292
SELECT ALL + CAST ( NULL AS INTEGER ) col1, - 47 col2
----
NULL
-47

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2294
SELECT + 32 * 94, + 25 * ( 74 ) / - COUNT( * ) + + 97 - NULLIF ( 88, - 75 ) + ( NULLIF ( CAST( NULL AS SIGNED ), - - AVG ( - 46 ) + - 65 ) ) * + MIN( DISTINCT + 60 ) + + - CAST( - 7 AS SIGNED ) * - 2 AS col2
----
3008
NULL

skipif mysql # not compatible
query II rowsort label-2294
SELECT + 32 * 94, + 25 * ( 74 ) / - COUNT ( * ) + + 97 - NULLIF ( 88, - 75 ) + ( NULLIF ( CAST ( NULL AS INTEGER ), - - AVG ( - 46 ) + - 65 ) ) * + MIN ( DISTINCT + 60 ) + + - CAST ( - 7 AS INTEGER ) * - 2 AS col2
----
3008
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2295
SELECT - COUNT( * ) * 99 + - CASE + - 25 WHEN CAST( + - NULLIF ( - - COUNT( - 98 ), 34 ) AS SIGNED ) THEN MIN( - 59 ) * + 7 + 22 + MAX( - 60 ) / - CAST( + 62 AS SIGNED ) / + 18 WHEN 1 + 82 THEN 18 END * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT - COUNT ( * ) * 99 + - CASE + - 25 WHEN CAST ( + - NULLIF ( - - COUNT ( - 98 ), 34 ) AS INTEGER ) THEN MIN ( - 59 ) * + 7 + 22 + MAX ( - 60 ) / - CAST ( + 62 AS INTEGER ) / + 18 WHEN 1 + 82 THEN 18 END * + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT DISTINCT + + 51 * COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT + + 51 * COUNT ( * )
----
51

query II rowsort
SELECT - 21 AS col2, + 2 * - 40
----
-21
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2298
SELECT ALL + - 85, COALESCE ( - COUNT( * ), 17 DIV + 64 - - + 0, - - 74 ) + 31 * + 34 col1, + 7 * 47 * 20 * + 48 + + ( 73 ) + + COUNT( * ) AS col2
----
-85
1053
315914

skipif mysql # not compatible
query III rowsort label-2298
SELECT ALL + - 85, COALESCE ( - COUNT ( * ), 17 / + 64 - - + 0, - - 74 ) + 31 * + 34 col1, + 7 * 47 * 20 * + 48 + + ( 73 ) + + COUNT ( * ) AS col2
----
-85
1053
315914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2299
SELECT ALL + 53 AS col1, - 8 * - - 16 * + - COALESCE ( + + 51, - CASE + 73 WHEN + 73 * COUNT( * ) * + 54 + - 60 THEN NULL WHEN - COUNT( * ) THEN + + 23 - - 74 END ) + CAST( COUNT( * ) AS SIGNED ) + + - 71 + 30 * - - MAX( + CASE 2 WHEN + 23 THEN 76 END ) * - 21
----
53
NULL

skipif mysql # not compatible
query II rowsort label-2299
SELECT ALL + 53 AS col1, - 8 * - - 16 * + - COALESCE ( + + 51, - CASE + 73 WHEN + 73 * COUNT ( * ) * + 54 + - 60 THEN NULL WHEN - COUNT ( * ) THEN + + 23 - - 74 END ) + CAST ( COUNT ( * ) AS INTEGER ) + + - 71 + 30 * - - MAX ( + CASE 2 WHEN + 23 THEN 76 END ) * - 21
----
53
NULL

query I rowsort
SELECT + 84 * 86 * - 97 * - 46 + + 71 - - ( + 16 ) AS col2
----
32233575

onlyif mysql # aggregate syntax: 
query II rowsort label-2301
SELECT + SUM( DISTINCT - + 7 ), + 81 AS col1
----
-7
81

skipif mysql # not compatible
query II rowsort label-2301
SELECT + SUM ( DISTINCT - + 7 ), + 81 AS col1
----
-7
81

query I rowsort
SELECT ALL - 72 * 35 + - 45 AS col1
----
-2565

query I rowsort
SELECT ALL - 87 + 37 AS col1
----
-50

query I rowsort
SELECT ALL + 32 + ( + - 56 ) col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT 72 * + MIN( - + 32 ) AS col0
----
-2304

skipif mysql # not compatible
query I rowsort label-2305
SELECT 72 * + MIN ( - + 32 ) AS col0
----
-2304

query I rowsort
SELECT 75 + + 12
----
87

query I rowsort
SELECT ALL - 96 + + 70 AS col0
----
-26

query I rowsort
SELECT ALL - 87 + - 65 + - + 69 + - 49 * 62 col1
----
-3259

query I rowsort
SELECT ALL + 24 * + 18 AS col1
----
432

query I rowsort
SELECT DISTINCT + 15 + - - 24 + - 44
----
-5

query II rowsort
SELECT 74 * + 11 AS col1, 19
----
814
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT ALL - 70 + COALESCE ( COUNT( * ), 52 + + + 28 + 76, SUM( + + 66 ) + + 34 ) + - SUM( DISTINCT - 36 )
----
-33

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL - 70 + COALESCE ( COUNT ( * ), 52 + + + 28 + 76, SUM ( + + 66 ) + + 34 ) + - SUM ( DISTINCT - 36 )
----
-33

query I rowsort
SELECT DISTINCT + 6 + + ( + 53 ) * - + 43 AS col0
----
-2273

query I rowsort
SELECT 40 * 58
----
2320

onlyif mysql # aggregate syntax: 
query II rowsort label-2315
SELECT - COUNT( 53 ) * COALESCE ( + 59, 49 ) AS col0, 68
----
-59
68

skipif mysql # not compatible
query II rowsort label-2315
SELECT - COUNT ( 53 ) * COALESCE ( + 59, 49 ) AS col0, 68
----
-59
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT 70 + COUNT( DISTINCT - 46 )
----
71

skipif mysql # not compatible
query I rowsort label-2316
SELECT 70 + COUNT ( DISTINCT - 46 )
----
71

query I rowsort
SELECT + 84 - 23
----
61

query II rowsort
SELECT ALL - 98 - 21 + + - ( - ( 72 ) ) + + 98 * + 15, 6 AS col0
----
1423
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2319
SELECT ALL 71 * CAST( NULL AS SIGNED ) * - NULLIF ( 21, - 43 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL 71 * CAST ( NULL AS INTEGER ) * - NULLIF ( 21, - 43 ) col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2321
SELECT ALL - - 36 DIV - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL - - 36 / - COUNT ( * )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT ALL - + MIN( - + 32 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL - + MIN ( - + 32 ) AS col1
----
32

query I rowsort
SELECT ALL NULLIF ( - 98, 56 * - 53 ) * - 6 + - 6 * + - ( 36 ) AS col0
----
804

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT ALL + SUM( ALL 30 ) * + 48 * - 56
----
-80640

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL + SUM ( ALL 30 ) * + 48 * - 56
----
-80640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2325
SELECT + COALESCE ( - 86, - - 43 ) * + 41 + + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2325
SELECT + COALESCE ( - 86, - - 43 ) * + 41 + + + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT - 4 * + - 60 * + + 30
----
7200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2327
SELECT + CAST( + + COUNT( * ) AS SIGNED ) DIV - + 45 + - 50 * + + 93 col1
----
-4650

skipif mysql # not compatible
query I rowsort label-2327
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) / - + 45 + - 50 * + + 93 col1
----
-4650

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT 9 + + COUNT( * ) + + - 90
----
-80

skipif mysql # not compatible
query I rowsort label-2329
SELECT 9 + + COUNT ( * ) + + - 90
----
-80

query II rowsort
SELECT ALL - ( - + 84 ) AS col2, 69 * ( + + ( 23 ) ) AS col2
----
84
1587

query I rowsort
SELECT DISTINCT - - 1 col2
----
1

query II rowsort
SELECT 91 AS col0, 24 AS col2
----
91
24

query I rowsort
SELECT DISTINCT + 55 + - + 14 AS col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2334
SELECT ALL - 0 + + - 22 DIV - 31 * + - NULLIF ( 58, + 27 + + 77 + - COALESCE ( + 54, + - 50 ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL - 0 + + - 22 / - 31 * + - NULLIF ( 58, + 27 + + 77 + - COALESCE ( + 54, + - 50 ) ) col0
----
0

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

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col0
----
2

query II rowsort
SELECT DISTINCT - 4 col0, ( - + 30 ) + 35 AS col2
----
-4
5

query II rowsort
SELECT + 61 AS col0, + 60 + + 34 + + 23 * 87 AS col0
----
61
2095

query I rowsort
SELECT DISTINCT 74 * 75 AS col0
----
5550

query I rowsort
SELECT ALL - 1 + + - 69
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-2340
SELECT 55 - SUM( ALL + 32 ) * - 40 * - 3 * 30 AS col1, + COUNT( * )
----
-115145
1

skipif mysql # not compatible
query II rowsort label-2340
SELECT 55 - SUM ( ALL + 32 ) * - 40 * - 3 * 30 AS col1, + COUNT ( * )
----
-115145
1

query I rowsort
SELECT 62 + + + 99 col1
----
161

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

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

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

skipif mysql # not compatible
query II rowsort label-2343
SELECT 28 AS col1, COUNT ( * ) AS col2
----
28
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ALL - COALESCE ( + 61, - + 88 + MIN( 95 ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL - COALESCE ( + 61, - + 88 + MIN ( 95 ) ) AS col1
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2345
SELECT ALL 30, 80 DIV + 20 + + COUNT( DISTINCT - 61 ) AS col1
----
30
5

skipif mysql # not compatible
query II rowsort label-2345
SELECT ALL 30, 80 / + 20 + + COUNT ( DISTINCT - 61 ) AS col1
----
30
5

query I rowsort
SELECT DISTINCT 91 + 29
----
120

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT COUNT( * ) * - 5 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2349
SELECT COUNT ( * ) * - 5 AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2350
SELECT DISTINCT - COUNT( * ) DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT - COUNT ( * ) / - 89
----
0

query II rowsort
SELECT - 97 AS col1, 88
----
-97
88

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

skipif mysql # not compatible
query I rowsort label-2352
SELECT - + MIN ( 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT - ( COUNT( ALL 71 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2353
SELECT - ( COUNT ( ALL 71 ) )
----
-1

query I rowsort
SELECT + 68 + - - 51 AS col2
----
119

query I rowsort
SELECT DISTINCT + 2 - 60 + + 23 + + 21 col1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2356
SELECT ALL + ( CAST( - + 65 AS SIGNED ) )
----
-65

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL + ( CAST ( - + 65 AS INTEGER ) )
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-2357
SELECT ALL 4 AS col0, COUNT( * ) AS col1
----
4
1

skipif mysql # not compatible
query II rowsort label-2357
SELECT ALL 4 AS col0, COUNT ( * ) AS col1
----
4
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2358
SELECT ALL - 75 col1, COUNT( * ) * - MAX( 15 )
----
-75
-15

skipif mysql # not compatible
query II rowsort label-2358
SELECT ALL - 75 col1, COUNT ( * ) * - MAX ( 15 )
----
-75
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT ALL - 66 * + COUNT( * ) * 65
----
-4290

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL - 66 * + COUNT ( * ) * 65
----
-4290

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT DISTINCT - MAX( DISTINCT + + 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT - MAX ( DISTINCT + + 13 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT + 14 - + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-2361
SELECT + 14 - + COUNT ( * )
----
13

query II rowsort
SELECT ALL - + 67, - 91 * + 98 AS col0
----
-67
-8918

query I rowsort
SELECT ALL - 67 * + 65
----
-4355

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT ALL + 31 * + + 35 - + COUNT( * ) + ( - 94 ) AS col2
----
990

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL + 31 * + + 35 - + COUNT ( * ) + ( - 94 ) AS col2
----
990

query II rowsort
SELECT + 73, 75 AS col2
----
73
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2366
SELECT ALL - 24 * + + CAST( 98 AS SIGNED ) * 59 + 99 + + - 77 + + COALESCE ( - - 58, + - CASE AVG ( DISTINCT + 68 ) WHEN + - 70 THEN NULL ELSE 47 - + 11 END * + + 48 + - 67 ) AS col1
----
-138688

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL - 24 * + + CAST ( 98 AS INTEGER ) * 59 + 99 + + - 77 + + COALESCE ( - - 58, + - CASE AVG ( DISTINCT + 68 ) WHEN + - 70 THEN NULL ELSE 47 - + 11 END * + + 48 + - 67 ) AS col1
----
-138688

query I rowsort
SELECT + + 10 * + + 5 - + + 87 + + 39 AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2368
SELECT ALL - 59 * - COUNT( * ) - - 69 * COUNT( * ) + - 37 + - 68, - 41 AS col2
----
23
-41

skipif mysql # not compatible
query II rowsort label-2368
SELECT ALL - 59 * - COUNT ( * ) - - 69 * COUNT ( * ) + - 37 + - 68, - 41 AS col2
----
23
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2369
SELECT + 23 / - + 63 - - 51 * - + CAST( NULL AS SIGNED ) / + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT + 23 / - + 63 - - 51 * - + CAST ( NULL AS INTEGER ) / + - 17
----
NULL

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

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

query I rowsort
SELECT DISTINCT 98 * 97 AS col0
----
9506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2372
SELECT + COUNT( ALL - 44 ) * 6 + CAST( - 1 AS SIGNED ) col0
----
5

skipif mysql # not compatible
query I rowsort label-2372
SELECT + COUNT ( ALL - 44 ) * 6 + CAST ( - 1 AS INTEGER ) col0
----
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT 33 * - 54 - - 63 - 19 * - - COUNT( * ) col2
----
-1738

skipif mysql # not compatible
query I rowsort label-2374
SELECT 33 * - 54 - - 63 - 19 * - - COUNT ( * ) col2
----
-1738

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT ALL COUNT( + 65 ) * - + 91 * + 14 * - - 42 * + 69 + + 4 + - + ( - COALESCE ( 39, + 48 ) ) - COUNT( * ) AS col1
----
-3692010

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL COUNT ( + 65 ) * - + 91 * + 14 * - - 42 * + 69 + + 4 + - + ( - COALESCE ( 39, + 48 ) ) - COUNT ( * ) AS col1
----
-3692010

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

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT + SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + CASE - - 49 WHEN 2 THEN - 40 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT - 96 + - COUNT( + 39 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-2379
SELECT - 96 + - COUNT ( + 39 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2380
SELECT + COUNT( * ) * 6 AS col0, + 84 AS col2
----
6
84

skipif mysql # not compatible
query II rowsort label-2380
SELECT + COUNT ( * ) * 6 AS col0, + 84 AS col2
----
6
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT - CASE WHEN - CASE 35 WHEN + - 7 THEN + + 65 ELSE 55 + 37 - - CASE - 65 WHEN 30 THEN + - 59 WHEN MAX( ALL + + 50 ) THEN NULL ELSE NULL END - 42 * - + 9 END <= ( NULL ) THEN - MAX( ALL + ( 90 ) ) + + COUNT( * ) + + 76 + - COUNT( * ) * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2382
SELECT - CASE WHEN - CASE 35 WHEN + - 7 THEN + + 65 ELSE 55 + 37 - - CASE - 65 WHEN 30 THEN + - 59 WHEN MAX ( ALL + + 50 ) THEN NULL ELSE NULL END - 42 * - + 9 END <= ( NULL ) THEN - MAX ( ALL + ( 90 ) ) + + COUNT ( * ) + + 76 + - COUNT ( * ) * COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 96 * + + 34 + 49
----
3313

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT ALL SUM( + 54 ) * + 35 AS col0
----
1890

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL SUM ( + 54 ) * + 35 AS col0
----
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT ALL + - 69 + - - COUNT( * ) - + - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL + - 69 + - - COUNT ( * ) - + - COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT - + COALESCE ( 95, + 17 ) + COUNT( + 79 ) + 33 * 90 + + 79 * + + 0 + - - 83 * - + COUNT( * ) AS col0
----
2793

skipif mysql # not compatible
query I rowsort label-2386
SELECT - + COALESCE ( 95, + 17 ) + COUNT ( + 79 ) + 33 * 90 + + 79 * + + 0 + - - 83 * - + COUNT ( * ) AS col0
----
2793

onlyif mysql # aggregate syntax: 
query II rowsort label-2387
SELECT + NULLIF ( - 17, + MAX( ALL - + 57 ) ), + 70 * 9 AS col1
----
-17
630

skipif mysql # not compatible
query II rowsort label-2387
SELECT + NULLIF ( - 17, + MAX ( ALL - + 57 ) ), + 70 * 9 AS col1
----
-17
630

query I rowsort
SELECT - - 66 + - 51
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2389
SELECT - COUNT( * ) + - - 43 - 1 DIV - 72 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2389
SELECT - COUNT ( * ) + - - 43 - 1 / - 72 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2390
SELECT ALL + + CAST( + 26 AS SIGNED ) + - 86 col1
----
-60

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL + + CAST ( + 26 AS INTEGER ) + - 86 col1
----
-60

query I rowsort
SELECT DISTINCT - 27 + - 50 AS col1
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2392
SELECT ALL - + 81 + + 89 + 67 DIV + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL - + 81 + + 89 + 67 / + COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT - 48 + + - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-2393
SELECT - 48 + + - COUNT ( * )
----
-49

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

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL - + 64 * + COUNT ( + ( + + 16 ) ) AS col0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2395
SELECT DISTINCT 52 DIV - SUM( ALL - 81 ) + + + 61 + COUNT( ALL + 52 )
----
62

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT 52 / - SUM ( ALL - 81 ) + + + 61 + COUNT ( ALL + 52 )
----
62

query I rowsort
SELECT - 22 * + - 43 AS col0
----
946

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2397
SELECT DISTINCT NULLIF ( - 47, - 66 ) DIV - 86 + + SUM( ALL - 85 ) + - CAST( + 42 AS SIGNED )
----
-127

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT NULLIF ( - 47, - 66 ) / - 86 + + SUM ( ALL - 85 ) + - CAST ( + 42 AS INTEGER )
----
-127

query I rowsort
SELECT + 80 + - + 33 AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2399
SELECT DISTINCT + 83 DIV + 24 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT + 83 / + 24 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ALL - 9 * - - AVG ( + - 75 ) * COUNT( * ) / 52 - CASE - + NULLIF ( + COUNT( * ), - 61 ) WHEN - + 28 THEN - 65 + 47 ELSE NULL END * + 52 * + COUNT( * ) + - + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL - 9 * - - AVG ( + - 75 ) * COUNT ( * ) / 52 - CASE - + NULLIF ( + COUNT ( * ), - 61 ) WHEN - + 28 THEN - 65 + 47 ELSE NULL END * + 52 * + COUNT ( * ) + - + 5
----
NULL

query I rowsort
SELECT ALL + 65 * - - 63 AS col0
----
4095

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT DISTINCT + COUNT( * ) * - ( + 92 ) * + - 70 + + 12 AS col2
----
6452

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT + COUNT ( * ) * - ( + 92 ) * + - 70 + + 12 AS col2
----
6452

query I rowsort
SELECT + ( 45 ) AS col2
----
45

query I rowsort
SELECT ALL 67 * - 68 - + ( - ( + + ( - + 13 ) ) ) AS col2
----
-4569

query I rowsort
SELECT + 14 * + 42
----
588

query I rowsort
SELECT CASE 27 WHEN + 52 THEN - 1 + + + 24 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT - MAX( DISTINCT + 91 ) - - + 41 + 69
----
19

skipif mysql # not compatible
query I rowsort label-2407
SELECT - MAX ( DISTINCT + 91 ) - - + 41 + 69
----
19

query I rowsort
SELECT + 90 * - 46
----
-4140

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT + ( - COALESCE ( - 16, - + 50 + 47 + + + 1 + - COUNT( * ) * - 41 + - - 75 * 9, + 89 * + 17 ) )
----
16

skipif mysql # not compatible
query I rowsort label-2409
SELECT + ( - COALESCE ( - 16, - + 50 + 47 + + + 1 + - COUNT ( * ) * - 41 + - - 75 * 9, + 89 * + 17 ) )
----
16

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

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

query I rowsort
SELECT 30 * - 97 + + - 98 AS col0
----
-3008

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2412
SELECT + 21 - - + SUM( ALL - CAST( NULL AS DECIMAL ) ) * - 6 + - 51 + + + 7 - ( 84 ) AS col2, COALESCE ( + ( - 61 ), - 36, - ( - + 0 ) * + 33 ) + - NULLIF ( + + 83, - 33 + + 37 / - 20 ) + 10
----
NULL
-134

skipif mysql # not compatible
query II rowsort label-2412
SELECT + 21 - - + SUM ( ALL - CAST ( NULL AS REAL ) ) * - 6 + - 51 + + + 7 - ( 84 ) AS col2, COALESCE ( + ( - 61 ), - 36, - ( - + 0 ) * + 33 ) + - NULLIF ( + + 83, - 33 + + 37 / - 20 ) + 10
----
NULL
-134

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

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

query I rowsort
SELECT + + 55 * 30 AS col2
----
1650

onlyif mysql # aggregate syntax: 
query II rowsort label-2415
SELECT ALL - 59 * + 16 + 31, + COUNT( * ) * - 21 * 82 AS col1
----
-913
-1722

skipif mysql # not compatible
query II rowsort label-2415
SELECT ALL - 59 * + 16 + 31, + COUNT ( * ) * - 21 * 82 AS col1
----
-913
-1722

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT CASE - 35 WHEN + + COUNT( DISTINCT - 15 ) THEN - - 36 / - 1 + - + 35 / + 94 WHEN 8 * - - 67 + - + 94 - + SUM( ALL + 49 ) * - + 20 - - 9 * + + COUNT( ALL 32 ) THEN + COUNT( * ) / + 33 + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2416
SELECT CASE - 35 WHEN + + COUNT ( DISTINCT - 15 ) THEN - - 36 / - 1 + - + 35 / + 94 WHEN 8 * - - 67 + - + 94 - + SUM ( ALL + 49 ) * - + 20 - - 9 * + + COUNT ( ALL 32 ) THEN + COUNT ( * ) / + 33 + - COUNT ( * ) END
----
NULL

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

query I rowsort
SELECT ALL 27 + ( + + 32 ) + - 83
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT - 66 + COUNT( * ) AS col0
----
-65

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

query III rowsort
SELECT ALL - - 29 + + NULLIF ( - + 13, - 48 ) - - 10, 30 * 31 + + + 49 AS col1, 14 AS col0
----
26
979
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT ALL + COUNT( * ) + 50 + MIN( DISTINCT 54 ) * - MIN( 87 ) AS col1
----
-4647

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL + COUNT ( * ) + 50 + MIN ( DISTINCT 54 ) * - MIN ( 87 ) AS col1
----
-4647

query I rowsort
SELECT 94 * - 38 AS col2
----
-3572

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT DISTINCT NULLIF ( + + 94, + 21 ) + + COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT NULLIF ( + + 94, + 21 ) + + COUNT ( * ) AS col1
----
95

query I rowsort
SELECT ALL + 74 + - 39
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2426
SELECT 73 - + + COUNT( * ) DIV - 53 + + SUM( ALL + - 90 ) + + 26 * MIN( - - 43 ) AS col2
----
1101

skipif mysql # not compatible
query I rowsort label-2426
SELECT 73 - + + COUNT ( * ) / - 53 + + SUM ( ALL + - 90 ) + + 26 * MIN ( - - 43 ) AS col2
----
1101

query I rowsort
SELECT ALL - 42 * - 74 AS col2
----
3108

query I rowsort
SELECT 65 + + 4 AS col0
----
69

query II rowsort
SELECT 9 AS col1, 0 + 5
----
9
5

onlyif mysql # DIV for integer division: 
query II rowsort label-2430
SELECT DISTINCT - 32 AS col0, 62 DIV + NULLIF ( - 96, + 14 + - - 76 * + 87 ) col2
----
-32
0

skipif mysql # not compatible
query II rowsort label-2430
SELECT DISTINCT - 32 AS col0, 62 / + NULLIF ( - 96, + 14 + - - 76 * + 87 ) col2
----
-32
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT ( COUNT( * ) ) * - - ( + 29 ) + - 52 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-2431
SELECT ( COUNT ( * ) ) * - - ( + 29 ) + - 52 AS col2
----
-23

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2433
SELECT COUNT( * ) DIV + ( - + 54 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2433
SELECT COUNT ( * ) / + ( - + 54 ) col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2434
SELECT ALL - MIN( ALL + + 75 ) AS col0, + 64 AS col1
----
-75
64

skipif mysql # not compatible
query II rowsort label-2434
SELECT ALL - MIN ( ALL + + 75 ) AS col0, + 64 AS col1
----
-75
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT 7 * + 96 - - COUNT( * ) - - 84 * - COUNT( * ) AS col0
----
589

skipif mysql # not compatible
query I rowsort label-2435
SELECT 7 * + 96 - - COUNT ( * ) - - 84 * - COUNT ( * ) AS col0
----
589

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2436
SELECT DISTINCT + 16 * + 1 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2436
SELECT DISTINCT + 16 * + 1 / + CAST ( NULL AS INTEGER )
----
NULL

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2439
SELECT COUNT ( * ) / + + 67
----
0

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

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL + COUNT ( * ) / + 6 * + - 15
----
0

query II rowsort
SELECT ALL - 89, 83 AS col2
----
-89
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT ALL - CASE - 16 WHEN 46 * - - 73 * 2 - - 8 + - COUNT( * ) + + 12 * + ( 72 ) THEN - COALESCE ( 68, + 64 ) * + 97 / - 88 * 66 + + + 79 + - COUNT( * ) / 62 / - 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL - CASE - 16 WHEN 46 * - - 73 * 2 - - 8 + - COUNT ( * ) + + 12 * + ( 72 ) THEN - COALESCE ( 68, + 64 ) * + 97 / - 88 * 66 + + + 79 + - COUNT ( * ) / 62 / - 75 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2443
SELECT 60 DIV 60 - + + COUNT( * ) * 93
----
-92

skipif mysql # not compatible
query I rowsort label-2443
SELECT 60 / 60 - + + COUNT ( * ) * 93
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT ALL - 79 + - + COUNT( * ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL - 79 + - + COUNT ( * ) AS col2
----
-80

query I rowsort
SELECT ALL + 21 + 93 AS col0
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2446
SELECT - CAST( 99 AS SIGNED ) + - COALESCE ( + 53, - + 48, + CAST( + 79 AS SIGNED ) )
----
-152

skipif mysql # not compatible
query I rowsort label-2446
SELECT - CAST ( 99 AS INTEGER ) + - COALESCE ( + 53, - + 48, + CAST ( + 79 AS INTEGER ) )
----
-152

query I rowsort
SELECT 9 * - 29
----
-261

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

query I rowsort
SELECT 39 + - 88
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2450
SELECT MIN( CAST( 26 AS SIGNED ) ) DIV 74 + + COUNT( * ) * + ( - 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-2450
SELECT MIN ( CAST ( 26 AS INTEGER ) ) / 74 + + COUNT ( * ) * + ( - 81 ) AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2451
SELECT 98 + + 55 + CAST( - 6 AS SIGNED ) + + + COUNT( * ) * + - 48 * + 24
----
-1005

skipif mysql # not compatible
query I rowsort label-2451
SELECT 98 + + 55 + CAST ( - 6 AS INTEGER ) + + + COUNT ( * ) * + - 48 * + 24
----
-1005

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT CASE WHEN NOT + ( - - 39 ) IS NULL THEN 28 + + - 30 + + 68 + + 62 * - NULLIF ( COUNT( * ), - + COUNT( * ) * - 47 - 44 + + 93 + COUNT( * ) + 38 / - - 60 ) END AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2452
SELECT CASE WHEN NOT + ( - - 39 ) IS NULL THEN 28 + + - 30 + + 68 + + 62 * - NULLIF ( COUNT ( * ), - + COUNT ( * ) * - 47 - 44 + + 93 + COUNT ( * ) + 38 / - - 60 ) END AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT ALL - 38 + + - 4 - - - NULLIF ( - - 88, + COALESCE ( + 85, - 19 * - NULLIF ( COUNT( * ), + + 45 / 47 + - 47 ) / + 60, - - 95, - - 0 ) ) + 41 + + 9 * + 72 * + - 93 + + 78 * - + 3 - + 33 col2
----
-60620

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL - 38 + + - 4 - - - NULLIF ( - - 88, + COALESCE ( + 85, - 19 * - NULLIF ( COUNT ( * ), + + 45 / 47 + - 47 ) / + 60, - - 95, - - 0 ) ) + 41 + + 9 * + 72 * + - 93 + + 78 * - + 3 - + 33 col2
----
-60620

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2454
SELECT ALL 30 AS col0, CAST( - - CAST( 23 AS SIGNED ) AS SIGNED ) AS col0, + + 19 AS col2
----
30
23
19

skipif mysql # not compatible
query III rowsort label-2454
SELECT ALL 30 AS col0, CAST ( - - CAST ( 23 AS INTEGER ) AS INTEGER ) AS col0, + + 19 AS col2
----
30
23
19

onlyif mysql # DIV for integer division: 
query I rowsort label-2455
SELECT ALL 0 + - 80 DIV 74 * 36
----
-36

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL 0 + - 80 / 74 * 36
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2456
SELECT ALL CAST( NULL AS SIGNED ) + + ( - 15 ) + SUM( DISTINCT - 27 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL CAST ( NULL AS INTEGER ) + + ( - 15 ) + SUM ( DISTINCT - 27 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2457
SELECT COUNT( * ) + + COUNT( * ) DIV + + 95
----
1

skipif mysql # not compatible
query I rowsort label-2457
SELECT COUNT ( * ) + + COUNT ( * ) / + + 95
----
1

query I rowsort
SELECT 57 * - 48 * + ( + 70 )
----
-191520

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT COUNT( * ) - SUM( + 86 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-2459
SELECT COUNT ( * ) - SUM ( + 86 ) AS col0
----
-85

query I rowsort
SELECT DISTINCT + 11 * + 93
----
1023

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL - MIN( ALL - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL - MIN ( ALL - 38 )
----
38

query I rowsort
SELECT DISTINCT 45 * + 57 AS col0
----
2565

query I rowsort
SELECT 4 * + 47
----
188

onlyif mysql # aggregate syntax: 
query II rowsort label-2464
SELECT 81 * - - 85 AS col0, COUNT( - 9 ) + + NULLIF ( 92, - 25 * 90 + 12 * 64 ) * - + 80 col0
----
6885
-7359

skipif mysql # not compatible
query II rowsort label-2464
SELECT 81 * - - 85 AS col0, COUNT ( - 9 ) + + NULLIF ( 92, - 25 * 90 + 12 * 64 ) * - + 80 col0
----
6885
-7359

query I rowsort
SELECT 94 * + 50 * 49 * COALESCE ( 60, + + 53 ) AS col1
----
13818000

onlyif mysql # DIV for integer division: 
query I rowsort label-2466
SELECT ALL - 11 DIV + - 20
----
0

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL - 11 / + - 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT 75 * 93 + COUNT( * ) AS col1
----
6976

skipif mysql # not compatible
query I rowsort label-2467
SELECT 75 * 93 + COUNT ( * ) AS col1
----
6976

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

skipif mysql # not compatible
query I rowsort label-2468
SELECT 71 / + 73
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2469
SELECT SUM( DISTINCT + 14 ) AS col0, 44 + - + 29 * + + 24 AS col0
----
14
-652

skipif mysql # not compatible
query II rowsort label-2469
SELECT SUM ( DISTINCT + 14 ) AS col0, 44 + - + 29 * + + 24 AS col0
----
14
-652

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT SUM( ALL + 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-2470
SELECT SUM ( ALL + 69 ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT 16 * 99 * 26 * - COUNT( * ) AS col1
----
-41184

skipif mysql # not compatible
query I rowsort label-2471
SELECT 16 * 99 * 26 * - COUNT ( * ) AS col1
----
-41184

onlyif mysql # aggregate syntax: 
query II rowsort label-2472
SELECT DISTINCT - MAX( DISTINCT + - 67 ) AS col0, - COUNT( * )
----
67
-1

skipif mysql # not compatible
query II rowsort label-2472
SELECT DISTINCT - MAX ( DISTINCT + - 67 ) AS col0, - COUNT ( * )
----
67
-1

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

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL - ( 55 ) * - COUNT ( * ) / - 80 + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2474
SELECT DISTINCT 26 DIV CAST( + - 75 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT 26 / CAST ( + - 75 AS INTEGER )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT + NULLIF ( + SUM( - 6 ), 17 + 48 + + 84 * - - 64 )
----
-6

skipif mysql # not compatible
query I rowsort label-2476
SELECT + NULLIF ( + SUM ( - 6 ), 17 + 48 + + 84 * - - 64 )
----
-6

query II rowsort
SELECT 41 + 55 AS col2, - 83
----
96
-83

query I rowsort
SELECT 44 * - 63 * + + 26 + - 12 AS col2
----
-72084

query I rowsort
SELECT ALL - 33 + + ( 23 )
----
-10

query I rowsort
SELECT DISTINCT - 0 + 93
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2481
SELECT 95 * - 72 - 92 DIV 34 col0
----
-6842

skipif mysql # not compatible
query I rowsort label-2481
SELECT 95 * - 72 - 92 / 34 col0
----
-6842

query I rowsort
SELECT + - 89 * + 47 * + 49 * - + 48
----
9838416

onlyif mysql # aggregate syntax: 
query II rowsort label-2483
SELECT + - SUM( DISTINCT - + 25 ) AS col2, - ( - 75 )
----
25
75

skipif mysql # not compatible
query II rowsort label-2483
SELECT + - SUM ( DISTINCT - + 25 ) AS col2, - ( - 75 )
----
25
75

query I rowsort
SELECT ALL + + 87 + 10 AS col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2485
SELECT DISTINCT - 51 * 58 + - COALESCE ( - - 96, 92 + - + CAST( NULL AS SIGNED ) ) AS col0
----
-3054

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT - 51 * 58 + - COALESCE ( - - 96, 92 + - + CAST ( NULL AS INTEGER ) ) AS col0
----
-3054

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT DISTINCT - COUNT( * ) + - 59 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT - COUNT ( * ) + - 59 AS col0
----
-60

query I rowsort
SELECT ALL 45 * + ( - 98 ) * + 62 AS col2
----
-273420

query I rowsort
SELECT - ( - 98 ) + 89
----
187

query II rowsort
SELECT DISTINCT - - 58 - + 6 AS col2, - 12
----
52
-12

query I rowsort
SELECT - 72 * + 42
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT + COALESCE ( COUNT( * ), + 16 ) * - 19 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-2491
SELECT + COALESCE ( COUNT ( * ), + 16 ) * - 19 AS col2
----
-19

query I rowsort
SELECT ALL - NULLIF ( - 97, + - 71 / + 41 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT - 85 + 6 + + COUNT( * ) * - + 85 * - COALESCE ( 9, NULLIF ( + 59, - + 45 ) + + 99 * + 2 )
----
686

skipif mysql # not compatible
query I rowsort label-2493
SELECT - 85 + 6 + + COUNT ( * ) * - + 85 * - COALESCE ( 9, NULLIF ( + 59, - + 45 ) + + 99 * + 2 )
----
686

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT + + SUM( ALL - 52 ) + + 35 * - 70
----
-2502

skipif mysql # not compatible
query I rowsort label-2494
SELECT + + SUM ( ALL - 52 ) + + 35 * - 70
----
-2502

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT DISTINCT + + MAX( - - 51 ) * + + 88 + 50 AS col2
----
4538

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT + + MAX ( - - 51 ) * + + 88 + 50 AS col2
----
4538

query I rowsort
SELECT DISTINCT ( + - 64 ) col1
----
-64

query I rowsort
SELECT DISTINCT 74 * + 74 * 23
----
125948

onlyif mysql # aggregate syntax: 
query II rowsort label-2499
SELECT 39 AS col2, COUNT( * ) * - - 85
----
39
85

skipif mysql # not compatible
query II rowsort label-2499
SELECT 39 AS col2, COUNT ( * ) * - - 85
----
39
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT - 92 * 86 * + + CASE 71 WHEN + + ( 45 ) THEN NULL WHEN - - 29 + - 40 THEN NULL ELSE + COUNT( * ) END * + NULLIF ( 73, - + 49 + + + 22 ) + ( 13 ) * - ( 33 ) + - 55
----
-578060

skipif mysql # not compatible
query I rowsort label-2500
SELECT - 92 * 86 * + + CASE 71 WHEN + + ( 45 ) THEN NULL WHEN - - 29 + - 40 THEN NULL ELSE + COUNT ( * ) END * + NULLIF ( 73, - + 49 + + + 22 ) + ( 13 ) * - ( 33 ) + - 55
----
-578060

query I rowsort
SELECT - 9 - 76 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT + ( 40 ) - + 16 * + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-2502
SELECT + ( 40 ) - + 16 * + COUNT ( * )
----
24

query I rowsort
SELECT - ( + + 1 ) AS col2
----
-1

query I rowsort
SELECT + 50 * - 83 col2
----
-4150

query I rowsort
SELECT ALL 56 * 10 AS col1
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT + 62 + COUNT( * ) * 85 AS col2
----
147

skipif mysql # not compatible
query I rowsort label-2506
SELECT + 62 + COUNT ( * ) * 85 AS col2
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-2507
SELECT + ( + ( + 84 ) ), SUM( ALL + 79 ) AS col2
----
84
79

skipif mysql # not compatible
query II rowsort label-2507
SELECT + ( + ( + 84 ) ), SUM ( ALL + 79 ) AS col2
----
84
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT ALL 73 * COUNT( * ) * - - 70 * + 98 col0
----
500780

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL 73 * COUNT ( * ) * - - 70 * + 98 col0
----
500780

query I rowsort
SELECT ( - 37 ) col0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-2510
SELECT ALL + 84 * + COUNT( * ) + - 76 AS col0, 52
----
8
52

skipif mysql # not compatible
query II rowsort label-2510
SELECT ALL + 84 * + COUNT ( * ) + - 76 AS col0, 52
----
8
52

query II rowsort
SELECT DISTINCT + 83, + 12 + - 0 * - 19 - - + 64 + - 80 AS col0
----
83
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2512
SELECT + 14 DIV + 25
----
0

skipif mysql # not compatible
query I rowsort label-2512
SELECT + 14 / + 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT ALL - 23 * + COUNT( * ) + 11 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL - 23 * + COUNT ( * ) + 11 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-2514
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + - - 51 AS col0, SUM( + 32 ) * + 82 AS col0
----
52
2624

skipif mysql # not compatible
query II rowsort label-2514
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + - - 51 AS col0, SUM ( + 32 ) * + 82 AS col0
----
52
2624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2515
SELECT ALL - MIN( ALL + CAST( 50 AS SIGNED ) ) DIV - + 73 * - MAX( + 78 )
----
0

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL - MIN ( ALL + CAST ( 50 AS INTEGER ) ) / - + 73 * - MAX ( + 78 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2516
SELECT ALL - 84 * - COUNT( * ) * 14 + + 99 + + 94 * ( 11 ) * - 86 AS col1, - 67
----
-87649
-67

skipif mysql # not compatible
query II rowsort label-2516
SELECT ALL - 84 * - COUNT ( * ) * 14 + + 99 + + 94 * ( 11 ) * - 86 AS col1, - 67
----
-87649
-67

query II rowsort
SELECT ALL - 7 * + 82 + + 21 AS col2, 10 AS col1
----
-553
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2518
SELECT + 78 DIV - + COALESCE ( 47, - 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-2518
SELECT + 78 / - + COALESCE ( 47, - 0 )
----
-1

query I rowsort
SELECT - 84 + 78 AS col1
----
-6

query I rowsort
SELECT + 96 * - 70
----
-6720

onlyif mysql # aggregate syntax: 
query II rowsort label-2521
SELECT NULLIF ( 96, - + COUNT( * ) ), ( 99 ) * + 66 * + 61 - + ( - - 12 ) + 39 * + - 57 AS col1
----
96
396339

skipif mysql # not compatible
query II rowsort label-2521
SELECT NULLIF ( 96, - + COUNT ( * ) ), ( 99 ) * + 66 * + 61 - + ( - - 12 ) + 39 * + - 57 AS col1
----
96
396339

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2522
SELECT ALL COUNT( * ) DIV + 96 * COUNT( * ) AS col2, + 15
----
0
15

skipif mysql # not compatible
query II rowsort label-2522
SELECT ALL COUNT ( * ) / + 96 * COUNT ( * ) AS col2, + 15
----
0
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2523
SELECT - COUNT( * ) DIV + - 72 * + 1 + - - COUNT( * ) * 47
----
47

skipif mysql # not compatible
query I rowsort label-2523
SELECT - COUNT ( * ) / + - 72 * + 1 + - - COUNT ( * ) * 47
----
47

query I rowsort
SELECT ALL + - 60 * 35
----
-2100

query I rowsort
SELECT + + COALESCE ( - 57, - + 96 ) + - + 0 + - 85
----
-142

query I rowsort
SELECT ALL + + 35 * - + 38
----
-1330

onlyif mysql # DIV for integer division: 
query I rowsort label-2527
SELECT ALL 32 DIV 2
----
16

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL 32 / 2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT ALL 47 * - COUNT( * ) * + - 32 + COUNT( * )
----
1505

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL 47 * - COUNT ( * ) * + - 32 + COUNT ( * )
----
1505

query I rowsort
SELECT ALL - + 22 * + - 15
----
330

query I rowsort
SELECT + NULLIF ( + + 14, + + 0 * + 22 ) AS col1
----
14

query II rowsort
SELECT 53 AS col2, + 3 AS col2
----
53
3

query I rowsort
SELECT - 17 + - + 65 + + - 71
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT ALL - COUNT( ALL - 44 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL - COUNT ( ALL - 44 ) AS col2
----
-1

query I rowsort
SELECT - + 81 + - 5
----
-86

query I rowsort
SELECT - 79 + + 7
----
-72

query I rowsort
SELECT ALL - - 80 * - ( - 79 ) + + 75
----
6395

query I rowsort
SELECT - - 40 + - 95
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2538
SELECT DISTINCT - - COUNT( * ) DIV - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2538
SELECT DISTINCT - - COUNT ( * ) / - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT - 22 + - 27
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT ALL + COUNT( * ) * - 47 col1
----
-47

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL + COUNT ( * ) * - 47 col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2541
SELECT - COUNT( ALL + + 66 ) DIV + COUNT( * ) + COUNT( * ) + CAST( - + 82 AS SIGNED ) * 6 * - - 55
----
-27060

skipif mysql # not compatible
query I rowsort label-2541
SELECT - COUNT ( ALL + + 66 ) / + COUNT ( * ) + COUNT ( * ) + CAST ( - + 82 AS INTEGER ) * 6 * - - 55
----
-27060

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT - 98 + - 12 + - COALESCE ( + COALESCE ( COUNT( * ), - COUNT( * ), + + 96 ), - + 63 ) AS col2
----
-111

skipif mysql # not compatible
query I rowsort label-2542
SELECT - 98 + - 12 + - COALESCE ( + COALESCE ( COUNT ( * ), - COUNT ( * ), + + 96 ), - + 63 ) AS col2
----
-111

query I rowsort
SELECT - COALESCE ( + 66, + + 1, + + 13 ) + - - 50
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT - 86 + - NULLIF ( + + 32, 16 * COALESCE ( + - NULLIF ( - 54, - - MIN( 66 ) / + 73 + COUNT( * ) / + 18 + - COALESCE ( 17, + + 38, - - 15 ) ), 13 + + 96 * - 30, - 4 ) + - 69 + - 9 * 12 )
----
-118

skipif mysql # not compatible
query I rowsort label-2544
SELECT - 86 + - NULLIF ( + + 32, 16 * COALESCE ( + - NULLIF ( - 54, - - MIN ( 66 ) / + 73 + COUNT ( * ) / + 18 + - COALESCE ( 17, + + 38, - - 15 ) ), 13 + + 96 * - 30, - 4 ) + - 69 + - 9 * 12 )
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT + 92 - + 46 + - 25 - - - COUNT( * ) + + 87
----
107

skipif mysql # not compatible
query I rowsort label-2545
SELECT + 92 - + 46 + - 25 - - - COUNT ( * ) + + 87
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2546
SELECT - ( - CASE 39 WHEN - 44 * 27 THEN NULL WHEN - COUNT( * ) THEN + 26 WHEN + - ( - ( - NULLIF ( ( - + COALESCE ( + 12, - + 57 ) ), + + 90 * - 79 * - ( 82 ) + - 1 ) ) ) * + + COUNT( ALL + + 96 ) / ( + + 56 ) + + 58 * - 99 * - 14 * 28 + - + ( - 53 ) + - CAST( 68 AS SIGNED ) / ( + 41 ) THEN NULL ELSE - ( 62 ) + 40 END ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-2546
SELECT - ( - CASE 39 WHEN - 44 * 27 THEN NULL WHEN - COUNT ( * ) THEN + 26 WHEN + - ( - ( - NULLIF ( ( - + COALESCE ( + 12, - + 57 ) ), + + 90 * - 79 * - ( 82 ) + - 1 ) ) ) * + + COUNT ( ALL + + 96 ) / ( + + 56 ) + + 58 * - 99 * - 14 * 28 + - + ( - 53 ) + - CAST ( 68 AS INTEGER ) / ( + 41 ) THEN NULL ELSE - ( 62 ) + 40 END ) AS col0
----
-22

query II rowsort
SELECT DISTINCT ( CASE + AVG ( + + 29 ) WHEN 61 THEN NULL WHEN 53 THEN NULL ELSE 36 END ) AS col0, - 32 AS col1
----
36
-32

query I rowsort
SELECT - NULLIF ( 36, + - 12 ) AS col1
----
-36

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

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL ( + + 97 ) + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2550
SELECT ALL - COUNT( * ) DIV + 24 + + 52
----
52

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL - COUNT ( * ) / + 24 + + 52
----
52

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

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

query I rowsort
SELECT - 72 * 73 AS col1
----
-5256

query I rowsort
SELECT + 78 * + 51 * 55 AS col2
----
218790

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT DISTINCT - 0 + + - COALESCE ( + 6, + 57 ) * + COUNT( * ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT - 0 + + - COALESCE ( + 6, + 57 ) * + COUNT ( * ) AS col2
----
-6

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2556
SELECT 37 * + 36 * 37 + + - 54 - ( - COUNT( * ) ) DIV 67
----
49230

skipif mysql # not compatible
query I rowsort label-2556
SELECT 37 * + 36 * 37 + + - 54 - ( - COUNT ( * ) ) / 67
----
49230

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2558
SELECT CAST( NULL AS DECIMAL ) + - 50 / - + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2558
SELECT CAST ( NULL AS REAL ) + - 50 / - + 95
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT COUNT( ALL - 85 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2560
SELECT COUNT ( ALL - 85 ) AS col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2561
SELECT + 54 - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2561
SELECT + 54 - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT - 24 DIV NULLIF ( - 12, 10 * - NULLIF ( + 16, COALESCE ( - + 2, 14 * + 73 + - + AVG ( 70 ) ) ) * - - 19 + + 78 DIV 48 * + 66 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-2562
SELECT - 24 / NULLIF ( - 12, 10 * - NULLIF ( + 16, COALESCE ( - + 2, 14 * + 73 + - + AVG ( 70 ) ) ) * - - 19 + + 78 / 48 * + 66 ) col0
----
2

query I rowsort
SELECT - 63 * + COALESCE ( + 73, - NULLIF ( + + 90, + 12 ) )
----
-4599

query I rowsort
SELECT DISTINCT + 24 * - - 44 + - + 10
----
1046

query II rowsort
SELECT ALL - 66 * 5, + 40 AS col1
----
-330
40

query II rowsort
SELECT DISTINCT + 7 * + + 67, - 62 AS col1
----
469
-62

query I rowsort
SELECT DISTINCT - - 78 * - 50
----
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT ALL CASE + + 20 WHEN - 1 * - + 1 THEN + + 13 WHEN AVG ( ALL - 23 ) + ( 27 ) + - 57 / + COUNT( * ) THEN - 40 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL CASE + + 20 WHEN - 1 * - + 1 THEN + + 13 WHEN AVG ( ALL - 23 ) + ( 27 ) + - 57 / + COUNT ( * ) THEN - 40 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2569
SELECT COUNT( * ) - - + 72 col0, + 30 AS col1
----
73
30

skipif mysql # not compatible
query II rowsort label-2569
SELECT COUNT ( * ) - - + 72 col0, + 30 AS col1
----
73
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT DISTINCT 45 * 32 DIV + 39
----
36

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT 45 * 32 / + 39
----
36

query I rowsort
SELECT ALL + 79 + + 32 AS col0
----
111

query I rowsort
SELECT 19 * + 65
----
1235

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2574
SELECT ALL + 89 DIV + 83
----
1

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL + 89 / + 83
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT ALL COUNT( * ) + - COUNT( * ) + 25 col1
----
25

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL COUNT ( * ) + - COUNT ( * ) + 25 col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT DISTINCT 3 + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT 3 + COUNT ( * ) AS col1
----
4

query II rowsort
SELECT DISTINCT + ( - 1 ) * 95 + - 26 * + 68 AS col0, 18 * 74 + - - 42
----
-1863
1374

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2578
SELECT DISTINCT + CAST( - NULLIF ( CASE 92 WHEN + 4 THEN - + ( 25 ) WHEN + + 92 + + 10 * - 51 / + COUNT( * ) THEN NULL ELSE 44 * - 50 + + 12 END, - COUNT( ALL - 8 ) ) AS SIGNED ) + + CASE + COUNT( * ) WHEN - 71 / 21 * - 64 THEN 83 * + + 59 - 55 WHEN + - 53 - + 40 * + 28 + 29 * 49 + 50 THEN + COUNT( * ) ELSE NULL END + - NULLIF ( - CAST( NULL AS SIGNED ), COUNT( * ) + - 32 * - CASE 56 + + CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN + MAX( - 8 ) - 25 * 15 END ) * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT + CAST ( - NULLIF ( CASE 92 WHEN + 4 THEN - + ( 25 ) WHEN + + 92 + + 10 * - 51 / + COUNT ( * ) THEN NULL ELSE 44 * - 50 + + 12 END, - COUNT ( ALL - 8 ) ) AS INTEGER ) + + CASE + COUNT ( * ) WHEN - 71 / 21 * - 64 THEN 83 * + + 59 - 55 WHEN + - 53 - + 40 * + 28 + 29 * 49 + 50 THEN + COUNT ( * ) ELSE NULL END + - NULLIF ( - CAST ( NULL AS INTEGER ), COUNT ( * ) + - 32 * - CASE 56 + + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN + MAX ( - 8 ) - 25 * 15 END ) * 36
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2579
SELECT ALL + ( 43 ) DIV + - COUNT( - 15 ) * + COUNT( * ) + - COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL + ( 43 ) / + - COUNT ( - 15 ) * + COUNT ( * ) + - COUNT ( * ) AS col2
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-2580
SELECT 35 DIV 18
----
1

skipif mysql # not compatible
query I rowsort label-2580
SELECT 35 / 18
----
1

query I rowsort
SELECT 6 * - 93
----
-558

onlyif mysql # aggregate syntax: 
query II rowsort label-2582
SELECT - 28, MAX( DISTINCT + 2 ) * + 96 col2
----
-28
192

skipif mysql # not compatible
query II rowsort label-2582
SELECT - 28, MAX ( DISTINCT + 2 ) * + 96 col2
----
-28
192

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2584
SELECT 15 - - 45 DIV 90 * 81 * + - MIN( DISTINCT 82 ) + - - 48 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2584
SELECT 15 - - 45 / 90 * 81 * + - MIN ( DISTINCT 82 ) + - - 48 AS col2
----
63

query I rowsort
SELECT 18 * - + 28
----
-504

query I rowsort
SELECT DISTINCT - 99 - - + 23
----
-76

query I rowsort
SELECT ALL - 81 - - 50 + - 29 + - + 3
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-2588
SELECT DISTINCT + 27 DIV - 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT + 27 / - 45 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT - 33 * + SUM( DISTINCT + 62 ) + - 42
----
-2088

skipif mysql # not compatible
query I rowsort label-2589
SELECT - 33 * + SUM ( DISTINCT + 62 ) + - 42
----
-2088

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2590
SELECT 8 AS col0, + COUNT( * ) + 15 DIV 58 col2
----
8
1

skipif mysql # not compatible
query II rowsort label-2590
SELECT 8 AS col0, + COUNT ( * ) + 15 / 58 col2
----
8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT - 80 * - 43 - - COUNT( * ) + + 98 * + 52
----
8537

skipif mysql # not compatible
query I rowsort label-2591
SELECT - 80 * - 43 - - COUNT ( * ) + + 98 * + 52
----
8537

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2592
SELECT + MIN( - 52 ) DIV + 55 + 33 - + + 72 + + 19
----
-20

skipif mysql # not compatible
query I rowsort label-2592
SELECT + MIN ( - 52 ) / + 55 + 33 - + + 72 + + 19
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-2593
SELECT + - COUNT( * ), 38 + NULLIF ( 69, + - 91 ) AS col1
----
-1
107

skipif mysql # not compatible
query II rowsort label-2593
SELECT + - COUNT ( * ), 38 + NULLIF ( 69, + - 91 ) AS col1
----
-1
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2594
SELECT - 52 + - - 49 + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT - 52 + - - 49 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 95 * - + 75
----
-7125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2596
SELECT DISTINCT + 67 * - 15 + + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + + 15 - + + CASE + COUNT( * ) WHEN + 60 THEN NULL WHEN 77 + - - 67 THEN 13 END / - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT + 67 * - 15 + + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + + 15 - + + CASE + COUNT ( * ) WHEN + 60 THEN NULL WHEN 77 + - - 67 THEN 13 END / - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT + COUNT( * ) * - - 0 + - 24
----
-24

skipif mysql # not compatible
query I rowsort label-2597
SELECT + COUNT ( * ) * - - 0 + - 24
----
-24

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

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

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

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

query I rowsort
SELECT + 1 + - - 6
----
7

onlyif mysql # DIV for integer division: 
query II rowsort label-2601
SELECT ( + 32 ) + ( + - 82 ), ( + - 0 ) * + 42 DIV 24 * + 60 AS col0
----
-50
0

skipif mysql # not compatible
query II rowsort label-2601
SELECT ( + 32 ) + ( + - 82 ), ( + - 0 ) * + 42 / 24 * + 60 AS col0
----
-50
0

query II rowsort
SELECT - 49 AS col0, 23
----
-49
23

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT ALL 68 + + 38 - - - 52 * + 34 * + - 16 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL 68 + + 38 - - - 52 * + 34 * + - 16 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 33 * - 89 AS col0
----
-2937

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT 9 + - - MIN( DISTINCT - 86 ) + + 78 col0
----
1

skipif mysql # not compatible
query I rowsort label-2606
SELECT 9 + - - MIN ( DISTINCT - 86 ) + + 78 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2607
SELECT ALL - COUNT( * ) + 48 + 88 * + 13 * - CAST( NULL AS SIGNED ) + - + MIN( ALL 73 ) + + 39 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL - COUNT ( * ) + 48 + 88 * + 13 * - CAST ( NULL AS INTEGER ) + - + MIN ( ALL 73 ) + + 39 col1
----
NULL

query I rowsort
SELECT DISTINCT 62 * - 46 * 75 AS col0
----
-213900

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

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL + 85 + - - CAST ( 85 AS INTEGER )
----
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2610
SELECT ( CASE 61 WHEN - 18 THEN + 33 END ) + + 20 * - 53 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2610
SELECT ( CASE 61 WHEN - 18 THEN + 33 END ) + + 20 * - 53 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT - NULLIF ( + 76, - - COUNT( * ) ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-2611
SELECT - NULLIF ( + 76, - - COUNT ( * ) ) AS col1
----
-76

query I rowsort
SELECT 44 + 71
----
115

query I rowsort
SELECT ALL ( 48 ) + ( 78 ) + - + 16 AS col2
----
110

query I rowsort
SELECT ( 4 ) + + + 58 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT + 73 + + + 61 * - + COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-2615
SELECT + 73 + + + 61 * - + COUNT ( * ) AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-2616
SELECT - 79 + + 43 + - 14 DIV + + 6 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-2616
SELECT - 79 + + 43 + - 14 / + + 6 AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2617
SELECT ALL COUNT( - NULLIF ( - 89, CAST( - 37 AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL COUNT ( - NULLIF ( - 89, CAST ( - 37 AS INTEGER ) ) )
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2619
SELECT DISTINCT + 41 DIV + 63 * 48
----
0

skipif mysql # not compatible
query I rowsort label-2619
SELECT DISTINCT + 41 / + 63 * 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT - 43 + COUNT( * ) * + COUNT( * ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-2620
SELECT - 43 + COUNT ( * ) * + COUNT ( * ) AS col0
----
-42

query I rowsort
SELECT ALL + 23 * + - 15
----
-345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2622
SELECT - 42 + + NULLIF ( 45, + CASE + ( 76 ) WHEN CAST( + 1 AS SIGNED ) + - 90 THEN NULL WHEN + 12 * - COUNT( * ) * 98 THEN NULL ELSE - + COUNT( - 70 ) - 66 END * 67 + 6 * 17 + - 70 )
----
3

skipif mysql # not compatible
query I rowsort label-2622
SELECT - 42 + + NULLIF ( 45, + CASE + ( 76 ) WHEN CAST ( + 1 AS INTEGER ) + - 90 THEN NULL WHEN + 12 * - COUNT ( * ) * 98 THEN NULL ELSE - + COUNT ( - 70 ) - 66 END * 67 + 6 * 17 + - 70 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT + + COUNT( * ) * - 17 + - - 77 + - 35
----
25

skipif mysql # not compatible
query I rowsort label-2623
SELECT + + COUNT ( * ) * - 17 + - - 77 + - 35
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-2624
SELECT + 54 AS col0, - COUNT( * ) * SUM( ALL - 9 ) + + + 25
----
54
34

skipif mysql # not compatible
query II rowsort label-2624
SELECT + 54 AS col0, - COUNT ( * ) * SUM ( ALL - 9 ) + + + 25
----
54
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2625
SELECT CAST( NULL AS SIGNED ), 69 + CAST( - - 12 AS SIGNED ) + - - 64 * + + CAST( - 29 AS SIGNED ) * + + 17 * - 85 AS col0
----
NULL
2682001

skipif mysql # not compatible
query II rowsort label-2625
SELECT CAST ( NULL AS INTEGER ), 69 + CAST ( - - 12 AS INTEGER ) + - - 64 * + + CAST ( - 29 AS INTEGER ) * + + 17 * - 85 AS col0
----
NULL
2682001

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2627
SELECT - - 18 DIV MIN( ALL - 11 )
----
-1

skipif mysql # not compatible
query I rowsort label-2627
SELECT - - 18 / MIN ( ALL - 11 )
----
-1

query I rowsort
SELECT DISTINCT 23 * 11 + - 91
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ALL + COALESCE ( + + 53, + - SUM( - 32 ) )
----
53

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL + COALESCE ( + + 53, + - SUM ( - 32 ) )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2630
SELECT ALL + - 28, - 37 * - - 64 + - 30 + + - ( - - 15 ) * ( + - 22 ) DIV + COUNT( * ) - - 76 AS col2
----
-28
-1992

skipif mysql # not compatible
query II rowsort label-2630
SELECT ALL + - 28, - 37 * - - 64 + - 30 + + - ( - - 15 ) * ( + - 22 ) / + COUNT ( * ) - - 76 AS col2
----
-28
-1992

query II rowsort
SELECT - 28, - 42 + 41 AS col1
----
-28
-1

query III rowsort
SELECT + + 62 col0, 51 AS col0, 85
----
62
51
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2633
SELECT + 95 * + + CAST( NULL AS SIGNED ) / + 3 * + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2633
SELECT + 95 * + + CAST ( NULL AS INTEGER ) / + 3 * + 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2634
SELECT + + 8 AS col2, 56 + - 77 + + ( COUNT( * ) ) - - 59 + COUNT( * ) * - 50 - - COUNT( * ) AS col2
----
8
-10

skipif mysql # not compatible
query II rowsort label-2634
SELECT + + 8 AS col2, 56 + - 77 + + ( COUNT ( * ) ) - - 59 + COUNT ( * ) * - 50 - - COUNT ( * ) AS col2
----
8
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2635
SELECT DISTINCT + CASE - CAST( COUNT( * ) AS SIGNED ) WHEN 55 THEN - 97 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT + CASE - CAST ( COUNT ( * ) AS INTEGER ) WHEN 55 THEN - 97 END AS col2
----
NULL

query I rowsort
SELECT - 52 - - - 67
----
-119

query I rowsort
SELECT ALL ( - + 70 ) * - - 43
----
-3010

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT DISTINCT - 41 * NULLIF ( - + COUNT( * ), + 66 ) + - + 1 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT - 41 * NULLIF ( - + COUNT ( * ), + 66 ) + - + 1 AS col1
----
40

query I rowsort
SELECT ALL - 89 * - 80 * + + 38
----
270560

onlyif mysql # DIV for integer division: 
query II rowsort label-2640
SELECT + 33 * 69 DIV - 5 AS col1, 26
----
-455
26

skipif mysql # not compatible
query II rowsort label-2640
SELECT + 33 * 69 / - 5 AS col1, 26
----
-455
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2641
SELECT ALL NULLIF ( + 58, - 90 / - 82 / - + 44 + CASE + - 63 WHEN - 36 * - MAX( DISTINCT + COALESCE ( + CAST( NULL AS SIGNED ), + ( 68 ) / 86 ) ) THEN + + 11 ELSE NULL END ) - - 28
----
86

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL NULLIF ( + 58, - 90 / - 82 / - + 44 + CASE + - 63 WHEN - 36 * - MAX ( DISTINCT + COALESCE ( + CAST ( NULL AS INTEGER ), + ( 68 ) / 86 ) ) THEN + + 11 ELSE NULL END ) - - 28
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2642
SELECT DISTINCT 9 DIV + 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT 9 / + 19 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT + 38 * + CASE - 21 WHEN - 38 THEN + MIN( DISTINCT - 47 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2643
SELECT + 38 * + CASE - 21 WHEN - 38 THEN + MIN ( DISTINCT - 47 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2644
SELECT ALL 43 DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL 43 / 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT DISTINCT ( + + COUNT( * ) ) - + 25 * - - 6
----
-149

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT ( + + COUNT ( * ) ) - + 25 * - - 6
----
-149

query I rowsort
SELECT ALL 37 * - + 16 AS col2
----
-592

query I rowsort
SELECT + NULLIF ( + + 92, + 91 ) * - 49
----
-4508

onlyif mysql # DIV for integer division: 
query I rowsort label-2648
SELECT + 2 DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-2648
SELECT + 2 / + 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT ALL COUNT( * ) * - 67 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL COUNT ( * ) * - 67 AS col2
----
-67

query II rowsort
SELECT - ( - 19 ) AS col2, + ( + - 58 ) AS col0
----
19
-58

query I rowsort
SELECT DISTINCT NULLIF ( + - ( - 47 ), + 33 )
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2652
SELECT + MAX( + 72 ) + - 74 DIV ( COUNT( * ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2652
SELECT + MAX ( + 72 ) + - 74 / ( COUNT ( * ) ) AS col0
----
-2

query I rowsort
SELECT + + 88 * + 65 + + - 54 + - 64 AS col0
----
5602

query I rowsort
SELECT + + ( - ( - 71 ) ) + + + 59 + + 85 * + - 6 AS col0
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT DISTINCT + ( + CASE ( + 74 ) WHEN 27 * CASE - ( COALESCE ( CASE + COALESCE ( - 47, - 36 ) WHEN COUNT( DISTINCT + - 21 ) * + 14 THEN NULL ELSE 15 * 45 + - 96 + COUNT( - + 18 ) * + MAX( ALL - 72 ) END, + ( - COUNT( * ) ) * - - 21 ) ) WHEN 67 + - 93 / - COUNT( * ) * + 65 * - 2 THEN - 26 WHEN + - 7 THEN MAX( 24 ) END + 52 THEN NULL ELSE - NULLIF ( + 43, - SUM( 97 ) / 26 ) + - 22 END ) col2
----
-65

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT + ( + CASE ( + 74 ) WHEN 27 * CASE - ( COALESCE ( CASE + COALESCE ( - 47, - 36 ) WHEN COUNT ( DISTINCT + - 21 ) * + 14 THEN NULL ELSE 15 * 45 + - 96 + COUNT ( - + 18 ) * + MAX ( ALL - 72 ) END, + ( - COUNT ( * ) ) * - - 21 ) ) WHEN 67 + - 93 / - COUNT ( * ) * + 65 * - 2 THEN - 26 WHEN + - 7 THEN MAX ( 24 ) END + 52 THEN NULL ELSE - NULLIF ( + 43, - SUM ( 97 ) / 26 ) + - 22 END ) col2
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-2656
SELECT + - 39 + - + NULLIF ( + 36, COUNT( * ) - + CASE COUNT( * ) WHEN - + 11 * + COUNT( * ) THEN - - 68 ELSE + 7 END ) + + 63 + 89, 45 AS col2
----
77
45

skipif mysql # not compatible
query II rowsort label-2656
SELECT + - 39 + - + NULLIF ( + 36, COUNT ( * ) - + CASE COUNT ( * ) WHEN - + 11 * + COUNT ( * ) THEN - - 68 ELSE + 7 END ) + + 63 + 89, 45 AS col2
----
77
45

query I rowsort
SELECT ALL NULLIF ( - 61, + - 73 ) col2
----
-61

query I rowsort
SELECT + + 64 + + + ( 91 ) AS col1
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2659
SELECT DISTINCT + COALESCE ( + + 89, + 7, + - COUNT( - 50 ) * + 5 + - CAST( NULL AS SIGNED ) + 21 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT + COALESCE ( + + 89, + 7, + - COUNT ( - 50 ) * + 5 + - CAST ( NULL AS INTEGER ) + 21 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT 89 * CASE 75 WHEN + - AVG ( ALL - - 2 ) THEN NULL ELSE - 45 * + - 24 END * - + 35 * + 26 + + - 28 * COUNT( * ) * 90 + - 26 + + 78
----
-87471668

skipif mysql # not compatible
query I rowsort label-2660
SELECT 89 * CASE 75 WHEN + - AVG ( ALL - - 2 ) THEN NULL ELSE - 45 * + - 24 END * - + 35 * + 26 + + - 28 * COUNT ( * ) * 90 + - 26 + + 78
----
-87471668

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT - + 42 * + MIN( ALL + 39 ) + + 0
----
-1638

skipif mysql # not compatible
query I rowsort label-2662
SELECT - + 42 * + MIN ( ALL + 39 ) + + 0
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT + - 28 * + 95 + COUNT( ALL 97 ) AS col2
----
-2659

skipif mysql # not compatible
query I rowsort label-2663
SELECT + - 28 * + 95 + COUNT ( ALL 97 ) AS col2
----
-2659

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

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL + COUNT ( * ) * 19 AS col2
----
19

query II rowsort
SELECT DISTINCT + ( - 51 ), 23 col2
----
-51
23

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

skipif mysql # not compatible
query I rowsort label-2666
SELECT - - 88 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 80 * - - 7 + 77
----
-483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2668
SELECT - 16 * - 2 DIV - 92, - 55 + + 98 + + COALESCE ( 93, - 76 + + COALESCE ( COUNT( DISTINCT 80 ), + 92, + ( - 50 ) DIV - 53 ), + 81 * - - CAST( 79 AS SIGNED ) + - - NULLIF ( + + 57, - CAST( NULL AS SIGNED ) DIV + 55 ) - 36 * + 66 - 22, + - 8 + - - NULLIF ( MIN( - 57 ), - + 5 ) ) * - 88 - - COUNT( * ) * + 92 AS col2
----
0
-8049

skipif mysql # not compatible
query II rowsort label-2668
SELECT - 16 * - 2 / - 92, - 55 + + 98 + + COALESCE ( 93, - 76 + + COALESCE ( COUNT ( DISTINCT 80 ), + 92, + ( - 50 ) / - 53 ), + 81 * - - CAST ( 79 AS INTEGER ) + - - NULLIF ( + + 57, - CAST ( NULL AS INTEGER ) / + 55 ) - 36 * + 66 - 22, + - 8 + - - NULLIF ( MIN ( - 57 ), - + 5 ) ) * - 88 - - COUNT ( * ) * + 92 AS col2
----
0
-8049

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2670
SELECT DISTINCT + 57 AS col0, 46 DIV - 59 AS col0
----
57
0

skipif mysql # not compatible
query II rowsort label-2670
SELECT DISTINCT + 57 AS col0, 46 / - 59 AS col0
----
57
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT 30 * - 55 + + - NULLIF ( - + COUNT( * ), - 65 ) AS col0
----
-1649

skipif mysql # not compatible
query I rowsort label-2671
SELECT 30 * - 55 + + - NULLIF ( - + COUNT ( * ), - 65 ) AS col0
----
-1649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2672
SELECT ALL + 70, MIN( - - 23 ) / + CAST( NULL AS SIGNED ) + 94 + - COALESCE ( + 38, - 38, 43 * + 43 ) + + 10 AS col2, + 29 col2
----
70
NULL
29

skipif mysql # not compatible
query III rowsort label-2672
SELECT ALL + 70, MIN ( - - 23 ) / + CAST ( NULL AS INTEGER ) + 94 + - COALESCE ( + 38, - 38, 43 * + 43 ) + + 10 AS col2, + 29 col2
----
70
NULL
29

query I rowsort
SELECT COALESCE ( + 53, - 18, - 77 )
----
53

query I rowsort
SELECT COALESCE ( - 14, + 36 + 22, + ( - 4 ) )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2675
SELECT 15 + + 36 DIV - - 90 * + 90 AS col0, MIN( ALL + + 77 ) * - - 72
----
15
5544

skipif mysql # not compatible
query II rowsort label-2675
SELECT 15 + + 36 / - - 90 * + 90 AS col0, MIN ( ALL + + 77 ) * - - 72
----
15
5544

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT ALL - ( - + 11 ) * + 20 * + NULLIF ( + 35, + COUNT( - NULLIF ( + 24, - + 12 ) ) * - 11 ) AS col1
----
7700

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL - ( - + 11 ) * + 20 * + NULLIF ( + 35, + COUNT ( - NULLIF ( + 24, - + 12 ) ) * - 11 ) AS col1
----
7700

onlyif mysql # aggregate syntax: 
query II rowsort label-2678
SELECT - COUNT( * ) * + 93 * 87 + + 18 AS col2, - 43 AS col1
----
-8073
-43

skipif mysql # not compatible
query II rowsort label-2678
SELECT - COUNT ( * ) * + 93 * 87 + + 18 AS col2, - 43 AS col1
----
-8073
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2679
SELECT 50 + COUNT( * ) - - CAST( NULL AS SIGNED ) * COUNT( * ) - CAST( - CAST( - - CASE + 71 WHEN 72 THEN NULL WHEN - + 23 THEN NULL ELSE 76 + + - 33 END AS SIGNED ) AS SIGNED ) * 29 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT 50 + COUNT ( * ) - - CAST ( NULL AS INTEGER ) * COUNT ( * ) - CAST ( - CAST ( - - CASE + 71 WHEN 72 THEN NULL WHEN - + 23 THEN NULL ELSE 76 + + - 33 END AS INTEGER ) AS INTEGER ) * 29 col0
----
NULL

query I rowsort
SELECT DISTINCT - ( - + 4 ) * - - 29 * + 88 AS col2
----
10208

query I rowsort
SELECT 34 * + - 73 * 36
----
-89352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2682
SELECT 69 + 74 * - CASE NULLIF ( + + 48, - + CAST( - 51 AS SIGNED ) ) WHEN + + 93 + - 33 THEN NULL WHEN 59 THEN + AVG ( + 85 ) ELSE NULL END / - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT 69 + 74 * - CASE NULLIF ( + + 48, - + CAST ( - 51 AS INTEGER ) ) WHEN + + 93 + - 33 THEN NULL WHEN 59 THEN + AVG ( + 85 ) ELSE NULL END / - 42 AS col1
----
NULL

query II rowsort
SELECT 37 AS col0, 72 + + 6 + - 90 + + 6 col0
----
37
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2684
SELECT ( - + 6 ) + + - NULLIF ( 40, - COALESCE ( + ( + ( ( + ( + AVG ( + ( - - 43 ) ) ) ) ) ), + CASE 27 WHEN 88 + - + 83 THEN + 50 ELSE - 7 END ) * + 28 + - - MAX( + CAST( - 44 AS DECIMAL ) ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-2684
SELECT ( - + 6 ) + + - NULLIF ( 40, - COALESCE ( + ( + ( ( + ( + AVG ( + ( - - 43 ) ) ) ) ) ), + CASE 27 WHEN 88 + - + 83 THEN + 50 ELSE - 7 END ) * + 28 + - - MAX ( + CAST ( - 44 AS REAL ) ) ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT 96 / + COALESCE ( - COUNT( * ), - + 78 ) * - CASE + 5 WHEN - + 96 * - - 34 + 10 THEN - COUNT( * ) / - - COUNT( + 56 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2685
SELECT 96 / + COALESCE ( - COUNT ( * ), - + 78 ) * - CASE + 5 WHEN - + 96 * - - 34 + 10 THEN - COUNT ( * ) / - - COUNT ( + 56 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT ALL - 73 + 1 * MIN( DISTINCT + + 63 )
----
-10

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL - 73 + 1 * MIN ( DISTINCT + + 63 )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2687
SELECT 27 + - 85 + - 87 + - 76 + + - 52 DIV + COUNT( * ) + - 31 * + 84
----
-2877

skipif mysql # not compatible
query I rowsort label-2687
SELECT 27 + - 85 + - 87 + - 76 + + - 52 / + COUNT ( * ) + - 31 * + 84
----
-2877

query II rowsort
SELECT - + 60, 65 AS col2
----
-60
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2689
SELECT 76 DIV 12
----
6

skipif mysql # not compatible
query I rowsort label-2689
SELECT 76 / 12
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2690
SELECT DISTINCT COUNT( * ) col1, 62 * - + 38 AS col1
----
1
-2356

skipif mysql # not compatible
query II rowsort label-2690
SELECT DISTINCT COUNT ( * ) col1, 62 * - + 38 AS col1
----
1
-2356

query I rowsort
SELECT DISTINCT 6 + - 88
----
-82

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2694
SELECT ALL - 47 + + + 63 * + COUNT( * ) DIV - - COUNT( + 78 ) + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL - 47 + + + 63 * + COUNT ( * ) / - - COUNT ( + 78 ) + COUNT ( * )
----
17

query II rowsort
SELECT + - 86 AS col2, - 99 + + 41 AS col1
----
-86
-58

query I rowsort
SELECT + 7 * + 66 + - 32
----
430

query I rowsort
SELECT ALL - 97 + - + 76 - + 16 + 56
----
-133

query I rowsort
SELECT NULLIF ( + 7, + 31 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT 24 * + CASE - 20 WHEN - + 29 * - 14 - 93 THEN - 22 WHEN 87 * 11 THEN NULLIF ( 58, - - ( - - CASE + 7 WHEN - + 69 * + - 54 + + COUNT( * ) * + + 17 THEN NULL WHEN 21 - - 37 THEN NULL ELSE - - 14 END ) + ( 37 ) * + + 61 ) END * + - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2699
SELECT 24 * + CASE - 20 WHEN - + 29 * - 14 - 93 THEN - 22 WHEN 87 * 11 THEN NULLIF ( 58, - - ( - - CASE + 7 WHEN - + 69 * + - 54 + + COUNT ( * ) * + + 17 THEN NULL WHEN 21 - - 37 THEN NULL ELSE - - 14 END ) + ( 37 ) * + + 61 ) END * + - 68 AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( + 87 ) - 75 * + + 43 * 70
----
-225663

query I rowsort
SELECT 35 + - 4 + 9 AS col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2702
SELECT ALL 74 - + - 98 DIV - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL 74 - + - 98 / - COUNT ( * )
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-2703
SELECT COALESCE ( - + 44, - - 5 ) DIV + 81 * - + 38, 21 AS col1
----
0
21

skipif mysql # not compatible
query II rowsort label-2703
SELECT COALESCE ( - + 44, - - 5 ) / + 81 * - + 38, 21 AS col1
----
0
21

query II rowsort
SELECT 54 * + - 10, - 15 + 19 AS col1
----
-540
4

query I rowsort
SELECT ALL + ( - - 2 ) * + 4 * + 43 + - ( 65 ) col1
----
279

query I rowsort
SELECT 36 * + 61 - + + 98 col2
----
2098

onlyif mysql # DIV for integer division: 
query I rowsort label-2707
SELECT 44 DIV - 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2707
SELECT 44 / - 88 AS col0
----
0

query I rowsort
SELECT 53 * - 90 AS col2
----
-4770

query I rowsort
SELECT 63 - + COALESCE ( 82, - - 64 )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-2710
SELECT 40 - 97 col1, ( - COUNT( * ) )
----
-57
-1

skipif mysql # not compatible
query II rowsort label-2710
SELECT 40 - 97 col1, ( - COUNT ( * ) )
----
-57
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT 79 * + - COUNT( 57 )
----
-79

skipif mysql # not compatible
query I rowsort label-2711
SELECT 79 * + - COUNT ( 57 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT ALL + 64 + SUM( 31 )
----
95

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL + 64 + SUM ( 31 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2713
SELECT DISTINCT - 10 + - MAX( - - CASE 87 WHEN + ( 37 ) THEN NULL ELSE 74 END ) AS col0, 61 * - 94
----
-84
-5734

skipif mysql # not compatible
query II rowsort label-2713
SELECT DISTINCT - 10 + - MAX ( - - CASE 87 WHEN + ( 37 ) THEN NULL ELSE 74 END ) AS col0, 61 * - 94
----
-84
-5734

query I rowsort
SELECT - ( 53 ) * 40
----
-2120

query I rowsort
SELECT ALL - + 29 + + 39 AS col2
----
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT DISTINCT + NULLIF ( + NULLIF ( + 91, + + 97 * + COUNT( * ) * + 21 * - 85 + + 38 + + AVG ( DISTINCT 18 ) * + CASE - - 6 WHEN - 62 THEN NULL ELSE 17 + + 16 END * + 60 - MAX( ALL COALESCE ( + 88, 79 ) ) ), + 20 ) * + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-2717
SELECT DISTINCT + NULLIF ( + NULLIF ( + 91, + + 97 * + COUNT ( * ) * + 21 * - 85 + + 38 + + AVG ( DISTINCT 18 ) * + CASE - - 6 WHEN - 62 THEN NULL ELSE 17 + + 16 END * + 60 - MAX ( ALL COALESCE ( + 88, 79 ) ) ), + 20 ) * + + COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT + COUNT( * ) - - + 30
----
31

skipif mysql # not compatible
query I rowsort label-2718
SELECT + COUNT ( * ) - - + 30
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2719
SELECT ALL + CASE 94 WHEN - 42 THEN NULL WHEN + 46 + 38 THEN CAST( NULL AS SIGNED ) END + + 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL + CASE 94 WHEN - 42 THEN NULL WHEN + 46 + 38 THEN CAST ( NULL AS INTEGER ) END + + 95 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2720
SELECT CAST( NULL AS SIGNED ) * 42 AS col0, + 0 + - 36
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-2720
SELECT CAST ( NULL AS INTEGER ) * 42 AS col0, + 0 + - 36
----
NULL
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT ALL + ( COALESCE ( - 74, - NULLIF ( - - ( + COUNT( * ) ), + 61 ), - COUNT( * ) ) ) + + 91 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL + ( COALESCE ( - 74, - NULLIF ( - - ( + COUNT ( * ) ), + 61 ), - COUNT ( * ) ) ) + + 91 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT 24 + - 86 * + 54 * 68 * COUNT( * )
----
-315768

skipif mysql # not compatible
query I rowsort label-2722
SELECT 24 + - 86 * + 54 * 68 * COUNT ( * )
----
-315768

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT - - SUM( - 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-2723
SELECT - - SUM ( - 87 ) AS col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2724
SELECT ALL - - CASE CAST( NULL AS SIGNED ) WHEN + - COUNT( * ) THEN NULL ELSE 27 * 16 END * - 21 - 43, ( + 91 ) AS col1
----
-9115
91

skipif mysql # not compatible
query II rowsort label-2724
SELECT ALL - - CASE CAST ( NULL AS INTEGER ) WHEN + - COUNT ( * ) THEN NULL ELSE 27 * 16 END * - 21 - 43, ( + 91 ) AS col1
----
-9115
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2725
SELECT ALL + + 45 DIV - - 2 + + 6 * - 10 + - 15
----
-53

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL + + 45 / - - 2 + + 6 * - 10 + - 15
----
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-2726
SELECT ALL - CASE AVG ( + 74 ) WHEN - - 38 - - ( - + 90 ) THEN NULL ELSE - - 77 DIV - 39 + - 57 END AS col2, 67 + 12
----
58
79

skipif mysql # not compatible
query II rowsort label-2726
SELECT ALL - CASE AVG ( + 74 ) WHEN - - 38 - - ( - + 90 ) THEN NULL ELSE - - 77 / - 39 + - 57 END AS col2, 67 + 12
----
58
79

query I rowsort
SELECT ALL 80 * 96 col2
----
7680

onlyif mysql # aggregate syntax: 
query II rowsort label-2728
SELECT ALL + 74 * + COUNT( * ) * - - ( 97 ) col0, + 3 * - 94 * + ( 63 ) col1
----
7178
-17766

skipif mysql # not compatible
query II rowsort label-2728
SELECT ALL + 74 * + COUNT ( * ) * - - ( 97 ) col0, + 3 * - 94 * + ( 63 ) col1
----
7178
-17766

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT - 94 * + - MIN( ALL - - 83 )
----
7802

skipif mysql # not compatible
query I rowsort label-2729
SELECT - 94 * + - MIN ( ALL - - 83 )
----
7802

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

skipif mysql # not compatible
query I rowsort label-2730
SELECT CAST ( NULL AS INTEGER ) * 62 * + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT COUNT( * ) + - - 67 + + + 58
----
126

skipif mysql # not compatible
query I rowsort label-2731
SELECT COUNT ( * ) + - - 67 + + + 58
----
126

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT MIN( + 40 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-2733
SELECT MIN ( + 40 ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT ALL MIN( - + 94 ) * 94 + + 43 * - - 33 + - 77 + - + NULLIF ( 86, 67 * - 22 + + 72 / + 63 ) col0
----
-7580

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL MIN ( - + 94 ) * 94 + + 43 * - - 33 + - 77 + - + NULLIF ( 86, 67 * - 22 + + 72 / + 63 ) col0
----
-7580

query I rowsort
SELECT + 33 + - 19
----
14

query I rowsort
SELECT + 50 * + - 41
----
-2050

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2737
SELECT + CASE + 32 WHEN + 86 THEN NULL WHEN 96 THEN NULL WHEN COUNT( * ) * + CAST( NULL AS DECIMAL ) * + 15 THEN NULL ELSE 51 + 58 END AS col2
----
109

skipif mysql # not compatible
query I rowsort label-2737
SELECT + CASE + 32 WHEN + 86 THEN NULL WHEN 96 THEN NULL WHEN COUNT ( * ) * + CAST ( NULL AS REAL ) * + 15 THEN NULL ELSE 51 + 58 END AS col2
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT ALL + 95 * + ( - ( - SUM( ALL - + 32 ) ) )
----
-3040

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL + 95 * + ( - ( - SUM ( ALL - + 32 ) ) )
----
-3040

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

skipif mysql # not compatible
query I rowsort label-2739
SELECT + COUNT ( * ) * - - 45 * + 38 * - - 34 AS col2
----
58140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2740
SELECT - ( 94 ) DIV - MAX( ALL - 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-2740
SELECT - ( 94 ) / - MAX ( ALL - 72 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2741
SELECT ALL 78 + - - COUNT( * ) + - 75 * COALESCE ( + 1, 4 * + + 90 + - + 79 + CASE - COUNT( * ) WHEN + MIN( 49 ) + - + 12 + + 98 * - 10 THEN NULL WHEN CAST( + ( - 93 ) AS SIGNED ) THEN - COUNT( * ) * - - 81 ELSE NULL END ) * + 65 - - 3
----
-4793

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL 78 + - - COUNT ( * ) + - 75 * COALESCE ( + 1, 4 * + + 90 + - + 79 + CASE - COUNT ( * ) WHEN + MIN ( 49 ) + - + 12 + + 98 * - 10 THEN NULL WHEN CAST ( + ( - 93 ) AS INTEGER ) THEN - COUNT ( * ) * - - 81 ELSE NULL END ) * + 65 - - 3
----
-4793

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT + 63 * + 38 + + - 28 * ( SUM( ALL + - 32 ) ) AS col2
----
3290

skipif mysql # not compatible
query I rowsort label-2742
SELECT + 63 * + 38 + + - 28 * ( SUM ( ALL + - 32 ) ) AS col2
----
3290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2743
SELECT DISTINCT + NULLIF ( + 51, + 39 * + 97 + - 99 ) + + + 27 + 62 * - + 13 * - 40 * 27 * - COALESCE ( + ( - 21 ), + + CAST( NULL AS SIGNED ), + 41 ) + - 81 + + - 37 * - 55 * - + 6 * - 9 * 37
----
22346007

skipif mysql # not compatible
query I rowsort label-2743
SELECT DISTINCT + NULLIF ( + 51, + 39 * + 97 + - 99 ) + + + 27 + 62 * - + 13 * - 40 * 27 * - COALESCE ( + ( - 21 ), + + CAST ( NULL AS INTEGER ), + 41 ) + - 81 + + - 37 * - 55 * - + 6 * - 9 * 37
----
22346007

query I rowsort
SELECT ALL - 91 + + 14
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2745
SELECT ALL - - ( - 78 ) + 45 AS col2, - 36 + - 81 + - - COALESCE ( 25, - COUNT( * ), - CAST( NULL AS SIGNED ) DIV - 80 DIV + + 57 * + 55 + ( - 84 ) )
----
-33
-92

skipif mysql # not compatible
query II rowsort label-2745
SELECT ALL - - ( - 78 ) + 45 AS col2, - 36 + - 81 + - - COALESCE ( 25, - COUNT ( * ), - CAST ( NULL AS INTEGER ) / - 80 / + + 57 * + 55 + ( - 84 ) )
----
-33
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-2746
SELECT - 23 + - SUM( + 38 ) AS col1, + 10
----
-61
10

skipif mysql # not compatible
query II rowsort label-2746
SELECT - 23 + - SUM ( + 38 ) AS col1, + 10
----
-61
10

query II rowsort
SELECT + 25, + 53 AS col1
----
25
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2748
SELECT - NULLIF ( - - COALESCE ( + CAST( + 76 AS SIGNED ), 87 + - 4 ), 81 ) + + - COALESCE ( - 23, + 88 * 37 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-2748
SELECT - NULLIF ( - - COALESCE ( + CAST ( + 76 AS INTEGER ), 87 + - 4 ), 81 ) + + - COALESCE ( - 23, + 88 * 37 ) AS col1
----
-53

query I rowsort
SELECT DISTINCT - 97 - + 5 + + - 49 * 49 * + 58 AS col1
----
-139360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2750
SELECT - ( + CASE + - COUNT( * ) WHEN - 10 * MIN( DISTINCT 5 ) - - - NULLIF ( - 44, - 82 ) + - + COALESCE ( + CAST( NULL AS SIGNED ), + - 69 + + ( 44 ), + + 46 ) THEN NULL ELSE - 18 * 52 * + 10 END ) AS col1
----
9360

skipif mysql # not compatible
query I rowsort label-2750
SELECT - ( + CASE + - COUNT ( * ) WHEN - 10 * MIN ( DISTINCT 5 ) - - - NULLIF ( - 44, - 82 ) + - + COALESCE ( + CAST ( NULL AS INTEGER ), + - 69 + + ( 44 ), + + 46 ) THEN NULL ELSE - 18 * 52 * + 10 END ) AS col1
----
9360

query II rowsort
SELECT DISTINCT + 80 AS col1, COALESCE ( 34, + 40 * - 30 * ( - 96 ) + - 87 * + ( + 70 ) )
----
80
34

query I rowsort
SELECT DISTINCT + 45 * + 30
----
1350

query II rowsort
SELECT - + 31 AS col1, - 19 * 74 AS col2
----
-31
-1406

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT - 92 / ( + 70 ) * - CASE COALESCE ( ( + 22 ), + 85 ) WHEN - COUNT( + - 93 ) / - - ( - 98 ) THEN + + 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2754
SELECT - 92 / ( + 70 ) * - CASE COALESCE ( ( + 22 ), + 85 ) WHEN - COUNT ( + - 93 ) / - - ( - 98 ) THEN + + 45 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2755
SELECT CAST ( + ( - COUNT ( * ) ) AS INTEGER )
----
-1

query I rowsort
SELECT - 74 + + 71
----
-3

query I rowsort
SELECT - 51 * + 6
----
-306

query II rowsort
SELECT ALL + 70 AS col0, - 55 * 29 AS col2
----
70
-1595

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT + 27 * + 76 * - + COUNT( * )
----
-2052

skipif mysql # not compatible
query I rowsort label-2759
SELECT + 27 * + 76 * - + COUNT ( * )
----
-2052

onlyif mysql # aggregate syntax: 
query II rowsort label-2760
SELECT ALL 22 * + SUM( ALL - CASE 71 WHEN + 92 * - 36 * + 5 * - 26 THEN - 55 WHEN + 45 THEN NULL WHEN - 14 THEN + 71 WHEN 98 - + 58 THEN + 24 + - - 51 END ) + 4 col1, 84
----
NULL
84

skipif mysql # not compatible
query II rowsort label-2760
SELECT ALL 22 * + SUM ( ALL - CASE 71 WHEN + 92 * - 36 * + 5 * - 26 THEN - 55 WHEN + 45 THEN NULL WHEN - 14 THEN + 71 WHEN 98 - + 58 THEN + 24 + - - 51 END ) + 4 col1, 84
----
NULL
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT DISTINCT + CASE + 91 WHEN + + 57 * + - 39 * - COUNT( * ) * + NULLIF ( - - 77, 69 * SUM( - - 51 ) ) THEN + - 70 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT + CASE + 91 WHEN + + 57 * + - 39 * - COUNT ( * ) * + NULLIF ( - - 77, 69 * SUM ( - - 51 ) ) THEN + - 70 END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2762
SELECT + 20 + + - 18 + - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT + 55 * + 21 AS col0
----
1155

query II rowsort
SELECT + ( + 35 ) col0, 71
----
35
71

onlyif mysql # aggregate syntax: 
query II rowsort label-2765
SELECT + COUNT( * ) AS col2, - 50 * - 46
----
1
2300

skipif mysql # not compatible
query II rowsort label-2765
SELECT + COUNT ( * ) AS col2, - 50 * - 46
----
1
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT + COUNT( * ) + + 55 + + 24 * + - 16 * + 81 - - - COUNT( * ) * - - 52
----
-31100

skipif mysql # not compatible
query I rowsort label-2766
SELECT + COUNT ( * ) + + 55 + + 24 * + - 16 * + 81 - - - COUNT ( * ) * - - 52
----
-31100

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2769
SELECT ALL 21 * COUNT( * ) * - CAST( NULL AS SIGNED ) * 93 * 18 + - 64 + + - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL 21 * COUNT ( * ) * - CAST ( NULL AS INTEGER ) * 93 * 18 + - 64 + + - 69 AS col0
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2772
SELECT + 98 - COUNT( * ) - + ( - 28 ) - 95 + ( 25 ) + CAST( NULL AS SIGNED ) * + 59 * - 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2772
SELECT + 98 - COUNT ( * ) - + ( - 28 ) - 95 + ( 25 ) + CAST ( NULL AS INTEGER ) * + 59 * - 83 AS col1
----
NULL

query II rowsort
SELECT - - 61, + 55 AS col1
----
61
55

query II rowsort
SELECT 46 AS col1, + 60
----
46
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT - - MAX( + + 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2775
SELECT - - MAX ( + + 62 ) AS col0
----
62

query I rowsort
SELECT ALL - 68 * + 28
----
-1904

query I rowsort
SELECT ALL ( - 51 ) AS col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2778
SELECT DISTINCT + NULLIF ( 33, - - 99 / + + 39 + + + ( + + 69 ) ) - - CAST( + 42 AS SIGNED ) + + - COUNT( * ) AS col0, - 4 + + COUNT( * )
----
74
-3

skipif mysql # not compatible
query II rowsort label-2778
SELECT DISTINCT + NULLIF ( 33, - - 99 / + + 39 + + + ( + + 69 ) ) - - CAST ( + 42 AS INTEGER ) + + - COUNT ( * ) AS col0, - 4 + + COUNT ( * )
----
74
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2779
SELECT + + 29 * + 51 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2779
SELECT + + 29 * + 51 + - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + + 27 * + 43 + + - 60 * + 11 AS col2
----
501

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT - 67 + - + 81 + CASE + 27 WHEN 42 THEN NULL WHEN ( - 98 ) THEN COUNT( - - NULLIF ( 9, - - 71 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2781
SELECT - 67 + - + 81 + CASE + 27 WHEN 42 THEN NULL WHEN ( - 98 ) THEN COUNT ( - - NULLIF ( 9, - - 71 ) ) END AS col0
----
NULL

query II rowsort
SELECT - + 86 col2, 57
----
-86
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT - MIN( DISTINCT + 65 ) col2
----
-65

skipif mysql # not compatible
query I rowsort label-2783
SELECT - MIN ( DISTINCT + 65 ) col2
----
-65

query I rowsort
SELECT ALL - CASE - - 67 WHEN 74 THEN - ( 44 ) + + 8 - + 27 ELSE NULL END
----
NULL

query II rowsort
SELECT 28 + - + 25 AS col2, + 37
----
3
37

query II rowsort
SELECT DISTINCT + 13 * + 87 col1, 40 + - + 43 * + + 10 - + 61 AS col2
----
1131
-451

query I rowsort
SELECT 38 + + + 77
----
115

query I rowsort
SELECT DISTINCT - 95 + 80
----
-15

query I rowsort
SELECT ALL + 40 + + 28
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2790
SELECT + 31 * - + MIN( ALL - 6 ) + + 73 DIV - + 79 AS col1
----
186

skipif mysql # not compatible
query I rowsort label-2790
SELECT + 31 * - + MIN ( ALL - 6 ) + + 73 / - + 79 AS col1
----
186

query I rowsort
SELECT 28 * + - 28
----
-784

query I rowsort
SELECT ALL - 78 + - + ( + 40 ) AS col0
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-2793
SELECT 59 DIV - - 40 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2793
SELECT 59 / - - 40 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT DISTINCT - ( - + MIN( + + 19 ) ) + - 77 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT - ( - + MIN ( + + 19 ) ) + - 77 AS col1
----
-58

query II rowsort
SELECT DISTINCT - ( - 36 ), + 79 AS col2
----
36
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2796
SELECT + 67 * - + 24 + - 31 * - + COUNT( * ) DIV 88 AS col2, + 44
----
-1608
44

skipif mysql # not compatible
query II rowsort label-2796
SELECT + 67 * - + 24 + - 31 * - + COUNT ( * ) / 88 AS col2, + 44
----
-1608
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2797
SELECT 30 * 99 + + + COUNT( * ) + - COUNT( * ) DIV + - COUNT( * ) AS col1
----
2972

skipif mysql # not compatible
query I rowsort label-2797
SELECT 30 * 99 + + + COUNT ( * ) + - COUNT ( * ) / + - COUNT ( * ) AS col1
----
2972

query I rowsort
SELECT ALL - 63 * COALESCE ( 12, - 67 )
----
-756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2799
SELECT - COALESCE ( + 87, COUNT( - - 6 ) + - MIN( DISTINCT - ( - 64 ) ) + 57 + - 35 ) - - COUNT( * ) DIV + SUM( + 2 ) * 4 - - - 67 * - SUM( ALL 24 ) AS col0
----
1521

skipif mysql # not compatible
query I rowsort label-2799
SELECT - COALESCE ( + 87, COUNT ( - - 6 ) + - MIN ( DISTINCT - ( - 64 ) ) + 57 + - 35 ) - - COUNT ( * ) / + SUM ( + 2 ) * 4 - - - 67 * - SUM ( ALL 24 ) AS col0
----
1521

query I rowsort
SELECT DISTINCT 83 * - - 39 AS col2
----
3237

query I rowsort
SELECT 99 + - 42 col1
----
57

query I rowsort
SELECT ALL - - 51 * - + 35 + + - 45
----
-1830

query I rowsort
SELECT + 80 * 61 AS col1
----
4880

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT DISTINCT - COUNT( * ) * + 7 * - - 4
----
-28

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT - COUNT ( * ) * + 7 * - - 4
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-2805
SELECT ALL MAX( - 90 ) AS col2, + COUNT( - 55 ) + + ( 82 ) AS col1
----
-90
83

skipif mysql # not compatible
query II rowsort label-2805
SELECT ALL MAX ( - 90 ) AS col2, + COUNT ( - 55 ) + + ( 82 ) AS col1
----
-90
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2806
SELECT + 7 + CAST( + 33 AS SIGNED ) * 24 AS col1
----
799

skipif mysql # not compatible
query I rowsort label-2806
SELECT + 7 + CAST ( + 33 AS INTEGER ) * 24 AS col1
----
799

onlyif mysql # aggregate syntax: 
query II rowsort label-2807
SELECT + 47 * - + 48 col0, COUNT( * ) * + NULLIF ( 91, - 21 ) * + + 83 + 8
----
-2256
7561

skipif mysql # not compatible
query II rowsort label-2807
SELECT + 47 * - + 48 col0, COUNT ( * ) * + NULLIF ( 91, - 21 ) * + + 83 + 8
----
-2256
7561

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

query II rowsort
SELECT 14 + - 51 AS col2, + 68
----
-37
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2810
SELECT DISTINCT SUM( + 53 ) col0, - 84 AS col1
----
53
-84

skipif mysql # not compatible
query II rowsort label-2810
SELECT DISTINCT SUM ( + 53 ) col0, - 84 AS col1
----
53
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2811
SELECT DISTINCT + MAX( DISTINCT - CAST( + - 50 AS SIGNED ) ) + - - 88 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-2811
SELECT DISTINCT + MAX ( DISTINCT - CAST ( + - 50 AS INTEGER ) ) + - - 88 AS col2
----
138

query I rowsort
SELECT 93 * + ( + 94 ) + - - 70 * 18 AS col1
----
10002

query II rowsort
SELECT DISTINCT 93 AS col2, 80
----
93
80

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2816
SELECT COUNT( * ) DIV - + 86 * - 11
----
0

skipif mysql # not compatible
query I rowsort label-2816
SELECT COUNT ( * ) / - + 86 * - 11
----
0

query I rowsort
SELECT 37 * + 94
----
3478

query I rowsort
SELECT 73 * - 83 AS col0
----
-6059

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

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL 62 + + COUNT ( * ) AS col0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2820
SELECT 82 DIV - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2820
SELECT 82 / - 84 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2821
SELECT ALL - COUNT( * ) AS col0, - 27 + + CASE - 99 WHEN - - ( 60 ) + + 25 + - CAST( - 24 AS SIGNED ) THEN NULL WHEN + 89 THEN - 91 ELSE 94 END AS col0
----
-1
67

skipif mysql # not compatible
query II rowsort label-2821
SELECT ALL - COUNT ( * ) AS col0, - 27 + + CASE - 99 WHEN - - ( 60 ) + + 25 + - CAST ( - 24 AS INTEGER ) THEN NULL WHEN + 89 THEN - 91 ELSE 94 END AS col0
----
-1
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT ALL - NULLIF ( - + 46, + ( 86 ) * + 98 + 26 ) - COUNT( * ) col2
----
45

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL - NULLIF ( - + 46, + ( 86 ) * + 98 + 26 ) - COUNT ( * ) col2
----
45

query I rowsort
SELECT ALL - 74 * + 75 AS col0
----
-5550

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

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

query I rowsort
SELECT 78 * - 13 AS col2
----
-1014

query I rowsort
SELECT - 89 * 76
----
-6764

query I rowsort
SELECT 91 + 95 AS col2
----
186

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2830
SELECT - SUM( CAST( + 30 AS SIGNED ) ) * - 65 + 14 AS col1
----
1964

skipif mysql # not compatible
query I rowsort label-2830
SELECT - SUM ( CAST ( + 30 AS INTEGER ) ) * - 65 + 14 AS col1
----
1964

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2831
SELECT ALL + + COALESCE ( + + COUNT( * ), + ( 82 ), 72 ) DIV + 73 DIV + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL + + COALESCE ( + + COUNT ( * ), + ( 82 ), 72 ) / + 73 / + COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2832
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, 46 AS col2
----
NULL
46

skipif mysql # not compatible
query II rowsort label-2832
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, 46 AS col2
----
NULL
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT - - COUNT( * ) * - 47 + 99 + 18 * + 46 * - 60 + + 11 AS col2
----
-49617

skipif mysql # not compatible
query I rowsort label-2834
SELECT - - COUNT ( * ) * - 47 + 99 + 18 * + 46 * - 60 + + 11 AS col2
----
-49617

query I rowsort
SELECT - 44 - - 80
----
36

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

skipif mysql # not compatible
query I rowsort label-2836
SELECT - + 52 / - COUNT ( * )
----
52

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

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

query I rowsort
SELECT - + 73 * 63 - + 58 col1
----
-4657

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

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

query I rowsort
SELECT - 71 * - ( - 76 )
----
-5396

query I rowsort
SELECT ALL - + 32 + - 75
----
-107

onlyif mysql # DIV for integer division: 
query I rowsort label-2842
SELECT DISTINCT - 33 + - 26 - - + 46 DIV + ( + - COALESCE ( + - 81, - 19 + 98 ) ) * + 78 * + 58
----
-59

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT - 33 + - 26 - - + 46 / + ( + - COALESCE ( + - 81, - 19 + 98 ) ) * + 78 * + 58
----
-59

query I rowsort
SELECT DISTINCT ( 78 ) col2
----
78

query I rowsort
SELECT ALL - + 56 + ( 50 ) col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT + 4 - 56 + 97 + COUNT( * ) * 49 * 70 * + 64 AS col0
----
219565

skipif mysql # not compatible
query I rowsort label-2845
SELECT + 4 - 56 + 97 + COUNT ( * ) * 49 * 70 * + 64 AS col0
----
219565

query II rowsort
SELECT - 74 + 29 AS col0, - 63 AS col2
----
-45
-63

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

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

query I rowsort
SELECT - 50 + + 55 * + 33 col0
----
1765

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2849
SELECT + AVG ( DISTINCT - 27 ) * + 14 / - ( - 94 ) * - COALESCE ( - 40, - 84 + - 19 + + 74 ) * + 15 * + NULLIF ( + + AVG ( - + 60 ), + 94 ) - - - COALESCE ( 26, + + 35 * 87 ) - - 37 + + CASE - - ( + CAST( NULL AS DECIMAL ) ) WHEN + + COUNT( * ) THEN - 63 * 37 * + + COUNT( * ) ELSE NULL END * + CASE + 60 WHEN + ( - 30 ) THEN - 4 END * 22 + + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2849
SELECT + AVG ( DISTINCT - 27 ) * + 14 / - ( - 94 ) * - COALESCE ( - 40, - 84 + - 19 + + 74 ) * + 15 * + NULLIF ( + + AVG ( - + 60 ), + 94 ) - - - COALESCE ( 26, + + 35 * 87 ) - - 37 + + CASE - - ( + CAST ( NULL AS REAL ) ) WHEN + + COUNT ( * ) THEN - 63 * 37 * + + COUNT ( * ) ELSE NULL END * + CASE + 60 WHEN + ( - 30 ) THEN - 4 END * 22 + + 25 AS col0
----
NULL

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

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

query I rowsort
SELECT + 68 + + 43 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT - COALESCE ( - COUNT( * ), 71 )
----
1

skipif mysql # not compatible
query I rowsort label-2852
SELECT - COALESCE ( - COUNT ( * ), 71 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT + 44 + + + NULLIF ( SUM( DISTINCT + 58 ), + 65 ) + - 73 col2
----
29

skipif mysql # not compatible
query I rowsort label-2853
SELECT + 44 + + + NULLIF ( SUM ( DISTINCT + 58 ), + 65 ) + - 73 col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2854
SELECT - ( - + 23 ), + SUM( ALL + + CAST( + 37 AS SIGNED ) ) DIV 24 + - 23 AS col0
----
23
-22

skipif mysql # not compatible
query II rowsort label-2854
SELECT - ( - + 23 ), + SUM ( ALL + + CAST ( + 37 AS INTEGER ) ) / 24 + - 23 AS col0
----
23
-22

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

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

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

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

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

query I rowsort
SELECT ALL 66 * - - 33 - 52
----
2126

query I rowsort
SELECT ( + + 2 ) AS col2
----
2

query I rowsort
SELECT ALL 79 * + + ( - 88 )
----
-6952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2861
SELECT + CAST( + 86 AS SIGNED ) DIV COUNT( * ) * + 33 + - 81 + 29 AS col2
----
2786

skipif mysql # not compatible
query I rowsort label-2861
SELECT + CAST ( + 86 AS INTEGER ) / COUNT ( * ) * + 33 + - 81 + 29 AS col2
----
2786

query I rowsort
SELECT + 66 + + - 43
----
23

query I rowsort
SELECT - 43 + + 18 + - 12 * + + 9
----
-133

onlyif mysql # DIV for integer division: 
query I rowsort label-2864
SELECT + ( + 10 ) DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2864
SELECT + ( + 10 ) / 87 AS col1
----
0

query I rowsort
SELECT - 60 * - 62 * 21 AS col0
----
78120

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

query I rowsort
SELECT ALL + NULLIF ( 12, AVG ( + 10 ) ) col0
----
12

query I rowsort
SELECT - 62 - + 80
----
-142

query I rowsort
SELECT DISTINCT + 89 * - + 50
----
-4450

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT DISTINCT + MAX( - 44 ) * - 19
----
836

skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT + MAX ( - 44 ) * - 19
----
836

onlyif mysql # aggregate syntax: 
query II rowsort label-2871
SELECT ALL + - COUNT( * ) * + 75, + 28 AS col0
----
-75
28

skipif mysql # not compatible
query II rowsort label-2871
SELECT ALL + - COUNT ( * ) * + 75, + 28 AS col0
----
-75
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2872
SELECT + COALESCE ( + CAST( + 49 AS SIGNED ), 82, + 95 ) * 19 + - 28 AS col2
----
903

skipif mysql # not compatible
query I rowsort label-2872
SELECT + COALESCE ( + CAST ( + 49 AS INTEGER ), 82, + 95 ) * 19 + - 28 AS col2
----
903

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2873
SELECT ALL 96 * - MIN( ALL + 4 ) * - + 86 + + 96 DIV + COUNT( * ) + - MIN( ALL - + 39 )
----
33159

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL 96 * - MIN ( ALL + 4 ) * - + 86 + + 96 / + COUNT ( * ) + - MIN ( ALL - + 39 )
----
33159

onlyif mysql # DIV for integer division: 
query II rowsort label-2874
SELECT ALL + 35 + + 35 AS col1, 12 DIV - 25 AS col1
----
70
0

skipif mysql # not compatible
query II rowsort label-2874
SELECT ALL + 35 + + 35 AS col1, 12 / - 25 AS col1
----
70
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2875
SELECT DISTINCT - 77 + + + 48 - + CASE - - 30 WHEN + 16 + + + 97 THEN 46 WHEN 11 + - - COUNT( * ) THEN NULL END, + COALESCE ( - SUM( DISTINCT 27 ), + 33 * 16 DIV CASE + + 15 WHEN + 89 - 90 THEN - - 99 WHEN + 91 * 16 THEN NULL WHEN + 48 * + + ( 51 ) * + 56 DIV - - ( - 28 ) DIV + + 48 * + + NULLIF ( - 98, + - 7 - + - 84 ) + MAX( ALL + 58 ) + - - 74 THEN NULL END DIV + 99 ) * - 21 - + 53 col2
----
NULL
514

skipif mysql # not compatible
query II rowsort label-2875
SELECT DISTINCT - 77 + + + 48 - + CASE - - 30 WHEN + 16 + + + 97 THEN 46 WHEN 11 + - - COUNT ( * ) THEN NULL END, + COALESCE ( - SUM ( DISTINCT 27 ), + 33 * 16 / CASE + + 15 WHEN + 89 - 90 THEN - - 99 WHEN + 91 * 16 THEN NULL WHEN + 48 * + + ( 51 ) * + 56 / - - ( - 28 ) / + + 48 * + + NULLIF ( - 98, + - 7 - + - 84 ) + MAX ( ALL + 58 ) + - - 74 THEN NULL END / + 99 ) * - 21 - + 53 col2
----
NULL
514

query II rowsort
SELECT - 36 * - + 72 col2, 69 + 38 + + 80
----
2592
187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2877
SELECT - NULLIF ( + + 77, 43 ) + - COUNT( * ) * - 43 DIV - - 44 * + + 11
----
-77

skipif mysql # not compatible
query I rowsort label-2877
SELECT - NULLIF ( + + 77, 43 ) + - COUNT ( * ) * - 43 / - - 44 * + + 11
----
-77

query I rowsort
SELECT + ( 29 ) + + - 60 + - 4
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2879
SELECT + CAST( - 7 AS SIGNED ) * + 90 * + CAST( ( 0 ) AS SIGNED ) * 43 * + 80 - - - 6 + - 9 * CASE + 13 WHEN - + 49 * - ( COALESCE ( 9, - ( - + 31 ) + - MAX( + 67 ) ) ) * - 65 + 18 - + 87 THEN NULL WHEN + 39 THEN COUNT( 3 ) END + - + 44 * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2879
SELECT + CAST ( - 7 AS INTEGER ) * + 90 * + CAST ( ( 0 ) AS INTEGER ) * 43 * + 80 - - - 6 + - 9 * CASE + 13 WHEN - + 49 * - ( COALESCE ( 9, - ( - + 31 ) + - MAX ( + 67 ) ) ) * - 65 + 18 - + 87 THEN NULL WHEN + 39 THEN COUNT ( 3 ) END + - + 44 * - 46
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2880
SELECT DISTINCT + 36 * + 73 * + 90, + COUNT( * ) AS col1
----
236520
1

skipif mysql # not compatible
query II rowsort label-2880
SELECT DISTINCT + 36 * + 73 * + 90, + COUNT ( * ) AS col1
----
236520
1

query I rowsort
SELECT - 44 * - 73 AS col1
----
3212

query I rowsort
SELECT DISTINCT 73 - + - 31 AS col1
----
104

query I rowsort
SELECT DISTINCT + 91 * + 90
----
8190

query II rowsort
SELECT ALL 8 - 97 * + 67 AS col1, CASE - 19 WHEN - 62 * - - 46 THEN + 76 END
----
-6491
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2885
SELECT + NULLIF ( 90, - - COALESCE ( - 99, + ( CASE - 1 WHEN - - 0 * + 22 + 66 THEN - 7 * - + COUNT( * ) WHEN + - 7 THEN NULL ELSE 58 * + 97 * - - 38 END ) * MAX( 86 ) * + 11 + - ( + + 43 ) + MAX( DISTINCT - 44 ) / - COUNT( * ) - - COUNT( * ) * - + CAST( - - 31 AS SIGNED ) / 97 ) * COUNT( * ) ) * + 2 AS col0, - 85
----
180
-85

skipif mysql # not compatible
query II rowsort label-2885
SELECT + NULLIF ( 90, - - COALESCE ( - 99, + ( CASE - 1 WHEN - - 0 * + 22 + 66 THEN - 7 * - + COUNT ( * ) WHEN + - 7 THEN NULL ELSE 58 * + 97 * - - 38 END ) * MAX ( 86 ) * + 11 + - ( + + 43 ) + MAX ( DISTINCT - 44 ) / - COUNT ( * ) - - COUNT ( * ) * - + CAST ( - - 31 AS INTEGER ) / 97 ) * COUNT ( * ) ) * + 2 AS col0, - 85
----
180
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT ALL + 74 * SUM( 61 ) AS col0
----
4514

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL + 74 * SUM ( 61 ) AS col0
----
4514

query I rowsort
SELECT ALL 72 - + + 68 AS col2
----
4

query I rowsort
SELECT + 84 * + 93
----
7812

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

query I rowsort
SELECT + 55 * - - 78 - + 21
----
4269

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2891
SELECT + 37 DIV 72 * 51 * + SUM( DISTINCT + 38 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2891
SELECT + 37 / 72 * 51 * + SUM ( DISTINCT + 38 ) AS col1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2893
SELECT DISTINCT ( + - COUNT( * ) ) * + 63 DIV - 94 + 68 col2
----
68

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT ( + - COUNT ( * ) ) * + 63 / - 94 + 68 col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2894
SELECT DISTINCT MAX( + + 4 ) DIV + - 93
----
0

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT MAX ( + + 4 ) / + - 93
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2895
SELECT ALL + + 68 AS col1, CAST( - COUNT( * ) AS SIGNED ) + + 87 AS col2
----
68
86

skipif mysql # not compatible
query II rowsort label-2895
SELECT ALL + + 68 AS col1, CAST ( - COUNT ( * ) AS INTEGER ) + + 87 AS col2
----
68
86

query I rowsort
SELECT ALL 7 * 45 AS col1
----
315

query I rowsort
SELECT DISTINCT + 24 * 0 + + - 30
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2898
SELECT - 60 + + + 54 + + 16 DIV + + 10 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-2898
SELECT - 60 + + + 54 + + 16 / + + 10 AS col1
----
-5

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

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT - 49 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2900
SELECT 74 DIV + 45 + + - 53 * + ( ( + 42 ) )
----
-2225

skipif mysql # not compatible
query I rowsort label-2900
SELECT 74 / + 45 + + - 53 * + ( ( + 42 ) )
----
-2225

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2901
SELECT DISTINCT MIN( - + 37 ) DIV + - 87, + 15 - + 49 + + + CASE + - 79 WHEN COUNT( * ) * 22 * 72 * 88 * - 84 THEN - - 5 + + - 10 + MIN( DISTINCT 40 ) END + 12 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2901
SELECT DISTINCT MIN ( - + 37 ) / + - 87, + 15 - + 49 + + + CASE + - 79 WHEN COUNT ( * ) * 22 * 72 * 88 * - 84 THEN - - 5 + + - 10 + MIN ( DISTINCT 40 ) END + 12 AS col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL - MIN( + - 41 ) + - + ( 51 ) * 1 + + 55 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL - MIN ( + - 41 ) + - + ( 51 ) * 1 + + 55 AS col0
----
45

query I rowsort
SELECT 22 + - 77 AS col1
----
-55

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

skipif mysql # not compatible
query II rowsort label-2904
SELECT ALL - + 1, - COUNT ( * )
----
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2905
SELECT DISTINCT + - COALESCE ( - COUNT( * ), - CAST( - - ( - COUNT( * ) ) AS SIGNED ) ) + - 56 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT + - COALESCE ( - COUNT ( * ), - CAST ( - - ( - COUNT ( * ) ) AS INTEGER ) ) + - 56 AS col1
----
-55

query I rowsort
SELECT ALL - - 44 + 13
----
57

query I rowsort
SELECT ALL 23 + + + ( - 34 ) AS col1
----
-11

query I rowsort
SELECT DISTINCT + 6 + 64 + + + 36 - + + 21
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2909
SELECT ALL - 47 + 26 + + NULLIF ( 46, - CAST( + 7 AS SIGNED ) + + + 96 ) + + - 91 AS col2, - 27
----
-66
-27

skipif mysql # not compatible
query II rowsort label-2909
SELECT ALL - 47 + 26 + + NULLIF ( 46, - CAST ( + 7 AS INTEGER ) + + + 96 ) + + - 91 AS col2, - 27
----
-66
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT NULLIF ( + 79, - + 6 ) * - - COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-2911
SELECT NULLIF ( + 79, - + 6 ) * - - COUNT ( * ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-2912
SELECT DISTINCT + + COUNT( * ) * - 38 * - + 92, + 74 AS col2
----
3496
74

skipif mysql # not compatible
query II rowsort label-2912
SELECT DISTINCT + + COUNT ( * ) * - 38 * - + 92, + 74 AS col2
----
3496
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT COUNT( * ) - - 19 + - 28 * + NULLIF ( - - 3, 68 * + 70 ) col1
----
-64

skipif mysql # not compatible
query I rowsort label-2913
SELECT COUNT ( * ) - - 19 + - 28 * + NULLIF ( - - 3, 68 * + 70 ) col1
----
-64

query II rowsort
SELECT 26, + 15 col1
----
26
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT MIN( DISTINCT - 39 ) * - - 14 + + - 79 - - MAX( ALL - 10 ) AS col1
----
-635

skipif mysql # not compatible
query I rowsort label-2915
SELECT MIN ( DISTINCT - 39 ) * - - 14 + + - 79 - - MAX ( ALL - 10 ) AS col1
----
-635

query II rowsort
SELECT ALL 47 AS col1, + 47
----
47
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2917
SELECT 63 + - + COUNT( ALL + 49 ) + + 77 AS col0, - 76 + 7
----
139
-69

skipif mysql # not compatible
query II rowsort label-2917
SELECT 63 + - + COUNT ( ALL + 49 ) + + 77 AS col0, - 76 + 7
----
139
-69

query I rowsort
SELECT ALL + 78 - 55 AS col1
----
23

query II rowsort
SELECT - 3 col2, 24 AS col0
----
-3
24

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

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

query II rowsort
SELECT 99 AS col1, - 98 + + ( + + 97 ) AS col0
----
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2922
SELECT 68 DIV + + 4 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-2922
SELECT 68 / + + 4 AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2923
SELECT 4 * - + CASE + + CASE + COUNT( * ) WHEN ( - 62 ) * + 52 + 30 THEN 79 * - 74 + + + 99 - - 6 + - 88 * - COUNT( * ) + - MIN( DISTINCT 19 ) * CAST( 35 AS SIGNED ) + - AVG ( DISTINCT - + 67 ) WHEN - 76 THEN NULL ELSE 95 + - MAX( 82 ) - CAST( NULL AS DECIMAL ) * - 21 END WHEN 25 THEN 97 WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2923
SELECT 4 * - + CASE + + CASE + COUNT ( * ) WHEN ( - 62 ) * + 52 + 30 THEN 79 * - 74 + + + 99 - - 6 + - 88 * - COUNT ( * ) + - MIN ( DISTINCT 19 ) * CAST ( 35 AS INTEGER ) + - AVG ( DISTINCT - + 67 ) WHEN - 76 THEN NULL ELSE 95 + - MAX ( 82 ) - CAST ( NULL AS REAL ) * - 21 END WHEN 25 THEN 97 WHEN + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT DISTINCT - COUNT( * ) * - 15 * 74 AS col2
----
1110

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT - COUNT ( * ) * - 15 * 74 AS col2
----
1110

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT 78 + + MAX( + 39 ) + - 64 col2
----
53

skipif mysql # not compatible
query I rowsort label-2925
SELECT 78 + + MAX ( + 39 ) + - 64 col2
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-2926
SELECT COUNT( * ) * + + ( + - 53 ) * + + 17, 52 col2
----
-901
52

skipif mysql # not compatible
query II rowsort label-2926
SELECT COUNT ( * ) * + + ( + - 53 ) * + + 17, 52 col2
----
-901
52

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2928
SELECT ALL - 88 * - + 19 AS col0, COUNT( ALL + 52 ) * + 18 * - - 72 AS col1
----
1672
1296

skipif mysql # not compatible
query II rowsort label-2928
SELECT ALL - 88 * - + 19 AS col0, COUNT ( ALL + 52 ) * + 18 * - - 72 AS col1
----
1672
1296

query I rowsort
SELECT ALL - 15 * - ( + 38 ) AS col2
----
570

query I rowsort
SELECT 97 + + 16 + - 20 AS col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2931
SELECT ALL + 43 * SUM( - + 76 ) * - 49, + 35 - + - 70 AS col1
----
160132
105

skipif mysql # not compatible
query II rowsort label-2931
SELECT ALL + 43 * SUM ( - + 76 ) * - 49, + 35 - + - 70 AS col1
----
160132
105

query II rowsort
SELECT DISTINCT - 81 col2, 38 + + 95 AS col1
----
-81
133

query I rowsort
SELECT ALL + 64 + 65
----
129

query I rowsort
SELECT + 75 * - + 26
----
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT MIN( ALL ( - 9 ) ) * + CASE + - 92 WHEN - 60 THEN 75 ELSE - + 22 + + 96 END
----
-666

skipif mysql # not compatible
query I rowsort label-2935
SELECT MIN ( ALL ( - 9 ) ) * + CASE + - 92 WHEN - 60 THEN 75 ELSE - + 22 + + 96 END
----
-666

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT ALL - 3 + - COUNT( * ) - - CASE + - 35 WHEN CASE - 53 WHEN + 6 * + + 64 * + 40 THEN - + 64 * - 63 WHEN + 35 / + 6 + - 50 THEN SUM( DISTINCT - 88 ) + - COUNT( * ) ELSE NULL END THEN NULL WHEN ( + 14 ) * - 43 / + 43 + - - 3 * + 55 * - - 65 THEN ( + COUNT( * ) ) + + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL - 3 + - COUNT ( * ) - - CASE + - 35 WHEN CASE - 53 WHEN + 6 * + + 64 * + 40 THEN - + 64 * - 63 WHEN + 35 / + 6 + - 50 THEN SUM ( DISTINCT - 88 ) + - COUNT ( * ) ELSE NULL END THEN NULL WHEN ( + 14 ) * - 43 / + 43 + - - 3 * + 55 * - - 65 THEN ( + COUNT ( * ) ) + + + COUNT ( * ) END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ALL + 29 + - MIN( 12 )
----
17

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL + 29 + - MIN ( 12 )
----
17

query I rowsort
SELECT DISTINCT 64 + + + 47 AS col1
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2942
SELECT ALL 68 * - + ( - CAST( - COUNT( * ) AS SIGNED ) )
----
-68

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL 68 * - + ( - CAST ( - COUNT ( * ) AS INTEGER ) )
----
-68

query II rowsort
SELECT 24 AS col2, 28 + + 80 col1
----
24
108

query I rowsort
SELECT ALL - - 25 * 97 + + 67
----
2492

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT DISTINCT COUNT( * ) + - 90 + MAX( DISTINCT + + 84 ) - 79 + 13 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT COUNT ( * ) + - 90 + MAX ( DISTINCT + + 84 ) - 79 + 13 AS col2
----
-71

query I rowsort
SELECT ALL 35 * - 84 * - 51 * + 25 * 80
----
299880000

onlyif mysql # aggregate syntax: 
query II rowsort label-2947
SELECT 61 AS col0, MAX( 5 ) AS col1
----
61
5

skipif mysql # not compatible
query II rowsort label-2947
SELECT 61 AS col0, MAX ( 5 ) AS col1
----
61
5

query I rowsort
SELECT 24 + 6 + + - 66 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-2949
SELECT + COUNT( * ) * + + 79 + - 24 * - 67, - 32 AS col2
----
1687
-32

skipif mysql # not compatible
query II rowsort label-2949
SELECT + COUNT ( * ) * + + 79 + - 24 * - 67, - 32 AS col2
----
1687
-32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2950
SELECT + 1 * + NULLIF ( - CAST( NULL AS DECIMAL ), + - SUM( 69 ) ) - + 27 - 9 AS col2, MIN( 80 ) AS col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-2950
SELECT + 1 * + NULLIF ( - CAST ( NULL AS REAL ), + - SUM ( 69 ) ) - + 27 - 9 AS col2, MIN ( 80 ) AS col1
----
NULL
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2951
SELECT ALL - 52 DIV COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL - 52 / COUNT ( * ) AS col0
----
-52

query I rowsort
SELECT - 40 + + - 50
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT ALL COUNT( * ) - - MIN( 97 ) + + + 85 col1
----
183

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL COUNT ( * ) - - MIN ( 97 ) + + + 85 col1
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-2954
SELECT 88 + 64 DIV - 75 * 39
----
88

skipif mysql # not compatible
query I rowsort label-2954
SELECT 88 + 64 / - 75 * 39
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT 98 + + - NULLIF ( + 7, - COUNT( * ) ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-2955
SELECT 98 + + - NULLIF ( + 7, - COUNT ( * ) ) AS col0
----
91

query I rowsort
SELECT ALL 49 * 7 * + 53 AS col2
----
18179

onlyif mysql # DIV for integer division: 
query I rowsort label-2957
SELECT 13 DIV - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2957
SELECT 13 / - 93 AS col2
----
0

query I rowsort
SELECT - CASE + 19 WHEN + 66 - 73 THEN 19 + - 0 END
----
NULL

query II rowsort
SELECT DISTINCT 96 * 28 AS col1, + 33 + 41
----
2688
74

query I rowsort
SELECT DISTINCT 55 + - 41 * - + 44 AS col2
----
1859

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT ALL MIN( + - 43 ) + + 48 col1
----
5

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL MIN ( + - 43 ) + + 48 col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2962
SELECT - COALESCE ( - 45, + - 52 * 66 - - - NULLIF ( + 74, + NULLIF ( - - ( - 51 ), + - 72 / + 10 ) - + - AVG ( - 34 ) / + 82 + - 91 + - 12 ) - - NULLIF ( - - COUNT( + - 10 ), - + 29 ) * 65 * + - 62 - + CAST( NULL AS SIGNED ) - - 87, 80 * COUNT( DISTINCT 24 ) + 92 )
----
45

skipif mysql # not compatible
query I rowsort label-2962
SELECT - COALESCE ( - 45, + - 52 * 66 - - - NULLIF ( + 74, + NULLIF ( - - ( - 51 ), + - 72 / + 10 ) - + - AVG ( - 34 ) / + 82 + - 91 + - 12 ) - - NULLIF ( - - COUNT ( + - 10 ), - + 29 ) * 65 * + - 62 - + CAST ( NULL AS INTEGER ) - - 87, 80 * COUNT ( DISTINCT 24 ) + 92 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT - 29 + - + COUNT( * ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-2963
SELECT - 29 + - + COUNT ( * ) AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2964
SELECT - + SUM( + CAST( NULL AS DECIMAL ) ) AS col1, COALESCE ( - COUNT( * ), - CAST( NULL AS SIGNED ), - 85 ) + 26
----
NULL
25

skipif mysql # not compatible
query II rowsort label-2964
SELECT - + SUM ( + CAST ( NULL AS REAL ) ) AS col1, COALESCE ( - COUNT ( * ), - CAST ( NULL AS INTEGER ), - 85 ) + 26
----
NULL
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT ALL - + 2 + - SUM( DISTINCT 46 ) * - 51 + + 21
----
2365

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL - + 2 + - SUM ( DISTINCT 46 ) * - 51 + + 21
----
2365

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2966
SELECT - 95 / + COALESCE ( 69, 21, - 74 ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2966
SELECT - 95 / + COALESCE ( 69, 21, - 74 ) * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + - 35 * 82
----
-2870

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT ALL - + ( + COUNT( * ) ) * COUNT( * ) + + 26 + - 43 + + COALESCE ( - 81, ( - MIN( DISTINCT - + ( 68 ) ) ) + 89 ) + 87 * - 69 * + - 63
----
378090

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL - + ( + COUNT ( * ) ) * COUNT ( * ) + + 26 + - 43 + + COALESCE ( - 81, ( - MIN ( DISTINCT - + ( 68 ) ) ) + 89 ) + 87 * - 69 * + - 63
----
378090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2969
SELECT ALL + CAST( - - ( - 3 ) AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL + CAST ( - - ( - 3 ) AS INTEGER )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT DISTINCT - 6 * - - 79 - + - MIN( DISTINCT + 99 )
----
-375

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT - 6 * - - 79 - + - MIN ( DISTINCT + 99 )
----
-375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2971
SELECT DISTINCT + - COALESCE ( - - COALESCE ( + - 53, + 92, 72 + - 20 ), - CAST( NULL AS SIGNED ) + - + 5 ), + COUNT( ALL - - 87 ) DIV 65 AS col1
----
53
0

skipif mysql # not compatible
query II rowsort label-2971
SELECT DISTINCT + - COALESCE ( - - COALESCE ( + - 53, + 92, 72 + - 20 ), - CAST ( NULL AS INTEGER ) + - + 5 ), + COUNT ( ALL - - 87 ) / 65 AS col1
----
53
0

query I rowsort
SELECT - + 67 * + 26 AS col1
----
-1742

query I rowsort
SELECT DISTINCT + 23 * - ( + 98 )
----
-2254

query II rowsort
SELECT ALL + 37 AS col2, 4 + 99
----
37
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT + SUM( ALL 28 ) col0
----
28

skipif mysql # not compatible
query I rowsort label-2975
SELECT + SUM ( ALL 28 ) col0
----
28

query I rowsort
SELECT DISTINCT - 32 * - 47 AS col2
----
1504

query I rowsort
SELECT + COALESCE ( - + 66, 16, - 40 )
----
-66

query I rowsort
SELECT ALL 97 * 35 AS col2
----
3395

query II rowsort
SELECT DISTINCT 15 * 17 * + 64 AS col1, - 97 + - 56 AS col1
----
16320
-153

query I rowsort
SELECT + 44 * - 30 col2
----
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT + COUNT( * ) * + 73 - - + 10 * + - 49 * - 48 * - COUNT( - + CASE + 64 WHEN 20 THEN + 20 * + + ( - 8 ) END ) col1
----
73

skipif mysql # not compatible
query I rowsort label-2981
SELECT + COUNT ( * ) * + 73 - - + 10 * + - 49 * - 48 * - COUNT ( - + CASE + 64 WHEN 20 THEN + 20 * + + ( - 8 ) END ) col1
----
73

query I rowsort
SELECT + 20 * - - 53
----
1060

query I rowsort
SELECT + 32 + - 25 AS col0
----
7

query II rowsort
SELECT DISTINCT 66, 38 AS col2
----
66
38

query I rowsort
SELECT DISTINCT 55 + 13 * - + ( - + 91 )
----
1238

query I rowsort
SELECT ALL 14 + 4 * + + 39 col1
----
170

query I rowsort
SELECT + 84 * - ( - 54 ) * - - 87 AS col1
----
394632

query I rowsort
SELECT ALL 90 + + 31 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT DISTINCT COUNT( * ) + + ( - 96 ) + + + 9 + - 11
----
-97

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT COUNT ( * ) + + ( - 96 ) + + + 9 + - 11
----
-97

query I rowsort
SELECT + ( 14 ) + 90
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-2991
SELECT + 78 - + ( + 75 ) DIV - COALESCE ( + 71, - + 22 ) + + 64 AS col0
----
143

skipif mysql # not compatible
query I rowsort label-2991
SELECT + 78 - + ( + 75 ) / - COALESCE ( + 71, - + 22 ) + + 64 AS col0
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2992
SELECT DISTINCT 42 * + NULLIF ( + + COUNT( + 74 ), 0 + - 66 ) DIV + + ( 55 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT 42 * + NULLIF ( + + COUNT ( + 74 ), 0 + - 66 ) / + + ( 55 ) AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-2993
SELECT + 54 + - COUNT ( * ) AS col0
----
53

query I rowsort
SELECT DISTINCT 96 * - 16 * - 71 + + - 86 AS col2
----
108970

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT ALL 1 + SUM( + 44 ) + + - 68 + 90 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL 1 + SUM ( + 44 ) + + - 68 + 90 AS col0
----
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT + 84 + + - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-2997
SELECT + 84 + + - COUNT ( * ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-2998
SELECT - 30 AS col1, COUNT( * ) * + - 30
----
-30
-30

skipif mysql # not compatible
query II rowsort label-2998
SELECT - 30 AS col1, COUNT ( * ) * + - 30
----
-30
-30

query I rowsort
SELECT ALL + 43 - - ( - + 47 ) - 21 AS col0
----
-25

query II rowsort
SELECT 79 AS col0, 1 + - 87
----
79
-86

query I rowsort
SELECT DISTINCT 85 - - 44
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3002
SELECT ALL + + MIN( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3004
SELECT + 79 DIV + MAX( ALL - 50 ) + + 65
----
64

skipif mysql # not compatible
query I rowsort label-3004
SELECT + 79 / + MAX ( ALL - 50 ) + + 65
----
64

query II rowsort
SELECT + - 28, ( - 14 ) AS col2
----
-28
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3006
SELECT - - 7 + + 92 * + - CAST( NULL AS SIGNED ) AS col1, 31 * - 73 AS col2
----
NULL
-2263

skipif mysql # not compatible
query II rowsort label-3006
SELECT - - 7 + + 92 * + - CAST ( NULL AS INTEGER ) AS col1, 31 * - 73 AS col2
----
NULL
-2263

onlyif mysql # aggregate syntax: 
query II rowsort label-3007
SELECT - 0 * - COUNT( * ) + + 39 AS col0, MAX( - 20 )
----
39
-20

skipif mysql # not compatible
query II rowsort label-3007
SELECT - 0 * - COUNT ( * ) + + 39 AS col0, MAX ( - 20 )
----
39
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3008
SELECT DISTINCT - SUM( 89 ) / + 69 - - + 13 + - CAST( NULL AS SIGNED )
----
NULL

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

query I rowsort
SELECT - - 55 * + ( 19 ) AS col1
----
1045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3010
SELECT - CAST( + + COUNT( * ) AS SIGNED ) + + COUNT( DISTINCT - 9 ) - 0 * + 10
----
0

skipif mysql # not compatible
query I rowsort label-3010
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) + + COUNT ( DISTINCT - 9 ) - 0 * + 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT - COUNT( DISTINCT 15 ) + 29 + 90 + + - 33 - + 97
----
-12

skipif mysql # not compatible
query I rowsort label-3011
SELECT - COUNT ( DISTINCT 15 ) + 29 + 90 + + - 33 - + 97
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT + 44 + COALESCE ( 7, - + 99 ) + + ( COUNT( * ) ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-3012
SELECT + 44 + COALESCE ( 7, - + 99 ) + + ( COUNT ( * ) ) AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3013
SELECT + NULLIF ( + 23, + 3 * ( - NULLIF ( 97, + 66 ) ) * CASE + 80 WHEN + 82 * + + 45 * 76 + - 42 + + + COUNT( * ) * + + CASE COUNT( * ) WHEN + 7 + + + 57 THEN NULL ELSE + 62 * + 67 + - CAST( - 49 AS DECIMAL ) END + + 79 THEN NULL ELSE - 36 END + - + 97 + + + 75 + + COALESCE ( 41, - + 60, - ( + 98 ) + + 32 ) ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3013
SELECT + NULLIF ( + 23, + 3 * ( - NULLIF ( 97, + 66 ) ) * CASE + 80 WHEN + 82 * + + 45 * 76 + - 42 + + + COUNT ( * ) * + + CASE COUNT ( * ) WHEN + 7 + + + 57 THEN NULL ELSE + 62 * + 67 + - CAST ( - 49 AS REAL ) END + + 79 THEN NULL ELSE - 36 END + - + 97 + + + 75 + + COALESCE ( 41, - + 60, - ( + 98 ) + + 32 ) ) AS col2
----
23

query I rowsort
SELECT + 20 * 72
----
1440

query I rowsort
SELECT DISTINCT ( - ( + + 74 ) ) * + 86 + - + 81 * - - 26 col0
----
-8470

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3017
SELECT DISTINCT + 51 * + 38 + - 77 * - - 17 + - CAST( NULL AS SIGNED ) + - 51 * + 0 AS col0, - COUNT( 12 ) DIV ( + + 33 ) + COUNT( * ) * + 75 DIV + - 47 + - + COUNT( * ) AS col0
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-3017
SELECT DISTINCT + 51 * + 38 + - 77 * - - 17 + - CAST ( NULL AS INTEGER ) + - 51 * + 0 AS col0, - COUNT ( 12 ) / ( + + 33 ) + COUNT ( * ) * + 75 / + - 47 + - + COUNT ( * ) AS col0
----
NULL
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3018
SELECT - NULLIF ( - + CAST( NULL AS SIGNED ), + NULLIF ( - 69, - 25 * + 80 - 6 ) + + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3018
SELECT - NULLIF ( - + CAST ( NULL AS INTEGER ), + NULLIF ( - 69, - 25 * + 80 - 6 ) + + 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT ALL CASE 33 WHEN ( - - 16 ) THEN + 76 WHEN + - MAX( + 24 ) THEN - 64 ELSE - + 61 END + - - 12 * - - 70 * MIN( - 44 )
----
-37021

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL CASE 33 WHEN ( - - 16 ) THEN + 76 WHEN + - MAX ( + 24 ) THEN - 64 ELSE - + 61 END + - - 12 * - - 70 * MIN ( - 44 )
----
-37021

query I rowsort
SELECT ALL + 84 * + 94
----
7896

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT 23 + + - COUNT( * ) * - 51
----
74

skipif mysql # not compatible
query I rowsort label-3021
SELECT 23 + + - COUNT ( * ) * - 51
----
74

query I rowsort
SELECT ALL + 66 * 30 AS col0
----
1980

query I rowsort
SELECT DISTINCT 1 + 69 AS col1
----
70

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

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

query I rowsort
SELECT 42 + 92 + - 47 AS col1
----
87

query I rowsort
SELECT ALL 36 + - + 66 * 2 AS col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3027
SELECT DISTINCT - 5 + - 62 + + COUNT( * ) - + CAST( NULL AS SIGNED ) / + 33 / - MAX( ALL - 92 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT - 5 + - 62 + + COUNT ( * ) - + CAST ( NULL AS INTEGER ) / + 33 / - MAX ( ALL - 92 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT DISTINCT 16 - + COALESCE ( - - 99, + 96 * + - COUNT( * ) )
----
-83

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT 16 - + COALESCE ( - - 99, + 96 * + - COUNT ( * ) )
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3029
SELECT DISTINCT - 14 DIV - - ( - + MIN( + 15 ) ) * - 96
----
0

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT - 14 / - - ( - + MIN ( + 15 ) ) * - 96
----
0

query I rowsort
SELECT COALESCE ( - + 99, ( COALESCE ( + - ( - NULLIF ( - 10, - 90 + ( + + 13 ) + - ( + 62 ) ) ), 27 ) ), 84 )
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3031
SELECT - 18 * 93 AS col1, COUNT( * ) AS col2
----
-1674
1

skipif mysql # not compatible
query II rowsort label-3031
SELECT - 18 * 93 AS col1, COUNT ( * ) AS col2
----
-1674
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3033
SELECT DISTINCT + AVG ( ALL 86 ) * 34 / - CASE + + 10 WHEN 97 + - 85 * COALESCE ( 71, - - 21, - CAST( NULL AS SIGNED ) + - - 24 + - 48 ) * - MAX( - - 56 ) - COUNT( * ) + + 19 THEN + COALESCE ( + 4, - ( - 99 ) + - 92 + + 37, + - 53 + + 92 ) WHEN 40 * + 97 THEN + NULLIF ( - - 12, 69 ) ELSE + + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT + AVG ( ALL 86 ) * 34 / - CASE + + 10 WHEN 97 + - 85 * COALESCE ( 71, - - 21, - CAST ( NULL AS INTEGER ) + - - 24 + - 48 ) * - MAX ( - - 56 ) - COUNT ( * ) + + 19 THEN + COALESCE ( + 4, - ( - 99 ) + - 92 + + 37, + - 53 + + 92 ) WHEN 40 * + 97 THEN + NULLIF ( - - 12, 69 ) ELSE + + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT ALL NULLIF ( - 71, 87 ) - + ( + - 3 ) - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL NULLIF ( - 71, 87 ) - + ( + - 3 ) - COUNT ( * )
----
-69

query I rowsort
SELECT ALL 14 * + 52 AS col2
----
728

query I rowsort
SELECT + ( - 84 ) * + 23 col2
----
-1932

query I rowsort
SELECT ALL + 40 * 7
----
280

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3038
SELECT - CAST( 94 AS SIGNED ) AS col1, 16
----
-94
16

skipif mysql # not compatible
query II rowsort label-3038
SELECT - CAST ( 94 AS INTEGER ) AS col1, 16
----
-94
16

query I rowsort
SELECT DISTINCT 63 * - 43
----
-2709

onlyif mysql # aggregate syntax: 
query II rowsort label-3040
SELECT ALL - - MIN( - - 19 ) AS col2, + 82 AS col0
----
19
82

skipif mysql # not compatible
query II rowsort label-3040
SELECT ALL - - MIN ( - - 19 ) AS col2, + 82 AS col0
----
19
82

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

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

query I rowsort
SELECT DISTINCT + 46 + 55 AS col2
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3043
SELECT + - 89 * - 54 * + 34 + + - 7 + 85 - MIN( + CAST( 34 AS SIGNED ) ) + - 86 - - 85
----
163447

skipif mysql # not compatible
query I rowsort label-3043
SELECT + - 89 * - 54 * + 34 + + - 7 + 85 - MIN ( + CAST ( 34 AS INTEGER ) ) + - 86 - - 85
----
163447

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT 98 * - CAST( + - 62 AS SIGNED ) * 51 AS col2
----
309876

skipif mysql # not compatible
query I rowsort label-3044
SELECT 98 * - CAST ( + - 62 AS INTEGER ) * 51 AS col2
----
309876

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3045
SELECT DISTINCT + 70 + - 38 - - CAST( - + ( - + ( - 49 ) ) AS SIGNED ) DIV - 57 * - 55 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT + 70 + - 38 - - CAST ( - + ( - + ( - 49 ) ) AS INTEGER ) / - 57 * - 55 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT ALL - 61 + - SUM( 55 ) + 36 * - 42 AS col2
----
-1628

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL - 61 + - SUM ( 55 ) + 36 * - 42 AS col2
----
-1628

query I rowsort
SELECT ALL 14 + ( 52 )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT ALL + 88 + CAST( NULL AS SIGNED ) + + + AVG ( ALL 92 ) / 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL + 88 + CAST ( NULL AS INTEGER ) + + + AVG ( ALL 92 ) / 97
----
NULL

query I rowsort
SELECT DISTINCT 32 * - 99 AS col2
----
-3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3050
SELECT ALL - CAST( NULL AS SIGNED ) + + - 3 * - - 70 * + + 82 * - 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL - CAST ( NULL AS INTEGER ) + + - 3 * - - 70 * + + 82 * - 87 AS col1
----
NULL

query II rowsort
SELECT 23 * - ( - + 58 ), 40 + 78 AS col0
----
1334
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3052
SELECT CASE + + 28 WHEN + 90 THEN 60 * - - 65 WHEN + + 15 * - - 3 - - - 3 + CASE + COUNT( 22 ) WHEN - + 7 - + CASE + 90 WHEN + 61 + - 48 THEN - - 94 * 61 * - 15 END * - - AVG ( DISTINCT - + 20 ) * 71 * + 12 THEN - 32 WHEN CAST( NULL AS SIGNED ) THEN + + 61 END * - 93 + + 55 THEN - - CAST( - 44 AS SIGNED ) * + 35 ELSE - + 51 END * 27 + + ( - + 51 ) + + 61 * + 35 * - + 98
----
-210658

skipif mysql # not compatible
query I rowsort label-3052
SELECT CASE + + 28 WHEN + 90 THEN 60 * - - 65 WHEN + + 15 * - - 3 - - - 3 + CASE + COUNT ( 22 ) WHEN - + 7 - + CASE + 90 WHEN + 61 + - 48 THEN - - 94 * 61 * - 15 END * - - AVG ( DISTINCT - + 20 ) * 71 * + 12 THEN - 32 WHEN CAST ( NULL AS INTEGER ) THEN + + 61 END * - 93 + + 55 THEN - - CAST ( - 44 AS INTEGER ) * + 35 ELSE - + 51 END * 27 + + ( - + 51 ) + + 61 * + 35 * - + 98
----
-210658

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL - COUNT( * ) + - 14 * + NULLIF ( - COUNT( * ), + + 95 * + + 84 * - COUNT( * ) * 89 * + 90 + - 40 + - 14 + + + 34 * - 22 + + NULLIF ( - 25, - 59 ) / 8 )
----
13

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL - COUNT ( * ) + - 14 * + NULLIF ( - COUNT ( * ), + + 95 * + + 84 * - COUNT ( * ) * 89 * + 90 + - 40 + - 14 + + + 34 * - 22 + + NULLIF ( - 25, - 59 ) / 8 )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3054
SELECT - 84 * - + 15 * + 90 + 75 / - CAST( NULL AS SIGNED ) - - 58 * - CAST( NULL AS SIGNED ) * - 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3054
SELECT - 84 * - + 15 * + 90 + 75 / - CAST ( NULL AS INTEGER ) - - 58 * - CAST ( NULL AS INTEGER ) * - 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT COUNT( * ) * - 0 * - - 3 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3055
SELECT COUNT ( * ) * - 0 * - - 3 AS col0
----
0

query II rowsort
SELECT - 30 AS col1, - 61 col0
----
-30
-61

query I rowsort
SELECT 22 + - + 98 + + 64 AS col1
----
-12

query I rowsort
SELECT ALL - 26 - NULLIF ( + ( 70 ), 61 ) AS col1
----
-96

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

skipif mysql # not compatible
query I rowsort label-3059
SELECT COUNT ( * ) + COUNT ( * ) / - ( 22 ) + COUNT ( * )
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3060
SELECT ALL CAST( NULL AS DECIMAL ) - ( 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL CAST ( NULL AS REAL ) - ( 61 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3061
SELECT - COUNT( DISTINCT COALESCE ( - CAST( + 87 AS SIGNED ), + CAST( NULL AS DECIMAL ) ) ) * 89 * + - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-3061
SELECT - COUNT ( DISTINCT COALESCE ( - CAST ( + 87 AS INTEGER ), + CAST ( NULL AS REAL ) ) ) * 89 * + - COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT DISTINCT + SUM( + + 80 ) / + CASE + + 4 WHEN 87 / + + 95 + + - 93 THEN - 5 * + 4 * + + COUNT( * ) + + - 41 END * 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT + SUM ( + + 80 ) / + CASE + + 4 WHEN 87 / + + 95 + + - 93 THEN - 5 * + 4 * + + COUNT ( * ) + + - 41 END * 31 AS col1
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT - COUNT( * ) - - - 0 * + 8 * - - 67 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3066
SELECT - COUNT ( * ) - - - 0 * + 8 * - - 67 AS col2
----
-1

query I rowsort
SELECT + 41 * + 9 + - - 65 AS col2
----
434

query I rowsort
SELECT - - CASE + 69 WHEN - 6 THEN NULL WHEN + 77 THEN NULL WHEN - - 28 / + 93 / - + 29 + - 84 THEN NULL ELSE 12 END
----
12

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3070
SELECT NULLIF ( - 27, + 5 ) + - NULLIF ( + COUNT( * ), COALESCE ( 49, - CASE - + COUNT( * ) WHEN - - CASE 22 WHEN 90 + + 97 * MIN( ALL - COALESCE ( - 25, 97 * - 94, 35 ) ) THEN NULL ELSE - - 99 END THEN 90 - + + 7 ELSE NULL END + + 93, - CAST( NULL AS SIGNED ) ) - - COUNT( * ) ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-3070
SELECT NULLIF ( - 27, + 5 ) + - NULLIF ( + COUNT ( * ), COALESCE ( 49, - CASE - + COUNT ( * ) WHEN - - CASE 22 WHEN 90 + + 97 * MIN ( ALL - COALESCE ( - 25, 97 * - 94, 35 ) ) THEN NULL ELSE - - 99 END THEN 90 - + + 7 ELSE NULL END + + 93, - CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) ) AS col0
----
-28

query I rowsort
SELECT + 68 + 81 AS col0
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3072
SELECT 58 DIV COUNT( * ) - - - 76 col2
----
-18

skipif mysql # not compatible
query I rowsort label-3072
SELECT 58 / COUNT ( * ) - - - 76 col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT DISTINCT + COUNT( * ) * 73 * + - ( - 28 ) + 93 + + 93 - + 99
----
2131

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT + COUNT ( * ) * 73 * + - ( - 28 ) + 93 + + 93 - + 99
----
2131

query I rowsort
SELECT ( - + 90 ) + - - 18 + + + 58 + 83 + - 74 * - 57 * 77
----
324855

query II rowsort
SELECT ALL 77, - 42 col2
----
77
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT 6 + MIN( - 52 )
----
-46

skipif mysql # not compatible
query I rowsort label-3076
SELECT 6 + MIN ( - 52 )
----
-46

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

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL COUNT ( * ) / + 10 * 43
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3078
SELECT 37 DIV + 12
----
3

skipif mysql # not compatible
query I rowsort label-3078
SELECT 37 / + 12
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3079
SELECT ALL - + 99 DIV - 80 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL - + 99 / - 80 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3080
SELECT DISTINCT - 55 col1, MAX( - + CAST( NULL AS SIGNED ) )
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-3080
SELECT DISTINCT - 55 col1, MAX ( - + CAST ( NULL AS INTEGER ) )
----
-55
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3081
SELECT + + 28 DIV - 62 + 68 + - - 71 + 88 AS col2
----
227

skipif mysql # not compatible
query I rowsort label-3081
SELECT + + 28 / - 62 + 68 + - - 71 + 88 AS col2
----
227

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

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

query I rowsort
SELECT ALL 98 * - 0 + ( - 77 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3084
SELECT CAST( NULL AS SIGNED ) * - - 80 AS col1, - MIN( - + 18 ) * - + 55 / 22 + + 48 * + 38 + - - ( - CAST( NULL AS SIGNED ) ) * 90 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3084
SELECT CAST ( NULL AS INTEGER ) * - - 80 AS col1, - MIN ( - + 18 ) * - + 55 / 22 + + 48 * + 38 + - - ( - CAST ( NULL AS INTEGER ) ) * 90 AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3085
SELECT + COUNT( * ) * + - CAST( CASE - MAX( DISTINCT + 12 ) WHEN - 64 + + 75 - + 92 / + 63 - + COUNT( * ) + + - 8 THEN NULL WHEN 9 THEN + COALESCE ( 99, - 74, - - CASE WHEN NULL < - COUNT( * ) THEN - COUNT( DISTINCT CAST( - - CAST( ( 22 ) AS SIGNED ) AS SIGNED ) ) END ) - + - 8 END AS SIGNED ) + + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT + COUNT ( * ) * + - CAST ( CASE - MAX ( DISTINCT + 12 ) WHEN - 64 + + 75 - + 92 / + 63 - + COUNT ( * ) + + - 8 THEN NULL WHEN 9 THEN + COALESCE ( 99, - 74, - - CASE WHEN NULL < - COUNT ( * ) THEN - COUNT ( DISTINCT CAST ( - - CAST ( ( 22 ) AS INTEGER ) AS INTEGER ) ) END ) - + - 8 END AS INTEGER ) + + 33 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT DISTINCT CASE ( - 33 ) WHEN + SUM( + 87 ) - 71 THEN NULL WHEN - + ( - + CASE - 21 WHEN - 20 THEN NULL WHEN 34 * - 97 - 70 THEN NULL ELSE + + 25 + + 0 END ) + 20 THEN NULLIF ( - - 97, 32 * + 97 + ( 18 ) * 73 ) ELSE NULL END * MAX( + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT CASE ( - 33 ) WHEN + SUM ( + 87 ) - 71 THEN NULL WHEN - + ( - + CASE - 21 WHEN - 20 THEN NULL WHEN 34 * - 97 - 70 THEN NULL ELSE + + 25 + + 0 END ) + 20 THEN NULLIF ( - - 97, 32 * + 97 + ( 18 ) * 73 ) ELSE NULL END * MAX ( + 97 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT 62 * COUNT( * ) + 72 AS col2
----
134

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT 62 * COUNT ( * ) + 72 AS col2
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-3088
SELECT ALL 97 * 9 DIV - 96
----
-9

skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL 97 * 9 / - 96
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3089
SELECT CAST( ( 88 ) AS SIGNED ) + - 5 + - + 38
----
45

skipif mysql # not compatible
query I rowsort label-3089
SELECT CAST ( ( 88 ) AS INTEGER ) + - 5 + - + 38
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3090
SELECT ALL - 79 * + 57 + CAST( - 41 AS SIGNED ) - 51 * + 7 AS col1
----
-4901

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL - 79 * + 57 + CAST ( - 41 AS INTEGER ) - 51 * + 7 AS col1
----
-4901

onlyif mysql # aggregate syntax: 
query II rowsort label-3091
SELECT ALL + 71 AS col2, MAX( - 96 )
----
71
-96

skipif mysql # not compatible
query II rowsort label-3091
SELECT ALL + 71 AS col2, MAX ( - 96 )
----
71
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT MIN( 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3092
SELECT MIN ( 9 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3093
SELECT + COUNT( * ) AS col1, 96 + - - 86 AS col1
----
1
182

skipif mysql # not compatible
query II rowsort label-3093
SELECT + COUNT ( * ) AS col1, 96 + - - 86 AS col1
----
1
182

onlyif mysql # DIV for integer division: 
query II rowsort label-3094
SELECT ALL 19 DIV 91 AS col2, + 52
----
0
52

skipif mysql # not compatible
query II rowsort label-3094
SELECT ALL 19 / 91 AS col2, + 52
----
0
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT - 31 + + 47 * COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3095
SELECT - 31 + + 47 * COUNT ( * ) AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3096
SELECT - 49 + - 0 AS col2, ( + CAST( - ( - - CAST( NULL AS SIGNED ) ) AS SIGNED ) )
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-3096
SELECT - 49 + - 0 AS col2, ( + CAST ( - ( - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) )
----
-49
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - 59, 16 - - + 54 ) * - 38
----
-2242

onlyif mysql # DIV for integer division: 
query I rowsort label-3098
SELECT DISTINCT 83 DIV 71
----
1

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT 83 / 71
----
1

query I rowsort
SELECT ALL - 94 - + 8 AS col0
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-3100
SELECT - 13 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-3100
SELECT - 13 / + 70
----
0

query I rowsort
SELECT DISTINCT 18 * 6
----
108

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

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

query II rowsort
SELECT - - 69 + + 36 - - 19 * + + 32 * 27 + 90, + 5 AS col2
----
16611
5

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3105
SELECT 66 AS col0, - NULLIF ( - 38, CAST( - - COUNT( * ) AS SIGNED ) * - 42 )
----
66
38

skipif mysql # not compatible
query II rowsort label-3105
SELECT 66 AS col0, - NULLIF ( - 38, CAST ( - - COUNT ( * ) AS INTEGER ) * - 42 )
----
66
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3106
SELECT - + 95 + 26 + - 81 + + CAST( + 15 AS SIGNED ) AS col2
----
-135

skipif mysql # not compatible
query I rowsort label-3106
SELECT - + 95 + 26 + - 81 + + CAST ( + 15 AS INTEGER ) AS col2
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT NULLIF ( - + 42, - COUNT( * ) ) col0
----
-42

skipif mysql # not compatible
query I rowsort label-3107
SELECT NULLIF ( - + 42, - COUNT ( * ) ) col0
----
-42

query I rowsort
SELECT - 9 * - 12 * - 44 * + 82 AS col1
----
-389664

query II rowsort
SELECT DISTINCT - 24 AS col2, + ( + + 45 ) * + + 24 AS col0
----
-24
1080

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3110
SELECT 10 AS col0, 47 DIV + COUNT( * )
----
10
47

skipif mysql # not compatible
query II rowsort label-3110
SELECT 10 AS col0, 47 / + COUNT ( * )
----
10
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3111
SELECT ALL 94 col1, NULLIF ( - + 30, - - COUNT( * ) )
----
94
-30

skipif mysql # not compatible
query II rowsort label-3111
SELECT ALL 94 col1, NULLIF ( - + 30, - - COUNT ( * ) )
----
94
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-3112
SELECT DISTINCT - - 38 + + COUNT( * ) * - + 43 * - - COUNT( * ) AS col1, + 4 * - 79 AS col0
----
-5
-316

skipif mysql # not compatible
query II rowsort label-3112
SELECT DISTINCT - - 38 + + COUNT ( * ) * - + 43 * - - COUNT ( * ) AS col1, + 4 * - 79 AS col0
----
-5
-316

query I rowsort
SELECT DISTINCT - 90 * + 85 AS col1
----
-7650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3114
SELECT - + 57 DIV + + COALESCE ( - - ( - COUNT( * ) ), - COALESCE ( - COUNT( * ), + NULLIF ( + - 3, + + COUNT( * ) ), - + MAX( DISTINCT 76 ) ) * + 84, 70, + COUNT( 39 ) ) + 72 + - - 42 * - COUNT( * ) - + - 88 AS col0
----
175

skipif mysql # not compatible
query I rowsort label-3114
SELECT - + 57 / + + COALESCE ( - - ( - COUNT ( * ) ), - COALESCE ( - COUNT ( * ), + NULLIF ( + - 3, + + COUNT ( * ) ), - + MAX ( DISTINCT 76 ) ) * + 84, 70, + COUNT ( 39 ) ) + 72 + - - 42 * - COUNT ( * ) - + - 88 AS col0
----
175

query I rowsort
SELECT - + 99 + + + 93 AS col0
----
-6

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

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

query II rowsort
SELECT - + 85 col2, 1 * - 3 + 31 col2
----
-85
28

query I rowsort
SELECT + 25 + + 26 * - - 76 AS col1
----
2001

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

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL - + 96 + - COUNT ( * ) + - 46 AS col1
----
-143

query I rowsort
SELECT DISTINCT - NULLIF ( - - 63, + 29 + - 0 - 22 * + + 93 - - 69 ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT ALL - 96 + COALESCE ( - 24, - + NULLIF ( - MIN( ALL 96 ), + - 56 * - + 26 ) ) AS col2
----
-120

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL - 96 + COALESCE ( - 24, - + NULLIF ( - MIN ( ALL 96 ), + - 56 * - + 26 ) ) AS col2
----
-120

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3123
SELECT DISTINCT 58 DIV + 37 + - - ( - - 30 ) * + MIN( - 82 ) + + 74
----
-2385

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT 58 / + 37 + - - ( - - 30 ) * + MIN ( - 82 ) + + 74
----
-2385

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3124
SELECT DISTINCT - 35 DIV 40 * - 20 + - NULLIF ( + + COUNT( - + 55 ), - 90 + ( + 68 ) * COUNT( * ) ), 14 AS col0
----
-1
14

skipif mysql # not compatible
query II rowsort label-3124
SELECT DISTINCT - 35 / 40 * - 20 + - NULLIF ( + + COUNT ( - + 55 ), - 90 + ( + 68 ) * COUNT ( * ) ), 14 AS col0
----
-1
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT ALL + 58 * + CASE + + 65 WHEN - + MIN( DISTINCT + 96 ) THEN NULL WHEN + 6 THEN NULL WHEN - 17 THEN 47 ELSE + - ( - 16 ) END - + 45
----
883

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL + 58 * + CASE + + 65 WHEN - + MIN ( DISTINCT + 96 ) THEN NULL WHEN + 6 THEN NULL WHEN - 17 THEN 47 ELSE + - ( - 16 ) END - + 45
----
883

query I rowsort
SELECT ( 36 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-3127
SELECT + CASE - 77 WHEN 88 + - + COUNT( * ) * 61 THEN - 7 / 44 END AS col1, 31
----
NULL
31

skipif mysql # not compatible
query II rowsort label-3127
SELECT + CASE - 77 WHEN 88 + - + COUNT ( * ) * 61 THEN - 7 / 44 END AS col1, 31
----
NULL
31

query II rowsort
SELECT ALL 13 * 82 AS col0, - 94
----
1066
-94

query I rowsort
SELECT DISTINCT 42 * + - 56 AS col0
----
-2352

query I rowsort
SELECT + 72 * + + 25 * - 65 * + 70
----
-8190000

query I rowsort
SELECT + 59 + - + 21
----
38

query I rowsort
SELECT + 23 + + ( + ( - - 23 ) )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3133
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) / - NULLIF ( - CAST( + MAX( DISTINCT + 17 ) AS SIGNED ), + + 69 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3133
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) / - NULLIF ( - CAST ( + MAX ( DISTINCT + 17 ) AS INTEGER ), + + 69 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT - - 28 * COUNT( * ) + - - 43 * 55 * 8 + - 33
----
18915

skipif mysql # not compatible
query I rowsort label-3134
SELECT - - 28 * COUNT ( * ) + - - 43 * 55 * 8 + - 33
----
18915

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT ALL + MAX( 33 ) * - - 76 + + - 1
----
2507

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL + MAX ( 33 ) * - - 76 + + - 1
----
2507

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3136
SELECT + CAST( + COUNT( * ) AS SIGNED ) + + 72 col2
----
73

skipif mysql # not compatible
query I rowsort label-3136
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + + 72 col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3137
SELECT ALL + CAST( + 79 AS SIGNED ) * - 4 * - + 14 * 82 * 98
----
35551264

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL + CAST ( + 79 AS INTEGER ) * - 4 * - + 14 * 82 * 98
----
35551264

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT + - 47 DIV - 63 + - 97 col2
----
-97

skipif mysql # not compatible
query I rowsort label-3138
SELECT + - 47 / - 63 + - 97 col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT ALL - - 36 * - CASE - 68 WHEN 53 / 65 THEN - NULLIF ( + COUNT( * ), + 76 ) * 95 * - 52 + - 79 WHEN + - 98 THEN - 7 WHEN + 86 THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL - - 36 * - CASE - 68 WHEN 53 / 65 THEN - NULLIF ( + COUNT ( * ), + 76 ) * 95 * - 52 + - 79 WHEN + - 98 THEN - 7 WHEN + 86 THEN NULL ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT ALL + 8 + COALESCE ( + 79, - - COUNT( * ) ) - 72
----
15

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL + 8 + COALESCE ( + 79, - - COUNT ( * ) ) - 72
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT + + 28 + 20 * - COUNT( * ) col1
----
8

skipif mysql # not compatible
query I rowsort label-3141
SELECT + + 28 + 20 * - COUNT ( * ) col1
----
8

query I rowsort
SELECT - + 22 + - 82
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT ALL - - 44 * + 73 * - COUNT( * ) + + - 2
----
-3214

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL - - 44 * + 73 * - COUNT ( * ) + + - 2
----
-3214

query I rowsort
SELECT - 14 + 53
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-3145
SELECT DISTINCT + COUNT( DISTINCT - + 87 ) AS col0, 36
----
1
36

skipif mysql # not compatible
query II rowsort label-3145
SELECT DISTINCT + COUNT ( DISTINCT - + 87 ) AS col0, 36
----
1
36

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

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

query I rowsort
SELECT ALL - - ( + 86 ) + - 83 * + 19 + ( + ( - ( - 57 ) ) )
----
-1434

onlyif mysql # aggregate syntax: 
query II rowsort label-3148
SELECT - SUM( DISTINCT 46 ) + + CASE - 89 WHEN - 37 THEN - ( + 78 ) END + - 4 AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3148
SELECT - SUM ( DISTINCT 46 ) + + CASE - 89 WHEN - 37 THEN - ( + 78 ) END + - 4 AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT - COUNT( DISTINCT - + 51 ) + - ( COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-3149
SELECT - COUNT ( DISTINCT - + 51 ) + - ( COUNT ( * ) )
----
-2

query II rowsort
SELECT DISTINCT NULLIF ( - - 77, + 73 * 70 ) AS col0, 89 - + 69 col1
----
77
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3151
SELECT ALL - CAST( NULL AS SIGNED ) * - CASE - 56 WHEN 1 THEN - + NULLIF ( + - 58, + 40 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL - CAST ( NULL AS INTEGER ) * - CASE - 56 WHEN 1 THEN - + NULLIF ( + - 58, + 40 ) END col0
----
NULL

query I rowsort
SELECT 97 * - - 51 * 87 AS col2
----
430389

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3153
SELECT + 52, + COUNT( * ) + 32 DIV - 95 * - 4 + + 32 - + - 21 * - 25 * + + 96 AS col1
----
52
-50367

skipif mysql # not compatible
query II rowsort label-3153
SELECT + 52, + COUNT ( * ) + 32 / - 95 * - 4 + + 32 - + - 21 * - 25 * + + 96 AS col1
----
52
-50367

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3154
SELECT DISTINCT + ( 0 ) * - - 7 * + ( + COUNT( * ) ) DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT + ( 0 ) * - - 7 * + ( + COUNT ( * ) ) / - 62
----
0

query II rowsort
SELECT ALL - 77, 87 * + - 60 AS col2
----
-77
-5220

query I rowsort
SELECT 30 * - 41 + ( - 65 ) AS col2
----
-1295

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT DISTINCT ( + COUNT( * ) ) - 22 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT ( + COUNT ( * ) ) - 22 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3158
SELECT ALL - 96 AS col0, COUNT( * ) * + 24 * + + 34 AS col0
----
-96
816

skipif mysql # not compatible
query II rowsort label-3158
SELECT ALL - 96 AS col0, COUNT ( * ) * + 24 * + + 34 AS col0
----
-96
816

onlyif mysql # DIV for integer division: 
query II rowsort label-3159
SELECT ALL - 67, + 9 DIV - 44 - + + 81 * - 54 AS col2
----
-67
4374

skipif mysql # not compatible
query II rowsort label-3159
SELECT ALL - 67, + 9 / - 44 - + + 81 * - 54 AS col2
----
-67
4374

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT ALL 66 DIV + 61 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL 66 / + 61 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3161
SELECT COUNT( * ) DIV - CAST( + - 87 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3161
SELECT COUNT ( * ) / - CAST ( + - 87 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT COUNT( * ) + - 87 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-3162
SELECT COUNT ( * ) + - 87 AS col0
----
-86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3163
SELECT DISTINCT + CAST( + 84 AS SIGNED ) DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-3163
SELECT DISTINCT + CAST ( + 84 AS INTEGER ) / 86
----
0

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

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL - SUM ( - 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL + COUNT( + ( + 29 ) ) + + 84 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL + COUNT ( + ( + 29 ) ) + + 84 AS col0
----
85

query II rowsort
SELECT 65 AS col2, + 82
----
65
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3167
SELECT ALL - CAST( CASE 8 WHEN - 17 THEN CASE - 80 WHEN + 92 THEN + 86 ELSE NULL END * - - 79 / 51 + + + ( - - 61 ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL - CAST ( CASE 8 WHEN - 17 THEN CASE - 80 WHEN + 92 THEN + 86 ELSE NULL END * - - 79 / 51 + + + ( - - 61 ) END AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 69 + + 5
----
74

query I rowsort
SELECT ( 45 ) * - 30
----
-1350

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

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL + 12 + COUNT ( * ) AS col0
----
13

query I rowsort
SELECT DISTINCT 97 + + 97 * 1 AS col1
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT ALL 1 + - MIN( DISTINCT - 23 ) col1
----
24

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL 1 + - MIN ( DISTINCT - 23 ) col1
----
24

query I rowsort
SELECT 92 * 37 AS col2
----
3404

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

query II rowsort
SELECT ALL + 56 col1, + ( - 54 )
----
56
-54

query I rowsort
SELECT 15 * + + ( + 78 ) * + 44
----
51480

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT DISTINCT - MAX( - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT - MAX ( - 16 )
----
16

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

query II rowsort
SELECT - 25 col0, - 0 AS col0
----
-25
0

query I rowsort
SELECT ALL + 36 - - + 27 AS col0
----
63

query I rowsort
SELECT ALL - NULLIF ( 83, - 55 ) - 69 AS col2
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL 68 * - NULLIF ( + COUNT( * ), - 43 / + NULLIF ( - + COUNT( * ), + 15 ) + COUNT( * ) - - - 6 )
----
-68

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL 68 * - NULLIF ( + COUNT ( * ), - 43 / + NULLIF ( - + COUNT ( * ), + 15 ) + COUNT ( * ) - - - 6 )
----
-68

query I rowsort
SELECT 32 * + 17
----
544

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT DISTINCT - MAX( - 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT - MAX ( - 82 ) AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3185
SELECT ALL + NULLIF ( - ( - 63 ), 26 + + CAST( NULL AS SIGNED ) ) * COALESCE ( + - 99, + - 31 ) - - COALESCE ( - - COALESCE ( + NULLIF ( 7, + 24 - + 65 + - 16 + - 49 ), 43 ), ( ( - CAST( 13 AS SIGNED ) ) ) ) - + 18 DIV + - 60
----
-6230

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL + NULLIF ( - ( - 63 ), 26 + + CAST ( NULL AS INTEGER ) ) * COALESCE ( + - 99, + - 31 ) - - COALESCE ( - - COALESCE ( + NULLIF ( 7, + 24 - + 65 + - 16 + - 49 ), 43 ), ( ( - CAST ( 13 AS INTEGER ) ) ) ) - + 18 / + - 60
----
-6230

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT ( + 49 ) * - + ( + COUNT( * ) ) - + 90 AS col0
----
-139

skipif mysql # not compatible
query I rowsort label-3186
SELECT ( + 49 ) * - + ( + COUNT ( * ) ) - + 90 AS col0
----
-139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT 81 * 70 * + 63 - + + 28 + ( CAST( - + 13 AS SIGNED ) ) + + 77 col2
----
357246

skipif mysql # not compatible
query I rowsort label-3187
SELECT 81 * 70 * + 63 - + + 28 + ( CAST ( - + 13 AS INTEGER ) ) + + 77 col2
----
357246

onlyif mysql # aggregate syntax: 
query II rowsort label-3188
SELECT 99 * + COUNT( * ) - - - NULLIF ( + 76, 16 ) AS col2, + 61 * + - 47 AS col0
----
23
-2867

skipif mysql # not compatible
query II rowsort label-3188
SELECT 99 * + COUNT ( * ) - - - NULLIF ( + 76, 16 ) AS col2, + 61 * + - 47 AS col0
----
23
-2867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3189
SELECT AVG ( - - CAST( NULL AS SIGNED ) ) / - - 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT AVG ( - - CAST ( NULL AS INTEGER ) ) / - - 55 AS col0
----
NULL

query I rowsort
SELECT ALL + 72 + + 20
----
92

query I rowsort
SELECT 47 * 56 * - 56 AS col1
----
-147392

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT ALL - COALESCE ( - COUNT( * ), - COUNT( * ), - - 49 * - ( COALESCE ( + - ( - 29 ), - 49, - - 0 * + 81 + + COUNT( * ) + - 27 * + 37 ) ) + COALESCE ( 55, COUNT( * ) + 57 ) * + - 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL - COALESCE ( - COUNT ( * ), - COUNT ( * ), - - 49 * - ( COALESCE ( + - ( - 29 ), - 49, - - 0 * + 81 + + COUNT ( * ) + - 27 * + 37 ) ) + COALESCE ( 55, COUNT ( * ) + 57 ) * + - 91 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3193
SELECT DISTINCT + + ( + 19 ) + - + 63 DIV - 41
----
20

skipif mysql # not compatible
query I rowsort label-3193
SELECT DISTINCT + + ( + 19 ) + - + 63 / - 41
----
20

query I rowsort
SELECT ALL + - 65 + 24 col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT DISTINCT - - 2 + + COUNT( * ) - + 21 + - - 77 + - 24 + 92 * - 58 * - 91 col2
----
485611

skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT - - 2 + + COUNT ( * ) - + 21 + - - 77 + - 24 + 92 * - 58 * - 91 col2
----
485611

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

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 52
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3197
SELECT ALL 85 + 87 * - MAX( DISTINCT 24 ) AS col0, - 55 * 34 * + 31 + COUNT( + 20 ) - - 30 + - 18 * + 93
----
-2003
-59613

skipif mysql # not compatible
query II rowsort label-3197
SELECT ALL 85 + 87 * - MAX ( DISTINCT 24 ) AS col0, - 55 * 34 * + 31 + COUNT ( + 20 ) - - 30 + - 18 * + 93
----
-2003
-59613

onlyif mysql # DIV for integer division: 
query I rowsort label-3198
SELECT ALL - - 90 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL - - 90 / 97
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3200
SELECT 50 * - COUNT( * ) AS col1, + 93 + 84 + NULLIF ( + + CASE 76 WHEN - 70 * - - 88 THEN 73 END, 44 ) AS col0
----
-50
NULL

skipif mysql # not compatible
query II rowsort label-3200
SELECT 50 * - COUNT ( * ) AS col1, + 93 + 84 + NULLIF ( + + CASE 76 WHEN - 70 * - - 88 THEN 73 END, 44 ) AS col0
----
-50
NULL

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

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

query I rowsort
SELECT + 81 * - 36 + - 68 * - 15 + - 25 AS col0
----
-1921

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3203
SELECT + CAST( 45 AS SIGNED ) + + 49
----
94

skipif mysql # not compatible
query I rowsort label-3203
SELECT + CAST ( 45 AS INTEGER ) + + 49
----
94

query I rowsort
SELECT DISTINCT + 6 * - 82 + + 34 AS col2
----
-458

query I rowsort
SELECT + 39 + NULLIF ( 43, 79 * - 71 ) - + 95 + 40 + - 99 * + - 81 + - + 57
----
7989

query II rowsort
SELECT DISTINCT 41 AS col0, - 62 + + - 22
----
41
-84

query II rowsort
SELECT ALL 92 AS col2, 29 col1
----
92
29

onlyif mysql # aggregate syntax: 
query II rowsort label-3208
SELECT + 26 / + CASE - 74 WHEN 93 / - MIN( + 5 ) THEN NULL WHEN + + COUNT( * ) THEN + 27 END, COUNT( * ) + - 25 * - 21 - - - 52 col1
----
NULL
474

skipif mysql # not compatible
query II rowsort label-3208
SELECT + 26 / + CASE - 74 WHEN 93 / - MIN ( + 5 ) THEN NULL WHEN + + COUNT ( * ) THEN + 27 END, COUNT ( * ) + - 25 * - 21 - - - 52 col1
----
NULL
474

query I rowsort
SELECT + 3 + + + 84
----
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3210
SELECT ALL 49 AS col0, 14 * - + COUNT( * ) + + - 13 * - CAST( NULL AS DECIMAL ) AS col0
----
49
NULL

skipif mysql # not compatible
query II rowsort label-3210
SELECT ALL 49 AS col0, 14 * - + COUNT ( * ) + + - 13 * - CAST ( NULL AS REAL ) AS col0
----
49
NULL

query II rowsort
SELECT DISTINCT 51 AS col1, 11 AS col0
----
51
11

query I rowsort
SELECT ALL 90 * - 14 AS col0
----
-1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3213
SELECT + 96 / - CAST( NULL AS SIGNED ) * CAST( - COUNT( * ) AS SIGNED ) * + 31 + - - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3213
SELECT + 96 / - CAST ( NULL AS INTEGER ) * CAST ( - COUNT ( * ) AS INTEGER ) * + 31 + - - 41 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 8 * + + 53
----
424

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT DISTINCT 20 * + + NULLIF ( - 76, COUNT( * ) ) AS col1
----
-1520

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT 20 * + + NULLIF ( - 76, COUNT ( * ) ) AS col1
----
-1520

query I rowsort
SELECT - 66 * - 92 AS col1
----
6072

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT - COUNT( * ) + + CASE - + 1 WHEN + 47 + + COUNT( * ) THEN NULL ELSE + 66 END AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3217
SELECT - COUNT ( * ) + + CASE - + 1 WHEN + 47 + + COUNT ( * ) THEN NULL ELSE + 66 END AS col0
----
65

query I rowsort
SELECT ( - 9 ) col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT ALL 1 * 69 + SUM( DISTINCT - - ( + 69 ) ) col2
----
138

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL 1 * 69 + SUM ( DISTINCT - - ( + 69 ) ) col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT + 54 + + SUM( + 5 )
----
59

skipif mysql # not compatible
query I rowsort label-3220
SELECT + 54 + + SUM ( + 5 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3221
SELECT + NULLIF ( - - 1, CASE - - 4 WHEN - COUNT( + - 96 ) THEN + - CAST( NULL AS SIGNED ) * - 92 * - - 42 * - 12 ELSE NULL END ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3221
SELECT + NULLIF ( - - 1, CASE - - 4 WHEN - COUNT ( + - 96 ) THEN + - CAST ( NULL AS INTEGER ) * - 92 * - - 42 * - 12 ELSE NULL END ) AS col2
----
1

query I rowsort
SELECT + ( 79 ) AS col2
----
79

query I rowsort
SELECT ALL + NULLIF ( - + 89, - 42 * + 90 * - + 40 ) AS col0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-3224
SELECT + 25 DIV + 81 + - 8
----
-8

skipif mysql # not compatible
query I rowsort label-3224
SELECT + 25 / + 81 + - 8
----
-8

query I rowsort
SELECT - 83 + - 33 AS col1
----
-116

query I rowsort
SELECT ALL 56 * 65 + + 15 AS col2
----
3655

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT - COUNT( * ) + 79 * - 76
----
-6005

skipif mysql # not compatible
query I rowsort label-3227
SELECT - COUNT ( * ) + 79 * - 76
----
-6005

onlyif mysql # DIV for integer division: 
query I rowsort label-3228
SELECT COALESCE ( - 44, - 4 DIV - 75 + 74 )
----
-44

skipif mysql # not compatible
query I rowsort label-3228
SELECT COALESCE ( - 44, - 4 / - 75 + 74 )
----
-44

query I rowsort
SELECT + CASE ( 12 ) WHEN 72 THEN + 48 END * + 88
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3230
SELECT - CAST( - NULLIF ( + 61, ( 29 ) + - 40 ) AS SIGNED ) + - 80 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-3230
SELECT - CAST ( - NULLIF ( + 61, ( 29 ) + - 40 ) AS INTEGER ) + - 80 AS col2
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT ALL + 69 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL + 69 / + 79
----
0

query I rowsort
SELECT CASE - 73 WHEN - 87 + 23 THEN NULL WHEN - 40 + 10 THEN 54 END
----
NULL

query I rowsort
SELECT 78 * + 35 + + 0 AS col0
----
2730

query I rowsort
SELECT - 40 * 6
----
-240

query I rowsort
SELECT - 46 * - 75
----
3450

query I rowsort
SELECT - 5 + CASE 81 + + 39 WHEN + NULLIF ( 34, + 18 ) * - 78 THEN 60 / 1 WHEN 54 + - 80 THEN NULL END col1
----
NULL

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

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

query I rowsort
SELECT - 10 * + 42 AS col0
----
-420

onlyif mysql # DIV for integer division: 
query I rowsort label-3239
SELECT DISTINCT - 97 DIV + 47
----
-2

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT - 97 / + 47
----
-2

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

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

query I rowsort
SELECT - 74 * + 8 AS col2
----
-592

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

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

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

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

query I rowsort
SELECT - 27 - - 61
----
34

query I rowsort
SELECT - NULLIF ( 56, 95 ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT - 20 * + MIN( + 85 * + 52 ) AS col2
----
-88400

skipif mysql # not compatible
query I rowsort label-3246
SELECT - 20 * + MIN ( + 85 * + 52 ) AS col2
----
-88400

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT ALL ( - MIN( ALL ( + 76 ) ) )
----
-76

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL ( - MIN ( ALL ( + 76 ) ) )
----
-76

query I rowsort
SELECT DISTINCT 8 + 70
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3249
SELECT DISTINCT CAST( + 98 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT CAST ( + 98 AS INTEGER )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT ALL - ( MAX( DISTINCT + 77 ) ) * - CASE 76 + + 68 / + 34 WHEN - 27 + - 29 * 46 THEN - 42 / 59 WHEN - COALESCE ( NULLIF ( 62, + 14 ), + 96, - 27 ) / + 73 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL - ( MAX ( DISTINCT + 77 ) ) * - CASE 76 + + 68 / + 34 WHEN - 27 + - 29 * 46 THEN - 42 / 59 WHEN - COALESCE ( NULLIF ( 62, + 14 ), + 96, - 27 ) / + 73 THEN NULL ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT - 43 + + 94 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT + COUNT( * ) - - 65 * + 24
----
1561

skipif mysql # not compatible
query I rowsort label-3253
SELECT + COUNT ( * ) - - 65 * + 24
----
1561

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT + SUM( 44 ) + + 96 AS col0
----
140

skipif mysql # not compatible
query I rowsort label-3255
SELECT + SUM ( 44 ) + + 96 AS col0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT DISTINCT ( - NULLIF ( 79, 16 ) ) + + COUNT( * ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT ( - NULLIF ( 79, 16 ) ) + + COUNT ( * ) col0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT + 43 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-3257
SELECT + 43 / 92
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3258
SELECT ALL 7 + CASE - 95 WHEN - 28 * ( CAST( 90 AS SIGNED ) * 26 ) THEN NULL ELSE + 8 END
----
15

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL 7 + CASE - 95 WHEN - 28 * ( CAST ( 90 AS INTEGER ) * 26 ) THEN NULL ELSE + 8 END
----
15

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

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

query I rowsort
SELECT DISTINCT - ( 68 ) + + 64
----
-4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3262
SELECT + 7 DIV 72 col0
----
0

skipif mysql # not compatible
query I rowsort label-3262
SELECT + 7 / 72 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3263
SELECT ALL - NULLIF ( + COUNT( - 73 ), - 5 * - NULLIF ( 8, 67 + 59 ) ) DIV 53 + 66
----
66

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL - NULLIF ( + COUNT ( - 73 ), - 5 * - NULLIF ( 8, 67 + 59 ) ) / 53 + 66
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3264
SELECT ALL + 30 DIV 10 + + 37
----
40

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL + 30 / 10 + + 37
----
40

query I rowsort
SELECT DISTINCT 36 * 90
----
3240

query I rowsort
SELECT ALL + 36 * 57
----
2052

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT + COALESCE ( 32, COUNT( * ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3267
SELECT + COALESCE ( 32, COUNT ( * ) ) AS col2
----
32

query I rowsort
SELECT ALL - 25 * - 60 col1
----
1500

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

skipif mysql # not compatible
query I rowsort label-3269
SELECT + COUNT ( * ) / 84
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3270
SELECT ALL - SUM( ALL + 16 ) / + MIN( 57 + 32 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL - SUM ( ALL + 16 ) / + MIN ( 57 + 32 ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT + 81 * - ( + 48 + COUNT( * ) * 16 ) AS col2
----
-5184

skipif mysql # not compatible
query I rowsort label-3271
SELECT + 81 * - ( + 48 + COUNT ( * ) * 16 ) AS col2
----
-5184

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3272
SELECT DISTINCT + CASE - 34 WHEN - COALESCE ( + 58, 86, + 82 ) THEN CAST( CAST( + 91 AS SIGNED ) AS SIGNED ) * + CAST( NULL AS SIGNED ) ELSE 93 DIV ( + 96 * - NULLIF ( - ( 43 ), - 80 ) ) - - 32 * 61 END AS col0
----
1952

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT + CASE - 34 WHEN - COALESCE ( + 58, 86, + 82 ) THEN CAST ( CAST ( + 91 AS INTEGER ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) ELSE 93 / ( + 96 * - NULLIF ( - ( 43 ), - 80 ) ) - - 32 * 61 END AS col0
----
1952

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT ALL - COALESCE ( - SUM( ALL NULLIF ( - ( 65 ), 25 * 46 + - 54 ) ), + 91, - 12 )
----
-65

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL - COALESCE ( - SUM ( ALL NULLIF ( - ( 65 ), 25 * 46 + - 54 ) ), + 91, - 12 )
----
-65

query I rowsort
SELECT ALL - 18 * 15 AS col0
----
-270

query I rowsort
SELECT + 40 * 35 col2
----
1400

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT + SUM( - 7 ) + - AVG ( - 69 ) / + CASE + COUNT( ALL + 21 ) WHEN 19 / - 93 THEN NULL WHEN + 97 + - 68 THEN 17 * + 16 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT + SUM ( - 7 ) + - AVG ( - 69 ) / + CASE + COUNT ( ALL + 21 ) WHEN 19 / - 93 THEN NULL WHEN + 97 + - 68 THEN 17 * + 16 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - + 18 * 97 AS col2
----
-1746

onlyif mysql # DIV for integer division: 
query I rowsort label-3280
SELECT - 6 DIV - 25
----
0

skipif mysql # not compatible
query I rowsort label-3280
SELECT - 6 / - 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT - - 59 * 15 + - COUNT( * )
----
884

skipif mysql # not compatible
query I rowsort label-3281
SELECT - - 59 * 15 + - COUNT ( * )
----
884

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

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL 94 * COUNT ( * ) AS col2
----
94

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

query I rowsort
SELECT 22 * 80 AS col2
----
1760

onlyif mysql # DIV for integer division: 
query I rowsort label-3285
SELECT 26 + - 86 DIV - 76 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3285
SELECT 26 + - 86 / - 76 AS col1
----
27

query I rowsort
SELECT 35 + + 69 AS col0
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-3287
SELECT ALL - 49 + ( - 65 ) DIV + 73
----
-49

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL - 49 + ( - 65 ) / + 73
----
-49

query I rowsort
SELECT 57 * - 55
----
-3135

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT 70 + + 67 + + COUNT( * ) AS col2
----
138

skipif mysql # not compatible
query I rowsort label-3290
SELECT 70 + + 67 + + COUNT ( * ) AS col2
----
138

query I rowsort
SELECT ALL - 86 + - 28
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT ALL - 77 * + 11 * + COUNT( * ) AS col1
----
-847

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL - 77 * + 11 * + COUNT ( * ) AS col1
----
-847

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT DISTINCT - COUNT( * ) + NULLIF ( + 38, - ( 48 ) + 34 )
----
37

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT - COUNT ( * ) + NULLIF ( + 38, - ( 48 ) + 34 )
----
37

query I rowsort
SELECT DISTINCT 60 * - + 15
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT 60 * - ( - COUNT( * ) ) * 4 AS col0
----
240

skipif mysql # not compatible
query I rowsort label-3295
SELECT 60 * - ( - COUNT ( * ) ) * 4 AS col0
----
240

query I rowsort
SELECT ALL 95 + 95
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT ALL COUNT( ALL - 19 ) + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL COUNT ( ALL - 19 ) + + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT CASE + 49 WHEN + 8 THEN + 93 END - ( COUNT( - 43 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT CASE + 49 WHEN + 8 THEN + 93 END - ( COUNT ( - 43 ) ) AS col1
----
NULL

query I rowsort
SELECT + 12 * + NULLIF ( 89, + 36 ) AS col1
----
1068

query I rowsort
SELECT ALL - - CASE 21 WHEN - 15 THEN - 20 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT 43 + - SUM( 24 ) * 20
----
-437

skipif mysql # not compatible
query I rowsort label-3301
SELECT 43 + - SUM ( 24 ) * 20
----
-437

query I rowsort
SELECT - 79 * 61 - 51
----
-4870

onlyif mysql # DIV for integer division: 
query I rowsort label-3303
SELECT ALL + 13 DIV + - 15 * ( 61 ) - 8
----
-8

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL + 13 / + - 15 * ( 61 ) - 8
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT + 62 * 80 + 37 + COUNT( * )
----
4998

skipif mysql # not compatible
query I rowsort label-3304
SELECT + 62 * 80 + 37 + COUNT ( * )
----
4998

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3305
SELECT ALL + CAST( + - 86 AS SIGNED ) DIV - 46
----
1

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL + CAST ( + - 86 AS INTEGER ) / - 46
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT + COALESCE ( + - 53, 52 * ( 66 ) ) * MIN( DISTINCT + 12 * 33 ) AS col0
----
-20988

skipif mysql # not compatible
query I rowsort label-3306
SELECT + COALESCE ( + - 53, 52 * ( 66 ) ) * MIN ( DISTINCT + 12 * 33 ) AS col0
----
-20988

query I rowsort
SELECT ALL ( + + 16 ) * - 62
----
-992

query I rowsort
SELECT 12 + - ( NULLIF ( 88, 64 ) ) + 10 AS col0
----
-66

query I rowsort
SELECT + - 91 col0
----
-91

query I rowsort
SELECT - 95 * 53 AS col0
----
-5035

query I rowsort
SELECT - 64 + - 10 + 0 * 93
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT + COUNT( ALL + 85 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3312
SELECT + COUNT ( ALL + 85 ) AS col2
----
1

query I rowsort
SELECT ALL - 36 + - - 16 + - 92 * + 58 AS col1
----
-5356

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT ALL + CASE - CASE - 50 WHEN + 99 THEN NULL WHEN - SUM( 75 ) / COUNT( * ) + 27 THEN 70 + 1 END WHEN - 65 THEN NULL WHEN 61 THEN + 38 END + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL + CASE - CASE - 50 WHEN + 99 THEN NULL WHEN - SUM ( 75 ) / COUNT ( * ) + 27 THEN 70 + 1 END WHEN - 65 THEN NULL WHEN 61 THEN + 38 END + 8
----
NULL

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

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

query II rowsort
SELECT DISTINCT - 64, + 18 * + + 9 AS col0
----
-64
162

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

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT 3 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT ALL + 17 + + - COUNT( DISTINCT + 48 )
----
16

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL + 17 + + - COUNT ( DISTINCT + 48 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3319
SELECT ALL COUNT( * ) + + ( + CAST( AVG ( - 81 ) AS SIGNED ) ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL COUNT ( * ) + + ( + CAST ( AVG ( - 81 ) AS INTEGER ) ) AS col2
----
-80

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

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

query I rowsort
SELECT 51 * - 34 * + 36 AS col2
----
-62424

query I rowsort
SELECT DISTINCT CASE 8 WHEN - 91 THEN 52 WHEN 88 * - 43 THEN 46 ELSE NULL END * 30
----
NULL

query I rowsort
SELECT 70 * - 13
----
-910

query I rowsort
SELECT NULLIF ( - 93, + 23 ) - - ( + 3 )
----
-90

query I rowsort
SELECT ALL + 45 * + + 37 AS col2
----
1665

query I rowsort
SELECT ALL - 90 + - + 76 * + + 87 + 99 * 40
----
-2742

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT DISTINCT MAX( ALL 40 ) col1
----
40

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT MAX ( ALL 40 ) col1
----
40

query II rowsort
SELECT DISTINCT 17 AS col1, 26 * 60 + 47
----
17
1607

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3329
SELECT ALL - 55 - - + COUNT( * ) + + COALESCE ( - CAST( - 28 AS SIGNED ), ( 48 ), 4, - 1 * - 38 ) + NULLIF ( ( 27 ), - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL - 55 - - + COUNT ( * ) + + COALESCE ( - CAST ( - 28 AS INTEGER ), ( 48 ), 4, - 1 * - 38 ) + NULLIF ( ( 27 ), - COUNT ( * ) )
----
1

query II rowsort
SELECT 89, 16 col0
----
89
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ( - COUNT( ALL 79 ) ) + 63 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-3331
SELECT ( - COUNT ( ALL 79 ) ) + 63 AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3332
SELECT CAST( 55 AS SIGNED ) * + - 5 AS col2
----
-275

skipif mysql # not compatible
query I rowsort label-3332
SELECT CAST ( 55 AS INTEGER ) * + - 5 AS col2
----
-275

query I rowsort
SELECT 92 + + 86
----
178

query I rowsort
SELECT 95 * 67 col0
----
6365

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3335
SELECT + 63 DIV - - CAST( 13 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-3335
SELECT + 63 / - - CAST ( 13 AS INTEGER )
----
4

query I rowsort
SELECT DISTINCT - 84 * + 93 + - 73
----
-7885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3337
SELECT ALL - + 18 * + CAST( - 32 AS SIGNED ) * + 49 + - 12
----
28212

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL - + 18 * + CAST ( - 32 AS INTEGER ) * + 49 + - 12
----
28212

onlyif mysql # aggregate syntax: 
query II rowsort label-3338
SELECT ALL + - 29 AS col0, - COUNT( DISTINCT + ( - 61 ) ) + 70 AS col1
----
-29
69

skipif mysql # not compatible
query II rowsort label-3338
SELECT ALL + - 29 AS col0, - COUNT ( DISTINCT + ( - 61 ) ) + 70 AS col1
----
-29
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT ALL + - COUNT( - + 25 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL + - COUNT ( - + 25 ) col2
----
-1

query I rowsort
SELECT ALL + ( - + 33 ) * - - 93
----
-3069

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

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

query I rowsort
SELECT + 30 * + 66 * - 56 - 80 * 41 AS col1
----
-114160

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT - + ( COUNT( * ) ) * NULLIF ( - 21, + 74 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3343
SELECT - + ( COUNT ( * ) ) * NULLIF ( - 21, + 74 ) AS col0
----
21

query I rowsort
SELECT + - 46 * + 17 + + 44 AS col2
----
-738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3345
SELECT CAST( + COALESCE ( 51, - 26, 85 ) AS SIGNED ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3345
SELECT CAST ( + COALESCE ( 51, - 26, 85 ) AS INTEGER ) AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3346
SELECT ALL + COUNT( * ) * - 91 + NULLIF ( + 1, - ( + AVG ( DISTINCT 3 ) ) ) + - NULLIF ( COUNT( * ), CAST( NULL AS SIGNED ) ) * 97 + - COUNT( * ) AS col2
----
-188

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL + COUNT ( * ) * - 91 + NULLIF ( + 1, - ( + AVG ( DISTINCT 3 ) ) ) + - NULLIF ( COUNT ( * ), CAST ( NULL AS INTEGER ) ) * 97 + - COUNT ( * ) AS col2
----
-188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3347
SELECT - + 60 - + - COUNT( * ) + - COUNT( * ) + - 88 * COALESCE ( 90, - 71 + 12 DIV 60, - 71 ) AS col1
----
-7980

skipif mysql # not compatible
query I rowsort label-3347
SELECT - + 60 - + - COUNT ( * ) + - COUNT ( * ) + - 88 * COALESCE ( 90, - 71 + 12 / 60, - 71 ) AS col1
----
-7980

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT + COUNT( * ) * + 80 * + 96
----
7680

skipif mysql # not compatible
query I rowsort label-3348
SELECT + COUNT ( * ) * + 80 * + 96
----
7680

query I rowsort
SELECT ALL + 90 * + - 58 * - 86 + + 62 AS col2
----
448982

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT - 44 + + COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-3350
SELECT - 44 + + COUNT ( * ) AS col2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3351
SELECT ALL CAST( - 41 AS SIGNED ) * - + 25
----
1025

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL CAST ( - 41 AS INTEGER ) * - + 25
----
1025

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT 58 * MIN( - 91 ) * + 47 * 89 + COUNT( * ) + - NULLIF ( 31 + - 79 * 12, - 77 * + SUM( ALL 69 * + 18 ) + ( COUNT( * ) ) * 5 ) * - 59
----
-22131976

skipif mysql # not compatible
query I rowsort label-3352
SELECT 58 * MIN ( - 91 ) * + 47 * 89 + COUNT ( * ) + - NULLIF ( 31 + - 79 * 12, - 77 * + SUM ( ALL 69 * + 18 ) + ( COUNT ( * ) ) * 5 ) * - 59
----
-22131976

query I rowsort
SELECT + 26 * 10 * - 27 * + + 70 AS col1
----
-491400

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

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

query II rowsort
SELECT DISTINCT 49 * - 77, - 84 AS col2
----
-3773
-84

query I rowsort
SELECT - 91 * - 38 + + 21
----
3479

query I rowsort
SELECT + 90 + 41 AS col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT MIN( ALL + + ( + + 25 ) )
----
25

skipif mysql # not compatible
query I rowsort label-3358
SELECT MIN ( ALL + + ( + + 25 ) )
----
25

query I rowsort
SELECT + 66 + + 44 col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT DISTINCT MAX( + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT MAX ( + 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT + CASE 44 WHEN - COUNT( * ) THEN NULL ELSE + 14 - 48 END * + 53 AS col2
----
-1802

skipif mysql # not compatible
query I rowsort label-3361
SELECT + CASE 44 WHEN - COUNT ( * ) THEN NULL ELSE + 14 - 48 END * + 53 AS col2
----
-1802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3362
SELECT - CAST( NULL AS SIGNED ) + 91 * 30 * - CAST( - 73 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3362
SELECT - CAST ( NULL AS INTEGER ) + 91 * 30 * - CAST ( - 73 AS INTEGER ) AS col1
----
NULL

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

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

query II rowsort
SELECT - ( + 56 ) AS col1, - 34
----
-56
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT + 56 + - 3 * + COUNT( * ) - + MAX( ALL 87 ) * + 86
----
-7429

skipif mysql # not compatible
query I rowsort label-3365
SELECT + 56 + - 3 * + COUNT ( * ) - + MAX ( ALL 87 ) * + 86
----
-7429

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

query I rowsort
SELECT ALL 30 * 53 * + CASE + 68 WHEN + ( 80 ) THEN 57 * 58 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT DISTINCT NULLIF ( - COUNT( * ), - COUNT( * ) / - 99 / 65 + 77 * 54 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT NULLIF ( - COUNT ( * ), - COUNT ( * ) / - 99 / 65 + 77 * 54 ) AS col0
----
-1

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

query I rowsort
SELECT + + 30 + 30 AS col2
----
60

query I rowsort
SELECT - + 25 + + 39 AS col1
----
14

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3373
SELECT + - CASE - 46 WHEN - 19 + - COUNT( * ) * + ( - COALESCE ( - 9, 74 * - 1 + - 59, 41 * 46 + - 24 * 69 ) * + ( + 5 ) ) THEN - COUNT( * ) * + ( + 4 ) WHEN 2 THEN NULL ELSE NULL END * NULLIF ( + COUNT( * ), - CAST( 58 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT + - CASE - 46 WHEN - 19 + - COUNT ( * ) * + ( - COALESCE ( - 9, 74 * - 1 + - 59, 41 * 46 + - 24 * 69 ) * + ( + 5 ) ) THEN - COUNT ( * ) * + ( + 4 ) WHEN 2 THEN NULL ELSE NULL END * NULLIF ( + COUNT ( * ), - CAST ( 58 AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3374
SELECT ALL - 54 DIV + + 71 + - - ( - - MAX( DISTINCT 58 ) )
----
58

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL - 54 / + + 71 + - - ( - - MAX ( DISTINCT 58 ) )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3375
SELECT DISTINCT 42 DIV + ( 9 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT 42 / + ( 9 ) AS col0
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3376
SELECT - CAST( NULL AS DECIMAL ) * + - NULLIF ( + + 56, + 71 ) + ( + 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3376
SELECT - CAST ( NULL AS REAL ) * + - NULLIF ( + + 56, + 71 ) + ( + 51 )
----
NULL

query I rowsort
SELECT DISTINCT + - 98 * + + 86 AS col0
----
-8428

onlyif mysql # DIV for integer division: 
query I rowsort label-3378
SELECT DISTINCT - + NULLIF ( + + 32, + - 69 ) DIV + 9 + + 26 * 84
----
2181

skipif mysql # not compatible
query I rowsort label-3378
SELECT DISTINCT - + NULLIF ( + + 32, + - 69 ) / + 9 + + 26 * 84
----
2181

query I rowsort
SELECT 53 * - + 35 + + 22
----
-1833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3380
SELECT ALL + 30 * 36 + NULLIF ( 1, + 73 - - 48 ) * COALESCE ( 51, - 6 DIV - 12, + 73 DIV - COALESCE ( 54 * 63, + CASE 50 WHEN COUNT( * ) * CASE - 79 WHEN - AVG ( 4 ) THEN ( 47 ) + + CAST( NULL AS SIGNED ) * COUNT( * ) ELSE NULL END THEN 79 * - 73 WHEN 73 + 47 THEN NULL END * 64 ) ) AS col2
----
1131

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL + 30 * 36 + NULLIF ( 1, + 73 - - 48 ) * COALESCE ( 51, - 6 / - 12, + 73 / - COALESCE ( 54 * 63, + CASE 50 WHEN COUNT ( * ) * CASE - 79 WHEN - AVG ( 4 ) THEN ( 47 ) + + CAST ( NULL AS INTEGER ) * COUNT ( * ) ELSE NULL END THEN 79 * - 73 WHEN 73 + 47 THEN NULL END * 64 ) ) AS col2
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ALL + 63 * - - CASE - COUNT( * ) WHEN - ( - COUNT( * ) ) THEN - 95 + 61 WHEN + 43 THEN NULL END * 92 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL + 63 * - - CASE - COUNT ( * ) WHEN - ( - COUNT ( * ) ) THEN - 95 + 61 WHEN + 43 THEN NULL END * 92 col0
----
NULL

query I rowsort
SELECT - 38 * - 21 AS col1
----
798

onlyif mysql # aggregate syntax: 
query II rowsort label-3383
SELECT + COUNT( * ) + + 75 + + 54 AS col1, 6
----
130
6

skipif mysql # not compatible
query II rowsort label-3383
SELECT + COUNT ( * ) + + 75 + + 54 AS col1, 6
----
130
6

query I rowsort
SELECT ALL 6 * - 99 * 22 - - + 67 + - 59 + - 10 * 90
----
-13960

onlyif mysql # DIV for integer division: 
query I rowsort label-3385
SELECT ALL 2 DIV 16 col2
----
0

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL 2 / 16 col2
----
0

query I rowsort
SELECT - 8 * + 31
----
-248

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3388
SELECT CASE 4 WHEN + ( + 99 ) THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN - 13 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3388
SELECT CASE 4 WHEN + ( + 99 ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN - 13 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3389
SELECT ALL - 27 DIV + 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL - 27 / + 32 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3390
SELECT - 72 * + CASE - CASE - - 13 WHEN - CASE - AVG ( + 43 ) WHEN - ( COUNT( * ) ) THEN NULL ELSE + 70 * - 64 END THEN 31 + + 53 ELSE NULL END WHEN 62 THEN CAST( - 3 AS DECIMAL ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT - 72 * + CASE - CASE - - 13 WHEN - CASE - AVG ( + 43 ) WHEN - ( COUNT ( * ) ) THEN NULL ELSE + 70 * - 64 END THEN 31 + + 53 ELSE NULL END WHEN 62 THEN CAST ( - 3 AS REAL ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT - MIN( + - 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-3391
SELECT - MIN ( + - 87 ) AS col1
----
87

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

skipif mysql # not compatible
query I rowsort label-3392
SELECT - MIN ( - + ( 68 ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT + ( + + 95 ) + - - COUNT( + 84 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-3393
SELECT + ( + + 95 ) + - - COUNT ( + 84 ) AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3394
SELECT - 24 DIV - - ( - 21 )
----
1

skipif mysql # not compatible
query I rowsort label-3394
SELECT - 24 / - - ( - 21 )
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3396
SELECT 85 - - CAST( - - 9 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-3396
SELECT 85 - - CAST ( - - 9 AS INTEGER )
----
94

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3398
SELECT - - COALESCE ( - 77, + 92 ) col0, 59 * + - SUM( ALL 81 )
----
-77
-4779

skipif mysql # not compatible
query II rowsort label-3398
SELECT - - COALESCE ( - 77, + 92 ) col0, 59 * + - SUM ( ALL 81 )
----
-77
-4779

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT + MIN( DISTINCT + 79 ) * - + 44 AS col2
----
-3476

skipif mysql # not compatible
query I rowsort label-3399
SELECT + MIN ( DISTINCT + 79 ) * - + 44 AS col2
----
-3476

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3400
SELECT 79 - - COUNT( * ) DIV + - 19
----
79

skipif mysql # not compatible
query I rowsort label-3400
SELECT 79 - - COUNT ( * ) / + - 19
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT - COUNT( * ) * + + 23 * + - 64 * COUNT( - 51 ) * 19
----
27968

skipif mysql # not compatible
query I rowsort label-3401
SELECT - COUNT ( * ) * + + 23 * + - 64 * COUNT ( - 51 ) * 19
----
27968

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

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

query I rowsort
SELECT + 8 - + 60
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT ALL 87 + - 97 / - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + 37 / 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL 87 + - 97 / - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + 37 / 17
----
NULL

query I rowsort
SELECT DISTINCT + 88 + + 83 * 27 AS col1
----
2329

query I rowsort
SELECT - 75 + - 96
----
-171

query I rowsort
SELECT ALL + COALESCE ( + 6, - 62 + - 76 * - - 53 ) + + 20
----
26

query I rowsort
SELECT + + ( - 19 ) col2
----
-19

query I rowsort
SELECT ALL - 58 + + 66 - + ( + 12 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-3410
SELECT + 14 AS col0, NULLIF ( - + 45, 53 ) - + - COUNT( 25 )
----
14
-44

skipif mysql # not compatible
query II rowsort label-3410
SELECT + 14 AS col0, NULLIF ( - + 45, 53 ) - + - COUNT ( 25 )
----
14
-44

query II rowsort
SELECT + 84 AS col0, 40 * - 21 col2
----
84
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT ALL - NULLIF ( SUM( ALL + + 43 ), + 7 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL - NULLIF ( SUM ( ALL + + 43 ), + 7 ) AS col0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3413
SELECT - 46 DIV - - 44 - - 7 DIV - 73 - + - 21 * + 25 * + COUNT( * ) AS col1
----
524

skipif mysql # not compatible
query I rowsort label-3413
SELECT - 46 / - - 44 - - 7 / - 73 - + - 21 * + 25 * + COUNT ( * ) AS col1
----
524

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT ALL - MAX( DISTINCT - 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL - MAX ( DISTINCT - 91 ) AS col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3415
SELECT ALL MAX( + 19 ) DIV + ( 91 )
----
0

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL MAX ( + 19 ) / + ( 91 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3416
SELECT ALL - COUNT( * ), + COUNT( * ) DIV + NULLIF ( + 67, + 64 + + 25 ) * 69 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-3416
SELECT ALL - COUNT ( * ), + COUNT ( * ) / + NULLIF ( + 67, + 64 + + 25 ) * 69 AS col0
----
-1
0

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

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

query I rowsort
SELECT 67 * + + 13 AS col2
----
871

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

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

query I rowsort
SELECT COALESCE ( - 70, COALESCE ( - 58, + NULLIF ( - 81, 59 / - 90 ) + 56 * - 68 ), - 30 ) + 61 col1
----
-9

query I rowsort
SELECT + 1 * - 3 - - 44 AS col2
----
41

query I rowsort
SELECT 50 + - - 55 AS col2
----
105

query I rowsort
SELECT 86 - 20 AS col2
----
66

query I rowsort
SELECT 56 * + 9 AS col1
----
504

query I rowsort
SELECT 5 * - - 61 * - 48
----
-14640

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT 60 * 63 + - 98 * 79 * - CASE - COUNT( * ) WHEN - 88 + 89 * + 19 THEN + ( - COUNT( * ) ) WHEN 90 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT 60 * 63 + - 98 * 79 * - CASE - COUNT ( * ) WHEN - 88 + 89 * + 19 THEN + ( - COUNT ( * ) ) WHEN 90 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 24 * + 28 col2
----
-672

query II rowsort
SELECT DISTINCT 71, 48 - - 7 AS col1
----
71
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT 85 + - + 22 DIV - + 97
----
85

skipif mysql # not compatible
query I rowsort label-3429
SELECT 85 + - + 22 / - + 97
----
85

query II rowsort
SELECT 35 col2, + 96
----
35
96

query I rowsort
SELECT DISTINCT + 51 + - 14
----
37

query I rowsort
SELECT DISTINCT 91 + + 18
----
109

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

skipif mysql # not compatible
query I rowsort label-3433
SELECT CAST ( NULL AS INTEGER ) * - 86 / - 94 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 3 + - 71
----
-74

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

skipif mysql # not compatible
query II rowsort label-3435
SELECT - 62 AS col1, - COUNT ( * ) * - COUNT ( * ) col2
----
-62
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3436
SELECT ALL 76 + - 22 - NULLIF ( - 96, + 18 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL 76 + - 22 - NULLIF ( - 96, + 18 ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT - 45 * + - ( - 18 ) * - 58 + + 14 + - 59 + SUM( DISTINCT 73 )
----
47008

skipif mysql # not compatible
query I rowsort label-3437
SELECT - 45 * + - ( - 18 ) * - 58 + + 14 + - 59 + SUM ( DISTINCT 73 )
----
47008

query I rowsort
SELECT ALL + 58 * + + 2 + - + 18 AS col1
----
98

query II rowsort
SELECT 49 AS col2, 76 col1
----
49
76

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

query II rowsort
SELECT ALL + 9 + + - 59 + - 72 * + 42 AS col0, ( + 98 ) + 18
----
-3074
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3442
SELECT - ( 24 ) - CAST( - 42 AS SIGNED ) + - 2 col1
----
16

skipif mysql # not compatible
query I rowsort label-3442
SELECT - ( 24 ) - CAST ( - 42 AS INTEGER ) + - 2 col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3443
SELECT 30 AS col1, ( 48 ) + 0 DIV - + 86 * + - 32 * + MIN( ALL ( - 19 ) )
----
30
48

skipif mysql # not compatible
query II rowsort label-3443
SELECT 30 AS col1, ( 48 ) + 0 / - + 86 * + - 32 * + MIN ( ALL ( - 19 ) )
----
30
48

query I rowsort
SELECT ALL - - 92 * + 48 * + 61 - - 56
----
269432

query I rowsort
SELECT + 57 + + - 51
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-3446
SELECT 90 * + + 47 + 3 + + 63 DIV + + 85 col2, + 58
----
4233
58

skipif mysql # not compatible
query II rowsort label-3446
SELECT 90 * + + 47 + 3 + + 63 / + + 85 col2, + 58
----
4233
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3447
SELECT DISTINCT COUNT( * ) DIV 47 * + 67 AS col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT + MIN( ALL - + 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-3448
SELECT + MIN ( ALL - + 59 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT CASE - COUNT( * ) WHEN COUNT( * ) THEN - COUNT( * ) WHEN - 43 THEN NULL END * - 41 - - 55 + 95 * - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3449
SELECT CASE - COUNT ( * ) WHEN COUNT ( * ) THEN - COUNT ( * ) WHEN - 43 THEN NULL END * - 41 - - 55 + 95 * - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT MAX( ALL 70 ) * 73 + 80
----
5190

skipif mysql # not compatible
query I rowsort label-3450
SELECT MAX ( ALL 70 ) * 73 + 80
----
5190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3451
SELECT MIN( DISTINCT 57 ) DIV + + 7 - - - 33 + - COUNT( ALL - 53 ) * - - 16 + + 79 col0
----
38

skipif mysql # not compatible
query I rowsort label-3451
SELECT MIN ( DISTINCT 57 ) / + + 7 - - - 33 + - COUNT ( ALL - 53 ) * - - 16 + + 79 col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT 64 * + 43 + COUNT( * ) - + 43 AS col1
----
2710

skipif mysql # not compatible
query I rowsort label-3452
SELECT 64 * + 43 + COUNT ( * ) - + 43 AS col1
----
2710

query I rowsort
SELECT - 90 + - 71 + + ( + + 15 ) * COALESCE ( - - 64, - + 77 )
----
799

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

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

query I rowsort
SELECT DISTINCT 25 + + 18 + 21
----
64

query I rowsort
SELECT - 95 * - + 64
----
6080

query I rowsort
SELECT - 30 * 37 AS col2
----
-1110

query I rowsort
SELECT DISTINCT + + 79 + + 32 * - + CASE + - 98 WHEN - 86 * - 23 + + 10 * 21 THEN 17 + - 68 END * + 2
----
NULL

query I rowsort
SELECT ALL - 73 + - - 25 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-3460
SELECT - + MAX( DISTINCT - 68 ) - + 30 AS col1, COALESCE ( 32, + COUNT( * ), 33 + 92 ) * 30 + + 55
----
38
1015

skipif mysql # not compatible
query II rowsort label-3460
SELECT - + MAX ( DISTINCT - 68 ) - + 30 AS col1, COALESCE ( 32, + COUNT ( * ), 33 + 92 ) * 30 + + 55
----
38
1015

query II rowsort
SELECT DISTINCT - + 50 * - 96 AS col1, ( - + 93 ) + 2
----
4800
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT DISTINCT + 71 + + - 32 + + + 73 + - 14 + + COUNT( * ) * - 86 * 64
----
-5406

skipif mysql # not compatible
query I rowsort label-3462
SELECT DISTINCT + 71 + + - 32 + + + 73 + - 14 + + COUNT ( * ) * - 86 * 64
----
-5406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3463
SELECT DISTINCT + + CAST( + COUNT( ALL - 13 ) AS SIGNED ) + 24
----
25

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT + + CAST ( + COUNT ( ALL - 13 ) AS INTEGER ) + 24
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-3464
SELECT - 10 + + COUNT( * ), + 81 AS col0
----
-9
81

skipif mysql # not compatible
query II rowsort label-3464
SELECT - 10 + + COUNT ( * ), + 81 AS col0
----
-9
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT - MIN( - 56 ) * + ( + 37 )
----
2072

skipif mysql # not compatible
query I rowsort label-3465
SELECT - MIN ( - 56 ) * + ( + 37 )
----
2072

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT ALL + - 25 DIV + 39 * 73 + - + 36
----
-36

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL + - 25 / + 39 * 73 + - + 36
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT CASE + 22 WHEN + COUNT( * ) THEN - - 28 / 39 + + - COUNT( * ) + + 26 - 72 * 12 + COUNT( * ) ELSE NULLIF ( 94, 40 * + 0 ) + + ( 46 + + 72 ) END AS col2
----
212

skipif mysql # not compatible
query I rowsort label-3467
SELECT CASE + 22 WHEN + COUNT ( * ) THEN - - 28 / 39 + + - COUNT ( * ) + + 26 - 72 * 12 + COUNT ( * ) ELSE NULLIF ( 94, 40 * + 0 ) + + ( 46 + + 72 ) END AS col2
----
212

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3469
SELECT - ( + 24 ) AS col0, COUNT( * ) + - + 35 AS col0
----
-24
-34

skipif mysql # not compatible
query II rowsort label-3469
SELECT - ( + 24 ) AS col0, COUNT ( * ) + - + 35 AS col0
----
-24
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-3470
SELECT ALL COALESCE ( - - 49, AVG ( - 19 ) DIV + 24 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL COALESCE ( - - 49, AVG ( - 19 ) / + 24 ) AS col1
----
49

query I rowsort
SELECT - + 91 * 93 AS col2
----
-8463

query I rowsort
SELECT + + 86 * 11
----
946

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3473
SELECT - - COALESCE ( + + 15, + 80 ) * + 51 + 45 DIV + COALESCE ( + + COUNT( * ), - 79 * - ( 83 DIV + 0 ) )
----
810

skipif mysql # not compatible
query I rowsort label-3473
SELECT - - COALESCE ( + + 15, + 80 ) * + 51 + 45 / + COALESCE ( + + COUNT ( * ), - 79 * - ( 83 / + 0 ) )
----
810

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

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

query II rowsort
SELECT - 55 + 17 * + 6, + 76 AS col2
----
47
76

query I rowsort
SELECT + COALESCE ( + 50, + 44 )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3477
SELECT + 50 * + 61 + - 21 + - 16 DIV + + 94 AS col2
----
3029

skipif mysql # not compatible
query I rowsort label-3477
SELECT + 50 * + 61 + - 21 + - 16 / + + 94 AS col2
----
3029

query I rowsort
SELECT ( - ( + + 31 ) ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-3479
SELECT - COUNT( * ) * + - 66 * - 58 AS col1, 3
----
-3828
3

skipif mysql # not compatible
query II rowsort label-3479
SELECT - COUNT ( * ) * + - 66 * - 58 AS col1, 3
----
-3828
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT + NULLIF ( + 70, + - 28 * - 80 * + SUM( + 39 ) - 75 / + 65 + 53 ) * 76 AS col0
----
5320

skipif mysql # not compatible
query I rowsort label-3480
SELECT + NULLIF ( + 70, + - 28 * - 80 * + SUM ( + 39 ) - 75 / + 65 + 53 ) * 76 AS col0
----
5320

query II rowsort
SELECT ALL + 31, - 88 AS col0
----
31
-88

query II rowsort
SELECT + 93 * + 15 - - 63 AS col2, + 14
----
1458
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT DISTINCT 43 * + 18 + + SUM( - 26 ) col2
----
748

skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT 43 * + 18 + + SUM ( - 26 ) col2
----
748

query I rowsort
SELECT ALL + ( 60 ) * + 98 * 11 * 25 + + 77 AS col0
----
1617077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3485
SELECT ALL CAST( NULL AS SIGNED ) * - + 65 * + 92 + - - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL CAST ( NULL AS INTEGER ) * - + 65 * + 92 + - - 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT CASE - + 58 WHEN - + 48 THEN - 96 END * - - 2 + - MIN( DISTINCT + 16 ) / + 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT CASE - + 58 WHEN - + 48 THEN - 96 END * - - 2 + - MIN ( DISTINCT + 16 ) / + 67 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3487
SELECT ALL + 36 AS col0, + 56 DIV - - 6
----
36
9

skipif mysql # not compatible
query II rowsort label-3487
SELECT ALL + 36 AS col0, + 56 / - - 6
----
36
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT + NULLIF ( - - 16, + - 44 / + COUNT( * ) ) + - + 33 * + + 57 * - 87 * + - 30 * + COUNT( * ) + ( 75 ) col1
----
-4909319

skipif mysql # not compatible
query I rowsort label-3488
SELECT + NULLIF ( - - 16, + - 44 / + COUNT ( * ) ) + - + 33 * + + 57 * - 87 * + - 30 * + COUNT ( * ) + ( 75 ) col1
----
-4909319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3489
SELECT - CASE 5 WHEN - - 81 THEN + - 21 END * + CAST( - 62 AS SIGNED ) - - 89 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT - CASE 5 WHEN - - 81 THEN + - 21 END * + CAST ( - 62 AS INTEGER ) - - 89 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT + 18 + + + COUNT( * ) * + 66 * - 73 * + - 66 * 88 AS col1
----
27982962

skipif mysql # not compatible
query I rowsort label-3490
SELECT + 18 + + + COUNT ( * ) * + 66 * - 73 * + - 66 * 88 AS col1
----
27982962

onlyif mysql # aggregate syntax: 
query II rowsort label-3491
SELECT + 35, ( + 51 ) * - 94 * 30 + + COUNT( * ) col2
----
35
-143819

skipif mysql # not compatible
query II rowsort label-3491
SELECT + 35, ( + 51 ) * - 94 * 30 + + COUNT ( * ) col2
----
35
-143819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3492
SELECT - + 8 + - 26 + CAST( 78 AS SIGNED ) * - 55 col0
----
-4324

skipif mysql # not compatible
query I rowsort label-3492
SELECT - + 8 + - 26 + CAST ( 78 AS INTEGER ) * - 55 col0
----
-4324

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT ALL - 9 * - 75 + MAX( DISTINCT 25 )
----
700

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL - 9 * - 75 + MAX ( DISTINCT 25 )
----
700

query I rowsort
SELECT + + 97 * + 57
----
5529

query II rowsort
SELECT 4 AS col2, + 68
----
4
68

query II rowsort
SELECT - 58 AS col1, NULLIF ( - + ( + 34 ), 24 ) + 58 AS col0
----
-58
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT DISTINCT - - 65 * + + COUNT( * ) * + + 86 * - ( 64 ) + - 43
----
-357803

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT - - 65 * + + COUNT ( * ) * + + 86 * - ( 64 ) + - 43
----
-357803

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3498
SELECT ALL + - ( COUNT( * ) ) * + CAST( NULL AS SIGNED ) + - COALESCE ( + 68, + - CAST( NULL AS SIGNED ) ) - 86 - + - ( 16 ) / 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL + - ( COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) + - COALESCE ( + 68, + - CAST ( NULL AS INTEGER ) ) - 86 - + - ( 16 ) / 82 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3499
SELECT - 41 + ( COUNT( * ) ), 20 col1
----
-40
20

skipif mysql # not compatible
query II rowsort label-3499
SELECT - 41 + ( COUNT ( * ) ), 20 col1
----
-40
20

query II rowsort
SELECT + + ( + 74 ) + - 68 col1, - 50
----
6
-50

query II rowsort
SELECT - 9, 29 - - 88 AS col0
----
-9
117

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

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

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

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

query I rowsort
SELECT + + 95 * - - 74
----
7030

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT - - 32 + - - COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-3505
SELECT - - 32 + - - COUNT ( * ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT ALL - COUNT( * ) - + + 38 + 82
----
43

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL - COUNT ( * ) - + + 38 + 82
----
43

query I rowsort
SELECT DISTINCT + 57 * 69
----
3933

query I rowsort
SELECT - 52 + 53 AS col0
----
1

query I rowsort
SELECT - 66 + + 77
----
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ALL + 72 * MAX( - 7 )
----
-504

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL + 72 * MAX ( - 7 )
----
-504

query I rowsort
SELECT - NULLIF ( 26, - 16 ) * + - ( - ( + 59 ) )
----
-1534

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT - SUM( ALL + 59 ) * 64 AS col0
----
-3776

skipif mysql # not compatible
query I rowsort label-3513
SELECT - SUM ( ALL + 59 ) * 64 AS col0
----
-3776

query I rowsort
SELECT - ( + - 81 ) + + 83
----
164

query I rowsort
SELECT DISTINCT + 82 + + 86
----
168

query I rowsort
SELECT CASE 46 WHEN 95 THEN + + 97 + - COALESCE ( NULLIF ( + - 56, - + 81 + - 84 ), 7 ) END + - ( - 37 ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3517
SELECT 66 + + 13 - + 91 * + CAST( NULL AS SIGNED ) AS col2, - CAST( - - 8 AS SIGNED ) * - 36 AS col1
----
NULL
288

skipif mysql # not compatible
query II rowsort label-3517
SELECT 66 + + 13 - + 91 * + CAST ( NULL AS INTEGER ) AS col2, - CAST ( - - 8 AS INTEGER ) * - 36 AS col1
----
NULL
288

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT DISTINCT + 82 + - MAX( DISTINCT + - 94 ) + - 51 AS col2
----
125

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT + 82 + - MAX ( DISTINCT + - 94 ) + - 51 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT ALL + 28 + - + COUNT( - + 98 )
----
27

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL + 28 + - + COUNT ( - + 98 )
----
27

query II rowsort
SELECT ALL 72 + - - 0 AS col0, - ( - - 89 ) AS col2
----
72
-89

query I rowsort
SELECT ALL - 65 + - 65 * - 57
----
3640

query I rowsort
SELECT 95 * - - 6
----
570

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT DISTINCT - COALESCE ( - + 77, - - 4 + 31 + - 35, + + 68 * - - COALESCE ( - 71, + 49, + ( - MIN( - COALESCE ( - 55, + 69 * + 18 ) ) ) - + CASE 11 WHEN ( - 5 ) THEN 76 * - 96 - 63 WHEN 93 THEN NULL WHEN + 5 THEN NULL END ) )
----
77

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT - COALESCE ( - + 77, - - 4 + 31 + - 35, + + 68 * - - COALESCE ( - 71, + 49, + ( - MIN ( - COALESCE ( - 55, + 69 * + 18 ) ) ) - + CASE 11 WHEN ( - 5 ) THEN 76 * - 96 - 63 WHEN 93 THEN NULL WHEN + 5 THEN NULL END ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT 85 * - MIN( DISTINCT + 54 )
----
-4590

skipif mysql # not compatible
query I rowsort label-3524
SELECT 85 * - MIN ( DISTINCT + 54 )
----
-4590

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3525
SELECT - 88 * + - 68 + - CAST( - + 74 AS SIGNED ) AS col2, NULLIF ( - + 75, - - AVG ( DISTINCT 36 ) ) * 35 * 47 + + 81
----
6058
-123294

skipif mysql # not compatible
query II rowsort label-3525
SELECT - 88 * + - 68 + - CAST ( - + 74 AS INTEGER ) AS col2, NULLIF ( - + 75, - - AVG ( DISTINCT 36 ) ) * 35 * 47 + + 81
----
6058
-123294

onlyif mysql # DIV for integer division: 
query I rowsort label-3526
SELECT 38 DIV - 86 + + 21
----
21

skipif mysql # not compatible
query I rowsort label-3526
SELECT 38 / - 86 + + 21
----
21

query I rowsort
SELECT DISTINCT - 24 - + + 54 - + + 46 * - + 13
----
520

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT DISTINCT + - 83 * + COUNT( * ) * + + 71 * + ( - - CASE - 49 WHEN + MAX( - + ( 46 ) ) THEN NULL ELSE - 45 END )
----
265185

skipif mysql # not compatible
query I rowsort label-3528
SELECT DISTINCT + - 83 * + COUNT ( * ) * + + 71 * + ( - - CASE - 49 WHEN + MAX ( - + ( 46 ) ) THEN NULL ELSE - 45 END )
----
265185

onlyif mysql # DIV for integer division: 
query II rowsort label-3529
SELECT ALL - 91 - + COALESCE ( + - 86, 36 ) AS col1, 72 DIV 4
----
-5
18

skipif mysql # not compatible
query II rowsort label-3529
SELECT ALL - 91 - + COALESCE ( + - 86, 36 ) AS col1, 72 / 4
----
-5
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3530
SELECT + 34 * - CASE + + 96 WHEN + + SUM( ALL - - 73 ) THEN NULL WHEN ( 57 ) + + 52 * 1 THEN + 90 + + 79 WHEN 11 + 70 THEN 97 + CAST( NULL AS SIGNED ) / 58 END * 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT + 34 * - CASE + + 96 WHEN + + SUM ( ALL - - 73 ) THEN NULL WHEN ( 57 ) + + 52 * 1 THEN + 90 + + 79 WHEN 11 + 70 THEN 97 + CAST ( NULL AS INTEGER ) / 58 END * 30 AS col1
----
NULL

query I rowsort
SELECT ALL - 80 * 59 + + 56
----
-4664

query I rowsort
SELECT + 62 * - 51 * + 43 - + - COALESCE ( 51, - 77 ) AS col0
----
-135915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3533
SELECT 41 * - - 54 + - SUM( - + CAST( + + 95 AS SIGNED ) ) AS col0
----
2309

skipif mysql # not compatible
query I rowsort label-3533
SELECT 41 * - - 54 + - SUM ( - + CAST ( + + 95 AS INTEGER ) ) AS col0
----
2309

onlyif mysql # DIV for integer division: 
query I rowsort label-3534
SELECT - 1 * ( + 74 ) + + 56 DIV 55 - + 65 + - 40 AS col0
----
-178

skipif mysql # not compatible
query I rowsort label-3534
SELECT - 1 * ( + 74 ) + + 56 / 55 - + 65 + - 40 AS col0
----
-178

query I rowsort
SELECT 28 - + + 75 AS col2
----
-47

query I rowsort
SELECT - ( 2 ) - 59 AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3537
SELECT ALL - NULLIF ( - 20, + CAST( NULL AS SIGNED ) + + MIN( + + 4 ) )
----
20

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL - NULLIF ( - 20, + CAST ( NULL AS INTEGER ) + + MIN ( + + 4 ) )
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-3538
SELECT DISTINCT 15 DIV 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT 15 / 70 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT CASE + 43 WHEN 40 THEN NULL WHEN + 18 * - 64 * + 40 / 79 * + 45 + - 12 + - 76 THEN + 98 / MAX( DISTINCT + ( COALESCE ( NULLIF ( 87, + CASE 53 WHEN ( - 64 ) THEN NULL WHEN + 97 THEN 63 ELSE NULL END + 52 ), 93 + - 53, 43 - 25 ) ) ) + 27 END / 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT CASE + 43 WHEN 40 THEN NULL WHEN + 18 * - 64 * + 40 / 79 * + 45 + - 12 + - 76 THEN + 98 / MAX ( DISTINCT + ( COALESCE ( NULLIF ( 87, + CASE 53 WHEN ( - 64 ) THEN NULL WHEN + 97 THEN 63 ELSE NULL END + 52 ), 93 + - 53, 43 - 25 ) ) ) + 27 END / 62
----
NULL

query I rowsort
SELECT DISTINCT - 45 + + 48 + - 77 + - - 13 col0
----
-61

query I rowsort
SELECT ( - + 0 ) * - 63 AS col2
----
0

query I rowsort
SELECT 86 * - ( 61 )
----
-5246

query I rowsort
SELECT ALL 44 + + 68
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT ALL + MIN( DISTINCT + 29 ) + - 83 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL + MIN ( DISTINCT + 29 ) + - 83 AS col0
----
-54

query I rowsort
SELECT ALL 8 + ( + 83 ) * + 66
----
5486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3546
SELECT ALL - CASE - 4 WHEN + - AVG ( + 3 ) * - + 2 THEN + 97 + 18 + - 39 * CAST( - 76 AS SIGNED ) * - CAST( - 71 AS SIGNED ) DIV - 50 ELSE - 18 END + + ( 96 ) * - NULLIF ( - COUNT( * ), - AVG ( ALL 9 ) )
----
114

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL - CASE - 4 WHEN + - AVG ( + 3 ) * - + 2 THEN + 97 + 18 + - 39 * CAST ( - 76 AS INTEGER ) * - CAST ( - 71 AS INTEGER ) / - 50 ELSE - 18 END + + ( 96 ) * - NULLIF ( - COUNT ( * ), - AVG ( ALL 9 ) )
----
114

query I rowsort
SELECT 1 * + + ( 85 ) AS col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3548
SELECT 14 * 92 DIV 85 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3548
SELECT 14 * 92 / 85 AS col1
----
15

query I rowsort
SELECT 6 * 27 + + 26 * + 36
----
1098

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3550
SELECT 20 DIV SUM( DISTINCT + 71 ) col2, + 90 * - COUNT( * ) * - 3 * - + 57 AS col0
----
0
-15390

skipif mysql # not compatible
query II rowsort label-3550
SELECT 20 / SUM ( DISTINCT + 71 ) col2, + 90 * - COUNT ( * ) * - 3 * - + 57 AS col0
----
0
-15390

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

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL - 33 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3552
SELECT 91 * - MAX( DISTINCT - + CAST( NULL AS SIGNED ) )
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3553
SELECT + COUNT( * ) DIV - - 45 + + 82
----
82

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

query I rowsort
SELECT - 47 * + 15 * - 40 - + + 63
----
28137

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT 10 + 75 - - COUNT( * ) * - 62 * - 7
----
519

skipif mysql # not compatible
query I rowsort label-3555
SELECT 10 + 75 - - COUNT ( * ) * - 62 * - 7
----
519

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3556
SELECT COALESCE ( 87, + 36, - 63 * - 54 + - 27 + + 6 * + 2 DIV - COALESCE ( + ( 20 ), CAST( NULL AS SIGNED ) + 25 * - 52 ) + 12 ) + - ( - 82 - + 33 DIV + 2 ) * 60
----
5967

skipif mysql # not compatible
query I rowsort label-3556
SELECT COALESCE ( 87, + 36, - 63 * - 54 + - 27 + + 6 * + 2 / - COALESCE ( + ( 20 ), CAST ( NULL AS INTEGER ) + 25 * - 52 ) + 12 ) + - ( - 82 - + 33 / + 2 ) * 60
----
5967

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3557
SELECT ALL - 35, - 7 + NULLIF ( MAX( + 58 ), - 22 - + 82 ) - + 20 * - - CASE 9 WHEN 3 THEN + 30 END / CAST( NULL AS DECIMAL ) + + AVG ( - 78 ) AS col0
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-3557
SELECT ALL - 35, - 7 + NULLIF ( MAX ( + 58 ), - 22 - + 82 ) - + 20 * - - CASE 9 WHEN 3 THEN + 30 END / CAST ( NULL AS REAL ) + + AVG ( - 78 ) AS col0
----
-35
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3558
SELECT CAST( - 27 AS SIGNED ) col1
----
-27

skipif mysql # not compatible
query I rowsort label-3558
SELECT CAST ( - 27 AS INTEGER ) col1
----
-27

query I rowsort
SELECT DISTINCT + 84 * - 16
----
-1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3560
SELECT 25 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3560
SELECT 25 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT ALL - CAST( 83 AS SIGNED ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL - CAST ( 83 AS INTEGER ) AS col2
----
-83

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

query I rowsort
SELECT - 71 * 77
----
-5467

onlyif mysql # DIV for integer division: 
query I rowsort label-3564
SELECT + COALESCE ( - - 89, 85 ) * + 31 * 13 + - 79 + + 7 DIV - + 53 + 91 AS col1
----
35879

skipif mysql # not compatible
query I rowsort label-3564
SELECT + COALESCE ( - - 89, 85 ) * + 31 * 13 + - 79 + + 7 / - + 53 + 91 AS col1
----
35879

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3565
SELECT 17 + CAST( + 86 AS SIGNED ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-3565
SELECT 17 + CAST ( + 86 AS INTEGER ) AS col1
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3566
SELECT - NULLIF ( - 97, ( - 2 ) + - - 63 - + + 71 * - 38 / - 51 * - 74 * + CAST( NULL AS SIGNED ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3566
SELECT - NULLIF ( - 97, ( - 2 ) + - - 63 - + + 71 * - 38 / - 51 * - 74 * + CAST ( NULL AS INTEGER ) ) AS col0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3567
SELECT 63 + 57 * 59 DIV - 58 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3567
SELECT 63 + 57 * 59 / - 58 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL + 68 * 97 - 60 * - 60 * - + 84 + - + CASE - 19 WHEN + CASE 42 WHEN COUNT( * ) THEN 48 * - NULLIF ( + 31, 16 ) END * + 94 THEN + COUNT( - 54 ) WHEN - 99 / 4 + NULLIF ( 33 - - 31, + 55 * - 70 ) THEN NULL WHEN AVG ( DISTINCT 89 ) THEN ( 8 ) ELSE NULL END * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL + 68 * 97 - 60 * - 60 * - + 84 + - + CASE - 19 WHEN + CASE 42 WHEN COUNT ( * ) THEN 48 * - NULLIF ( + 31, 16 ) END * + 94 THEN + COUNT ( - 54 ) WHEN - 99 / 4 + NULLIF ( 33 - - 31, + 55 * - 70 ) THEN NULL WHEN AVG ( DISTINCT 89 ) THEN ( 8 ) ELSE NULL END * 64
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3570
SELECT CAST( 8 AS SIGNED ) * + + 28 * - NULLIF ( - NULLIF ( - 89, + - COUNT( * ) * - 81 * - 57 ), + 78 )
----
-19936

skipif mysql # not compatible
query I rowsort label-3570
SELECT CAST ( 8 AS INTEGER ) * + + 28 * - NULLIF ( - NULLIF ( - 89, + - COUNT ( * ) * - 81 * - 57 ), + 78 )
----
-19936

query I rowsort
SELECT 7 + 24 AS col2
----
31

query I rowsort
SELECT ( - - 40 ) * + 93
----
3720

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT 53 + - COUNT( * ) + + 61 * + 29
----
1821

skipif mysql # not compatible
query I rowsort label-3573
SELECT 53 + - COUNT ( * ) + + 61 * + 29
----
1821

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT 96 * - MAX( DISTINCT - - 42 ) AS col0
----
-4032

skipif mysql # not compatible
query I rowsort label-3574
SELECT 96 * - MAX ( DISTINCT - - 42 ) AS col0
----
-4032

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

skipif mysql # not compatible
query I rowsort label-3575
SELECT + 75 + + 35 * + COUNT ( * ) AS col0
----
110

query I rowsort
SELECT ALL 97 + - 76 AS col1
----
21

query I rowsort
SELECT + 2 + 50 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT DISTINCT 8 + ( + - NULLIF ( - - 35, + + ( + 64 ) - - ( + COUNT( * ) ) ) ) * - + 35 AS col0
----
1233

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT 8 + ( + - NULLIF ( - - 35, + + ( + 64 ) - - ( + COUNT ( * ) ) ) ) * - + 35 AS col0
----
1233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3579
SELECT + CAST( 11 AS SIGNED ) + - 12
----
-1

skipif mysql # not compatible
query I rowsort label-3579
SELECT + CAST ( 11 AS INTEGER ) + - 12
----
-1

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

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

query I rowsort
SELECT ALL 61 + 51 AS col0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT - SUM( + 55 ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-3582
SELECT - SUM ( + 55 ) col0
----
-55

query I rowsort
SELECT - NULLIF ( + 31, + 71 )
----
-31

query I rowsort
SELECT + 43 * + 2 AS col2
----
86

query I rowsort
SELECT + 49 + + 4 + 45 AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3586
SELECT - 25 + + + CAST( - 65 AS SIGNED ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-3586
SELECT - 25 + + + CAST ( - 65 AS INTEGER ) AS col2
----
-90

query I rowsort
SELECT ALL 89 * 6 * 65 AS col0
----
34710

query I rowsort
SELECT + 13 * + ( 59 )
----
767

query I rowsort
SELECT DISTINCT 18 * + 79 AS col2
----
1422

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT ALL + COUNT( DISTINCT 82 )
----
1

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL + COUNT ( DISTINCT 82 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT ALL 92 * COALESCE ( - CASE + - 21 WHEN - - 11 + + COALESCE ( - COUNT( * ), + 86 + 31 + 38, - 81 ) THEN 10 ELSE NULL END, 29 ) - - ( 21 )
----
2689

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL 92 * COALESCE ( - CASE + - 21 WHEN - - 11 + + COALESCE ( - COUNT ( * ), + 86 + 31 + 38, - 81 ) THEN 10 ELSE NULL END, 29 ) - - ( 21 )
----
2689

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3593
SELECT DISTINCT + 52, 30 + + COUNT( * ) + 19 col2
----
52
50

skipif mysql # not compatible
query II rowsort label-3593
SELECT DISTINCT + 52, 30 + + COUNT ( * ) + 19 col2
----
52
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ALL + CASE - - 4 WHEN - 10 THEN NULL WHEN + 62 * + COUNT( * ) + 3 * - COALESCE ( - COUNT( * ), + COUNT( * ) * - 36 * - + 53 * 11 ) * 23 - - 69 * 25 THEN + 20 * MIN( - 97 * 2 ) ELSE - 78 END
----
-78

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL + CASE - - 4 WHEN - 10 THEN NULL WHEN + 62 * + COUNT ( * ) + 3 * - COALESCE ( - COUNT ( * ), + COUNT ( * ) * - 36 * - + 53 * 11 ) * 23 - - 69 * 25 THEN + 20 * MIN ( - 97 * 2 ) ELSE - 78 END
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3595
SELECT COALESCE ( + 15, - 47 DIV CASE - 17 WHEN - MIN( DISTINCT 59 ) + - 74 DIV + COUNT( * ) DIV + COUNT( * ) + - 16 THEN 65 * 80 + + 26 END + 77 * - 49 )
----
15

skipif mysql # not compatible
query I rowsort label-3595
SELECT COALESCE ( + 15, - 47 / CASE - 17 WHEN - MIN ( DISTINCT 59 ) + - 74 / + COUNT ( * ) / + COUNT ( * ) + - 16 THEN 65 * 80 + + 26 END + 77 * - 49 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT - - 85 * + + CASE NULLIF ( COALESCE ( - 19, 26 ), - 88 + - ( + - 40 ) + - + 22 ) WHEN + + 15 THEN - 70 / 35 ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT - - 85 * + + CASE NULLIF ( COALESCE ( - 19, 26 ), - 88 + - ( + - 40 ) + - + 22 ) WHEN + + 15 THEN - 70 / 35 ELSE NULL END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3597
SELECT + 65 AS col2, - COUNT( * ) * 24 * 61 AS col2
----
65
-1464

skipif mysql # not compatible
query II rowsort label-3597
SELECT + 65 AS col2, - COUNT ( * ) * 24 * 61 AS col2
----
65
-1464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3598
SELECT - COUNT( * ) + 32 * + COALESCE ( - ( - CASE + 60 WHEN - COUNT( * ) + 43 THEN NULL WHEN + 85 THEN - CAST( - 72 AS SIGNED ) ELSE NULL END ), - 70 ) + CAST( - 83 - - 88 AS SIGNED ) * NULLIF ( 23 * 54, SUM( ALL 77 ) ) AS col0
----
3969

skipif mysql # not compatible
query I rowsort label-3598
SELECT - COUNT ( * ) + 32 * + COALESCE ( - ( - CASE + 60 WHEN - COUNT ( * ) + 43 THEN NULL WHEN + 85 THEN - CAST ( - 72 AS INTEGER ) ELSE NULL END ), - 70 ) + CAST ( - 83 - - 88 AS INTEGER ) * NULLIF ( 23 * 54, SUM ( ALL 77 ) ) AS col0
----
3969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3599
SELECT + + 58 * + - CASE + - 77 WHEN CAST( - + 31 AS SIGNED ) THEN - 57 / - - 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT + + 58 * + - CASE + - 77 WHEN CAST ( - + 31 AS INTEGER ) THEN - 57 / - - 39 END
----
NULL

query II rowsort
SELECT 29, 79 AS col2
----
29
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3601
SELECT + - CAST( - 72 AS SIGNED ) * 44 + + 28 + - + SUM( + 36 ) AS col2
----
3160

skipif mysql # not compatible
query I rowsort label-3601
SELECT + - CAST ( - 72 AS INTEGER ) * 44 + + 28 + - + SUM ( + 36 ) AS col2
----
3160

query I rowsort
SELECT DISTINCT - - 16 * + - 30 AS col0
----
-480

query I rowsort
SELECT ALL + 39 * CASE - - 80 WHEN - + 23 THEN - + 77 END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3605
SELECT ALL + COALESCE ( - 29, - COUNT( * ) DIV - COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL + COALESCE ( - 29, - COUNT ( * ) / - COUNT ( * ) )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3606
SELECT DISTINCT + - 86 * + CAST( NULL AS SIGNED ) + - 90 * + - 96 - + - 93 + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT + - 86 * + CAST ( NULL AS INTEGER ) + - 90 * + - 96 - + - 93 + - 95
----
NULL

query II rowsort
SELECT ALL + 98, 98 col1
----
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3608
SELECT - 19 DIV - 83 + + 69 + 69 + - - 78 + + + 83
----
299

skipif mysql # not compatible
query I rowsort label-3608
SELECT - 19 / - 83 + + 69 + 69 + - - 78 + + + 83
----
299

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3609
SELECT ALL + - 87 * + 71 + + ( + 28 ) + 18 + + COUNT( * ) * 50 + + 43 DIV - 92
----
-6081

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL + - 87 * + 71 + + ( + 28 ) + 18 + + COUNT ( * ) * 50 + + 43 / - 92
----
-6081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3610
SELECT - - CASE + MAX( - 75 ) WHEN + 65 THEN NULL WHEN + ( + 23 ) THEN 8 WHEN - 35 + + ( CAST( + CASE ( + ( + 74 ) ) WHEN COUNT( * ) * SUM( + 69 * CAST( 36 * 57 AS SIGNED ) ) + 27 * 41 THEN NULL ELSE + 38 END AS SIGNED ) ) * - 40 THEN 76 + + ( + 8 ) END * - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT - - CASE + MAX ( - 75 ) WHEN + 65 THEN NULL WHEN + ( + 23 ) THEN 8 WHEN - 35 + + ( CAST ( + CASE ( + ( + 74 ) ) WHEN COUNT ( * ) * SUM ( + 69 * CAST ( 36 * 57 AS INTEGER ) ) + 27 * 41 THEN NULL ELSE + 38 END AS INTEGER ) ) * - 40 THEN 76 + + ( + 8 ) END * - 11 AS col2
----
NULL

query I rowsort
SELECT - + 16 * ( - 62 ) * - + 24 + + 57 + + 20
----
-23731

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT + + COUNT( DISTINCT + 32 ) + 86
----
87

skipif mysql # not compatible
query I rowsort label-3612
SELECT + + COUNT ( DISTINCT + 32 ) + 86
----
87

query II rowsort
SELECT - 7 AS col0, 78 AS col0
----
-7
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3614
SELECT ALL - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) + + - MIN( DISTINCT + + 26 )
----
NULL

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

query I rowsort
SELECT DISTINCT - - ( 19 ) + + 51
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT ALL 56 + + 71 * - MIN( ALL 68 ) * + 16
----
-77192

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL 56 + + 71 * - MIN ( ALL 68 ) * + 16
----
-77192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3617
SELECT - 61 - COUNT( * ), ( - 21 ) * 42 + - 47 - + COUNT( * ) + + + 59 + + 23 / - CAST( NULL AS SIGNED ) AS col0
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-3617
SELECT - 61 - COUNT ( * ), ( - 21 ) * 42 + - 47 - + COUNT ( * ) + + + 59 + + 23 / - CAST ( NULL AS INTEGER ) AS col0
----
-62
NULL

query II rowsort
SELECT DISTINCT ( 61 ) AS col0, 47 + - 7 * 76
----
61
-485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3619
SELECT ALL CAST( - MIN( + 99 ) AS SIGNED ), 95 * + MAX( + 60 ) AS col1
----
-99
5700

skipif mysql # not compatible
query II rowsort label-3619
SELECT ALL CAST ( - MIN ( + 99 ) AS INTEGER ), 95 * + MAX ( + 60 ) AS col1
----
-99
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT - COUNT( * ) * + NULLIF ( 76, - 93 ) * - 93 + - NULLIF ( 94, - COUNT( * ) * + + 59 + 48 ) + + 82
----
7056

skipif mysql # not compatible
query I rowsort label-3620
SELECT - COUNT ( * ) * + NULLIF ( 76, - 93 ) * - 93 + - NULLIF ( 94, - COUNT ( * ) * + + 59 + 48 ) + + 82
----
7056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3621
SELECT + 84 - + 8 - - SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) * + - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3621
SELECT + 84 - + 8 - - SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) * + - 42 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3622
SELECT DISTINCT COALESCE ( - + COUNT( * ), - NULLIF ( - CAST( NULL AS SIGNED ), + 3 * 67 + AVG ( 61 ) ) DIV + 48 + ( + - 33 ) ) DIV - 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT COALESCE ( - + COUNT ( * ), - NULLIF ( - CAST ( NULL AS INTEGER ), + 3 * 67 + AVG ( 61 ) ) / + 48 + ( + - 33 ) ) / - 70 AS col1
----
0

query I rowsort
SELECT DISTINCT ( 9 ) * - 40 * 34
----
-12240

onlyif mysql # DIV for integer division: 
query I rowsort label-3624
SELECT DISTINCT COALESCE ( - 86, - 46 + + 26 ) DIV - ( 32 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT COALESCE ( - 86, - 46 + + 26 ) / - ( 32 ) AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3625
SELECT + COUNT( * ) DIV 58 DIV + - 61
----
0

skipif mysql # not compatible
query I rowsort label-3625
SELECT + COUNT ( * ) / 58 / + - 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT ALL MAX( ALL + + 48 ) * - + MIN( 20 ) AS col0
----
-960

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL MAX ( ALL + + 48 ) * - + MIN ( 20 ) AS col0
----
-960

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

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

query I rowsort
SELECT ALL + 73 * - - ( 47 ) col1
----
3431

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

skipif mysql # not compatible
query I rowsort label-3629
SELECT + 80 + + CAST ( NULL AS INTEGER ) * - 25
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3631
SELECT DISTINCT + - 9 DIV 27 + - 64 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT + - 9 / 27 + - 64 AS col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3632
SELECT + 80 * + + COUNT( * ) + + + 67 + - CASE - NULLIF ( 93, + + 18 / - + COALESCE ( + + 71, 11 + - 11 + - COUNT( DISTINCT - 96 ), + MIN( 7 ) ) ) WHEN - 35 THEN - 22 + - 50 * + CAST( - 49 * + 30 AS SIGNED ) WHEN - CAST( NULL AS SIGNED ) THEN NULL END * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT + 80 * + + COUNT ( * ) + + + 67 + - CASE - NULLIF ( 93, + + 18 / - + COALESCE ( + + 71, 11 + - 11 + - COUNT ( DISTINCT - 96 ), + MIN ( 7 ) ) ) WHEN - 35 THEN - 22 + - 50 * + CAST ( - 49 * + 30 AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL END * + 10
----
NULL

query I rowsort
SELECT - 67 * - 83 + + 20 + 58 AS col1
----
5639

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3635
SELECT 5 DIV + ( 49 ) + + 10 - + 40 + 74 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3635
SELECT 5 / + ( 49 ) + + 10 - + 40 + 74 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT + 44 + + ( - 81 ) * 83 - COUNT( + ( - 16 ) )
----
-6680

skipif mysql # not compatible
query I rowsort label-3636
SELECT + 44 + + ( - 81 ) * 83 - COUNT ( + ( - 16 ) )
----
-6680

query I rowsort
SELECT DISTINCT + - 46 + 71 * + 23 AS col2
----
1587

query I rowsort
SELECT ALL - 66 + - 59 AS col0
----
-125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3639
SELECT DISTINCT - AVG ( ALL - 17 ) / - CASE - - 36 WHEN + 87 THEN + COUNT( * ) END * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT - AVG ( ALL - 17 ) / - CASE - - 36 WHEN + 87 THEN + COUNT ( * ) END * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 78 col1, 46 + - + 47 - 3 * 32 AS col1
----
-78
-97

query I rowsort
SELECT DISTINCT + 37 * - - 51 * + 47
----
88689

query II rowsort
SELECT 23, + 1 col1
----
23
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3643
SELECT CAST( - - 17 AS SIGNED ) / ( + MIN( + 7 ) ) / ( - + 27 ) + - ( - + CASE + - AVG ( + 47 ) WHEN 21 THEN NULL WHEN - - CAST( NULL AS SIGNED ) THEN NULL WHEN 39 * CASE CAST( AVG ( ALL 72 ) AS SIGNED ) WHEN - 8 THEN + 76 ELSE + 22 * NULLIF ( 16, 64 ) + 42 END THEN + 76 + + 31 WHEN CAST( - 16 AS SIGNED ) / + 91 THEN NULL ELSE NULL END ) + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3643
SELECT CAST ( - - 17 AS INTEGER ) / ( + MIN ( + 7 ) ) / ( - + 27 ) + - ( - + CASE + - AVG ( + 47 ) WHEN 21 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN NULL WHEN 39 * CASE CAST ( AVG ( ALL 72 ) AS INTEGER ) WHEN - 8 THEN + 76 ELSE + 22 * NULLIF ( 16, 64 ) + 42 END THEN + 76 + + 31 WHEN CAST ( - 16 AS INTEGER ) / + 91 THEN NULL ELSE NULL END ) + 27 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3644
SELECT 4 * + 86 * 18, CAST( NULL AS SIGNED ) - - + 16 col1
----
6192
NULL

skipif mysql # not compatible
query II rowsort label-3644
SELECT 4 * + 86 * 18, CAST ( NULL AS INTEGER ) - - + 16 col1
----
6192
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3645
SELECT + MAX( - + 1 ) * COUNT( * ) DIV 9 + - 29 + - 11 + + - 52 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3645
SELECT + MAX ( - + 1 ) * COUNT ( * ) / 9 + - 29 + - 11 + + - 52 AS col2
----
-92

query I rowsort
SELECT 78 * + 86 AS col2
----
6708

query I rowsort
SELECT COALESCE ( - 0, 72 ) + 72
----
72

query I rowsort
SELECT 1 + 48 + - - 32
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3649
SELECT DISTINCT - 2 - COUNT( * ) + + - 67 AS col2, 86 + - + 56 col0
----
-70
30

skipif mysql # not compatible
query II rowsort label-3649
SELECT DISTINCT - 2 - COUNT ( * ) + + - 67 AS col2, 86 + - + 56 col0
----
-70
30

onlyif mysql # aggregate syntax: 
query II rowsort label-3650
SELECT ALL 53, COUNT( 7 ) / - 58 + + 16 - + CASE 62 WHEN 58 THEN 64 WHEN + COUNT( * ) / - SUM( - 12 ) + + ( 96 ) THEN 65 + - COUNT( * ) END - 42 * + MAX( - 20 ) AS col1
----
53
NULL

skipif mysql # not compatible
query II rowsort label-3650
SELECT ALL 53, COUNT ( 7 ) / - 58 + + 16 - + CASE 62 WHEN 58 THEN 64 WHEN + COUNT ( * ) / - SUM ( - 12 ) + + ( 96 ) THEN 65 + - COUNT ( * ) END - 42 * + MAX ( - 20 ) AS col1
----
53
NULL

query II rowsort
SELECT DISTINCT 5, + 50 col0
----
5
50

query I rowsort
SELECT DISTINCT NULLIF ( + 52, - ( - AVG ( DISTINCT - + 39 ) ) ) * 99 + + 41
----
5189

query II rowsort
SELECT DISTINCT 59 AS col2, 10 * + 20
----
59
200

query II rowsort
SELECT ALL 11 col1, 33 AS col2
----
11
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT COUNT( * ) * - 25 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3655
SELECT COUNT ( * ) * - 25 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT DISTINCT + COALESCE ( + 0, 58 ) * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT + COALESCE ( + 0, 58 ) * COUNT ( * )
----
0

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

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

query I rowsort
SELECT 45 + + - 1 + - 12
----
32

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

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

query I rowsort
SELECT 19 * 30
----
570

query II rowsort
SELECT 21 AS col1, + 68 AS col0
----
21
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL + 2 * - COUNT( * ) + 87 col0
----
85

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL + 2 * - COUNT ( * ) + 87 col0
----
85

query I rowsort
SELECT DISTINCT - - 69 + + + NULLIF ( + ( 57 ), + 36 ) AS col2
----
126

query I rowsort
SELECT ALL 9 + + - 83
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT ALL - NULLIF ( - 56, 80 * - SUM( - 79 ) ) + + 91
----
147

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL - NULLIF ( - 56, 80 * - SUM ( - 79 ) ) + + 91
----
147

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3667
SELECT - ( ( + CAST( NULL AS DECIMAL ) ) ) / COUNT( * ) - - 71 + 14 - + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3667
SELECT - ( ( + CAST ( NULL AS REAL ) ) ) / COUNT ( * ) - - 71 + 14 - + 25 AS col1
----
NULL

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

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

query I rowsort
SELECT + 1 * 23 AS col0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3670
SELECT ALL - NULLIF ( - 82, CASE - 45 WHEN - - 96 THEN NULL WHEN + 50 * + + 12 + 41 THEN - 8 * - 99 + + 24 * 63 DIV - - CASE + 74 WHEN 34 THEN NULL ELSE + 94 - - 52 * 65 END END - + 1 DIV COUNT( * ) ) DIV + 69
----
1

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL - NULLIF ( - 82, CASE - 45 WHEN - - 96 THEN NULL WHEN + 50 * + + 12 + 41 THEN - 8 * - 99 + + 24 * 63 / - - CASE + 74 WHEN 34 THEN NULL ELSE + 94 - - 52 * 65 END END - + 1 / COUNT ( * ) ) / + 69
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT ALL - ( - 92 ) + + + MIN( - + 30 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL - ( - 92 ) + + + MIN ( - + 30 ) AS col2
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3672
SELECT + 45 * - - 66 * 0 DIV + 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3672
SELECT + 45 * - - 66 * 0 / + 45 AS col1
----
0

query I rowsort
SELECT ALL + 87 * + 73
----
6351

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT DISTINCT MAX( ALL - 34 ) + + SUM( 70 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT MAX ( ALL - 34 ) + + SUM ( 70 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT DISTINCT - 68 - + + 31 + - 68 + - ( + 76 ) * + 52 * COUNT( * )
----
-4119

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT - 68 - + + 31 + - 68 + - ( + 76 ) * + 52 * COUNT ( * )
----
-4119

query I rowsort
SELECT ( + 26 ) * 14 AS col1
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT ALL + CASE + ( + CASE - 63 WHEN 35 THEN - 71 END ) WHEN + NULLIF ( + 21, + 87 + 87 + + 2 * - 26 * MAX( - 35 ) ) * 58 THEN NULL WHEN 30 THEN + 92 END * + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL + CASE + ( + CASE - 63 WHEN 35 THEN - 71 END ) WHEN + NULLIF ( + 21, + 87 + 87 + + 2 * - 26 * MAX ( - 35 ) ) * 58 THEN NULL WHEN 30 THEN + 92 END * + 0 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3678
SELECT DISTINCT 96 DIV - 18
----
-5

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT 96 / - 18
----
-5

query II rowsort
SELECT ALL 30 * - - 93, 0 col2
----
2790
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3680
SELECT 29 DIV - 53 * + 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3680
SELECT 29 / - 53 * + 33 AS col2
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3682
SELECT NULLIF ( + - 98, + - NULLIF ( - + 12, - 35 DIV - + 64 - + 95 ) ) + - - 87 DIV - 30
----
-100

skipif mysql # not compatible
query I rowsort label-3682
SELECT NULLIF ( + - 98, + - NULLIF ( - + 12, - 35 / - + 64 - + 95 ) ) + - - 87 / - 30
----
-100

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT ALL + 16 * - COUNT( * ) * + 13
----
-208

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL + 16 * - COUNT ( * ) * + 13
----
-208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3685
SELECT 19 DIV + 84 * - ( - 38 ) * 33 * - + COUNT( * ) + + 35 DIV - 14 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3685
SELECT 19 / + 84 * - ( - 38 ) * 33 * - + COUNT ( * ) + + 35 / - 14 AS col1
----
-2

query I rowsort
SELECT ALL - 44 + 43 + 37 - - + 91 AS col1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT COUNT( - ( 39 ) ) * 17 + + MIN( + 0 ) * COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-3687
SELECT COUNT ( - ( 39 ) ) * 17 + + MIN ( + 0 ) * COUNT ( * ) AS col0
----
17

query I rowsort
SELECT COALESCE ( 95, + - 30 ) AS col2
----
95

query I rowsort
SELECT ALL - 15 + + 25 AS col2
----
10

query I rowsort
SELECT ALL + + 79 + + 90 + - - 27 AS col2
----
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3691
SELECT DISTINCT + COUNT( * ) * + 2 + AVG ( ALL 96 ) / - - CAST( NULL AS SIGNED ) + - ( + 44 ) AS col1, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3691
SELECT DISTINCT + COUNT ( * ) * + 2 + AVG ( ALL 96 ) / - - CAST ( NULL AS INTEGER ) + - ( + 44 ) AS col1, + COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT + 99 * + MIN( ALL - + 3 ) + - - 20 * 37 + - 59
----
384

skipif mysql # not compatible
query I rowsort label-3692
SELECT + 99 * + MIN ( ALL - + 3 ) + - - 20 * 37 + - 59
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT + 8 * + 32 + + COUNT( * ) * 72 + - COUNT( * ) + COALESCE ( - 38, - 82 ) * - - COUNT( * ) - 17 - 47 + - 68 - + COUNT( * ) * + CASE WHEN NOT 14 IS NULL THEN - 19 END
----
176

skipif mysql # not compatible
query I rowsort label-3693
SELECT + 8 * + 32 + + COUNT ( * ) * 72 + - COUNT ( * ) + COALESCE ( - 38, - 82 ) * - - COUNT ( * ) - 17 - 47 + - 68 - + COUNT ( * ) * + CASE WHEN NOT 14 IS NULL THEN - 19 END
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT ALL - 30 * 28 * 7 + + + COUNT( * ) - - 44 * - 73 AS col0
----
-9091

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL - 30 * 28 * 7 + + + COUNT ( * ) - - 44 * - 73 AS col0
----
-9091

onlyif mysql # DIV for integer division: 
query I rowsort label-3695
SELECT 19 DIV + - ( + - 89 ) + + 2 + + + 63 * - 48
----
-3022

skipif mysql # not compatible
query I rowsort label-3695
SELECT 19 / + - ( + - 89 ) + + 2 + + + 63 * - 48
----
-3022

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3696
SELECT 69 * 54 DIV - + 42 + + 9 + 59 * - MAX( - 88 ) * + ( + - 52 ) + - - ( - 64 ) AS col1
----
-270127

skipif mysql # not compatible
query I rowsort label-3696
SELECT 69 * 54 / - + 42 + + 9 + 59 * - MAX ( - 88 ) * + ( + - 52 ) + - - ( - 64 ) AS col1
----
-270127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3697
SELECT ALL - + MAX( 34 ) DIV COUNT( * ) + + - CAST( + 18 AS SIGNED ) + 76 * - COUNT( * ) AS col0
----
-128

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL - + MAX ( 34 ) / COUNT ( * ) + + - CAST ( + 18 AS INTEGER ) + 76 * - COUNT ( * ) AS col0
----
-128

query II rowsort
SELECT - + 84 * 79 AS col0, 73 AS col1
----
-6636
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3699
SELECT + 15 * - + CAST( 32 AS SIGNED ) * - + ( - + CASE + 39 WHEN - + CASE 83 WHEN - + 16 THEN + 16 END THEN NULL WHEN - + 80 THEN + + 91 * - 27 * + + 83 END ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3699
SELECT + 15 * - + CAST ( 32 AS INTEGER ) * - + ( - + CASE + 39 WHEN - + CASE 83 WHEN - + 16 THEN + 16 END THEN NULL WHEN - + 80 THEN + + 91 * - 27 * + + 83 END ) / COUNT ( * )
----
NULL

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

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

query II rowsort
SELECT DISTINCT + 46 AS col1, + 3 + 62 * - + 11 AS col0
----
46
-679

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3702
SELECT + 26 * + CAST( - - 3 AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-3702
SELECT + 26 * + CAST ( - - 3 AS INTEGER )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3703
SELECT + CAST( + 99 AS SIGNED ) * 65 AS col1, - 77 * + 62 + - 11 / + NULLIF ( + - SUM( - CAST( NULL AS SIGNED ) ), + 47 ) * - 37
----
6435
NULL

skipif mysql # not compatible
query II rowsort label-3703
SELECT + CAST ( + 99 AS INTEGER ) * 65 AS col1, - 77 * + 62 + - 11 / + NULLIF ( + - SUM ( - CAST ( NULL AS INTEGER ) ), + 47 ) * - 37
----
6435
NULL

query I rowsort
SELECT + 2 * 89 AS col0
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT DISTINCT COUNT( * ) * 8 * + SUM( 45 )
----
360

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT COUNT ( * ) * 8 * + SUM ( 45 )
----
360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3706
SELECT DISTINCT + 46 AS col0, CAST( 90 AS SIGNED )
----
46
90

skipif mysql # not compatible
query II rowsort label-3706
SELECT DISTINCT + 46 AS col0, CAST ( 90 AS INTEGER )
----
46
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3707
SELECT ALL CASE + + CAST( - + 24 AS DECIMAL ) WHEN + 81 / - 30 + - + 33 THEN NULL WHEN - 75 * + 59 THEN - 36 * - - 25 * COUNT( + NULLIF ( + 70, - 79 ) ) * + 17 + + 80 * - 0 ELSE NULL END * 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL CASE + + CAST ( - + 24 AS REAL ) WHEN + 81 / - 30 + - + 33 THEN NULL WHEN - 75 * + 59 THEN - 36 * - - 25 * COUNT ( + NULLIF ( + 70, - 79 ) ) * + 17 + + 80 * - 0 ELSE NULL END * 44 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT MIN( 87 )
----
87

skipif mysql # not compatible
query I rowsort label-3709
SELECT MIN ( 87 )
----
87

query I rowsort
SELECT + 36 - - 65
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT DISTINCT 42 + MIN( ALL - 34 ) * + 70
----
-2338

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT 42 + MIN ( ALL - 34 ) * + 70
----
-2338

query I rowsort
SELECT ALL ( 63 ) + - 41
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3713
SELECT ALL 77 DIV - + 30 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL 77 / - + 30 AS col2
----
-2

query I rowsort
SELECT ALL 88 + - + 3 * - 91 - + 94 + - - 34 AS col2
----
301

query I rowsort
SELECT - ( NULLIF ( - 57, - 92 ) ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT + MIN( DISTINCT 86 ) + - 94 + + 60 + - + COUNT( DISTINCT 1 )
----
51

skipif mysql # not compatible
query I rowsort label-3716
SELECT + MIN ( DISTINCT 86 ) + - 94 + + 60 + - + COUNT ( DISTINCT 1 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT ALL ( + COUNT( * ) ) + + 31 + - + 95
----
-63

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL ( + COUNT ( * ) ) + + 31 + - + 95
----
-63

query II rowsort
SELECT ALL - ( + 29 ) + 10 AS col0, 47
----
-19
47

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT DISTINCT + - COUNT( * ) + - - 52
----
51

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT + - COUNT ( * ) + - - 52
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3722
SELECT ALL - + 39 + - COUNT( * ) DIV NULLIF ( + 77, - 93 + - - 12 + - 97 )
----
-39

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL - + 39 + - COUNT ( * ) / NULLIF ( + 77, - 93 + - - 12 + - 97 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3723
SELECT ALL + ( - + 83 ) - + + ( - CAST( + - 75 AS SIGNED ) ) AS col2
----
-158

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL + ( - + 83 ) - + + ( - CAST ( + - 75 AS INTEGER ) ) AS col2
----
-158

query I rowsort
SELECT - - 23 * 44 AS col2
----
1012

query I rowsort
SELECT DISTINCT 14 - - 81
----
95

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

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

query I rowsort
SELECT DISTINCT + + NULLIF ( + 40, + - ( - 17 ) )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3728
SELECT - 81 col2, MAX( DISTINCT - - 32 ) - - 77 + + + 71 col0
----
-81
180

skipif mysql # not compatible
query II rowsort label-3728
SELECT - 81 col2, MAX ( DISTINCT - - 32 ) - - 77 + + + 71 col0
----
-81
180

query I rowsort
SELECT - ( + ( + 27 ) ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT ALL - COUNT( * ) * - - NULLIF ( - 86, 70 ) * 32
----
2752

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL - COUNT ( * ) * - - NULLIF ( - 86, 70 ) * 32
----
2752

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3731
SELECT + NULLIF ( - 39, + 93 * + + 24 * - CAST( - 41 AS SIGNED ) - - ( + 82 ) + + 48 ) AS col1, 28 + - 18 + + - 34 * 15
----
-39
-500

skipif mysql # not compatible
query II rowsort label-3731
SELECT + NULLIF ( - 39, + 93 * + + 24 * - CAST ( - 41 AS INTEGER ) - - ( + 82 ) + + 48 ) AS col1, 28 + - 18 + + - 34 * 15
----
-39
-500

onlyif mysql # DIV for integer division: 
query I rowsort label-3732
SELECT - 97 DIV + + 88 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3732
SELECT - 97 / + + 88 AS col0
----
-1

query I rowsort
SELECT + 2 * 12 AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3734
SELECT ALL + COALESCE ( - CAST( - 18 AS SIGNED ), + + 56, + - 42 DIV + + AVG ( ALL 69 ) )
----
18

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL + COALESCE ( - CAST ( - 18 AS INTEGER ), + + 56, + - 42 / + + AVG ( ALL 69 ) )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3735
SELECT ALL + COUNT( * ) col0, 12 DIV + COUNT( * ) AS col1
----
1
12

skipif mysql # not compatible
query II rowsort label-3735
SELECT ALL + COUNT ( * ) col0, 12 / + COUNT ( * ) AS col1
----
1
12

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

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

query I rowsort
SELECT COALESCE ( - 51, + 49 )
----
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT ALL - 84 * + 95 + - - COUNT( DISTINCT + 50 ) * - 48
----
-8028

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL - 84 * + 95 + - - COUNT ( DISTINCT + 50 ) * - 48
----
-8028

query I rowsort
SELECT ALL - 0 * + + ( - 70 ) + + 9
----
9

query I rowsort
SELECT 25 * 52 + + 98 + - + 46 * + 67 AS col0
----
-1684

query I rowsort
SELECT CASE 8 WHEN - - 53 THEN - - 28 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT - 31 DIV ( + + 81 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3743
SELECT - 31 / ( + + 81 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT 62 * COUNT( * ) * + 17 + 79 - - ( 2 ) + - 2 * + 24 AS col0
----
1087

skipif mysql # not compatible
query I rowsort label-3744
SELECT 62 * COUNT ( * ) * + 17 + 79 - - ( 2 ) + - 2 * + 24 AS col0
----
1087

query I rowsort
SELECT + 95 - + - 83 col0
----
178

query II rowsort
SELECT ALL + 84, + 44 AS col0
----
84
44

query I rowsort
SELECT + 13 + 95
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT + SUM( + NULLIF ( + 31, + 9 / - 44 + 72 ) ) * 82 AS col1
----
2542

skipif mysql # not compatible
query I rowsort label-3748
SELECT + SUM ( + NULLIF ( + 31, + 9 / - 44 + 72 ) ) * 82 AS col1
----
2542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3749
SELECT ALL CAST( + ( 42 ) AS SIGNED ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL CAST ( + ( 42 ) AS INTEGER ) AS col1
----
42

query I rowsort
SELECT ALL 97 * - 19 * + 87 + - 99 + - + 28
----
-160468

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT DISTINCT - 90 * 75 + - ( COUNT( * ) )
----
-6751

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT - 90 * 75 + - ( COUNT ( * ) )
----
-6751

query I rowsort
SELECT ALL 71 * - - 76 * - ( - - 28 ) col0
----
-151088

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT + 77 * + MAX( + 2 )
----
154

skipif mysql # not compatible
query I rowsort label-3753
SELECT + 77 * + MAX ( + 2 )
----
154

query I rowsort
SELECT ALL + 41 * + 98 + 45
----
4063

query II rowsort
SELECT ALL 70 AS col2, + 99
----
70
99

query I rowsort
SELECT DISTINCT 0 * + 29 * - 11 * - + 65
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3757
SELECT DISTINCT - 29, - COUNT( * ) * - COUNT( * ) * 84 AS col2
----
-29
84

skipif mysql # not compatible
query II rowsort label-3757
SELECT DISTINCT - 29, - COUNT ( * ) * - COUNT ( * ) * 84 AS col2
----
-29
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT + 54 * + COUNT( * ) - + 5 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3759
SELECT + 54 * + COUNT ( * ) - + 5 AS col1
----
49

query I rowsort
SELECT ALL - 32 - + 83
----
-115

query II rowsort
SELECT - 20 - + + NULLIF ( + - 43, + 4 ) AS col0, 18 * 2 AS col0
----
23
36

query I rowsort
SELECT DISTINCT 59 * - 46 + + 0 AS col2
----
-2714

query I rowsort
SELECT ALL - + 37 * 95 AS col2
----
-3515

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT ALL COUNT( * ) * 29 * + COALESCE ( - 63, - + ( - 45 ) ) + - ( + + 5 )
----
-1832

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL COUNT ( * ) * 29 * + COALESCE ( - 63, - + ( - 45 ) ) + - ( + + 5 )
----
-1832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3767
SELECT + 14 + SUM( ALL + 88 ) + 0 - + 71 + - 79 + - 55 DIV - 66 * - - 53
----
-48

skipif mysql # not compatible
query I rowsort label-3767
SELECT + 14 + SUM ( ALL + 88 ) + 0 - + 71 + - 79 + - 55 / - 66 * - - 53
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
SELECT 26 - + COALESCE ( + - COALESCE ( 85, + - 1 * 84 + 92 + NULLIF ( ( - 78 ), - + 51 + 96 ) + - - 91 / - 44 ), + - ( - COALESCE ( 85, - 8 + - 41 * + 67, - 60 + 20 ) ) ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT 26 - + COALESCE ( + - COALESCE ( 85, + - 1 * 84 + 92 + NULLIF ( ( - 78 ), - + 51 + 96 ) + - - 91 / - 44 ), + - ( - COALESCE ( 85, - 8 + - 41 * + 67, - 60 + 20 ) ) ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT - 49 * 93 + - COUNT( * ) + 26 AS col2
----
-4532

skipif mysql # not compatible
query I rowsort label-3769
SELECT - 49 * 93 + - COUNT ( * ) + 26 AS col2
----
-4532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3770
SELECT + CASE - - 40 WHEN + - 4 THEN + 45 WHEN 69 + - 46 * + + ( - - COALESCE ( - 31, - CAST( NULL AS SIGNED ) - + - ( - ( - ( + 31 ) ) ), + - 44 + - ( MAX( ( CAST( NULL AS SIGNED ) ) ) ), - 77 ) ) + ( + 64 ) * + 71 THEN 56 WHEN 42 + + CASE 13 WHEN ( + 81 ) THEN NULL WHEN - 81 THEN 82 * + 75 - - 48 ELSE NULL END THEN NULL END - + SUM( DISTINCT 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3770
SELECT + CASE - - 40 WHEN + - 4 THEN + 45 WHEN 69 + - 46 * + + ( - - COALESCE ( - 31, - CAST ( NULL AS INTEGER ) - + - ( - ( - ( + 31 ) ) ), + - 44 + - ( MAX ( ( CAST ( NULL AS INTEGER ) ) ) ), - 77 ) ) + ( + 64 ) * + 71 THEN 56 WHEN 42 + + CASE 13 WHEN ( + 81 ) THEN NULL WHEN - 81 THEN 82 * + 75 - - 48 ELSE NULL END THEN NULL END - + SUM ( DISTINCT 44 )
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3772
SELECT + COALESCE ( NULLIF ( + COUNT( * ), 83 - + 21 * - + 47 ), + 54 DIV + 40, + COUNT( + + 88 ) * 36 + + 98 + - 1 ) * 37 + 49 * - MAX( 70 )
----
-3393

skipif mysql # not compatible
query I rowsort label-3772
SELECT + COALESCE ( NULLIF ( + COUNT ( * ), 83 - + 21 * - + 47 ), + 54 / + 40, + COUNT ( + + 88 ) * 36 + + 98 + - 1 ) * 37 + 49 * - MAX ( 70 )
----
-3393

query I rowsort
SELECT + 10 * + 56 * + - 73 + - 49
----
-40929

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL 61 * MIN( + 56 ) AS col1
----
3416

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL 61 * MIN ( + 56 ) AS col1
----
3416

onlyif mysql # DIV for integer division: 
query I rowsort label-3776
SELECT 56 DIV 84 + - - 47 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-3776
SELECT 56 / 84 + - - 47 AS col0
----
47

query I rowsort
SELECT 14 + + - 66 * 88 + + 7 AS col1
----
-5787

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT DISTINCT + COUNT( * ) + + CASE - 11 WHEN + - 64 THEN + 33 END * - 4 * + MAX( + ( 25 ) ) * - + COUNT( * ) + - - 34 + 92 - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT + COUNT ( * ) + + CASE - 11 WHEN + - 64 THEN + 33 END * - 4 * + MAX ( + ( 25 ) ) * - + COUNT ( * ) + - - 34 + 92 - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT ALL - MIN( - 3 ) * - 72 + NULLIF ( 28, + - 14 ) AS col2
----
-188

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL - MIN ( - 3 ) * - 72 + NULLIF ( 28, + - 14 ) AS col2
----
-188

query I rowsort
SELECT ALL + 30 + + 9 + - - 49
----
88

query I rowsort
SELECT 13 * - + 34 AS col2
----
-442

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL - 57 * - - 43 * - CASE - COUNT( + 74 ) WHEN + 75 * + + SUM( 58 ) THEN 11 + + COALESCE ( + - COUNT( * ), - NULLIF ( - 22, + - ( - ( - AVG ( DISTINCT + 47 ) ) ) ) * - 55, - ( + 21 ) ) * + 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL - 57 * - - 43 * - CASE - COUNT ( + 74 ) WHEN + 75 * + + SUM ( 58 ) THEN 11 + + COALESCE ( + - COUNT ( * ), - NULLIF ( - 22, + - ( - ( - AVG ( DISTINCT + 47 ) ) ) ) * - 55, - ( + 21 ) ) * + 31 END
----
NULL

query II rowsort
SELECT 58 + + 80 AS col0, - 63 * 70 AS col1
----
138
-4410

query I rowsort
SELECT 38 * + + 28 * 41
----
43624

onlyif mysql # DIV for integer division: 
query I rowsort label-3785
SELECT DISTINCT - 67 + - - 52 DIV - 32
----
-68

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT - 67 + - - 52 / - 32
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT DISTINCT 89 + MAX( - 59 )
----
30

skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT 89 + MAX ( - 59 )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3787
SELECT ALL 24 DIV - + 89 * - + 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL 24 / - + 89 * - + 38 AS col0
----
0

query I rowsort
SELECT 35 + + - 29 * - 17 - + - 49 * + 80 * - - ( - 46 ) - 42 col1
----
-179834

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT + SUM( ALL 39 ) + + + MIN( DISTINCT + + 86 )
----
125

skipif mysql # not compatible
query I rowsort label-3789
SELECT + SUM ( ALL 39 ) + + + MIN ( DISTINCT + + 86 )
----
125

query I rowsort
SELECT DISTINCT - + 60 - 12 - 86
----
-158

query I rowsort
SELECT ALL + - 98 * 53 * 50 col0
----
-259700

query I rowsort
SELECT ALL ( - 15 ) * - 47 * + 8
----
5640

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

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

query I rowsort
SELECT 71 + + - 77 AS col2
----
-6

query II rowsort
SELECT ALL - 51 * - - 45 AS col1, - ( 85 )
----
-2295
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3796
SELECT + CAST( + 98 AS SIGNED ) + + 85 AS col0
----
183

skipif mysql # not compatible
query I rowsort label-3796
SELECT + CAST ( + 98 AS INTEGER ) + + 85 AS col0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT + 11 * - + 27 + - 67 - 15 * + 41 + COUNT( * ) + - 75
----
-1053

skipif mysql # not compatible
query I rowsort label-3797
SELECT + 11 * - + 27 + - 67 - 15 * + 41 + COUNT ( * ) + - 75
----
-1053

onlyif mysql # DIV for integer division: 
query I rowsort label-3798
SELECT 41 + - - ( + 74 ) DIV 58 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3798
SELECT 41 + - - ( + 74 ) / 58 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT DISTINCT 60 + - - 29 * - 28 + 16 * + CASE 91 WHEN - 0 THEN + MAX( ALL + 12 ) ELSE + 94 - + - 43 + MIN( + 7 ) END + - 73 * 32 AS col2
----
-784

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT 60 + - - 29 * - 28 + 16 * + CASE 91 WHEN - 0 THEN + MAX ( ALL + 12 ) ELSE + 94 - + - 43 + MIN ( + 7 ) END + - 73 * 32 AS col2
----
-784

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3800
SELECT 89 DIV + 90, ( COUNT( DISTINCT 32 ) ) - - 57 * - - 62 col0
----
0
3535

skipif mysql # not compatible
query II rowsort label-3800
SELECT 89 / + 90, ( COUNT ( DISTINCT 32 ) ) - - 57 * - - 62 col0
----
0
3535

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT ALL MAX( - + 61 ) + COALESCE ( 30, + COUNT( * ) ) + - COUNT( * ) * COUNT( * ) + - 31 * - 91
----
2789

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL MAX ( - + 61 ) + COALESCE ( 30, + COUNT ( * ) ) + - COUNT ( * ) * COUNT ( * ) + - 31 * - 91
----
2789

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT DISTINCT - COUNT( * ) * 86 * - - 8 + - 26
----
-714

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT - COUNT ( * ) * 86 * - - 8 + - 26
----
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT ALL - MIN( - + ( - 63 ) ) * - + MIN( ALL - 82 ) * + 70 + + CASE + COALESCE ( - CASE - - 9 WHEN - - 27 + - 94 - - + 36 THEN + 52 * + MAX( - 78 ) + + 40 + - + 3 / + 75 END, - 57 / + 45 ) WHEN COUNT( 99 ) + 41 THEN 27 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL - MIN ( - + ( - 63 ) ) * - + MIN ( ALL - 82 ) * + 70 + + CASE + COALESCE ( - CASE - - 9 WHEN - - 27 + - 94 - - + 36 THEN + 52 * + MAX ( - 78 ) + + 40 + - + 3 / + 75 END, - 57 / + 45 ) WHEN COUNT ( 99 ) + 41 THEN 27 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT COUNT( * ) * - 72 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-3804
SELECT COUNT ( * ) * - 72 AS col1
----
-72

query I rowsort
SELECT 62 * - 70 - - 54 * 56 AS col1
----
-1316

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT ALL COUNT( * ) * - 73 * - - MAX( - + 97 )
----
7081

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL COUNT ( * ) * - 73 * - - MAX ( - + 97 )
----
7081

onlyif mysql # DIV for integer division: 
query I rowsort label-3807
SELECT ( - 49 ) DIV - 48 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3807
SELECT ( - 49 ) / - 48 AS col2
----
1

query I rowsort
SELECT 49 * + 41 AS col0
----
2009

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT MIN( - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-3809
SELECT MIN ( - 12 )
----
-12

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

skipif mysql # not compatible
query I rowsort label-3810
SELECT 58 * + COUNT ( * ) col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT MIN( - 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-3811
SELECT MIN ( - 85 ) AS col0
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3812
SELECT ALL COALESCE ( 51, ( 47 ) * ( - 21 ) * ( + 77 ) - - + COALESCE ( - + 67, + 54 * - CASE 20 WHEN - - AVG ( 29 ) + + ( - COUNT( * ) ) * + 8 THEN - 14 + - 25 * + COUNT( * ) ELSE + ( 27 ) + COUNT( * ) * 45 END * - ( AVG ( DISTINCT 90 ) DIV 54 + - 11 ) + 93 * - 53 ), - 80 ) * + 4 + ( - 11 ) AS col2
----
193

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL COALESCE ( 51, ( 47 ) * ( - 21 ) * ( + 77 ) - - + COALESCE ( - + 67, + 54 * - CASE 20 WHEN - - AVG ( 29 ) + + ( - COUNT ( * ) ) * + 8 THEN - 14 + - 25 * + COUNT ( * ) ELSE + ( 27 ) + COUNT ( * ) * 45 END * - ( AVG ( DISTINCT 90 ) / 54 + - 11 ) + 93 * - 53 ), - 80 ) * + 4 + ( - 11 ) AS col2
----
193

query I rowsort
SELECT 62 * 31 * - 2 - - 28 AS col0
----
-3816

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT 48 * - 1 * + SUM( 45 )
----
-2160

skipif mysql # not compatible
query I rowsort label-3815
SELECT 48 * - 1 * + SUM ( 45 )
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL - NULLIF ( - + COALESCE ( + - 20, + 90 + - - 68 ), + COUNT( * ) + - + 72 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL - NULLIF ( - + COALESCE ( + - 20, + 90 + - - 68 ), + COUNT ( * ) + - + 72 ) AS col0
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3817
SELECT ALL + 27 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL + 27 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT + CASE 47 WHEN + - 77 * + 3 + - 86 THEN NULL WHEN - - COUNT( * ) + - - 36 + - + 66 THEN + 46 WHEN - 12 THEN - + 72 / - 80 + 4 * + 27 WHEN + 23 THEN NULL ELSE + + 24 - + - 42 END col0
----
66

skipif mysql # not compatible
query I rowsort label-3818
SELECT + CASE 47 WHEN + - 77 * + 3 + - 86 THEN NULL WHEN - - COUNT ( * ) + - - 36 + - + 66 THEN + 46 WHEN - 12 THEN - + 72 / - 80 + 4 * + 27 WHEN + 23 THEN NULL ELSE + + 24 - + - 42 END col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3819
SELECT - ( CASE - - SUM( ALL - 28 ) WHEN + CAST( ( - 36 ) AS SIGNED ) + ( + - COALESCE ( - 32, - COUNT( * ) * - - 16, - 78 ) ) / + 77 - + - 21 THEN - 11 ELSE NULL END ) + - - CAST( - 90 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3819
SELECT - ( CASE - - SUM ( ALL - 28 ) WHEN + CAST ( ( - 36 ) AS INTEGER ) + ( + - COALESCE ( - 32, - COUNT ( * ) * - - 16, - 78 ) ) / + 77 - + - 21 THEN - 11 ELSE NULL END ) + - - CAST ( - 90 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT - 82 - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-3820
SELECT - 82 - COUNT ( * )
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-3821
SELECT ALL + - COUNT( * ), 36 + + 16 AS col0
----
-1
52

skipif mysql # not compatible
query II rowsort label-3821
SELECT ALL + - COUNT ( * ), 36 + + 16 AS col0
----
-1
52

query II rowsort
SELECT + - 17 AS col0, 22 * 20 AS col2
----
-17
440

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT - NULLIF ( - 28, + SUM( 70 ) ) + - COUNT( * ) + + 72
----
99

skipif mysql # not compatible
query I rowsort label-3823
SELECT - NULLIF ( - 28, + SUM ( 70 ) ) + - COUNT ( * ) + + 72
----
99

query II rowsort
SELECT - - 76 col1, 8
----
76
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3825
SELECT ALL 54 AS col2, - NULLIF ( - COUNT( - ( + 44 ) ), - + 32 * - COALESCE ( + 87, COUNT( * ) + + + 90 * + 43, - + 12 * + 10 + - 33 ) ) * + CAST( ( + - NULLIF ( + - ( + 91 ), - ( + COUNT( * ) ) * CAST( + COUNT( * ) AS DECIMAL ) ) ) AS SIGNED ) * 28 + 91
----
54
2639

skipif mysql # not compatible
query II rowsort label-3825
SELECT ALL 54 AS col2, - NULLIF ( - COUNT ( - ( + 44 ) ), - + 32 * - COALESCE ( + 87, COUNT ( * ) + + + 90 * + 43, - + 12 * + 10 + - 33 ) ) * + CAST ( ( + - NULLIF ( + - ( + 91 ), - ( + COUNT ( * ) ) * CAST ( + COUNT ( * ) AS REAL ) ) ) AS INTEGER ) * 28 + 91
----
54
2639

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT DISTINCT + + 3 * - MAX( DISTINCT + - ( - + 35 ) ) + COALESCE ( + + 1, + 12 + - + 92 ) AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-3827
SELECT DISTINCT + + 3 * - MAX ( DISTINCT + - ( - + 35 ) ) + COALESCE ( + + 1, + 12 + - + 92 ) AS col1
----
-104

query II rowsort
SELECT - 20 + 64 + - 2 AS col1, + 68
----
42
68

query II rowsort
SELECT DISTINCT - 14 AS col0, + 73 + 33 * 96 + - 47
----
-14
3194

query I rowsort
SELECT - 82 + + 47 AS col0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3831
SELECT ALL - - 78 DIV - - 14 + + MIN( 75 )
----
80

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL - - 78 / - - 14 + + MIN ( 75 )
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-3832
SELECT - CASE - 19 WHEN - 67 + + 69 THEN ( + 99 ) * - + 46 * - - 46 * 23 * - + 81 / 22 * 5 WHEN - + 26 * 48 THEN NULL END * 0 * - 78 col2, 10 * + - MAX( + 27 )
----
NULL
-270

skipif mysql # not compatible
query II rowsort label-3832
SELECT - CASE - 19 WHEN - 67 + + 69 THEN ( + 99 ) * - + 46 * - - 46 * 23 * - + 81 / 22 * 5 WHEN - + 26 * 48 THEN NULL END * 0 * - 78 col2, 10 * + - MAX ( + 27 )
----
NULL
-270

query I rowsort
SELECT + 65 * 53
----
3445

query I rowsort
SELECT - 9 * + - ( 44 )
----
396

query II rowsort
SELECT 30, + 16 AS col1
----
30
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT - + 34 - - - 54 + - COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-3836
SELECT - + 34 - - - 54 + - COUNT ( * )
----
-89

query II rowsort
SELECT DISTINCT 67 AS col1, - 28 + - - 22
----
67
-6

query II rowsort
SELECT DISTINCT - 76 AS col0, 93
----
-76
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT DISTINCT - + 36 + + MIN( + 15 ) * 0 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT - + 36 + + MIN ( + 15 ) * 0 AS col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3840
SELECT ALL + CAST( NULL AS DECIMAL ) col2, CASE 9 WHEN - - 55 THEN + COUNT( * ) WHEN + 75 THEN + 5 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3840
SELECT ALL + CAST ( NULL AS REAL ) col2, CASE 9 WHEN - - 55 THEN + COUNT ( * ) WHEN + 75 THEN + 5 ELSE NULL END
----
NULL
NULL

query I rowsort
SELECT DISTINCT + 62 + + + 18 * - 34 * - 37 + - - 90
----
22796

query I rowsort
SELECT ALL - 29 + - 3 AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3843
SELECT - 38 + + + 86 - - 72 DIV 77 * + - CASE + ( + 20 ) WHEN 99 + - - 2 + + 70 + - CAST( NULL AS SIGNED ) THEN - 70 * - 8 ELSE 22 END DIV NULLIF ( 56, + 85 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-3843
SELECT - 38 + + + 86 - - 72 / 77 * + - CASE + ( + 20 ) WHEN 99 + - - 2 + + 70 + - CAST ( NULL AS INTEGER ) THEN - 70 * - 8 ELSE 22 END / NULLIF ( 56, + 85 ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT - CASE 1 WHEN + 90 + 94 - - COUNT( * ) * 38 / 25 / + 68 THEN - COALESCE ( - NULLIF ( 50, + - 27 * - - 42 ), - + ( + + 63 ), 37 ) + AVG ( DISTINCT - 36 ) WHEN - + COALESCE ( + 0, 89 + - 13 ) THEN - 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT - CASE 1 WHEN + 90 + 94 - - COUNT ( * ) * 38 / 25 / + 68 THEN - COALESCE ( - NULLIF ( 50, + - 27 * - - 42 ), - + ( + + 63 ), 37 ) + AVG ( DISTINCT - 36 ) WHEN - + COALESCE ( + 0, 89 + - 13 ) THEN - 3 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT + 96 - MAX( ALL 1 )
----
95

skipif mysql # not compatible
query I rowsort label-3846
SELECT + 96 - MAX ( ALL 1 )
----
95

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3848
SELECT + CASE ( COUNT( * ) ) WHEN 20 THEN + - 41 / - CAST( + COUNT( * ) AS SIGNED ) / + AVG ( ALL 0 ) * + CASE 21 WHEN - - COUNT( DISTINCT - 1 ) / + AVG ( ALL - 99 ) - - + CASE 6 WHEN - + COUNT( * ) / + 93 THEN 37 END + 75 THEN + 75 / - 53 WHEN 84 THEN NULL END + - 7 / AVG ( DISTINCT 95 * 6 ) + NULLIF ( COUNT( * ), + 81 * COUNT( * ) ) * CAST( NULL AS SIGNED ) ELSE - 79 / + 70 + + 7 END * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT + CASE ( COUNT ( * ) ) WHEN 20 THEN + - 41 / - CAST ( + COUNT ( * ) AS INTEGER ) / + AVG ( ALL 0 ) * + CASE 21 WHEN - - COUNT ( DISTINCT - 1 ) / + AVG ( ALL - 99 ) - - + CASE 6 WHEN - + COUNT ( * ) / + 93 THEN 37 END + 75 THEN + 75 / - 53 WHEN 84 THEN NULL END + - 7 / AVG ( DISTINCT 95 * 6 ) + NULLIF ( COUNT ( * ), + 81 * COUNT ( * ) ) * CAST ( NULL AS INTEGER ) ELSE - 79 / + 70 + + 7 END * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT ALL + 2 * + CAST( NULL AS SIGNED ) + 19 - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL + 2 * + CAST ( NULL AS INTEGER ) + 19 - + 92
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ALL COUNT( * ) * - - 84 - - CASE WHEN ( NULL ) BETWEEN NULL AND 60 THEN + 59 END + + 45 + - 69 * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL COUNT ( * ) * - - 84 - - CASE WHEN ( NULL ) BETWEEN NULL AND 60 THEN + 59 END + + 45 + - 69 * + 32
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3852
SELECT + 60 + + 3 + + - 87 DIV + 79
----
62

skipif mysql # not compatible
query I rowsort label-3852
SELECT + 60 + + 3 + + - 87 / + 79
----
62

query I rowsort
SELECT ALL 48 * + + 52 AS col0
----
2496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3854
SELECT + 54 * - 88 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3854
SELECT + 54 * - 88 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3855
SELECT DISTINCT 60 * + 75, 50 - COALESCE ( 49, + ( + CAST( 11 AS SIGNED ) ) + 56, + 98 * - 84, + - 43 + 9 ) * 97 col2
----
4500
-4703

skipif mysql # not compatible
query II rowsort label-3855
SELECT DISTINCT 60 * + 75, 50 - COALESCE ( 49, + ( + CAST ( 11 AS INTEGER ) ) + 56, + 98 * - 84, + - 43 + 9 ) * 97 col2
----
4500
-4703

onlyif mysql # aggregate syntax: 
query II rowsort label-3856
SELECT + MAX( 72 ) AS col2, COUNT( ALL - - 14 ) col1
----
72
1

skipif mysql # not compatible
query II rowsort label-3856
SELECT + MAX ( 72 ) AS col2, COUNT ( ALL - - 14 ) col1
----
72
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3857
SELECT + ( - 40 ) AS col0, COUNT( * ) + 35 col0
----
-40
36

skipif mysql # not compatible
query II rowsort label-3857
SELECT + ( - 40 ) AS col0, COUNT ( * ) + 35 col0
----
-40
36

query I rowsort
SELECT ALL 12 * - 82 AS col2
----
-984

query I rowsort
SELECT - CASE - ( 26 ) WHEN - + 73 THEN NULL WHEN + 31 THEN + 24 WHEN - 3 + + 78 THEN - 78 ELSE - 99 END + - + 1 AS col2
----
98

query I rowsort
SELECT COALESCE ( - 9, + 34 * + 87 ) AS col2
----
-9

query I rowsort
SELECT DISTINCT ( 92 ) * + 56 + + 62 + 88
----
5302

onlyif mysql # DIV for integer division: 
query I rowsort label-3862
SELECT DISTINCT - 54 DIV + + 93 + 9 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT - 54 / + + 93 + 9 AS col0
----
9

query I rowsort
SELECT DISTINCT + 62 * - + 72
----
-4464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3864
SELECT - 27 * CAST( + - CAST( - - 77 AS SIGNED ) AS SIGNED ) * + 39
----
81081

skipif mysql # not compatible
query I rowsort label-3864
SELECT - 27 * CAST ( + - CAST ( - - 77 AS INTEGER ) AS INTEGER ) * + 39
----
81081

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3865
SELECT + + 60 * 83 + - CAST( NULL AS SIGNED ) * - + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3865
SELECT + + 60 * 83 + - CAST ( NULL AS INTEGER ) * - + 62 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT - COUNT( * ) - 46 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-3866
SELECT - COUNT ( * ) - 46 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT DISTINCT + 18 * + CASE + 82 WHEN 90 THEN 92 + - MIN( ALL - - 62 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT + 18 * + CASE + 82 WHEN 90 THEN 92 + - MIN ( ALL - - 62 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + ( + 27 ) * - 82 * + 88 AS col1
----
-194832

query I rowsort
SELECT ALL - 69 + - 16
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT - - 63 + COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3870
SELECT - - 63 + COUNT ( * ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT - + 88 + - MAX( + 40 ) AS col0
----
-128

skipif mysql # not compatible
query I rowsort label-3871
SELECT - + 88 + - MAX ( + 40 ) AS col0
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3872
SELECT ALL + 25 * + + ( + NULLIF ( 71, CAST( NULL AS SIGNED ) ) ) + - COUNT( * )
----
1774

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL + 25 * + + ( + NULLIF ( 71, CAST ( NULL AS INTEGER ) ) ) + - COUNT ( * )
----
1774

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT ALL - COUNT( * ) + + 17 + + + 53
----
69

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL - COUNT ( * ) + + 17 + + + 53
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3874
SELECT - - 13 + 68 AS col1, + CAST( 80 AS SIGNED ) AS col0
----
81
80

skipif mysql # not compatible
query II rowsort label-3874
SELECT - - 13 + 68 AS col1, + CAST ( 80 AS INTEGER ) AS col0
----
81
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT ALL - NULLIF ( + 71, - 73 + + ( - COUNT( * ) ) + + 55 ) + + - 44
----
-115

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL - NULLIF ( + 71, - 73 + + ( - COUNT ( * ) ) + + 55 ) + + - 44
----
-115

query I rowsort
SELECT DISTINCT - - ( - + 5 ) + + 65 col1
----
60

query I rowsort
SELECT DISTINCT - - 84 + - + 72 + - ( 51 )
----
-39

query I rowsort
SELECT - 20 + + 78 AS col2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT ALL - 25 DIV + 11 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL - 25 / + 11 AS col1
----
-2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3881
SELECT DISTINCT - COUNT( * ) + 30 DIV 72 * + CAST( - + 77 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT - COUNT ( * ) + 30 / 72 * + CAST ( - + 77 AS INTEGER )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3882
SELECT ALL - CAST( - + 39 AS SIGNED ) - + 90 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL - CAST ( - + 39 AS INTEGER ) - + 90 AS col1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3883
SELECT ALL - ( - + 23 ) DIV + 8
----
2

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL - ( - + 23 ) / + 8
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT - COUNT( ALL + 3 ) * + 84 - 43 * + 22 AS col2
----
-1030

skipif mysql # not compatible
query I rowsort label-3884
SELECT - COUNT ( ALL + 3 ) * + 84 - 43 * + 22 AS col2
----
-1030

query I rowsort
SELECT ALL 72 * 57 * - 23 AS col0
----
-94392

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT + COALESCE ( - + ( - COUNT( * ) ), + 38 - + 44, + 87 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3886
SELECT + COALESCE ( - + ( - COUNT ( * ) ), + 38 - + 44, + 87 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT ALL + 35 * + MIN( - - ( 48 ) ) col2
----
1680

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL + 35 * + MIN ( - - ( 48 ) ) col2
----
1680

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

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

query I rowsort
SELECT - 30 * + 95 - + 71 * + 30 * - - 5 AS col0
----
-13500

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3890
SELECT DISTINCT - 12 AS col0, 22 * + COUNT( * ) DIV - COALESCE ( - MIN( + 87 ), - + 87 - + 1 + + + MAX( + 83 ) ) * - 92 AS col0
----
-12
0

skipif mysql # not compatible
query II rowsort label-3890
SELECT DISTINCT - 12 AS col0, 22 * + COUNT ( * ) / - COALESCE ( - MIN ( + 87 ), - + 87 - + 1 + + + MAX ( + 83 ) ) * - 92 AS col0
----
-12
0

query I rowsort
SELECT 54 * + + 32 AS col0
----
1728

query II rowsort
SELECT ALL - 28 AS col0, 7 AS col2
----
-28
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT 77 * - 89 * + MIN( DISTINCT - 41 ) AS col1
----
280973

skipif mysql # not compatible
query I rowsort label-3893
SELECT 77 * - 89 * + MIN ( DISTINCT - 41 ) AS col1
----
280973

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT DISTINCT + MAX( 24 ) * + + 97 AS col2
----
2328

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT + MAX ( 24 ) * + + 97 AS col2
----
2328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3895
SELECT ALL CAST( + + 25 AS SIGNED ) * - 49 AS col0
----
-1225

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL CAST ( + + 25 AS INTEGER ) * - 49 AS col0
----
-1225

query I rowsort
SELECT ALL 81 * + - COALESCE ( 61, - 80 + + 81 ) * 56 + + 10 AS col1
----
-276686

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT 57 * + NULLIF ( + 95, 34 ) * COUNT( - 91 )
----
5415

skipif mysql # not compatible
query I rowsort label-3897
SELECT 57 * + NULLIF ( + 95, 34 ) * COUNT ( - 91 )
----
5415

query I rowsort
SELECT + + 70 * - 50 * + 81 + + 31 + - - 27
----
-283442

query II rowsort
SELECT + - 49 AS col2, - 88 AS col1
----
-49
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT + COUNT( ALL - 45 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3900
SELECT + COUNT ( ALL - 45 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT ALL + 28 * - COUNT( * ) * - 12
----
336

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL + 28 * - COUNT ( * ) * - 12
----
336

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3903
SELECT ALL + - 11 DIV - - 63
----
0

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL + - 11 / - - 63
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3904
SELECT - NULLIF ( + 39, + - 90 DIV - 90 ) DIV 11 * 14 + - 11 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-3904
SELECT - NULLIF ( + 39, + - 90 / - 90 ) / 11 * 14 + - 11 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-3905
SELECT + 58, + ( - - 96 ) * + COALESCE ( - 0, + COUNT( * ) ) AS col2
----
58
0

skipif mysql # not compatible
query II rowsort label-3905
SELECT + 58, + ( - - 96 ) * + COALESCE ( - 0, + COUNT ( * ) ) AS col2
----
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT + CASE + CASE + 98 WHEN + + 26 + + 6 + 7 * 71 + - - 23 * - - 48 * - 15 * + - 63 THEN + - 61 / COALESCE ( ( + 66 ), 36 ) + - 83 - 56 / + - COUNT( DISTINCT + + 76 ) + + COUNT( * ) WHEN + SUM( ALL 40 ) * - 41 + 59 THEN ( + 84 ) + 47 ELSE 98 * + 96 END WHEN 19 THEN ( - 60 ) - + 38 ELSE NULL END + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT + CASE + CASE + 98 WHEN + + 26 + + 6 + 7 * 71 + - - 23 * - - 48 * - 15 * + - 63 THEN + - 61 / COALESCE ( ( + 66 ), 36 ) + - 83 - 56 / + - COUNT ( DISTINCT + + 76 ) + + COUNT ( * ) WHEN + SUM ( ALL 40 ) * - 41 + 59 THEN ( + 84 ) + 47 ELSE 98 * + 96 END WHEN 19 THEN ( - 60 ) - + 38 ELSE NULL END + 86
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3907
SELECT DISTINCT 47 AS col2, 85 * 10 + CAST( NULL AS SIGNED )
----
47
NULL

skipif mysql # not compatible
query II rowsort label-3907
SELECT DISTINCT 47 AS col2, 85 * 10 + CAST ( NULL AS INTEGER )
----
47
NULL

query I rowsort
SELECT ALL 49 * - 23
----
-1127

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT DISTINCT MAX( ALL 82 ) * + - COUNT( + ( - - 15 ) ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-3909
SELECT DISTINCT MAX ( ALL 82 ) * + - COUNT ( + ( - - 15 ) ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-3910
SELECT DISTINCT 38, - COUNT( * ) AS col0
----
38
-1

skipif mysql # not compatible
query II rowsort label-3910
SELECT DISTINCT 38, - COUNT ( * ) AS col0
----
38
-1

query I rowsort
SELECT DISTINCT - 13 * + 98
----
-1274

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3913
SELECT 64 DIV + 59 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3913
SELECT 64 / + 59 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3914
SELECT ALL 97, COUNT( ALL - ( + 6 ) ) AS col0
----
97
1

skipif mysql # not compatible
query II rowsort label-3914
SELECT ALL 97, COUNT ( ALL - ( + 6 ) ) AS col0
----
97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3915
SELECT ALL + 77 DIV + + 50
----
1

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL + 77 / + + 50
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3916
SELECT - COUNT( ALL + CAST( 38 AS DECIMAL ) ) * + 93 + + - 55 col0
----
-148

skipif mysql # not compatible
query I rowsort label-3916
SELECT - COUNT ( ALL + CAST ( 38 AS REAL ) ) * + 93 + + - 55 col0
----
-148

query I rowsort
SELECT 83 - - - 31 + 30
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3918
SELECT ALL + 68 DIV - 49 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + 68 / - 49 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3919
SELECT 54 DIV - 39
----
-1

skipif mysql # not compatible
query I rowsort label-3919
SELECT 54 / - 39
----
-1

query I rowsort
SELECT 89 * 10
----
890

query II rowsort
SELECT + 10 AS col0, - 56
----
10
-56

query II rowsort
SELECT ALL - 34 AS col0, ( + - 35 )
----
-34
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-3923
SELECT 73 + + 49 AS col1, 6 + + - ( COUNT( * ) ) * CASE - 15 WHEN - + 20 THEN - 82 * ( + 15 ) + 36 - 94 + - 12 / 5 * SUM( DISTINCT - 24 ) * - 23 END * - + 80 + - + 40 AS col2
----
122
NULL

skipif mysql # not compatible
query II rowsort label-3923
SELECT 73 + + 49 AS col1, 6 + + - ( COUNT ( * ) ) * CASE - 15 WHEN - + 20 THEN - 82 * ( + 15 ) + 36 - 94 + - 12 / 5 * SUM ( DISTINCT - 24 ) * - 23 END * - + 80 + - + 40 AS col2
----
122
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT 79 DIV + 9
----
8

skipif mysql # not compatible
query I rowsort label-3924
SELECT 79 / + 9
----
8

query II rowsort
SELECT DISTINCT - - 47, 31 * - 98 + + 5 * - - 10 AS col2
----
47
-2988

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT + 80 * - 28 + + 11 * - 82 * + COUNT( * )
----
-3142

skipif mysql # not compatible
query I rowsort label-3926
SELECT + 80 * - 28 + + 11 * - 82 * + COUNT ( * )
----
-3142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3927
SELECT DISTINCT - + COUNT( * ) * MAX( ALL + 40 ) + 32 + - - 15 + + CAST( - 19 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT - + COUNT ( * ) * MAX ( ALL + 40 ) + 32 + - - 15 + + CAST ( - 19 AS INTEGER )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT - 18 * 9 + + COUNT( * )
----
-161

skipif mysql # not compatible
query I rowsort label-3928
SELECT - 18 * 9 + + COUNT ( * )
----
-161

query I rowsort
SELECT DISTINCT - + 34 + 78
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3930
SELECT + - 64 AS col0, NULLIF ( + ( 45 ), - 82 * COUNT( - CAST( - 54 AS SIGNED ) ) * - 31 )
----
-64
45

skipif mysql # not compatible
query II rowsort label-3930
SELECT + - 64 AS col0, NULLIF ( + ( 45 ), - 82 * COUNT ( - CAST ( - 54 AS INTEGER ) ) * - 31 )
----
-64
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT + MIN( DISTINCT + 19 ) * + NULLIF ( + 45, - MAX( DISTINCT + - ( + + 51 ) ) ) + + 27
----
882

skipif mysql # not compatible
query I rowsort label-3931
SELECT + MIN ( DISTINCT + 19 ) * + NULLIF ( + 45, - MAX ( DISTINCT + - ( + + 51 ) ) ) + + 27
----
882

query I rowsort
SELECT DISTINCT - - 42 + 5
----
47

query I rowsort
SELECT DISTINCT - 61 + 9 col1
----
-52

query II rowsort
SELECT 55 AS col2, + 66
----
55
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT + CAST( ( + ( - 99 ) ) AS SIGNED ) + + 76
----
-23

skipif mysql # not compatible
query I rowsort label-3935
SELECT + CAST ( ( + ( - 99 ) ) AS INTEGER ) + + 76
----
-23

query II rowsort
SELECT DISTINCT 90 * - 36, - 9 AS col0
----
-3240
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3937
SELECT ALL COALESCE ( - + 0, + 15 * - CAST( - CASE WHEN 80 IS NOT NULL THEN - COUNT( - 92 ) END AS SIGNED ), 45 )
----
0

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL COALESCE ( - + 0, + 15 * - CAST ( - CASE WHEN 80 IS NOT NULL THEN - COUNT ( - 92 ) END AS INTEGER ), 45 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3938
SELECT 11 * - 28 + + - 16 + + COUNT( + 71 ) - - 54 * COUNT( * ) * - + 29 - + 23 DIV - 6 + - 84 col2, CAST( NULL AS DECIMAL ) + - SUM( ALL + 95 ) col2
----
-1970
NULL

skipif mysql # not compatible
query II rowsort label-3938
SELECT 11 * - 28 + + - 16 + + COUNT ( + 71 ) - - 54 * COUNT ( * ) * - + 29 - + 23 / - 6 + - 84 col2, CAST ( NULL AS REAL ) + - SUM ( ALL + 95 ) col2
----
-1970
NULL

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

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

query I rowsort
SELECT ALL 17 - 67
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT ALL - MAX( ALL 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL - MAX ( ALL 63 ) AS col0
----
-63

query II rowsort
SELECT ALL + 56 AS col1, 11 AS col0
----
56
11

query I rowsort
SELECT DISTINCT 8 * + 3
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT ALL ( + COUNT( * ) ) - - - 92 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL ( + COUNT ( * ) ) - - - 92 AS col2
----
-91

query I rowsort
SELECT 48 + - 63 AS col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3946
SELECT ALL - 99 - AVG ( ALL - CAST( NULL AS SIGNED ) ) + 4 + + 60 AS col2, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3946
SELECT ALL - 99 - AVG ( ALL - CAST ( NULL AS INTEGER ) ) + 4 + + 60 AS col2, CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT + 90 * 15
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT - COUNT( * ) + - 85 + - - 63 * - 89 * ( + COUNT( * ) ) + + 39 * + COUNT( * ) + - MIN( ALL - 50 ) * - MIN( ALL - - ( + - 66 ) ) + + 14 col2
----
-2340

skipif mysql # not compatible
query I rowsort label-3948
SELECT - COUNT ( * ) + - 85 + - - 63 * - 89 * ( + COUNT ( * ) ) + + 39 * + COUNT ( * ) + - MIN ( ALL - 50 ) * - MIN ( ALL - - ( + - 66 ) ) + + 14 col2
----
-2340

query I rowsort
SELECT DISTINCT 30 * - - 44
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT + MIN( ALL + 17 ) * 12 + + 78 - + - 9 + - + COUNT( * )
----
290

skipif mysql # not compatible
query I rowsort label-3950
SELECT + MIN ( ALL + 17 ) * 12 + + 78 - + - 9 + - + COUNT ( * )
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL CASE - 45 WHEN - 18 - - + 77 + - + 79 + - COUNT( + + 36 ) THEN + 1 * - 61 / 23 END + + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL CASE - 45 WHEN - 18 - - + 77 + - + 79 + - COUNT ( + + 36 ) THEN + 1 * - 61 / 23 END + + + 91
----
NULL

query I rowsort
SELECT ALL - 9 + 33 - - 6 AS col0
----
30

query I rowsort
SELECT ALL 34 * 95 + - 78 + + + 88
----
3240

query I rowsort
SELECT ALL 59 * + + 24 + + + 78 AS col2
----
1494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3955
SELECT DISTINCT COUNT( - - 31 ) * - + CAST( NULL AS SIGNED ) - + + 41 + - - 67 + - 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT COUNT ( - - 31 ) * - + CAST ( NULL AS INTEGER ) - + + 41 + - - 67 + - 87 AS col0
----
NULL

query I rowsort
SELECT 73 * - - 66 - - 34
----
4852

onlyif mysql # DIV for integer division: 
query I rowsort label-3957
SELECT + 36 DIV - + 28 - + - 92 DIV + 15
----
5

skipif mysql # not compatible
query I rowsort label-3957
SELECT + 36 / - + 28 - + - 92 / + 15
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3958
SELECT DISTINCT + + 69 DIV 84 + - ( + 3 ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT + + 69 / 84 + - ( + 3 ) col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT ALL + 81 * 6 + - - COUNT( * ) col2
----
487

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL + 81 * 6 + - - COUNT ( * ) col2
----
487

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3960
SELECT ( 80 ) * - 12 * - CASE + ( 69 ) WHEN 4 + - COUNT( 96 ) THEN NULL WHEN + - 60 THEN - - 62 ELSE + - 34 * 34 END - - COALESCE ( + NULLIF ( - 39, - 40 ), + 57 * COUNT( * ) DIV + - 53 * - - 23 + + COUNT( * ), 54 * 15 ) DIV - MAX( + 51 ) AS col1
----
-1109760

skipif mysql # not compatible
query I rowsort label-3960
SELECT ( 80 ) * - 12 * - CASE + ( 69 ) WHEN 4 + - COUNT ( 96 ) THEN NULL WHEN + - 60 THEN - - 62 ELSE + - 34 * 34 END - - COALESCE ( + NULLIF ( - 39, - 40 ), + 57 * COUNT ( * ) / + - 53 * - - 23 + + COUNT ( * ), 54 * 15 ) / - MAX ( + 51 ) AS col1
----
-1109760

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT - SUM( 62 ) * + 1 * - 79 - - 92
----
4990

skipif mysql # not compatible
query I rowsort label-3962
SELECT - SUM ( 62 ) * + 1 * - 79 - - 92
----
4990

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3963
SELECT ALL - - 7 * - ( - - AVG ( + 69 ) ) - + 37 + - ( - 90 ) * + COALESCE ( - CAST( NULL AS SIGNED ), 91 - - 19 ) / - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL - - 7 * - ( - - AVG ( + 69 ) ) - + 37 + - ( - 90 ) * + COALESCE ( - CAST ( NULL AS INTEGER ), 91 - - 19 ) / - CAST ( NULL AS REAL ) AS col2
----
NULL

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

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

query II rowsort
SELECT - + 57 + + - 71 AS col1, + 86
----
-128
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3966
SELECT ALL + - COUNT( * ) * + 87 DIV + 50
----
-1

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL + - COUNT ( * ) * + 87 / + 50
----
-1

query I rowsort
SELECT DISTINCT + + 84 col0
----
84

query I rowsort
SELECT 82 * - + 36 + - 38 AS col0
----
-2990

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT - 76 * + + 55 * - 66 + + COUNT( * ) AS col1
----
275881

skipif mysql # not compatible
query I rowsort label-3969
SELECT - 76 * + + 55 * - 66 + + COUNT ( * ) AS col1
----
275881

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3970
SELECT ALL + 85 * 59 + 68 DIV COUNT( * ) AS col1
----
5083

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL + 85 * 59 + 68 / COUNT ( * ) AS col1
----
5083

query I rowsort
SELECT ALL - NULLIF ( 73, + 81 )
----
-73

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

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT 14 / - + COUNT ( * ) AS col0
----
-14

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3974
SELECT ALL ( + CAST( + 8 AS SIGNED ) ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL ( + CAST ( + 8 AS INTEGER ) ) AS col1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3975
SELECT ALL CAST( NULL AS SIGNED ), + 78 AS col2
----
NULL
78

skipif mysql # not compatible
query II rowsort label-3975
SELECT ALL CAST ( NULL AS INTEGER ), + 78 AS col2
----
NULL
78

query I rowsort
SELECT - 25 + 99 AS col0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3977
SELECT - COALESCE ( 32, - CASE 39 WHEN 19 THEN 72 WHEN + 83 THEN NULL END DIV + 29 * - 87, + - COUNT( * ) )
----
-32

skipif mysql # not compatible
query I rowsort label-3977
SELECT - COALESCE ( 32, - CASE 39 WHEN 19 THEN 72 WHEN + 83 THEN NULL END / + 29 * - 87, + - COUNT ( * ) )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3978
SELECT + CASE - CASE COALESCE ( 46, 49 + + 63, + AVG ( - 0 ) / + 88 + 64 ) WHEN + 32 THEN - 88 END WHEN + 30 THEN NULL WHEN + - 7 THEN - CASE 47 WHEN 96 * + 88 THEN + 18 WHEN - CAST( + + 44 AS DECIMAL ) + - + 13 THEN NULL WHEN - CASE - 31 WHEN 68 THEN 3 + 84 * - COUNT( * ) ELSE NULL END THEN NULL ELSE NULL END ELSE NULL END * COALESCE ( 87, + 81 + + COUNT( - 34 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT + CASE - CASE COALESCE ( 46, 49 + + 63, + AVG ( - 0 ) / + 88 + 64 ) WHEN + 32 THEN - 88 END WHEN + 30 THEN NULL WHEN + - 7 THEN - CASE 47 WHEN 96 * + 88 THEN + 18 WHEN - CAST ( + + 44 AS REAL ) + - + 13 THEN NULL WHEN - CASE - 31 WHEN 68 THEN 3 + 84 * - COUNT ( * ) ELSE NULL END THEN NULL ELSE NULL END ELSE NULL END * COALESCE ( 87, + 81 + + COUNT ( - 34 ) )
----
NULL

query I rowsort
SELECT ALL 96 * - + 54
----
-5184

query I rowsort
SELECT ALL 13 * - 96
----
-1248

query I rowsort
SELECT - 78 + 69 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT DISTINCT - 22 + + NULLIF ( - 41, - 6 / COUNT( * ) ) + - 13 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT - 22 + + NULLIF ( - 41, - 6 / COUNT ( * ) ) + - 13 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT + COUNT( * ) + ( - COUNT( * ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3983
SELECT + COUNT ( * ) + ( - COUNT ( * ) ) col1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT + 24 + 83 + CAST( NULL AS SIGNED ) * + 10 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT + 24 + 83 + CAST ( NULL AS INTEGER ) * + 10 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3986
SELECT ALL 35 DIV 75 DIV - COUNT( * ) col2, + 8 + + COUNT( DISTINCT - - 79 ) AS col1
----
0
9

skipif mysql # not compatible
query II rowsort label-3986
SELECT ALL 35 / 75 / - COUNT ( * ) col2, + 8 + + COUNT ( DISTINCT - - 79 ) AS col1
----
0
9

query I rowsort
SELECT + NULLIF ( - 37, + 97 * - ( - + ( + + 73 ) ) ) * - 18 AS col0
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT + COUNT( * ) + - + 2 + - 27 + - 57 * + 38 * CASE + CASE - 86 WHEN + MIN( ALL - - 75 ) THEN NULLIF ( + 85, - 31 + + 55 ) ELSE NULL END WHEN - 16 + 26 THEN - + 68 + 51 WHEN - COUNT( * ) THEN + - 78 END * - 94 * + ( - AVG ( ALL 39 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT + COUNT ( * ) + - + 2 + - 27 + - 57 * + 38 * CASE + CASE - 86 WHEN + MIN ( ALL - - 75 ) THEN NULLIF ( + 85, - 31 + + 55 ) ELSE NULL END WHEN - 16 + 26 THEN - + 68 + 51 WHEN - COUNT ( * ) THEN + - 78 END * - 94 * + ( - AVG ( ALL 39 ) ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3989
SELECT - CAST( + + ( + 96 ) AS SIGNED ), 93 * + 20 col0
----
-96
1860

skipif mysql # not compatible
query II rowsort label-3989
SELECT - CAST ( + + ( + 96 ) AS INTEGER ), 93 * + 20 col0
----
-96
1860

query I rowsort
SELECT ALL 82 + + 21
----
103

query I rowsort
SELECT + 88 + 46
----
134

query I rowsort
SELECT + 94 - + ( 34 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-3993
SELECT + - 55, COUNT( * ) * - - MIN( + - 33 ) AS col1
----
-55
-33

skipif mysql # not compatible
query II rowsort label-3993
SELECT + - 55, COUNT ( * ) * - - MIN ( + - 33 ) AS col1
----
-55
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT DISTINCT - SUM( 17 ) * - - 78 + 42 * 69 AS col2
----
1572

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT - SUM ( 17 ) * - - 78 + 42 * 69 AS col2
----
1572

query I rowsort
SELECT ALL + + ( + - 97 )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3996
SELECT ALL - + 50 / + - 43 * + + CAST( NULL AS SIGNED ) + + - COUNT( * ) + 69 + 15, - COUNT( * ) * + 9 AS col1
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-3996
SELECT ALL - + 50 / + - 43 * + + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + 69 + 15, - COUNT ( * ) * + 9 AS col1
----
NULL
-9

query I rowsort
SELECT + - 47 + + 52
----
5

query I rowsort
SELECT ALL - 41 * + 33
----
-1353

query I rowsort
SELECT DISTINCT + - 32 AS col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4000
SELECT + NULLIF ( + 3, - MAX( CAST( NULL AS SIGNED ) ) ) * + 63 + - + 1 + ( + + ( - 90 ) ) + + ( + + 23 ) * - 40 AS col2
----
-822

skipif mysql # not compatible
query I rowsort label-4000
SELECT + NULLIF ( + 3, - MAX ( CAST ( NULL AS INTEGER ) ) ) * + 63 + - + 1 + ( + + ( - 90 ) ) + + ( + + 23 ) * - 40 AS col2
----
-822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4001
SELECT ALL + CAST( - 10 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL + CAST ( - 10 AS INTEGER )
----
-10

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

query I rowsort
SELECT ALL + - ( 86 )
----
-86

query I rowsort
SELECT - 94 * - - 53 AS col2
----
-4982

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4005
SELECT - - ( - 70 ) DIV + COUNT( * ) + + 57 * + ( - CASE - 5 WHEN - 10 THEN - - CASE 98 WHEN + 57 DIV + + COUNT( * ) THEN + CASE - + ( - 88 ) WHEN 37 * - - 34 * COUNT( * ) * - 81 THEN 18 WHEN + 87 + + 72 + - ( 53 ) + + 26 DIV + CAST( NULL AS DECIMAL ) THEN NULL ELSE + 78 END * - 52 END + 17 WHEN + 46 THEN NULL WHEN + 38 THEN 73 ELSE COUNT( 33 ) END ) AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-4005
SELECT - - ( - 70 ) / + COUNT ( * ) + + 57 * + ( - CASE - 5 WHEN - 10 THEN - - CASE 98 WHEN + 57 / + + COUNT ( * ) THEN + CASE - + ( - 88 ) WHEN 37 * - - 34 * COUNT ( * ) * - 81 THEN 18 WHEN + 87 + + 72 + - ( 53 ) + + 26 / + CAST ( NULL AS REAL ) THEN NULL ELSE + 78 END * - 52 END + 17 WHEN + 46 THEN NULL WHEN + 38 THEN 73 ELSE COUNT ( 33 ) END ) AS col0
----
-127

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4006
SELECT DISTINCT - + CAST( + - 74 AS SIGNED ) DIV - 16 + - 65 - + - 19
----
-50

skipif mysql # not compatible
query I rowsort label-4006
SELECT DISTINCT - + CAST ( + - 74 AS INTEGER ) / - 16 + - 65 - + - 19
----
-50

query II rowsort
SELECT + 46 + 56 - - 20, 32 AS col2
----
122
32

onlyif mysql # aggregate syntax: 
query II rowsort label-4008
SELECT + + 47, 17 * + MAX( ALL + 45 ) AS col1
----
47
765

skipif mysql # not compatible
query II rowsort label-4008
SELECT + + 47, 17 * + MAX ( ALL + 45 ) AS col1
----
47
765

query I rowsort
SELECT - 21 + - 39
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4010
SELECT + + COUNT( * ) * - 63 - + 49 DIV + 86 * 26 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-4010
SELECT + + COUNT ( * ) * - 63 - + 49 / + 86 * 26 AS col0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4011
SELECT ALL - - 99 DIV + 79 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL - - 99 / + 79 AS col2
----
1

query I rowsort
SELECT - 3 * 31 * 32 + - 1 + 85 AS col1
----
-2892

query II rowsort
SELECT 65 AS col2, + 60 + + - 45 * 83
----
65
-3675

query I rowsort
SELECT 72 + + 46 * + - 50
----
-2228

query I rowsort
SELECT 58 + 1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4016
SELECT ALL + 8 * SUM( + - CAST( + - 61 AS SIGNED ) ) * COALESCE ( + COALESCE ( - - 7, - COUNT( * ) ), + COUNT( * ), - 79 ) AS col0
----
3416

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL + 8 * SUM ( + - CAST ( + - 61 AS INTEGER ) ) * COALESCE ( + COALESCE ( - - 7, - COUNT ( * ) ), + COUNT ( * ), - 79 ) AS col0
----
3416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4017
SELECT CAST( NULL AS SIGNED ) + + 47 + + CAST( NULL AS SIGNED ) + + 8 * - + 66 + + COUNT( + 75 ) + COUNT( * ) * ( + 49 ) + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4017
SELECT CAST ( NULL AS INTEGER ) + + 47 + + CAST ( NULL AS INTEGER ) + + 8 * - + 66 + + COUNT ( + 75 ) + COUNT ( * ) * ( + 49 ) + 39
----
NULL

query I rowsort
SELECT DISTINCT + 90 + 82 + + 89 AS col0
----
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4019
SELECT 48 * - - 59 / + - CAST( NULL AS SIGNED ) * - + 75, COUNT( * ) + - COALESCE ( + 51, 84 * 94 * 48 ) AS col1
----
NULL
-50

skipif mysql # not compatible
query II rowsort label-4019
SELECT 48 * - - 59 / + - CAST ( NULL AS INTEGER ) * - + 75, COUNT ( * ) + - COALESCE ( + 51, 84 * 94 * 48 ) AS col1
----
NULL
-50

query I rowsort
SELECT + 58 * - 60 + - 35 AS col0
----
-3515

query I rowsort
SELECT DISTINCT + 63 + + 89
----
152

query I rowsort
SELECT ALL - 9 + 13 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL COUNT( * ) + + COUNT( * ) * - MIN( + - 96 )
----
97

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL COUNT ( * ) + + COUNT ( * ) * - MIN ( + - 96 )
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4024
SELECT MIN( - 68 ) + COUNT( * ) * ( + 48 ) * 58 * + + 37, 93 AS col1
----
102940
93

skipif mysql # not compatible
query II rowsort label-4024
SELECT MIN ( - 68 ) + COUNT ( * ) * ( + 48 ) * 58 * + + 37, 93 AS col1
----
102940
93

query I rowsort
SELECT DISTINCT - 64 + + 60 AS col0
----
-4

query I rowsort
SELECT ALL 36 + + - 51 + + - 58 AS col2
----
-73

query I rowsort
SELECT 63 * + 90 AS col2
----
5670

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT 99 * COUNT( * ) col2
----
99

skipif mysql # not compatible
query I rowsort label-4028
SELECT 99 * COUNT ( * ) col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4029
SELECT DISTINCT - 28 + - + 32 DIV + 96 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT - 28 + - + 32 / + 96 AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4030
SELECT ALL 59 * 3, - NULLIF ( + CAST( - 46 AS SIGNED ), MAX( ALL - 53 ) ) * - + 32 AS col1
----
177
-1472

skipif mysql # not compatible
query II rowsort label-4030
SELECT ALL 59 * 3, - NULLIF ( + CAST ( - 46 AS INTEGER ), MAX ( ALL - 53 ) ) * - + 32 AS col1
----
177
-1472

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4031
SELECT ALL 81 DIV + + 54 AS col2, COUNT( * ) + - 9 * SUM( 88 ) * MIN( + 98 ) AS col1
----
1
-77615

skipif mysql # not compatible
query II rowsort label-4031
SELECT ALL 81 / + + 54 AS col2, COUNT ( * ) + - 9 * SUM ( 88 ) * MIN ( + 98 ) AS col1
----
1
-77615

query I rowsort
SELECT 49 * + 63
----
3087

query I rowsort
SELECT + 77 * 15 - 68
----
1087

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4034
SELECT 85 * - - 92 + + COUNT( - + CAST( NULL AS DECIMAL ) ) + - 9 - - 31 * CASE + 21 WHEN - COUNT( * ) THEN + ( + 4 ) + - + 40 WHEN - 25 + SUM( ALL - 86 ) + + 66 + - 91 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT 85 * - - 92 + + COUNT ( - + CAST ( NULL AS REAL ) ) + - 9 - - 31 * CASE + 21 WHEN - COUNT ( * ) THEN + ( + 4 ) + - + 40 WHEN - 25 + SUM ( ALL - 86 ) + + 66 + - 91 THEN NULL END
----
NULL

query I rowsort
SELECT + NULLIF ( + 76, 89 * - 41 ) * + + ( + - 28 )
----
-2128

onlyif mysql # DIV for integer division: 
query I rowsort label-4036
SELECT DISTINCT 79 * - - 75 + + 81 + - 10 DIV - - 74 * - - 38 col0
----
6006

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT 79 * - - 75 + + 81 + - 10 / - - 74 * - - 38 col0
----
6006

query I rowsort
SELECT ALL + 80 * + + 42
----
3360

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT DISTINCT - COUNT( * ) * + 47
----
-47

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT - COUNT ( * ) * + 47
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4040
SELECT + 13 DIV + 92 - - COUNT( - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-4040
SELECT + 13 / + 92 - - COUNT ( - 29 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT 87 * - + COUNT( * ) + - 37 col0
----
-124

skipif mysql # not compatible
query I rowsort label-4041
SELECT 87 * - + COUNT ( * ) + - 37 col0
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4042
SELECT 74 * + 50 - 67 + 62 + + + 51 - - NULLIF ( - + ( + - 35 ), 27 * 21 ) * + MAX( CAST( NULL AS SIGNED ) ) + - + 63 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4042
SELECT 74 * + 50 - 67 + 62 + + + 51 - - NULLIF ( - + ( + - 35 ), 27 * 21 ) * + MAX ( CAST ( NULL AS INTEGER ) ) + - + 63 col2
----
NULL

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

skipif mysql # not compatible
query II rowsort label-4043
SELECT 10 AS col1, 78 * + COUNT ( * )
----
10
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4044
SELECT 48 DIV - 50 * - 78
----
0

skipif mysql # not compatible
query I rowsort label-4044
SELECT 48 / - 50 * - 78
----
0

query II rowsort
SELECT 91 AS col1, 22 AS col1
----
91
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT ALL + 77 + ( - COUNT( * ) )
----
76

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL + 77 + ( - COUNT ( * ) )
----
76

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

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

query I rowsort
SELECT DISTINCT - 5 * - 71 AS col2
----
355

query I rowsort
SELECT 83 * 29
----
2407

query I rowsort
SELECT 73 + - 27
----
46

query I rowsort
SELECT 8 * + 3
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4052
SELECT 82 + + - CAST( NULL AS SIGNED ) * + 62 * - NULLIF ( 71, - 94 * - + 54 + 89 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4052
SELECT 82 + + - CAST ( NULL AS INTEGER ) * + 62 * - NULLIF ( 71, - 94 * - + 54 + 89 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 29 - - 32 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT DISTINCT SUM( DISTINCT - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT SUM ( DISTINCT - 84 )
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-4055
SELECT ALL COUNT( * ) AS col0, - 48 AS col1
----
1
-48

skipif mysql # not compatible
query II rowsort label-4055
SELECT ALL COUNT ( * ) AS col0, - 48 AS col1
----
1
-48

query I rowsort
SELECT ALL - 42 * + 18 * + + 54 * - 97
----
3959928

query I rowsort
SELECT 84 + - 87
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4058
SELECT ALL CASE - 76 WHEN - NULLIF ( - + 21, + + 83 ) THEN NULL WHEN + 52 * ( - - 4 ) + - + 83 + - 42 + + - CAST( - 39 AS SIGNED ) THEN - - 51 * - 26 - + 55 ELSE NULL END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL CASE - 76 WHEN - NULLIF ( - + 21, + + 83 ) THEN NULL WHEN + 52 * ( - - 4 ) + - + 83 + - 42 + + - CAST ( - 39 AS INTEGER ) THEN - - 51 * - 26 - + 55 ELSE NULL END * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT - 40 + + - 13 + + + 5 * COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-4059
SELECT - 40 + + - 13 + + + 5 * COUNT ( * )
----
-48

query I rowsort
SELECT + 79 + + 77
----
156

query I rowsort
SELECT ( + + ( 69 ) ) * - 10
----
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT - 53 + + COUNT( * ) + ( + 40 ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-4062
SELECT - 53 + + COUNT ( * ) + ( + 40 ) col2
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-4063
SELECT 64 + - - SUM( ALL 41 ) * 25 * - - 75, ( - 34 ) col1
----
76939
-34

skipif mysql # not compatible
query II rowsort label-4063
SELECT 64 + - - SUM ( ALL 41 ) * 25 * - - 75, ( - 34 ) col1
----
76939
-34

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT CAST( - 45 AS SIGNED ) - + ( + - NULLIF ( + + 38, - 84 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-4065
SELECT CAST ( - 45 AS INTEGER ) - + ( + - NULLIF ( + + 38, - 84 ) )
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4066
SELECT 3 DIV - 35 + SUM( - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-4066
SELECT 3 / - 35 + SUM ( - 53 )
----
-53

query I rowsort
SELECT + ( - 23 ) + + 54 col0
----
31

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

query I rowsort
SELECT DISTINCT - 48 * - 72 + + 99 + + CASE 3 WHEN + 5 - 51 * + - 17 + 0 THEN NULL WHEN + - 73 THEN NULL ELSE + 41 * - 7 + - 58 END
----
3210

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT + 1 * + 20 * - NULLIF ( - 82, + MAX( DISTINCT - 34 ) )
----
1640

skipif mysql # not compatible
query I rowsort label-4070
SELECT + 1 * + 20 * - NULLIF ( - 82, + MAX ( DISTINCT - 34 ) )
----
1640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4071
SELECT + CASE - 48 WHEN - 52 THEN NULL WHEN 85 THEN - - CAST( NULL AS SIGNED ) END + 71 * + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT + CASE - 48 WHEN - 52 THEN NULL WHEN 85 THEN - - CAST ( NULL AS INTEGER ) END + 71 * + 60 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT SUM( 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4072
SELECT SUM ( 11 ) AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4073
SELECT DISTINCT + ( CASE WHEN NOT + 53 <= 53 * 1 * COUNT( * ) * 34 THEN + 87 + + - 20 WHEN NOT MIN( 75 ) <> - COALESCE ( CASE + CASE - 29 WHEN + MAX( - 91 ) + - ( - 71 ) + - + 31 + - - 55 * - 0 THEN + - 79 ELSE NULL END WHEN + + 25 * + 34 THEN CASE + COUNT( * ) WHEN + 97 * + 31 + MAX( - 5 + 99 ) THEN NULL WHEN 23 * + ( + 64 ) + COALESCE ( COUNT( * ), - 53, AVG ( 97 ) + 46 * 97 ) * + ( + COUNT( * ) ) THEN NULL WHEN COUNT( * ) + 46 * 79 THEN 49 / + CAST( NULL AS SIGNED ) ELSE NULL END * COALESCE ( 75, 72 * 72, + 99 ) ELSE NULL END, 95 * + 16 + - 80 * 8 ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT + ( CASE WHEN NOT + 53 <= 53 * 1 * COUNT ( * ) * 34 THEN + 87 + + - 20 WHEN NOT MIN ( 75 ) <> - COALESCE ( CASE + CASE - 29 WHEN + MAX ( - 91 ) + - ( - 71 ) + - + 31 + - - 55 * - 0 THEN + - 79 ELSE NULL END WHEN + + 25 * + 34 THEN CASE + COUNT ( * ) WHEN + 97 * + 31 + MAX ( - 5 + 99 ) THEN NULL WHEN 23 * + ( + 64 ) + COALESCE ( COUNT ( * ), - 53, AVG ( 97 ) + 46 * 97 ) * + ( + COUNT ( * ) ) THEN NULL WHEN COUNT ( * ) + 46 * 79 THEN 49 / + CAST ( NULL AS INTEGER ) ELSE NULL END * COALESCE ( 75, 72 * 72, + 99 ) ELSE NULL END, 95 * + 16 + - 80 * 8 ) THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT ALL COUNT( * ) * + - 8 + + 26 + 46
----
64

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL COUNT ( * ) * + - 8 + + 26 + 46
----
64

query I rowsort
SELECT + 72 + - 29 + - - 45 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT + SUM( NULLIF ( + + 45, 22 + + 31 ) )
----
45

skipif mysql # not compatible
query I rowsort label-4076
SELECT + SUM ( NULLIF ( + + 45, 22 + + 31 ) )
----
45

query I rowsort
SELECT DISTINCT ( 84 ) * + 94 * + 75 + + 44 + + ( - 60 ) + + 8 AS col2
----
592192

query I rowsort
SELECT + 7 * - - 35 * - 75 * 87
----
-1598625

onlyif mysql # aggregate syntax: 
query II rowsort label-4079
SELECT + COUNT( * ) + - COUNT( * ) + 15 * + 42 + + + COUNT( * ) * + 43, - 35 * 47 - 83 * 6 AS col2
----
673
-2143

skipif mysql # not compatible
query II rowsort label-4079
SELECT + COUNT ( * ) + - COUNT ( * ) + 15 * + 42 + + + COUNT ( * ) * + 43, - 35 * 47 - 83 * 6 AS col2
----
673
-2143

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT ALL 69 * - 25 + + COUNT( * ) * 4 + - + 1 AS col0
----
-1722

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL 69 * - 25 + + COUNT ( * ) * 4 + - + 1 AS col0
----
-1722

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

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

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

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

query I rowsort
SELECT + 77 * + + 57
----
4389

query I rowsort
SELECT - COALESCE ( + 17, - 76 )
----
-17

query I rowsort
SELECT - 95 + - 31 AS col2
----
-126

query II rowsort
SELECT ALL 2, - ( - 39 ) AS col1
----
2
39

query II rowsort
SELECT 77, - 2 AS col1
----
77
-2

query I rowsort
SELECT ALL 77 - - ( 71 )
----
148

query II rowsort
SELECT DISTINCT 7, 7 * - - 77 AS col1
----
7
539

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4090
SELECT ALL + MAX( + ( 73 ) ) DIV 50 AS col0, - 8 * 13 + + 66 AS col1
----
1
-38

skipif mysql # not compatible
query II rowsort label-4090
SELECT ALL + MAX ( + ( 73 ) ) / 50 AS col0, - 8 * 13 + + 66 AS col1
----
1
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4091
SELECT DISTINCT + CASE - 63 WHEN 45 THEN ( NULLIF ( - 75, 90 * - + 64 ) ) + + 47 + - 95 - - + 9 END * + 29 + 5 + - CAST( NULL AS SIGNED ) / - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT + CASE - 63 WHEN 45 THEN ( NULLIF ( - 75, 90 * - + 64 ) ) + + 47 + - 95 - - + 9 END * + 29 + 5 + - CAST ( NULL AS INTEGER ) / - 15
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT DISTINCT 82 DIV 98 * 90
----
0

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT 82 / 98 * 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT ALL + 56 * 42 * SUM( ALL 64 )
----
150528

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL + 56 * 42 * SUM ( ALL 64 )
----
150528

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT - - 59 * COUNT( * ) * + + 95
----
5605

skipif mysql # not compatible
query I rowsort label-4094
SELECT - - 59 * COUNT ( * ) * + + 95
----
5605

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT ALL - COUNT( DISTINCT + - 92 ) * - + ( COUNT( * ) ) * 74 * - ( 87 ) + - 52 + 63 AS col1
----
-6427

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL - COUNT ( DISTINCT + - 92 ) * - + ( COUNT ( * ) ) * 74 * - ( 87 ) + - 52 + 63 AS col1
----
-6427

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4096
SELECT - + CAST( NULL AS DECIMAL ) AS col0, 19 DIV + 26 - + 68 - - + MIN( - 99 )
----
NULL
-167

skipif mysql # not compatible
query II rowsort label-4096
SELECT - + CAST ( NULL AS REAL ) AS col0, 19 / + 26 - + 68 - - + MIN ( - 99 )
----
NULL
-167

onlyif mysql # DIV for integer division: 
query II rowsort label-4097
SELECT 98, + 39 + 87 + 83 + - + 17 + + 77 DIV 34 col1
----
98
194

skipif mysql # not compatible
query II rowsort label-4097
SELECT 98, + 39 + 87 + 83 + - + 17 + + 77 / 34 col1
----
98
194

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

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

query I rowsort
SELECT - 60 + + 62
----
2

query I rowsort
SELECT ALL - + 30 * - 75
----
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT - 73 + + - COUNT( * ) - + 44
----
-118

skipif mysql # not compatible
query I rowsort label-4101
SELECT - 73 + + - COUNT ( * ) - + 44
----
-118

query I rowsort
SELECT DISTINCT COALESCE ( + + 4, - - 97 )
----
4

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

skipif mysql # not compatible
query II rowsort label-4103
SELECT DISTINCT + CAST ( - - 59 AS INTEGER ) AS col2, COUNT ( * ) AS col0
----
59
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4104
SELECT DISTINCT 5 AS col1, 33, - 42 * - CAST( NULL AS DECIMAL ) + + 71 + + + 88 * CAST( + - ( + 80 ) AS SIGNED ) AS col0
----
5
33
NULL

skipif mysql # not compatible
query III rowsort label-4104
SELECT DISTINCT 5 AS col1, 33, - 42 * - CAST ( NULL AS REAL ) + + 71 + + + 88 * CAST ( + - ( + 80 ) AS INTEGER ) AS col0
----
5
33
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4105
SELECT DISTINCT + 10 + 95 + - 48 + 39 col2, + 13 DIV + + 60 + - - 11
----
96
11

skipif mysql # not compatible
query II rowsort label-4105
SELECT DISTINCT + 10 + 95 + - 48 + 39 col2, + 13 / + + 60 + - - 11
----
96
11

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT + COUNT( DISTINCT - - ( 40 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4108
SELECT + COUNT ( DISTINCT - - ( 40 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4109
SELECT ALL - 58 DIV - - 44 + - COUNT( * ) DIV - - COUNT( ALL + + 69 )
----
-2

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL - 58 / - - 44 + - COUNT ( * ) / - - COUNT ( ALL + + 69 )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4110
SELECT 78, + 99 * + SUM( + 38 ) AS col0
----
78
3762

skipif mysql # not compatible
query II rowsort label-4110
SELECT 78, + 99 * + SUM ( + 38 ) AS col0
----
78
3762

query I rowsort
SELECT + NULLIF ( 56, - 57 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4112
SELECT - 30 * - 39 + - CAST( NULL AS SIGNED ) - + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT - 30 * - 39 + - CAST ( NULL AS INTEGER ) - + 69 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4113
SELECT + CAST( COALESCE ( + COUNT( * ), + 39, - 16 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4113
SELECT + CAST ( COALESCE ( + COUNT ( * ), + 39, - 16 ) AS INTEGER )
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4115
SELECT 22 DIV 26 * + 95 + + 89 + - COALESCE ( 88, + COUNT( * ) * - 26 )
----
1

skipif mysql # not compatible
query I rowsort label-4115
SELECT 22 / 26 * + 95 + + 89 + - COALESCE ( 88, + COUNT ( * ) * - 26 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4116
SELECT NULLIF ( SUM( + + 44 ), - - 44 ) * + 77 + - SUM( ALL 88 ) + + 14 + + COUNT( * ) * - + CASE - ( - + 51 ) WHEN 94 THEN 98 WHEN ( + - 58 ) * 24 / CAST( - 69 AS SIGNED ) THEN - 47 WHEN 86 THEN - COUNT( * ) END / 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4116
SELECT NULLIF ( SUM ( + + 44 ), - - 44 ) * + 77 + - SUM ( ALL 88 ) + + 14 + + COUNT ( * ) * - + CASE - ( - + 51 ) WHEN 94 THEN 98 WHEN ( + - 58 ) * 24 / CAST ( - 69 AS INTEGER ) THEN - 47 WHEN 86 THEN - COUNT ( * ) END / 53 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4117
SELECT ALL 38 DIV - + 32 + + + 37
----
36

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL 38 / - + 32 + + + 37
----
36

query I rowsort
SELECT ALL + ( 38 ) * 65
----
2470

query I rowsort
SELECT ALL 28 * - 72 + - 41
----
-2057

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4120
SELECT ALL COUNT( * ) DIV + ( + COUNT( 78 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL COUNT ( * ) / + ( + COUNT ( 78 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT + CASE - 7 WHEN - + 76 * - COUNT( * ) THEN 49 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT + CASE - 7 WHEN - + 76 * - COUNT ( * ) THEN 49 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL CASE - NULLIF ( + 49, - ( 94 ) ) WHEN + - 59 THEN - 41 * - 95 ELSE NULL END * + 72 - - + 65 * - + 62
----
NULL

query I rowsort
SELECT NULLIF ( - 78, - 37 ) AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4124
SELECT COALESCE ( - 52, + 34 DIV - CAST( COUNT( * ) AS SIGNED ) - - - COUNT( 69 ) + + NULLIF ( 91, - 2 * + - 12 ) + + - 9, + 99 )
----
-52

skipif mysql # not compatible
query I rowsort label-4124
SELECT COALESCE ( - 52, + 34 / - CAST ( COUNT ( * ) AS INTEGER ) - - - COUNT ( 69 ) + + NULLIF ( 91, - 2 * + - 12 ) + + - 9, + 99 )
----
-52

query II rowsort
SELECT + 54 - - - 5 AS col0, + 46 + + - 26
----
49
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4126
SELECT - ( - + 57 ) * + 75 + - CASE 99 WHEN + 44 * ( 81 ) THEN - + 40 * - + 62 - - 9 * COUNT( * ) + 93 - + 30 WHEN 60 * - 74 / CAST( + - 6 AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT - ( - + 57 ) * + 75 + - CASE 99 WHEN + 44 * ( 81 ) THEN - + 40 * - + 62 - - 9 * COUNT ( * ) + 93 - + 30 WHEN 60 * - 74 / CAST ( + - 6 AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4127
SELECT + 88 * ( - 93 ), COUNT( * ) AS col1
----
-8184
1

skipif mysql # not compatible
query II rowsort label-4127
SELECT + 88 * ( - 93 ), COUNT ( * ) AS col1
----
-8184
1

query I rowsort
SELECT + 61 + - - 33 - + + 86 * 89
----
-7560

onlyif mysql # aggregate syntax: 
query II rowsort label-4129
SELECT + 31 - - - 68 - - ( - 18 ) * - 6 * + - COUNT( ALL 49 ) AS col2, 7
----
-145
7

skipif mysql # not compatible
query II rowsort label-4129
SELECT + 31 - - - 68 - - ( - 18 ) * - 6 * + - COUNT ( ALL 49 ) AS col2, 7
----
-145
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4130
SELECT SUM( ALL 73 ), 67 * + - ( 1 ) * - 96 + ( - SUM( + + 9 ) ) * + - 27 col2
----
73
6675

skipif mysql # not compatible
query II rowsort label-4130
SELECT SUM ( ALL 73 ), 67 * + - ( 1 ) * - 96 + ( - SUM ( + + 9 ) ) * + - 27 col2
----
73
6675

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

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

query I rowsort
SELECT ALL 71 + + + ( 15 ) * + 64 + + 48 AS col2
----
1079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4133
SELECT + 11 + 6 * + COUNT( * ) AS col0, 4 * CAST( + CASE - 25 WHEN 91 * - ( COUNT( * ) ) / + 20 THEN + 89 WHEN - 4 + + CASE + 10 WHEN - 73 THEN 98 WHEN - 95 THEN - - COUNT( * ) / - 45 WHEN + + CAST( NULL AS SIGNED ) THEN 96 * + 47 END THEN - 88 * 64 - - 95 * + CAST( 50 AS SIGNED ) + 49 END AS SIGNED ) - - 87 AS col1
----
17
NULL

skipif mysql # not compatible
query II rowsort label-4133
SELECT + 11 + 6 * + COUNT ( * ) AS col0, 4 * CAST ( + CASE - 25 WHEN 91 * - ( COUNT ( * ) ) / + 20 THEN + 89 WHEN - 4 + + CASE + 10 WHEN - 73 THEN 98 WHEN - 95 THEN - - COUNT ( * ) / - 45 WHEN + + CAST ( NULL AS INTEGER ) THEN 96 * + 47 END THEN - 88 * 64 - - 95 * + CAST ( 50 AS INTEGER ) + 49 END AS INTEGER ) - - 87 AS col1
----
17
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4134
SELECT ALL + CASE + 71 WHEN - 6 - - - 98 THEN - 49 WHEN COUNT( + - 15 ) / + 82 THEN NULL ELSE NULL END, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4134
SELECT ALL + CASE + 71 WHEN - 6 - - - 98 THEN - 49 WHEN COUNT ( + - 15 ) / + 82 THEN NULL ELSE NULL END, + COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4135
SELECT ALL + + CASE + + 85 WHEN + - COUNT( * ) + COUNT( * ) - - 93 / + ( + 24 ) + + 35 * COUNT( - 15 ) THEN + COUNT( * ) + + AVG ( - 27 ) + - + SUM( ALL 64 ) - + + 38 ELSE NULL END + - CAST( NULL AS SIGNED ), - 60 AS col0
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-4135
SELECT ALL + + CASE + + 85 WHEN + - COUNT ( * ) + COUNT ( * ) - - 93 / + ( + 24 ) + + 35 * COUNT ( - 15 ) THEN + COUNT ( * ) + + AVG ( - 27 ) + - + SUM ( ALL 64 ) - + + 38 ELSE NULL END + - CAST ( NULL AS INTEGER ), - 60 AS col0
----
NULL
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4136
SELECT ALL - 17 + - COUNT( * ) + CAST( + + 95 AS SIGNED ) + COUNT( * ) DIV + - 43
----
77

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL - 17 + - COUNT ( * ) + CAST ( + + 95 AS INTEGER ) + COUNT ( * ) / + - 43
----
77

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

query II rowsort
SELECT - 91 + + 51, 30 * + 79 + 50 AS col0
----
-40
2420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4139
SELECT - 60 * 46 - - - SUM( DISTINCT ( + 97 ) ) + - + 21 + - COUNT( * ) DIV 42 * + 52 + - 87 AS col2
----
-2965

skipif mysql # not compatible
query I rowsort label-4139
SELECT - 60 * 46 - - - SUM ( DISTINCT ( + 97 ) ) + - + 21 + - COUNT ( * ) / 42 * + 52 + - 87 AS col2
----
-2965

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT 42 + + MAX( + 91 ) AS col2
----
133

skipif mysql # not compatible
query I rowsort label-4140
SELECT 42 + + MAX ( + 91 ) AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT ALL - COUNT( DISTINCT + + 7 )
----
-1

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL - COUNT ( DISTINCT + + 7 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL COALESCE ( + 23, - 13 + + - 32 * + 88 ) * + NULLIF ( - COUNT( * ), 13 )
----
-23

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL COALESCE ( + 23, - 13 + + - 32 * + 88 ) * + NULLIF ( - COUNT ( * ), 13 )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-4143
SELECT + - 45 DIV 51 + 7 + 45 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4143
SELECT + - 45 / 51 + 7 + 45 AS col0
----
52

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

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

query I rowsort
SELECT 77 + - 77
----
0

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

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

query I rowsort
SELECT 92 * - 3 AS col0
----
-276

query I rowsort
SELECT + 42 * 13 + - ( 93 ) * - - 40 AS col2
----
-3174

onlyif mysql # aggregate syntax: 
query II rowsort label-4149
SELECT 2, 35 + - COUNT( * ) + 88 AS col0
----
2
122

skipif mysql # not compatible
query II rowsort label-4149
SELECT 2, 35 + - COUNT ( * ) + 88 AS col0
----
2
122

onlyif mysql # aggregate syntax: 
query II rowsort label-4150
SELECT + 33, - COUNT( * ) AS col2
----
33
-1

skipif mysql # not compatible
query II rowsort label-4150
SELECT + 33, - COUNT ( * ) AS col2
----
33
-1

query I rowsort
SELECT 73 + - 98
----
-25

query I rowsort
SELECT DISTINCT - 46 - - 38 col2
----
-8

query I rowsort
SELECT 82 * + - 17 col2
----
-1394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4154
SELECT ALL - 28 - - COALESCE ( - ( - SUM( + 91 ) ), + + 9 ) - + 70 * - CAST( NULL AS SIGNED ) * + 36 * + 27 * - 75 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL - 28 - - COALESCE ( - ( - SUM ( + 91 ) ), + + 9 ) - + 70 * - CAST ( NULL AS INTEGER ) * + 36 * + 27 * - 75 col1
----
NULL

query I rowsort
SELECT DISTINCT + 1 * - 93 AS col1
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4156
SELECT COUNT( * ) DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-4156
SELECT COUNT ( * ) / - 85
----
0

query II rowsort
SELECT ALL - 72, + 62 AS col1
----
-72
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL - 83 * ( 58 ) * - COUNT( * )
----
4814

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL - 83 * ( 58 ) * - COUNT ( * )
----
4814

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT ALL + 29 * - + ( + MIN( + 40 ) ) AS col2
----
-1160

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL + 29 * - + ( + MIN ( + 40 ) ) AS col2
----
-1160

query I rowsort
SELECT 17 + 31
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4161
SELECT 91 DIV - SUM( ALL - - 19 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4161
SELECT 91 / - SUM ( ALL - - 19 ) AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-4162
SELECT 27 DIV + 55
----
0

skipif mysql # not compatible
query I rowsort label-4162
SELECT 27 / + 55
----
0

query I rowsort
SELECT 98 * 15
----
1470

query I rowsort
SELECT 33 + - - 2 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT COUNT( * ) * - - 38 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4165
SELECT COUNT ( * ) * - - 38 AS col1
----
38

query I rowsort
SELECT DISTINCT - + 76 + 35 AS col2
----
-41

query I rowsort
SELECT CASE - 3 WHEN + 11 * - 97 THEN + 38 + 23 * + + 26 END
----
NULL

query I rowsort
SELECT ALL + + 47 + - COALESCE ( 40, - 47 ) + 56 col2
----
63

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4170
SELECT ALL - 21 + - + 76 * + COUNT( * ), - 83 AS col1
----
-97
-83

skipif mysql # not compatible
query II rowsort label-4170
SELECT ALL - 21 + - + 76 * + COUNT ( * ), - 83 AS col1
----
-97
-83

query I rowsort
SELECT DISTINCT - 63 + 93
----
30

query I rowsort
SELECT DISTINCT + - CASE - 32 WHEN + 61 * + 97 THEN - + ( - 90 ) END * 1
----
NULL

query I rowsort
SELECT - 22 * + 10 AS col2
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT 18 - - 67 - + MAX( DISTINCT + 81 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4174
SELECT 18 - - 67 - + MAX ( DISTINCT + 81 ) AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4175
SELECT DISTINCT - 19 * + 30 * - + 75 + + CAST( NULL AS SIGNED ) + 62 + - - 63 * 16 - + - COUNT( * ) * + - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT - 19 * + 30 * - + 75 + + CAST ( NULL AS INTEGER ) + 62 + - - 63 * 16 - + - COUNT ( * ) * + - 23
----
NULL

query I rowsort
SELECT ALL 5 + - - 18 * 2 + + NULLIF ( - 22, - 71 )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4177
SELECT - 88 DIV + - ( COUNT( * ) ) - - 60, - 17 AS col0
----
148
-17

skipif mysql # not compatible
query II rowsort label-4177
SELECT - 88 / + - ( COUNT ( * ) ) - - 60, - 17 AS col0
----
148
-17

query I rowsort
SELECT + 58 * + + 18 AS col1
----
1044

onlyif mysql # DIV for integer division: 
query II rowsort label-4179
SELECT - 63 AS col2, + 99 * + 88 DIV - 1
----
-63
-8712

skipif mysql # not compatible
query II rowsort label-4179
SELECT - 63 AS col2, + 99 * + 88 / - 1
----
-63
-8712

query I rowsort
SELECT DISTINCT 90 - - 46 AS col0
----
136

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

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

query I rowsort
SELECT ALL 8 - + 56
----
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4183
SELECT DISTINCT 73 DIV - CAST( NULL AS DECIMAL ) AS col1, + 40 * - - ( + 38 ) DIV + - COUNT( * )
----
NULL
-1520

skipif mysql # not compatible
query II rowsort label-4183
SELECT DISTINCT 73 / - CAST ( NULL AS REAL ) AS col1, + 40 * - - ( + 38 ) / + - COUNT ( * )
----
NULL
-1520

onlyif mysql # aggregate syntax: 
query II rowsort label-4184
SELECT MAX( DISTINCT + - 98 ) AS col0, SUM( ALL - - 49 ) AS col0
----
-98
49

skipif mysql # not compatible
query II rowsort label-4184
SELECT MAX ( DISTINCT + - 98 ) AS col0, SUM ( ALL - - 49 ) AS col0
----
-98
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4185
SELECT 57 DIV + + 86
----
0

skipif mysql # not compatible
query I rowsort label-4185
SELECT 57 / + + 86
----
0

query I rowsort
SELECT 92 * - 43 * + ( 75 )
----
-296700

query I rowsort
SELECT ALL 8 * + - 73 AS col2
----
-584

query I rowsort
SELECT 2 * + + 57
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4189
SELECT + SUM( DISTINCT + + 62 ) AS col1, COALESCE ( + - CASE + 10 WHEN - - MAX( - 8 ) + + 84 THEN + ( + + COALESCE ( 86, + 47 * + MAX( ALL + + ( 81 ) ) ) ) * + + 48 END, + + COALESCE ( 98, + 62 + - - 5, 49 * - 50 ) * - 23 - - COALESCE ( 98, - 64, + CAST( - 31 AS SIGNED ) ) ) - - 31 col1
----
62
-2125

skipif mysql # not compatible
query II rowsort label-4189
SELECT + SUM ( DISTINCT + + 62 ) AS col1, COALESCE ( + - CASE + 10 WHEN - - MAX ( - 8 ) + + 84 THEN + ( + + COALESCE ( 86, + 47 * + MAX ( ALL + + ( 81 ) ) ) ) * + + 48 END, + + COALESCE ( 98, + 62 + - - 5, 49 * - 50 ) * - 23 - - COALESCE ( 98, - 64, + CAST ( - 31 AS INTEGER ) ) ) - - 31 col1
----
62
-2125

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT 76 + - COUNT( DISTINCT - 14 ) col1
----
75

skipif mysql # not compatible
query I rowsort label-4190
SELECT 76 + - COUNT ( DISTINCT - 14 ) col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT CAST( 29 AS SIGNED ) * - 57 + - - ( - 5 )
----
-1658

skipif mysql # not compatible
query I rowsort label-4191
SELECT CAST ( 29 AS INTEGER ) * - 57 + - - ( - 5 )
----
-1658

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4193
SELECT ALL - MAX( - 23 ) AS col0, 5 - - 55
----
23
60

skipif mysql # not compatible
query II rowsort label-4193
SELECT ALL - MAX ( - 23 ) AS col0, 5 - - 55
----
23
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT DISTINCT - CAST( + - 81 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT - CAST ( + - 81 AS INTEGER )
----
81

query I rowsort
SELECT 17 * - ( + 49 ) AS col2
----
-833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT ALL + ( + CAST( + + NULLIF ( ( + 31 ), 64 ) AS SIGNED ) ) + + ( - - 89 )
----
120

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL + ( + CAST ( + + NULLIF ( ( + 31 ), 64 ) AS INTEGER ) ) + + ( - - 89 )
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT MIN( ALL + 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4197
SELECT MIN ( ALL + 74 ) AS col1
----
74

query I rowsort
SELECT 34 * 49 + - ( - 33 ) * + 90 AS col0
----
4636

onlyif mysql # aggregate syntax: 
query II rowsort label-4199
SELECT 7 * - + 57 * + 91 * 3 AS col2, 75 + 40 - COUNT( * ) * + 72
----
-108927
43

skipif mysql # not compatible
query II rowsort label-4199
SELECT 7 * - + 57 * + 91 * 3 AS col2, 75 + 40 - COUNT ( * ) * + 72
----
-108927
43

query I rowsort
SELECT ALL - ( + + 10 ) + + + 52
----
42

query I rowsort
SELECT ALL - 25 + - 80 - + - 91 AS col2
----
-14

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

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - + 82 + - COUNT ( * ) AS col0
----
-83

query I rowsort
SELECT ALL + - 11 + + - 43 AS col1
----
-54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4204
SELECT DISTINCT - 92 + + - NULLIF ( - - 24, + - CAST( NULL AS SIGNED ) ) + - + 29 * COALESCE ( ( - 77 ), - 17 * + - ( + 27 ), + 51 * 61 DIV + 25 * + - 53 * + + NULLIF ( - - 52, 38 ) + + - 95 * + 85 )
----
2117

skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT - 92 + + - NULLIF ( - - 24, + - CAST ( NULL AS INTEGER ) ) + - + 29 * COALESCE ( ( - 77 ), - 17 * + - ( + 27 ), + 51 * 61 / + 25 * + - 53 * + + NULLIF ( - - 52, 38 ) + + - 95 * + 85 )
----
2117

query I rowsort
SELECT - + 54 * + 75 * - + 31 * + - 49 - - + NULLIF ( 4, + ( + 60 ) ) AS col1
----
-6151946

query I rowsort
SELECT - - 84 + + 8
----
92

query I rowsort
SELECT + - 79 - + - 27
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-4208
SELECT + NULLIF ( + 44, - 11 + - ( 81 ) + - 48 * + 97 * - MAX( + + 50 ) - - 44 / - + ( - ( - + 44 ) ) ) * + COUNT( * ) * 77, 40 + - MAX( - 0 ) * 98 + - + 55 * - 74 AS col2
----
3388
4110

skipif mysql # not compatible
query II rowsort label-4208
SELECT + NULLIF ( + 44, - 11 + - ( 81 ) + - 48 * + 97 * - MAX ( + + 50 ) - - 44 / - + ( - ( - + 44 ) ) ) * + COUNT ( * ) * 77, 40 + - MAX ( - 0 ) * 98 + - + 55 * - 74 AS col2
----
3388
4110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4209
SELECT - + ( - 10 ) + + + COUNT( * ) + 48 DIV + - CAST( - 52 AS SIGNED ) + - + 2 DIV - + 54 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4209
SELECT - + ( - 10 ) + + + COUNT ( * ) + 48 / + - CAST ( - 52 AS INTEGER ) + - + 2 / - + 54 AS col0
----
11

query I rowsort
SELECT - 82 * + + 86 * 47 + + 84
----
-331360

query I rowsort
SELECT ALL + 58 * 81 AS col0
----
4698

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT + + 52 * ( - NULLIF ( - + COUNT( * ), COUNT( * ) ) )
----
52

skipif mysql # not compatible
query I rowsort label-4212
SELECT + + 52 * ( - NULLIF ( - + COUNT ( * ), COUNT ( * ) ) )
----
52

query I rowsort
SELECT + 78 + + 41
----
119

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

skipif mysql # not compatible
query I rowsort label-4214
SELECT - SUM ( + 28 )
----
-28

query I rowsort
SELECT ALL - 1 * + 89
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4216
SELECT + COUNT( * ) DIV 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4216
SELECT + COUNT ( * ) / 30 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4217
SELECT ALL 54 DIV - 13
----
-4

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL 54 / - 13
----
-4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4218
SELECT + CASE - 3 WHEN - 57 THEN + CAST( NULL AS DECIMAL ) * AVG ( - 3 ) + - 41 - CAST( NULL AS DECIMAL ) WHEN + 14 THEN NULL WHEN - 84 THEN + 74 * - CAST( NULL AS SIGNED ) WHEN 31 * - 23 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT + CASE - 3 WHEN - 57 THEN + CAST ( NULL AS REAL ) * AVG ( - 3 ) + - 41 - CAST ( NULL AS REAL ) WHEN + 14 THEN NULL WHEN - 84 THEN + 74 * - CAST ( NULL AS INTEGER ) WHEN 31 * - 23 THEN NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT + 59 * NULLIF ( + - 40, - COUNT( * ) ) AS col2
----
-2360

skipif mysql # not compatible
query I rowsort label-4220
SELECT + 59 * NULLIF ( + - 40, - COUNT ( * ) ) AS col2
----
-2360

query I rowsort
SELECT + 76 + + - 95
----
-19

query I rowsort
SELECT - 41 + - ( 16 )
----
-57

query I rowsort
SELECT ALL + 29 * - 31 + + 84 + + 16
----
-799

onlyif mysql # aggregate syntax: 
query II rowsort label-4224
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + 84 AS col2, 48
----
85
48

skipif mysql # not compatible
query II rowsort label-4224
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + 84 AS col2, 48
----
85
48

query II rowsort
SELECT - + 13 * 38 + + 71 AS col1, 89
----
-423
89

query I rowsort
SELECT DISTINCT + 56 * 76 * + 86 + + 89
----
366105

query I rowsort
SELECT - ( 71 ) * - - 2 + + 44
----
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4228
SELECT - - ( + 35 ) + + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT - - ( + 35 ) + + CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT ALL - + 4 * - 36 AS col2
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4230
SELECT DISTINCT - CASE + 17 WHEN + - CASE 87 WHEN - 20 THEN + 39 + 93 END * - 41 * + ( - 47 ) * + 75 THEN - 50 + + COUNT( * ) WHEN - - CASE AVG ( DISTINCT ( + 48 ) ) WHEN + ( 82 ) THEN CASE - NULLIF ( - 14, + - 13 - + 61 ) WHEN - 45 - 65 THEN - COUNT( * ) + - 39 WHEN + 78 THEN NULL ELSE + 0 + 73 END * COUNT( * ) WHEN + 77 * 62 THEN + CAST( COUNT( * ) AS SIGNED ) * + COALESCE ( AVG ( - CAST( NULL AS SIGNED ) ) + 68 * + 75, - 88 ) WHEN ( - 72 ) THEN + COUNT( DISTINCT 71 ) END THEN 42 ELSE + 96 + + NULLIF ( + 73, + 38 ) * - 37 END col2
----
2605

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT - CASE + 17 WHEN + - CASE 87 WHEN - 20 THEN + 39 + 93 END * - 41 * + ( - 47 ) * + 75 THEN - 50 + + COUNT ( * ) WHEN - - CASE AVG ( DISTINCT ( + 48 ) ) WHEN + ( 82 ) THEN CASE - NULLIF ( - 14, + - 13 - + 61 ) WHEN - 45 - 65 THEN - COUNT ( * ) + - 39 WHEN + 78 THEN NULL ELSE + 0 + 73 END * COUNT ( * ) WHEN + 77 * 62 THEN + CAST ( COUNT ( * ) AS INTEGER ) * + COALESCE ( AVG ( - CAST ( NULL AS INTEGER ) ) + 68 * + 75, - 88 ) WHEN ( - 72 ) THEN + COUNT ( DISTINCT 71 ) END THEN 42 ELSE + 96 + + NULLIF ( + 73, + 38 ) * - 37 END col2
----
2605

query II rowsort
SELECT - 25, 62 + + + 40 AS col2
----
-25
102

query I rowsort
SELECT ALL + - 12 * - 1 + 2 + - + 25 AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4233
SELECT ALL NULLIF ( 53, + - COUNT( * ) * + 23 / - + 59 + 71 + + 25 + - - 24 * - 61 * + CASE + ( COUNT( * ) ) WHEN + + CAST( + + 36 AS SIGNED ) THEN 74 WHEN COUNT( * ) THEN + - NULLIF ( + - 71, 88 ) END - - ( ( + ( + + 6 ) ) ) / - 38 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL NULLIF ( 53, + - COUNT ( * ) * + 23 / - + 59 + 71 + + 25 + - - 24 * - 61 * + CASE + ( COUNT ( * ) ) WHEN + + CAST ( + + 36 AS INTEGER ) THEN 74 WHEN COUNT ( * ) THEN + - NULLIF ( + - 71, 88 ) END - - ( ( + ( + + 6 ) ) ) / - 38 ) AS col1
----
53

query I rowsort
SELECT - - 81 * - 87 AS col2
----
-7047

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4235
SELECT ALL - COALESCE ( + 68, + 28 + 81 + - 21 + - + 63 + + - 97 * + 9 DIV + 71 + - 45 * 75 DIV - 24, - + 88 * - + 8 + + COUNT( * ) )
----
-68

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL - COALESCE ( + 68, + 28 + 81 + - 21 + - + 63 + + - 97 * + 9 / + 71 + - 45 * 75 / - 24, - + 88 * - + 8 + + COUNT ( * ) )
----
-68

query I rowsort
SELECT - + 6 * + 68 AS col1
----
-408

query I rowsort
SELECT - - 48 * 40 AS col2
----
1920

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

skipif mysql # not compatible
query I rowsort label-4238
SELECT - - SUM ( + 99 )
----
99

query I rowsort
SELECT - NULLIF ( + + 77, + ( - 60 ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT - ( - MIN( ALL + 60 ) ) * - - 10 + + 68 * COUNT( * ) * MIN( DISTINCT + 77 ) + - 36 + + - 23 - 57 + COUNT( * ) * + 90 * 39 * + 86 + - 33 + + 96 - - + 70
----
307713

skipif mysql # not compatible
query I rowsort label-4240
SELECT - ( - MIN ( ALL + 60 ) ) * - - 10 + + 68 * COUNT ( * ) * MIN ( DISTINCT + 77 ) + - 36 + + - 23 - 57 + COUNT ( * ) * + 90 * 39 * + 86 + - 33 + + 96 - - + 70
----
307713

query II rowsort
SELECT DISTINCT ( - 0 ), - 36 * - - 12 + + 0 AS col0
----
0
-432

query I rowsort
SELECT ALL 13 * - 93 AS col1
----
-1209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4243
SELECT DISTINCT CAST( - 83 AS SIGNED ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT CAST ( - 83 AS INTEGER ) AS col1
----
-83

query II rowsort
SELECT 18 AS col2, + 94 AS col2
----
18
94

query I rowsort
SELECT ALL + 24 + - - 44 - - ( - 58 )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4246
SELECT ALL + NULLIF ( - 76, - COALESCE ( + 25, - CAST( NULL AS SIGNED ), + - MIN( DISTINCT 5 ) * 22 + - + 51 ) ) DIV 34 + NULLIF ( - - COUNT( * ), + 7 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL + NULLIF ( - 76, - COALESCE ( + 25, - CAST ( NULL AS INTEGER ), + - MIN ( DISTINCT 5 ) * 22 + - + 51 ) ) / 34 + NULLIF ( - - COUNT ( * ), + 7 ) AS col1
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4248
SELECT - NULLIF ( + - 70, + CAST( + 1 AS SIGNED ) * + + COALESCE ( + - 68, + ( + + 61 ) + NULLIF ( - 69, + 83 ) + + - MIN( DISTINCT 41 ) + + CAST( + AVG ( - 5 ) AS SIGNED ) ) ) * 44 AS col0
----
3080

skipif mysql # not compatible
query I rowsort label-4248
SELECT - NULLIF ( + - 70, + CAST ( + 1 AS INTEGER ) * + + COALESCE ( + - 68, + ( + + 61 ) + NULLIF ( - 69, + 83 ) + + - MIN ( DISTINCT 41 ) + + CAST ( + AVG ( - 5 ) AS INTEGER ) ) ) * 44 AS col0
----
3080

query II rowsort
SELECT ALL + 72 AS col0, + ( 45 ) col0
----
72
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT ALL 99 + - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL 99 + - COUNT ( * )
----
98

query I rowsort
SELECT 83 * + 60 AS col1
----
4980

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT DISTINCT MAX( + - 63 ) * + 74 AS col2
----
-4662

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT MAX ( + - 63 ) * + 74 AS col2
----
-4662

query II rowsort
SELECT DISTINCT - 21, 69 AS col0
----
-21
69

query II rowsort
SELECT DISTINCT - + 33 AS col0, 71 * 62 AS col2
----
-33
4402

query II rowsort
SELECT + 77 - 11 AS col2, ( + 50 )
----
66
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4256
SELECT DISTINCT 56 * - + 95 * + + CAST( - 79 AS SIGNED ) * - 61 AS col0
----
-25637080

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT 56 * - + 95 * + + CAST ( - 79 AS INTEGER ) * - 61 AS col0
----
-25637080

onlyif mysql # aggregate syntax: 
query II rowsort label-4257
SELECT + 35 * + - COUNT( * ) AS col0, 78 - - 92 + - 15 - + - 60
----
-35
215

skipif mysql # not compatible
query II rowsort label-4257
SELECT + 35 * + - COUNT ( * ) AS col0, 78 - - 92 + - 15 - + - 60
----
-35
215

query I rowsort
SELECT - 44 + 30
----
-14

query II rowsort
SELECT 62 * + 59 * + 81 * 80 AS col1, - 30 AS col2
----
23703840
-30

query II rowsort
SELECT ALL - 52 AS col2, - 10 col1
----
-52
-10

query II rowsort
SELECT DISTINCT 66 AS col0, 92
----
66
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT 92 + - 20 - - - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-4263
SELECT 92 + - 20 - - - COUNT ( * )
----
71

query I rowsort
SELECT 2 + + + 5 AS col1
----
7

query I rowsort
SELECT 21 + - 44 * + - 88
----
3893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4266
SELECT ALL + NULLIF ( CAST( NULL AS SIGNED ), + 4 ) + - 11 - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL + NULLIF ( CAST ( NULL AS INTEGER ), + 4 ) + - 11 - 48 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4267
SELECT CAST( + 12 AS SIGNED ) * - + 14, 37 AS col0
----
-168
37

skipif mysql # not compatible
query II rowsort label-4267
SELECT CAST ( + 12 AS INTEGER ) * - + 14, 37 AS col0
----
-168
37

query I rowsort
SELECT 37 + - 61 AS col0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4269
SELECT DISTINCT + 11 DIV 21 AS col0, - 96 * - - 2 + + - NULLIF ( + CASE SUM( - 40 ) WHEN - MAX( DISTINCT - + 82 ) THEN - MAX( + 83 ) WHEN - 18 * - 64 THEN NULL END, + 72 ) + + COUNT( * ) + - 93 * + COUNT( * ) * + 77 col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4269
SELECT DISTINCT + 11 / 21 AS col0, - 96 * - - 2 + + - NULLIF ( + CASE SUM ( - 40 ) WHEN - MAX ( DISTINCT - + 82 ) THEN - MAX ( + 83 ) WHEN - 18 * - 64 THEN NULL END, + 72 ) + + COUNT ( * ) + - 93 * + COUNT ( * ) * + 77 col1
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4270
SELECT 11 DIV 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4270
SELECT 11 / 55 AS col0
----
0

query I rowsort
SELECT DISTINCT + ( + 68 ) + + 79 AS col0
----
147

query I rowsort
SELECT ALL + 39 + + 95 * + - 13 + - 19 * 59
----
-2317

query I rowsort
SELECT - NULLIF ( + + 20, 91 ) * + 18 * - 36 * - 22 + + 8 + - 26 + 22
----
-285116

query I rowsort
SELECT DISTINCT 59 * + ( - ( + 43 ) ) AS col0
----
-2537

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4276
SELECT ALL - 94 + + 90, + COUNT( * ) * - - NULLIF ( + 92, + 77 ) AS col1
----
-4
92

skipif mysql # not compatible
query II rowsort label-4276
SELECT ALL - 94 + + 90, + COUNT ( * ) * - - NULLIF ( + 92, + 77 ) AS col1
----
-4
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4277
SELECT - 42 * 26 * 36 + + - 31 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT - 42 * 26 * 36 + + - 31 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 2 * 24 * + 43 col1
----
2064

query I rowsort
SELECT ALL - - 33 - + 55 col1
----
-22

query I rowsort
SELECT DISTINCT + + 70 * 70
----
4900

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT 0 * + NULLIF ( - - 34, - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4281
SELECT 0 * + NULLIF ( - - 34, - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4282
SELECT + - MAX( ALL + - 17 ), + 82 DIV - 20 col0
----
17
-4

skipif mysql # not compatible
query II rowsort label-4282
SELECT + - MAX ( ALL + - 17 ), + 82 / - 20 col0
----
17
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT CASE 60 WHEN - - 65 * - 46 * - NULLIF ( + 59, + 59 ) THEN NULL WHEN + 87 THEN + COUNT( * ) * + + 59 - 39 WHEN COUNT( * ) THEN NULL END * 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT CASE 60 WHEN - - 65 * - 46 * - NULLIF ( + 59, + 59 ) THEN NULL WHEN + 87 THEN + COUNT ( * ) * + + 59 - 39 WHEN COUNT ( * ) THEN NULL END * 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT 15 * 15 * + COUNT( * ) * - 86 * + 37 + - + ( - CASE + + 74 WHEN + CASE + + AVG ( ALL - 29 ) WHEN 67 THEN + COUNT( * ) WHEN + 21 * - 81 + 73 THEN NULL ELSE NULL END THEN + - 84 * + - AVG ( DISTINCT - 84 ) - - 10 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT 15 * 15 * + COUNT ( * ) * - 86 * + 37 + - + ( - CASE + + 74 WHEN + CASE + + AVG ( ALL - 29 ) WHEN 67 THEN + COUNT ( * ) WHEN + 21 * - 81 + 73 THEN NULL ELSE NULL END THEN + - 84 * + - AVG ( DISTINCT - 84 ) - - 10 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4285
SELECT ALL + 35 + CASE + - 41 WHEN - - 89 * 77 - + 18 * 23 + + 20 + - CAST( NULL AS SIGNED ) / + 89 THEN NULL WHEN - + 63 THEN NULL WHEN + + COUNT( * ) THEN NULL ELSE + 30 END + + + SUM( DISTINCT + 89 ) + - 87 + - 12 * + NULLIF ( + + ( 80 ), NULLIF ( + - 71, - CASE 43 WHEN 61 + - 27 THEN - - 22 - + 17 + + 27 * - SUM( - 52 ) * + COALESCE ( - 85, + 23, MAX( + ( 14 ) ) ) + + 6 / + 52 WHEN 39 / + 10 THEN NULL END ) )
----
-893

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL + 35 + CASE + - 41 WHEN - - 89 * 77 - + 18 * 23 + + 20 + - CAST ( NULL AS INTEGER ) / + 89 THEN NULL WHEN - + 63 THEN NULL WHEN + + COUNT ( * ) THEN NULL ELSE + 30 END + + + SUM ( DISTINCT + 89 ) + - 87 + - 12 * + NULLIF ( + + ( 80 ), NULLIF ( + - 71, - CASE 43 WHEN 61 + - 27 THEN - - 22 - + 17 + + 27 * - SUM ( - 52 ) * + COALESCE ( - 85, + 23, MAX ( + ( 14 ) ) ) + + 6 / + 52 WHEN 39 / + 10 THEN NULL END ) )
----
-893

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

skipif mysql # not compatible
query I rowsort label-4286
SELECT - MIN ( ALL + ( - CAST ( + 39 AS INTEGER ) ) )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4287
SELECT ALL 47 * CASE - CAST( NULL AS SIGNED ) WHEN 37 THEN - 55 ELSE NULL END / + 86 * + COALESCE ( - COUNT( * ), 23 * - 5 / + + 59 + 41 + - - 19 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL 47 * CASE - CAST ( NULL AS INTEGER ) WHEN 37 THEN - 55 ELSE NULL END / + 86 * + COALESCE ( - COUNT ( * ), 23 * - 5 / + + 59 + 41 + - - 19 ) col1
----
NULL

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

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

query II rowsort
SELECT ALL 19 AS col0, + ( 91 ) * - + 70 * - 48
----
19
305760

query I rowsort
SELECT ( 61 ) * 34
----
2074

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT 92 - + 42 + - - 16 * + 35 * COUNT( * ) col2
----
610

skipif mysql # not compatible
query I rowsort label-4292
SELECT 92 - + 42 + - - 16 * + 35 * COUNT ( * ) col2
----
610

query II rowsort
SELECT ALL 30 col1, - 56 * + 40 AS col2
----
30
-2240

query I rowsort
SELECT ( + 4 ) - 40 + 13 * - 61 AS col2
----
-829

query II rowsort
SELECT ALL 41 col0, 87 AS col2
----
41
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL + 7 + - COUNT( + 10 )
----
6

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL + 7 + - COUNT ( + 10 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4297
SELECT ALL ( - CAST( NULL AS SIGNED ) ) / + MAX( + 45 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) / + MAX ( + 45 ) AS col1
----
NULL

query I rowsort
SELECT - 6 - + + 10 AS col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT - 82 DIV 52 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4299
SELECT - 82 / 52 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT ALL 88 - - MIN( ALL 83 )
----
171

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL 88 - - MIN ( ALL 83 )
----
171

query I rowsort
SELECT - 0 * + 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4302
SELECT - 39 * - 32 + + 46 - + ( + 53 ) + + 17 * ( - 82 ) DIV + 92 + - - 63 * + - CAST( + CAST( - CAST( + 7 AS SIGNED ) AS SIGNED ) AS SIGNED ) AS col2, + 81 * + + 63 * + + COUNT( * )
----
1667
5103

skipif mysql # not compatible
query II rowsort label-4302
SELECT - 39 * - 32 + + 46 - + ( + 53 ) + + 17 * ( - 82 ) / + 92 + - - 63 * + - CAST ( + CAST ( - CAST ( + 7 AS INTEGER ) AS INTEGER ) AS INTEGER ) AS col2, + 81 * + + 63 * + + COUNT ( * )
----
1667
5103

query I rowsort
SELECT COALESCE ( 33, + 31 )
----
33

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4305
SELECT 44 DIV + 83 + + 93 - + - 5 * - - 76 AS col2
----
473

skipif mysql # not compatible
query I rowsort label-4305
SELECT 44 / + 83 + + 93 - + - 5 * - - 76 AS col2
----
473

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4306
SELECT - + COALESCE ( ( - + ( - - SUM( - 98 ) ) ), + 6 + - 63 + - - NULLIF ( - - ( - + 57 ), COALESCE ( COUNT( - 21 ), + 70 ) ) - - 92 ) DIV - COUNT( * ) col1
----
98

skipif mysql # not compatible
query I rowsort label-4306
SELECT - + COALESCE ( ( - + ( - - SUM ( - 98 ) ) ), + 6 + - 63 + - - NULLIF ( - - ( - + 57 ), COALESCE ( COUNT ( - 21 ), + 70 ) ) - - 92 ) / - COUNT ( * ) col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4307
SELECT - - CAST( NULL AS SIGNED ) + - 36 + + - 57 - + - 78 + + CAST( NULL AS SIGNED ) + - 6 / 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4307
SELECT - - CAST ( NULL AS INTEGER ) + - 36 + + - 57 - + - 78 + + CAST ( NULL AS INTEGER ) + - 6 / 95 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4308
SELECT DISTINCT - 15 DIV 28 * + 84 * + - COUNT( * ) - - 65 col0
----
65

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT - 15 / 28 * + 84 * + - COUNT ( * ) - - 65 col0
----
65

query II rowsort
SELECT ALL + 43 AS col1, 38 + - 69 * - + 48 AS col2
----
43
3350

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT + + 85 * - CAST( ( - 42 ) AS SIGNED ) + 54 col1
----
3624

skipif mysql # not compatible
query I rowsort label-4311
SELECT + + 85 * - CAST ( ( - 42 ) AS INTEGER ) + 54 col1
----
3624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4312
SELECT ALL + + CAST( - - 49 AS SIGNED ) * - - ( - SUM( - 20 ) ) * - - 37 / + 20 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL + + CAST ( - - 49 AS INTEGER ) * - - ( - SUM ( - 20 ) ) * - - 37 / + 20 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT + CAST ( + 51 AS INTEGER ) AS col1
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-4314
SELECT - - 99 - + 68 DIV - 98 + 62 + - 82 * + 11 * - 5 - - 23 AS col0, + 33 + - + 91 + - ( 48 ) * 71
----
4694
-3466

skipif mysql # not compatible
query II rowsort label-4314
SELECT - - 99 - + 68 / - 98 + 62 + - 82 * + 11 * - 5 - - 23 AS col0, + 33 + - + 91 + - ( 48 ) * 71
----
4694
-3466

query I rowsort
SELECT DISTINCT + ( - CASE - 22 WHEN 79 * + 33 THEN - 0 + + 2 * - + 50 - - - 93 WHEN - 46 - - 67 THEN NULL END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4316
SELECT - - 24 + + + 57 DIV + 9 - + + 79 * 32 * 58 col2
----
-146594

skipif mysql # not compatible
query I rowsort label-4316
SELECT - - 24 + + + 57 / + 9 - + + 79 * 32 * 58 col2
----
-146594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4317
SELECT 87, 68 * - CAST( 12 AS SIGNED ) * - COUNT( ALL - + 58 ) - + + 39 AS col1
----
87
777

skipif mysql # not compatible
query II rowsort label-4317
SELECT 87, 68 * - CAST ( 12 AS INTEGER ) * - COUNT ( ALL - + 58 ) - + + 39 AS col1
----
87
777

query I rowsort
SELECT ALL 1 * 83 + + 65 AS col0
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4319
SELECT DISTINCT - 69 * + 3 DIV - - COUNT( * ) + - COUNT( * ) AS col1
----
-208

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT - 69 * + 3 / - - COUNT ( * ) + - COUNT ( * ) AS col1
----
-208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4320
SELECT ALL 19 DIV + COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL 19 / + COUNT ( * ) AS col1
----
19

query I rowsort
SELECT + 96 * - 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT ALL 49 * 11 + 8 * + + 66 + - - ( + COUNT( * ) ) * + CASE 76 WHEN 12 + NULLIF ( 2, + - MIN( DISTINCT - - 71 ) + + COUNT( * ) ) THEN NULL WHEN COUNT( 41 ) + - 92 THEN + 71 * - + 7 + 58 - + 4 * + 83 - + + CASE - COUNT( * ) WHEN - - 92 / - 79 + + + ( + - COUNT( * ) ) * 59 + + 76 + + + COUNT( * ) + ( - 68 ) THEN - ( - 84 ) ELSE - COUNT( * ) END END / + 72 + + CASE - 47 WHEN - 94 * + 2 THEN 12 * 6 + MAX( ( - 65 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL 49 * 11 + 8 * + + 66 + - - ( + COUNT ( * ) ) * + CASE 76 WHEN 12 + NULLIF ( 2, + - MIN ( DISTINCT - - 71 ) + + COUNT ( * ) ) THEN NULL WHEN COUNT ( 41 ) + - 92 THEN + 71 * - + 7 + 58 - + 4 * + 83 - + + CASE - COUNT ( * ) WHEN - - 92 / - 79 + + + ( + - COUNT ( * ) ) * 59 + + 76 + + + COUNT ( * ) + ( - 68 ) THEN - ( - 84 ) ELSE - COUNT ( * ) END END / + 72 + + CASE - 47 WHEN - 94 * + 2 THEN 12 * 6 + MAX ( ( - 65 ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4323
SELECT 1 * + 19 / + - CASE 66 WHEN 55 THEN NULL WHEN + NULLIF ( + COUNT( * ), 2 ) THEN + 82 WHEN - COUNT( * ) THEN NULL END * - - 35 * 75 * - MIN( - 93 ) * - - ( + - NULLIF ( - + CASE - CAST( + 74 AS SIGNED ) WHEN - - 36 THEN - 64 + NULLIF ( 39, - 5 ) * - 14 END, - + CASE - + 88 WHEN + 0 + + 14 THEN NULL WHEN + - 72 THEN + 61 ELSE NULL END / - - 14 ) ) + + - 73 * - 37 * + COUNT( * ) - 58 + + 46 * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT 1 * + 19 / + - CASE 66 WHEN 55 THEN NULL WHEN + NULLIF ( + COUNT ( * ), 2 ) THEN + 82 WHEN - COUNT ( * ) THEN NULL END * - - 35 * 75 * - MIN ( - 93 ) * - - ( + - NULLIF ( - + CASE - CAST ( + 74 AS INTEGER ) WHEN - - 36 THEN - 64 + NULLIF ( 39, - 5 ) * - 14 END, - + CASE - + 88 WHEN + 0 + + 14 THEN NULL WHEN + - 72 THEN + 61 ELSE NULL END / - - 14 ) ) + + - 73 * - 37 * + COUNT ( * ) - 58 + + 46 * 43
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT - ( 93 ) + COUNT( * ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4325
SELECT - ( 93 ) + COUNT ( * ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT ALL 54 * 82 * - COUNT( * ) AS col1
----
-4428

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL 54 * 82 * - COUNT ( * ) AS col1
----
-4428

query I rowsort
SELECT + 36 + 97
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4328
SELECT + 30 + - + CAST( 2 AS SIGNED ) - - 39 + + + 84 * + 0 * + 5 + - + 31 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4328
SELECT + 30 + - + CAST ( 2 AS INTEGER ) - - 39 + + + 84 * + 0 * + 5 + - + 31 AS col2
----
36

query I rowsort
SELECT ALL ( - - 76 ) * + 42
----
3192

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

skipif mysql # not compatible
query I rowsort label-4330
SELECT + 82 + - + COUNT ( * )
----
81

query I rowsort
SELECT + 59 + NULLIF ( - - 73, + + 5 ) AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT + 70 * + + COUNT( * ) * 43
----
3010

skipif mysql # not compatible
query I rowsort label-4332
SELECT + 70 * + + COUNT ( * ) * 43
----
3010

query I rowsort
SELECT + 76 * - 36 * - 27 AS col1
----
73872

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT - SUM( ALL + 72 ) + - 90
----
-162

skipif mysql # not compatible
query I rowsort label-4334
SELECT - SUM ( ALL + 72 ) + - 90
----
-162

query I rowsort
SELECT ALL 38 * - 61 AS col0
----
-2318

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT + ( - ( + 32 ) ) * - 16 * - COUNT( * ) * 64
----
-32768

skipif mysql # not compatible
query I rowsort label-4336
SELECT + ( - ( + 32 ) ) * - 16 * - COUNT ( * ) * 64
----
-32768

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT - - COUNT( * ) + - + ( + - 49 )
----
50

skipif mysql # not compatible
query I rowsort label-4337
SELECT - - COUNT ( * ) + - + ( + - 49 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT + + COUNT( - 48 )
----
1

skipif mysql # not compatible
query I rowsort label-4338
SELECT + + COUNT ( - 48 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT + 32 * 97 + + + 66 + - 9 + + 5 + + CASE - + 90 WHEN + - 11 + + 91 THEN NULL ELSE NULLIF ( - COUNT( * ), + 30 + + COALESCE ( 22, 38 ) - + + 35 * - + 0 - - COUNT( * ) * - ( + 16 ) * + COUNT( * ) * + 20 ) + - + 87 - - COUNT( * ) END + + + 16 * SUM( - - 13 ) * - 88 + - 28 + - + 67
----
-15320

skipif mysql # not compatible
query I rowsort label-4339
SELECT + 32 * 97 + + + 66 + - 9 + + 5 + + CASE - + 90 WHEN + - 11 + + 91 THEN NULL ELSE NULLIF ( - COUNT ( * ), + 30 + + COALESCE ( 22, 38 ) - + + 35 * - + 0 - - COUNT ( * ) * - ( + 16 ) * + COUNT ( * ) * + 20 ) + - + 87 - - COUNT ( * ) END + + + 16 * SUM ( - - 13 ) * - 88 + - 28 + - + 67
----
-15320

query I rowsort
SELECT + - 70 - - ( + 87 ) AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4341
SELECT + 45 DIV 68 * + 23 + - 85 + 53 - COUNT( * ) - 1 + MAX( ALL - - 58 ) + - COUNT( * ) * + NULLIF ( + 34, - - ( CAST( + - COALESCE ( + MIN( DISTINCT + + 85 ), 51, - 57 * 62 ) AS SIGNED ) ) ) * - 24 * 2 + + 39 * + 14 + + 88
----
2290

skipif mysql # not compatible
query I rowsort label-4341
SELECT + 45 / 68 * + 23 + - 85 + 53 - COUNT ( * ) - 1 + MAX ( ALL - - 58 ) + - COUNT ( * ) * + NULLIF ( + 34, - - ( CAST ( + - COALESCE ( + MIN ( DISTINCT + + 85 ), 51, - 57 * 62 ) AS INTEGER ) ) ) * - 24 * 2 + + 39 * + 14 + + 88
----
2290

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT - COUNT( * ) * + - 60 + - + 48
----
12

skipif mysql # not compatible
query I rowsort label-4342
SELECT - COUNT ( * ) * + - 60 + - + 48
----
12

query I rowsort
SELECT + 24 * + 83 AS col0
----
1992

onlyif mysql # DIV for integer division: 
query I rowsort label-4344
SELECT ALL - 9 DIV + 59 * - + 31
----
0

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL - 9 / + 59 * - + 31
----
0

query I rowsort
SELECT DISTINCT + ( + 55 ) * 21 AS col0
----
1155

query I rowsort
SELECT 13 * - 93 + - 2 * 85 + + + 96 AS col2
----
-1283

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT ALL - 80 * 6 + ( + COUNT( DISTINCT - - 7 ) )
----
-479

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL - 80 * 6 + ( + COUNT ( DISTINCT - - 7 ) )
----
-479

onlyif mysql # aggregate syntax: 
query II rowsort label-4348
SELECT ( - 74 ) AS col1, COUNT( * ) AS col1
----
-74
1

skipif mysql # not compatible
query II rowsort label-4348
SELECT ( - 74 ) AS col1, COUNT ( * ) AS col1
----
-74
1

query I rowsort
SELECT - 84 * + 17
----
-1428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4350
SELECT ALL + CASE + - ( + 84 ) WHEN CAST( - 37 AS SIGNED ) THEN - 55 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL + CASE + - ( + 84 ) WHEN CAST ( - 37 AS INTEGER ) THEN - 55 END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4351
SELECT DISTINCT - 19 * + 62 + + - COALESCE ( COALESCE ( + - 24, + 47 * + 91 DIV - + COUNT( * ) * + - 69 - + 68 + - 73 - - 67 + + + 57 * - 21 + - - 62 DIV 70 DIV - 53 * - + 28 * + COUNT( * ) ), + + ( + CAST( NULL AS SIGNED ) ) ) AS col1
----
-1154

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT - 19 * + 62 + + - COALESCE ( COALESCE ( + - 24, + 47 * + 91 / - + COUNT ( * ) * + - 69 - + 68 + - 73 - - 67 + + + 57 * - 21 + - - 62 / 70 / - 53 * - + 28 * + COUNT ( * ) ), + + ( + CAST ( NULL AS INTEGER ) ) ) AS col1
----
-1154

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ALL - COUNT( * ) - + 5 - - 39 * - 0 + - 90 + - 1 + + 14 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL - COUNT ( * ) - + 5 - - 39 * - 0 + - 90 + - 1 + + 14 AS col2
----
-83

query I rowsort
SELECT 17 * + + 27 AS col2
----
459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4354
SELECT DISTINCT - COUNT( * ) * - - 3 * 9 * - COALESCE ( - 48, 27, - CAST( + + 37 AS SIGNED ) DIV + - 99 ) * + CAST( 29 AS SIGNED ) AS col1
----
-37584

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT - COUNT ( * ) * - - 3 * 9 * - COALESCE ( - 48, 27, - CAST ( + + 37 AS INTEGER ) / + - 99 ) * + CAST ( 29 AS INTEGER ) AS col1
----
-37584

onlyif mysql # aggregate syntax: 
query II rowsort label-4355
SELECT DISTINCT 83 AS col2, + 29 * COUNT( * )
----
83
29

skipif mysql # not compatible
query II rowsort label-4355
SELECT DISTINCT 83 AS col2, + 29 * COUNT ( * )
----
83
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4356
SELECT DISTINCT 85 AS col0, + COUNT( * ) DIV - 88 * - ( 87 ) + + + 24 AS col1
----
85
24

skipif mysql # not compatible
query II rowsort label-4356
SELECT DISTINCT 85 AS col0, + COUNT ( * ) / - 88 * - ( 87 ) + + + 24 AS col1
----
85
24

query I rowsort
SELECT ALL - 7 - + 99
----
-106

onlyif mysql # DIV for integer division: 
query II rowsort label-4358
SELECT 19 AS col0, 94 DIV - 98 + - 83
----
19
-83

skipif mysql # not compatible
query II rowsort label-4358
SELECT 19 AS col0, 94 / - 98 + - 83
----
19
-83

query I rowsort
SELECT 26 - - + ( - + 83 )
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4360
SELECT SUM( - + 62 ) DIV 80 + - 75
----
-75

skipif mysql # not compatible
query I rowsort label-4360
SELECT SUM ( - + 62 ) / 80 + - 75
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4361
SELECT 36 - + + CAST( NULL AS SIGNED ) * - 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4361
SELECT 36 - + + CAST ( NULL AS INTEGER ) * - 80 AS col0
----
NULL

query I rowsort
SELECT 45 * - 79 AS col1
----
-3555

query I rowsort
SELECT ALL 35 * 57
----
1995

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4364
SELECT MIN( + 9 ) DIV - + 34 + + 74
----
74

skipif mysql # not compatible
query I rowsort label-4364
SELECT MIN ( + 9 ) / - + 34 + + 74
----
74

query II rowsort
SELECT ALL 11 AS col0, + 10 * + 58
----
11
580

onlyif mysql # DIV for integer division: 
query I rowsort label-4366
SELECT ALL COALESCE ( 47, 10, 43 + 45 DIV + ( 47 ) )
----
47

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL COALESCE ( 47, 10, 43 + 45 / + ( 47 ) )
----
47

query I rowsort
SELECT DISTINCT - + 76 * - 20 AS col1
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL + ( - COUNT( * ) ) * + ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL + ( - COUNT ( * ) ) * + ( COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4369
SELECT DISTINCT CAST( + COUNT( ALL + 50 ) AS SIGNED ) * + ( - COUNT( * ) ) * + COUNT( * ) + + 52 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT CAST ( + COUNT ( ALL + 50 ) AS INTEGER ) * + ( - COUNT ( * ) ) * + COUNT ( * ) + + 52 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT 75 - COUNT( * ) + - + MIN( + 20 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4370
SELECT 75 - COUNT ( * ) + - + MIN ( + 20 ) AS col2
----
54

query I rowsort
SELECT ALL 11 + 66 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4372
SELECT 93 * + + CASE + 63 WHEN + 77 + + COUNT( * ) + + CAST( + - 9 AS SIGNED ) + - 73 + 78 + - - CAST( NULL AS SIGNED ) * - ( 78 ) * + 51 THEN ( - 14 ) ELSE NULL END - + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4372
SELECT 93 * + + CASE + 63 WHEN + 77 + + COUNT ( * ) + + CAST ( + - 9 AS INTEGER ) + - 73 + 78 + - - CAST ( NULL AS INTEGER ) * - ( 78 ) * + 51 THEN ( - 14 ) ELSE NULL END - + 57 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4373
SELECT + CAST( NULL AS SIGNED ) * + ( 90 ) + - - ( - NULLIF ( + 97, 77 + + 35 + 15 + + 18 + - 23 + - 95 + + ( + + 26 ) ) ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT + CAST ( NULL AS INTEGER ) * + ( 90 ) + - - ( - NULLIF ( + 97, 77 + + 35 + 15 + + 18 + - 23 + - 95 + + ( + + 26 ) ) ) * + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT DISTINCT - 72 + + + 22 + + 84 * + - COUNT( - 45 ) col1
----
-134

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT - 72 + + + 22 + + 84 * + - COUNT ( - 45 ) col1
----
-134

query I rowsort
SELECT ALL 77 + - 21
----
56

query I rowsort
SELECT DISTINCT - 80 * + 29 + 72
----
-2248

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT DISTINCT SUM( DISTINCT - 88 ) + 79 * + + 13 AS col0
----
939

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT SUM ( DISTINCT - 88 ) + 79 * + + 13 AS col0
----
939

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT ALL - + COUNT( * ) * + 22 * - 97 - 8
----
2126

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL - + COUNT ( * ) * + 22 * - 97 - 8
----
2126

query I rowsort
SELECT + 44 * + 56 * 37 AS col1
----
91168

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT ALL - 36 + - - COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL - 36 + - - COUNT ( * ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT DISTINCT COUNT( * ) * + 96 + 49 + ( + + 59 )
----
204

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT COUNT ( * ) * + 96 + 49 + ( + + 59 )
----
204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4382
SELECT + COALESCE ( CAST( NULL AS SIGNED ), + CAST( 96 AS SIGNED ) ) * - + COUNT( * ) col2
----
-96

skipif mysql # not compatible
query I rowsort label-4382
SELECT + COALESCE ( CAST ( NULL AS INTEGER ), + CAST ( 96 AS INTEGER ) ) * - + COUNT ( * ) col2
----
-96

query I rowsort
SELECT ALL 41 * - 17 AS col0
----
-697

query I rowsort
SELECT - 10 + - 91 AS col2
----
-101

query I rowsort
SELECT 31 * + 67 AS col0
----
2077

query I rowsort
SELECT 1 + 99 col0
----
100

query I rowsort
SELECT DISTINCT 84 * + 69
----
5796

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4388
SELECT ( 30 ) DIV - MAX( - 99 ) + MIN( DISTINCT 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4388
SELECT ( 30 ) / - MAX ( - 99 ) + MIN ( DISTINCT 94 ) AS col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4389
SELECT DISTINCT + ( 85 ) DIV - 21 + - 77
----
-81

skipif mysql # not compatible
query I rowsort label-4389
SELECT DISTINCT + ( 85 ) / - 21 + - 77
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT 75 * - - 82 - COUNT( * ) + - 66 * - 74 + + CASE - + 71 WHEN + 34 + 20 THEN NULL WHEN + 12 + + 48 THEN - 78 WHEN + + 15 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT 75 * - - 82 - COUNT ( * ) + - 66 * - 74 + + CASE - + 71 WHEN + 34 + 20 THEN NULL WHEN + 12 + + 48 THEN - 78 WHEN + + 15 THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT ALL - 62, ( - 83 ) AS col2
----
-62
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4392
SELECT ALL + 48 * - 40 * 27 DIV - + 60 AS col2
----
864

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL + 48 * - 40 * 27 / - + 60 AS col2
----
864

query I rowsort
SELECT 36 + + - 35
----
1

query I rowsort
SELECT 52 * + 88
----
4576

query II rowsort
SELECT - 88 col2, 75 AS col1
----
-88
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4396
SELECT ALL 89 AS col0, 23 + - COUNT( * )
----
89
22

skipif mysql # not compatible
query II rowsort label-4396
SELECT ALL 89 AS col0, 23 + - COUNT ( * )
----
89
22

query I rowsort
SELECT 36 + - 54 AS col0
----
-18

query I rowsort
SELECT 71 - + 84 AS col0
----
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4399
SELECT ALL - 76 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL - 76 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT 42 * - COUNT( * ) * - + CASE + ( 3 ) WHEN 38 * - - NULLIF ( ( 84 ), - 63 ) THEN 65 * 90 + - 96 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT 42 * - COUNT ( * ) * - + CASE + ( 3 ) WHEN 38 * - - NULLIF ( ( 84 ), - 63 ) THEN 65 * 90 + - 96 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT ALL + 85 + + + 22 + + COUNT( ALL 63 ) AS col0
----
108

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL + 85 + + + 22 + + COUNT ( ALL 63 ) AS col0
----
108

query II rowsort
SELECT DISTINCT 6 AS col0, + 14
----
6
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4403
SELECT ALL + 76 * + 40 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL + 76 * + 40 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ALL - SUM( - - 43 ) + + 41
----
-2

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL - SUM ( - - 43 ) + + 41
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4405
SELECT 71 + - + 61 - + COUNT( * ) DIV + + 97 * ( + 55 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4405
SELECT 71 + - + 61 - + COUNT ( * ) / + + 97 * ( + 55 ) AS col0
----
10

query II rowsort
SELECT DISTINCT + 56 AS col0, 88 * + 7
----
56
616

query II rowsort
SELECT + 34 AS col2, - 65 AS col1
----
34
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4408
SELECT - 83 * - + 7 + - 51 + + - SUM( - + ( - CAST( NULL AS SIGNED ) ) ) - - - 16 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4408
SELECT - 83 * - + 7 + - 51 + + - SUM ( - + ( - CAST ( NULL AS INTEGER ) ) ) - - - 16 col1
----
NULL

query I rowsort
SELECT - ( - - 20 ) + + 8 AS col1
----
-12

query I rowsort
SELECT ALL + 43 * + 19 AS col0
----
817

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT + COALESCE ( MIN( - 92 ), + - 10 )
----
-92

skipif mysql # not compatible
query I rowsort label-4411
SELECT + COALESCE ( MIN ( - 92 ), + - 10 )
----
-92

query I rowsort
SELECT ALL + ( + 96 ) + - - 77 AS col2
----
173

query I rowsort
SELECT ALL - 73 + + ( + 65 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL + SUM( ALL + + 1 ) + - 67 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL + SUM ( ALL + + 1 ) + - 67 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT DISTINCT + 79 * + COUNT( * ) + - - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT + 79 * + COUNT ( * ) + - - COUNT ( * )
----
80

query I rowsort
SELECT + ( + 14 ) * - + 10
----
-140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4417
SELECT DISTINCT - + NULLIF ( CAST( - 42 AS SIGNED ), COUNT( * ) + - + 4 )
----
42

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT - + NULLIF ( CAST ( - 42 AS INTEGER ), COUNT ( * ) + - + 4 )
----
42

query I rowsort
SELECT + 85 * + 42 - - 1 + - ( + 91 )
----
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT - ( + 4 ) - - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-4419
SELECT - ( + 4 ) - - COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT - 89 * ( COUNT( * ) ) + MAX( DISTINCT - + 8 ) * - 56
----
359

skipif mysql # not compatible
query I rowsort label-4420
SELECT - 89 * ( COUNT ( * ) ) + MAX ( DISTINCT - + 8 ) * - 56
----
359

onlyif mysql # aggregate syntax: 
query II rowsort label-4421
SELECT DISTINCT + 78 * - 87 * + + 73 + ( 36 ) - + - COUNT( * ) AS col0, - 48 AS col2
----
-495341
-48

skipif mysql # not compatible
query II rowsort label-4421
SELECT DISTINCT + 78 * - 87 * + + 73 + ( 36 ) - + - COUNT ( * ) AS col0, - 48 AS col2
----
-495341
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4422
SELECT ALL + + CAST( - + 84 AS SIGNED ) col1, + 1 AS col2
----
-84
1

skipif mysql # not compatible
query II rowsort label-4422
SELECT ALL + + CAST ( - + 84 AS INTEGER ) col1, + 1 AS col2
----
-84
1

query I rowsort
SELECT + 13 * + ( 53 ) AS col0
----
689

query I rowsort
SELECT ALL ( + 29 ) * - - 39
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT - 5 * - COUNT( DISTINCT - + 96 ) + - 26
----
-21

skipif mysql # not compatible
query I rowsort label-4425
SELECT - 5 * - COUNT ( DISTINCT - + 96 ) + - 26
----
-21

query I rowsort
SELECT 80 * 38 * - 98 + - 66 * 36 AS col0
----
-300296

query I rowsort
SELECT ALL ( + 24 ) * - - 99 AS col0
----
2376

query I rowsort
SELECT + 77 * - 27 col1
----
-2079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4429
SELECT ALL ( - 98 ) * - + 60 * NULLIF ( - COUNT( * ), - 33 ) * + + 53 + + CAST( NULL AS DECIMAL ) + + + COALESCE ( 24, - CASE - 64 WHEN - 12 THEN ( - - 54 ) * - 33 WHEN COUNT( * ) - 70 - 16 THEN - 76 * - CAST( NULL AS SIGNED ) ELSE + 78 * 33 END + - CAST( NULL AS SIGNED ) ) + - 68 * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL ( - 98 ) * - + 60 * NULLIF ( - COUNT ( * ), - 33 ) * + + 53 + + CAST ( NULL AS REAL ) + + + COALESCE ( 24, - CASE - 64 WHEN - 12 THEN ( - - 54 ) * - 33 WHEN COUNT ( * ) - 70 - 16 THEN - 76 * - CAST ( NULL AS INTEGER ) ELSE + 78 * 33 END + - CAST ( NULL AS INTEGER ) ) + - 68 * - 73
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4430
SELECT + COUNT( * ) DIV 4 * - - 2 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4430
SELECT + COUNT ( * ) / 4 * - - 2 * + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4431
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( + - 50 ) * + 68 - - COUNT( * ) / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( + - 50 ) * + 68 - - COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT + COUNT( * ) * - 96 * 17 AS col1
----
-1632

skipif mysql # not compatible
query I rowsort label-4432
SELECT + COUNT ( * ) * - 96 * 17 AS col1
----
-1632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4433
SELECT - ( CAST( - 80 AS SIGNED ) ) + + MAX( DISTINCT - 85 ) - 20 * - COUNT( * ) * + 44 AS col1
----
875

skipif mysql # not compatible
query I rowsort label-4433
SELECT - ( CAST ( - 80 AS INTEGER ) ) + + MAX ( DISTINCT - 85 ) - 20 * - COUNT ( * ) * + 44 AS col1
----
875

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4434
SELECT + AVG ( ALL - - CAST( NULL AS DECIMAL ) ) / 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4434
SELECT + AVG ( ALL - - CAST ( NULL AS REAL ) ) / 48
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4435
SELECT DISTINCT CAST( + 8 AS SIGNED ) * 26
----
208

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT CAST ( + 8 AS INTEGER ) * 26
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ALL COUNT( * ) + - 49
----
-48

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL COUNT ( * ) + - 49
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT - 99 + + - 87 + + ( - 65 ) * + - SUM( 78 ) * + MAX( + 70 ) + 58 AS col2
----
354772

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT - 99 + + - 87 + + ( - 65 ) * + - SUM ( 78 ) * + MAX ( + 70 ) + 58 AS col2
----
354772

onlyif mysql # DIV for integer division: 
query I rowsort label-4438
SELECT DISTINCT 58 DIV + 20
----
2

skipif mysql # not compatible
query I rowsort label-4438
SELECT DISTINCT 58 / + 20
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4439
SELECT + 64 DIV - - 46
----
1

skipif mysql # not compatible
query I rowsort label-4439
SELECT + 64 / - - 46
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4440
SELECT - 70 DIV - + CASE + COUNT( * ) WHEN + - 25 THEN - + 82 + - COALESCE ( + 48, 43 ) + - NULLIF ( - CAST( + 57 AS SIGNED ), 22 + - 66 DIV + 90 * - 83 * - - 7 ) DIV + 30 WHEN 90 * + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + COUNT( * ) - + 39 - - 34 - - + 28 + 20 + + 64 + ( - 35 ) + - + 15 THEN NULL ELSE 76 DIV + 70 + + - 60 + + 35 + + + 68 END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4440
SELECT - 70 / - + CASE + COUNT ( * ) WHEN + - 25 THEN - + 82 + - COALESCE ( + 48, 43 ) + - NULLIF ( - CAST ( + 57 AS INTEGER ), 22 + - 66 / + 90 * - 83 * - - 7 ) / + 30 WHEN 90 * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + COUNT ( * ) - + 39 - - 34 - - + 28 + 20 + + 64 + ( - 35 ) + - + 15 THEN NULL ELSE 76 / + 70 + + - 60 + + 35 + + + 68 END AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ALL + - CASE WHEN NOT + 3 IS NOT NULL THEN 83 * - - COUNT( * ) WHEN NOT NULL <> ( 81 ) * CASE + 15 WHEN 30 - COUNT( * ) + - COALESCE ( + 93, + - 78 ) - + - MIN( ALL 11 ) + + 80 THEN - 68 * + COUNT( * ) * + 90 * - 29 + + 74 END + 84 THEN 78 END + - ( + COUNT( DISTINCT 11 ) ) * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL + - CASE WHEN NOT + 3 IS NOT NULL THEN 83 * - - COUNT ( * ) WHEN NOT NULL <> ( 81 ) * CASE + 15 WHEN 30 - COUNT ( * ) + - COALESCE ( + 93, + - 78 ) - + - MIN ( ALL 11 ) + + 80 THEN - 68 * + COUNT ( * ) * + 90 * - 29 + + 74 END + 84 THEN 78 END + - ( + COUNT ( DISTINCT 11 ) ) * + 93
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4442
SELECT + - ( + 64 ) + - - 97, + COUNT( * ) * - COUNT( * ) AS col2
----
33
-1

skipif mysql # not compatible
query II rowsort label-4442
SELECT + - ( + 64 ) + - - 97, + COUNT ( * ) * - COUNT ( * ) AS col2
----
33
-1

query I rowsort
SELECT ALL ( + 21 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4444
SELECT - - ( + 12 ) AS col0, - COUNT( * )
----
12
-1

skipif mysql # not compatible
query II rowsort label-4444
SELECT - - ( + 12 ) AS col0, - COUNT ( * )
----
12
-1

query I rowsort
SELECT ALL - + 71 + ( - + 85 )
----
-156

query I rowsort
SELECT DISTINCT + ( + - 0 ) * + 85 AS col2
----
0

query I rowsort
SELECT - 17 - + 54
----
-71

query I rowsort
SELECT + 56 * ( - - 18 )
----
1008

query I rowsort
SELECT - 30 - 38 * 1 * - - 77 - 94
----
-3050

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT ALL - + 79 - + - COUNT( + 79 ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL - + 79 - + - COUNT ( + 79 ) col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT + ( - - 61 ) * - + 67 + + + COUNT( * )
----
-4086

skipif mysql # not compatible
query I rowsort label-4451
SELECT + ( - - 61 ) * - + 67 + + + COUNT ( * )
----
-4086

onlyif mysql # aggregate syntax: 
query II rowsort label-4452
SELECT - + CASE - SUM( + 43 ) WHEN + 20 + - 74 + + - 3 - + 36 THEN NULL WHEN - ( - + 17 ) * 1 THEN + COALESCE ( + COUNT( * ), 92 * - 59 / - 95 + - 21 + - + 58 + + 35, - - ( + 68 ), + 27 / - 21 ) - + - 99 + - 78 + - - 90 + - 26 END * - + 68, - 34 AS col0
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-4452
SELECT - + CASE - SUM ( + 43 ) WHEN + 20 + - 74 + + - 3 - + 36 THEN NULL WHEN - ( - + 17 ) * 1 THEN + COALESCE ( + COUNT ( * ), 92 * - 59 / - 95 + - 21 + - + 58 + + 35, - - ( + 68 ), + 27 / - 21 ) - + - 99 + - 78 + - - 90 + - 26 END * - + 68, - 34 AS col0
----
NULL
-34

query I rowsort
SELECT + - ( + + 56 )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4454
SELECT - + 2 / + 6 + + - CAST( NULL AS SIGNED ) + NULLIF ( 17, - 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT - + 2 / + 6 + + - CAST ( NULL AS INTEGER ) + NULLIF ( 17, - 33 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT - 87 * - 57 - - MAX( + 44 ) AS col0
----
5003

skipif mysql # not compatible
query I rowsort label-4455
SELECT - 87 * - 57 - - MAX ( + 44 ) AS col0
----
5003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4456
SELECT DISTINCT - + 0 / COUNT( * ) / + 87 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT - + 0 / COUNT ( * ) / + 87 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4457
SELECT DISTINCT + COUNT( ALL + 21 ) AS col1, - ( + 95 )
----
1
-95

skipif mysql # not compatible
query II rowsort label-4457
SELECT DISTINCT + COUNT ( ALL + 21 ) AS col1, - ( + 95 )
----
1
-95

query I rowsort
SELECT DISTINCT ( - - ( + 36 ) ) * + + 50
----
1800

query I rowsort
SELECT - 90 * - - ( - 48 ) col1
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT DISTINCT - COUNT( DISTINCT + 87 ) * - - 13 + + + 14
----
1

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT - COUNT ( DISTINCT + 87 ) * - - 13 + + + 14
----
1

query II rowsort
SELECT DISTINCT + 7, 42 AS col2
----
7
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4462
SELECT 12 DIV - 65 + - MIN( - + 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-4462
SELECT 12 / - 65 + - MIN ( - + 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT + MAX( DISTINCT + 32 ) * + 90
----
2880

skipif mysql # not compatible
query I rowsort label-4463
SELECT + MAX ( DISTINCT + 32 ) * + 90
----
2880

query I rowsort
SELECT - 71 + 83 + 14 * 58 * 50 AS col0
----
40612

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT + ( + ( - COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4465
SELECT + ( + ( - COUNT ( * ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT - 87 * - 52 + + COUNT( * ) + - COUNT( 46 )
----
4524

skipif mysql # not compatible
query I rowsort label-4466
SELECT - 87 * - 52 + + COUNT ( * ) + - COUNT ( 46 )
----
4524

query II rowsort
SELECT ALL - 0 * - + 84 + NULLIF ( COALESCE ( + 45, - + 79, - - 85 ), 30 / + + 32 - ( - 61 ) ), + 97 col2
----
45
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT DISTINCT + COUNT( 93 )
----
1

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT + COUNT ( 93 )
----
1

query I rowsort
SELECT + 18 - + 6
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT DISTINCT 81 * + 8 + 74 * COUNT( * ) + - - COUNT( DISTINCT + 31 ) + - 50 AS col0
----
673

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT 81 * + 8 + 74 * COUNT ( * ) + - - COUNT ( DISTINCT + 31 ) + - 50 AS col0
----
673

query I rowsort
SELECT ALL ( 68 ) * - - 55 * 31 * - + 27 + - 35 AS col1
----
-3130415

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4472
SELECT - CAST( NULL AS SIGNED ) AS col0, 55 * + 21
----
NULL
1155

skipif mysql # not compatible
query II rowsort label-4472
SELECT - CAST ( NULL AS INTEGER ) AS col0, 55 * + 21
----
NULL
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT + 58 + - COUNT( * ) * + 21 * + - COUNT( * ) col2
----
79

skipif mysql # not compatible
query I rowsort label-4473
SELECT + 58 + - COUNT ( * ) * + 21 * + - COUNT ( * ) col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT + + COUNT( * ) + + - ( - 22 )
----
23

skipif mysql # not compatible
query I rowsort label-4474
SELECT + + COUNT ( * ) + + - ( - 22 )
----
23

query I rowsort
SELECT - - 6 - - + 90 AS col1
----
96

query I rowsort
SELECT ALL + 32 + - + 77 AS col2
----
-45

query I rowsort
SELECT DISTINCT + 73 + ( + - 8 ) * + 2 * 43
----
-615

query I rowsort
SELECT ALL + 51 - - + 72
----
123

query II rowsort
SELECT DISTINCT + 42 AS col2, 83 AS col0
----
42
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT DISTINCT MIN( ALL 71 )
----
71

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT MIN ( ALL 71 )
----
71

query I rowsort
SELECT - - 54 * - 59
----
-3186

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT DISTINCT - 49 DIV 29 * - 26 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT - 49 / 29 * - 26 AS col2
----
26

query I rowsort
SELECT ALL - 91 - + + 62
----
-153

query I rowsort
SELECT - + NULLIF ( 79, + 49 ) col0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4485
SELECT 40 + - ( + + 70 ) DIV 69 DIV - 94 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4485
SELECT 40 + - ( + + 70 ) / 69 / - 94 AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4486
SELECT + NULLIF ( - NULLIF ( + ( + NULLIF ( MAX( ALL CAST( NULL AS SIGNED ) ), 73 ) ), - + COALESCE ( + - MIN( + 92 ), 20 * + AVG ( - CAST( - 80 AS SIGNED ) ), - 44 ) / - 76 ), + MIN( DISTINCT 39 ) - + - 33 ) + - + ( + 25 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT + NULLIF ( - NULLIF ( + ( + NULLIF ( MAX ( ALL CAST ( NULL AS INTEGER ) ), 73 ) ), - + COALESCE ( + - MIN ( + 92 ), 20 * + AVG ( - CAST ( - 80 AS INTEGER ) ), - 44 ) / - 76 ), + MIN ( DISTINCT 39 ) - + - 33 ) + - + ( + 25 ) col0
----
NULL

query II rowsort
SELECT 28 AS col2, - 43
----
28
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT ALL 87 * - ( - COUNT( * ) ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL 87 * - ( - COUNT ( * ) ) AS col0
----
87

query I rowsort
SELECT ALL - 80 * - 40
----
3200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4490
SELECT 46 + - + CAST( + COUNT( * ) AS SIGNED ) + - COALESCE ( - 3, + 18 - + - COUNT( * ), + + ( + COUNT( * ) ) ) + + 1 - - 15 + 94 * 3 AS col2
----
346

skipif mysql # not compatible
query I rowsort label-4490
SELECT 46 + - + CAST ( + COUNT ( * ) AS INTEGER ) + - COALESCE ( - 3, + 18 - + - COUNT ( * ), + + ( + COUNT ( * ) ) ) + + 1 - - 15 + 94 * 3 AS col2
----
346

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT ALL - COUNT( - 16 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL - COUNT ( - 16 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - CASE - ( 43 ) WHEN + 16 THEN + - 93 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4493
SELECT 62 + + 32 + + CAST( + + COALESCE ( + + 4, - 25 ) AS SIGNED ) * + + 7 * + 12 * 15 + + COUNT( * )
----
5135

skipif mysql # not compatible
query I rowsort label-4493
SELECT 62 + + 32 + + CAST ( + + COALESCE ( + + 4, - 25 ) AS INTEGER ) * + + 7 * + 12 * 15 + + COUNT ( * )
----
5135

query I rowsort
SELECT DISTINCT - 35 + 52 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT ALL - 17 + + COUNT( * ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL - 17 + + COUNT ( * ) AS col1
----
-16

query I rowsort
SELECT 52 + 56 * + - 88 AS col1
----
-4876

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4497
SELECT DISTINCT - COUNT( * ) DIV + 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT - COUNT ( * ) / + 31 AS col1
----
0

query I rowsort
SELECT ALL + 90 + - 79 + 22 * - + 40 AS col0
----
-869

onlyif mysql # DIV for integer division: 
query II rowsort label-4499
SELECT + 58 * - 9 + - 86 * 81, NULLIF ( + 38, 19 + + 91 ) + + 60 DIV + + 48 + 81 + - 93 AS col2
----
-7488
27

skipif mysql # not compatible
query II rowsort label-4499
SELECT + 58 * - 9 + - 86 * 81, NULLIF ( + 38, 19 + + 91 ) + + 60 / + + 48 + 81 + - 93 AS col2
----
-7488
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4500
SELECT DISTINCT COUNT( * ) * - 10 * + - 6 DIV + ( - + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT COUNT ( * ) * - 10 * + - 6 / + ( - + 85 )
----
0

query II rowsort
SELECT DISTINCT + 72 + + 14, + 88 + - 69 AS col1
----
86
19

query I rowsort
SELECT 42 * + 18
----
756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT ALL + 54 + + CAST( - 37 AS SIGNED ) * + 51 col1
----
-1833

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL + 54 + + CAST ( - 37 AS INTEGER ) * + 51 col1
----
-1833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT 54 * - 12 * - + 5 * + 6 * - CAST( NULL AS SIGNED ) * + 41 * ( - 68 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4504
SELECT 54 * - 12 * - + 5 * + 6 * - CAST ( NULL AS INTEGER ) * + 41 * ( - 68 ) AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + 36, 61 )
----
-36

query I rowsort
SELECT DISTINCT - COALESCE ( - - 57, - 62 ) col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT ALL - 64 * - 23 * - + 56 - - MAX( ALL - 45 ) - - SUM( - - 15 )
----
-82462

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL - 64 * - 23 * - + 56 - - MAX ( ALL - 45 ) - - SUM ( - - 15 )
----
-82462

query I rowsort
SELECT ALL - 95 - + 95 * + 65
----
-6270

query II rowsort
SELECT + 38 - - 77, - 16 AS col2
----
115
-16

query I rowsort
SELECT 75 * - 25
----
-1875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4511
SELECT DISTINCT + CAST( + CASE + + 33 WHEN + + ( 86 ) THEN + 16 WHEN - + 77 + - 81 + - + SUM( DISTINCT - 58 ) * + 59 + - 63 * - - 19 THEN NULL ELSE NULL END AS SIGNED ) * NULLIF ( MIN( - 24 ), + - 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT + CAST ( + CASE + + 33 WHEN + + ( 86 ) THEN + 16 WHEN - + 77 + - 81 + - + SUM ( DISTINCT - 58 ) * + 59 + - 63 * - - 19 THEN NULL ELSE NULL END AS INTEGER ) * NULLIF ( MIN ( - 24 ), + - 71 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4512
SELECT 24 + - + 71 * + 77 * + - 9, MAX( DISTINCT + 89 ) col2
----
49227
89

skipif mysql # not compatible
query II rowsort label-4512
SELECT 24 + - + 71 * + 77 * + - 9, MAX ( DISTINCT + 89 ) col2
----
49227
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4513
SELECT ALL - 59 * CAST( NULL AS DECIMAL ) * - + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL - 59 * CAST ( NULL AS REAL ) * - + 59 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 12, + 58 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT ALL MIN( + + 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL MIN ( + + 73 ) AS col0
----
73

onlyif mysql # DIV for integer division: 
query II rowsort label-4516
SELECT - 88 * - + 30 AS col0, 3 DIV - 91
----
2640
0

skipif mysql # not compatible
query II rowsort label-4516
SELECT - 88 * - + 30 AS col0, 3 / - 91
----
2640
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4517
SELECT + 1 - - 62, - CAST( + CASE + 25 WHEN + + COALESCE ( - 78, + 75 + - 51 * + - 55 ) / - - 73 / 45 + + COALESCE ( + 47, 83 * - 62, + - CASE + 12 WHEN 84 / - 98 THEN - + ( - 74 ) ELSE + 25 / - - 13 - + 92 END ) THEN NULL WHEN + ( + ( - 67 ) ) THEN - - 5 * - 12 - + CAST( + 31 AS SIGNED ) * + - 82 END AS SIGNED ) AS col2
----
63
NULL

skipif mysql # not compatible
query II rowsort label-4517
SELECT + 1 - - 62, - CAST ( + CASE + 25 WHEN + + COALESCE ( - 78, + 75 + - 51 * + - 55 ) / - - 73 / 45 + + COALESCE ( + 47, 83 * - 62, + - CASE + 12 WHEN 84 / - 98 THEN - + ( - 74 ) ELSE + 25 / - - 13 - + 92 END ) THEN NULL WHEN + ( + ( - 67 ) ) THEN - - 5 * - 12 - + CAST ( + 31 AS INTEGER ) * + - 82 END AS INTEGER ) AS col2
----
63
NULL

query I rowsort
SELECT + ( 88 ) * + 99 + - ( 1 )
----
8711

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT ( + COUNT( * ) ) - + 53 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-4519
SELECT ( + COUNT ( * ) ) - + 53 AS col1
----
-52

query I rowsort
SELECT + 54 * + 7
----
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT 23 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT 23 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 68 AS col2, - 82 AS col1
----
68
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-4523
SELECT 30 DIV - - 3 + - 2 + + + NULLIF ( + 75, - 49 ) + - 33 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4523
SELECT 30 / - - 3 + - 2 + + + NULLIF ( + 75, - 49 ) + - 33 AS col2
----
50

query I rowsort
SELECT ALL 42 * - 5 AS col2
----
-210

query I rowsort
SELECT 36 * - 92 AS col0
----
-3312

query I rowsort
SELECT 71 * + 81
----
5751

query I rowsort
SELECT ALL - 31 * 13 AS col0
----
-403

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT MAX( ALL - 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4528
SELECT MAX ( ALL - 92 ) AS col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4529
SELECT DISTINCT CAST( 46 AS SIGNED ) + - 15
----
31

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT CAST ( 46 AS INTEGER ) + - 15
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT DISTINCT 41 + - COALESCE ( 11, ( - COALESCE ( COUNT( * ), ( + COUNT( DISTINCT 50 ) ) ) ) * + - 65 * + - ( 80 ) )
----
30

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT 41 + - COALESCE ( 11, ( - COALESCE ( COUNT ( * ), ( + COUNT ( DISTINCT 50 ) ) ) ) * + - 65 * + - ( 80 ) )
----
30

query I rowsort
SELECT ALL 0 + 92 col1
----
92

query I rowsort
SELECT ALL 59 * 85 AS col1
----
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT MAX( - 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4533
SELECT MAX ( - 4 ) AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT ALL - ( + NULLIF ( + 65, 69 + - 94 * - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + + 4 * AVG ( ALL - 16 ) - - 94 + 68 + + + 86 / CAST( - AVG ( DISTINCT - 78 ) AS SIGNED ) ) ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL - ( + NULLIF ( + 65, 69 + - 94 * - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 4 * AVG ( ALL - 16 ) - - 94 + 68 + + + 86 / CAST ( - AVG ( DISTINCT - 78 ) AS INTEGER ) ) ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-4535
SELECT + 98 col1, MIN( DISTINCT 32 ) AS col0
----
98
32

skipif mysql # not compatible
query II rowsort label-4535
SELECT + 98 col1, MIN ( DISTINCT 32 ) AS col0
----
98
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4536
SELECT ALL + 95 DIV + 93 * + + CASE + 60 WHEN 44 * + 86 THEN NULL ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL + 95 / + 93 * + + CASE + 60 WHEN 44 * + 86 THEN NULL ELSE - COUNT ( * ) END
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4537
SELECT + 35 * - 23 + - 19 * 47 * 72 - - 36 + + COALESCE ( 46, COUNT( * ) ) * - ( + SUM( 64 ) ) / + 81 * + SUM( DISTINCT + 79 ) / + + CAST( - CASE + + 12 WHEN + + CASE - + 29 WHEN + + 28 THEN NULL ELSE - 89 + 44 END THEN NULL ELSE COUNT( * ) END AS SIGNED ) + + + CAST( NULL AS SIGNED ) + + - 81 * - 59 * 85 * + 25 * - - ( 71 ) + - 86 * - 5 + - - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT + 35 * - 23 + - 19 * 47 * 72 - - 36 + + COALESCE ( 46, COUNT ( * ) ) * - ( + SUM ( 64 ) ) / + 81 * + SUM ( DISTINCT + 79 ) / + + CAST ( - CASE + + 12 WHEN + + CASE - + 29 WHEN + + 28 THEN NULL ELSE - 89 + 44 END THEN NULL ELSE COUNT ( * ) END AS INTEGER ) + + + CAST ( NULL AS INTEGER ) + + - 81 * - 59 * 85 * + 25 * - - ( 71 ) + - 86 * - 5 + - - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL 40 - 15 + - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL 40 - 15 + - COUNT ( * )
----
24

query I rowsort
SELECT ALL + 86 - + - 45 AS col1
----
131

query I rowsort
SELECT 77 * + - 35 AS col2
----
-2695

query I rowsort
SELECT ALL - 23 - - + 64 * + 91
----
5801

query I rowsort
SELECT 87 * + - 77 + + + 98 AS col1
----
-6601

query II rowsort
SELECT 89 * - - 28 * - 89 AS col1, 93 + ( + + 77 ) AS col2
----
-221788
170

onlyif mysql # DIV for integer division: 
query I rowsort label-4544
SELECT ALL + 15 DIV + - 7
----
-2

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL + 15 / + - 7
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT DISTINCT + + COUNT( * ) * + - 56 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT + + COUNT ( * ) * + - 56 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT ALL - 24 - - MAX( CASE - + 99 WHEN - + 70 THEN + 49 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL - 24 - - MAX ( CASE - + 99 WHEN - + 70 THEN + 49 END ) AS col1
----
NULL

query I rowsort
SELECT NULLIF ( - - 44, - 66 )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4548
SELECT - MAX( 77 ) DIV MAX( DISTINCT - ( 28 ) ) * 67 * - + 2 + COUNT( * ) + + - MAX( + - 49 ) + - 27
----
-245

skipif mysql # not compatible
query I rowsort label-4548
SELECT - MAX ( 77 ) / MAX ( DISTINCT - ( 28 ) ) * 67 * - + 2 + COUNT ( * ) + + - MAX ( + - 49 ) + - 27
----
-245

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL + SUM( + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL + SUM ( + 89 )
----
89

query I rowsort
SELECT - 36 + + + 50 * + 36 * 33
----
59364

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT 63 * + - 33 * - 67 * - 8 + - CASE - 93 WHEN - 97 THEN - - 41 + + 98 + - - COUNT( * ) END - + NULLIF ( + MAX( + - 35 ), + 82 * 2 + + 17 + + 32 / - 58 + - + 76 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4551
SELECT 63 * + - 33 * - 67 * - 8 + - CASE - 93 WHEN - 97 THEN - - 41 + + 98 + - - COUNT ( * ) END - + NULLIF ( + MAX ( + - 35 ), + 82 * 2 + + 17 + + 32 / - 58 + - + 76 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4552
SELECT - - MAX( DISTINCT + + 82 ) * + 39 AS col1, 80 AS col1
----
3198
80

skipif mysql # not compatible
query II rowsort label-4552
SELECT - - MAX ( DISTINCT + + 82 ) * + 39 AS col1, 80 AS col1
----
3198
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT DISTINCT - + 5 * ( - - 24 ) * ( ( COUNT( * ) ) ) col0
----
-120

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT - + 5 * ( - - 24 ) * ( ( COUNT ( * ) ) ) col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT ALL COALESCE ( + - MAX( 24 ), + ( COUNT( * ) ) + 67, 16 + + - 14 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL COALESCE ( + - MAX ( 24 ), + ( COUNT ( * ) ) + 67, 16 + + - 14 ) AS col2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4555
SELECT ALL CAST( + + 17 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL CAST ( + + 17 AS INTEGER )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT + - 28 + CASE - 38 WHEN + MAX( ALL + 79 ) + - 87 * + 56 THEN 23 WHEN - - 49 THEN NULL ELSE NULL END * + - 97 * + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT + - 28 + CASE - 38 WHEN + MAX ( ALL + 79 ) + - 87 * + 56 THEN 23 WHEN - - 49 THEN NULL ELSE NULL END * + - 97 * + 84 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4557
SELECT + + ( - + ( - COALESCE ( COUNT( * ), AVG ( 62 ) ) ) ) + + CAST( NULL AS SIGNED ) + 26 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT + + ( - + ( - COALESCE ( COUNT ( * ), AVG ( 62 ) ) ) ) + + CAST ( NULL AS INTEGER ) + 26 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT + - 78 + - + COUNT( * ) + - - 24 - - 7 * - + 0 col1
----
-55

skipif mysql # not compatible
query I rowsort label-4558
SELECT + - 78 + - + COUNT ( * ) + - - 24 - - 7 * - + 0 col1
----
-55

query I rowsort
SELECT - + 95 col0
----
-95

query I rowsort
SELECT - + 50 + 88
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT - COUNT( ALL + 77 ) * + ( - 0 ) * + 9
----
0

skipif mysql # not compatible
query I rowsort label-4561
SELECT - COUNT ( ALL + 77 ) * + ( - 0 ) * + 9
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4562
SELECT - CASE + 21 WHEN 5 - - 21 THEN 16 WHEN - - 10 - - SUM( 40 ) * + CASE + 39 WHEN + 60 / + 19 - - 58 / + 91 THEN + - CAST( ( 72 ) AS SIGNED ) END * - COUNT( + CASE + - 10 WHEN + - 83 THEN - 20 WHEN 59 THEN NULL ELSE - 10 END ) THEN + ( ( + 49 ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4562
SELECT - CASE + 21 WHEN 5 - - 21 THEN 16 WHEN - - 10 - - SUM ( 40 ) * + CASE + 39 WHEN + 60 / + 19 - - 58 / + 91 THEN + - CAST ( ( 72 ) AS INTEGER ) END * - COUNT ( + CASE + - 10 WHEN + - 83 THEN - 20 WHEN 59 THEN NULL ELSE - 10 END ) THEN + ( ( + 49 ) ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4563
SELECT + 49 + + 73 * + CAST( NULL AS SIGNED ) * CAST( 64 AS SIGNED ) * + 67 + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-4563
SELECT + 49 + + 73 * + CAST ( NULL AS INTEGER ) * CAST ( 64 AS INTEGER ) * + 67 + + 60
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4564
SELECT DISTINCT 60 + CAST( 10 AS SIGNED ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT 60 + CAST ( 10 AS INTEGER ) AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4565
SELECT ALL - 90 + + - MAX( + - 47 ) * + 63 + + + 86 + + + 73 * + 84 * + 18 * + + CAST( ( + - 30 ) AS SIGNED ) * - - 84 + + 26 + - + COUNT( DISTINCT + + 23 ) - - 96
----
-278144442

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL - 90 + + - MAX ( + - 47 ) * + 63 + + + 86 + + + 73 * + 84 * + 18 * + + CAST ( ( + - 30 ) AS INTEGER ) * - - 84 + + 26 + - + COUNT ( DISTINCT + + 23 ) - - 96
----
-278144442

query I rowsort
SELECT ALL 95 + - 68 * 84
----
-5617

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL ( - 17 ) * + COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL ( - 17 ) * + COUNT ( * ) AS col2
----
-17

query II rowsort
SELECT ALL + 35 AS col2, - 88 col1
----
35
-88

query I rowsort
SELECT ALL 31 * + 68 + - - 31 AS col2
----
2139

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT + SUM( + 71 ) * + - COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-4570
SELECT + SUM ( + 71 ) * + - COUNT ( * ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-4571
SELECT + COUNT( * ) AS col0, + 7
----
1
7

skipif mysql # not compatible
query II rowsort label-4571
SELECT + COUNT ( * ) AS col0, + 7
----
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT ( + - 65 ) * - - 35 + + - COUNT( * ) * + 14 col1
----
-2289

skipif mysql # not compatible
query I rowsort label-4572
SELECT ( + - 65 ) * - - 35 + + - COUNT ( * ) * + 14 col1
----
-2289

onlyif mysql # DIV for integer division: 
query II rowsort label-4573
SELECT + 93 AS col1, - 21 DIV - + 95 * 90
----
93
0

skipif mysql # not compatible
query II rowsort label-4573
SELECT + 93 AS col1, - 21 / - + 95 * 90
----
93
0

query I rowsort
SELECT DISTINCT 88 * 11
----
968

query I rowsort
SELECT ALL 87 * + 27 - + 93 + - + 84
----
2172

query I rowsort
SELECT ALL 5 * + 78 * - 25 * - 79
----
770250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4577
SELECT CASE AVG ( + CAST( - 19 AS SIGNED ) ) WHEN 81 - - + 91 / - COUNT( * ) + - 9 * 32 * + 71 + + + COUNT( * ) * - 76 * 91 THEN 85 + - + 44 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT CASE AVG ( + CAST ( - 19 AS INTEGER ) ) WHEN 81 - - + 91 / - COUNT ( * ) + - 9 * 32 * + 71 + + + COUNT ( * ) * - 76 * 91 THEN 85 + - + 44 END AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( - + ( + 19 ), - COALESCE ( + + 35, 83 ), - 87, + 70 + - + 45 ) * + - 20 * - - 63 * - 33
----
-790020

query I rowsort
SELECT + ( + - 66 ) AS col1
----
-66

query I rowsort
SELECT DISTINCT 52 * + 88 AS col2
----
4576

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT ALL 24 * - NULLIF ( - - 62, + + COUNT( * ) ) - - 22
----
-1466

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL 24 * - NULLIF ( - - 62, + + COUNT ( * ) ) - - 22
----
-1466

query II rowsort
SELECT + - 38 AS col2, - 12 AS col1
----
-38
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT MAX( - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-4583
SELECT MAX ( - 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT DISTINCT + MIN( DISTINCT 75 )
----
75

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT + MIN ( DISTINCT 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT ALL + - CASE 94 WHEN 66 THEN NULL ELSE + COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL + - CASE 94 WHEN 66 THEN NULL ELSE + COUNT ( * ) END
----
-1

query I rowsort
SELECT CASE + 45 WHEN + 90 THEN NULL WHEN - 45 THEN + CASE 98 WHEN - + 32 THEN - ( - 24 ) END * - - ( + 54 ) END
----
NULL

query I rowsort
SELECT DISTINCT + - 8 col1
----
-8

query I rowsort
SELECT - + 48 * - 26 AS col0
----
1248

query I rowsort
SELECT ALL - 21 * 80 + + 80 AS col0
----
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT ALL + 57 * - COUNT( * ) + 13
----
-44

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL + 57 * - COUNT ( * ) + 13
----
-44

query II rowsort
SELECT - - 84 AS col0, 3 * + 83
----
84
249

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4592
SELECT + CAST( NULL AS DECIMAL ) + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4592
SELECT + CAST ( NULL AS REAL ) + 35
----
NULL

query I rowsort
SELECT - 84 * - - 92 - + 88 AS col2
----
-7816

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT ALL + MIN( 62 ) + + COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL + MIN ( 62 ) + + COUNT ( * ) AS col0
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4595
SELECT DISTINCT CAST( NULL AS DECIMAL ), + 80 AS col2
----
NULL
80

skipif mysql # not compatible
query II rowsort label-4595
SELECT DISTINCT CAST ( NULL AS REAL ), + 80 AS col2
----
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT DISTINCT + - COUNT( * ) + + + 84
----
83

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT + - COUNT ( * ) + + + 84
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT + CASE + + 64 WHEN + COUNT( * ) + - 45 THEN NULL WHEN 16 * + 71 * + 87 + 62 THEN - + 12 + + 49 + + 67 + + 76 + - + 66 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4597
SELECT + CASE + + 64 WHEN + COUNT ( * ) + - 45 THEN NULL WHEN 16 * + 71 * + 87 + 62 THEN - + 12 + + 49 + + 67 + + 76 + - + 66 END AS col0
----
NULL

query I rowsort
SELECT - - 21 + + 28 * 10
----
301

onlyif mysql # aggregate syntax: 
query II rowsort label-4599
SELECT + - 16 * + 76 * 25 * - 30 AS col1, 71 + - COUNT( * ) AS col2
----
912000
70

skipif mysql # not compatible
query II rowsort label-4599
SELECT + - 16 * + 76 * 25 * - 30 AS col1, 71 + - COUNT ( * ) AS col2
----
912000
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4600
SELECT - CASE - 4 WHEN - 77 * + + ( NULLIF ( - + ( NULLIF ( - ( - COUNT( + 37 ) ), 9 ) ), 75 - - ( 5 ) ) ) + + - 73 THEN - - 90 ELSE NULL END, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4600
SELECT - CASE - 4 WHEN - 77 * + + ( NULLIF ( - + ( NULLIF ( - ( - COUNT ( + 37 ) ), 9 ) ), 75 - - ( 5 ) ) ) + + - 73 THEN - - 90 ELSE NULL END, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT - + COUNT( * ) + + 91 * + 82
----
7461

skipif mysql # not compatible
query I rowsort label-4601
SELECT - + COUNT ( * ) + + 91 * + 82
----
7461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4602
SELECT ALL - CAST( NULL AS SIGNED ) + + 1 + - 65 + 81 / + 78 + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL - CAST ( NULL AS INTEGER ) + + 1 + - 65 + 81 / + 78 + + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT DISTINCT ( + - ( + COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT ( + - ( + COUNT ( * ) ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4604
SELECT ALL 72 + COUNT( * ) col0, 93 * 13
----
73
1209

skipif mysql # not compatible
query II rowsort label-4604
SELECT ALL 72 + COUNT ( * ) col0, 93 * 13
----
73
1209

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4605
SELECT - CASE - 54 WHEN - 67 THEN + 71 END - - CAST( - SUM( DISTINCT 92 ) AS DECIMAL ) col1, 98 AS col0
----
NULL
98

skipif mysql # not compatible
query II rowsort label-4605
SELECT - CASE - 54 WHEN - 67 THEN + 71 END - - CAST ( - SUM ( DISTINCT 92 ) AS REAL ) col1, 98 AS col0
----
NULL
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4606
SELECT ALL CAST( 69 AS SIGNED ) AS col1, - 61 AS col1
----
69
-61

skipif mysql # not compatible
query II rowsort label-4606
SELECT ALL CAST ( 69 AS INTEGER ) AS col1, - 61 AS col1
----
69
-61

query I rowsort
SELECT + 54 + - 21
----
33

query II rowsort
SELECT ALL - 67 - + 88 AS col0, 41 AS col2
----
-155
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4609
SELECT DISTINCT + 13 DIV + + 72 col0
----
0

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT + 13 / + + 72 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4610
SELECT ALL 53 * + - 43 AS col2, + 53 - - SUM( 71 ) * - 25 col2
----
-2279
-1722

skipif mysql # not compatible
query II rowsort label-4610
SELECT ALL 53 * + - 43 AS col2, + 53 - - SUM ( 71 ) * - 25 col2
----
-2279
-1722

onlyif mysql # DIV for integer division: 
query I rowsort label-4611
SELECT DISTINCT ( - 86 ) DIV 92 - - 94 * - 40 AS col1
----
-3760

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT ( - 86 ) / 92 - - 94 * - 40 AS col1
----
-3760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4612
SELECT ALL 14 DIV 19 - - + MAX( DISTINCT + 34 ) + - 23
----
11

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL 14 / 19 - - + MAX ( DISTINCT + 34 ) + - 23
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4613
SELECT + 33 DIV + MAX( - 99 ) - + - COUNT( * ) + + 30 * - 34
----
-1019

skipif mysql # not compatible
query I rowsort label-4613
SELECT + 33 / + MAX ( - 99 ) - + - COUNT ( * ) + + 30 * - 34
----
-1019

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4614
SELECT CAST( + - 13 AS SIGNED ) AS col2, 89 AS col2
----
-13
89

skipif mysql # not compatible
query II rowsort label-4614
SELECT CAST ( + - 13 AS INTEGER ) AS col2, 89 AS col2
----
-13
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4615
SELECT + 64 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-4615
SELECT + 64 / 93
----
0

query I rowsort
SELECT ALL - + ( - ( + + 46 ) ) AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4617
SELECT + - CAST( 80 AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-4617
SELECT + - CAST ( 80 AS INTEGER )
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4618
SELECT + 65 DIV + COUNT( * ) AS col1, 38 * - 14 AS col1
----
65
-532

skipif mysql # not compatible
query II rowsort label-4618
SELECT + 65 / + COUNT ( * ) AS col1, 38 * - 14 AS col1
----
65
-532

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4619
SELECT ALL - 32 DIV + - ( - SUM( DISTINCT + 8 ) ) + + MAX( ALL + + 83 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL - 32 / + - ( - SUM ( DISTINCT + 8 ) ) + + MAX ( ALL + + 83 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT ALL COUNT( * ) * + ( 72 )
----
72

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL COUNT ( * ) * + ( 72 )
----
72

query II rowsort
SELECT ALL 58 * - 98 AS col2, 82
----
-5684
82

query I rowsort
SELECT 77 * - 17 + + 4
----
-1305

query I rowsort
SELECT ALL 1 + - + 0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4624
SELECT DISTINCT + 13 + - - 7, - COUNT( * ) - 2 * 95 * + 39 + NULLIF ( - NULLIF ( 12, - - 95 ), + + COUNT( * ) ) AS col1
----
20
-7423

skipif mysql # not compatible
query II rowsort label-4624
SELECT DISTINCT + 13 + - - 7, - COUNT ( * ) - 2 * 95 * + 39 + NULLIF ( - NULLIF ( 12, - - 95 ), + + COUNT ( * ) ) AS col1
----
20
-7423

query II rowsort
SELECT ALL + 91 + + 97 + - 39 + + + 7 + 96 AS col2, - 41
----
252
-41

query I rowsort
SELECT ALL - 80 * + 14 AS col2
----
-1120

query II rowsort
SELECT 98 + 63 AS col1, 42
----
161
42

query I rowsort
SELECT + + ( + 40 ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT DISTINCT - SUM( - 63 ) + + - 17 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT - SUM ( - 63 ) + + - 17 AS col0
----
46

query I rowsort
SELECT + 21 * 55 AS col1
----
1155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4631
SELECT ALL + 56 + - 96, 71 * - - 90 * + CAST( NULL AS SIGNED ) + + + 7 * + COUNT( * ) AS col2
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-4631
SELECT ALL + 56 + - 96, 71 * - - 90 * + CAST ( NULL AS INTEGER ) + + + 7 * + COUNT ( * ) AS col2
----
-40
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4632
SELECT ( - + COALESCE ( 12, 18 * 53 + COUNT( * ), + 6 ) ) + NULLIF ( - 73, - 26 ) AS col1, + 51 AS col2
----
-85
51

skipif mysql # not compatible
query II rowsort label-4632
SELECT ( - + COALESCE ( 12, 18 * 53 + COUNT ( * ), + 6 ) ) + NULLIF ( - 73, - 26 ) AS col1, + 51 AS col2
----
-85
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT - 9 * + 71 + - MAX( DISTINCT - - 35 ) + 3
----
-671

skipif mysql # not compatible
query I rowsort label-4633
SELECT - 9 * + 71 + - MAX ( DISTINCT - - 35 ) + 3
----
-671

onlyif mysql # DIV for integer division: 
query I rowsort label-4634
SELECT ALL - - COALESCE ( 31, + 75 ) DIV - - NULLIF ( + 66, - + 16 ) * 39 + + 92 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL - - COALESCE ( 31, + 75 ) / - - NULLIF ( + 66, - + 16 ) * 39 + + 92 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT DISTINCT - 37 + + MAX( + 59 ) - + 56
----
-34

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT - 37 + + MAX ( + 59 ) - + 56
----
-34

query I rowsort
SELECT ALL - 72 - + 56
----
-128

query I rowsort
SELECT 65 + 20
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4638
SELECT ALL 84 DIV - SUM( DISTINCT + 81 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL 84 / - SUM ( DISTINCT + 81 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4639
SELECT 74 + + 91 * CASE - 73 WHEN - + 79 + + - 76 + - COUNT( * ) * AVG ( + - CAST( NULL AS SIGNED ) ) / - 3 / 47 - - AVG ( - + ( + 6 ) ) - - 37 + - 19 * - 58 * + 98 THEN - + 98 / - 80 * + 34 * + CAST( + + ( + - AVG ( DISTINCT 90 ) ) AS SIGNED ) WHEN 17 + + 87 THEN NULL ELSE NULL END / - + 47 + - 23 / - 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4639
SELECT 74 + + 91 * CASE - 73 WHEN - + 79 + + - 76 + - COUNT ( * ) * AVG ( + - CAST ( NULL AS INTEGER ) ) / - 3 / 47 - - AVG ( - + ( + 6 ) ) - - 37 + - 19 * - 58 * + 98 THEN - + 98 / - 80 * + 34 * + CAST ( + + ( + - AVG ( DISTINCT 90 ) ) AS INTEGER ) WHEN 17 + + 87 THEN NULL ELSE NULL END / - + 47 + - 23 / - 67 AS col0
----
NULL

query II rowsort
SELECT 27 col1, 74
----
27
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4641
SELECT ALL + 27 * + - NULLIF ( + CAST( - 88 AS SIGNED ), - - 99 ) AS col0
----
2376

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL + 27 * + - NULLIF ( + CAST ( - 88 AS INTEGER ), - - 99 ) AS col0
----
2376

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4642
SELECT ALL - 72 - - - 3 * CAST( NULL AS SIGNED ) AS col0, + 56 AS col0
----
NULL
56

skipif mysql # not compatible
query II rowsort label-4642
SELECT ALL - 72 - - - 3 * CAST ( NULL AS INTEGER ) AS col0, + 56 AS col0
----
NULL
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4643
SELECT 55 DIV - COUNT( * ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-4643
SELECT 55 / - COUNT ( * ) col2
----
-55

query I rowsort
SELECT 61 + 65 col0
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4645
SELECT 8 AS col2, + 76 * - NULLIF ( + 65, - 23 ) * 31 - - + 76 + + 78 DIV + + 48 + + - 13 + + 74 AS col2, - COALESCE ( - 46, + 7 + - - 25 ) + - - MIN( + NULLIF ( - 49, 93 ) )
----
8
-153002
-3

skipif mysql # not compatible
query III rowsort label-4645
SELECT 8 AS col2, + 76 * - NULLIF ( + 65, - 23 ) * 31 - - + 76 + + 78 / + + 48 + + - 13 + + 74 AS col2, - COALESCE ( - 46, + 7 + - - 25 ) + - - MIN ( + NULLIF ( - 49, 93 ) )
----
8
-153002
-3

query I rowsort
SELECT DISTINCT 83 * + + 84 AS col2
----
6972

query I rowsort
SELECT ALL 41 * - 36 AS col2
----
-1476

query II rowsort
SELECT ALL 93 AS col1, - 7
----
93
-7

query II rowsort
SELECT 38, + 5 AS col1
----
38
5

query I rowsort
SELECT 79 * - + 43 * + + COALESCE ( + ( + 99 ), + - 56, ( - 91 ) + - - CASE - 74 WHEN - + 47 THEN + 8 * - 90 WHEN - 76 THEN NULL END ) * 30 * 78 col2
----
-786949020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4651
SELECT 15 + - CAST( - 89 AS SIGNED ), - COUNT( * ) * ( - + CASE ( - CASE + + 83 WHEN - 28 THEN - - 52 ELSE NULL END ) WHEN + 98 THEN + - CAST( + - COALESCE ( - + 44, 60 * - 67 ) AS SIGNED ) + + - ( - 87 ) ELSE - + 92 * + 91 * - NULLIF ( + 65, + + SUM( DISTINCT CAST( NULL AS SIGNED ) ) ) + + 81 + - 7 END ) AS col2
----
104
544254

skipif mysql # not compatible
query II rowsort label-4651
SELECT 15 + - CAST ( - 89 AS INTEGER ), - COUNT ( * ) * ( - + CASE ( - CASE + + 83 WHEN - 28 THEN - - 52 ELSE NULL END ) WHEN + 98 THEN + - CAST ( + - COALESCE ( - + 44, 60 * - 67 ) AS INTEGER ) + + - ( - 87 ) ELSE - + 92 * + 91 * - NULLIF ( + 65, + + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) ) + + 81 + - 7 END ) AS col2
----
104
544254

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4652
SELECT ALL - COUNT( + 1 ) * - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL - COUNT ( + 1 ) * - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT DISTINCT - CASE - + 60 WHEN 78 * SUM( ALL - 49 ) / 4 * + 3 THEN NULL WHEN + 80 THEN + + 84 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT - CASE - + 60 WHEN 78 * SUM ( ALL - 49 ) / 4 * + 3 THEN NULL WHEN + 80 THEN + + 84 END col0
----
NULL

query II rowsort
SELECT 24 AS col2, - 60 + - 55 * 67
----
24
-3745

query II rowsort
SELECT + 83 col1, 89 AS col0
----
83
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT - + 28 * + - CASE + 58 WHEN + + 99 * - 29 + - AVG ( DISTINCT + 92 ) * 3 THEN NULL WHEN + 55 THEN + 63 END + - COUNT( * ) + 64 * 82 * + 20 + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT - + 28 * + - CASE + 58 WHEN + + 99 * - 29 + - AVG ( DISTINCT + 92 ) * 3 THEN NULL WHEN + 55 THEN + 63 END + - COUNT ( * ) + 64 * 82 * + 20 + 18 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4657
SELECT ALL 33 * + CAST( + 46 AS SIGNED ) * - - 43 * + + 47 col0
----
3067878

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL 33 * + CAST ( + 46 AS INTEGER ) * - - 43 * + + 47 col0
----
3067878

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT ALL 55 + + - CAST( - - 52 AS SIGNED ) * - + 72
----
3799

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL 55 + + - CAST ( - - 52 AS INTEGER ) * - + 72
----
3799

query I rowsort
SELECT ALL + COALESCE ( - - 39, + - 39 - 83 + + 6 + - 7 ) + ( + 49 ) + - 66 * + + 70 AS col2
----
-4532

query I rowsort
SELECT ALL - + 49 + 11 AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4661
SELECT 24 * - ( 68 ) * CASE 48 WHEN + 98 THEN - 49 * + 2 + - 61 + + 71 WHEN 1 THEN NULL WHEN + 17 THEN - - CASE CAST( 75 AS SIGNED ) WHEN ( - COALESCE ( - 37, - COUNT( * ), - SUM( DISTINCT + 67 ) ) ) * + + 16 - - 93 - - CAST( COUNT( * ) AS SIGNED ) THEN - + 90 - - 48 + + 29 END * + 71 * + 32 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT 24 * - ( 68 ) * CASE 48 WHEN + 98 THEN - 49 * + 2 + - 61 + + 71 WHEN 1 THEN NULL WHEN + 17 THEN - - CASE CAST ( 75 AS INTEGER ) WHEN ( - COALESCE ( - 37, - COUNT ( * ), - SUM ( DISTINCT + 67 ) ) ) * + + 16 - - 93 - - CAST ( COUNT ( * ) AS INTEGER ) THEN - + 90 - - 48 + + 29 END * + 71 * + 32 END AS col2
----
NULL

query II rowsort
SELECT 71, 94 col1
----
71
94

query II rowsort
SELECT 77 AS col1, + 98 * - 12
----
77
-1176

query I rowsort
SELECT - 5 * + + 95
----
-475

query I rowsort
SELECT + ( - 51 ) AS col1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4666
SELECT ALL - 99 + + 56 DIV 81
----
-99

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL - 99 + + 56 / 81
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL 85 - MIN( 4 )
----
81

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL 85 - MIN ( 4 )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4668
SELECT - - 16 AS col1, COUNT( DISTINCT 38 )
----
16
1

skipif mysql # not compatible
query II rowsort label-4668
SELECT - - 16 AS col1, COUNT ( DISTINCT 38 )
----
16
1

query I rowsort
SELECT DISTINCT 43 * - 67 AS col1
----
-2881

query I rowsort
SELECT 39 + - 94 * + 59
----
-5507

query I rowsort
SELECT 45 * + + 37 AS col1
----
1665

onlyif mysql # aggregate syntax: 
query II rowsort label-4672
SELECT 64 + - 26 + + COUNT( * ) * - 66 col2, NULLIF ( + + ( - - COUNT( * ) ), + 48 - 83 + MAX( 43 ) ) + - - COUNT( * ) + 81 * 45 * - COUNT( * ) * + 57 AS col1
----
-28
-207763

skipif mysql # not compatible
query II rowsort label-4672
SELECT 64 + - 26 + + COUNT ( * ) * - 66 col2, NULLIF ( + + ( - - COUNT ( * ) ), + 48 - 83 + MAX ( 43 ) ) + - - COUNT ( * ) + 81 * 45 * - COUNT ( * ) * + 57 AS col1
----
-28
-207763

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT 70 * + NULLIF ( + COUNT( * ), 60 * + COUNT( * ) + 84 )
----
70

skipif mysql # not compatible
query I rowsort label-4673
SELECT 70 * + NULLIF ( + COUNT ( * ), 60 * + COUNT ( * ) + 84 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT ( + COUNT( * ) ) + - 15
----
-14

skipif mysql # not compatible
query I rowsort label-4674
SELECT ( + COUNT ( * ) ) + - 15
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL MIN( + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL MIN ( + 56 )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4676
SELECT COUNT( 1 ) DIV + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4676
SELECT COUNT ( 1 ) / + - COUNT ( * )
----
-1

query I rowsort
SELECT 96 * + 0 * 20 AS col0
----
0

query I rowsort
SELECT 99 + + 95 AS col2
----
194

onlyif mysql # DIV for integer division: 
query I rowsort label-4679
SELECT - 58 DIV - 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4679
SELECT - 58 / - 64 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT ALL - COUNT( * ) + 65 + - + 82 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL - COUNT ( * ) + 65 + - + 82 AS col1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4681
SELECT - 22 DIV - 7
----
3

skipif mysql # not compatible
query I rowsort label-4681
SELECT - 22 / - 7
----
3

query I rowsort
SELECT ALL 9 * + 3 + - + ( + - 59 )
----
86

query I rowsort
SELECT DISTINCT + ( - 91 ) * 15 + - + 52 * + 28 * - - NULLIF ( + 58, + 8 ) AS col0
----
-85813

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT ALL - 2 * - COUNT( * ) + + 12
----
14

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL - 2 * - COUNT ( * ) + + 12
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4685
SELECT DISTINCT + + CAST( 22 AS SIGNED ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT + + CAST ( 22 AS INTEGER ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT MAX( ALL + 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4686
SELECT MAX ( ALL + 61 ) AS col2
----
61

query I rowsort
SELECT ALL + 73 * + 35 * + - 16 - - 15 - - + 81 * - 87 + - - 83 AS col1
----
-47829

query I rowsort
SELECT - NULLIF ( 19, 8 ) * - 37 + - + 28 AS col1
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT - COUNT( + + 15 ) + - SUM( 7 ) * 88 * MAX( - 94 ) * + 80 + NULLIF ( - + 13, + 48 ) AS col2
----
4632306

skipif mysql # not compatible
query I rowsort label-4689
SELECT - COUNT ( + + 15 ) + - SUM ( 7 ) * 88 * MAX ( - 94 ) * + 80 + NULLIF ( - + 13, + 48 ) AS col2
----
4632306

query II rowsort
SELECT - 3 + 67 AS col1, 79 AS col0
----
64
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT - - 94 * 66 + COUNT( * ) + - 14 + + - COUNT( * ) AS col0
----
6190

skipif mysql # not compatible
query I rowsort label-4691
SELECT - - 94 * 66 + COUNT ( * ) + - 14 + + - COUNT ( * ) AS col0
----
6190

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT DISTINCT - - ( - MIN( 13 ) ) * - SUM( DISTINCT + 15 ) AS col1
----
195

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT - - ( - MIN ( 13 ) ) * - SUM ( DISTINCT + 15 ) AS col1
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4693
SELECT ALL + 72 * - CAST( NULL AS SIGNED ) - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL + 72 * - CAST ( NULL AS INTEGER ) - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT 43 * 46 + + NULLIF ( 27, - 96 + + + SUM( - 1 ) )
----
2005

skipif mysql # not compatible
query I rowsort label-4694
SELECT 43 * 46 + + NULLIF ( 27, - 96 + + + SUM ( - 1 ) )
----
2005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4695
SELECT ALL - 37 * SUM( ALL - 72 ) + - 16 * + + 4 DIV 75 AS col1
----
2664

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL - 37 * SUM ( ALL - 72 ) + - 16 * + + 4 / 75 AS col1
----
2664

query II rowsort
SELECT + - 93 + 42, - 93 AS col1
----
-51
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4697
SELECT - 5 DIV - - 32 - + - 80 * COALESCE ( COUNT( * ), - COUNT( * ), + 28 ) + + MIN( ALL + 1 ) AS col2, 95
----
81
95

skipif mysql # not compatible
query II rowsort label-4697
SELECT - 5 / - - 32 - + - 80 * COALESCE ( COUNT ( * ), - COUNT ( * ), + 28 ) + + MIN ( ALL + 1 ) AS col2, 95
----
81
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT + CASE 63 WHEN - 6 THEN 56 END * + 22 * 80 + + - COUNT( * ) + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4698
SELECT + CASE 63 WHEN - 6 THEN 56 END * + 22 * 80 + + - COUNT ( * ) + - 81
----
NULL

query I rowsort
SELECT DISTINCT 95 - + 14 * 24 AS col0
----
-241

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4700
SELECT ALL 14, - COUNT( * ) * + + ( - - NULLIF ( - 63, - - 73 + AVG ( + 24 ) DIV + 37 * - 27 * 79 ) ) DIV + 90 + 94 AS col2, - - 46 AS col2
----
14
94
46

skipif mysql # not compatible
query III rowsort label-4700
SELECT ALL 14, - COUNT ( * ) * + + ( - - NULLIF ( - 63, - - 73 + AVG ( + 24 ) / + 37 * - 27 * 79 ) ) / + 90 + 94 AS col2, - - 46 AS col2
----
14
94
46

query I rowsort
SELECT + 24 + + 36 * + 48 AS col0
----
1752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4702
SELECT ALL 30 * + 37 DIV + COALESCE ( COUNT( 18 ), ( - 46 ) ) AS col1
----
1110

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL 30 * + 37 / + COALESCE ( COUNT ( 18 ), ( - 46 ) ) AS col1
----
1110

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT DISTINCT COUNT( * ) * 36 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT COUNT ( * ) * 36 AS col2
----
36

query I rowsort
SELECT DISTINCT ( - NULLIF ( - 72, - 8 ) )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT ALL 24 * - SUM( DISTINCT - 62 ) AS col1
----
1488

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL 24 * - SUM ( DISTINCT - 62 ) AS col1
----
1488

query I rowsort
SELECT DISTINCT 53 * + + 25 AS col2
----
1325

query I rowsort
SELECT - 76 * + 72
----
-5472

query I rowsort
SELECT + 82 * + 39 col1
----
3198

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT - COUNT( DISTINCT + + 33 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4709
SELECT - COUNT ( DISTINCT + + 33 ) AS col1
----
-1

query I rowsort
SELECT ALL 40 + - 2 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT + NULLIF ( + - 70, - COUNT( - 46 ) * + 79 / 47 ) + + 50
----
-20

skipif mysql # not compatible
query I rowsort label-4711
SELECT + NULLIF ( + - 70, - COUNT ( - 46 ) * + 79 / 47 ) + + 50
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-4712
SELECT - 52 - 11 * + 0 + - 42 DIV - 52 * + + 53 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4712
SELECT - 52 - 11 * + 0 + - 42 / - 52 * + + 53 AS col0
----
-52

query I rowsort
SELECT - ( + ( 60 ) )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4714
SELECT ALL + 2 + - 73 + - CAST( - + 78 AS SIGNED ) + - 16 col2
----
-9

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL + 2 + - 73 + - CAST ( - + 78 AS INTEGER ) + - 16 col2
----
-9

query I rowsort
SELECT + 94 + + + 34 + + 38 AS col0
----
166

query I rowsort
SELECT DISTINCT + + 48 * + 61
----
2928

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT DISTINCT + ( - COUNT( * ) ) + - 67 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT + ( - COUNT ( * ) ) + - 67 AS col2
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4718
SELECT NULLIF ( - 72, - + CAST( NULL AS SIGNED ) ), 53 col1
----
-72
53

skipif mysql # not compatible
query II rowsort label-4718
SELECT NULLIF ( - 72, - + CAST ( NULL AS INTEGER ) ), 53 col1
----
-72
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4719
SELECT - 21 + - 15 DIV - + 58
----
-21

skipif mysql # not compatible
query I rowsort label-4719
SELECT - 21 + - 15 / - + 58
----
-21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4720
SELECT ALL + + 70 DIV + - 53 + - 88 - - 29 - + - 93, CAST( - - 80 AS SIGNED ) + 9 AS col1
----
33
89

skipif mysql # not compatible
query II rowsort label-4720
SELECT ALL + + 70 / + - 53 + - 88 - - 29 - + - 93, CAST ( - - 80 AS INTEGER ) + 9 AS col1
----
33
89

query I rowsort
SELECT + + CASE + 31 WHEN - + 60 * + + 59 THEN + 20 * + + 91 / 96 + 10 + + 7 END * + 5 * 2 / 62
----
NULL

query I rowsort
SELECT + - 13 * + + 18 * - 27 * 48 * + - 49 * + - 50 AS col2
----
742996800

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4723
SELECT - - COUNT( * ) + 7 + CASE - - CAST( NULL AS DECIMAL ) WHEN - 5 THEN - + COUNT( * ) ELSE NULL END * + COALESCE ( + + 85, - 59 * - 38 ) / 84 + 29 + - COUNT( * ) AS col1, 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-4723
SELECT - - COUNT ( * ) + 7 + CASE - - CAST ( NULL AS REAL ) WHEN - 5 THEN - + COUNT ( * ) ELSE NULL END * + COALESCE ( + + 85, - 59 * - 38 ) / 84 + 29 + - COUNT ( * ) AS col1, 45
----
NULL
45

query I rowsort
SELECT DISTINCT - 2 * - 36 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT + 90 * + ( + 25 ) + COUNT( * ) - + 8 + - COUNT( * ) * - 27
----
2270

skipif mysql # not compatible
query I rowsort label-4725
SELECT + 90 * + ( + 25 ) + COUNT ( * ) - + 8 + - COUNT ( * ) * - 27
----
2270

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4726
SELECT ALL + CASE - MIN( ALL + 26 ) WHEN + CAST( + 98 AS DECIMAL ) * - COUNT( * ) + + 8 + + 37 + - MAX( DISTINCT + 20 ) THEN 7 + + MAX( ALL + 46 ) ELSE + + 96 END
----
96

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL + CASE - MIN ( ALL + 26 ) WHEN + CAST ( + 98 AS REAL ) * - COUNT ( * ) + + 8 + + 37 + - MAX ( DISTINCT + 20 ) THEN 7 + + MAX ( ALL + 46 ) ELSE + + 96 END
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4727
SELECT ALL 94 / + CAST( NULL AS SIGNED ) - 54 + - - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL 94 / + CAST ( NULL AS INTEGER ) - 54 + - - 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT - 10 * - 29 + MIN( - 36 ) + COUNT( * )
----
255

skipif mysql # not compatible
query I rowsort label-4728
SELECT - 10 * - 29 + MIN ( - 36 ) + COUNT ( * )
----
255

query I rowsort
SELECT DISTINCT 79 * + 13 AS col0
----
1027

query I rowsort
SELECT - - 13 * - 0
----
0

query I rowsort
SELECT DISTINCT + + 15 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT - 90 - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-4732
SELECT - 90 - COUNT ( * )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4733
SELECT + 18 * - 81 * + CAST( - SUM( DISTINCT + 83 ) AS SIGNED ) - + - 44
----
121058

skipif mysql # not compatible
query I rowsort label-4733
SELECT + 18 * - 81 * + CAST ( - SUM ( DISTINCT + 83 ) AS INTEGER ) - + - 44
----
121058

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT ALL + 68 * + COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL + 68 * + COUNT ( * ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT - CASE 67 WHEN - COUNT( * ) THEN + 50 * - + 76 + 17 + COUNT( * ) + + 57 END * 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT - CASE 67 WHEN - COUNT ( * ) THEN + 50 * - + 76 + 17 + COUNT ( * ) + + 57 END * 68 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL + 41 * + + MIN( DISTINCT - 48 ) col2
----
-1968

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL + 41 * + + MIN ( DISTINCT - 48 ) col2
----
-1968

query I rowsort
SELECT COALESCE ( - 11, - 41 * - - 19 )
----
-11

query I rowsort
SELECT ALL + 68 * ( + - 38 ) AS col1
----
-2584

query II rowsort
SELECT ALL 24 AS col1, - 0 AS col2
----
24
0

query I rowsort
SELECT DISTINCT 61 * + 47 + - 62 + - ( - 63 ) AS col2
----
2868

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT DISTINCT + COUNT( * ) + - 19 + + 72 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT + COUNT ( * ) + - 19 + + 72 AS col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4742
SELECT 24, + 56 + + + 67 + - MAX( ALL 21 ) AS col1
----
24
102

skipif mysql # not compatible
query II rowsort label-4742
SELECT 24, + 56 + + + 67 + - MAX ( ALL 21 ) AS col1
----
24
102

query I rowsort
SELECT 89 + - + 4
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4744
SELECT MIN( DISTINCT 21 ) DIV - COUNT( * ) + + 97 + + ( + 9 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4744
SELECT MIN ( DISTINCT 21 ) / - COUNT ( * ) + + 97 + + ( + 9 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT 99 + + + 51 + NULLIF ( - 23, 37 / 77 + - 24 - 20 * ( - COUNT( * ) ) * + 64 + + + MAX( + - 40 ) )
----
127

skipif mysql # not compatible
query I rowsort label-4745
SELECT 99 + + + 51 + NULLIF ( - 23, 37 / 77 + - 24 - 20 * ( - COUNT ( * ) ) * + 64 + + + MAX ( + - 40 ) )
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT ALL - 78 + + + COUNT( * ) * + 19
----
-59

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL - 78 + + + COUNT ( * ) * + 19
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT DISTINCT ( - 87 ) * + + COUNT( * ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT ( - 87 ) * + + COUNT ( * ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT DISTINCT COUNT( * ) + - 73 - + COUNT( * ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT COUNT ( * ) + - 73 - + COUNT ( * ) AS col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4749
SELECT ALL CAST( + 49 AS SIGNED ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL CAST ( + 49 AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL - 6 / COUNT( * ) * CASE - 27 WHEN 55 + COUNT( * ) + + - 52 THEN + + COALESCE ( - SUM( 13 ), - 88 + 82 ) - + 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL - 6 / COUNT ( * ) * CASE - 27 WHEN 55 + COUNT ( * ) + + - 52 THEN + + COALESCE ( - SUM ( 13 ), - 88 + 82 ) - + 92 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT COUNT( * ) * + 2 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4751
SELECT COUNT ( * ) * + 2 AS col0
----
2

query II rowsort
SELECT 40 AS col1, - 33
----
40
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT ALL + 22 + - NULLIF ( - 6, + - COUNT( * ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL + 22 + - NULLIF ( - 6, + - COUNT ( * ) ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-4754
SELECT COUNT( * ), - 82 AS col2
----
1
-82

skipif mysql # not compatible
query II rowsort label-4754
SELECT COUNT ( * ), - 82 AS col2
----
1
-82

query II rowsort
SELECT + 58 - + 44 AS col2, 59 AS col2
----
14
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4756
SELECT - CASE - + 11 WHEN + COALESCE ( + - 86, - NULLIF ( 95, MIN( + CAST( NULL AS SIGNED ) ) ) * + ( - COUNT( * ) ) - - + 53 + - + 88 * - - NULLIF ( + - 94, - - 97 ) ) + + 98 + COUNT( * ) + ( + COUNT( * ) ) THEN NULL ELSE - + 45 - - + 31 + - MIN( - + 32 ) - + COUNT( * ) * + + SUM( 42 ) END AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4756
SELECT - CASE - + 11 WHEN + COALESCE ( + - 86, - NULLIF ( 95, MIN ( + CAST ( NULL AS INTEGER ) ) ) * + ( - COUNT ( * ) ) - - + 53 + - + 88 * - - NULLIF ( + - 94, - - 97 ) ) + + 98 + COUNT ( * ) + ( + COUNT ( * ) ) THEN NULL ELSE - + 45 - - + 31 + - MIN ( - + 32 ) - + COUNT ( * ) * + + SUM ( 42 ) END AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4757
SELECT - 8 AS col1, - 52 * CAST( NULL AS SIGNED ) * + + ( - 70 )
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-4757
SELECT - 8 AS col1, - 52 * CAST ( NULL AS INTEGER ) * + + ( - 70 )
----
-8
NULL

query II rowsort
SELECT ALL 20 AS col1, - 0
----
20
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT + COUNT( DISTINCT - - ( - - 15 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4759
SELECT + COUNT ( DISTINCT - - ( - - 15 ) )
----
1

query I rowsort
SELECT ALL - - ( - + 56 )
----
-56

query II rowsort
SELECT DISTINCT - - 63 AS col1, 43 AS col0
----
63
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT - COUNT( * ) - - 47 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-4762
SELECT - COUNT ( * ) - - 47 AS col2
----
46

query I rowsort
SELECT 91 * + 91 + + + 9 AS col0
----
8290

query I rowsort
SELECT ALL + + 79 * + 31 * 72 * - + 62 + + 78 AS col0
----
-10932258

query I rowsort
SELECT NULLIF ( - 75, 4 * 43 + + 56 ) - + + 29 AS col1
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4766
SELECT ALL - ( 25 ) DIV + + ( + NULLIF ( 11, COUNT( * ) ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL - ( 25 ) / + + ( + NULLIF ( 11, COUNT ( * ) ) ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4767
SELECT + - ( 67 ) AS col1, - MIN( + 94 )
----
-67
-94

skipif mysql # not compatible
query II rowsort label-4767
SELECT + - ( 67 ) AS col1, - MIN ( + 94 )
----
-67
-94

query II rowsort
SELECT 60 * - 64 * 6 - 61 AS col1, - 38
----
-23101
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT ALL COUNT( * ) * + + 55
----
55

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL COUNT ( * ) * + + 55
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT DISTINCT + 27 * 65 * 54 * + 39 * - - 25 + - 71 + SUM( ALL + 48 )
----
92400727

skipif mysql # not compatible
query I rowsort label-4770
SELECT DISTINCT + 27 * 65 * 54 * + 39 * - - 25 + - 71 + SUM ( ALL + 48 )
----
92400727

query I rowsort
SELECT 83 * - 38 AS col1
----
-3154

query I rowsort
SELECT 90 + + 81
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT ALL - CASE + + 38 WHEN 31 THEN NULL WHEN + MAX( DISTINCT + 5 ) * + 35 THEN - 17 * - 55 + + - 24 + 85 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL - CASE + + 38 WHEN 31 THEN NULL WHEN + MAX ( DISTINCT + 5 ) * + 35 THEN - 17 * - 55 + + - 24 + 85 ELSE NULL END
----
NULL

query I rowsort
SELECT 99 + 94 AS col2
----
193

query II rowsort
SELECT ALL - 9 + - 95 * + 14 AS col1, 62 AS col0
----
-1339
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT ( 53 ) * + CAST( - 25 AS SIGNED )
----
-1325

skipif mysql # not compatible
query I rowsort label-4776
SELECT ( 53 ) * + CAST ( - 25 AS INTEGER )
----
-1325

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL - CASE - 3 WHEN + - 36 THEN - 15 / + 30 + + + MAX( DISTINCT 39 ) + COALESCE ( - 34, - 33 + + ( + 77 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL - CASE - 3 WHEN + - 36 THEN - 15 / + 30 + + + MAX ( DISTINCT 39 ) + COALESCE ( - 34, - 33 + + ( + 77 ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT DISTINCT - MIN( + 15 ) + ( + 98 )
----
83

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT - MIN ( + 15 ) + ( + 98 )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4779
SELECT DISTINCT + 1 + + + 51 * - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT + 1 + + + 51 * - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + - 52 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4780
SELECT COUNT( * ) * - COUNT( * ) * - + COALESCE ( - COUNT( * ), - 21 ) * + + 99 * 72 AS col0, + COUNT( * )
----
-7128
1

skipif mysql # not compatible
query II rowsort label-4780
SELECT COUNT ( * ) * - COUNT ( * ) * - + COALESCE ( - COUNT ( * ), - 21 ) * + + 99 * 72 AS col0, + COUNT ( * )
----
-7128
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT 30 + + - ( + - NULLIF ( 82, - 23 * 4 + + + 77 ) ) * - COUNT( * ) col1
----
-52

skipif mysql # not compatible
query I rowsort label-4781
SELECT 30 + + - ( + - NULLIF ( 82, - 23 * 4 + + + 77 ) ) * - COUNT ( * ) col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4782
SELECT DISTINCT - ( + 54 ) - - MAX( + ( + + CAST( + + 66 AS SIGNED ) ) ) + 87 * - - COUNT( ALL - + 41 )
----
99

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT - ( + 54 ) - - MAX ( + ( + + CAST ( + + 66 AS INTEGER ) ) ) + 87 * - - COUNT ( ALL - + 41 )
----
99

query I rowsort
SELECT ALL - - ( - - 34 ) - 26 + 94
----
102

query I rowsort
SELECT ( + 47 ) * 13 AS col1
----
611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4785
SELECT CAST( - 54 AS SIGNED ) * + 31 - 67
----
-1741

skipif mysql # not compatible
query I rowsort label-4785
SELECT CAST ( - 54 AS INTEGER ) * + 31 - 67
----
-1741

query II rowsort
SELECT 75 + + 60 AS col2, 31 col0
----
135
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT + 46 - + 33 + - 73 * - MAX( ALL 87 ) + - COUNT( DISTINCT + 42 ) AS col1
----
6363

skipif mysql # not compatible
query I rowsort label-4787
SELECT + 46 - + 33 + - 73 * - MAX ( ALL 87 ) + - COUNT ( DISTINCT + 42 ) AS col1
----
6363

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT DISTINCT 95 - + NULLIF ( + 4, - MAX( DISTINCT 12 ) + - COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT 95 - + NULLIF ( + 4, - MAX ( DISTINCT 12 ) + - COUNT ( * ) )
----
91

query I rowsort
SELECT ALL 8 * + 38 AS col1
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT DISTINCT - 19 * MIN( ALL 89 )
----
-1691

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT - 19 * MIN ( ALL 89 )
----
-1691

query I rowsort
SELECT + COALESCE ( - 29, + ( ( - ( - ( - 48 ) ) ) ), + 30 * + COALESCE ( - ( - 35 ), + 33, + 82 ) * 56 + - + 69 ) + + 77 AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4792
SELECT CAST( NULL AS SIGNED ) + - 21, COUNT( + CAST( NULL AS SIGNED ) ) col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4792
SELECT CAST ( NULL AS INTEGER ) + - 21, COUNT ( + CAST ( NULL AS INTEGER ) ) col0
----
NULL
0

query I rowsort
SELECT + ( + + 71 )
----
71

query I rowsort
SELECT ALL - ( + 85 )
----
-85

query I rowsort
SELECT 16 * - + 83 * - 60 AS col1
----
79680

query I rowsort
SELECT ALL 47 * - 24 + - + 5 + - 1 * + 56 + - 35 AS col0
----
-1224

onlyif mysql # DIV for integer division: 
query I rowsort label-4797
SELECT 83 DIV + + ( - 9 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-4797
SELECT 83 / + + ( - 9 ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT COUNT( * ) * + - 82 + + 78 + + - 73
----
-77

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT COUNT ( * ) * + - 82 + + 78 + + - 73
----
-77

query I rowsort
SELECT DISTINCT 1 * 6
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4800
SELECT COUNT( * ) AS col1, 89 + + - 56 AS col0
----
1
33

skipif mysql # not compatible
query II rowsort label-4800
SELECT COUNT ( * ) AS col1, 89 + + - 56 AS col0
----
1
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT SUM( DISTINCT - 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-4801
SELECT SUM ( DISTINCT - 44 ) AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4802
SELECT + COUNT( * ) AS col1, COALESCE ( - 62, CAST( - 18 AS SIGNED ) ) + - 96 AS col0
----
1
-158

skipif mysql # not compatible
query II rowsort label-4802
SELECT + COUNT ( * ) AS col1, COALESCE ( - 62, CAST ( - 18 AS INTEGER ) ) + - 96 AS col0
----
1
-158

onlyif mysql # DIV for integer division: 
query I rowsort label-4803
SELECT + 42 DIV + - 42 col2
----
-1

skipif mysql # not compatible
query I rowsort label-4803
SELECT + 42 / + - 42 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT MAX( + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-4804
SELECT MAX ( + 71 )
----
71

query II rowsort
SELECT + 9 * - 10 - + 28 col2, ( + - 57 ) + + 7
----
-118
-50

query I rowsort
SELECT ALL 0 * - - 43 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4807
SELECT + COUNT( * ) DIV - + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4807
SELECT + COUNT ( * ) / - + 73 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4808
SELECT DISTINCT + 37 col0, - 64 DIV - - 74 col1
----
37
0

skipif mysql # not compatible
query II rowsort label-4808
SELECT DISTINCT + 37 col0, - 64 / - - 74 col1
----
37
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT ALL + CAST( NULL AS SIGNED ) + + - 92 + 47 * - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL + CAST ( NULL AS INTEGER ) + + - 92 + 47 * - 21 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 82 AS col2, - 29 AS col1
----
82
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4811
SELECT DISTINCT + CASE + COUNT( * ) WHEN + 26 THEN NULL WHEN - 60 * + 31 THEN NULL ELSE + + 81 * + - COUNT( * ) * + 96 END AS col2, 29 - CAST( NULL AS SIGNED ) + + 76 * - + CASE - - ( + + 93 ) WHEN 8 THEN + ( MAX( ALL - + 46 ) ) - + 40 / NULLIF ( - COUNT( * ), + CASE + - 87 WHEN + - 78 / + + 71 * 5 * 7 + - + ( + 76 ) THEN NULL WHEN - 92 * + + COUNT( * ) + - 4 + + + CASE + 47 WHEN - + 31 * + MIN( DISTINCT - - 83 ) THEN + + 71 + 16 END THEN - 58 WHEN - - 43 / + COALESCE ( - + COUNT( * ), 14 * 59 * + COALESCE ( - + CAST( NULL AS SIGNED ), - 70 + - 94, + 6 * - COUNT( * ) ) * + 2, 47 ) THEN - 54 * + 31 END ) * + COUNT( * ) END AS col2
----
-7776
NULL

skipif mysql # not compatible
query II rowsort label-4811
SELECT DISTINCT + CASE + COUNT ( * ) WHEN + 26 THEN NULL WHEN - 60 * + 31 THEN NULL ELSE + + 81 * + - COUNT ( * ) * + 96 END AS col2, 29 - CAST ( NULL AS INTEGER ) + + 76 * - + CASE - - ( + + 93 ) WHEN 8 THEN + ( MAX ( ALL - + 46 ) ) - + 40 / NULLIF ( - COUNT ( * ), + CASE + - 87 WHEN + - 78 / + + 71 * 5 * 7 + - + ( + 76 ) THEN NULL WHEN - 92 * + + COUNT ( * ) + - 4 + + + CASE + 47 WHEN - + 31 * + MIN ( DISTINCT - - 83 ) THEN + + 71 + 16 END THEN - 58 WHEN - - 43 / + COALESCE ( - + COUNT ( * ), 14 * 59 * + COALESCE ( - + CAST ( NULL AS INTEGER ), - 70 + - 94, + 6 * - COUNT ( * ) ) * + 2, 47 ) THEN - 54 * + 31 END ) * + COUNT ( * ) END AS col2
----
-7776
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4812
SELECT 79 AS col2, - ( + 6 ) * + + 84 + 19 - - - COUNT( * ) AS col1
----
79
-486

skipif mysql # not compatible
query II rowsort label-4812
SELECT 79 AS col2, - ( + 6 ) * + + 84 + 19 - - - COUNT ( * ) AS col1
----
79
-486

onlyif mysql # aggregate syntax: 
query II rowsort label-4813
SELECT DISTINCT COUNT( * ) col1, 91
----
1
91

skipif mysql # not compatible
query II rowsort label-4813
SELECT DISTINCT COUNT ( * ) col1, 91
----
1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT ALL COUNT( ALL - + 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL COUNT ( ALL - + 29 ) AS col1
----
1

query I rowsort
SELECT - 0 * - 27 - + + 77 + + 97 AS col1
----
20

query I rowsort
SELECT - 44 + - 46 + - ( + 77 )
----
-167

query I rowsort
SELECT DISTINCT + ( - 87 )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4818
SELECT - - CASE - 57 WHEN + COUNT( * ) THEN + + COUNT( - 69 ) WHEN - - NULLIF ( - 39, + 9 ) THEN 64 ELSE 34 END * 97 - CASE - - 17 WHEN - - 68 * - - ( ( - CAST( NULL AS SIGNED ) ) ) THEN NULL WHEN + 52 THEN + 13 ELSE + ( - 83 ) END
----
3381

skipif mysql # not compatible
query I rowsort label-4818
SELECT - - CASE - 57 WHEN + COUNT ( * ) THEN + + COUNT ( - 69 ) WHEN - - NULLIF ( - 39, + 9 ) THEN 64 ELSE 34 END * 97 - CASE - - 17 WHEN - - 68 * - - ( ( - CAST ( NULL AS INTEGER ) ) ) THEN NULL WHEN + 52 THEN + 13 ELSE + ( - 83 ) END
----
3381

query I rowsort
SELECT ALL - 65 * + - 32 col1
----
2080

onlyif mysql # DIV for integer division: 
query I rowsort label-4820
SELECT DISTINCT - + 70 * 75 DIV - - ( 4 ) + - + 40 AS col0
----
-1352

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT - + 70 * 75 / - - ( 4 ) + - + 40 AS col0
----
-1352

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4821
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, + 39
----
NULL
39

skipif mysql # not compatible
query II rowsort label-4821
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + 39
----
NULL
39

query I rowsort
SELECT ALL - 20 * 98 AS col1
----
-1960

onlyif mysql # DIV for integer division: 
query I rowsort label-4823
SELECT - - 15 DIV 16
----
0

skipif mysql # not compatible
query I rowsort label-4823
SELECT - - 15 / 16
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4824
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( * ) * 67 AS col2, - ( COUNT( * ) ) + - 75 AS col0
----
NULL
-76

skipif mysql # not compatible
query II rowsort label-4824
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( * ) * 67 AS col2, - ( COUNT ( * ) ) + - 75 AS col0
----
NULL
-76

query I rowsort
SELECT - ( 82 ) + 75
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT ALL + 90 DIV - ( - NULLIF ( - NULLIF ( - + 85, + + 5 ), - + 97 ) ) + - 12 DIV - 60 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL + 90 / - ( - NULLIF ( - NULLIF ( - + 85, + + 5 ), - + 97 ) ) + - 12 / - 60 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4827
SELECT + + ( + 33 ) DIV SUM( 71 ) DIV 42 - + 97
----
-97

skipif mysql # not compatible
query I rowsort label-4827
SELECT + + ( + 33 ) / SUM ( 71 ) / 42 - + 97
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT + SUM( DISTINCT + - 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-4828
SELECT + SUM ( DISTINCT + - 58 ) AS col1
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4829
SELECT ALL + 25 DIV + COUNT( * ) + COALESCE ( - 95, - 82, - 85 * - + 85 + + + 59 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL + 25 / + COUNT ( * ) + COALESCE ( - 95, - 82, - 85 * - + 85 + + + 59 ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT - - 83 - - COUNT( * ) + + 81 - 35
----
130

skipif mysql # not compatible
query I rowsort label-4830
SELECT - - 83 - - COUNT ( * ) + + 81 - 35
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ( 96 ) * - COALESCE ( 2, + - 68, - COUNT( * ) ) + + 35
----
-157

skipif mysql # not compatible
query I rowsort label-4831
SELECT ( 96 ) * - COALESCE ( 2, + - 68, - COUNT ( * ) ) + + 35
----
-157

query I rowsort
SELECT ALL + NULLIF ( + 84, - 86 ) AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4833
SELECT ( - COALESCE ( - COUNT( * ), + COUNT( * ), - - NULLIF ( - 54, - 82 * - 58 + + SUM( ALL 26 ) DIV + COUNT( DISTINCT 33 ) DIV - 83 ) * + CAST( 79 AS SIGNED ) + - COUNT( * ) + 66 * + - 89 DIV + + COUNT( * ) + 83 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4833
SELECT ( - COALESCE ( - COUNT ( * ), + COUNT ( * ), - - NULLIF ( - 54, - 82 * - 58 + + SUM ( ALL 26 ) / + COUNT ( DISTINCT 33 ) / - 83 ) * + CAST ( 79 AS INTEGER ) + - COUNT ( * ) + 66 * + - 89 / + + COUNT ( * ) + 83 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT + CASE 56 WHEN - - 21 * + + 22 * - - 20 THEN + + COUNT( * ) WHEN 42 + - 74 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4834
SELECT + CASE 56 WHEN - - 21 * + + 22 * - - 20 THEN + + COUNT ( * ) WHEN 42 + - 74 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4835
SELECT + 30 DIV 92 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4835
SELECT + 30 / 92 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT + CASE 29 WHEN COUNT( * ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT + CASE 29 WHEN COUNT ( * ) THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT ALL - 74 * - 22 * + COUNT( * ) + - + 94
----
1534

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL - 74 * - 22 * + COUNT ( * ) + - + 94
----
1534

query I rowsort
SELECT - 30 + - - 40 + - 68
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4839
SELECT 46 DIV 61 - + ( - 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4839
SELECT 46 / 61 - + ( - 1 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + ( + + 22 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL - COUNT( * ) * + + 9 * COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL - COUNT ( * ) * + + 9 * COUNT ( * ) AS col1
----
-9

query I rowsort
SELECT + 0 * - 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT ALL + SUM( + + 74 )
----
74

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL + SUM ( + + 74 )
----
74

query I rowsort
SELECT + 52 + 9
----
61

query I rowsort
SELECT - 64 * 82
----
-5248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4846
SELECT DISTINCT SUM( CAST( NULL AS SIGNED ) ) / 13 - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT SUM ( CAST ( NULL AS INTEGER ) ) / 13 - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4847
SELECT + CAST( - ( - ( MIN( - ( 63 ) ) ) ) AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-4847
SELECT + CAST ( - ( - ( MIN ( - ( 63 ) ) ) ) AS INTEGER )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4848
SELECT + COUNT( * ) DIV - - 35 * - + 60 DIV + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4848
SELECT + COUNT ( * ) / - - 35 * - + 60 / + 57 AS col0
----
0

query I rowsort
SELECT + 34 + + + 57
----
91

query I rowsort
SELECT DISTINCT 45 * 30 AS col2
----
1350

query I rowsort
SELECT ALL + 16 * - + 27 AS col2
----
-432

query I rowsort
SELECT ALL 34 * 94 + - 50 * - 54 AS col2
----
5896

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT + 74 + + COALESCE ( - + COUNT( * ), 63 * - - 11 + 52 )
----
73

skipif mysql # not compatible
query I rowsort label-4853
SELECT + 74 + + COALESCE ( - + COUNT ( * ), 63 * - - 11 + 52 )
----
73

query I rowsort
SELECT DISTINCT NULLIF ( + 29, - ( + 74 ) )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT ALL 57 + - - COALESCE ( + 0, 57 * + COUNT( * ) ) + + 92 - - COUNT( * ) * COALESCE ( - 77, 96 * + 76 + - 6 * 78, - 52 )
----
72

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL 57 + - - COALESCE ( + 0, 57 * + COUNT ( * ) ) + + 92 - - COUNT ( * ) * COALESCE ( - 77, 96 * + 76 + - 6 * 78, - 52 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4856
SELECT - 1 * + - 96 * - MAX( ALL CAST( 32 AS SIGNED ) ) * + + 90
----
-276480

skipif mysql # not compatible
query I rowsort label-4856
SELECT - 1 * + - 96 * - MAX ( ALL CAST ( 32 AS INTEGER ) ) * + + 90
----
-276480

query I rowsort
SELECT + + 53 + ( + 58 ) AS col0
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4858
SELECT DISTINCT 19 + + NULLIF ( + - CAST( - - 97 AS SIGNED ), + + ( + COUNT( * ) ) )
----
-78

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT 19 + + NULLIF ( + - CAST ( - - 97 AS INTEGER ), + + ( + COUNT ( * ) ) )
----
-78

query II rowsort
SELECT ALL - + 92 * - 51 AS col1, 80
----
4692
80

query II rowsort
SELECT + ( - - 23 ) AS col2, 66
----
23
66

query I rowsort
SELECT DISTINCT - 39 + + 15
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4862
SELECT DISTINCT - 76 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT - 76 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT ALL - - COUNT( * ) * 93 - - 41 AS col1
----
134

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL - - COUNT ( * ) * 93 - - 41 AS col1
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT - 3 + MIN( 68 )
----
65

skipif mysql # not compatible
query I rowsort label-4864
SELECT - 3 + MIN ( 68 )
----
65

query I rowsort
SELECT ALL - 50 + + + 90 * 52 + 69
----
4699

query I rowsort
SELECT 83 * + 88 AS col0
----
7304

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4867
SELECT 89 DIV + CAST( + 41 AS SIGNED ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4867
SELECT 89 / + CAST ( + 41 AS INTEGER ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4868
SELECT - 76 * - COUNT( * ) + - 20 - + 94 + - 15 + - 62 DIV + - 49 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4868
SELECT - 76 * - COUNT ( * ) + - 20 - + 94 + - 15 + - 62 / + - 49 AS col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4869
SELECT ALL - CASE + 57 WHEN - 51 * + 36 THEN NULL WHEN 51 THEN - CAST( NULL AS SIGNED ) ELSE NULL END AS col2, + 43
----
NULL
43

skipif mysql # not compatible
query II rowsort label-4869
SELECT ALL - CASE + 57 WHEN - 51 * + 36 THEN NULL WHEN 51 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END AS col2, + 43
----
NULL
43

query I rowsort
SELECT ALL - 15 - 69 AS col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4871
SELECT DISTINCT - 33 - - + ( - 55 ) + + + 69 + + CASE + 27 WHEN + 44 THEN + + COALESCE ( - CAST( + + 41 AS SIGNED ), - 73, - 71, 32 ) WHEN 6 THEN NULL END * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4871
SELECT DISTINCT - 33 - - + ( - 55 ) + + + 69 + + CASE + 27 WHEN + 44 THEN + + COALESCE ( - CAST ( + + 41 AS INTEGER ), - 73, - 71, 32 ) WHEN 6 THEN NULL END * 72
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4872
SELECT DISTINCT ( 39 ) * - 1, - COUNT( * ) DIV + 15 AS col0
----
-39
0

skipif mysql # not compatible
query II rowsort label-4872
SELECT DISTINCT ( 39 ) * - 1, - COUNT ( * ) / + 15 AS col0
----
-39
0

query I rowsort
SELECT ALL 71 * - 18 AS col1
----
-1278

query I rowsort
SELECT 24 * + 26 AS col2
----
624

onlyif mysql # DIV for integer division: 
query I rowsort label-4875
SELECT ALL + 61 * 26 DIV 78 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL + 61 * 26 / 78 AS col0
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4876
SELECT + 85, + 8 * SUM( + 64 ) AS col2
----
85
512

skipif mysql # not compatible
query II rowsort label-4876
SELECT + 85, + 8 * SUM ( + 64 ) AS col2
----
85
512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT DISTINCT - CAST( - 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT - CAST ( - 33 AS INTEGER )
----
33

query I rowsort
SELECT ALL - 88 * 60
----
-5280

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT 14 - - MIN( ALL + 22 ) + - NULLIF ( + 34, - - 42 - 13 ) * 56 + 93 - - CASE 27 WHEN - 20 THEN - 79 END * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4879
SELECT 14 - - MIN ( ALL + 22 ) + - NULLIF ( + 34, - - 42 - 13 ) * 56 + 93 - - CASE 27 WHEN - 20 THEN - 79 END * 89
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4880
SELECT - 62 * + 33 - - 5 AS col1, COUNT( * )
----
-2041
1

skipif mysql # not compatible
query II rowsort label-4880
SELECT - 62 * + 33 - - 5 AS col1, COUNT ( * )
----
-2041
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4881
SELECT DISTINCT - CAST( + - 30 AS SIGNED ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4881
SELECT DISTINCT - CAST ( + - 30 AS INTEGER ) AS col2
----
30

query I rowsort
SELECT 40 * NULLIF ( - 99, + + 88 ) * 52 + - 22 * 14 AS col2
----
-206228

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT - CASE - 26 WHEN - 9 * 10 THEN 46 - + 46 WHEN - CASE COUNT( * ) WHEN ( - 64 ) THEN + 90 END * 21 + 4 * + 20 THEN 95 + + 80 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT - CASE - 26 WHEN - 9 * 10 THEN 46 - + 46 WHEN - CASE COUNT ( * ) WHEN ( - 64 ) THEN + 90 END * 21 + 4 * + 20 THEN 95 + + 80 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4884
SELECT ALL 57 DIV 22 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL 57 / 22 AS col0
----
2

query I rowsort
SELECT 29 * - 52 AS col1
----
-1508

query I rowsort
SELECT 26 * 62 - 18 * 98 AS col0
----
-152

query I rowsort
SELECT ALL 62 + 18 * 47 AS col1
----
908

query I rowsort
SELECT ALL 21 + - 53 AS col2
----
-32

query I rowsort
SELECT 58 + + 24 AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4890
SELECT DISTINCT + ( + 60 ) DIV 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT + ( + 60 ) / 96 AS col2
----
0

query I rowsort
SELECT ALL - 81 + - 89
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL COUNT( * ) + + 28
----
29

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL COUNT ( * ) + + 28
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT DISTINCT 20 * NULLIF ( - 11 * - 99, + COUNT( * ) )
----
21780

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT 20 * NULLIF ( - 11 * - 99, + COUNT ( * ) )
----
21780

query I rowsort
SELECT ALL 85 + 46
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT COUNT( ALL + 60 ) * 91
----
91

skipif mysql # not compatible
query I rowsort label-4895
SELECT COUNT ( ALL + 60 ) * 91
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4896
SELECT CAST( + 30 AS SIGNED ) * COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4896
SELECT CAST ( + 30 AS INTEGER ) * COUNT ( * ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT 89 + + COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4897
SELECT 89 + + COUNT ( * ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT CASE - COALESCE ( + SUM( ALL 72 ), 38 + COALESCE ( + 60, NULLIF ( 41, - 88 * + 77 + 75 * 70 ), 59 * + COUNT( * ) ) ) WHEN 13 THEN + 22 WHEN - COUNT( * ) THEN NULL ELSE - 50 * + ( 76 ) END + ( COUNT( * ) )
----
-3799

skipif mysql # not compatible
query I rowsort label-4898
SELECT CASE - COALESCE ( + SUM ( ALL 72 ), 38 + COALESCE ( + 60, NULLIF ( 41, - 88 * + 77 + 75 * 70 ), 59 * + COUNT ( * ) ) ) WHEN 13 THEN + 22 WHEN - COUNT ( * ) THEN NULL ELSE - 50 * + ( 76 ) END + ( COUNT ( * ) )
----
-3799

query I rowsort
SELECT DISTINCT + 74 * - 3
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT DISTINCT COUNT( * ) - 92
----
-91

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT COUNT ( * ) - 92
----
-91

query I rowsort
SELECT 18 * - 8 col0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT 24 - COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4902
SELECT 24 - COUNT ( * ) AS col1
----
23

query I rowsort
SELECT DISTINCT COALESCE ( 34, + 97 ) * 62
----
2108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT CAST( NULL AS SIGNED ) * ( - 51 * 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT CAST ( NULL AS INTEGER ) * ( - 51 * 74 )
----
NULL

query I rowsort
SELECT - 58 * - 89 + + 53 col2
----
5215

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT ALL - CASE + 5 WHEN COUNT( 77 ) THEN NULL WHEN 2 * + 30 THEN MIN( - 1 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL - CASE + 5 WHEN COUNT ( 77 ) THEN NULL WHEN 2 * + 30 THEN MIN ( - 1 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4907
SELECT CAST( NULL AS SIGNED ) + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4907
SELECT CAST ( NULL AS INTEGER ) + 72
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4908
SELECT 50 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT 50 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 24 + + COALESCE ( NULLIF ( 90, + 79 / 51 ), - 31 )
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-4910
SELECT 20 DIV 53 - 50
----
-50

skipif mysql # not compatible
query I rowsort label-4910
SELECT 20 / 53 - 50
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-4911
SELECT 40 DIV 38
----
1

skipif mysql # not compatible
query I rowsort label-4911
SELECT 40 / 38
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4912
SELECT COUNT( * ) DIV COUNT( * ) + - 41 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-4912
SELECT COUNT ( * ) / COUNT ( * ) + - 41 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT ALL - COALESCE ( + 53, 65, + CASE + 25 WHEN - 58 THEN NULL WHEN - COUNT( * ) + 7 THEN NULL ELSE + 37 END * - COUNT( * ) )
----
-53

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL - COALESCE ( + 53, 65, + CASE + 25 WHEN - 58 THEN NULL WHEN - COUNT ( * ) + 7 THEN NULL ELSE + 37 END * - COUNT ( * ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT ALL - COUNT( DISTINCT + 44 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL - COUNT ( DISTINCT + 44 ) AS col2
----
-1

query I rowsort
SELECT ALL - 94 + + 57
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4916
SELECT + 73 DIV + ( 95 )
----
0

skipif mysql # not compatible
query I rowsort label-4916
SELECT + 73 / + ( 95 )
----
0

query I rowsort
SELECT DISTINCT - - 63 + + 64 * - 84 AS col2
----
-5313

query I rowsort
SELECT 39 * 31 + - 16 AS col1
----
1193

query I rowsort
SELECT ALL - + 13 + + 59 AS col1
----
46

query I rowsort
SELECT DISTINCT + + 51 * - 52
----
-2652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4921
SELECT + 13 * - CASE 29 WHEN + 67 * - AVG ( ALL - 78 ) THEN NULL WHEN 47 THEN - 73 + + 29 DIV MIN( ALL - 6 ) ELSE - 81 - + 11 END
----
1196

skipif mysql # not compatible
query I rowsort label-4921
SELECT + 13 * - CASE 29 WHEN + 67 * - AVG ( ALL - 78 ) THEN NULL WHEN 47 THEN - 73 + + 29 / MIN ( ALL - 6 ) ELSE - 81 - + 11 END
----
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT - COUNT( * ) + + 16 * 85
----
1359

skipif mysql # not compatible
query I rowsort label-4922
SELECT - COUNT ( * ) + + 16 * 85
----
1359

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT ALL + - MAX( 42 ) + + NULLIF ( 44 - - 60, 1 * - COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL + - MAX ( 42 ) + + NULLIF ( 44 - - 60, 1 * - COUNT ( * ) )
----
62

query I rowsort
SELECT ALL - - ( 75 ) + + 89 col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT ALL - 50 + 25 * NULLIF ( + COUNT( * ), 56 )
----
-25

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL - 50 + 25 * NULLIF ( + COUNT ( * ), 56 )
----
-25

query I rowsort
SELECT ALL 80 + 13 AS col2
----
93

query I rowsort
SELECT + + 70 + 63 AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT - MAX( ALL ( 0 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4928
SELECT - MAX ( ALL ( 0 ) ) AS col2
----
0

query I rowsort
SELECT ALL - 90 - 94 * 32
----
-3098

query I rowsort
SELECT - + 26 * 22 AS col0
----
-572

query I rowsort
SELECT + + 20 + 68
----
88

query I rowsort
SELECT - 25 + + 69
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT DISTINCT 64 * + CASE 80 WHEN + 29 - COUNT( * ) THEN - 69 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT 64 * + CASE 80 WHEN + 29 - COUNT ( * ) THEN - 69 ELSE NULL END
----
NULL

query I rowsort
SELECT - 38 + - 21
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4935
SELECT ALL SUM( CAST( NULL AS SIGNED ) ) * + MIN( ALL + 34 * - ( 39 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) * + MIN ( ALL + 34 * - ( 39 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 33 - 25
----
8

query I rowsort
SELECT + 1 + + 31 * - ( 59 ) AS col0
----
-1828

query I rowsort
SELECT + 60 * - - 5 AS col2
----
300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT ALL 65 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL 65 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 77 + + + 35 * ( + 37 )
----
1372

query I rowsort
SELECT + 36 * 5
----
180

query I rowsort
SELECT + 53 + + - 94 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ( - + SUM( 4 ) ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4943
SELECT ( - + SUM ( 4 ) ) AS col0
----
-4

query I rowsort
SELECT + 29 * - 40 + 82 AS col0
----
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT ( - CASE - 12 WHEN + ( - 51 ) THEN 43 * - 85 + + 89 * CASE 38 + 76 WHEN - MIN( - 29 ) THEN + ( MAX( ALL 89 ) ) ELSE NULL END END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT ( - CASE - 12 WHEN + ( - 51 ) THEN 43 * - 85 + + 89 * CASE 38 + 76 WHEN - MIN ( - 29 ) THEN + ( MAX ( ALL 89 ) ) ELSE NULL END END )
----
NULL

query I rowsort
SELECT ALL + 72 * 4 * 89 + - 82
----
25550

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT CASE + + 56 WHEN - ( 55 ) - + COUNT( * ) THEN 22 - 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4947
SELECT CASE + + 56 WHEN - ( 55 ) - + COUNT ( * ) THEN 22 - 2 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4948
SELECT CASE + NULLIF ( + 49, - 14 ) WHEN - 63 THEN NULL WHEN 68 THEN COUNT( * ) * 85 ELSE CASE 68 WHEN - 99 THEN NULL WHEN + 15 THEN NULL ELSE + 3 * 67 - CAST( NULL AS SIGNED ) * - 42 END + - ( 55 + + ( COUNT( * ) - 91 * + 23 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT CASE + NULLIF ( + 49, - 14 ) WHEN - 63 THEN NULL WHEN 68 THEN COUNT ( * ) * 85 ELSE CASE 68 WHEN - 99 THEN NULL WHEN + 15 THEN NULL ELSE + 3 * 67 - CAST ( NULL AS INTEGER ) * - 42 END + - ( 55 + + ( COUNT ( * ) - 91 * + 23 ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4949
SELECT + 34 + - - CAST( 23 AS SIGNED ) - 34 * - 0 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4949
SELECT + 34 + - - CAST ( 23 AS INTEGER ) - 34 * - 0 AS col2
----
57

query I rowsort
SELECT - 40 * + - 42 AS col0
----
1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4951
SELECT - CAST( + 28 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-4951
SELECT - CAST ( + 28 AS INTEGER )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT - + COUNT( * ) * - 27 + - ( NULLIF ( - NULLIF ( - 83, + ( 35 ) * 23 ), 52 / - 35 ) ) - - 98 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4952
SELECT - + COUNT ( * ) * - 27 + - ( NULLIF ( - NULLIF ( - 83, + ( 35 ) * 23 ), 52 / - 35 ) ) - - 98 AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4953
SELECT - CAST( 14 AS SIGNED ) * - 46 - + COUNT( * ) AS col2
----
643

skipif mysql # not compatible
query I rowsort label-4953
SELECT - CAST ( 14 AS INTEGER ) * - 46 - + COUNT ( * ) AS col2
----
643

query I rowsort
SELECT - 11 + + 86 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ALL 82 * + 71 + ( - MAX( - 28 ) ) AS col0
----
5850

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL 82 * + 71 + ( - MAX ( - 28 ) ) AS col0
----
5850

query I rowsort
SELECT DISTINCT + ( + + 56 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4957
SELECT ALL 86 * + - 2 * - CAST( + 4 AS SIGNED ) + 32
----
720

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL 86 * + - 2 * - CAST ( + 4 AS INTEGER ) + 32
----
720

query I rowsort
SELECT - - 16 * - 93 * - 87 + + 49
----
129505

onlyif mysql # DIV for integer division: 
query I rowsort label-4959
SELECT ALL - 10 DIV + 89 * ( - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL - 10 / + 89 * ( - 86 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT + - COUNT( * ) * + 39 - SUM( DISTINCT 2 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-4960
SELECT + - COUNT ( * ) * + 39 - SUM ( DISTINCT 2 ) AS col2
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4961
SELECT - + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4961
SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT 66 * + 48 - + 42 * 21 AS col2
----
2286

query I rowsort
SELECT ALL - ( - 58 ) * + 59 - - 17
----
3439

query I rowsort
SELECT - 0 * + - 59 + 48
----
48

query I rowsort
SELECT - 70 * + - 16 * 25 AS col1
----
28000

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ALL + + SUM( + 6 ) * - 99
----
-594

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + + SUM ( + 6 ) * - 99
----
-594

query I rowsort
SELECT - 27 + + + 72 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT ALL + - 14 * + COUNT( DISTINCT - 7 ) + + 11 * 82 AS col1
----
888

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL + - 14 * + COUNT ( DISTINCT - 7 ) + + 11 * 82 AS col1
----
888

query I rowsort
SELECT - 48 + - 35 AS col1
----
-83

query I rowsort
SELECT + 54 * - - 58 * NULLIF ( ( 36 ), 35 )
----
112752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4971
SELECT ALL CAST( + + 19 AS SIGNED ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL CAST ( + + 19 AS INTEGER ) AS col1
----
19

query I rowsort
SELECT - 41 + + 89 AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-4973
SELECT + 6 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-4973
SELECT + 6 / - 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT - 94 + + ( COUNT( * ) ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-4974
SELECT - 94 + + ( COUNT ( * ) ) AS col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT DISTINCT CAST( 97 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT CAST ( 97 AS INTEGER )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4976
SELECT DISTINCT - 45 DIV + COUNT( * ) + + + 76
----
31

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT - 45 / + COUNT ( * ) + + + 76
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4977
SELECT - 34 DIV + - 48 * - 30 * - 78
----
0

skipif mysql # not compatible
query I rowsort label-4977
SELECT - 34 / + - 48 * - 30 * - 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT 30 * MAX( ALL - 89 ) + 89
----
-2581

skipif mysql # not compatible
query I rowsort label-4978
SELECT 30 * MAX ( ALL - 89 ) + 89
----
-2581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4979
SELECT + 28 + + - 53 * - ( CAST( NULL AS SIGNED ) ) + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT + 28 + + - 53 * - ( CAST ( NULL AS INTEGER ) ) + 82 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4980
SELECT ALL - 13 DIV 54 + - 60
----
-60

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL - 13 / 54 + - 60
----
-60

query I rowsort
SELECT + 82 + - - 83 AS col0
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4982
SELECT ALL - - COUNT( * ) DIV + 13 * - 61 + 85 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL - - COUNT ( * ) / + 13 * - 61 + 85 AS col1
----
85

query II rowsort
SELECT - 57, - 94 AS col1
----
-57
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT + + NULLIF ( + COUNT( * ), + + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4984
SELECT + + NULLIF ( + COUNT ( * ), + + COUNT ( * ) ) AS col1
----
NULL

query II rowsort
SELECT ALL - 7 AS col1, - ( + 2 ) * - 31
----
-7
62

query I rowsort
SELECT DISTINCT 96 - - 99 col0
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4987
SELECT + 42 AS col0, NULLIF ( ( 86 ), 69 ) DIV CASE 31 WHEN + 91 * 35 THEN 50 * + 32 + - NULLIF ( - 28, + 6 ) * + COUNT( * ) ELSE 70 + 53 END
----
42
0

skipif mysql # not compatible
query II rowsort label-4987
SELECT + 42 AS col0, NULLIF ( ( 86 ), 69 ) / CASE 31 WHEN + 91 * 35 THEN 50 * + 32 + - NULLIF ( - 28, + 6 ) * + COUNT ( * ) ELSE 70 + 53 END
----
42
0

query I rowsort
SELECT - 45 + 57 - - 98 * 15 * 40
----
58812

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT COUNT( * ) * - 20 + - 62
----
-82

skipif mysql # not compatible
query I rowsort label-4989
SELECT COUNT ( * ) * - 20 + - 62
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT 45 / - + AVG ( 29 ) * - CASE + 78 WHEN - COUNT( * ) * + 47 THEN ( + 8 ) * 33 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4990
SELECT 45 / - + AVG ( 29 ) * - CASE + 78 WHEN - COUNT ( * ) * + 47 THEN ( + 8 ) * 33 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT - AVG ( DISTINCT CASE + 15 WHEN 93 + + 20 THEN 88 + + 40 ELSE NULL END ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4991
SELECT - AVG ( DISTINCT CASE + 15 WHEN 93 + + 20 THEN 88 + + 40 ELSE NULL END ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT + 33 * - + 71 + + - 7 * 55
----
-2728

query I rowsort
SELECT DISTINCT + 87 * 13 AS col1
----
1131

query I rowsort
SELECT ALL - COALESCE ( + 60, 9 ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT + 20 + - COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4995
SELECT + 20 + - COUNT ( * ) AS col1
----
19

query I rowsort
SELECT + NULLIF ( + 96, - 40 ) * + 88
----
8448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4997
SELECT ALL + CAST( NULL AS SIGNED ), COUNT( * ) DIV + 68 col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4997
SELECT ALL + CAST ( NULL AS INTEGER ), COUNT ( * ) / + 68 col1
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4998
SELECT DISTINCT - 5 DIV - - CAST( + 10 AS SIGNED ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT - 5 / - - CAST ( + 10 AS INTEGER ) + COUNT ( * )
----
1

query I rowsort
SELECT 34 + 39 - + 25
----
48

query I rowsort
SELECT 8 * - 16 * - 90
----
11520

query I rowsort
SELECT 43 + + 46 AS col1
----
89

query II rowsort
SELECT 33 * + 99, 79 + - 44 AS col1
----
3267
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL - 25 + + MIN( ALL + - 12 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL - 25 + + MIN ( ALL + - 12 ) AS col0
----
-37

query I rowsort
SELECT DISTINCT - 52 * COALESCE ( - 68, - + 75 ) AS col1
----
3536

query I rowsort
SELECT ALL 58 + + + 38 col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5006
SELECT 59 + 88 + + MAX( + 24 ) * - CASE 29 WHEN - CAST( NULL AS SIGNED ) * + SUM( 74 ) + - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) THEN NULL WHEN 69 * 31 + + 88 THEN 26 * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT 59 + 88 + + MAX ( + 24 ) * - CASE 29 WHEN - CAST ( NULL AS INTEGER ) * + SUM ( 74 ) + - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) THEN NULL WHEN 69 * 31 + + 88 THEN 26 * - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - ( + 1 ) + + ( 44 ) col1
----
43

query I rowsort
SELECT 49 * - 49
----
-2401

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT MAX( + 70 ) * + - 53
----
-3710

skipif mysql # not compatible
query I rowsort label-5009
SELECT MAX ( + 70 ) * + - 53
----
-3710

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT DISTINCT - SUM( 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT - SUM ( 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT ALL COALESCE ( COUNT( * ), + ( - + 23 ), 79 * 54 ) - NULLIF ( 29, 27 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL COALESCE ( COUNT ( * ), + ( - + 23 ), 79 * 54 ) - NULLIF ( 29, 27 ) AS col0
----
-28

query I rowsort
SELECT 42 * - 49
----
-2058

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT 91 + MAX( DISTINCT 56 )
----
147

skipif mysql # not compatible
query I rowsort label-5013
SELECT 91 + MAX ( DISTINCT 56 )
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-5014
SELECT 34 DIV 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5014
SELECT 34 / 50 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5015
SELECT ALL + + CAST( NULL AS SIGNED ) * - + 64 / + - MAX( DISTINCT + 10 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL + + CAST ( NULL AS INTEGER ) * - + 64 / + - MAX ( DISTINCT + 10 ) AS col2
----
NULL

query I rowsort
SELECT COALESCE ( - 13, ( + - 17 ), 78 ) * - 10 AS col1
----
130

query I rowsort
SELECT - 59 + - 74 AS col1
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT ( COUNT( * ) ) * 20 + 73 + 94 AS col1
----
187

skipif mysql # not compatible
query I rowsort label-5018
SELECT ( COUNT ( * ) ) * 20 + 73 + 94 AS col1
----
187

query I rowsort
SELECT 91 * - ( + 63 ) AS col2
----
-5733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5020
SELECT + 9 + - COUNT( * ) * - - CAST( 59 AS SIGNED ) + + COUNT( * ) * 79 col0
----
29

skipif mysql # not compatible
query I rowsort label-5020
SELECT + 9 + - COUNT ( * ) * - - CAST ( 59 AS INTEGER ) + + COUNT ( * ) * 79 col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT NULLIF ( + - 55, - + 31 * - + COALESCE ( + 87, COUNT( * ) ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-5021
SELECT NULLIF ( + - 55, - + 31 * - + COALESCE ( + 87, COUNT ( * ) ) ) AS col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5022
SELECT ALL - + ( + CASE - 56 WHEN + 21 THEN 96 * 66 WHEN - 37 + + 68 THEN - 74 END ) * NULLIF ( 36 * 16, 21 - + CAST( + 0 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL - + ( + CASE - 56 WHEN + 21 THEN 96 * 66 WHEN - 37 + + 68 THEN - 74 END ) * NULLIF ( 36 * 16, 21 - + CAST ( + 0 AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT + 41 * - - ( + + COUNT( * ) ) * - - 20
----
820

skipif mysql # not compatible
query I rowsort label-5023
SELECT + 41 * - - ( + + COUNT ( * ) ) * - - 20
----
820

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT - - MIN( - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-5024
SELECT - - MIN ( - 32 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5025
SELECT NULLIF ( CAST( NULL AS SIGNED ), 79 ) - - 43 + + + 38 - - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT NULLIF ( CAST ( NULL AS INTEGER ), 79 ) - - 43 + + + 38 - - 16
----
NULL

query II rowsort
SELECT 66 AS col0, 99 AS col1
----
66
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5027
SELECT 43 DIV - COUNT( * ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-5027
SELECT 43 / - COUNT ( * ) AS col1
----
-43

query I rowsort
SELECT ALL NULLIF ( - 75, + 52 ) + - - ( - 93 ) AS col1
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT COUNT( * ) * 85
----
85

skipif mysql # not compatible
query I rowsort label-5029
SELECT COUNT ( * ) * 85
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT ALL MAX( ALL 1 ) * + 49
----
49

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL MAX ( ALL 1 ) * + 49
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5031
SELECT ( - 31 ) DIV + - COALESCE ( COUNT( * ), - 92 * + MAX( DISTINCT - 87 DIV + 59 ) ) + + 16 col0
----
47

skipif mysql # not compatible
query I rowsort label-5031
SELECT ( - 31 ) / + - COALESCE ( COUNT ( * ), - 92 * + MAX ( DISTINCT - 87 / + 59 ) ) + + 16 col0
----
47

query I rowsort
SELECT DISTINCT ( 58 ) + + - 44
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5033
SELECT ( - + 21 ) + + NULLIF ( 4, + - 85 * 69 ) DIV + 40 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5033
SELECT ( - + 21 ) + + NULLIF ( 4, + - 85 * 69 ) / + 40 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-5034
SELECT ALL 30 AS col1, COUNT( * ) + + 96
----
30
97

skipif mysql # not compatible
query II rowsort label-5034
SELECT ALL 30 AS col1, COUNT ( * ) + + 96
----
30
97

query I rowsort
SELECT 33 + - 83 col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT COUNT( * ) + + CASE - 21 WHEN + - 31 THEN 31 ELSE 7 - 32 END * - 96
----
2401

skipif mysql # not compatible
query I rowsort label-5036
SELECT COUNT ( * ) + + CASE - 21 WHEN + - 31 THEN 31 ELSE 7 - 32 END * - 96
----
2401

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5037
SELECT CAST( NULL AS SIGNED ) * + + 41 * - + CASE - + 18 WHEN - - 31 + - 77 * 5 THEN + COUNT( * ) * + COUNT( * ) END * + NULLIF ( 57 + + 10, + 30 + + COUNT( * ) * - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5037
SELECT CAST ( NULL AS INTEGER ) * + + 41 * - + CASE - + 18 WHEN - - 31 + - 77 * 5 THEN + COUNT ( * ) * + COUNT ( * ) END * + NULLIF ( 57 + + 10, + 30 + + COUNT ( * ) * - COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT 84 - ( 6 )
----
78

query I rowsort
SELECT 58 + - ( + 13 ) AS col0
----
45

query I rowsort
SELECT ALL - 95 * - 30 * + 3 * - + 12
----
-102600

query I rowsort
SELECT DISTINCT 28 * 29 AS col1
----
812

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT ALL CASE + ( + COALESCE ( ( 30 ), 85 * 89, - 88 ) ) WHEN COUNT( * ) THEN - 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5042
SELECT ALL CASE + ( + COALESCE ( ( 30 ), 85 * 89, - 88 ) ) WHEN COUNT ( * ) THEN - 73 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5043
SELECT - 77 + + CASE + CAST( NULL AS SIGNED ) WHEN - ( + 16 ) THEN NULL WHEN - ( + COUNT( * ) ) + SUM( DISTINCT - NULLIF ( 29, + 39 ) ) THEN NULL WHEN - CASE WHEN NOT 98 IN ( 47 + 79 / 32 ) THEN NULLIF ( ( + COUNT( * ) ), - 20 ) + + 30 ELSE - 18 * - 92 + COUNT( * ) END THEN 19 + 6 * 40 END - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT - 77 + + CASE + CAST ( NULL AS INTEGER ) WHEN - ( + 16 ) THEN NULL WHEN - ( + COUNT ( * ) ) + SUM ( DISTINCT - NULLIF ( 29, + 39 ) ) THEN NULL WHEN - CASE WHEN NOT 98 IN ( 47 + 79 / 32 ) THEN NULLIF ( ( + COUNT ( * ) ), - 20 ) + + 30 ELSE - 18 * - 92 + COUNT ( * ) END THEN 19 + 6 * 40 END - 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL + COUNT( * ) * + - 89 + + 69 + - 71 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL + COUNT ( * ) * + - 89 + + 69 + - 71 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT - - 28 + - SUM( DISTINCT 26 ) * - + 46
----
1224

skipif mysql # not compatible
query I rowsort label-5045
SELECT - - 28 + - SUM ( DISTINCT 26 ) * - + 46
----
1224

query I rowsort
SELECT ALL 62 * - - ( + 74 ) - - 86
----
4674

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT + + MAX( + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-5047
SELECT + + MAX ( + 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT - 83 * - CASE + 8 WHEN - + 43 THEN + - ( COUNT( * ) ) ELSE - 67 END * 90 + 7 AS col1
----
-500483

skipif mysql # not compatible
query I rowsort label-5048
SELECT - 83 * - CASE + 8 WHEN - + 43 THEN + - ( COUNT ( * ) ) ELSE - 67 END * 90 + 7 AS col1
----
-500483

query I rowsort
SELECT - + 42 * - 80 col0
----
3360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5050
SELECT 79 DIV - - 77 + - MAX( - 87 ) * - + 63
----
-5480

skipif mysql # not compatible
query I rowsort label-5050
SELECT 79 / - - 77 + - MAX ( - 87 ) * - + 63
----
-5480

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT - - CASE - - ( + MAX( DISTINCT + 11 ) ) WHEN - COUNT( * ) - + 99 THEN + 32 WHEN 1 THEN NULL ELSE NULL END + - ( + 50 + + 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT - - CASE - - ( + MAX ( DISTINCT + 11 ) ) WHEN - COUNT ( * ) - + 99 THEN + 32 WHEN 1 THEN NULL ELSE NULL END + - ( + 50 + + 75 )
----
NULL

query I rowsort
SELECT ALL + 82 * - 89 * - + 31 * 0 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5053
SELECT DISTINCT + 71 DIV + SUM( - 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT + 71 / + SUM ( - 50 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT DISTINCT + COUNT( * ) * - 31 * 64
----
-1984

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT + COUNT ( * ) * - 31 * 64
----
-1984

query I rowsort
SELECT - + 16 + + 73 AS col1
----
57

query I rowsort
SELECT + - 35 * + - ( + 39 ) * + + COALESCE ( - 77, - 93 - - 88 ) + 9
----
-105096

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT - COUNT( * ) * + 43 + 97 + - 1 col1
----
53

skipif mysql # not compatible
query I rowsort label-5057
SELECT - COUNT ( * ) * + 43 + 97 + - 1 col1
----
53

query I rowsort
SELECT ALL + 52 * - - 6 * - 69 + + 38 AS col2
----
-21490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5059
SELECT + CASE - + 17 WHEN 75 * + 34 THEN - MAX( 1 ) / + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5059
SELECT + CASE - + 17 WHEN 75 * + 34 THEN - MAX ( 1 ) / + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT ( + ( + + 65 ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT ALL - 98 + + 43 * + - COUNT( 36 ) AS col0
----
-141

skipif mysql # not compatible
query I rowsort label-5061
SELECT ALL - 98 + + 43 * + - COUNT ( 36 ) AS col0
----
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-5062
SELECT DISTINCT 68 AS col2, + 77 * - - 11 + - COUNT( * ) * - - 24
----
68
823

skipif mysql # not compatible
query II rowsort label-5062
SELECT DISTINCT 68 AS col2, + 77 * - - 11 + - COUNT ( * ) * - - 24
----
68
823

onlyif mysql # DIV for integer division: 
query I rowsort label-5063
SELECT + 65 + - 3 DIV + 53
----
65

skipif mysql # not compatible
query I rowsort label-5063
SELECT + 65 + - 3 / + 53
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5064
SELECT + NULLIF ( - ( - CAST( NULL AS SIGNED ) ), + 87 * COUNT( * ) ) * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5064
SELECT + NULLIF ( - ( - CAST ( NULL AS INTEGER ) ), + 87 * COUNT ( * ) ) * - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT - MAX( - - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-5065
SELECT - MAX ( - - 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT + NULLIF ( - 85, - 16 ) + COUNT( - 89 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-5066
SELECT + NULLIF ( - 85, - 16 ) + COUNT ( - 89 ) AS col0
----
-84

query I rowsort
SELECT - NULLIF ( + 99, + + 93 ) AS col0
----
-99

query II rowsort
SELECT DISTINCT 36 AS col2, 39 + - ( + - 98 ) AS col2
----
36
137

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT ALL 16 - + ( - 14 ) - + CASE WHEN NOT 51 IS NOT NULL THEN COUNT( * ) END - + COALESCE ( + 42, 3, ( + 84 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL 16 - + ( - 14 ) - + CASE WHEN NOT 51 IS NOT NULL THEN COUNT ( * ) END - + COALESCE ( + 42, 3, ( + 84 ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 28 * + + 54 AS col0
----
1512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5071
SELECT ALL + COUNT( * ) DIV - + 75
----
0

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL + COUNT ( * ) / - + 75
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5072
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, - 90 * 0
----
NULL
0

skipif mysql # not compatible
query II rowsort labe