sqllogictest
Artifact Content
Not logged in

Artifact 9c490d3aaeb567230691582f39c1e8d8a6d6fcb9:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - ( + 81 ) AS col0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1
SELECT - COUNT( * ) * + - ( + 52 ) DIV + 77 + - 99 + ( - - NULLIF ( 86, + + COALESCE ( + - 84, - 91, + 76, - 48 ) ) ) - 79 * COALESCE ( MAX( DISTINCT 26 ) + 36, - COUNT( * ), 36 * 86 ) + 10 AS col2
----
-4901

skipif mysql # not compatible
query I rowsort label-1
SELECT - COUNT ( * ) * + - ( + 52 ) / + 77 + - 99 + ( - - NULLIF ( 86, + + COALESCE ( + - 84, - 91, + 76, - 48 ) ) ) - 79 * COALESCE ( MAX ( DISTINCT 26 ) + 36, - COUNT ( * ), 36 * 86 ) + 10 AS col2
----
-4901

query I rowsort
SELECT 32 - - 91
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3
SELECT CAST( NULL AS SIGNED ) AS col1, 28 * - 22
----
NULL
-616

skipif mysql # not compatible
query II rowsort label-3
SELECT CAST ( NULL AS INTEGER ) AS col1, 28 * - 22
----
NULL
-616

query I rowsort
SELECT - 46 * + 31 * + 48 + - 2 col1
----
-68450

query I rowsort
SELECT - 38 + + ( + + 37 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6
SELECT ALL 55 AS col2, 55 * + ( + COUNT( * ) ) AS col2
----
55
55

skipif mysql # not compatible
query II rowsort label-6
SELECT ALL 55 AS col2, 55 * + ( + COUNT ( * ) ) AS col2
----
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT ALL + COUNT( DISTINCT 18 ) * - + 88 * - 61 + - 62
----
5306

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL + COUNT ( DISTINCT 18 ) * - + 88 * - 61 + - 62
----
5306

query I rowsort
SELECT 32 + + - 9 + 66 + 38
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9
SELECT SUM( ALL + + CAST( ( - 53 ) AS SIGNED ) ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-9
SELECT SUM ( ALL + + CAST ( ( - 53 ) AS INTEGER ) ) AS col2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-10
SELECT DISTINCT 92 - - 66 + + + ( + NULLIF ( + - COUNT( * ), - ( + 57 ) - + 29 ) ) + + CAST( NULL AS SIGNED ) - - + 38 - 59 + - - 73 + + 1 - + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-10
SELECT DISTINCT 92 - - 66 + + + ( + NULLIF ( + - COUNT ( * ), - ( + 57 ) - + 29 ) ) + + CAST ( NULL AS INTEGER ) - - + 38 - 59 + - - 73 + + 1 - + 62
----
NULL

query I rowsort
SELECT + 31 * - 70 * + + 3 col2
----
-6510

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT - - COALESCE ( MAX( ALL + - 15 ), 78 )
----
-15

skipif mysql # not compatible
query I rowsort label-12
SELECT - - COALESCE ( MAX ( ALL + - 15 ), 78 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-13
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, + 79 AS col2
----
NULL
79

skipif mysql # not compatible
query II rowsort label-13
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, + 79 AS col2
----
NULL
79

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT 47 + 91 * + 46 * + ( + 36 ) * + COUNT( * ) * - 18 * + COALESCE ( + - 40, ( - 22 ) ) + - 25 AS col0
----
108501142

skipif mysql # not compatible
query I rowsort label-16
SELECT 47 + 91 * + 46 * + ( + 36 ) * + COUNT ( * ) * - 18 * + COALESCE ( + - 40, ( - 22 ) ) + - 25 AS col0
----
108501142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-17
SELECT ALL ( - 89 ) * NULLIF ( - 63, 77 + + 81 ) DIV + COUNT( * ) AS col1
----
5607

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL ( - 89 ) * NULLIF ( - 63, 77 + + 81 ) / + COUNT ( * ) AS col1
----
5607

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

skipif mysql # not compatible
query I rowsort label-18
SELECT + MAX ( - + 25 )
----
-25

query II rowsort
SELECT - 1 AS col0, + 14
----
-1
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-20
SELECT DISTINCT 43 * CAST( NULL AS SIGNED ) * - - ( 51 ) AS col0, ( 4 ) AS col1
----
NULL
4

skipif mysql # not compatible
query II rowsort label-20
SELECT DISTINCT 43 * CAST ( NULL AS INTEGER ) * - - ( 51 ) AS col0, ( 4 ) AS col1
----
NULL
4

onlyif mysql # DIV for integer division: 
query I rowsort label-21
SELECT DISTINCT 55 + + + 48 + - 53 * + 68 + + 92 DIV - + NULLIF ( - 57, - + 93 ) AS col0
----
-3500

skipif mysql # not compatible
query I rowsort label-21
SELECT DISTINCT 55 + + + 48 + - 53 * + 68 + + 92 / - + NULLIF ( - 57, - + 93 ) AS col0
----
-3500

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-22
SELECT ALL 14 * + 14 AS col0, 47 DIV + 59 + SUM( DISTINCT - 66 )
----
196
-66

skipif mysql # not compatible
query II rowsort label-22
SELECT ALL 14 * + 14 AS col0, 47 / + 59 + SUM ( DISTINCT - 66 )
----
196
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT DISTINCT + 56 + - ( 30 ) + + + COUNT( * ) * - COUNT( * ) + + 38
----
63

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT + 56 + - ( 30 ) + + + COUNT ( * ) * - COUNT ( * ) + + 38
----
63

query I rowsort
SELECT DISTINCT 7 * + ( - 8 ) col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT MIN( ALL + 44 ) + + 94
----
138

skipif mysql # not compatible
query I rowsort label-25
SELECT MIN ( ALL + 44 ) + + 94
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-26
SELECT DISTINCT + SUM( 69 ) + - SUM( - + 94 ) DIV - 33 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-26
SELECT DISTINCT + SUM ( 69 ) + - SUM ( - + 94 ) / - 33 AS col0
----
67

query II rowsort
SELECT ALL - 39 + + 8, 6 * + + 72 + + - 8 - 10 AS col1
----
-31
414

query I rowsort
SELECT ALL 6 + + + 21
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT + 51 * + - 43 - - + 39 * + - MAX( ALL + - 40 ) + + 45
----
-588

skipif mysql # not compatible
query I rowsort label-29
SELECT + 51 * + - 43 - - + 39 * + - MAX ( ALL + - 40 ) + + 45
----
-588

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

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

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

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT 41 + - COUNT ( * ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT DISTINCT + COALESCE ( 15, ( + MAX( ALL - 85 ) ) * - - 56 + + 93 ) * + 50 col2
----
750

skipif mysql # not compatible
query I rowsort label-32
SELECT DISTINCT + COALESCE ( 15, ( + MAX ( ALL - 85 ) ) * - - 56 + + 93 ) * + 50 col2
----
750

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT ALL SUM( ALL + 68 ) + - 0 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL SUM ( ALL + 68 ) + - 0 AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-34
SELECT - - MAX( + 89 ) * - + 61 - + 79 / ( + - CAST( NULL AS SIGNED ) ) * COALESCE ( - 58, - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-34
SELECT - - MAX ( + 89 ) * - + 61 - + 79 / ( + - CAST ( NULL AS INTEGER ) ) * COALESCE ( - 58, - COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT 77 * + 60 AS col0
----
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT ALL - 83 * + COUNT( ALL + 93 )
----
-83

skipif mysql # not compatible
query I rowsort label-36
SELECT ALL - 83 * + COUNT ( ALL + 93 )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-37
SELECT ALL + + 35 DIV + + 56 + - + 3 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL + + 35 / + + 56 + - + 3 AS col0
----
-3

query I rowsort
SELECT 39 * + ( + - 19 ) * - 3 + - 47
----
2176

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT DISTINCT - 70 * - + SUM( ALL - + ( + - ( 99 ) ) ) AS col2
----
6930

skipif mysql # not compatible
query I rowsort label-39
SELECT DISTINCT - 70 * - + SUM ( ALL - + ( + - ( 99 ) ) ) AS col2
----
6930

query I rowsort
SELECT ALL 41 * ( 31 ) AS col1
----
1271

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

query I rowsort
SELECT - 29 * + 88 - - 52 AS col1
----
-2500

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-43
SELECT ALL + CAST( + - 8 AS SIGNED ) * + ( - 63 ), + 55 AS col2
----
504
55

skipif mysql # not compatible
query II rowsort label-43
SELECT ALL + CAST ( + - 8 AS INTEGER ) * + ( - 63 ), + 55 AS col2
----
504
55

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

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

query I rowsort
SELECT ALL + - 30 * 40 * 40
----
-48000

onlyif mysql # DIV for integer division: 
query I rowsort label-46
SELECT 72 + - + 99 DIV + 77 + 99
----
170

skipif mysql # not compatible
query I rowsort label-46
SELECT 72 + - + 99 / + 77 + 99
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT COUNT( * ) - 96 * + 44
----
-4223

skipif mysql # not compatible
query I rowsort label-47
SELECT COUNT ( * ) - 96 * + 44
----
-4223

query I rowsort
SELECT + COALESCE ( + 67, - 17 * 44 + - 14 ) + - 63 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-49
SELECT ALL + 15 * + + CAST( NULL AS SIGNED ) * - 19 * - 68 * 19, 96 * - NULLIF ( MIN( ALL - 81 ), 99 ) AS col1
----
NULL
7776

skipif mysql # not compatible
query II rowsort label-49
SELECT ALL + 15 * + + CAST ( NULL AS INTEGER ) * - 19 * - 68 * 19, 96 * - NULLIF ( MIN ( ALL - 81 ), 99 ) AS col1
----
NULL
7776

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT ALL SUM( 65 ) + 37
----
102

skipif mysql # not compatible
query I rowsort label-50
SELECT ALL SUM ( 65 ) + 37
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT - COUNT( 67 )
----
-1

skipif mysql # not compatible
query I rowsort label-51
SELECT - COUNT ( 67 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-52
SELECT SUM( ALL - 82 ) - - ( COUNT( * ) ) DIV + 70 + + 46 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-52
SELECT SUM ( ALL - 82 ) - - ( COUNT ( * ) ) / + 70 + + 46 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-53
SELECT MIN( - + 79 ) + - COUNT( + 12 ) * + 42 * ( - ( - 62 ) ) col1, - 54 AS col0
----
-2683
-54

skipif mysql # not compatible
query II rowsort label-53
SELECT MIN ( - + 79 ) + - COUNT ( + 12 ) * + 42 * ( - ( - 62 ) ) col1, - 54 AS col0
----
-2683
-54

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

skipif mysql # not compatible
query I rowsort label-54
SELECT CAST ( NULL AS INTEGER ) - + MIN ( ALL + + 69 ) + + + 93 * + 75 * - 85 * - + 53
----
NULL

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

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

query I rowsort
SELECT ALL 36 + + 60 col1
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT ALL + NULLIF ( + + 22, ( - 50 ) * + 99 * - ( - 70 ) * + + COUNT( * ) + 55 / + - ( + 49 ) - - 45 + - + 66 * + 37 * + - 19 ) col1
----
22

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL + NULLIF ( + + 22, ( - 50 ) * + 99 * - ( - 70 ) * + + COUNT ( * ) + 55 / + - ( + 49 ) - - 45 + - + 66 * + 37 * + - 19 ) col1
----
22

query I rowsort
SELECT DISTINCT 23 * 50 + - 19 * - 93 AS col2
----
2917

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT ALL COUNT( DISTINCT + 82 ) * - COUNT( * ) * 70 col1
----
-70

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL COUNT ( DISTINCT + 82 ) * - COUNT ( * ) * 70 col1
----
-70

query I rowsort
SELECT DISTINCT 59 * + 54
----
3186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-62
SELECT 80 * - CAST( - COUNT( * ) AS SIGNED ) + - 59 + - ( + 15 ) col0
----
6

skipif mysql # not compatible
query I rowsort label-62
SELECT 80 * - CAST ( - COUNT ( * ) AS INTEGER ) + - 59 + - ( + 15 ) col0
----
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT ALL COUNT( + + 9 ) * - 81 * 78 AS col1
----
-6318

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL COUNT ( + + 9 ) * - 81 * 78 AS col1
----
-6318

query I rowsort
SELECT + ( 52 ) * + - 91 * 68 * 69 AS col2
----
-22202544

query I rowsort
SELECT + 76 + - 74
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-67
SELECT - 16 * - MAX( - 97 ) + - + COALESCE ( 41, - + 56 ) * + - 9 * - NULLIF ( CAST( NULL AS SIGNED ), - + CAST( NULL AS SIGNED ) ) * + ( - - NULLIF ( - - ( ( - + ( - 97 ) ) ), + 75 - 70 ) ) + 72 * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-67
SELECT - 16 * - MAX ( - 97 ) + - + COALESCE ( 41, - + 56 ) * + - 9 * - NULLIF ( CAST ( NULL AS INTEGER ), - + CAST ( NULL AS INTEGER ) ) * + ( - - NULLIF ( - - ( ( - + ( - 97 ) ) ), + 75 - 70 ) ) + 72 * - 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-68
SELECT ALL - - 52 * + - 79 * 57 - - CAST( NULL AS SIGNED ) / - - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL - - 52 * + - 79 * 57 - - CAST ( NULL AS INTEGER ) / - - 31 AS col2
----
NULL

query II rowsort
SELECT ALL + + 20, 6 AS col1
----
20
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-70
SELECT DISTINCT + CASE - 45 WHEN COALESCE ( 12, + 23 + - + 1 ) / + CAST( - + 73 AS SIGNED ) + - - 37 THEN NULL WHEN - ( 93 ) THEN - ( - 89 ) * - CAST( NULL AS SIGNED ) + AVG ( ALL 62 ) * - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT + CASE - 45 WHEN COALESCE ( 12, + 23 + - + 1 ) / + CAST ( - + 73 AS INTEGER ) + - - 37 THEN NULL WHEN - ( 93 ) THEN - ( - 89 ) * - CAST ( NULL AS INTEGER ) + AVG ( ALL 62 ) * - COUNT ( * ) ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-72
SELECT DISTINCT + 41 * - - 65 - 57, - COUNT( * ) * 54 AS col2
----
2608
-54

skipif mysql # not compatible
query II rowsort label-72
SELECT DISTINCT + 41 * - - 65 - 57, - COUNT ( * ) * 54 AS col2
----
2608
-54

query I rowsort
SELECT DISTINCT - ( + + 15 ) * + + 77 + - 72
----
-1227

query I rowsort
SELECT + NULLIF ( - - NULLIF ( 50, + 25 ), - - 81 ) - + ( - 61 ) + + 43 AS col0
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-75
SELECT - 13 DIV ( 52 )
----
0

skipif mysql # not compatible
query I rowsort label-75
SELECT - 13 / ( 52 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT 86 * - 17 + 66 + ( COUNT( * ) ) AS col0
----
-1395

skipif mysql # not compatible
query I rowsort label-76
SELECT 86 * - 17 + 66 + ( COUNT ( * ) ) AS col0
----
-1395

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

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

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

skipif mysql # not compatible
query I rowsort label-78
SELECT - + COUNT ( * ) + + - 72 + - ( + + 19 ) AS col1
----
-92

query I rowsort
SELECT ALL NULLIF ( - 4, 20 )
----
-4

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

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

query I rowsort
SELECT ALL - 36 + + 78 - + 30 AS col0
----
12

query I rowsort
SELECT DISTINCT - 78 + - + 11 + - 28 * CASE - - 88 WHEN + 24 THEN NULL WHEN - 12 THEN NULL ELSE - CASE WHEN NOT NULL <> NULL THEN - 71 END * + AVG ( ALL + - 52 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-83
SELECT ALL + - 28 + - - MAX( DISTINCT - + 20 ) * + + CASE - - 24 WHEN 24 THEN - + CAST( 2 AS SIGNED ) WHEN - 48 + + 43 THEN NULL END * + CASE - 30 WHEN - 62 THEN - 91 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL + - 28 + - - MAX ( DISTINCT - + 20 ) * + + CASE - - 24 WHEN 24 THEN - + CAST ( 2 AS INTEGER ) WHEN - 48 + + 43 THEN NULL END * + CASE - 30 WHEN - 62 THEN - 91 END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-85
SELECT DISTINCT + COUNT( * ) + COUNT( DISTINCT + 73 ) DIV + + 86
----
1

skipif mysql # not compatible
query I rowsort label-85
SELECT DISTINCT + COUNT ( * ) + COUNT ( DISTINCT + 73 ) / + + 86
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-86
SELECT ALL - + COUNT( * ) + 73 * - - CAST( NULL AS SIGNED ) * + - SUM( DISTINCT - 50 ) * - - 89 + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL - + COUNT ( * ) + 73 * - - CAST ( NULL AS INTEGER ) * + - SUM ( DISTINCT - 50 ) * - - 89 + - 40
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 50, + - 88 * + - 34 ) AS col0
----
50

query I rowsort
SELECT ALL + 11 + 36 - - 47 col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT - CASE - - 77 WHEN - 44 + - AVG ( ALL - 56 ) / 76 + - - 68 * + + COUNT( * ) THEN 80 + - + 80 * + + 84 + - 35 END * + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-89
SELECT - CASE - - 77 WHEN - 44 + - AVG ( ALL - 56 ) / 76 + - - 68 * + + COUNT ( * ) THEN 80 + - + 80 * + + 84 + - 35 END * + + 52
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-90
SELECT - CAST( - - AVG ( 88 ) AS SIGNED ) + - + ( - 9 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-90
SELECT - CAST ( - - AVG ( 88 ) AS INTEGER ) + - + ( - 9 ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT + 55 + - - 21 * ( - 69 ) + - + COUNT( * )
----
-1395

skipif mysql # not compatible
query I rowsort label-91
SELECT + 55 + - - 21 * ( - 69 ) + - + COUNT ( * )
----
-1395

onlyif mysql # DIV for integer division: 
query I rowsort label-92
SELECT ALL - 39 + 69 DIV 89 + + 19 + - 67 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL - 39 + 69 / 89 + + 19 + - 67 AS col1
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-93
SELECT 20, 11 DIV - COUNT( * ) col0
----
20
-11

skipif mysql # not compatible
query II rowsort label-93
SELECT 20, 11 / - COUNT ( * ) col0
----
20
-11

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

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

query I rowsort
SELECT ALL NULLIF ( + 65, + 37 * - 49 * + 61 )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-96
SELECT DISTINCT + 94 + 1 + 54 DIV + + 90 + + - 23 * + 33 * + 82 AS col2
----
-62143

skipif mysql # not compatible
query I rowsort label-96
SELECT DISTINCT + 94 + 1 + 54 / + + 90 + + - 23 * + 33 * + 82 AS col2
----
-62143

query I rowsort
SELECT ALL NULLIF ( - 38, + - 10 ) AS col1
----
-38

query I rowsort
SELECT - 95 * + 64 AS col2
----
-6080

query I rowsort
SELECT ALL - 76 - 69
----
-145

query I rowsort
SELECT DISTINCT ( - 20 ) AS col2
----
-20

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-102
SELECT ALL + 59 AS col1, MIN( DISTINCT + 68 ) * + MIN( - + NULLIF ( + + 16, 46 / CAST( - 33 AS SIGNED ) ) ) * - - COUNT( * ) AS col2
----
59
-1088

skipif mysql # not compatible
query II rowsort label-102
SELECT ALL + 59 AS col1, MIN ( DISTINCT + 68 ) * + MIN ( - + NULLIF ( + + 16, 46 / CAST ( - 33 AS INTEGER ) ) ) * - - COUNT ( * ) AS col2
----
59
-1088

onlyif mysql # aggregate syntax: 
query II rowsort label-103
SELECT + 65 * + + ( - ( + COUNT( * ) ) ) AS col2, - MIN( ALL 49 ) + + 32 + CASE - 70 WHEN - ( 77 ) * 54 + 58 THEN - 75 * - CASE - - 80 WHEN 24 + + ( - 23 ) * + 93 THEN + 6 ELSE 94 + CASE 89 WHEN 59 THEN NULL WHEN - 67 THEN 50 * 65 - 30 END END + ( COUNT( * ) ) - 41 / MIN( ALL 76 + 25 * + 37 ) END * 29 AS col0
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-103
SELECT + 65 * + + ( - ( + COUNT ( * ) ) ) AS col2, - MIN ( ALL 49 ) + + 32 + CASE - 70 WHEN - ( 77 ) * 54 + 58 THEN - 75 * - CASE - - 80 WHEN 24 + + ( - 23 ) * + 93 THEN + 6 ELSE 94 + CASE 89 WHEN 59 THEN NULL WHEN - 67 THEN 50 * 65 - 30 END END + ( COUNT ( * ) ) - 41 / MIN ( ALL 76 + 25 * + 37 ) END * 29 AS col0
----
-65
NULL

query I rowsort
SELECT - 35 + 7
----
-28

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

onlyif mysql # DIV for integer division: 
query I rowsort label-106
SELECT + 29 DIV + + 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-106
SELECT + 29 / + + 82 AS col0
----
0

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

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

query I rowsort
SELECT ALL 31 * + 58 * 47 + + 28 AS col2
----
84534

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT ALL + 75 * - + 83 * + + ( COUNT( * ) ) * - + 25 + - + 5 + - 72 AS col2
----
155548

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL + 75 * - + 83 * + + ( COUNT ( * ) ) * - + 25 + - + 5 + - 72 AS col2
----
155548

query I rowsort
SELECT + + 6 * + + 76 AS col0
----
456

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

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

query I rowsort
SELECT + - ( - 94 ) col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-113
SELECT DISTINCT + - CASE - + 86 WHEN - NULLIF ( - 75, - 4 + - COUNT( * ) * 26 * + 43 / - COUNT( * ) + - + 26 - - 82 ) THEN - + ( 49 ) * 6 END AS col0, + SUM( ALL - + 60 ) * + 25 + 82 * CAST( 65 * + 26 + - MAX( ALL 24 ) AS SIGNED ) AS col1
----
NULL
135112

skipif mysql # not compatible
query II rowsort label-113
SELECT DISTINCT + - CASE - + 86 WHEN - NULLIF ( - 75, - 4 + - COUNT ( * ) * 26 * + 43 / - COUNT ( * ) + - + 26 - - 82 ) THEN - + ( 49 ) * 6 END AS col0, + SUM ( ALL - + 60 ) * + 25 + 82 * CAST ( 65 * + 26 + - MAX ( ALL 24 ) AS INTEGER ) AS col1
----
NULL
135112

query I rowsort
SELECT + - 45 * - 61
----
2745

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-115
SELECT - 2 AS col2, + SUM( ( + - CAST( NULL AS DECIMAL ) ) ) * 38 AS col0
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-115
SELECT - 2 AS col2, + SUM ( ( + - CAST ( NULL AS REAL ) ) ) * 38 AS col0
----
-2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT DISTINCT - COUNT( * ) * - + 72 + - 75 * - - COUNT( * ) - - 25 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-116
SELECT DISTINCT - COUNT ( * ) * - + 72 + - 75 * - - COUNT ( * ) - - 25 AS col2
----
22

query II rowsort
SELECT ALL + 45, 62 AS col2
----
45
62

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT DISTINCT 63 * + 67 * 2 * 21 + ( + + 36 ) * - + MIN( - 34 ) AS col2
----
178506

skipif mysql # not compatible
query I rowsort label-118
SELECT DISTINCT 63 * + 67 * 2 * 21 + ( + + 36 ) * - + MIN ( - 34 ) AS col2
----
178506

onlyif mysql # DIV for integer division: 
query I rowsort label-119
SELECT DISTINCT + 57 DIV - 25 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-119
SELECT DISTINCT + 57 / - 25 AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-120
SELECT ALL ( - 64 ) * + 11 * - + 28 + - + COALESCE ( + + 30, + COUNT( * ) DIV + 64, - 23 )
----
19682

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL ( - 64 ) * + 11 * - + 28 + - + COALESCE ( + + 30, + COUNT ( * ) / + 64, - 23 )
----
19682

query I rowsort
SELECT ALL + ( + 81 ) * 50 + - ( 79 ) + + 41 * + 15 col2
----
4586

query I rowsort
SELECT + + 19 + - - 41 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT - + 13 * + + COUNT( * ) * - + 91 + 6 AS col2
----
1189

skipif mysql # not compatible
query I rowsort label-123
SELECT - + 13 * + + COUNT ( * ) * - + 91 + 6 AS col2
----
1189

query I rowsort
SELECT ( + 3 ) + - 21 col0
----
-18

query II rowsort
SELECT ALL + 7 + ( 11 ) AS col0, - 21 AS col2
----
18
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT MAX( + 89 ) + + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-126
SELECT MAX ( + 89 ) + + COUNT ( * )
----
90

query I rowsort
SELECT DISTINCT 90 + 30 + - 86
----
34

query I rowsort
SELECT DISTINCT 66 - - 9 * 46
----
480

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-129
SELECT DISTINCT - COALESCE ( + 12, + 85 * - 15 * - - 77 + + - 42 * - + 5 ) - - NULLIF ( - 88, + CAST( - COUNT( * ) AS DECIMAL ) )
----
-100

skipif mysql # not compatible
query I rowsort label-129
SELECT DISTINCT - COALESCE ( + 12, + 85 * - 15 * - - 77 + + - 42 * - + 5 ) - - NULLIF ( - 88, + CAST ( - COUNT ( * ) AS REAL ) )
----
-100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-130
SELECT 4 + AVG ( CAST( NULL AS DECIMAL ) ) / - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-130
SELECT 4 + AVG ( CAST ( NULL AS REAL ) ) / - 82
----
NULL

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

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL - 7 / - - 80 / + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT 85 + + - 40 * + + COALESCE ( 30, + 74, + COUNT( * ), NULLIF ( - 76, - 67 ) )
----
-1115

skipif mysql # not compatible
query I rowsort label-132
SELECT 85 + + - 40 * + + COALESCE ( 30, + 74, + COUNT ( * ), NULLIF ( - 76, - 67 ) )
----
-1115

query I rowsort
SELECT 20 * - 5
----
-100

query I rowsort
SELECT 23 + - 52 AS col0
----
-29

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

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

query I rowsort
SELECT 94 + ( 3 ) + - 72 * - 34 / + 5 * + - NULLIF ( + - 86, - 3 ) - + 35 * ( 0 ) + + - CASE - + COALESCE ( + 65, + NULLIF ( + 9, + 25 ) ) WHEN 69 THEN 43 * ( 99 ) WHEN + 35 THEN NULL END + + 33 * - 36 AS col2
----
NULL

query II rowsort
SELECT 30 - - 42 AS col1, + 30 AS col0
----
72
30

query I rowsort
SELECT 39 + + - 84 * 54 + + 66 AS col1
----
-4431

query I rowsort
SELECT 10 * - - 91 AS col1
----
910

query I rowsort
SELECT DISTINCT - NULLIF ( + 96, + + 42 ) * + - 19 + + 16 AS col1
----
1840

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-141
SELECT 29 + 99 AS col1, - 62 - CAST( CAST( + 17 AS DECIMAL ) AS SIGNED ) AS col1
----
128
-79

skipif mysql # not compatible
query II rowsort label-141
SELECT 29 + 99 AS col1, - 62 - CAST ( CAST ( + 17 AS REAL ) AS INTEGER ) AS col1
----
128
-79

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

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL - 45 * COUNT ( + + 84 ) AS col1
----
-45

query I rowsort
SELECT DISTINCT - + 74 * 88 AS col0
----
-6512

onlyif mysql # aggregate syntax: 
query II rowsort label-144
SELECT + - SUM( 84 ) AS col2, 96 * + - ( COALESCE ( + ( + ( - - 19 ) ), - 68 * + + COALESCE ( 26, + 35 ) ) ) * 97 * 83 col0
----
-84
-14685024

skipif mysql # not compatible
query II rowsort label-144
SELECT + - SUM ( 84 ) AS col2, 96 * + - ( COALESCE ( + ( + ( - - 19 ) ), - 68 * + + COALESCE ( 26, + 35 ) ) ) * 97 * 83 col0
----
-84
-14685024

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT DISTINCT - MIN( - 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-145
SELECT DISTINCT - MIN ( - 43 ) AS col0
----
43

query I rowsort
SELECT + 25 * + 91 + - + 84 + + 90 * - 52 col0
----
-2489

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-147
SELECT DISTINCT + COUNT( * ) + + - 33 AS col0, 70 * + + 83 / + 38 + - - CAST( NULL AS SIGNED ) AS col0
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-147
SELECT DISTINCT + COUNT ( * ) + + - 33 AS col0, 70 * + + 83 / + 38 + - - CAST ( NULL AS INTEGER ) AS col0
----
-32
NULL

query I rowsort
SELECT ALL ( - 95 ) + ( + 51 ) * + 68 - 42
----
3331

onlyif mysql # DIV for integer division: 
query I rowsort label-149
SELECT DISTINCT - 61 + 23 DIV ( + - 18 )
----
-62

skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT - 61 + 23 / ( + - 18 )
----
-62

query I rowsort
SELECT ALL + NULLIF ( + + 86, - - 18 / 53 ) + - - 85 + + 28 - - 5
----
204

query I rowsort
SELECT + 23 * - 0
----
0

query I rowsort
SELECT ( 47 ) * - ( + 63 ) AS col0
----
-2961

query II rowsort
SELECT ALL - + ( 95 ), + 38 AS col1
----
-95
38

query II rowsort
SELECT 67 AS col2, - 67 + - 79 + 33 AS col0
----
67
-113

query I rowsort
SELECT 95 * - CASE 82 WHEN - 83 * - - 85 * - + 67 THEN 48 / - 92 / - 53 * - 47 WHEN - 40 + + 96 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 25 - - 54 * 77 - NULLIF ( + + ( + 94 ), + - 75 * - 35 + + + 3 )
----
4089

query I rowsort
SELECT DISTINCT 31 * - 52
----
-1612

query II rowsort
SELECT ALL 92 AS col2, - 58 + 50 AS col1
----
92
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT ALL - COALESCE ( - 85, + 41 ) * + ( MIN( - ( + 27 ) ) )
----
-2295

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL - COALESCE ( - 85, + 41 ) * + ( MIN ( - ( + 27 ) ) )
----
-2295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-160
SELECT DISTINCT COALESCE ( - ( + 25 ), - + 98, + CASE - 60 WHEN 56 * - - 16 THEN - 39 END, - ( + CASE CASE + - 1 WHEN 19 THEN - - 63 + 11 + - MIN( + NULLIF ( + NULLIF ( 44, 24 - - CAST( NULL AS SIGNED ) * 64 ), 74 * - 93 ) ) ELSE NULL END WHEN 69 + + 33 THEN NULL ELSE 38 END ) ) - 39 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-160
SELECT DISTINCT COALESCE ( - ( + 25 ), - + 98, + CASE - 60 WHEN 56 * - - 16 THEN - 39 END, - ( + CASE CASE + - 1 WHEN 19 THEN - - 63 + 11 + - MIN ( + NULLIF ( + NULLIF ( 44, 24 - - CAST ( NULL AS INTEGER ) * 64 ), 74 * - 93 ) ) ELSE NULL END WHEN 69 + + 33 THEN NULL ELSE 38 END ) ) - 39 AS col2
----
-64

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-162
SELECT - 1 AS col0, COUNT( * ) + 91
----
-1
92

skipif mysql # not compatible
query II rowsort label-162
SELECT - 1 AS col0, COUNT ( * ) + 91
----
-1
92

query I rowsort
SELECT 33 * 51 AS col0
----
1683

query I rowsort
SELECT 39 + + 18
----
57

query II rowsort
SELECT DISTINCT 60 AS col2, 40
----
60
40

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT DISTINCT MAX( ALL - - 75 ) * + 35 + - MAX( + 77 )
----
2548

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT MAX ( ALL - - 75 ) * + 35 + - MAX ( + 77 )
----
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT - MAX( 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-167
SELECT - MAX ( 11 ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-168
SELECT ALL 68 AS col2, COUNT( * ) - - 63
----
68
64

skipif mysql # not compatible
query II rowsort label-168
SELECT ALL 68 AS col2, COUNT ( * ) - - 63
----
68
64

onlyif mysql # DIV for integer division: 
query I rowsort label-169
SELECT ALL + 77 DIV + 9
----
8

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL + 77 / + 9
----
8

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

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

query I rowsort
SELECT + 83 - ( - 64 )
----
147

query II rowsort
SELECT + 7 AS col2, 78 + 97 AS col1
----
7
175

query I rowsort
SELECT - 5 * + 9 col0
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-174
SELECT + 8 AS col0, - COALESCE ( COUNT( * ), - 61 * - 53 DIV - 53 ) AS col2
----
8
-1

skipif mysql # not compatible
query II rowsort label-174
SELECT + 8 AS col0, - COALESCE ( COUNT ( * ), - 61 * - 53 / - 53 ) AS col2
----
8
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT DISTINCT - 51 * COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT - 51 * COUNT ( * )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-176
SELECT DISTINCT CASE MAX( DISTINCT 67 ) WHEN 84 THEN 59 END * CAST( - 99 AS SIGNED ) + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT CASE MAX ( DISTINCT 67 ) WHEN 84 THEN 59 END * CAST ( - 99 AS INTEGER ) + - 86
----
NULL

query I rowsort
SELECT ALL - ( - + 0 ) col2
----
0

query I rowsort
SELECT ALL + 78 * + - NULLIF ( - 48, 6 ) + 58 + 86
----
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT + 26 * NULLIF ( - 40, - - NULLIF ( - + 36, + + SUM( DISTINCT 38 ) ) ) - 37 col0
----
-1077

skipif mysql # not compatible
query I rowsort label-179
SELECT + 26 * NULLIF ( - 40, - - NULLIF ( - + 36, + + SUM ( DISTINCT 38 ) ) ) - 37 col0
----
-1077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-180
SELECT + CAST( - 53 AS SIGNED ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-180
SELECT + CAST ( - 53 AS INTEGER ) AS col2
----
-53

query II rowsort
SELECT DISTINCT 92 * - - 10 + - - 68 AS col2, 42 AS col1
----
988
42

query II rowsort
SELECT ALL - + 99 AS col1, 11
----
-99
11

query I rowsort
SELECT + - 84 * 65 + - 94
----
-5554

query I rowsort
SELECT + 95 * - 59
----
-5605

onlyif mysql # DIV for integer division: 
query I rowsort label-185
SELECT DISTINCT + - ( 68 ) DIV 14
----
-4

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT + - ( 68 ) / 14
----
-4

query I rowsort
SELECT DISTINCT + 64 - - 85
----
149

query I rowsort
SELECT ALL 92 - - - 42
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT - - CASE - ( - 94 ) WHEN + 15 * 33 THEN + + 27 ELSE NULL END * + 11 + - - 33 + COUNT( * ) * 31 + - MAX( - 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-188
SELECT - - CASE - ( - 94 ) WHEN + 15 * 33 THEN + + 27 ELSE NULL END * + 11 + - - 33 + COUNT ( * ) * 31 + - MAX ( - 99 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-189
SELECT ALL + 52 DIV - 17
----
-3

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL + 52 / - 17
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT DISTINCT NULLIF ( COUNT( + CASE - - 49 WHEN + 43 THEN + 66 END ), + + 88 + 8 * - CASE - NULLIF ( + + 34, + 66 * 17 ) WHEN + 62 THEN 24 / - 10 * 25 * - COUNT( * ) WHEN 2 THEN NULL WHEN - 70 THEN + 71 + MAX( ALL 24 ) ELSE 31 + 64 END - 54 ) * - 85
----
0

skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT NULLIF ( COUNT ( + CASE - - 49 WHEN + 43 THEN + 66 END ), + + 88 + 8 * - CASE - NULLIF ( + + 34, + 66 * 17 ) WHEN + 62 THEN 24 / - 10 * 25 * - COUNT ( * ) WHEN 2 THEN NULL WHEN - 70 THEN + 71 + MAX ( ALL 24 ) ELSE 31 + 64 END - 54 ) * - 85
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT ALL + COUNT( * ) * + 72 * 39 * + - 11 * + 86
----
-2656368

skipif mysql # not compatible
query I rowsort label-192
SELECT ALL + COUNT ( * ) * + 72 * 39 * + - 11 * + 86
----
-2656368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-193
SELECT - CAST( - 17 AS SIGNED ) + + 24 + MIN( + - 68 ) * + - 58 / + COALESCE ( + 38, + + 40 ) * CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-193
SELECT - CAST ( - 17 AS INTEGER ) + + 24 + MIN ( + - 68 ) * + - 58 / + COALESCE ( + 38, + + 40 ) * CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-194
SELECT + 89 DIV - 6
----
-14

skipif mysql # not compatible
query I rowsort label-194
SELECT + 89 / - 6
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL MIN( DISTINCT - 17 ) * + 65
----
-1105

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL MIN ( DISTINCT - 17 ) * + 65
----
-1105

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT - 36 + + - SUM( ALL + 0 )
----
-36

skipif mysql # not compatible
query I rowsort label-196
SELECT - 36 + + - SUM ( ALL + 0 )
----
-36

query I rowsort
SELECT + 12 + + - 23 + + COALESCE ( 56, - 39 + - 62 ) * 93 * 58 AS col2
----
302053

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT + 30 + - + 19 * + ( - + 68 ) + - + 30 - - 17 + + COALESCE ( - ( ( + SUM( DISTINCT + 16 ) ) ), - - 48, + SUM( ALL - 33 ) ) AS col0
----
1293

skipif mysql # not compatible
query I rowsort label-198
SELECT + 30 + - + 19 * + ( - + 68 ) + - + 30 - - 17 + + COALESCE ( - ( ( + SUM ( DISTINCT + 16 ) ) ), - - 48, + SUM ( ALL - 33 ) ) AS col0
----
1293

query I rowsort
SELECT + 6 + - 43
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-200
SELECT ALL 76 + - 19 - 57 DIV COUNT( * ) AS col0, CASE 50 WHEN + - 98 + - NULLIF ( 30, ( - + CASE 43 WHEN 57 THEN - 55 * 39 * 62 * 13 END ) - - + 56 ) THEN + + 49 WHEN + COUNT( * ) THEN NULL WHEN + 41 + - 45 THEN NULL ELSE NULL END
----
0
NULL

skipif mysql # not compatible
query II rowsort label-200
SELECT ALL 76 + - 19 - 57 / COUNT ( * ) AS col0, CASE 50 WHEN + - 98 + - NULLIF ( 30, ( - + CASE 43 WHEN 57 THEN - 55 * 39 * 62 * 13 END ) - - + 56 ) THEN + + 49 WHEN + COUNT ( * ) THEN NULL WHEN + 41 + - 45 THEN NULL ELSE NULL END
----
0
NULL

query I rowsort
SELECT + 82 + + 48 + - 8 * + 23 AS col0
----
-54

query I rowsort
SELECT ALL 64 + 24 + - 91 AS col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-203
SELECT + NULLIF ( + 9, + CASE + + 17 WHEN - - 54 + 52 THEN NULL WHEN + + 68 THEN NULL WHEN + 47 THEN - CAST( NULL AS SIGNED ) ELSE NULL END * + 74 ) + 62
----
71

skipif mysql # not compatible
query I rowsort label-203
SELECT + NULLIF ( + 9, + CASE + + 17 WHEN - - 54 + 52 THEN NULL WHEN + + 68 THEN NULL WHEN + 47 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END * + 74 ) + 62
----
71

query II rowsort
SELECT + 46 * - + 55, ( - - 64 ) AS col1
----
-2530
64

query I rowsort
SELECT + 50 + 96 AS col0
----
146

query II rowsort
SELECT ALL - 13 * - 12 * - 50 + + 12 AS col1, 18
----
-7788
18

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT - COUNT( ALL - 64 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-207
SELECT - COUNT ( ALL - 64 ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-208
SELECT - 64 + + - ( + COALESCE ( 17, - 71, - 42, 58 + 76 + 22 * - 8 * 50 ) ) + + + CASE + + MIN( + - 19 ) WHEN 74 THEN NULL WHEN 88 THEN + 40 * + - 60 DIV - SUM( - 65 ) + 87 ELSE - MIN( + 88 ) END * - 66 AS col1
----
5727

skipif mysql # not compatible
query I rowsort label-208
SELECT - 64 + + - ( + COALESCE ( 17, - 71, - 42, 58 + 76 + 22 * - 8 * 50 ) ) + + + CASE + + MIN ( + - 19 ) WHEN 74 THEN NULL WHEN 88 THEN + 40 * + - 60 / - SUM ( - 65 ) + 87 ELSE - MIN ( + 88 ) END * - 66 AS col1
----
5727

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT - MIN( ALL + - 6 )
----
6

skipif mysql # not compatible
query I rowsort label-209
SELECT - MIN ( ALL + - 6 )
----
6

query I rowsort
SELECT DISTINCT - 22 + - - 27 + - 29
----
-24

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

query I rowsort
SELECT + - 58 * + + 99
----
-5742

query I rowsort
SELECT ALL + 94 * - 38
----
-3572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-214
SELECT + - 59 * - + 92 + + 80 * + CAST( NULL AS DECIMAL ) - + - 31 + - CAST( + COUNT( * ) AS SIGNED ) * + ( + 70 ) + - - 79 + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-214
SELECT + - 59 * - + 92 + + 80 * + CAST ( NULL AS REAL ) - + - 31 + - CAST ( + COUNT ( * ) AS INTEGER ) * + ( + 70 ) + - - 79 + 40 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-215
SELECT + 69 / - - 14 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-216
SELECT ALL - - 90 * COUNT( ALL 0 ) + - COUNT( * ), COUNT( * ) + + 45 * - 73 AS col0
----
89
-3284

skipif mysql # not compatible
query II rowsort label-216
SELECT ALL - - 90 * COUNT ( ALL 0 ) + - COUNT ( * ), COUNT ( * ) + + 45 * - 73 AS col0
----
89
-3284

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

query II rowsort
SELECT + CASE - 72 WHEN - + 85 THEN 7 END, 1 AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT DISTINCT - 18 * + MAX( - 98 )
----
1764

skipif mysql # not compatible
query I rowsort label-219
SELECT DISTINCT - 18 * + MAX ( - 98 )
----
1764

query I rowsort
SELECT - - 7 * 3 * 77
----
1617

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

query I rowsort
SELECT - 96 + - + 29 + 87 AS col1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-223
SELECT DISTINCT + ( MAX( DISTINCT CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT + ( MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-224
SELECT - CAST ( NULL AS INTEGER ) / + 85 AS col1
----
NULL

query I rowsort
SELECT - 48 * - 85 * 67
----
273360

query I rowsort
SELECT ALL + ( + + 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT - 66 + - MIN( DISTINCT + 31 ) * + 75
----
-2391

skipif mysql # not compatible
query I rowsort label-227
SELECT - 66 + - MIN ( DISTINCT + 31 ) * + 75
----
-2391

query I rowsort
SELECT NULLIF ( - - 84, 82 ) AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-229
SELECT NULLIF ( - 46, + COUNT( * ) * - CAST( + 99 AS SIGNED ) ) AS col1, + 77 * + 47 * + 84 + 51
----
-46
304047

skipif mysql # not compatible
query II rowsort label-229
SELECT NULLIF ( - 46, + COUNT ( * ) * - CAST ( + 99 AS INTEGER ) ) AS col1, + 77 * + 47 * + 84 + 51
----
-46
304047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-230
SELECT - 13 * + - COALESCE ( - - 97, + COUNT( * ) ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-230
SELECT - 13 * + - COALESCE ( - - 97, + COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT DISTINCT + 80 * 95 + + 77 + COUNT( * )
----
7678

skipif mysql # not compatible
query I rowsort label-233
SELECT DISTINCT + 80 * 95 + + 77 + COUNT ( * )
----
7678

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT DISTINCT 35 + + COUNT( * ) + 38
----
74

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT 35 + + COUNT ( * ) + 38
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT + MIN( COALESCE ( 65, 57 ) ) * 43 * - ( 85 )
----
-237575

skipif mysql # not compatible
query I rowsort label-235
SELECT + MIN ( COALESCE ( 65, 57 ) ) * 43 * - ( 85 )
----
-237575

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-237
SELECT - 46 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-237
SELECT - 46 / - 80
----
0

query I rowsort
SELECT + 52 * + 48 AS col2
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT - COUNT( * ) * + 57 * - + 62 * + - 38 AS col0
----
-134292

skipif mysql # not compatible
query I rowsort label-239
SELECT - COUNT ( * ) * + 57 * - + 62 * + - 38 AS col0
----
-134292

query I rowsort
SELECT + NULLIF ( + 68, - 80 ) * 47 + 88 * 25
----
5396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-241
SELECT ALL - 67 + - ( + - CAST( - COUNT( * ) AS SIGNED ) )
----
-68

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL - 67 + - ( + - CAST ( - COUNT ( * ) AS INTEGER ) )
----
-68

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

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

query I rowsort
SELECT ALL + 93 + 50 AS col0
----
143

query I rowsort
SELECT + 1 - - 35
----
36

query I rowsort
SELECT DISTINCT - 65 + + 72 AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-246
SELECT ALL 65 AS col0, 28 * + 89 + - 34 + 53 * - COUNT( * ) AS col1
----
65
2405

skipif mysql # not compatible
query II rowsort label-246
SELECT ALL 65 AS col0, 28 * + 89 + - 34 + 53 * - COUNT ( * ) AS col1
----
65
2405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-247
SELECT DISTINCT + ( 73 ) - + CASE 0 WHEN - 51 * - - 92 - - 4 THEN - ( 39 ) - + CAST( NULL AS SIGNED ) - - - 16 WHEN - 5 + - + COUNT( * ) THEN NULL WHEN - - ( - 65 ) * - + 6 + - + 94 THEN 79 END + - + 39 * - 10 * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT + ( 73 ) - + CASE 0 WHEN - 51 * - - 92 - - 4 THEN - ( 39 ) - + CAST ( NULL AS INTEGER ) - - - 16 WHEN - 5 + - + COUNT ( * ) THEN NULL WHEN - - ( - 65 ) * - + 6 + - + 94 THEN 79 END + - + 39 * - 10 * 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT - + CASE - MAX( + + 24 ) WHEN - + 22 THEN NULL ELSE + - ( - MAX( ALL + + 56 ) ) + + + 63 END + - - 81 * - 84 AS col0
----
-6923

skipif mysql # not compatible
query I rowsort label-248
SELECT - + CASE - MAX ( + + 24 ) WHEN - + 22 THEN NULL ELSE + - ( - MAX ( ALL + + 56 ) ) + + + 63 END + - - 81 * - 84 AS col0
----
-6923

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT ALL + 41 * COUNT( * ) + - - 90 * + - 33 AS col0
----
-2929

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL + 41 * COUNT ( * ) + - - 90 * + - 33 AS col0
----
-2929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-250
SELECT + CAST( - 60 AS SIGNED ) DIV + COUNT( * ) + - 17
----
-77

skipif mysql # not compatible
query I rowsort label-250
SELECT + CAST ( - 60 AS INTEGER ) / + COUNT ( * ) + - 17
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT ALL + 91 * + 4 + - COUNT( * ) AS col0
----
363

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL + 91 * + 4 + - COUNT ( * ) AS col0
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT DISTINCT - SUM( ALL 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT - SUM ( ALL 52 )
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-253
SELECT DISTINCT - CAST( 73 AS SIGNED ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-253
SELECT DISTINCT - CAST ( 73 AS INTEGER ) AS col2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-254
SELECT MIN( - 1 ) * + - CAST( NULL AS SIGNED ) / - 47 + + 2 + - - 51 * - - 18 * - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-254
SELECT MIN ( - 1 ) * + - CAST ( NULL AS INTEGER ) / - 47 + + 2 + - - 51 * - - 18 * - 89
----
NULL

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

skipif mysql # not compatible
query I rowsort label-255
SELECT 24 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-256
SELECT ALL 55 DIV + - 44 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-256
SELECT ALL 55 / + - 44 AS col1
----
-1

query I rowsort
SELECT 95 * + + 99 AS col0
----
9405

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-258
SELECT 30 * - + 66, + CAST( NULL AS DECIMAL ) AS col2
----
-1980
NULL

skipif mysql # not compatible
query II rowsort label-258
SELECT 30 * - + 66, + CAST ( NULL AS REAL ) AS col2
----
-1980
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-259
SELECT CAST( NULL AS SIGNED ) * - 9 * - + 55 / COUNT( DISTINCT - 98 ) * 98 AS col2, 79 - 81
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-259
SELECT CAST ( NULL AS INTEGER ) * - 9 * - + 55 / COUNT ( DISTINCT - 98 ) * 98 AS col2, 79 - 81
----
NULL
-2

query I rowsort
SELECT ALL 19 + - CASE - 90 WHEN - 73 THEN - 51 ELSE - 29 END
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT DISTINCT - MIN( + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-261
SELECT DISTINCT - MIN ( + 27 )
----
-27

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-263
SELECT ALL + 18 + - + 93 col2, + 44 * + 3 * + COUNT( * )
----
-75
132

skipif mysql # not compatible
query II rowsort label-263
SELECT ALL + 18 + - + 93 col2, + 44 * + 3 * + COUNT ( * )
----
-75
132

query II rowsort
SELECT DISTINCT 56 AS col2, 41
----
56
41

query I rowsort
SELECT 19 + + 12 * + 29 + - 30 AS col1
----
337

onlyif mysql # aggregate syntax: 
query II rowsort label-266
SELECT 31 AS col1, COUNT( * ) * + 17 AS col2
----
31
17

skipif mysql # not compatible
query II rowsort label-266
SELECT 31 AS col1, COUNT ( * ) * + 17 AS col2
----
31
17

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT 29 + - 47 - + 60 * - MAX( + + 39 ) AS col1
----
2322

skipif mysql # not compatible
query I rowsort label-267
SELECT 29 + - 47 - + 60 * - MAX ( + + 39 ) AS col1
----
2322

query I rowsort
SELECT 64 - - + 8
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-269
SELECT DISTINCT + 10 + + COUNT( * ) * + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT + 10 + + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT 45 * + 11 * - + COUNT( * ) AS col2
----
-495

skipif mysql # not compatible
query I rowsort label-270
SELECT 45 * + 11 * - + COUNT ( * ) AS col2
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT ALL - - 15 * COUNT( * ) * + + 48 * - 9 AS col1
----
-6480

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL - - 15 * COUNT ( * ) * + + 48 * - 9 AS col1
----
-6480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-272
SELECT - CASE + + NULLIF ( + - 13, - + 18 * - 35 - - + 99 + + 88 - 25 / 39 ) WHEN - ( + + 14 ) - - CASE - COALESCE ( - 85, + 63 ) WHEN + 6 + - + COUNT( * ) THEN NULL WHEN - + COUNT( * ) * CAST( + COUNT( * ) AS SIGNED ) * - 43 - + CASE 53 - - 45 WHEN + 88 + - 75 THEN 64 * 40 ELSE NULL END * + 85 THEN NULL ELSE ( 2 ) END + 3 * + 85 THEN - SUM( ( + 8 ) ) END + - 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-272
SELECT - CASE + + NULLIF ( + - 13, - + 18 * - 35 - - + 99 + + 88 - 25 / 39 ) WHEN - ( + + 14 ) - - CASE - COALESCE ( - 85, + 63 ) WHEN + 6 + - + COUNT ( * ) THEN NULL WHEN - + COUNT ( * ) * CAST ( + COUNT ( * ) AS INTEGER ) * - 43 - + CASE 53 - - 45 WHEN + 88 + - 75 THEN 64 * 40 ELSE NULL END * + 85 THEN NULL ELSE ( 2 ) END + 3 * + 85 THEN - SUM ( ( + 8 ) ) END + - 8 AS col2
----
NULL

query I rowsort
SELECT ALL - ( 66 ) - - + 47 * + 97 + 24 AS col2
----
4517

query I rowsort
SELECT ALL 42 * - 13
----
-546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-275
SELECT DISTINCT COUNT( * ) * + 77 + + CAST( + 26 AS SIGNED ) DIV 86 DIV 69 + + + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-275
SELECT DISTINCT COUNT ( * ) * + 77 + + CAST ( + 26 AS INTEGER ) / 86 / 69 + + + COUNT ( * )
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-276
SELECT + 65 DIV - + 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-276
SELECT + 65 / - + 97 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-277
SELECT + 35 DIV - + 69 * + ( + 20 ) * + ( + 77 ), 18 + + 96 AS col2
----
0
114

skipif mysql # not compatible
query II rowsort label-277
SELECT + 35 / - + 69 * + ( + 20 ) * + ( + 77 ), 18 + + 96 AS col2
----
0
114

query II rowsort
SELECT + 5, ( 46 ) AS col2
----
5
46

query I rowsort
SELECT ALL 31 - - 39 + 8 * - 92 * + - 76 col2
----
56006

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT DISTINCT - NULLIF ( COUNT( * ), + 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT - NULLIF ( COUNT ( * ), + 46 )
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT DISTINCT COUNT( DISTINCT - - 83 ) * 41 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-282
SELECT DISTINCT COUNT ( DISTINCT - - 83 ) * 41 AS col1
----
41

query II rowsort
SELECT ALL - 29, 41 AS col1
----
-29
41

onlyif mysql # DIV for integer division: 
query II rowsort label-284
SELECT ALL - ( - 55 ) * + 52 + + 30 AS col2, - 46 DIV 19 + + ( - 28 ) AS col0
----
2890
-30

skipif mysql # not compatible
query II rowsort label-284
SELECT ALL - ( - 55 ) * + 52 + + 30 AS col2, - 46 / 19 + + ( - 28 ) AS col0
----
2890
-30

query I rowsort
SELECT + 51 * - 73 AS col0
----
-3723

query I rowsort
SELECT ( + 35 ) - 64 AS col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-287
SELECT SUM( + CAST( NULL AS SIGNED ) ) + + + AVG ( DISTINCT - - 47 ) + - COALESCE ( + + 55, + 37, 62 ) * 33 + - 92 * + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-287
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) + + + AVG ( DISTINCT - - 47 ) + - COALESCE ( + + 55, + 37, 62 ) * 33 + - 92 * + - 80
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-288
SELECT MAX( - - 38 ), - ( + - 78 ) DIV - 99 AS col1
----
38
0

skipif mysql # not compatible
query II rowsort label-288
SELECT MAX ( - - 38 ), - ( + - 78 ) / - 99 AS col1
----
38
0

query II rowsort
SELECT 40 * - 21, 57 AS col0
----
-840
57

query I rowsort
SELECT DISTINCT + 86 + - 2 AS col0
----
84

query II rowsort
SELECT 29 * 98 AS col0, - 48 * + + 27
----
2842
-1296

query I rowsort
SELECT ALL 59 + - + 73
----
-14

query I rowsort
SELECT + 30 * 41 + + 52 - + - ( - 61 ) * + - 58
----
4820

query I rowsort
SELECT DISTINCT ( 52 ) - 58 AS col1
----
-6

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

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

query I rowsort
SELECT ALL ( 12 ) * + 25 AS col2
----
300

query I rowsort
SELECT ALL - 85 - 88 * + 35 AS col0
----
-3165

onlyif mysql # aggregate syntax: 
query II rowsort label-298
SELECT DISTINCT 75 * - ( 80 ) AS col1, 86 + + 69 + 84 * 27 + + 2 + + 15 + - + 54 * COUNT( * ) * - + 66
----
-6000
6004

skipif mysql # not compatible
query II rowsort label-298
SELECT DISTINCT 75 * - ( 80 ) AS col1, 86 + + 69 + 84 * 27 + + 2 + + 15 + - + 54 * COUNT ( * ) * - + 66
----
-6000
6004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-299
SELECT + CAST( NULL AS SIGNED ) - - - COUNT( * ), + SUM( ALL - + ( + 76 ) ) * + 47 + + AVG ( ALL + NULLIF ( - - 21, + 43 * - + 27 ) ) + CASE 45 WHEN + 5 THEN NULL WHEN 76 / - 7 + - + ( 47 ) THEN + CASE - + SUM( - 83 ) WHEN - COUNT( * ) THEN 33 * - COUNT( * ) WHEN - AVG ( 55 ) THEN 37 - NULLIF ( 18, 85 ) ELSE 47 END * - CASE + 3 / 62 WHEN 65 THEN 67 END WHEN 2 THEN NULL END / CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-299
SELECT + CAST ( NULL AS INTEGER ) - - - COUNT ( * ), + SUM ( ALL - + ( + 76 ) ) * + 47 + + AVG ( ALL + NULLIF ( - - 21, + 43 * - + 27 ) ) + CASE 45 WHEN + 5 THEN NULL WHEN 76 / - 7 + - + ( 47 ) THEN + CASE - + SUM ( - 83 ) WHEN - COUNT ( * ) THEN 33 * - COUNT ( * ) WHEN - AVG ( 55 ) THEN 37 - NULLIF ( 18, 85 ) ELSE 47 END * - CASE + 3 / 62 WHEN 65 THEN 67 END WHEN 2 THEN NULL END / CAST ( NULL AS REAL )
----
NULL
NULL

query I rowsort
SELECT - - 46 * 35 + - - 82 AS col2
----
1692

query I rowsort
SELECT - + ( 60 ) - - 47
----
-13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) + + - 37
----
-36

skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) + + - 37
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-304
SELECT DISTINCT + ( - 24 ) DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-304
SELECT DISTINCT + ( - 24 ) / 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT - + 19 * COALESCE ( + COUNT( * ), + 48 - + 6 )
----
-19

skipif mysql # not compatible
query I rowsort label-305
SELECT - + 19 * COALESCE ( + COUNT ( * ), + 48 - + 6 )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-306
SELECT + ( + SUM( DISTINCT 31 ) ), - 13 + - - COUNT( DISTINCT + - 96 ) AS col1
----
31
-12

skipif mysql # not compatible
query II rowsort label-306
SELECT + ( + SUM ( DISTINCT 31 ) ), - 13 + - - COUNT ( DISTINCT + - 96 ) AS col1
----
31
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-307
SELECT - CAST( NULL AS SIGNED ) / + 46, 55 AS col2
----
NULL
55

skipif mysql # not compatible
query II rowsort label-307
SELECT - CAST ( NULL AS INTEGER ) / + 46, 55 AS col2
----
NULL
55

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT ALL + 97 + + SUM( DISTINCT + 44 )
----
141

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL + 97 + + SUM ( DISTINCT + 44 )
----
141

query I rowsort
SELECT ALL - 39 + + NULLIF ( 86, - 31 ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT - MAX( + 38 ) + 12 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-310
SELECT - MAX ( + 38 ) + 12 AS col1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-311
SELECT - + 81 * - 11 + + 8 DIV + 39 - - COUNT( * )
----
892

skipif mysql # not compatible
query I rowsort label-311
SELECT - + 81 * - 11 + + 8 / + 39 - - COUNT ( * )
----
892

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-312
SELECT DISTINCT + 81 AS col2, COUNT( * ) DIV - 71 * 21 * - 65
----
81
0

skipif mysql # not compatible
query II rowsort label-312
SELECT DISTINCT + 81 AS col2, COUNT ( * ) / - 71 * 21 * - 65
----
81
0

query I rowsort
SELECT DISTINCT - 14 * + 55 + + - COALESCE ( 75, + 64 ) * + 74
----
-6320

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-315
SELECT COALESCE ( 59, + COUNT( * ) + 85 + COUNT( * ) * + 71 + - + 32 DIV - - 60 * - + 41 )
----
59

skipif mysql # not compatible
query I rowsort label-315
SELECT COALESCE ( 59, + COUNT ( * ) + 85 + COUNT ( * ) * + 71 + - + 32 / - - 60 * - + 41 )
----
59

query I rowsort
SELECT - 71 - + 61
----
-132

query I rowsort
SELECT - 30 * - 13
----
390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-318
SELECT CASE + - CAST( 29 AS SIGNED ) WHEN 47 * - - 2 THEN - + 47 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-318
SELECT CASE + - CAST ( 29 AS INTEGER ) WHEN 47 * - - 2 THEN - + 47 END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-320
SELECT + COUNT( * ) - + - 29 DIV - + CAST( - 27 AS SIGNED ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-320
SELECT + COUNT ( * ) - + - 29 / - + CAST ( - 27 AS INTEGER ) AS col0
----
2

query I rowsort
SELECT DISTINCT + 55 * 93
----
5115

query II rowsort
SELECT ALL + 28 col2, + NULLIF ( + 0, - - 64 ) col1
----
28
0

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT + 93 - COALESCE ( - 57, + COUNT( ALL + - 61 ) ) + + - 90
----
60

skipif mysql # not compatible
query I rowsort label-323
SELECT + 93 - COALESCE ( - 57, + COUNT ( ALL + - 61 ) ) + + - 90
----
60

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

skipif mysql # not compatible
query I rowsort label-324
SELECT - CAST ( NULL AS INTEGER ) * - 89 + + + 71
----
NULL

query I rowsort
SELECT 34 * + 9 - 75
----
231

query I rowsort
SELECT + 8 * + 58
----
464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-327
SELECT + 47 + + AVG ( ALL - - CAST( CASE - - 89 WHEN + 85 THEN NULL WHEN + - 47 THEN - 69 END AS SIGNED ) ) + + + 30 + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-327
SELECT + 47 + + AVG ( ALL - - CAST ( CASE - - 89 WHEN + 85 THEN NULL WHEN + - 47 THEN - 69 END AS INTEGER ) ) + + + 30 + + 57
----
NULL

query I rowsort
SELECT + + 59 - 26
----
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-329
SELECT ALL - CAST( 97 AS SIGNED ) DIV - + 40 + 73 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL - CAST ( 97 AS INTEGER ) / - + 40 + 73 AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-330
SELECT SUM( + - 42 ) * - 49 * + 58 * 51 + + CAST( - 17 AS SIGNED ) + - AVG ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-330
SELECT SUM ( + - 42 ) * - 49 * + 58 * 51 + + CAST ( - 17 AS INTEGER ) + - AVG ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-331
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + ( + + 49 ) AS col0, + 59 DIV + + 73 AS col1
----
48
0

skipif mysql # not compatible
query II rowsort label-331
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + ( + + 49 ) AS col0, + 59 / + + 73 AS col1
----
48
0

query I rowsort
SELECT ALL - - 68 + - ( 15 ) - 20 AS col2
----
33

query I rowsort
SELECT DISTINCT 75 + + + 5
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-334
SELECT - COALESCE ( - - 62, 88 ) + + COALESCE ( + MIN( ALL - 37 ), - 45 DIV + + 85 * + 53 DIV - 47 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-334
SELECT - COALESCE ( - - 62, 88 ) + + COALESCE ( + MIN ( ALL - 37 ), - 45 / + + 85 * + 53 / - 47 ) AS col2
----
-99

query I rowsort
SELECT DISTINCT + 10 + + 82
----
92

query I rowsort
SELECT + - ( - ( ( + - 76 ) ) ) * - 23
----
1748

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-338
SELECT ALL - CAST( NULL AS SIGNED ) + + COUNT( * ) + + 24 + AVG ( 55 ) * + 95 * + 0 * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + 24 + AVG ( 55 ) * + 95 * + 0 * 85
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-339
SELECT 58 DIV - 91 + + 42 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-339
SELECT 58 / - 91 + + 42 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT ALL + 31 * + NULLIF ( 57, - COUNT( ALL - 45 ) ) AS col0
----
1767

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL + 31 * + NULLIF ( 57, - COUNT ( ALL - 45 ) ) AS col0
----
1767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-341
SELECT 59 DIV - - 63 + - + COUNT( * ) - + 10 + + + COUNT( * ) + + - 57 + - + 40 col1, - ( + + COALESCE ( ( + MIN( - 38 ) ), 56, + - 65 * CAST( + + 63 AS SIGNED ) + - 16 * + 79 ) ) AS col0
----
-107
38

skipif mysql # not compatible
query II rowsort label-341
SELECT 59 / - - 63 + - + COUNT ( * ) - + 10 + + + COUNT ( * ) + + - 57 + - + 40 col1, - ( + + COALESCE ( ( + MIN ( - 38 ) ), 56, + - 65 * CAST ( + + 63 AS INTEGER ) + - 16 * + 79 ) ) AS col0
----
-107
38

query I rowsort
SELECT - COALESCE ( - - 85, + 14 ) * - 11 * + 61 * + 16 AS col0
----
912560

query II rowsort
SELECT ALL - 68 * - 62 AS col0, + 92 + + 53 + 22 AS col0
----
4216
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-344
SELECT CAST( 22 AS SIGNED ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-344
SELECT CAST ( 22 AS INTEGER ) AS col0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-345
SELECT ALL + 60 DIV + 68 * 24 - + 50
----
-50

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL + 60 / + 68 * 24 - + 50
----
-50

query I rowsort
SELECT - 0 * + 2 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-347
SELECT ALL - 96 DIV + 37
----
-2

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL - 96 / + 37
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT 60 * - 67 + + - 37 + + CASE + 39 WHEN - COUNT( * ) + 85 THEN NULL WHEN - 78 THEN + 0 END + - - 2 + - 26 * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-348
SELECT 60 * - 67 + + - 37 + + CASE + 39 WHEN - COUNT ( * ) + 85 THEN NULL WHEN - 78 THEN + 0 END + - - 2 + - 26 * 34
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-349
SELECT DISTINCT - 27 DIV + 71 - - 6
----
6

skipif mysql # not compatible
query I rowsort label-349
SELECT DISTINCT - 27 / + 71 - - 6
----
6

query I rowsort
SELECT - 52 - + 25 * - + 80 AS col2
----
1948

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-352
SELECT 48 * 48 * + 98 DIV + COUNT( * )
----
225792

skipif mysql # not compatible
query I rowsort label-352
SELECT 48 * 48 * + 98 / + COUNT ( * )
----
225792

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-353
SELECT MIN( ALL - - 1 ) * 61 DIV + - 73 AS col2, NULLIF ( CASE COUNT( DISTINCT + 8 ) WHEN + + 20 + - 39 + - CASE 27 WHEN 51 - 2 + 49 * 26 * - - 34 * - + ( + - 42 ) + - 27 THEN - + COUNT( * ) * + 88 + + ( + + 28 ) WHEN 61 + - ( 28 ) THEN NULL WHEN 90 + ( - 37 + ( + 15 ) ) THEN NULL END + - 65 THEN NULL WHEN 71 THEN - NULLIF ( ( 67 ), + 51 * - MIN( 9 ) ) END, COUNT( * ) ) * ( 99 * COUNT( * ) + - ( 3 + COUNT( * ) ) ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-353
SELECT MIN ( ALL - - 1 ) * 61 / + - 73 AS col2, NULLIF ( CASE COUNT ( DISTINCT + 8 ) WHEN + + 20 + - 39 + - CASE 27 WHEN 51 - 2 + 49 * 26 * - - 34 * - + ( + - 42 ) + - 27 THEN - + COUNT ( * ) * + 88 + + ( + + 28 ) WHEN 61 + - ( 28 ) THEN NULL WHEN 90 + ( - 37 + ( + 15 ) ) THEN NULL END + - 65 THEN NULL WHEN 71 THEN - NULLIF ( ( 67 ), + 51 * - MIN ( 9 ) ) END, COUNT ( * ) ) * ( 99 * COUNT ( * ) + - ( 3 + COUNT ( * ) ) ) AS col1
----
0
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT ALL + ( CASE - COUNT( * ) WHEN - 29 * 26 THEN NULL WHEN MIN( + NULLIF ( - 10, 84 ) ) * + - COUNT( * ) * - 69 THEN 29 * 59 END ) * + 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-355
SELECT ALL + ( CASE - COUNT ( * ) WHEN - 29 * 26 THEN NULL WHEN MIN ( + NULLIF ( - 10, 84 ) ) * + - COUNT ( * ) * - 69 THEN 29 * 59 END ) * + 39 AS col2
----
NULL

query I rowsort
SELECT + 45 * 32 * - - ( 54 )
----
77760

query I rowsort
SELECT DISTINCT - + 19 AS col0
----
-19

query I rowsort
SELECT ALL + 64 * + 97 + 76
----
6284

query I rowsort
SELECT 45 * + 80 * - 9
----
-32400

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT ALL SUM( - + 85 ) + - 62
----
-147

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL SUM ( - + 85 ) + - 62
----
-147

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT 25 - - 38 * - - MIN( - - 17 ) AS col1
----
671

skipif mysql # not compatible
query I rowsort label-363
SELECT 25 - - 38 * - - MIN ( - - 17 ) AS col1
----
671

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL + ( MIN( + 62 ) ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL + ( MIN ( + 62 ) ) AS col1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-366
SELECT DISTINCT - 48 DIV + + 94 AS col2, + COUNT( * ) * + 0 AS col0
----
0
0

skipif mysql # not compatible
query II rowsort label-366
SELECT DISTINCT - 48 / + + 94 AS col2, + COUNT ( * ) * + 0 AS col0
----
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-367
SELECT COUNT( * ) DIV - 8 AS col1, 76 AS col0
----
0
76

skipif mysql # not compatible
query II rowsort label-367
SELECT COUNT ( * ) / - 8 AS col1, 76 AS col0
----
0
76

query I rowsort
SELECT ALL + 37 + + 47 + 83 AS col1
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT DISTINCT + COUNT( 81 ) + 12 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT + COUNT ( 81 ) + 12 AS col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-370
SELECT DISTINCT 23 * - 4 * + 82 * + 64, + MAX( + 43 ) col1
----
-482816
43

skipif mysql # not compatible
query II rowsort label-370
SELECT DISTINCT 23 * - 4 * + 82 * + 64, + MAX ( + 43 ) col1
----
-482816
43

query I rowsort
SELECT ALL 27 + - 32 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT 94 - 17 * + 69 - + 20 * + + COUNT( * ) * - 5 * 8
----
-279

skipif mysql # not compatible
query I rowsort label-372
SELECT 94 - 17 * + 69 - + 20 * + + COUNT ( * ) * - 5 * 8
----
-279

query I rowsort
SELECT DISTINCT - CASE WHEN NULL IS NULL THEN 59 ELSE NULL END AS col2
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-374
SELECT 33 - 11 * - + COUNT( * ) AS col1, + COUNT( * ) * + 49 AS col0
----
44
49

skipif mysql # not compatible
query II rowsort label-374
SELECT 33 - 11 * - + COUNT ( * ) AS col1, + COUNT ( * ) * + 49 AS col0
----
44
49

query II rowsort
SELECT - 27, + 13 col2
----
-27
13

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT ALL ( + + 15 ) - + - CASE 44 WHEN - 46 * - 22 + - CASE + CASE - 76 WHEN - 52 - - - 36 * 88 THEN + COUNT( * ) ELSE + 90 + + 5 / - ( NULLIF ( 50, - 81 / + ( - CASE - 92 WHEN + 82 / - COUNT( * ) * + 17 * 35 + 16 / 25 THEN 93 END ) + - MAX( - 28 ) ) ) END WHEN - 30 THEN 63 * COUNT( * ) END + 19 * 52 THEN - 21 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL ( + + 15 ) - + - CASE 44 WHEN - 46 * - 22 + - CASE + CASE - 76 WHEN - 52 - - - 36 * 88 THEN + COUNT ( * ) ELSE + 90 + + 5 / - ( NULLIF ( 50, - 81 / + ( - CASE - 92 WHEN + 82 / - COUNT ( * ) * + 17 * 35 + 16 / 25 THEN 93 END ) + - MAX ( - 28 ) ) ) END WHEN - 30 THEN 63 * COUNT ( * ) END + 19 * 52 THEN - 21 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-377
SELECT COALESCE ( - + 47, CAST( - 22 AS SIGNED ), + COUNT( * ) ) * + - 47 + 26 AS col0
----
2235

skipif mysql # not compatible
query I rowsort label-377
SELECT COALESCE ( - + 47, CAST ( - 22 AS INTEGER ), + COUNT ( * ) ) * + - 47 + 26 AS col0
----
2235

query I rowsort
SELECT 23 + - ( + 8 ) col1
----
15

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-380
SELECT ALL - NULLIF ( + COALESCE ( + 92, - COALESCE ( 37, 88 ) + - 74 * + 95 + - 21, - + 63 * + ( 27 ) - CASE + 95 WHEN - - CAST( + - SUM( - 70 ) AS DECIMAL ) THEN - + 52 * 29 * 93 WHEN - CASE - - 63 WHEN + - 96 + + 1 THEN + + 72 * 44 WHEN ( 84 ) THEN - CAST( - 25 AS DECIMAL ) ELSE 17 / 94 END * + 27 THEN 78 END + 45 ), + COUNT( * ) ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL - NULLIF ( + COALESCE ( + 92, - COALESCE ( 37, 88 ) + - 74 * + 95 + - 21, - + 63 * + ( 27 ) - CASE + 95 WHEN - - CAST ( + - SUM ( - 70 ) AS REAL ) THEN - + 52 * 29 * 93 WHEN - CASE - - 63 WHEN + - 96 + + 1 THEN + + 72 * 44 WHEN ( 84 ) THEN - CAST ( - 25 AS REAL ) ELSE 17 / 94 END * + 27 THEN 78 END + 45 ), + COUNT ( * ) ) AS col1
----
-92

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( 52, + 46 * + 89 ) AS col2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-383
SELECT 58 DIV + + 84 col0
----
0

skipif mysql # not compatible
query I rowsort label-383
SELECT 58 / + + 84 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-384
SELECT + 18 DIV NULLIF ( - 53, - 42 ) + + 23
----
23

skipif mysql # not compatible
query I rowsort label-384
SELECT + 18 / NULLIF ( - 53, - 42 ) + + 23
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT DISTINCT - 83 * COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-385
SELECT DISTINCT - 83 * COUNT ( * ) AS col0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-386
SELECT ALL - 10 DIV - 53 col0
----
0

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL - 10 / - 53 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-387
SELECT 48 DIV - ( - 1 ) col2
----
48

skipif mysql # not compatible
query I rowsort label-387
SELECT 48 / - ( - 1 ) col2
----
48

query I rowsort
SELECT 83 * - 24 AS col2
----
-1992

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT ALL - NULLIF ( 0, - + COALESCE ( + 70, + 15 * - COUNT( * ) - COUNT( * ), 0, - - 7 ) )
----
0

skipif mysql # not compatible
query I rowsort label-389
SELECT ALL - NULLIF ( 0, - + COALESCE ( + 70, + 15 * - COUNT ( * ) - COUNT ( * ), 0, - - 7 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-390
SELECT CASE + - MAX( ALL - - 29 ) WHEN - - CAST( - 40 AS DECIMAL ) - + 19 THEN + COUNT( * ) * 36 / + COUNT( * ) * + 19 * + 42 - + + 63 + CASE 19 WHEN + + 97 THEN - COUNT( * ) * CAST( NULL AS SIGNED ) / - ( + CAST( NULL AS SIGNED ) ) END - + + 21 + + + 58 + + 99 - + 31 + 47 * + 90 * - 3 * - ( 74 ) WHEN - COUNT( * ) THEN NULL END / + ( + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-390
SELECT CASE + - MAX ( ALL - - 29 ) WHEN - - CAST ( - 40 AS REAL ) - + 19 THEN + COUNT ( * ) * 36 / + COUNT ( * ) * + 19 * + 42 - + + 63 + CASE 19 WHEN + + 97 THEN - COUNT ( * ) * CAST ( NULL AS INTEGER ) / - ( + CAST ( NULL AS INTEGER ) ) END - + + 21 + + + 58 + + 99 - + 31 + 47 * + 90 * - 3 * - ( 74 ) WHEN - COUNT ( * ) THEN NULL END / + ( + 15 )
----
NULL

query I rowsort
SELECT 34 * - + 57 AS col1
----
-1938

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-392
SELECT ALL - + 64 + + - 58 DIV + 12 + MAX( - 23 ) + + + ( - - 44 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL - + 64 + + - 58 / + 12 + MAX ( - 23 ) + + + ( - - 44 ) AS col0
----
-47

query I rowsort
SELECT - 55 * + 49 - - 40
----
-2655

query I rowsort
SELECT DISTINCT - + 47 * + - 90 AS col0
----
4230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-395
SELECT ALL + 62 + - ( - COUNT( * ) ) + - - 78 * - + 26 + CAST( NULL AS SIGNED ) + 92 * - 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL + 62 + - ( - COUNT ( * ) ) + - - 78 * - + 26 + CAST ( NULL AS INTEGER ) + 92 * - 70 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT - 52 - + 40 * + + 36 * COUNT( * ) * 54
----
-77812

skipif mysql # not compatible
query I rowsort label-396
SELECT - 52 - + 40 * + + 36 * COUNT ( * ) * 54
----
-77812

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT DISTINCT - + MIN( ALL - + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT - + MIN ( ALL - + 79 ) AS col0
----
79

query I rowsort
SELECT ALL + 1 + + 8 * 8
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-399
SELECT + 18 + + - 36 + + 20 * - - 70 + 98 * + MAX( DISTINCT - 27 ) + + 44 DIV COUNT( * ) * - COUNT( * ) AS col2, - 29 AS col0
----
-1308
-29

skipif mysql # not compatible
query II rowsort label-399
SELECT + 18 + + - 36 + + 20 * - - 70 + 98 * + MAX ( DISTINCT - 27 ) + + 44 / COUNT ( * ) * - COUNT ( * ) AS col2, - 29 AS col0
----
-1308
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT - - ( MAX( 44 ) )
----
44

skipif mysql # not compatible
query I rowsort label-400
SELECT - - ( MAX ( 44 ) )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-401
SELECT 93 + + + COUNT( * ) + ( - CAST( NULL AS SIGNED ) ) * + - CAST( NULL AS SIGNED ) / - AVG ( - 1 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-401
SELECT 93 + + + COUNT ( * ) + ( - CAST ( NULL AS INTEGER ) ) * + - CAST ( NULL AS INTEGER ) / - AVG ( - 1 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT NULLIF ( - 27, + 79 * - - 36 ) + - 73 + - - COUNT( * ) * 64 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-402
SELECT NULLIF ( - 27, + 79 * - - 36 ) + - 73 + - - COUNT ( * ) * 64 AS col2
----
-36

query I rowsort
SELECT 83 - - 0
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT ALL 12 + SUM( - + 40 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL 12 + SUM ( - + 40 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT DISTINCT - 58 * + MAX( ALL + 51 ) + + + 10 AS col0
----
-2948

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT - 58 * + MAX ( ALL + 51 ) + + + 10 AS col0
----
-2948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-407
SELECT ALL - COUNT( * ) - + COUNT( * ) * CASE + 91 WHEN - + 95 THEN NULL WHEN + CAST( NULLIF ( + - SUM( ALL - + 63 ), 35 + + 59 ) AS SIGNED ) THEN NULL ELSE - + CASE + 46 WHEN - 56 / + + 50 THEN COUNT( DISTINCT + 57 ) + - 16 END * - ( - - 96 ) + + 21 + ( SUM( - - 9 ) ) END * - - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-407
SELECT ALL - COUNT ( * ) - + COUNT ( * ) * CASE + 91 WHEN - + 95 THEN NULL WHEN + CAST ( NULLIF ( + - SUM ( ALL - + 63 ), 35 + + 59 ) AS INTEGER ) THEN NULL ELSE - + CASE + 46 WHEN - 56 / + + 50 THEN COUNT ( DISTINCT + 57 ) + - 16 END * - ( - - 96 ) + + 21 + ( SUM ( - - 9 ) ) END * - - 81
----
NULL

query I rowsort
SELECT 13 * - 6
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT COUNT( * ) * 49 * - + 70 col0
----
-3430

skipif mysql # not compatible
query I rowsort label-409
SELECT COUNT ( * ) * 49 * - + 70 col0
----
-3430

onlyif mysql # aggregate syntax: 
query II rowsort label-410
SELECT - MIN( 52 ) AS col1, - 84
----
-52
-84

skipif mysql # not compatible
query II rowsort label-410
SELECT - MIN ( 52 ) AS col1, - 84
----
-52
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-411
SELECT ALL 80 AS col0, ( + - COUNT( * ) ) DIV + 74
----
80
0

skipif mysql # not compatible
query II rowsort label-411
SELECT ALL 80 AS col0, ( + - COUNT ( * ) ) / + 74
----
80
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-413
SELECT 39 * + 75 col2, + CAST( NULL AS SIGNED ) - - - 91
----
2925
NULL

skipif mysql # not compatible
query II rowsort label-413
SELECT 39 * + 75 col2, + CAST ( NULL AS INTEGER ) - - - 91
----
2925
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-414
SELECT DISTINCT 36 DIV + + COALESCE ( - 23, - + 84 + + + 44 + - - 23, + 45 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-414
SELECT DISTINCT 36 / + + COALESCE ( - 23, - + 84 + + + 44 + - - 23, + 45 ) col2
----
-1

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

skipif mysql # not compatible
query II rowsort label-415
SELECT ALL 89, CAST ( NULL AS INTEGER ) AS col0
----
89
NULL

query II rowsort
SELECT ALL 71 * - 95, + 40 AS col1
----
-6745
40

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT COUNT( - 35 ) + - 51 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-417
SELECT COUNT ( - 35 ) + - 51 AS col2
----
-50

query I rowsort
SELECT ALL - 6 * - 89
----
534

onlyif mysql # aggregate syntax: 
query II rowsort label-419
SELECT ALL + 12, COUNT( * ) * - 46 AS col2
----
12
-46

skipif mysql # not compatible
query II rowsort label-419
SELECT ALL + 12, COUNT ( * ) * - 46 AS col2
----
12
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-420
SELECT + 14 DIV - 87 + 75 + - 95 col1
----
-20

skipif mysql # not compatible
query I rowsort label-420
SELECT + 14 / - 87 + 75 + - 95 col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT + 17 - + - 33 * + MAX( - 94 ) AS col0
----
-3085

skipif mysql # not compatible
query I rowsort label-421
SELECT + 17 - + - 33 * + MAX ( - 94 ) AS col0
----
-3085

query I rowsort
SELECT ALL 29 * - 44
----
-1276

query I rowsort
SELECT + 35 * - 11
----
-385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-424
SELECT COUNT( * ) DIV 79 + 22 col1
----
22

skipif mysql # not compatible
query I rowsort label-424
SELECT COUNT ( * ) / 79 + 22 col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-425
SELECT COALESCE ( + + 94, - 36, + - 49 * 81 - - NULLIF ( + 35, + COUNT( * ) ) + CAST( NULL AS SIGNED ) * COUNT( * ) )
----
94

skipif mysql # not compatible
query I rowsort label-425
SELECT COALESCE ( + + 94, - 36, + - 49 * 81 - - NULLIF ( + 35, + COUNT ( * ) ) + CAST ( NULL AS INTEGER ) * COUNT ( * ) )
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-426
SELECT ALL 51 * 95 + + 20 * 30, - COUNT( * ) col2
----
5445
-1

skipif mysql # not compatible
query II rowsort label-426
SELECT ALL 51 * 95 + + 20 * 30, - COUNT ( * ) col2
----
5445
-1

query II rowsort
SELECT ALL + 47 AS col1, - 46 + NULLIF ( - 15, - 6 ) + 47
----
47
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-428
SELECT + COALESCE ( 6, + 83, + + NULLIF ( + 7, - MAX( DISTINCT + + CAST( + - 59 AS SIGNED ) ) ) * - 53 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-428
SELECT + COALESCE ( 6, + 83, + + NULLIF ( + 7, - MAX ( DISTINCT + + CAST ( + - 59 AS INTEGER ) ) ) * - 53 ) AS col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-429
SELECT ALL + - 8 * + 45 + COUNT( * ) + - COUNT( * ) DIV + - 96 col2
----
-359

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL + - 8 * + 45 + COUNT ( * ) + - COUNT ( * ) / + - 96 col2
----
-359

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-430
SELECT ALL 32 * COUNT( * ) - - 45 + 40 + + 78 + + CAST( NULL AS SIGNED ) - - - AVG ( - CASE - 72 WHEN + 63 THEN + CAST( NULL AS SIGNED ) END ) + + 59 * - 72 * COUNT( * ) + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL 32 * COUNT ( * ) - - 45 + 40 + + 78 + + CAST ( NULL AS INTEGER ) - - - AVG ( - CASE - 72 WHEN + 63 THEN + CAST ( NULL AS INTEGER ) END ) + + 59 * - 72 * COUNT ( * ) + - 66
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-431
SELECT - + 36 DIV + - 40 * + 67 * + + ( 54 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-431
SELECT - + 36 / + - 40 * + 67 * + + ( 54 ) AS col2
----
0

query I rowsort
SELECT + 2 * - 2 * + 41 AS col0
----
-164

query I rowsort
SELECT - 86 + + 69 AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-434
SELECT + CAST( 97 AS SIGNED ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-434
SELECT + CAST ( 97 AS INTEGER ) AS col2
----
97

query I rowsort
SELECT COALESCE ( + - 17, - 60, - 17 + - 97 )
----
-17

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

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

query I rowsort
SELECT DISTINCT - 78 * 29 AS col1
----
-2262

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT ALL 26 * 53 + COUNT( * )
----
1379

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL 26 * 53 + COUNT ( * )
----
1379

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

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

query I rowsort
SELECT ALL - NULLIF ( + 38, 41 + + 28 * + 83 ) AS col2
----
-38

query I rowsort
SELECT - - ( ( - 59 ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT ALL - 29 - - + 30 * COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL - 29 - - + 30 * COUNT ( * ) col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-443
SELECT ALL COALESCE ( COUNT( 97 ), - + 27 ) col1, + 77 DIV 18 AS col1
----
1
4

skipif mysql # not compatible
query II rowsort label-443
SELECT ALL COALESCE ( COUNT ( 97 ), - + 27 ) col1, + 77 / 18 AS col1
----
1
4

query I rowsort
SELECT - 32 - - 19 * + 75 - + 56 + + + 75 * - - 60 * + 7 * - ( 44 ) / - + CASE - 35 WHEN + + 89 THEN NULL WHEN + 26 THEN 48 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-445
SELECT 18 AS col1, 69 * CASE COUNT( * ) WHEN - 18 * - + 38 THEN + + 93 ELSE - - 42 END
----
18
2898

skipif mysql # not compatible
query II rowsort label-445
SELECT 18 AS col1, 69 * CASE COUNT ( * ) WHEN - 18 * - + 38 THEN + + 93 ELSE - - 42 END
----
18
2898

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-446
SELECT - ( - 35 ), AVG ( + 14 ) / + 28 + + CAST( NULL AS SIGNED ) AS col1
----
35
NULL

skipif mysql # not compatible
query II rowsort label-446
SELECT - ( - 35 ), AVG ( + 14 ) / + 28 + + CAST ( NULL AS INTEGER ) AS col1
----
35
NULL

query I rowsort
SELECT - 31 - - 23 col0
----
-8

query I rowsort
SELECT - 37 * - - 18
----
-666

onlyif mysql # DIV for integer division: 
query I rowsort label-449
SELECT - 7 + - + 60 + 91 DIV - 23
----
-70

skipif mysql # not compatible
query I rowsort label-449
SELECT - 7 + - + 60 + 91 / - 23
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT - SUM( + - COALESCE ( + 69, - + 46 ) )
----
69

skipif mysql # not compatible
query I rowsort label-450
SELECT - SUM ( + - COALESCE ( + 69, - + 46 ) )
----
69

query I rowsort
SELECT DISTINCT ( COALESCE ( - 11, - 27 ) ) AS col2
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-452
SELECT ALL - 37 DIV + + 30 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL - 37 / + + 30 AS col2
----
-1

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

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

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

query I rowsort
SELECT ALL - 10 * + 28 * 5 * 25 AS col2
----
-35000

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT - COUNT( * ) + + 67 - + SUM( ALL + 0 ) + 94 AS col2
----
160

skipif mysql # not compatible
query I rowsort label-456
SELECT - COUNT ( * ) + + 67 - + SUM ( ALL + 0 ) + 94 AS col2
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-457
SELECT DISTINCT MAX( ALL + 42 ) DIV 46 + - 25 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT MAX ( ALL + 42 ) / 46 + - 25 AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-458
SELECT CAST( + 48 AS SIGNED ) AS col1, + 42 AS col1
----
48
42

skipif mysql # not compatible
query II rowsort label-458
SELECT CAST ( + 48 AS INTEGER ) AS col1, + 42 AS col1
----
48
42

onlyif mysql # DIV for integer division: 
query II rowsort label-459
SELECT ALL + 75 DIV - 40, + 82 * + 56 col1
----
-1
4592

skipif mysql # not compatible
query II rowsort label-459
SELECT ALL + 75 / - 40, + 82 * + 56 col1
----
-1
4592

onlyif mysql # DIV for integer division: 
query I rowsort label-460
SELECT DISTINCT 41 DIV + 99 + - 55
----
-55

skipif mysql # not compatible
query I rowsort label-460
SELECT DISTINCT 41 / + 99 + - 55
----
-55

query II rowsort
SELECT + COALESCE ( 44, - 63 ) AS col2, 6 AS col1
----
44
6

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL + 45 * NULLIF ( - + COUNT( * ), COUNT( * ) + 19 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL + 45 * NULLIF ( - + COUNT ( * ), COUNT ( * ) + 19 ) AS col1
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-463
SELECT ALL 30 * - 35 DIV + - COUNT( * ) AS col2
----
1050

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL 30 * - 35 / + - COUNT ( * ) AS col2
----
1050

query I rowsort
SELECT + 0 + - - 41 AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-465
SELECT + - CASE - COUNT( + + 42 ) WHEN - 11 * + 80 THEN - - 63 WHEN + - CASE + COUNT( * ) WHEN + - 41 * + 51 * - COUNT( * ) * + CASE - MIN( DISTINCT 19 ) WHEN - COUNT( * ) * + 71 THEN 78 END THEN NULL WHEN + + COUNT( 18 ) THEN ( CASE - 81 WHEN - CASE + - 85 WHEN CASE - 93 WHEN - ( - 89 ) THEN + 48 / - NULLIF ( 44, ( 82 ) + 75 / - 39 ) END THEN + 39 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END THEN 51 WHEN 84 THEN NULL ELSE NULL END ) + 27 * 85 WHEN 88 * - COUNT( * ) THEN - 37 END * + COUNT( * ) + 56 THEN NULL WHEN 77 THEN - 61 WHEN - CASE 71 WHEN + 8 THEN 93 * 39 ELSE 78 * NULLIF ( + 84 * - MIN( - 76 / + 82 ), + 85 ) END THEN NULL END * 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-465
SELECT + - CASE - COUNT ( + + 42 ) WHEN - 11 * + 80 THEN - - 63 WHEN + - CASE + COUNT ( * ) WHEN + - 41 * + 51 * - COUNT ( * ) * + CASE - MIN ( DISTINCT 19 ) WHEN - COUNT ( * ) * + 71 THEN 78 END THEN NULL WHEN + + COUNT ( 18 ) THEN ( CASE - 81 WHEN - CASE + - 85 WHEN CASE - 93 WHEN - ( - 89 ) THEN + 48 / - NULLIF ( 44, ( 82 ) + 75 / - 39 ) END THEN + 39 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END THEN 51 WHEN 84 THEN NULL ELSE NULL END ) + 27 * 85 WHEN 88 * - COUNT ( * ) THEN - 37 END * + COUNT ( * ) + 56 THEN NULL WHEN 77 THEN - 61 WHEN - CASE 71 WHEN + 8 THEN 93 * 39 ELSE 78 * NULLIF ( + 84 * - MIN ( - 76 / + 82 ), + 85 ) END THEN NULL END * 55 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-466
SELECT + - 67 * - 99 * + - ( + COUNT( * ) ) + + + 98 - + 74 + CAST( 96 AS SIGNED ) + 71 * - + 17 AS col0
----
-7720

skipif mysql # not compatible
query I rowsort label-466
SELECT + - 67 * - 99 * + - ( + COUNT ( * ) ) + + + 98 - + 74 + CAST ( 96 AS INTEGER ) + 71 * - + 17 AS col0
----
-7720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-467
SELECT 13 * - 25 + + - 49 - CAST( NULL AS SIGNED ) / + + MAX( ALL - 92 ) * 23 * 81 + + - AVG ( ALL - - 34 ) + 81 + - - 65 * - - ( COUNT( DISTINCT - 69 ) ) / 96 + 4 - - 68 + - 57 * + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-467
SELECT 13 * - 25 + + - 49 - CAST ( NULL AS INTEGER ) / + + MAX ( ALL - 92 ) * 23 * 81 + + - AVG ( ALL - - 34 ) + 81 + - - 65 * - - ( COUNT ( DISTINCT - 69 ) ) / 96 + 4 - - 68 + - 57 * + 57 AS col2
----
NULL

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

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

query I rowsort
SELECT + 63 + + - 37
----
26

query I rowsort
SELECT + 16 + + - 58
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT - 90 * ( ( + 97 ) ) + + COUNT( * )
----
-8729

skipif mysql # not compatible
query I rowsort label-471
SELECT - 90 * ( ( + 97 ) ) + + COUNT ( * )
----
-8729

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT - + ( 41 ) - + + 86 * + COUNT( * )
----
-127

skipif mysql # not compatible
query I rowsort label-472
SELECT - + ( 41 ) - + + 86 * + COUNT ( * )
----
-127

query I rowsort
SELECT + 43 + 82
----
125

query I rowsort
SELECT - - 23 - + 33 * 92 AS col2
----
-3013

query I rowsort
SELECT ALL - 41 * - 23 AS col0
----
943

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

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

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

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

query I rowsort
SELECT 67 + - 9
----
58

query I rowsort
SELECT 77 + 90 + + + 44 AS col2
----
211

query I rowsort
SELECT ALL + 51 + + - 0 AS col0
----
51

query I rowsort
SELECT 67 * + 25 * + + 14 AS col0
----
23450

query I rowsort
SELECT 2 + + + 97
----
99

query I rowsort
SELECT ALL + 79 * - + 97 AS col2
----
-7663

query I rowsort
SELECT DISTINCT + 61 * 10 AS col2
----
610

onlyif mysql # DIV for integer division: 
query I rowsort label-485
SELECT ALL - NULLIF ( + 52, 68 ) + ( - 45 ) DIV 7 * + - 67
----
350

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL - NULLIF ( + 52, 68 ) + ( - 45 ) / 7 * + - 67
----
350

query I rowsort
SELECT DISTINCT - 34 + 53 AS col2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-487
SELECT 68 * - - CAST( NULL AS SIGNED ) - + 81 / - 72 / - 74 / - 33 + - - 83 + + - 76 * - - 23 * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-487
SELECT 68 * - - CAST ( NULL AS INTEGER ) - + 81 / - 72 / - 74 / - 33 + - - 83 + + - 76 * - - 23 * + 62
----
NULL

query I rowsort
SELECT DISTINCT - + 15 - + + 26 + + + 58
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-489
SELECT ( - COUNT( * ) ) DIV - CAST( + COUNT( * ) AS SIGNED ) + 6
----
7

skipif mysql # not compatible
query I rowsort label-489
SELECT ( - COUNT ( * ) ) / - CAST ( + COUNT ( * ) AS INTEGER ) + 6
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT + ( 88 ) * + COUNT( + 5 )
----
88

skipif mysql # not compatible
query I rowsort label-490
SELECT + ( 88 ) * + COUNT ( + 5 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT - 69 * - 75 + - - COALESCE ( - 50, + 79, - COUNT( * ) * + - MAX( DISTINCT - + 46 ) ) * - 15 * + ( COALESCE ( - + COUNT( * ), 68 ) ) * + SUM( - 7 ) AS col1
----
10425

skipif mysql # not compatible
query I rowsort label-491
SELECT - 69 * - 75 + - - COALESCE ( - 50, + 79, - COUNT ( * ) * + - MAX ( DISTINCT - + 46 ) ) * - 15 * + ( COALESCE ( - + COUNT ( * ), 68 ) ) * + SUM ( - 7 ) AS col1
----
10425

query I rowsort
SELECT DISTINCT 60 * 71 * + 59 AS col1
----
251340

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT ALL - - 73 - - 92 - - NULLIF ( + 35, 78 ) * + COUNT( * ) - 80 + + + 50 + - ( 75 )
----
95

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL - - 73 - - 92 - - NULLIF ( + 35, 78 ) * + COUNT ( * ) - 80 + + + 50 + - ( 75 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-494
SELECT 14 + - SUM( + 0 ) * 15 AS col2, - 41 * - 61 + + 66 AS col1
----
14
2567

skipif mysql # not compatible
query II rowsort label-494
SELECT 14 + - SUM ( + 0 ) * 15 AS col2, - 41 * - 61 + + 66 AS col1
----
14
2567

query I rowsort
SELECT ALL - 82 - + - 85 AS col1
----
3

query I rowsort
SELECT DISTINCT - + COALESCE ( - 39, - 1 * 56 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT + - NULLIF ( + + COUNT( DISTINCT 74 ), + - 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-497
SELECT + - NULLIF ( + + COUNT ( DISTINCT 74 ), + - 54 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-498
SELECT + CAST( MIN( DISTINCT + 35 ) AS SIGNED ) * 47 * + ( + - COUNT( * ) ) * 96 * + 8 + + - 14 + - 7
----
-1263381

skipif mysql # not compatible
query I rowsort label-498
SELECT + CAST ( MIN ( DISTINCT + 35 ) AS INTEGER ) * 47 * + ( + - COUNT ( * ) ) * 96 * + 8 + + - 14 + - 7
----
-1263381

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT + + 26 * + COUNT( - 55 ) - + - 80 + - 0
----
106

skipif mysql # not compatible
query I rowsort label-500
SELECT + + 26 * + COUNT ( - 55 ) - + - 80 + - 0
----
106

query II rowsort
SELECT ALL - + 11 AS col2, - 92 AS col1
----
-11
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-502
SELECT CASE - ( + - CAST( + 47 AS SIGNED ) ) WHEN CAST( NULL AS SIGNED ) THEN COUNT( * ) / - 33 + 84 ELSE 18 END * + + COUNT( * ) + + - COUNT( + 38 ) + + CAST( NULL AS SIGNED ) / - COUNT( * ) * 54 * - + COUNT( * ) * + NULLIF ( COUNT( * ), - 10 + - + 10 ) * + 0 + - 84 * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-502
SELECT CASE - ( + - CAST ( + 47 AS INTEGER ) ) WHEN CAST ( NULL AS INTEGER ) THEN COUNT ( * ) / - 33 + 84 ELSE 18 END * + + COUNT ( * ) + + - COUNT ( + 38 ) + + CAST ( NULL AS INTEGER ) / - COUNT ( * ) * 54 * - + COUNT ( * ) * + NULLIF ( COUNT ( * ), - 10 + - + 10 ) * + 0 + - 84 * 41
----
NULL

query I rowsort
SELECT ALL 72 + + 87 AS col2
----
159

query I rowsort
SELECT ALL - 19 + - 34 AS col2
----
-53

query I rowsort
SELECT DISTINCT + 64 + + - 67 * 1 * + 77 + - 74 AS col1
----
-5169

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT ( 94 ) - + COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-506
SELECT ( 94 ) - + COUNT ( * ) AS col2
----
93

query I rowsort
SELECT ALL 12 + - 58 + 38
----
-8

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

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

query I rowsort
SELECT 2 * 16 * NULLIF ( - 4, - - 80 )
----
-128

query II rowsort
SELECT ALL + 47 * + 76, NULLIF ( + 37, - - 65 ) AS col0
----
3572
37

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT DISTINCT - 93 * + MIN( DISTINCT - + 24 ) AS col2
----
2232

skipif mysql # not compatible
query I rowsort label-511
SELECT DISTINCT - 93 * + MIN ( DISTINCT - + 24 ) AS col2
----
2232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-512
SELECT ALL 76 + - 52 AS col0, - CASE WHEN 36 NOT BETWEEN - + SUM( - 71 ) - 64 * - 79 AND NULL THEN 42 WHEN ( NULL NOT BETWEEN - MIN( + + 42 ) - 85 - - CAST( NULL AS SIGNED ) AND NULL ) THEN - 10 END * - - 69 + + 90 AS col2
----
24
-2808

skipif mysql # not compatible
query II rowsort label-512
SELECT ALL 76 + - 52 AS col0, - CASE WHEN 36 NOT BETWEEN - + SUM ( - 71 ) - 64 * - 79 AND NULL THEN 42 WHEN ( NULL NOT BETWEEN - MIN ( + + 42 ) - 85 - - CAST ( NULL AS INTEGER ) AND NULL ) THEN - 10 END * - - 69 + + 90 AS col2
----
24
-2808

query I rowsort
SELECT DISTINCT 11 + + 73 + - 80
----
4

query I rowsort
SELECT ALL 70 * 87
----
6090

query I rowsort
SELECT 2 - + ( + 27 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT 11 + COUNT( * ) + - 74
----
-62

skipif mysql # not compatible
query I rowsort label-516
SELECT 11 + COUNT ( * ) + - 74
----
-62

query I rowsort
SELECT 82 + + 7
----
89

query I rowsort
SELECT NULLIF ( - 22, + 20 )
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-519
SELECT - 9 * + COUNT( * ) AS col2, 88 * 22
----
-9
1936

skipif mysql # not compatible
query II rowsort label-519
SELECT - 9 * + COUNT ( * ) AS col2, 88 * 22
----
-9
1936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-520
SELECT ALL + COALESCE ( - 70, + 64 - + + 84 ) * - 88 + 97 + - COUNT( * ) * CAST( - - ( + 74 ) AS SIGNED ) AS col1, COUNT( * ) AS col0
----
6183
1

skipif mysql # not compatible
query II rowsort label-520
SELECT ALL + COALESCE ( - 70, + 64 - + + 84 ) * - 88 + 97 + - COUNT ( * ) * CAST ( - - ( + 74 ) AS INTEGER ) AS col1, COUNT ( * ) AS col0
----
6183
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-521
SELECT DISTINCT + CAST( + - 37 AS SIGNED ) * + - CAST( 12 AS SIGNED ), + ( - 86 ) * - 49 AS col0
----
444
4214

skipif mysql # not compatible
query II rowsort label-521
SELECT DISTINCT + CAST ( + - 37 AS INTEGER ) * + - CAST ( 12 AS INTEGER ), + ( - 86 ) * - 49 AS col0
----
444
4214

query I rowsort
SELECT + 76 * + 73 * + + 17
----
94316

query I rowsort
SELECT 29 * 81 AS col1
----
2349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-524
SELECT ALL + 41 * - + COUNT( + 26 ) * 86 + COALESCE ( SUM( DISTINCT - 80 ), - - ( - 21 ), + MAX( DISTINCT - + 13 ) - - 8 DIV + 88, + + 83 ) + 43 DIV - 33
----
-3607

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL + 41 * - + COUNT ( + 26 ) * 86 + COALESCE ( SUM ( DISTINCT - 80 ), - - ( - 21 ), + MAX ( DISTINCT - + 13 ) - - 8 / + 88, + + 83 ) + 43 / - 33
----
-3607

query I rowsort
SELECT + 85 + - 98 + - - 65 * 47 * + 89 * ( 78 ) AS col1
----
21207797

query II rowsort
SELECT - ( - 41 ), - 89 AS col0
----
41
-89

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-528
SELECT 52 * + + CAST( + 42 AS SIGNED ) * - ( + + 31 ) + 16 + 28
----
-67660

skipif mysql # not compatible
query I rowsort label-528
SELECT 52 * + + CAST ( + 42 AS INTEGER ) * - ( + + 31 ) + 16 + 28
----
-67660

query II rowsort
SELECT ALL - ( - 89 ) AS col0, 81 + 96
----
89
177

onlyif mysql # DIV for integer division: 
query I rowsort label-530
SELECT DISTINCT + 59 DIV + 10
----
5

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT + 59 / + 10
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT - - ( CASE + - 19 WHEN - - COUNT( * ) THEN NULL WHEN - + AVG ( + ( - - 95 ) ) + - 19 THEN NULL ELSE 49 * 23 + COUNT( * ) END ) * 28 - + 39
----
31545

skipif mysql # not compatible
query I rowsort label-531
SELECT - - ( CASE + - 19 WHEN - - COUNT ( * ) THEN NULL WHEN - + AVG ( + ( - - 95 ) ) + - 19 THEN NULL ELSE 49 * 23 + COUNT ( * ) END ) * 28 - + 39
----
31545

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-533
SELECT ALL - CAST( + COUNT( * ) AS DECIMAL ) / - 16
----
0

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL - CAST ( + COUNT ( * ) AS REAL ) / - 16
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-534
SELECT + 55 * + 72 * + 56 * + + 40 + CASE - 13 WHEN - 92 THEN 26 WHEN COUNT( * ) THEN + 25 ELSE - - 42 + 1 END * + 18 DIV - COUNT( + 62 ) col2
----
8869626

skipif mysql # not compatible
query I rowsort label-534
SELECT + 55 * + 72 * + 56 * + + 40 + CASE - 13 WHEN - 92 THEN 26 WHEN COUNT ( * ) THEN + 25 ELSE - - 42 + 1 END * + 18 / - COUNT ( + 62 ) col2
----
8869626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-535
SELECT ALL 36 + + COUNT( * ) + 99 + - 93 * + NULLIF ( - - 64, - 6 ) + + + 24 + 86 - - 28 - - + 78 + + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) + - COALESCE ( + CASE + 89 WHEN - ( + 66 ) + - ( + SUM( DISTINCT 92 ) ) * + - 67 * - 54 THEN NULL WHEN 79 THEN + ( - - COUNT( * ) ) + 71 + - + 99 * - 97 * 83 * 94 WHEN + 14 THEN NULL END, 94, - 90 * + 7, - 30 * - 33 ) + 87 * 79 * - 34 * - 66 * - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL 36 + + COUNT ( * ) + 99 + - 93 * + NULLIF ( - - 64, - 6 ) + + + 24 + 86 - - 28 - - + 78 + + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) + - COALESCE ( + CASE + 89 WHEN - ( + 66 ) + - ( + SUM ( DISTINCT 92 ) ) * + - 67 * - 54 THEN NULL WHEN 79 THEN + ( - - COUNT ( * ) ) + 71 + - + 99 * - 97 * 83 * 94 WHEN + 14 THEN NULL END, 94, - 90 * + 7, - 30 * - 33 ) + 87 * 79 * - 34 * - 66 * - 70 AS col1
----
NULL

query I rowsort
SELECT - 42 + - 97 col0
----
-139

query I rowsort
SELECT ALL + 88 + - - 84
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-538
SELECT DISTINCT - 34 + - + 61 - - 77 - + 11 / + 97 * + + CAST( NULL AS SIGNED ) * + AVG ( 71 ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT - 34 + - + 61 - - 77 - + 11 / + 97 * + + CAST ( NULL AS INTEGER ) * + AVG ( 71 ) + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT ALL COUNT( - - 89 ) + + ( MIN( - 44 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-539
SELECT ALL COUNT ( - - 89 ) + + ( MIN ( - 44 ) )
----
-43

query II rowsort
SELECT + 41 + + + 41 * + 48 AS col2, 34
----
2009
34

query I rowsort
SELECT + 52 * - 75
----
-3900

query I rowsort
SELECT + 17 + - 14 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT ALL COUNT( * ) - + - 42 * 36
----
1513

skipif mysql # not compatible
query I rowsort label-543
SELECT ALL COUNT ( * ) - + - 42 * 36
----
1513

onlyif mysql # DIV for integer division: 
query I rowsort label-544
SELECT + 5 DIV + 83 col0
----
0

skipif mysql # not compatible
query I rowsort label-544
SELECT + 5 / + 83 col0
----
0

query I rowsort
SELECT ALL 16 * + 69 * - 59 AS col0
----
-65136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-546
SELECT - - CASE CAST( + + 31 AS SIGNED ) WHEN + + 70 / + + COUNT( * ) THEN - + ( - + 78 ) WHEN - - COALESCE ( - - 33, + 49 + 64 ) THEN NULL ELSE SUM( - 8 ) END AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-546
SELECT - - CASE CAST ( + + 31 AS INTEGER ) WHEN + + 70 / + + COUNT ( * ) THEN - + ( - + 78 ) WHEN - - COALESCE ( - - 33, + 49 + 64 ) THEN NULL ELSE SUM ( - 8 ) END AS col0
----
-8

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

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

query I rowsort
SELECT ALL + 6 * + - 60 AS col1
----
-360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-549
SELECT DISTINCT - 95 - - - COUNT( * ) + - - CAST( + NULLIF ( 79, + ( - 77 ) * + - COUNT( * ) ) AS SIGNED ) * + COALESCE ( + - 42, - 62 * - 61 )
----
-3414

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT - 95 - - - COUNT ( * ) + - - CAST ( + NULLIF ( 79, + ( - 77 ) * + - COUNT ( * ) ) AS INTEGER ) * + COALESCE ( + - 42, - 62 * - 61 )
----
-3414

query I rowsort
SELECT + + 26 + - 34
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-551
SELECT ALL + CASE + - 3 WHEN + 6 + 14 THEN NULL WHEN - CAST( NULL AS SIGNED ) / - COUNT( - 58 ) THEN - SUM( + CAST( - - 94 AS SIGNED ) ) / - - CASE + - COUNT( * ) WHEN 56 * COUNT( * ) - + - 62 - - 65 * - 12 * - 5 / + COUNT( * ) THEN + 71 ELSE NULL END * - AVG ( DISTINCT - 29 ) * CASE + 83 WHEN - CASE - COUNT( * ) WHEN 27 * - + 54 * - - CASE - COUNT( * ) WHEN - 58 - + COALESCE ( 7, 59 ) THEN - 45 + - ( 29 ) * 1 END / 53 THEN + 95 * COUNT( + 97 ) ELSE NULL END * + 56 THEN NULL ELSE - 96 END WHEN + ( 62 ) THEN 90 - 53 END * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL + CASE + - 3 WHEN + 6 + 14 THEN NULL WHEN - CAST ( NULL AS INTEGER ) / - COUNT ( - 58 ) THEN - SUM ( + CAST ( - - 94 AS INTEGER ) ) / - - CASE + - COUNT ( * ) WHEN 56 * COUNT ( * ) - + - 62 - - 65 * - 12 * - 5 / + COUNT ( * ) THEN + 71 ELSE NULL END * - AVG ( DISTINCT - 29 ) * CASE + 83 WHEN - CASE - COUNT ( * ) WHEN 27 * - + 54 * - - CASE - COUNT ( * ) WHEN - 58 - + COALESCE ( 7, 59 ) THEN - 45 + - ( 29 ) * 1 END / 53 THEN + 95 * COUNT ( + 97 ) ELSE NULL END * + 56 THEN NULL ELSE - 96 END WHEN + ( 62 ) THEN 90 - 53 END * 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT + + MAX( DISTINCT - 6 ) / + COUNT( * ) + - CASE 44 WHEN - 57 THEN - 4 WHEN 63 * + 76 * - + 5 - 23 THEN NULL WHEN + 88 * 37 / + + 16 THEN - 94 END - + COALESCE ( + 71, - - 41, + 99 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-552
SELECT + + MAX ( DISTINCT - 6 ) / + COUNT ( * ) + - CASE 44 WHEN - 57 THEN - 4 WHEN 63 * + 76 * - + 5 - 23 THEN NULL WHEN + 88 * 37 / + + 16 THEN - 94 END - + COALESCE ( + 71, - - 41, + 99 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT ALL + - SUM( 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-553
SELECT ALL + - SUM ( 30 ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT + + 25 * 31 + - - COUNT( * )
----
776

skipif mysql # not compatible
query I rowsort label-554
SELECT + + 25 * 31 + - - COUNT ( * )
----
776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-555
SELECT + 26 DIV 31 * 87 + - - COUNT( * ) + - 52 DIV + 60 * 89 DIV + COUNT( DISTINCT - ( + 73 ) ) + + + MAX( 51 ) DIV 21 * + COALESCE ( - 82, - + 78 * COUNT( DISTINCT + 88 ), 66 ) + - ( + COUNT( * ) )
----
-164

skipif mysql # not compatible
query I rowsort label-555
SELECT + 26 / 31 * 87 + - - COUNT ( * ) + - 52 / + 60 * 89 / + COUNT ( DISTINCT - ( + 73 ) ) + + + MAX ( 51 ) / 21 * + COALESCE ( - 82, - + 78 * COUNT ( DISTINCT + 88 ), 66 ) + - ( + COUNT ( * ) )
----
-164

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT ALL 30 * - + 96 - - COUNT( * ) - - - 76 + - 42
----
-2997

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL 30 * - + 96 - - COUNT ( * ) - - - 76 + - 42
----
-2997

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT + 22 * + 66 + - - MAX( DISTINCT - 48 )
----
1404

skipif mysql # not compatible
query I rowsort label-558
SELECT + 22 * + 66 + - - MAX ( DISTINCT - 48 )
----
1404

query II rowsort
SELECT DISTINCT + 87 AS col2, 36
----
87
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-560
SELECT DISTINCT - 60 * CAST( NULL AS SIGNED ) / + + 27 * 59 + - + COALESCE ( 79, + 65, - 32 * + 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-560
SELECT DISTINCT - 60 * CAST ( NULL AS INTEGER ) / + + 27 * 59 + - + COALESCE ( 79, + 65, - 32 * + 75 )
----
NULL

query I rowsort
SELECT COALESCE ( + 80, + 98 * + COALESCE ( + 52, - 55 ) ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-562
SELECT + COUNT( * ) AS col2, - 97 + - 51 * - 61 AS col0
----
1
3014

skipif mysql # not compatible
query II rowsort label-562
SELECT + COUNT ( * ) AS col2, - 97 + - 51 * - 61 AS col0
----
1
3014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-563
SELECT 83 * ( 1 ) + - CAST( - + 28 AS SIGNED ) + + SUM( ALL 4 )
----
115

skipif mysql # not compatible
query I rowsort label-563
SELECT 83 * ( 1 ) + - CAST ( - + 28 AS INTEGER ) + + SUM ( ALL 4 )
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT COALESCE ( - 68, - + 65 * - COUNT( * ) + + MIN( ALL + + 89 ) + + 39 )
----
-68

skipif mysql # not compatible
query I rowsort label-564
SELECT COALESCE ( - 68, - + 65 * - COUNT ( * ) + + MIN ( ALL + + 89 ) + + 39 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT - 38 * - 82 * - COUNT( * ) * - + COUNT( * ) + 54 - 74 * - 38
----
5982

skipif mysql # not compatible
query I rowsort label-565
SELECT - 38 * - 82 * - COUNT ( * ) * - + COUNT ( * ) + 54 - 74 * - 38
----
5982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-566
SELECT ALL 56 * 64 * + 81 + + 76 AS col2, + CAST( - - ( + 32 ) AS SIGNED ) DIV COUNT( * ) + 44 - - - 79
----
290380
-3

skipif mysql # not compatible
query II rowsort label-566
SELECT ALL 56 * 64 * + 81 + + 76 AS col2, + CAST ( - - ( + 32 ) AS INTEGER ) / COUNT ( * ) + 44 - - - 79
----
290380
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-567
SELECT DISTINCT - 29 DIV - + ( + 23 )
----
1

skipif mysql # not compatible
query I rowsort label-567
SELECT DISTINCT - 29 / - + ( + 23 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-568
SELECT - COUNT( + 23 ) DIV COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-568
SELECT - COUNT ( + 23 ) / COUNT ( * )
----
-1

query I rowsort
SELECT + 58 * - 66 * + - 44
----
168432

query I rowsort
SELECT - 29 - 88
----
-117

query I rowsort
SELECT + 35 * - + 18
----
-630

query I rowsort
SELECT DISTINCT 75 * - 97
----
-7275

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT - 81 + + 39 + - + SUM( - 19 )
----
-23

skipif mysql # not compatible
query I rowsort label-573
SELECT - 81 + + 39 + - + SUM ( - 19 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT ALL - MAX( + 77 ) * MIN( DISTINCT + 69 )
----
-5313

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL - MAX ( + 77 ) * MIN ( DISTINCT + 69 )
----
-5313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-575
SELECT DISTINCT CAST( SUM( ALL + 47 ) AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT CAST ( SUM ( ALL + 47 ) AS INTEGER )
----
47

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-577
SELECT 67 AS col2, MIN( ALL + 40 ) * MIN( + 71 ) DIV - 27 AS col1
----
67
-105

skipif mysql # not compatible
query II rowsort label-577
SELECT 67 AS col2, MIN ( ALL + 40 ) * MIN ( + 71 ) / - 27 AS col1
----
67
-105

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

skipif mysql # not compatible
query I rowsort label-578
SELECT DISTINCT MIN ( ALL - + 70 ) AS col0
----
-70

query I rowsort
SELECT + + 22 + + - 10 AS col1
----
12

query II rowsort
SELECT - 23 AS col2, 35 AS col1
----
-23
35

query I rowsort
SELECT + 71 + + + 37
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT - NULLIF ( COUNT( * ), + 0 + 40 - + 17 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-582
SELECT - NULLIF ( COUNT ( * ), + 0 + 40 - + 17 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-583
SELECT ALL + + 67 DIV + + 65 + - 71 col1
----
-70

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL + + 67 / + + 65 + - 71 col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT DISTINCT - SUM( + 93 ) * + + 45 AS col0
----
-4185

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT - SUM ( + 93 ) * + + 45 AS col0
----
-4185

query I rowsort
SELECT ALL 0 + 55 / CASE 23 WHEN + 53 THEN + 58 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-586
SELECT - 83 + 18 - + COUNT( + 67 ), COUNT( * ) + NULLIF ( + - COALESCE ( + - CAST( + 19 AS SIGNED ), - MAX( + - 56 ), - - 77 * 91 ), - - CAST( NULL AS DECIMAL ) * - 96 ) * + 47 AS col0
----
-66
894

skipif mysql # not compatible
query II rowsort label-586
SELECT - 83 + 18 - + COUNT ( + 67 ), COUNT ( * ) + NULLIF ( + - COALESCE ( + - CAST ( + 19 AS INTEGER ), - MAX ( + - 56 ), - - 77 * 91 ), - - CAST ( NULL AS REAL ) * - 96 ) * + 47 AS col0
----
-66
894

query II rowsort
SELECT + 47 * + + 57 + - 98, 74 AS col2
----
2581
74

query I rowsort
SELECT ( - 0 ) * + - 91 + 82
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-589
SELECT DISTINCT 60 - - NULLIF ( + 74, + - 96 / + - CASE 55 WHEN + MIN( DISTINCT + - 43 ) THEN + - CAST( - + 87 AS SIGNED ) * - 37 WHEN 30 THEN - MIN( - ( + + CAST( NULL AS SIGNED ) ) ) * - COALESCE ( + 98, - ( - NULLIF ( - 62, NULLIF ( - + 25, 26 ) + + + 2 ) ), 75 ) + - 80 * 15 * 99 + - + COALESCE ( - 63, 97 ) END ) - - - 36
----
98

skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT 60 - - NULLIF ( + 74, + - 96 / + - CASE 55 WHEN + MIN ( DISTINCT + - 43 ) THEN + - CAST ( - + 87 AS INTEGER ) * - 37 WHEN 30 THEN - MIN ( - ( + + CAST ( NULL AS INTEGER ) ) ) * - COALESCE ( + 98, - ( - NULLIF ( - 62, NULLIF ( - + 25, 26 ) + + + 2 ) ), 75 ) + - 80 * 15 * 99 + - + COALESCE ( - 63, 97 ) END ) - - - 36
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-590
SELECT CAST( + 75 AS SIGNED ) + + MAX( 75 ) + - 38 col1
----
112

skipif mysql # not compatible
query I rowsort label-590
SELECT CAST ( + 75 AS INTEGER ) + + MAX ( 75 ) + - 38 col1
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-591
SELECT 83 + + MIN( - CAST( - - 71 AS SIGNED ) ) * COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-591
SELECT 83 + + MIN ( - CAST ( - - 71 AS INTEGER ) ) * COUNT ( * ) AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-592
SELECT 86 * 76 col0, - 32 * CAST( NULL AS SIGNED )
----
6536
NULL

skipif mysql # not compatible
query II rowsort label-592
SELECT 86 * 76 col0, - 32 * CAST ( NULL AS INTEGER )
----
6536
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-593
SELECT 92 + - - 9 * CAST( 75 AS SIGNED )
----
767

skipif mysql # not compatible
query I rowsort label-593
SELECT 92 + - - 9 * CAST ( 75 AS INTEGER )
----
767

query I rowsort
SELECT ALL - NULLIF ( - + ( - 59 ), NULLIF ( + + 36, - 56 + 29 ) ) * + 36 AS col2
----
-2124

onlyif mysql # DIV for integer division: 
query II rowsort label-595
SELECT - 8 * - 68 * - 46 + 34 DIV - 29 AS col1, 68
----
-25025
68

skipif mysql # not compatible
query II rowsort label-595
SELECT - 8 * - 68 * - 46 + 34 / - 29 AS col1, 68
----
-25025
68

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT + 33 * - SUM( + 62 ) + + COUNT( * )
----
-2045

skipif mysql # not compatible
query I rowsort label-596
SELECT + 33 * - SUM ( + 62 ) + + COUNT ( * )
----
-2045

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT CASE - - SUM( DISTINCT - 87 ) WHEN - ( 19 ) * - ( + 75 ) THEN NULL ELSE + 36 * + 83 END * - + 85
----
-253980

skipif mysql # not compatible
query I rowsort label-597
SELECT CASE - - SUM ( DISTINCT - 87 ) WHEN - ( 19 ) * - ( + 75 ) THEN NULL ELSE + 36 * + 83 END * - + 85
----
-253980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-598
SELECT 18 * 4 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-598
SELECT 18 * 4 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 16 * + - 22 AS col0
----
-352

query I rowsort
SELECT 27 + - 93 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT ALL + COUNT( * ) * + 44 * + 63 AS col2
----
2772

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL + COUNT ( * ) * + 44 * + 63 AS col2
----
2772

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

skipif mysql # not compatible
query I rowsort label-602
SELECT 8 / + - 46
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-603
SELECT 17 + 80 DIV 38 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-603
SELECT 17 + 80 / 38 AS col2
----
19

query I rowsort
SELECT 58 + + 52
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-605
SELECT ALL 15 * 10 DIV + COUNT( * )
----
150

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL 15 * 10 / + COUNT ( * )
----
150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT MIN( 58 ) + - + COUNT( * ) - - 29
----
86

skipif mysql # not compatible
query I rowsort label-607
SELECT MIN ( 58 ) + - + COUNT ( * ) - - 29
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-608
SELECT DISTINCT 4 + - CAST( 10 AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-608
SELECT DISTINCT 4 + - CAST ( 10 AS INTEGER )
----
-6

query I rowsort
SELECT ALL + 30 + - + 27 + 89 AS col2
----
92

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-611
SELECT - CAST( NULL AS SIGNED ) + 32, NULLIF ( - 16, + - 38 ) - + 18 - 6 + + 36 * + 1 AS col2
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-611
SELECT - CAST ( NULL AS INTEGER ) + 32, NULLIF ( - 16, + - 38 ) - + 18 - 6 + + 36 * + 1 AS col2
----
NULL
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT ALL 88 + + - 68 DIV + 98
----
88

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL 88 + + - 68 / + 98
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-613
SELECT + 55 * 24 AS col1, COUNT( * )
----
1320
1

skipif mysql # not compatible
query II rowsort label-613
SELECT + 55 * 24 AS col1, COUNT ( * )
----
1320
1

onlyif mysql # aggregate syntax: 
query II rowsort label-614
SELECT 60 col2, - 65 * - 35 * 40 - - CASE WHEN + 52 NOT IN ( - + COUNT( * ) * + MIN( ALL - 64 ) ) THEN NULLIF ( + - 58, 64 - + ( + + 8 ) ) * - - 52 END
----
60
87984

skipif mysql # not compatible
query II rowsort label-614
SELECT 60 col2, - 65 * - 35 * 40 - - CASE WHEN + 52 NOT IN ( - + COUNT ( * ) * + MIN ( ALL - 64 ) ) THEN NULLIF ( + - 58, 64 - + ( + + 8 ) ) * - - 52 END
----
60
87984

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

onlyif mysql # DIV for integer division: 
query II rowsort label-616
SELECT DISTINCT 19 DIV 97 * + 78, 18 AS col2
----
0
18

skipif mysql # not compatible
query II rowsort label-616
SELECT DISTINCT 19 / 97 * + 78, 18 AS col2
----
0
18

query II rowsort
SELECT ALL - 12 col0, - 76 AS col0
----
-12
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-618
SELECT ( COUNT( * ) ) * 51 DIV - - 33 - + 53 + + 67 * - 54
----
-3670

skipif mysql # not compatible
query I rowsort label-618
SELECT ( COUNT ( * ) ) * 51 / - - 33 - + 53 + + 67 * - 54
----
-3670

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT ALL 54 * - COUNT( * ) * + 94 * - 44
----
223344

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL 54 * - COUNT ( * ) * + 94 * - 44
----
223344

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT 73 - + ( - - ( - 13 ) ) + COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-620
SELECT 73 - + ( - - ( - 13 ) ) + COUNT ( * ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT 18 / + CASE WHEN NOT ( NULL ) BETWEEN - + 50 AND COUNT( * ) THEN - + 79 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-621
SELECT 18 / + CASE WHEN NOT ( NULL ) BETWEEN - + 50 AND COUNT ( * ) THEN - + 79 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-622
SELECT ALL - 72 AS col1, COUNT( * ) + + + 31 AS col1
----
-72
32

skipif mysql # not compatible
query II rowsort label-622
SELECT ALL - 72 AS col1, COUNT ( * ) + + + 31 AS col1
----
-72
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-623
SELECT COALESCE ( 15, - + 95 + + - 35 + 30 DIV 66 ) * NULLIF ( + + COUNT( * ), - - 22 + 64 * + - 21 + 44 ) col0
----
15

skipif mysql # not compatible
query I rowsort label-623
SELECT COALESCE ( 15, - + 95 + + - 35 + 30 / 66 ) * NULLIF ( + + COUNT ( * ), - - 22 + 64 * + - 21 + 44 ) col0
----
15

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-625
SELECT - 16, MAX( ALL + - ( - 92 ) ) + + CAST( 59 AS SIGNED ) + - 85 + + 23 AS col1
----
-16
89

skipif mysql # not compatible
query II rowsort label-625
SELECT - 16, MAX ( ALL + - ( - 92 ) ) + + CAST ( 59 AS INTEGER ) + - 85 + + 23 AS col1
----
-16
89

query I rowsort
SELECT 36 * + 42
----
1512

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

query I rowsort
SELECT + 26 + - 96 AS col0
----
-70

query I rowsort
SELECT - CASE - + 31 WHEN + 87 THEN + + 16 / + 89 WHEN - 32 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 25 + - 49
----
-24

query I rowsort
SELECT 52 + - 43 AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-632
SELECT + CAST( 40 AS SIGNED ) + + ( + 49 ) + + 22 AS col2
----
111

skipif mysql # not compatible
query I rowsort label-632
SELECT + CAST ( 40 AS INTEGER ) + + ( + 49 ) + + 22 AS col2
----
111

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

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

query II rowsort
SELECT NULLIF ( + - 65, + 80 * - 31 + + - 5 + - - 23 ) AS col2, - 20 * + 12
----
-65
-240

onlyif mysql # aggregate syntax: 
query II rowsort label-635
SELECT ALL + MIN( 72 ) + + 41, + NULLIF ( 37, - 93 / - + 93 * 84 + - ( + COUNT( 14 ) ) ) AS col0
----
113
37

skipif mysql # not compatible
query II rowsort label-635
SELECT ALL + MIN ( 72 ) + + 41, + NULLIF ( 37, - 93 / - + 93 * 84 + - ( + COUNT ( 14 ) ) ) AS col0
----
113
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-636
SELECT - + 37 / CAST( - + 3 AS SIGNED ) * CAST( NULL AS SIGNED ) * - - 8 * - + ( + 46 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-636
SELECT - + 37 / CAST ( - + 3 AS INTEGER ) * CAST ( NULL AS INTEGER ) * - - 8 * - + ( + 46 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-637
SELECT - COUNT( * ) + + + 12 + + + COUNT( * ) * + + 22, + 69 AS col1
----
33
69

skipif mysql # not compatible
query II rowsort label-637
SELECT - COUNT ( * ) + + + 12 + + + COUNT ( * ) * + + 22, + 69 AS col1
----
33
69

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT - COUNT( 50 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-638
SELECT - COUNT ( 50 ) AS col0
----
-1

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

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

query I rowsort
SELECT DISTINCT - - 81 * - 8 + + 65
----
-583

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-641
SELECT - - CAST( 86 AS SIGNED ) col1
----
86

skipif mysql # not compatible
query I rowsort label-641
SELECT - - CAST ( 86 AS INTEGER ) col1
----
86

query I rowsort
SELECT ALL + 61 * - 83 AS col1
----
-5063

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-643
SELECT + 26 DIV - ( + 1 ) * COUNT( ALL + 60 ) + - - 97 + + COALESCE ( - 95, - - 34 * - 27 ) * 7
----
-594

skipif mysql # not compatible
query I rowsort label-643
SELECT + 26 / - ( + 1 ) * COUNT ( ALL + 60 ) + - - 97 + + COALESCE ( - 95, - - 34 * - 27 ) * 7
----
-594

query I rowsort
SELECT - COALESCE ( - 58, - 82 ) * 93 AS col0
----
5394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-645
SELECT + CASE + 43 WHEN + - 97 THEN AVG ( DISTINCT - - CAST( - NULLIF ( + 53, + 26 ) AS DECIMAL ) ) * + + 1 + + 96 WHEN + + 46 * 4 * 56 * - - 65 * + CAST( NULL AS SIGNED ) - - 1 + - 78 * - 60 THEN NULL ELSE NULL END / 63 + - - 46 + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-645
SELECT + CASE + 43 WHEN + - 97 THEN AVG ( DISTINCT - - CAST ( - NULLIF ( + 53, + 26 ) AS REAL ) ) * + + 1 + + 96 WHEN + + 46 * 4 * 56 * - - 65 * + CAST ( NULL AS INTEGER ) - - 1 + - 78 * - 60 THEN NULL ELSE NULL END / 63 + - - 46 + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT NULLIF ( ( - + 15 ), - + 96 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT - COUNT( * ) + + + 62 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-647
SELECT - COUNT ( * ) + + + 62 AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-648
SELECT 89 / + 23 * ( + COALESCE ( - 85, + 48 ) ) * 16 * + 32 / - CASE 56 WHEN + - ( CAST( NULL AS SIGNED ) ) + + 57 * 14 THEN + - COUNT( ALL 10 ) / + 55 + - + 17 END * + 52 * - COUNT( * ) + - COUNT( * ) - 44 AS col2, 93 AS col2
----
NULL
93

skipif mysql # not compatible
query II rowsort label-648
SELECT 89 / + 23 * ( + COALESCE ( - 85, + 48 ) ) * 16 * + 32 / - CASE 56 WHEN + - ( CAST ( NULL AS INTEGER ) ) + + 57 * 14 THEN + - COUNT ( ALL 10 ) / + 55 + - + 17 END * + 52 * - COUNT ( * ) + - COUNT ( * ) - 44 AS col2, 93 AS col2
----
NULL
93

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT + 0 * + CASE + + 80 WHEN 62 + - 19 THEN + COALESCE ( + 31, - + 71, - COUNT( * ) * - 40 * - 88 * + 17 ) END + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT + 0 * + CASE + + 80 WHEN 62 + - 19 THEN + COALESCE ( + 31, - + 71, - COUNT ( * ) * - 40 * - 88 * + 17 ) END + 15 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-651
SELECT + NULLIF ( + - ( + 23 ), + SUM( 76 ) * - 15 + - 7 ), - 24 * - 81 - 5 col0
----
-23
1939

skipif mysql # not compatible
query II rowsort label-651
SELECT + NULLIF ( + - ( + 23 ), + SUM ( 76 ) * - 15 + - 7 ), - 24 * - 81 - 5 col0
----
-23
1939

onlyif mysql # DIV for integer division: 
query I rowsort label-652
SELECT 98 DIV + 29 + 13 + + ( - 12 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-652
SELECT 98 / + 29 + 13 + + ( - 12 ) AS col2
----
4

query I rowsort
SELECT 99 * + + 91 + - 22 AS col1
----
8987

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT DISTINCT CASE + + COUNT( * ) WHEN - COUNT( * ) * + 98 * - 20 - - 41 THEN 49 WHEN + - 79 THEN NULL END * + + COUNT( - 64 ) * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-654
SELECT DISTINCT CASE + + COUNT ( * ) WHEN - COUNT ( * ) * + 98 * - 20 - - 41 THEN 49 WHEN + - 79 THEN NULL END * + + COUNT ( - 64 ) * + 95
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-655
SELECT DISTINCT + 2 * CAST( - 30 AS SIGNED ) + 25 * - 23
----
-635

skipif mysql # not compatible
query I rowsort label-655
SELECT DISTINCT + 2 * CAST ( - 30 AS INTEGER ) + 25 * - 23
----
-635

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT ALL + + 56 * + 71 + NULLIF ( - - 44, ( - + 64 ) ) + 49 * - CASE - + 87 WHEN + MAX( - 78 ) / + + 31 THEN + 78 WHEN - COALESCE ( + - ( + + 59 ), + - ( - 23 ), + 74 + - - 42 ) / + 58 THEN + + 55 ELSE + - 82 END AS col2
----
8038

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL + + 56 * + 71 + NULLIF ( - - 44, ( - + 64 ) ) + 49 * - CASE - + 87 WHEN + MAX ( - 78 ) / + + 31 THEN + 78 WHEN - COALESCE ( + - ( + + 59 ), + - ( - 23 ), + 74 + - - 42 ) / + 58 THEN + + 55 ELSE + - 82 END AS col2
----
8038

onlyif mysql # DIV for integer division: 
query I rowsort label-657
SELECT + + 49 DIV + 34
----
1

skipif mysql # not compatible
query I rowsort label-657
SELECT + + 49 / + 34
----
1

query I rowsort
SELECT + 38 * - - 46 * + - 33
----
-57684

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-659
SELECT ALL COALESCE ( - 86, + + MAX( DISTINCT - - 75 ), + MIN( + 81 ) DIV + 65 ) + - 97 AS col0
----
-183

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL COALESCE ( - 86, + + MAX ( DISTINCT - - 75 ), + MIN ( + 81 ) / + 65 ) + - 97 AS col0
----
-183

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

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

query I rowsort
SELECT ALL + - 21 + 73 col0
----
52

query I rowsort
SELECT + + ( + 84 ) + 95
----
179

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-664
SELECT - NULLIF ( - MAX( - COALESCE ( 57, - 78 DIV 95, + ( - 2 ) + + - 28 ) ), + - CAST( NULL AS SIGNED ) + + 55 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-664
SELECT - NULLIF ( - MAX ( - COALESCE ( 57, - 78 / 95, + ( - 2 ) + + - 28 ) ), + - CAST ( NULL AS INTEGER ) + + 55 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT + + 47 * + MIN( DISTINCT - - 84 ) AS col0
----
3948

skipif mysql # not compatible
query I rowsort label-665
SELECT + + 47 * + MIN ( DISTINCT - - 84 ) AS col0
----
3948

onlyif mysql # DIV for integer division: 
query I rowsort label-666
SELECT - 10 * ( 94 ) DIV + 93 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-666
SELECT - 10 * ( 94 ) / + 93 AS col1
----
-10

query I rowsort
SELECT + 49 + 69
----
118

query I rowsort
SELECT DISTINCT + 8 * - + 13 * 17 AS col1
----
-1768

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-670
SELECT ALL CAST( COALESCE ( - - COUNT( * ), - COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL CAST ( COALESCE ( - - COUNT ( * ), - COUNT ( * ) ) AS INTEGER )
----
1

query I rowsort
SELECT - ( + 82 ) + + 30 AS col0
----
-52

query I rowsort
SELECT - 42 + - 76
----
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-673
SELECT - ( - - MAX( DISTINCT - 75 ) ) * + 29 * - CAST( + COUNT( * ) AS SIGNED ) + 34 + + 66 * - + 72 * - 11
----
50131

skipif mysql # not compatible
query I rowsort label-673
SELECT - ( - - MAX ( DISTINCT - 75 ) ) * + 29 * - CAST ( + COUNT ( * ) AS INTEGER ) + 34 + + 66 * - + 72 * - 11
----
50131

onlyif mysql # aggregate syntax: 
query II rowsort label-674
SELECT ALL + NULLIF ( 26, - 27 * 27 + + + 19 * - 92 ), COUNT( * ) AS col1
----
26
1

skipif mysql # not compatible
query II rowsort label-674
SELECT ALL + NULLIF ( 26, - 27 * 27 + + + 19 * - 92 ), COUNT ( * ) AS col1
----
26
1

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT - 34 * - COUNT( * ) + - 71 * + - 38
----
2732

skipif mysql # not compatible
query I rowsort label-675
SELECT - 34 * - COUNT ( * ) + - 71 * + - 38
----
2732

onlyif mysql # DIV for integer division: 
query I rowsort label-676
SELECT - 95 DIV - 40 col1
----
2

skipif mysql # not compatible
query I rowsort label-676
SELECT - 95 / - 40 col1
----
2

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

skipif mysql # not compatible
query I rowsort label-677
SELECT - COUNT ( * ) * 34 / - - 47
----
0

query I rowsort
SELECT ALL - 57 * - + 83
----
4731

onlyif mysql # DIV for integer division: 
query I rowsort label-679
SELECT ALL 46 DIV 50 + + - 75 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL 46 / 50 + + - 75 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT ALL + MIN( - - 9 )
----
9

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL + MIN ( - - 9 )
----
9

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

skipif mysql # not compatible
query I rowsort label-681
SELECT ALL + COUNT ( DISTINCT + 34 ) AS col0
----
1

query I rowsort
SELECT - 52 * 86 AS col0
----
-4472

onlyif mysql # DIV for integer division: 
query I rowsort label-683
SELECT DISTINCT + 8 DIV 43 + - 51 + - + 46 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-683
SELECT DISTINCT + 8 / 43 + - 51 + - + 46 AS col1
----
-97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-685
SELECT - 16 * + 47 * - - 62 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-685
SELECT - 16 * + 47 * - - 62 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 22 * - 99
----
-2178

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

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

query I rowsort
SELECT ALL + + COALESCE ( 38, - 88 * - 30, - CASE - 55 WHEN + + 20 THEN NULL ELSE 27 END + 58 * + 0, 44 )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-689
SELECT 32 AS col0, CAST( NULL AS SIGNED ) + 4 * + ( + NULLIF ( 42, - 37 ) )
----
32
NULL

skipif mysql # not compatible
query II rowsort label-689
SELECT 32 AS col0, CAST ( NULL AS INTEGER ) + 4 * + ( + NULLIF ( 42, - 37 ) )
----
32
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-690
SELECT ALL + + 58 * 9 DIV COALESCE ( - 48, + CAST( - 86 AS SIGNED ) * COUNT( * ), 41 * - - 41 + 7 DIV + + 48 + - AVG ( DISTINCT + + 81 ) ) + + 86 * + 77 DIV COUNT( * ) * - MIN( ALL 9 ) * 31
----
-1847548

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL + + 58 * 9 / COALESCE ( - 48, + CAST ( - 86 AS INTEGER ) * COUNT ( * ), 41 * - - 41 + 7 / + + 48 + - AVG ( DISTINCT + + 81 ) ) + + 86 * + 77 / COUNT ( * ) * - MIN ( ALL 9 ) * 31
----
-1847548

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT + 31 * - 87 + - COUNT( * ) AS col0
----
-2698

skipif mysql # not compatible
query I rowsort label-691
SELECT + 31 * - 87 + - COUNT ( * ) AS col0
----
-2698

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT DISTINCT - - 15 - + + CASE + NULLIF ( + + 79, + 16 ) WHEN - 58 THEN NULL WHEN + 67 THEN NULL ELSE + MIN( + 25 ) * + 92 + + 17 + - 36 * + 89 * - 33 END * + 75 AS col2
----
-8103660

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT - - 15 - + + CASE + NULLIF ( + + 79, + 16 ) WHEN - 58 THEN NULL WHEN + 67 THEN NULL ELSE + MIN ( + 25 ) * + 92 + + 17 + - 36 * + 89 * - 33 END * + 75 AS col2
----
-8103660

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ALL - 31 - - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL - 31 - - COUNT ( * )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-694
SELECT - 97 * + 22 + 91 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-694
SELECT - 97 * + 22 + 91 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + ( + 25 ) col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT ALL COALESCE ( + - 63, MAX( - 16 ) ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL COALESCE ( + - 63, MAX ( - 16 ) ) AS col2
----
-63

query II rowsort
SELECT + 78 AS col2, + 18 + + 41
----
78
59

query I rowsort
SELECT + 74 * ( + - 76 ) + - - 1
----
-5623

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-700
SELECT - 67, + 69 * + 88 * - 58 - - + CAST( COUNT( * ) AS SIGNED ) AS col1
----
-67
-352175

skipif mysql # not compatible
query II rowsort label-700
SELECT - 67, + 69 * + 88 * - 58 - - + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-67
-352175

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT ( + COUNT( ALL + - 72 ) ) + + 2 + + 46 * - - SUM( ALL + 15 )
----
693

skipif mysql # not compatible
query I rowsort label-702
SELECT ( + COUNT ( ALL + - 72 ) ) + + 2 + + 46 * - - SUM ( ALL + 15 )
----
693

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-703
SELECT 19 AS col1, - NULLIF ( + 1, - 11 * + - 95 * CAST( NULL AS SIGNED ) ) + 31 AS col2
----
19
30

skipif mysql # not compatible
query II rowsort label-703
SELECT 19 AS col1, - NULLIF ( + 1, - 11 * + - 95 * CAST ( NULL AS INTEGER ) ) + 31 AS col2
----
19
30

query II rowsort
SELECT DISTINCT 80 AS col2, + 64
----
80
64

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT DISTINCT COUNT( * ) + MAX( DISTINCT + 32 ) + - + 24
----
9

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT COUNT ( * ) + MAX ( DISTINCT + 32 ) + - + 24
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-706
SELECT ALL + ( + 29 ) + - 38 + - CAST( + CASE - - COUNT( - 66 ) WHEN COUNT( * ) THEN + 10 * - + CAST( + - 19 AS SIGNED ) + CAST( - - 82 AS DECIMAL ) - 31 END AS SIGNED ) AS col2
----
-250

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL + ( + 29 ) + - 38 + - CAST ( + CASE - - COUNT ( - 66 ) WHEN COUNT ( * ) THEN + 10 * - + CAST ( + - 19 AS INTEGER ) + CAST ( - - 82 AS REAL ) - 31 END AS INTEGER ) AS col2
----
-250

query I rowsort
SELECT 27 * + 9 AS col2
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT ALL - 99 + + 31 + AVG ( ALL - 14 ) + + + CASE + 88 WHEN + 14 THEN ( + + ( + + MIN( + ( + 59 ) ) ) ) * + ( - 29 ) / - 18 + 14 WHEN - COUNT( * ) THEN NULL WHEN + 19 THEN NULL END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL - 99 + + 31 + AVG ( ALL - 14 ) + + + CASE + 88 WHEN + 14 THEN ( + + ( + + MIN ( + ( + 59 ) ) ) ) * + ( - 29 ) / - 18 + 14 WHEN - COUNT ( * ) THEN NULL WHEN + 19 THEN NULL END + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT ALL + 36 + - SUM( + 40 ) col1
----
-4

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL + 36 + - SUM ( + 40 ) col1
----
-4

query I rowsort
SELECT 17 + 10
----
27

query II rowsort
SELECT 37, 1 + + 31 AS col0
----
37
32

query I rowsort
SELECT 36 * + 87 + - - 42 AS col1
----
3174

query I rowsort
SELECT 62 - - + 3 AS col1
----
65

query I rowsort
SELECT ALL - 63 + - 37 AS col1
----
-100

query I rowsort
SELECT ALL + 9 * 50
----
450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-716
SELECT - CASE + 19 WHEN + ( + SUM( - 6 ) ) - + - AVG ( + ( + - 92 ) ) THEN - COUNT( * ) WHEN CAST( NULL AS SIGNED ) / + 2 / - 83 / COUNT( * ) THEN AVG ( + 91 ) + + + MIN( DISTINCT - - 35 ) + + 65 + 50 + - 32 * - + 35 * + 80 * - 6 END / COUNT( * ) + - 55 + 15 * + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-716
SELECT - CASE + 19 WHEN + ( + SUM ( - 6 ) ) - + - AVG ( + ( + - 92 ) ) THEN - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) / + 2 / - 83 / COUNT ( * ) THEN AVG ( + 91 ) + + + MIN ( DISTINCT - - 35 ) + + 65 + 50 + - 32 * - + 35 * + 80 * - 6 END / COUNT ( * ) + - 55 + 15 * + - 26
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-718
SELECT 81 + 34 AS col0, - COUNT( DISTINCT 4 ) AS col2
----
115
-1

skipif mysql # not compatible
query II rowsort label-718
SELECT 81 + 34 AS col0, - COUNT ( DISTINCT 4 ) AS col2
----
115
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-719
SELECT ALL - 35 * + CAST( NULL AS SIGNED ) + + 6 + - COALESCE ( + + 41, 75 * COALESCE ( + + 83, + + 79 * 49 / + 19 ) * - 66 ) / - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-719
SELECT ALL - 35 * + CAST ( NULL AS INTEGER ) + + 6 + - COALESCE ( + + 41, 75 * COALESCE ( + + 83, + + 79 * 49 / + 19 ) * - 66 ) / - 8 AS col1
----
NULL

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

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

query I rowsort
SELECT 27 + - 45 AS col1
----
-18

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-723
SELECT 3, CAST( + 17 AS SIGNED ) + + 81 AS col1, - + 58 AS col0
----
3
98
-58

skipif mysql # not compatible
query III rowsort label-723
SELECT 3, CAST ( + 17 AS INTEGER ) + + 81 AS col1, - + 58 AS col0
----
3
98
-58

query I rowsort
SELECT 60 * + - 35 AS col0
----
-2100

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

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL + 19 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( - 20 ) * - 79
----
1580

query II rowsort
SELECT - - 99, + 38 col1
----
99
38

query II rowsort
SELECT ALL + 42, 73 col0
----
42
73

query II rowsort
SELECT DISTINCT 28 AS col2, 53 AS col1
----
28
53

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT ALL + SUM( ALL 69 ) * - 10
----
-690

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL + SUM ( ALL 69 ) * - 10
----
-690

query I rowsort
SELECT ALL + - 45 * - 11 AS col2
----
495

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-732
SELECT 6 * - + ( 39 ) DIV CAST( + 83 AS SIGNED ) DIV + - 32 * - 2 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-732
SELECT 6 * - + ( 39 ) / CAST ( + 83 AS INTEGER ) / + - 32 * - 2 AS col2
----
0

query I rowsort
SELECT 9 * + 32 + + 91 col1
----
379

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT ALL + CASE + + COUNT( * ) WHEN + 13 + - + 81 / - + 31 THEN - 24 + + - 16 * + - MAX( DISTINCT - 40 ) - 32 END + - 94 + + ( + COUNT( * ) ) - + + 26 / + 23 * + ( + 3 ) * + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL + CASE + + COUNT ( * ) WHEN + 13 + - + 81 / - + 31 THEN - 24 + + - 16 * + - MAX ( DISTINCT - 40 ) - 32 END + - 94 + + ( + COUNT ( * ) ) - + + 26 / + 23 * + ( + 3 ) * + + 30
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-735
SELECT ALL 55 * 68, CAST( + - 44 AS SIGNED ) AS col0
----
3740
-44

skipif mysql # not compatible
query II rowsort label-735
SELECT ALL 55 * 68, CAST ( + - 44 AS INTEGER ) AS col0
----
3740
-44

query II rowsort
SELECT - 7 AS col1, 84
----
-7
84

query I rowsort
SELECT 92 + + + 88
----
180

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT ALL 71 + - COUNT( DISTINCT - 64 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL 71 + - COUNT ( DISTINCT - 64 ) AS col1
----
70

query I rowsort
SELECT 18 + 42 col0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-742
SELECT DISTINCT 0 + - + 52 DIV SUM( + 84 )
----
0

skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT 0 + - + 52 / SUM ( + 84 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-743
SELECT COUNT( * ) + + 46 AS col1, 18 col2
----
47
18

skipif mysql # not compatible
query II rowsort label-743
SELECT COUNT ( * ) + + 46 AS col1, 18 col2
----
47
18

query I rowsort
SELECT CASE - 74 WHEN + + 48 THEN - 53 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-745
SELECT 31 * - 22 + - - 67 - 9 + + CAST( NULL AS SIGNED ) + - + 98 + - + 71 * + 12 * + ( - 81 ) + + + COUNT( DISTINCT + + 68 ) + 52 / - - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-745
SELECT 31 * - 22 + - - 67 - 9 + + CAST ( NULL AS INTEGER ) + - + 98 + - + 71 * + 12 * + ( - 81 ) + + + COUNT ( DISTINCT + + 68 ) + 52 / - - 7
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-746
SELECT CASE - - 45 WHEN 69 THEN - 21 WHEN NULLIF ( 12, - 11 * + 51 ) * MIN( + 21 ) + - MAX( DISTINCT + 22 ) * - + 10 THEN NULL WHEN ( COUNT( ALL - - 81 ) ) * + 31 / 5 * - - 14 * - 34 THEN + CAST( NULL AS SIGNED ) WHEN + - 9 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-746
SELECT CASE - - 45 WHEN 69 THEN - 21 WHEN NULLIF ( 12, - 11 * + 51 ) * MIN ( + 21 ) + - MAX ( DISTINCT + 22 ) * - + 10 THEN NULL WHEN ( COUNT ( ALL - - 81 ) ) * + 31 / 5 * - - 14 * - 34 THEN + CAST ( NULL AS INTEGER ) WHEN + - 9 THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-747
SELECT + ( - 37 ) DIV - 76 + + 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-747
SELECT + ( - 37 ) / - 76 + + 32 AS col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-748
SELECT + NULLIF ( + + COUNT( * ), - COALESCE ( 91, + ( 26 ) * + COUNT( * ) ) * - 54 ) AS col0, - 59 * + - ( - 26 ) + - 98 + - 62 * + 87
----
1
-7026

skipif mysql # not compatible
query II rowsort label-748
SELECT + NULLIF ( + + COUNT ( * ), - COALESCE ( 91, + ( 26 ) * + COUNT ( * ) ) * - 54 ) AS col0, - 59 * + - ( - 26 ) + - 98 + - 62 * + 87
----
1
-7026

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

skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT - COUNT ( * ) * ( - 96 ) - + 96 * + 34 AS col1
----
-3168

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

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

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

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL + COUNT ( DISTINCT - - ( 91 ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-752
SELECT + ( 82 ) * - 20 * + CAST( - - COUNT( * ) AS SIGNED ) + - 79 - + COUNT( * ) + + 37
----
-1683

skipif mysql # not compatible
query I rowsort label-752
SELECT + ( 82 ) * - 20 * + CAST ( - - COUNT ( * ) AS INTEGER ) + - 79 - + COUNT ( * ) + + 37
----
-1683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-753
SELECT - - COUNT( * ) / + CAST( NULL AS SIGNED ) AS col0, COUNT( * ) * - 95 + - + COUNT( + 91 ) AS col0
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-753
SELECT - - COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) * - 95 + - + COUNT ( + 91 ) AS col0
----
NULL
-96

query I rowsort
SELECT - + 29 * + + 43 * + ( + - 25 ) AS col0
----
31175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-755
SELECT ALL - CASE 57 WHEN + - 91 + - 87 + 18 THEN NULL ELSE + CAST( NULL AS SIGNED ) END / - - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL - CASE 57 WHEN + - 91 + - 87 + 18 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END / - - 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-756
SELECT - 15 DIV COALESCE ( + 78, + 83, - 57 - + 30 ) + COUNT( - - 18 ) * + + NULLIF ( - - 59, + 82 + - 41 - 93 - - ( + 84 ) + 99 + - COUNT( - - 91 ) + 88 * + COUNT( DISTINCT 60 ) DIV + 50 * 25 * + 96 ) + + MIN( ALL - 0 )
----
59

skipif mysql # not compatible
query I rowsort label-756
SELECT - 15 / COALESCE ( + 78, + 83, - 57 - + 30 ) + COUNT ( - - 18 ) * + + NULLIF ( - - 59, + 82 + - 41 - 93 - - ( + 84 ) + 99 + - COUNT ( - - 91 ) + 88 * + COUNT ( DISTINCT 60 ) / + 50 * 25 * + 96 ) + + MIN ( ALL - 0 )
----
59

query I rowsort
SELECT DISTINCT - - 43 * + + 42 AS col2
----
1806

query II rowsort
SELECT DISTINCT - - 81 + 78 AS col0, 48
----
159
48

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT - - 2 * CASE 7 WHEN - AVG ( ALL - + 9 ) / - + 40 + 10 THEN + + COUNT( * ) * - 87 ELSE NULL END * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-759
SELECT - - 2 * CASE 7 WHEN - AVG ( ALL - + 9 ) / - + 40 + 10 THEN + + COUNT ( * ) * - 87 ELSE NULL END * + 63
----
NULL

query I rowsort
SELECT DISTINCT + 97 + - ( - - 33 ) AS col2
----
64

query II rowsort
SELECT ALL - + 30 + 20, 35 AS col2
----
-10
35

query I rowsort
SELECT - + 33 + + 77
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-763
SELECT + - 15 * COUNT( ALL 32 ) + 1 DIV + 21 * 8 * COUNT( * ) - + 72 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-763
SELECT + - 15 * COUNT ( ALL 32 ) + 1 / + 21 * 8 * COUNT ( * ) - + 72 AS col2
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-764
SELECT - 32 * CAST( - 11 AS SIGNED ) AS col0
----
352

skipif mysql # not compatible
query I rowsort label-764
SELECT - 32 * CAST ( - 11 AS INTEGER ) AS col0
----
352

query I rowsort
SELECT DISTINCT + 53 * - - 93 AS col0
----
4929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-766
SELECT DISTINCT 95 + + - CAST( NULL AS SIGNED ) * - 59 + - COALESCE ( - - 24, + 58 * 24 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT 95 + + - CAST ( NULL AS INTEGER ) * - 59 + - COALESCE ( - - 24, + 58 * 24 ) AS col1
----
NULL

query I rowsort
SELECT ALL 30 + + + 54
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT - 36 + - - COUNT( * ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-768
SELECT - 36 + - - COUNT ( * ) AS col2
----
-35

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

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

query I rowsort
SELECT DISTINCT + 53 * - 87 col2
----
-4611

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT DISTINCT - SUM( - 1 ) + 0 + - 76
----
-75

skipif mysql # not compatible
query I rowsort label-771
SELECT DISTINCT - SUM ( - 1 ) + 0 + - 76
----
-75

query II rowsort
SELECT 25 AS col0, - 72 AS col2
----
25
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT - CASE 96 WHEN 51 + + 19 THEN COUNT( * ) * COUNT( * ) - + 64 WHEN 31 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-773
SELECT - CASE 96 WHEN 51 + + 19 THEN COUNT ( * ) * COUNT ( * ) - + 64 WHEN 31 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-774
SELECT ALL + 35 + - 92 DIV + 54
----
34

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL + 35 + - 92 / + 54
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-775
SELECT ALL - CAST( + 3 AS SIGNED ) + + + 7 col2
----
4

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL - CAST ( + 3 AS INTEGER ) + + + 7 col2
----
4

query I rowsort
SELECT + 23 * - 34
----
-782

onlyif mysql # aggregate syntax: 
query II rowsort label-777
SELECT ALL 96 AS col2, - MAX( DISTINCT 16 ) + CASE - - NULLIF ( 84, + ( + 92 ) ) WHEN + 24 THEN + 11 END
----
96
NULL

skipif mysql # not compatible
query II rowsort label-777
SELECT ALL 96 AS col2, - MAX ( DISTINCT 16 ) + CASE - - NULLIF ( 84, + ( + 92 ) ) WHEN + 24 THEN + 11 END
----
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT - MAX( DISTINCT 76 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-778
SELECT - MAX ( DISTINCT 76 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT ALL + ( - 94 ) * - COUNT( * ) * - - 36 AS col2
----
3384

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL + ( - 94 ) * - COUNT ( * ) * - - 36 AS col2
----
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT ALL - COUNT( - 70 ) - + 98
----
-99

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL - COUNT ( - 70 ) - + 98
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-781
SELECT DISTINCT 23 DIV + 8
----
2

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT 23 / + 8
----
2

query I rowsort
SELECT + 63 - 28
----
35

query II rowsort
SELECT DISTINCT + 94 AS col2, + 89 + - 86
----
94
3

query I rowsort
SELECT - - 13 * + 86
----
1118

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

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

query I rowsort
SELECT + + ( - ( - + 32 ) ) + 17 * - 54 + + - 3 AS col0
----
-889

query I rowsort
SELECT + + 80 * + 23 * ( - + 38 ) AS col2
----
-69920

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT + 47 - + MAX( DISTINCT + - 67 ) - + 99 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-788
SELECT + 47 - + MAX ( DISTINCT + - 67 ) - + 99 AS col1
----
15

query I rowsort
SELECT ALL 17 * - 63 + + ( + 57 ) + 70 col0
----
-944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-790
SELECT DISTINCT + COUNT( * ) * - CASE + 90 WHEN + + COUNT( * ) - 20 * + 78 + + CAST( NULL AS SIGNED ) + - 99 THEN - 77 ELSE - + 94 + + 68 END * + + 1 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT + COUNT ( * ) * - CASE + 90 WHEN + + COUNT ( * ) - 20 * + 78 + + CAST ( NULL AS INTEGER ) + - 99 THEN - 77 ELSE - + 94 + + 68 END * + + 1 AS col2
----
26

query I rowsort
SELECT + 4 + + 58
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-792
SELECT ALL + - 44, + 26 * - MIN( ( + 44 ) ) + - COUNT( * ) AS col2
----
-44
-1145

skipif mysql # not compatible
query II rowsort label-792
SELECT ALL + - 44, + 26 * - MIN ( ( + 44 ) ) + - COUNT ( * ) AS col2
----
-44
-1145

query I rowsort
SELECT ALL + 92 * - 24 AS col1
----
-2208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-794
SELECT + + 23 + - + 55 / + - CAST( NULL AS SIGNED ) + - 52 / - 98 * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-794
SELECT + + 23 + - + 55 / + - CAST ( NULL AS INTEGER ) + - 52 / - 98 * - 12
----
NULL

query I rowsort
SELECT DISTINCT - 69 * NULLIF ( + - 66, + - 82 ) + - 89 col1
----
4465

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT + MIN( ALL - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-796
SELECT + MIN ( ALL - 37 )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-797
SELECT - COUNT( ALL - 36 ) * 46 DIV + COALESCE ( - 3, COUNT( * ), + 40 + + 77 ) + 98
----
113

skipif mysql # not compatible
query I rowsort label-797
SELECT - COUNT ( ALL - 36 ) * 46 / + COALESCE ( - 3, COUNT ( * ), + 40 + + 77 ) + 98
----
113

query I rowsort
SELECT ALL 91 * + 29 * 15 + 78
----
39663

query II rowsort
SELECT ALL + 79, - 25 AS col1
----
79
-25

query II rowsort
SELECT + + 87 * + 81 * + 59 + 43 AS col1, + 49 AS col1
----
415816
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT ALL - - MIN( + 43 ) * + COUNT( * ) * + 91 - + - 41 AS col0
----
3954

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL - - MIN ( + 43 ) * + COUNT ( * ) * + 91 - + - 41 AS col0
----
3954

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT ALL + - 51 * 67 + + COUNT( * ) col0
----
-3416

skipif mysql # not compatible
query I rowsort label-803
SELECT ALL + - 51 * 67 + + COUNT ( * ) col0
----
-3416

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT + 20 * 56 * - ( COUNT( * ) )
----
-1120

skipif mysql # not compatible
query I rowsort label-804
SELECT + 20 * 56 * - ( COUNT ( * ) )
----
-1120

query I rowsort
SELECT ALL 99 * - + ( - - 35 ) + 44
----
-3421

onlyif mysql # DIV for integer division: 
query I rowsort label-806
SELECT - 42 DIV - 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-806
SELECT - 42 / - 94 AS col2
----
0

query I rowsort
SELECT ALL + 92 * 98 + + + 47
----
9063

query I rowsort
SELECT - 60 * - + 67 AS col2
----
4020

query I rowsort
SELECT ALL 66 * 98 col1
----
6468

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT ALL - 31 * ( - 87 ) + 47 + COUNT( * )
----
2745

skipif mysql # not compatible
query I rowsort label-810
SELECT ALL - 31 * ( - 87 ) + 47 + COUNT ( * )
----
2745

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

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL CAST ( + 0 AS INTEGER ) AS col0
----
0

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

query I rowsort
SELECT DISTINCT + 98 * - + 19 + - + 28 col2
----
-1890

query I rowsort
SELECT ALL - 12 + - + 5 AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-815
SELECT ALL + CAST( NULL AS DECIMAL ) - - + SUM( DISTINCT - + 22 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL + CAST ( NULL AS REAL ) - - + SUM ( DISTINCT - + 22 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT - MIN( - - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-816
SELECT - MIN ( - - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT - 18 + + MAX( ALL 43 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-817
SELECT - 18 + + MAX ( ALL 43 ) AS col2
----
25

query I rowsort
SELECT DISTINCT - 68 - + 43 * 72
----
-3164

query II rowsort
SELECT 36 * + 60 AS col2, - 71 AS col0
----
2160
-71

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

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

query I rowsort
SELECT ALL - 50 - + 95
----
-145

onlyif mysql # DIV for integer division: 
query I rowsort label-822
SELECT 55 DIV + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-822
SELECT 55 / + 62 AS col0
----
0

query II rowsort
SELECT ALL 34 * + 95 AS col1, 69 + 91 AS col0
----
3230
160

query I rowsort
SELECT 62 + - - 70
----
132

query I rowsort
SELECT DISTINCT - 87 * - + 74
----
6438

onlyif mysql # DIV for integer division: 
query I rowsort label-826
SELECT + 52 DIV 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-826
SELECT + 52 / 71 AS col1
----
0

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

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

query I rowsort
SELECT 12 * + ( + - 24 ) AS col0
----
-288

query I rowsort
SELECT - ( + - 56 ) * + + 85 AS col0
----
4760

query I rowsort
SELECT ALL + 12 * 96 * + + 99 AS col2
----
114048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-831
SELECT DISTINCT - 54 * - 27 * + 6 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT - 54 * - 27 * + 6 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-832
SELECT DISTINCT + - NULLIF ( 90, 14 ) * + 3 DIV COUNT( * )
----
-270

skipif mysql # not compatible
query I rowsort label-832
SELECT DISTINCT + - NULLIF ( 90, 14 ) * + 3 / COUNT ( * )
----
-270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-833
SELECT ALL + 32 + - + ( - - CASE + 54 WHEN + + 26 + 88 - + + 18 THEN + 82 * + 61 + + 42 WHEN - + CASE - COALESCE ( - AVG ( + ( CAST( - - ( - + 68 ) AS SIGNED ) ) ), - 14 + - 4 + + 50, + - 71 ) WHEN - COALESCE ( - 8, + NULLIF ( + 82, - 70 ) - - COUNT( * ) ) THEN NULL WHEN COALESCE ( + 56, + COUNT( * ), + + 9 * 26 ) * - NULLIF ( - + ( + + 97 ), - 27 ) + - 95 * 77 + 64 * COUNT( * ) THEN NULL ELSE MIN( ALL 39 ) / - 93 END * CAST( + 90 AS SIGNED ) + + 65 THEN + COUNT( * ) WHEN 50 THEN ( - CAST( NULL AS SIGNED ) ) + 22 WHEN 29 THEN NULL ELSE NULL END ) + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL + 32 + - + ( - - CASE + 54 WHEN + + 26 + 88 - + + 18 THEN + 82 * + 61 + + 42 WHEN - + CASE - COALESCE ( - AVG ( + ( CAST ( - - ( - + 68 ) AS INTEGER ) ) ), - 14 + - 4 + + 50, + - 71 ) WHEN - COALESCE ( - 8, + NULLIF ( + 82, - 70 ) - - COUNT ( * ) ) THEN NULL WHEN COALESCE ( + 56, + COUNT ( * ), + + 9 * 26 ) * - NULLIF ( - + ( + + 97 ), - 27 ) + - 95 * 77 + 64 * COUNT ( * ) THEN NULL ELSE MIN ( ALL 39 ) / - 93 END * CAST ( + 90 AS INTEGER ) + + 65 THEN + COUNT ( * ) WHEN 50 THEN ( - CAST ( NULL AS INTEGER ) ) + 22 WHEN 29 THEN NULL ELSE NULL END ) + 16
----
NULL

query I rowsort
SELECT ALL + ( 57 ) + + + 85 AS col1
----
142

query I rowsort
SELECT DISTINCT - 4 + 89
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT DISTINCT - - CASE 66 WHEN - + COUNT( * ) * COUNT( + 36 ) + + COALESCE ( 46, - 96 / + + 80 - + 4 + 0 * + - 37 - - 23, - CASE + 4 WHEN + COUNT( * ) THEN 5 + 97 + + 4 ELSE NULL END ) THEN - NULLIF ( + 64, + + MAX( DISTINCT + - 1 ) ) WHEN 3 + + NULLIF ( + MIN( 26 ), + - 91 + - 53 + - 96 ) / + MIN( ALL 42 ) THEN NULL WHEN 2 + - 61 * - 52 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-836
SELECT DISTINCT - - CASE 66 WHEN - + COUNT ( * ) * COUNT ( + 36 ) + + COALESCE ( 46, - 96 / + + 80 - + 4 + 0 * + - 37 - - 23, - CASE + 4 WHEN + COUNT ( * ) THEN 5 + 97 + + 4 ELSE NULL END ) THEN - NULLIF ( + 64, + + MAX ( DISTINCT + - 1 ) ) WHEN 3 + + NULLIF ( + MIN ( 26 ), + - 91 + - 53 + - 96 ) / + MIN ( ALL 42 ) THEN NULL WHEN 2 + - 61 * - 52 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-837
SELECT DISTINCT CASE 91 WHEN - 86 / 46 * - 87 / + 62 + - - ( + - 72 ) / CAST( NULL AS SIGNED ) / + 97 THEN + 41 WHEN + 87 THEN - 51 + - SUM( 8 ) WHEN + CASE - + 19 WHEN 56 + + 53 * 11 * + + ( + 36 ) THEN + - 96 WHEN - 17 - + 83 THEN NULL ELSE - - ( + - COUNT( * ) ) + - + COUNT( * ) END + COALESCE ( - - 40, - SUM( ALL 38 ) ) + + - ( - - 99 ) THEN - + 93 * - - 18 ELSE COUNT( * ) END + + + 96 + + 23
----
120

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT CASE 91 WHEN - 86 / 46 * - 87 / + 62 + - - ( + - 72 ) / CAST ( NULL AS INTEGER ) / + 97 THEN + 41 WHEN + 87 THEN - 51 + - SUM ( 8 ) WHEN + CASE - + 19 WHEN 56 + + 53 * 11 * + + ( + 36 ) THEN + - 96 WHEN - 17 - + 83 THEN NULL ELSE - - ( + - COUNT ( * ) ) + - + COUNT ( * ) END + COALESCE ( - - 40, - SUM ( ALL 38 ) ) + + - ( - - 99 ) THEN - + 93 * - - 18 ELSE COUNT ( * ) END + + + 96 + + 23
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT CASE - AVG ( DISTINCT 50 ) WHEN + 65 + + - COUNT( ( + 2 ) ) * - 14 THEN NULL WHEN - 52 THEN 43 ELSE NULL END * - - 41 + - 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-838
SELECT CASE - AVG ( DISTINCT 50 ) WHEN + 65 + + - COUNT ( ( + 2 ) ) * - 14 THEN NULL WHEN - 52 THEN 43 ELSE NULL END * - - 41 + - 19 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT + + COUNT( * ) * + - SUM( - - 42 ) * + 54 + + - 31 - 8 AS col1
----
-2307

skipif mysql # not compatible
query I rowsort label-839
SELECT + + COUNT ( * ) * + - SUM ( - - 42 ) * + 54 + + - 31 - 8 AS col1
----
-2307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-840
SELECT ALL 21 + + ( - + 30 ) + + 90 + + CAST( - - COUNT( * ) AS SIGNED ) * - ( + CAST( + CASE + 36 WHEN + 77 THEN + 52 + - CAST( NULL AS SIGNED ) WHEN + - 21 THEN + AVG ( DISTINCT 63 ) + 10 * 61 WHEN 76 - + - 38 * + + 72 THEN + ( - - COUNT( * ) ) ELSE + 53 END AS SIGNED ) ) * - - 34 AS col2
----
-1721

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL 21 + + ( - + 30 ) + + 90 + + CAST ( - - COUNT ( * ) AS INTEGER ) * - ( + CAST ( + CASE + 36 WHEN + 77 THEN + 52 + - CAST ( NULL AS INTEGER ) WHEN + - 21 THEN + AVG ( DISTINCT 63 ) + 10 * 61 WHEN 76 - + - 38 * + + 72 THEN + ( - - COUNT ( * ) ) ELSE + 53 END AS INTEGER ) ) * - - 34 AS col2
----
-1721

onlyif mysql # DIV for integer division: 
query I rowsort label-841
SELECT + 55 DIV + 50 + + 12 - + + 95 * 52
----
-4927

skipif mysql # not compatible
query I rowsort label-841
SELECT + 55 / + 50 + + 12 - + + 95 * 52
----
-4927

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT + CASE + 93 WHEN + COUNT( * ) * 20 * + 70 THEN + 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-842
SELECT + CASE + 93 WHEN + COUNT ( * ) * 20 * + 70 THEN + 58 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-843
SELECT ALL + 30 + 54 * - 29 + + - 38 + - 61 + + 36 - - 68 + + ( - + 27 ) + + NULLIF ( COUNT( * ), + ( + 27 ) * - + 72 ) DIV + 79 * + MIN( DISTINCT - - 23 ) * 72 + - - 60 + 32
----
-1466

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL + 30 + 54 * - 29 + + - 38 + - 61 + + 36 - - 68 + + ( - + 27 ) + + NULLIF ( COUNT ( * ), + ( + 27 ) * - + 72 ) / + 79 * + MIN ( DISTINCT - - 23 ) * 72 + - - 60 + 32
----
-1466

query I rowsort
SELECT ALL - ( 55 ) AS col2
----
-55

query I rowsort
SELECT ALL + 86 * - - 20 * + 72 AS col2
----
123840

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-847
SELECT DISTINCT 23 AS col2, + COUNT( * ) AS col2
----
23
1

skipif mysql # not compatible
query II rowsort label-847
SELECT DISTINCT 23 AS col2, + COUNT ( * ) AS col2
----
23
1

query I rowsort
SELECT 11 + + 73 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT 46 * - 3 * + MAX( ALL + 66 ) AS col2
----
-9108

skipif mysql # not compatible
query I rowsort label-849
SELECT 46 * - 3 * + MAX ( ALL + 66 ) AS col2
----
-9108

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-850
SELECT ALL 12 DIV MIN( + + 86 ) AS col1, - 74
----
0
-74

skipif mysql # not compatible
query II rowsort label-850
SELECT ALL 12 / MIN ( + + 86 ) AS col1, - 74
----
0
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-851
SELECT DISTINCT - CASE 68 WHEN 41 * - + 69 - 91 THEN ( CAST( 93 AS SIGNED ) ) END * 43 + + + CAST( NULL AS SIGNED ) + + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT - CASE 68 WHEN 41 * - + 69 - 91 THEN ( CAST ( 93 AS INTEGER ) ) END * 43 + + + CAST ( NULL AS INTEGER ) + + + 51
----
NULL

query I rowsort
SELECT ALL 59 - 73 AS col2
----
-14

query I rowsort
SELECT ALL - 81 * + - NULLIF ( 33, - 58 ) * 17
----
45441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-854
SELECT 46 * + CAST( + 64 AS SIGNED ) AS col0
----
2944

skipif mysql # not compatible
query I rowsort label-854
SELECT 46 * + CAST ( + 64 AS INTEGER ) AS col0
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT DISTINCT COUNT( * ) * + 4
----
4

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT COUNT ( * ) * + 4
----
4

query I rowsort
SELECT ALL - 18 * - 19
----
342

query I rowsort
SELECT 36 * 62 AS col0
----
2232

query I rowsort
SELECT 71 * - 53
----
-3763

query I rowsort
SELECT 42 - + 40
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT - MIN( ALL + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-860
SELECT - MIN ( ALL + 43 )
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-861
SELECT + COALESCE ( + - ( - + 78 ), + COUNT( * ) DIV - 25 ), - 11 AS col0
----
78
-11

skipif mysql # not compatible
query II rowsort label-861
SELECT + COALESCE ( + - ( - + 78 ), + COUNT ( * ) / - 25 ), - 11 AS col0
----
78
-11

query I rowsort
SELECT ALL + 67 + 14
----
81

query I rowsort
SELECT - 82 - + 70 - - 67 * 96 * - + 22
----
-141656

query I rowsort
SELECT DISTINCT + 68 * + 74 + - 74 * + 95 AS col2
----
-1998

query I rowsort
SELECT + - 82 * 49 + 60 + + 81 * + 16 * - 96
----
-128374

onlyif mysql # DIV for integer division: 
query I rowsort label-866
SELECT - 22 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-866
SELECT - 22 / 75
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-867
SELECT 29 + COUNT( * ) + + 23 - + - 97 DIV 85
----
54

skipif mysql # not compatible
query I rowsort label-867
SELECT 29 + COUNT ( * ) + + 23 - + - 97 / 85
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-868
SELECT + + 53 * - + COUNT( * ) - CAST( + - 40 AS SIGNED ) * - - 5 + - 40
----
107

skipif mysql # not compatible
query I rowsort label-868
SELECT + + 53 * - + COUNT ( * ) - CAST ( + - 40 AS INTEGER ) * - - 5 + - 40
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-869
SELECT ( - ( + 46 ) ) - + COALESCE ( - 35, 0 DIV - - 90, + 81 )
----
-11

skipif mysql # not compatible
query I rowsort label-869
SELECT ( - ( + 46 ) ) - + COALESCE ( - 35, 0 / - - 90, + 81 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT ALL + 60 + + COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL + 60 + + COUNT ( * ) AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-871
SELECT + MIN( - + 5 ) * - 14 + CAST( - 0 AS SIGNED ) * + 75
----
70

skipif mysql # not compatible
query I rowsort label-871
SELECT + MIN ( - + 5 ) * - 14 + CAST ( - 0 AS INTEGER ) * + 75
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT 99 + - 70 + 17 * - ( + COUNT( * ) )
----
12

skipif mysql # not compatible
query I rowsort label-872
SELECT 99 + - 70 + 17 * - ( + COUNT ( * ) )
----
12

query I rowsort
SELECT ALL - 49 - 10
----
-59

query I rowsort
SELECT 1 * - 35 AS col0
----
-35

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

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

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

query II rowsort
SELECT + 25, 51 * - - 9 AS col0
----
25
459

query I rowsort
SELECT + 83 + - - 32 + - + 98 col2
----
17

query I rowsort
SELECT + 94 * + 6
----
564

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT ALL 35 * COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL 35 * COUNT ( * ) AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-881
SELECT + 47 DIV - 14
----
-3

skipif mysql # not compatible
query I rowsort label-881
SELECT + 47 / - 14
----
-3

query II rowsort
SELECT ALL 39, 5 + + + 75 col0
----
39
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-883
SELECT ALL 22 + - 76 * - + 94 * - 32, + CAST( + 26 AS SIGNED ) AS col0
----
-228586
26

skipif mysql # not compatible
query II rowsort label-883
SELECT ALL 22 + - 76 * - + 94 * - 32, + CAST ( + 26 AS INTEGER ) AS col0
----
-228586
26

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT + MAX( DISTINCT + - 3 ) - + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-884
SELECT + MAX ( DISTINCT + - 3 ) - + - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT ALL 92 + + - 91 + + 10 + + 36 - - 73 AS col0
----
120

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

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

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

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

query I rowsort
SELECT DISTINCT - 37 + - - 85 AS col1
----
48

query I rowsort
SELECT DISTINCT - 74 * + 27 col1
----
-1998

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT ALL + + 63 + 57 + - 8 * 47 + + - COUNT( * ) * - 72 * 7 * - - 85 * - 9 - - - 71 AS col0
----
-385887

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL + + 63 + 57 + - 8 * 47 + + - COUNT ( * ) * - 72 * 7 * - - 85 * - 9 - - - 71 AS col0
----
-385887

query I rowsort
SELECT - 80 + 50
----
-30

query I rowsort
SELECT - 93 + + 84 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT ALL + + SUM( - ( 13 ) ) + 29 * + 18 col1
----
509

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL + + SUM ( - ( 13 ) ) + 29 * + 18 col1
----
509

query II rowsort
SELECT - ( + NULLIF ( 34, - + 42 ) ) AS col0, + 24
----
-34
24

query I rowsort
SELECT - + 44 + + + 25
----
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT 69 * - + 11 - 15 + ( + COUNT( * ) )
----
-773

skipif mysql # not compatible
query I rowsort label-897
SELECT 69 * - + 11 - 15 + ( + COUNT ( * ) )
----
-773

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-898
SELECT ALL + 31 AS col2, 2 - NULLIF ( + - 50, + COALESCE ( + 24, + - 58 / 35 ) * + - 26 * - 51 + + 83 ) * - CAST( COUNT( * ) AS SIGNED )
----
31
-48

skipif mysql # not compatible
query II rowsort label-898
SELECT ALL + 31 AS col2, 2 - NULLIF ( + - 50, + COALESCE ( + 24, + - 58 / 35 ) * + - 26 * - 51 + + 83 ) * - CAST ( COUNT ( * ) AS INTEGER )
----
31
-48

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-900
SELECT ALL - - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) * MAX( + 77 ) - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL - - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * MAX ( + 77 ) - 6
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-901
SELECT ALL + ( 59 ) DIV + 28 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL + ( 59 ) / + 28 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT - + COUNT( * ) * + - 92 + + ( + + 31 )
----
123

skipif mysql # not compatible
query I rowsort label-902
SELECT - + COUNT ( * ) * + - 92 + + ( + + 31 )
----
123

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

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

query I rowsort
SELECT DISTINCT + 37 * + + 45
----
1665

query I rowsort
SELECT ALL + ( 98 ) * 11 * + - 98 col0
----
-105644

query I rowsort
SELECT - 77 - + 23 * 30
----
-767

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT DISTINCT + 8 * COUNT( * ) * - - 85 * SUM( + 27 )
----
18360

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT + 8 * COUNT ( * ) * - - 85 * SUM ( + 27 )
----
18360

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT + MIN( 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-908
SELECT + MIN ( 16 ) AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-909
SELECT ALL 59 DIV ( - ( - 20 ) )
----
2

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL 59 / ( - ( - 20 ) )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-910
SELECT 54 * 96 - - CAST( NULL AS SIGNED ) * - 20 * 67 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-910
SELECT 54 * 96 - - CAST ( NULL AS INTEGER ) * - 20 * 67 col1
----
NULL

query I rowsort
SELECT + 41 * 98 col0
----
4018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-912
SELECT + ( + - COUNT( * ) ) - CAST( - ( - + ( - + 33 ) ) AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-912
SELECT + ( + - COUNT ( * ) ) - CAST ( - ( - + ( - + 33 ) ) AS INTEGER )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT COUNT( ALL - 84 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-913
SELECT COUNT ( ALL - 84 ) AS col1
----
1

query I rowsort
SELECT ALL 92 * - - 2 * 93 + + - 90 * + 67 * 92 col0
----
-537648

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT - 87 + 92 * - MAX( 95 ) * - 33
----
288333

skipif mysql # not compatible
query I rowsort label-915
SELECT - 87 + 92 * - MAX ( 95 ) * - 33
----
288333

onlyif mysql # DIV for integer division: 
query I rowsort label-916
SELECT - 64 + 67 DIV 79 * - NULLIF ( - 35, - + 94 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-916
SELECT - 64 + 67 / 79 * - NULLIF ( - 35, - + 94 ) AS col2
----
-64

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

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL - CAST ( NULL AS INTEGER ) + 2
----
NULL

query I rowsort
SELECT ALL + 83 + - 85 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-919
SELECT ALL 69 + + + COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) / + 9 + + 32 * 28
----
70
NULL

skipif mysql # not compatible
query II rowsort label-919
SELECT ALL 69 + + + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) / + 9 + + 32 * 28
----
70
NULL

query II rowsort
SELECT DISTINCT + 74 * + 96 AS col1, - 76 + + 8 col2
----
7104
-68

query I rowsort
SELECT DISTINCT 99 + - 6 * - 87 AS col1
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT ALL 38 * - - 31 * COUNT( * ) + 2 * + + ( + 0 ) AS col0
----
1178

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL 38 * - - 31 * COUNT ( * ) + 2 * + + ( + 0 ) AS col0
----
1178

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT + COUNT( * ) + - + 62 - - + 72
----
11

skipif mysql # not compatible
query I rowsort label-923
SELECT + COUNT ( * ) + - + 62 - - + 72
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT + 57 + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-924
SELECT + 57 + COUNT ( * )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-925
SELECT ALL COALESCE ( 61, - MAX( 2 ) * - 54 ) * 99 DIV ( + 29 )
----
208

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL COALESCE ( 61, - MAX ( 2 ) * - 54 ) * 99 / ( + 29 )
----
208

query I rowsort
SELECT + 71 * + 54
----
3834

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-927
SELECT ALL + 43 * + CASE - 66 WHEN - 10 * - 93 * - COUNT( * ) THEN + + ( - COUNT( * ) ) WHEN - 33 / + COALESCE ( + + COUNT( DISTINCT - - 88 ), - 78 + - AVG ( ALL + + 57 ) ) + - AVG ( 12 ) THEN - - COUNT( * ) WHEN + + 2 + + 97 * + 91 / SUM( DISTINCT - ( + 76 ) ) THEN NULL ELSE + CAST( NULL AS SIGNED ) + + CASE - COUNT( * ) WHEN COUNT( + 80 ) THEN NULL WHEN - COALESCE ( 27, - + COUNT( * ) + + 16 ) + NULLIF ( 39, - + 35 ) + + COUNT( * ) + 39 / + 46 THEN - 71 ELSE + 91 END END * + 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL + 43 * + CASE - 66 WHEN - 10 * - 93 * - COUNT ( * ) THEN + + ( - COUNT ( * ) ) WHEN - 33 / + COALESCE ( + + COUNT ( DISTINCT - - 88 ), - 78 + - AVG ( ALL + + 57 ) ) + - AVG ( 12 ) THEN - - COUNT ( * ) WHEN + + 2 + + 97 * + 91 / SUM ( DISTINCT - ( + 76 ) ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) + + CASE - COUNT ( * ) WHEN COUNT ( + 80 ) THEN NULL WHEN - COALESCE ( 27, - + COUNT ( * ) + + 16 ) + NULLIF ( 39, - + 35 ) + + COUNT ( * ) + 39 / + 46 THEN - 71 ELSE + 91 END END * + 80 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-928
SELECT + - COUNT ( * ) - - ( + ( - 73 ) ) AS col1
----
-74

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

skipif mysql # not compatible
query I rowsort label-929
SELECT DISTINCT - COUNT ( * ) / 60 * - - COUNT ( * )
----
0

query I rowsort
SELECT ALL - - 56 * - ( - CASE - + 18 WHEN - 26 * + + 71 THEN + NULLIF ( 93, 69 + - 67 / + 62 * + - 93 ) + - 70 END ) * 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT + ( - 0 ) * 26 + + 53 + 30 * 73 * + SUM( ALL NULLIF ( + 37, ( - 12 ) ) ) - 93 * + 43 * 21 col2
----
-2896

skipif mysql # not compatible
query I rowsort label-931
SELECT + ( - 0 ) * 26 + + 53 + 30 * 73 * + SUM ( ALL NULLIF ( + 37, ( - 12 ) ) ) - 93 * + 43 * 21 col2
----
-2896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-932
SELECT ALL - + COUNT( + 63 ) DIV - 28 - 31 col0
----
-31

skipif mysql # not compatible
query I rowsort label-932
SELECT ALL - + COUNT ( + 63 ) / - 28 - 31 col0
----
-31

query I rowsort
SELECT 88 * - 50 + 89
----
-4311

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-934
SELECT - COUNT( * ) DIV 65 + - CASE 28 WHEN - + 91 THEN NULL WHEN - ( + 29 ) THEN NULL ELSE - 73 END + 12 + - + ( 22 )
----
63

skipif mysql # not compatible
query I rowsort label-934
SELECT - COUNT ( * ) / 65 + - CASE 28 WHEN - + 91 THEN NULL WHEN - ( + 29 ) THEN NULL ELSE - 73 END + 12 + - + ( 22 )
----
63

query I rowsort
SELECT + + 19 * + 1 * - + 30
----
-570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-936
SELECT + 60 + + ( + + 10 ) + + 13 + + 72 + 96 DIV COUNT( * ) * 60 AS col2
----
5915

skipif mysql # not compatible
query I rowsort label-936
SELECT + 60 + + ( + + 10 ) + + 13 + + 72 + 96 / COUNT ( * ) * 60 AS col2
----
5915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-937
SELECT - 30 * - 14 * + 90 + CAST( ( 22 ) AS SIGNED ) * + 92 + + COALESCE ( + 46, + 86 - 25 + + - 20 DIV - + 47 + - 57 ) + - MAX( ALL + 80 ) * SUM( - + 7 ) AS col1
----
40430

skipif mysql # not compatible
query I rowsort label-937
SELECT - 30 * - 14 * + 90 + CAST ( ( 22 ) AS INTEGER ) * + 92 + + COALESCE ( + 46, + 86 - 25 + + - 20 / - + 47 + - 57 ) + - MAX ( ALL + 80 ) * SUM ( - + 7 ) AS col1
----
40430

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT ALL - MIN( ALL + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-938
SELECT ALL - MIN ( ALL + 73 )
----
-73

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT ALL - 81 AS col2, ( + MIN( DISTINCT 37 ) )
----
-81
37

skipif mysql # not compatible
query II rowsort label-941
SELECT ALL - 81 AS col2, ( + MIN ( DISTINCT 37 ) )
----
-81
37

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT ALL + 59 + 9 + - + 31 - + MIN( 23 ) * - 69
----
1624

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL + 59 + 9 + - + 31 - + MIN ( 23 ) * - 69
----
1624

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT 55 + - COUNT( ALL 34 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-943
SELECT 55 + - COUNT ( ALL 34 ) AS col2
----
54

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

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

query II rowsort
SELECT DISTINCT - 94 AS col1, 23
----
-94
23

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT 52 + 88 - COUNT( * )
----
139

skipif mysql # not compatible
query I rowsort label-946
SELECT 52 + 88 - COUNT ( * )
----
139

query I rowsort
SELECT DISTINCT + 42 + - + 62 + 12
----
-8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-949
SELECT ALL - CAST( NULL AS SIGNED ) + + - 29 * + ( ( + 91 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL - CAST ( NULL AS INTEGER ) + + - 29 * + ( ( + 91 ) )
----
NULL

query I rowsort
SELECT ALL + 60 + + - ( + 29 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-951
SELECT - 1 col1, + CAST( + SUM( DISTINCT - - 53 ) AS SIGNED )
----
-1
53

skipif mysql # not compatible
query II rowsort label-951
SELECT - 1 col1, + CAST ( + SUM ( DISTINCT - - 53 ) AS INTEGER )
----
-1
53

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

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

query I rowsort
SELECT ALL + 60 + + - 31 AS col0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-954
SELECT + 62 + 62 DIV + 69 * - + 34 + + + 54 * - 78
----
-4150

skipif mysql # not compatible
query I rowsort label-954
SELECT + 62 + 62 / + 69 * - + 34 + + + 54 * - 78
----
-4150

query I rowsort
SELECT ALL - 88 + - 42 * + 27 * + ( + 8 ) col1
----
-9160

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

query II rowsort
SELECT ALL 87 AS col2, 61
----
87
61

query I rowsort
SELECT + 19 - + 31 + 27 * - - 64 col2
----
1716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-959
SELECT - - 94 AS col0, SUM( ALL ( - 68 ) ) * + COALESCE ( - 55, - 6, + CASE - 83 WHEN + 90 THEN + MIN( 27 ) * COUNT( * ) * 0 ELSE - MIN( DISTINCT CAST( NULL AS SIGNED ) ) END * - 63, - 65 ) AS col2
----
94
3740

skipif mysql # not compatible
query II rowsort label-959
SELECT - - 94 AS col0, SUM ( ALL ( - 68 ) ) * + COALESCE ( - 55, - 6, + CASE - 83 WHEN + 90 THEN + MIN ( 27 ) * COUNT ( * ) * 0 ELSE - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) END * - 63, - 65 ) AS col2
----
94
3740

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-960
SELECT + 49 AS col2, CAST( ( 83 ) AS SIGNED ) AS col1
----
49
83

skipif mysql # not compatible
query II rowsort label-960
SELECT + 49 AS col2, CAST ( ( 83 ) AS INTEGER ) AS col1
----
49
83

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT COUNT( * ) + - + 75
----
-74

skipif mysql # not compatible
query I rowsort label-961
SELECT COUNT ( * ) + - + 75
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT DISTINCT + COALESCE ( COUNT( * ), 59 ) - 57 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT + COALESCE ( COUNT ( * ), 59 ) - 57 AS col0
----
-56

query II rowsort
SELECT - 49 AS col0, 91 * + 32
----
-49
2912

query I rowsort
SELECT ALL + CASE WHEN NULL IS NULL THEN + 55 ELSE NULL END AS col1
----
55

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

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

query I rowsort
SELECT ALL + 3 * + NULLIF ( 31, + 81 + + - 31 )
----
93

query I rowsort
SELECT + 78 + - 93 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT + MAX( + 20 ) - + 19 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-968
SELECT + MAX ( + 20 ) - + 19 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-969
SELECT ALL CASE - 8 WHEN + CASE - CAST( - 78 AS DECIMAL ) WHEN + 96 THEN 83 WHEN - - 54 + ( 65 ) THEN NULL END * 10 - + 15 * - + ( NULLIF ( + COUNT( * ), AVG ( - - 89 ) ) ) THEN NULL WHEN - + COUNT( * ) THEN - + COUNT( * ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL CASE - 8 WHEN + CASE - CAST ( - 78 AS REAL ) WHEN + 96 THEN 83 WHEN - - 54 + ( 65 ) THEN NULL END * 10 - + 15 * - + ( NULLIF ( + COUNT ( * ), AVG ( - - 89 ) ) ) THEN NULL WHEN - + COUNT ( * ) THEN - + COUNT ( * ) ELSE NULL END col2
----
NULL

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

skipif mysql # not compatible
query II rowsort label-970
SELECT DISTINCT - COUNT ( * ) col2, + 91 / - + 81 * - - CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT 43 * NULLIF ( + + 69, ( - 23 ) + + + MAX( - 87 ) + + - 29 * + 67 )
----
2967

skipif mysql # not compatible
query I rowsort label-971
SELECT 43 * NULLIF ( + + 69, ( - 23 ) + + + MAX ( - 87 ) + + - 29 * + 67 )
----
2967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-972
SELECT DISTINCT - COALESCE ( - + COUNT( * ), + 19, + COALESCE ( 25, CASE - 6 WHEN - 84 THEN + 68 - - CAST( - 37 AS SIGNED ) WHEN - 16 * - + 33 * - - 38 THEN NULL END, - SUM( - + 64 ) * 82 * MIN( ALL - 70 ) ), - 62 - 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-972
SELECT DISTINCT - COALESCE ( - + COUNT ( * ), + 19, + COALESCE ( 25, CASE - 6 WHEN - 84 THEN + 68 - - CAST ( - 37 AS INTEGER ) WHEN - 16 * - + 33 * - - 38 THEN NULL END, - SUM ( - + 64 ) * 82 * MIN ( ALL - 70 ) ), - 62 - 93 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-973
SELECT ALL - 63 AS col1, 56 + MAX( - 96 ) AS col2
----
-63
-40

skipif mysql # not compatible
query II rowsort label-973
SELECT ALL - 63 AS col1, 56 + MAX ( - 96 ) AS col2
----
-63
-40

query I rowsort
SELECT 22 * + 98 AS col0
----
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT DISTINCT 83 * + MIN( ALL - 81 ) AS col2
----
-6723

skipif mysql # not compatible
query I rowsort label-975
SELECT DISTINCT 83 * + MIN ( ALL - 81 ) AS col2
----
-6723

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-976
SELECT DISTINCT 1 * CAST( NULL AS SIGNED ) AS col1, 22
----
NULL
22

skipif mysql # not compatible
query II rowsort label-976
SELECT DISTINCT 1 * CAST ( NULL AS INTEGER ) AS col1, 22
----
NULL
22

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT DISTINCT ( + - 54 ) * MIN( + 69 ) * + ( + - NULLIF ( 79, 12 * - - 66 ) ) col0
----
294354

skipif mysql # not compatible
query I rowsort label-977
SELECT DISTINCT ( + - 54 ) * MIN ( + 69 ) * + ( + - NULLIF ( 79, 12 * - - 66 ) ) col0
----
294354

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-978
SELECT ALL 82 + + 89 AS col2, + 17 * 1 DIV - COUNT( * )
----
171
-17

skipif mysql # not compatible
query II rowsort label-978
SELECT ALL 82 + + 89 AS col2, + 17 * 1 / - COUNT ( * )
----
171
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-979
SELECT MAX( + 29 ) * + 66 * - 11 - - + CAST( COALESCE ( - NULLIF ( - - COUNT( * ), - 72 ), + 47, + - ( - - 66 ) + + + MAX( - 34 ) ) AS SIGNED )
----
-21055

skipif mysql # not compatible
query I rowsort label-979
SELECT MAX ( + 29 ) * + 66 * - 11 - - + CAST ( COALESCE ( - NULLIF ( - - COUNT ( * ), - 72 ), + 47, + - ( - - 66 ) + + + MAX ( - 34 ) ) AS INTEGER )
----
-21055

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT ALL - COALESCE ( - 29, - - MAX( - - 81 ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL - COALESCE ( - 29, - - MAX ( - - 81 ) ) AS col2
----
29

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

skipif mysql # not compatible
query I rowsort label-981
SELECT + SUM ( ALL CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT ALL + 28 + COUNT( - 12 ) * - ( + + 18 ) * + COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL + 28 + COUNT ( - 12 ) * - ( + + 18 ) * + COUNT ( * ) AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-983
SELECT 80 * - 42 DIV - COUNT( * ) AS col0
----
3360

skipif mysql # not compatible
query I rowsort label-983
SELECT 80 * - 42 / - COUNT ( * ) AS col0
----
3360

onlyif mysql # DIV for integer division: 
query I rowsort label-984
SELECT DISTINCT 75 DIV - 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT 75 / - 82 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT + 81 * - MIN( ALL - 5 ) + + 58
----
463

skipif mysql # not compatible
query I rowsort label-985
SELECT + 81 * - MIN ( ALL - 5 ) + + 58
----
463

query I rowsort
SELECT - 17 + 17 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT + COALESCE ( - COALESCE ( + 27, COUNT( * ) * - 1, + + 19 ), COUNT( * ) - + 38 + - + 88 + + 58 * 17 * ( + COUNT( * ) ) * - + 54 * 54 + + 29 - - 2 + ( - 88 ) * - - 32 ) * + COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-987
SELECT + COALESCE ( - COALESCE ( + 27, COUNT ( * ) * - 1, + + 19 ), COUNT ( * ) - + 38 + - + 88 + + 58 * 17 * ( + COUNT ( * ) ) * - + 54 * 54 + + 29 - - 2 + ( - 88 ) * - - 32 ) * + COUNT ( * ) AS col2
----
-27

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

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

query I rowsort
SELECT DISTINCT - 65 * + 20
----
-1300

query II rowsort
SELECT DISTINCT + - 48 - - 89 AS col0, 85 + + 6 + 40
----
41
131

query I rowsort
SELECT DISTINCT - NULLIF ( + 68, 62 ) AS col0
----
-68

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

skipif mysql # not compatible
query I rowsort label-992
SELECT + 66 + - 30 + - 60 * - COUNT ( * ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT DISTINCT - MAX( - 32 ) / CASE - 6 WHEN ( - + 80 ) THEN - - 15 ELSE NULL END * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT - MAX ( - 32 ) / CASE - 6 WHEN ( - + 80 ) THEN - - 15 ELSE NULL END * + 6
----
NULL

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

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

query I rowsort
SELECT - + 85 + - 47
----
-132

query I rowsort
SELECT - + 36 * 2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-997
SELECT ALL + 25 + + 50 DIV + 60 + - 37 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL + 25 + + 50 / + 60 + - 37 AS col1
----
-12

query I rowsort
SELECT - ( - 44 ) + + - NULLIF ( 99, 71 + + 94 ) AS col0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-999
SELECT - 95 DIV - 68
----
1

skipif mysql # not compatible
query I rowsort label-999
SELECT - 95 / - 68
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-1000
SELECT 95 DIV 35 + - 33, NULLIF ( - - 35, + AVG ( DISTINCT 60 ) * - 28 ) AS col2
----
-31
35

skipif mysql # not compatible
query II rowsort label-1000
SELECT 95 / 35 + - 33, NULLIF ( - - 35, + AVG ( DISTINCT 60 ) * - 28 ) AS col2
----
-31
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1001
SELECT COALESCE ( - + 44, - + 41 - + + COUNT( + 49 ) + 62 * - - 55 + + - ( - COUNT( * ) ) DIV + - 2 + + COUNT( * ) - - - CAST( NULL AS SIGNED ) )
----
-44

skipif mysql # not compatible
query I rowsort label-1001
SELECT COALESCE ( - + 44, - + 41 - + + COUNT ( + 49 ) + 62 * - - 55 + + - ( - COUNT ( * ) ) / + - 2 + + COUNT ( * ) - - - CAST ( NULL AS INTEGER ) )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1002
SELECT + CASE - - 49 WHEN + COUNT( * ) THEN 16 + - COUNT( * ) + - + 37 ELSE NULL END + + + 39 - + + CAST( ( + COUNT( DISTINCT - + 34 ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1002
SELECT + CASE - - 49 WHEN + COUNT ( * ) THEN 16 + - COUNT ( * ) + - + 37 ELSE NULL END + + + 39 - + + CAST ( ( + COUNT ( DISTINCT - + 34 ) ) AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL + 16, 66 - - 80 * 41 + - 78 AS col1
----
16
3268

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT ALL + COALESCE ( 27, 12, + - 66 * + - COUNT( - 76 ) + MIN( DISTINCT + 51 ) ) * + 54 + ( 54 )
----
1512

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL + COALESCE ( 27, 12, + - 66 * + - COUNT ( - 76 ) + MIN ( DISTINCT + 51 ) ) * + 54 + ( 54 )
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT + SUM( + 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-1005
SELECT + SUM ( + 5 ) AS col2
----
5

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

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

query I rowsort
SELECT ALL 98 * 2 - + 55
----
141

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1009
SELECT ALL 40 DIV 39 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL 40 / 39 AS col1
----
1

query I rowsort
SELECT ALL 46 * - 23 AS col0
----
-1058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1011
SELECT DISTINCT 60 * - + 16 * + CAST( NULL AS SIGNED ) - + - 63 + + 61 * 2 * - 29 * - 9 + - 77 + - SUM( DISTINCT - 78 ) / - + 14 * - + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT 60 * - + 16 * + CAST ( NULL AS INTEGER ) - + - 63 + + 61 * 2 * - 29 * - 9 + - 77 + - SUM ( DISTINCT - 78 ) / - + 14 * - + 41 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1012
SELECT + SUM ( - ( 75 ) )
----
-75

query I rowsort
SELECT DISTINCT 34 * + 61
----
2074

query I rowsort
SELECT + 4 * 93 * - 68 AS col2
----
-25296

query I rowsort
SELECT + 75 * + 34
----
2550

query I rowsort
SELECT - 80 * + 1 AS col0
----
-80

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1018
SELECT ALL - - 11 * + 75 - 62 * - 35 * - COUNT( 12 ) * + COUNT( * ) + + + COALESCE ( - - 62, 44 + + 13 - 78 DIV 47 * + CASE + 72 WHEN + + 98 THEN - + COUNT( * ) ELSE + 50 END * + 99 )
----
-1283

skipif mysql # not compatible
query I rowsort label-1018
SELECT ALL - - 11 * + 75 - 62 * - 35 * - COUNT ( 12 ) * + COUNT ( * ) + + + COALESCE ( - - 62, 44 + + 13 - 78 / 47 * + CASE + 72 WHEN + + 98 THEN - + COUNT ( * ) ELSE + 50 END * + 99 )
----
-1283

query I rowsort
SELECT + 24 * 92
----
2208

query I rowsort
SELECT DISTINCT - 14 * 51 + - 29
----
-743

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT DISTINCT MAX( - 92 ) col1
----
-92

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT MAX ( - 92 ) col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT - + 75 + - + 87 - + COUNT( * ) + 64 * - - 14 AS col0
----
733

skipif mysql # not compatible
query I rowsort label-1022
SELECT - + 75 + - + 87 - + COUNT ( * ) + 64 * - - 14 AS col0
----
733

onlyif mysql # DIV for integer division: 
query I rowsort label-1023
SELECT ALL - 70 DIV 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL - 70 / 85 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT DISTINCT 38 * - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT 38 * - COUNT ( * )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1025
SELECT - CAST( + ( + - SUM( DISTINCT - - 70 ) ) AS SIGNED ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-1025
SELECT - CAST ( + ( + - SUM ( DISTINCT - - 70 ) ) AS INTEGER ) AS col0
----
70

query I rowsort
SELECT + + 31 - + 10
----
21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL - COUNT( * ) * - 14 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL - COUNT ( * ) * - 14 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT + - 15 * MIN( DISTINCT 35 ) col0
----
-525

skipif mysql # not compatible
query I rowsort label-1029
SELECT + - 15 * MIN ( DISTINCT 35 ) col0
----
-525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1030
SELECT ALL 96 + - + COALESCE ( + CAST( NULL AS SIGNED ), 50 * CAST( NULL AS SIGNED ) * - 2 * - - 14 * 97 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL 96 + - + COALESCE ( + CAST ( NULL AS INTEGER ), 50 * CAST ( NULL AS INTEGER ) * - 2 * - - 14 * 97 ) col2
----
NULL

query I rowsort
SELECT - + ( - - CASE - 78 WHEN + 45 THEN NULL ELSE + - 91 END ) AS col0
----
91

query I rowsort
SELECT ALL + - 45 + 23 + - 6 col1
----
-28

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1034
SELECT ALL 23 + - 54 * + + 6 * + COALESCE ( ( COUNT( * ) ), + CAST( NULL AS SIGNED ), + - 47 )
----
-301

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL 23 + - 54 * + + 6 * + COALESCE ( ( COUNT ( * ) ), + CAST ( NULL AS INTEGER ), + - 47 )
----
-301

query I rowsort
SELECT - 62 * - 88 AS col2
----
5456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1036
SELECT DISTINCT + - 32 DIV + - COUNT( ALL 99 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT + - 32 / + - COUNT ( ALL 99 ) AS col1
----
32

query I rowsort
SELECT ALL - - 70 + - 49 AS col0
----
21

query I rowsort
SELECT ALL + 27 + + 71 * + 81
----
5778

query I rowsort
SELECT - 12 * + - 92
----
1104

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

query II rowsort
SELECT - 89 * 2 col1, 63 * - 85 + - 42 AS col2
----
-178
-5397

onlyif mysql # DIV for integer division: 
query I rowsort label-1042
SELECT - 94 + 8 DIV - 91
----
-94

skipif mysql # not compatible
query I rowsort label-1042
SELECT - 94 + 8 / - 91
----
-94

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

query II rowsort
SELECT DISTINCT + 94, 99 AS col2
----
94
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1045
SELECT ALL 19 DIV - 44 * - ( + 21 ) - - 63 + + 17 + - + 83 DIV + - 74 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL 19 / - 44 * - ( + 21 ) - - 63 + + 17 + - + 83 / + - 74 AS col0
----
81

query I rowsort
SELECT - 58 * - + 79 * + + 43 * - 2
----
-394052

onlyif mysql # aggregate syntax: 
query III rowsort label-1047
SELECT + SUM( - + 32 ) AS col1, + 52 - COUNT( * ), + + 65 col1
----
-32
51
65

skipif mysql # not compatible
query III rowsort label-1047
SELECT + SUM ( - + 32 ) AS col1, + 52 - COUNT ( * ), + + 65 col1
----
-32
51
65

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

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

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

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

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

query II rowsort
SELECT - 22 * + - 50 * ( 91 ) AS col2, + 8 * - + 13
----
100100
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1052
SELECT CAST( CASE - 44 WHEN - 80 * - 48 * 37 * 54 + - 57 THEN 34 / + + COUNT( * ) END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1052
SELECT CAST ( CASE - 44 WHEN - 80 * - 48 * 37 * 54 + - 57 THEN 34 / + + COUNT ( * ) END AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT + MAX( - 24 ) * 96 - + 7 - + - COUNT( * ) AS col2
----
-2310

skipif mysql # not compatible
query I rowsort label-1053
SELECT + MAX ( - 24 ) * 96 - + 7 - + - COUNT ( * ) AS col2
----
-2310

query I rowsort
SELECT ( - - ( 9 ) )
----
9

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1056
SELECT + 81 * COUNT( * ) AS col1, ( - - 51 ) AS col2
----
81
51

skipif mysql # not compatible
query II rowsort label-1056
SELECT + 81 * COUNT ( * ) AS col1, ( - - 51 ) AS col2
----
81
51

onlyif mysql # aggregate syntax: 
query II rowsort label-1057
SELECT - CASE - 96 WHEN COUNT( * ) * + 48 THEN - + 69 - + - 35 ELSE + COUNT( * ) - - - 89 END * - + 33, 0 AS col0
----
-2904
0

skipif mysql # not compatible
query II rowsort label-1057
SELECT - CASE - 96 WHEN COUNT ( * ) * + 48 THEN - + 69 - + - 35 ELSE + COUNT ( * ) - - - 89 END * - + 33, 0 AS col0
----
-2904
0

query I rowsort
SELECT - 51 + + 66 AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-1059
SELECT ALL + 25 col1, 8 * - CASE - + 99 WHEN - COUNT( * ) + + 28 * 98 THEN NULL WHEN - 14 THEN + ( + COUNT( * ) ) END
----
25
NULL

skipif mysql # not compatible
query II rowsort label-1059
SELECT ALL + 25 col1, 8 * - CASE - + 99 WHEN - COUNT ( * ) + + 28 * 98 THEN NULL WHEN - 14 THEN + ( + COUNT ( * ) ) END
----
25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT DISTINCT + NULLIF ( - 86, - COUNT( * ) )
----
-86

skipif mysql # not compatible
query I rowsort label-1060
SELECT DISTINCT + NULLIF ( - 86, - COUNT ( * ) )
----
-86

query I rowsort
SELECT ALL 38 * - 76 * - 95 AS col2
----
274360

onlyif mysql # DIV for integer division: 
query I rowsort label-1062
SELECT + 8 DIV - 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1062
SELECT + 8 / - 77 AS col0
----
0

query I rowsort
SELECT ALL + 85 * + - 13 * - 71 AS col2
----
78455

onlyif mysql # aggregate syntax: 
query II rowsort label-1064
SELECT + COUNT( * ) AS col2, COUNT( * ) * + - 67 + + 56
----
1
-11

skipif mysql # not compatible
query II rowsort label-1064
SELECT + COUNT ( * ) AS col2, COUNT ( * ) * + - 67 + + 56
----
1
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1065
SELECT ALL - 15 * MIN( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL - 15 * MIN ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1066
SELECT + + 4 DIV 97, 9 * + - 56 + - + COUNT( * ) DIV - 42 AS col0
----
0
-504

skipif mysql # not compatible
query II rowsort label-1066
SELECT + + 4 / 97, 9 * + - 56 + - + COUNT ( * ) / - 42 AS col0
----
0
-504

query II rowsort
SELECT + 49 + - 9, + 43 col1
----
40
43

query I rowsort
SELECT ALL + 41 * - 37 col2
----
-1517

query I rowsort
SELECT - + ( + COALESCE ( + - 83, - + 26 ) ) AS col1
----
83

query I rowsort
SELECT 49 * - 96 * + + 26
----
-122304

query I rowsort
SELECT ALL - 24 + - 56 + - 23 AS col2
----
-103

query I rowsort
SELECT - - 70 * 61 + 69
----
4339

onlyif mysql # aggregate syntax: 
query II rowsort label-1073
SELECT + ( MIN( ( - NULLIF ( + + 88, + 85 ) ) ) ) col1, - 3
----
-88
-3

skipif mysql # not compatible
query II rowsort label-1073
SELECT + ( MIN ( ( - NULLIF ( + + 88, + 85 ) ) ) ) col1, - 3
----
-88
-3

query I rowsort
SELECT DISTINCT + 91 + - ( + 66 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1075
SELECT CAST( + 60 AS DECIMAL ) + + 67 / - 19 * - CASE + - 95 WHEN - 96 THEN 44 END + + MAX( DISTINCT - 36 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1075
SELECT CAST ( + 60 AS REAL ) + + 67 / - 19 * - CASE + - 95 WHEN - 96 THEN 44 END + + MAX ( DISTINCT - 36 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1076
SELECT ALL - MAX( + COALESCE ( + ( + 60 ), 20 ) ) * 7 * COUNT( * ), 48 AS col2
----
-420
48

skipif mysql # not compatible
query II rowsort label-1076
SELECT ALL - MAX ( + COALESCE ( + ( + 60 ), 20 ) ) * 7 * COUNT ( * ), 48 AS col2
----
-420
48

query I rowsort
SELECT ALL 63 + + 69
----
132

query II rowsort
SELECT 29 AS col2, + 72
----
29
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1079
SELECT COUNT( * ) + 34 + + + CAST( NULL AS SIGNED ) * - + 7 AS col2
----
NULL

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

query II rowsort
SELECT - 9 AS col1, 71
----
-9
71

query I rowsort
SELECT - 13 + - - 26 AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1082
SELECT ALL 83 * 37 * + + ( - 15 ) * - 60 AS col2, 90 + - 1 + + 37 * - + 59 + + - 81 + - COALESCE ( + 73, - 98 * 20 + - 22 ) + CAST( - - 27 AS SIGNED ) DIV + COUNT( * ) AS col2
----
2763900
-2221

skipif mysql # not compatible
query II rowsort label-1082
SELECT ALL 83 * 37 * + + ( - 15 ) * - 60 AS col2, 90 + - 1 + + 37 * - + 59 + + - 81 + - COALESCE ( + 73, - 98 * 20 + - 22 ) + CAST ( - - 27 AS INTEGER ) / + COUNT ( * ) AS col2
----
2763900
-2221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1083
SELECT COALESCE ( + 2, + 90 + - + SUM( - CAST( NULL AS SIGNED ) ) ) + + - 79
----
-77

skipif mysql # not compatible
query I rowsort label-1083
SELECT COALESCE ( + 2, + 90 + - + SUM ( - CAST ( NULL AS INTEGER ) ) ) + + - 79
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1084
SELECT 81 * + 97 / + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1084
SELECT 81 * + 97 / + + CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT 55 + 35 AS col2, 34 AS col2
----
90
34

query I rowsort
SELECT ALL - 60 - + - 42
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT ( 3 ) + - - COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1087
SELECT ( 3 ) + - - COUNT ( * ) AS col2
----
4

query I rowsort
SELECT ALL + 96 - - 4 - + - 22 AS col1
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-1089
SELECT 71 * + + 5 * ( ( + - 64 ) ), MAX( - 14 ) * + 38 * 38 AS col2
----
-22720
-20216

skipif mysql # not compatible
query II rowsort label-1089
SELECT 71 * + + 5 * ( ( + - 64 ) ), MAX ( - 14 ) * + 38 * 38 AS col2
----
-22720
-20216

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT DISTINCT 82 * + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT 82 * + COUNT ( * )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1091
SELECT ALL + 97 - + 53 AS col0, + CAST( + COUNT( * ) AS SIGNED ) * 96 DIV + - 45 col0
----
44
-2

skipif mysql # not compatible
query II rowsort label-1091
SELECT ALL + 97 - + 53 AS col0, + CAST ( + COUNT ( * ) AS INTEGER ) * 96 / + - 45 col0
----
44
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1092
SELECT CAST( + 95 AS SIGNED ) DIV - 46
----
-2

skipif mysql # not compatible
query I rowsort label-1092
SELECT CAST ( + 95 AS INTEGER ) / - 46
----
-2

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

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

query II rowsort
SELECT 6 * 96 AS col1, 15 * 27
----
576
405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1095
SELECT + 8 * - 14 * - - 13 + CASE + - 97 WHEN + SUM( - 72 ) THEN - MAX( DISTINCT 1 ) + + COUNT( * ) / CAST( - COALESCE ( + 43, 77 + + 40 ) AS SIGNED ) END * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1095
SELECT + 8 * - 14 * - - 13 + CASE + - 97 WHEN + SUM ( - 72 ) THEN - MAX ( DISTINCT 1 ) + + COUNT ( * ) / CAST ( - COALESCE ( + 43, 77 + + 40 ) AS INTEGER ) END * - 80
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1096
SELECT COUNT( * ) - - + 39 DIV 27 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1096
SELECT COUNT ( * ) - - + 39 / 27 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1097
SELECT DISTINCT + CAST( - 23 AS SIGNED ) * - 67 AS col1
----
1541

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT + CAST ( - 23 AS INTEGER ) * - 67 AS col1
----
1541

query I rowsort
SELECT ALL + 36 * + + 6 + 0
----
216

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT + - MIN( DISTINCT - 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1100
SELECT + - MIN ( DISTINCT - 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT - 87 * 19 + - COUNT( * )
----
-1654

skipif mysql # not compatible
query I rowsort label-1101
SELECT - 87 * 19 + - COUNT ( * )
----
-1654

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

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

query I rowsort
SELECT ALL - + 3 + + 92 AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1104
SELECT - 95 + + - 53 + 38 * - CAST( - 33 AS SIGNED ) * - COUNT( * ) AS col2
----
-1402

skipif mysql # not compatible
query I rowsort label-1104
SELECT - 95 + + - 53 + 38 * - CAST ( - 33 AS INTEGER ) * - COUNT ( * ) AS col2
----
-1402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1105
SELECT 66 * - + CASE - 27 WHEN CAST( - - COUNT( * ) AS SIGNED ) * - COALESCE ( + - 32, - 70 + + 33 DIV - 98 * 53 ) THEN COUNT( * ) ELSE 57 DIV + COUNT( * ) END AS col0
----
-3762

skipif mysql # not compatible
query I rowsort label-1105
SELECT 66 * - + CASE - 27 WHEN CAST ( - - COUNT ( * ) AS INTEGER ) * - COALESCE ( + - 32, - 70 + + 33 / - 98 * 53 ) THEN COUNT ( * ) ELSE 57 / + COUNT ( * ) END AS col0
----
-3762

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1106
SELECT ALL COUNT( * ) DIV 77 - - NULLIF ( + MAX( ALL - + 2 ), - 29 DIV - 12 * + COUNT( ALL + 73 ) * - - 50 ) + - 40 + + 89 * - ( + 69 ) - + 66 * 58
----
-10011

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL COUNT ( * ) / 77 - - NULLIF ( + MAX ( ALL - + 2 ), - 29 / - 12 * + COUNT ( ALL + 73 ) * - - 50 ) + - 40 + + 89 * - ( + 69 ) - + 66 * 58
----
-10011

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1107
SELECT ALL + - CAST( 92 AS SIGNED ) + - - 51 - CAST( 1 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL + - CAST ( 92 AS INTEGER ) + - - 51 - CAST ( 1 AS INTEGER )
----
-42

query I rowsort
SELECT ALL 52 + - + 5 AS col0
----
47

query I rowsort
SELECT DISTINCT 57 * - + 51 AS col2
----
-2907

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT DISTINCT - - 61 + - NULLIF ( COUNT( * ), - 97 )
----
60

skipif mysql # not compatible
query I rowsort label-1110
SELECT DISTINCT - - 61 + - NULLIF ( COUNT ( * ), - 97 )
----
60

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1112
SELECT - - COALESCE ( - + CAST( - 82 AS SIGNED ), - 84, 3 )
----
82

skipif mysql # not compatible
query I rowsort label-1112
SELECT - - COALESCE ( - + CAST ( - 82 AS INTEGER ), - 84, 3 )
----
82

query I rowsort
SELECT 66 + + 46 * + 71 col1
----
3332

query I rowsort
SELECT 53 * - - 51 AS col0
----
2703

onlyif mysql # DIV for integer division: 
query I rowsort label-1115
SELECT 12 * + - 20 * + 71 DIV 1
----
-17040

skipif mysql # not compatible
query I rowsort label-1115
SELECT 12 * + - 20 * + 71 / 1
----
-17040

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

skipif mysql # not compatible
query I rowsort label-1116
SELECT - COUNT ( * ) / + ( - COUNT ( * ) )
----
1

query II rowsort
SELECT 58 AS col0, 49 AS col2
----
58
49

query I rowsort
SELECT ALL 77 - 3 AS col1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1119
SELECT DISTINCT 23, - 82 * + CAST( + 41 AS SIGNED ) col2
----
23
-3362

skipif mysql # not compatible
query II rowsort label-1119
SELECT DISTINCT 23, - 82 * + CAST ( + 41 AS INTEGER ) col2
----
23
-3362

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1120
SELECT 82, - 73 * CAST( 8 AS SIGNED ) AS col0
----
82
-584

skipif mysql # not compatible
query II rowsort label-1120
SELECT 82, - 73 * CAST ( 8 AS INTEGER ) AS col0
----
82
-584

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT 6 * COUNT( * ) * + MAX( - ( + 35 ) ) AS col0
----
-210

skipif mysql # not compatible
query I rowsort label-1121
SELECT 6 * COUNT ( * ) * + MAX ( - ( + 35 ) ) AS col0
----
-210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1122
SELECT DISTINCT COUNT( * ) * + - ( + - 6 ) * + 21 DIV + - COUNT( * ) col2
----
-126

skipif mysql # not compatible
query I rowsort label-1122
SELECT DISTINCT COUNT ( * ) * + - ( + - 6 ) * + 21 / + - COUNT ( * ) col2
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1123
SELECT - COUNT( * ) AS col1, 1 DIV 63 * + 21 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-1123
SELECT - COUNT ( * ) AS col1, 1 / 63 * + 21 AS col0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1124
SELECT CAST( - 32 AS SIGNED ) * + + 48, - ( + ( - 50 ) ) AS col1
----
-1536
50

skipif mysql # not compatible
query II rowsort label-1124
SELECT CAST ( - 32 AS INTEGER ) * + + 48, - ( + ( - 50 ) ) AS col1
----
-1536
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT ALL + SUM( ALL 10 ) * - + 82 + - 35 + + - 6
----
-861

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL + SUM ( ALL 10 ) * - + 82 + - 35 + + - 6
----
-861

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1126
SELECT CAST( - + 57 AS SIGNED ) DIV + 5 AS col0, COALESCE ( + 20, - 45, COUNT( * ) + 56 ) * - 24 + CAST( COUNT( * ) AS SIGNED ) + 4 DIV + + 56 * + 27
----
-11
-479

skipif mysql # not compatible
query II rowsort label-1126
SELECT CAST ( - + 57 AS INTEGER ) / + 5 AS col0, COALESCE ( + 20, - 45, COUNT ( * ) + 56 ) * - 24 + CAST ( COUNT ( * ) AS INTEGER ) + 4 / + + 56 * + 27
----
-11
-479

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT DISTINCT COUNT( DISTINCT - + 83 ) * + 59
----
59

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT COUNT ( DISTINCT - + 83 ) * + 59
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1128
SELECT 9 DIV + COUNT( * ) col1
----
9

skipif mysql # not compatible
query I rowsort label-1128
SELECT 9 / + COUNT ( * ) col1
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1129
SELECT ALL - AVG ( 41 ) * + 43 * AVG ( - 7 ) * - CAST( NULL AS DECIMAL ) * - 87 + 98, 54 * - 56 + - 73 AS col1
----
NULL
-3097

skipif mysql # not compatible
query II rowsort label-1129
SELECT ALL - AVG ( 41 ) * + 43 * AVG ( - 7 ) * - CAST ( NULL AS REAL ) * - 87 + 98, 54 * - 56 + - 73 AS col1
----
NULL
-3097

query I rowsort
SELECT ALL 27 * - 51 col1
----
-1377

onlyif mysql # DIV for integer division: 
query I rowsort label-1131
SELECT 86 DIV 84
----
1

skipif mysql # not compatible
query I rowsort label-1131
SELECT 86 / 84
----
1

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

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

query II rowsort
SELECT - 52 AS col0, + 80 AS col0
----
-52
80

onlyif mysql # aggregate syntax: 
query II rowsort label-1134
SELECT - 13 * - + CASE - 70 WHEN 68 THEN - 91 WHEN 46 THEN NULL ELSE + COUNT( + 92 ) + - - 43 + 57 END * - 16, + 84 AS col2
----
-21008
84

skipif mysql # not compatible
query II rowsort label-1134
SELECT - 13 * - + CASE - 70 WHEN 68 THEN - 91 WHEN 46 THEN NULL ELSE + COUNT ( + 92 ) + - - 43 + 57 END * - 16, + 84 AS col2
----
-21008
84

query I rowsort
SELECT ALL + 19 * + - 18 + 14
----
-328

query II rowsort
SELECT DISTINCT + 47, + 5 AS col0
----
47
5

query I rowsort
SELECT - 83 + + 14
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT MAX( DISTINCT + + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-1138
SELECT MAX ( DISTINCT + + 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT ALL + NULLIF ( COUNT( * ), - MIN( + - 45 ) ) * + 99
----
99

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL + NULLIF ( COUNT ( * ), - MIN ( + - 45 ) ) * + 99
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1140
SELECT + 70 AS col1, - 72 * + + 77 - + COUNT( * ) AS col0
----
70
-5545

skipif mysql # not compatible
query II rowsort label-1140
SELECT + 70 AS col1, - 72 * + + 77 - + COUNT ( * ) AS col0
----
70
-5545

query I rowsort
SELECT - + 3 + 99 * - 77 AS col2
----
-7626

query II rowsort
SELECT 21, 87 * + 3 AS col1
----
21
261

query II rowsort
SELECT + 20, 80 + + 85 AS col0
----
20
165

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT ALL + 81 * - MIN( - + 69 ) AS col2
----
5589

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL + 81 * - MIN ( - + 69 ) AS col2
----
5589

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT ALL + NULLIF ( 19, + SUM( DISTINCT - 64 ) )
----
19

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL + NULLIF ( 19, + SUM ( DISTINCT - 64 ) )
----
19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT 42 * - MIN( - 85 ) + + CASE 64 WHEN + - 95 / - ( - 75 ) THEN - 32 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1147
SELECT 42 * - MIN ( - 85 ) + + CASE 64 WHEN + - 95 / - ( - 75 ) THEN - 32 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT DISTINCT - - 46 - - 35 + + - 16 * + COUNT( * ) * - 69 * COUNT( * ) AS col1
----
1185

skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT - - 46 - - 35 + + - 16 * + COUNT ( * ) * - 69 * COUNT ( * ) AS col1
----
1185

query I rowsort
SELECT DISTINCT NULLIF ( + 79, + + 36 ) AS col0
----
79

query I rowsort
SELECT DISTINCT - 96 - - - 26 AS col1
----
-122

query II rowsort
SELECT ALL ( + 14 ) AS col0, 88 AS col0
----
14
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT - COUNT( * ) + 59 + 80
----
138

skipif mysql # not compatible
query I rowsort label-1152
SELECT - COUNT ( * ) + 59 + 80
----
138

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

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

query I rowsort
SELECT - 82 * 53
----
-4346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1155
SELECT + 88 * NULLIF ( + + CAST( NULL AS SIGNED ), + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1155
SELECT + 88 * NULLIF ( + + CAST ( NULL AS INTEGER ), + 67 )
----
NULL

query I rowsort
SELECT - 0 + 25 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT - ( 8 ) * + + CASE - 5 WHEN COUNT( * ) + - 38 THEN - 63 ELSE NULL END * + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1157
SELECT - ( 8 ) * + + CASE - 5 WHEN COUNT ( * ) + - 38 THEN - 63 ELSE NULL END * + 51 AS col2
----
NULL

query I rowsort
SELECT + 64 * - 21 * + - 25
----
33600

query I rowsort
SELECT + 82 - - 22 AS col0
----
104

query I rowsort
SELECT DISTINCT + 25 * 18
----
450

query I rowsort
SELECT ALL + 7 + + 33 * + - 35 - 41
----
-1189

query I rowsort
SELECT DISTINCT ( - 78 ) AS col2
----
-78

query I rowsort
SELECT + 22 + ( + 73 )
----
95

query I rowsort
SELECT - 92 * 5 AS col0
----
-460

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1167
SELECT DISTINCT + 79 DIV 86 - 46 + + - COUNT( * ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT + 79 / 86 - 46 + + - COUNT ( * ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT ALL + - COALESCE ( - 32, - 5, + 49, 0 * + MIN( ALL - 90 ) + + - COUNT( * ) + - COUNT( * ) * + + 92 * - 11 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL + - COALESCE ( - 32, - 5, + 49, 0 * + MIN ( ALL - 90 ) + + - COUNT ( * ) + - COUNT ( * ) * + + 92 * - 11 ) AS col1
----
32

query I rowsort
SELECT 32 * - 30 + + NULLIF ( + - 2, 47 ) AS col2
----
-962

onlyif mysql # aggregate syntax: 
query II rowsort label-1170
SELECT + MAX( - 5 ) * + 52 * - 42 + - 78 + - - 67 * + + 90, - 17 * - 89 AS col0
----
16872
1513

skipif mysql # not compatible
query II rowsort label-1170
SELECT + MAX ( - 5 ) * + 52 * - 42 + - 78 + - - 67 * + + 90, - 17 * - 89 AS col0
----
16872
1513

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT ALL + ( CASE - - 14 WHEN - + 46 + + - 83 THEN ( COUNT( * ) ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL + ( CASE - - 14 WHEN - + 46 + + - 83 THEN ( COUNT ( * ) ) END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1173
SELECT + - COUNT( * ) + + + 53 AS col0, 53 * COUNT( * ) * + + 75 AS col1
----
52
3975

skipif mysql # not compatible
query II rowsort label-1173
SELECT + - COUNT ( * ) + + + 53 AS col0, 53 * COUNT ( * ) * + + 75 AS col1
----
52
3975

onlyif mysql # DIV for integer division: 
query I rowsort label-1174
SELECT ALL - - 31 DIV - 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1174
SELECT ALL - - 31 / - 58 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1175
SELECT + + CAST( + 96 AS SIGNED ) + + ( - SUM( 99 ) ) col2, - CASE WHEN ( NULL ) IS NULL THEN + CAST( NULL AS DECIMAL ) ELSE + - 24 / - - 45 / + 54 END / - SUM( DISTINCT 68 ) / - 77 * - 72 AS col1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1175
SELECT + + CAST ( + 96 AS INTEGER ) + + ( - SUM ( 99 ) ) col2, - CASE WHEN ( NULL ) IS NULL THEN + CAST ( NULL AS REAL ) ELSE + - 24 / - - 45 / + 54 END / - SUM ( DISTINCT 68 ) / - 77 * - 72 AS col1
----
-3
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1176
SELECT ALL 63 DIV + SUM( + - 14 )
----
-4

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL 63 / + SUM ( + - 14 )
----
-4

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT + 47 * CASE + MAX( DISTINCT - 16 ) WHEN - + 49 THEN NULL WHEN + - 12 THEN NULL WHEN 17 THEN + 83 * + - 33 + 14 ELSE NULL END + + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT + 47 * CASE + MAX ( DISTINCT - 16 ) WHEN - + 49 THEN NULL WHEN + - 12 THEN NULL WHEN 17 THEN + 83 * + - 33 + 14 ELSE NULL END + + 75 AS col0
----
NULL

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

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

query I rowsort
SELECT + 6 * - NULLIF ( + + 11, - 9 ) AS col2
----
-66

query I rowsort
SELECT - 12 + + + 83
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT - 88 + - + CASE + 78 WHEN + COUNT( * ) THEN + + 12 * + + 1 / + ( + 49 ) END * - + 11 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1183
SELECT - 88 + - + CASE + 78 WHEN + COUNT ( * ) THEN + + 12 * + + 1 / + ( + 49 ) END * - + 11 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT - 82 + - 12 + - - ( - COUNT( * ) )
----
-95

skipif mysql # not compatible
query I rowsort label-1184
SELECT - 82 + - 12 + - - ( - COUNT ( * ) )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1185
SELECT ALL CAST( + CASE + 21 WHEN + 32 + COUNT( * ) THEN - 51 + 9 + + 24 WHEN - COUNT( * ) + - 45 THEN NULL END AS SIGNED ) AS col2, + 55 + - - 69
----
NULL
124

skipif mysql # not compatible
query II rowsort label-1185
SELECT ALL CAST ( + CASE + 21 WHEN + 32 + COUNT ( * ) THEN - 51 + 9 + + 24 WHEN - COUNT ( * ) + - 45 THEN NULL END AS INTEGER ) AS col2, + 55 + - - 69
----
NULL
124

onlyif mysql # aggregate syntax: 
query II rowsort label-1186
SELECT 21 AS col2, - SUM( ALL - 72 ) + - + 2 + 19 AS col2
----
21
89

skipif mysql # not compatible
query II rowsort label-1186
SELECT 21 AS col2, - SUM ( ALL - 72 ) + - + 2 + 19 AS col2
----
21
89

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1188
SELECT ALL CAST( NULL AS SIGNED ) + - 84 * + + 2 * - + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL CAST ( NULL AS INTEGER ) + - 84 * + + 2 * - + 49
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1189
SELECT 89 DIV - COUNT( * ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-1189
SELECT 89 / - COUNT ( * ) AS col2
----
-89

query I rowsort
SELECT 24 * + - 36 * - 4 * - 45
----
-155520

query I rowsort
SELECT 95 * 68 col1
----
6460

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1193
SELECT 14 DIV + ( - 67 * 79 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1193
SELECT 14 / + ( - 67 * 79 ) AS col0
----
0

query I rowsort
SELECT ALL 33 * 28 AS col0
----
924

query I rowsort
SELECT 24 * 14 AS col2
----
336

query I rowsort
SELECT ALL - 76 + 80 col2
----
4

query I rowsort
SELECT ALL 27 - - 84
----
111

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT COUNT( DISTINCT 83 ) * + 98 + + 77
----
175

skipif mysql # not compatible
query I rowsort label-1199
SELECT COUNT ( DISTINCT 83 ) * + 98 + + 77
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT SUM( + 69 ) * 89 AS col1
----
6141

skipif mysql # not compatible
query I rowsort label-1200
SELECT SUM ( + 69 ) * 89 AS col1
----
6141

query I rowsort
SELECT NULLIF ( 49, - 42 ) + 54 AS col2
----
103

query I rowsort
SELECT DISTINCT 19 * + 12
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT MAX( DISTINCT 9 ) + 6
----
15

skipif mysql # not compatible
query I rowsort label-1203
SELECT MAX ( DISTINCT 9 ) + 6
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1204
SELECT ALL NULLIF ( 17, + 77 ) DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL NULLIF ( 17, + 77 ) / 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT MIN( - 99 ) * 91
----
-9009

skipif mysql # not compatible
query I rowsort label-1205
SELECT MIN ( - 99 ) * 91
----
-9009

query I rowsort
SELECT DISTINCT 54 * + 30 AS col2
----
1620

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT + 43 * 59 + COUNT( * ) AS col2
----
2538

skipif mysql # not compatible
query I rowsort label-1208
SELECT + 43 * 59 + COUNT ( * ) AS col2
----
2538

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

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

query I rowsort
SELECT 93 + 33 * 55 AS col1
----
1908

query I rowsort
SELECT 64 * + ( + 61 )
----
3904

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1213
SELECT 9 DIV + COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-1213
SELECT 9 / + COUNT ( * ) AS col1
----
9

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

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

query I rowsort
SELECT 83 + + 24
----
107

query I rowsort
SELECT 90 * - 46
----
-4140

query I rowsort
SELECT ALL 17 + 44
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT ALL + COUNT( * ) + 48 * 89
----
4273

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL + COUNT ( * ) + 48 * 89
----
4273

query I rowsort
SELECT 5 - + 16
----
-11

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

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

query I rowsort
SELECT ALL + 7 + - 71
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1222
SELECT CAST( + 17 AS SIGNED ) + 72
----
89

skipif mysql # not compatible
query I rowsort label-1222
SELECT CAST ( + 17 AS INTEGER ) + 72
----
89

query I rowsort
SELECT 40 * + 92 AS col1
----
3680

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

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

query I rowsort
SELECT 14 + 23
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT ALL COUNT( * ) - + 40
----
-39

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL COUNT ( * ) - + 40
----
-39

query I rowsort
SELECT 86 + + 23 AS col1
----
109

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

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL - ( + COUNT ( * ) ) - 66 AS col2
----
-67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT ALL CASE COUNT( * ) WHEN - 93 THEN + 89 WHEN 94 - + AVG ( COALESCE ( 42, 12, 96, - 97 ) ) THEN 4 * - 39 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL CASE COUNT ( * ) WHEN - 93 THEN + 89 WHEN 94 - + AVG ( COALESCE ( 42, 12, 96, - 97 ) ) THEN 4 * - 39 ELSE NULL END
----
NULL

query I rowsort
SELECT 63 + + 76 * - 6 AS col1
----
-393

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

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

skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT + 43 / COUNT ( * )
----
43

query I rowsort
SELECT ALL + + 80 * - 64 - ( 36 ) AS col1
----
-5156

onlyif mysql # DIV for integer division: 
query I rowsort label-1235
SELECT + + 91 DIV + 25 + - 10
----
-7

skipif mysql # not compatible
query I rowsort label-1235
SELECT + + 91 / + 25 + - 10
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT 43 DIV 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1236
SELECT 43 / 77 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT 35 * + CASE - 78 + 67 WHEN COUNT( * ) THEN 28 + + 13 * - 8 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1238
SELECT 35 * + CASE - 78 + 67 WHEN COUNT ( * ) THEN 28 + + 13 * - 8 END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1239
SELECT ALL + 49 * - ( 99 DIV - COUNT( * ) )
----
4851

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL + 49 * - ( 99 / - COUNT ( * ) )
----
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT DISTINCT - + COUNT( * ) * + 67
----
-67

skipif mysql # not compatible
query I rowsort label-1240
SELECT DISTINCT - + COUNT ( * ) * + 67
----
-67

query I rowsort
SELECT DISTINCT 81 + 81
----
162

query I rowsort
SELECT 35 * ( + 99 )
----
3465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1243
SELECT 74 - CAST( NULL AS SIGNED ) * + NULLIF ( - ( + 62 ) * 96, + ( - CAST( + 37 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1243
SELECT 74 - CAST ( NULL AS INTEGER ) * + NULLIF ( - ( + 62 ) * 96, + ( - CAST ( + 37 AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL 71 + 51
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT 80 + + + 3 * COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-1245
SELECT 80 + + + 3 * COUNT ( * ) AS col2
----
83

query I rowsort
SELECT DISTINCT - 38 + + 43
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1247
SELECT DISTINCT 76 DIV - 57 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT 76 / - 57 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1248
SELECT ALL 41 + COUNT( * ) + 12 DIV + 48 * 85 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL 41 + COUNT ( * ) + 12 / + 48 * 85 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT ALL COUNT( * ) * + SUM( + 60 ) * 14
----
840

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL COUNT ( * ) * + SUM ( + 60 ) * 14
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT DISTINCT 70 + - - NULLIF ( 40, COUNT( * ) * NULLIF ( + 61 * 31, - COUNT( * ) * + 56 + 17 ) ) * - COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT 70 + - - NULLIF ( 40, COUNT ( * ) * NULLIF ( + 61 * 31, - COUNT ( * ) * + 56 + 17 ) ) * - COUNT ( * ) AS col2
----
30

query I rowsort
SELECT + 99 + + 16 + 41 AS col0
----
156

query I rowsort
SELECT ALL 5 + - + 24
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-1253
SELECT + 87 DIV - + 58 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1253
SELECT + 87 / - + 58 AS col1
----
-1

query I rowsort
SELECT ALL 69 - - - 57 - 26 * + 20 AS col1
----
-508

onlyif mysql # DIV for integer division: 
query I rowsort label-1255
SELECT DISTINCT 63 DIV 48 DIV 85 col1
----
0

skipif mysql # not compatible
query I rowsort label-1255
SELECT DISTINCT 63 / 48 / 85 col1
----
0

query I rowsort
SELECT ALL + 13 * + 74 AS col0
----
962

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT + - COUNT( ALL + 85 ) * + 18
----
-18

skipif mysql # not compatible
query I rowsort label-1257
SELECT + - COUNT ( ALL + 85 ) * + 18
----
-18

query I rowsort
SELECT ALL 40 * NULLIF ( + 48, 17 * + 8 )
----
1920

onlyif mysql # DIV for integer division: 
query I rowsort label-1259
SELECT + 10 * 62 DIV 66
----
9

skipif mysql # not compatible
query I rowsort label-1259
SELECT + 10 * 62 / 66
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT - - CASE + NULLIF ( 35, - 57 * - 97 ) WHEN - 48 THEN 51 WHEN + MAX( + COALESCE ( 59, - 2 ) ) THEN + 69 ELSE + 20 END
----
20

skipif mysql # not compatible
query I rowsort label-1260
SELECT - - CASE + NULLIF ( 35, - 57 * - 97 ) WHEN - 48 THEN 51 WHEN + MAX ( + COALESCE ( 59, - 2 ) ) THEN + 69 ELSE + 20 END
----
20

query I rowsort
SELECT + 23 - 43
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT + MIN( ALL - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-1262
SELECT + MIN ( ALL - 71 )
----
-71

query I rowsort
SELECT - 97 * - + 65
----
6305

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT ALL - 53 * - COUNT( * ) + 42 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-1264
SELECT ALL - 53 * - COUNT ( * ) + 42 AS col1
----
95

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

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

query I rowsort
SELECT - AVG ( DISTINCT + CASE 73 WHEN 20 + - 19 THEN NULL WHEN - 41 THEN + 95 ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 24 * 37
----
888

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

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

query I rowsort
SELECT ALL + + 12 * 29 AS col2
----
348

query I rowsort
SELECT + - 23 + 72 * - 41
----
-2975

onlyif mysql # DIV for integer division: 
query I rowsort label-1271
SELECT 18 DIV 17 - - 96 * 28
----
2689

skipif mysql # not compatible
query I rowsort label-1271
SELECT 18 / 17 - - 96 * 28
----
2689

query I rowsort
SELECT ALL + + ( - 87 ) col0
----
-87

query I rowsort
SELECT DISTINCT 85 * + 34 + + NULLIF ( 44, CASE 2 WHEN - 6 + - 79 * 21 THEN + 26 END )
----
2934

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1274
SELECT ALL 53 * CAST( - 82 AS SIGNED ) * - 93 + 61 col0
----
404239

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL 53 * CAST ( - 82 AS INTEGER ) * - 93 + 61 col0
----
404239

query I rowsort
SELECT - ( - - 84 ) + 48 + 33 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT COALESCE ( COUNT( * ), + 76 * + 85 )
----
1

skipif mysql # not compatible
query I rowsort label-1276
SELECT COALESCE ( COUNT ( * ), + 76 * + 85 )
----
1

query I rowsort
SELECT ALL + 79 * + 55 * + 25
----
108625

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT ALL - ( - 49 ) * + NULLIF ( COUNT( 25 ), + 66 * - COALESCE ( - 91, 79 * + 85 ) ) + 31 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL - ( - 49 ) * + NULLIF ( COUNT ( 25 ), + 66 * - COALESCE ( - 91, 79 * + 85 ) ) + 31 AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1279
SELECT - ( SUM( DISTINCT - + 32 ) ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1280
SELECT - CAST( - 17 AS SIGNED ) * - 97 + - CAST( 88 AS SIGNED ) AS col0
----
-1737

skipif mysql # not compatible
query I rowsort label-1280
SELECT - CAST ( - 17 AS INTEGER ) * - 97 + - CAST ( 88 AS INTEGER ) AS col0
----
-1737

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1281
SELECT + 58 + - CAST( - 28 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-1281
SELECT + 58 + - CAST ( - 28 AS INTEGER )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-1282
SELECT ALL + 37 * 96 + + 4 DIV 31
----
3552

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL + 37 * 96 + + 4 / 31
----
3552

onlyif mysql # aggregate syntax: 
query II rowsort label-1283
SELECT COUNT( * ), - NULLIF ( 53, + 95 ) * 20 AS col2
----
1
-1060

skipif mysql # not compatible
query II rowsort label-1283
SELECT COUNT ( * ), - NULLIF ( 53, + 95 ) * 20 AS col2
----
1
-1060

query I rowsort
SELECT - 87 - + - COALESCE ( 81, - 32 )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1285
SELECT - 46 * - - 14 DIV - ( + COUNT( * ) ) AS col2
----
644

skipif mysql # not compatible
query I rowsort label-1285
SELECT - 46 * - - 14 / - ( + COUNT ( * ) ) AS col2
----
644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1286
SELECT - 63 + + - COALESCE ( 89, 51 + 6 ) + CAST( - 58 AS SIGNED ) * 89
----
-5314

skipif mysql # not compatible
query I rowsort label-1286
SELECT - 63 + + - COALESCE ( 89, 51 + 6 ) + CAST ( - 58 AS INTEGER ) * 89
----
-5314

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT ALL + COUNT( * ) * + + SUM( 8 ) - + 10 col2
----
-2

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL + COUNT ( * ) * + + SUM ( 8 ) - + 10 col2
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT + 33 - + MAX( + 88 )
----
-55

skipif mysql # not compatible
query I rowsort label-1289
SELECT + 33 - + MAX ( + 88 )
----
-55

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1291
SELECT - 4 + - 71 + - 99 + 97 * ( + 59 ) * CAST( + 68 AS SIGNED ) AS col2
----
388990

skipif mysql # not compatible
query I rowsort label-1291
SELECT - 4 + - 71 + - 99 + 97 * ( + 59 ) * CAST ( + 68 AS INTEGER ) AS col2
----
388990

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

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

query I rowsort
SELECT - 85 * + - 66
----
5610

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT + + COUNT( * ) + + COALESCE ( ( 60 ), + 80 ) * + 67
----
4021

skipif mysql # not compatible
query I rowsort label-1294
SELECT + + COUNT ( * ) + + COALESCE ( ( 60 ), + 80 ) * + 67
----
4021

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT NULLIF ( - NULLIF ( - CASE WHEN ( - COUNT( * ) ) BETWEEN NULL AND NULL THEN 81 ELSE NULL END, + 45 ), - 50 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1295
SELECT NULLIF ( - NULLIF ( - CASE WHEN ( - COUNT ( * ) ) BETWEEN NULL AND NULL THEN 81 ELSE NULL END, + 45 ), - 50 ) AS col0
----
NULL

query I rowsort
SELECT + - 63 + 34 * - 70
----
-2443

onlyif mysql # DIV for integer division: 
query I rowsort label-1297
SELECT + 81 DIV - - 56 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1297
SELECT + 81 / - - 56 AS col1
----
1

query I rowsort
SELECT + + 88 + + 29 * - CASE 8 WHEN - 47 THEN + 74 - - 64 WHEN + 42 THEN + 42 ELSE - 6 END
----
262

query I rowsort
SELECT + - 13 + - 93 - + - 27 - 36 * 81 AS col2
----
-2995

query II rowsort
SELECT ALL 62 AS col2, + 77 AS col1
----
62
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1301
SELECT + + 38 DIV 94 * + 83
----
0

skipif mysql # not compatible
query I rowsort label-1301
SELECT + + 38 / 94 * + 83
----
0

query I rowsort
SELECT ALL - 33 + ( 91 ) + 11
----
69

query I rowsort
SELECT + 57 + + - 32 + + - 22 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1304
SELECT + ( - COUNT( * ) ) + + CAST( 23 AS SIGNED ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1304
SELECT + ( - COUNT ( * ) ) + + CAST ( 23 AS INTEGER ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT ALL MAX( - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL MAX ( - 88 )
----
-88

query II rowsort
SELECT - 96 AS col2, 23 AS col1
----
-96
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT + NULLIF ( + 10, 34 + COUNT( * ) ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-1307
SELECT + NULLIF ( + 10, 34 + COUNT ( * ) ) AS col1
----
10

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1309
SELECT DISTINCT MAX( 33 ) DIV + MAX( DISTINCT 89 ) + + 61 + - ( 99 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-1309
SELECT DISTINCT MAX ( 33 ) / + MAX ( DISTINCT 89 ) + + 61 + - ( 99 ) AS col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1310
SELECT DISTINCT + + COUNT( * ) DIV - 38 + 77 + - 5
----
72

skipif mysql # not compatible
query I rowsort label-1310
SELECT DISTINCT + + COUNT ( * ) / - 38 + 77 + - 5
----
72

query I rowsort
SELECT - 12 * + 45
----
-540

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1312
SELECT 83 DIV + - CASE + CAST( NULL AS SIGNED ) WHEN - CAST( NULL AS SIGNED ) THEN 51 * - 12 + 26 ELSE - 45 END
----
1

skipif mysql # not compatible
query I rowsort label-1312
SELECT 83 / + - CASE + CAST ( NULL AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) THEN 51 * - 12 + 26 ELSE - 45 END
----
1

query I rowsort
SELECT 18 * + - 55
----
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT 8 - + - COUNT( * ) + - + 39 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-1314
SELECT 8 - + - COUNT ( * ) + - + 39 AS col0
----
-30

query I rowsort
SELECT 44 * - 10 AS col1
----
-440

query II rowsort
SELECT 15 + + 24 AS col2, 96
----
39
96

query I rowsort
SELECT 18 * - 21
----
-378

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1318
SELECT ALL - CASE 37 WHEN + + 10 THEN 25 * - 24 + CAST( NULL AS SIGNED ) DIV 63 WHEN - 90 THEN NULL WHEN 26 * 62 THEN + 5 ELSE + 14 END
----
-14

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL - CASE 37 WHEN + + 10 THEN 25 * - 24 + CAST ( NULL AS INTEGER ) / 63 WHEN - 90 THEN NULL WHEN 26 * 62 THEN + 5 ELSE + 14 END
----
-14

query I rowsort
SELECT DISTINCT - NULLIF ( ( + 34 ), - 88 / - 52 ) * - 27 AS col2
----
918

onlyif mysql # DIV for integer division: 
query I rowsort label-1320
SELECT 34 * 8 DIV + 52 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-1320
SELECT 34 * 8 / + 52 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT ALL - 85 * CASE + + ( - 74 ) WHEN MIN( 24 ) THEN NULLIF ( - NULLIF ( SUM( DISTINCT - 46 ), - 71 ), 8 ) * 14 + 36 WHEN 38 + COUNT( DISTINCT + COALESCE ( 28, + 16 + + 99, + 70 ) ) THEN 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL - 85 * CASE + + ( - 74 ) WHEN MIN ( 24 ) THEN NULLIF ( - NULLIF ( SUM ( DISTINCT - 46 ), - 71 ), 8 ) * 14 + 36 WHEN 38 + COUNT ( DISTINCT + COALESCE ( 28, + 16 + + 99, + 70 ) ) THEN 22 END
----
NULL

query I rowsort
SELECT DISTINCT + ( + 2 ) * - 44
----
-88

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

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

query I rowsort
SELECT + 54 * + - 67 + 56 + - - ( - 10 ) * 61 col0
----
-4172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1325
SELECT 59 + - COUNT( * ) DIV ( + + 51 ) + 43 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-1325
SELECT 59 + - COUNT ( * ) / ( + + 51 ) + 43 AS col2
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1326
SELECT + 83 * - 26 + + COUNT( * ) - + 96 + + 58 DIV 44
----
-2252

skipif mysql # not compatible
query I rowsort label-1326
SELECT + 83 * - 26 + + COUNT ( * ) - + 96 + + 58 / 44
----
-2252

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT CASE 18 WHEN 76 * + 2 + - ( + 34 + - 60 ) THEN 67 - 94 WHEN + ( - ( - 64 ) ) * + 37 THEN NULL WHEN COUNT( * ) * 82 THEN NULL ELSE NULL END * + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1327
SELECT CASE 18 WHEN 76 * + 2 + - ( + 34 + - 60 ) THEN 67 - 94 WHEN + ( - ( - 64 ) ) * + 37 THEN NULL WHEN COUNT ( * ) * 82 THEN NULL ELSE NULL END * + 16
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL + ( + + CAST ( + - MAX ( + 55 ) AS INTEGER ) ) AS col0
----
-55

query I rowsort
SELECT - NULLIF ( NULLIF ( - 65, + - 98 ), 40 * - 21 ) AS col1
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT DISTINCT - COUNT( ALL + - 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT - COUNT ( ALL + - 87 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT DISTINCT + COUNT( * ) + - - 76 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT + COUNT ( * ) + - - 76 AS col1
----
77

query I rowsort
SELECT 20 * + - 82 + + 40
----
-1600

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT ALL - 70 + + MIN( - 68 ) AS col2
----
-138

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL - 70 + + MIN ( - 68 ) AS col2
----
-138

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

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

query I rowsort
SELECT + 8 - 80 + - NULLIF ( - 88, + 88 ) * 43 AS col1
----
3712

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT - NULLIF ( COUNT( DISTINCT + 16 ), - 73 / 18 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1338
SELECT - NULLIF ( COUNT ( DISTINCT + 16 ), - 73 / 18 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1339
SELECT + 82 DIV + COUNT( * ) - - + 80 + + 3 AS col2
----
165

skipif mysql # not compatible
query I rowsort label-1339
SELECT + 82 / + COUNT ( * ) - - + 80 + + 3 AS col2
----
165

query I rowsort
SELECT ALL - 21 + + 2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT + 21 - + COALESCE ( 95, - 28 + COUNT( * ) )
----
-74

skipif mysql # not compatible
query I rowsort label-1341
SELECT + 21 - + COALESCE ( 95, - 28 + COUNT ( * ) )
----
-74

query I rowsort
SELECT ALL + - CASE 14 WHEN - + 69 THEN - ( 76 ) - 53 ELSE NULL END * 53 AS col1
----
NULL

query II rowsort
SELECT 89 - + + 85 AS col2, 70
----
4
70

query I rowsort
SELECT - ( 43 ) * 0 + + + 24 * 63
----
1512

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1345
SELECT DISTINCT - COALESCE ( - 78, + 60 DIV - - 22 + CAST( - 14 AS SIGNED ) DIV 14, NULLIF ( + 75, - 65 ) * - ( 82 ) + - 25 ) * - 38 col2
----
-2964

skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT - COALESCE ( - 78, + 60 / - - 22 + CAST ( - 14 AS INTEGER ) / 14, NULLIF ( + 75, - 65 ) * - ( 82 ) + - 25 ) * - 38 col2
----
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT DISTINCT 53 - - COUNT( * ) col0
----
54

skipif mysql # not compatible
query I rowsort label-1346
SELECT DISTINCT 53 - - COUNT ( * ) col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT 99 * + - COUNT( * ) * - - 12
----
-1188

skipif mysql # not compatible
query I rowsort label-1347
SELECT 99 * + - COUNT ( * ) * - - 12
----
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT ALL - MIN( DISTINCT + 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-1348
SELECT ALL - MIN ( DISTINCT + 38 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1349
SELECT - 88 / - 55 + - 53 - 79 * CASE 42 WHEN - 17 * - MIN( 65 ) THEN - SUM( - 41 ) * 9 WHEN + COALESCE ( + 63, ( 86 ) / 14, - 22 * - NULLIF ( - 78, + ( - 96 ) + + 63 ) + - CAST( + 17 AS SIGNED ) * + ( NULLIF ( 43, + COUNT( * ) * - COUNT( * ) + 95 * + COUNT( * ) ) + 90 ) ) * ( + 69 * + 82 ) - 4 THEN - 54 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1349
SELECT - 88 / - 55 + - 53 - 79 * CASE 42 WHEN - 17 * - MIN ( 65 ) THEN - SUM ( - 41 ) * 9 WHEN + COALESCE ( + 63, ( 86 ) / 14, - 22 * - NULLIF ( - 78, + ( - 96 ) + + 63 ) + - CAST ( + 17 AS INTEGER ) * + ( NULLIF ( 43, + COUNT ( * ) * - COUNT ( * ) + 95 * + COUNT ( * ) ) + 90 ) ) * ( + 69 * + 82 ) - 4 THEN - 54 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT DISTINCT 11 * - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT 11 * - COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT 18 + + - 45 + 12 + + + MAX( - 20 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-1351
SELECT 18 + + - 45 + 12 + + + MAX ( - 20 ) AS col2
----
-35

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

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

query I rowsort
SELECT ALL 46 * 1 AS col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1354
SELECT DISTINCT - MIN( - COALESCE ( + CAST( NULL AS SIGNED ), + - 82 * + 22 ) ) AS col1
----
-1804

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT - MIN ( - COALESCE ( + CAST ( NULL AS INTEGER ), + - 82 * + 22 ) ) AS col1
----
-1804

query I rowsort
SELECT ALL - CASE + 20 WHEN - - 68 THEN - 59 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1356
SELECT 86 AS col2, - COUNT( * ) * + - 62
----
86
62

skipif mysql # not compatible
query II rowsort label-1356
SELECT 86 AS col2, - COUNT ( * ) * + - 62
----
86
62

onlyif mysql # DIV for integer division: 
query II rowsort label-1357
SELECT + 97 AS col2, 78 DIV + 86 AS col2
----
97
0

skipif mysql # not compatible
query II rowsort label-1357
SELECT + 97 AS col2, 78 / + 86 AS col2
----
97
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1358
SELECT 69 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-1358
SELECT 69 / + 83
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT COALESCE ( - 25, + COUNT( * ) * 2 + - 38 - - COUNT( * ), - 40 ) + 42 col1
----
17

skipif mysql # not compatible
query I rowsort label-1360
SELECT COALESCE ( - 25, + COUNT ( * ) * 2 + - 38 - - COUNT ( * ), - 40 ) + 42 col1
----
17

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

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

query I rowsort
SELECT DISTINCT - 35 * - + 69 col2
----
2415

query I rowsort
SELECT ALL + 77 * ( - + 90 )
----
-6930

query I rowsort
SELECT ALL - 85 + 34
----
-51

query I rowsort
SELECT 86 - - 45
----
131

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1366
SELECT DISTINCT - AVG ( - - CAST( NULL AS DECIMAL ) ) * - 72 * + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT - AVG ( - - CAST ( NULL AS REAL ) ) * - 72 * + 70
----
NULL

query I rowsort
SELECT + 39 + - - 67 col2
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT DISTINCT + 83 + - - MAX( + 44 )
----
127

skipif mysql # not compatible
query I rowsort label-1368
SELECT DISTINCT + 83 + - - MAX ( + 44 )
----
127

query I rowsort
SELECT 66 + + 64 col0
----
130

query I rowsort
SELECT - CASE WHEN NOT ( NOT 78 IN ( ( 93 ) + - 14 ) ) THEN ( - 54 ) ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL + + 38 + - 42 AS col1
----
-4

query I rowsort
SELECT - 5 + + 37 AS col0
----
32

query I rowsort
SELECT 55 - 30 AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1374
SELECT - + CASE - + 26 WHEN 56 * - - 32 + 22 * CAST( + 68 AS SIGNED ) THEN - 99 WHEN - 60 - 16 * + 19 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1374
SELECT - + CASE - + 26 WHEN 56 * - - 32 + 22 * CAST ( + 68 AS INTEGER ) THEN - 99 WHEN - 60 - 16 * + 19 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT ALL + COUNT( * ) - + 94 - - ( + 5 ) * - 41 + + 93 * + 0
----
-298

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL + COUNT ( * ) - + 94 - - ( + 5 ) * - 41 + + 93 * + 0
----
-298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1376
SELECT + + NULLIF ( - 77, + 54 ) + - 65 - + SUM( ALL + CAST( - 31 AS SIGNED ) ) AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-1376
SELECT + + NULLIF ( - 77, + 54 ) + - 65 - + SUM ( ALL + CAST ( - 31 AS INTEGER ) ) AS col1
----
-111

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1378
SELECT - 5 AS col1, - 38 + - 88 + 58 + ( - 27 ) DIV - 7
----
-5
-65

skipif mysql # not compatible
query II rowsort label-1378
SELECT - 5 AS col1, - 38 + - 88 + 58 + ( - 27 ) / - 7
----
-5
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-1379
SELECT + 83 + - + 96 DIV - + 35
----
85

skipif mysql # not compatible
query I rowsort label-1379
SELECT + 83 + - + 96 / - + 35
----
85

query I rowsort
SELECT + 59 + + - 79 + - 92
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1381
SELECT - ( - 82 ) DIV 30 * + - 3 DIV + MAX( ALL + 53 ) - 69
----
-69

skipif mysql # not compatible
query I rowsort label-1381
SELECT - ( - 82 ) / 30 * + - 3 / + MAX ( ALL + 53 ) - 69
----
-69

query I rowsort
SELECT + 76 * 54
----
4104

query I rowsort
SELECT DISTINCT + 3 * + 39
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT DISTINCT - COUNT( * ) * - - 60 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-1384
SELECT DISTINCT - COUNT ( * ) * - - 60 AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-1385
SELECT ALL ( + - 17 ) DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL ( + - 17 ) / 43
----
0

query I rowsort
SELECT + 40 * 90 * + 13 col0
----
46800

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

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL + CAST ( 24 AS INTEGER ) AS col0
----
24

query I rowsort
SELECT + 17 * + - 75 AS col0
----
-1275

query II rowsort
SELECT ALL + 5, 66 AS col2
----
5
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1390
SELECT ALL ( - - 18 ) DIV 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL ( - - 18 ) / 49 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1391
SELECT - 5 DIV NULLIF ( - 67, ( - 67 ) * - 49 * - COUNT( * ) + 57 )
----
0

skipif mysql # not compatible
query I rowsort label-1391
SELECT - 5 / NULLIF ( - 67, ( - 67 ) * - 49 * - COUNT ( * ) + 57 )
----
0

query I rowsort
SELECT + COALESCE ( - + COALESCE ( + + 42, + 97 ), + 37 ) + 40
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT + COALESCE ( + ( + - 85 ), - - 18, - - COUNT( * ) )
----
-85

skipif mysql # not compatible
query I rowsort label-1393
SELECT + COALESCE ( + ( + - 85 ), - - 18, - - COUNT ( * ) )
----
-85

query I rowsort
SELECT + 81 * - + 6 AS col0
----
-486

query II rowsort
SELECT + 87 + 36 AS col1, + 17 * + 14
----
123
238

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT - ( - - 51 ) * 24 + + 62 * - - 19 + 2 + + SUM( 31 ) * COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-1396
SELECT - ( - - 51 ) * 24 + + 62 * - - 19 + 2 + + SUM ( 31 ) * COUNT ( * ) AS col0
----
-13

query I rowsort
SELECT + 33 - - 76 AS col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT ALL + CASE + 30 WHEN - COUNT( * ) + + 56 THEN - COUNT( * ) - - + COALESCE ( 29, - 31 ) WHEN - 32 THEN NULL WHEN COALESCE ( + 44, 27 * COUNT( 37 ), - 44 - 36 ) THEN - COUNT( * ) ELSE NULL END * + 91 + + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL + CASE + 30 WHEN - COUNT ( * ) + + 56 THEN - COUNT ( * ) - - + COALESCE ( 29, - 31 ) WHEN - 32 THEN NULL WHEN COALESCE ( + 44, 27 * COUNT ( 37 ), - 44 - 36 ) THEN - COUNT ( * ) ELSE NULL END * + 91 + + 65
----
NULL

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

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

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

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

query I rowsort
SELECT ALL + - 9 * + COALESCE ( - ( - + 93 ), - 40 + 48 ) + - 98 * + 91 + 81 * + 18
----
-8297

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT ALL 78 * + 91 + + 70 * - - 14 + + 12 + + COUNT( DISTINCT 27 ) AS col0
----
8091

skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL 78 * + 91 + + 70 * - - 14 + + 12 + + COUNT ( DISTINCT 27 ) AS col0
----
8091

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1403
SELECT + - 13 * - + COUNT( * ) * + ( ( + CAST( - 37 AS SIGNED ) ) ) + + 96 AS col0
----
-385

skipif mysql # not compatible
query I rowsort label-1403
SELECT + - 13 * - + COUNT ( * ) * + ( ( + CAST ( - 37 AS INTEGER ) ) ) + + 96 AS col0
----
-385

query II rowsort
SELECT ALL + 14 AS col0, + 40
----
14
40

query I rowsort
SELECT - 23 + 17
----
-6

query I rowsort
SELECT - + 76 - - - 48 col1
----
-124

query II rowsort
SELECT - + 4 AS col1, + 16 + + - 34
----
-4
-18

query I rowsort
SELECT ALL 6 + 64 * + + ( + 28 ) AS col2
----
1798

query I rowsort
SELECT + 76 * + 89 * - 39 * + 64 + - 13
----
-16882957

query II rowsort
SELECT - 31 col0, + 40 * - COALESCE ( + 48, - - 78 ) AS col2
----
-31
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT - - COUNT( DISTINCT 3 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1411
SELECT - - COUNT ( DISTINCT 3 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT - + 68 + COUNT( ALL NULLIF ( + ( + 93 ), - + 38 ) ) col0
----
-67

skipif mysql # not compatible
query I rowsort label-1412
SELECT - + 68 + COUNT ( ALL NULLIF ( + ( + 93 ), - + 38 ) ) col0
----
-67

query II rowsort
SELECT DISTINCT + 55 AS col1, 83 AS col1
----
55
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT ALL - - 23 * + COALESCE ( - + 68, 50 + - 14 ) * + COUNT( * ) AS col2
----
-1564

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL - - 23 * + COALESCE ( - + 68, 50 + - 14 ) * + COUNT ( * ) AS col2
----
-1564

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT DISTINCT SUM( 48 ) - + - 50 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT SUM ( 48 ) - + - 50 AS col0
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-1416
SELECT ALL NULLIF ( MIN( DISTINCT + 87 ), + 35 ), COUNT( * ) AS col1
----
87
1

skipif mysql # not compatible
query II rowsort label-1416
SELECT ALL NULLIF ( MIN ( DISTINCT + 87 ), + 35 ), COUNT ( * ) AS col1
----
87
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1417
SELECT - 39 DIV - 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1417
SELECT - 39 / - 45 AS col1
----
0

query I rowsort
SELECT ALL - - 31 * - + 62 * 60 * - 46
----
5304720

query I rowsort
SELECT COALESCE ( 58, 2 )
----
58

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

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

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

query II rowsort
SELECT - 71 - - - 95, 4 * + 1 + - CASE WHEN NOT + 63 NOT IN ( - 61 / 98 ) THEN CASE 84 WHEN + 76 THEN 16 - 94 * - 62 WHEN - 25 + - 83 THEN NULL ELSE NULL END END + - 90 col1
----
-166
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1423
SELECT - 47 - COUNT( * ) AS col0, + 12
----
-48
12

skipif mysql # not compatible
query II rowsort label-1423
SELECT - 47 - COUNT ( * ) AS col0, + 12
----
-48
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT DISTINCT CASE + - 80 WHEN + MAX( DISTINCT - 21 ) THEN 21 - - ( + - COUNT( * ) ) WHEN - 79 + 90 THEN NULL ELSE 83 END col1
----
83

skipif mysql # not compatible
query I rowsort label-1424
SELECT DISTINCT CASE + - 80 WHEN + MAX ( DISTINCT - 21 ) THEN 21 - - ( + - COUNT ( * ) ) WHEN - 79 + 90 THEN NULL ELSE 83 END col1
----
83

query I rowsort
SELECT ALL COALESCE ( 5, - 32, - 33 )
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-1426
SELECT - 0 * 91, 87 * 15 DIV + 84 AS col2
----
0
15

skipif mysql # not compatible
query II rowsort label-1426
SELECT - 0 * 91, 87 * 15 / + 84 AS col2
----
0
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT ALL + CASE + 41 WHEN - - MIN( ALL 42 ) + + 88 THEN + - MIN( 45 ) ELSE 69 END AS col1
----
69

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL + CASE + 41 WHEN - - MIN ( ALL 42 ) + + 88 THEN + - MIN ( 45 ) ELSE 69 END AS col1
----
69

query II rowsort
SELECT DISTINCT + CASE - - 95 WHEN + + 3 THEN + - 92 END * + 55 AS col2, + 95 * + 1 AS col1
----
NULL
95

query I rowsort
SELECT - 92 * - ( + 31 ) * 27 + - 43
----
76961

query I rowsort
SELECT + CASE - 79 WHEN - - 27 THEN + - 67 / - 15 + - 65 END - + 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1431
SELECT ALL + 18 / + CAST( NULL AS SIGNED ) * + COUNT( * ) + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL + 18 / + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + 56
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1432
SELECT CAST( - 27 AS SIGNED ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-1432
SELECT CAST ( - 27 AS INTEGER ) AS col0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-1433
SELECT - 41 DIV + ( 21 ) + 66
----
65

skipif mysql # not compatible
query I rowsort label-1433
SELECT - 41 / + ( 21 ) + 66
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1434
SELECT DISTINCT + 8 DIV + 74 + + - 33 * 31 AS col0
----
-1023

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT + 8 / + 74 + + - 33 * 31 AS col0
----
-1023

onlyif mysql # DIV for integer division: 
query I rowsort label-1435
SELECT ALL - 41 DIV - + 66 + - - 52 + - 35 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-1435
SELECT ALL - 41 / - + 66 + - - 52 + - 35 AS col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1436
SELECT DISTINCT 41 * - 77 * - 95 + - 40 * - 87, + CAST( NULL AS SIGNED ) * 97 AS col2
----
303395
NULL

skipif mysql # not compatible
query II rowsort label-1436
SELECT DISTINCT 41 * - 77 * - 95 + - 40 * - 87, + CAST ( NULL AS INTEGER ) * 97 AS col2
----
303395
NULL

query I rowsort
SELECT ALL 10 * - - 1 + - + 64 * + 16 AS col1
----
-1014

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

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

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

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

query I rowsort
SELECT - 51 * + 38 * - + 30 * + 44 + ( + 45 ) + - 92
----
2558113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1442
SELECT + ( - 12 ) * COALESCE ( + 31, + 36, - 53 + - 10 - + 74 DIV COUNT( * ) ) AS col2
----
-372

skipif mysql # not compatible
query I rowsort label-1442
SELECT + ( - 12 ) * COALESCE ( + 31, + 36, - 53 + - 10 - + 74 / COUNT ( * ) ) AS col2
----
-372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1443
SELECT + + 78 + - 88 + 9 - - - ( - 40 ) + + NULLIF ( - CAST( NULL AS SIGNED ), 1 * ( 72 ) ) + NULLIF ( 20, + 36 / CAST( NULL AS SIGNED ) ) / + 16 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1443
SELECT + + 78 + - 88 + 9 - - - ( - 40 ) + + NULLIF ( - CAST ( NULL AS INTEGER ), 1 * ( 72 ) ) + NULLIF ( 20, + 36 / CAST ( NULL AS INTEGER ) ) / + 16 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT + - COUNT( * ) + + - 3 col2
----
-4

skipif mysql # not compatible
query I rowsort label-1444
SELECT + - COUNT ( * ) + + - 3 col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT ALL CASE + 23 WHEN COUNT( * ) THEN 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL CASE + 23 WHEN COUNT ( * ) THEN 33 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT - NULLIF ( - + ( 12 ), + 29 )
----
12

query I rowsort
SELECT DISTINCT - 89 - - - ( - - 68 )
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT DISTINCT 80 * + 13 + 30 + + 23 + COUNT( * )
----
1094

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT 80 * + 13 + 30 + + 23 + COUNT ( * )
----
1094

query I rowsort
SELECT - 24 - + - COALESCE ( - + CASE - 15 WHEN + ( - 20 ) * 80 * 37 THEN 43 + + 89 WHEN + 88 + 81 * 45 THEN NULL ELSE NULL END, 57 ) * + 27
----
1515

query I rowsort
SELECT 34 * + 49 * + 58
----
96628

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT DISTINCT COUNT( - + 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1452
SELECT DISTINCT COUNT ( - + 46 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1453
SELECT + SUM( ALL + 10 ) * + CAST( - 63 AS SIGNED ) * 96 - - - CASE + - 72 WHEN - 85 THEN NULL WHEN + 71 THEN NULL WHEN 12 THEN 71 * 46 ELSE NULL END + 36 * 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1453
SELECT + SUM ( ALL + 10 ) * + CAST ( - 63 AS INTEGER ) * 96 - - - CASE + - 72 WHEN - 85 THEN NULL WHEN + 71 THEN NULL WHEN 12 THEN 71 * 46 ELSE NULL END + 36 * 18 AS col0
----
NULL

query I rowsort
SELECT - 51 + 17 AS col1
----
-34

query I rowsort
SELECT + 90 + + ( - 1 ) AS col2
----
89

query II rowsort
SELECT 57 * - 9, - COALESCE ( 22, + - 4, + 55 ) AS col0
----
-513
-22

query I rowsort
SELECT 8 + + - 64
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1458
SELECT DISTINCT 71 DIV - + COALESCE ( - 66, - 5 + + 63, - 16 )
----
1

skipif mysql # not compatible
query I rowsort label-1458
SELECT DISTINCT 71 / - + COALESCE ( - 66, - 5 + + 63, - 16 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1459
SELECT DISTINCT 88 DIV + 68 DIV - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT 88 / + 68 / - COUNT ( * ) col0
----
-1

query I rowsort
SELECT 27 + + - 69 AS col0
----
-42

query I rowsort
SELECT 43 + + 41
----
84

query I rowsort
SELECT 17 * - 94 col1
----
-1598

query I rowsort
SELECT 53 + + 14 * - 48 col2
----
-619

query II rowsort
SELECT - 27, + CASE + 53 WHEN + 37 * + 16 * - 12 / 28 THEN + 13 WHEN + 49 THEN NULL ELSE 69 END AS col0
----
-27
69

query II rowsort
SELECT 2 AS col0, 63 * 13 AS col2
----
2
819

query II rowsort
SELECT + 82 col2, 4 AS col1
----
82
4

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

skipif mysql # not compatible
query I rowsort label-1467
SELECT DISTINCT ( - - COUNT ( * ) ) + 60 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT 49 + SUM( 50 ) + COUNT( * ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-1468
SELECT 49 + SUM ( 50 ) + COUNT ( * ) AS col0
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1469
SELECT DISTINCT + 23 + - 20 + CAST( - 68 AS SIGNED ) col1
----
-65

skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT + 23 + - 20 + CAST ( - 68 AS INTEGER ) col1
----
-65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT COUNT( * ) * 18 - 86
----
-68

skipif mysql # not compatible
query I rowsort label-1471
SELECT COUNT ( * ) * 18 - 86
----
-68

query I rowsort
SELECT 78 * + 34 AS col2
----
2652

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

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

query I rowsort
SELECT DISTINCT - + CASE - 91 WHEN - 4 + + 36 THEN 8 WHEN - 76 THEN NULL WHEN 56 THEN NULL ELSE + - 82 * 42 END + ( - 64 ) AS col1
----
3380

query I rowsort
SELECT + 5 + - + 40 - 83
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT ALL - MIN( ALL 96 ) - + + SUM( + 20 ) AS col0
----
-116

skipif mysql # not compatible
query I rowsort label-1476
SELECT ALL - MIN ( ALL 96 ) - + + SUM ( + 20 ) AS col0
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT + COUNT( * ) * MIN( 3 )
----
3

skipif mysql # not compatible
query I rowsort label-1477
SELECT + COUNT ( * ) * MIN ( 3 )
----
3

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

query I rowsort
SELECT DISTINCT - + 2 - + 37 AS col1
----
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-1480
SELECT - 27 AS col0, 31 DIV + 80 AS col2
----
-27
0

skipif mysql # not compatible
query II rowsort label-1480
SELECT - 27 AS col0, 31 / + 80 AS col2
----
-27
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1481
SELECT + + 56 AS col1, - CAST( NULL AS SIGNED ) AS col0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-1481
SELECT + + 56 AS col1, - CAST ( NULL AS INTEGER ) AS col0
----
56
NULL

query II rowsort
SELECT DISTINCT - + 73, + 61 AS col1
----
-73
61

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

skipif mysql # not compatible
query I rowsort label-1483
SELECT 2 / - 41 * - COUNT ( * )
----
0

query I rowsort
SELECT 89 * - - ( + ( + 37 ) ) * + 80
----
263440

query I rowsort
SELECT + 21 + + 28 AS col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1486
SELECT ALL - ( + 10 ) DIV - - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL - ( + 10 ) / - - 93 AS col0
----
0

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

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

query I rowsort
SELECT - NULLIF ( - + 45, - 4 + 50 ) AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1489
SELECT DISTINCT - 41 AS col0, 3 + - - COUNT( ALL + CAST( NULL AS SIGNED ) ) DIV - - 47 + - 87 + 31 AS col0
----
-41
-53

skipif mysql # not compatible
query II rowsort label-1489
SELECT DISTINCT - 41 AS col0, 3 + - - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) / - - 47 + - 87 + 31 AS col0
----
-41
-53

query I rowsort
SELECT ALL + 86 * + 98 AS col0
----
8428

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT DISTINCT - NULLIF ( + 89, + ( + ( COUNT( ( 76 ) ) ) ) ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT - NULLIF ( + 89, + ( + ( COUNT ( ( 76 ) ) ) ) ) AS col2
----
-89

query I rowsort
SELECT DISTINCT 47 * + + 15 * - + 73 AS col0
----
-51465

query I rowsort
SELECT 37 * - 37
----
-1369

query I rowsort
SELECT 8 + - 1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT COUNT( * ) + + - 27 + CASE - 18 WHEN - 25 + + COUNT( DISTINCT 24 ) + - CASE - - ( - 35 ) WHEN 25 THEN 28 * - 86 ELSE NULL END - 1 * + 52 * 98 * COUNT( + ( 28 ) ) THEN 24 WHEN - 96 * + 31 THEN NULL END * 89 * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-1495
SELECT COUNT ( * ) + + - 27 + CASE - 18 WHEN - 25 + + COUNT ( DISTINCT 24 ) + - CASE - - ( - 35 ) WHEN 25 THEN 28 * - 86 ELSE NULL END - 1 * + 52 * 98 * COUNT ( + ( 28 ) ) THEN 24 WHEN - 96 * + 31 THEN NULL END * 89 * - 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT ALL ( - COUNT( ALL 65 ) ) + + 47
----
46

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL ( - COUNT ( ALL 65 ) ) + + 47
----
46

query I rowsort
SELECT 62 * + 7
----
434

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT 33 - - 94 + - 99 * - - ( - NULLIF ( + - 6, + - 88 - - ( - NULLIF ( 62, + MIN( 8 ) ) ) * COUNT( * ) ) )
----
-467

skipif mysql # not compatible
query I rowsort label-1498
SELECT 33 - - 94 + - 99 * - - ( - NULLIF ( + - 6, + - 88 - - ( - NULLIF ( 62, + MIN ( 8 ) ) ) * COUNT ( * ) ) )
----
-467

onlyif mysql # DIV for integer division: 
query I rowsort label-1499
SELECT ALL 70 DIV 63 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL 70 / 63 AS col2
----
1

query I rowsort
SELECT DISTINCT 81 + - 34
----
47

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

skipif mysql # not compatible
query I rowsort label-1501
SELECT - MIN ( ALL - 62 )
----
62

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1504
SELECT ALL COUNT( * ) * + CAST( - - 37 AS SIGNED ) + 76 * - - 60 + - 81 col1
----
4516

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL COUNT ( * ) * + CAST ( - - 37 AS INTEGER ) + 76 * - - 60 + - 81 col1
----
4516

query I rowsort
SELECT ALL 68 * 79
----
5372

query I rowsort
SELECT ALL 70 * 90 * + 52 * - 6 - - 65
----
-1965535

query II rowsort
SELECT + + ( - 10 ) col0, - 25 AS col1
----
-10
-25

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1509
SELECT 3 DIV 63 + - 89
----
-89

skipif mysql # not compatible
query I rowsort label-1509
SELECT 3 / 63 + - 89
----
-89

query I rowsort
SELECT 48 + + 84 AS col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT ALL - 14 * + 29 - + COUNT( * )
----
-407

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL - 14 * + 29 - + COUNT ( * )
----
-407

query I rowsort
SELECT ALL + 49 * 41 - 68
----
1941

query I rowsort
SELECT - 83 * - 82 AS col0
----
6806

onlyif mysql # DIV for integer division: 
query I rowsort label-1514
SELECT 26 * + 64 + + + 66 + + 54 DIV + 13
----
1734

skipif mysql # not compatible
query I rowsort label-1514
SELECT 26 * + 64 + + + 66 + + 54 / + 13
----
1734

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT DISTINCT - ( - + MAX( - - 16 ) ) * 11 * + 88 * ( + 61 ) * + COUNT( * ) AS col2
----
944768

skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT - ( - + MAX ( - - 16 ) ) * 11 * + 88 * ( + 61 ) * + COUNT ( * ) AS col2
----
944768

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

query II rowsort
SELECT - + 87 + - 63 AS col1, + 97 AS col2
----
-150
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1518
SELECT - - 76 * ( ( + 0 ) ) + + COUNT( * ), + 35 AS col0
----
1
35

skipif mysql # not compatible
query II rowsort label-1518
SELECT - - 76 * ( ( + 0 ) ) + + COUNT ( * ), + 35 AS col0
----
1
35

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1520
SELECT + ( + COUNT( * ) ) col0, 85
----
1
85

skipif mysql # not compatible
query II rowsort label-1520
SELECT + ( + COUNT ( * ) ) col0, 85
----
1
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT ALL - 21 * + 46 - 6 * + COUNT( DISTINCT + - 7 ) col0
----
-972

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL - 21 * + 46 - 6 * + COUNT ( DISTINCT + - 7 ) col0
----
-972

onlyif mysql # DIV for integer division: 
query I rowsort label-1522
SELECT ALL - 30 + 1 + + 29 + 93 DIV 16 * + - 48
----
-240

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL - 30 + 1 + + 29 + 93 / 16 * + - 48
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT - 18 - - COUNT( ALL + 53 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-1523
SELECT - 18 - - COUNT ( ALL + 53 ) AS col2
----
-17

query I rowsort
SELECT - 88 + - 28
----
-116

query I rowsort
SELECT + 94 + - 26 * 5
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-1526
SELECT ALL + 31 DIV + 52
----
0

skipif mysql # not compatible
query I rowsort label-1526
SELECT ALL + 31 / + 52
----
0

query I rowsort
SELECT - 64 * 77 * + + 6
----
-29568

query I rowsort
SELECT ALL - ( - - 76 ) + + 20 AS col2
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1529
SELECT DISTINCT ( - MIN( DISTINCT 81 ) ) DIV - 5
----
16

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT ( - MIN ( DISTINCT 81 ) ) / - 5
----
16

query II rowsort
SELECT 35 AS col2, 55
----
35
55

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

skipif mysql # not compatible
query I rowsort label-1531
SELECT + COUNT ( * ) + 88 + + - ( COUNT ( * ) ) + 33 * 42 AS col1
----
1474

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT - 58 + - - COUNT( * ) - + 87
----
-144

skipif mysql # not compatible
query I rowsort label-1532
SELECT - 58 + - - COUNT ( * ) - + 87
----
-144

query I rowsort
SELECT - CASE - 43 WHEN 71 THEN - 70 END AS col2
----
NULL

query I rowsort
SELECT ALL 29 + 8 AS col2
----
37

query I rowsort
SELECT - 34 + - 87
----
-121

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

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

query II rowsort
SELECT 64, - 8 AS col2
----
64
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT - MIN( ALL - + ( + 11 ) ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-1538
SELECT - MIN ( ALL - + ( + 11 ) ) AS col0
----
11

query I rowsort
SELECT + ( + - 10 ) + + + 6 + - COALESCE ( + 48, + - 70, + 9 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT - MIN( ALL 46 ) col2
----
-46

skipif mysql # not compatible
query I rowsort label-1540
SELECT - MIN ( ALL 46 ) col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT + MIN( DISTINCT - + 54 ) + - - 71 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-1541
SELECT + MIN ( DISTINCT - + 54 ) + - - 71 AS col2
----
17

query I rowsort
SELECT ALL 62 - - - 54 AS col2
----
8

query I rowsort
SELECT + 68 * - 81
----
-5508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1544
SELECT CAST( - + 90 AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-1544
SELECT CAST ( - + 90 AS INTEGER )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1545
SELECT ALL 62 DIV 66 + - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL 62 / 66 + - COUNT ( * ) col1
----
-1

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

skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL 28 / + ( + + COUNT ( * ) ) AS col0
----
28

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1548
SELECT - 90 + - ( - 0 ) * + 73 + + + COUNT( * ) AS col0, + 33
----
-89
33

skipif mysql # not compatible
query II rowsort label-1548
SELECT - 90 + - ( - 0 ) * + 73 + + + COUNT ( * ) AS col0, + 33
----
-89
33

onlyif mysql # aggregate syntax: 
query II rowsort label-1549
SELECT ALL + COALESCE ( - 70, - - 56, + MIN( + - 99 ) ) AS col1, 43 + + 11 * - COUNT( * ) AS col1
----
-70
32

skipif mysql # not compatible
query II rowsort label-1549
SELECT ALL + COALESCE ( - 70, - - 56, + MIN ( + - 99 ) ) AS col1, 43 + + 11 * - COUNT ( * ) AS col1
----
-70
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1550
SELECT + NULLIF ( - 54, 50 ) DIV 38 col2
----
-1

skipif mysql # not compatible
query I rowsort label-1550
SELECT + NULLIF ( - 54, 50 ) / 38 col2
----
-1

query I rowsort
SELECT - 17 * 71 + - ( + + 35 ) * - 94 AS col1
----
2083

query I rowsort
SELECT ALL - - ( 44 ) * + 87 + + - 75
----
3753

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1553
SELECT DISTINCT - + 24 * - + CASE + 8 WHEN 98 THEN NULL ELSE - 29 * - 14 + + COUNT( * ) + - 83 + COUNT( ALL 6 ) + 81 * CAST( NULL AS SIGNED ) * + CASE 65 WHEN - 66 THEN NULL WHEN + 4 * 3 + - ( COUNT( * ) ) THEN - ( 98 ) ELSE COUNT( * ) END END * + COUNT( * ) + - 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1553
SELECT DISTINCT - + 24 * - + CASE + 8 WHEN 98 THEN NULL ELSE - 29 * - 14 + + COUNT ( * ) + - 83 + COUNT ( ALL 6 ) + 81 * CAST ( NULL AS INTEGER ) * + CASE 65 WHEN - 66 THEN NULL WHEN + 4 * 3 + - ( COUNT ( * ) ) THEN - ( 98 ) ELSE COUNT ( * ) END END * + COUNT ( * ) + - 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT - + 94 * 61 - + + SUM( - 18 )
----
-5716

skipif mysql # not compatible
query I rowsort label-1554
SELECT - + 94 * 61 - + + SUM ( - 18 )
----
-5716

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT DISTINCT + COUNT( * ) * 78 * + 75 + + 54 AS col2
----
5904

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT + COUNT ( * ) * 78 * + 75 + + 54 AS col2
----
5904

query I rowsort
SELECT ALL - 8 * + + 48 + + 67
----
-317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1557
SELECT - - COUNT( - NULLIF ( - + 93, + CAST( NULL AS SIGNED ) * 22 ) ) * - + 68 AS col1, COALESCE ( 92, NULLIF ( - 97, AVG ( 56 ) * - 79 ) * 46 + 77 ) * - 59
----
-68
-5428

skipif mysql # not compatible
query II rowsort label-1557
SELECT - - COUNT ( - NULLIF ( - + 93, + CAST ( NULL AS INTEGER ) * 22 ) ) * - + 68 AS col1, COALESCE ( 92, NULLIF ( - 97, AVG ( 56 ) * - 79 ) * 46 + 77 ) * - 59
----
-68
-5428

query I rowsort
SELECT DISTINCT + - 5 * - 89 + - 57
----
388

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1560
SELECT ALL - 41 * + 92 + - + ( - 56 ) AS col0, - CAST( NULL AS SIGNED ) + - 9 * + 94 AS col1
----
-3716
NULL

skipif mysql # not compatible
query II rowsort label-1560
SELECT ALL - 41 * + 92 + - + ( - 56 ) AS col0, - CAST ( NULL AS INTEGER ) + - 9 * + 94 AS col1
----
-3716
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1561
SELECT - CAST( + ( 71 ) AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-1561
SELECT - CAST ( + ( 71 ) AS INTEGER )
----
-71

query I rowsort
SELECT ALL + 9 * 40 AS col2
----
360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1563
SELECT - COUNT( * ) DIV + - 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1563
SELECT - COUNT ( * ) / + - 28 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1564
SELECT ALL - 15 * + + COUNT( * ) + 79 * + CAST( + 86 AS SIGNED )
----
6779

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL - 15 * + + COUNT ( * ) + 79 * + CAST ( + 86 AS INTEGER )
----
6779

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1565
SELECT ALL COALESCE ( + - 84, ( + - COALESCE ( + + 14, + + COUNT( * ) ) ), 25 DIV - 60 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL COALESCE ( + - 84, ( + - COALESCE ( + + 14, + + COUNT ( * ) ) ), 25 / - 60 ) AS col1
----
-84

query I rowsort
SELECT ALL - 36 - + 57 * - 74 AS col1
----
4182

query I rowsort
SELECT DISTINCT ( + + 95 ) col2
----
95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT DISTINCT - 55 - + - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-1569
SELECT DISTINCT - 55 - + - COUNT ( * )
----
-54

query I rowsort
SELECT - 75 + + 49
----
-26

query I rowsort
SELECT - 81 * - 50 * + - COALESCE ( - 33, - 34 ) col2
----
133650

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT - CASE - 55 WHEN + 9 THEN - - COUNT( * ) WHEN - 89 * + 56 / 29 + + + AVG ( DISTINCT + NULLIF ( - ( - + 69 ), 57 ) ) + - 28 * 6 THEN NULL ELSE NULL END + + 82 * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1572
SELECT - CASE - 55 WHEN + 9 THEN - - COUNT ( * ) WHEN - 89 * + 56 / 29 + + + AVG ( DISTINCT + NULLIF ( - ( - + 69 ), 57 ) ) + - 28 * 6 THEN NULL ELSE NULL END + + 82 * 74
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1574
SELECT - COUNT ( * ) - + 56 AS col0
----
-57

query I rowsort
SELECT + 51 * 72
----
3672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1576
SELECT ALL + 74 - - 43 * 66 * - + CASE - NULLIF ( + COUNT( - - CAST( NULL AS SIGNED ) ), + 71 ) WHEN - 84 * + COUNT( + NULLIF ( + ( + 11 ), 54 ) ) THEN + 7 + COUNT( * ) * 74 WHEN 12 + MAX( 43 ) THEN - SUM( DISTINCT - 96 ) + 72 END + - 35 * 95
----
NULL

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL + 74 - - 43 * 66 * - + CASE - NULLIF ( + COUNT ( - - CAST ( NULL AS INTEGER ) ), + 71 ) WHEN - 84 * + COUNT ( + NULLIF ( + ( + 11 ), 54 ) ) THEN + 7 + COUNT ( * ) * 74 WHEN 12 + MAX ( 43 ) THEN - SUM ( DISTINCT - 96 ) + 72 END + - 35 * 95
----
NULL

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

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

query I rowsort
SELECT DISTINCT ( + 16 ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT COUNT( * ) * + 54 * + 94
----
5076

skipif mysql # not compatible
query I rowsort label-1579
SELECT COUNT ( * ) * + 54 * + 94
----
5076

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT ALL + + 8 * + ( + COUNT( * ) ) * - CASE + - 82 WHEN - - 83 * - + COUNT( * ) + + 86 THEN - 83 * + 45 + 56 WHEN - 38 THEN NULL END * 19 - 71 / 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL + + 8 * + ( + COUNT ( * ) ) * - CASE + - 82 WHEN - - 83 * - + COUNT ( * ) + + 86 THEN - 83 * + 45 + 56 WHEN - 38 THEN NULL END * 19 - 71 / 79 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 83 * - + 91 + + - 15
----
-7568

query I rowsort
SELECT 95 * ( + 15 ) AS col0
----
1425

query I rowsort
SELECT 54 + + ( - + 14 ) * + + 1
----
40

query II rowsort
SELECT DISTINCT - + 53 col2, 46
----
-53
46

query I rowsort
SELECT ALL - 23 + 1 col1
----
-22

query I rowsort
SELECT ALL 62 + - 38 * + + 43 AS col0
----
-1572

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

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

query I rowsort
SELECT 34 + - 58 * 71
----
-4084

query I rowsort
SELECT DISTINCT - - NULLIF ( - - 52, 92 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT ALL + 63 + + - COUNT( - 76 )
----
62

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL + 63 + + - COUNT ( - 76 )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1591
SELECT ALL + ( + MAX( ALL + 99 ) ) * + - CAST( SUM( - 93 ) AS SIGNED )
----
9207

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL + ( + MAX ( ALL + 99 ) ) * + - CAST ( SUM ( - 93 ) AS INTEGER )
----
9207

onlyif mysql # aggregate syntax: 
query II rowsort label-1592
SELECT DISTINCT - - 2, - ( - - COUNT( * ) ) * + 82 + + + 14 + - 14 AS col0
----
2
-82

skipif mysql # not compatible
query II rowsort label-1592
SELECT DISTINCT - - 2, - ( - - COUNT ( * ) ) * + 82 + + + 14 + - 14 AS col0
----
2
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT DISTINCT - COUNT( * ) + - 44 * + + 46
----
-2025

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT - COUNT ( * ) + - 44 * + + 46
----
-2025

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

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

query II rowsort
SELECT ALL 64 * 72 + 69 + + 45, + 60 * + 27 AS col0
----
4722
1620

query I rowsort
SELECT - 34 + 62 + + 11 AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1597
SELECT 33 DIV + 30 * - - 99 DIV 79 * 1
----
1

skipif mysql # not compatible
query I rowsort label-1597
SELECT 33 / + 30 * - - 99 / 79 * 1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1598
SELECT COALESCE ( 10, + COUNT( * ) ) + - 33 + - COUNT( * ) + + 70 + - MIN( DISTINCT - + 40 ) * - - 96 * + - 24, 27 + - 21 AS col1
----
-92114
6

skipif mysql # not compatible
query II rowsort label-1598
SELECT COALESCE ( 10, + COUNT ( * ) ) + - 33 + - COUNT ( * ) + + 70 + - MIN ( DISTINCT - + 40 ) * - - 96 * + - 24, 27 + - 21 AS col1
----
-92114
6

query I rowsort
SELECT 37 * + 87 AS col1
----
3219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1600
SELECT 43 + + COALESCE ( 78, - 50 * - - 17 * - COUNT( * ) + 27 DIV - CAST( NULL AS SIGNED ), 61 + - 16 + - + CAST( - 70 AS SIGNED ) + ( 90 ) DIV 25 DIV - 78 )
----
121

skipif mysql # not compatible
query I rowsort label-1600
SELECT 43 + + COALESCE ( 78, - 50 * - - 17 * - COUNT ( * ) + 27 / - CAST ( NULL AS INTEGER ), 61 + - 16 + - + CAST ( - 70 AS INTEGER ) + ( 90 ) / 25 / - 78 )
----
121

query I rowsort
SELECT ALL COALESCE ( + + 2, - - NULLIF ( 4, - 24 * + 63 + + 1 ) + - 72 - 34, + 90 ) * + 0 AS col0
----
0

query I rowsort
SELECT + 84 * - 30 * - + 6 + + + 48
----
15168

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT DISTINCT 52 - + 1 + + + 87 - COUNT( * )
----
137

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT 52 - + 1 + + + 87 - COUNT ( * )
----
137

query I rowsort
SELECT 72 * + 58 AS col1
----
4176

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT 78 + - COUNT( * ) * CASE + 96 WHEN + - 66 + + - 13 THEN - - 33 - 24 WHEN - 96 * - 21 + + + COUNT( * ) THEN + 76 END + - 44 / - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1605
SELECT 78 + - COUNT ( * ) * CASE + 96 WHEN + - 66 + + - 13 THEN - - 33 - 24 WHEN - 96 * - 21 + + + COUNT ( * ) THEN + 76 END + - 44 / - 53
----
NULL

query I rowsort
SELECT ALL + 5 - ( + 86 ) col1
----
-81

query I rowsort
SELECT ( + 68 ) * - 37
----
-2516

query I rowsort
SELECT DISTINCT + 96 * + ( - 25 ) AS col0
----
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT 97 + 58 + - 76 - + - 8 * MIN( 2 ) * - COUNT( * ) * + 94 * - NULLIF ( - - ( - 83 ), - 54 ) * - 38 AS col2
----
4743695

skipif mysql # not compatible
query I rowsort label-1609
SELECT 97 + 58 + - 76 - + - 8 * MIN ( 2 ) * - COUNT ( * ) * + 94 * - NULLIF ( - - ( - 83 ), - 54 ) * - 38 AS col2
----
4743695

query I rowsort
SELECT 68 + + COALESCE ( + 28, 5 ) + 72
----
168

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

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

query II rowsort
SELECT 77 + - 80, 51 AS col2
----
-3
51

onlyif mysql # aggregate syntax: 
query II rowsort label-1613
SELECT DISTINCT 86 * + 15, + NULLIF ( - 50, COUNT( * ) ) * 78 AS col1
----
1290
-3900

skipif mysql # not compatible
query II rowsort label-1613
SELECT DISTINCT 86 * + 15, + NULLIF ( - 50, COUNT ( * ) ) * 78 AS col1
----
1290
-3900

query I rowsort
SELECT 87 * - 8 AS col1
----
-696

query I rowsort
SELECT ALL + 79 * + + 64
----
5056

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1616
SELECT 93 / CAST( NULL AS SIGNED ) AS col2, 60 AS col0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-1616
SELECT 93 / CAST ( NULL AS INTEGER ) AS col2, 60 AS col0
----
NULL
60

query I rowsort
SELECT DISTINCT COALESCE ( + ( - ( - 45 ) ), + 6, + + 86 ) AS col1
----
45

query I rowsort
SELECT - 49 + - 83 + + + 70 + - 29 + 74 * - - 33 * + 42
----
102473

query I rowsort
SELECT DISTINCT - 27 + COALESCE ( + 47, + NULLIF ( 30, - - 36 + - + 33 / - - 25 ) ) * ( ( 66 ) ) AS col2
----
3075

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

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

query I rowsort
SELECT ALL + + 81 + 93
----
174

query I rowsort
SELECT ALL - 94 + - ( - + 33 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT + 16 * - COUNT( DISTINCT - - 11 ) * - + COALESCE ( + ( + 80 ), 71 + + 71 ) + - 23 AS col0
----
1257

skipif mysql # not compatible
query I rowsort label-1623
SELECT + 16 * - COUNT ( DISTINCT - - 11 ) * - + COALESCE ( + ( + 80 ), 71 + + 71 ) + - 23 AS col0
----
1257

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1624
SELECT ALL - 83 DIV + 43 * + COUNT( * ), 28 col0
----
-1
28

skipif mysql # not compatible
query II rowsort label-1624
SELECT ALL - 83 / + 43 * + COUNT ( * ), 28 col0
----
-1
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1625
SELECT DISTINCT + - 39 + + COALESCE ( - 86, 10 DIV - + 33 * - + 68 - COUNT( * ) * - 97, + CAST( - + 3 AS SIGNED ) * - + 57 ) AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT + - 39 + + COALESCE ( - 86, 10 / - + 33 * - + 68 - COUNT ( * ) * - 97, + CAST ( - + 3 AS INTEGER ) * - + 57 ) AS col0
----
-125

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

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL + 92 + - - 88 * - COUNT ( * ) AS col1
----
4

query I rowsort
SELECT ALL - 33 + CASE - 44 WHEN + - 69 / 10 THEN - 0 WHEN - 91 THEN - COALESCE ( - COALESCE ( - 67, - 65 ), - 5, + 61 ) ELSE NULL END + 41 * 32 AS col0
----
NULL

query II rowsort
SELECT ( 61 ) AS col1, + 41 + - - 5
----
61
46

query I rowsort
SELECT ALL + 42 * 80 AS col2
----
3360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1630
SELECT - + COUNT( * ) DIV - COUNT( * ) + COUNT( * ) + - 36
----
-34

skipif mysql # not compatible
query I rowsort label-1630
SELECT - + COUNT ( * ) / - COUNT ( * ) + COUNT ( * ) + - 36
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-1631
SELECT ALL - 51 + + COUNT( * ) col1, 12
----
-50
12

skipif mysql # not compatible
query II rowsort label-1631
SELECT ALL - 51 + + COUNT ( * ) col1, 12
----
-50
12

query I rowsort
SELECT + NULLIF ( - + 75, 56 / + 1 ) AS col0
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1633
SELECT + 21 * 2 + - 94 * - 88 + - + 68 + - 45 - - - COALESCE ( + 16, - + COUNT( * ) ) + - 39 DIV 72 DIV 34 * - COUNT( * ) - + COUNT( * ) DIV - 52 AS col1
----
8185

skipif mysql # not compatible
query I rowsort label-1633
SELECT + 21 * 2 + - 94 * - 88 + - + 68 + - 45 - - - COALESCE ( + 16, - + COUNT ( * ) ) + - 39 / 72 / 34 * - COUNT ( * ) - + COUNT ( * ) / - 52 AS col1
----
8185

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT MIN( - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-1634
SELECT MIN ( - 55 )
----
-55

query I rowsort
SELECT CASE 53 WHEN 65 THEN - - 21 END * + - 74 - + + 50 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1637
SELECT DISTINCT 52 DIV + 53 * - 42 AS col1, + ( - CASE + 63 WHEN - COUNT( * ) * 15 + - CAST( NULL AS SIGNED ) THEN NULL ELSE - 84 - + - 19 END ) AS col1
----
0
65

skipif mysql # not compatible
query II rowsort label-1637
SELECT DISTINCT 52 / + 53 * - 42 AS col1, + ( - CASE + 63 WHEN - COUNT ( * ) * 15 + - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 84 - + - 19 END ) AS col1
----
0
65

query I rowsort
SELECT ALL 70 * - - CASE 1 WHEN - - 51 THEN - 20 ELSE - 94 END * 45
----
-296100

query I rowsort
SELECT DISTINCT 5 * - + 75 AS col2
----
-375

query I rowsort
SELECT ALL 63 * 70 * - 97
----
-427770

query I rowsort
SELECT CASE WHEN 62 < NULL THEN + 5 ELSE NULL END - - ( 43 ) + - 89
----
NULL

query I rowsort
SELECT 97 * 83 AS col1
----
8051

query I rowsort
SELECT ALL 10 * + 13 * - ( + 54 ) AS col2
----
-7020

query II rowsort
SELECT DISTINCT 93, + 80 + 53 col0
----
93
133

query I rowsort
SELECT - 91 - + 21 AS col0
----
-112

query II rowsort
SELECT ALL 99, 48 + - 23 AS col0
----
99
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1647
SELECT - - COUNT( * ), - 23 * + 50 col2
----
1
-1150

skipif mysql # not compatible
query II rowsort label-1647
SELECT - - COUNT ( * ), - 23 * + 50 col2
----
1
-1150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1648
SELECT + + COUNT( * ) + 88 + + 37 DIV - 17 col2
----
87

skipif mysql # not compatible
query I rowsort label-1648
SELECT + + COUNT ( * ) + 88 + + 37 / - 17 col2
----
87

query I rowsort
SELECT ALL - 98 + - - 4 col2
----
-94

query II rowsort
SELECT ALL 91 AS col1, - 33 - 57 - 94
----
91
-184

query II rowsort
SELECT 40 AS col0, 73 * + 52
----
40
3796

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

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

query I rowsort
SELECT DISTINCT - 4 * 1
----
-4

query I rowsort
SELECT DISTINCT + 41 + - 18
----
23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1656
SELECT - + CASE + 85 WHEN + 80 - - + COALESCE ( COUNT( * ), 62 * + - 12 + + 20 ) + 94 THEN NULL WHEN + 53 * + COUNT( * ) * + + COUNT( * ) * + - 56 + + 81 THEN CAST( NULL AS SIGNED ) ELSE ( - 21 ) + - 0 END * 15
----
315

skipif mysql # not compatible
query I rowsort label-1656
SELECT - + CASE + 85 WHEN + 80 - - + COALESCE ( COUNT ( * ), 62 * + - 12 + + 20 ) + 94 THEN NULL WHEN + 53 * + COUNT ( * ) * + + COUNT ( * ) * + - 56 + + 81 THEN CAST ( NULL AS INTEGER ) ELSE ( - 21 ) + - 0 END * 15
----
315

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1658
SELECT - 94 DIV - 72 + - COUNT( * ) + - - 73 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-1658
SELECT - 94 / - 72 + - COUNT ( * ) + - - 73 AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1659
SELECT DISTINCT + - NULLIF ( - 62, + CAST( - 44 AS SIGNED ) + - 34 + - 0 * + COUNT( * ) - - - 80 ) AS col2, 76
----
62
76

skipif mysql # not compatible
query II rowsort label-1659
SELECT DISTINCT + - NULLIF ( - 62, + CAST ( - 44 AS INTEGER ) + - 34 + - 0 * + COUNT ( * ) - - - 80 ) AS col2, 76
----
62
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1660
SELECT ALL - 74 * MAX( + 52 ) + + + CAST( NULL AS SIGNED ) - - 12 + - AVG ( - 45 ) * - + COUNT( * ) * NULLIF ( - 57, - 13 * + 21 + + - 37 * CASE + 99 * - 25 WHEN + 5 THEN + COUNT( * ) + 90 WHEN - CASE - COUNT( * ) WHEN + 49 THEN NULL WHEN 73 THEN - COALESCE ( + 49, - COUNT( * ) - 25 ) - 39 ELSE NULL END THEN NULL WHEN - NULLIF ( - 46, - 5 ) * - 9 + 94 THEN NULL END ) + 4 * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL - 74 * MAX ( + 52 ) + + + CAST ( NULL AS INTEGER ) - - 12 + - AVG ( - 45 ) * - + COUNT ( * ) * NULLIF ( - 57, - 13 * + 21 + + - 37 * CASE + 99 * - 25 WHEN + 5 THEN + COUNT ( * ) + 90 WHEN - CASE - COUNT ( * ) WHEN + 49 THEN NULL WHEN 73 THEN - COALESCE ( + 49, - COUNT ( * ) - 25 ) - 39 ELSE NULL END THEN NULL WHEN - NULLIF ( - 46, - 5 ) * - 9 + 94 THEN NULL END ) + 4 * 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT - + 16 * - CASE - SUM( ALL - 47 ) WHEN + COUNT( + 34 ) * 16 THEN + + 73 + + 44 * - 2 WHEN - 40 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1661
SELECT - + 16 * - CASE - SUM ( ALL - 47 ) WHEN + COUNT ( + 34 ) * 16 THEN + + 73 + + 44 * - 2 WHEN - 40 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1662
SELECT - 86 * + 8 + 12 DIV - 8
----
-689

skipif mysql # not compatible
query I rowsort label-1662
SELECT - 86 * + 8 + 12 / - 8
----
-689

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT ALL + 66 * + COALESCE ( - 57, - 3 * + - MAX( - 66 ) + - + 86, - 61 ) * + 52 * - 62 + + 10 + + - 69 - + - 72
----
12128701

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL + 66 * + COALESCE ( - 57, - 3 * + - MAX ( - 66 ) + - + 86, - 61 ) * + 52 * - 62 + + 10 + + - 69 - + - 72
----
12128701

query I rowsort
SELECT - - 41 * + 45
----
1845

onlyif mysql # DIV for integer division: 
query I rowsort label-1665
SELECT DISTINCT - + 32 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT - + 32 / 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT ALL + NULLIF ( + + 83, + COALESCE ( - - COUNT( * ), 93 ) + - 5 )
----
83

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL + NULLIF ( + + 83, + COALESCE ( - - COUNT ( * ), 93 ) + - 5 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT DISTINCT + MAX( DISTINCT - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-1667
SELECT DISTINCT + MAX ( DISTINCT - 83 )
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1668
SELECT - 5 - + + COUNT( DISTINCT + - NULLIF ( - - 5, + + 70 ) ) + - 35 * - SUM( ALL - + 1 ) DIV - 59, 50 AS col1
----
-6
50

skipif mysql # not compatible
query II rowsort label-1668
SELECT - 5 - + + COUNT ( DISTINCT + - NULLIF ( - - 5, + + 70 ) ) + - 35 * - SUM ( ALL - + 1 ) / - 59, 50 AS col1
----
-6
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT DISTINCT - 5 * - 60 * + 6 * + MAX( - 74 ) AS col1
----
-133200

skipif mysql # not compatible
query I rowsort label-1669
SELECT DISTINCT - 5 * - 60 * + 6 * + MAX ( - 74 ) AS col1
----
-133200

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1671
SELECT - 52 * + CAST( - 71 AS SIGNED )
----
3692

skipif mysql # not compatible
query I rowsort label-1671
SELECT - 52 * + CAST ( - 71 AS INTEGER )
----
3692

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT - 70 + CASE + + 48 WHEN - + 72 THEN NULL WHEN + - COUNT( * ) THEN + + 14 / + + 68 * - 72 * + 70 * - 3 * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1672
SELECT - 70 + CASE + + 48 WHEN - + 72 THEN NULL WHEN + - COUNT ( * ) THEN + + 14 / + + 68 * - 72 * + 70 * - 3 * - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1673
SELECT - COALESCE ( - 79, - + CAST( 82 AS SIGNED ) * + COALESCE ( + CAST( NULL AS SIGNED ), 81 * + 34 + ( 32 ) + + - 51, + NULLIF ( + 27, - - 52 ) + - 38 * - 97 ) * 94 ) + 96 * - COALESCE ( ( - CASE + CASE 94 WHEN - ( 57 ) + - 20 THEN 38 END WHEN 30 THEN MIN( ( CAST( NULL AS SIGNED ) ) ) + + 45 END ) * 20 - 97, + 37 * COUNT( * ) - COUNT( * ) )
----
-3377

skipif mysql # not compatible
query I rowsort label-1673
SELECT - COALESCE ( - 79, - + CAST ( 82 AS INTEGER ) * + COALESCE ( + CAST ( NULL AS INTEGER ), 81 * + 34 + ( 32 ) + + - 51, + NULLIF ( + 27, - - 52 ) + - 38 * - 97 ) * 94 ) + 96 * - COALESCE ( ( - CASE + CASE 94 WHEN - ( 57 ) + - 20 THEN 38 END WHEN 30 THEN MIN ( ( CAST ( NULL AS INTEGER ) ) ) + + 45 END ) * 20 - 97, + 37 * COUNT ( * ) - COUNT ( * ) )
----
-3377

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT DISTINCT 75 * - ( COUNT( * ) ) + - 36
----
-111

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT 75 * - ( COUNT ( * ) ) + - 36
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT + COALESCE ( - 44, - - 69 ) * - - COALESCE ( 1, + 41 ) + 96 + + SUM( - ( ( - 62 ) ) ) AS col2
----
114

skipif mysql # not compatible
query I rowsort label-1675
SELECT + COALESCE ( - 44, - - 69 ) * - - COALESCE ( 1, + 41 ) + 96 + + SUM ( - ( ( - 62 ) ) ) AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT ALL 50 * - ( COUNT( 75 ) ) + - 32 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL 50 * - ( COUNT ( 75 ) ) + - 32 AS col1
----
-82

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

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

query I rowsort
SELECT + 92 + 51 * - + 25
----
-1183

onlyif mysql # DIV for integer division: 
query I rowsort label-1679
SELECT ALL 98 DIV - 80 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL 98 / - 80 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT ALL COUNT( DISTINCT + 14 ) + + 62
----
63

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL COUNT ( DISTINCT + 14 ) + + 62
----
63

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

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

query II rowsort
SELECT + 68 + 7 AS col0, - 81 AS col1
----
75
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1683
SELECT + COALESCE ( 83, + - 62, + COUNT( * ), COUNT( DISTINCT + 8 ) - + 70 + + COUNT( * ) + + COUNT( * ) + 72 * - SUM( + 5 ), 46 ) DIV 77
----
1

skipif mysql # not compatible
query I rowsort label-1683
SELECT + COALESCE ( 83, + - 62, + COUNT ( * ), COUNT ( DISTINCT + 8 ) - + 70 + + COUNT ( * ) + + COUNT ( * ) + 72 * - SUM ( + 5 ), 46 ) / 77
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT + + 33 + - NULLIF ( 88, - 60 + - MAX( ALL + 49 ) * - ( - COUNT( * ) ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-1684
SELECT + + 33 + - NULLIF ( 88, - 60 + - MAX ( ALL + 49 ) * - ( - COUNT ( * ) ) ) AS col1
----
-55

query I rowsort
SELECT ALL 1 + - 52 AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1686
SELECT + MAX( 96 ) * - 40 * + 56 DIV - COUNT( * ) AS col2
----
215040

skipif mysql # not compatible
query I rowsort label-1686
SELECT + MAX ( 96 ) * - 40 * + 56 / - COUNT ( * ) AS col2
----
215040

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT + - 58 + + 86 * - 71 * - ( 10 ) * 35 * 44 * COUNT( * )
----
94032342

skipif mysql # not compatible
query I rowsort label-1687
SELECT + - 58 + + 86 * - 71 * - ( 10 ) * 35 * 44 * COUNT ( * )
----
94032342

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1689
SELECT + SUM( - 17 ) DIV - + 76
----
0

skipif mysql # not compatible
query I rowsort label-1689
SELECT + SUM ( - 17 ) / - + 76
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1690
SELECT ALL CAST( - - 22 AS SIGNED ) + + 17 + + NULLIF ( - 60, - COALESCE ( 59, 3 ) * - - 44 * 63 * + - COUNT( * ) ) + 64 * + + 44
----
2795

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL CAST ( - - 22 AS INTEGER ) + + 17 + + NULLIF ( - 60, - COALESCE ( 59, 3 ) * - - 44 * 63 * + - COUNT ( * ) ) + 64 * + + 44
----
2795

onlyif mysql # aggregate syntax: 
query II rowsort label-1691
SELECT + COUNT( * ) * + - 69 AS col2, - 44
----
-69
-44

skipif mysql # not compatible
query II rowsort label-1691
SELECT + COUNT ( * ) * + - 69 AS col2, - 44
----
-69
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT ALL - + COALESCE ( - + CASE - COALESCE ( - 99, 63 ) WHEN - + 77 THEN NULL WHEN 66 THEN + 86 END, - COUNT( * ) ) + 38 * + - 31
----
-1177

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL - + COALESCE ( - + CASE - COALESCE ( - 99, 63 ) WHEN - + 77 THEN NULL WHEN 66 THEN + 86 END, - COUNT ( * ) ) + 38 * + - 31
----
-1177

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT ALL SUM( DISTINCT + - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL SUM ( DISTINCT + - 26 )
----
-26

query I rowsort
SELECT - ( ( 47 ) ) AS col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1695
SELECT ALL COUNT( * ) - 26 AS col1, 55 + CAST( NULL AS SIGNED )
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-1695
SELECT ALL COUNT ( * ) - 26 AS col1, 55 + CAST ( NULL AS INTEGER )
----
-25
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1697
SELECT ALL - MIN( CAST( + 50 AS SIGNED ) ) * + 30
----
-1500

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL - MIN ( CAST ( + 50 AS INTEGER ) ) * + 30
----
-1500

query I rowsort
SELECT + - 54 + 95
----
41

query I rowsort
SELECT + CASE + + 48 WHEN + AVG ( ALL + + 49 ) THEN NULL ELSE + 35 END AS col1
----
35

query I rowsort
SELECT 91 * + 15 + 96 * 77 + 40
----
8797

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1701
SELECT CAST( 6 AS SIGNED ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1701
SELECT CAST ( 6 AS INTEGER ) AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1702
SELECT - 82 + 38 + 29 + + NULLIF ( 70, - - COUNT( * ) * 69 / 59 + - COUNT( DISTINCT 45 ) * - CASE 66 WHEN + + 3 THEN NULL WHEN COUNT( * ) * - MIN( ALL 55 ) - + 28 THEN NULL ELSE 1 END ) * SUM( 10 + 98 ) * - CASE 4 WHEN 47 * - 66 THEN NULL WHEN 63 THEN + 90 * + COUNT( * ) WHEN 68 * + NULLIF ( + 64, 64 ) - + COUNT( * ) * CASE + NULLIF ( ( + 2 ), + 69 ) WHEN - MAX( ALL + CASE + 2 WHEN 26 THEN NULL WHEN 55 * + 90 THEN - 63 * 91 + - CAST( - 58 AS SIGNED ) END ) + 69 THEN NULL WHEN 5 * COUNT( * ) + + 38 THEN 46 * - 34 + - 61 END THEN + 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1702
SELECT - 82 + 38 + 29 + + NULLIF ( 70, - - COUNT ( * ) * 69 / 59 + - COUNT ( DISTINCT 45 ) * - CASE 66 WHEN + + 3 THEN NULL WHEN COUNT ( * ) * - MIN ( ALL 55 ) - + 28 THEN NULL ELSE 1 END ) * SUM ( 10 + 98 ) * - CASE 4 WHEN 47 * - 66 THEN NULL WHEN 63 THEN + 90 * + COUNT ( * ) WHEN 68 * + NULLIF ( + 64, 64 ) - + COUNT ( * ) * CASE + NULLIF ( ( + 2 ), + 69 ) WHEN - MAX ( ALL + CASE + 2 WHEN 26 THEN NULL WHEN 55 * + 90 THEN - 63 * 91 + - CAST ( - 58 AS INTEGER ) END ) + 69 THEN NULL WHEN 5 * COUNT ( * ) + + 38 THEN 46 * - 34 + - 61 END THEN + 30 END
----
NULL

query II rowsort
SELECT - CASE + - 45 WHEN + 87 * + - ( 15 ) THEN 84 * 69 * + 83 + - 0 END + + 26, - ( + 49 ) AS col0
----
NULL
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-1704
SELECT ALL + 46 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL + 46 / - 51
----
0

query I rowsort
SELECT - 29 * - - 76 AS col0
----
-2204

query I rowsort
SELECT ALL + 19 + + 30 * + 37 AS col1
----
1129

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

skipif mysql # not compatible
query I rowsort label-1707
SELECT 78 * + COUNT ( ALL + - 7 ) AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1708
SELECT ALL + 46 + + NULLIF ( + CASE + - 43 WHEN + 97 / - 83 + - - 20 THEN + 9 + + - 75 + - 84 * 92 + - CASE WHEN NULL <= NULL THEN + 13 ELSE NULL END * - 34 + 72 * 39 WHEN NULLIF ( 77, - 86 + - CAST( NULL AS DECIMAL ) * - NULLIF ( 74 + 43 / 45, - 73 * MAX( + 8 ) ) ) * - 26 THEN NULL WHEN - CAST( COUNT( * ) AS SIGNED ) * + COUNT( * ) + + 38 THEN NULL END, - 67 ) + 98 / - 60 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL + 46 + + NULLIF ( + CASE + - 43 WHEN + 97 / - 83 + - - 20 THEN + 9 + + - 75 + - 84 * 92 + - CASE WHEN NULL <= NULL THEN + 13 ELSE NULL END * - 34 + 72 * 39 WHEN NULLIF ( 77, - 86 + - CAST ( NULL AS REAL ) * - NULLIF ( 74 + 43 / 45, - 73 * MAX ( + 8 ) ) ) * - 26 THEN NULL WHEN - CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * ) + + 38 THEN NULL END, - 67 ) + 98 / - 60 col2
----
NULL

query I rowsort
SELECT 87 * - ( - 9 ) * - - 20 + 40 AS col0
----
15700

query I rowsort
SELECT ALL - 56 * - - NULLIF ( - - 13, + 74 * 56 * 25 ) * 24 * - - 1 AS col2
----
-17472

query I rowsort
SELECT 77 * - 56
----
-4312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1712
SELECT 13 * + COALESCE ( - CAST( NULL AS SIGNED ), 46, 73 * - + 96, - 83 + 28 * - 52 )
----
598

skipif mysql # not compatible
query I rowsort label-1712
SELECT 13 * + COALESCE ( - CAST ( NULL AS INTEGER ), 46, 73 * - + 96, - 83 + 28 * - 52 )
----
598

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1714
SELECT ALL + MAX( + CAST( NULL AS SIGNED ) ) + - AVG ( DISTINCT - - 90 ) * + SUM( DISTINCT - ( - 55 ) ) / - 25 + 38 + + + ( + 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL + MAX ( + CAST ( NULL AS INTEGER ) ) + - AVG ( DISTINCT - - 90 ) * + SUM ( DISTINCT - ( - 55 ) ) / - 25 + 38 + + + ( + 0 )
----
NULL

query I rowsort
SELECT 93 - - 43
----
136

query I rowsort
SELECT DISTINCT - + 45 + 10 AS col2
----
-35

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1719
SELECT 85 * + COUNT( * ) * + 67 AS col1, COUNT( ALL 47 )
----
5695
1

skipif mysql # not compatible
query II rowsort label-1719
SELECT 85 * + COUNT ( * ) * + 67 AS col1, COUNT ( ALL 47 )
----
5695
1

query I rowsort
SELECT ALL + COALESCE ( + 89, + 81 )
----
89

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

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

query I rowsort
SELECT - 18 - - COALESCE ( 95, 24, + 12, 46 ) + + 81 + 81 + 56
----
295

onlyif mysql # aggregate syntax: 
query II rowsort label-1723
SELECT - - COUNT( * ) AS col0, + NULLIF ( 96, NULLIF ( + - 63, + - ( - + 0 ) ) * 4 ) + - + 7 * - - 98
----
1
-590

skipif mysql # not compatible
query II rowsort label-1723
SELECT - - COUNT ( * ) AS col0, + NULLIF ( 96, NULLIF ( + - 63, + - ( - + 0 ) ) * 4 ) + - + 7 * - - 98
----
1
-590

query I rowsort
SELECT - 62 + - 55
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1725
SELECT 77 DIV + MAX( + - 89 ) AS col2, - 3
----
0
-3

skipif mysql # not compatible
query II rowsort label-1725
SELECT 77 / + MAX ( + - 89 ) AS col2, - 3
----
0
-3

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

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL 1 * - + 42 + COUNT ( * ) AS col0
----
-41

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

skipif mysql # not compatible
query I rowsort label-1727
SELECT COUNT ( * ) * - COUNT ( ALL - + 42 ) + 30 AS col0
----
29

query I rowsort
SELECT ALL ( 49 ) - - 41
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-1729
SELECT ALL - 63 * + - 44 * - + 49 AS col2, + COUNT( * ) AS col0
----
-135828
1

skipif mysql # not compatible
query II rowsort label-1729
SELECT ALL - 63 * + - 44 * - + 49 AS col2, + COUNT ( * ) AS col0
----
-135828
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT ALL MIN( - 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL MIN ( - 31 ) AS col1
----
-31

query I rowsort
SELECT DISTINCT + - ( 15 ) * - 18 AS col2
----
270

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1733
SELECT - NULLIF ( + 27, - - 37 ) col0, + 40 + + 88 + + CAST( NULL AS SIGNED ) + - 13 + + AVG ( - + 19 ) / 77
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-1733
SELECT - NULLIF ( + 27, - - 37 ) col0, + 40 + + 88 + + CAST ( NULL AS INTEGER ) + - 13 + + AVG ( - + 19 ) / 77
----
-27
NULL

query I rowsort
SELECT + 25 + + 41
----
66

query II rowsort
SELECT DISTINCT 78, 17 * + - 19 AS col0
----
78
-323

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT DISTINCT MIN( DISTINCT + + COALESCE ( + 51, 56 * - 79 + 73 - 2 ) )
----
51

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT MIN ( DISTINCT + + COALESCE ( + 51, 56 * - 79 + 73 - 2 ) )
----
51

query II rowsort
SELECT + 51 AS col1, 54 AS col2
----
51
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1738
SELECT 81 + - 93 + NULLIF ( - + COUNT( * ), - 39 * - 11 + - + 1 + COALESCE ( + 75, - 60 * COUNT( * ) * 22 * + CAST( NULL AS SIGNED ) * - 1 + - + 68 * 72 + + ( - COUNT( * ) ) * COUNT( * ) ) + COUNT( * ) * - 78 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-1738
SELECT 81 + - 93 + NULLIF ( - + COUNT ( * ), - 39 * - 11 + - + 1 + COALESCE ( + 75, - 60 * COUNT ( * ) * 22 * + CAST ( NULL AS INTEGER ) * - 1 + - + 68 * 72 + + ( - COUNT ( * ) ) * COUNT ( * ) ) + COUNT ( * ) * - 78 ) AS col0
----
-13

query II rowsort
SELECT 67, 50 AS col2
----
67
50

query I rowsort
SELECT 91 + + 6 AS col0
----
97

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

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

query II rowsort
SELECT DISTINCT - 29 AS col1, 51
----
-29
51

query I rowsort
SELECT ALL 40 + + 98 * - ( 20 ) + 97 - 54 * 40 AS col0
----
-3983

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT + 80 * - + MAX( DISTINCT + 63 ) - + 50 AS col2
----
-5090

skipif mysql # not compatible
query I rowsort label-1744
SELECT + 80 * - + MAX ( DISTINCT + 63 ) - + 50 AS col2
----
-5090

query II rowsort
SELECT DISTINCT - 4 col0, 54 + - - 46 AS col2
----
-4
100

query I rowsort
SELECT ALL - 87 + 22 AS col0
----
-65

query II rowsort
SELECT + 17 AS col2, ( - 6 ) * - ( 38 ) col2
----
17
228

query I rowsort
SELECT DISTINCT - 78 + + - 32
----
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-1749
SELECT ( + 21 ) DIV - 4
----
-5

skipif mysql # not compatible
query I rowsort label-1749
SELECT ( + 21 ) / - 4
----
-5

query I rowsort
SELECT ALL + 15 + + ( - 28 ) col1
----
-13

query II rowsort
SELECT ALL - 61 col0, 25 AS col2
----
-61
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1752
SELECT 4, 28 * - + CAST( NULL AS SIGNED ) col1
----
4
NULL

skipif mysql # not compatible
query II rowsort label-1752
SELECT 4, 28 * - + CAST ( NULL AS INTEGER ) col1
----
4
NULL

query I rowsort
SELECT ALL 81 + - - 57
----
138

query I rowsort
SELECT 3 - 70
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT + NULLIF ( - - 80, + 87 ) * ( 83 ) + + MIN( ALL + + 5 ) AS col0
----
6645

skipif mysql # not compatible
query I rowsort label-1755
SELECT + NULLIF ( - - 80, + 87 ) * ( 83 ) + + MIN ( ALL + + 5 ) AS col0
----
6645

onlyif mysql # aggregate syntax: 
query II rowsort label-1756
SELECT ALL + COUNT( * ) + + 14 AS col1, 57 + + 82 - + 91
----
15
48

skipif mysql # not compatible
query II rowsort label-1756
SELECT ALL + COUNT ( * ) + + 14 AS col1, 57 + + 82 - + 91
----
15
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1757
SELECT 91, 71 * COUNT( * ) + 72 * 68 * 74 AS col1
----
91
362375

skipif mysql # not compatible
query II rowsort label-1757
SELECT 91, 71 * COUNT ( * ) + 72 * 68 * 74 AS col1
----
91
362375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1758
SELECT 22 * + CASE + 81 WHEN - + ( - 60 ) THEN - - COALESCE ( + COUNT( * ), MIN( DISTINCT ( COALESCE ( + 59, CAST( NULL AS SIGNED ) ) ) ) * + 88, + 32, + - 70 * - - AVG ( DISTINCT 70 ) + 55 * 91 ) WHEN + 42 - - 54 THEN NULL ELSE NULL END / + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-1758
SELECT 22 * + CASE + 81 WHEN - + ( - 60 ) THEN - - COALESCE ( + COUNT ( * ), MIN ( DISTINCT ( COALESCE ( + 59, CAST ( NULL AS INTEGER ) ) ) ) * + 88, + 32, + - 70 * - - AVG ( DISTINCT 70 ) + 55 * 91 ) WHEN + 42 - - 54 THEN NULL ELSE NULL END / + 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT MIN( 0 ) + 33 - - + 79 * + - CASE - 34 WHEN + + ( 67 ) THEN NULL ELSE 45 END * - 88 + 52 * - 2 + - 20
----
312749

skipif mysql # not compatible
query I rowsort label-1759
SELECT MIN ( 0 ) + 33 - - + 79 * + - CASE - 34 WHEN + + ( 67 ) THEN NULL ELSE 45 END * - 88 + 52 * - 2 + - 20
----
312749

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1760
SELECT DISTINCT - 64 AS col0, - NULLIF ( + 96, + 45 ) * ( 46 ) + + 99 AS col1, + CAST( NULL AS SIGNED )
----
-64
-4317
NULL

skipif mysql # not compatible
query III rowsort label-1760
SELECT DISTINCT - 64 AS col0, - NULLIF ( + 96, + 45 ) * ( 46 ) + + 99 AS col1, + CAST ( NULL AS INTEGER )
----
-64
-4317
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1761
SELECT ALL + 88 DIV - COUNT( DISTINCT - - ( + 67 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL + 88 / - COUNT ( DISTINCT - - ( + 67 ) )
----
-88

query I rowsort
SELECT 3 + - - 88
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT 89 * + + 41 + - - NULLIF ( - 63, + COUNT( * ) ) * - 98
----
9823

skipif mysql # not compatible
query I rowsort label-1763
SELECT 89 * + + 41 + - - NULLIF ( - 63, + COUNT ( * ) ) * - 98
----
9823

query I rowsort
SELECT ALL - 25 - + 87 col2
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-1765
SELECT ALL + 19 * 42 * MIN( ALL - + 95 ), 16 AS col1
----
-75810
16

skipif mysql # not compatible
query II rowsort label-1765
SELECT ALL + 19 * 42 * MIN ( ALL - + 95 ), 16 AS col1
----
-75810
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT ALL - - 59 - - + COUNT( * ) - 55 * - 33 * 70
----
127110

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL - - 59 - - + COUNT ( * ) - 55 * - 33 * 70
----
127110

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT DISTINCT + - 96 * + 81 * + 35 * - + NULLIF ( - 91, + - NULLIF ( - 3, - 52 * - COUNT( ( - 7 ) ) + - 79 * - COUNT( * ) * - + COUNT( * ) ) ) + + 94 * COUNT( * ) + MIN( DISTINCT + 87 )
----
-24766379

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT + - 96 * + 81 * + 35 * - + NULLIF ( - 91, + - NULLIF ( - 3, - 52 * - COUNT ( ( - 7 ) ) + - 79 * - COUNT ( * ) * - + COUNT ( * ) ) ) + + 94 * COUNT ( * ) + MIN ( DISTINCT + 87 )
----
-24766379

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT COUNT( DISTINCT - 33 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1768
SELECT COUNT ( DISTINCT - 33 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT ALL + 75 * + 99 + + COUNT( * ) AS col1
----
7426

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL + 75 * + 99 + + COUNT ( * ) AS col1
----
7426

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT - 2 + - 64 * COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-1770
SELECT - 2 + - 64 * COUNT ( * ) AS col1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1771
SELECT - COUNT( * ) + + 51 DIV + - 93
----
-1

skipif mysql # not compatible
query I rowsort label-1771
SELECT - COUNT ( * ) + + 51 / + - 93
----
-1

query II rowsort
SELECT - - 33 AS col1, 56
----
33
56

query II rowsort
SELECT 34, - 51 AS col1
----
34
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT NULLIF ( - ( - 66 ), 31 - MAX( ALL - 96 ) / 88 ) * + COUNT( * ) + + 53
----
119

skipif mysql # not compatible
query I rowsort label-1774
SELECT NULLIF ( - ( - 66 ), 31 - MAX ( ALL - 96 ) / 88 ) * + COUNT ( * ) + + 53
----
119

query I rowsort
SELECT DISTINCT + 81 * - 54 col2
----
-4374

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1777
SELECT ALL NULLIF ( + - 38, - - 76 * + + 43 * + MIN( - 16 ) ) DIV - 24
----
1

skipif mysql # not compatible
query I rowsort label-1777
SELECT ALL NULLIF ( + - 38, - - 76 * + + 43 * + MIN ( - 16 ) ) / - 24
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT 2 * - 86 * COUNT( * ) col0
----
-172

skipif mysql # not compatible
query I rowsort label-1778
SELECT 2 * - 86 * COUNT ( * ) col0
----
-172

onlyif mysql # aggregate syntax: 
query II rowsort label-1779
SELECT ALL - 92 AS col0, COUNT( ALL + - 49 )
----
-92
1

skipif mysql # not compatible
query II rowsort label-1779
SELECT ALL - 92 AS col0, COUNT ( ALL + - 49 )
----
-92
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1780
SELECT DISTINCT 84, + CASE + - 2 WHEN - - COUNT( * ) THEN NULL ELSE + 84 + - COUNT( + - 84 ) END AS col0
----
84
83

skipif mysql # not compatible
query II rowsort label-1780
SELECT DISTINCT 84, + CASE + - 2 WHEN - - COUNT ( * ) THEN NULL ELSE + 84 + - COUNT ( + - 84 ) END AS col0
----
84
83

query I rowsort
SELECT 81 * + + 8
----
648

query I rowsort
SELECT DISTINCT + 66 + 54 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT ALL CASE + 6 WHEN - COUNT( * ) * - 4 * - 66 * - + 21 THEN + 29 ELSE + + 40 + - 31 + + - 47 END
----
-38

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL CASE + 6 WHEN - COUNT ( * ) * - 4 * - 66 * - + 21 THEN + 29 ELSE + + 40 + - 31 + + - 47 END
----
-38

query I rowsort
SELECT DISTINCT 6 * 95 AS col0
----
570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1785
SELECT 91 * COUNT( ALL - 43 ) DIV - + 66 + - 93 + + ( 94 )
----
0

skipif mysql # not compatible
query I rowsort label-1785
SELECT 91 * COUNT ( ALL - 43 ) / - + 66 + - 93 + + ( 94 )
----
0

query I rowsort
SELECT ALL 41 + 17 AS col0
----
58

query I rowsort
SELECT - 47 + - 73
----
-120

query III rowsort
SELECT DISTINCT - 46 + 74 AS col2, + 88 AS col2, + - 3 + - - 75 * 54 AS col2
----
28
88
4047

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1789
SELECT + NULLIF ( - 34, + 33 ) + + CAST( + - ( + ( + ( + + 28 ) ) ) AS SIGNED ) + + 54 col0
----
-8

skipif mysql # not compatible
query I rowsort label-1789
SELECT + NULLIF ( - 34, + 33 ) + + CAST ( + - ( + ( + ( + + 28 ) ) ) AS INTEGER ) + + 54 col0
----
-8

query I rowsort
SELECT + 82 * + 40
----
3280

query I rowsort
SELECT ALL 95 * - 77 + + - COALESCE ( - 60, + ( + 81 ) * 68 * + + 97 * - 60, + + 50 * + 86 ) + - 62 AS col1
----
-7317

query I rowsort
SELECT ALL 93 / - ( + CASE + NULLIF ( + 55, 91 + + - 38 * - - ( + 96 ) + - - 17 ) WHEN - 82 * 68 * 36 THEN 86 * - 79 + + 11 - + 68 - + 97 / - 31 * 71 END ) * 55 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1793
SELECT CASE - CASE - 11 WHEN - + 61 THEN - + 25 END WHEN - 57 THEN + COUNT( * ) * - ( 4 ) * 79 WHEN 14 + - 69 + - + 86 THEN CASE 52 WHEN + - 45 * + - 57 * CASE 93 * 35 WHEN 8 * + 89 + 70 THEN CAST( NULL AS SIGNED ) END THEN NULL ELSE 95 * ( - 50 * + 61 ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1793
SELECT CASE - CASE - 11 WHEN - + 61 THEN - + 25 END WHEN - 57 THEN + COUNT ( * ) * - ( 4 ) * 79 WHEN 14 + - 69 + - + 86 THEN CASE 52 WHEN + - 45 * + - 57 * CASE 93 * 35 WHEN 8 * + 89 + 70 THEN CAST ( NULL AS INTEGER ) END THEN NULL ELSE 95 * ( - 50 * + 61 ) END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1794
SELECT + 69 + - + 12 - + 29 - - - MAX( - 60 ) * + + 97 * + COALESCE ( + - COUNT( * ), 81 - CAST( NULL AS SIGNED ) + + 82 + 18 ) AS col0
----
-5792

skipif mysql # not compatible
query I rowsort label-1794
SELECT + 69 + - + 12 - + 29 - - - MAX ( - 60 ) * + + 97 * + COALESCE ( + - COUNT ( * ), 81 - CAST ( NULL AS INTEGER ) + + 82 + 18 ) AS col0
----
-5792

onlyif mysql # aggregate syntax: 
query II rowsort label-1795
SELECT + COUNT( 29 ) AS col2, + 67 * + 80 - + + 16 AS col2
----
1
5344

skipif mysql # not compatible
query II rowsort label-1795
SELECT + COUNT ( 29 ) AS col2, + 67 * + 80 - + + 16 AS col2
----
1
5344

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT + 45 + - - CASE - 24 WHEN 28 * + + COUNT( * ) + - 11 + ( - 49 ) THEN - 2 WHEN - + 10 THEN NULL WHEN + 19 THEN NULL ELSE COUNT( * ) END * 13 col1
----
58

skipif mysql # not compatible
query I rowsort label-1796
SELECT + 45 + - - CASE - 24 WHEN 28 * + + COUNT ( * ) + - 11 + ( - 49 ) THEN - 2 WHEN - + 10 THEN NULL WHEN + 19 THEN NULL ELSE COUNT ( * ) END * 13 col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1797
SELECT COUNT( + - 96 ) AS col2, + 53 col0
----
1
53

skipif mysql # not compatible
query II rowsort label-1797
SELECT COUNT ( + - 96 ) AS col2, + 53 col0
----
1
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT ALL - MAX( ALL + 92 ) * + 41 - + 5 AS col0
----
-3777

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL - MAX ( ALL + 92 ) * + 41 - + 5 AS col0
----
-3777

query I rowsort
SELECT DISTINCT NULLIF ( + 78, - 77 ) * + + 33 * - 91
----
-234234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1800
SELECT + 78 * - 61, 67 * - + SUM( - - 48 ) + - 70 * + CAST( + 61 AS SIGNED ) AS col1
----
-4758
-7486

skipif mysql # not compatible
query II rowsort label-1800
SELECT + 78 * - 61, 67 * - + SUM ( - - 48 ) + - 70 * + CAST ( + 61 AS INTEGER ) AS col1
----
-4758
-7486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1801
SELECT CASE + 69 WHEN + 61 THEN - - MIN( - 99 ) WHEN - MAX( CAST( NULL AS SIGNED ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1801
SELECT CASE + 69 WHEN + 61 THEN - - MIN ( - 99 ) WHEN - MAX ( CAST ( NULL AS INTEGER ) ) THEN NULL END
----
NULL

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

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

query I rowsort
SELECT + + 49 * + - 56 * - + 70 col1
----
192080

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1805
SELECT - + 93 * MAX( 87 ) + + - CAST( NULL AS SIGNED ) - + + 85 AS col0, - CASE ( CAST( 50 AS SIGNED ) ) WHEN + 76 THEN NULL WHEN CAST( NULL AS SIGNED ) * 40 THEN NULL WHEN + - 10 THEN + 45 ELSE - 6 * + + 89 * - - 61 END * + 32 col1
----
NULL
1042368

skipif mysql # not compatible
query II rowsort label-1805
SELECT - + 93 * MAX ( 87 ) + + - CAST ( NULL AS INTEGER ) - + + 85 AS col0, - CASE ( CAST ( 50 AS INTEGER ) ) WHEN + 76 THEN NULL WHEN CAST ( NULL AS INTEGER ) * 40 THEN NULL WHEN + - 10 THEN + 45 ELSE - 6 * + + 89 * - - 61 END * + 32 col1
----
NULL
1042368

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1806
SELECT ALL + CAST( 73 AS SIGNED ), - 11 AS col2
----
73
-11

skipif mysql # not compatible
query II rowsort label-1806
SELECT ALL + CAST ( 73 AS INTEGER ), - 11 AS col2
----
73
-11

query II rowsort
SELECT ALL - 72 * - 48 AS col2, - 40 col2
----
3456
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1808
SELECT - SUM( + + 92 ) DIV - + 52 * CASE + COUNT( * ) WHEN - 41 + - 68 DIV MAX( ALL - 9 ) THEN NULL WHEN COUNT( * ) THEN 99 ELSE NULL END DIV + 74 + - + CAST( NULLIF ( + COUNT( * ), - CASE + 72 WHEN CAST( NULL AS SIGNED ) + 50 THEN 70 * - 31 + - 1 * 92 WHEN 43 * - MAX( DISTINCT 99 ) THEN 21 DIV 53 ELSE NULL END * - 96 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1808
SELECT - SUM ( + + 92 ) / - + 52 * CASE + COUNT ( * ) WHEN - 41 + - 68 / MAX ( ALL - 9 ) THEN NULL WHEN COUNT ( * ) THEN 99 ELSE NULL END / + 74 + - + CAST ( NULLIF ( + COUNT ( * ), - CASE + 72 WHEN CAST ( NULL AS INTEGER ) + 50 THEN 70 * - 31 + - 1 * 92 WHEN 43 * - MAX ( DISTINCT 99 ) THEN 21 / 53 ELSE NULL END * - 96 ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1809
SELECT DISTINCT + 61 DIV 88 * - 12 + + NULLIF ( 94, + 78 + + 8 DIV 32 DIV + + ( + 35 ) ) + - SUM( DISTINCT 19 ), 20 + - COUNT( DISTINCT 45 ) AS col0
----
75
19

skipif mysql # not compatible
query II rowsort label-1809
SELECT DISTINCT + 61 / 88 * - 12 + + NULLIF ( 94, + 78 + + 8 / 32 / + + ( + 35 ) ) + - SUM ( DISTINCT 19 ), 20 + - COUNT ( DISTINCT 45 ) AS col0
----
75
19

query I rowsort
SELECT + 47 + - + 14
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT - + COUNT( * ) + - 58 * + - SUM( + 21 )
----
1217

skipif mysql # not compatible
query I rowsort label-1811
SELECT - + COUNT ( * ) + - 58 * + - SUM ( + 21 )
----
1217

query I rowsort
SELECT - + 42 - 40 * + 49
----
-2002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1813
SELECT ALL + 37 * - 42 * - COUNT( * ) + + + 2 DIV + 8 AS col2
----
1554

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL + 37 * - 42 * - COUNT ( * ) + + + 2 / + 8 AS col2
----
1554

query I rowsort
SELECT - 39 * 6 * - + 72
----
16848

query I rowsort
SELECT DISTINCT + 20 + - - 73
----
93

query I rowsort
SELECT ALL - 87 + - 39
----
-126

query I rowsort
SELECT ALL - 32 + - 30
----
-62

query I rowsort
SELECT - 6 + 91 - NULLIF ( + + 44, 48 * - 11 + + 91 ) AS col0
----
41

query I rowsort
SELECT ALL - 60 * + 52 * 42
----
-131040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1820
SELECT DISTINCT CASE + 32 WHEN 14 THEN + CAST( NULL AS SIGNED ) * - COALESCE ( 50, - COUNT( * ) ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT CASE + 32 WHEN 14 THEN + CAST ( NULL AS INTEGER ) * - COALESCE ( 50, - COUNT ( * ) ) END col1
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 96, + 20 ) col1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-1822
SELECT DISTINCT 52 DIV 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT 52 / 89 AS col2
----
0

query I rowsort
SELECT ALL - 33 + + 1 AS col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1824
SELECT - 87 + - COUNT( * ) + CAST( NULL AS SIGNED ) + + 1 / + - ( - + 42 ) + + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT - 87 + - COUNT ( * ) + CAST ( NULL AS INTEGER ) + + 1 / + - ( - + 42 ) + + 51 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1825
SELECT 16 AS col1, - COUNT( * ) + - 94 AS col1
----
16
-95

skipif mysql # not compatible
query II rowsort label-1825
SELECT 16 AS col1, - COUNT ( * ) + - 94 AS col1
----
16
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1826
SELECT CAST( NULL AS DECIMAL ) AS col0, - 25
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-1826
SELECT CAST ( NULL AS REAL ) AS col0, - 25
----
NULL
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-1827
SELECT ALL - 97 * + + 62 * + + COUNT( * ), + MAX( DISTINCT + - 24 ) col2
----
-6014
-24

skipif mysql # not compatible
query II rowsort label-1827
SELECT ALL - 97 * + + 62 * + + COUNT ( * ), + MAX ( DISTINCT + - 24 ) col2
----
-6014
-24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT ALL NULLIF ( - + 75, - ( COUNT( * ) ) ) * + 26
----
-1950

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL NULLIF ( - + 75, - ( COUNT ( * ) ) ) * + 26
----
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT - COUNT( * ) * + + 44 * + 58 + 61
----
-2491

skipif mysql # not compatible
query I rowsort label-1830
SELECT - COUNT ( * ) * + + 44 * + 58 + 61
----
-2491

onlyif mysql # DIV for integer division: 
query I rowsort label-1831
SELECT - 92 DIV 28 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1831
SELECT - 92 / 28 AS col1
----
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1833
SELECT DISTINCT - COUNT( * ) DIV - 48 - - 25 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT - COUNT ( * ) / - 48 - - 25 AS col2
----
25

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1835
SELECT ALL + COALESCE ( + - 62, + + 54 ) * + - 30 * - 40 / - + 46 * - COUNT( * ) + ( + 27 ) * + ( - 71 ) + 76 + - - 12 * 77 / CAST( NULL AS SIGNED ) * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL + COALESCE ( + - 62, + + 54 ) * + - 30 * - 40 / - + 46 * - COUNT ( * ) + ( + 27 ) * + ( - 71 ) + 76 + - - 12 * 77 / CAST ( NULL AS INTEGER ) * 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT DISTINCT + MIN( ALL - + 97 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT + MIN ( ALL - + 97 ) AS col1
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1837
SELECT 26 * - 15 + + MAX( ALL 63 ) * + CASE 2 WHEN - 0 * 52 THEN 21 + 39 DIV 28 ELSE - 12 END * - 17 + + 70
----
12532

skipif mysql # not compatible
query I rowsort label-1837
SELECT 26 * - 15 + + MAX ( ALL 63 ) * + CASE 2 WHEN - 0 * 52 THEN 21 + 39 / 28 ELSE - 12 END * - 17 + + 70
----
12532

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT - + 53 + - COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1838
SELECT - + 53 + - COUNT ( * ) AS col2
----
-54

query II rowsort
SELECT ALL + 42 AS col2, + 39 * - 92 + - - 3 + + + 34 AS col1
----
42
-3551

query II rowsort
SELECT ALL + 73 AS col0, NULLIF ( 20, - 0 )
----
73
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1841
SELECT + 37 + - 41 + + 77 * - MAX( ALL + 56 ) * + 93 + + CAST( NULL AS DECIMAL ) * - - 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1841
SELECT + 37 + - 41 + + 77 * - MAX ( ALL + 56 ) * + 93 + + CAST ( NULL AS REAL ) * - - 76 AS col2
----
NULL

query I rowsort
SELECT + + 3 * 76
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT ALL 81 * - - ( - + NULLIF ( MAX( ALL - 73 ), + 7 ) ) + - 69 col0
----
5844

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL 81 * - - ( - + NULLIF ( MAX ( ALL - 73 ), + 7 ) ) + - 69 col0
----
5844

query I rowsort
SELECT + 51 + 1 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT ALL - CASE + 80 WHEN + 39 THEN NULL WHEN ( - - 68 ) THEN - - 13 END * + ( + 92 ) / 80 + + 48 + + COUNT( ALL - 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL - CASE + 80 WHEN + 39 THEN NULL WHEN ( - - 68 ) THEN - - 13 END * + ( + 92 ) / 80 + + 48 + + COUNT ( ALL - 72 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1846
SELECT - 16 * + 64 + + 21, + ( - COUNT( * ) ) AS col1
----
-1003
-1

skipif mysql # not compatible
query II rowsort label-1846
SELECT - 16 * + 64 + + 21, + ( - COUNT ( * ) ) AS col1
----
-1003
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT + 78 + - ( - COUNT( * ) )
----
79

skipif mysql # not compatible
query I rowsort label-1847
SELECT + 78 + - ( - COUNT ( * ) )
----
79

query I rowsort
SELECT DISTINCT + ( + 13 ) * + 43 + 97 + ( - - 91 ) * - - 21
----
2567

query II rowsort
SELECT - + 19, + 6 + - 86 AS col0
----
-19
-80

query I rowsort
SELECT + - 77 * + ( + 72 ) * - 35
----
194040

query I rowsort
SELECT - + 71 + 67 + 29 * + 51 AS col1
----
1475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1852
SELECT - + 65 AS col0, + CAST( - ( - COALESCE ( COUNT( * ), - + 10 ) ) AS SIGNED ) * 32 AS col2
----
-65
32

skipif mysql # not compatible
query II rowsort label-1852
SELECT - + 65 AS col0, + CAST ( - ( - COALESCE ( COUNT ( * ), - + 10 ) ) AS INTEGER ) * 32 AS col2
----
-65
32

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

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

query I rowsort
SELECT ALL 97 + - - 75 AS col2
----
172

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

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

query I rowsort
SELECT ALL - - 45 + - 49
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1857
SELECT CASE 72 WHEN - 6 + - - 37 + - 22 THEN NULL WHEN 59 THEN - 49 * + CAST( NULL AS SIGNED ) ELSE NULL END + - 68, - 82 * 9 * - MAX( - - NULLIF ( NULLIF ( + + 19, - 92 ), - - 57 ) ) col1
----
NULL
14022

skipif mysql # not compatible
query II rowsort label-1857
SELECT CASE 72 WHEN - 6 + - - 37 + - 22 THEN NULL WHEN 59 THEN - 49 * + CAST ( NULL AS INTEGER ) ELSE NULL END + - 68, - 82 * 9 * - MAX ( - - NULLIF ( NULLIF ( + + 19, - 92 ), - - 57 ) ) col1
----
NULL
14022

query I rowsort
SELECT DISTINCT 29 + + 32 col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1859
SELECT DISTINCT + MAX( ALL + CAST( NULL AS SIGNED ) ) * 15 * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1859
SELECT DISTINCT + MAX ( ALL + CAST ( NULL AS INTEGER ) ) * 15 * + 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1860
SELECT DISTINCT - 19 + + 91 / - CASE - - COUNT( * ) WHEN 31 THEN - CAST( - 9 AS SIGNED ) + - 89 + + + 4 + CASE - MIN( DISTINCT + CAST( + + ( + + 64 ) AS SIGNED ) ) WHEN - ( - + COUNT( * ) ) THEN - NULLIF ( - + 15, - AVG ( ( 61 ) ) ) END + COALESCE ( - 25, 24 ) / + 76 WHEN 14 * 83 + - 20 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT - 19 + + 91 / - CASE - - COUNT ( * ) WHEN 31 THEN - CAST ( - 9 AS INTEGER ) + - 89 + + + 4 + CASE - MIN ( DISTINCT + CAST ( + + ( + + 64 ) AS INTEGER ) ) WHEN - ( - + COUNT ( * ) ) THEN - NULLIF ( - + 15, - AVG ( ( 61 ) ) ) END + COALESCE ( - 25, 24 ) / + 76 WHEN 14 * 83 + - 20 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 97 * - 68
----
-6596

query I rowsort
SELECT 6 * + - 7 col1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1863
SELECT ALL - 29 * + + CAST( + - 25 AS SIGNED ) col0
----
725

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL - 29 * + + CAST ( + - 25 AS INTEGER ) col0
----
725

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

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

query I rowsort
SELECT ALL - 2 - - + ( - 9 )
----
-11

query I rowsort
SELECT ALL 22 * 39
----
858

query II rowsort
SELECT 3 + - 90 AS col2, + 86 + + 66 + - + 67 AS col2
----
-87
85

query I rowsort
SELECT 6 - + 85
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-1869
SELECT 22 * - 19 AS col1, 59 DIV - 23 AS col2
----
-418
-2

skipif mysql # not compatible
query II rowsort label-1869
SELECT 22 * - 19 AS col1, 59 / - 23 AS col2
----
-418
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT - ( - MIN( ALL + 18 ) )
----
18

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT - ( - MIN ( ALL + 18 ) )
----
18

query I rowsort
SELECT 12 * - + ( - 14 ) AS col0
----
168

query II rowsort
SELECT DISTINCT + - 23 * - - 51 AS col2, - ( - + 74 ) * - - 11
----
-1173
814

onlyif mysql # DIV for integer division: 
query II rowsort label-1873
SELECT 0 DIV 84 AS col1, - 68
----
0
-68

skipif mysql # not compatible
query II rowsort label-1873
SELECT 0 / 84 AS col1, - 68
----
0
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1874
SELECT ALL + - 81 DIV + 4 - + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL + - 81 / + 4 - + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ALL - 36 + + - 52 + + MIN( ALL + 7 ) - + MIN( + 39 ) + + + 60 * + 40 - - 88 * 7
----
2896

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL - 36 + + - 52 + + MIN ( ALL + 7 ) - + MIN ( + 39 ) + + + 60 * + 40 - - 88 * 7
----
2896

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT 57 + - MAX( DISTINCT + 38 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-1876
SELECT 57 + - MAX ( DISTINCT + 38 ) AS col0
----
19

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1879
SELECT ALL - CAST( - 77 AS SIGNED ) AS col0, COUNT( * )
----
77
1

skipif mysql # not compatible
query II rowsort label-1879
SELECT ALL - CAST ( - 77 AS INTEGER ) AS col0, COUNT ( * )
----
77
1

query II rowsort
SELECT DISTINCT + 78 + + 74, 24 + 81 * - 70 col0
----
152
-5646

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

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

query II rowsort
SELECT 26 - + 21, 53 AS col0
----
5
53

query I rowsort
SELECT ALL CASE - 17 WHEN + 15 THEN 40 WHEN 78 + - + 61 + + + ( 40 ) THEN + + 28 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 70 * - 72
----
-5040

query I rowsort
SELECT + ( + 70 ) * - + 30
----
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT COALESCE ( - - NULLIF ( COUNT( * ), + 3 - - ( 9 ) + 40 / + ( - - 10 ) + - + 2 + - + 13 * - - 47 ), NULLIF ( - + 38, + ( COUNT( * ) ) ) ) - + 15
----
-14

skipif mysql # not compatible
query I rowsort label-1886
SELECT COALESCE ( - - NULLIF ( COUNT ( * ), + 3 - - ( 9 ) + 40 / + ( - - 10 ) + - + 2 + - + 13 * - - 47 ), NULLIF ( - + 38, + ( COUNT ( * ) ) ) ) - + 15
----
-14

query I rowsort
SELECT 80 + 44 + - 41 col2
----
83

query I rowsort
SELECT ( - 45 ) + ( - 47 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT ALL SUM( DISTINCT - 59 ) / NULLIF ( + CASE 43 WHEN + 52 THEN NULL WHEN - 5 THEN + 85 + 45 END, 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL SUM ( DISTINCT - 59 ) / NULLIF ( + CASE 43 WHEN + 52 THEN NULL WHEN - 5 THEN + 85 + 45 END, 15 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1890
SELECT CAST( NULL AS DECIMAL ) * 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1890
SELECT CAST ( NULL AS REAL ) * 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT 2 + + 90 + + + SUM( ALL + ( - 40 ) ) + 10 * 36 AS col2
----
412

skipif mysql # not compatible
query I rowsort label-1891
SELECT 2 + + 90 + + + SUM ( ALL + ( - 40 ) ) + 10 * 36 AS col2
----
412

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT COUNT( - - 72 )
----
1

skipif mysql # not compatible
query I rowsort label-1892
SELECT COUNT ( - - 72 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT ALL - CASE 9 WHEN + ( - - SUM( ALL + 66 ) ) THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL - CASE 9 WHEN + ( - - SUM ( ALL + 66 ) ) THEN - COUNT ( * ) END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1895
SELECT 57 * 51 * + ( - - NULLIF ( 7, - - 15 * + CAST( NULL AS SIGNED ) * + ( - ( + 32 ) ) - 7 * - + AVG ( 48 ) - - AVG ( 66 ) ) ) * 24 AS col0, - ( + COUNT( * ) )
----
488376
-1

skipif mysql # not compatible
query II rowsort label-1895
SELECT 57 * 51 * + ( - - NULLIF ( 7, - - 15 * + CAST ( NULL AS INTEGER ) * + ( - ( + 32 ) ) - 7 * - + AVG ( 48 ) - - AVG ( 66 ) ) ) * 24 AS col0, - ( + COUNT ( * ) )
----
488376
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT NULLIF ( + COUNT( * ), - 77 + - 77 + - 71 + + 89 + - - MAX( + - 83 ) ) - + 11 * - ( 38 )
----
419

skipif mysql # not compatible
query I rowsort label-1896
SELECT NULLIF ( + COUNT ( * ), - 77 + - 77 + - 71 + + 89 + - - MAX ( + - 83 ) ) - + 11 * - ( 38 )
----
419

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

skipif mysql # not compatible
query I rowsort label-1897
SELECT + SUM ( - - 31 )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1898
SELECT DISTINCT + + 47 * + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * 13 + 4 + + 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT + + 47 * + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * 13 + 4 + + 79 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1899
SELECT DISTINCT - - CASE + - 62 WHEN + 34 THEN CAST( + + ( - + CAST( NULL AS SIGNED ) ) AS SIGNED ) ELSE NULL END AS col1, NULLIF ( - ( + 22 ), - COUNT( * ) - - MIN( + 23 ) )
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-1899
SELECT DISTINCT - - CASE + - 62 WHEN + 34 THEN CAST ( + + ( - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) ELSE NULL END AS col1, NULLIF ( - ( + 22 ), - COUNT ( * ) - - MIN ( + 23 ) )
----
NULL
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1900
SELECT - 37 DIV + COUNT( * ) - + COUNT( * ) + 85 * + MAX( DISTINCT 8 ) * + 97
----
65922

skipif mysql # not compatible
query I rowsort label-1900
SELECT - 37 / + COUNT ( * ) - + COUNT ( * ) + 85 * + MAX ( DISTINCT 8 ) * + 97
----
65922

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1901
SELECT ALL - 66 * + COUNT( * ) / + - ( + 39 ) * + 39 + + 75 - + CASE - 61 WHEN - 4 THEN NULL WHEN 35 THEN + + 43 + ( 1 ) WHEN + 30 THEN + 89 * - + COUNT( * ) ELSE + 38 - - CAST( NULL AS SIGNED ) + + + 2 - - 12 END + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL - 66 * + COUNT ( * ) / + - ( + 39 ) * + 39 + + 75 - + CASE - 61 WHEN - 4 THEN NULL WHEN 35 THEN + + 43 + ( 1 ) WHEN + 30 THEN + 89 * - + COUNT ( * ) ELSE + 38 - - CAST ( NULL AS INTEGER ) + + + 2 - - 12 END + 2 AS col2
----
NULL

query I rowsort
SELECT 23 - - 67 * 9
----
626

query I rowsort
SELECT DISTINCT - - COALESCE ( - 32, 59 )
----
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1904
SELECT ALL - 51 * + + NULLIF ( + - 31, + COALESCE ( - - 97, 65 + 85, - NULLIF ( + 49, - + CAST( NULL AS DECIMAL ) ) ) ) + 17
----
1598

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL - 51 * + + NULLIF ( + - 31, + COALESCE ( - - 97, 65 + 85, - NULLIF ( + 49, - + CAST ( NULL AS REAL ) ) ) ) + 17
----
1598

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

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

query II rowsort
SELECT 36 AS col1, + 11 AS col1
----
36
11

query I rowsort
SELECT - 49 * 93 + 79
----
-4478

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

query I rowsort
SELECT ALL + 49 + + 14 * 40 + + 3
----
612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1910
SELECT + ( + COUNT( * ) ) * + 19 + 75 - + - 63 DIV - 59 + + ( + 72 ) + - - 90 * NULLIF ( COUNT( * ), 15 ) AS col2
----
255

skipif mysql # not compatible
query I rowsort label-1910
SELECT + ( + COUNT ( * ) ) * + 19 + 75 - + - 63 / - 59 + + ( + 72 ) + - - 90 * NULLIF ( COUNT ( * ), 15 ) AS col2
----
255

query I rowsort
SELECT ALL + 89 - + 70
----
19

query I rowsort
SELECT DISTINCT - + 99 * 15 AS col0
----
-1485

onlyif mysql # DIV for integer division: 
query I rowsort label-1913
SELECT - + ( - 96 ) + 68 DIV + 33 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-1913
SELECT - + ( - 96 ) + 68 / + 33 AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1914
SELECT + 90 * 26 * + ( + 59 ) / 20 - + + 30 + - + 52 * 33 * NULLIF ( + 28, + MAX( ALL + 24 ) + ( AVG ( ALL + 55 ) ) / - 34 * - ( ( - 88 ) ) ) * + ( 11 ) + 61 - + 59 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1914
SELECT + 90 * 26 * + ( + 59 ) / 20 - + + 30 + - + 52 * 33 * NULLIF ( + 28, + MAX ( ALL + 24 ) + ( AVG ( ALL + 55 ) ) / - 34 * - ( ( - 88 ) ) ) * + ( 11 ) + 61 - + 59 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT + 53 + + COUNT( DISTINCT - 82 )
----
54

skipif mysql # not compatible
query I rowsort label-1915
SELECT + 53 + + COUNT ( DISTINCT - 82 )
----
54

query I rowsort
SELECT + 29 + 35
----
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT - COALESCE ( + + 28, + + COUNT( * ), - 98 * - 36 * - + 15 ) * 2 + + 38
----
-18

skipif mysql # not compatible
query I rowsort label-1918
SELECT - COALESCE ( + + 28, + + COUNT ( * ), - 98 * - 36 * - + 15 ) * 2 + + 38
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1919
SELECT + 5 + 45 - 91 + - + 44 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1919
SELECT + 5 + 45 - 91 + - + 44 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1921
SELECT ALL COALESCE ( + - 63, 9 - 8 * - - 4 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL COALESCE ( + - 63, 9 - 8 * - - 4 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 10 + - + 19 - NULLIF ( 32, ( + 61 ) ) - + - 57
----
16

query I rowsort
SELECT DISTINCT + 84 * - - ( - + 25 )
----
-2100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1924
SELECT - CAST( + 66 AS SIGNED ) - 7 * CASE + 86 WHEN + - 94 THEN - - COALESCE ( 35, - - 86, + COUNT( * ) ) + - 57 + - - CAST( - 33 AS SIGNED ) ELSE NULL END * - + 83 / + - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1924
SELECT - CAST ( + 66 AS INTEGER ) - 7 * CASE + 86 WHEN + - 94 THEN - - COALESCE ( 35, - - 86, + COUNT ( * ) ) + - 57 + - - CAST ( - 33 AS INTEGER ) ELSE NULL END * - + 83 / + - 89 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1925
SELECT + 63 DIV CAST( + 70 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1925
SELECT + 63 / CAST ( + 70 AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1926
SELECT - 33 - CASE + CAST( + 54 AS SIGNED ) WHEN - + CASE + 40 WHEN + ( + 35 ) THEN - - 63 ELSE + 65 END * - COUNT( * ) - - 54 - - - COUNT( * ) * - CASE - ( + 60 ) WHEN + + MAX( - 52 ) THEN - + MIN( DISTINCT - 97 ) END THEN 63 + MAX( ( + 86 ) ) WHEN + 46 * ( COUNT( * ) ) THEN NULL WHEN 17 * + 53 THEN NULLIF ( 62, 85 + 73 * + 59 ) * + 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT - 33 - CASE + CAST ( + 54 AS INTEGER ) WHEN - + CASE + 40 WHEN + ( + 35 ) THEN - - 63 ELSE + 65 END * - COUNT ( * ) - - 54 - - - COUNT ( * ) * - CASE - ( + 60 ) WHEN + + MAX ( - 52 ) THEN - + MIN ( DISTINCT - 97 ) END THEN 63 + MAX ( ( + 86 ) ) WHEN + 46 * ( COUNT ( * ) ) THEN NULL WHEN 17 * + 53 THEN NULLIF ( 62, 85 + 73 * + 59 ) * + 65 ELSE NULL END
----
NULL

query I rowsort
SELECT + 56 + + 14
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1928
SELECT ALL 85 AS col1, - CASE 46 WHEN + 28 * 79 THEN - COUNT( * ) - 31 - - - 27 * + + CAST( NULL AS SIGNED ) * 57 ELSE NULL END * - 22 * - COUNT( * ), + 90 col2
----
85
NULL
90

skipif mysql # not compatible
query III rowsort label-1928
SELECT ALL 85 AS col1, - CASE 46 WHEN + 28 * 79 THEN - COUNT ( * ) - 31 - - - 27 * + + CAST ( NULL AS INTEGER ) * 57 ELSE NULL END * - 22 * - COUNT ( * ), + 90 col2
----
85
NULL
90

query I rowsort
SELECT ALL 15 + - 20
----
-5

query I rowsort
SELECT + 21 + + 20 AS col2
----
41

onlyif mysql # DIV for integer division: 
query II rowsort label-1931
SELECT ALL 48 DIV + 87, 38 * - - 0 + 41 AS col2
----
0
41

skipif mysql # not compatible
query II rowsort label-1931
SELECT ALL 48 / + 87, 38 * - - 0 + 41 AS col2
----
0
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1932
SELECT + 17 DIV - 69 - NULLIF ( - 23, - + 97 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-1932
SELECT + 17 / - 69 - NULLIF ( - 23, - + 97 ) AS col1
----
23

query I rowsort
SELECT ALL 14 * ( + 3 ) AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1934
SELECT + + CAST( NULL AS SIGNED ) / - 39 + - - 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT + + CAST ( NULL AS INTEGER ) / - 39 + - - 74 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1935
SELECT - 97 DIV + 59 + + 51 + 20 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-1935
SELECT - 97 / + 59 + + 51 + 20 AS col1
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1936
SELECT - MIN( DISTINCT 18 ) AS col2, + 68 + 65 AS col1
----
-18
133

skipif mysql # not compatible
query II rowsort label-1936
SELECT - MIN ( DISTINCT 18 ) AS col2, + 68 + 65 AS col1
----
-18
133

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT ALL 1 * 72 + - COUNT( ALL - 95 ) * - + 61 + + COALESCE ( - - 32, CASE - 42 WHEN 67 THEN - ( ( - 10 ) ) WHEN COUNT( * ) THEN - CASE + COALESCE ( + 59, 95 ) WHEN - 93 THEN 23 ELSE - + NULLIF ( + 62, 94 ) END END * - 68 ) * 61 AS col2
----
2085

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL 1 * 72 + - COUNT ( ALL - 95 ) * - + 61 + + COALESCE ( - - 32, CASE - 42 WHEN 67 THEN - ( ( - 10 ) ) WHEN COUNT ( * ) THEN - CASE + COALESCE ( + 59, 95 ) WHEN - 93 THEN 23 ELSE - + NULLIF ( + 62, 94 ) END END * - 68 ) * 61 AS col2
----
2085

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1938
SELECT ALL + + 41 AS col0, - 84 + + CAST( NULL AS SIGNED )
----
41
NULL

skipif mysql # not compatible
query II rowsort label-1938
SELECT ALL + + 41 AS col0, - 84 + + CAST ( NULL AS INTEGER )
----
41
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1939
SELECT + 70, + 33 - - - 98 + - 59 + 57 + - + 28 * - COUNT( * ) AS col1
----
70
-39

skipif mysql # not compatible
query II rowsort label-1939
SELECT + 70, + 33 - - - 98 + - 59 + 57 + - + 28 * - COUNT ( * ) AS col1
----
70
-39

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1941
SELECT ALL + 19 AS col0, 39 DIV + 10
----
19
3

skipif mysql # not compatible
query II rowsort label-1941
SELECT ALL + 19 AS col0, 39 / + 10
----
19
3

query I rowsort
SELECT + 33 * - 9
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT ALL 9 * + - MIN( DISTINCT - + 4 ) - - - COUNT( * ) * + - 47 * + CASE - 54 WHEN 92 * 60 * - - 44 + 73 THEN ( - COUNT( * ) ) * - 94 * - + 72 / - 51 / + 50 WHEN + 88 * + - 97 * + 6 THEN - COALESCE ( - 85, + 1 * 28, - COUNT( * ) ) + - 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL 9 * + - MIN ( DISTINCT - + 4 ) - - - COUNT ( * ) * + - 47 * + CASE - 54 WHEN 92 * 60 * - - 44 + 73 THEN ( - COUNT ( * ) ) * - 94 * - + 72 / - 51 / + 50 WHEN + 88 * + - 97 * + 6 THEN - COALESCE ( - 85, + 1 * 28, - COUNT ( * ) ) + - 79 END
----
NULL

query II rowsort
SELECT ALL + 65 AS col2, 15 + - - 15 + - - 83
----
65
113

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT ALL + - 46 * - - 65 + - COUNT( * ) - - + 48
----
-2943

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL + - 46 * - - 65 + - COUNT ( * ) - - + 48
----
-2943

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT - NULLIF ( COUNT( * ), + + 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-1947
SELECT - NULLIF ( COUNT ( * ), + + 80 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1948
SELECT + - 55 AS col0, + CASE + - 67 WHEN 68 THEN + 85 WHEN - - NULLIF ( + - ( - MAX( + 51 ) ), + 86 ) THEN - ( + + NULLIF ( ( + 55 ), + - 88 ) ) * 88 + + 42 END * - + 44 - + 82 AS col1
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-1948
SELECT + - 55 AS col0, + CASE + - 67 WHEN 68 THEN + 85 WHEN - - NULLIF ( + - ( - MAX ( + 51 ) ), + 86 ) THEN - ( + + NULLIF ( ( + 55 ), + - 88 ) ) * 88 + + 42 END * - + 44 - + 82 AS col1
----
-55
NULL

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

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

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

query I rowsort
SELECT COALESCE ( + 27, 4 + 91 )
----
27

query II rowsort
SELECT ALL + 70 * + - 51 AS col1, - 22 * 16
----
-3570
-352

query I rowsort
SELECT - 47 * - 48
----
2256

onlyif mysql # aggregate syntax: 
query II rowsort label-1954
SELECT + MAX( 29 ) col1, 26 * + 62
----
29
1612

skipif mysql # not compatible
query II rowsort label-1954
SELECT + MAX ( 29 ) col1, 26 * + 62
----
29
1612

onlyif mysql # DIV for integer division: 
query I rowsort label-1955
SELECT + 5 * - ( 59 ) - 98 DIV + - 76 col2
----
-294

skipif mysql # not compatible
query I rowsort label-1955
SELECT + 5 * - ( 59 ) - 98 / + - 76 col2
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT ALL - ( 13 ) * - 44 * + COUNT( * ) * + 22
----
12584

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL - ( 13 ) * - 44 * + COUNT ( * ) * + 22
----
12584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1957
SELECT - 93 - + COALESCE ( + + ( + - 33 ), 83 + + 80 + - 23, + 92 + + 54 - 23 * - 83 * CASE - 16 WHEN - 29 THEN + + 9 DIV + 83 + MAX( ALL - 16 ) ELSE NULL END * + COUNT( * ) * 24 ) + - 7 * + 79
----
-613

skipif mysql # not compatible
query I rowsort label-1957
SELECT - 93 - + COALESCE ( + + ( + - 33 ), 83 + + 80 + - 23, + 92 + + 54 - 23 * - 83 * CASE - 16 WHEN - 29 THEN + + 9 / + 83 + MAX ( ALL - 16 ) ELSE NULL END * + COUNT ( * ) * 24 ) + - 7 * + 79
----
-613

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT - 11 * - MIN( DISTINCT - 92 )
----
-1012

skipif mysql # not compatible
query I rowsort label-1958
SELECT - 11 * - MIN ( DISTINCT - 92 )
----
-1012

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1959
SELECT - 69 + - 97 + - 6 + + 34 * - 98 * - + ( + 90 ) * - + CASE - 19 WHEN - - 35 THEN + 88 ELSE NULL END / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1959
SELECT - 69 + - 97 + - 6 + + 34 * - 98 * - + ( + 90 ) * - + CASE - 19 WHEN - - 35 THEN + 88 ELSE NULL END / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1960
SELECT - 75 DIV + 33 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1960
SELECT - 75 / + 33 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-1961
SELECT + COUNT( * ) - - - 4 col0, + COUNT( * ) * 42 - COUNT( DISTINCT + 89 ) * - 3 AS col0
----
-3
45

skipif mysql # not compatible
query II rowsort label-1961
SELECT + COUNT ( * ) - - - 4 col0, + COUNT ( * ) * 42 - COUNT ( DISTINCT + 89 ) * - 3 AS col0
----
-3
45

query I rowsort
SELECT - 51 * - 37 AS col1
----
1887

query I rowsort
SELECT + 16 - 87 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT - MAX( 59 ) col2
----
-59

skipif mysql # not compatible
query I rowsort label-1964
SELECT - MAX ( 59 ) col2
----
-59

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

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL 15 + - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1967
SELECT DISTINCT + 63 + + 72 + COUNT( * ) col0, 57
----
136
57

skipif mysql # not compatible
query II rowsort label-1967
SELECT DISTINCT + 63 + + 72 + COUNT ( * ) col0, 57
----
136
57

onlyif mysql # aggregate syntax: 
query II rowsort label-1968
SELECT - NULLIF ( - 92, 92 * 51 * 18 * - 95 * COUNT( - 48 ) ), + 54 AS col1
----
92
54

skipif mysql # not compatible
query II rowsort label-1968
SELECT - NULLIF ( - 92, 92 * 51 * 18 * - 95 * COUNT ( - 48 ) ), + 54 AS col1
----
92
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1969
SELECT + CASE + + 94 WHEN + 17 THEN + 61 WHEN AVG ( DISTINCT 63 ) * + CAST( - + 49 AS SIGNED ) THEN + 51 WHEN 86 * + 87 + - 21 THEN NULL ELSE NULL END + - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT + CASE + + 94 WHEN + 17 THEN + 61 WHEN AVG ( DISTINCT 63 ) * + CAST ( - + 49 AS INTEGER ) THEN + 51 WHEN 86 * + 87 + - 21 THEN NULL ELSE NULL END + - 86 AS col2
----
NULL

query I rowsort
SELECT ALL 45 * + 2 * 26
----
2340

query I rowsort
SELECT - + 43 + - + 78 * + 43 AS col1
----
-3397

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT - - NULLIF ( - SUM( + + 41 ), 41 ) * + + 63 AS col0
----
-2583

skipif mysql # not compatible
query I rowsort label-1972
SELECT - - NULLIF ( - SUM ( + + 41 ), 41 ) * + + 63 AS col0
----
-2583

query I rowsort
SELECT - + 93 + 64 * 86 * 5 AS col2
----
27427

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT DISTINCT - MIN( ALL - + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT - MIN ( ALL - + 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT - 78 * + COUNT( * ) + - 81 + + - 8 * 37 * - 10 + - + 13 AS col1
----
2788

skipif mysql # not compatible
query I rowsort label-1975
SELECT - 78 * + COUNT ( * ) + - 81 + + - 8 * 37 * - 10 + - + 13 AS col1
----
2788

query I rowsort
SELECT ALL - ( 71 ) - - + 28
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT NULLIF ( - MIN( ALL - 28 ), - 15 ) * 45 col1
----
1260

skipif mysql # not compatible
query I rowsort label-1977
SELECT NULLIF ( - MIN ( ALL - 28 ), - 15 ) * 45 col1
----
1260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1978
SELECT ALL - 72 / - CAST( NULL AS SIGNED ) - - 6 + - ( - 10 ) + 60 * - + 85 * - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL - 72 / - CAST ( NULL AS INTEGER ) - - 6 + - ( - 10 ) + 60 * - + 85 * - + 74
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1979
SELECT - ( COUNT( * ) ) * + 14 + - - CASE - 16 WHEN 80 * + 6 THEN CAST( + 69 AS SIGNED ) * - 36 + + COUNT( * ) - + NULLIF ( + 64, 76 ) * + - NULLIF ( + COALESCE ( + + 55, - 50 * 25 * - 65 * + - 35 / - + 14 * 99 ), - 97 ) * COUNT( * ) - 38 + NULLIF ( 91, 66 ) ELSE NULL END + COALESCE ( + MIN( 96 ), - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1979
SELECT - ( COUNT ( * ) ) * + 14 + - - CASE - 16 WHEN 80 * + 6 THEN CAST ( + 69 AS INTEGER ) * - 36 + + COUNT ( * ) - + NULLIF ( + 64, 76 ) * + - NULLIF ( + COALESCE ( + + 55, - 50 * 25 * - 65 * + - 35 / - + 14 * 99 ), - 97 ) * COUNT ( * ) - 38 + NULLIF ( 91, 66 ) ELSE NULL END + COALESCE ( + MIN ( 96 ), - 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT ALL COUNT( * ) - + - 0 * + - 31 col2
----
1

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL COUNT ( * ) - + - 0 * + - 31 col2
----
1

query I rowsort
SELECT DISTINCT + 48 * 41 - - 63
----
2031

query I rowsort
SELECT ( + + 14 ) * - 78
----
-1092

onlyif mysql # DIV for integer division: 
query I rowsort label-1983
SELECT 93 + - 79 * 93 * 40 DIV - - 52
----
-5558

skipif mysql # not compatible
query I rowsort label-1983
SELECT 93 + - 79 * 93 * 40 / - - 52
----
-5558

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT ALL - COUNT( - 94 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL - COUNT ( - 94 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT - ( + 23 ) * + - COUNT( * ) * + 37 + + 33 * MAX( 35 ) AS col1
----
2006

skipif mysql # not compatible
query I rowsort label-1985
SELECT - ( + 23 ) * + - COUNT ( * ) * + 37 + + 33 * MAX ( 35 ) AS col1
----
2006

query I rowsort
SELECT 11 * 12 * 0 + - + COALESCE ( + 30, + 76 * + 31 * - - 36 ) + - 43 AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 19 * + 42 * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 19 * + 42 * 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT ALL - 3 * + MAX( DISTINCT 84 )
----
-252

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL - 3 * + MAX ( DISTINCT 84 )
----
-252

query I rowsort
SELECT DISTINCT - 94 + - + 39
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT DISTINCT - COUNT( * ) * - 33
----
33

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT - COUNT ( * ) * - 33
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1991
SELECT 50 DIV - MAX( ALL - + 64 ) * + 58
----
0

skipif mysql # not compatible
query I rowsort label-1991
SELECT 50 / - MAX ( ALL - + 64 ) * + 58
----
0

query II rowsort
SELECT - 40 AS col2, - 50
----
-40
-50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT 30 - - COALESCE ( + 82, + + 34 + - + COUNT( + + ( + 11 ) ), ( + 87 ) )
----
112

skipif mysql # not compatible
query I rowsort label-1994
SELECT 30 - - COALESCE ( + 82, + + 34 + - + COUNT ( + + ( + 11 ) ), ( + 87 ) )
----
112

query II rowsort
SELECT 37 AS col2, ( 61 )
----
37
61

query II rowsort
SELECT - ( + NULLIF ( + + 65, - 56 * - + 11 * + 70 / - 79 + - + 5 ) ) + 73, + 14 AS col1
----
8
14

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

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

query I rowsort
SELECT 77 * - 78 AS col0
----
-6006

query I rowsort
SELECT 21 + 70 AS col2
----
91

query II rowsort
SELECT - 71, 33 + - 66 AS col1
----
-71
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2001
SELECT MIN( + + 62 ) + - - CAST( 64 AS SIGNED ) AS col2
----
126

skipif mysql # not compatible
query I rowsort label-2001
SELECT MIN ( + + 62 ) + - - CAST ( 64 AS INTEGER ) AS col2
----
126

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

skipif mysql # not compatible
query I rowsort label-2002
SELECT - 6 - + COUNT ( * ) + COUNT ( DISTINCT - 53 ) / + COUNT ( * ) AS col2
----
-6

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

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

query I rowsort
SELECT DISTINCT - + 92 * - ( - + 32 ) AS col2
----
-2944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2005
SELECT + 83 * - 41 + + 31 + - ( SUM( DISTINCT - 51 ) ) / - CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) * + 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2005
SELECT + 83 * - 41 + + 31 + - ( SUM ( DISTINCT - 51 ) ) / - CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) * + 36 AS col1
----
NULL

query I rowsort
SELECT 39 * - 51
----
-1989

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2007
SELECT 69 + - - 75 - + 88 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2007
SELECT 69 + - - 75 - + 88 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2008
SELECT ALL 21 * COALESCE ( 21, 64 ) + - - COALESCE ( + + 93, - ( + - 71 ) DIV CAST( NULL AS SIGNED ) ) - - + 59 + - + NULLIF ( 39, + + COUNT( - 67 ) ) * - 26 AS col0
----
1607

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL 21 * COALESCE ( 21, 64 ) + - - COALESCE ( + + 93, - ( + - 71 ) / CAST ( NULL AS INTEGER ) ) - - + 59 + - + NULLIF ( 39, + + COUNT ( - 67 ) ) * - 26 AS col0
----
1607

query II rowsort
SELECT ALL - 28, 93 AS col1
----
-28
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2010
SELECT + 78 AS col2, ( COUNT( 26 ) ) * 67 * - - 36 + 30 AS col0
----
78
2442

skipif mysql # not compatible
query II rowsort label-2010
SELECT + 78 AS col2, ( COUNT ( 26 ) ) * 67 * - - 36 + 30 AS col0
----
78
2442

query II rowsort
SELECT 18 * 20 + - 15 AS col1, 18
----
345
18

query II rowsort
SELECT ALL - 5, + 70 AS col0
----
-5
70

query I rowsort
SELECT ALL - + 62 col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT DISTINCT COALESCE ( + 30, - 33 - - 29 ) + - + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT COALESCE ( + 30, - 33 - - 29 ) + - + COUNT ( * )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-2015
SELECT ALL 52 + 36 DIV - 97 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL 52 + 36 / - 97 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT 96 + + SUM( ALL 58 ) AS col1
----
154

skipif mysql # not compatible
query I rowsort label-2016
SELECT 96 + + SUM ( ALL 58 ) AS col1
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT COUNT( * ) + + MAX( DISTINCT - + 22 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-2017
SELECT COUNT ( * ) + + MAX ( DISTINCT - + 22 ) AS col0
----
-21

query I rowsort
SELECT 50 * + 36 col0
----
1800

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2019
SELECT DISTINCT 39 * + MIN( ALL - 99 ) * - 63 DIV - + 63 + - ( + 2 ), + COUNT( * ) + - 6 AS col2
----
-3863
-5

skipif mysql # not compatible
query II rowsort label-2019
SELECT DISTINCT 39 * + MIN ( ALL - 99 ) * - 63 / - + 63 + - ( + 2 ), + COUNT ( * ) + - 6 AS col2
----
-3863
-5

query I rowsort
SELECT ALL ( + - 43 ) + - - 35 AS col0
----
-8

query I rowsort
SELECT ALL - 17 + 79
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2022
SELECT ALL COUNT( * ) + - CAST( - 51 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL COUNT ( * ) + - CAST ( - 51 AS INTEGER )
----
52

query II rowsort
SELECT 66 * - 86, + 57 + + - 11 + - 61 AS col2
----
-5676
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2024
SELECT CAST( NULL AS SIGNED ) + + 23 AS col1, + 13
----
NULL
13

skipif mysql # not compatible
query II rowsort label-2024
SELECT CAST ( NULL AS INTEGER ) + + 23 AS col1, + 13
----
NULL
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT - COUNT( + 2 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2025
SELECT - COUNT ( + 2 ) AS col1
----
-1

query I rowsort
SELECT - 24 - + 5 col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT ALL + 66 * - MAX( ALL - 42 ) + + ( + 13 ) AS col1
----
2785

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL + 66 * - MAX ( ALL - 42 ) + + ( + 13 ) AS col1
----
2785

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT - + COUNT( * ) + + + MIN( ALL 26 ) + + SUM( DISTINCT + + 31 )
----
56

skipif mysql # not compatible
query I rowsort label-2028
SELECT - + COUNT ( * ) + + + MIN ( ALL 26 ) + + SUM ( DISTINCT + + 31 )
----
56

query I rowsort
SELECT - ( - 13 )
----
13

query II rowsort
SELECT - 0 * + 84 AS col0, 78
----
0
78

query I rowsort
SELECT ALL + + 2 * - 81
----
-162

query II rowsort
SELECT + 53 + - - CASE - 34 WHEN - + 14 * - - 94 THEN - ( + 96 ) END col0, 25
----
NULL
25

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2034
SELECT - + CAST( NULL AS SIGNED ) / + SUM( - - 20 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT - + CAST ( NULL AS INTEGER ) / + SUM ( - - 20 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT ALL - 19 * + + 83 + ( 56 ) * + - SUM( ALL - 82 ) AS col1
----
3015

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL - 19 * + + 83 + ( 56 ) * + - SUM ( ALL - 82 ) AS col1
----
3015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2036
SELECT + 18 * + - 61 + + CAST( COUNT( * ) AS SIGNED ) DIV 46
----
-1098

skipif mysql # not compatible
query I rowsort label-2036
SELECT + 18 * + - 61 + + CAST ( COUNT ( * ) AS INTEGER ) / 46
----
-1098

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

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

query I rowsort
SELECT + 31 * + 78 * - 79 + 84 AS col0
----
-190938

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT ALL COUNT( * ) * + 64 col0
----
64

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL COUNT ( * ) * + 64 col0
----
64

query I rowsort
SELECT + 64 + ( + - ( + + 51 ) ) + - 74 + 74
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2041
SELECT ALL + COALESCE ( - 39, + 0 + + - 27, COUNT( * ) * + 4 DIV - 48 + - + 10 + + 79 - 55 ) * + 20
----
-780

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL + COALESCE ( - 39, + 0 + + - 27, COUNT ( * ) * + 4 / - 48 + - + 10 + + 79 - 55 ) * + 20
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT 12 * - 96 * + 18 * + + COUNT( DISTINCT + 67 ) + - 61 AS col0
----
-20797

skipif mysql # not compatible
query I rowsort label-2042
SELECT 12 * - 96 * + 18 * + + COUNT ( DISTINCT + 67 ) + - 61 AS col0
----
-20797

query I rowsort
SELECT ALL + 21 * + 98 AS col1
----
2058

query I rowsort
SELECT COALESCE ( + 9, 27 * + + 16, - 24 )
----
9

query I rowsort
SELECT - 28 * + 76
----
-2128

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT ALL + SUM( ALL - 47 ) * - - 59 + 42 + SUM( + 99 )
----
-2632

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL + SUM ( ALL - 47 ) * - - 59 + 42 + SUM ( + 99 )
----
-2632

query I rowsort
SELECT - 4 + - 30 AS col1
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-2048
SELECT ALL 92 DIV - 19
----
-4

skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL 92 / - 19
----
-4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT ALL + 87 * 76 * - + 12 - + - COUNT( * )
----
-79343

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL + 87 * 76 * - + 12 - + - COUNT ( * )
----
-79343

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

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

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

skipif mysql # not compatible
query I rowsort label-2052
SELECT - 45 / + 26
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-2053
SELECT ALL 56 DIV + + ( - 74 ) AS col1, 93
----
0
93

skipif mysql # not compatible
query II rowsort label-2053
SELECT ALL 56 / + + ( - 74 ) AS col1, 93
----
0
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT - MIN( DISTINCT - 88 ) * + - 70 AS col2
----
-6160

skipif mysql # not compatible
query I rowsort label-2054
SELECT - MIN ( DISTINCT - 88 ) * + - 70 AS col2
----
-6160

query I rowsort
SELECT + 27 + 35
----
62

query I rowsort
SELECT DISTINCT 91 * - 66 AS col1
----
-6006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2057
SELECT COUNT( CAST( 28 AS SIGNED ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2057
SELECT COUNT ( CAST ( 28 AS INTEGER ) ) col0
----
1

query I rowsort
SELECT + 54 * + 95 + - 24 + + 66
----
5172

query I rowsort
SELECT + - 31 * - + 17 + 9 * - 35 AS col2
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT ALL - CASE + 74 WHEN + - 52 - - 45 THEN - 9 + COUNT( - + NULLIF ( - 79, - 39 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL - CASE + 74 WHEN + - 52 - - 45 THEN - 9 + COUNT ( - + NULLIF ( - 79, - 39 ) ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2061
SELECT - + CAST( + 4 AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-2061
SELECT - + CAST ( + 4 AS INTEGER )
----
-4

onlyif mysql # aggregate syntax: 
query III rowsort label-2062
SELECT - 33 col0, 74 + - 22 * 15 * + 74 + + 54, - COUNT( DISTINCT + + 95 ) AS col1
----
-33
-24292
-1

skipif mysql # not compatible
query III rowsort label-2062
SELECT - 33 col0, 74 + - 22 * 15 * + 74 + + 54, - COUNT ( DISTINCT + + 95 ) AS col1
----
-33
-24292
-1

query I rowsort
SELECT + 97 * + + 30
----
2910

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT + 41 - + - COUNT( * ) - + 95
----
-53

skipif mysql # not compatible
query I rowsort label-2064
SELECT + 41 - + - COUNT ( * ) - + 95
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-2065
SELECT ALL 28, + MIN( - 16 ) AS col2
----
28
-16

skipif mysql # not compatible
query II rowsort label-2065
SELECT ALL 28, + MIN ( - 16 ) AS col2
----
28
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT - + 74 + SUM( + 92 ) col0
----
18

skipif mysql # not compatible
query I rowsort label-2066
SELECT - + 74 + SUM ( + 92 ) col0
----
18

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

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

query I rowsort
SELECT - - 99 + - 80 + - + 62 + - 97 AS col0
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT DISTINCT + + 25 + COALESCE ( + + 90, + COUNT( * ), 82 ) + - 0 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT + + 25 + COALESCE ( + + 90, + COUNT ( * ), 82 ) + - 0 AS col2
----
115

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT DISTINCT - MIN( DISTINCT + 14 ) + - 83 + COUNT( * ) + + 87 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-2071
SELECT DISTINCT - MIN ( DISTINCT + 14 ) + - 83 + COUNT ( * ) + + 87 AS col2
----
-9

query I rowsort
SELECT + - 77 * + 29 + - 94 AS col1
----
-2327

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2073
SELECT DISTINCT + COALESCE ( + + NULLIF ( + + 87, - COUNT( * ) * + COALESCE ( + - 61, - - 29 ) * - - 63 - + 48 ), - - 68 * - CAST( NULL AS SIGNED ) * - - COUNT( * ) + - 25 * 25 + + CAST( NULL AS DECIMAL ) + + 62 ) * + + ( - + CASE + 6 WHEN - 63 THEN NULL WHEN - 2 THEN + + COUNT( * ) * - 28 END ) / - + 76 - + + 86 + - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2073
SELECT DISTINCT + COALESCE ( + + NULLIF ( + + 87, - COUNT ( * ) * + COALESCE ( + - 61, - - 29 ) * - - 63 - + 48 ), - - 68 * - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + - 25 * 25 + + CAST ( NULL AS REAL ) + + 62 ) * + + ( - + CASE + 6 WHEN - 63 THEN NULL WHEN - 2 THEN + + COUNT ( * ) * - 28 END ) / - + 76 - + + 86 + - 98 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2075
SELECT ALL - CAST( + 55 AS SIGNED ) DIV + COUNT( * ) + + 77 * - 71
----
-5522

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL - CAST ( + 55 AS INTEGER ) / + COUNT ( * ) + + 77 * - 71
----
-5522

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT 44 * + COUNT( * ) - - - 90 * - + ( 74 )
----
6704

skipif mysql # not compatible
query I rowsort label-2076
SELECT 44 * + COUNT ( * ) - - - 90 * - + ( 74 )
----
6704

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT DISTINCT + NULLIF ( - 59, COUNT( 26 ) * + - 95 )
----
-59

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT + NULLIF ( - 59, COUNT ( 26 ) * + - 95 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT DISTINCT + MAX( - + ( + + 12 ) ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT + MAX ( - + ( + + 12 ) ) AS col2
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2079
SELECT DISTINCT - 60 / + 33 * - CAST( NULL AS SIGNED ) - + 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT - 60 / + 33 * - CAST ( NULL AS INTEGER ) - + 72 AS col1
----
NULL

query I rowsort
SELECT - 45 + 10 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT + COALESCE ( + COUNT( * ), - 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2081
SELECT + COALESCE ( + COUNT ( * ), - 46 ) AS col1
----
1

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

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

query I rowsort
SELECT ALL + 90 * - + 44 AS col2
----
-3960

query I rowsort
SELECT 40 + + 95
----
135

query II rowsort
SELECT 53 AS col0, - 3
----
53
-3

query I rowsort
SELECT + 12 * + 51 + 22 * + 73 AS col0
----
2218

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2087
SELECT DISTINCT - 34, 78 * CAST( NULL AS SIGNED ) - 74 AS col2
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-2087
SELECT DISTINCT - 34, 78 * CAST ( NULL AS INTEGER ) - 74 AS col2
----
-34
NULL

query II rowsort
SELECT + 73 AS col0, 55
----
73
55

query I rowsort
SELECT - ( - NULLIF ( - 57, - - 94 / - - 88 ) ) + 98
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2090
SELECT - CASE - 60 WHEN ( - 59 ) THEN 45 + - + 46 / + NULLIF ( + + 71, - CAST( - + 45 AS SIGNED ) + - 29 ) END AS col0, 78 + 47 AS col2
----
NULL
125

skipif mysql # not compatible
query II rowsort label-2090
SELECT - CASE - 60 WHEN ( - 59 ) THEN 45 + - + 46 / + NULLIF ( + + 71, - CAST ( - + 45 AS INTEGER ) + - 29 ) END AS col0, 78 + 47 AS col2
----
NULL
125

query I rowsort
SELECT + 39 + + - 48 * + 38 AS col2
----
-1785

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

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

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

skipif mysql # not compatible
query I rowsort label-2093
SELECT + COUNT ( * ) / - 84 * - - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT 21 DIV - 69 * - 42
----
0

skipif mysql # not compatible
query I rowsort label-2094
SELECT 21 / - 69 * - 42
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2095
SELECT ALL + CAST( - 79 AS SIGNED ) * + 45 AS col2
----
-3555

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL + CAST ( - 79 AS INTEGER ) * + 45 AS col2
----
-3555

onlyif mysql # aggregate syntax: 
query III rowsort label-2096
SELECT ALL 7 AS col1, 28 AS col1, - + 58 * COUNT( * ) * + 94 + - - 42 - + COUNT( - + 39 ) AS col0
----
7
28
-5411

skipif mysql # not compatible
query III rowsort label-2096
SELECT ALL 7 AS col1, 28 AS col1, - + 58 * COUNT ( * ) * + 94 + - - 42 - + COUNT ( - + 39 ) AS col0
----
7
28
-5411

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

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

query I rowsort
SELECT ALL + 81 + 57 AS col2
----
138

query I rowsort
SELECT 80 + - + 40 AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2100
SELECT + 55 * + 67 - + MAX( DISTINCT - + 1 ) DIV + 30 AS col2
----
3685

skipif mysql # not compatible
query I rowsort label-2100
SELECT + 55 * + 67 - + MAX ( DISTINCT - + 1 ) / + 30 AS col2
----
3685

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT 44 + + COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-2101
SELECT 44 + + COUNT ( * ) AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2102
SELECT DISTINCT - 76 * - NULLIF ( - + 1, CAST( NULL AS SIGNED ) ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT - 76 * - NULLIF ( - + 1, CAST ( NULL AS INTEGER ) ) AS col2
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2103
SELECT DISTINCT 28 DIV COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-2103
SELECT DISTINCT 28 / COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT 50 + + MIN( - + 15 )
----
35

skipif mysql # not compatible
query I rowsort label-2104
SELECT 50 + + MIN ( - + 15 )
----
35

query I rowsort
SELECT 56 * - 53
----
-2968

query II rowsort
SELECT 66 + + 30 AS col1, - 2 AS col0
----
96
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT 86 * - COUNT( * ) + - 99 * - 78 + 78 AS col0
----
7714

skipif mysql # not compatible
query I rowsort label-2107
SELECT 86 * - COUNT ( * ) + - 99 * - 78 + 78 AS col0
----
7714

query I rowsort
SELECT + 9 * - + 49 + + 77 AS col0
----
-364

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2110
SELECT DISTINCT - 32 DIV - 26 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT - 32 / - 26 AS col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2111
SELECT 59 DIV + 68 AS col1, + 52 DIV 73 col2
----
0
0

skipif mysql # not compatible
query II rowsort label-2111
SELECT 59 / + 68 AS col1, + 52 / 73 col2
----
0
0

query I rowsort
SELECT ALL - COALESCE ( - 40, - + 20 )
----
40

query I rowsort
SELECT 81 * - + 3
----
-243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2114
SELECT DISTINCT + - CAST( + COUNT( * ) AS SIGNED ) * - 68 * 97
----
6596

skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT + - CAST ( + COUNT ( * ) AS INTEGER ) * - 68 * 97
----
6596

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2117
SELECT 59 + 49 DIV - - ( + 13 ) - ( + - COUNT( * ) ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2117
SELECT 59 + 49 / - - ( + 13 ) - ( + - COUNT ( * ) ) AS col2
----
63

query I rowsort
SELECT 99 * 7 + - 29
----
664

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT ALL - MAX( 32 ) + ( + MAX( - 4 ) ) * MAX( DISTINCT - 86 ) + - 59
----
253

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL - MAX ( 32 ) + ( + MAX ( - 4 ) ) * MAX ( DISTINCT - 86 ) + - 59
----
253

query I rowsort
SELECT DISTINCT + CASE + - 57 WHEN - - 26 THEN - - 88 / - - 72 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2121
SELECT 69 + + SUM( 94 ) - + - 55 DIV - - ( + 57 ) AS col0
----
163

skipif mysql # not compatible
query I rowsort label-2121
SELECT 69 + + SUM ( 94 ) - + - 55 / - - ( + 57 ) AS col0
----
163

query II rowsort
SELECT DISTINCT + 91 + 24, 1 col0
----
115
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2123
SELECT ALL - - 41 + + 3 DIV + + COUNT( * ) + + 45
----
89

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL - - 41 + + 3 / + + COUNT ( * ) + + 45
----
89

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

query I rowsort
SELECT DISTINCT 88 - 37
----
51

query I rowsort
SELECT - ( - - 93 ) + - 56 * ( - 82 )
----
4499

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT ALL SUM( + 38 ) - + + 15 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL SUM ( + 38 ) - + + 15 AS col0
----
23

query II rowsort
SELECT 25 * - 85 * 65 col0, 31
----
-138125
31

query I rowsort
SELECT COALESCE ( + NULLIF ( + 57, + 50 ), + 60 * - - 5, + 76 * + - 63 ) * - ( 18 ) col2
----
-1026

query I rowsort
SELECT ALL 76 * + - 30 AS col1
----
-2280

query I rowsort
SELECT 24 * + 20 AS col0
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT 60 * - 31 * + SUM( 1 ) AS col1
----
-1860

skipif mysql # not compatible
query I rowsort label-2132
SELECT 60 * - 31 * + SUM ( 1 ) AS col1
----
-1860

query I rowsort
SELECT ALL 40 * + + ( - + 30 ) * 26 col0
----
-31200

query I rowsort
SELECT + 98 * 90 AS col1
----
8820

query I rowsort
SELECT NULLIF ( + 13, 82 * + ( + 41 ) + + 16 * + 94 ) col2
----
13

query I rowsort
SELECT 18 * + + 27 * + - 88 - - 43
----
-42725

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT CASE - 14 WHEN + 49 THEN NULL WHEN - COUNT( DISTINCT + NULLIF ( - + 2, 91 ) ) / + MIN( 87 ) THEN NULL ELSE ( + 66 ) END AS col0
----
66

skipif mysql # not compatible
query I rowsort label-2137
SELECT CASE - 14 WHEN + 49 THEN NULL WHEN - COUNT ( DISTINCT + NULLIF ( - + 2, 91 ) ) / + MIN ( 87 ) THEN NULL ELSE ( + 66 ) END AS col0
----
66

query I rowsort
SELECT ALL - 28 * - 23 * - 48 * - 39 * - 92 AS col1
----
-110912256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2139
SELECT - COUNT( * ) DIV + + 33 * - + 77 col2
----
0

skipif mysql # not compatible
query I rowsort label-2139
SELECT - COUNT ( * ) / + + 33 * - + 77 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2140
SELECT + COUNT( ALL + 78 ) + MAX( DISTINCT - 33 ) DIV - 38 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2140
SELECT + COUNT ( ALL + 78 ) + MAX ( DISTINCT - 33 ) / - 38 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2141
SELECT + 8 + - - SUM( - + 40 ) col1, + 77 AS col2
----
-32
77

skipif mysql # not compatible
query II rowsort label-2141
SELECT + 8 + - - SUM ( - + 40 ) col1, + 77 AS col2
----
-32
77

onlyif mysql # DIV for integer division: 
query II rowsort label-2142
SELECT - ( + 56 ) DIV - 63, 74 AS col1
----
0
74

skipif mysql # not compatible
query II rowsort label-2142
SELECT - ( + 56 ) / - 63, 74 AS col1
----
0
74

query I rowsort
SELECT + - 17 * - - 37
----
-629

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

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL + COUNT ( * ) / - 41 + + 6 * - COUNT ( * ) AS col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2145
SELECT ALL + - ( SUM( ALL - 13 ) ) + MAX( DISTINCT - + 37 ) * - COUNT( * ) col0, + CAST( NULL AS SIGNED ) - COUNT( * )
----
50
NULL

skipif mysql # not compatible
query II rowsort label-2145
SELECT ALL + - ( SUM ( ALL - 13 ) ) + MAX ( DISTINCT - + 37 ) * - COUNT ( * ) col0, + CAST ( NULL AS INTEGER ) - COUNT ( * )
----
50
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT ALL - 62 + + CAST( + + NULLIF ( 7, + 97 ) AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL - 62 + + CAST ( + + NULLIF ( 7, + 97 ) AS INTEGER )
----
-55

query II rowsort
SELECT 9, 94 AS col2
----
9
94

query I rowsort
SELECT - + ( + - 33 ) + + 24
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT + 24 + + - MAX( ALL 37 )
----
-13

skipif mysql # not compatible
query I rowsort label-2149
SELECT + 24 + + - MAX ( ALL 37 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT - CASE + ( 49 ) WHEN - + ( + 64 ) * + 56 / + - MAX( ALL 67 ) THEN - ( - 95 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT - CASE + ( 49 ) WHEN - + ( + 64 ) * + 56 / + - MAX ( ALL 67 ) THEN - ( - 95 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT ALL - NULLIF ( - COALESCE ( - 87, 34 ), - 65 - - 99 + + COUNT( * ) ) * - + 59 * + + MIN( + 31 ) AS col0
----
159123

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL - NULLIF ( - COALESCE ( - 87, 34 ), - 65 - - 99 + + COUNT ( * ) ) * - + 59 * + + MIN ( + 31 ) AS col0
----
159123

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT - + SUM( + 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-2152
SELECT - + SUM ( + 65 ) AS col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2153
SELECT DISTINCT + 18 - - + 20 - - + 73 * - NULLIF ( - 3, - 59 ) * + CAST( NULL AS SIGNED ) * - 26 * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2153
SELECT DISTINCT + 18 - - + 20 - - + 73 * - NULLIF ( - 3, - 59 ) * + CAST ( NULL AS INTEGER ) * - 26 * + 46
----
NULL

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

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

query I rowsort
SELECT DISTINCT 93 - - 95
----
188

query I rowsort
SELECT DISTINCT COALESCE ( - + 71, + 79 )
----
-71

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2158
SELECT ALL ( + COUNT( * ) ), + COALESCE ( - 32, - 78 * + COUNT( * ) * 20 - - 83 * 56 * - 19 ) * + COUNT( * ) AS col0
----
1
-32

skipif mysql # not compatible
query II rowsort label-2158
SELECT ALL ( + COUNT ( * ) ), + COALESCE ( - 32, - 78 * + COUNT ( * ) * 20 - - 83 * 56 * - 19 ) * + COUNT ( * ) AS col0
----
1
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT + COUNT( DISTINCT 16 ) - + 16
----
-15

skipif mysql # not compatible
query I rowsort label-2159
SELECT + COUNT ( DISTINCT 16 ) - + 16
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2160
SELECT - COALESCE ( COALESCE ( 2, 32 * 29 DIV COUNT( ALL 33 ) - 93 + 13 ), 21 )
----
-2

skipif mysql # not compatible
query I rowsort label-2160
SELECT - COALESCE ( COALESCE ( 2, 32 * 29 / COUNT ( ALL 33 ) - 93 + 13 ), 21 )
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT + COALESCE ( 82, MIN( DISTINCT + 22 ) ) * - CASE + + 34 WHEN 77 * + 30 THEN - MAX( - 31 ) ELSE NULL END + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2162
SELECT + COALESCE ( 82, MIN ( DISTINCT + 22 ) ) * - CASE + + 34 WHEN 77 * + 30 THEN - MAX ( - 31 ) ELSE NULL END + + 48
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2163
SELECT + COUNT( * ) DIV + 12 + - + 64
----
-64

skipif mysql # not compatible
query I rowsort label-2163
SELECT + COUNT ( * ) / + 12 + - + 64
----
-64

query I rowsort
SELECT DISTINCT - 69 * - - 64
----
-4416

onlyif mysql # DIV for integer division: 
query I rowsort label-2165
SELECT ALL 25 DIV 13 + - 92
----
-91

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL 25 / 13 + - 92
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT + SUM( 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-2166
SELECT + SUM ( 73 ) AS col2
----
73

query I rowsort
SELECT + 38 + + COALESCE ( 34, - + NULLIF ( - - 52, - 47 - + 30 ) * + - ( + 61 ) + 18, - 91 )
----
72

query I rowsort
SELECT ALL 41 * 98 * + 9 + + - 72 col1
----
36090

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT ALL CASE - COUNT( * ) WHEN + 95 THEN - - 57 WHEN + + 51 THEN - 74 END * - 54 + + + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL CASE - COUNT ( * ) WHEN + 95 THEN - - 57 WHEN + + 51 THEN - 74 END * - 54 + + + 86
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT + 94 - + CAST( - AVG ( + 67 ) AS SIGNED ) AS col2
----
161

skipif mysql # not compatible
query I rowsort label-2171
SELECT + 94 - + CAST ( - AVG ( + 67 ) AS INTEGER ) AS col2
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2172
SELECT + CASE - + COUNT( * ) WHEN 88 + - 55 - COUNT( * ) * - COUNT( * ) THEN - 61 * - + 64 / + ( + - 24 ) * 14 ELSE NULL END * + CAST( NULL AS SIGNED ) + + 33 - + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-2172
SELECT + CASE - + COUNT ( * ) WHEN 88 + - 55 - COUNT ( * ) * - COUNT ( * ) THEN - 61 * - + 64 / + ( + - 24 ) * 14 ELSE NULL END * + CAST ( NULL AS INTEGER ) + + 33 - + 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2173
SELECT - - CAST( - + ( + ( + 81 ) ) AS SIGNED ) DIV + 20 col1
----
-4

skipif mysql # not compatible
query I rowsort label-2173
SELECT - - CAST ( - + ( + ( + 81 ) ) AS INTEGER ) / + 20 col1
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT + MIN( DISTINCT - 33 ) + + - 89 * COUNT( * ) + - 28
----
-150

skipif mysql # not compatible
query I rowsort label-2175
SELECT + MIN ( DISTINCT - 33 ) + + - 89 * COUNT ( * ) + - 28
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2176
SELECT - 67 + - + MIN( 18 ) + - SUM( ( - ( + 3 ) ) ) - - SUM( ALL 67 ) * + + 8 + - 81 DIV COUNT( * ) * + 54 * - - COUNT( * ) + + 98 * 65 DIV - 54
----
-4037

skipif mysql # not compatible
query I rowsort label-2176
SELECT - 67 + - + MIN ( 18 ) + - SUM ( ( - ( + 3 ) ) ) - - SUM ( ALL 67 ) * + + 8 + - 81 / COUNT ( * ) * + 54 * - - COUNT ( * ) + + 98 * 65 / - 54
----
-4037

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT DISTINCT COUNT( - - 6 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT COUNT ( - - 6 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT ALL COALESCE ( + + ( NULLIF ( + MAX( DISTINCT + 63 ), - 34 ) ), + 90 )
----
63

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL COALESCE ( + + ( NULLIF ( + MAX ( DISTINCT + 63 ), - 34 ) ), + 90 )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2179
SELECT CAST( NULL AS SIGNED ) + - MAX( + 11 ) + - CAST( - 64 AS SIGNED ) + + MIN( + 84 ) * - 19 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2179
SELECT CAST ( NULL AS INTEGER ) + - MAX ( + 11 ) + - CAST ( - 64 AS INTEGER ) + + MIN ( + 84 ) * - 19 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 66 + - - 4 AS col1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT 76 + + - CAST( + ( - + 62 ) AS SIGNED ) AS col1
----
138

skipif mysql # not compatible
query I rowsort label-2181
SELECT 76 + + - CAST ( + ( - + 62 ) AS INTEGER ) AS col1
----
138

query I rowsort
SELECT DISTINCT + 45 * 60
----
2700

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

query I rowsort
SELECT ALL + 27 + ( - + 91 )
----
-64

query I rowsort
SELECT ALL + 55 + + + 67 + - 93 AS col2
----
29

query I rowsort
SELECT DISTINCT + 46 + + + 54 * 88
----
4798

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT ALL - MIN( DISTINCT + - 2 ) + 98 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL - MIN ( DISTINCT + - 2 ) + 98 AS col0
----
100

query I rowsort
SELECT ALL + 28 + + 47
----
75

query I rowsort
SELECT DISTINCT + 10 + + 25 - + 13
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-2190
SELECT 75 DIV + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2190
SELECT 75 / + 86 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2191
SELECT NULLIF ( - - 47, - 49 * - - COUNT( * ) ) DIV + + 81 col1, 54 * + COUNT( * ) - - CASE - + ( - - 53 ) WHEN + 3 THEN + - 65 ELSE NULL END + - 37 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2191
SELECT NULLIF ( - - 47, - 49 * - - COUNT ( * ) ) / + + 81 col1, 54 * + COUNT ( * ) - - CASE - + ( - - 53 ) WHEN + 3 THEN + - 65 ELSE NULL END + - 37 AS col1
----
0
NULL

query I rowsort
SELECT ALL - - 68 col1
----
68

query I rowsort
SELECT ALL 43 * 59
----
2537

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2194
SELECT 44 DIV + CAST( + 48 AS SIGNED ) AS col0, + 22 DIV 17 + + 13 * + 7
----
0
92

skipif mysql # not compatible
query II rowsort label-2194
SELECT 44 / + CAST ( + 48 AS INTEGER ) AS col0, + 22 / 17 + + 13 * + 7
----
0
92

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2196
SELECT DISTINCT - 78 * + CAST( - - 84 AS SIGNED ), ( - 33 ) - 73 - - 23 * + 52 * - 76 AS col0
----
-6552
-91002

skipif mysql # not compatible
query II rowsort label-2196
SELECT DISTINCT - 78 * + CAST ( - - 84 AS INTEGER ), ( - 33 ) - 73 - - 23 * + 52 * - 76 AS col0
----
-6552
-91002

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

skipif mysql # not compatible
query I rowsort label-2197
SELECT MIN ( + 24 )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2198
SELECT DISTINCT + + 97 * - - 27 + 10 DIV - + 33 + 48 * + 88
----
6843

skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT + + 97 * - - 27 + 10 / - + 33 + 48 * + 88
----
6843

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2199
SELECT - COUNT( * ) * - 93 - 39 DIV 2 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2199
SELECT - COUNT ( * ) * - 93 - 39 / 2 AS col2
----
74

query I rowsort
SELECT - 50 * - 42 * + COALESCE ( - 24, 95 ) + - 8 * 80 * - - 42 + ( 97 )
----
-77183

onlyif mysql # DIV for integer division: 
query II rowsort label-2201
SELECT DISTINCT - 34 AS col2, 52 DIV 1 AS col1
----
-34
52

skipif mysql # not compatible
query II rowsort label-2201
SELECT DISTINCT - 34 AS col2, 52 / 1 AS col1
----
-34
52

query I rowsort
SELECT 93 * 22 + 37 + - 53 col2
----
2030

query I rowsort
SELECT - 42 + - - 26 AS col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2204
SELECT DISTINCT - NULLIF ( - + 43, - CAST( NULL AS SIGNED ) * + - CAST( - - NULLIF ( 44, + - 12 ) AS SIGNED ) )
----
43

skipif mysql # not compatible
query I rowsort label-2204
SELECT DISTINCT - NULLIF ( - + 43, - CAST ( NULL AS INTEGER ) * + - CAST ( - - NULLIF ( 44, + - 12 ) AS INTEGER ) )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2205
SELECT ALL - ( + - ( NULLIF ( 59, + - COUNT( * ) + - 53 * - ( - + 76 ) * + 78 / - 27 * + 3 + + ( COUNT( * ) ) + - ( AVG ( - NULLIF ( + - 59, - 86 ) ) ) + 36 * - 88 * + - 15 * - 70 - + ( + NULLIF ( - 55, + COALESCE ( + - 40, + + ( - + CAST( + 34 AS SIGNED ) ) * 1 ) ) ) ) ) ) * + 64 AS col2
----
3776

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL - ( + - ( NULLIF ( 59, + - COUNT ( * ) + - 53 * - ( - + 76 ) * + 78 / - 27 * + 3 + + ( COUNT ( * ) ) + - ( AVG ( - NULLIF ( + - 59, - 86 ) ) ) + 36 * - 88 * + - 15 * - 70 - + ( + NULLIF ( - 55, + COALESCE ( + - 40, + + ( - + CAST ( + 34 AS INTEGER ) ) * 1 ) ) ) ) ) ) * + 64 AS col2
----
3776

onlyif mysql # DIV for integer division: 
query I rowsort label-2206
SELECT ALL - 27 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL - 27 / + 91
----
0

query II rowsort
SELECT - 42, + ( 14 ) AS col1
----
-42
14

query I rowsort
SELECT ALL 17 * + 33
----
561

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2209
SELECT ( - 69 ) DIV - - CAST( - 61 AS SIGNED ) - + ( 63 ) * - 55 AS col2
----
3466

skipif mysql # not compatible
query I rowsort label-2209
SELECT ( - 69 ) / - - CAST ( - 61 AS INTEGER ) - + ( 63 ) * - 55 AS col2
----
3466

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-2210
SELECT 76 * 6, + COUNT( DISTINCT 67 ) / - - 26 * + 96 * 76 + 43 + - + MAX( 75 ) * - + SUM( DISTINCT + 40 ) / + CAST( NULL AS DECIMAL ) * + 24 AS col2, - 83 AS col0
----
456
NULL
-83

skipif mysql # not compatible
query III rowsort label-2210
SELECT 76 * 6, + COUNT ( DISTINCT 67 ) / - - 26 * + 96 * 76 + 43 + - + MAX ( 75 ) * - + SUM ( DISTINCT + 40 ) / + CAST ( NULL AS REAL ) * + 24 AS col2, - 83 AS col0
----
456
NULL
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT 79 + + + NULLIF ( 18, 97 + + 58 + 80 - - 25 + - + 60 - - - 88 * - MAX( DISTINCT + + 48 ) )
----
97

skipif mysql # not compatible
query I rowsort label-2211
SELECT 79 + + + NULLIF ( 18, 97 + + 58 + 80 - - 25 + - + 60 - - - 88 * - MAX ( DISTINCT + + 48 ) )
----
97

query II rowsort
SELECT ALL 10 + 93, 50 AS col2
----
103
50

query I rowsort
SELECT DISTINCT COALESCE ( 99, + 29, + 86 ) * - 32
----
-3168

query I rowsort
SELECT ALL 81 * ( - 13 )
----
-1053

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT 66 + 65 * + ( 73 ) + - COUNT( * ) * 94 AS col2
----
4717

skipif mysql # not compatible
query I rowsort label-2215
SELECT 66 + 65 * + ( 73 ) + - COUNT ( * ) * 94 AS col2
----
4717

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2216
SELECT DISTINCT - 86 DIV + - MAX( - 67 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2216
SELECT DISTINCT - 86 / + - MAX ( - 67 ) AS col2
----
-1

query I rowsort
SELECT ( 24 ) + - 96 * + - 2 AS col1
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT 1 - - 7 + - - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-2218
SELECT 1 - - 7 + - - COUNT ( * )
----
9

query I rowsort
SELECT 75 + + - 49 + - 61 AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2220
SELECT 91 + + 78 + - 0 + - MAX( 80 ) * + CASE - + CAST( - 28 AS SIGNED ) WHEN - 94 / + 53 + COUNT( * ) - + 31 THEN - 30 * - 90 + + + 20 ELSE + 19 END * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2220
SELECT 91 + + 78 + - 0 + - MAX ( 80 ) * + CASE - + CAST ( - 28 AS INTEGER ) WHEN - 94 / + 53 + COUNT ( * ) - + 31 THEN - 30 * - 90 + + + 20 ELSE + 19 END * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2222
SELECT 29 * - 37 + + 60 + - COALESCE ( - - COALESCE ( - 43, + + 10, - + MAX( - 7 ) ), MAX( ALL - - 40 ), + - 92 DIV - ( - 4 ) DIV 91 DIV - ( + - 19 ), - 20 )
----
-970

skipif mysql # not compatible
query I rowsort label-2222
SELECT 29 * - 37 + + 60 + - COALESCE ( - - COALESCE ( - 43, + + 10, - + MAX ( - 7 ) ), MAX ( ALL - - 40 ), + - 92 / - ( - 4 ) / 91 / - ( + - 19 ), - 20 )
----
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT ALL SUM( 8 ) * - 89
----
-712

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL SUM ( 8 ) * - 89
----
-712

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT ALL COUNT( ALL + 41 ) * - + COUNT( * ) - + 4
----
-5

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL COUNT ( ALL + 41 ) * - + COUNT ( * ) - + 4
----
-5

query I rowsort
SELECT + 24 + 50 + - - COALESCE ( + 9, 64 + - - 21 )
----
83

query II rowsort
SELECT ALL - 49 col2, 90 + - 99
----
-49
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT DISTINCT + - 4 * COUNT( * ) * - 43 - - 95
----
267

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT + - 4 * COUNT ( * ) * - 43 - - 95
----
267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2228
SELECT CASE + 46 WHEN - 0 THEN - + ( 49 ) * + 14 ELSE + - 13 END * - SUM( 20 ) / 48 + 67 * + CASE MIN( + - 93 ) WHEN - MIN( - + 36 ) THEN + + COUNT( + - 50 ) * - + CASE + 18 WHEN 10 * + + NULLIF ( - 76, 71 ) THEN - 38 / - 23 * 88 + 71 + - - COUNT( * ) ELSE NULLIF ( 9, CAST( NULL AS SIGNED ) ) - COALESCE ( + NULLIF ( + 52, + 67 ), - 21, COUNT( * ) ) END + 75 END + 0 * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2228
SELECT CASE + 46 WHEN - 0 THEN - + ( 49 ) * + 14 ELSE + - 13 END * - SUM ( 20 ) / 48 + 67 * + CASE MIN ( + - 93 ) WHEN - MIN ( - + 36 ) THEN + + COUNT ( + - 50 ) * - + CASE + 18 WHEN 10 * + + NULLIF ( - 76, 71 ) THEN - 38 / - 23 * 88 + 71 + - - COUNT ( * ) ELSE NULLIF ( 9, CAST ( NULL AS INTEGER ) ) - COALESCE ( + NULLIF ( + 52, + 67 ), - 21, COUNT ( * ) ) END + 75 END + 0 * 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT + MAX( DISTINCT 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-2229
SELECT + MAX ( DISTINCT 7 ) AS col2
----
7

query II rowsort
SELECT - 2 * 33 + - 20 + + 44, + ( - - 79 ) AS col2
----
-42
79

query I rowsort
SELECT ALL - 33 * + 18 * 65 + - 10
----
-38620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2232
SELECT DISTINCT CAST( + - SUM( ALL 32 ) AS DECIMAL ) * - MAX( - + NULLIF ( - 47, - 74 + 35 ) ) + + + CASE + - 97 WHEN + 60 * - - 35 THEN 35 * + 11 WHEN - 39 + ( + ( - CAST( - 72 AS SIGNED ) ) ) THEN NULL WHEN + 35 + - - 91 THEN 34 * + NULLIF ( + 59, - NULLIF ( + 90, + 32 ) ) * + CASE COUNT( * ) WHEN - + 35 THEN - - 57 + 15 WHEN + 70 THEN CAST( + 49 AS SIGNED ) * 76 WHEN COUNT( * ) / MAX( ALL - 56 ) THEN 13 END ELSE NULL END / ( CASE + 63 WHEN + 23 THEN + CAST( NULL AS DECIMAL ) ELSE + 37 + 2 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT CAST ( + - SUM ( ALL 32 ) AS REAL ) * - MAX ( - + NULLIF ( - 47, - 74 + 35 ) ) + + + CASE + - 97 WHEN + 60 * - - 35 THEN 35 * + 11 WHEN - 39 + ( + ( - CAST ( - 72 AS INTEGER ) ) ) THEN NULL WHEN + 35 + - - 91 THEN 34 * + NULLIF ( + 59, - NULLIF ( + 90, + 32 ) ) * + CASE COUNT ( * ) WHEN - + 35 THEN - - 57 + 15 WHEN + 70 THEN CAST ( + 49 AS INTEGER ) * 76 WHEN COUNT ( * ) / MAX ( ALL - 56 ) THEN 13 END ELSE NULL END / ( CASE + 63 WHEN + 23 THEN + CAST ( NULL AS REAL ) ELSE + 37 + 2 END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2233
SELECT ALL - ( - 57 ) * 52 DIV - 45
----
-65

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL - ( - 57 ) * 52 / - 45
----
-65

query I rowsort
SELECT ALL - 73 * - 95
----
6935

query I rowsort
SELECT ALL + - 27 * 76 AS col2
----
-2052

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2237
SELECT DISTINCT 76 + - 87 * - 26, 76 DIV + 7 AS col2
----
2338
10

skipif mysql # not compatible
query II rowsort label-2237
SELECT DISTINCT 76 + - 87 * - 26, 76 / + 7 AS col2
----
2338
10

query I rowsort
SELECT ALL 11 + + - 29
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-2239
SELECT DISTINCT - COUNT( * ) + 18, 76 + 98 AS col2
----
17
174

skipif mysql # not compatible
query II rowsort label-2239
SELECT DISTINCT - COUNT ( * ) + 18, 76 + 98 AS col2
----
17
174

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

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

query I rowsort
SELECT ALL 33 + + 24 + + 7 * - 80 AS col0
----
-503

query I rowsort
SELECT DISTINCT 10 + - + 66
----
-56

query I rowsort
SELECT - 16 + 27 * - 59
----
-1609

query I rowsort
SELECT + 15 + - 80
----
-65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT DISTINCT 9 * + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT 9 * + COUNT ( * )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2247
SELECT ALL 67 * 0 * + - COUNT( * ) DIV + 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL 67 * 0 * + - COUNT ( * ) / + 64 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2248
SELECT DISTINCT SUM( DISTINCT - 7 ), - 83 AS col0
----
-7
-83

skipif mysql # not compatible
query II rowsort label-2248
SELECT DISTINCT SUM ( DISTINCT - 7 ), - 83 AS col0
----
-7
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2249
SELECT ALL - COUNT( * ) DIV - - 35 * 2
----
0

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL - COUNT ( * ) / - - 35 * 2
----
0

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

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

query I rowsort
SELECT - CASE - 3 WHEN + 8 * 42 THEN + 99 + - - 20 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT - SUM( 39 ) col1
----
-39

skipif mysql # not compatible
query I rowsort label-2252
SELECT - SUM ( 39 ) col1
----
-39

query I rowsort
SELECT + 47 - + + 65 - 75 * + NULLIF ( - 97, + 44 * + + 93 )
----
7257

query I rowsort
SELECT - 17 * - - 97 AS col2
----
-1649

query II rowsort
SELECT ALL + ( 51 ), + 77 + - 59 AS col0
----
51
18

query I rowsort
SELECT DISTINCT + + 10 * - - 77 + 77
----
847

query I rowsort
SELECT - - 33 * - 38
----
-1254

onlyif mysql # aggregate syntax: 
query II rowsort label-2258
SELECT + MAX( ALL 37 ) + - 63 col2, - 82
----
-26
-82

skipif mysql # not compatible
query II rowsort label-2258
SELECT + MAX ( ALL 37 ) + - 63 col2, - 82
----
-26
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2259
SELECT DISTINCT 12 * - CAST( COUNT( * ) AS SIGNED ) - - 61 + 98, 22 AS col1
----
147
22

skipif mysql # not compatible
query II rowsort label-2259
SELECT DISTINCT 12 * - CAST ( COUNT ( * ) AS INTEGER ) - - 61 + 98, 22 AS col1
----
147
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT - 4 * + 82 + SUM( + 82 ) AS col1
----
-246

skipif mysql # not compatible
query I rowsort label-2260
SELECT - 4 * + 82 + SUM ( + 82 ) AS col1
----
-246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2261
SELECT - ( + ( - CAST( - 45 AS SIGNED ) ) ) * ( + 94 ) AS col2
----
-4230

skipif mysql # not compatible
query I rowsort label-2261
SELECT - ( + ( - CAST ( - 45 AS INTEGER ) ) ) * ( + 94 ) AS col2
----
-4230

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

skipif mysql # not compatible
query I rowsort label-2262
SELECT + 66 * + COUNT ( * ) / - 1 + + COUNT ( * )
----
-65

query I rowsort
SELECT DISTINCT - 75 * - 98 + 39 AS col0
----
7389

query I rowsort
SELECT DISTINCT 22 * - 74 * + 83 AS col1
----
-135124

onlyif mysql # aggregate syntax: 
query II rowsort label-2265
SELECT - 28 + - + 35 * + - COUNT( * ) AS col0, 67
----
7
67

skipif mysql # not compatible
query II rowsort label-2265
SELECT - 28 + - + 35 * + - COUNT ( * ) AS col0, 67
----
7
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2266
SELECT ALL 91 * + - CAST( - 87 AS SIGNED ) + - + ( 8 )
----
7909

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL 91 * + - CAST ( - 87 AS INTEGER ) + - + ( 8 )
----
7909

query I rowsort
SELECT DISTINCT + 87 * + 94
----
8178

query I rowsort
SELECT - 57 + 99 * ( + + 55 ) col2
----
5388

query II rowsort
SELECT DISTINCT - 23 * - ( 71 ) * 4 * - ( - NULLIF ( - - ( - 59 ), - + 62 * - 92 - 78 ) ), + 68 AS col1
----
-385388
68

query II rowsort
SELECT - 61 AS col1, 4
----
-61
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT - CASE 29 WHEN - 46 THEN - SUM( + 60 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2271
SELECT - CASE 29 WHEN - 46 THEN - SUM ( + 60 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2272
SELECT 42 * + 26 * - CASE + ( - - 34 ) WHEN - + 25 THEN COUNT( * ) * ( + 15 ) END + + 42 + + CAST( + 39 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2272
SELECT 42 * + 26 * - CASE + ( - - 34 ) WHEN - + 25 THEN COUNT ( * ) * ( + 15 ) END + + 42 + + CAST ( + 39 AS INTEGER ) AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - 96 - 84 AS col1
----
-180

query I rowsort
SELECT DISTINCT - 24 * + 10 col1
----
-240

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

query I rowsort
SELECT - ( + - 29 ) - - + 32 + - 4 AS col0
----
57

query I rowsort
SELECT - 62 * 57
----
-3534

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2279
SELECT ALL ( - CAST( + 41 AS SIGNED ) ) AS col1, 61 + CAST( + + 46 AS SIGNED ) AS col1
----
-41
107

skipif mysql # not compatible
query II rowsort label-2279
SELECT ALL ( - CAST ( + 41 AS INTEGER ) ) AS col1, 61 + CAST ( + + 46 AS INTEGER ) AS col1
----
-41
107

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

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

query II rowsort
SELECT 52 AS col2, 72
----
52
72

query I rowsort
SELECT ALL - 79 - + ( 58 )
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT - COUNT( * ) * 37 col2
----
-37

skipif mysql # not compatible
query I rowsort label-2283
SELECT - COUNT ( * ) * 37 col2
----
-37

query III rowsort
SELECT + 32 * 21 * - 61 AS col1, ( - - 77 ) * - 99 AS col2, 90
----
-40992
-7623
90

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2286
SELECT + + 22 - - CAST( NULL AS SIGNED ) * + 11 + - - 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT + + 22 - - CAST ( NULL AS INTEGER ) * + 11 + - - 56 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2287
SELECT DISTINCT + 16 * + 46 * + 73 AS col0, - 17 * + - COUNT( * ) + - MAX( 71 )
----
53728
-54

skipif mysql # not compatible
query II rowsort label-2287
SELECT DISTINCT + 16 * + 46 * + 73 AS col0, - 17 * + - COUNT ( * ) + - MAX ( 71 )
----
53728
-54

query II rowsort
SELECT ALL 0, + 28 col0
----
0
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT + - 47 - - + CASE + 60 WHEN - + 91 THEN 14 WHEN ( - 70 ) * - 36 * - NULLIF ( - - NULLIF ( + + 90, - + ( - COUNT( * ) ) ), 9 ) * 63 + + - 47 / 12 + + + 4 THEN NULL END + + 16 + - SUM( - 70 ) + - + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2290
SELECT + - 47 - - + CASE + 60 WHEN - + 91 THEN 14 WHEN ( - 70 ) * - 36 * - NULLIF ( - - NULLIF ( + + 90, - + ( - COUNT ( * ) ) ), 9 ) * 63 + + - 47 / 12 + + + 4 THEN NULL END + + 16 + - SUM ( - 70 ) + - + 20
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2291
SELECT + 19 DIV - - 31 * 20 AS col1, - 66 col0
----
0
-66

skipif mysql # not compatible
query II rowsort label-2291
SELECT + 19 / - - 31 * 20 AS col1, - 66 col0
----
0
-66

query I rowsort
SELECT + + 77 * 96 * 2 AS col1
----
14784

query I rowsort
SELECT + + 72 + - - 64
----
136

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

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT + COUNT ( DISTINCT - - 90 ) * - 41 AS col2
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2295
SELECT + CASE + 70 WHEN + + 29 THEN NULL WHEN + 99 THEN NULL WHEN + COALESCE ( - ( + + ( - - 57 ) ), - 4 ) - - 11 THEN - - CASE + + 74 WHEN + MAX( DISTINCT - ( - + CAST( - 21 AS SIGNED ) ) ) THEN NULL ELSE 70 END + - 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT + CASE + 70 WHEN + + 29 THEN NULL WHEN + 99 THEN NULL WHEN + COALESCE ( - ( + + ( - - 57 ) ), - 4 ) - - 11 THEN - - CASE + + 74 WHEN + MAX ( DISTINCT - ( - + CAST ( - 21 AS INTEGER ) ) ) THEN NULL ELSE 70 END + - 83 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2296
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / - COUNT( * ) - + + CAST( NULL AS DECIMAL ) * 17 * - + 13 + 12 + + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / - COUNT ( * ) - + + CAST ( NULL AS REAL ) * 17 * - + 13 + 12 + + - 51
----
NULL

query I rowsort
SELECT DISTINCT + 84 + + 14 AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2298
SELECT + 85 AS col1, CAST( NULL AS SIGNED ) AS col0
----
85
NULL

skipif mysql # not compatible
query II rowsort label-2298
SELECT + 85 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
85
NULL

query I rowsort
SELECT 68 + 17
----
85

query I rowsort
SELECT ALL 5 + + 23 * - 55 * + ( 91 ) AS col0
----
-115110

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT - COUNT( * ) * 19 * SUM( 6 ) + MAX( ALL - 88 ) AS col1
----
-202

skipif mysql # not compatible
query I rowsort label-2301
SELECT - COUNT ( * ) * 19 * SUM ( 6 ) + MAX ( ALL - 88 ) AS col1
----
-202

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT + + NULLIF ( + 49, COUNT( * ) ) * 71 + - + 4 AS col0
----
3475

skipif mysql # not compatible
query I rowsort label-2302
SELECT + + NULLIF ( + 49, COUNT ( * ) ) * 71 + - + 4 AS col0
----
3475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2303
SELECT ALL - 90 + CAST( NULL AS SIGNED ) + - COALESCE ( 76, - 18 + + + 75 / + - COUNT( * ) * - 49, + + 79, 48 + 46 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL - 90 + CAST ( NULL AS INTEGER ) + - COALESCE ( 76, - 18 + + + 75 / + - COUNT ( * ) * - 49, + + 79, 48 + 46 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT - MIN( DISTINCT - 39 )
----
39

skipif mysql # not compatible
query I rowsort label-2304
SELECT - MIN ( DISTINCT - 39 )
----
39

onlyif mysql # aggregate syntax: 
query III rowsort label-2305
SELECT ALL + 21 + MAX( 67 ) AS col0, - 57 - - 23 * - - 83 AS col1, COALESCE ( + 8, - 63 + + + 46, 29 ) AS col1
----
88
1852
8

skipif mysql # not compatible
query III rowsort label-2305
SELECT ALL + 21 + MAX ( 67 ) AS col0, - 57 - - 23 * - - 83 AS col1, COALESCE ( + 8, - 63 + + + 46, 29 ) AS col1
----
88
1852
8

query I rowsort
SELECT ALL 34 + 89 AS col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT CASE - MIN( DISTINCT - 9 ) WHEN COUNT( * ) THEN - 46 * + 7 * 72 * + 63 WHEN + 60 + 55 THEN NULL END / - 90 + 58 / AVG ( + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2307
SELECT CASE - MIN ( DISTINCT - 9 ) WHEN COUNT ( * ) THEN - 46 * + 7 * 72 * + 63 WHEN + 60 + 55 THEN NULL END / - 90 + 58 / AVG ( + 95 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2308
SELECT 4 * - + CAST( + ( + + ( 4 ) ) AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-2308
SELECT 4 * - + CAST ( + ( + + ( 4 ) ) AS INTEGER )
----
-16

query I rowsort
SELECT ( - + 22 ) * 51 col1
----
-1122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2310
SELECT ALL - COUNT( * ) - 57 DIV - 68 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL - COUNT ( * ) - 57 / - 68 AS col0
----
-1

query I rowsort
SELECT ALL + NULLIF ( + 45, + 11 ) * 76
----
3420

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT DISTINCT + 20 * + + MIN( 45 )
----
900

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT + 20 * + + MIN ( 45 )
----
900

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

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

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

skipif mysql # not compatible
query I rowsort label-2315
SELECT 19 / + ( + COUNT ( * ) )
----
19

query I rowsort
SELECT 93 + 50 AS col2
----
143

query I rowsort
SELECT 29 * + ( + 63 ) col0
----
1827

query I rowsort
SELECT DISTINCT + + 33 + 78
----
111

query I rowsort
SELECT ALL 9 + 31 AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2320
SELECT - 92 * - - 69 * - NULLIF ( 95, - CAST( + 78 AS SIGNED ) )
----
603060

skipif mysql # not compatible
query I rowsort label-2320
SELECT - 92 * - - 69 * - NULLIF ( 95, - CAST ( + 78 AS INTEGER ) )
----
603060

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT + COALESCE ( + MAX( 72 ), 67 * + - 45 - 1 )
----
72

skipif mysql # not compatible
query I rowsort label-2321
SELECT + COALESCE ( + MAX ( 72 ), 67 * + - 45 - 1 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT ALL - - ( 1 ) + + - COALESCE ( - + 50, - ( COUNT( * ) ) )
----
51

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL - - ( 1 ) + + - COALESCE ( - + 50, - ( COUNT ( * ) ) )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT MAX( ALL + 78 ) * 80
----
6240

skipif mysql # not compatible
query I rowsort label-2323
SELECT MAX ( ALL + 78 ) * 80
----
6240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2324
SELECT ALL - 94 + - 40 + - + CAST( - COUNT( * ) AS SIGNED ) * - 12 AS col0
----
-146

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL - 94 + - 40 + - + CAST ( - COUNT ( * ) AS INTEGER ) * - 12 AS col0
----
-146

onlyif mysql # aggregate syntax: 
query II rowsort label-2325
SELECT + - ( - - 45 ), COUNT( * ) + - + ( - ( - - 50 ) ) AS col0
----
-45
51

skipif mysql # not compatible
query II rowsort label-2325
SELECT + - ( - - 45 ), COUNT ( * ) + - + ( - ( - - 50 ) ) AS col0
----
-45
51

query I rowsort
SELECT ALL ( + - 4 ) + - + 57 + + 9
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-2327
SELECT DISTINCT - 61 * CASE - 21 WHEN - 69 THEN + - 56 + 8 WHEN COUNT( * ) + 66 * ( - 9 ) / - COUNT( * ) THEN + - 93 ELSE NULL END + - 6 * - 39 AS col0, 66
----
NULL
66

skipif mysql # not compatible
query II rowsort label-2327
SELECT DISTINCT - 61 * CASE - 21 WHEN - 69 THEN + - 56 + 8 WHEN COUNT ( * ) + 66 * ( - 9 ) / - COUNT ( * ) THEN + - 93 ELSE NULL END + - 6 * - 39 AS col0, 66
----
NULL
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT ALL + MAX( + + 4 ) * 92 AS col2
----
368

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL + MAX ( + + 4 ) * 92 AS col2
----
368

query I rowsort
SELECT DISTINCT + 17 + 89 - + 48 AS col2
----
58

query I rowsort
SELECT ALL 78 + - 52 - - 75 AS col1
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2331
SELECT DISTINCT 81 - - 0 DIV - COUNT( * ) * - CAST( + 9 AS SIGNED ) col0, MIN( 76 ) * - SUM( DISTINCT - 11 ) col2
----
81
836

skipif mysql # not compatible
query II rowsort label-2331
SELECT DISTINCT 81 - - 0 / - COUNT ( * ) * - CAST ( + 9 AS INTEGER ) col0, MIN ( 76 ) * - SUM ( DISTINCT - 11 ) col2
----
81
836

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT 59 + - + 46 + + COUNT( DISTINCT - 72 )
----
14

skipif mysql # not compatible
query I rowsort label-2332
SELECT 59 + - + 46 + + COUNT ( DISTINCT - 72 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT MAX( NULLIF ( - 72, + + 73 ) ) * - ( 33 ) + + 7
----
2383

skipif mysql # not compatible
query I rowsort label-2333
SELECT MAX ( NULLIF ( - 72, + + 73 ) ) * - ( 33 ) + + 7
----
2383

query I rowsort
SELECT 68 + + - ( - 17 ) AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2335
SELECT 4 - + 54 / 71 * + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) / + - ( - ( 47 ) ) + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2335
SELECT 4 - + 54 / 71 * + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) / + - ( - ( 47 ) ) + + 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT + MAX( ALL - - 88 ) * - COALESCE ( + + 38, + 38 - + 51 ) + 67 * - MIN( DISTINCT + + 19 ) AS col1
----
-4617

skipif mysql # not compatible
query I rowsort label-2336
SELECT + MAX ( ALL - - 88 ) * - COALESCE ( + + 38, + 38 - + 51 ) + 67 * - MIN ( DISTINCT + + 19 ) AS col1
----
-4617

query I rowsort
SELECT ALL 80 - + 40 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2338
SELECT CASE 36 WHEN - COUNT( * ) THEN NULL WHEN - 42 / 10 THEN 66 - + COALESCE ( + 70, 95 + - - CAST( NULL AS SIGNED ) * CAST( + 1 AS DECIMAL ) + + 8, + 31 ) + - + 80 * + 93 + 40 * - ( + 41 ) * 90 / - 85 + - 44 * + 6 * 19 * - 79 - ( + 33 ) ELSE NULL END * - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2338
SELECT CASE 36 WHEN - COUNT ( * ) THEN NULL WHEN - 42 / 10 THEN 66 - + COALESCE ( + 70, 95 + - - CAST ( NULL AS INTEGER ) * CAST ( + 1 AS REAL ) + + 8, + 31 ) + - + 80 * + 93 + 40 * - ( + 41 ) * 90 / - 85 + - 44 * + 6 * 19 * - 79 - ( + 33 ) ELSE NULL END * - 8 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT ALL 45 * - MIN( - - 34 ) AS col0
----
-1530

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL 45 * - MIN ( - - 34 ) AS col0
----
-1530

query I rowsort
SELECT 13 + + 12 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT DISTINCT SUM( - 88 ) * - 16 AS col1
----
1408

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT SUM ( - 88 ) * - 16 AS col1
----
1408

query I rowsort
SELECT 90 + + 62
----
152

query I rowsort
SELECT - 0 * + 54 + - 97 AS col0
----
-97

query I rowsort
SELECT 35 * - 40 AS col0
----
-1400

query II rowsort
SELECT 38 + + 6 + 34 AS col0, 72 AS col1
----
78
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT DISTINCT + 97 + 66 / + 68 * - CASE + 15 WHEN - 71 * + 98 THEN NULL WHEN 18 + + 19 THEN 44 END + + SUM( ALL - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT + 97 + 66 / + 68 * - CASE + 15 WHEN - 71 * + 98 THEN NULL WHEN 18 + + 19 THEN 44 END + + SUM ( ALL - 39 )
----
NULL

query I rowsort
SELECT ALL - 64 + + ( + - NULLIF ( - + 75, - - 32 ) ) AS col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2349
SELECT ALL 37 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL 37 / 65
----
0

query I rowsort
SELECT DISTINCT + + 18 + 85 * - 30 * - 98 AS col1
----
249918

onlyif mysql # aggregate syntax: 
query II rowsort label-2351
SELECT DISTINCT - 73 * 27 * 95 * - 38 + 73 + - COUNT( - 44 ) * - - 83 * - + SUM( - + 87 ) AS col2, 77 - + COALESCE ( - - 8, - COUNT( * ) ) AS col0
----
7108162
69

skipif mysql # not compatible
query II rowsort label-2351
SELECT DISTINCT - 73 * 27 * 95 * - 38 + 73 + - COUNT ( - 44 ) * - - 83 * - + SUM ( - + 87 ) AS col2, 77 - + COALESCE ( - - 8, - COUNT ( * ) ) AS col0
----
7108162
69

query I rowsort
SELECT ALL + 14 + - 67 AS col0
----
-53

query I rowsort
SELECT + - 9 + - 29 * - - 72
----
-2097

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2354
SELECT - 99 - + 6 + + + CASE - NULLIF ( + 16, + - 3 * + 86 * + + 89 ) WHEN 84 * - 87 / - 57 * + - 47 THEN COUNT( * ) * CAST( - 39 AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2354
SELECT - 99 - + 6 + + + CASE - NULLIF ( + 16, + - 3 * + 86 * + + 89 ) WHEN 84 * - 87 / - 57 * + - 47 THEN COUNT ( * ) * CAST ( - 39 AS REAL ) END
----
NULL

query I rowsort
SELECT - NULLIF ( + + 69, + 4 * - 0 - 38 ) + - 95 AS col2
----
-164

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

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

query I rowsort
SELECT ALL + 65 * - 2
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT - CASE - - 64 WHEN - COUNT( * ) THEN + + 8 + - - 61 ELSE NULL END + + 17 - + - 42 * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2358
SELECT - CASE - - 64 WHEN - COUNT ( * ) THEN + + 8 + - - 61 ELSE NULL END + + 17 - + - 42 * + 17
----
NULL

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

query I rowsort
SELECT DISTINCT + 21 + 82
----
103

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2361
SELECT + + CAST( + 16 AS SIGNED ) DIV + 86 + + 87 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-2361
SELECT + + CAST ( + 16 AS INTEGER ) / + 86 + + 87 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT DISTINCT + - MAX( - 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT + - MAX ( - 72 ) AS col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2363
SELECT + CAST( NULL AS SIGNED ), CAST( - + 38 AS SIGNED ) * + - 44 AS col0
----
NULL
1672

skipif mysql # not compatible
query II rowsort label-2363
SELECT + CAST ( NULL AS INTEGER ), CAST ( - + 38 AS INTEGER ) * + - 44 AS col0
----
NULL
1672

query II rowsort
SELECT + 89 AS col2, - NULLIF ( + 25, 69 ) + + ( ( - 0 ) ) col0
----
89
-25

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

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT + 64 * - - COUNT ( * ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT DISTINCT MIN( DISTINCT + - 26 ) * 50
----
-1300

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT MIN ( DISTINCT + - 26 ) * 50
----
-1300

query I rowsort
SELECT COALESCE ( + 31, + + 60 * + - 2 * + 73, 45 )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2368
SELECT ALL + 83 / 42 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL + 83 / 42 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 47 * - - 49
----
-2303

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

query I rowsort
SELECT CASE - 77 WHEN - - 38 * - - 26 THEN - 91 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT + 33 * 94 AS col0
----
3102

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT 84 * - 47 - - COUNT( * )
----
-3947

skipif mysql # not compatible
query I rowsort label-2374
SELECT 84 * - 47 - - COUNT ( * )
----
-3947

query I rowsort
SELECT + 97 * - 13
----
-1261

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT MAX( 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-2377
SELECT MAX ( 66 ) AS col2
----
66

query I rowsort
SELECT + 90 + - 63
----
27

query I rowsort
SELECT DISTINCT 96 + - 64
----
32

query I rowsort
SELECT + + 99 * 90
----
8910

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT + + COUNT( * ) - - ( + 27 ) + 36 + MIN( - 14 ) * + 46
----
-580

skipif mysql # not compatible
query I rowsort label-2381
SELECT + + COUNT ( * ) - - ( + 27 ) + 36 + MIN ( - 14 ) * + 46
----
-580

query I rowsort
SELECT DISTINCT 26 * + 63 AS col2
----
1638

query I rowsort
SELECT ALL 31 + - + 9 - + 19
----
3

query II rowsort
SELECT 83 AS col1, 88 AS col1
----
83
88

query I rowsort
SELECT ALL ( + 16 ) * - ( + 73 ) * ( - 55 ) * - - 5
----
321200

query I rowsort
SELECT + 14 * 80 AS col1
----
1120

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2387
SELECT - CAST( - 57 AS SIGNED ) + + 18 DIV 53
----
57

skipif mysql # not compatible
query I rowsort label-2387
SELECT - CAST ( - 57 AS INTEGER ) + + 18 / 53
----
57

query I rowsort
SELECT - 97 + - + 22
----
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2389
SELECT ALL + CASE - 52 WHEN 6 - + COALESCE ( 6, + COUNT( * ) ) * - 87 + + 48 THEN NULL ELSE - 79 END + + 15 * 11 * 98 + SUM( ALL CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL + CASE - 52 WHEN 6 - + COALESCE ( 6, + COUNT ( * ) ) * - 87 + + 48 THEN NULL ELSE - 79 END + + 15 * 11 * 98 + SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL ( + 6 ) * + 59 AS col2
----
354

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2392
SELECT ALL - COUNT( - - 95 ), - 7 + 17 AS col0
----
-1
10

skipif mysql # not compatible
query II rowsort label-2392
SELECT ALL - COUNT ( - - 95 ), - 7 + 17 AS col0
----
-1
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT ALL + 92 - - 23 - + - 38 * + ( + SUM( ALL + 98 ) ) * - 33
----
-122777

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL + 92 - - 23 - + - 38 * + ( + SUM ( ALL + 98 ) ) * - 33
----
-122777

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT ALL CASE - - 84 WHEN - 18 THEN NULL WHEN - COUNT( * ) / - 90 - - 10 THEN NULL WHEN + - 45 * - 33 * - 64 THEN MAX( - 84 ) * - 15 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL CASE - - 84 WHEN - 18 THEN NULL WHEN - COUNT ( * ) / - 90 - - 10 THEN NULL WHEN + - 45 * - 33 * - 64 THEN MAX ( - 84 ) * - 15 END AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2396
SELECT DISTINCT 56 DIV - 49 col0
----
-1

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT 56 / - 49 col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2397
SELECT + CAST( NULL AS SIGNED ) - + - MAX( + 10 ) / - COUNT( * ) * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-2397
SELECT + CAST ( NULL AS INTEGER ) - + - MAX ( + 10 ) / - COUNT ( * ) * 16
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2398
SELECT + - SUM( ALL 81 ) * SUM( - 56 ) AS col1, 26
----
4536
26

skipif mysql # not compatible
query II rowsort label-2398
SELECT + - SUM ( ALL 81 ) * SUM ( - 56 ) AS col1, 26
----
4536
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT - - 73 * - 68 - - COUNT( + 94 )
----
-4963

skipif mysql # not compatible
query I rowsort label-2399
SELECT - - 73 * - 68 - - COUNT ( + 94 )
----
-4963

query II rowsort
SELECT ALL - ( + 14 ) * - 6 * + 59 + - 86 * + 22 AS col0, - CASE + 91 WHEN + COALESCE ( 95, + 97 * - 49 * - 64 ) THEN NULL ELSE - - 17 END + + 34 AS col0
----
3064
17

query I rowsort
SELECT + 43 + + + ( + + 49 )
----
92

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2404
SELECT + COALESCE ( - + CASE 16 WHEN - + CAST( + COUNT( * ) AS SIGNED ) THEN - 8 WHEN - - 96 + + 13 + - 50 THEN + 63 WHEN + + 79 * + 60 + - 88 * - + COUNT( * ) THEN NULL END, + + ( + - 84 ) + + 75 + + 88 * 75 ) * - 62 * 10 + + 98 + - - 30
----
-4086292

skipif mysql # not compatible
query I rowsort label-2404
SELECT + COALESCE ( - + CASE 16 WHEN - + CAST ( + COUNT ( * ) AS INTEGER ) THEN - 8 WHEN - - 96 + + 13 + - 50 THEN + 63 WHEN + + 79 * + 60 + - 88 * - + COUNT ( * ) THEN NULL END, + + ( + - 84 ) + + 75 + + 88 * 75 ) * - 62 * 10 + + 98 + - - 30
----
-4086292

query II rowsort
SELECT - ( + + 15 ) * - + 91 + + - 37 - 49 col2, - 27
----
1279
-27

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2407
SELECT DISTINCT 34 * - 2 AS col2, - COUNT( + + 11 )
----
-68
-1

skipif mysql # not compatible
query II rowsort label-2407
SELECT DISTINCT 34 * - 2 AS col2, - COUNT ( + + 11 )
----
-68
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT DISTINCT + COUNT( 34 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT + COUNT ( 34 ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2409
SELECT + 74 DIV - 99 - - 90 + 53 * - 62 + - ( 56 ) AS col2
----
-3252

skipif mysql # not compatible
query I rowsort label-2409
SELECT + 74 / - 99 - - 90 + 53 * - 62 + - ( 56 ) AS col2
----
-3252

query I rowsort
SELECT ALL - 78 * - 52
----
4056

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT - 39 + - CASE WHEN 83 BETWEEN NULL AND - SUM( + - 95 ) * + ( - ( 99 ) ) + + COUNT( * ) / - 32 + 82 THEN - 99 - + - 0 END + + - 99 * + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2411
SELECT - 39 + - CASE WHEN 83 BETWEEN NULL AND - SUM ( + - 95 ) * + ( - ( 99 ) ) + + COUNT ( * ) / - 32 + 82 THEN - 99 - + - 0 END + + - 99 * + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL + CASE + 57 WHEN 78 THEN + SUM( - 95 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL + CASE + 57 WHEN 78 THEN + SUM ( - 95 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT 88 * - 1 * - ( + 14 ) * + - 65 * CASE - 89 WHEN + 11 THEN NULL WHEN + 90 * + - 36 + - 65 * - COUNT( * ) THEN + + 25 * COUNT( * ) * + ( NULLIF ( + 41, + 59 ) ) * + 84 * ( 64 ) END * - COUNT( * ) + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT 88 * - 1 * - ( + 14 ) * + - 65 * CASE - 89 WHEN + 11 THEN NULL WHEN + 90 * + - 36 + - 65 * - COUNT ( * ) THEN + + 25 * COUNT ( * ) * + ( NULLIF ( + 41, + 59 ) ) * + 84 * ( 64 ) END * - COUNT ( * ) + + 72
----
NULL

query II rowsort
SELECT ( - + 59 ) AS col0, 59 - - - ( - - 73 ) * + 32 AS col0
----
-59
-2277

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT + 85 - - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-2416
SELECT + 85 - - COUNT ( * )
----
86

query I rowsort
SELECT ALL 73 * - + 16 + + 92 AS col1
----
-1076

query I rowsort
SELECT DISTINCT - 7 * - 38 * ( - 97 ) * - 53 + - - 29 + - 74
----
1367461

onlyif mysql # DIV for integer division: 
query I rowsort label-2419
SELECT DISTINCT - 34 DIV + 99 * + + 78 col0
----
0

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT - 34 / + 99 * + + 78 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT ALL + MAX( + - 24 ) * 90 + + + COALESCE ( - COUNT( * ), + COUNT( * ) * - 49, - + 17 ) + + COUNT( * ) + - 45 + + COUNT( * ) * - ( COUNT( * ) )
----
-2206

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL + MAX ( + - 24 ) * 90 + + + COALESCE ( - COUNT ( * ), + COUNT ( * ) * - 49, - + 17 ) + + COUNT ( * ) + - 45 + + COUNT ( * ) * - ( COUNT ( * ) )
----
-2206

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL - CASE - 22 WHEN ( + - 55 ) + + + 69 THEN - - 3 ELSE COUNT( * ) END * 76 + + 88 col0
----
12

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL - CASE - 22 WHEN ( + - 55 ) + + + 69 THEN - - 3 ELSE COUNT ( * ) END * 76 + + 88 col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2422
SELECT 53 * + + 96 * - - 52 + 45 / - ( + + 43 ) / + 36 + - 45 + + + 79 + + CAST( NULL AS SIGNED ) + - 41 + + 97 + - COUNT( * ) * - CASE - NULLIF ( AVG ( 25 ), CAST( + 52 AS SIGNED ) ) WHEN 67 THEN + 88 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2422
SELECT 53 * + + 96 * - - 52 + 45 / - ( + + 43 ) / + 36 + - 45 + + + 79 + + CAST ( NULL AS INTEGER ) + - 41 + + 97 + - COUNT ( * ) * - CASE - NULLIF ( AVG ( 25 ), CAST ( + 52 AS INTEGER ) ) WHEN 67 THEN + 88 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2423
SELECT ALL - COUNT( * ) * + - 21 * + - 46, CASE - 32 WHEN - 80 * - 93 THEN 20 WHEN - COUNT( * ) THEN + + 3 DIV + + ( + + 17 ) - - + ( - 47 ) + - CASE NULLIF ( + + ( - 78 ), + + 13 + + - 66 + 96 + 44 + - + COUNT( * ) + + 72 * 3 ) WHEN + 9 + 55 + + 40 * - 81 * MIN( - - 14 ) * - 19 * - + 82 THEN - 42 * - + 74 * + + 44 END + + + 79 + 58 * SUM( CASE - 61 WHEN - 14 THEN + 22 + - 71 ELSE + ( 67 ) END ) ELSE + NULLIF ( 55, - 76 ) + COUNT( * ) END * 14 col1
----
-966
784

skipif mysql # not compatible
query II rowsort label-2423
SELECT ALL - COUNT ( * ) * + - 21 * + - 46, CASE - 32 WHEN - 80 * - 93 THEN 20 WHEN - COUNT ( * ) THEN + + 3 / + + ( + + 17 ) - - + ( - 47 ) + - CASE NULLIF ( + + ( - 78 ), + + 13 + + - 66 + 96 + 44 + - + COUNT ( * ) + + 72 * 3 ) WHEN + 9 + 55 + + 40 * - 81 * MIN ( - - 14 ) * - 19 * - + 82 THEN - 42 * - + 74 * + + 44 END + + + 79 + 58 * SUM ( CASE - 61 WHEN - 14 THEN + 22 + - 71 ELSE + ( 67 ) END ) ELSE + NULLIF ( 55, - 76 ) + COUNT ( * ) END * 14 col1
----
-966
784

onlyif mysql # DIV for integer division: 
query I rowsort label-2424
SELECT 35 DIV - ( - + 19 )
----
1

skipif mysql # not compatible
query I rowsort label-2424
SELECT 35 / - ( - + 19 )
----
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2426
SELECT ALL - - 14 + + 81 DIV + - ( COUNT( * ) )
----
-67

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL - - 14 + + 81 / + - ( COUNT ( * ) )
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2427
SELECT 99 + 92 DIV + COUNT( * ) col1
----
191

skipif mysql # not compatible
query I rowsort label-2427
SELECT 99 + 92 / + COUNT ( * ) col1
----
191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2428
SELECT + COUNT( * ) + + 87 - + - 73 DIV + - CAST( 1 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-2428
SELECT + COUNT ( * ) + + 87 - + - 73 / + - CAST ( 1 AS INTEGER )
----
15

query I rowsort
SELECT 88 * + - 60 - - - 51 + + 74
----
-5257

onlyif mysql # DIV for integer division: 
query II rowsort label-2430
SELECT ALL 55 DIV 85 * - 71 col0, 92
----
0
92

skipif mysql # not compatible
query II rowsort label-2430
SELECT ALL 55 / 85 * - 71 col0, 92
----
0
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2431
SELECT ALL - CASE 12 WHEN + 39 * ( + + ( CASE + - 15 WHEN + + ( + 22 ) THEN - 92 * ( + COUNT( * ) ) WHEN - 91 / 91 THEN NULL ELSE + 18 + ( - ( 6 ) ) + + 89 + - 76 END ) ) * - CAST( 86 AS DECIMAL ) THEN + 83 + + ( + + 15 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL - CASE 12 WHEN + 39 * ( + + ( CASE + - 15 WHEN + + ( + 22 ) THEN - 92 * ( + COUNT ( * ) ) WHEN - 91 / 91 THEN NULL ELSE + 18 + ( - ( 6 ) ) + + 89 + - 76 END ) ) * - CAST ( 86 AS REAL ) THEN + 83 + + ( + + 15 ) END
----
NULL

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

query I rowsort
SELECT ALL - 32 * - 52
----
1664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2434
SELECT DISTINCT 87 * - 65 + + 82 * + - CASE - CAST( + 88 AS SIGNED ) WHEN - COUNT( * ) + - + 11 THEN 1 / + 44 ELSE NULL END AS col2, - 55 AS col1
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-2434
SELECT DISTINCT 87 * - 65 + + 82 * + - CASE - CAST ( + 88 AS INTEGER ) WHEN - COUNT ( * ) + - + 11 THEN 1 / + 44 ELSE NULL END AS col2, - 55 AS col1
----
NULL
-55

query I rowsort
SELECT DISTINCT 1 - + 39 * - 62 * - - 27
----
65287

query I rowsort
SELECT ALL 44 * - + 71
----
-3124

query I rowsort
SELECT 47 + - 10 + + + 43
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT COUNT( DISTINCT + ( - ( 99 ) ) ) * + 63 * - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-2438
SELECT COUNT ( DISTINCT + ( - ( 99 ) ) ) * + 63 * - COUNT ( * )
----
-63

query I rowsort
SELECT - 28 + 81
----
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2440
SELECT CAST( 93 AS SIGNED ) DIV ( + 70 )
----
1

skipif mysql # not compatible
query I rowsort label-2440
SELECT CAST ( 93 AS INTEGER ) / ( + 70 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2441
SELECT CAST( - 13 AS SIGNED ) + + 12 + - + 62
----
-63

skipif mysql # not compatible
query I rowsort label-2441
SELECT CAST ( - 13 AS INTEGER ) + + 12 + - + 62
----
-63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT SUM( ALL 10 ) + - MIN( ALL + - COALESCE ( ( - 27 ), - 35 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-2443
SELECT SUM ( ALL 10 ) + - MIN ( ALL + - COALESCE ( ( - 27 ), - 35 ) )
----
-17

query I rowsort
SELECT DISTINCT 87 + 32
----
119

query I rowsort
SELECT 10 * - - 24 AS col0
----
240

query I rowsort
SELECT DISTINCT 63 + + 30 * - 66 AS col2
----
-1917

query I rowsort
SELECT 23 * + 74
----
1702

query I rowsort
SELECT 29 + + 58 AS col0
----
87

query I rowsort
SELECT 0 * + 19 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2450
SELECT ( + 36 ) DIV + 26 AS col1, + 66 * - + 57 + + COUNT( * ) AS col1
----
1
-3761

skipif mysql # not compatible
query II rowsort label-2450
SELECT ( + 36 ) / + 26 AS col1, + 66 * - + 57 + + COUNT ( * ) AS col1
----
1
-3761

query II rowsort
SELECT - 63 * 43 + + 54 AS col1, + CASE 33 WHEN + 56 / 55 THEN - 34 * + 9 * + AVG ( + 45 ) END
----
-2655
NULL

query II rowsort
SELECT + 66, - 34 + - 34 AS col1
----
66
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2453
SELECT ALL 62 + + COALESCE ( + CAST( 45 AS SIGNED ), + 43 * 99, COUNT( * ) * COUNT( * ) DIV + 43 + + 40 + + 6 ) * 52 DIV + 78
----
92

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL 62 + + COALESCE ( + CAST ( 45 AS INTEGER ), + 43 * 99, COUNT ( * ) * COUNT ( * ) / + 43 + + 40 + + 6 ) * 52 / + 78
----
92

query I rowsort
SELECT ALL 79 * - 68 * - + 63 AS col0
----
338436

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT ALL + COUNT( 52 ) + 62 * + 40
----
2481

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL + COUNT ( 52 ) + 62 * + 40
----
2481

query I rowsort
SELECT DISTINCT - 3 + - 98
----
-101

query I rowsort
SELECT ALL - ( 21 ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-2458
SELECT 35 + + 51 - + 58 AS col2, - 73 + + COUNT( * )
----
28
-72

skipif mysql # not compatible
query II rowsort label-2458
SELECT 35 + + 51 - + 58 AS col2, - 73 + + COUNT ( * )
----
28
-72

query I rowsort
SELECT ALL + 58 + - + 98 AS col2
----
-40

query I rowsort
SELECT 18 - + 5
----
13

query I rowsort
SELECT - CASE + 53 WHEN - + 59 THEN - 37 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2463
SELECT - 0 + - 26 * + 48 * - + COALESCE ( 96, ( 62 ) + 92 ) AS col2, ( COUNT( * ) ) AS col2
----
119808
1

skipif mysql # not compatible
query II rowsort label-2463
SELECT - 0 + - 26 * + 48 * - + COALESCE ( 96, ( 62 ) + 92 ) AS col2, ( COUNT ( * ) ) AS col2
----
119808
1

query I rowsort
SELECT DISTINCT - 94 * - 70
----
6580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2465
SELECT DISTINCT + 83 / - - 21 - + COALESCE ( ( - COALESCE ( 45, - COUNT( DISTINCT 42 ) + - 72 ) ), 57, - 3, + - NULLIF ( 60, 59 / - 6 * - + 21 ) ) + - 17 + + + 49 * - 68 * - ( - 45 ) - - + AVG ( DISTINCT + 38 ) * - + 33 + COALESCE ( COALESCE ( 0, + + 11 ), - 38, + 26 ) * - - COUNT( * ) * MAX( ALL 7 ) * 2 + + - 53 + + CAST( NULL AS SIGNED ) * + 25 / - - 71 * - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT + 83 / - - 21 - + COALESCE ( ( - COALESCE ( 45, - COUNT ( DISTINCT 42 ) + - 72 ) ), 57, - 3, + - NULLIF ( 60, 59 / - 6 * - + 21 ) ) + - 17 + + + 49 * - 68 * - ( - 45 ) - - + AVG ( DISTINCT + 38 ) * - + 33 + COALESCE ( COALESCE ( 0, + + 11 ), - 38, + 26 ) * - - COUNT ( * ) * MAX ( ALL 7 ) * 2 + + - 53 + + CAST ( NULL AS INTEGER ) * + 25 / - - 71 * - 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT ALL + COUNT( + 2 ) - ( 63 ) - 87
----
-149

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL + COUNT ( + 2 ) - ( 63 ) - 87
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT NULLIF ( + - 86, + - COUNT( DISTINCT - 75 ) ) * 79 * - 33 * 13
----
2914626

skipif mysql # not compatible
query I rowsort label-2467
SELECT NULLIF ( + - 86, + - COUNT ( DISTINCT - 75 ) ) * 79 * - 33 * 13
----
2914626

query I rowsort
SELECT ALL + - ( - 98 ) * + - 69 col1
----
-6762

query I rowsort
SELECT + COALESCE ( + 42, + 9, + ( - 60 ) ) - + 96 * + 3 AS col1
----
-246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2470
SELECT 85 * - 73 DIV + COUNT( * ) + - COALESCE ( + ( 95 ), - 42 * 52, + COUNT( * ) ) AS col2
----
-6300

skipif mysql # not compatible
query I rowsort label-2470
SELECT 85 * - 73 / + COUNT ( * ) + - COALESCE ( + ( 95 ), - 42 * 52, + COUNT ( * ) ) AS col2
----
-6300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2471
SELECT - 59 * CAST( - 80 AS SIGNED ) col2
----
4720

skipif mysql # not compatible
query I rowsort label-2471
SELECT - 59 * CAST ( - 80 AS INTEGER ) col2
----
4720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2472
SELECT - 3 * - CAST( - + ( + 57 ) AS SIGNED ) + 19 * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2472
SELECT - 3 * - CAST ( - + ( + 57 ) AS INTEGER ) + 19 * - CAST ( NULL AS INTEGER ) col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT - SUM( - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-2474
SELECT - SUM ( - 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT ( 33 ) + - COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-2475
SELECT ( 33 ) + - COUNT ( * ) AS col0
----
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT + 25 * 57 * 23 + + MAX( ALL 9 ) AS col0
----
32784

skipif mysql # not compatible
query I rowsort label-2477
SELECT + 25 * 57 * 23 + + MAX ( ALL 9 ) AS col0
----
32784

query I rowsort
SELECT + 95 + 82
----
177

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2479
SELECT CASE - - 7 WHEN - 88 * - COUNT( * ) THEN + + 10 WHEN + - COUNT( * ) THEN NULL END * - CAST( NULL AS DECIMAL ) * + + 30 col0, - 20 AS col2
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-2479
SELECT CASE - - 7 WHEN - 88 * - COUNT ( * ) THEN + + 10 WHEN + - COUNT ( * ) THEN NULL END * - CAST ( NULL AS REAL ) * + + 30 col0, - 20 AS col2
----
NULL
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2480
SELECT - NULLIF ( - ( + 2 ), + CAST( 95 AS DECIMAL ) )
----
2

skipif mysql # not compatible
query I rowsort label-2480
SELECT - NULLIF ( - ( + 2 ), + CAST ( 95 AS REAL ) )
----
2

query II rowsort
SELECT ALL 34 + - 57 AS col1, 99
----
-23
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2482
SELECT 4 * + 88 DIV + 82
----
4

skipif mysql # not compatible
query I rowsort label-2482
SELECT 4 * + 88 / + 82
----
4

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

query I rowsort
SELECT ALL COALESCE ( ( + - ( + 31 ) ), - 78 ) + - 26 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT 94 + - COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-2485
SELECT 94 + - COUNT ( * ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2486
SELECT ALL COUNT( * ) * SUM( + 62 ) * - 49 AS col2, - 76 * - 85 + COUNT( * )
----
-3038
6461

skipif mysql # not compatible
query II rowsort label-2486
SELECT ALL COUNT ( * ) * SUM ( + 62 ) * - 49 AS col2, - 76 * - 85 + COUNT ( * )
----
-3038
6461

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT 25 * + COUNT( * ) + + 67
----
92

skipif mysql # not compatible
query I rowsort label-2487
SELECT 25 * + COUNT ( * ) + + 67
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT ALL + 36 * + MAX( - - 82 ) + 70 - 86 AS col2
----
2936

skipif mysql # not compatible
query I rowsort label-2488
SELECT ALL + 36 * + MAX ( - - 82 ) + 70 - 86 AS col2
----
2936

query I rowsort
SELECT COALESCE ( - + 49, - 51 ) * + 64
----
-3136

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

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

query I rowsort
SELECT + 26 + 50 AS col0
----
76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT 62 * 64 + - MIN( ALL - 49 ) - - + 67
----
4084

skipif mysql # not compatible
query I rowsort label-2493
SELECT 62 * 64 + - MIN ( ALL - 49 ) - - + 67
----
4084

query I rowsort
SELECT ALL - 9 * + 42 - - 44 AS col1
----
-334

onlyif mysql # DIV for integer division: 
query I rowsort label-2495
SELECT 89 DIV - 95 + - + 73
----
-73

skipif mysql # not compatible
query I rowsort label-2495
SELECT 89 / - 95 + - + 73
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT + 90 + + + COUNT( * ) + + 49
----
140

skipif mysql # not compatible
query I rowsort label-2496
SELECT + 90 + + + COUNT ( * ) + + 49
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2497
SELECT ALL + 56 * + CASE CAST( NULL AS SIGNED ) WHEN - 95 THEN - - 10 / - - 41 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL + 56 * + CASE CAST ( NULL AS INTEGER ) WHEN - 95 THEN - - 10 / - - 41 END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2498
SELECT + 80 * - MAX( DISTINCT - 18 ) * 65 * 11 - 6 - ( CAST( NULL AS SIGNED ) ) * 76 - 57 + + 82 + + 46 + + MAX( - 21 ) + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2498
SELECT + 80 * - MAX ( DISTINCT - 18 ) * 65 * 11 - 6 - ( CAST ( NULL AS INTEGER ) ) * 76 - 57 + + 82 + + 46 + + MAX ( - 21 ) + 90
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2499
SELECT CAST( - 78 AS SIGNED ) * + - 19 + + + 89 + + 58 * - 67 AS col0
----
-2315

skipif mysql # not compatible
query I rowsort label-2499
SELECT CAST ( - 78 AS INTEGER ) * + - 19 + + + 89 + + 58 * - 67 AS col0
----
-2315

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT ALL 46 * - 56 * + + COUNT( * ) - - 59 + 93 AS col1
----
-2424

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL 46 * - 56 * + + COUNT ( * ) - - 59 + 93 AS col1
----
-2424

query I rowsort
SELECT DISTINCT 81 * - 77 AS col1
----
-6237

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2503
SELECT - 21 + + 93 AS col0, + ( COUNT( * ) ) DIV - 19 - - + 65
----
72
65

skipif mysql # not compatible
query II rowsort label-2503
SELECT - 21 + + 93 AS col0, + ( COUNT ( * ) ) / - 19 - - + 65
----
72
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT - 34 + + COUNT( 24 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-2504
SELECT - 34 + + COUNT ( 24 ) AS col1
----
-33

query I rowsort
SELECT + COALESCE ( + - 75, - - 76 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT + + ( + ( - 78 ) ) + - 11 + - MAX( - - 66 ) AS col0
----
-155

skipif mysql # not compatible
query I rowsort label-2506
SELECT + + ( + ( - 78 ) ) + - 11 + - MAX ( - - 66 ) AS col0
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT - + 60 * - 71 * + ( - SUM( DISTINCT - 83 ) )
----
353580

skipif mysql # not compatible
query I rowsort label-2507
SELECT - + 60 * - 71 * + ( - SUM ( DISTINCT - 83 ) )
----
353580

query I rowsort
SELECT ALL COALESCE ( - 58, - 40 * + NULLIF ( + 36, + - 75 ) )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT + NULLIF ( - - 2, + 26 * + COUNT( * ) * 70 * + 12 ) col2
----
2

skipif mysql # not compatible
query I rowsort label-2509
SELECT + NULLIF ( - - 2, + 26 * + COUNT ( * ) * 70 * + 12 ) col2
----
2

query I rowsort
SELECT ALL + NULLIF ( 45, - + 74 / + - 47 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT - + COUNT( * ) + - + ( - 6 ) col0
----
5

skipif mysql # not compatible
query I rowsort label-2511
SELECT - + COUNT ( * ) + - + ( - 6 ) col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT ALL + 88 + + 26 * + NULLIF ( + + 64, - + MIN( ALL 58 ) ) + - - 63 - - - 84
----
1731

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL + 88 + + 26 * + NULLIF ( + + 64, - + MIN ( ALL 58 ) ) + - - 63 - - - 84
----
1731

query I rowsort
SELECT - - 83 + 4 AS col1
----
87

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

skipif mysql # not compatible
query I rowsort label-2514
SELECT DISTINCT + + 25 / - - COUNT ( * ) AS col0
----
25

query I rowsort
SELECT ALL - 39 + 55 + + 47 * - 60
----
-2804

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT ALL + 19 + + 54 + 75 - - - 68 * - COUNT( ALL + 60 ) AS col1
----
216

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL + 19 + + 54 + 75 - - - 68 * - COUNT ( ALL + 60 ) AS col1
----
216

query I rowsort
SELECT - 16 + + - 37 * + - 20
----
724

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT DISTINCT + COUNT( * ) + - - 76 - + + 3 * + + ( 54 ) + + + 2 * + 41
----
-3

skipif mysql # not compatible
query I rowsort label-2518
SELECT DISTINCT + COUNT ( * ) + - - 76 - + + 3 * + + ( 54 ) + + + 2 * + 41
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2519
SELECT + COUNT( * ) + + COUNT( * ) + + 95 col0, - MAX( DISTINCT + + 87 )
----
97
-87

skipif mysql # not compatible
query II rowsort label-2519
SELECT + COUNT ( * ) + + COUNT ( * ) + + 95 col0, - MAX ( DISTINCT + + 87 )
----
97
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT - NULLIF ( - 28, + ( - SUM( DISTINCT - + 21 ) ) )
----
28

skipif mysql # not compatible
query I rowsort label-2520
SELECT - NULLIF ( - 28, + ( - SUM ( DISTINCT - + 21 ) ) )
----
28

query I rowsort
SELECT - 80 * - - 63 * - ( 47 ) AS col1
----
236880

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT ALL MAX( + 57 ) + + 91 + - 41 * - COUNT( * )
----
189

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL MAX ( + 57 ) + + 91 + - 41 * - COUNT ( * )
----
189

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

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL 68 + - + COUNT ( ALL 35 ) AS col0
----
67

query I rowsort
SELECT - 74 + 70 AS col2
----
-4

query I rowsort
SELECT DISTINCT - ( - + 56 ) + - 5
----
51

query I rowsort
SELECT ALL ( - 18 ) * + ( + 91 )
----
-1638

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

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

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

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

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

query II rowsort
SELECT ALL + 93 AS col0, + 91
----
93
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2532
SELECT ( + - 49 ) * - 2 + + SUM( - 85 ) * - NULLIF ( - 78, 61 ) AS col1, - 77 * - + CAST( CAST( 23 AS SIGNED ) AS SIGNED ) * - + 73 - + 88 * - 91 * - 37 - + 12 AS col0
----
-6532
-425591

skipif mysql # not compatible
query II rowsort label-2532
SELECT ( + - 49 ) * - 2 + + SUM ( - 85 ) * - NULLIF ( - 78, 61 ) AS col1, - 77 * - + CAST ( CAST ( 23 AS INTEGER ) AS INTEGER ) * - + 73 - + 88 * - 91 * - 37 - + 12 AS col0
----
-6532
-425591

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT + NULLIF ( + + 97, NULLIF ( ( + 87 ), + SUM( DISTINCT - - 31 ) ) )
----
97

skipif mysql # not compatible
query I rowsort label-2533
SELECT + NULLIF ( + + 97, NULLIF ( ( + 87 ), + SUM ( DISTINCT - - 31 ) ) )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2534
SELECT ALL COALESCE ( MIN( ALL + 39 ), 52 ) DIV - 67 + - 90 - - - CASE + 98 WHEN - - 20 THEN - 78 ELSE + + 97 DIV + 49 - COUNT( * ) * + 31 END
----
-60

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL COALESCE ( MIN ( ALL + 39 ), 52 ) / - 67 + - 90 - - - CASE + 98 WHEN - - 20 THEN - 78 ELSE + + 97 / + 49 - COUNT ( * ) * + 31 END
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT + MAX( - ( + 81 ) ) * - + 48 col1
----
3888

skipif mysql # not compatible
query I rowsort label-2535
SELECT + MAX ( - ( + 81 ) ) * - + 48 col1
----
3888

query I rowsort
SELECT ALL + 99 * - + 48 AS col0
----
-4752

query I rowsort
SELECT ALL + - NULLIF ( - + 9, - 70 ) AS col1
----
9

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

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

query I rowsort
SELECT DISTINCT + - 69 * + - NULLIF ( 12, - 17 )
----
828

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2540
SELECT DISTINCT CAST( - 7 AS SIGNED ) DIV 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2540
SELECT DISTINCT CAST ( - 7 AS INTEGER ) / 67 AS col2
----
0

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

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

query I rowsort
SELECT + ( 19 ) * + - ( + + 58 ) * - - 95 + + 17 AS col2
----
-104673

query I rowsort
SELECT + 31 * + 46 - - 38 AS col1
----
1464

query II rowsort
SELECT + 95 AS col0, - 30
----
95
-30

query I rowsort
SELECT + 94 * 53 AS col0
----
4982

onlyif mysql # aggregate syntax: 
query II rowsort label-2546
SELECT DISTINCT MIN( + 66 ) * - COUNT( * ) + - 87 * - 17 AS col1, 66 - + 36 - - 98 AS col0
----
1413
128

skipif mysql # not compatible
query II rowsort label-2546
SELECT DISTINCT MIN ( + 66 ) * - COUNT ( * ) + - 87 * - 17 AS col1, 66 - + 36 - - 98 AS col0
----
1413
128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ALL + - 49 * + - COUNT( * ) + + 63
----
112

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL + - 49 * + - COUNT ( * ) + + 63
----
112

query I rowsort
SELECT + + 37 * 22 * - 26 AS col2
----
-21164

query I rowsort
SELECT DISTINCT 97 * + 7 + - 56 - 22 * + 67 * - 30 * + - ( + 23 )
----
-1016437

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT DISTINCT + - ( + + 93 ) * + - COALESCE ( + COALESCE ( - 19, + 14 ), + - 6 * 6 + 14 + - 41 + - 90, + MIN( DISTINCT + 59 ) ) + MAX( + 13 ) AS col1
----
-1754

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT + - ( + + 93 ) * + - COALESCE ( + COALESCE ( - 19, + 14 ), + - 6 * 6 + 14 + - 41 + - 90, + MIN ( DISTINCT + 59 ) ) + MAX ( + 13 ) AS col1
----
-1754

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT MAX( DISTINCT NULLIF ( + - 11, + 32 ) ) col2
----
-11

skipif mysql # not compatible
query I rowsort label-2553
SELECT MAX ( DISTINCT NULLIF ( + - 11, + 32 ) ) col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2554
SELECT - MAX( - + 6 ) * - ( - CAST( - + 98 AS SIGNED ) ) + - 99
----
-687

skipif mysql # not compatible
query I rowsort label-2554
SELECT - MAX ( - + 6 ) * - ( - CAST ( - + 98 AS INTEGER ) ) + - 99
----
-687

query I rowsort
SELECT ALL + ( 83 ) + + 30
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT ALL NULLIF ( - COALESCE ( - 49, - + COALESCE ( + 4, + 45 ), + SUM( 41 ) ), + 95 * 3 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL NULLIF ( - COALESCE ( - 49, - + COALESCE ( + 4, + 45 ), + SUM ( 41 ) ), + 95 * 3 ) AS col1
----
49

query II rowsort
SELECT - 51, + 76 AS col0
----
-51
76

query I rowsort
SELECT 22 * + 23
----
506

onlyif mysql # DIV for integer division: 
query I rowsort label-2559
SELECT 29 DIV - 45 * 58 col2
----
0

skipif mysql # not compatible
query I rowsort label-2559
SELECT 29 / - 45 * 58 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT ALL - COUNT( + 89 ) - + ( + 11 )
----
-12

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL - COUNT ( + 89 ) - + ( + 11 )
----
-12

query I rowsort
SELECT ALL + 25 - - + 21 + - 40 AS col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2562
SELECT 9 + - + NULLIF ( - - CAST( + 71 AS SIGNED ), - 62 ) * + 51
----
-3612

skipif mysql # not compatible
query I rowsort label-2562
SELECT 9 + - + NULLIF ( - - CAST ( + 71 AS INTEGER ), - 62 ) * + 51
----
-3612

query I rowsort
SELECT 19 + 56 AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2564
SELECT 54 DIV COUNT( * ) * + 61
----
3294

skipif mysql # not compatible
query I rowsort label-2564
SELECT 54 / COUNT ( * ) * + 61
----
3294

onlyif mysql # aggregate syntax: 
query II rowsort label-2565
SELECT ALL 70 col0, 82 + - 9 + + - COUNT( * ) AS col2
----
70
72

skipif mysql # not compatible
query II rowsort label-2565
SELECT ALL 70 col0, 82 + - 9 + + - COUNT ( * ) AS col2
----
70
72

query I rowsort
SELECT 99 * - NULLIF ( - - 41, - + ( + 86 ) / - 37 + - - 57 ) + - - 3 * + 64 * - 41
----
-11931

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT + 75 / - COUNT( * ) * + CASE + 55 WHEN + - 21 THEN + - 51 WHEN - 4 THEN - 68 END - + + 22 * - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2567
SELECT + 75 / - COUNT ( * ) * + CASE + 55 WHEN + - 21 THEN + - 51 WHEN - 4 THEN - 68 END - + + 22 * - 41 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - CASE - 18 WHEN - - 73 THEN - - 75 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2569
SELECT ALL - + 72, 55 * - MAX( ALL - 46 ) AS col1
----
-72
2530

skipif mysql # not compatible
query II rowsort label-2569
SELECT ALL - + 72, 55 * - MAX ( ALL - 46 ) AS col1
----
-72
2530

query II rowsort
SELECT ALL - - 95, + 63 + - 46 AS col0
----
95
17

query I rowsort
SELECT + 78 * 10
----
780

query I rowsort
SELECT + NULLIF ( 42, - + 50 ) * + 21
----
882

query I rowsort
SELECT DISTINCT + 22 + - 71 + + 40 * - - 84 * 65
----
218351

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2574
SELECT ALL - + 22 col0, CAST( + - 30 AS SIGNED ) + 40 AS col1
----
-22
10

skipif mysql # not compatible
query II rowsort label-2574
SELECT ALL - + 22 col0, CAST ( + - 30 AS INTEGER ) + 40 AS col1
----
-22
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT ALL + SUM( DISTINCT + 69 ) + + ( 32 ) AS col2
----
101

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL + SUM ( DISTINCT + 69 ) + + ( 32 ) AS col2
----
101

query I rowsort
SELECT - 14 * + 34 AS col0
----
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT DISTINCT + COUNT( * ) + 82
----
83

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT + COUNT ( * ) + 82
----
83

query I rowsort
SELECT ALL + 28 + - + 62 col0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2580
SELECT + 97 AS col2, + CAST( + COUNT( * ) AS SIGNED ) DIV - + 35 * - 91
----
97
0

skipif mysql # not compatible
query II rowsort label-2580
SELECT + 97 AS col2, + CAST ( + COUNT ( * ) AS INTEGER ) / - + 35 * - 91
----
97
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2581
SELECT ALL 11 + + 7, + COALESCE ( + - 53, + + ( - 68 ) * + COUNT( * ) * - 9 ) * 56 col0
----
18
-2968

skipif mysql # not compatible
query II rowsort label-2581
SELECT ALL 11 + + 7, + COALESCE ( + - 53, + + ( - 68 ) * + COUNT ( * ) * - 9 ) * 56 col0
----
18
-2968

query II rowsort
SELECT - - 32 AS col1, + 80 * - 32
----
32
-2560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2583
SELECT - + 75 AS col0, - 8 - + + CAST( 0 AS SIGNED ) * + 25
----
-75
-8

skipif mysql # not compatible
query II rowsort label-2583
SELECT - + 75 AS col0, - 8 - + + CAST ( 0 AS INTEGER ) * + 25
----
-75
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2584
SELECT + + 87 * + ( 10 ) - - 47 * - 29 + - + 76 + - 15 * + 34 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2584
SELECT + + 87 * + ( 10 ) - - 47 * - 29 + - + 76 + - 15 * + 34 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT DISTINCT NULLIF ( + NULLIF ( 90, + + 89 ), - COUNT( * ) ) + COUNT( + ( + 53 ) ) * + 28 * + 18 * - 11 AS col2
----
-5454

skipif mysql # not compatible
query I rowsort label-2585
SELECT DISTINCT NULLIF ( + NULLIF ( 90, + + 89 ), - COUNT ( * ) ) + COUNT ( + ( + 53 ) ) * + 28 * + 18 * - 11 AS col2
----
-5454

onlyif mysql # aggregate syntax: 
query II rowsort label-2586
SELECT 3 + - - ( + - 92 ) AS col1, + 21 * 63 * + COUNT( * ) AS col1
----
-89
1323

skipif mysql # not compatible
query II rowsort label-2586
SELECT 3 + - - ( + - 92 ) AS col1, + 21 * 63 * + COUNT ( * ) AS col1
----
-89
1323

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2587
SELECT ALL MIN( DISTINCT 27 ) - 7 DIV + 65
----
27

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL MIN ( DISTINCT 27 ) - 7 / + 65
----
27

query II rowsort
SELECT ALL ( + 27 ) * - + 3 AS col1, + NULLIF ( 3, + 95 * 69 + - 43 )
----
-81
3

query I rowsort
SELECT DISTINCT 22 - - - 29 * + + 13
----
-355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT COALESCE ( + 20, - NULLIF ( - - 60, + 11 + + ( - 6 ) ) + - 13, - + CAST( NULL AS SIGNED ) ) + + COALESCE ( + 25, - 53 ) * + 64
----
1620

skipif mysql # not compatible
query I rowsort label-2590
SELECT COALESCE ( + 20, - NULLIF ( - - 60, + 11 + + ( - 6 ) ) + - 13, - + CAST ( NULL AS INTEGER ) ) + + COALESCE ( + 25, - 53 ) * + 64
----
1620

onlyif mysql # aggregate syntax: 
query II rowsort label-2591
SELECT ALL MIN( - 63 ) - + - 10 + MIN( ALL - 12 ) AS col2, - 94
----
-65
-94

skipif mysql # not compatible
query II rowsort label-2591
SELECT ALL MIN ( - 63 ) - + - 10 + MIN ( ALL - 12 ) AS col2, - 94
----
-65
-94

query III rowsort
SELECT ALL 16 * 36 col2, + 88 AS col2, + 76 * + - 88 + - 79
----
576
88
-6767

onlyif mysql # aggregate syntax: 
query II rowsort label-2593
SELECT 38 + 96, + 95 + COUNT( * ) AS col2
----
134
96

skipif mysql # not compatible
query II rowsort label-2593
SELECT 38 + 96, + 95 + COUNT ( * ) AS col2
----
134
96

query I rowsort
SELECT 9 * - ( - 7 )
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-2595
SELECT 48 + 99, COUNT( - 5 ) col1
----
147
1

skipif mysql # not compatible
query II rowsort label-2595
SELECT 48 + 99, COUNT ( - 5 ) col1
----
147
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT 54 + + SUM( - 69 ) + - 35 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-2596
SELECT 54 + + SUM ( - 69 ) + - 35 AS col2
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2597
SELECT 64 + + 23 + + 11 + + 17 DIV 78 DIV - MIN( ALL + + 19 ) * 67 + COUNT( 14 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-2597
SELECT 64 + + 23 + + 11 + + 17 / 78 / - MIN ( ALL + + 19 ) * 67 + COUNT ( 14 ) AS col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2598
SELECT DISTINCT - 40 * - - CAST( - - AVG ( DISTINCT 34 ) AS SIGNED )
----
-1360

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT - 40 * - - CAST ( - - AVG ( DISTINCT 34 ) AS INTEGER )
----
-1360

query I rowsort
SELECT 47 * - 97
----
-4559

onlyif mysql # DIV for integer division: 
query I rowsort label-2600
SELECT DISTINCT - 22 * ( + - 77 ) DIV 71 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT - 22 * ( + - 77 ) / 71 AS col1
----
23

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2601
SELECT DISTINCT - 13 * - + 29 * - CAST( CAST( 70 AS DECIMAL ) AS SIGNED ) * - 56 + + 81 AS col2
----
1477921

skipif mysql # not compatible
query I rowsort label-2601
SELECT DISTINCT - 13 * - + 29 * - CAST ( CAST ( 70 AS REAL ) AS INTEGER ) * - 56 + + 81 AS col2
----
1477921

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2603
SELECT + 96 DIV - 44 AS col1, + 56 + + 32
----
-2
88

skipif mysql # not compatible
query II rowsort label-2603
SELECT + 96 / - 44 AS col1, + 56 + + 32
----
-2
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT DISTINCT - COUNT( * ) * 62
----
-62

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT - COUNT ( * ) * 62
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2605
SELECT - CASE + 39 WHEN - 86 * - 92 THEN 11 WHEN + 47 / + 42 + + 18 THEN NULL ELSE + NULLIF ( + MAX( + CAST( NULL AS SIGNED ) ), - 56 ) * + NULLIF ( 65, 99 * - COUNT( * ) - 79 ) * - - 14 END AS col0, + 25
----
NULL
25

skipif mysql # not compatible
query II rowsort label-2605
SELECT - CASE + 39 WHEN - 86 * - 92 THEN 11 WHEN + 47 / + 42 + + 18 THEN NULL ELSE + NULLIF ( + MAX ( + CAST ( NULL AS INTEGER ) ), - 56 ) * + NULLIF ( 65, 99 * - COUNT ( * ) - 79 ) * - - 14 END AS col0, + 25
----
NULL
25

query I rowsort
SELECT 73 * 9 + - - 86 AS col0
----
743

onlyif mysql # DIV for integer division: 
query II rowsort label-2607
SELECT 26 DIV - 93 AS col1, 97 * - - 31 AS col2
----
0
3007

skipif mysql # not compatible
query II rowsort label-2607
SELECT 26 / - 93 AS col1, 97 * - - 31 AS col2
----
0
3007

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL - NULLIF ( + COUNT( 37 ), 92 ) * + 62 + + - 33 + 63 + - 20 + + + 59 * - 16
----
-996

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL - NULLIF ( + COUNT ( 37 ), 92 ) * + 62 + + - 33 + 63 + - 20 + + + 59 * - 16
----
-996

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2609
SELECT DISTINCT + - 85 DIV + - ( - - 96 ) col2, AVG ( DISTINCT CAST( NULL AS SIGNED ) )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2609
SELECT DISTINCT + - 85 / + - ( - - 96 ) col2, AVG ( DISTINCT CAST ( NULL AS INTEGER ) )
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2610
SELECT ALL 22 * 34 DIV - - ( + 30 ) + + + NULLIF ( 4, - 17 ) + + - 12 * + + 30 + + - 94 col2
----
-426

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL 22 * 34 / - - ( + 30 ) + + + NULLIF ( 4, - 17 ) + + - 12 * + + 30 + + - 94 col2
----
-426

query II rowsort
SELECT DISTINCT - 65 + + 28 AS col0, 42 AS col2
----
-37
42

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

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL COUNT ( * ) * - 7 * COUNT ( DISTINCT - 22 ) AS col2
----
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2613
SELECT 6 + - + CAST( NULL AS DECIMAL ) / + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT 6 + - + CAST ( NULL AS REAL ) / + 67
----
NULL

query I rowsort
SELECT 21 * 75 + - - 84 - 15 + - 91
----
1553

query I rowsort
SELECT ALL - + 80 + + + ( + + 96 ) col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT 77 * - + 83 + COUNT( * ) - - 99 * - - 43
----
-2133

skipif mysql # not compatible
query I rowsort label-2616
SELECT 77 * - + 83 + COUNT ( * ) - - 99 * - - 43
----
-2133

query I rowsort
SELECT - NULLIF ( + - 64, 50 * - - 59 * + + 11 / ( + 61 ) )
----
64

query I rowsort
SELECT DISTINCT 18 - - 24 + + + 35 * - 35 AS col1
----
-1183

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2620
SELECT + + CAST( + 95 AS SIGNED ) AS col1, - 58 AS col1
----
95
-58

skipif mysql # not compatible
query II rowsort label-2620
SELECT + + CAST ( + 95 AS INTEGER ) AS col1, - 58 AS col1
----
95
-58

query I rowsort
SELECT - 58 * 68 AS col0
----
-3944

onlyif mysql # aggregate syntax: 
query II rowsort label-2622
SELECT DISTINCT CASE - 60 WHEN MIN( ALL - 4 ) + AVG ( DISTINCT + + 61 ) THEN NULL WHEN 75 THEN - 73 * + 33 + - 38 - 16 ELSE NULL END col2, + 29 + + 28 * ( + COUNT( * ) ) * - NULLIF ( + - 36, - + 51 + + 63 ) AS col1
----
NULL
1037

skipif mysql # not compatible
query II rowsort label-2622
SELECT DISTINCT CASE - 60 WHEN MIN ( ALL - 4 ) + AVG ( DISTINCT + + 61 ) THEN NULL WHEN 75 THEN - 73 * + 33 + - 38 - 16 ELSE NULL END col2, + 29 + + 28 * ( + COUNT ( * ) ) * - NULLIF ( + - 36, - + 51 + + 63 ) AS col1
----
NULL
1037

query II rowsort
SELECT DISTINCT 97 AS col2, 10 * - - 83 AS col0
----
97
830

query I rowsort
SELECT - 39 - - 88 AS col1
----
49

query I rowsort
SELECT + 92 * + - 42 AS col1
----
-3864

query I rowsort
SELECT ALL ( - COALESCE ( - 52, 19 ) ) * 45 AS col0
----
2340

query II rowsort
SELECT ALL 11, - NULLIF ( + + 67, AVG ( ALL - 55 ) + ( 53 ) ) AS col2
----
11
-67

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

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

skipif mysql # not compatible
query I rowsort label-2629
SELECT + COUNT ( * ) / + 24
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2630
SELECT ALL 69, + CASE 93 WHEN 50 * + - ( 80 ) + + 65 + 6 THEN 88 * + CAST( NULL AS SIGNED ) + - ( + COUNT( * ) ) / - CAST( NULL AS SIGNED ) WHEN + 23 / + + 32 THEN - + 63 * + + CASE + COUNT( ALL 75 ) WHEN 96 THEN + 31 ELSE NULL END END col1
----
69
NULL

skipif mysql # not compatible
query II rowsort label-2630
SELECT ALL 69, + CASE 93 WHEN 50 * + - ( 80 ) + + 65 + 6 THEN 88 * + CAST ( NULL AS INTEGER ) + - ( + COUNT ( * ) ) / - CAST ( NULL AS INTEGER ) WHEN + 23 / + + 32 THEN - + 63 * + + CASE + COUNT ( ALL 75 ) WHEN 96 THEN + 31 ELSE NULL END END col1
----
69
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT DISTINCT MAX( DISTINCT ( + - 95 ) )
----
-95

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT MAX ( DISTINCT ( + - 95 ) )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL + 88 + - + SUM( 68 ) + 47 + - 41
----
26

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL + 88 + - + SUM ( 68 ) + 47 + - 41
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT + - 82 + + MIN( ALL 40 )
----
-42

skipif mysql # not compatible
query I rowsort label-2634
SELECT + - 82 + + MIN ( ALL 40 )
----
-42

query I rowsort
SELECT + + 7 + + 57
----
64

query I rowsort
SELECT ALL 16 * 32 + 10
----
522

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

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT + COUNT ( ALL - + 18 ) AS col1
----
1

query II rowsort
SELECT ALL - 37 * - 91 + - + 65 AS col0, - 15 AS col2
----
3302
-15

query I rowsort
SELECT ALL + + 7 * - + 62
----
-434

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2641
SELECT ALL + COUNT( * ) AS col1, COUNT( * ) * + 20 DIV + ( + 40 )
----
1
0

skipif mysql # not compatible
query II rowsort label-2641
SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) * + 20 / + ( + 40 )
----
1
0

query I rowsort
SELECT ALL + - 32 * + 1 - 62 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT + + COUNT( * ) + - ( - COALESCE ( + 69, + 3 - - + 43 ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-2643
SELECT + + COUNT ( * ) + - ( - COALESCE ( + 69, + 3 - - + 43 ) ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-2644
SELECT + 93, + 34 * - COUNT( * ) * 13 AS col2
----
93
-442

skipif mysql # not compatible
query II rowsort label-2644
SELECT + 93, + 34 * - COUNT ( * ) * 13 AS col2
----
93
-442

query I rowsort
SELECT - - 31 + 73 col2
----
104

query I rowsort
SELECT - - 25 + - NULLIF ( - + 41, - 47 )
----
66

query II rowsort
SELECT NULLIF ( - - 21, - 98 ) AS col1, - 34
----
21
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2648
SELECT ALL 49 * - - COUNT( * ) * CASE + COUNT( * ) WHEN - - 21 * - - 72 * 68 THEN NULL ELSE 78 * - 58 END * COUNT( ALL + 64 ) - NULLIF ( - 6, + 64 - AVG ( 5 ) ) DIV 16
----
-221676

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL 49 * - - COUNT ( * ) * CASE + COUNT ( * ) WHEN - - 21 * - - 72 * 68 THEN NULL ELSE 78 * - 58 END * COUNT ( ALL + 64 ) - NULLIF ( - 6, + 64 - AVG ( 5 ) ) / 16
----
-221676

onlyif mysql # DIV for integer division: 
query I rowsort label-2649
SELECT ALL + 29 DIV ( - 30 ) + + - 57 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL + 29 / ( - 30 ) + + - 57 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT ALL - COUNT( * ) * - 99 - + + 37 - 87 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL - COUNT ( * ) * - 99 - + + 37 - 87 AS col1
----
-25

query I rowsort
SELECT - 34 * - NULLIF ( + 53, 60 * 94 ) col2
----
1802

query I rowsort
SELECT DISTINCT + 11 * ( - 15 ) * - 53 AS col1
----
8745

query II rowsort
SELECT - 10 + + + 42 AS col2, - 45 + 46 + + NULLIF ( - 92, - + 26 )
----
32
-91

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

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

query I rowsort
SELECT - 98 * 72 AS col1
----
-7056

query I rowsort
SELECT - 16 + - 69 + + 0
----
-85

query I rowsort
SELECT DISTINCT - 57 * 26
----
-1482

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT 67 * 95 + - + 25 + - - COUNT( * ) + - - COUNT( * ) + + - 21 + - ( - 76 ) + + + 7 * + - 58 * + 97 * + 54
----
-2120231

skipif mysql # not compatible
query I rowsort label-2658
SELECT 67 * 95 + - + 25 + - - COUNT ( * ) + - - COUNT ( * ) + + - 21 + - ( - 76 ) + + + 7 * + - 58 * + 97 * + 54
----
-2120231

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT + 98 - - MIN( DISTINCT - 67 )
----
31

skipif mysql # not compatible
query I rowsort label-2659
SELECT + 98 - - MIN ( DISTINCT - 67 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2660
SELECT - CASE - 12 WHEN NULLIF ( - + 86, - COUNT( * ) ) * CAST( + + 17 AS SIGNED ) THEN NULL ELSE + ( + COUNT( * ) ) END
----
-1

skipif mysql # not compatible
query I rowsort label-2660
SELECT - CASE - 12 WHEN NULLIF ( - + 86, - COUNT ( * ) ) * CAST ( + + 17 AS INTEGER ) THEN NULL ELSE + ( + COUNT ( * ) ) END
----
-1

query I rowsort
SELECT ALL + 40 * + 88
----
3520

query I rowsort
SELECT ALL 56 + + 2 col0
----
58

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2665
SELECT ALL + 40 * + 18 AS col0, + COUNT( * )
----
720
1

skipif mysql # not compatible
query II rowsort label-2665
SELECT ALL + 40 * + 18 AS col0, + COUNT ( * )
----
720
1

query I rowsort
SELECT + COALESCE ( + COALESCE ( - 89, - 12 ), + 22, + 86, - 69 ) + + 95 + - + 50 col2
----
-44

query I rowsort
SELECT ALL 8 + + 7
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT - MIN( DISTINCT + + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-2668
SELECT - MIN ( DISTINCT + + 49 )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2669
SELECT + ( - COUNT( * ) ) + + 74 + 84 + - 71 * CASE - COUNT( * ) WHEN - COALESCE ( - + MIN( DISTINCT + 95 ), 84 ) THEN NULL ELSE 43 * - - NULLIF ( - + CASE - CAST( NULLIF ( - 57, + 48 + + + 62 * - 57 * 28 + + 11 + + 44 * - 43 - + + COUNT( * ) * + COALESCE ( 15, + + SUM( DISTINCT 41 ) * 36 + + ( ( + ( - 42 ) ) ) ) ) AS SIGNED ) WHEN + - 93 THEN NULL ELSE + 91 * + 62 END, NULLIF ( 81, 12 * - ( - - ( - + 47 ) ) * - - CAST( NULL AS SIGNED ) ) ) + - NULLIF ( + ( - SUM( - 90 ) ), COUNT( * ) - 54 ) END
----
17231573

skipif mysql # not compatible
query I rowsort label-2669
SELECT + ( - COUNT ( * ) ) + + 74 + 84 + - 71 * CASE - COUNT ( * ) WHEN - COALESCE ( - + MIN ( DISTINCT + 95 ), 84 ) THEN NULL ELSE 43 * - - NULLIF ( - + CASE - CAST ( NULLIF ( - 57, + 48 + + + 62 * - 57 * 28 + + 11 + + 44 * - 43 - + + COUNT ( * ) * + COALESCE ( 15, + + SUM ( DISTINCT 41 ) * 36 + + ( ( + ( - 42 ) ) ) ) ) AS INTEGER ) WHEN + - 93 THEN NULL ELSE + 91 * + 62 END, NULLIF ( 81, 12 * - ( - - ( - + 47 ) ) * - - CAST ( NULL AS INTEGER ) ) ) + - NULLIF ( + ( - SUM ( - 90 ) ), COUNT ( * ) - 54 ) END
----
17231573

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT - COUNT( * ) * - - COALESCE ( + + 26, + CASE + 23 WHEN 14 - + COUNT( - ( COALESCE ( + 22, + 54, + + 49 ) ) ) THEN CASE + COUNT( * ) WHEN - 49 * CASE + 63 WHEN - - COUNT( DISTINCT + 94 ) THEN - NULLIF ( + COUNT( * ), + COUNT( * ) / 81 + + 64 ) * + - 34 ELSE NULL END THEN + 87 END * 74 ELSE - - ( + CASE + 72 WHEN 40 / ( + + 88 ) + COUNT( * ) / + COUNT( DISTINCT + 44 ) + + - 89 THEN - COUNT( 28 ) ELSE + 51 + 33 + + - COUNT( * ) * 46 END ) END * - 26 * - ( 58 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-2670
SELECT - COUNT ( * ) * - - COALESCE ( + + 26, + CASE + 23 WHEN 14 - + COUNT ( - ( COALESCE ( + 22, + 54, + + 49 ) ) ) THEN CASE + COUNT ( * ) WHEN - 49 * CASE + 63 WHEN - - COUNT ( DISTINCT + 94 ) THEN - NULLIF ( + COUNT ( * ), + COUNT ( * ) / 81 + + 64 ) * + - 34 ELSE NULL END THEN + 87 END * 74 ELSE - - ( + CASE + 72 WHEN 40 / ( + + 88 ) + COUNT ( * ) / + COUNT ( DISTINCT + 44 ) + + - 89 THEN - COUNT ( 28 ) ELSE + 51 + 33 + + - COUNT ( * ) * 46 END ) END * - 26 * - ( 58 ) )
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-2671
SELECT ALL 14 DIV - 86 col2
----
0

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL 14 / - 86 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT + 92 + + MIN( DISTINCT - 77 )
----
15

skipif mysql # not compatible
query I rowsort label-2672
SELECT + 92 + + MIN ( DISTINCT - 77 )
----
15

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

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT - + 14 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 88 + - 51 * + 80 AS col0
----
-3992

query I rowsort
SELECT ALL NULLIF ( - - 38, + 89 * + 0 ) * - 4
----
-152

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

skipif mysql # not compatible
query I rowsort label-2676
SELECT + + COUNT ( + 96 ) / - 72 + COUNT ( * ) * 90
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2677
SELECT ALL - 84 DIV - - 60 AS col2, MIN( + 27 ) + - COUNT( ALL - + 71 )
----
-1
26

skipif mysql # not compatible
query II rowsort label-2677
SELECT ALL - 84 / - - 60 AS col2, MIN ( + 27 ) + - COUNT ( ALL - + 71 )
----
-1
26

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

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

query I rowsort
SELECT + + 10 * - + ( 20 ) AS col1
----
-200

query II rowsort
SELECT ( - 3 ) AS col2, 33 AS col2
----
-3
33

query I rowsort
SELECT + 61 * 65 AS col2
----
3965

query I rowsort
SELECT COALESCE ( - 27, + ( + 71 ), 13 ) - + NULLIF ( 41, + - 84 )
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-2683
SELECT ( + - 54 ) DIV - 47 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2683
SELECT ( + - 54 ) / - 47 AS col1
----
1

query I rowsort
SELECT 48 * 16 AS col1
----
768

query I rowsort
SELECT 44 * + + 97 + + ( 94 ) + - 24 AS col1
----
4338

onlyif mysql # aggregate syntax: 
query II rowsort label-2686
SELECT ALL - ( - MAX( ALL 42 ) ) AS col2, 12
----
42
12

skipif mysql # not compatible
query II rowsort label-2686
SELECT ALL - ( - MAX ( ALL 42 ) ) AS col2, 12
----
42
12

query I rowsort
SELECT ALL - 99 + + + 15 * - - 99
----
1386

query II rowsort
SELECT DISTINCT - 80 AS col0, + 73
----
-80
73

query II rowsort
SELECT ALL + 35 + - 98 + + + 78 + 87 * + 8 AS col2, + 39 - 13 AS col1
----
711
26

query I rowsort
SELECT DISTINCT - 81 + - 22
----
-103

query I rowsort
SELECT DISTINCT - 63 * 59 * + 91 AS col1
----
-338247

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2692
SELECT ALL + 36 + NULLIF ( - 87, ( + - 97 ) + 92 + 86 * ( - - CASE + COUNT( * ) WHEN - 22 + 14 - + CAST( NULL AS DECIMAL ) + MIN( + 55 ) / - - SUM( + 61 ) THEN + 90 / + 68 - + 29 END ) ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-2692
SELECT ALL + 36 + NULLIF ( - 87, ( + - 97 ) + 92 + 86 * ( - - CASE + COUNT ( * ) WHEN - 22 + 14 - + CAST ( NULL AS REAL ) + MIN ( + 55 ) / - - SUM ( + 61 ) THEN + 90 / + 68 - + 29 END ) ) AS col0
----
-51

query I rowsort
SELECT - 21 * + 11 - - 28
----
-203

query I rowsort
SELECT 53 - 30 AS col0
----
23

query I rowsort
SELECT ALL + 9 * 66 AS col1
----
594

query I rowsort
SELECT 63 * + - 34 AS col2
----
-2142

onlyif mysql # aggregate syntax: 
query II rowsort label-2697
SELECT COUNT( ( - 99 ) ) * + ( 38 ), + 32 AS col1
----
38
32

skipif mysql # not compatible
query II rowsort label-2697
SELECT COUNT ( ( - 99 ) ) * + ( 38 ), + 32 AS col1
----
38
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT ALL + 5 + + - MAX( ALL - 34 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL + 5 + + - MAX ( ALL - 34 ) AS col1
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2699
SELECT CAST( 10 AS SIGNED ) - + 65 AS col0, + 36 * + 1
----
-55
36

skipif mysql # not compatible
query II rowsort label-2699
SELECT CAST ( 10 AS INTEGER ) - + 65 AS col0, + 36 * + 1
----
-55
36

query II rowsort
SELECT DISTINCT + 68 AS col1, 6
----
68
6

query II rowsort
SELECT DISTINCT + 55, + ( - 93 ) AS col1
----
55
-93

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

skipif mysql # not compatible
query I rowsort label-2702
SELECT CAST ( NULL AS INTEGER ) + + 66 col2
----
NULL

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

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

query I rowsort
SELECT 60 + 4 AS col2
----
64

query I rowsort
SELECT 4 * - 54
----
-216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2706
SELECT - 22 + + ( - - 37 ) - + 53 DIV + ( - COALESCE ( ( - - 55 ), - NULLIF ( + 47, + 25 - - COUNT( * ) ) * + SUM( - 27 ) DIV - ( - - 33 ) + + 60 * 43 ) ) * - + 98 * + + 76 DIV - ( - 42 )
----
15

skipif mysql # not compatible
query I rowsort label-2706
SELECT - 22 + + ( - - 37 ) - + 53 / + ( - COALESCE ( ( - - 55 ), - NULLIF ( + 47, + 25 - - COUNT ( * ) ) * + SUM ( - 27 ) / - ( - - 33 ) + + 60 * 43 ) ) * - + 98 * + + 76 / - ( - 42 )
----
15

query I rowsort
SELECT 52 + - - 49 + + + 8 AS col2
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2708
SELECT - COUNT( * ) - + - 52 * + + COUNT( * ) + + CAST( - - 73 AS SIGNED ) AS col1
----
124

skipif mysql # not compatible
query I rowsort label-2708
SELECT - COUNT ( * ) - + - 52 * + + COUNT ( * ) + + CAST ( - - 73 AS INTEGER ) AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT MIN( ALL 76 ) * 71 col1
----
5396

skipif mysql # not compatible
query I rowsort label-2709
SELECT MIN ( ALL 76 ) * 71 col1
----
5396

onlyif mysql # DIV for integer division: 
query I rowsort label-2710
SELECT - - 27 DIV + - 36 + + 20 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-2710
SELECT - - 27 / + - 36 + + 20 AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2711
SELECT ALL - + CAST( + + 20 AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL - + CAST ( + + 20 AS INTEGER )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2712
SELECT + 65 DIV - CAST( - CASE 97 WHEN + 46 THEN NULL WHEN + + 33 * - - 19 THEN NULL ELSE + COUNT( * ) END AS SIGNED ) + + - 66
----
-1

skipif mysql # not compatible
query I rowsort label-2712
SELECT + 65 / - CAST ( - CASE 97 WHEN + 46 THEN NULL WHEN + + 33 * - - 19 THEN NULL ELSE + COUNT ( * ) END AS INTEGER ) + + - 66
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2713
SELECT DISTINCT 51 * 97 DIV 41 col0
----
120

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT 51 * 97 / 41 col0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2714
SELECT 9 * CASE - CAST( - 22 AS SIGNED ) WHEN + 94 * - + 64 + + 55 + + 94 * + 87 + 36 + + CAST( NULL AS SIGNED ) * - 7 THEN NULL WHEN + + 96 THEN NULL WHEN - ( - 40 ) * 15 * CASE 98 WHEN + 70 THEN NULL ELSE 47 * - MAX( ALL + ( + 95 ) ) END THEN + - ( AVG ( DISTINCT - 26 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2714
SELECT 9 * CASE - CAST ( - 22 AS INTEGER ) WHEN + 94 * - + 64 + + 55 + + 94 * + 87 + 36 + + CAST ( NULL AS INTEGER ) * - 7 THEN NULL WHEN + + 96 THEN NULL WHEN - ( - 40 ) * 15 * CASE 98 WHEN + 70 THEN NULL ELSE 47 * - MAX ( ALL + ( + 95 ) ) END THEN + - ( AVG ( DISTINCT - 26 ) ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2715
SELECT 71, + CASE - SUM( 41 ) WHEN + 79 THEN - - 66 * AVG ( DISTINCT - 63 ) * - COUNT( * ) - + + 1 ELSE + NULLIF ( ( + - CAST( 93 AS SIGNED ) ), + + 20 + - 12 + + 24 ) * 49 * + 33 DIV - 11 + - - SUM( ALL 16 ) + 59 END DIV - + MIN( 83 ) AS col1
----
71
-165

skipif mysql # not compatible
query II rowsort label-2715
SELECT 71, + CASE - SUM ( 41 ) WHEN + 79 THEN - - 66 * AVG ( DISTINCT - 63 ) * - COUNT ( * ) - + + 1 ELSE + NULLIF ( ( + - CAST ( 93 AS INTEGER ) ), + + 20 + - 12 + + 24 ) * 49 * + 33 / - 11 + - - SUM ( ALL 16 ) + 59 END / - + MIN ( 83 ) AS col1
----
71
-165

query I rowsort
SELECT ALL 80 + - 6 + + 68 * + 93 * - 50
----
-316126

query I rowsort
SELECT ALL - NULLIF ( - 74, 92 )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2718
SELECT ALL CAST( 89 AS SIGNED ) + 53 AS col1
----
142

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT DISTINCT - 95 * COUNT( * ) * + - 14
----
1330

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT - 95 * COUNT ( * ) * + - 14
----
1330

query I rowsort
SELECT 44 + - 4
----
40

query I rowsort
SELECT DISTINCT 38 * + - 65
----
-2470

query I rowsort
SELECT 89 - + - 67 AS col1
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-2723
SELECT - 19 AS col1, + MIN( DISTINCT - - 39 ) * - 16 * + 87 * 25
----
-19
-1357200

skipif mysql # not compatible
query II rowsort label-2723
SELECT - 19 AS col1, + MIN ( DISTINCT - - 39 ) * - 16 * + 87 * 25
----
-19
-1357200

query I rowsort
SELECT 63 + - 75
----
-12

query I rowsort
SELECT 98 - - - 50 + - 8 AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2726
SELECT ALL + COUNT( * ) - - 10 - + 0 DIV + 83
----
11

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL + COUNT ( * ) - - 10 - + 0 / + 83
----
11

query I rowsort
SELECT 79 + 74 * - 44 * + - 57
----
185671

query I rowsort
SELECT 49 + - 44 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT - SUM( 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-2729
SELECT - SUM ( 74 )
----
-74

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

query I rowsort
SELECT ALL + 48 - + 14 * 65 col2
----
-862

query II rowsort
SELECT 98 * + - 80 AS col2, 8 * - 27 AS col2
----
-7840
-216

query I rowsort
SELECT - 54 + - 43 col2
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2734
SELECT COUNT( * ) DIV + + 13 * - + 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2734
SELECT COUNT ( * ) / + + 13 * - + 74 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT - SUM( DISTINCT - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-2735
SELECT - SUM ( DISTINCT - 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT ALL - MIN( - 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL - MIN ( - 12 ) AS col1
----
12

query I rowsort
SELECT - + NULLIF ( ( - - 38 ), - 74 ) AS col0
----
-38

query I rowsort
SELECT ALL - + 21 * + 31
----
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT ALL - - 4 * - 96 * COUNT( * )
----
-384

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL - - 4 * - 96 * COUNT ( * )
----
-384

query II rowsort
SELECT ALL 34, - 69 col0
----
34
-69

query I rowsort
SELECT - + 61 * 36 * + 44
----
-96624

onlyif mysql # aggregate syntax: 
query II rowsort label-2742
SELECT 21, COUNT( 72 ) + - 21 AS col1
----
21
-20

skipif mysql # not compatible
query II rowsort label-2742
SELECT 21, COUNT ( 72 ) + - 21 AS col1
----
21
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2743
SELECT ALL + + 62 AS col0, CAST( NULL AS SIGNED ) AS col1
----
62
NULL

skipif mysql # not compatible
query II rowsort label-2743
SELECT ALL + + 62 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
62
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2744
SELECT + 46 * - 16 - + 21 + - 44 + - - 66 / CAST( NULL AS SIGNED ) / - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2744
SELECT + 46 * - 16 - + 21 + - 44 + - - 66 / CAST ( NULL AS INTEGER ) / - 56 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2745
SELECT - 93 DIV + 31
----
-3

skipif mysql # not compatible
query I rowsort label-2745
SELECT - 93 / + 31
----
-3

query I rowsort
SELECT DISTINCT - 40 * + 95 * 84 + - - 42 * + 36 AS col0
----
-317688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2747
SELECT DISTINCT COUNT( * ) * - + AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) + 49 - - COUNT( * ) * - - 7 * - 98 * + 48 * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT COUNT ( * ) * - + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + 49 - - COUNT ( * ) * - - 7 * - 98 * + 48 * - 80
----
NULL

query I rowsort
SELECT NULLIF ( + 36, + 58 ) AS col2
----
36

query I rowsort
SELECT + 8 * - + 6 * + 21 - - 78 AS col1
----
-930

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2750
SELECT + ( + ( - NULLIF ( + - 66, - CAST( NULL AS DECIMAL ) + + + ( 33 ) ) ) ) + + 67
----
133

skipif mysql # not compatible
query I rowsort label-2750
SELECT + ( + ( - NULLIF ( + - 66, - CAST ( NULL AS REAL ) + + + ( 33 ) ) ) ) + + 67
----
133

query I rowsort
SELECT NULLIF ( + ( 96 ), + - 73 )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2752
SELECT + 51 * CAST( + AVG ( DISTINCT - 27 ) AS SIGNED ) + 96 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2752
SELECT + 51 * CAST ( + AVG ( DISTINCT - 27 ) AS INTEGER ) + 96 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT SUM( DISTINCT 35 )
----
35

skipif mysql # not compatible
query I rowsort label-2753
SELECT SUM ( DISTINCT 35 )
----
35

query I rowsort
SELECT + ( + 8 ) + + ( - 6 ) + - 37 AS col2
----
-35

query I rowsort
SELECT DISTINCT 84 * + 32
----
2688

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT MAX( ALL + - 16 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-2756
SELECT MAX ( ALL + - 16 ) AS col1
----
-16

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

skipif mysql # not compatible
query I rowsort label-2757
SELECT + + MIN ( + 75 ) * - COUNT ( * ) AS col2
----
-75

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2759
SELECT + 82 * + 94, 27 * + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
7708
0

skipif mysql # not compatible
query II rowsort label-2759
SELECT + 82 * + 94, 27 * + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
7708
0

query I rowsort
SELECT ALL + 28 * + + 46 AS col1
----
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT + + COUNT( * ) - 31
----
-30

skipif mysql # not compatible
query I rowsort label-2761
SELECT + + COUNT ( * ) - 31
----
-30

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2763
SELECT ALL + 12 + + COUNT( * ) + + - 67 - + COUNT( * ) DIV ( - - 73 ) * 15 + - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL + 12 + + COUNT ( * ) + + - 67 - + COUNT ( * ) / ( - - 73 ) * 15 + - COUNT ( * )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-2764
SELECT - 54 - 8 + - 58 DIV + 50
----
-63

skipif mysql # not compatible
query I rowsort label-2764
SELECT - 54 - 8 + - 58 / + 50
----
-63

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

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

query I rowsort
SELECT - NULLIF ( - 4, + + 95 ) col0
----
4

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

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

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

query I rowsort
SELECT ALL - CASE + - 73 WHEN - ( 95 ) THEN + - 39 END * + - 12 + + 10 + - 3
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2772
SELECT ALL 29 DIV - 17 + + - 61 DIV - 34 + + 76 - + 16 + + 91 * 73 AS col2
----
6703

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL 29 / - 17 + + - 61 / - 34 + + 76 - + 16 + + 91 * 73 AS col2
----
6703

onlyif mysql # aggregate syntax: 
query II rowsort label-2773
SELECT - ( - 99 ) + 20 AS col2, + COUNT( * ) * COUNT( * )
----
119
1

skipif mysql # not compatible
query II rowsort label-2773
SELECT - ( - 99 ) + 20 AS col2, + COUNT ( * ) * COUNT ( * )
----
119
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2774
SELECT NULLIF ( - - 38, + 68 * + + 35 + - + 5 ) * - 90 + + - SUM( 26 ) AS col0, + 72
----
-3446
72

skipif mysql # not compatible
query II rowsort label-2774
SELECT NULLIF ( - - 38, + 68 * + + 35 + - + 5 ) * - 90 + + - SUM ( 26 ) AS col0, + 72
----
-3446
72

query I rowsort
SELECT - 86 * + 63 AS col0
----
-5418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2776
SELECT + 9 * - + COALESCE ( - + MIN( 76 ), - 85, + - 82 * MAX( + 20 ) * 34 + - - 11 - 20 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT + 9 * - + COALESCE ( - + MIN ( 76 ), - 85, + - 82 * MAX ( + 20 ) * 34 + - - 11 - 20 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + COALESCE ( 81, - 19 ) col0, 69 col1
----
81
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT + COALESCE ( 64, COUNT( * ) )
----
64

skipif mysql # not compatible
query I rowsort label-2778
SELECT + COALESCE ( 64, COUNT ( * ) )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT ALL + 50 * NULLIF ( + 0, + 78 / + 57 - + 61 + + SUM( 35 ) + - + 8 + + 67 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL + 50 * NULLIF ( + 0, + 78 / + 57 - + 61 + + SUM ( 35 ) + - + 8 + + 67 ) AS col1
----
0

query I rowsort
SELECT ALL + COALESCE ( - - 88, 24 + + 99 ) col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT DISTINCT MAX( ALL 35 ) * 2 * + 19 * + - 99 + 36
----
-131634

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT MAX ( ALL 35 ) * 2 * + 19 * + - 99 + 36
----
-131634

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL 43 * + COALESCE ( + CASE - - 85 WHEN - 39 THEN + 15 * + 35 WHEN ( 4 ) * - 4 THEN NULL ELSE NULL END, + 64 + COUNT( * ) )
----
2795

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL 43 * + COALESCE ( + CASE - - 85 WHEN - 39 THEN + 15 * + 35 WHEN ( 4 ) * - 4 THEN NULL ELSE NULL END, + 64 + COUNT ( * ) )
----
2795

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT COALESCE ( COUNT( * ), + COUNT( * ) ) * - + COUNT( * ) * + COUNT( ALL - 6 ) + + 50 col0
----
49

skipif mysql # not compatible
query I rowsort label-2783
SELECT COALESCE ( COUNT ( * ), + COUNT ( * ) ) * - + COUNT ( * ) * + COUNT ( ALL - 6 ) + + 50 col0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-2784
SELECT ALL - MIN( + 12 ) * + 28 col2, 82 AS col1
----
-336
82

skipif mysql # not compatible
query II rowsort label-2784
SELECT ALL - MIN ( + 12 ) * + 28 col2, 82 AS col1
----
-336
82

onlyif mysql # DIV for integer division: 
query I rowsort label-2785
SELECT + - 62 DIV + ( 93 ) + + + 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2785
SELECT + - 62 / + ( 93 ) + + + 49 AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2786
SELECT 58 + 48 DIV - 71 + - COUNT( * ) + 10
----
67

skipif mysql # not compatible
query I rowsort label-2786
SELECT 58 + 48 / - 71 + - COUNT ( * ) + 10
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT - 58 - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-2787
SELECT - 58 - COUNT ( * )
----
-59

query II rowsort
SELECT DISTINCT + 32 AS col1, + 46 AS col2
----
32
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2789
SELECT + 25 + - CASE - 27 WHEN + + CAST( NULL AS SIGNED ) THEN 84 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2789
SELECT + 25 + - CASE - 27 WHEN + + CAST ( NULL AS INTEGER ) THEN 84 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + ( ( - 28 ) ) + - - 92 + - - 70 col0
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT NULLIF ( - - 3, + - 70 ) + + 52 + MIN( ( 80 ) ) * + - 15 * + + 77 AS col2
----
-92345

skipif mysql # not compatible
query I rowsort label-2791
SELECT NULLIF ( - - 3, + - 70 ) + + 52 + MIN ( ( 80 ) ) * + - 15 * + + 77 AS col2
----
-92345

onlyif mysql # DIV for integer division: 
query I rowsort label-2792
SELECT + 82 DIV + + 87
----
0

skipif mysql # not compatible
query I rowsort label-2792
SELECT + 82 / + + 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT + 52 + 49 * ( - COUNT( * ) ) * + 16 + + - 47
----
-779

skipif mysql # not compatible
query I rowsort label-2793
SELECT + 52 + 49 * ( - COUNT ( * ) ) * + 16 + + - 47
----
-779

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

query I rowsort
SELECT ALL + 81 + - 12 AS col2
----
69

query I rowsort
SELECT - 18 * 76 * - - 81 * + 50 + 95 * - 63 + 3 AS col1
----
-5546382

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

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

query I rowsort
SELECT DISTINCT + 78 * + 51
----
3978

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2799
SELECT ALL 1 + + 87 + + + 40 * - 62 + - + COUNT( * ) DIV + + COUNT( * )
----
-2393

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL 1 + + 87 + + + 40 * - 62 + - + COUNT ( * ) / + + COUNT ( * )
----
-2393

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

skipif mysql # not compatible
query I rowsort label-2800
SELECT MAX ( + 3 )
----
3

query I rowsort
SELECT 63 + + 30 AS col0
----
93

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2803
SELECT 82 * + - 74 DIV + - COUNT( 99 )
----
6068

skipif mysql # not compatible
query I rowsort label-2803
SELECT 82 * + - 74 / + - COUNT ( 99 )
----
6068

query I rowsort
SELECT 92 * - + 13 AS col1
----
-1196

query I rowsort
SELECT 98 + + + 29
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT DISTINCT + 64 * + MAX( ALL 57 ) * + 28 - COUNT( * )
----
102143

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT + 64 * + MAX ( ALL 57 ) * + 28 - COUNT ( * )
----
102143

query I rowsort
SELECT ALL 20 * - 20 AS col2
----
-400

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

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

query I rowsort
SELECT DISTINCT + 73 * - 37
----
-2701

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2810
SELECT - CAST( - COUNT( + 64 ) AS SIGNED ) * COUNT( * ) + + ( - - 82 ) + - 80 * - 71 - + 86 * 27 - 15
----
3426

skipif mysql # not compatible
query I rowsort label-2810
SELECT - CAST ( - COUNT ( + 64 ) AS INTEGER ) * COUNT ( * ) + + ( - - 82 ) + - 80 * - 71 - + 86 * 27 - 15
----
3426

query I rowsort
SELECT ( + 86 ) * + 0 col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2813
SELECT DISTINCT - ( + COUNT( + CAST( NULL AS SIGNED ) ) ) AS col2
----
0

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

query I rowsort
SELECT - 73 * 81 col2
----
-5913

onlyif mysql # aggregate syntax: 
query II rowsort label-2815
SELECT DISTINCT + 78 * - 43, - COUNT( * ) + + - COUNT( * ) col1
----
-3354
-2

skipif mysql # not compatible
query II rowsort label-2815
SELECT DISTINCT + 78 * - 43, - COUNT ( * ) + + - COUNT ( * ) col1
----
-3354
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2816
SELECT DISTINCT + 67 DIV - 1 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT + 67 / - 1 AS col1
----
-67

query I rowsort
SELECT ALL + 45 + 19
----
64

query I rowsort
SELECT ALL + + 98 * - + 0 - - 65
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT 42 DIV 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2819
SELECT 42 / 99 AS col2
----
0

query I rowsort
SELECT ALL - CASE - AVG ( ALL - 93 ) WHEN + 90 THEN + - 53 * - 42 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT ALL + - COUNT( * ) + - NULLIF ( - - 26, ( 26 ) * + 22 / 14 * - 46 + COUNT( DISTINCT + 5 ) * + CASE + 58 WHEN - 87 + 2 THEN NULLIF ( + 22, + 18 * + - 95 * + 74 * - - 76 + - 92 + + + 48 ) + + 11 END * + 50 * + 91 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL + - COUNT ( * ) + - NULLIF ( - - 26, ( 26 ) * + 22 / 14 * - 46 + COUNT ( DISTINCT + 5 ) * + CASE + 58 WHEN - 87 + 2 THEN NULLIF ( + 22, + 18 * + - 95 * + 74 * - - 76 + - 92 + + + 48 ) + + 11 END * + 50 * + 91 ) AS col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2822
SELECT DISTINCT - - CAST( - + 25 AS SIGNED ) + - 41 + + - 80 + - COUNT( * )
----
-147

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT - - CAST ( - + 25 AS INTEGER ) + - 41 + + - 80 + - COUNT ( * )
----
-147

onlyif mysql # aggregate syntax: 
query II rowsort label-2823
SELECT ALL - 69 + - - 8 AS col1, COUNT( * ) + + COUNT( * )
----
-61
2

skipif mysql # not compatible
query II rowsort label-2823
SELECT ALL - 69 + - - 8 AS col1, COUNT ( * ) + + COUNT ( * )
----
-61
2

query I rowsort
SELECT + 39 - + 17 + - 85
----
-63

query I rowsort
SELECT ( + - 15 ) - + 79 * - 32 AS col0
----
2513

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

query I rowsort
SELECT ALL 74 * + 59
----
4366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2828
SELECT DISTINCT + CAST( CAST( + 63 AS SIGNED ) AS SIGNED ) * - 36 * - 10 * MAX( 30 ) - + - CASE 31 WHEN + 65 THEN 3 - + COUNT( * ) * - - COUNT( * ) + + NULLIF ( + MIN( - 19 ), - - 52 ) / + 87 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT + CAST ( CAST ( + 63 AS INTEGER ) AS INTEGER ) * - 36 * - 10 * MAX ( 30 ) - + - CASE 31 WHEN + 65 THEN 3 - + COUNT ( * ) * - - COUNT ( * ) + + NULLIF ( + MIN ( - 19 ), - - 52 ) / + 87 * + COUNT ( * ) END
----
NULL

query II rowsort
SELECT 72 AS col1, 5
----
72
5

query I rowsort
SELECT ALL 21 * + + NULLIF ( + CASE 62 WHEN + 88 THEN - - 37 ELSE NULL END, 68 )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2832
SELECT 7 DIV + NULLIF ( + 86, + - 37 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2832
SELECT 7 / + NULLIF ( + 86, + - 37 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2833
SELECT ALL 8 DIV 98 * + 42, COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-2833
SELECT ALL 8 / 98 * + 42, COUNT ( * ) AS col1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT + COUNT( ALL - 22 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2834
SELECT + COUNT ( ALL - 22 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2835
SELECT + 63 / - 78 * - MIN( + ( - 38 ) ) + CASE - CAST( COUNT( * ) AS SIGNED ) WHEN - - COUNT( * ) * - SUM( DISTINCT + 52 ) * - 50 THEN NULL WHEN - 35 * + + 90 + + - 68 + - CAST( NULL AS SIGNED ) * + ( + 29 ) * + - 45 THEN - NULLIF ( + CAST( + 32 AS SIGNED ), 43 ) END AS col1, ( + - ( 81 ) ) + + 19 - - 77 + - + 12 * - NULLIF ( + MAX( + 5 ), + 10 ) * - + 40 + + - CASE + 99 WHEN ( 29 ) - 99 THEN + 62 * 99 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2835
SELECT + 63 / - 78 * - MIN ( + ( - 38 ) ) + CASE - CAST ( COUNT ( * ) AS INTEGER ) WHEN - - COUNT ( * ) * - SUM ( DISTINCT + 52 ) * - 50 THEN NULL WHEN - 35 * + + 90 + + - 68 + - CAST ( NULL AS INTEGER ) * + ( + 29 ) * + - 45 THEN - NULLIF ( + CAST ( + 32 AS INTEGER ), 43 ) END AS col1, ( + - ( 81 ) ) + + 19 - - 77 + - + 12 * - NULLIF ( + MAX ( + 5 ), + 10 ) * - + 40 + + - CASE + 99 WHEN ( 29 ) - 99 THEN + 62 * 99 ELSE NULL END
----
NULL
NULL

query II rowsort
SELECT + 66 + - - 19 + 74 * 67 + ( + 75 ) AS col0, - 10 AS col2
----
5118
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ALL 81 * COUNT( * ) + - 4 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL 81 * COUNT ( * ) + - 4 AS col1
----
77

query I rowsort
SELECT + 43 * + 71 AS col2
----
3053

query I rowsort
SELECT ALL + 74 * 62 + 78
----
4666

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT DISTINCT MIN( 4 ) * 79 AS col0
----
316

skipif mysql # not compatible
query I rowsort label-2840
SELECT DISTINCT MIN ( 4 ) * 79 AS col0
----
316

query I rowsort
SELECT 16 * 93 + + 31 * 5 AS col1
----
1643

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT DISTINCT + MIN( + 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT + MIN ( + 19 ) AS col2
----
19

query I rowsort
SELECT + NULLIF ( - 64, 16 * 45 + 68 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT 53 * - COUNT( * ) + - COUNT( * ) * 57
----
-110

skipif mysql # not compatible
query I rowsort label-2844
SELECT 53 * - COUNT ( * ) + - COUNT ( * ) * 57
----
-110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL COALESCE ( 27, - COUNT( * ) )
----
27

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL COALESCE ( 27, - COUNT ( * ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT - 53 + + COUNT( * ) * COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-2847
SELECT - 53 + + COUNT ( * ) * COUNT ( * )
----
-52

query I rowsort
SELECT - 46 + 67 AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2849
SELECT ALL - CASE - 52 WHEN 64 + 89 * CASE - 1 WHEN + CASE + 86 WHEN 92 THEN 53 WHEN - 20 DIV + ( 32 * 43 ) THEN NULL ELSE NULL END THEN NULL ELSE 41 - - 58 END THEN NULL WHEN 62 THEN + 93 + - 90 ELSE + 42 * 82 END DIV COUNT( * )
----
-3444

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL - CASE - 52 WHEN 64 + 89 * CASE - 1 WHEN + CASE + 86 WHEN 92 THEN 53 WHEN - 20 / + ( 32 * 43 ) THEN NULL ELSE NULL END THEN NULL ELSE 41 - - 58 END THEN NULL WHEN 62 THEN + 93 + - 90 ELSE + 42 * 82 END / COUNT ( * )
----
-3444

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT - COUNT( * ) + - 99
----
-100

skipif mysql # not compatible
query I rowsort label-2850
SELECT - COUNT ( * ) + - 99
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2851
SELECT ALL - CAST( 25 AS SIGNED ) * 88 AS col1
----
-2200

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL - CAST ( 25 AS INTEGER ) * 88 AS col1
----
-2200

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

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

query I rowsort
SELECT - 16 * + ( 67 * 55 )
----
-58960

query I rowsort
SELECT + ( - 5 ) + 25 * 32 AS col1
----
795

query I rowsort
SELECT ALL + 90 * 20
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT + ( - ( 80 ) ) * MAX( - 87 )
----
6960

skipif mysql # not compatible
query I rowsort label-2856
SELECT + ( - ( 80 ) ) * MAX ( - 87 )
----
6960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2857
SELECT + SUM( 77 ) * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT + MIN( DISTINCT + 72 ) + + 52
----
124

skipif mysql # not compatible
query I rowsort label-2858
SELECT + MIN ( DISTINCT + 72 ) + + 52
----
124

query I rowsort
SELECT - 80 * + ( 94 )
----
-7520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2860
SELECT DISTINCT COALESCE ( - CAST( NULL AS SIGNED ), - 9 - - 55 )
----
46

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), - 9 - - 55 )
----
46

query I rowsort
SELECT - ( 33 ) * - 68 AS col0
----
2244

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

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

query I rowsort
SELECT + 26 + + 22 * ( 84 + 96 ) AS col2
----
3986

query I rowsort
SELECT + 61 * - 80 AS col1
----
-4880

query I rowsort
SELECT - 90 * + 28
----
-2520

onlyif mysql # DIV for integer division: 
query I rowsort label-2866
SELECT + 59 DIV 81 - + 0 * + ( - 34 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2866
SELECT + 59 / 81 - + 0 * + ( - 34 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2867
SELECT ALL ( NULLIF ( 69, ( - 14 ) * - 58 ) ) DIV 31 + - 66 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL ( NULLIF ( 69, ( - 14 ) * - 58 ) ) / 31 + - 66 AS col1
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2868
SELECT ALL 77 DIV - 56 + 98
----
97

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL 77 / - 56 + 98
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2869
SELECT ALL + 29 DIV + 88 + 5 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2869
SELECT ALL + 29 / + 88 + 5 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT ALL - - COUNT( * ) * 34 + 74
----
108

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL - - COUNT ( * ) * 34 + 74
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2871
SELECT + CAST( CASE CASE + 80 WHEN NULLIF ( 13, - 72 * 77 ) + NULLIF ( 34, + 5 * + 1 ) THEN COUNT( * ) WHEN + COUNT( * ) + 13 THEN NULL END WHEN ( + ( - 16 ) ) + 53 * + 52 THEN NULL ELSE + 1 END AS SIGNED ) + - 50
----
-49

skipif mysql # not compatible
query I rowsort label-2871
SELECT + CAST ( CASE CASE + 80 WHEN NULLIF ( 13, - 72 * 77 ) + NULLIF ( 34, + 5 * + 1 ) THEN COUNT ( * ) WHEN + COUNT ( * ) + 13 THEN NULL END WHEN ( + ( - 16 ) ) + 53 * + 52 THEN NULL ELSE + 1 END AS INTEGER ) + - 50
----
-49

query I rowsort
SELECT 40 * + 44 - - 74 AS col1
----
1834

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

skipif mysql # not compatible
query I rowsort label-2873
SELECT + - COUNT ( * ) / 78
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2874
SELECT ALL - - 64 * 13 + 72 * - ( - 65 + - COUNT( * ) DIV + ( COUNT( * ) - COUNT( * ) * 89 ) ) AS col1
----
5512

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL - - 64 * 13 + 72 * - ( - 65 + - COUNT ( * ) / + ( COUNT ( * ) - COUNT ( * ) * 89 ) ) AS col1
----
5512

query I rowsort
SELECT + + CASE - 90 WHEN - 48 THEN 9 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + + 59 col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2877
SELECT ALL + COUNT( * ) * CAST( 67 AS SIGNED ) + + COUNT( * ) * 44 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL + COUNT ( * ) * CAST ( 67 AS INTEGER ) + + COUNT ( * ) * 44 AS col1
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2878
SELECT DISTINCT - 87 * + 50 - - CAST( NULL AS SIGNED ) / - NULLIF ( - MIN( 1 ) / - 90, - 98 / 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT - 87 * + 50 - - CAST ( NULL AS INTEGER ) / - NULLIF ( - MIN ( 1 ) / - 90, - 98 / 13 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT + MAX( DISTINCT 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-2879
SELECT + MAX ( DISTINCT 78 ) AS col2
----
78

query I rowsort
SELECT ALL 68 * 47 AS col0
----
3196

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT - + MIN( DISTINCT 9 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-2882
SELECT - + MIN ( DISTINCT 9 ) AS col2
----
-9

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

skipif mysql # not compatible
query I rowsort label-2883
SELECT + MAX ( - 43 )
----
-43

query I rowsort
SELECT + 65 * + 74 AS col1
----
4810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2885
SELECT DISTINCT NULLIF ( + CAST( 18 AS SIGNED ), - 48 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT NULLIF ( + CAST ( 18 AS INTEGER ), - 48 ) AS col1
----
18

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

skipif mysql # not compatible
query I rowsort label-2886
SELECT - CAST ( NULL AS INTEGER ) - + 92 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2887
SELECT ALL - 32 DIV 93 * - 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL - 32 / 93 * - 46 AS col2
----
0

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

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

query I rowsort
SELECT ALL - 87 * - + 95
----
8265

query I rowsort
SELECT - 85 + + - 29 * + 26 AS col1
----
-839

query I rowsort
SELECT - 3 * + + 48
----
-144

query I rowsort
SELECT - 62 * 44 * - 47 AS col2
----
128216

query I rowsort
SELECT 81 + - 52 * 51
----
-2571

onlyif mysql # DIV for integer division: 
query I rowsort label-2894
SELECT 88 DIV + + 39 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2894
SELECT 88 / + + 39 AS col2
----
2

query I rowsort
SELECT 91 + - COALESCE ( 74, NULLIF ( 4, + 49 ) ) * - 69 AS col0
----
5197

query I rowsort
SELECT 26 - 53 * - 19 AS col0
----
1033

query I rowsort
SELECT DISTINCT + 69 + + 40
----
109

query I rowsort
SELECT 1 + - 74
----
-73

query I rowsort
SELECT ALL + 97 + - 62 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT DISTINCT - COUNT( * ) * + ( CASE SUM( DISTINCT NULLIF ( 58, 37 * - 88 ) ) WHEN 62 THEN 8 + 73 * ( 52 * COUNT( * ) + - 40 ) ELSE + 74 - + 10 * - 11 END ) * 84 AS col2
----
-15456

skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT - COUNT ( * ) * + ( CASE SUM ( DISTINCT NULLIF ( 58, 37 * - 88 ) ) WHEN 62 THEN 8 + 73 * ( 52 * COUNT ( * ) + - 40 ) ELSE + 74 - + 10 * - 11 END ) * 84 AS col2
----
-15456

query I rowsort
SELECT ALL 14 + - ( 96 ) - - 11 * + 97
----
985

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2902
SELECT COUNT( * ) + + - 33 DIV 9 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2902
SELECT COUNT ( * ) + + - 33 / 9 AS col1
----
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ALL - MAX( ALL + 80 ) + 17 * + 8 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL - MAX ( ALL + 80 ) + 17 * + 8 AS col0
----
56

query I rowsort
SELECT DISTINCT 68 * + - 97
----
-6596

onlyif mysql # DIV for integer division: 
query I rowsort label-2906
SELECT - - 33 DIV + 91 * - 35 + 60
----
60

skipif mysql # not compatible
query I rowsort label-2906
SELECT - - 33 / + 91 * - 35 + 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT MIN( + ( 83 ) ) * + 41
----
3403

skipif mysql # not compatible
query I rowsort label-2907
SELECT MIN ( + ( 83 ) ) * + 41
----
3403

query I rowsort
SELECT 27 + + 0
----
27

query I rowsort
SELECT ALL 95 - + 80
----
15

query I rowsort
SELECT DISTINCT + 95 * + 41 * 34 AS col0
----
132430

query I rowsort
SELECT + 78 + 68
----
146

query I rowsort
SELECT - 82 * - - 62 AS col2
----
-5084

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2913
SELECT + + 40 * MIN( ALL - 47 ) DIV 11 + - NULLIF ( - 39, 2 * - 26 + 56 )
----
-131

skipif mysql # not compatible
query I rowsort label-2913
SELECT + + 40 * MIN ( ALL - 47 ) / 11 + - NULLIF ( - 39, 2 * - 26 + 56 )
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2914
SELECT CASE 21 WHEN 35 THEN NULL WHEN + 48 * CAST( 31 * 39 AS SIGNED ) + - 49 * - 3 THEN COUNT( * ) * 17 END + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT CASE 21 WHEN 35 THEN NULL WHEN + 48 * CAST ( 31 * 39 AS INTEGER ) + - 49 * - 3 THEN COUNT ( * ) * 17 END + 32
----
NULL

query I rowsort
SELECT - ( - + 5 ) + - 58 AS col2
----
-53

query I rowsort
SELECT + 18 + 10 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT - 58 + + ( ( COUNT( * ) ) )
----
-57

skipif mysql # not compatible
query I rowsort label-2917
SELECT - 58 + + ( ( COUNT ( * ) ) )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT - COUNT( * ) - - 51 col1
----
50

skipif mysql # not compatible
query I rowsort label-2918
SELECT - COUNT ( * ) - - 51 col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2919
SELECT + 40 * NULLIF ( 60, 46 + 25 ) + - CAST( - 0 AS SIGNED )
----
2400

skipif mysql # not compatible
query I rowsort label-2919
SELECT + 40 * NULLIF ( 60, 46 + 25 ) + - CAST ( - 0 AS INTEGER )
----
2400

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2920
SELECT - 41 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT - 41 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2921
SELECT ALL - 51 DIV - NULLIF ( - SUM( DISTINCT 72 ), + 77 * 3 ) * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL - 51 / - NULLIF ( - SUM ( DISTINCT 72 ), + 77 * 3 ) * + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ( 90 ) * ( 9 ) AS col1
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT ALL COUNT( - + 50 ) * + 46
----
46

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL COUNT ( - + 50 ) * + 46
----
46

query I rowsort
SELECT 76 * + 88 * 59 AS col0
----
394592

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT DISTINCT 57 + + - NULLIF ( - 32, 63 * + SUM( DISTINCT NULLIF ( 60, 29 ) ) )
----
89

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT 57 + + - NULLIF ( - 32, 63 * + SUM ( DISTINCT NULLIF ( 60, 29 ) ) )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT COUNT( + - 49 ) * - 92 * + 98
----
-9016

skipif mysql # not compatible
query I rowsort label-2926
SELECT COUNT ( + - 49 ) * - 92 * + 98
----
-9016

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT 1 + - - MAX( + - 36 ) + - 65 * + COUNT( * )
----
-100

skipif mysql # not compatible
query I rowsort label-2927
SELECT 1 + - - MAX ( + - 36 ) + - 65 * + COUNT ( * )
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT ALL 92 + MIN( DISTINCT + 22 ) AS col1
----
114

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL 92 + MIN ( DISTINCT + 22 ) AS col1
----
114

query II rowsort
SELECT 75, - 41 * - 64 AS col1
----
75
2624

query II rowsort
SELECT 12 AS col0, - 30
----
12
-30

query I rowsort
SELECT ALL + 1 + + 29
----
30

query I rowsort
SELECT 26 + - ( + 6 ) AS col2
----
20

query I rowsort
SELECT ALL - 29 + + 87
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT ALL COUNT( * ) + ( - 60 )
----
-59

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL COUNT ( * ) + ( - 60 )
----
-59

query I rowsort
SELECT 16 * + 40 * - 37 AS col1
----
-23680

query I rowsort
SELECT DISTINCT + 84 + - + COALESCE ( - 40, + ( 10 ), + 78 )
----
124

query I rowsort
SELECT 32 + 17 + + 83 * 0 col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2938
SELECT 35 DIV - + 68 * + 22
----
0

skipif mysql # not compatible
query I rowsort label-2938
SELECT 35 / - + 68 * + 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT 37 * + + 8 - - - 35 + 84 * COUNT( * )
----
345

skipif mysql # not compatible
query I rowsort label-2939
SELECT 37 * + + 8 - - - 35 + 84 * COUNT ( * )
----
345

query I rowsort
SELECT ALL - - 76 * - 78 AS col1
----
-5928

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT COALESCE ( 63, SUM( 25 ) * 31 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2941
SELECT COALESCE ( 63, SUM ( 25 ) * 31 ) AS col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2942
SELECT - - 43 DIV 90 - 85 DIV + MIN( - 71 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2942
SELECT - - 43 / 90 - 85 / + MIN ( - 71 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2943
SELECT - 0 DIV + 75 * MIN( DISTINCT - 42 )
----
0

skipif mysql # not compatible
query I rowsort label-2943
SELECT - 0 / + 75 * MIN ( DISTINCT - 42 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT DISTINCT - 99 * MAX( + 35 ) AS col0
----
-3465

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT - 99 * MAX ( + 35 ) AS col0
----
-3465

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT ALL - - ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL - - ( - COUNT ( * ) ) col2
----
-1

query II rowsort
SELECT 56 AS col2, 54 * + + 10
----
56
540

query I rowsort
SELECT ALL - + 84 * 46 * + 60 + 66 AS col2
----
-231774

query II rowsort
SELECT DISTINCT - 62, 51 AS col2
----
-62
51

query II rowsort
SELECT + 11 AS col2, 9 AS col1
----
11
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2950
SELECT ALL - COUNT( * ) AS col2, - COALESCE ( - 84, ( - 8 ), + COUNT( * ) + 66 ) + 80 * - CAST( NULL AS SIGNED ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2950
SELECT ALL - COUNT ( * ) AS col2, - COALESCE ( - 84, ( - 8 ), + COUNT ( * ) + 66 ) + 80 * - CAST ( NULL AS INTEGER ) AS col2
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT COALESCE ( - 58, - - MIN( - 4 ), 80 * 62 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-2951
SELECT COALESCE ( - 58, - - MIN ( - 4 ), 80 * 62 ) AS col0
----
-58

query I rowsort
SELECT + - NULLIF ( + - 27, + + 68 )
----
27

query I rowsort
SELECT ALL 86 * - + 7 * + 56
----
-33712

query I rowsort
SELECT - 56 * 15
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT + COUNT( * ) + NULLIF ( - 99, - 76 ) * + 28
----
-2771

skipif mysql # not compatible
query I rowsort label-2955
SELECT + COUNT ( * ) + NULLIF ( - 99, - 76 ) * + 28
----
-2771

onlyif mysql # DIV for integer division: 
query I rowsort label-2956
SELECT DISTINCT + - 67 DIV 56
----
-1

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT + - 67 / 56
----
-1

query II rowsort
SELECT ALL - + 8 AS col0, - 30
----
-8
-30

query I rowsort
SELECT + 83 * - 49 * + 86
----
-349762

query I rowsort
SELECT DISTINCT - 77 + + 4
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT ALL 4 + COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL 4 + COUNT ( * ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT ALL 16 + 70 + + NULLIF ( + ( + 87 ), + 34 * + COALESCE ( - 60, COUNT( * ) ) )
----
173

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL 16 + 70 + + NULLIF ( + ( + 87 ), + 34 * + COALESCE ( - 60, COUNT ( * ) ) )
----
173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT + CASE - 64 WHEN + - CAST( NULL AS SIGNED ) / 19 THEN + 1 * 34 END * 26 + 21 * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2962
SELECT + CASE - 64 WHEN + - CAST ( NULL AS INTEGER ) / 19 THEN + 1 * 34 END * 26 + 21 * 23
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2963
SELECT ( - - COALESCE ( - 81, + 20 + 32 * - CAST( NULL AS SIGNED ) ) ) * 77
----
-6237

skipif mysql # not compatible
query I rowsort label-2963
SELECT ( - - COALESCE ( - 81, + 20 + 32 * - CAST ( NULL AS INTEGER ) ) ) * 77
----
-6237

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

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

query I rowsort
SELECT + 62 * - 59
----
-3658

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2966
SELECT + COUNT( - 22 ) + - 13 * 33 + - 63 DIV 91
----
-428

skipif mysql # not compatible
query I rowsort label-2966
SELECT + COUNT ( - 22 ) + - 13 * 33 + - 63 / 91
----
-428

query I rowsort
SELECT - NULLIF ( - 61, + COALESCE ( 73, 72 ) )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT ALL COALESCE ( + NULLIF ( - 9, + + 76 * 11 ), 2, 40 * MAX( ALL 33 * - 76 ) ) + CASE SUM( 46 ) WHEN 18 * - ( ( ( 46 ) ) ) THEN NULL ELSE 47 END AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL COALESCE ( + NULLIF ( - 9, + + 76 * 11 ), 2, 40 * MAX ( ALL 33 * - 76 ) ) + CASE SUM ( 46 ) WHEN 18 * - ( ( ( 46 ) ) ) THEN NULL ELSE 47 END AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT + 56 * + + 15 * - COUNT( * ) * 7 AS col0
----
-5880

skipif mysql # not compatible
query I rowsort label-2969
SELECT + 56 * + + 15 * - COUNT ( * ) * 7 AS col0
----
-5880

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT DISTINCT CASE - 38 WHEN - 9 THEN + - 29 * + CASE 15 * 58 WHEN 94 THEN - ( - 18 ) ELSE NULL END + ( - 69 ) WHEN 44 THEN NULL ELSE - MIN( + 23 ) END
----
-23

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT CASE - 38 WHEN - 9 THEN + - 29 * + CASE 15 * 58 WHEN 94 THEN - ( - 18 ) ELSE NULL END + ( - 69 ) WHEN 44 THEN NULL ELSE - MIN ( + 23 ) END
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2971
SELECT DISTINCT 73 DIV + + SUM( DISTINCT - ( 66 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT 73 / + + SUM ( DISTINCT - ( 66 ) ) AS col0
----
-1

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

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL COUNT ( * ) + 50 / + 38
----
2

query I rowsort
SELECT ALL 8 + - + 75 * + - 67
----
5033

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2974
SELECT ALL + CAST( + - NULLIF ( 52, - 15 ) AS SIGNED ) * + 98
----
-5096

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL + CAST ( + - NULLIF ( 52, - 15 ) AS INTEGER ) * + 98
----
-5096

query II rowsort
SELECT + 96 + - - 60, 16 + - 1 AS col0
----
156
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT ALL COUNT( * ) + + + 21 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL COUNT ( * ) + + + 21 AS col2
----
22

query II rowsort
SELECT + 72 + 1 AS col2, 19 AS col2
----
73
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2978
SELECT DISTINCT COALESCE ( - - 3, 6 ) * - SUM( + CAST( ( + ( 46 ) ) AS SIGNED ) ) * - 95
----
13110

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT COALESCE ( - - 3, 6 ) * - SUM ( + CAST ( ( + ( 46 ) ) AS INTEGER ) ) * - 95
----
13110

query I rowsort
SELECT + 60 + + + 31
----
91

query I rowsort
SELECT + 15 + - - 51 * - 3 col2
----
-138

query I rowsort
SELECT ALL + ( + 43 ) - + 53
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2982
SELECT DISTINCT CAST( - 31 AS SIGNED ) * - COUNT( * ) + + + MAX( DISTINCT - 18 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2982
SELECT DISTINCT CAST ( - 31 AS INTEGER ) * - COUNT ( * ) + + + MAX ( DISTINCT - 18 ) AS col1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2983
SELECT + CAST( NULL AS SIGNED ) + 14 * 46 * - - 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2983
SELECT + CAST ( NULL AS INTEGER ) + 14 * 46 * - - 75 AS col0
----
NULL

query II rowsort
SELECT + - 0 * - - 63 AS col2, 8 * + 21 * 55 AS col2
----
0
9240

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT + MIN( ALL - - 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-2985
SELECT + MIN ( ALL - - 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT DISTINCT + CASE 26 WHEN - + COUNT( * ) THEN + + 34 ELSE COALESCE ( - COUNT( * ), + 62 - 7 * 57 ) * + 67 - - 17 * 82 END * 22 AS col1
----
29194

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT + CASE 26 WHEN - + COUNT ( * ) THEN + + 34 ELSE COALESCE ( - COUNT ( * ), + 62 - 7 * 57 ) * + 67 - - 17 * 82 END * 22 AS col1
----
29194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2987
SELECT - - 51 + - 17 DIV - 39 * + MAX( 65 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-2987
SELECT - - 51 + - 17 / - 39 * + MAX ( 65 ) AS col0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2988
SELECT ALL 34 DIV 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL 34 / 55 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT + NULLIF ( - 6, + - COUNT( * ) / - - 93 + + 68 ) * + 32
----
-192

skipif mysql # not compatible
query I rowsort label-2989
SELECT + NULLIF ( - 6, + - COUNT ( * ) / - - 93 + + 68 ) * + 32
----
-192

query I rowsort
SELECT + 17 * + - 63 AS col1
----
-1071

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT - - 3 * - + COUNT( * ) + 82 + 73 * + 91
----
6722

skipif mysql # not compatible
query I rowsort label-2991
SELECT - - 3 * - + COUNT ( * ) + 82 + 73 * + 91
----
6722

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2992
SELECT - COUNT( ALL + 16 ) DIV - 23 + - 56 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-2992
SELECT - COUNT ( ALL + 16 ) / - 23 + - 56 AS col0
----
-56

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

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

query I rowsort
SELECT ALL 77 * 68 + - + 89 + 98 + + 74 AS col1
----
5319

query I rowsort
SELECT DISTINCT - 88 * 70 - NULLIF ( + - 23, - 47 ) + - 59 col2
----
-6196

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2998
SELECT ALL 38 * - CAST( NULL AS SIGNED ) + 42 + 70 * + - ( 97 ) + 9 / 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL 38 * - CAST ( NULL AS INTEGER ) + 42 + 70 * + - ( 97 ) + 9 / 25 AS col1
----
NULL

query I rowsort
SELECT - 86 + - 55
----
-141

query I rowsort
SELECT NULLIF ( ( - 70 ), 42 + + 61 - 8 )
----
-70

query I rowsort
SELECT + 63 + + 8
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT ALL 50 * - 8 + + - 77 - SUM( - + 22 ) * + 26 * + 48 AS col2
----
26979

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL 50 * - 8 + + - 77 - SUM ( - + 22 ) * + 26 * + 48 AS col2
----
26979

query I rowsort
SELECT + 80 + 5
----
85

query I rowsort
SELECT + NULLIF ( 96, + + ( + 6 ) )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT DISTINCT - 53 * - 32 * + 52 + + - CASE + + ( - 44 ) WHEN MIN( DISTINCT - 82 ) THEN - 84 WHEN - 53 THEN NULL WHEN + 21 * + 24 THEN - 32 WHEN - 20 / CASE + 12 WHEN 64 + + 56 THEN 77 WHEN ( - COUNT( * ) ) * + 42 THEN NULL END THEN NULL END - + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT - 53 * - 32 * + 52 + + - CASE + + ( - 44 ) WHEN MIN ( DISTINCT - 82 ) THEN - 84 WHEN - 53 THEN NULL WHEN + 21 * + 24 THEN - 32 WHEN - 20 / CASE + 12 WHEN 64 + + 56 THEN 77 WHEN ( - COUNT ( * ) ) * + 42 THEN NULL END THEN NULL END - + 32
----
NULL

query I rowsort
SELECT DISTINCT + ( - 70 ) col1
----
-70

query I rowsort
SELECT ALL 87 * 75 + - 51 AS col0
----
6474

query I rowsort
SELECT + 96 + + 21
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3009
SELECT ALL - 65 - 31 + + 71 + + 57 - CAST( - 12 AS SIGNED ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL - 65 - 31 + + 71 + + 57 - CAST ( - 12 AS INTEGER ) AS col0
----
44

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3011
SELECT - ( + CAST( + 63 AS SIGNED ) ) AS col2, - 59
----
-63
-59

skipif mysql # not compatible
query II rowsort label-3011
SELECT - ( + CAST ( + 63 AS INTEGER ) ) AS col2, - 59
----
-63
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3012
SELECT - 61 DIV 37 * - 3
----
3

skipif mysql # not compatible
query I rowsort label-3012
SELECT - 61 / 37 * - 3
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3013
SELECT + 78 + + - CAST( NULL AS SIGNED ) + - 59 + + + 33 * + 91 - + SUM( ALL 13 ) / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT + 78 + + - CAST ( NULL AS INTEGER ) + - 59 + + + 33 * + 91 - + SUM ( ALL 13 ) / + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - CASE NULLIF ( - ( NULLIF ( - 95, 39 ) ), 94 ) WHEN + 1 THEN ( 70 ) ELSE + 10 END
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-3015
SELECT + + 46 * SUM( 36 ) AS col0, - 60
----
1656
-60

skipif mysql # not compatible
query II rowsort label-3015
SELECT + + 46 * SUM ( 36 ) AS col0, - 60
----
1656
-60

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3017
SELECT + ( COALESCE ( + - 43, + + CAST( - 6 AS SIGNED ) * - COUNT( 42 ) + COUNT( * ) * 20 ) ) DIV 5
----
-8

skipif mysql # not compatible
query I rowsort label-3017
SELECT + ( COALESCE ( + - 43, + + CAST ( - 6 AS INTEGER ) * - COUNT ( 42 ) + COUNT ( * ) * 20 ) ) / 5
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3018
SELECT ALL 61 * 13 + - CAST( + 97 AS SIGNED ) AS col1
----
696

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL 61 * 13 + - CAST ( + 97 AS INTEGER ) AS col1
----
696

query II rowsort
SELECT + + 38 + 75 + - 24 col1, 71
----
89
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT DISTINCT 23 * + MAX( ALL + + 13 )
----
299

skipif mysql # not compatible
query I rowsort label-3020
SELECT DISTINCT 23 * + MAX ( ALL + + 13 )
----
299

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3022
SELECT + + MAX( ALL + 73 ) * + 85 * - 48 - - CAST( 68 AS SIGNED ) + 31
----
-297741

skipif mysql # not compatible
query I rowsort label-3022
SELECT + + MAX ( ALL + 73 ) * + 85 * - 48 - - CAST ( 68 AS INTEGER ) + 31
----
-297741

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3023
SELECT ALL + AVG ( + 91 ) * - COUNT( * ) * + 82 + + CASE + ( - 92 ) WHEN - 78 * 46 THEN + 33 + 27 * CAST( 34 + 94 / - CAST( COUNT( * ) * - MIN( 19 ) AS SIGNED ) AS SIGNED ) WHEN ( - 24 ) THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL + AVG ( + 91 ) * - COUNT ( * ) * + 82 + + CASE + ( - 92 ) WHEN - 78 * 46 THEN + 33 + 27 * CAST ( 34 + 94 / - CAST ( COUNT ( * ) * - MIN ( 19 ) AS INTEGER ) AS INTEGER ) WHEN ( - 24 ) THEN CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3024
SELECT + - CASE - 42 WHEN - 38 / + 4 THEN + + ( CASE + CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN 50 + 89 END ) * 7 WHEN 13 THEN 25 WHEN 28 THEN COUNT( * ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3024
SELECT + - CASE - 42 WHEN - 38 / + 4 THEN + + ( CASE + CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN 50 + 89 END ) * 7 WHEN 13 THEN 25 WHEN 28 THEN COUNT ( * ) ELSE NULL END col2
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL - 77 / + - 47 + 57 + - - COUNT ( * ) AS col2
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3027
SELECT ALL - COUNT( * ) DIV 10 - - 26 + - - 74
----
100

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL - COUNT ( * ) / 10 - - 26 + - - 74
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-3028
SELECT DISTINCT - - 91 DIV 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT - - 91 / 48 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3029
SELECT ALL + 12 DIV - - COALESCE ( - - 81, + 33 ) + 39 - + 74 DIV - COUNT( * ) col1
----
113

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL + 12 / - - COALESCE ( - - 81, + 33 ) + 39 - + 74 / - COUNT ( * ) col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT - - MAX( + 6 ) * COALESCE ( - + MIN( DISTINCT 96 ), ( - COUNT( * ) ) * - 74 ) * 0 + 47 * - 66
----
-3102

skipif mysql # not compatible
query I rowsort label-3030
SELECT - - MAX ( + 6 ) * COALESCE ( - + MIN ( DISTINCT 96 ), ( - COUNT ( * ) ) * - 74 ) * 0 + 47 * - 66
----
-3102

onlyif mysql # aggregate syntax: 
query II rowsort label-3031
SELECT + 69 AS col1, COUNT( * ) AS col0
----
69
1

skipif mysql # not compatible
query II rowsort label-3031
SELECT + 69 AS col1, COUNT ( * ) AS col0
----
69
1

query I rowsort
SELECT ALL + 81 + + + 33 AS col1
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3033
SELECT SUM( 72 ) DIV + - NULLIF ( - MIN( ALL - 76 ), - + ( MIN( ALL - 42 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3033
SELECT SUM ( 72 ) / + - NULLIF ( - MIN ( ALL - 76 ), - + ( MIN ( ALL - 42 ) ) )
----
0

query II rowsort
SELECT 17 * + - 18 AS col2, 5
----
-306
5

query II rowsort
SELECT 28 AS col1, ( + CASE - 79 WHEN + - 89 * - - 16 THEN 12 + 35 WHEN - 96 * + 87 THEN 67 END )
----
28
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT ALL + MAX( + 70 ) + - 53
----
17

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL + MAX ( + 70 ) + - 53
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3037
SELECT ALL - 65, - 72 * COALESCE ( 7, - + COUNT( * ) * 8 * ( - 18 DIV + 85 ), 97 ) + - 66 DIV 60 AS col2
----
-65
-505

skipif mysql # not compatible
query II rowsort label-3037
SELECT ALL - 65, - 72 * COALESCE ( 7, - + COUNT ( * ) * 8 * ( - 18 / + 85 ), 97 ) + - 66 / 60 AS col2
----
-65
-505

query I rowsort
SELECT ALL 33 * - - 66
----
2178

query I rowsort
SELECT ALL - CASE + 27 WHEN + 31 THEN + 46 WHEN - + 97 + - 87 - ( 63 ) * + 83 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3040
SELECT ALL - COUNT( - - 8 ), 2 + + ( + 25 ) AS col2
----
-1
27

skipif mysql # not compatible
query II rowsort label-3040
SELECT ALL - COUNT ( - - 8 ), 2 + + ( + 25 ) AS col2
----
-1
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3041
SELECT 28 AS col2, + ( + COUNT( * ) ) * + + COUNT( * ) * + 41 + 27 + - 44 DIV ( - 48 )
----
28
68

skipif mysql # not compatible
query II rowsort label-3041
SELECT 28 AS col2, + ( + COUNT ( * ) ) * + + COUNT ( * ) * + 41 + 27 + - 44 / ( - 48 )
----
28
68

query I rowsort
SELECT 0 + + 52 AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3043
SELECT 34 * + SUM( ALL + - 88 ) * + - 85 + COUNT( * ) + + CAST( NULL AS SIGNED ) * + 56 * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3043
SELECT 34 * + SUM ( ALL + - 88 ) * + - 85 + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + 56 * - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT 42 * + + SUM( ALL 51 )
----
2142

skipif mysql # not compatible
query I rowsort label-3044
SELECT 42 * + + SUM ( ALL 51 )
----
2142

onlyif mysql # aggregate syntax: 
query II rowsort label-3045
SELECT ALL 62 AS col2, - 28 + + 47 + + - MAX( 64 ) - - 7 * - 53
----
62
-416

skipif mysql # not compatible
query II rowsort label-3045
SELECT ALL 62 AS col2, - 28 + + 47 + + - MAX ( 64 ) - - 7 * - 53
----
62
-416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3046
SELECT + 1 * CAST( - 12 AS SIGNED ) - - - 33 + + CASE 48 WHEN 68 THEN MIN( - 89 ) + - 77 ELSE 80 END * + 34 * + ( 13 * 40 ) AS col0
----
1414355

skipif mysql # not compatible
query I rowsort label-3046
SELECT + 1 * CAST ( - 12 AS INTEGER ) - - - 33 + + CASE 48 WHEN 68 THEN MIN ( - 89 ) + - 77 ELSE 80 END * + 34 * + ( 13 * 40 ) AS col0
----
1414355

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT 26 + + 33 + + - 52 * - - NULLIF ( 33, ( MIN( ALL ( 38 ) ) ) )
----
-1657

skipif mysql # not compatible
query I rowsort label-3047
SELECT 26 + + 33 + + - 52 * - - NULLIF ( 33, ( MIN ( ALL ( 38 ) ) ) )
----
-1657

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3048
SELECT ALL - NULLIF ( + COUNT( ALL - CAST( - 46 AS SIGNED ) ), - 26 ) * 13 col2
----
-13

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL - NULLIF ( + COUNT ( ALL - CAST ( - 46 AS INTEGER ) ), - 26 ) * 13 col2
----
-13

query I rowsort
SELECT 32 * + 70
----
2240

query I rowsort
SELECT 35 + + 98
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT DISTINCT MAX( 6 )
----
6

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT MAX ( 6 )
----
6

query II rowsort
SELECT ALL 83 AS col2, - 34 AS col1
----
83
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL - SUM( - 96 ) * - + COUNT( * ) col2
----
-96

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL - SUM ( - 96 ) * - + COUNT ( * ) col2
----
-96

query II rowsort
SELECT DISTINCT + 53 AS col0, 6
----
53
6

query II rowsort
SELECT - - 96 AS col1, 98
----
96
98

query I rowsort
SELECT 40 + + 7 AS col2
----
47

query II rowsort
SELECT - + 73 AS col1, + 34
----
-73
34

query I rowsort
SELECT ALL + 54 + - NULLIF ( - 64, 86 )
----
118

query I rowsort
SELECT ( + 96 ) + - 66
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3060
SELECT - + CAST( + 62 AS SIGNED ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-3060
SELECT - + CAST ( + 62 AS INTEGER ) AS col2
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3061
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 87 AS col0, - CAST( - + ( 35 ) AS SIGNED ) + 62 AS col0
----
NULL
97

skipif mysql # not compatible
query II rowsort label-3061
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 87 AS col0, - CAST ( - + ( 35 ) AS INTEGER ) + 62 AS col0
----
NULL
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3062
SELECT ALL 52 DIV - 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL 52 / - 63 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3063
SELECT DISTINCT + + 60 DIV + 98 + - 43
----
-43

skipif mysql # not compatible
query I rowsort label-3063
SELECT DISTINCT + + 60 / + 98 + - 43
----
-43

query I rowsort
SELECT ALL 79 + - 52
----
27

query I rowsort
SELECT 89 * - 67
----
-5963

query I rowsort
SELECT 35 + + 36
----
71

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

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

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

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

query I rowsort
SELECT ALL + 52 + 87 AS col0
----
139

query I rowsort
SELECT + - 64 * - 84 + + 2 AS col0
----
5378

query I rowsort
SELECT 85 * 29
----
2465

query I rowsort
SELECT ALL 57 - + - COALESCE ( - 63, - 12 ) col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3073
SELECT ALL - MAX( 49 ) AS col0, + 3 * - CAST( NULL AS SIGNED ) - 85 + + + 76
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-3073
SELECT ALL - MAX ( 49 ) AS col0, + 3 * - CAST ( NULL AS INTEGER ) - 85 + + + 76
----
-49
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT ( + 20 ) + SUM( - 74 ) - - - 52 col0
----
-106

skipif mysql # not compatible
query I rowsort label-3074
SELECT ( + 20 ) + SUM ( - 74 ) - - - 52 col0
----
-106

query I rowsort
SELECT DISTINCT 92 - + 71 AS col1
----
21

query I rowsort
SELECT ALL 27 - 38 * - 43
----
1661

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT - MIN( + 27 ) * - COALESCE ( - 99, - SUM( 78 ), + 21 ) + 24 AS col1
----
-2649

skipif mysql # not compatible
query I rowsort label-3077
SELECT - MIN ( + 27 ) * - COALESCE ( - 99, - SUM ( 78 ), + 21 ) + 24 AS col1
----
-2649

onlyif mysql # aggregate syntax: 
query II rowsort label-3078
SELECT COUNT( * ) * - 56 AS col1, 64 * ( + - 7 ) AS col2
----
-56
-448

skipif mysql # not compatible
query II rowsort label-3078
SELECT COUNT ( * ) * - 56 AS col1, 64 * ( + - 7 ) AS col2
----
-56
-448

query I rowsort
SELECT 45 + - 57
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-3080
SELECT DISTINCT + 20 * + + 83 col1, 44 + - + 11 * + - ( - - COALESCE ( - ( + 70 ), 57 ) ) + COUNT( * )
----
1660
-725

skipif mysql # not compatible
query II rowsort label-3080
SELECT DISTINCT + 20 * + + 83 col1, 44 + - + 11 * + - ( - - COALESCE ( - ( + 70 ), 57 ) ) + COUNT ( * )
----
1660
-725

query I rowsort
SELECT ALL - ( - 25 ) * 27
----
675

onlyif mysql # DIV for integer division: 
query I rowsort label-3082
SELECT ( + + ( 47 ) ) DIV + - 31 + - + 87 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-3082
SELECT ( + + ( 47 ) ) / + - 31 + - + 87 AS col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3083
SELECT DISTINCT CASE 73 WHEN - MAX( + 93 ) * - ( 90 ) * + 77 * + 72 THEN - ( + CAST( - 83 AS SIGNED ) ) * - 74 WHEN + 22 + COUNT( * ) THEN NULL WHEN COUNT( * ) * - 72 THEN - 43 / + 35 END * - 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT CASE 73 WHEN - MAX ( + 93 ) * - ( 90 ) * + 77 * + 72 THEN - ( + CAST ( - 83 AS INTEGER ) ) * - 74 WHEN + 22 + COUNT ( * ) THEN NULL WHEN COUNT ( * ) * - 72 THEN - 43 / + 35 END * - 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT ALL 37 * + + 15 * COUNT( * )
----
555

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL 37 * + + 15 * COUNT ( * )
----
555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3085
SELECT ALL + 76 DIV - - 91 AS col2, + CAST( NULL AS SIGNED ) * COALESCE ( + 37, + 68 DIV + SUM( DISTINCT 7 ) DIV - 3 + + 9 DIV 15 ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3085
SELECT ALL + 76 / - - 91 AS col2, + CAST ( NULL AS INTEGER ) * COALESCE ( + 37, + 68 / + SUM ( DISTINCT 7 ) / - 3 + + 9 / 15 ) AS col0
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3086
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + 41 * 72 / 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + 41 * 72 / 94 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3087
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 88 * MAX( DISTINCT + - 46 ) / - MAX( ALL + 92 ) * + 27 * 93 + 44 * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 88 * MAX ( DISTINCT + - 46 ) / - MAX ( ALL + 92 ) * + 27 * 93 + 44 * 96
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3088
SELECT 1 * + 60 - + CASE 3 WHEN + - 18 THEN + - COUNT( * ) * + + 30 WHEN 97 * + CAST( COUNT( * ) * COUNT( * ) AS SIGNED ) THEN + 3 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3088
SELECT 1 * + 60 - + CASE 3 WHEN + - 18 THEN + - COUNT ( * ) * + + 30 WHEN 97 * + CAST ( COUNT ( * ) * COUNT ( * ) AS INTEGER ) THEN + 3 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 25 + - 33 + - 88 * + + 98
----
-8632

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT + 93 * - 24 * SUM( 21 ) AS col1
----
-46872

skipif mysql # not compatible
query I rowsort label-3090
SELECT + 93 * - 24 * SUM ( 21 ) AS col1
----
-46872

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT DISTINCT + MAX( ALL 55 ) + + 38 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT + MAX ( ALL 55 ) + + 38 AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3092
SELECT ALL + + ( CAST( - - 42 AS SIGNED ) ) + + 92 + 21 + + + 2 DIV 58 DIV 91
----
155

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL + + ( CAST ( - - 42 AS INTEGER ) ) + + 92 + 21 + + + 2 / 58 / 91
----
155

query I rowsort
SELECT ALL - 22 + - 56 + - 50 col2
----
-128

query I rowsort
SELECT ALL + + 58 * - + ( 63 ) * - 32
----
116928

query I rowsort
SELECT ALL + 42 + - + 70 * + + 64 col1
----
-4438

query I rowsort
SELECT DISTINCT + 73 * - 69 AS col2
----
-5037

query I rowsort
SELECT DISTINCT - - 45 + + 99 AS col0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT + SUM( + 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-3098
SELECT + SUM ( + 90 ) AS col1
----
90

query I rowsort
SELECT + 83 * + + COALESCE ( - ( + 67 ), 13 ) * - - 91 + - 59 + + 44 * ( + NULLIF ( - 17, - 69 ) ) AS col0
----
-506858

onlyif mysql # DIV for integer division: 
query I rowsort label-3100
SELECT ALL 53 DIV + - 4 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL 53 / + - 4 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT ALL 31 * 56 - COUNT( * ) + COALESCE ( - + 97, + 70 ) AS col2
----
1638

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL 31 * 56 - COUNT ( * ) + COALESCE ( - + 97, + 70 ) AS col2
----
1638

query I rowsort
SELECT + 4 * + + 2 AS col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT ALL + 42 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL + 42 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT ALL + COUNT( DISTINCT - 78 )
----
1

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL + COUNT ( DISTINCT - 78 )
----
1

query II rowsort
SELECT + 38 AS col2, + 63 + 57
----
38
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3107
SELECT COALESCE ( - - 15, 23 * + - ( + 92 ) DIV 84 DIV COUNT( * ) DIV - COUNT( * ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3107
SELECT COALESCE ( - - 15, 23 * + - ( + 92 ) / 84 / COUNT ( * ) / - COUNT ( * ) ) AS col2
----
15

query I rowsort
SELECT + CASE + + 42 WHEN + + 99 - + 70 THEN - + 2 + + 20 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3109
SELECT ALL + 71 AS col1, - 78 DIV 89 AS col1
----
71
0

skipif mysql # not compatible
query II rowsort label-3109
SELECT ALL + 71 AS col1, - 78 / 89 AS col1
----
71
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT CASE - COUNT( * ) WHEN + 44 THEN 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3110
SELECT CASE - COUNT ( * ) WHEN + 44 THEN 13 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT + CASE + COUNT( * ) WHEN 62 THEN NULL WHEN + 80 THEN 22 ELSE - + COALESCE ( + 90, + COUNT( * ) ) + + 6 END
----
-84

skipif mysql # not compatible
query I rowsort label-3111
SELECT + CASE + COUNT ( * ) WHEN 62 THEN NULL WHEN + 80 THEN 22 ELSE - + COALESCE ( + 90, + COUNT ( * ) ) + + 6 END
----
-84

query II rowsort
SELECT DISTINCT + 87 AS col1, 56
----
87
56

query I rowsort
SELECT DISTINCT + 53 * ( - 9 )
----
-477

onlyif mysql # aggregate syntax: 
query II rowsort label-3114
SELECT + 14 * + SUM( - 64 ) AS col0, 29
----
-896
29

skipif mysql # not compatible
query II rowsort label-3114
SELECT + 14 * + SUM ( - 64 ) AS col0, 29
----
-896
29

query II rowsort
SELECT ALL + 90 AS col1, 99 + + 66 AS col0
----
90
165

query I rowsort
SELECT - ( 86 ) * + - 9 + 9 * 3 * 44 * - 91 * - 7 + - 75
----
757455

onlyif mysql # DIV for integer division: 
query I rowsort label-3117
SELECT + CASE - - ( + + 59 ) WHEN + ( 17 ) THEN + 8 + - 39 + + + 42 + + 83 ELSE + 6 DIV 38 END * - 5 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3117
SELECT + CASE - - ( + + 59 ) WHEN + ( 17 ) THEN + 8 + - 39 + + + 42 + + 83 ELSE + 6 / 38 END * - 5 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL + 68 * COUNT( * ) + - 35 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL + 68 * COUNT ( * ) + - 35 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT + MAX( DISTINCT 41 )
----
41

skipif mysql # not compatible
query I rowsort label-3119
SELECT + MAX ( DISTINCT 41 )
----
41

query I rowsort
SELECT ALL 85 + 99
----
184

query I rowsort
SELECT 81 * - 58 + - 38 + - 84 AS col1
----
-4820

query I rowsort
SELECT + 18 * + 15 * + - ( ( - ( + 69 ) ) ) - + 89
----
18541

query I rowsort
SELECT ALL - 37 + + 14 AS col2
----
-23

query I rowsort
SELECT ALL - 26 + + 28
----
2

query I rowsort
SELECT ALL + 46 + + 91 AS col0
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-3126
SELECT + - 40 * - 76 * - 35 + + + 12 AS col1, 44 * + ( + + COALESCE ( + - 71, MIN( DISTINCT 39 ) ) )
----
-106388
-3124

skipif mysql # not compatible
query II rowsort label-3126
SELECT + - 40 * - 76 * - 35 + + + 12 AS col1, 44 * + ( + + COALESCE ( + - 71, MIN ( DISTINCT 39 ) ) )
----
-106388
-3124

query I rowsort
SELECT ALL 74 * + 44 AS col0
----
3256

query I rowsort
SELECT - + 66 + - 55 AS col2
----
-121

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

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

query II rowsort
SELECT - - 28 col0, - 43 * - + 93
----
28
3999

query II rowsort
SELECT - - 59 AS col1, - 2 * COALESCE ( - 5, + - 2 ) + + 51 AS col2
----
59
61

query I rowsort
SELECT + 84 * 57 * + 91
----
435708

query I rowsort
SELECT DISTINCT + + 80 * + NULLIF ( 11, - 85 )
----
880

query II rowsort
SELECT DISTINCT - 56 AS col0, 58 AS col1
----
-56
58

query I rowsort
SELECT ALL NULLIF ( - ( - - 37 ), - COALESCE ( - - 13, - 98 ) )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT 38 * - 76 * - COUNT( * ) + + 78 AS col1
----
2966

skipif mysql # not compatible
query I rowsort label-3136
SELECT 38 * - 76 * - COUNT ( * ) + + 78 AS col1
----
2966

onlyif mysql # DIV for integer division: 
query I rowsort label-3137
SELECT - 44 DIV - + 8
----
5

skipif mysql # not compatible
query I rowsort label-3137
SELECT - 44 / - + 8
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT + MIN( 14 ) * COUNT( * ) * 57 * - - COUNT( * ) + - ( - 9 ) AS col2
----
807

skipif mysql # not compatible
query I rowsort label-3138
SELECT + MIN ( 14 ) * COUNT ( * ) * 57 * - - COUNT ( * ) + - ( - 9 ) AS col2
----
807

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3140
SELECT - CASE + 70 WHEN - COUNT( * ) THEN + - 26 ELSE MIN( ALL 96 ) END DIV + 30 + + - 19 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-3140
SELECT - CASE + 70 WHEN - COUNT ( * ) THEN + - 26 ELSE MIN ( ALL 96 ) END / + 30 + + - 19 AS col2
----
-22

query I rowsort
SELECT + 83 * + - 11 - + CASE + 48 WHEN + 20 THEN NULL WHEN + + ( - 49 ) + + 59 - - - 36 + 6 * 47 / + 98 THEN 95 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT + 26 * + - 3 * COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-3142
SELECT + 26 * + - 3 * COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT - 38 + COUNT( - + ( + 70 ) ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-3143
SELECT - 38 + COUNT ( - + ( + 70 ) ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT ALL + MIN( DISTINCT + + ( - + 28 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL + MIN ( DISTINCT + + ( - + 28 ) )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-3145
SELECT ALL 7 DIV + 45 + + - 46
----
-46

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL 7 / + 45 + + - 46
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3146
SELECT - 32 + 59, + 8 * - CAST( - 17 AS SIGNED ) AS col1
----
27
136

skipif mysql # not compatible
query II rowsort label-3146
SELECT - 32 + 59, + 8 * - CAST ( - 17 AS INTEGER ) AS col1
----
27
136

onlyif mysql # aggregate syntax: 
query II rowsort label-3147
SELECT ALL + 40 * + 16 * 28 + - - MIN( - 28 ) col2, 27 AS col1
----
17892
27

skipif mysql # not compatible
query II rowsort label-3147
SELECT ALL + 40 * + 16 * 28 + - - MIN ( - 28 ) col2, 27 AS col1
----
17892
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3148
SELECT DISTINCT + ( COALESCE ( - + 53, + 57, - ( COUNT( ALL - 99 ) ) DIV + COUNT( * ) * - NULLIF ( 97, 20 * 78 ) ) ) * 16 + 91 AS col1
----
-757

skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT + ( COALESCE ( - + 53, + 57, - ( COUNT ( ALL - 99 ) ) / + COUNT ( * ) * - NULLIF ( 97, 20 * 78 ) ) ) * 16 + 91 AS col1
----
-757

query II rowsort
SELECT ( + + 49 ), 10 AS col0
----
49
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3150
SELECT - 78 DIV CAST( CAST( + - 99 AS SIGNED ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3150
SELECT - 78 / CAST ( CAST ( + - 99 AS INTEGER ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3151
SELECT ALL + COUNT( * ) * + MIN( ALL - CAST( NULL AS SIGNED ) ) + + 68 * - ( CASE 55 WHEN - SUM( - 10 ) THEN + 97 ELSE 88 - COUNT( * ) * + COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL + COUNT ( * ) * + MIN ( ALL - CAST ( NULL AS INTEGER ) ) + + 68 * - ( CASE 55 WHEN - SUM ( - 10 ) THEN + 97 ELSE 88 - COUNT ( * ) * + COUNT ( * ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT + MAX( DISTINCT 99 )
----
99

skipif mysql # not compatible
query I rowsort label-3152
SELECT + MAX ( DISTINCT 99 )
----
99

query I rowsort
SELECT DISTINCT 84 * + 5 * 16 AS col1
----
6720

query I rowsort
SELECT + - 30 + 41 - + - 42 col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT DISTINCT + 39 * + + 53 + + + COUNT( * ) + - 66
----
2002

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT + 39 * + + 53 + + + COUNT ( * ) + - 66
----
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT ALL 95 * - 24 + - NULLIF ( - ( MIN( 87 ) ), + 74 ) + + + 27 AS col2
----
-2166

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL 95 * - 24 + - NULLIF ( - ( MIN ( 87 ) ), + 74 ) + + + 27 AS col2
----
-2166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3157
SELECT DISTINCT COUNT( - 74 ) * + ( - CAST( - 56 AS SIGNED ) ) / - COUNT( * ) - + 44 + 49 - - - CASE + COUNT( ALL - 45 ) WHEN - 52 THEN 86 END * + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT COUNT ( - 74 ) * + ( - CAST ( - 56 AS INTEGER ) ) / - COUNT ( * ) - + 44 + 49 - - - CASE + COUNT ( ALL - 45 ) WHEN - 52 THEN 86 END * + 5 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT ALL ( - 14 ) - COUNT( + - 70 )
----
-15

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL ( - 14 ) - COUNT ( + - 70 )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3159
SELECT + CASE + - 36 WHEN + - 70 THEN - 48 + CAST( + CASE + + 41 WHEN + 50 / + 76 * ( MAX( ALL + 53 ) ) - 29 THEN + COUNT( * ) WHEN 89 * + CAST( NULL AS SIGNED ) THEN + 88 * - ( 61 * 90 ) ELSE NULL END AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT + CASE + - 36 WHEN + - 70 THEN - 48 + CAST ( + CASE + + 41 WHEN + 50 / + 76 * ( MAX ( ALL + 53 ) ) - 29 THEN + COUNT ( * ) WHEN 89 * + CAST ( NULL AS INTEGER ) THEN + 88 * - ( 61 * 90 ) ELSE NULL END AS REAL ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3160
SELECT 74 - 78 + + + CASE + CAST( NULL AS SIGNED ) WHEN - 56 THEN NULL WHEN + + 25 * - 84 THEN - CAST( + 4 AS SIGNED ) END - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3160
SELECT 74 - 78 + + + CASE + CAST ( NULL AS INTEGER ) WHEN - 56 THEN NULL WHEN + + 25 * - 84 THEN - CAST ( + 4 AS INTEGER ) END - 23
----
NULL

query I rowsort
SELECT + 38 * - 59 AS col0
----
-2242

query I rowsort
SELECT ALL + 23 * + - 26 + 52
----
-546

query I rowsort
SELECT DISTINCT - 90 * 87 AS col2
----
-7830

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL SUM( ALL CASE - 5 WHEN NULLIF ( - + 2, + + 61 ) THEN - 6 * 23 WHEN - 51 * - 34 THEN NULL ELSE NULL END ) * - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL SUM ( ALL CASE - 5 WHEN NULLIF ( - + 2, + + 61 ) THEN - 6 * 23 WHEN - 51 * - 34 THEN NULL ELSE NULL END ) * - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT 43 * + 77 * - 21 * - + COUNT( * )
----
69531

skipif mysql # not compatible
query I rowsort label-3165
SELECT 43 * + 77 * - 21 * - + COUNT ( * )
----
69531

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT ALL COUNT( - 41 ) * + COUNT( DISTINCT - 13 ) * - CASE + COUNT( * ) WHEN - + 41 + - NULLIF ( + 62, 69 ) * 85 THEN 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL COUNT ( - 41 ) * + COUNT ( DISTINCT - 13 ) * - CASE + COUNT ( * ) WHEN - + 41 + - NULLIF ( + 62, 69 ) * 85 THEN 11 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3167
SELECT DISTINCT - COALESCE ( + ( 40 ), - - 74 + - - 17 + COALESCE ( + 98, 23 * 51 + + 74 * - 78 ) + COUNT( DISTINCT + 50 ) DIV - CAST( NULL AS SIGNED ) ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT - COALESCE ( + ( 40 ), - - 74 + - - 17 + COALESCE ( + 98, 23 * 51 + + 74 * - 78 ) + COUNT ( DISTINCT + 50 ) / - CAST ( NULL AS INTEGER ) ) AS col1
----
-40

query I rowsort
SELECT DISTINCT + 71 * + 93
----
6603

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT 26 + NULLIF ( COUNT( ALL 41 ), 32 * 83 + - + 99 ) * - - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-3169
SELECT 26 + NULLIF ( COUNT ( ALL 41 ), 32 * 83 + - + 99 ) * - - COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3170
SELECT - 78, - CASE - + 69 WHEN + - 96 + 83 THEN - COUNT( * ) + 41 * - CASE - 97 WHEN + 48 + 39 THEN 72 ELSE NULL END ELSE 13 END AS col0
----
-78
-13

skipif mysql # not compatible
query II rowsort label-3170
SELECT - 78, - CASE - + 69 WHEN + - 96 + 83 THEN - COUNT ( * ) + 41 * - CASE - 97 WHEN + 48 + 39 THEN 72 ELSE NULL END ELSE 13 END AS col0
----
-78
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT ( 87 ) * - - 27 * + ( + 38 ) + - COUNT( * ) * - 84 + 94
----
89440

skipif mysql # not compatible
query I rowsort label-3171
SELECT ( 87 ) * - - 27 * + ( + 38 ) + - COUNT ( * ) * - 84 + 94
----
89440

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( + - 30, + 79 ) * - 12 col2
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT ALL COUNT( * ) + 89
----
90

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL COUNT ( * ) + 89
----
90

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

query I rowsort
SELECT DISTINCT + CASE + 22 WHEN ( + 25 ) THEN 35 * 14 END + + 30 AS col1
----
NULL

query I rowsort
SELECT ALL - 7 + - 81
----
-88

query I rowsort
SELECT - 84 * - ( 7 ) - + 7 AS col1
----
581

query I rowsort
SELECT DISTINCT - NULLIF ( 75, + 71 - + 57 ) AS col1
----
-75

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

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

query I rowsort
SELECT DISTINCT + 37 + - - 1
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-3182
SELECT MIN( ALL ( - 25 ) ) * + 29 - + 15 AS col1, 23
----
-740
23

skipif mysql # not compatible
query II rowsort label-3182
SELECT MIN ( ALL ( - 25 ) ) * + 29 - + 15 AS col1, 23
----
-740
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3183
SELECT + CAST( NULL AS SIGNED ) * - ( + 20 ) * - COALESCE ( + 40, - 37 ) + 70 * + - 72 + + 21 - + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT + CAST ( NULL AS INTEGER ) * - ( + 20 ) * - COALESCE ( + 40, - 37 ) + 70 * + - 72 + + 21 - + 98
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT - 77 * - 23 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3184
SELECT - 77 * - 23 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3185
SELECT ALL - + 76 DIV - - 10
----
-7

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL - + 76 / - - 10
----
-7

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

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

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

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL + COUNT ( * ) - COUNT ( * ) * - + 98 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT - MIN( - 39 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-3188
SELECT - MIN ( - 39 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-3189
SELECT + SUM( ALL + NULLIF ( + - 9, + 42 ) ) + + 91, - 85 * - 81 AS col2
----
82
6885

skipif mysql # not compatible
query II rowsort label-3189
SELECT + SUM ( ALL + NULLIF ( + - 9, + 42 ) ) + + 91, - 85 * - 81 AS col2
----
82
6885

query II rowsort
SELECT ALL - 30 AS col0, + 3
----
-30
3

query I rowsort
SELECT 19 * + 0
----
0

query I rowsort
SELECT ALL - - 96 * 10
----
960

onlyif mysql # DIV for integer division: 
query I rowsort label-3193
SELECT - 2 * 68 * 7 DIV 83
----
-11

skipif mysql # not compatible
query I rowsort label-3193
SELECT - 2 * 68 * 7 / 83
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3194
SELECT 58 + - - COALESCE ( + - 35, - 53 + - MAX( ALL + CASE + 22 WHEN + 49 THEN 21 END ) * + + 74, - ( 67 ), - CAST( 26 AS SIGNED ) + - 62 ) + - 93 col2
----
-70

skipif mysql # not compatible
query I rowsort label-3194
SELECT 58 + - - COALESCE ( + - 35, - 53 + - MAX ( ALL + CASE + 22 WHEN + 49 THEN 21 END ) * + + 74, - ( 67 ), - CAST ( 26 AS INTEGER ) + - 62 ) + - 93 col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT + MIN( ALL + 67 ) col0
----
67

skipif mysql # not compatible
query I rowsort label-3195
SELECT + MIN ( ALL + 67 ) col0
----
67

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

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

query I rowsort
SELECT ALL - ( - + 3 )
----
3

query II rowsort
SELECT 36 * - + 65, - 85 AS col0
----
-2340
-85

query I rowsort
SELECT ALL 80 + - 91
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-3200
SELECT 56 AS col0, CASE - AVG ( ALL 35 ) WHEN + ( + 93 ) * - + 4 + - - 53 + - + MAX( + ( 8 ) ) * 81 THEN + 58 - - 58 WHEN + 57 THEN NULL END * - 50
----
56
NULL

skipif mysql # not compatible
query II rowsort label-3200
SELECT 56 AS col0, CASE - AVG ( ALL 35 ) WHEN + ( + 93 ) * - + 4 + - - 53 + - + MAX ( + ( 8 ) ) * 81 THEN + 58 - - 58 WHEN + 57 THEN NULL END * - 50
----
56
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3202
SELECT ALL - 20 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL - 20 / 72
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3203
SELECT 26 / CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3203
SELECT 26 / CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3204
SELECT DISTINCT 62 * + ( 2 ) DIV - COUNT( DISTINCT - - 56 ) AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-3204
SELECT DISTINCT 62 * + ( 2 ) / - COUNT ( DISTINCT - - 56 ) AS col1
----
-124

query I rowsort
SELECT DISTINCT 68 + + 4 * + + 37 + + ( + 83 )
----
299

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3206
SELECT DISTINCT COUNT( * ) + + 99 DIV - 7 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-3206
SELECT DISTINCT COUNT ( * ) + + 99 / - 7 AS col1
----
-13

query I rowsort
SELECT ALL 73 * - 86 AS col2
----
-6278

query I rowsort
SELECT 61 * - 10 * + + 0 * COALESCE ( + 5, + 61 * - 20 + + 44 )
----
0

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

skipif mysql # not compatible
query II rowsort label-3209
SELECT COUNT ( * ) AS col2, 33 AS col1
----
1
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT NULLIF ( - 95, + 29 - 60 ) * + - COUNT( * ) - 11 + + + 1 + - COUNT( * ) * + + 24 - + NULLIF ( + - 98, - 60 * 51 ) AS col2
----
159

skipif mysql # not compatible
query I rowsort label-3211
SELECT NULLIF ( - 95, + 29 - 60 ) * + - COUNT ( * ) - 11 + + + 1 + - COUNT ( * ) * + + 24 - + NULLIF ( + - 98, - 60 * 51 ) AS col2
----
159

query II rowsort
SELECT DISTINCT - 92 AS col2, + 99 AS col1
----
-92
99

query I rowsort
SELECT ALL 54 * - 16 - 89 AS col2
----
-953

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT ALL - MAX( - 24 ) * - 44 AS col1
----
-1056

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL - MAX ( - 24 ) * - 44 AS col1
----
-1056

onlyif mysql # aggregate syntax: 
query II rowsort label-3215
SELECT + 22 AS col1, - 75 * + COUNT( * )
----
22
-75

skipif mysql # not compatible
query II rowsort label-3215
SELECT + 22 AS col1, - 75 * + COUNT ( * )
----
22
-75

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

query I rowsort
SELECT DISTINCT 61 * + 88 - + 91
----
5277

onlyif mysql # aggregate syntax: 
query II rowsort label-3218
SELECT + + COUNT( * ) AS col1, + COUNT( * ) * 51 + - 21
----
1
30

skipif mysql # not compatible
query II rowsort label-3218
SELECT + + COUNT ( * ) AS col1, + COUNT ( * ) * 51 + - 21
----
1
30

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

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

query I rowsort
SELECT + 23 * - - 50 col2
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT + COALESCE ( COUNT( * ), + - 98 * + 35, - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-3221
SELECT + COALESCE ( COUNT ( * ), + - 98 * + 35, - 71 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3222
SELECT - - 3 + - MAX( - + 92 ) + - COUNT( * ) * - - 89 - + 62 AS col2, + 68
----
-56
68

skipif mysql # not compatible
query II rowsort label-3222
SELECT - - 3 + - MAX ( - + 92 ) + - COUNT ( * ) * - - 89 - + 62 AS col2, + 68
----
-56
68

query II rowsort
SELECT + + 11, 48 AS col1
----
11
48

query II rowsort
SELECT DISTINCT + + 85 col1, 15 + - 94 AS col2
----
85
-79

query II rowsort
SELECT ALL + 44 AS col1, 6
----
44
6

query II rowsort
SELECT - 55, - ( - 38 ) AS col0
----
-55
38

query I rowsort
SELECT - 77 * + - 72 AS col1
----
5544

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3228
SELECT DISTINCT + 8 AS col1, - ( CAST( + CAST( + - 63 AS SIGNED ) AS SIGNED ) ) DIV 41 AS col2
----
8
1

skipif mysql # not compatible
query II rowsort label-3228
SELECT DISTINCT + 8 AS col1, - ( CAST ( + CAST ( + - 63 AS INTEGER ) AS INTEGER ) ) / 41 AS col2
----
8
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3229
SELECT ALL + 40 * 21 + + 26 + - 69 * CAST( - + COUNT( * ) AS SIGNED ) AS col2
----
935

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL + 40 * 21 + + 26 + - 69 * CAST ( - + COUNT ( * ) AS INTEGER ) AS col2
----
935

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT ALL - CASE 97 WHEN COUNT( * ) * + 39 THEN - 82 WHEN 26 THEN - 90 * + - 63 + 22 + - - 19 - + NULLIF ( - COUNT( ALL + 57 ), 0 * 1 - - 45 ) + - COUNT( - 32 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL - CASE 97 WHEN COUNT ( * ) * + 39 THEN - 82 WHEN 26 THEN - 90 * + - 63 + 22 + - - 19 - + NULLIF ( - COUNT ( ALL + 57 ), 0 * 1 - - 45 ) + - COUNT ( - 32 ) ELSE NULL END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3232
SELECT - 39 * - - 95 + + COUNT( + 86 ) * - COUNT( * ) DIV + 64
----
-3705

skipif mysql # not compatible
query I rowsort label-3232
SELECT - 39 * - - 95 + + COUNT ( + 86 ) * - COUNT ( * ) / + 64
----
-3705

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT - - 2 * + 53 * + + 33 + - 50 + 46 + + 53 - + 35 + - 14 * - 4 * + COALESCE ( + 52, MIN( ALL 63 ) ) - 19 * - 40
----
7184

skipif mysql # not compatible
query I rowsort label-3233
SELECT - - 2 * + 53 * + + 33 + - 50 + 46 + + 53 - + 35 + - 14 * - 4 * + COALESCE ( + 52, MIN ( ALL 63 ) ) - 19 * - 40
----
7184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3234
SELECT ALL + - CAST( NULL AS SIGNED ) + - 0 + - 75 * 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL + - CAST ( NULL AS INTEGER ) + - 0 + - 75 * 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3235
SELECT ALL - ( NULLIF ( + 38, - COUNT( * ) + + 77 * + COUNT( * ) * 81 ) ) + - ( 3 ), - COUNT( * ) * + 13 AS col1
----
-41
-13

skipif mysql # not compatible
query II rowsort label-3235
SELECT ALL - ( NULLIF ( + 38, - COUNT ( * ) + + 77 * + COUNT ( * ) * 81 ) ) + - ( 3 ), - COUNT ( * ) * + 13 AS col1
----
-41
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT - 66 - + 25 + MAX( ALL - + 72 ) + - 2 + + - 80 + 25 AS col2
----
-220

skipif mysql # not compatible
query I rowsort label-3236
SELECT - 66 - + 25 + MAX ( ALL - + 72 ) + - 2 + + - 80 + 25 AS col2
----
-220

onlyif mysql # aggregate syntax: 
query II rowsort label-3237
SELECT DISTINCT 74 + - 48 AS col0, - COUNT( CASE - 25 WHEN - 89 THEN NULL WHEN + - 66 THEN - 12 END ) AS col1
----
26
0

skipif mysql # not compatible
query II rowsort label-3237
SELECT DISTINCT 74 + - 48 AS col0, - COUNT ( CASE - 25 WHEN - 89 THEN NULL WHEN + - 66 THEN - 12 END ) AS col1
----
26
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT ALL + 80 + COALESCE ( - COUNT( * ), COUNT( * ) * 41 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL + 80 + COALESCE ( - COUNT ( * ), COUNT ( * ) * 41 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT ALL - 16 * + - MIN( - 7 )
----
-112

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL - 16 * + - MIN ( - 7 )
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3240
SELECT ALL 27 + 12 DIV COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL 27 + 12 / COUNT ( * ) AS col1
----
39

query I rowsort
SELECT DISTINCT + 44 + 57 + 78
----
179

query II rowsort
SELECT + 85 + + 59, 60 AS col2
----
144
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT - COALESCE ( - - NULLIF ( 3, - - CASE 60 WHEN + + COALESCE ( ( 21 ), 43, - - COUNT( * ) ) * + + 8 + - + 62 + 34 - COUNT( DISTINCT 7 + + 77 ) THEN NULL ELSE 16 END ), + 34 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3243
SELECT - COALESCE ( - - NULLIF ( 3, - - CASE 60 WHEN + + COALESCE ( ( 21 ), 43, - - COUNT ( * ) ) * + + 8 + - + 62 + 34 - COUNT ( DISTINCT 7 + + 77 ) THEN NULL ELSE 16 END ), + 34 ) AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3244
SELECT ALL 26 + + 63, - 12 + + ( - ( CAST( 25 AS SIGNED ) ) ) * - 35 + - + SUM( ALL - + 37 ) * + - ( 32 ) + 18 AS col2
----
89
-303

skipif mysql # not compatible
query II rowsort label-3244
SELECT ALL 26 + + 63, - 12 + + ( - ( CAST ( 25 AS INTEGER ) ) ) * - 35 + - + SUM ( ALL - + 37 ) * + - ( 32 ) + 18 AS col2
----
89
-303

onlyif mysql # DIV for integer division: 
query II rowsort label-3245
SELECT + 8 + - 16 AS col2, - 2 DIV - 65 AS col2
----
-8
0

skipif mysql # not compatible
query II rowsort label-3245
SELECT + 8 + - 16 AS col2, - 2 / - 65 AS col2
----
-8
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3246
SELECT DISTINCT + ( + 2 ) DIV + 26 * + 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3246
SELECT DISTINCT + ( + 2 ) / + 26 * + 38 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3247
SELECT + COALESCE ( - CAST( NULL AS SIGNED ), 49 ) * + - 20 AS col1
----
-980

skipif mysql # not compatible
query I rowsort label-3247
SELECT + COALESCE ( - CAST ( NULL AS INTEGER ), 49 ) * + - 20 AS col1
----
-980

query II rowsort
SELECT ALL 7 * + + 32 AS col0, + 76 AS col1
----
224
76

query I rowsort
SELECT DISTINCT 25 * + NULLIF ( - 58, + 12 ) AS col2
----
-1450

onlyif mysql # DIV for integer division: 
query I rowsort label-3250
SELECT + 98 * CASE 38 WHEN + 41 THEN 70 ELSE 46 END DIV COALESCE ( 81, + + 84 + + + ( + + AVG ( - - 0 ) ) * 23 ) DIV 21 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3250
SELECT + 98 * CASE 38 WHEN + 41 THEN 70 ELSE 46 END / COALESCE ( 81, + + 84 + + + ( + + AVG ( - - 0 ) ) * 23 ) / 21 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT DISTINCT + NULLIF ( + - 18, - COUNT( ALL + 69 ) + MIN( ALL 55 ) * - 16 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT + NULLIF ( + - 18, - COUNT ( ALL + 69 ) + MIN ( ALL 55 ) * - 16 ) AS col0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3252
SELECT + 21 - 19 + 67 DIV - 30 - + - 94 + COUNT( * ) * 71 AS col2
----
165

skipif mysql # not compatible
query I rowsort label-3252
SELECT + 21 - 19 + 67 / - 30 - + - 94 + COUNT ( * ) * 71 AS col2
----
165

query I rowsort
SELECT - - 16 * + 51 col2
----
816

query I rowsort
SELECT + COALESCE ( + 62, + 33 ) col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT DISTINCT + MAX( 66 ) col0
----
66

skipif mysql # not compatible
query I rowsort label-3255
SELECT DISTINCT + MAX ( 66 ) col0
----
66

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3257
SELECT - CASE + - 4 WHEN 64 THEN - + CAST( NULL AS SIGNED ) * - NULLIF ( - + CASE - 86 WHEN - - 42 THEN - 48 * - 36 - - 69 + 92 ELSE NULL END, + COUNT( * ) * ( + 32 ) + 64 ) + + NULLIF ( - ( COUNT( * ) ) + + MAX( CAST( NULL AS SIGNED ) ) * 16, 32 ) ELSE - NULLIF ( 9, 90 * SUM( 78 ) + ( - SUM( ALL - 2 ) ) / 87 ) END - COUNT( * ) * COUNT( DISTINCT + 36 * - 19 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-3257
SELECT - CASE + - 4 WHEN 64 THEN - + CAST ( NULL AS INTEGER ) * - NULLIF ( - + CASE - 86 WHEN - - 42 THEN - 48 * - 36 - - 69 + 92 ELSE NULL END, + COUNT ( * ) * ( + 32 ) + 64 ) + + NULLIF ( - ( COUNT ( * ) ) + + MAX ( CAST ( NULL AS INTEGER ) ) * 16, 32 ) ELSE - NULLIF ( 9, 90 * SUM ( 78 ) + ( - SUM ( ALL - 2 ) ) / 87 ) END - COUNT ( * ) * COUNT ( DISTINCT + 36 * - 19 ) AS col2
----
8

query I rowsort
SELECT ALL 54 * - 36 AS col2
----
-1944

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT DISTINCT + + MIN( 44 )
----
44

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT + + MIN ( 44 )
----
44

query I rowsort
SELECT DISTINCT + - ( + - 53 ) * - 13 * + 71 + ( + 85 ) + - 76 * + + 16
----
-50050

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT ALL - + 4 * - 43 + + ( - + CASE + - COUNT( + 28 ) WHEN + 60 THEN COUNT( ALL 27 ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL - + 4 * - 43 + + ( - + CASE + - COUNT ( + 28 ) WHEN + 60 THEN COUNT ( ALL 27 ) ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3262
SELECT DISTINCT + 48 + - CASE 91 WHEN + CASE + 76 WHEN COUNT( + 55 ) THEN MIN( - 37 ) + MIN( DISTINCT + - 91 ) / + - MIN( ALL - + ( 17 ) ) WHEN 26 THEN NULL ELSE CAST( NULL AS SIGNED ) / 40 + 50 * 35 END THEN NULL ELSE + NULLIF ( COUNT( * ), 40 + 4 * + 55 ) - - 51 END
----
-4

skipif mysql # not compatible
query I rowsort label-3262
SELECT DISTINCT + 48 + - CASE 91 WHEN + CASE + 76 WHEN COUNT ( + 55 ) THEN MIN ( - 37 ) + MIN ( DISTINCT + - 91 ) / + - MIN ( ALL - + ( 17 ) ) WHEN 26 THEN NULL ELSE CAST ( NULL AS INTEGER ) / 40 + 50 * 35 END THEN NULL ELSE + NULLIF ( COUNT ( * ), 40 + 4 * + 55 ) - - 51 END
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT ALL - 93 + - ( COALESCE ( - 2, - 35 + + + 15 ) ) * + + 83 + ( + 68 ) + 68 * + - COUNT( * ) + 98 AS col2
----
171

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL - 93 + - ( COALESCE ( - 2, - 35 + + + 15 ) ) * + + 83 + ( + 68 ) + 68 * + - COUNT ( * ) + 98 AS col2
----
171

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

skipif mysql # not compatible
query I rowsort label-3264
SELECT + 62 / 76
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3265
SELECT ALL + ( COUNT( * ) ) DIV - 38 - CASE - + 40 WHEN - 0 THEN NULL WHEN - 15 + + + 26 THEN NULL WHEN 87 THEN + 42 DIV + ( + 37 ) * + + ( 14 ) + 56 ELSE 86 - - 76 END AS col0
----
-162

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL + ( COUNT ( * ) ) / - 38 - CASE - + 40 WHEN - 0 THEN NULL WHEN - 15 + + + 26 THEN NULL WHEN 87 THEN + 42 / + ( + 37 ) * + + ( 14 ) + 56 ELSE 86 - - 76 END AS col0
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3266
SELECT 46, ( 59 ) + - CAST( ( 70 ) AS SIGNED ) AS col0
----
46
-11

skipif mysql # not compatible
query II rowsort label-3266
SELECT 46, ( 59 ) + - CAST ( ( 70 ) AS INTEGER ) AS col0
----
46
-11

query I rowsort
SELECT ALL + 31 - + 13
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3268
SELECT - COALESCE ( + - 25, + - COUNT( * ) + + 18, + - 72 * + 48 - - 48, 60 ) DIV 38 AS col2, 40
----
0
40

skipif mysql # not compatible
query II rowsort label-3268
SELECT - COALESCE ( + - 25, + - COUNT ( * ) + + 18, + - 72 * + 48 - - 48, 60 ) / 38 AS col2, 40
----
0
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3269
SELECT - 49 + + COUNT( * ) DIV + - 26 AS col0, COUNT( * ) AS col0
----
-49
1

skipif mysql # not compatible
query II rowsort label-3269
SELECT - 49 + + COUNT ( * ) / + - 26 AS col0, COUNT ( * ) AS col0
----
-49
1

query I rowsort
SELECT - 8 * + 21
----
-168

query I rowsort
SELECT ALL + 58 * + + 54 * 87
----
272484

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3272
SELECT - COUNT( * ) AS col2, 49 DIV 41 * - 3 + - 75 - + 1
----
-1
-79

skipif mysql # not compatible
query II rowsort label-3272
SELECT - COUNT ( * ) AS col2, 49 / 41 * - 3 + - 75 - + 1
----
-1
-79

query I rowsort
SELECT DISTINCT + 68 * + - 24 AS col1
----
-1632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3274
SELECT SUM( DISTINCT - - 56 ) * + 77 * CAST( NULL AS SIGNED ) / - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3274
SELECT SUM ( DISTINCT - - 56 ) * + 77 * CAST ( NULL AS INTEGER ) / - 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3275
SELECT COUNT( ALL + + CAST( NULL AS SIGNED ) ) + - - 14 + - 70 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-3275
SELECT COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) + - - 14 + - 70 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-3276
SELECT 56, + COUNT( - - 42 ) * - 3 + 68 AS col0
----
56
65

skipif mysql # not compatible
query II rowsort label-3276
SELECT 56, + COUNT ( - - 42 ) * - 3 + 68 AS col0
----
56
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT 95 + + COUNT( - 90 )
----
96

skipif mysql # not compatible
query I rowsort label-3277
SELECT 95 + + COUNT ( - 90 )
----
96

query I rowsort
SELECT + 92 + + + 47
----
139

query I rowsort
SELECT + 48 * + 15 - + 57 + 84 col2
----
747

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3280
SELECT + CAST( 23 AS SIGNED ) - + 67 AS col1, - 21
----
-44
-21

skipif mysql # not compatible
query II rowsort label-3280
SELECT + CAST ( 23 AS INTEGER ) - + 67 AS col1, - 21
----
-44
-21

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

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL - - SUM ( - 87 )
----
-87

query I rowsort
SELECT ALL + ( 80 ) * - + 27 * - 9 col0
----
19440

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT + 32 + ( - 85 ) + COUNT( * ) * + 27 * + + 70
----
1837

skipif mysql # not compatible
query I rowsort label-3283
SELECT + 32 + ( - 85 ) + COUNT ( * ) * + 27 * + + 70
----
1837

query I rowsort
SELECT DISTINCT - - 81 AS col0
----
81

query I rowsort
SELECT - 60 * - 42 * - 52 + - 1 + - 40 + + - 60 AS col0
----
-131141

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT ALL ( + - 78 ) * - + NULLIF ( 88, + + 94 ) - SUM( 9 ) + + CASE - ( - 12 ) WHEN + 43 * - SUM( DISTINCT + 44 ) - + 23 + CASE - 10 WHEN 74 * COUNT( * ) THEN - 42 ELSE 95 END * 1 THEN 39 * - 67 + - COUNT( - ( 32 ) ) / 22 END * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL ( + - 78 ) * - + NULLIF ( 88, + + 94 ) - SUM ( 9 ) + + CASE - ( - 12 ) WHEN + 43 * - SUM ( DISTINCT + 44 ) - + 23 + CASE - 10 WHEN 74 * COUNT ( * ) THEN - 42 ELSE 95 END * 1 THEN 39 * - 67 + - COUNT ( - ( 32 ) ) / 22 END * - 34
----
NULL

query I rowsort
SELECT - 99 * - 30 AS col2
----
2970

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT - + 56 * - 50 + - ( + 97 ) - + + 77 + 40 * ( COUNT( * ) ) - 75 + + + 49 AS col2
----
2640

skipif mysql # not compatible
query I rowsort label-3289
SELECT - + 56 * - 50 + - ( + 97 ) - + + 77 + 40 * ( COUNT ( * ) ) - 75 + + + 49 AS col2
----
2640

query I rowsort
SELECT ALL 43 * - 58 * + 72 + 76 AS col1
----
-179492

query I rowsort
SELECT - 12 * + - 74
----
888

query I rowsort
SELECT - 82 + - + 73 - + 29 * 14 * 88 + + 81 * - 20
----
-37503

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT ( - MIN( DISTINCT 11 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-3293
SELECT ( - MIN ( DISTINCT 11 ) )
----
-11

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

query I rowsort
SELECT 43 * + 41 + + 15 AS col0
----
1778

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

skipif mysql # not compatible
query I rowsort label-3296
SELECT + COUNT ( * ) * + - MAX ( - 5 ) AS col0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3297
SELECT ALL - 63 DIV - + 94 - - 31 * COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL - 63 / - + 94 - - 31 * COUNT ( * ) AS col1
----
31

query I rowsort
SELECT DISTINCT 14 + + 79
----
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT ALL - 19 + + + COUNT( * ) + - 44 * + + 91 * + 37 * + 43 + - CASE - 24 WHEN - + CASE - 96 WHEN - - 28 THEN MAX( DISTINCT - + 59 ) ELSE + 16 * + 25 END THEN - 76 * + 74 + 32 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL - 19 + + + COUNT ( * ) + - 44 * + + 91 * + 37 * + 43 + - CASE - 24 WHEN - + CASE - 96 WHEN - - 28 THEN MAX ( DISTINCT - + 59 ) ELSE + 16 * + 25 END THEN - 76 * + 74 + 32 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3301
SELECT DISTINCT - MAX( ALL + ( + 48 ) ), + 75 + + - 70 * 16 AS col1
----
-48
-1045

skipif mysql # not compatible
query II rowsort label-3301
SELECT DISTINCT - MAX ( ALL + ( + 48 ) ), + 75 + + - 70 * 16 AS col1
----
-48
-1045

query I rowsort
SELECT ALL + 62 + - + 50
----
12

query I rowsort
SELECT ( + 92 ) * + - 36 * + + 52 AS col1
----
-172224

query I rowsort
SELECT ( + - 43 ) * + 73 - 21 AS col0
----
-3160

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT COUNT( * ) - + + 69
----
-68

skipif mysql # not compatible
query I rowsort label-3305
SELECT COUNT ( * ) - + + 69
----
-68

query I rowsort
SELECT 60 * - 36
----
-2160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3307
SELECT DISTINCT + 81 - 34 + + + CASE + + COUNT( * ) WHEN - 12 THEN + COUNT( * ) ELSE NULL END * + 25 AS col0, + 74 DIV - - 27 DIV COUNT( * )
----
NULL
2

skipif mysql # not compatible
query II rowsort label-3307
SELECT DISTINCT + 81 - 34 + + + CASE + + COUNT ( * ) WHEN - 12 THEN + COUNT ( * ) ELSE NULL END * + 25 AS col0, + 74 / - - 27 / COUNT ( * )
----
NULL
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3308
SELECT 50 * + - 29 * - COALESCE ( - 53, + 80 * - 5 DIV 35 + - + 55 + - 7 * CAST( COUNT( * ) AS SIGNED ) - + 59 ) AS col0
----
-76850

skipif mysql # not compatible
query I rowsort label-3308
SELECT 50 * + - 29 * - COALESCE ( - 53, + 80 * - 5 / 35 + - + 55 + - 7 * CAST ( COUNT ( * ) AS INTEGER ) - + 59 ) AS col0
----
-76850

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT 86 + 30 * + COALESCE ( - 70, + - 57 * COUNT( DISTINCT - 57 ) * 95 )
----
-2014

skipif mysql # not compatible
query I rowsort label-3309
SELECT 86 + 30 * + COALESCE ( - 70, + - 57 * COUNT ( DISTINCT - 57 ) * 95 )
----
-2014

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT 89 - COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-3310
SELECT 89 - COUNT ( * ) AS col0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3311
SELECT DISTINCT - 9 DIV - CASE - 32 WHEN 38 + + 39 + + 56 THEN NULL ELSE + - 13 END
----
0

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT - 9 / - CASE - 32 WHEN 38 + + 39 + + 56 THEN NULL ELSE + - 13 END
----
0

query I rowsort
SELECT ALL - 0 * 85 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3313
SELECT 69 DIV 52 DIV - - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3313
SELECT 69 / 52 / - - 83 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-3314
SELECT 5 / + 8
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3315
SELECT + 89 * - + 88 * - 34 * NULLIF ( - - 49, - 4 + + + 21 ) AS col1, - 50 * 97 DIV + NULLIF ( - 73, - ( CASE + 4 WHEN + COALESCE ( + 13, 23, - COUNT( * ) ) THEN NULL WHEN + CASE + COUNT( * ) WHEN CASE - 66 WHEN - 64 DIV CAST( NULL AS SIGNED ) THEN NULL WHEN - COUNT( ( - 76 ) ) DIV 45 THEN 2 + 76 ELSE - COUNT( * ) END THEN - ( 7 ) + + 68 WHEN 43 DIV COALESCE ( + 45, + 50 ) THEN - 5 * - 98 ELSE MAX( ALL - ( - 3 ) ) END * - COUNT( * ) - 33 THEN CAST( NULL AS SIGNED ) + - ( + 93 ) * CAST( NULL AS SIGNED ) ELSE + COUNT( * ) END ) - 48 ) DIV COUNT( * ) col0
----
13048112
66

skipif mysql # not compatible
query II rowsort label-3315
SELECT + 89 * - + 88 * - 34 * NULLIF ( - - 49, - 4 + + + 21 ) AS col1, - 50 * 97 / + NULLIF ( - 73, - ( CASE + 4 WHEN + COALESCE ( + 13, 23, - COUNT ( * ) ) THEN NULL WHEN + CASE + COUNT ( * ) WHEN CASE - 66 WHEN - 64 / CAST ( NULL AS INTEGER ) THEN NULL WHEN - COUNT ( ( - 76 ) ) / 45 THEN 2 + 76 ELSE - COUNT ( * ) END THEN - ( 7 ) + + 68 WHEN 43 / COALESCE ( + 45, + 50 ) THEN - 5 * - 98 ELSE MAX ( ALL - ( - 3 ) ) END * - COUNT ( * ) - 33 THEN CAST ( NULL AS INTEGER ) + - ( + 93 ) * CAST ( NULL AS INTEGER ) ELSE + COUNT ( * ) END ) - 48 ) / COUNT ( * ) col0
----
13048112
66

query I rowsort
SELECT DISTINCT - 69 * + 1 + + 40 AS col0
----
-29

query I rowsort
SELECT ALL + - 29 * + + 39 + - 16 + 11
----
-1136

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT ALL - NULLIF ( + CASE - - 82 WHEN 74 * + 87 + + 6 + 36 - + 93 * - - COUNT( * ) + - 24 THEN - 81 END, + 68 ) + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL - NULLIF ( + CASE - - 82 WHEN 74 * + 87 + + 6 + 36 - + 93 * - - COUNT ( * ) + - 24 THEN - 81 END, + 68 ) + - 15
----
NULL

query I rowsort
SELECT DISTINCT - + ( NULLIF ( + 25, - ( + + 36 ) * - 13 * + - 87 + + - 33 ) ) AS col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3320
SELECT CAST( - 72 AS SIGNED ) * 17 + - 19 + + 85 + 35 DIV + COUNT( * )
----
-1123

skipif mysql # not compatible
query I rowsort label-3320
SELECT CAST ( - 72 AS INTEGER ) * 17 + - 19 + + 85 + 35 / + COUNT ( * )
----
-1123

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

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

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

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

query I rowsort
SELECT ALL + 84 + + 47
----
131

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT ALL - 34 * - - SUM( DISTINCT - 35 )
----
1190

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL - 34 * - - SUM ( DISTINCT - 35 )
----
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ALL - ( + SUM( + 27 ) ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL - ( + SUM ( + 27 ) ) AS col1
----
-27

query I rowsort
SELECT DISTINCT + ( - - 42 ) + - 91 - + 19
----
-68

query II rowsort
SELECT ALL - - 45 * ( + 4 ) - + 51 AS col1, 56 * 56
----
129
3136

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT - COUNT( * ) * + CASE + 76 WHEN - 63 THEN NULL WHEN 78 THEN + - 13 * + 17 * - 22 - + - COUNT( * ) * - + 5 END / - ( - + 68 ) + + 52 + - + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT - COUNT ( * ) * + CASE + 76 WHEN - 63 THEN NULL WHEN 78 THEN + - 13 * + 17 * - 22 - + - COUNT ( * ) * - + 5 END / - ( - + 68 ) + + 52 + - + 63
----
NULL

query I rowsort
SELECT 3 * + 37 + - 78 AS col0
----
33

query I rowsort
SELECT 64 + + 5 - 9
----
60

query I rowsort
SELECT ALL 50 - - 19 col1
----
69

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3334
SELECT NULLIF ( 61, + 91 + + - 15 ) + - + COALESCE ( + COUNT( * ), - CAST( - COUNT( * ) AS SIGNED ) ) + COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-3334
SELECT NULLIF ( 61, + 91 + + - 15 ) + - + COALESCE ( + COUNT ( * ), - CAST ( - COUNT ( * ) AS INTEGER ) ) + COUNT ( * ) AS col2
----
61

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

skipif mysql # not compatible
query I rowsort label-3335
SELECT CAST ( COUNT ( DISTINCT - 8 ) AS REAL ) * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3336
SELECT ALL 3 DIV + 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL 3 / + 11 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3337
SELECT 54 + + 76 + + 62 AS col0, 33 * + CAST( NULL AS SIGNED ) AS col1
----
192
NULL

skipif mysql # not compatible
query II rowsort label-3337
SELECT 54 + + 76 + + 62 AS col0, 33 * + CAST ( NULL AS INTEGER ) AS col1
----
192
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT ( + + MAX( 41 ) ) + + - 25 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-3339
SELECT ( + + MAX ( 41 ) ) + + - 25 AS col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-3340
SELECT ALL 52, + 38 * - COUNT( * ) AS col1
----
52
-38

skipif mysql # not compatible
query II rowsort label-3340
SELECT ALL 52, + 38 * - COUNT ( * ) AS col1
----
52
-38

query II rowsort
SELECT + 55 + - ( ( + 63 ) ) * + 55 AS col1, ( 42 )
----
-3410
42

query I rowsort
SELECT + 66 * + - 4 AS col2
----
-264

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3344
SELECT ALL 78 * 64 DIV - + 67 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL 78 * 64 / - + 67 AS col2
----
-74

query I rowsort
SELECT + 36 + 64 AS col0
----
100

query II rowsort
SELECT DISTINCT - + 40 + - 26 + + 89 AS col0, + ( + 85 ) - - NULLIF ( + - 99, + - COALESCE ( - - ( + + 90 ), - 59 * + - 29, + - 88 + - 10 ) ) * - 6
----
23
679

query I rowsort
SELECT ALL + 48 + + 49 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT DISTINCT COALESCE ( + ( + + 43 ), 78 + + + 79, + COUNT( * ) ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT COALESCE ( + ( + + 43 ), 78 + + + 79, + COUNT ( * ) ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT - + 68 + COUNT( * ) - - 72 * - 69
----
-5035

skipif mysql # not compatible
query I rowsort label-3349
SELECT - + 68 + COUNT ( * ) - - 72 * - 69
----
-5035

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

skipif mysql # not compatible
query I rowsort label-3350
SELECT - + MAX ( 58 )
----
-58

query I rowsort
SELECT - + 18 + + + 27 AS col1
----
9

query I rowsort
SELECT DISTINCT - 96 * - - 97 AS col2
----
-9312

onlyif mysql # aggregate syntax: 
query II rowsort label-3353
SELECT - - 19 * + 45 + + 6 + - - COUNT( ALL - + 71 ), 4 AS col0
----
862
4

skipif mysql # not compatible
query II rowsort label-3353
SELECT - - 19 * + 45 + + 6 + - - COUNT ( ALL - + 71 ), 4 AS col0
----
862
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT DISTINCT + + 85 * COUNT( ALL + 36 )
----
85

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT + + 85 * COUNT ( ALL + 36 )
----
85

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

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

query I rowsort
SELECT ALL - + 51 * + 26 + + - 21
----
-1347

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT ALL + 90 * COUNT( * ) * - 53 - - 8
----
-4762

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL + 90 * COUNT ( * ) * - 53 - - 8
----
-4762

query I rowsort
SELECT - + 66 * - 72
----
4752

query I rowsort
SELECT DISTINCT - - 93 * - + 86
----
-7998

query I rowsort
SELECT ALL + CASE 27 WHEN + + 31 THEN - 91 END
----
NULL

query I rowsort
SELECT ALL - 28 * + 75
----
-2100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3362
SELECT DISTINCT + 24, + MIN( DISTINCT - 21 ) AS col2, - 83 * - CAST( NULL AS DECIMAL ) * - CAST( COUNT( * ) AS SIGNED ) + 80 + ( + 13 ) AS col0
----
24
-21
NULL

skipif mysql # not compatible
query III rowsort label-3362
SELECT DISTINCT + 24, + MIN ( DISTINCT - 21 ) AS col2, - 83 * - CAST ( NULL AS REAL ) * - CAST ( COUNT ( * ) AS INTEGER ) + 80 + ( + 13 ) AS col0
----
24
-21
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT ALL + 61 * + 67 * - - 2 - + + MAX( 77 )
----
8097

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL + 61 * + 67 * - - 2 - + + MAX ( 77 )
----
8097

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT - NULLIF ( 79, 64 + + ( NULLIF ( + 24, COUNT( * ) ) ) + - 29 ) + + 19 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-3364
SELECT - NULLIF ( 79, 64 + + ( NULLIF ( + 24, COUNT ( * ) ) ) + - 29 ) + + 19 AS col0
----
-60

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

query I rowsort
SELECT COALESCE ( 22, - + 79 + + 29 * - 4 )
----
22

query I rowsort
SELECT CASE WHEN NOT 78 <> 36 + - - 69 THEN 23 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT CASE + SUM( DISTINCT + 21 ) WHEN + + 35 THEN 86 * - 98 + 20 + - 24 - 60 + + COUNT( * ) * - 23 * + 86 * - - 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3368
SELECT CASE + SUM ( DISTINCT + 21 ) WHEN + + 35 THEN 86 * - 98 + 20 + - 24 - 60 + + COUNT ( * ) * - 23 * + 86 * - - 77 END
----
NULL

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

query I rowsort
SELECT + 39 * - 21
----
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT COALESCE ( NULLIF ( + - 86, - - 64 * + - 37 - + + 22 - + COUNT( * ) + + - NULLIF ( 72, - - ( - ( - + 91 ) ) + + - CASE - COUNT( * ) WHEN + COUNT( * ) THEN + 68 WHEN + 11 THEN + CASE 74 WHEN - ( MAX( COALESCE ( ( - 78 ), - 48 ) ) ) THEN + 98 WHEN + 10 THEN NULL ELSE NULL END + 72 END * + 10 ) ), 5 ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-3371
SELECT COALESCE ( NULLIF ( + - 86, - - 64 * + - 37 - + + 22 - + COUNT ( * ) + + - NULLIF ( 72, - - ( - ( - + 91 ) ) + + - CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN + 68 WHEN + 11 THEN + CASE 74 WHEN - ( MAX ( COALESCE ( ( - 78 ), - 48 ) ) ) THEN + 98 WHEN + 10 THEN NULL ELSE NULL END + 72 END * + 10 ) ), 5 ) AS col0
----
-86

query II rowsort
SELECT ALL + ( - 1 ), 99 * + 32 * CASE + 66 WHEN ( - - ( + 7 ) ) THEN - + 87 END * + 27 + - 52 * - + 99 col0
----
-1
NULL

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

skipif mysql # not compatible
query I rowsort label-3373
SELECT + SUM ( - 35 )
----
-35

query I rowsort
SELECT - 85 * - + 73 AS col1
----
6205

query I rowsort
SELECT ALL - 27 * - 93 AS col1
----
2511

query I rowsort
SELECT - 49 + 85 * - 88 AS col0
----
-7529

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3377
SELECT + CASE 49 WHEN + 94 THEN MAX( DISTINCT + - 50 ) END + + + 11 AS col0, 4 DIV + COUNT( * ) + + 44
----
NULL
48

skipif mysql # not compatible
query II rowsort label-3377
SELECT + CASE 49 WHEN + 94 THEN MAX ( DISTINCT + - 50 ) END + + + 11 AS col0, 4 / + COUNT ( * ) + + 44
----
NULL
48

query I rowsort
SELECT ALL 55 + - 41 AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3379
SELECT + NULLIF ( + 81, 66 + + - 10 + + - 63 / - ( - + 93 ) + + 55 * + NULLIF ( - 31, 57 ) + + COUNT( * ) - 27 - COUNT( * ) + + - CAST( - CASE COUNT( * ) WHEN 82 THEN ( 23 ) - + 2 ELSE - COUNT( * ) * + 7 END AS SIGNED ) * 29 * 24 ) - MAX( 48 )
----
33

skipif mysql # not compatible
query I rowsort label-3379
SELECT + NULLIF ( + 81, 66 + + - 10 + + - 63 / - ( - + 93 ) + + 55 * + NULLIF ( - 31, 57 ) + + COUNT ( * ) - 27 - COUNT ( * ) + + - CAST ( - CASE COUNT ( * ) WHEN 82 THEN ( 23 ) - + 2 ELSE - COUNT ( * ) * + 7 END AS INTEGER ) * 29 * 24 ) - MAX ( 48 )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3380
SELECT ALL COUNT( * ) DIV - - 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL COUNT ( * ) / - - 25 AS col0
----
0

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

onlyif mysql # DIV for integer division: 
query III rowsort label-3382
SELECT DISTINCT 24 + - CASE 0 WHEN + + 31 THEN NULL ELSE + 84 END DIV 65, - 44 AS col1, - + ( - 14 ) AS col2
----
23
-44
14

skipif mysql # not compatible
query III rowsort label-3382
SELECT DISTINCT 24 + - CASE 0 WHEN + + 31 THEN NULL ELSE + 84 END / 65, - 44 AS col1, - + ( - 14 ) AS col2
----
23
-44
14

query II rowsort
SELECT 71 col0, + 62 * - 67 AS col2
----
71
-4154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3384
SELECT DISTINCT - COUNT( DISTINCT + + 71 ) + CASE + 0 WHEN - + 52 * - + 0 THEN NULL WHEN - SUM( ALL + CAST( NULL AS SIGNED ) ) THEN - 96 ELSE - 63 * + 15 + COUNT( * ) END AS col1, 80
----
NULL
80

skipif mysql # not compatible
query II rowsort label-3384
SELECT DISTINCT - COUNT ( DISTINCT + + 71 ) + CASE + 0 WHEN - + 52 * - + 0 THEN NULL WHEN - SUM ( ALL + CAST ( NULL AS INTEGER ) ) THEN - 96 ELSE - 63 * + 15 + COUNT ( * ) END AS col1, 80
----
NULL
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3385
SELECT DISTINCT + CAST( + 50 AS SIGNED ) + - - COUNT( * ) - - 3 - - 83 * + COALESCE ( - 94, - 40 DIV - 13 + + 58 ) - + 44 - - - 63 + + + COUNT( * ) * + 97 * + 69 AS col0
----
-1162

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT + CAST ( + 50 AS INTEGER ) + - - COUNT ( * ) - - 3 - - 83 * + COALESCE ( - 94, - 40 / - 13 + + 58 ) - + 44 - - - 63 + + + COUNT ( * ) * + 97 * + 69 AS col0
----
-1162

onlyif mysql # aggregate syntax: 
query II rowsort label-3386
SELECT DISTINCT 91 + - 75 - - 28 + + - 54 + COUNT( * ) * - 87 AS col2, 1
----
-97
1

skipif mysql # not compatible
query II rowsort label-3386
SELECT DISTINCT 91 + - 75 - - 28 + + - 54 + COUNT ( * ) * - 87 AS col2, 1
----
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL MAX( DISTINCT 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL MAX ( DISTINCT 49 ) AS col1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3388
SELECT - + 15, - CAST( - + 83 AS SIGNED ) AS col2
----
-15
83

skipif mysql # not compatible
query II rowsort label-3388
SELECT - + 15, - CAST ( - + 83 AS INTEGER ) AS col2
----
-15
83

query II rowsort
SELECT - + 3 AS col2, + 38
----
-3
38

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

query I rowsort
SELECT ALL 18 * + - 86 AS col2
----
-1548

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT + + CASE - + ( + 31 ) WHEN - - 36 THEN 17 * + 57 + - 20 / - 9 + + - COUNT( * ) END * + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT + + CASE - + ( + 31 ) WHEN - - 36 THEN 17 * + 57 + - 20 / - 9 + + - COUNT ( * ) END * + 79 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3393
SELECT - - CASE + 3 WHEN - 40 * COUNT( * ) + 6 + + 14 THEN NULL WHEN + - 58 - + + CAST( NULL AS SIGNED ) THEN - ( - COALESCE ( + + 38, + 39, - - 66 * + 71 * + + 19 * + 65 ) ) ELSE NULL END + - COALESCE ( + NULLIF ( COUNT( * ), + 36 + 75 ), MIN( 3 ) + MIN( DISTINCT 31 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3393
SELECT - - CASE + 3 WHEN - 40 * COUNT ( * ) + 6 + + 14 THEN NULL WHEN + - 58 - + + CAST ( NULL AS INTEGER ) THEN - ( - COALESCE ( + + 38, + 39, - - 66 * + 71 * + + 19 * + 65 ) ) ELSE NULL END + - COALESCE ( + NULLIF ( COUNT ( * ), + 36 + 75 ), MIN ( 3 ) + MIN ( DISTINCT 31 ) )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3395
SELECT ALL 70 DIV 6 * 36 - + 41
----
355

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL 70 / 6 * 36 - + 41
----
355

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3397
SELECT 7 AS col0, COUNT( * ) * 55 AS col1
----
7
55

skipif mysql # not compatible
query II rowsort label-3397
SELECT 7 AS col0, COUNT ( * ) * 55 AS col1
----
7
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3398
SELECT + 90 DIV + COALESCE ( + 55, + - 10 ) + + 42 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-3398
SELECT + 90 / + COALESCE ( + 55, + - 10 ) + + 42 AS col2
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3399
SELECT + 82 DIV - COUNT( + + 29 ) - - + 50
----
-32

skipif mysql # not compatible
query I rowsort label-3399
SELECT + 82 / - COUNT ( + + 29 ) - - + 50
----
-32

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

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

query I rowsort
SELECT - NULLIF ( - 86, - 34 ) * 54
----
4644

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT ALL + 3 * SUM( ALL + 48 ) * + 62 AS col0
----
8928

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL + 3 * SUM ( ALL + 48 ) * + 62 AS col0
----
8928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3403
SELECT + COUNT( * ) + - 44 - - 84 * + CAST( + 52 AS SIGNED ) + COUNT( * ) + CAST( NULL AS DECIMAL ) + + 79 - 28 * 30 * 30 * + 76 + + - COUNT( * ) + + 24 + - 22 * + 95 + CAST( NULL AS SIGNED ) / - 83 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3403
SELECT + COUNT ( * ) + - 44 - - 84 * + CAST ( + 52 AS INTEGER ) + COUNT ( * ) + CAST ( NULL AS REAL ) + + 79 - 28 * 30 * 30 * + 76 + + - COUNT ( * ) + + 24 + - 22 * + 95 + CAST ( NULL AS INTEGER ) / - 83 col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT ALL - 40 * MIN( + - 50 )
----
2000

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL - 40 * MIN ( + - 50 )
----
2000

query I rowsort
SELECT 3 * - 78 + COALESCE ( - 20, + ( + + 34 ) )
----
-254

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT + MIN( - 94 ) * + 73 + - 69 col1
----
-6931

skipif mysql # not compatible
query I rowsort label-3407
SELECT + MIN ( - 94 ) * + 73 + - 69 col1
----
-6931

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3408
SELECT 73 * + 49 * - ( - COUNT( * ) ) * - 10 * + ( COALESCE ( CASE 67 WHEN ( + 9 ) THEN NULL WHEN - 11 + - CASE 31 WHEN 2 THEN - COUNT( * ) * + 86 + - 17 ELSE NULL END THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN + 80 * + NULLIF ( + 65, - ( 6 ) + CASE MIN( ALL - 21 ) WHEN 61 + + 20 THEN NULL ELSE COUNT( * ) - COUNT( * ) END * - ( 36 ) ) END, 64 + COUNT( * ) ) ) * 38 + 11 DIV 21
----
-88351900

skipif mysql # not compatible
query I rowsort label-3408
SELECT 73 * + 49 * - ( - COUNT ( * ) ) * - 10 * + ( COALESCE ( CASE 67 WHEN ( + 9 ) THEN NULL WHEN - 11 + - CASE 31 WHEN 2 THEN - COUNT ( * ) * + 86 + - 17 ELSE NULL END THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN + 80 * + NULLIF ( + 65, - ( 6 ) + CASE MIN ( ALL - 21 ) WHEN 61 + + 20 THEN NULL ELSE COUNT ( * ) - COUNT ( * ) END * - ( 36 ) ) END, 64 + COUNT ( * ) ) ) * 38 + 11 / 21
----
-88351900

query I rowsort
SELECT DISTINCT - NULLIF ( + - 8, - + 90 / - + 40 * 39 ) AS col1
----
8

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

skipif mysql # not compatible
query I rowsort label-3410
SELECT COUNT ( ALL + 39 ) * - 83 AS col0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3411
SELECT + 99 * - CAST( 4 AS SIGNED ) + - 17
----
-413

skipif mysql # not compatible
query I rowsort label-3411
SELECT + 99 * - CAST ( 4 AS INTEGER ) + - 17
----
-413

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT MIN( - 53 ) - - COUNT( * ) * + 24
----
-29

skipif mysql # not compatible
query I rowsort label-3412
SELECT MIN ( - 53 ) - - COUNT ( * ) * + 24
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ALL - ( - CASE + + 63 WHEN + + 16 / - 5 THEN - - 29 * - 19 - COUNT( ALL - 93 ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL - ( - CASE + + 63 WHEN + + 16 / - 5 THEN - - 29 * - 19 - COUNT ( ALL - 93 ) END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3414
SELECT COUNT( * ) * 42 DIV - - 83 + 87 + + 95 DIV - 8 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-3414
SELECT COUNT ( * ) * 42 / - - 83 + 87 + + 95 / - 8 AS col1
----
76

query I rowsort
SELECT ALL - 41 + 33 * - ( 60 ) * + 86
----
-170321

query I rowsort
SELECT 79 + 92 col1
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3417
SELECT 89 + + - 18 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3417
SELECT 89 + + - 18 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 69 * + + 49 AS col0
----
3381

query I rowsort
SELECT ALL + 96 + - + COALESCE ( 96, + 77 )
----
0

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

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

query I rowsort
SELECT ALL 1 + - 4
----
-3

query I rowsort
SELECT DISTINCT - 24 + - 47 - 86 - 90 - - 65 + - + 51 + + + 84 * 63 * - + 28
----
-148409

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT 94 + + COUNT( * ) + 73 + 16 col2
----
184

skipif mysql # not compatible
query I rowsort label-3423
SELECT 94 + + COUNT ( * ) + 73 + 16 col2
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT - 5 DIV - + ( - ( - 79 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3424
SELECT - 5 / - + ( - ( - 79 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT ALL - + ( + CASE WHEN NOT ( + 5 ) = NULL THEN 34 END ) * - + MIN( 56 ) * - 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL - + ( + CASE WHEN NOT ( + 5 ) = NULL THEN 34 END ) * - + MIN ( 56 ) * - 9 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 81 * 15 + + - 62
----
-1277

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT 87 * - + 25 + COALESCE ( SUM( + 85 ), - ( - 79 ) + 7, + 37 ) AS col1
----
-2090

skipif mysql # not compatible
query I rowsort label-3427
SELECT 87 * - + 25 + COALESCE ( SUM ( + 85 ), - ( - 79 ) + 7, + 37 ) AS col1
----
-2090

query I rowsort
SELECT + 33 * + 37
----
1221

onlyif mysql # aggregate syntax: 
query II rowsort label-3429
SELECT + 72 + COUNT( * ) AS col0, ( 50 ) col2
----
73
50

skipif mysql # not compatible
query II rowsort label-3429
SELECT + 72 + COUNT ( * ) AS col0, ( 50 ) col2
----
73
50

query I rowsort
SELECT DISTINCT 25 - + 87 + + 97 * + 62 * 45 AS col2
----
270568

onlyif mysql # DIV for integer division: 
query I rowsort label-3431
SELECT ALL - 47 DIV + 70 * + 40
----
0

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL - 47 / + 70 * + 40
----
0

query I rowsort
SELECT + 99 + - - 44 + - - 13
----
156

query I rowsort
SELECT DISTINCT 91 - + ( 77 )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3434
SELECT COALESCE ( - ( - 56 ), COUNT( * ) DIV + 60 + + COUNT( * ), + + 89 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-3434
SELECT COALESCE ( - ( - 56 ), COUNT ( * ) / + 60 + + COUNT ( * ), + + 89 ) AS col0
----
56

query I rowsort
SELECT ALL 9 * - ( - 29 ) AS col1
----
261

query II rowsort
SELECT ALL - + ( 80 ), + 85 AS col2
----
-80
85

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

query II rowsort
SELECT 81, + 54 AS col0
----
81
54

onlyif mysql # DIV for integer division: 
query II rowsort label-3439
SELECT ( - 16 ) DIV 80 AS col2, 81
----
0
81

skipif mysql # not compatible
query II rowsort label-3439
SELECT ( - 16 ) / 80 AS col2, 81
----
0
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3440
SELECT ALL + MAX( ALL + 23 ) + MAX( 68 ), - 85 + + + ( + 52 ) AS col1
----
91
-33

skipif mysql # not compatible
query II rowsort label-3440
SELECT ALL + MAX ( ALL + 23 ) + MAX ( 68 ), - 85 + + + ( + 52 ) AS col1
----
91
-33

query II rowsort
SELECT 73, + 75 col2
----
73
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3442
SELECT ( COALESCE ( + COUNT( * ), 63, - + 10 * + + 0 * - - NULLIF ( + 36, - - 40 * 14 * SUM( DISTINCT + 91 ) * - + COALESCE ( - 15, 64, + AVG ( DISTINCT - - 21 ) ) - 48 + 44 ), - 99 * - 85 ) ) DIV NULLIF ( + ( - 38 ), 7 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3442
SELECT ( COALESCE ( + COUNT ( * ), 63, - + 10 * + + 0 * - - NULLIF ( + 36, - - 40 * 14 * SUM ( DISTINCT + 91 ) * - + COALESCE ( - 15, 64, + AVG ( DISTINCT - - 21 ) ) - 48 + 44 ), - 99 * - 85 ) ) / NULLIF ( + ( - 38 ), 7 ) AS col2
----
0

query I rowsort
SELECT 99 + 45 - - 92
----
236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3444
SELECT CAST( + SUM( ALL - + 85 ) AS DECIMAL ) * - CASE + + 6 WHEN - COUNT( + - 80 ) * - 78 * 21 THEN 89 WHEN + - CAST( NULL AS SIGNED ) THEN - 12 / COALESCE ( + 15, - COUNT( * ) ) ELSE NULL END * - 53 - 43 + + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3444
SELECT CAST ( + SUM ( ALL - + 85 ) AS REAL ) * - CASE + + 6 WHEN - COUNT ( + - 80 ) * - 78 * 21 THEN 89 WHEN + - CAST ( NULL AS INTEGER ) THEN - 12 / COALESCE ( + 15, - COUNT ( * ) ) ELSE NULL END * - 53 - 43 + + 18 AS col0
----
NULL

query I rowsort
SELECT ALL + 64 * - 20
----
-1280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3446
SELECT DISTINCT + MAX( DISTINCT - 63 ) + + 16 DIV - 40 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT + MAX ( DISTINCT - 63 ) + + 16 / - 40 AS col0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-3447
SELECT DISTINCT 84 DIV + 39 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT 84 / + 39 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3448
SELECT 89 DIV - - 74
----
1

skipif mysql # not compatible
query I rowsort label-3448
SELECT 89 / - - 74
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3449
SELECT + 4 AS col0, COUNT( * ) + + ( - 24 )
----
4
-23

skipif mysql # not compatible
query II rowsort label-3449
SELECT + 4 AS col0, COUNT ( * ) + + ( - 24 )
----
4
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3450
SELECT ALL 19 * - - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col2, + 66 * + - 54 + - 13 * 54 * + 89 AS col2
----
NULL
-66042

skipif mysql # not compatible
query II rowsort label-3450
SELECT ALL 19 * - - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, + 66 * + - 54 + - 13 * 54 * + 89 AS col2
----
NULL
-66042

query I rowsort
SELECT ALL 78 + - 4 AS col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3452
SELECT ALL - CASE + + 12 WHEN + MAX( 61 ) + - 20 - + 9 * - - 53 THEN - - 72 * - 14 / - 78 * - 60 - + COUNT( * ) WHEN CASE - CAST( 7 AS SIGNED ) WHEN + 20 THEN - 79 WHEN 22 THEN + 1 + 33 / - 5 ELSE 48 END THEN + ( + COALESCE ( COUNT( DISTINCT - ( 47 ) ), - 99 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL - CASE + + 12 WHEN + MAX ( 61 ) + - 20 - + 9 * - - 53 THEN - - 72 * - 14 / - 78 * - 60 - + COUNT ( * ) WHEN CASE - CAST ( 7 AS INTEGER ) WHEN + 20 THEN - 79 WHEN 22 THEN + 1 + 33 / - 5 ELSE 48 END THEN + ( + COALESCE ( COUNT ( DISTINCT - ( 47 ) ), - 99 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL - NULLIF ( - 40, - 48 + COUNT( ALL - + 81 ) ) + + 85
----
125

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL - NULLIF ( - 40, - 48 + COUNT ( ALL - + 81 ) ) + + 85
----
125

query I rowsort
SELECT 23 * - 83 AS col0
----
-1909

query I rowsort
SELECT 53 + + + 6 + 44 + + - 50 + - 85 AS col1
----
-32

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3457
SELECT 81 AS col0, MIN( + 34 ) + 71
----
81
105

skipif mysql # not compatible
query II rowsort label-3457
SELECT 81 AS col0, MIN ( + 34 ) + 71
----
81
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT 1 - - SUM( 21 ) * + - 9 AS col1
----
-188

skipif mysql # not compatible
query I rowsort label-3458
SELECT 1 - - SUM ( 21 ) * + - 9 AS col1
----
-188

query I rowsort
SELECT ( - 90 ) - - ( + ( - 62 ) ) AS col2
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT DISTINCT + 17 * + 76 / + + 1 * 3 * - CASE - 39 WHEN - 71 THEN 49 WHEN SUM( + - 75 ) + - - 41 THEN MIN( DISTINCT + 68 ) + + + 22 / + COUNT( * ) END + - + 0 - - - 31 + 53 / + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT + 17 * + 76 / + + 1 * 3 * - CASE - 39 WHEN - 71 THEN 49 WHEN SUM ( + - 75 ) + - - 41 THEN MIN ( DISTINCT + 68 ) + + + 22 / + COUNT ( * ) END + - + 0 - - - 31 + 53 / + 69 AS col2
----
NULL

query I rowsort
SELECT - 97 * - 52
----
5044

query I rowsort
SELECT ALL 36 * - 88 AS col2
----
-3168

query I rowsort
SELECT 17 - 16
----
1

query I rowsort
SELECT + 63 * - ( + + 14 )
----
-882

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3465
SELECT 50 * + COUNT( * ) DIV + 77 * + COUNT( * ) * COUNT( * ) + - 70 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-3465
SELECT 50 * + COUNT ( * ) / + 77 * + COUNT ( * ) * COUNT ( * ) + - 70 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT ALL MAX( + 2 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL MAX ( + 2 ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3467
SELECT DISTINCT + COUNT( * ) * + - CAST( NULL AS SIGNED ) / + - MAX( 82 ) / - 73 * + - CAST( NULL AS SIGNED ) * + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) / + - MAX ( 82 ) / - 73 * + - CAST ( NULL AS INTEGER ) * + - 45
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3468
SELECT ALL 39 DIV - 10 col2
----
-3

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL 39 / - 10 col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT + COALESCE ( - - 95, + NULLIF ( - 84, + - CASE - 29 WHEN - 38 THEN + 54 / 20 WHEN - 99 / - 99 + - COUNT( * ) THEN NULL ELSE 28 + 49 / - NULLIF ( + - ( - NULLIF ( + 15, + 62 - - 44 ) ), - 44 * 42 + 75 ) + - 67 END ) ) * - 22 AS col1
----
-2090

skipif mysql # not compatible
query I rowsort label-3469
SELECT + COALESCE ( - - 95, + NULLIF ( - 84, + - CASE - 29 WHEN - 38 THEN + 54 / 20 WHEN - 99 / - 99 + - COUNT ( * ) THEN NULL ELSE 28 + 49 / - NULLIF ( + - ( - NULLIF ( + 15, + 62 - - 44 ) ), - 44 * 42 + 75 ) + - 67 END ) ) * - 22 AS col1
----
-2090

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT ALL + 73 * + ( 4 ) + COUNT( * ) AS col2
----
293

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL + 73 * + ( 4 ) + COUNT ( * ) AS col2
----
293

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT + SUM( - + 74 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-3471
SELECT + SUM ( - + 74 ) AS col2
----
-74

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

skipif mysql # not compatible
query I rowsort label-3472
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT NULLIF ( + MIN( + - 88 ), 28 * 88 - 21 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-3473
SELECT NULLIF ( + MIN ( + - 88 ), 28 * 88 - 21 ) AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3474
SELECT + COALESCE ( + - 58, 57 * + CASE 91 WHEN 81 - 83 + + 34 - - 15 THEN NULL WHEN 48 THEN + COALESCE ( NULLIF ( ( - COUNT( * ) ), - 42 / MIN( 58 ) ), + 38 ) + + + 88 WHEN CAST( COUNT( * ) AS SIGNED ) THEN - 96 + CASE 38 WHEN ( - 32 ) * 94 + - 79 THEN 6 + - CASE - 92 WHEN - 72 THEN 31 ELSE NULL END END END * 96 + - 66, 90, COUNT( * ) )
----
-58

skipif mysql # not compatible
query I rowsort label-3474
SELECT + COALESCE ( + - 58, 57 * + CASE 91 WHEN 81 - 83 + + 34 - - 15 THEN NULL WHEN 48 THEN + COALESCE ( NULLIF ( ( - COUNT ( * ) ), - 42 / MIN ( 58 ) ), + 38 ) + + + 88 WHEN CAST ( COUNT ( * ) AS INTEGER ) THEN - 96 + CASE 38 WHEN ( - 32 ) * 94 + - 79 THEN 6 + - CASE - 92 WHEN - 72 THEN 31 ELSE NULL END END END * 96 + - 66, 90, COUNT ( * ) )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT ALL 85 * + 48 + - + 11 * - + 61 * COUNT( * ) AS col2
----
4751

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL 85 * + 48 + - + 11 * - + 61 * COUNT ( * ) AS col2
----
4751

query I rowsort
SELECT + 44 + - 49
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3477
SELECT + NULLIF ( - - COUNT( * ), 59 * - 80 ), + 73 AS col0
----
1
73

skipif mysql # not compatible
query II rowsort label-3477
SELECT + NULLIF ( - - COUNT ( * ), 59 * - 80 ), + 73 AS col0
----
1
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3478
SELECT ALL 91 * - 49 * - - 14 + - 41 DIV - 41 AS col1, ( 85 ) * + COUNT( * ) + 49 - + NULLIF ( - + 45, + COUNT( * ) + MIN( ALL + 10 ) + - 4 * - 20 + 5 + COUNT( * ) ) * - ( - 33 )
----
-62425
1619

skipif mysql # not compatible
query II rowsort label-3478
SELECT ALL 91 * - 49 * - - 14 + - 41 / - 41 AS col1, ( 85 ) * + COUNT ( * ) + 49 - + NULLIF ( - + 45, + COUNT ( * ) + MIN ( ALL + 10 ) + - 4 * - 20 + 5 + COUNT ( * ) ) * - ( - 33 )
----
-62425
1619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3479
SELECT + CAST( NULL AS SIGNED ) + 8 AS col1, - MAX( DISTINCT + 69 )
----
NULL
-69

skipif mysql # not compatible
query II rowsort label-3479
SELECT + CAST ( NULL AS INTEGER ) + 8 AS col1, - MAX ( DISTINCT + 69 )
----
NULL
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3480
SELECT DISTINCT SUM( DISTINCT - - 19 ) * + + 82 - 32 + + ( + 27 ) DIV - 41 AS col1
----
1526

skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT SUM ( DISTINCT - - 19 ) * + + 82 - 32 + + ( + 27 ) / - 41 AS col1
----
1526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3481
SELECT ALL - 91 * CAST( 49 AS SIGNED ) + 60 + 90 DIV - 49 * - + COUNT( * )
----
-4398

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL - 91 * CAST ( 49 AS INTEGER ) + 60 + 90 / - 49 * - + COUNT ( * )
----
-4398

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT MIN( ALL - + 22 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-3482
SELECT MIN ( ALL - + 22 ) AS col2
----
-22

query I rowsort
SELECT ALL ( - 45 ) * 4 * 1 + - 16 + - + 40
----
-236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3484
SELECT DISTINCT 97 * + 58 + - CASE - 50 WHEN - - 56 + 37 / + - 45 THEN - 23 + + CAST( NULL AS SIGNED ) * 98 * + + 20 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT 97 * + 58 + - CASE - 50 WHEN - - 56 + 37 / + - 45 THEN - 23 + + CAST ( NULL AS INTEGER ) * 98 * + + 20 END AS col2
----
NULL

query II rowsort
SELECT + 66 - 82 AS col2, - 26 AS col0
----
-16
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT + 54 * CASE 93 WHEN + ( COALESCE ( - 62, + - 59 * - + 67, - SUM( 79 ) * + 87 / + 19 * + 85 / 4 ) ) THEN + 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT + 54 * CASE 93 WHEN + ( COALESCE ( - 62, + - 59 * - + 67, - SUM ( 79 ) * + 87 / + 19 * + 85 / 4 ) ) THEN + 87 END
----
NULL

query I rowsort
SELECT - 60 * - 69 AS col1
----
4140

query I rowsort
SELECT - 96 * 86 * + 15 + - 67 * + - 93
----
-117609

query I rowsort
SELECT + 54 * + 33 + - + 75
----
1707

onlyif mysql # DIV for integer division: 
query I rowsort label-3490
SELECT DISTINCT - 69 DIV 36 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT - 69 / 36 AS col0
----
-1

query I rowsort
SELECT ALL + 5 * - + 31
----
-155

query I rowsort
SELECT DISTINCT + - 51 * - 86
----
4386

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3493
SELECT DISTINCT - 77 * + COUNT( * ) DIV + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT - 77 * + COUNT ( * ) / + 78 AS col1
----
0

query I rowsort
SELECT + + 39 * + + 51
----
1989

query I rowsort
SELECT - - 75 + - ( + 6 ) AS col1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3496
SELECT - CAST( + 35 AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-3496
SELECT - CAST ( + 35 AS INTEGER )
----
-35

query I rowsort
SELECT - ( + 82 ) * + 3 * + 72
----
-17712

query I rowsort
SELECT - 70 + + 99 * - 45
----
-4525

query I rowsort
SELECT DISTINCT NULLIF ( + 15, - + 45 )
----
15

query I rowsort
SELECT ALL + 92 + - 69 AS col2
----
23

query I rowsort
SELECT - 97 * ( + COALESCE ( 93, + 35 + - 87 ) )
----
-9021

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

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

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

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT - - 67 / + COUNT ( * ) * COUNT ( * )
----
67

query I rowsort
SELECT ALL - 81 * - + 97 AS col2
----
7857

onlyif mysql # DIV for integer division: 
query I rowsort label-3505
SELECT - 50 DIV - 17 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3505
SELECT - 50 / - 17 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT - 68 * + 99 * COUNT( * ) AS col2
----
-6732

skipif mysql # not compatible
query I rowsort label-3506
SELECT - 68 * + 99 * COUNT ( * ) AS col2
----
-6732

query II rowsort
SELECT + 77 AS col2, + 70 AS col1
----
77
70

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

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

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

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL 12 / COUNT ( * ) + - COUNT ( * ) AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3510
SELECT + NULLIF ( - - COUNT( CAST( - 79 AS SIGNED ) ), - MAX( ALL 42 ) * 34 * - + COALESCE ( 35, + - NULLIF ( + NULLIF ( + + 96, + - CASE + 29 WHEN - 18 / - NULLIF ( + + 44, - ( - CAST( NULL AS SIGNED ) ) * + + 22 / 79 ) + 52 THEN CASE 9 WHEN 79 THEN + 78 * + 69 + + 89 * - CAST( NULL AS SIGNED ) END WHEN + 5 + - ( 99 ) THEN + NULLIF ( - 51, 36 + - 4 ) WHEN CAST( 71 AS SIGNED ) * 82 - 51 / CAST( COUNT( * ) * 73 AS SIGNED ) THEN 77 END ), ( + 0 ) ) + + 4 ) - + CASE 5 WHEN MAX( + 72 ) / 74 THEN NULLIF ( 62, COUNT( * ) ) WHEN + 62 + + COUNT( * ) THEN NULL END )
----
1

skipif mysql # not compatible
query I rowsort label-3510
SELECT + NULLIF ( - - COUNT ( CAST ( - 79 AS INTEGER ) ), - MAX ( ALL 42 ) * 34 * - + COALESCE ( 35, + - NULLIF ( + NULLIF ( + + 96, + - CASE + 29 WHEN - 18 / - NULLIF ( + + 44, - ( - CAST ( NULL AS INTEGER ) ) * + + 22 / 79 ) + 52 THEN CASE 9 WHEN 79 THEN + 78 * + 69 + + 89 * - CAST ( NULL AS INTEGER ) END WHEN + 5 + - ( 99 ) THEN + NULLIF ( - 51, 36 + - 4 ) WHEN CAST ( 71 AS INTEGER ) * 82 - 51 / CAST ( COUNT ( * ) * 73 AS INTEGER ) THEN 77 END ), ( + 0 ) ) + + 4 ) - + CASE 5 WHEN MAX ( + 72 ) / 74 THEN NULLIF ( 62, COUNT ( * ) ) WHEN + 62 + + COUNT ( * ) THEN NULL END )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3511
SELECT - 20 DIV - 27
----
0

skipif mysql # not compatible
query I rowsort label-3511
SELECT - 20 / - 27
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3513
SELECT ALL + 98 DIV COUNT( * ) - + 69 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL + 98 / COUNT ( * ) - + 69 AS col2
----
29

query I rowsort
SELECT - 90 * + 37 AS col0
----
-3330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3515
SELECT ALL - COUNT( * ) DIV - - 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL - COUNT ( * ) / - - 12 AS col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT 10 * + 72 + + - COUNT( * ) * 30
----
690

skipif mysql # not compatible
query I rowsort label-3517
SELECT 10 * + 72 + + - COUNT ( * ) * 30
----
690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3518
SELECT - 93 DIV 57 + NULLIF ( + 54, + + ( - MIN( DISTINCT 46 ) ) + + ( COUNT( * ) ) - - - AVG ( DISTINCT 93 ) ) + + 82 AS col2
----
135

skipif mysql # not compatible
query I rowsort label-3518
SELECT - 93 / 57 + NULLIF ( + 54, + + ( - MIN ( DISTINCT 46 ) ) + + ( COUNT ( * ) ) - - - AVG ( DISTINCT 93 ) ) + + 82 AS col2
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3519
SELECT + CAST( + - 64 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-3519
SELECT + CAST ( + - 64 AS INTEGER )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT ALL MIN( DISTINCT 71 ) * - 39 * - 86 AS col1
----
238134

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL MIN ( DISTINCT 71 ) * - 39 * - 86 AS col1
----
238134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3521
SELECT ALL - - 44 * - 25 * 50 + - CAST( + - 95 AS SIGNED ) AS col1
----
-54905

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL - - 44 * - 25 * 50 + - CAST ( + - 95 AS INTEGER ) AS col1
----
-54905

query I rowsort
SELECT + - 28 * 51 * - 50 AS col0
----
71400

query I rowsort
SELECT DISTINCT NULLIF ( - + 39, - 14 ) * + - 92
----
3588

query I rowsort
SELECT + 88 + 90 AS col1
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3525
SELECT - CAST( - + CASE NULLIF ( + 65, + + 13 ) WHEN + COUNT( * ) / + 97 THEN + 66 WHEN + + SUM( ALL 6 ) THEN + - CASE 60 WHEN - 26 * + SUM( - 79 ) / - 73 * + - MIN( 54 ) * 82 + - COUNT( * ) + + COUNT( * ) THEN 46 WHEN - NULLIF ( MAX( ALL 22 ), + 46 ) THEN + COUNT( * ) + - 70 ELSE NULL END END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3525
SELECT - CAST ( - + CASE NULLIF ( + 65, + + 13 ) WHEN + COUNT ( * ) / + 97 THEN + 66 WHEN + + SUM ( ALL 6 ) THEN + - CASE 60 WHEN - 26 * + SUM ( - 79 ) / - 73 * + - MIN ( 54 ) * 82 + - COUNT ( * ) + + COUNT ( * ) THEN 46 WHEN - NULLIF ( MAX ( ALL 22 ), + 46 ) THEN + COUNT ( * ) + - 70 ELSE NULL END END AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3526
SELECT ALL 76 DIV 93 * - 96 DIV - COALESCE ( + 91, - ( - 47 ), COALESCE ( - 10, - - ( - 97 ) DIV - 50 ), - - 96 )
----
0

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL 76 / 93 * - 96 / - COALESCE ( + 91, - ( - 47 ), COALESCE ( - 10, - - ( - 97 ) / - 50 ), - - 96 )
----
0

query II rowsort
SELECT - 40 AS col1, - 75 * - - ( - + 64 )
----
-40
4800

query I rowsort
SELECT + 68 * 67
----
4556

query I rowsort
SELECT ALL - 21 + + 3
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-3530
SELECT ALL 42 + COUNT( * ) + MAX( + - 25 ) - 39 * - 78 AS col2, 2
----
3060
2

skipif mysql # not compatible
query II rowsort label-3530
SELECT ALL 42 + COUNT ( * ) + MAX ( + - 25 ) - 39 * - 78 AS col2, 2
----
3060
2

query I rowsort
SELECT DISTINCT - + 6 + + 53 AS col0
----
47

query I rowsort
SELECT ALL - 72 * - - 39
----
-2808

query II rowsort
SELECT - 34 * + 24 * - - 78 AS col1, 90 AS col1
----
-63648
90

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3535
SELECT - - 90, - CAST( NULL AS DECIMAL ) + - 7 + + 36 * - 34 * + - ( + 39 ) AS col1
----
90
NULL

skipif mysql # not compatible
query II rowsort label-3535
SELECT - - 90, - CAST ( NULL AS REAL ) + - 7 + + 36 * - 34 * + - ( + 39 ) AS col1
----
90
NULL

query I rowsort
SELECT ALL 62 + 26 - 77 - + 92 AS col2
----
-81

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3539
SELECT - 75 AS col0, - COUNT( ALL 53 ) + - 8 + + 39 + 43 AS col0
----
-75
73

skipif mysql # not compatible
query II rowsort label-3539
SELECT - 75 AS col0, - COUNT ( ALL 53 ) + - 8 + + 39 + 43 AS col0
----
-75
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3540
SELECT - 32 AS col1, 18 + + + 81 - 21 * - - NULLIF ( + COUNT( * ), + 87 + + 83 )
----
-32
78

skipif mysql # not compatible
query II rowsort label-3540
SELECT - 32 AS col1, 18 + + + 81 - 21 * - - NULLIF ( + COUNT ( * ), + 87 + + 83 )
----
-32
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT ALL 3 - - CASE + 99 WHEN - ( + COALESCE ( - - 5, - ( - 16 ) + - 99 * - - 86 ) ) THEN - COUNT( * ) WHEN 63 + + + 56 / + + SUM( ALL - + 43 ) THEN + 67 * + - 39 END * COUNT( * ) - - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL 3 - - CASE + 99 WHEN - ( + COALESCE ( - - 5, - ( - 16 ) + - 99 * - - 86 ) ) THEN - COUNT ( * ) WHEN 63 + + + 56 / + + SUM ( ALL - + 43 ) THEN + 67 * + - 39 END * COUNT ( * ) - - 7 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 61 - - 11 AS col1
----
72

query I rowsort
SELECT DISTINCT - 32 * 47 AS col2
----
-1504

query I rowsort
SELECT ALL + ( + 40 ) - - ( + - 87 ) * + 81 AS col1
----
-7007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3545
SELECT - COUNT( * ) DIV - 14 - NULLIF ( + 10, + CAST( - 15 AS SIGNED ) DIV - 41 ) + - 65 * + + 32
----
-2090

skipif mysql # not compatible
query I rowsort label-3545
SELECT - COUNT ( * ) / - 14 - NULLIF ( + 10, + CAST ( - 15 AS INTEGER ) / - 41 ) + - 65 * + + 32
----
-2090

onlyif mysql # aggregate syntax: 
query II rowsort label-3546
SELECT DISTINCT - COALESCE ( + 77, + - 67, + - MIN( + ( - - 64 ) ) - + 3 + - 50 + - 61 ) AS col0, 48 + 12 AS col0
----
-77
60

skipif mysql # not compatible
query II rowsort label-3546
SELECT DISTINCT - COALESCE ( + 77, + - 67, + - MIN ( + ( - - 64 ) ) - + 3 + - 50 + - 61 ) AS col0, 48 + 12 AS col0
----
-77
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3547
SELECT 14 DIV + + COALESCE ( + NULLIF ( 81, + - 55 ), + COUNT( * ) * 10 + 37 + - - 52 * ( + 96 ) + COUNT( ALL + 31 ) + - - COUNT( * ) * 95, 63 ) AS col1, + COALESCE ( 57, - MIN( DISTINCT 7 ) )
----
0
57

skipif mysql # not compatible
query II rowsort label-3547
SELECT 14 / + + COALESCE ( + NULLIF ( 81, + - 55 ), + COUNT ( * ) * 10 + 37 + - - 52 * ( + 96 ) + COUNT ( ALL + 31 ) + - - COUNT ( * ) * 95, 63 ) AS col1, + COALESCE ( 57, - MIN ( DISTINCT 7 ) )
----
0
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3548
SELECT + 7 DIV + + 56 + + ( + - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-3548
SELECT + 7 / + + 56 + + ( + - 45 )
----
-45

query I rowsort
SELECT 98 * - 63 AS col0
----
-6174

query I rowsort
SELECT 4 + - - ( + + 11 )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3551
SELECT 40 DIV - 19
----
-2

skipif mysql # not compatible
query I rowsort label-3551
SELECT 40 / - 19
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3552
SELECT DISTINCT - CASE + NULLIF ( + - 49, - + 37 + - COUNT( * ) ) WHEN - 10 * - CAST( NULL AS SIGNED ) THEN + MAX( DISTINCT 49 ) WHEN - 33 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT - CASE + NULLIF ( + - 49, - + 37 + - COUNT ( * ) ) WHEN - 10 * - CAST ( NULL AS INTEGER ) THEN + MAX ( DISTINCT 49 ) WHEN - 33 THEN NULL END AS col2
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3555
SELECT DISTINCT - 30 DIV - 48 * - 87 + - 43
----
-43

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT - 30 / - 48 * - 87 + - 43
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT 17 * + 71 + - COUNT( * ) AS col0
----
1206

skipif mysql # not compatible
query I rowsort label-3556
SELECT 17 * + 71 + - COUNT ( * ) AS col0
----
1206

query I rowsort
SELECT 76 + + 94 AS col0
----
170

onlyif mysql # aggregate syntax: 
query II rowsort label-3558
SELECT COUNT( * ) AS col2, - 40 * + 99 - 31
----
1
-3991

skipif mysql # not compatible
query II rowsort label-3558
SELECT COUNT ( * ) AS col2, - 40 * + 99 - 31
----
1
-3991

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3559
SELECT DISTINCT + 86 + - - ( CASE - - CAST( 34 AS SIGNED ) WHEN - 3 THEN - - COUNT( * ) + - + 67 * - 97 WHEN + 35 * + MIN( + 77 ) THEN NULL END ) + - - 69 - - 6 * + 52 * + 89, - 86 + + COUNT( DISTINCT 43 ) * + 58 * 0 AS col0
----
NULL
-86

skipif mysql # not compatible
query II rowsort label-3559
SELECT DISTINCT + 86 + - - ( CASE - - CAST ( 34 AS INTEGER ) WHEN - 3 THEN - - COUNT ( * ) + - + 67 * - 97 WHEN + 35 * + MIN ( + 77 ) THEN NULL END ) + - - 69 - - 6 * + 52 * + 89, - 86 + + COUNT ( DISTINCT 43 ) * + 58 * 0 AS col0
----
NULL
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3560
SELECT COUNT( + 43 ) * + - CAST( 75 AS SIGNED ) + 17 * - + 1 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-3560
SELECT COUNT ( + 43 ) * + - CAST ( 75 AS INTEGER ) + 17 * - + 1 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT + + 50 * - 99 * 83 * - COUNT( * ) - + 59 - 5 + 15
----
410801

skipif mysql # not compatible
query I rowsort label-3561
SELECT + + 50 * - 99 * 83 * - COUNT ( * ) - + 59 - 5 + 15
----
410801

onlyif mysql # aggregate syntax: 
query II rowsort label-3562
SELECT ALL - 43 AS col0, 33 + + COUNT( * ) + + + 47 AS col0
----
-43
81

skipif mysql # not compatible
query II rowsort label-3562
SELECT ALL - 43 AS col0, 33 + + COUNT ( * ) + + + 47 AS col0
----
-43
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3563
SELECT + 29 AS col2, + 17 + - CAST( NULL AS SIGNED ) + - 35 + - 20
----
29
NULL

skipif mysql # not compatible
query II rowsort label-3563
SELECT + 29 AS col2, + 17 + - CAST ( NULL AS INTEGER ) + - 35 + - 20
----
29
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3564
SELECT CAST( NULL AS SIGNED ) * 66 AS col1, 99
----
NULL
99

skipif mysql # not compatible
query II rowsort label-3564
SELECT CAST ( NULL AS INTEGER ) * 66 AS col1, 99
----
NULL
99

query I rowsort
SELECT ALL + 92 + + 46 + + + 97
----
235

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT 12 + + ( + COUNT( * ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-3567
SELECT 12 + + ( + COUNT ( * ) ) AS col0
----
13

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

query I rowsort
SELECT - 93 + 22 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT + MIN( - 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-3570
SELECT + MIN ( - 41 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT - 6 + - 6 + - SUM( ( - 35 ) ) - 84 * - + 84
----
7079

skipif mysql # not compatible
query I rowsort label-3571
SELECT - 6 + - 6 + - SUM ( ( - 35 ) ) - 84 * - + 84
----
7079

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3572
SELECT ALL 92 AS col1, + 79 + - CAST( NULL AS SIGNED ) AS col0
----
92
NULL

skipif mysql # not compatible
query II rowsort label-3572
SELECT ALL 92 AS col1, + 79 + - CAST ( NULL AS INTEGER ) AS col0
----
92
NULL

query I rowsort
SELECT - NULLIF ( + 11, + 89 ) AS col0
----
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-3574
SELECT DISTINCT 56 DIV 79, ( 22 ) AS col1
----
0
22

skipif mysql # not compatible
query II rowsort label-3574
SELECT DISTINCT 56 / 79, ( 22 ) AS col1
----
0
22

query I rowsort
SELECT ALL 27 - - + 61 col1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3576
SELECT DISTINCT 20 DIV - ( - 45 )
----
0

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT 20 / - ( - 45 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT ALL - ( - 71 ) * - ( + CASE + COUNT( * ) WHEN - 67 THEN NULL WHEN - + NULLIF ( - - 27, - - 82 ) THEN NULL ELSE + 41 + + + 50 + - 20 * 84 * + - 84 END ) AS col1
----
-10025981

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL - ( - 71 ) * - ( + CASE + COUNT ( * ) WHEN - 67 THEN NULL WHEN - + NULLIF ( - - 27, - - 82 ) THEN NULL ELSE + 41 + + + 50 + - 20 * 84 * + - 84 END ) AS col1
----
-10025981

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT COUNT( * ) + SUM( - 5 )
----
-4

skipif mysql # not compatible
query I rowsort label-3578
SELECT COUNT ( * ) + SUM ( - 5 )
----
-4

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

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

query I rowsort
SELECT DISTINCT 14 * + COALESCE ( + 26, + + 21 * + + 5 - + 57 - - + 83 ) * + 38 * + - 60
----
-829920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3581
SELECT 24 + - 80 * + 68 / CAST( NULL AS SIGNED ) / + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-3581
SELECT 24 + - 80 * + 68 / CAST ( NULL AS INTEGER ) / + 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT MIN( 91 ) * - 58 AS col0
----
-5278

skipif mysql # not compatible
query I rowsort label-3582
SELECT MIN ( 91 ) * - 58 AS col0
----
-5278

query I rowsort
SELECT - 53 * - - 55 + 82
----
-2833

onlyif mysql # DIV for integer division: 
query II rowsort label-3584
SELECT ALL 13 * + 12 AS col1, 22 DIV + 39 - - 31
----
156
31

skipif mysql # not compatible
query II rowsort label-3584
SELECT ALL 13 * + 12 AS col1, 22 / + 39 - - 31
----
156
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT 33 * + CAST( 16 AS SIGNED )
----
528

skipif mysql # not compatible
query I rowsort label-3585
SELECT 33 * + CAST ( 16 AS INTEGER )
----
528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3586
SELECT ALL + 84 * + MAX( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL + 84 * + MAX ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT - SUM( DISTINCT 31 ) * - 58
----
1798

skipif mysql # not compatible
query I rowsort label-3587
SELECT - SUM ( DISTINCT 31 ) * - 58
----
1798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3588
SELECT ALL - NULLIF ( + CAST( + - 94 AS DECIMAL ), - CAST( + 19 AS SIGNED ) + - - ( + CASE + 24 WHEN 15 THEN + - COUNT( * ) END ) ) * + 31 - - + CASE + - 40 WHEN + 12 + 53 THEN - - 21 WHEN + 58 * 10 / + 24 - - 20 THEN NULL END + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL - NULLIF ( + CAST ( + - 94 AS REAL ), - CAST ( + 19 AS INTEGER ) + - - ( + CASE + 24 WHEN 15 THEN + - COUNT ( * ) END ) ) * + 31 - - + CASE + - 40 WHEN + 12 + 53 THEN - - 21 WHEN + 58 * 10 / + 24 - - 20 THEN NULL END + + 81
----
NULL

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

query I rowsort
SELECT ALL + - 2 + 87
----
85

query I rowsort
SELECT - - 2 * + 85
----
170

query I rowsort
SELECT ALL - 96 + + - 49
----
-145

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3593
SELECT + CASE + 90 WHEN - 67 * 17 + - - 93 THEN - CASE + COUNT( * ) WHEN - + 55 THEN SUM( ALL 15 ) ELSE 62 * + 28 END WHEN + + 14 * + 82 + - - 54 + + 51 + - 37 THEN + 76 / - + 36 * - 78 * + 90 WHEN - 45 THEN NULLIF ( 6, NULLIF ( + COUNT( * ), + ( + 28 ) ) / - CAST( + 88 AS DECIMAL ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3593
SELECT + CASE + 90 WHEN - 67 * 17 + - - 93 THEN - CASE + COUNT ( * ) WHEN - + 55 THEN SUM ( ALL 15 ) ELSE 62 * + 28 END WHEN + + 14 * + 82 + - - 54 + + 51 + - 37 THEN + 76 / - + 36 * - 78 * + 90 WHEN - 45 THEN NULLIF ( 6, NULLIF ( + COUNT ( * ), + ( + 28 ) ) / - CAST ( + 88 AS REAL ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ALL 94 + 71 + + - COUNT( * ) AS col2
----
164

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL 94 + 71 + + - COUNT ( * ) AS col2
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT - MAX( DISTINCT 35 ) * + 31
----
-1085

skipif mysql # not compatible
query I rowsort label-3595
SELECT - MAX ( DISTINCT 35 ) * + 31
----
-1085

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3596
SELECT - CAST( NULL AS SIGNED ) + 1 * - 31 * - + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT - CAST ( NULL AS INTEGER ) + 1 * - 31 * - + 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT - - ( - - SUM( - 82 ) ) + + 3 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-3597
SELECT - - ( - - SUM ( - 82 ) ) + + 3 AS col0
----
-79

query I rowsort
SELECT ALL - 80 + + + 5 + - 1 * + 72
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3599
SELECT DISTINCT + 77 - - 19 + - NULLIF ( - CAST( NULL AS SIGNED ), 55 - - + 62 ) * - - 40 + + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT + 77 - - 19 + - NULLIF ( - CAST ( NULL AS INTEGER ), 55 - - + 62 ) * - - 40 + + 40 AS col2
----
NULL

query II rowsort
SELECT ALL NULLIF ( 16, 14 ) AS col0, 16
----
16
16

query II rowsort
SELECT - 19 AS col0, + 83
----
-19
83

query I rowsort
SELECT DISTINCT NULLIF ( 82, - - 10 )
----
82

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

skipif mysql # not compatible
query I rowsort label-3603
SELECT + 26 - - COUNT ( * ) AS col1
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3604
SELECT - CAST( NULL AS DECIMAL ) * - 24 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT - CAST ( NULL AS REAL ) * - 24 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3605
SELECT - CAST( + COALESCE ( COUNT( * ), + ( + 99 ) ) AS SIGNED ) - + 18 + CAST( NULL AS SIGNED ) * 8 + + 8 * + - 24 * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3605
SELECT - CAST ( + COALESCE ( COUNT ( * ), + ( + 99 ) ) AS INTEGER ) - + 18 + CAST ( NULL AS INTEGER ) * 8 + + 8 * + - 24 * 4
----
NULL

query II rowsort
SELECT - NULLIF ( - 77, - - 69 ), 38 + + 99 AS col2
----
77
137

onlyif mysql # DIV for integer division: 
query I rowsort label-3607
SELECT + 90 DIV + 20 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3607
SELECT + 90 / + 20 AS col0
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3608
SELECT ALL CAST( NULL AS DECIMAL ) / - + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL CAST ( NULL AS REAL ) / - + 54 AS col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL ( - CAST ( + 19 AS INTEGER ) ) col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3611
SELECT - CASE CAST( NULL AS SIGNED ) WHEN ( + 40 ) + + 35 * - 14 THEN - - 75 ELSE + 61 * + - 15 * COUNT( * ) * - 12 * + 0 END
----
0

skipif mysql # not compatible
query I rowsort label-3611
SELECT - CASE CAST ( NULL AS INTEGER ) WHEN ( + 40 ) + + 35 * - 14 THEN - - 75 ELSE + 61 * + - 15 * COUNT ( * ) * - 12 * + 0 END
----
0

query II rowsort
SELECT DISTINCT 55 AS col2, 45 * - 29
----
55
-1305

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3613
SELECT 97 / - - 68 + 62 * - 36 * - - 92 + - 65 + + CASE + ( 19 ) WHEN 43 THEN NULL WHEN 8 + - 44 THEN 68 * + 14 END + + - CAST( - + 49 AS SIGNED ), - 73 AS col1
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-3613
SELECT 97 / - - 68 + 62 * - 36 * - - 92 + - 65 + + CASE + ( 19 ) WHEN 43 THEN NULL WHEN 8 + - 44 THEN 68 * + 14 END + + - CAST ( - + 49 AS INTEGER ), - 73 AS col1
----
NULL
-73

query II rowsort
SELECT + 57, 15 col1
----
57
15

query II rowsort
SELECT 67 col0, 23 + + NULLIF ( - - 54, - 91 * - + 86 / 64 + - - 81 * - ( 76 ) + - 59 )
----
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT - + 17 * - - CASE + 30 WHEN ( - COUNT( * ) ) THEN 10 * - AVG ( DISTINCT + 87 ) * - 48 * NULLIF ( + 61, + 77 / + + 33 ) + ( + + 86 ) - 88 + + - NULLIF ( + + COALESCE ( 9, + + 41, - 13 * + + 83 * + SUM( + 29 ) + 13 / 32 ), 13 ) ELSE NULL END / - 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3616
SELECT - + 17 * - - CASE + 30 WHEN ( - COUNT ( * ) ) THEN 10 * - AVG ( DISTINCT + 87 ) * - 48 * NULLIF ( + 61, + 77 / + + 33 ) + ( + + 86 ) - 88 + + - NULLIF ( + + COALESCE ( 9, + + 41, - 13 * + + 83 * + SUM ( + 29 ) + 13 / 32 ), 13 ) ELSE NULL END / - 73 AS col1
----
NULL

query I rowsort
SELECT ALL - 78 * 54 + - + ( + 95 ) AS col1
----
-4307

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3618
SELECT ALL - - COUNT( * ) * + COUNT( * ) DIV 5 * + + 28 + - 40 + - 6 * + 90 AS col0
----
-580

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL - - COUNT ( * ) * + COUNT ( * ) / 5 * + + 28 + - 40 + - 6 * + 90 AS col0
----
-580

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT + - COUNT( * ) * COUNT( * ) + + 5 * - ( + ( - + 9 ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3620
SELECT + - COUNT ( * ) * COUNT ( * ) + + 5 * - ( + ( - + 9 ) ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3621
SELECT ALL + 99 * + 99 + + COUNT( * ) + COUNT( * ) + - + 81 + - - COUNT( * ), + 43 AS col2
----
9723
43

skipif mysql # not compatible
query II rowsort label-3621
SELECT ALL + 99 * + 99 + + COUNT ( * ) + COUNT ( * ) + - + 81 + - - COUNT ( * ), + 43 AS col2
----
9723
43

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

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

query I rowsort
SELECT ALL + 84 * + - 61 + + 60 + - + 12
----
-5076

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3625
SELECT + 76, - 59 * - NULLIF ( + COUNT( * ), - 51 + 1 ) * 61 * + 52 + + + 30 - - 46 AS col2
----
76
187224

skipif mysql # not compatible
query II rowsort label-3625
SELECT + 76, - 59 * - NULLIF ( + COUNT ( * ), - 51 + 1 ) * 61 * + 52 + + + 30 - - 46 AS col2
----
76
187224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3626
SELECT + 78 * CASE + - 12 WHEN 19 THEN NULL ELSE 94 END + + ( + + 61 ) * - CAST( 5 AS SIGNED ) col1
----
7027

skipif mysql # not compatible
query I rowsort label-3626
SELECT + 78 * CASE + - 12 WHEN 19 THEN NULL ELSE 94 END + + ( + + 61 ) * - CAST ( 5 AS INTEGER ) col1
----
7027

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3627
SELECT + NULLIF ( - CAST( - MIN( - + 88 ) AS SIGNED ), + ( 13 ) ) AS col0, - SUM( - ( - - 75 ) )
----
-88
75

skipif mysql # not compatible
query II rowsort label-3627
SELECT + NULLIF ( - CAST ( - MIN ( - + 88 ) AS INTEGER ), + ( 13 ) ) AS col0, - SUM ( - ( - - 75 ) )
----
-88
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3628
SELECT ALL + - 53 AS col1, NULLIF ( + + COUNT( * ), - 91 )
----
-53
1

skipif mysql # not compatible
query II rowsort label-3628
SELECT ALL + - 53 AS col1, NULLIF ( + + COUNT ( * ), - 91 )
----
-53
1

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

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

query I rowsort
SELECT - 74 * + - 76 * + 3 AS col0
----
16872

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ALL NULLIF ( 37, COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL NULLIF ( 37, COUNT ( * ) )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3632
SELECT - 50 * + + MIN( DISTINCT - + 64 ) DIV - COUNT( * ) + + + 42
----
-3158

skipif mysql # not compatible
query I rowsort label-3632
SELECT - 50 * + + MIN ( DISTINCT - + 64 ) / - COUNT ( * ) + + + 42
----
-3158

query I rowsort
SELECT - 26 + + 26
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3634
SELECT ALL - 92 DIV - 59
----
1

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL - 92 / - 59
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3635
SELECT - 38 DIV + + 89
----
0

skipif mysql # not compatible
query I rowsort label-3635
SELECT - 38 / + + 89
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3636
SELECT - CAST( NULL AS DECIMAL ) * - + 80 / - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3636
SELECT - CAST ( NULL AS REAL ) * - + 80 / - 94
----
NULL

query I rowsort
SELECT + 20 * - - 4 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT DISTINCT CASE + 53 WHEN + - CASE CASE + 90 WHEN + 80 THEN + CASE - SUM( - + 77 ) WHEN - 45 * + 15 * - 47 THEN MIN( DISTINCT 38 ) + - 81 + - + 10 ELSE COUNT( * ) * 36 END * + 19 + + 34 END WHEN - 16 THEN + 73 END + 58 THEN NULL WHEN + NULLIF ( 31, - SUM( DISTINCT - 1 ) ) THEN - 4 / - 15 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT CASE + 53 WHEN + - CASE CASE + 90 WHEN + 80 THEN + CASE - SUM ( - + 77 ) WHEN - 45 * + 15 * - 47 THEN MIN ( DISTINCT 38 ) + - 81 + - + 10 ELSE COUNT ( * ) * 36 END * + 19 + + 34 END WHEN - 16 THEN + 73 END + 58 THEN NULL WHEN + NULLIF ( 31, - SUM ( DISTINCT - 1 ) ) THEN - 4 / - 15 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 95, - 86 * - 79 - + + ( - + 91 ) )
----
95

query II rowsort
SELECT - 8 + - 34 AS col1, - NULLIF ( - ( 78 ), 24 / + - NULLIF ( - + 66, - 43 + + - 47 ) ) + - + 41 + - 24 - 66 AS col2
----
-42
-53

query I rowsort
SELECT DISTINCT ( + NULLIF ( - 4, - - 79 ) ) AS col1
----
-4

query I rowsort
SELECT - NULLIF ( + 63, - 17 ) AS col2
----
-63

query I rowsort
SELECT - NULLIF ( 2, 84 * - 63 + + 62 + - 49 )
----
-2

query II rowsort
SELECT + 54 + 95 col0, + 53 AS col1
----
149
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT + COUNT( * ) + - - MIN( + + 18 )
----
19

skipif mysql # not compatible
query I rowsort label-3645
SELECT + COUNT ( * ) + - - MIN ( + + 18 )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3646
SELECT ALL 10 DIV NULLIF ( - + 7, - - COUNT( * ) ) * - - 60 + + - 12 + 23 * - + 93 + 82 * 23 * + 9
----
14763

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL 10 / NULLIF ( - + 7, - - COUNT ( * ) ) * - - 60 + + - 12 + 23 * - + 93 + 82 * 23 * + 9
----
14763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3647
SELECT 62 * - CASE + COUNT( * ) WHEN - SUM( ALL + - 92 ) - + 87 + CAST( NULL AS SIGNED ) THEN 45 - - 4 + + 18 + + - 58 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3647
SELECT 62 * - CASE + COUNT ( * ) WHEN - SUM ( ALL + - 92 ) - + 87 + CAST ( NULL AS INTEGER ) THEN 45 - - 4 + + 18 + + - 58 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 70 AS col2
----
70

query II rowsort
SELECT DISTINCT - CASE + 50 WHEN - 69 THEN + 67 WHEN 0 THEN 1 * 66 * + 96 * - + NULLIF ( + 17, - ( 12 ) ) END AS col2, 57 AS col0
----
NULL
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3650
SELECT + CAST( NULL AS SIGNED ) * - 5 + 70 + - ( 99 ) * - - 72 * + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3650
SELECT + CAST ( NULL AS INTEGER ) * - 5 + 70 + - ( 99 ) * - - 72 * + + 47
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT DISTINCT 58 * + CAST( + 94 AS SIGNED ) - - - 22
----
5430

skipif mysql # not compatible
query I rowsort label-3651
SELECT DISTINCT 58 * + CAST ( + 94 AS INTEGER ) - - - 22
----
5430

query I rowsort
SELECT DISTINCT 97 - + - 18
----
115

query I rowsort
SELECT + - 18 col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3654
SELECT + CAST( NULL AS SIGNED ) / - + 65 + + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3654
SELECT + CAST ( NULL AS INTEGER ) / - + 65 + + 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3655
SELECT ALL 15 * - 24, SUM( + - 9 ) col2
----
-360
-9

skipif mysql # not compatible
query II rowsort label-3655
SELECT ALL 15 * - 24, SUM ( + - 9 ) col2
----
-360
-9

query I rowsort
SELECT - 85 * 27
----
-2295

query I rowsort
SELECT 10 * - 87
----
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT + MIN( ALL + + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-3658
SELECT + MIN ( ALL + + 19 )
----
19

query I rowsort
SELECT 58 * 7 - + 26 + 67 AS col0
----
447

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT DISTINCT 86 * + + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT 86 * + + COUNT ( * )
----
86

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3662
SELECT ALL - ( + SUM( ( - + 20 ) ) ) AS col0, - ( + NULLIF ( 12, + 47 * - - 86 + + 52 + - 36 - - 14 + + - 55 * COUNT( * ) * 46 ) ) AS col1
----
20
-12

skipif mysql # not compatible
query II rowsort label-3662
SELECT ALL - ( + SUM ( ( - + 20 ) ) ) AS col0, - ( + NULLIF ( 12, + 47 * - - 86 + + 52 + - 36 - - 14 + + - 55 * COUNT ( * ) * 46 ) ) AS col1
----
20
-12

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

skipif mysql # not compatible
query I rowsort label-3663
SELECT 8 / + 73
----
0

query I rowsort
SELECT 79 * + 52 col1
----
4108

query I rowsort
SELECT ALL - 87 + + 7
----
-80

query I rowsort
SELECT 4 * 50
----
200

onlyif mysql # DIV for integer division: 
query I rowsort label-3667
SELECT DISTINCT 38 DIV 10
----
3

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT 38 / 10
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT DISTINCT 55 + COUNT( 38 )
----
56

skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT 55 + COUNT ( 38 )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3669
SELECT 23 DIV - + 83
----
0

skipif mysql # not compatible
query I rowsort label-3669
SELECT 23 / - + 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3670
SELECT ALL 90 + + COUNT( * ) + + + COUNT( * ) * + COUNT( * ) / + + ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL 90 + + COUNT ( * ) + + + COUNT ( * ) * + COUNT ( * ) / + + ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 43 + - ( + 27 )
----
-70

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

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL + 88 + - COUNT ( * ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT COUNT( * ) + + - 94
----
-93

skipif mysql # not compatible
query I rowsort label-3673
SELECT COUNT ( * ) + + - 94
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-3674
SELECT 49 DIV + 93 col1
----
0

skipif mysql # not compatible
query I rowsort label-3674
SELECT 49 / + 93 col1
----
0

query I rowsort
SELECT 52 + - 81
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3676
SELECT 29 - + 45 + 60 * - 45 + + CASE - 63 WHEN + 37 + + + 52 * - ( - - COUNT( * ) ) * + 3 + - - 63 * + - COUNT( * ) * + 14 THEN + + ( + 91 ) WHEN + 2 * + + 1 * + 22 * - - 3 * 74 + - 19 + - AVG ( + 28 ) + - 87 + 27 * + 50 * - COUNT( * ) THEN NULL ELSE - 46 * - MAX( ALL + 63 ) END DIV + COUNT( * ) col0
----
182

skipif mysql # not compatible
query I rowsort label-3676
SELECT 29 - + 45 + 60 * - 45 + + CASE - 63 WHEN + 37 + + + 52 * - ( - - COUNT ( * ) ) * + 3 + - - 63 * + - COUNT ( * ) * + 14 THEN + + ( + 91 ) WHEN + 2 * + + 1 * + 22 * - - 3 * 74 + - 19 + - AVG ( + 28 ) + - 87 + 27 * + 50 * - COUNT ( * ) THEN NULL ELSE - 46 * - MAX ( ALL + 63 ) END / + COUNT ( * ) col0
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT ALL + 25 + + ( - CASE + + COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN - - 60 + + 92 + 81 THEN - 80 ELSE COALESCE ( - 44, + 6 ) END ) + - - 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL + 25 + + ( - CASE + + COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN - - 60 + + 92 + 81 THEN - 80 ELSE COALESCE ( - 44, + 6 ) END ) + - - 41 AS col1
----
NULL

query I rowsort
SELECT 39 - - 16
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3679
SELECT CASE WHEN + 63 IS NULL THEN - + 73 ELSE + + 24 + + + CAST( NULL AS SIGNED ) END * - + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3679
SELECT CASE WHEN + 63 IS NULL THEN - + 73 ELSE + + 24 + + + CAST ( NULL AS INTEGER ) END * - + 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT ALL - + 58 * + NULLIF ( + + 9, - COUNT( * ) * - 13 ) + + - 87
----
-609

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL - + 58 * + NULLIF ( + + 9, - COUNT ( * ) * - 13 ) + + - 87
----
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT ALL + COUNT( * ) + + 90 * + - 95 * 54 AS col0
----
-461699

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL + COUNT ( * ) + + 90 * + - 95 * 54 AS col0
----
-461699

query I rowsort
SELECT ALL NULLIF ( + - 25, + 17 ) - ( + 66 ) * + 5 col1
----
-355

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3683
SELECT - SUM( DISTINCT - 37 ) DIV - + NULLIF ( 64, + - 32 ) * + - COUNT( * ) + 19
----
19

skipif mysql # not compatible
query I rowsort label-3683
SELECT - SUM ( DISTINCT - 37 ) / - + NULLIF ( 64, + - 32 ) * + - COUNT ( * ) + 19
----
19

query I rowsort
SELECT 45 - - 87
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT - CASE + 76 WHEN - 27 THEN NULL WHEN MAX( ALL + 82 ) THEN + - 54 WHEN - 62 THEN NULL ELSE NULL END + + 85 * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-3685
SELECT - CASE + 76 WHEN - 27 THEN NULL WHEN MAX ( ALL + 82 ) THEN + - 54 WHEN - 62 THEN NULL ELSE NULL END + + 85 * + 48
----
NULL

query II rowsort
SELECT + 52 * + + CASE - 30 WHEN - - 83 THEN - 5 WHEN - 13 * - 95 * + AVG ( - 65 ) * - + 59 + - ( - 59 ) - + 87 + + 82 THEN NULL WHEN - + ( + 15 ) * + - 13 + - 44 + 76 + + 85 + - 86 THEN NULL END AS col2, 75 - - 34
----
NULL
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT COALESCE ( - ( - - COUNT( * ) ), + 50 ) + - 39 col0
----
-40

skipif mysql # not compatible
query I rowsort label-3687
SELECT COALESCE ( - ( - - COUNT ( * ) ), + 50 ) + - 39 col0
----
-40

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3689
SELECT DISTINCT - - 75 AS col2, - ( + CASE COUNT( ALL + + 3 ) WHEN - ( 98 ) THEN + + 77 ELSE 94 END ) AS col0
----
75
-94

skipif mysql # not compatible
query II rowsort label-3689
SELECT DISTINCT - - 75 AS col2, - ( + CASE COUNT ( ALL + + 3 ) WHEN - ( 98 ) THEN + + 77 ELSE 94 END ) AS col0
----
75
-94

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3692
SELECT DISTINCT - 45 col1, 6 DIV - 14 + CAST( + 91 AS SIGNED ) AS col0
----
-45
91

skipif mysql # not compatible
query II rowsort label-3692
SELECT DISTINCT - 45 col1, 6 / - 14 + CAST ( + 91 AS INTEGER ) AS col0
----
-45
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT ALL - + CASE - - 30 WHEN NULLIF ( 34, ( - 69 ) ) / COUNT( * ) + - 99 THEN NULL WHEN + 59 / + COUNT( * ) THEN - + COUNT( * ) WHEN 9 + + + 49 THEN + COUNT( - 27 ) * 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL - + CASE - - 30 WHEN NULLIF ( 34, ( - 69 ) ) / COUNT ( * ) + - 99 THEN NULL WHEN + 59 / + COUNT ( * ) THEN - + COUNT ( * ) WHEN 9 + + + 49 THEN + COUNT ( - 27 ) * 23 END
----
NULL

query I rowsort
SELECT - 32 * 97 AS col1
----
-3104

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT DISTINCT 72 * NULLIF ( - 27, + + NULLIF ( + 75, - + COUNT( * ) * - 8 ) ) - ( + - 30 ) * COALESCE ( - 30, - 89, + 31 )
----
-2844

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT 72 * NULLIF ( - 27, + + NULLIF ( + 75, - + COUNT ( * ) * - 8 ) ) - ( + - 30 ) * COALESCE ( - 30, - 89, + 31 )
----
-2844

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3696
SELECT DISTINCT - COUNT( * ), - 83 + - - CASE 63 WHEN + COUNT( * ) THEN + + 37 * - + 61 WHEN - 84 + - 54 + - - 37 * + - 93 + COUNT( * ) THEN NULL END - + - CAST( + 23 AS SIGNED ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3696
SELECT DISTINCT - COUNT ( * ), - 83 + - - CASE 63 WHEN + COUNT ( * ) THEN + + 37 * - + 61 WHEN - 84 + - 54 + - - 37 * + - 93 + COUNT ( * ) THEN NULL END - + - CAST ( + 23 AS INTEGER ) AS col0
----
-1
NULL

query I rowsort
SELECT - 59 + + 34 AS col2
----
-25

query I rowsort
SELECT 88 * + 75
----
6600

query I rowsort
SELECT 24 * + 65
----
1560

query I rowsort
SELECT DISTINCT 50 + - + 96
----
-46

query I rowsort
SELECT ALL 85 + - 61 + - 37 AS col2
----
-13

query I rowsort
SELECT DISTINCT 14 + + 40 col1
----
54

query I rowsort
SELECT ALL 49 + + 43
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-3704
SELECT ALL - 56 + 46 AS col1, COUNT( 64 )
----
-10
1

skipif mysql # not compatible
query II rowsort label-3704
SELECT ALL - 56 + 46 AS col1, COUNT ( 64 )
----
-10
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3705
SELECT COUNT( * ) - 68 AS col1, - SUM( 0 ) AS col0
----
-67
0

skipif mysql # not compatible
query II rowsort label-3705
SELECT COUNT ( * ) - 68 AS col1, - SUM ( 0 ) AS col0
----
-67
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3707
SELECT DISTINCT 98 AS col2, - SUM( + - ( + + 67 ) ) + - 45 AS col1
----
98
22

skipif mysql # not compatible
query II rowsort label-3707
SELECT DISTINCT 98 AS col2, - SUM ( + - ( + + 67 ) ) + - 45 AS col1
----
98
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3708
SELECT ALL COALESCE ( - CAST( - 15 AS DECIMAL ), + 65 ) + - CASE 21 WHEN - 33 / - 18 - - COUNT( DISTINCT - 94 ) * - + 4 THEN ( 23 ) + CAST( ( + - 32 ) AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL COALESCE ( - CAST ( - 15 AS REAL ), + 65 ) + - CASE 21 WHEN - 33 / - 18 - - COUNT ( DISTINCT - 94 ) * - + 4 THEN ( 23 ) + CAST ( ( + - 32 ) AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT COUNT( * ) + - + 52
----
-51

skipif mysql # not compatible
query I rowsort label-3709
SELECT COUNT ( * ) + - + 52
----
-51

query I rowsort
SELECT + 77 * 30
----
2310

query I rowsort
SELECT - 71 + + - 48 + - - 31
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3712
SELECT DISTINCT - 80 - - 82 + - 40 + - CAST( NULL AS SIGNED ) + - ( + + 67 ) * 31 + COUNT( * ) + COUNT( * ) * - 28 - 49 * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT - 80 - - 82 + - 40 + - CAST ( NULL AS INTEGER ) + - ( + + 67 ) * 31 + COUNT ( * ) + COUNT ( * ) * - 28 - 49 * + 99
----
NULL

query I rowsort
SELECT - 91 * + - 94 + - 6 AS col0
----
8548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3714
SELECT - COUNT( * ) + + CAST( + - 40 AS SIGNED ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-3714
SELECT - COUNT ( * ) + + CAST ( + - 40 AS INTEGER ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT - 14 + + COUNT( * ) * + 8 * ( - 58 ) + - + 25
----
-503

skipif mysql # not compatible
query I rowsort label-3715
SELECT - 14 + + COUNT ( * ) * + 8 * ( - 58 ) + - + 25
----
-503

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3716
SELECT + - 66 * 18 * - COUNT( - 7 ) AS col0, - 79 DIV - MIN( - 23 ) AS col0
----
1188
-3

skipif mysql # not compatible
query II rowsort label-3716
SELECT + - 66 * 18 * - COUNT ( - 7 ) AS col0, - 79 / - MIN ( - 23 ) AS col0
----
1188
-3

query I rowsort
SELECT + 58 * - 46 * - 19
----
50692

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

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

query I rowsort
SELECT - - 28 + 5 * + - 2 AS col2
----
18

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

query I rowsort
SELECT ALL - + 38 * - 53
----
2014

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3722
SELECT ALL + - CAST( + + 86 AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL + - CAST ( + + 86 AS INTEGER )
----
-86

query I rowsort
SELECT ALL - 73 * + 30 AS col2
----
-2190

query II rowsort
SELECT + ( + 49 ), ( 89 ) AS col2
----
49
89

query I rowsort
SELECT ALL - 62 * + 88
----
-5456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3726
SELECT 81 / + + 99 / 56 - - CAST( NULL AS SIGNED ) + - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3726
SELECT 81 / + + 99 / 56 - - CAST ( NULL AS INTEGER ) + - 71 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3727
SELECT + + 63, CAST( NULL AS SIGNED ) * + 81 AS col1
----
63
NULL

skipif mysql # not compatible
query II rowsort label-3727
SELECT + + 63, CAST ( NULL AS INTEGER ) * + 81 AS col1
----
63
NULL

query II rowsort
SELECT ALL + + 0 col0, 80 + - 56
----
0
24

query I rowsort
SELECT ALL + 12 * - - 99 col1
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT DISTINCT + COUNT( * ) * + 47 * - MAX( DISTINCT - 81 ) + + CASE + + 34 WHEN - 45 THEN - 22 WHEN + 51 * - 90 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT + COUNT ( * ) * + 47 * - MAX ( DISTINCT - 81 ) + + CASE + + 34 WHEN - 45 THEN - 22 WHEN + 51 * - 90 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT ALL - 70 * 90 * - ( COUNT( + 52 ) ) + MIN( DISTINCT 83 )
----
6383

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL - 70 * 90 * - ( COUNT ( + 52 ) ) + MIN ( DISTINCT 83 )
----
6383

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT NULLIF ( - COUNT( * ), + + 77 + + - 89 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3732
SELECT NULLIF ( - COUNT ( * ), + + 77 + + - 89 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3733
SELECT - COUNT( ALL 85 ) * - CASE + 13 WHEN COUNT( * ) THEN 15 ELSE NULL END + - 90 - 73 * - 51 - - + CAST( COUNT( * ) AS SIGNED ) + - COALESCE ( 9, - CASE + COALESCE ( 7, 41, + ( + NULLIF ( - - CAST( + 97 AS SIGNED ), 17 ) ), 5 ) WHEN + 9 + - SUM( 52 ) + - 93 * - ( 13 / COUNT( * ) ) THEN NULL WHEN + 50 + + AVG ( - 52 - - 92 ) THEN NULL WHEN CAST( NULL AS SIGNED ) THEN + 63 END * 81 ) + + 22 * 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT - COUNT ( ALL 85 ) * - CASE + 13 WHEN COUNT ( * ) THEN 15 ELSE NULL END + - 90 - 73 * - 51 - - + CAST ( COUNT ( * ) AS INTEGER ) + - COALESCE ( 9, - CASE + COALESCE ( 7, 41, + ( + NULLIF ( - - CAST ( + 97 AS INTEGER ), 17 ) ), 5 ) WHEN + 9 + - SUM ( 52 ) + - 93 * - ( 13 / COUNT ( * ) ) THEN NULL WHEN + 50 + + AVG ( - 52 - - 92 ) THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN + 63 END * 81 ) + + 22 * 46 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3734
SELECT - 9 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-3734
SELECT - 9 / 68
----
0

query I rowsort
SELECT DISTINCT 33 * + 43 + + 28
----
1447

onlyif mysql # aggregate syntax: 
query III rowsort label-3736
SELECT ALL + 52 * + - 36 * + 75 + + - 8 + + 64 * + - MIN( - + 98 ), - COUNT( * ) AS col0, 95 col2
----
-134136
-1
95

skipif mysql # not compatible
query III rowsort label-3736
SELECT ALL + 52 * + - 36 * + 75 + + - 8 + + 64 * + - MIN ( - + 98 ), - COUNT ( * ) AS col0, 95 col2
----
-134136
-1
95

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

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT ( + - COUNT ( * ) ) * + COUNT ( * ) + 38 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT COUNT( NULLIF ( + 25, + 45 + 25 * - 41 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3738
SELECT COUNT ( NULLIF ( + 25, + 45 + 25 * - 41 ) ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3739
SELECT - 73 DIV MIN( + 73 ) DIV - - 96
----
0

skipif mysql # not compatible
query I rowsort label-3739
SELECT - 73 / MIN ( + 73 ) / - - 96
----
0

query I rowsort
SELECT 70 * ( - 62 ) + + - 36
----
-4376

onlyif mysql # aggregate syntax: 
query II rowsort label-3741
SELECT MIN( ALL 90 ) AS col2, 89 + + 65
----
90
154

skipif mysql # not compatible
query II rowsort label-3741
SELECT MIN ( ALL 90 ) AS col2, 89 + + 65
----
90
154

query I rowsort
SELECT + 19 * 19 AS col1
----
361

query I rowsort
SELECT + 78 + + 25 * 80 AS col2
----
2078

query II rowsort
SELECT - - 87 + + 42 AS col0, + 73 AS col1
----
129
73

query I rowsort
SELECT + 89 * 78
----
6942

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT - ( - MIN( DISTINCT - 65 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-3746
SELECT - ( - MIN ( DISTINCT - 65 ) )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3747
SELECT ALL ( - CAST( - NULLIF ( - ( + ( - 77 ) ), 74 ) AS SIGNED ) ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL ( - CAST ( - NULLIF ( - ( + ( - 77 ) ), 74 ) AS INTEGER ) ) AS col0
----
77

query I rowsort
SELECT + 51 - + 61 + - 95 AS col2
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3749
SELECT + + 62 * 63 * - - COALESCE ( 77, + - COUNT( * ) DIV + COUNT( * ) - 16 - + - 5, - SUM( DISTINCT + - 90 ) ) AS col2
----
300762

skipif mysql # not compatible
query I rowsort label-3749
SELECT + + 62 * 63 * - - COALESCE ( 77, + - COUNT ( * ) / + COUNT ( * ) - 16 - + - 5, - SUM ( DISTINCT + - 90 ) ) AS col2
----
300762

query I rowsort
SELECT - + 57 * + 19 - - 20
----
-1063

query I rowsort
SELECT DISTINCT - 24 * + 5 AS col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT DISTINCT + COUNT( * ) * + 92
----
92

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT + COUNT ( * ) * + 92
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3753
SELECT DISTINCT - 74 * COUNT( * ) AS col1, - CASE WHEN NOT 56 NOT IN ( 60 - 90 + + CAST( + + COUNT( * ) AS SIGNED ) * + 72 * + 62, 12 ) THEN - 65 * 39 END + 7 + - 69 col1
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-3753
SELECT DISTINCT - 74 * COUNT ( * ) AS col1, - CASE WHEN NOT 56 NOT IN ( 60 - 90 + + CAST ( + + COUNT ( * ) AS INTEGER ) * + 72 * + 62, 12 ) THEN - 65 * 39 END + 7 + - 69 col1
----
-74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT + 36 * + 26 + 20 * - + 22 + + + 93 * + + COUNT( * ) AS col0
----
589

skipif mysql # not compatible
query I rowsort label-3754
SELECT + 36 * + 26 + 20 * - + 22 + + + 93 * + + COUNT ( * ) AS col0
----
589

query I rowsort
SELECT - + 5 - - 23
----
18

query I rowsort
SELECT + + 94 * - 76 AS col1
----
-7144

onlyif mysql # DIV for integer division: 
query I rowsort label-3757
SELECT 36 DIV 66 + - - 77
----
77

skipif mysql # not compatible
query I rowsort label-3757
SELECT 36 / 66 + - - 77
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3758
SELECT 30 * CAST( NULL AS SIGNED ) + 85 - + + COUNT( * ) + + 6 AS col2, + CAST( 19 AS SIGNED ) - - COUNT( - + 18 )
----
NULL
20

skipif mysql # not compatible
query II rowsort label-3758
SELECT 30 * CAST ( NULL AS INTEGER ) + 85 - + + COUNT ( * ) + + 6 AS col2, + CAST ( 19 AS INTEGER ) - - COUNT ( - + 18 )
----
NULL
20

onlyif mysql # DIV for integer division: 
query I rowsort label-3759
SELECT - 37 DIV - 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3759
SELECT - 37 / - 39 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3760
SELECT + MAX( + - 22 ), SUM( + 30 ) AS col2
----
-22
30

skipif mysql # not compatible
query II rowsort label-3760
SELECT + MAX ( + - 22 ), SUM ( + 30 ) AS col2
----
-22
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3761
SELECT ALL - 16 DIV 72 + - + 48 - - COUNT( * ) + ( - MIN( + 0 ) ), 69 - - - 74 + - 13 AS col1
----
-47
-18

skipif mysql # not compatible
query II rowsort label-3761
SELECT ALL - 16 / 72 + - + 48 - - COUNT ( * ) + ( - MIN ( + 0 ) ), 69 - - - 74 + - 13 AS col1
----
-47
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3762
SELECT ALL + CASE + + 66 WHEN CAST( NULL AS SIGNED ) THEN 1 ELSE NULL END / - + ( + - COALESCE ( + + NULLIF ( - - 91, - ( + 72 ) + 7 + 67 + - - NULLIF ( + + COUNT( * ), + 28 ) * MAX( ALL - 66 ) + 83 * - 94 + - 63 ), + MIN( DISTINCT + + 58 ) - - - CAST( + + COALESCE ( CASE + 37 WHEN - CAST( - ( - CAST( NULL AS DECIMAL ) ) AS SIGNED ) THEN NULL ELSE 23 END, - 18 / 12 ) AS SIGNED ) / - 31 ) ) + + 55 * MAX( DISTINCT 10 ) + COUNT( * ) * 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL + CASE + + 66 WHEN CAST ( NULL AS INTEGER ) THEN 1 ELSE NULL END / - + ( + - COALESCE ( + + NULLIF ( - - 91, - ( + 72 ) + 7 + 67 + - - NULLIF ( + + COUNT ( * ), + 28 ) * MAX ( ALL - 66 ) + 83 * - 94 + - 63 ), + MIN ( DISTINCT + + 58 ) - - - CAST ( + + COALESCE ( CASE + 37 WHEN - CAST ( - ( - CAST ( NULL AS REAL ) ) AS INTEGER ) THEN NULL ELSE 23 END, - 18 / 12 ) AS INTEGER ) / - 31 ) ) + + 55 * MAX ( DISTINCT 10 ) + COUNT ( * ) * 0 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3763
SELECT DISTINCT + 30 / + - 13 * + - COUNT( * ) + + 88 + + - ( - COALESCE ( - 60, - ( - 71 ) ) ) + + 12 * ( + 1 ) / - + CASE + COUNT( * ) WHEN CASE - 62 WHEN + 29 * - 57 / + 53 / COUNT( * ) THEN - 7 * - + 53 - - 52 WHEN - CAST( NULL AS DECIMAL ) THEN - + 3 END - + 36 THEN - 97 + + COALESCE ( 93, + COALESCE ( - 80, + 55 + + COUNT( * ), + 26 ), + 84 - 77 / + 73 ) WHEN 61 * + 32 + COUNT( ( 90 ) ) * 17 THEN 22 * 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT + 30 / + - 13 * + - COUNT ( * ) + + 88 + + - ( - COALESCE ( - 60, - ( - 71 ) ) ) + + 12 * ( + 1 ) / - + CASE + COUNT ( * ) WHEN CASE - 62 WHEN + 29 * - 57 / + 53 / COUNT ( * ) THEN - 7 * - + 53 - - 52 WHEN - CAST ( NULL AS REAL ) THEN - + 3 END - + 36 THEN - 97 + + COALESCE ( 93, + COALESCE ( - 80, + 55 + + COUNT ( * ), + 26 ), + 84 - 77 / + 73 ) WHEN 61 * + 32 + COUNT ( ( 90 ) ) * 17 THEN 22 * 45 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3764
SELECT CAST( NULL AS SIGNED ), - 34 AS col2
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-3764
SELECT CAST ( NULL AS INTEGER ), - 34 AS col2
----
NULL
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3765
SELECT DISTINCT 61 DIV - + 95 + - - ( 75 ) + + - 6 * COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-3765
SELECT DISTINCT 61 / - + 95 + - - ( 75 ) + + - 6 * COUNT ( * )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3766
SELECT ALL + 69 DIV MAX( DISTINCT 79 ) + - + 31 AS col0, 83 + - 75
----
-31
8

skipif mysql # not compatible
query II rowsort label-3766
SELECT ALL + 69 / MAX ( DISTINCT 79 ) + - + 31 AS col0, 83 + - 75
----
-31
8

query II rowsort
SELECT + 24, + 50 AS col1
----
24
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3768
SELECT + 73 + + 43 DIV 18 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-3768
SELECT + 73 + + 43 / 18 AS col0
----
75

query II rowsort
SELECT + 32 * 37 * + 98 AS col2, ( 42 ) AS col2
----
116032
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT + MIN( DISTINCT 43 )
----
43

skipif mysql # not compatible
query I rowsort label-3770
SELECT + MIN ( DISTINCT 43 )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3771
SELECT ALL - COALESCE ( + - 4, + COUNT( DISTINCT - - 31 ) DIV - COUNT( * ), 78, + ( + 44 ) ) AS col2, + 23
----
4
23

skipif mysql # not compatible
query II rowsort label-3771
SELECT ALL - COALESCE ( + - 4, + COUNT ( DISTINCT - - 31 ) / - COUNT ( * ), 78, + ( + 44 ) ) AS col2, + 23
----
4
23

query I rowsort
SELECT ALL + NULLIF ( + + 42, 53 / + 14 * - ( - 90 ) ) - 83 * + 45 AS col2
----
-3693

onlyif mysql # aggregate syntax: 
query II rowsort label-3773
SELECT DISTINCT 50 AS col2, 49 * + COUNT( * ) col0
----
50
49

skipif mysql # not compatible
query II rowsort label-3773
SELECT DISTINCT 50 AS col2, 49 * + COUNT ( * ) col0
----
50
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3774
SELECT DISTINCT - 21 DIV 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT - 21 / 49 AS col0
----
0

query I rowsort
SELECT 38 + + 57 + + 25 - - 38 + 27
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-3776
SELECT 77 DIV + 46 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3776
SELECT 77 / + 46 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3777
SELECT 0 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-3777
SELECT 0 / 80
----
0

query I rowsort
SELECT ALL - 86 * - 22 AS col1
----
1892

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3779
SELECT ALL CASE - 13 WHEN - 64 THEN - NULLIF ( 67, COUNT( * ) / MAX( 26 ) ) * - + MIN( - 24 ) * COALESCE ( 92, - 66 + - - CAST( NULL AS SIGNED ) ) * 6 + + - COUNT( * ) + - 33 * + + COUNT( * ) WHEN + COUNT( * ) THEN NULL WHEN 64 + + COUNT( * ) THEN + 63 * + + 12 + 57 * CASE + 17 WHEN + 60 THEN + - NULLIF ( 89, - 78 ) END + 8 WHEN 9 * + 59 THEN - 94 + - 66 * 95 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL CASE - 13 WHEN - 64 THEN - NULLIF ( 67, COUNT ( * ) / MAX ( 26 ) ) * - + MIN ( - 24 ) * COALESCE ( 92, - 66 + - - CAST ( NULL AS INTEGER ) ) * 6 + + - COUNT ( * ) + - 33 * + + COUNT ( * ) WHEN + COUNT ( * ) THEN NULL WHEN 64 + + COUNT ( * ) THEN + 63 * + + 12 + 57 * CASE + 17 WHEN + 60 THEN + - NULLIF ( 89, - 78 ) END + 8 WHEN 9 * + 59 THEN - 94 + - 66 * 95 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 95 * + 30 * + 54
----
153900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT DISTINCT + 78 * + + 94 * + CAST( ( + - 66 ) AS SIGNED )
----
-483912

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT + 78 * + + 94 * + CAST ( ( + - 66 ) AS INTEGER )
----
-483912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3782
SELECT ALL + 14 + - + 26 / + - 71 * 74 + CAST( NULL AS SIGNED ) * + 51 + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL + 14 + - + 26 / + - 71 * 74 + CAST ( NULL AS INTEGER ) * + 51 + 63 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT + CASE + - COUNT( * ) WHEN + - 18 * COUNT( * ) THEN NULL ELSE + 19 END + - 1
----
18

skipif mysql # not compatible
query I rowsort label-3783
SELECT + CASE + - COUNT ( * ) WHEN + - 18 * COUNT ( * ) THEN NULL ELSE + 19 END + - 1
----
18

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3785
SELECT ALL CAST( 55 AS SIGNED ) + - NULLIF ( 21, 55 * - - AVG ( ALL 36 ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL CAST ( 55 AS INTEGER ) + - NULLIF ( 21, 55 * - - AVG ( ALL 36 ) ) AS col1
----
34

query II rowsort
SELECT - - 48 AS col2, 23 AS col0
----
48
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT 79 * + COUNT( * ) * + 74 AS col2
----
5846

skipif mysql # not compatible
query I rowsort label-3787
SELECT 79 * + COUNT ( * ) * + 74 AS col2
----
5846

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3788
SELECT 45 AS col2, - COALESCE ( 83, - CAST( NULL AS SIGNED ) * 89 DIV - 14 - + 67 + - - 44 + 40 + 66 + - - 59 * + 38 * + 36 + - 57 ) + - ( + 61 ) + - - 80
----
45
-64

skipif mysql # not compatible
query II rowsort label-3788
SELECT 45 AS col2, - COALESCE ( 83, - CAST ( NULL AS INTEGER ) * 89 / - 14 - + 67 + - - 44 + 40 + 66 + - - 59 * + 38 * + 36 + - 57 ) + - ( + 61 ) + - - 80
----
45
-64

query I rowsort
SELECT ALL 22 * + 81 AS col0
----
1782

query I rowsort
SELECT ALL + 18 + 42 AS col1
----
60

query I rowsort
SELECT DISTINCT 91 * + + 17
----
1547

query I rowsort
SELECT 7 - + - 5 AS col0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3793
SELECT 43 * 5 DIV - + 97
----
-2

skipif mysql # not compatible
query I rowsort label-3793
SELECT 43 * 5 / - + 97
----
-2

query I rowsort
SELECT 52 * 96
----
4992

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT + COUNT( * ) * + - 78 + + 58
----
-20

skipif mysql # not compatible
query I rowsort label-3795
SELECT + COUNT ( * ) * + - 78 + + 58
----
-20

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

skipif mysql # not compatible
query I rowsort label-3796
SELECT COUNT ( * ) / + 97
----
0

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

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL - 98 / - + COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT 52 - + CASE + - 81 WHEN + 78 THEN COALESCE ( + COUNT( * ), + + 5 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3798
SELECT 52 - + CASE + - 81 WHEN + 78 THEN COALESCE ( + COUNT ( * ), + + 5 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 8 - - - 56 * + NULLIF ( 7, - 18 ) + - 62 AS col1
----
-446

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3800
SELECT 67 * CASE + CASE 61 WHEN COUNT( ALL - - 95 ) * + 33 / - + 99 / - CAST( NULL AS SIGNED ) + + COUNT( * ) - - 14 + - - 89 + + 23 + + MIN( - 26 ) * 65 THEN 0 WHEN + 42 * + COALESCE ( ( - 78 ), - - CASE + CAST( - - 35 AS SIGNED ) WHEN NULLIF ( - - 20, - 72 / + ( 8 ) * 38 + - 67 / 21 ) - - 18 THEN - COUNT( * ) * 49 END ) * + 59 THEN NULL WHEN + 5 THEN NULL ELSE COUNT( * ) * + 59 + 44 END WHEN 67 THEN + 4 END * 94 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT 67 * CASE + CASE 61 WHEN COUNT ( ALL - - 95 ) * + 33 / - + 99 / - CAST ( NULL AS INTEGER ) + + COUNT ( * ) - - 14 + - - 89 + + 23 + + MIN ( - 26 ) * 65 THEN 0 WHEN + 42 * + COALESCE ( ( - 78 ), - - CASE + CAST ( - - 35 AS INTEGER ) WHEN NULLIF ( - - 20, - 72 / + ( 8 ) * 38 + - 67 / 21 ) - - 18 THEN - COUNT ( * ) * 49 END ) * + 59 THEN NULL WHEN + 5 THEN NULL ELSE COUNT ( * ) * + 59 + 44 END WHEN 67 THEN + 4 END * 94 col1
----
NULL

query I rowsort
SELECT ALL - 35 * - 64 AS col1
----
2240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3802
SELECT 83 + 67 + + 62 * 44 AS col2, CAST( NULLIF ( + + 20, - - 7 / + + 49 ) AS SIGNED ) * 42 AS col0
----
2878
840

skipif mysql # not compatible
query II rowsort label-3802
SELECT 83 + 67 + + 62 * 44 AS col2, CAST ( NULLIF ( + + 20, - - 7 / + + 49 ) AS INTEGER ) * 42 AS col0
----
2878
840

query I rowsort
SELECT 45 * + + 76 - - + 11
----
3431

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3804
SELECT ALL - 8 * - 34 AS col0, CASE + CASE + 18 WHEN - + 39 * + MAX( + CAST( 74 AS DECIMAL ) ) THEN + 41 * + 60 + 3 - 54 / - 53 * - - 37 WHEN + 80 THEN NULL WHEN - NULLIF ( CASE - 2 WHEN + COUNT( DISTINCT + 12 ) * - 71 - - 32 THEN NULL WHEN + - 85 + - 16 + + - 98 THEN NULL ELSE + 11 END, 23 * 2 * 99 ) + 33 / + 8 THEN NULL ELSE NULL END WHEN 30 * 94 THEN + 97 END * - 50 AS col2
----
272
NULL

skipif mysql # not compatible
query II rowsort label-3804
SELECT ALL - 8 * - 34 AS col0, CASE + CASE + 18 WHEN - + 39 * + MAX ( + CAST ( 74 AS REAL ) ) THEN + 41 * + 60 + 3 - 54 / - 53 * - - 37 WHEN + 80 THEN NULL WHEN - NULLIF ( CASE - 2 WHEN + COUNT ( DISTINCT + 12 ) * - 71 - - 32 THEN NULL WHEN + - 85 + - 16 + + - 98 THEN NULL ELSE + 11 END, 23 * 2 * 99 ) + 33 / + 8 THEN NULL ELSE NULL END WHEN 30 * 94 THEN + 97 END * - 50 AS col2
----
272
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT 57 * CASE - 1 WHEN + 0 THEN 84 WHEN + COUNT( * ) THEN ( - 38 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3805
SELECT 57 * CASE - 1 WHEN + 0 THEN 84 WHEN + COUNT ( * ) THEN ( - 38 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3806
SELECT - MIN( + 93 ), - NULLIF ( MAX( + 84 ), + - 54 + + + 63 ) * - 74 AS col0
----
-93
6216

skipif mysql # not compatible
query II rowsort label-3806
SELECT - MIN ( + 93 ), - NULLIF ( MAX ( + 84 ), + - 54 + + + 63 ) * - 74 AS col0
----
-93
6216

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT ALL NULLIF ( + NULLIF ( + CASE + 98 WHEN 19 + 70 + - 69 * + COUNT( * ) THEN + 62 WHEN + - 99 * - - 84 + CASE 55 WHEN + 57 * 35 + + + 25 / + 55 THEN NULL WHEN - ( + 16 ) * - 17 THEN 47 * 46 + 20 - + + 40 END THEN - NULLIF ( - 29, 85 ) ELSE + MAX( - 65 ) + COUNT( * ) END, - 42 * 13 ), - 37 + + 0 ) col1
----
-64

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL NULLIF ( + NULLIF ( + CASE + 98 WHEN 19 + 70 + - 69 * + COUNT ( * ) THEN + 62 WHEN + - 99 * - - 84 + CASE 55 WHEN + 57 * 35 + + + 25 / + 55 THEN NULL WHEN - ( + 16 ) * - 17 THEN 47 * 46 + 20 - + + 40 END THEN - NULLIF ( - 29, 85 ) ELSE + MAX ( - 65 ) + COUNT ( * ) END, - 42 * 13 ), - 37 + + 0 ) col1
----
-64

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

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

query I rowsort
SELECT ALL + 49 + - ( - 93 ) + - ( 99 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT ALL - + COUNT( COALESCE ( - 4, 88, + 55 ) ) + + COUNT( * ) * - + COALESCE ( 83, - 24, - 65 ) * - 11 * + 53
----
48388

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL - + COUNT ( COALESCE ( - 4, 88, + 55 ) ) + + COUNT ( * ) * - + COALESCE ( 83, - 24, - 65 ) * - 11 * + 53
----
48388

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT 25 + - 34 + + CASE + + ( - 31 ) WHEN - 96 THEN MAX( ALL 32 ) + + 8 / + 34 * + - CASE 20 WHEN + - 39 + COUNT( * ) THEN + 67 END WHEN - - 75 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3811
SELECT 25 + - 34 + + CASE + + ( - 31 ) WHEN - 96 THEN MAX ( ALL 32 ) + + 8 / + 34 * + - CASE 20 WHEN + - 39 + COUNT ( * ) THEN + 67 END WHEN - - 75 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT ALL - - COUNT( * ) + - 93 - + 78
----
-170

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL - - COUNT ( * ) + - 93 - + 78
----
-170

query I rowsort
SELECT - 27 * + 28 AS col1
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT 48 - + - 77 + + COUNT( * )
----
126

skipif mysql # not compatible
query I rowsort label-3814
SELECT 48 - + - 77 + + COUNT ( * )
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT SUM( 98 ) + 27 AS col1
----
125

skipif mysql # not compatible
query I rowsort label-3815
SELECT SUM ( 98 ) + 27 AS col1
----
125

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

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

query I rowsort
SELECT ALL + + 97 * + 22
----
2134

query II rowsort
SELECT + 76 + + + 62 * + 27 * - 89, 81 AS col2
----
-148910
81

query I rowsort
SELECT ALL - 42 + 62
----
20

query I rowsort
SELECT 17 * + - 63 * + 41 * - 27 + 34 col1
----
1185631

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT ALL CASE + 13 WHEN 86 THEN + CASE - 79 WHEN + 82 THEN NULL ELSE - COALESCE ( + ( - + 37 ), - 10 * ( - 4 ) + + 26 ) END * - COUNT( * ) * 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL CASE + 13 WHEN 86 THEN + CASE - 79 WHEN + 82 THEN NULL ELSE - COALESCE ( + ( - + 37 ), - 10 * ( - 4 ) + + 26 ) END * - COUNT ( * ) * 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT COALESCE ( + 7, MIN( ALL - ( - + 27 ) ) )
----
7

skipif mysql # not compatible
query I rowsort label-3822
SELECT COALESCE ( + 7, MIN ( ALL - ( - + 27 ) ) )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL - 4 * + + 54 - + MIN( + - 11 ) AS col2
----
-205

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL - 4 * + + 54 - + MIN ( + - 11 ) AS col2
----
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT + 32 * + 63 * MIN( DISTINCT - 63 ) * - 36
----
4572288

skipif mysql # not compatible
query I rowsort label-3824
SELECT + 32 * + 63 * MIN ( DISTINCT - 63 ) * - 36
----
4572288

query I rowsort
SELECT + 2 + - 15 AS col1
----
-13

query II rowsort
SELECT ALL + 3, + 78 AS col0
----
3
78

query I rowsort
SELECT ALL 73 * - 62
----
-4526

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT + 79 + + + COUNT( * ) * - 39
----
40

skipif mysql # not compatible
query I rowsort label-3828
SELECT + 79 + + + COUNT ( * ) * - 39
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3829
SELECT ALL - ( + 52 ) DIV - - 16 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL - ( + 52 ) / - - 16 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT + 96 * - - SUM( - 6 ) AS col2
----
-576

skipif mysql # not compatible
query I rowsort label-3830
SELECT + 96 * - - SUM ( - 6 ) AS col2
----
-576

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT ALL COUNT( * ) * - 5 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL COUNT ( * ) * - 5 AS col1
----
-5

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

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

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

skipif mysql # not compatible
query I rowsort label-3834
SELECT + MIN ( - 18 )
----
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT + NULLIF ( - - 4, + 57 ) + - 21 + + 55 + + - 39 + - - 66 * NULLIF ( - + COUNT( 31 ), + 71 )
----
-67

skipif mysql # not compatible
query I rowsort label-3836
SELECT + NULLIF ( - - 4, + 57 ) + - 21 + + 55 + + - 39 + - - 66 * NULLIF ( - + COUNT ( 31 ), + 71 )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3837
SELECT - NULLIF ( - 37, - 43 * + 96 + 56 * - 44 * + - 56 ) + - ( COALESCE ( + 88, - AVG ( ALL - + 40 ) * - + 21, + 40, 21 ) ) + + 28 * 31 + CAST( NULL AS SIGNED ) - + - 6 * - CASE NULLIF ( CAST( NULL AS SIGNED ), - - COUNT( * ) ) WHEN + + 9 THEN NULL WHEN - COUNT( - + 24 ) THEN - 41 + - 66 * + 64 WHEN + 53 THEN NULL ELSE COALESCE ( - ( - 74 ), + 60 * 96, + 24, - 65 + 21 * + CAST( SUM( 67 ) * 30 + 20 AS SIGNED ) ) END + + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT - NULLIF ( - 37, - 43 * + 96 + 56 * - 44 * + - 56 ) + - ( COALESCE ( + 88, - AVG ( ALL - + 40 ) * - + 21, + 40, 21 ) ) + + 28 * 31 + CAST ( NULL AS INTEGER ) - + - 6 * - CASE NULLIF ( CAST ( NULL AS INTEGER ), - - COUNT ( * ) ) WHEN + + 9 THEN NULL WHEN - COUNT ( - + 24 ) THEN - 41 + - 66 * + 64 WHEN + 53 THEN NULL ELSE COALESCE ( - ( - 74 ), + 60 * 96, + 24, - 65 + 21 * + CAST ( SUM ( 67 ) * 30 + 20 AS INTEGER ) ) END + + 61 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3838
SELECT + COUNT( * ) DIV + CASE + + 7 WHEN + + 41 THEN NULL ELSE - - 40 END DIV COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3838
SELECT + COUNT ( * ) / + CASE + + 7 WHEN + + 41 THEN NULL ELSE - - 40 END / COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ALL 82 * + 34 + - 16 col0
----
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT 68 * + COUNT( * ) + + + COUNT( ALL - + 40 )
----
69

skipif mysql # not compatible
query I rowsort label-3840
SELECT 68 * + COUNT ( * ) + + + COUNT ( ALL - + 40 )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3841
SELECT ALL + 69 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL + 69 / - 86
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3842
SELECT DISTINCT + 47 + + + 41 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT + 47 + + + 41 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 89 * ( ( + 23 ) ) AS col2
----
-2047

onlyif mysql # aggregate syntax: 
query II rowsort label-3844
SELECT ALL 14 + SUM( - 56 ), 20 * - 69 col1
----
-42
-1380

skipif mysql # not compatible
query II rowsort label-3844
SELECT ALL 14 + SUM ( - 56 ), 20 * - 69 col1
----
-42
-1380

query I rowsort
SELECT DISTINCT + 20 + + 41 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT - 45 + + - SUM( DISTINCT 88 )
----
-133

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT - 45 + + - SUM ( DISTINCT 88 )
----
-133

query I rowsort
SELECT ALL - + 37 * 14
----
-518

query I rowsort
SELECT - + ( - 23 ) + + 44
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3849
SELECT DISTINCT - COUNT( DISTINCT + - 58 ) * ( - - 62 ) DIV - - 98 * 92 - - 38 * + + 92 AS col2
----
3496

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT - COUNT ( DISTINCT + - 58 ) * ( - - 62 ) / - - 98 * 92 - - 38 * + + 92 AS col2
----
3496

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

skipif mysql # not compatible
query I rowsort label-3850
SELECT - + 32 + - - COUNT ( * ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT - - MAX( DISTINCT + - 22 ) + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-3851
SELECT - - MAX ( DISTINCT + - 22 ) + COUNT ( * )
----
-21

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3853
SELECT - + 82 + - CASE - + ( - - COUNT( * ) ) WHEN + - 68 THEN NULL WHEN CASE - 91 WHEN 46 * + 14 THEN NULL ELSE + + 37 + - 74 END THEN + 8 * + 50 ELSE NULL END * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3853
SELECT - + 82 + - CASE - + ( - - COUNT ( * ) ) WHEN + - 68 THEN NULL WHEN CASE - 91 WHEN 46 * + 14 THEN NULL ELSE + + 37 + - 74 END THEN + 8 * + 50 ELSE NULL END * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3854
SELECT ALL + 13 DIV - 23
----
0

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL + 13 / - 23
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3855
SELECT DISTINCT - 43 - - 41 DIV - 30 + - 66 + + 57 * - 3 * - COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT - 43 - - 41 / - 30 + - 66 + + 57 * - 3 * - COUNT ( * ) AS col2
----
61

query I rowsort
SELECT ALL COALESCE ( - 84, + 70 + + 90 + 50, + 26 )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3857
SELECT ALL + 16 * - COUNT( * ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL + 16 * - COUNT ( * ) * CAST ( NULL AS REAL )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3858
SELECT - 26 / + COUNT ( * ) AS col1
----
-26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT - 3 * - COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3860
SELECT - 3 * - COUNT ( * ) AS col2
----
3

query I rowsort
SELECT ALL COALESCE ( + 20, + 26 ) AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT ALL CAST( - 33 AS SIGNED ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL CAST ( - 33 AS INTEGER ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ALL + ( + + ( + 62 ) ) * + COUNT( * ) + 98 AS col0
----
160

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL + ( + + ( + 62 ) ) * + COUNT ( * ) + 98 AS col0
----
160

query I rowsort
SELECT DISTINCT + 98 * 78 AS col1
----
7644

query II rowsort
SELECT ALL + 23 AS col1, + 2 * - 51
----
23
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3866
SELECT ALL - CAST( NULL AS SIGNED ) * + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 14
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3867
SELECT ALL + CAST( - + 48 AS SIGNED ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL + CAST ( - + 48 AS INTEGER ) AS col2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3868
SELECT CAST( - 77 AS SIGNED ) col1
----
-77

skipif mysql # not compatible
query I rowsort label-3868
SELECT CAST ( - 77 AS INTEGER ) col1
----
-77

query I rowsort
SELECT - 19 + + 84 + - + ( - + 42 ) col0
----
107

query I rowsort
SELECT + COALESCE ( 0, + - 86 * + - 59 + + 77 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3871
SELECT COUNT( * ) * + + 31 + ( - - SUM( - 73 ) ) / - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT COUNT ( * ) * + + 31 + ( - - SUM ( - 73 ) ) / - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ( - - 82 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT ( - ( - COALESCE ( + ( 84 ), + 35, + + COUNT( * ) ) ) )
----
84

skipif mysql # not compatible
query I rowsort label-3873
SELECT ( - ( - COALESCE ( + ( 84 ), + 35, + + COUNT ( * ) ) ) )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ALL 3 * - + 19 + + COUNT( * ) col2
----
-56

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL 3 * - + 19 + + COUNT ( * ) col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3875
SELECT ALL + COALESCE ( + 87, CAST( - - COALESCE ( COUNT( * ), 51 ) AS SIGNED ) )
----
87

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL + COALESCE ( + 87, CAST ( - - COALESCE ( COUNT ( * ), 51 ) AS INTEGER ) )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT + COUNT( * ) * + MAX( + - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-3876
SELECT + COUNT ( * ) * + MAX ( + - 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT CASE + - 16 WHEN + - COUNT( * ) / - 16 THEN NULL ELSE - 37 END * + NULLIF ( - - 25, - 37 ) + + 73 - 31 AS col0
----
-883

skipif mysql # not compatible
query I rowsort label-3877
SELECT CASE + - 16 WHEN + - COUNT ( * ) / - 16 THEN NULL ELSE - 37 END * + NULLIF ( - - 25, - 37 ) + + 73 - 31 AS col0
----
-883

onlyif mysql # DIV for integer division: 
query I rowsort label-3878
SELECT DISTINCT + 91 DIV + 41
----
2

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT + 91 / + 41
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT ALL COUNT( * ) * - - MAX( 42 ) + - 15 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL COUNT ( * ) * - - MAX ( 42 ) + - 15 AS col1
----
27

query I rowsort
SELECT ALL 59 * - 70 AS col0
----
-4130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3881
SELECT ALL - 57 * - CAST( NULL AS SIGNED ) * 40 + - COALESCE ( 25, + - 8 ), - COUNT( * ) * AVG ( - - CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3881
SELECT ALL - 57 * - CAST ( NULL AS INTEGER ) * 40 + - COALESCE ( 25, + - 8 ), - COUNT ( * ) * AVG ( - - CAST ( NULL AS INTEGER ) )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT - COUNT( * ) * + 7 * 24 + + 73 * + + 2
----
-22

skipif mysql # not compatible
query I rowsort label-3882
SELECT - COUNT ( * ) * + 7 * 24 + + 73 * + + 2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3883
SELECT 40 AS col1, 77 DIV - + 23 - + + COUNT( DISTINCT 51 ) AS col0
----
40
-4

skipif mysql # not compatible
query II rowsort label-3883
SELECT 40 AS col1, 77 / - + 23 - + + COUNT ( DISTINCT 51 ) AS col0
----
40
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3884
SELECT DISTINCT 60 * 17 DIV 32 + - + 81 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT 60 * 17 / 32 + - + 81 AS col0
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3885
SELECT + - COUNT( * ) DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-3885
SELECT + - COUNT ( * ) / + 64
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3886
SELECT + 18 * + 27, - 89 * 8 + 46 + + ( + + MIN( + 16 ) ) + - 22 DIV + 32 AS col1
----
486
-650

skipif mysql # not compatible
query II rowsort label-3886
SELECT + 18 * + 27, - 89 * 8 + 46 + + ( + + MIN ( + 16 ) ) + - 22 / + 32 AS col1
----
486
-650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3887
SELECT ALL - COALESCE ( 0, + CAST( NULL AS SIGNED ), + 77 + - + 4 )
----
0

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL - COALESCE ( 0, + CAST ( NULL AS INTEGER ), + 77 + - + 4 )
----
0

query I rowsort
SELECT ( - 83 ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT - 26 * - COUNT( * ) + + - 41
----
-15

skipif mysql # not compatible
query I rowsort label-3889
SELECT - 26 * - COUNT ( * ) + + - 41
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3890
SELECT DISTINCT CAST( NULL AS SIGNED ) - SUM( DISTINCT 74 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT CAST ( NULL AS INTEGER ) - SUM ( DISTINCT 74 ) AS col0
----
NULL

query I rowsort
SELECT - 72 * - 57
----
4104

query I rowsort
SELECT + - 50 + + + 94
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT MIN( 83 )
----
83

skipif mysql # not compatible
query I rowsort label-3893
SELECT MIN ( 83 )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3894
SELECT ALL + 39 - - - 66 DIV + 19 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL + 39 - - - 66 / + 19 AS col0
----
36

query II rowsort
SELECT - 5, + 10 * + 82 + - 25 AS col1
----
-5
795

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT ( - + 54 ) - COUNT( * ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-3896
SELECT ( - + 54 ) - COUNT ( * ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT ALL NULLIF ( COUNT( * ), - NULLIF ( AVG ( 18 ), ( 45 ) ) ) * + - 99
----
-99

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL NULLIF ( COUNT ( * ), - NULLIF ( AVG ( 18 ), ( 45 ) ) ) * + - 99
----
-99

query I rowsort
SELECT DISTINCT ( + 25 ) * + 42 AS col0
----
1050

onlyif mysql # DIV for integer division: 
query I rowsort label-3899
SELECT 58 DIV - 35 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3899
SELECT 58 / - 35 AS col0
----
-1

query II rowsort
SELECT 32 + + - 79, 26 AS col1
----
-47
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3901
SELECT CAST( NULL AS SIGNED ) + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT CAST ( NULL AS INTEGER ) + - 3
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3902
SELECT 77 - - 90, 51 * 25 * + COUNT( * ) AS col0
----
167
1275

skipif mysql # not compatible
query II rowsort label-3902
SELECT 77 - - 90, 51 * 25 * + COUNT ( * ) AS col0
----
167
1275

onlyif mysql # DIV for integer division: 
query I rowsort label-3903
SELECT ALL + 76 DIV - - 33
----
2

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL + 76 / - - 33
----
2

query I rowsort
SELECT CASE COALESCE ( - 19, + COALESCE ( - 72, - - 53 ) ) WHEN + 91 THEN 3 * - 88 - + - 80 * - - NULLIF ( 30, - 96 ) END / 71 + - 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT 49 * + ( + 9 ) * 31 + - ( CAST( NULL AS SIGNED ) ) + - 29 * - ( 27 ) + - 63 * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT 49 * + ( + 9 ) * 31 + - ( CAST ( NULL AS INTEGER ) ) + - 29 * - ( 27 ) + - 63 * - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3906
SELECT DISTINCT - 4 + + CAST( - - COUNT( * ) AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT - 4 + + CAST ( - - COUNT ( * ) AS INTEGER )
----
-3

query I rowsort
SELECT 67 + 43
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-3908
SELECT ALL + 77 DIV 10 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL + 77 / 10 AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3909
SELECT + COUNT( * ) * - 95 * - + COALESCE ( - 24, - + 74 * + - 50 * - + 56 ) + - - 97 * - - ( + + 90 ) + + NULLIF ( - - 39, + + 98 * - 37 + - 31 ) * CAST( NULLIF ( + COUNT( * ), 95 ) AS SIGNED )
----
6489

skipif mysql # not compatible
query I rowsort label-3909
SELECT + COUNT ( * ) * - 95 * - + COALESCE ( - 24, - + 74 * + - 50 * - + 56 ) + - - 97 * - - ( + + 90 ) + + NULLIF ( - - 39, + + 98 * - 37 + - 31 ) * CAST ( NULLIF ( + COUNT ( * ), 95 ) AS INTEGER )
----
6489

onlyif mysql # aggregate syntax: 
query II rowsort label-3910
SELECT ALL - COALESCE ( + 18, ( - 15 ), + 36 * + - 81 * - - 23 ) AS col0, SUM( ALL + 49 )
----
-18
49

skipif mysql # not compatible
query II rowsort label-3910
SELECT ALL - COALESCE ( + 18, ( - 15 ), + 36 * + - 81 * - - 23 ) AS col0, SUM ( ALL + 49 )
----
-18
49

query II rowsort
SELECT DISTINCT + 4 + + 53 AS col1, + 79
----
57
79

query I rowsort
SELECT ALL - 50 + 79 + + 85 * - 84 AS col2
----
-7111

query I rowsort
SELECT DISTINCT 71 + + + 89 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT COUNT( * ) + + 37 * - 31 AS col1
----
-1146

skipif mysql # not compatible
query I rowsort label-3914
SELECT COUNT ( * ) + + 37 * - 31 AS col1
----
-1146

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT + ( + - 20 ) + COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3915
SELECT + ( + - 20 ) + COUNT ( * ) AS col0
----
-19

query I rowsort
SELECT DISTINCT - 70 + CASE - 0 WHEN 46 + - 51 * - 87 THEN NULLIF ( + ( + 7 ), - + 21 + 0 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT + - MAX( - 89 ) * 58 + + 44
----
5206

skipif mysql # not compatible
query I rowsort label-3917
SELECT + - MAX ( - 89 ) * 58 + + 44
----
5206

query I rowsort
SELECT DISTINCT + 79 * 94 AS col2
----
7426

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT - 20 * + CASE - 65 WHEN + - NULLIF ( - 17, + - COUNT( * ) * - 20 * - + COUNT( * ) + + 33 / 57 + + + MAX( + + 28 ) + - 69 - + COUNT( * ) * 91 ) / - + 53 THEN + ( 36 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3919
SELECT - 20 * + CASE - 65 WHEN + - NULLIF ( - 17, + - COUNT ( * ) * - 20 * - + COUNT ( * ) + + 33 / 57 + + + MAX ( + + 28 ) + - 69 - + COUNT ( * ) * 91 ) / - + 53 THEN + ( 36 ) END AS col1
----
NULL

query I rowsort
SELECT ALL 59 * 25
----
1475

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT - - COUNT( DISTINCT - 31 )
----
1

skipif mysql # not compatible
query I rowsort label-3921
SELECT - - COUNT ( DISTINCT - 31 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3922
SELECT + COUNT( DISTINCT + - 91 ) * - NULLIF ( + 64, - + 9 ) col1, + 80
----
-64
80

skipif mysql # not compatible
query II rowsort label-3922
SELECT + COUNT ( DISTINCT + - 91 ) * - NULLIF ( + 64, - + 9 ) col1, + 80
----
-64
80

query I rowsort
SELECT ALL + 85 * - + 48
----
-4080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3924
SELECT - + CASE CAST( - 72 AS SIGNED ) WHEN + + 5 THEN - 45 * + 21 WHEN - + 52 + + 20 * + COUNT( * ) THEN + 52 + - 64 * 33 ELSE NULL END * + 87 + 3 - 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT - + CASE CAST ( - 72 AS INTEGER ) WHEN + + 5 THEN - 45 * + 21 WHEN - + 52 + + 20 * + COUNT ( * ) THEN + 52 + - 64 * 33 ELSE NULL END * + 87 + 3 - 26 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT ALL NULLIF ( - 99, - 54 * + MAX( ALL + 27 ) - + COUNT( * ) ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL NULLIF ( - 99, - 54 * + MAX ( ALL + 27 ) - + COUNT ( * ) ) AS col1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3926
SELECT - 79 + 24 DIV + ( CAST( + 45 AS SIGNED ) ) + + CAST( + MIN( - 57 ) AS SIGNED ) AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-3926
SELECT - 79 + 24 / + ( CAST ( + 45 AS INTEGER ) ) + + CAST ( + MIN ( - 57 ) AS INTEGER ) AS col0
----
-136

onlyif mysql # DIV for integer division: 
query II rowsort label-3927
SELECT - 23 DIV - 89, 45 AS col2
----
0
45

skipif mysql # not compatible
query II rowsort label-3927
SELECT - 23 / - 89, 45 AS col2
----
0
45

query I rowsort
SELECT 61 + + 64 AS col0
----
125

query II rowsort
SELECT 48 + + 44 + - 32 AS col1, + 31 - + 14 AS col2
----
60
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3930
SELECT - COUNT( * ) * - - ( - CAST( + SUM( ALL + 70 ) AS SIGNED ) )
----
70

skipif mysql # not compatible
query I rowsort label-3930
SELECT - COUNT ( * ) * - - ( - CAST ( + SUM ( ALL + 70 ) AS INTEGER ) )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3931
SELECT COALESCE ( 71, - AVG ( - + 44 ) ) + + + ( 80 ) + + CAST( NULL AS SIGNED ) * + + 2 * + + 4 * 96 / + - 13 + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3931
SELECT COALESCE ( 71, - AVG ( - + 44 ) ) + + + ( 80 ) + + CAST ( NULL AS INTEGER ) * + + 2 * + + 4 * 96 / + - 13 + 94 AS col0
----
NULL

query II rowsort
SELECT ALL 50 * - 28 * 78 AS col2, - 93 AS col0
----
-109200
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT 52 * - + MAX( + + ( - 30 ) )
----
1560

skipif mysql # not compatible
query I rowsort label-3933
SELECT 52 * - + MAX ( + + ( - 30 ) )
----
1560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3934
SELECT ALL 61 DIV + + MAX( DISTINCT + 72 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL 61 / + + MAX ( DISTINCT + 72 ) AS col0
----
0

query I rowsort
SELECT ( + - ( + - ( NULLIF ( - - 67, 99 ) ) ) ) * 90
----
6030

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL 14 + - 76 * + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL 14 + - 76 * + COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT 77 + + COUNT( * ) + NULLIF ( + - 85, + 28 ) col1
----
-7

skipif mysql # not compatible
query I rowsort label-3937
SELECT 77 + + COUNT ( * ) + NULLIF ( + - 85, + 28 ) col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT ALL 90 * + NULLIF ( - + 59, COUNT( * ) ) AS col1
----
-5310

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL 90 * + NULLIF ( - + 59, COUNT ( * ) ) AS col1
----
-5310

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT ( - COUNT( * ) ) * + + 79 * - 27
----
2133

skipif mysql # not compatible
query I rowsort label-3939
SELECT ( - COUNT ( * ) ) * + + 79 * - 27
----
2133

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3940
SELECT 87 + SUM( ALL + + 55 ) AS col2, 81 DIV 97 * COUNT( * )
----
142
0

skipif mysql # not compatible
query II rowsort label-3940
SELECT 87 + SUM ( ALL + + 55 ) AS col2, 81 / 97 * COUNT ( * )
----
142
0

query I rowsort
SELECT ALL - 17 + + + 69
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-3942
SELECT - COUNT( * ) col1, MAX( DISTINCT - 81 ) AS col1
----
-1
-81

skipif mysql # not compatible
query II rowsort label-3942
SELECT - COUNT ( * ) col1, MAX ( DISTINCT - 81 ) AS col1
----
-1
-81

query I rowsort
SELECT ALL 54 * - 90
----
-4860

query I rowsort
SELECT 2 * 35
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-3945
SELECT + COUNT( * ) AS col0, ( + 25 ) * - 80 * 26 AS col2
----
1
-52000

skipif mysql # not compatible
query II rowsort label-3945
SELECT + COUNT ( * ) AS col0, ( + 25 ) * - 80 * 26 AS col2
----
1
-52000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT CASE - CAST( NULL AS SIGNED ) WHEN 29 THEN NULL ELSE + - 89 END + - 33
----
-122

skipif mysql # not compatible
query I rowsort label-3946
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN 29 THEN NULL ELSE + - 89 END + - 33
----
-122

query I rowsort
SELECT DISTINCT - + 3 col2
----
-3

query I rowsort
SELECT ALL + 63 * - 27 - 34 + - 67 + - + ( 95 ) + + 9
----
-1888

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT 35 * 52 * + 59 * + SUM( ALL + 82 ) col2
----
8805160

skipif mysql # not compatible
query I rowsort label-3949
SELECT 35 * 52 * + 59 * + SUM ( ALL + 82 ) col2
----
8805160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3950
SELECT ALL + - 18 * + 61 * - - 25 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL + - 18 * + 61 * - - 25 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3951
SELECT + 47 / + - 29 * - 68 + + ( + CASE + CASE + MAX( + + 42 ) WHEN - 44 + + - COUNT( * ) * + + COUNT( * ) * AVG ( + 5 ) THEN - CAST( NULL AS SIGNED ) END WHEN + + 3 THEN - 11 * + COUNT( * ) WHEN NULLIF ( 26, - - SUM( - 2 ) + - 45 + + COALESCE ( + 29, + + CAST( + 73 AS SIGNED ) + - 45 * ( - - 47 ), - + 35 + + 32, - MAX( + 7 ) ) + 4 ) THEN 89 / + 94 WHEN 13 THEN 44 * + 87 END ) - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3951
SELECT + 47 / + - 29 * - 68 + + ( + CASE + CASE + MAX ( + + 42 ) WHEN - 44 + + - COUNT ( * ) * + + COUNT ( * ) * AVG ( + 5 ) THEN - CAST ( NULL AS INTEGER ) END WHEN + + 3 THEN - 11 * + COUNT ( * ) WHEN NULLIF ( 26, - - SUM ( - 2 ) + - 45 + + COALESCE ( + 29, + + CAST ( + 73 AS INTEGER ) + - 45 * ( - - 47 ), - + 35 + + 32, - MAX ( + 7 ) ) + 4 ) THEN 89 / + 94 WHEN 13 THEN 44 * + 87 END ) - 34
----
NULL

query I rowsort
SELECT 15 * - 8 AS col2
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3953
SELECT + 55 AS col0, - 98 * CASE - NULLIF ( + 87, + - 2 * MIN( - 57 ) / ( + 44 ) + - 90 * 18 ) WHEN 41 * - 64 * - 45 * 38 + - 12 + + NULLIF ( - - 46, - + CAST( NULL AS SIGNED ) * - 94 + - - 81 * - 21 ) + + 82 * 1 THEN NULL WHEN + 27 THEN NULL WHEN + 45 / - CASE 56 WHEN - + 58 + + ( - 51 ) / - - 56 THEN 64 ELSE NULL END THEN NULL ELSE 2 END * + 48
----
55
-9408

skipif mysql # not compatible
query II rowsort label-3953
SELECT + 55 AS col0, - 98 * CASE - NULLIF ( + 87, + - 2 * MIN ( - 57 ) / ( + 44 ) + - 90 * 18 ) WHEN 41 * - 64 * - 45 * 38 + - 12 + + NULLIF ( - - 46, - + CAST ( NULL AS INTEGER ) * - 94 + - - 81 * - 21 ) + + 82 * 1 THEN NULL WHEN + 27 THEN NULL WHEN + 45 / - CASE 56 WHEN - + 58 + + ( - 51 ) / - - 56 THEN 64 ELSE NULL END THEN NULL ELSE 2 END * + 48
----
55
-9408

query II rowsort
SELECT - 93 * 1 * + 83 + + NULLIF ( + 94, - - 77 ) col2, CASE + + 39 WHEN + + AVG ( DISTINCT 63 ) * - + 30 THEN + 7 + 72 ELSE NULL END + 43 AS col0
----
-7625
NULL

query II rowsort
SELECT 30 AS col1, 8
----
30
8

query II rowsort
SELECT DISTINCT + 89 col0, 42 * + 84
----
89
3528

query I rowsort
SELECT - - 68 * + 93 AS col2
----
6324

onlyif mysql # aggregate syntax: 
query II rowsort label-3958
SELECT ALL - COALESCE ( + - COUNT( * ), 10 ), + 46 AS col2
----
1
46

skipif mysql # not compatible
query II rowsort label-3958
SELECT ALL - COALESCE ( + - COUNT ( * ), 10 ), + 46 AS col2
----
1
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3959
SELECT DISTINCT 9 + + + ( + - CAST( - + 68 AS SIGNED ) ), + 41 AS col0
----
77
41

skipif mysql # not compatible
query II rowsort label-3959
SELECT DISTINCT 9 + + + ( + - CAST ( - + 68 AS INTEGER ) ), + 41 AS col0
----
77
41

query I rowsort
SELECT DISTINCT - 94 * - - 83
----
-7802

query I rowsort
SELECT DISTINCT - 76 * - 78 * ( + 87 )
----
515736

query I rowsort
SELECT ALL 14 + 11
----
25

query I rowsort
SELECT DISTINCT 73 + 61 * + 15 AS col2
----
988

query I rowsort
SELECT - 96 + - + 5
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3965
SELECT ALL 8 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL 8 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT - 14 * COUNT( - 56 )
----
-14

skipif mysql # not compatible
query I rowsort label-3966
SELECT - 14 * COUNT ( - 56 )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3967
SELECT ALL + CAST( NULL AS SIGNED ) + + 40 - - 14 / + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL + CAST ( NULL AS INTEGER ) + + 40 - - 14 / + + 38
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3968
SELECT ALL 60 DIV + 36 col2
----
1

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL 60 / + 36 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT + COUNT( DISTINCT - 8 ) + + 3
----
4

skipif mysql # not compatible
query I rowsort label-3969
SELECT + COUNT ( DISTINCT - 8 ) + + 3
----
4

query I rowsort
SELECT ALL 72 + + 51 + - 6 * + 56 * - 79 * 91 AS col1
----
2415627

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3971
SELECT + CAST( NULL AS SIGNED ) + - 2 + + AVG ( ALL 62 ) AS col1, 53 AS col0
----
NULL
53

skipif mysql # not compatible
query II rowsort label-3971
SELECT + CAST ( NULL AS INTEGER ) + - 2 + + AVG ( ALL 62 ) AS col1, 53 AS col0
----
NULL
53

onlyif mysql # DIV for integer division: 
query I rowsort label-3972
SELECT DISTINCT 7 DIV - ( - 66 )
----
0

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT 7 / - ( - 66 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT + 36 - 69 - - 20 - + MIN( - 14 )
----
1

skipif mysql # not compatible
query I rowsort label-3973
SELECT + 36 - 69 - - 20 - + MIN ( - 14 )
----
1

query I rowsort
SELECT + 6 + + 55 AS col0
----
61

query I rowsort
SELECT + 12 + - 56
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-3976
SELECT - 34 * 18 DIV + 49 + + 82 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-3976
SELECT - 34 * 18 / + 49 + + 82 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT ALL 36 * CASE + - 0 WHEN ( + 37 ) THEN NULL ELSE + COUNT( * ) END AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL 36 * CASE + - 0 WHEN ( + 37 ) THEN NULL ELSE + COUNT ( * ) END AS col0
----
36

query I rowsort
SELECT + - 90 + + 3 * - 31
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT DISTINCT SUM( ALL 78 ) * MIN( - 43 ) * + + COUNT( * ) * 70 * + - 42 + + + 57 AS col0
----
9860817

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT SUM ( ALL 78 ) * MIN ( - 43 ) * + + COUNT ( * ) * 70 * + - 42 + + + 57 AS col0
----
9860817

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT ALL + 80 * COUNT( DISTINCT - 95 ) - + MAX( 29 )
----
51

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL + 80 * COUNT ( DISTINCT - 95 ) - + MAX ( 29 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT DISTINCT + + NULLIF ( - - 12, + 59 * 72 - CASE - + 1 WHEN + 41 + + 18 THEN NULL ELSE + + 69 END / - + 73 * - COUNT( * ) + + COUNT( * ) )
----
12

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT + + NULLIF ( - - 12, + 59 * 72 - CASE - + 1 WHEN + 41 + + 18 THEN NULL ELSE + + 69 END / - + 73 * - COUNT ( * ) + + COUNT ( * ) )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3982
SELECT 40 * + 31 + + + 88 - - 48 * - 16 + - 77 + - 46 * - COALESCE ( + 75, + 21, + 39 + - 88 ) * + 37 * + COUNT( * ), 75 * - 68 * + + ( - CASE - COUNT( - + 35 ) WHEN + 53 + - 43 + + COALESCE ( + CASE - 79 WHEN 98 * - 81 * + - 90 * + 18 * 37 / 35 + - 55 THEN + ( + + 75 ) * + 74 + - 89 WHEN + 12 THEN 24 END, 55 * + 77 ) + 67 * - 47 / + 56 THEN NULL WHEN + 27 * - 36 + - 55 THEN 76 * + 54 ELSE NULL END ) AS col1
----
128133
NULL

skipif mysql # not compatible
query II rowsort label-3982
SELECT 40 * + 31 + + + 88 - - 48 * - 16 + - 77 + - 46 * - COALESCE ( + 75, + 21, + 39 + - 88 ) * + 37 * + COUNT ( * ), 75 * - 68 * + + ( - CASE - COUNT ( - + 35 ) WHEN + 53 + - 43 + + COALESCE ( + CASE - 79 WHEN 98 * - 81 * + - 90 * + 18 * 37 / 35 + - 55 THEN + ( + + 75 ) * + 74 + - 89 WHEN + 12 THEN 24 END, 55 * + 77 ) + 67 * - 47 / + 56 THEN NULL WHEN + 27 * - 36 + - 55 THEN 76 * + 54 ELSE NULL END ) AS col1
----
128133
NULL

query I rowsort
SELECT - 11 * 18 + - + 32 AS col2
----
-230

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT + 64 + + 73 * + 53 + + ( + + COALESCE ( + 40, + 40, + 57 * + 25 ) ) + - COALESCE ( 6, - - 28 + - 48 - + 44, 22 - + - 73 ) * + CASE 30 WHEN - MIN( DISTINCT - 20 ) * - + 24 THEN ( ( 27 ) ) WHEN + 74 THEN + ( + - 3 ) ELSE NULL END / 56 + - 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3984
SELECT + 64 + + 73 * + 53 + + ( + + COALESCE ( + 40, + 40, + 57 * + 25 ) ) + - COALESCE ( 6, - - 28 + - 48 - + 44, 22 - + - 73 ) * + CASE 30 WHEN - MIN ( DISTINCT - 20 ) * - + 24 THEN ( ( 27 ) ) WHEN + 74 THEN + ( + - 3 ) ELSE NULL END / 56 + - 22 AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( + + ( 13 ), - 1 )
----
13

query I rowsort
SELECT - 38 + 22 - - 90 AS col2
----
74

query I rowsort
SELECT + + 63 * - ( + ( 72 ) )
----
-4536

query I rowsort
SELECT - + 58 * + + ( CASE - 34 WHEN 74 THEN + - 72 - + - 61 + 1 / - + 46 END ) + + 86 / - + 48 AS col1
----
NULL

query I rowsort
SELECT ALL - + 86 * 95 AS col0
----
-8170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3990
SELECT DISTINCT + + 73 * + 94, + 54 + - - MAX( 42 ) * CAST( NULL AS SIGNED ) AS col2
----
6862
NULL

skipif mysql # not compatible
query II rowsort label-3990
SELECT DISTINCT + + 73 * + 94, + 54 + - - MAX ( 42 ) * CAST ( NULL AS INTEGER ) AS col2
----
6862
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3991
SELECT - COUNT( * ) + CAST( - + 16 AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-3991
SELECT - COUNT ( * ) + CAST ( - + 16 AS INTEGER )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT - COUNT( * ) + COUNT( - - 42 )
----
0

skipif mysql # not compatible
query I rowsort label-3992
SELECT - COUNT ( * ) + COUNT ( - - 42 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3993
SELECT ALL + 21 * 62 + - + CAST( NULL AS SIGNED ) * + 0 + - CAST( NULL AS SIGNED ) - - COUNT( * ) / + 33 + - 25 * - - 76 * + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL + 21 * 62 + - + CAST ( NULL AS INTEGER ) * + 0 + - CAST ( NULL AS INTEGER ) - - COUNT ( * ) / + 33 + - 25 * - - 76 * + 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT DISTINCT - + 81 * 54 - 0 * 52 + + + COUNT( * )
----
-4373

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT - + 81 * 54 - 0 * 52 + + + COUNT ( * )
----
-4373

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3995
SELECT ALL - 7 * - - COALESCE ( + 58, + CAST( NULL AS SIGNED ), + COUNT( * ) * - COUNT( * ) + 37 + - COUNT( - 87 ) ) + + 29 AS col2
----
-377

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL - 7 * - - COALESCE ( + 58, + CAST ( NULL AS INTEGER ), + COUNT ( * ) * - COUNT ( * ) + 37 + - COUNT ( - 87 ) ) + + 29 AS col2
----
-377

onlyif mysql # DIV for integer division: 
query I rowsort label-3996
SELECT + 44 DIV 15 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3996
SELECT + 44 / 15 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT - COUNT( ALL - 3 ) + + + 83 + - 75 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3997
SELECT - COUNT ( ALL - 3 ) + + + 83 + - 75 AS col1
----
7

query I rowsort
SELECT 17 * + 61 + 44 AS col1
----
1081

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL 69 * - - COUNT( * ) + + COUNT( * ) + 46 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL 69 * - - COUNT ( * ) + + COUNT ( * ) + 46 AS col2
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4000
SELECT ALL + 17 + - CAST( 92 AS SIGNED ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL + 17 + - CAST ( 92 AS INTEGER ) AS col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4001
SELECT DISTINCT CAST( - ( 29 ) AS SIGNED ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT CAST ( - ( 29 ) AS INTEGER ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4002
SELECT DISTINCT - 45 * - 48 * - + 49 AS col0, - MIN( - 11 ) - 9 AS col0
----
-105840
2

skipif mysql # not compatible
query II rowsort label-4002
SELECT DISTINCT - 45 * - 48 * - + 49 AS col0, - MIN ( - 11 ) - 9 AS col0
----
-105840
2

query I rowsort
SELECT DISTINCT ( + 51 ) AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4004
SELECT ALL 54 - 97 + - 4 DIV - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL 54 - 97 + - 4 / - COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT - COUNT( - 65 ) * 28
----
-28

skipif mysql # not compatible
query I rowsort label-4005
SELECT - COUNT ( - 65 ) * 28
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4006
SELECT ALL CAST( - + 13 AS SIGNED ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL CAST ( - + 13 AS INTEGER ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL - 27 * + SUM( + - 79 ) * - - COUNT( * ) AS col0
----
2133

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL - 27 * + SUM ( + - 79 ) * - - COUNT ( * ) AS col0
----
2133

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL - 18 - + SUM( + - 15 ) + - - 11 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - 18 - + SUM ( + - 15 ) + - - 11 AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4009
SELECT - COUNT( * ) AS col1, 93 + - - 59 col0
----
-1
152

skipif mysql # not compatible
query II rowsort label-4009
SELECT - COUNT ( * ) AS col1, 93 + - - 59 col0
----
-1
152

query II rowsort
SELECT ALL 2 col2, 6 col2
----
2
6

query I rowsort
SELECT ALL + 28 * - 94 AS col1
----
-2632

query I rowsort
SELECT ALL CASE - 2 WHEN - + 73 THEN NULL WHEN + 26 THEN - 20 * 18 - - 83 ELSE NULL END / - ( - 48 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4013
SELECT 84 DIV + 60 + + 42 DIV - - COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-4013
SELECT 84 / + 60 + + 42 / - - COUNT ( * ) AS col0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4014
SELECT + 48 * + - 64 - + + 42 AS col1, + 81 - - COALESCE ( + + COUNT( * ), - 62 + - 57 * + COUNT( * ), + 2 ) DIV - 82 AS col2
----
-3114
81

skipif mysql # not compatible
query II rowsort label-4014
SELECT + 48 * + - 64 - + + 42 AS col1, + 81 - - COALESCE ( + + COUNT ( * ), - 62 + - 57 * + COUNT ( * ), + 2 ) / - 82 AS col2
----
-3114
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT COUNT( * ) + - + 66 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-4015
SELECT COUNT ( * ) + - + 66 AS col0
----
-65

query I rowsort
SELECT + 55 * 27 + 41 * - 52 + 40
----
-607

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4017
SELECT CASE - 74 WHEN - 77 THEN + - 6 * 33 + - - NULLIF ( 33, - CAST( NULL AS SIGNED ) ) WHEN + + 70 + - 15 THEN - - 91 * + + 17 - ( - - 53 ) + + + 6 + 44 + - MAX( + + 97 ) * - + COALESCE ( AVG ( ALL + + 20 ), - 88 * - - 40, + 30 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4017
SELECT CASE - 74 WHEN - 77 THEN + - 6 * 33 + - - NULLIF ( 33, - CAST ( NULL AS INTEGER ) ) WHEN + + 70 + - 15 THEN - - 91 * + + 17 - ( - - 53 ) + + + 6 + 44 + - MAX ( + + 97 ) * - + COALESCE ( AVG ( ALL + + 20 ), - 88 * - - 40, + 30 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4018
SELECT DISTINCT 54 + + 6 * - + 58 * - - 51 + 88 + - 88 DIV + 82 * COUNT( * )
----
-17607

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT 54 + + 6 * - + 58 * - - 51 + 88 + - 88 / + 82 * COUNT ( * )
----
-17607

query I rowsort
SELECT DISTINCT + 73 + 84
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4020
SELECT DISTINCT - CAST( - + 24 AS SIGNED ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT - CAST ( - + 24 AS INTEGER ) AS col0
----
24

query I rowsort
SELECT ALL - 40 + - + 73 * - 54 AS col2
----
3902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4022
SELECT ALL + SUM( - - 81 ) + - + COUNT( DISTINCT - 43 ) - - CASE + COUNT( * ) WHEN - COUNT( * ) * + NULLIF ( + + MIN( ALL CAST( + + 25 AS SIGNED ) ), - 24 * - NULLIF ( - + 98, - + ( - - 18 ) ) + + 46 ) + - - 7 * - + 4 THEN - + 62 END AS col0, 51
----
NULL
51

skipif mysql # not compatible
query II rowsort label-4022
SELECT ALL + SUM ( - - 81 ) + - + COUNT ( DISTINCT - 43 ) - - CASE + COUNT ( * ) WHEN - COUNT ( * ) * + NULLIF ( + + MIN ( ALL CAST ( + + 25 AS INTEGER ) ), - 24 * - NULLIF ( - + 98, - + ( - - 18 ) ) + + 46 ) + - - 7 * - + 4 THEN - + 62 END AS col0, 51
----
NULL
51

query II rowsort
SELECT + 24, + 60 AS col2
----
24
60

query I rowsort
SELECT 77 * ( 98 )
----
7546

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4025
SELECT ALL 32 + 40 + CAST( NULL AS DECIMAL ) * - - MIN( + - 56 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL 32 + 40 + CAST ( NULL AS REAL ) * - - MIN ( + - 56 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT 49 * + 97 - + ( - COUNT( - 58 ) ) AS col0
----
4754

skipif mysql # not compatible
query I rowsort label-4026
SELECT 49 * + 97 - + ( - COUNT ( - 58 ) ) AS col0
----
4754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4027
SELECT DISTINCT - 29, COALESCE ( - 48, NULLIF ( - CASE - 55 WHEN - - CASE 38 WHEN - AVG ( + 10 ) + COUNT( * ) THEN + CAST( - - 7 AS SIGNED ) DIV - NULLIF ( + CASE CASE - MAX( ALL - 55 ) WHEN + COUNT( * ) + - + 3 THEN 72 WHEN - 22 THEN NULL END WHEN 44 * + 27 * + COUNT( * ) THEN + COALESCE ( + 78, - 43 ) END, - - 37 + + 92 * - 34 + + - 79 * - ( + + COUNT( * ) ) ) * + COUNT( * ) + - 26 ELSE NULL END + - 23 THEN 67 ELSE NULL END, 65 * 82 ), 35 ) DIV - 76 + COUNT( * ) * 74 AS col0
----
-29
74

skipif mysql # not compatible
query II rowsort label-4027
SELECT DISTINCT - 29, COALESCE ( - 48, NULLIF ( - CASE - 55 WHEN - - CASE 38 WHEN - AVG ( + 10 ) + COUNT ( * ) THEN + CAST ( - - 7 AS INTEGER ) / - NULLIF ( + CASE CASE - MAX ( ALL - 55 ) WHEN + COUNT ( * ) + - + 3 THEN 72 WHEN - 22 THEN NULL END WHEN 44 * + 27 * + COUNT ( * ) THEN + COALESCE ( + 78, - 43 ) END, - - 37 + + 92 * - 34 + + - 79 * - ( + + COUNT ( * ) ) ) * + COUNT ( * ) + - 26 ELSE NULL END + - 23 THEN 67 ELSE NULL END, 65 * 82 ), 35 ) / - 76 + COUNT ( * ) * 74 AS col0
----
-29
74

query I rowsort
SELECT ALL + 22 * - 52
----
-1144

query I rowsort
SELECT ALL 96 + + - 51 AS col1
----
45

query I rowsort
SELECT ALL - 58 * 93
----
-5394

query II rowsort
SELECT DISTINCT + 4 - + + 69 + + 89 - - + 49, 89 AS col1
----
73
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ALL - COUNT( * ) - + - 75
----
74

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL - COUNT ( * ) - + - 75
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4033
SELECT ALL + MIN( ALL - 52 ) - + 66 - MIN( DISTINCT + + ( - 32 ) ) DIV - - NULLIF ( - 59, + - 35 ) * + ( - 42 ) * 6
----
-118

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL + MIN ( ALL - 52 ) - + 66 - MIN ( DISTINCT + + ( - 32 ) ) / - - NULLIF ( - 59, + - 35 ) * + ( - 42 ) * 6
----
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-4034
SELECT DISTINCT + 13 * - COUNT( ALL 12 ) * - - 80 * - ( + 32 ), 11 * + + 85 * + + 90 AS col2
----
33280
84150

skipif mysql # not compatible
query II rowsort label-4034
SELECT DISTINCT + 13 * - COUNT ( ALL 12 ) * - - 80 * - ( + 32 ), 11 * + + 85 * + + 90 AS col2
----
33280
84150

query I rowsort
SELECT ALL - 59 * - - 8 col2
----
-472

query II rowsort
SELECT 2 - - + 9 AS col1, + 24 * + 42 AS col0
----
11
1008

query I rowsort
SELECT 5 * - 13 AS col2
----
-65

query II rowsort
SELECT 33 AS col0, + 33 * + 24 AS col1
----
33
792

query I rowsort
SELECT ALL + 87 - - 32
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-4040
SELECT 86 + - 84 DIV 95 + + 38 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-4040
SELECT 86 + - 84 / 95 + + 38 AS col0
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4041
SELECT - 45, + CAST( NULL AS SIGNED ) AS col2
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-4041
SELECT - 45, + CAST ( NULL AS INTEGER ) AS col2
----
-45
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4042
SELECT 14 col0, SUM( DISTINCT - 48 )
----
14
-48

skipif mysql # not compatible
query II rowsort label-4042
SELECT 14 col0, SUM ( DISTINCT - 48 )
----
14
-48

query I rowsort
SELECT 2 + 17
----
19

query I rowsort
SELECT 11 + - 16 + - 45
----
-50

query I rowsort
SELECT ALL + + ( - 19 ) * + - 93
----
1767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4046
SELECT + 66 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4046
SELECT + 66 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 31, 42 )
----
31

query I rowsort
SELECT ALL + - 44 * + + 70 AS col1
----
-3080

query I rowsort
SELECT 13 + 11 AS col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4050
SELECT - 33 * - 74 * - COALESCE ( + + 6, + 8 DIV + ( - 85 ) * COUNT( * ) + - + 85, + NULLIF ( + 20, + + COUNT( * ) ) ) AS col1
----
-14652

skipif mysql # not compatible
query I rowsort label-4050
SELECT - 33 * - 74 * - COALESCE ( + + 6, + 8 / + ( - 85 ) * COUNT ( * ) + - + 85, + NULLIF ( + 20, + + COUNT ( * ) ) ) AS col1
----
-14652

query I rowsort
SELECT ALL - ( - ( 95 ) ) col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT + 52 * - COUNT( DISTINCT + - 83 ) + 93 * ( - 42 )
----
-3958

skipif mysql # not compatible
query I rowsort label-4052
SELECT + 52 * - COUNT ( DISTINCT + - 83 ) + 93 * ( - 42 )
----
-3958

onlyif mysql # aggregate syntax: 
query II rowsort label-4053
SELECT ALL ( + 79 ) + - COUNT( - 6 ) AS col0, ( 5 )
----
78
5

skipif mysql # not compatible
query II rowsort label-4053
SELECT ALL ( + 79 ) + - COUNT ( - 6 ) AS col0, ( 5 )
----
78
5

query II rowsort
SELECT ALL - 82, 95 * 80 col0
----
-82
7600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4055
SELECT ALL COUNT( * ) DIV - 90 * - 19 - - 53
----
53

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL COUNT ( * ) / - 90 * - 19 - - 53
----
53

query I rowsort
SELECT DISTINCT 1 + - 5 + 23 * + 53 AS col2
----
1215

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT ALL - 50 * - - ( + 16 ) + 72 * + NULLIF ( - MAX( - - 38 ), - 34 + - - 81 + - 52 * - 95 + - 88 )
----
-3536

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL - 50 * - - ( + 16 ) + 72 * + NULLIF ( - MAX ( - - 38 ), - 34 + - - 81 + - 52 * - 95 + - 88 )
----
-3536

query I rowsort
SELECT DISTINCT 26 * 8 AS col0
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ( - + 15 ) * MAX( ALL - 14 ) + + + 90 + - 52 col2
----
248

skipif mysql # not compatible
query I rowsort label-4059
SELECT ( - + 15 ) * MAX ( ALL - 14 ) + + + 90 + - 52 col2
----
248

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT DISTINCT 97 - 15 + + 90 * + - COUNT( * ) + - COUNT( ALL - 99 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT 97 - 15 + + 90 * + - COUNT ( * ) + - COUNT ( ALL - 99 ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ALL 55 * - - 6 * + COUNT( * ) AS col0
----
330

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL 55 * - - 6 * + COUNT ( * ) AS col0
----
330

query I rowsort
SELECT DISTINCT 90 * + 8 * + 55 AS col2
----
39600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4063
SELECT CAST( NULL AS SIGNED ) + - 60 AS col0, + 38 * - - COUNT( DISTINCT + - 77 ) AS col2
----
NULL
38

skipif mysql # not compatible
query II rowsort label-4063
SELECT CAST ( NULL AS INTEGER ) + - 60 AS col0, + 38 * - - COUNT ( DISTINCT + - 77 ) AS col2
----
NULL
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4064
SELECT 91 * - 4 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT 91 * - 4 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4065
SELECT ( NULLIF ( 35, - + ( + + CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED ) ) ) * + SUM( + 10 )
----
350

skipif mysql # not compatible
query I rowsort label-4065
SELECT ( NULLIF ( 35, - + ( + + CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER ) ) ) * + SUM ( + 10 )
----
350

query I rowsort
SELECT DISTINCT + 82 * - + 19 col0
----
-1558

query I rowsort
SELECT DISTINCT + 73 * 29
----
2117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4068
SELECT ALL COUNT( * ) DIV 6 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL COUNT ( * ) / 6 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4069
SELECT 11 * - ( - + CAST( + 23 AS SIGNED ) ) AS col1
----
253

skipif mysql # not compatible
query I rowsort label-4069
SELECT 11 * - ( - + CAST ( + 23 AS INTEGER ) ) AS col1
----
253

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4070
SELECT 18 DIV - 10 * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4070
SELECT 18 / - 10 * - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT DISTINCT 77 * - - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT 77 * - - COUNT ( * )
----
77

query I rowsort
SELECT + - 42 * - - 54 AS col0
----
-2268

onlyif mysql # DIV for integer division: 
query I rowsort label-4073
SELECT + NULLIF ( 62, + 60 + - - ( - + 89 ) ) DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-4073
SELECT + NULLIF ( 62, + 60 + - - ( - + 89 ) ) / 98
----
0

query I rowsort
SELECT + + 67 * - 24
----
-1608

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT DISTINCT - SUM( ALL 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT - SUM ( ALL 18 ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT DISTINCT + - 67 + + + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT + - 67 + + + COUNT ( * )
----
-66

query I rowsort
SELECT ALL + NULLIF ( + 6, 9 ) + 39
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4078
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - 62 / - ( COALESCE ( - 69, + - 70 / - 74 * + - 66 ) ), 34 + - COUNT( * ) AS col0
----
NULL
33

skipif mysql # not compatible
query II rowsort label-4078
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - 62 / - ( COALESCE ( - 69, + - 70 / - 74 * + - 66 ) ), 34 + - COUNT ( * ) AS col0
----
NULL
33

query I rowsort
SELECT - - COALESCE ( + 28, 66 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4080
SELECT DISTINCT + - 66 + + 88 * - NULLIF ( - + 21, - - ( + CAST( COUNT( * ) AS SIGNED ) ) * 66 + + 33 ) * + - 2 + - 43 + 76 + - 74 + + COUNT( * ) + - + COALESCE ( 97, 67 ) * + ( + + 50 ) - + COUNT( * ) * COUNT( * )
----
-8653

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT + - 66 + + 88 * - NULLIF ( - + 21, - - ( + CAST ( COUNT ( * ) AS INTEGER ) ) * 66 + + 33 ) * + - 2 + - 43 + 76 + - 74 + + COUNT ( * ) + - + COALESCE ( 97, 67 ) * + ( + + 50 ) - + COUNT ( * ) * COUNT ( * )
----
-8653

query I rowsort
SELECT DISTINCT + 57 * 79 * - - CASE + 79 WHEN + 67 THEN AVG ( + 19 ) END + - - 82 + + 56
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4082
SELECT - - CAST( - + COUNT( * ) AS SIGNED ) * + 2 + + + COUNT( - CAST( NULL AS DECIMAL ) ) AS col2, 51 - + + COUNT( * ) - - 97 AS col2
----
-2
147

skipif mysql # not compatible
query II rowsort label-4082
SELECT - - CAST ( - + COUNT ( * ) AS INTEGER ) * + 2 + + + COUNT ( - CAST ( NULL AS REAL ) ) AS col2, 51 - + + COUNT ( * ) - - 97 AS col2
----
-2
147

onlyif mysql # DIV for integer division: 
query I rowsort label-4083
SELECT 65 DIV 10 + 60 * + 70 AS col1
----
4206

skipif mysql # not compatible
query I rowsort label-4083
SELECT 65 / 10 + 60 * + 70 AS col1
----
4206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4084
SELECT 43 * + + 24 + - - 49 / 51 + + 59 - + 80 + - - 61 * - + CAST( NULL AS SIGNED ) / + 12 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4084
SELECT 43 * + + 24 + - - 49 / 51 + + 59 - + 80 + - - 61 * - + CAST ( NULL AS INTEGER ) / + 12 col2
----
NULL

query II rowsort
SELECT + 21 * - 11 AS col2, + 55
----
-231
55

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4086
SELECT ALL + + CAST( NULL AS DECIMAL ) * 5 AS col0, 62 + 74
----
NULL
136

skipif mysql # not compatible
query II rowsort label-4086
SELECT ALL + + CAST ( NULL AS REAL ) * 5 AS col0, 62 + 74
----
NULL
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4087
SELECT DISTINCT + + CAST( + - COUNT( * ) AS SIGNED ) AS col0, 69 AS col2
----
-1
69

skipif mysql # not compatible
query II rowsort label-4087
SELECT DISTINCT + + CAST ( + - COUNT ( * ) AS INTEGER ) AS col0, 69 AS col2
----
-1
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT DISTINCT - COUNT( 44 ) * - ( + 59 ) + + - 18 - - 40 - - + 78 + - COUNT( * )
----
158

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT - COUNT ( 44 ) * - ( + 59 ) + + - 18 - - 40 - - + 78 + - COUNT ( * )
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT COALESCE ( + COUNT( * ), + 10 )
----
1

skipif mysql # not compatible
query I rowsort label-4089
SELECT COALESCE ( + COUNT ( * ), + 10 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT MIN( ALL 75 ) * + - 21 + - 79 - + ( + + 40 ) + 53 AS col1
----
-1641

skipif mysql # not compatible
query I rowsort label-4090
SELECT MIN ( ALL 75 ) * + - 21 + - 79 - + ( + + 40 ) + 53 AS col1
----
-1641

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4091
SELECT ALL - 31 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL - 31 * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT DISTINCT + NULLIF ( + + COALESCE ( 80, - - 25, + - 40 * + COUNT( * ) * ( - 99 ) ), + - 21 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT + NULLIF ( + + COALESCE ( 80, - - 25, + - 40 * + COUNT ( * ) * ( - 99 ) ), + - 21 ) AS col2
----
80

query I rowsort
SELECT + 20 * - 25
----
-500

query I rowsort
SELECT + 96 * - - 4 AS col0
----
384

query II rowsort
SELECT + 77 AS col0, + 51 AS col2
----
77
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4096
SELECT COUNT( * ), COUNT( * ) DIV + 82 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-4096
SELECT COUNT ( * ), COUNT ( * ) / + 82 AS col0
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT + NULLIF ( + - COUNT( 64 ), + 65 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4097
SELECT + NULLIF ( + - COUNT ( 64 ), + 65 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4098
SELECT DISTINCT + COUNT( * ), - 74 * - 99 + + ( + ( ( 13 ) ) ) col2
----
1
7339

skipif mysql # not compatible
query II rowsort label-4098
SELECT DISTINCT + COUNT ( * ), - 74 * - 99 + + ( + ( ( 13 ) ) ) col2
----
1
7339

onlyif mysql # aggregate syntax: 
query II rowsort label-4099
SELECT ALL ( ( + 46 ) ) * - ( - - ( + 50 ) ) + COALESCE ( COUNT( * ), 1 ), 27 AS col1
----
-2299
27

skipif mysql # not compatible
query II rowsort label-4099
SELECT ALL ( ( + 46 ) ) * - ( - - ( + 50 ) ) + COALESCE ( COUNT ( * ), 1 ), 27 AS col1
----
-2299
27

onlyif mysql # DIV for integer division: 
query II rowsort label-4100
SELECT DISTINCT ( + + 7 ) * - 59 * - 80 - + 27 + - COALESCE ( - 66, - 64 ) DIV - 88 * + 58 * + 95 AS col2, - 38 AS col0
----
33013
-38

skipif mysql # not compatible
query II rowsort label-4100
SELECT DISTINCT ( + + 7 ) * - 59 * - 80 - + 27 + - COALESCE ( - 66, - 64 ) / - 88 * + 58 * + 95 AS col2, - 38 AS col0
----
33013
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT DISTINCT + 14 + + COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT + 14 + + COUNT ( * ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT ALL COUNT( + + 67 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL COUNT ( + + 67 ) AS col2
----
1

query I rowsort
SELECT + 30 * + 81 AS col2
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT ALL COALESCE ( + - 21, + 20 * + COUNT( * ) ) + - 42
----
-63

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL COALESCE ( + - 21, + 20 * + COUNT ( * ) ) + - 42
----
-63

query I rowsort
SELECT - 42 + + + 72 + + 73 AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT - ( - + ( COUNT( * ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4106
SELECT - ( - + ( COUNT ( * ) ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4107
SELECT 82 AS col2, 19 DIV - - 57 + - + 46 DIV ( + + 13 )
----
82
-3

skipif mysql # not compatible
query II rowsort label-4107
SELECT 82 AS col2, 19 / - - 57 + - + 46 / ( + + 13 )
----
82
-3

query I rowsort
SELECT + 18 + + 32
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4109
SELECT + 24 - ( + + 99 ) AS col2, + COUNT( * )
----
-75
1

skipif mysql # not compatible
query II rowsort label-4109
SELECT + 24 - ( + + 99 ) AS col2, + COUNT ( * )
----
-75
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4110
SELECT ALL 36 + CAST( NULL AS SIGNED ) + - 90 * - CAST( NULL AS SIGNED ) AS col2, 10
----
NULL
10

skipif mysql # not compatible
query II rowsort label-4110
SELECT ALL 36 + CAST ( NULL AS INTEGER ) + - 90 * - CAST ( NULL AS INTEGER ) AS col2, 10
----
NULL
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4111
SELECT + 6 + 2 DIV - 57 + - 3
----
3

skipif mysql # not compatible
query I rowsort label-4111
SELECT + 6 + 2 / - 57 + - 3
----
3

query I rowsort
SELECT + 19 + + 54
----
73

query II rowsort
SELECT - - 42 AS col0, 41
----
42
41

query I rowsort
SELECT + - 5 + - + 53
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT ALL - COUNT( ALL 67 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL - COUNT ( ALL 67 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT ALL + 35 + + 97 * + + 63 * CASE + + 66 WHEN - NULLIF ( - 53, - COUNT( * ) ) THEN - + 46 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL + 35 + + 97 * + + 63 * CASE + + 66 WHEN - NULLIF ( - 53, - COUNT ( * ) ) THEN - + 46 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT + + COUNT( * ) + + + COUNT( * ) / + + CASE + - 89 WHEN + + 57 THEN - - 1 WHEN - - 74 THEN NULL END + - 3 / - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT + + COUNT ( * ) + + + COUNT ( * ) / + + CASE + - 89 WHEN + + 57 THEN - - 1 WHEN - - 74 THEN NULL END + - 3 / - 1 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 20 + - 32
----
-12

query I rowsort
SELECT ALL + 75 + - 55
----
20

query I rowsort
SELECT + 8 * + + 82
----
656

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT - 78 * + + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-4121
SELECT - 78 * + + COUNT ( * )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT ALL CAST( + - 30 AS SIGNED ) * ( - + 72 )
----
2160

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL CAST ( + - 30 AS INTEGER ) * ( - + 72 )
----
2160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4123
SELECT 53 AS col2, 25 * - CAST( NULL AS SIGNED ) + - - 89 * - NULLIF ( - AVG ( DISTINCT 7 ), + ( 80 ) ) + 14 AS col0
----
53
NULL

skipif mysql # not compatible
query II rowsort label-4123
SELECT 53 AS col2, 25 * - CAST ( NULL AS INTEGER ) + - - 89 * - NULLIF ( - AVG ( DISTINCT 7 ), + ( 80 ) ) + 14 AS col0
----
53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT - 5 + - - CASE + - 58 WHEN - 76 THEN NULL WHEN - 46 + 50 + + 89 * - + 27 THEN + 11 WHEN + 54 THEN + - NULLIF ( 9, 7 ) * + COUNT( * ) * + 5 + - + 27 ELSE 26 END
----
21

skipif mysql # not compatible
query I rowsort label-4124
SELECT - 5 + - - CASE + - 58 WHEN - 76 THEN NULL WHEN - 46 + 50 + + 89 * - + 27 THEN + 11 WHEN + 54 THEN + - NULLIF ( 9, 7 ) * + COUNT ( * ) * + 5 + - + 27 ELSE 26 END
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4125
SELECT DISTINCT + + COUNT( DISTINCT - - ( + - 19 ) ) col1, 8
----
1
8

skipif mysql # not compatible
query II rowsort label-4125
SELECT DISTINCT + + COUNT ( DISTINCT - - ( + - 19 ) ) col1, 8
----
1
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4126
SELECT + + 28 * + - 16 * + CASE 20 WHEN + 31 THEN NULL ELSE - + 4 END, ( - 65 ) * - 78 + - MIN( - - 97 ) AS col0
----
1792
4973

skipif mysql # not compatible
query II rowsort label-4126
SELECT + + 28 * + - 16 * + CASE 20 WHEN + 31 THEN NULL ELSE - + 4 END, ( - 65 ) * - 78 + - MIN ( - - 97 ) AS col0
----
1792
4973

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4127
SELECT ALL - 23 * - 58 * + 22 + - 42 * - CASE MIN( + 18 ) WHEN + 74 + - 51 THEN - COUNT( * ) WHEN + - 76 THEN + 43 + NULLIF ( - + 11, + CAST( + 81 AS SIGNED ) ) + - - 54 WHEN SUM( + 78 ) THEN - CAST( NULL AS SIGNED ) + + 25 + + - 34 / - + 71 * - - 58 * - 46 END + 85 * + 93 / - 97 AS col2, + 80 AS col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-4127
SELECT ALL - 23 * - 58 * + 22 + - 42 * - CASE MIN ( + 18 ) WHEN + 74 + - 51 THEN - COUNT ( * ) WHEN + - 76 THEN + 43 + NULLIF ( - + 11, + CAST ( + 81 AS INTEGER ) ) + - - 54 WHEN SUM ( + 78 ) THEN - CAST ( NULL AS INTEGER ) + + 25 + + - 34 / - + 71 * - - 58 * - 46 END + 85 * + 93 / - 97 AS col2, + 80 AS col1
----
NULL
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4128
SELECT ALL + + COUNT( * ), - 37 DIV 88 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-4128
SELECT ALL + + COUNT ( * ), - 37 / 88 AS col1
----
1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4129
SELECT DISTINCT + - MAX( ALL ( + 97 ) ) AS col1, 33
----
-97
33

skipif mysql # not compatible
query II rowsort label-4129
SELECT DISTINCT + - MAX ( ALL ( + 97 ) ) AS col1, 33
----
-97
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4130
SELECT - 44 * - - 30 * + - CAST( + - SUM( 75 ) AS SIGNED )
----
-99000

skipif mysql # not compatible
query I rowsort label-4130
SELECT - 44 * - - 30 * + - CAST ( + - SUM ( 75 ) AS INTEGER )
----
-99000

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT ALL - MIN( - 0 ) * - COALESCE ( - COUNT( + 57 ), NULLIF ( + COALESCE ( + 68, - - 7 ), - 22 ) - + - 21, NULLIF ( COUNT( * ), - ( + 10 ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL - MIN ( - 0 ) * - COALESCE ( - COUNT ( + 57 ), NULLIF ( + COALESCE ( + 68, - - 7 ), - 22 ) - + - 21, NULLIF ( COUNT ( * ), - ( + 10 ) ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4132
SELECT + NULLIF ( + ( - 22 ), + - 71 - + - CAST( - 43 AS SIGNED ) ) + - - 58 + COALESCE ( - + 81, - + 41 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-4132
SELECT + NULLIF ( + ( - 22 ), + - 71 - + - CAST ( - 43 AS INTEGER ) ) + - - 58 + COALESCE ( - + 81, - + 41 ) AS col0
----
-45

query I rowsort
SELECT DISTINCT + NULLIF ( + 36, + 27 )
----
36

query I rowsort
SELECT ALL - 0 * 75
----
0

query I rowsort
SELECT - 14 * + 10 AS col1
----
-140

query I rowsort
SELECT - 72 + + - 54
----
-126

query I rowsort
SELECT DISTINCT - 82 * + 5 AS col2
----
-410

query II rowsort
SELECT + 96 * - 24 + 55 * + + 68 + + 3, + 17 AS col2
----
1439
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4139
SELECT 28 * 76 * - CAST( + 71 AS SIGNED ) + - COALESCE ( - ( - 28 ), - + 76 * - SUM( ( - 14 ) ) ) AS col1
----
-151116

skipif mysql # not compatible
query I rowsort label-4139
SELECT 28 * 76 * - CAST ( + 71 AS INTEGER ) + - COALESCE ( - ( - 28 ), - + 76 * - SUM ( ( - 14 ) ) ) AS col1
----
-151116

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT DISTINCT + COUNT( ALL - - ( - 45 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT + COUNT ( ALL - - ( - 45 ) )
----
1

query I rowsort
SELECT DISTINCT 51 * 36 + 49 * 80
----
5756

onlyif mysql # DIV for integer division: 
query I rowsort label-4142
SELECT 21 DIV 60 * + - 88 * 45
----
0

skipif mysql # not compatible
query I rowsort label-4142
SELECT 21 / 60 * + - 88 * 45
----
0

query I rowsort
SELECT 92 * + 9 AS col0
----
828

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4144
SELECT ALL + ( + CAST( 83 AS SIGNED ) ) DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL + ( + CAST ( 83 AS INTEGER ) ) / 90
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4145
SELECT 11 DIV - 11
----
-1

skipif mysql # not compatible
query I rowsort label-4145
SELECT 11 / - 11
----
-1

query I rowsort
SELECT 17 * - 79
----
-1343

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL + 39 + - - SUM( - 27 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL + 39 + - - SUM ( - 27 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT 90 * MAX( - + 81 ) + - 44
----
-7334

skipif mysql # not compatible
query I rowsort label-4148
SELECT 90 * MAX ( - + 81 ) + - 44
----
-7334

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4149
SELECT - 92 - - + 36 * - 89 + + 54 AS col1, - CAST( NULL AS SIGNED )
----
-3242
NULL

skipif mysql # not compatible
query II rowsort label-4149
SELECT - 92 - - + 36 * - 89 + + 54 AS col1, - CAST ( NULL AS INTEGER )
----
-3242
NULL

query II rowsort
SELECT ALL ( - 33 ) AS col1, 54 AS col2
----
-33
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4151
SELECT DISTINCT ( 25 ) AS col2, CAST( + 77 AS SIGNED )
----
25
77

skipif mysql # not compatible
query II rowsort label-4151
SELECT DISTINCT ( 25 ) AS col2, CAST ( + 77 AS INTEGER )
----
25
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT DISTINCT - COUNT( * ) * + 93 * COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT - COUNT ( * ) * + 93 * COUNT ( * )
----
-93

query I rowsort
SELECT ALL 39 / + CASE + + 45 WHEN + - 34 * + 66 THEN 37 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT COUNT( * ) * + ( + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-4154
SELECT COUNT ( * ) * + ( + 42 )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4155
SELECT 4 DIV + 70 + + - 61 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-4155
SELECT 4 / + 70 + + - 61 AS col0
----
-61

query I rowsort
SELECT 96 * - 2 AS col2
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ALL 26 * MIN( + + 10 ) AS col1
----
260

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL 26 * MIN ( + + 10 ) AS col1
----
260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4158
SELECT CASE + - CASE + 42 WHEN - 6 THEN - 28 WHEN - ( 25 ) THEN + - 84 ELSE NULL END WHEN + 51 THEN 49 WHEN + 11 THEN + - CAST( NULL AS SIGNED ) * + 5 ELSE + 88 + 88 END + - 40 - COALESCE ( + 95, NULLIF ( CASE - CASE - COALESCE ( + 0, - CASE NULLIF ( - 90, - 3 ) WHEN COUNT( * ) + 0 + + CAST( NULL AS SIGNED ) THEN - + ( - 22 ) * COUNT( * ) WHEN COALESCE ( + - 84, + - 95, - 52 * - NULLIF ( - 98, 99 * - 57 ) ) THEN COALESCE ( + 82, - ( 2 ) + 84 ) ELSE NULL END ) WHEN + 4 THEN NULL WHEN COUNT( * ) - - 95 THEN - 86 * 38 ELSE + 8 END WHEN 54 * - 13 THEN NULL WHEN 40 + 46 THEN ( COUNT( * ) ) WHEN - 66 THEN 58 + 34 ELSE NULL END, + 12 ) + - ( + 88 + + 99 ), + 21 * 47 + 65 ) * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT CASE + - CASE + 42 WHEN - 6 THEN - 28 WHEN - ( 25 ) THEN + - 84 ELSE NULL END WHEN + 51 THEN 49 WHEN + 11 THEN + - CAST ( NULL AS INTEGER ) * + 5 ELSE + 88 + 88 END + - 40 - COALESCE ( + 95, NULLIF ( CASE - CASE - COALESCE ( + 0, - CASE NULLIF ( - 90, - 3 ) WHEN COUNT ( * ) + 0 + + CAST ( NULL AS INTEGER ) THEN - + ( - 22 ) * COUNT ( * ) WHEN COALESCE ( + - 84, + - 95, - 52 * - NULLIF ( - 98, 99 * - 57 ) ) THEN COALESCE ( + 82, - ( 2 ) + 84 ) ELSE NULL END ) WHEN + 4 THEN NULL WHEN COUNT ( * ) - - 95 THEN - 86 * 38 ELSE + 8 END WHEN 54 * - 13 THEN NULL WHEN 40 + 46 THEN ( COUNT ( * ) ) WHEN - 66 THEN 58 + 34 ELSE NULL END, + 12 ) + - ( + 88 + + 99 ), + 21 * 47 + 65 ) * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT CASE - + 21 WHEN 86 THEN - 94 ELSE NULL END / 64 * + COUNT( * ) - - 8 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4159
SELECT CASE - + 21 WHEN 86 THEN - 94 ELSE NULL END / 64 * + COUNT ( * ) - - 8 col0
----
NULL

query I rowsort
SELECT - 92 * ( - + 90 ) + - 8
----
8272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4161
SELECT 86 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4161
SELECT 86 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL - CASE + 68 WHEN - 1 THEN + COUNT( * ) ELSE NULL END + NULLIF ( 45, + 99 * + 75 * + - COUNT( * ) + 70 + - 18 + - - 60 * 19 + + + 22 + 1 * ( - NULLIF ( 80, 45 * + - 15 * AVG ( - + 88 ) + + 12 + - ( - - 16 ) + - 25 ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL - CASE + 68 WHEN - 1 THEN + COUNT ( * ) ELSE NULL END + NULLIF ( 45, + 99 * + 75 * + - COUNT ( * ) + 70 + - 18 + - - 60 * 19 + + + 22 + 1 * ( - NULLIF ( 80, 45 * + - 15 * AVG ( - + 88 ) + + 12 + - ( - - 16 ) + - 25 ) ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT ALL - MIN( - + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL - MIN ( - + 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT DISTINCT 25 + - COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4164
SELECT DISTINCT 25 + - COUNT ( * ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT 41 * + + 30 + + 82 * - + 74 + + ( - + COUNT( * ) ) + + 50
----
-4789

skipif mysql # not compatible
query I rowsort label-4165
SELECT 41 * + + 30 + + 82 * - + 74 + + ( - + COUNT ( * ) ) + + 50
----
-4789

query I rowsort
SELECT 11 * - 91 * 83
----
-83083

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT ALL COUNT( * ) + 16 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL COUNT ( * ) + 16 AS col1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4168
SELECT CAST( - ( ( + - 22 ) ) AS SIGNED ) - - 82
----
104

skipif mysql # not compatible
query I rowsort label-4168
SELECT CAST ( - ( ( + - 22 ) ) AS INTEGER ) - - 82
----
104

query I rowsort
SELECT ALL - 69 * - 92
----
6348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4170
SELECT COUNT( * ) * - ( CAST( + MAX( + 84 ) AS SIGNED ) )
----
-84

skipif mysql # not compatible
query I rowsort label-4170
SELECT COUNT ( * ) * - ( CAST ( + MAX ( + 84 ) AS INTEGER ) )
----
-84

query I rowsort
SELECT 37 * 26
----
962

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4172
SELECT ALL + CAST( NULL AS SIGNED ) + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL + CAST ( NULL AS INTEGER ) + + 18
----
NULL

query I rowsort
SELECT DISTINCT - CASE + - 50 WHEN + 72 THEN NULL WHEN - - AVG ( DISTINCT + ( - 17 ) ) THEN - 26 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4174
SELECT DISTINCT + - COUNT( * ) + SUM( + 47 ) * 89 DIV - 81 + + 4 * - ( COUNT( * ) ) + + 89
----
33

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT + - COUNT ( * ) + SUM ( + 47 ) * 89 / - 81 + + 4 * - ( COUNT ( * ) ) + + 89
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4175
SELECT DISTINCT - - COUNT( * ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT - - COUNT ( * ) - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 92 + + 65 col2
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT - 99 * - 95 * - 75 - - COUNT( * ) + + 77
----
-705297

skipif mysql # not compatible
query I rowsort label-4177
SELECT - 99 * - 95 * - 75 - - COUNT ( * ) + + 77
----
-705297

query I rowsort
SELECT 84 + 63 + 83 * - 64 + + + 99
----
-5066

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT ( - - 44 ) * + + MAX( DISTINCT - 1 ) * 26 * - 87
----
99528

skipif mysql # not compatible
query I rowsort label-4179
SELECT ( - - 44 ) * + + MAX ( DISTINCT - 1 ) * 26 * - 87
----
99528

query I rowsort
SELECT 61 + - 71 + + 54
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4181
SELECT ALL + CAST( NULL AS SIGNED ) * + 2 * 28 * - 87 - 29, + 75 * + 30 * + 22 * + 11 AS col2
----
NULL
544500

skipif mysql # not compatible
query II rowsort label-4181
SELECT ALL + CAST ( NULL AS INTEGER ) * + 2 * 28 * - 87 - 29, + 75 * + 30 * + 22 * + 11 AS col2
----
NULL
544500

query I rowsort
SELECT 53 + + 54 AS col1
----
107

query I rowsort
SELECT DISTINCT - 73 * + 77 AS col1
----
-5621

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ALL - COUNT( * ) * COALESCE ( - 37, - - 89 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL - COUNT ( * ) * COALESCE ( - 37, - - 89 ) AS col1
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4185
SELECT 6 + + + 95 DIV + 70
----
7

skipif mysql # not compatible
query I rowsort label-4185
SELECT 6 + + + 95 / + 70
----
7

query II rowsort
SELECT DISTINCT 58, - 26 AS col0
----
58
-26

query I rowsort
SELECT 80 * - 38
----
-3040

query II rowsort
SELECT ALL + 51 * + 90 * - 96 + 35 * - 4 * - + ( - 18 ), 76 col1
----
-443160
76

onlyif mysql # aggregate syntax: 
query II rowsort label-4189
SELECT ALL + 85 * - NULLIF ( + - 51, + COUNT( * ) * + AVG ( 45 ) + + 17 - + 29 + 6 * - 89 ) + - + 9 AS col2, - 64 * + 43
----
4326
-2752

skipif mysql # not compatible
query II rowsort label-4189
SELECT ALL + 85 * - NULLIF ( + - 51, + COUNT ( * ) * + AVG ( 45 ) + + 17 - + 29 + 6 * - 89 ) + - + 9 AS col2, - 64 * + 43
----
4326
-2752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4190
SELECT 64 DIV + + 82 + - MAX( ALL 70 ) + + 62 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4190
SELECT 64 / + + 82 + - MAX ( ALL 70 ) + + 62 AS col0
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4191
SELECT DISTINCT 69 * COALESCE ( ( + 53 ), + 71 + + 58 + + MIN( 92 ) + + 25 + - - 70 + - 14 DIV 51 * + + 4 + - 26 + - - SUM( ( + 43 ) ) ) + - + 4
----
3653

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT 69 * COALESCE ( ( + 53 ), + 71 + + 58 + + MIN ( 92 ) + + 25 + - - 70 + - 14 / 51 * + + 4 + - 26 + - - SUM ( ( + 43 ) ) ) + - + 4
----
3653

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4192
SELECT ALL NULLIF ( COALESCE ( - 12, - 15, 23 + + 48 ), + 26 / 41 + ( + + 23 ) ) * - - ( + 12 ) * + CASE - - 33 WHEN CAST( - - 65 AS SIGNED ) THEN NULL ELSE 0 / + CAST( NULL AS SIGNED ) - + 16 + + 41 * 31 / + + 59 * - 91 * + 86 * 54 END * + 26 / MIN( 49 ) - + 24 AS col0, 23 * 45 AS col0
----
NULL
1035

skipif mysql # not compatible
query II rowsort label-4192
SELECT ALL NULLIF ( COALESCE ( - 12, - 15, 23 + + 48 ), + 26 / 41 + ( + + 23 ) ) * - - ( + 12 ) * + CASE - - 33 WHEN CAST ( - - 65 AS INTEGER ) THEN NULL ELSE 0 / + CAST ( NULL AS INTEGER ) - + 16 + + 41 * 31 / + + 59 * - 91 * + 86 * 54 END * + 26 / MIN ( 49 ) - + 24 AS col0, 23 * 45 AS col0
----
NULL
1035

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4193
SELECT COALESCE ( - COUNT( * ), 30, + - 20 ) DIV + 6
----
0

skipif mysql # not compatible
query I rowsort label-4193
SELECT COALESCE ( - COUNT ( * ), 30, + - 20 ) / + 6
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT DISTINCT MIN( + 99 ) * ( + - 78 ) - + 55
----
-7777

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT MIN ( + 99 ) * ( + - 78 ) - + 55
----
-7777

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4195
SELECT + CAST( NULL AS SIGNED ) - 92 + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT + CAST ( NULL AS INTEGER ) - 92 + - 65
----
NULL

query I rowsort
SELECT ALL NULLIF ( 29, - 45 ) * 84 + 82
----
2518

query I rowsort
SELECT + 19 + - + 6 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT MAX( + + 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4198
SELECT MAX ( + + 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT + 71 * - - MIN( DISTINCT + 54 ) AS col0
----
3834

skipif mysql # not compatible
query I rowsort label-4199
SELECT + 71 * - - MIN ( DISTINCT + 54 ) AS col0
----
3834

query I rowsort
SELECT - ( 67 ) * - + 36 + + 36 AS col1
----
2448

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT MIN( - + 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4201
SELECT MIN ( - + 95 ) AS col2
----
-95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4202
SELECT - 55 * + COUNT( * ) + - 1 + + CAST( NULL AS DECIMAL ) + - - COUNT( * ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4202
SELECT - 55 * + COUNT ( * ) + - 1 + + CAST ( NULL AS REAL ) + - - COUNT ( * ) * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + - 43 + - 95
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT - 31 + + 18 - - - MIN( ( + 62 ) ) + - 86 + COUNT( DISTINCT 37 ) * + 65 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-4204
SELECT - 31 + + 18 - - - MIN ( ( + 62 ) ) + - 86 + COUNT ( DISTINCT 37 ) * + 65 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4205
SELECT + - 20, + COUNT( * ) AS col2
----
-20
1

skipif mysql # not compatible
query II rowsort label-4205
SELECT + - 20, + COUNT ( * ) AS col2
----
-20
1

query I rowsort
SELECT DISTINCT + 29 * 43
----
1247

onlyif mysql # aggregate syntax: 
query II rowsort label-4207
SELECT ALL + - 66 * + + NULLIF ( 39, - + 65 ) AS col0, - COUNT( * ) AS col0
----
-2574
-1

skipif mysql # not compatible
query II rowsort label-4207
SELECT ALL + - 66 * + + NULLIF ( 39, - + 65 ) AS col0, - COUNT ( * ) AS col0
----
-2574
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4208
SELECT - - 99, + CAST( NULL AS DECIMAL ) AS col1
----
99
NULL

skipif mysql # not compatible
query II rowsort label-4208
SELECT - - 99, + CAST ( NULL AS REAL ) AS col1
----
99
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4209
SELECT ALL + 43 AS col0, + 85 * - COUNT( * ) + + + 59
----
43
-26

skipif mysql # not compatible
query II rowsort label-4209
SELECT ALL + 43 AS col0, + 85 * - COUNT ( * ) + + + 59
----
43
-26

query II rowsort
SELECT DISTINCT 66, 49 AS col2
----
66
49

query I rowsort
SELECT DISTINCT - ( + - 11 ) AS col1
----
11

query II rowsort
SELECT - - 76, - 12 AS col0
----
76
-12

query I rowsort
SELECT ALL - 35 * - + 90 + - 12 AS col1
----
3138

onlyif mysql # aggregate syntax: 
query II rowsort label-4214
SELECT ALL 50 AS col0, + 18 + + COUNT( * )
----
50
19

skipif mysql # not compatible
query II rowsort label-4214
SELECT ALL 50 AS col0, + 18 + + COUNT ( * )
----
50
19

query I rowsort
SELECT - ( 33 ) col2
----
-33

query II rowsort
SELECT DISTINCT - 96, - 70 * - ( - 0 ) AS col0
----
-96
0

query I rowsort
SELECT ALL - + 11 + 88 AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT + CAST( + 45 AS SIGNED ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4218
SELECT + CAST ( + 45 AS INTEGER ) AS col0
----
45

query I rowsort
SELECT - 13 * + + 52 AS col2
----
-676

query I rowsort
SELECT - 18 / + 19 * - - CASE + 75 WHEN + 33 THEN + 35 ELSE NULL END * + 56 AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( + - ( + 84 ) )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT ALL + 14 + + COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL + 14 + + COUNT ( * ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT - ( + COUNT( * ) ) - - + 60
----
59

skipif mysql # not compatible
query I rowsort label-4223
SELECT - ( + COUNT ( * ) ) - - + 60
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT ALL SUM( ALL + 43 ) * - + ( - + 80 ) + 44
----
3484

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL SUM ( ALL + 43 ) * - + ( - + 80 ) + 44
----
3484

onlyif mysql # aggregate syntax: 
query II rowsort label-4225
SELECT ALL 32 + - - COUNT( * ) + + 62 * NULLIF ( - 21, + 16 + + NULLIF ( + 36, + 94 ) ) + - COUNT( * ) col0, + COUNT( * )
----
-1270
1

skipif mysql # not compatible
query II rowsort label-4225
SELECT ALL 32 + - - COUNT ( * ) + + 62 * NULLIF ( - 21, + 16 + + NULLIF ( + 36, + 94 ) ) + - COUNT ( * ) col0, + COUNT ( * )
----
-1270
1

query I rowsort
SELECT - 37 - + - 22 * - 45 * + - 85 col1
----
84113

query I rowsort
SELECT - 14 * - 93 col1
----
1302

onlyif mysql # DIV for integer division: 
query I rowsort label-4228
SELECT 78 DIV + 12 + 52 + + + 49 * COALESCE ( - - 36, - 34 ) * + 5 + + + 7 AS col2
----
8885

skipif mysql # not compatible
query I rowsort label-4228
SELECT 78 / + 12 + 52 + + + 49 * COALESCE ( - - 36, - 34 ) * + 5 + + + 7 AS col2
----
8885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4229
SELECT - 45 * + - 5 + 30 - SUM( 36 ) AS col1, + CAST( NULL AS SIGNED ) AS col2
----
219
NULL

skipif mysql # not compatible
query II rowsort label-4229
SELECT - 45 * + - 5 + 30 - SUM ( 36 ) AS col1, + CAST ( NULL AS INTEGER ) AS col2
----
219
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4230
SELECT ALL - 97 / ( - - 35 ) * - CAST( NULL AS SIGNED ) + 49 * - + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL - 97 / ( - - 35 ) * - CAST ( NULL AS INTEGER ) + 49 * - + 77 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4231
SELECT DISTINCT + CAST( 71 AS SIGNED ) AS col0, - 84 AS col2
----
71
-84

skipif mysql # not compatible
query II rowsort label-4231
SELECT DISTINCT + CAST ( 71 AS INTEGER ) AS col0, - 84 AS col2
----
71
-84

query I rowsort
SELECT + 48 * - - 93 * ( 50 ) * 57 * - ( 19 ) AS col0
----
-241725600

query I rowsort
SELECT ALL 59 * - 80
----
-4720

query I rowsort
SELECT ( - - 3 ) col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT + NULLIF ( + COUNT( * ), - 3 )
----
1

skipif mysql # not compatible
query I rowsort label-4235
SELECT + NULLIF ( + COUNT ( * ), - 3 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT ALL 13 * + CAST( 39 AS SIGNED ) - - 28 AS col2
----
535

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL 13 * + CAST ( 39 AS INTEGER ) - - 28 AS col2
----
535

query I rowsort
SELECT ALL 12 * + 88 AS col2
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT - 45 + - COUNT( * ) - + 75 * + + 66
----
-4996

skipif mysql # not compatible
query I rowsort label-4238
SELECT - 45 + - COUNT ( * ) - + 75 * + + 66
----
-4996

query I rowsort
SELECT ALL + 31 * - 70 - - ( - 49 ) + + 33 * 19
----
-1592

query I rowsort
SELECT + 72 * 64
----
4608

query I rowsort
SELECT + - CASE - 42 WHEN ( + - 97 ) THEN + 46 WHEN + 5 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4242
SELECT + + 70 - + COUNT( * ), + 61 + - 15 * 90 AS col0
----
69
-1289

skipif mysql # not compatible
query II rowsort label-4242
SELECT + + 70 - + COUNT ( * ), + 61 + - 15 * 90 AS col0
----
69
-1289

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4243
SELECT ALL + CAST( - - 66 AS SIGNED ) AS col2, COUNT( * ) * - - 91
----
66
91

skipif mysql # not compatible
query II rowsort label-4243
SELECT ALL + CAST ( - - 66 AS INTEGER ) AS col2, COUNT ( * ) * - - 91
----
66
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT - CAST( - 59 AS SIGNED ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4244
SELECT - CAST ( - 59 AS INTEGER ) AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4245
SELECT COUNT( * ) * + 30 + 46 - - COUNT( * ) + NULLIF ( + ( NULLIF ( - 17, - ( 60 ) * 52 * + 54 ) ), - 41 + ( + CAST( - 35 AS DECIMAL ) ) DIV + - 32 * COALESCE ( - 93, + - 84 - ( ( COUNT( * ) ) ) + COALESCE ( + - 24, - 52 ) ) ) + + + 34 * COUNT( ALL - 59 ) + + - 40 DIV - - 87 - + - 24 AS col1, - 62 * + 76 AS col1
----
118
-4712

skipif mysql # not compatible
query II rowsort label-4245
SELECT COUNT ( * ) * + 30 + 46 - - COUNT ( * ) + NULLIF ( + ( NULLIF ( - 17, - ( 60 ) * 52 * + 54 ) ), - 41 + ( + CAST ( - 35 AS REAL ) ) / + - 32 * COALESCE ( - 93, + - 84 - ( ( COUNT ( * ) ) ) + COALESCE ( + - 24, - 52 ) ) ) + + + 34 * COUNT ( ALL - 59 ) + + - 40 / - - 87 - + - 24 AS col1, - 62 * + 76 AS col1
----
118
-4712

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT - - COUNT( * ) * - 65 * + ( 18 )
----
-1170

skipif mysql # not compatible
query I rowsort label-4246
SELECT - - COUNT ( * ) * - 65 * + ( 18 )
----
-1170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4247
SELECT + 88 + + ( COUNT( DISTINCT + + 37 ) ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT + 88 + + ( COUNT ( DISTINCT + + 37 ) ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT - 58 - + ( - + COUNT( * ) )
----
-57

skipif mysql # not compatible
query I rowsort label-4248
SELECT - 58 - + ( - + COUNT ( * ) )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT ALL COUNT( * ) * - 42 * - ( + 30 ) AS col2
----
1260

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL COUNT ( * ) * - 42 * - ( + 30 ) AS col2
----
1260

query I rowsort
SELECT - 71 - + 81 * - 81
----
6490

query I rowsort
SELECT DISTINCT + 32 + + 72 + 31
----
135

query I rowsort
SELECT DISTINCT 89 + - 49 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT ALL + 82 + + 34 - 65 * SUM( ALL - - 30 )
----
-1834

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL + 82 + + 34 - 65 * SUM ( ALL - - 30 )
----
-1834

query I rowsort
SELECT ALL 44 + - 39
----
5

query I rowsort
SELECT DISTINCT 2 * + 36 AS col1
----
72

query II rowsort
SELECT ALL 15 AS col0, ( + + 94 )
----
15
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4257
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) + - 97 AS col0, - 5 + ( COUNT( * ) ) + - + 86 + - - 11 * + 58 * MIN( ALL - - 70 ) * 13 * + 94
----
NULL
54574430

skipif mysql # not compatible
query II rowsort label-4257
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) + - 97 AS col0, - 5 + ( COUNT ( * ) ) + - + 86 + - - 11 * + 58 * MIN ( ALL - - 70 ) * 13 * + 94
----
NULL
54574430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4258
SELECT CAST( NULL AS SIGNED ) + - 9 * + 98 + - - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT CAST ( NULL AS INTEGER ) + - 9 * + 98 + - - 56
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4259
SELECT 5 DIV + + COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4259
SELECT 5 / + + COUNT ( * ) AS col2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4260
SELECT ALL - ( COALESCE ( + + 69, - + 52 * - - 44 * + 21 + + COUNT( * ) + 37, - 64 * 70 * - 27 + + COUNT( * ) + + 5 ) ) DIV COALESCE ( 66, - - 98 + NULLIF ( - + MIN( - - 80 ), 50 ), COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL - ( COALESCE ( + + 69, - + 52 * - - 44 * + 21 + + COUNT ( * ) + 37, - 64 * 70 * - 27 + + COUNT ( * ) + + 5 ) ) / COALESCE ( 66, - - 98 + NULLIF ( - + MIN ( - - 80 ), 50 ), COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT 11 * + 2
----
22

query I rowsort
SELECT DISTINCT - 92 * 54
----
-4968

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT DISTINCT - 20 DIV 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT - 20 / 89 AS col0
----
0

query I rowsort
SELECT ALL - 75 * + - 9 * + + 91 * - 55 AS col1
----
-3378375

query I rowsort
SELECT 36 + - 39
----
-3

query I rowsort
SELECT 39 * - 5
----
-195

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4267
SELECT ALL - ( - + COALESCE ( - - 46, 16 DIV - 91 + 35 + - COALESCE ( + 92, - 21 + + + COUNT( * ) ), 84 ) ) AS col2, MIN( - 52 ) + 22 AS col0
----
46
-30

skipif mysql # not compatible
query II rowsort label-4267
SELECT ALL - ( - + COALESCE ( - - 46, 16 / - 91 + 35 + - COALESCE ( + 92, - 21 + + + COUNT ( * ) ), 84 ) ) AS col2, MIN ( - 52 ) + 22 AS col0
----
46
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL - MAX( ALL + + 27 ) col2
----
-27

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL - MAX ( ALL + + 27 ) col2
----
-27

query I rowsort
SELECT 65 * - - 37 AS col0
----
2405

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT + 43 + + - 30 + - + 2 * - COUNT( DISTINCT - + 78 )
----
15

skipif mysql # not compatible
query I rowsort label-4270
SELECT + 43 + + - 30 + - + 2 * - COUNT ( DISTINCT - + 78 )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4271
SELECT + - CASE + 90 WHEN - - 0 / CAST( - 24 AS SIGNED ) THEN - 7 + + + CAST( NULL AS SIGNED ) WHEN + ( - ( 60 ) ) + - 84 * + 63 - + - 54 * - CAST( NULL AS SIGNED ) * + 73 + 71 THEN + CAST( NULL AS SIGNED ) * COUNT( * ) END AS col2, 32 - - - 34
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-4271
SELECT + - CASE + 90 WHEN - - 0 / CAST ( - 24 AS INTEGER ) THEN - 7 + + + CAST ( NULL AS INTEGER ) WHEN + ( - ( 60 ) ) + - 84 * + 63 - + - 54 * - CAST ( NULL AS INTEGER ) * + 73 + 71 THEN + CAST ( NULL AS INTEGER ) * COUNT ( * ) END AS col2, 32 - - - 34
----
NULL
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4272
SELECT + 26 + - COUNT( * ) * COUNT( * ) * + - 78, - 2 * + - 41 AS col2
----
104
82

skipif mysql # not compatible
query II rowsort label-4272
SELECT + 26 + - COUNT ( * ) * COUNT ( * ) * + - 78, - 2 * + - 41 AS col2
----
104
82

query I rowsort
SELECT ALL - + 9 col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT + ( - - COUNT( * ) ) * - 46 + SUM( 63 ) * - 69
----
-4393

skipif mysql # not compatible
query I rowsort label-4274
SELECT + ( - - COUNT ( * ) ) * - 46 + SUM ( 63 ) * - 69
----
-4393

query II rowsort
SELECT DISTINCT - 0, - 95 col2
----
0
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT ALL - 53 + + - 60 + - COALESCE ( + 27, + + 15, COUNT( * ) ) * + COALESCE ( + 36, + 35 + + COUNT( * ) + 24 - + 73 * - COUNT( * ) * - - 84 + - 56, + - COALESCE ( - 96, + SUM( 22 ) ) )
----
-1085

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL - 53 + + - 60 + - COALESCE ( + 27, + + 15, COUNT ( * ) ) * + COALESCE ( + 36, + 35 + + COUNT ( * ) + 24 - + 73 * - COUNT ( * ) * - - 84 + - 56, + - COALESCE ( - 96, + SUM ( 22 ) ) )
----
-1085

onlyif mysql # aggregate syntax: 
query II rowsort label-4277
SELECT - 29 AS col2, COALESCE ( + + 65, COUNT( * ) ) AS col0
----
-29
65

skipif mysql # not compatible
query II rowsort label-4277
SELECT - 29 AS col2, COALESCE ( + + 65, COUNT ( * ) ) AS col0
----
-29
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT COUNT( * ) + - + ( - 0 ) * - + 64
----
1

skipif mysql # not compatible
query I rowsort label-4278
SELECT COUNT ( * ) + - + ( - 0 ) * - + 64
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT - CASE + - 48 WHEN SUM( + 36 ) * + ( - + 0 ) + + COUNT( 15 ) THEN NULL ELSE 30 END AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-4279
SELECT - CASE + - 48 WHEN SUM ( + 36 ) * + ( - + 0 ) + + COUNT ( 15 ) THEN NULL ELSE 30 END AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4280
SELECT ALL - 3 + + 96 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL - 3 + + 96 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 9 * - - 88 * - + COALESCE ( 66, - - 7 - - - 15 + 90, + + 36 * + 22 ) * - + 13 * 15 * + 2 + 7 AS col0
----
-20386073

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT ALL + COUNT( * ) + + - 89 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL + COUNT ( * ) + + - 89 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT 8 * SUM( - 33 ) * + 23 * - + 43 * + - ( - 95 ) AS col0
----
24804120

skipif mysql # not compatible
query I rowsort label-4283
SELECT 8 * SUM ( - 33 ) * + 23 * - + 43 * + - ( - 95 ) AS col0
----
24804120

query I rowsort
SELECT ALL + 78 + + 40
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-4285
SELECT 95 - 89 AS col1, CASE - - 36 WHEN 31 - + ( 32 ) * + - 93 THEN + COUNT( DISTINCT - ( + 58 ) ) ELSE NULL END * - NULLIF ( - COUNT( * ), - 65 * + 98 + - - 62 ) + 45
----
6
NULL

skipif mysql # not compatible
query II rowsort label-4285
SELECT 95 - 89 AS col1, CASE - - 36 WHEN 31 - + ( 32 ) * + - 93 THEN + COUNT ( DISTINCT - ( + 58 ) ) ELSE NULL END * - NULLIF ( - COUNT ( * ), - 65 * + 98 + - - 62 ) + 45
----
6
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4286
SELECT COALESCE ( + 67, + 19 ) - - + COUNT( * ) AS col0, + COALESCE ( + + NULLIF ( + 79, 8 * + + 96 * - 32 + + 80 ), - NULLIF ( + + 15, + ( + 27 ) + + 70 ) )
----
68
79

skipif mysql # not compatible
query II rowsort label-4286
SELECT COALESCE ( + 67, + 19 ) - - + COUNT ( * ) AS col0, + COALESCE ( + + NULLIF ( + 79, 8 * + + 96 * - 32 + + 80 ), - NULLIF ( + + 15, + ( + 27 ) + + 70 ) )
----
68
79

query I rowsort
SELECT DISTINCT 49 * ( - + 91 )
----
-4459

query I rowsort
SELECT 20 * + - 99 AS col1
----
-1980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT ALL - CAST( NULL AS SIGNED ) * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL - CAST ( NULL AS INTEGER ) * + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT DISTINCT 95 - + + MIN( DISTINCT 37 )
----
58

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT 95 - + + MIN ( DISTINCT 37 )
----
58

query I rowsort
SELECT 40 - - 24 col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT COUNT( 75 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4292
SELECT COUNT ( 75 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4293
SELECT NULLIF ( + - 10, - 68 ) * + - 13 AS col2, + 36 + + COUNT( * )
----
130
37

skipif mysql # not compatible
query II rowsort label-4293
SELECT NULLIF ( + - 10, - 68 ) * + - 13 AS col2, + 36 + + COUNT ( * )
----
130
37

query I rowsort
SELECT 7 * - + 68 + - 34 AS col2
----
-510

onlyif mysql # DIV for integer division: 
query I rowsort label-4295
SELECT DISTINCT + 62 DIV 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT + 62 / 88 AS col1
----
0

query I rowsort
SELECT + 15 - + 16
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT ALL + 8 * + + ( + COUNT( * ) ) + - 11 + - 59 + - - 88
----
26

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL + 8 * + + ( + COUNT ( * ) ) + - 11 + - 59 + - - 88
----
26

query I rowsort
SELECT 36 * - ( + 26 ) AS col1
----
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT + - SUM( 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-4299
SELECT + - SUM ( 47 )
----
-47

query I rowsort
SELECT DISTINCT - 17 * 65 AS col2
----
-1105

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT 61 + - 58 AS col1
----
3

query I rowsort
SELECT DISTINCT + 65 + - - ( COALESCE ( + 79, ( - + 37 ) + + + 56 + 85 ) ) + - 28 * + 46
----
-1144

query I rowsort
SELECT DISTINCT + 54 + + 47 AS col2
----
101

query I rowsort
SELECT ALL ( - + 33 ) + - 47 + + ( - 30 ) + 37 * 70 * - 32 + + - ( - + 21 )
----
-82969

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT 30 - - SUM( - COALESCE ( - NULLIF ( 58, + - ( 19 ) - + - 66 + - 36 ), - 67 * + 67 ) ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-4306
SELECT 30 - - SUM ( - COALESCE ( - NULLIF ( 58, + - ( 19 ) - + - 66 + - 36 ), - 67 * + 67 ) ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT - 6 + COUNT( * ) * + 99 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4307
SELECT - 6 + COUNT ( * ) * + 99 AS col1
----
93

query I rowsort
SELECT ALL - + ( - 97 ) - - 7 AS col2
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4309
SELECT - - 66 + + + 9 DIV COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4309
SELECT - - 66 + + + 9 / COUNT ( * ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT - COALESCE ( + 86, 87 * + 57 + + - COUNT( * ), - - 10 ) + - 93 + - + ( + 99 )
----
-278

skipif mysql # not compatible
query I rowsort label-4310
SELECT - COALESCE ( + 86, 87 * + 57 + + - COUNT ( * ), - - 10 ) + - 93 + - + ( + 99 )
----
-278

query II rowsort
SELECT - 79 + + COALESCE ( 2, - 12, + + 7 ), 6 * 2 * + 70 AS col1
----
-77
840

query I rowsort
SELECT + 84 - - - 17 / - CASE + + 74 WHEN 0 + - 56 THEN - 56 * 0 * - - 22 + 72 - + - ( + 77 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT DISTINCT COALESCE ( + 18, + 10 ) * COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT COALESCE ( + 18, + 10 ) * COUNT ( * ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT + MAX( DISTINCT - + 96 ) + 37
----
-59

skipif mysql # not compatible
query I rowsort label-4314
SELECT + MAX ( DISTINCT - + 96 ) + 37
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-4315
SELECT DISTINCT - 65 - + COALESCE ( + ( + 81 ), COUNT( * ) - - 14 + 99 ) * + + 97 AS col1, - 66 AS col1
----
-7922
-66

skipif mysql # not compatible
query II rowsort label-4315
SELECT DISTINCT - 65 - + COALESCE ( + ( + 81 ), COUNT ( * ) - - 14 + 99 ) * + + 97 AS col1, - 66 AS col1
----
-7922
-66

query I rowsort
SELECT + 48 + + 10 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT ALL - COUNT( * ) * COUNT( * ) * 86 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL - COUNT ( * ) * COUNT ( * ) * 86 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT DISTINCT ( + + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT ( + + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT + COUNT( * ) + + + 59
----
60

skipif mysql # not compatible
query I rowsort label-4319
SELECT + COUNT ( * ) + + + 59
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-4320
SELECT DISTINCT 31, 72 + 83 * + 68 * - ( - COUNT( * ) ) * - 77 - 52 AS col1
----
31
-434568

skipif mysql # not compatible
query II rowsort label-4320
SELECT DISTINCT 31, 72 + 83 * + 68 * - ( - COUNT ( * ) ) * - 77 - 52 AS col1
----
31
-434568

query I rowsort
SELECT + 1 + + 15
----
16

query I rowsort
SELECT + 18 * - 91 AS col2
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT + COUNT( * ) + + - 13 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4323
SELECT + COUNT ( * ) + + - 13 AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4324
SELECT + MAX( DISTINCT - 52 ) + - + 33 / - CAST( NULL AS SIGNED ) * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT + MAX ( DISTINCT - 52 ) + - + 33 / - CAST ( NULL AS INTEGER ) * 48
----
NULL

query I rowsort
SELECT + 82 * 0
----
0

query I rowsort
SELECT - COALESCE ( 62, + 81 * + + 95 ) AS col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4327
SELECT - 11 / + 56 * 42 + + + 58 * + + AVG ( ALL - CAST( - 99 AS SIGNED ) ) * - COALESCE ( CAST( + 12 AS SIGNED ), + 5 + 39 + - 55 * - 10 * + 3 ) + - 79 + - - ( 47 ) + 63 + - ( + CASE - 76 WHEN + 62 THEN + + 4 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT - 11 / + 56 * 42 + + + 58 * + + AVG ( ALL - CAST ( - 99 AS INTEGER ) ) * - COALESCE ( CAST ( + 12 AS INTEGER ), + 5 + 39 + - 55 * - 10 * + 3 ) + - 79 + - - ( 47 ) + 63 + - ( + CASE - 76 WHEN + 62 THEN + + 4 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4328
SELECT ALL 22 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL 22 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 6 * - + 63 + - 11 AS col2
----
-389

query I rowsort
SELECT + ( + - 62 ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT ALL + + MAX( ALL + 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL + + MAX ( ALL + 77 ) AS col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4332
SELECT 17 DIV + COUNT( * ) + 48 * + 86 - - 18 + + 49 AS col1
----
4212

skipif mysql # not compatible
query I rowsort label-4332
SELECT 17 / + COUNT ( * ) + 48 * + 86 - - 18 + + 49 AS col1
----
4212

query I rowsort
SELECT - NULLIF ( 13, 8 ) + - - 15 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4334
SELECT ALL + - 30 * 5 * - 67 + - + 73 - + + 77 DIV + - ( + - 48 ) AS col1
----
9976

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL + - 30 * 5 * - 67 + - + 73 - + + 77 / + - ( + - 48 ) AS col1
----
9976

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT - 82 * + SUM( + ( - 2 ) ) AS col0
----
164

skipif mysql # not compatible
query I rowsort label-4335
SELECT - 82 * + SUM ( + ( - 2 ) ) AS col0
----
164

query I rowsort
SELECT + - ( 45 ) AS col0
----
-45

query I rowsort
SELECT + NULLIF ( 99, 38 * + 57 )
----
99

query I rowsort
SELECT - 27 + + 0 AS col1
----
-27

query II rowsort
SELECT - 67 * + - 99, + 8 AS col0
----
6633
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4340
SELECT ALL + COALESCE ( - 13, + - 59 - + 9, + + 52 * 4 ) * - ( + - CASE MAX( - + 73 ) WHEN - CAST( NULL AS DECIMAL ) * - - ( + 65 ) THEN - 71 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL + COALESCE ( - 13, + - 59 - + 9, + + 52 * 4 ) * - ( + - CASE MAX ( - + 73 ) WHEN - CAST ( NULL AS REAL ) * - - ( + 65 ) THEN - 71 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT - 96 * - + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-4341
SELECT - 96 * - + COUNT ( * )
----
96

query I rowsort
SELECT + 61 + + 59 AS col2
----
120

query I rowsort
SELECT DISTINCT + 33 * - 69
----
-2277

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL COALESCE ( - + MIN( 54 ), - 48, - 60 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL COALESCE ( - + MIN ( 54 ), - 48, - 60 ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-4345
SELECT - 66, - 33 * COUNT( * ) AS col0
----
-66
-33

skipif mysql # not compatible
query II rowsort label-4345
SELECT - 66, - 33 * COUNT ( * ) AS col0
----
-66
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT - 13 - - - 50 * + SUM( - - 91 ) col2
----
-4563

skipif mysql # not compatible
query I rowsort label-4346
SELECT - 13 - - - 50 * + SUM ( - - 91 ) col2
----
-4563

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4347
SELECT - 89 - - ( 10 ) DIV - 75 DIV - + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-4347
SELECT - 89 - - ( 10 ) / - 75 / - + COUNT ( * )
----
-89

query II rowsort
SELECT DISTINCT + 62 + - 7 col1, + 77 AS col0
----
55
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT - ( MAX( - 63 ) )
----
63

skipif mysql # not compatible
query I rowsort label-4349
SELECT - ( MAX ( - 63 ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT DISTINCT 94 + + COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT 94 + + COUNT ( * ) AS col0
----
95

query II rowsort
SELECT 47, - 96 AS col1
----
47
-96

query I rowsort
SELECT + ( 0 ) - - 75
----
75

query I rowsort
SELECT DISTINCT + 99 + 82 AS col1
----
181

query I rowsort
SELECT DISTINCT - 81 + + 11 * 57
----
546

query II rowsort
SELECT - 91, 83 col1
----
-91
83

query II rowsort
SELECT + + 57 AS col0, 10 AS col1
----
57
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4357
SELECT + ( + CAST( - 6 AS SIGNED ) ) * + COUNT( * ), CASE 15 WHEN - 44 * - 14 * + ( 5 ) + + 38 + + + MIN( ALL + + 3 ) THEN - 46 WHEN - - 22 THEN NULL END AS col1
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-4357
SELECT + ( + CAST ( - 6 AS INTEGER ) ) * + COUNT ( * ), CASE 15 WHEN - 44 * - 14 * + ( 5 ) + + 38 + + + MIN ( ALL + + 3 ) THEN - 46 WHEN - - 22 THEN NULL END AS col1
----
-6
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4358
SELECT ALL + + 53 DIV + 95 + + ( + + 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL + + 53 / + 95 + + ( + + 74 ) AS col0
----
74

query I rowsort
SELECT ALL + + ( - CASE + 45 WHEN ( - 7 ) + + 71 * + 90 THEN NULL ELSE 24 END ) AS col0
----
-24

query II rowsort
SELECT + 14 AS col1, + 85 AS col2
----
14
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4361
SELECT DISTINCT 40 * + ( - COUNT( * ) ) * 24 - - + COUNT( * ) + 77, - 89 AS col0
----
-882
-89

skipif mysql # not compatible
query II rowsort label-4361
SELECT DISTINCT 40 * + ( - COUNT ( * ) ) * 24 - - + COUNT ( * ) + 77, - 89 AS col0
----
-882
-89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4362
SELECT ALL COUNT( * ) - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL COUNT ( * ) - + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + CASE WHEN NOT - ( - + 28 ) IS NOT NULL THEN + 39 END
----
NULL

query I rowsort
SELECT - 28 + - + ( - + 82 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT + - MAX( ALL - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-4365
SELECT + - MAX ( ALL - 21 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4366
SELECT CAST( NULL AS SIGNED ), 51 * - + 39 col2
----
NULL
-1989

skipif mysql # not compatible
query II rowsort label-4366
SELECT CAST ( NULL AS INTEGER ), 51 * - + 39 col2
----
NULL
-1989

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4367
SELECT 52 * 63 / 83 * - - CAST( NULL AS SIGNED ) + + - 4 * + + 71 / + COALESCE ( + COALESCE ( - + 13, - COALESCE ( + - CASE 26 WHEN + 22 THEN NULL WHEN + + ( 47 ) THEN + - ( 99 ) ELSE + COUNT( * ) END, ( - 52 ) + - + 11 ) ), + + 62, + ( + COALESCE ( - NULLIF ( + ( 60 ), - - COUNT( * ) * COUNT( * ) * + - 99 ), - 74 - - - 9, AVG ( ALL - - 43 ) * + 61 * - + COUNT( * ) ) ) * + + CAST( 30 AS SIGNED ) + - 54 ) + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT 52 * 63 / 83 * - - CAST ( NULL AS INTEGER ) + + - 4 * + + 71 / + COALESCE ( + COALESCE ( - + 13, - COALESCE ( + - CASE 26 WHEN + 22 THEN NULL WHEN + + ( 47 ) THEN + - ( 99 ) ELSE + COUNT ( * ) END, ( - 52 ) + - + 11 ) ), + + 62, + ( + COALESCE ( - NULLIF ( + ( 60 ), - - COUNT ( * ) * COUNT ( * ) * + - 99 ), - 74 - - - 9, AVG ( ALL - - 43 ) * + 61 * - + COUNT ( * ) ) ) * + + CAST ( 30 AS INTEGER ) + - 54 ) + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT - COUNT( * ) * - + 40 + - - 92
----
132

skipif mysql # not compatible
query I rowsort label-4368
SELECT - COUNT ( * ) * - + 40 + - - 92
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4369
SELECT COALESCE ( MIN( + 72 ), + + 90 / 7 + - + 37 ) + + - 29 + + CAST( NULL AS SIGNED ) AS col2, - 57 AS col1
----
NULL
-57

skipif mysql # not compatible
query II rowsort label-4369
SELECT COALESCE ( MIN ( + 72 ), + + 90 / 7 + - + 37 ) + + - 29 + + CAST ( NULL AS INTEGER ) AS col2, - 57 AS col1
----
NULL
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-4370
SELECT ALL - SUM( + 88 ) AS col2, + 38 AS col1
----
-88
38

skipif mysql # not compatible
query II rowsort label-4370
SELECT ALL - SUM ( + 88 ) AS col2, + 38 AS col1
----
-88
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4371
SELECT ALL + 93 * + 65 AS col1, - COUNT( * ) AS col0
----
6045
-1

skipif mysql # not compatible
query II rowsort label-4371
SELECT ALL + 93 * + 65 AS col1, - COUNT ( * ) AS col0
----
6045
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT 40 + - + COUNT( DISTINCT + 4 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4372
SELECT 40 + - + COUNT ( DISTINCT + 4 ) AS col1
----
39

query I rowsort
SELECT 46 * 4 AS col2
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT 93 * + 61 * COUNT( * ) + + 69
----
5742

skipif mysql # not compatible
query I rowsort label-4374
SELECT 93 * + 61 * COUNT ( * ) + + 69
----
5742

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT 20 + MIN( - - 82 ) AS col1
----
102

skipif mysql # not compatible
query I rowsort label-4375
SELECT 20 + MIN ( - - 82 ) AS col1
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-4376
SELECT 59 * - + ( 53 ), - 18 * - COUNT( * ) col1
----
-3127
18

skipif mysql # not compatible
query II rowsort label-4376
SELECT 59 * - + ( 53 ), - 18 * - COUNT ( * ) col1
----
-3127
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4377
SELECT CAST( NULL AS DECIMAL ) + + + 97 + + 35 * - 84 * + + 84 + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4377
SELECT CAST ( NULL AS REAL ) + + + 97 + + 35 * - 84 * + + 84 + + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT 65 - ( - - COUNT( - 21 ) ) col0
----
64

skipif mysql # not compatible
query I rowsort label-4378
SELECT 65 - ( - - COUNT ( - 21 ) ) col0
----
64

query I rowsort
SELECT 36 * + 44 AS col1
----
1584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4380
SELECT 39 + 79 - + ( - 76 ) - - - 69 * 85 * 27 * + 97 * - - 98 DIV - COUNT( * )
----
1505322824

skipif mysql # not compatible
query I rowsort label-4380
SELECT 39 + 79 - + ( - 76 ) - - - 69 * 85 * 27 * + 97 * - - 98 / - COUNT ( * )
----
1505322824

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT 75 - + 65 + - COUNT( * ) * - 46
----
56

skipif mysql # not compatible
query I rowsort label-4381
SELECT 75 - + 65 + - COUNT ( * ) * - 46
----
56

query I rowsort
SELECT 49 * - 79 col0
----
-3871

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT ALL + 57 + - COALESCE ( 60, - - COUNT( * ) )
----
-3

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL + 57 + - COALESCE ( 60, - - COUNT ( * ) )
----
-3

query I rowsort
SELECT ALL - 30 + 68 + + ( + 32 ) * - 44 + - - 88
----
-1282

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT ALL + 31 + + + 77 * + + COUNT( - - 42 ) + - - 85 + - 11 col2
----
182

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL + 31 + + + 77 * + + COUNT ( - - 42 ) + - - 85 + - 11 col2
----
182

query I rowsort
SELECT 84 + - 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL MAX( - + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL MAX ( - + 9 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT COUNT( DISTINCT 22 ) + 66 * + 16 * 69 AS col0
----
72865

skipif mysql # not compatible
query I rowsort label-4388
SELECT COUNT ( DISTINCT 22 ) + 66 * + 16 * 69 AS col0
----
72865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4389
SELECT - CAST( NULL AS DECIMAL ) * - CAST( 26 AS SIGNED ) / - - 5 * + + MAX( - 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4389
SELECT - CAST ( NULL AS REAL ) * - CAST ( 26 AS INTEGER ) / - - 5 * + + MAX ( - 82 )
----
NULL

query I rowsort
SELECT - 70 * + + 55 AS col1
----
-3850

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT + 10 + 30 - 4 * - MAX( ALL + 43 ) * 44 * 49 * + + 23 AS col1
----
8529176

skipif mysql # not compatible
query I rowsort label-4391
SELECT + 10 + 30 - 4 * - MAX ( ALL + 43 ) * 44 * 49 * + + 23 AS col1
----
8529176

query I rowsort
SELECT DISTINCT - 69 - + 14 + 57 - 75 * - - 77 * - 35
----
202099

query II rowsort
SELECT ALL + ( - 14 ), - 44 + + 43 * + - 71 AS col2
----
-14
-3097

query I rowsort
SELECT + 37 * ( - 59 ) * - 87 col0
----
189921

query I rowsort
SELECT ALL - 25 * + 3 AS col1
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4396
SELECT - 64 DIV + - COUNT( * ) + CAST( - 81 AS SIGNED ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4396
SELECT - 64 / + - COUNT ( * ) + CAST ( - 81 AS INTEGER ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT + MIN( + 94 ) * - 74
----
-6956

skipif mysql # not compatible
query I rowsort label-4397
SELECT + MIN ( + 94 ) * - 74
----
-6956

query I rowsort
SELECT - 59 + + 50
----
-9

query I rowsort
SELECT ALL + 34 * + + 36 AS col2
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT - COUNT( * ) * - - ( - 61 ) * CASE + 83 WHEN 82 * + + ( - 57 ) THEN NULL WHEN MAX( + 87 ) THEN - MAX( DISTINCT + 59 ) ELSE NULL END + + COUNT( * ) - 71 + - - 15 / + 13 * 39 * + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT - COUNT ( * ) * - - ( - 61 ) * CASE + 83 WHEN 82 * + + ( - 57 ) THEN NULL WHEN MAX ( + 87 ) THEN - MAX ( DISTINCT + 59 ) ELSE NULL END + + COUNT ( * ) - 71 + - - 15 / + 13 * 39 * + + 1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4401
SELECT - 86 * - 16 * + 27 DIV + + COUNT( * )
----
37152

skipif mysql # not compatible
query I rowsort label-4401
SELECT - 86 * - 16 * + 27 / + + COUNT ( * )
----
37152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4402
SELECT - COALESCE ( CASE + + COUNT( * ) WHEN 48 THEN NULL ELSE + CAST( NULL AS SIGNED ) END, + - 39, - + 45 )
----
39

skipif mysql # not compatible
query I rowsort label-4402
SELECT - COALESCE ( CASE + + COUNT ( * ) WHEN 48 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END, + - 39, - + 45 )
----
39

query II rowsort
SELECT ( 54 ) col1, - 18 AS col0
----
54
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4404
SELECT + 88 DIV - + 63 + + 89 + + + 84 AS col0
----
172

skipif mysql # not compatible
query I rowsort label-4404
SELECT + 88 / - + 63 + + 89 + + + 84 AS col0
----
172

query I rowsort
SELECT + 53 * 16 AS col2
----
848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4406
SELECT - + 36 * - 52 + + 61 + - CASE - + CAST( NULL AS SIGNED ) WHEN 76 THEN 21 WHEN 33 * + 21 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT - + 36 * - 52 + + 61 + - CASE - + CAST ( NULL AS INTEGER ) WHEN 76 THEN 21 WHEN 33 * + 21 THEN NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4407
SELECT + ( + 34 ) col2, - COUNT( * )
----
34
-1

skipif mysql # not compatible
query II rowsort label-4407
SELECT + ( + 34 ) col2, - COUNT ( * )
----
34
-1

query I rowsort
SELECT - NULLIF ( 89, + - 54 + 17 * + 93 ) * 16 + - - 63 + - 18 AS col0
----
-1379

query I rowsort
SELECT ALL 20 * - 53 col2
----
-1060

query I rowsort
SELECT 40 * 20 * + - 42 * + 46 * + 6 * - 88
----
816076800

query I rowsort
SELECT ALL 31 * - 72 * 70 * + 55 * - 97 AS col1
----
833540400

onlyif mysql # DIV for integer division: 
query I rowsort label-4412
SELECT 59 DIV + 21
----
2

skipif mysql # not compatible
query I rowsort label-4412
SELECT 59 / + 21
----
2

query I rowsort
SELECT 30 * - 99 AS col0
----
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ( - + 18 ) * - + ( - - COUNT( * ) ) + + SUM( ALL + 83 ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-4414
SELECT ( - + 18 ) * - + ( - - COUNT ( * ) ) + + SUM ( ALL + 83 ) AS col1
----
101

query I rowsort
SELECT DISTINCT 19 + 67 AS col2
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4416
SELECT ALL 77 + 18 DIV - - 98 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL 77 + 18 / - - 98 AS col2
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-4417
SELECT 49 DIV 70 * + - 38 AS col1, 38
----
0
38

skipif mysql # not compatible
query II rowsort label-4417
SELECT 49 / 70 * + - 38 AS col1, 38
----
0
38

query I rowsort
SELECT ALL - 99 * - 41 * + + 42
----
170478

onlyif mysql # aggregate syntax: 
query II rowsort label-4419
SELECT DISTINCT 92, + COUNT( * ) AS col0
----
92
1

skipif mysql # not compatible
query II rowsort label-4419
SELECT DISTINCT 92, + COUNT ( * ) AS col0
----
92
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL + 54 * - - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL + 54 * - - COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4421
SELECT ALL 50, COUNT( * ) AS col1
----
50
1

skipif mysql # not compatible
query II rowsort label-4421
SELECT ALL 50, COUNT ( * ) AS col1
----
50
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4422
SELECT + 68 * - CAST( NULL AS SIGNED ) * + + 49 + + NULLIF ( + 32, + 15 * - 84 * + - AVG ( DISTINCT 13 ) + 40 ) + + - 60 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT + 68 * - CAST ( NULL AS INTEGER ) * + + 49 + + NULLIF ( + 32, + 15 * - 84 * + - AVG ( DISTINCT 13 ) + 40 ) + + - 60 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4423
SELECT ALL - COUNT( * ) * COALESCE ( - 62, + 50 + 76, + 11, + + MIN( + 91 ) DIV - - MAX( - 59 ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL - COUNT ( * ) * COALESCE ( - 62, + 50 + 76, + 11, + + MIN ( + 91 ) / - - MAX ( - 59 ) ) AS col0
----
62

query I rowsort
SELECT ALL 77 * + 36
----
2772

query II rowsort
SELECT ALL 54 col1, ( + - 68 )
----
54
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4426
SELECT DISTINCT - COALESCE ( ( + COUNT( * ) ), 3 DIV CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * + + 26 + MIN( ALL + 79 ) * - - 11 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT - COALESCE ( ( + COUNT ( * ) ), 3 / CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * + + 26 + MIN ( ALL + 79 ) * - - 11 ) AS col2
----
-1

query II rowsort
SELECT ALL + 61 AS col1, 77
----
61
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4428
SELECT - 34 - - 5 * - - 40, 98 + - + ( - 2 ) / 11 * CASE + 96 WHEN - NULLIF ( + 95, - 89 ) THEN - 21 + - - COUNT( * ) WHEN - 49 THEN - 66 * - - 56 WHEN - + 0 THEN NULL END * + COUNT( 45 ) + + 98 + 52 col2
----
166
NULL

skipif mysql # not compatible
query II rowsort label-4428
SELECT - 34 - - 5 * - - 40, 98 + - + ( - 2 ) / 11 * CASE + 96 WHEN - NULLIF ( + 95, - 89 ) THEN - 21 + - - COUNT ( * ) WHEN - 49 THEN - 66 * - - 56 WHEN - + 0 THEN NULL END * + COUNT ( 45 ) + + 98 + 52 col2
----
166
NULL

query I rowsort
SELECT - NULLIF ( 20, 83 ) - 55 + - 21
----
-96

query I rowsort
SELECT ALL + - 66 - + ( 92 )
----
-158

onlyif mysql # aggregate syntax: 
query II rowsort label-4431
SELECT - 32 col0, - SUM( + 15 ) * + 52 + - - 35 AS col0
----
-32
-745

skipif mysql # not compatible
query II rowsort label-4431
SELECT - 32 col0, - SUM ( + 15 ) * + 52 + - - 35 AS col0
----
-32
-745

onlyif mysql # DIV for integer division: 
query I rowsort label-4432
SELECT ALL - + 53 DIV - 36
----
1

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL - + 53 / - 36
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4433
SELECT + CASE - 44 WHEN + 96 - + 4 + 32 + + CAST( + 3 AS SIGNED ) + - COUNT( * ) / + + CAST( + 81 AS SIGNED ) * - MAX( - 93 ) * COUNT( * ) THEN NULL WHEN 55 THEN - 97 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4433
SELECT + CASE - 44 WHEN + 96 - + 4 + 32 + + CAST ( + 3 AS INTEGER ) + - COUNT ( * ) / + + CAST ( + 81 AS INTEGER ) * - MAX ( - 93 ) * COUNT ( * ) THEN NULL WHEN 55 THEN - 97 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 14 + - 82 * + ( - CASE + 71 WHEN - 45 THEN + 94 END )
----
NULL

query II rowsort
SELECT + + 89 AS col2, - 66 + - 58
----
89
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT + + MAX( 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4436
SELECT + + MAX ( 7 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT + + COALESCE ( - + 78, + + MIN( + 10 ) + - - 5 )
----
-78

skipif mysql # not compatible
query I rowsort label-4437
SELECT + + COALESCE ( - + 78, + + MIN ( + 10 ) + - - 5 )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4438
SELECT ALL - + CASE + 24 WHEN - ( - ( - COUNT( * ) ) ) THEN AVG ( ALL - NULLIF ( - + CAST( + + 63 AS SIGNED ), + COALESCE ( 8, 86 ) ) ) WHEN 92 THEN + - 91 * - - 89 * CAST( NULL AS SIGNED ) * 33 END * + COUNT( 69 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL - + CASE + 24 WHEN - ( - ( - COUNT ( * ) ) ) THEN AVG ( ALL - NULLIF ( - + CAST ( + + 63 AS INTEGER ), + COALESCE ( 8, 86 ) ) ) WHEN 92 THEN + - 91 * - - 89 * CAST ( NULL AS INTEGER ) * 33 END * + COUNT ( 69 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4439
SELECT DISTINCT + 81, + COUNT( * ) AS col0
----
81
1

skipif mysql # not compatible
query II rowsort label-4439
SELECT DISTINCT + 81, + COUNT ( * ) AS col0
----
81
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4440
SELECT + ( - CAST( - + 3 AS SIGNED ) ) col1
----
3

skipif mysql # not compatible
query I rowsort label-4440
SELECT + ( - CAST ( - + 3 AS INTEGER ) ) col1
----
3

query II rowsort
SELECT 36 col2, 92
----
36
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4442
SELECT ALL 38 DIV + 34
----
1

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL 38 / + 34
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4443
SELECT ALL + 29 * + + 11 + + 6 - - 71 + - + 36 * + COALESCE ( + 1, - + 25 * - COUNT( * ) / + - 94 ) + AVG ( + NULLIF ( + 96, + 54 ) ) + ( + 84 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL + 29 * + + 11 + + 6 - - 71 + - + 36 * + COALESCE ( + 1, - + 25 * - COUNT ( * ) / + - 94 ) + AVG ( + NULLIF ( + 96, + 54 ) ) + ( + 84 ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4444
SELECT - CAST( - 42 AS SIGNED ) * - ( CASE - 29 WHEN - + ( COUNT( * ) ) THEN - + COALESCE ( + 69, - 11 - - 51 ) ELSE 1 END ) + 38
----
-4

skipif mysql # not compatible
query I rowsort label-4444
SELECT - CAST ( - 42 AS INTEGER ) * - ( CASE - 29 WHEN - + ( COUNT ( * ) ) THEN - + COALESCE ( + 69, - 11 - - 51 ) ELSE 1 END ) + 38
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4445
SELECT 30 * + COUNT( - - 44 ) * - - CAST( NULL AS SIGNED ) + 12 * + COUNT( * ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT 30 * + COUNT ( - - 44 ) * - - CAST ( NULL AS INTEGER ) + 12 * + COUNT ( * ) + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 72 * + + 22
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ALL NULLIF ( 95, + + CASE - - COUNT( * ) WHEN - 23 * ( + + COUNT( * ) ) THEN - 66 - - 28 * - + 0 END * + 19 ) * + + 33 + 54 / ( + + CASE - + 77 WHEN - - 3 * 81 + - 24 THEN NULL WHEN - - COUNT( * ) * - + 47 THEN NULL WHEN + 4 THEN - 58 ELSE NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL NULLIF ( 95, + + CASE - - COUNT ( * ) WHEN - 23 * ( + + COUNT ( * ) ) THEN - 66 - - 28 * - + 0 END * + 19 ) * + + 33 + 54 / ( + + CASE - + 77 WHEN - - 3 * 81 + - 24 THEN NULL WHEN - - COUNT ( * ) * - + 47 THEN NULL WHEN + 4 THEN - 58 ELSE NULL END ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT - COUNT( * ) + + + 90 * COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-4448
SELECT - COUNT ( * ) + + + 90 * COUNT ( * ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT + 36 + + + 45 + - COUNT( * ) * + 25 * + 49 * - COUNT( * ) * + 14 * 24 AS col0
----
411681

skipif mysql # not compatible
query I rowsort label-4449
SELECT + 36 + + + 45 + - COUNT ( * ) * + 25 * + 49 * - COUNT ( * ) * + 14 * 24 AS col0
----
411681

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4450
SELECT + 41 * - + MIN( + + 39 ) + + - CAST( 85 AS SIGNED ) + - 34
----
-1718

skipif mysql # not compatible
query I rowsort label-4450
SELECT + 41 * - + MIN ( + + 39 ) + + - CAST ( 85 AS INTEGER ) + - 34
----
-1718

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4451
SELECT CAST( 93 AS SIGNED ) * + 40 + + + 64 + 0 AS col1
----
3784

skipif mysql # not compatible
query I rowsort label-4451
SELECT CAST ( 93 AS INTEGER ) * + 40 + + + 64 + 0 AS col1
----
3784

query I rowsort
SELECT + ( + + 12 ) + - 79
----
-67

query I rowsort
SELECT - 58 + - + 12 + 31 + + 52 + 1 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT ALL COUNT( * ) - + 15 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL COUNT ( * ) - + 15 AS col2
----
-14

query I rowsort
SELECT ALL + - 30 * + - 93 * + 24 + + + 81 + - + 89
----
66952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4456
SELECT + CAST( NULL AS SIGNED ) + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT + CAST ( NULL AS INTEGER ) + 39
----
NULL

query I rowsort
SELECT ALL - - 18 * - - 59
----
1062

query I rowsort
SELECT - CASE - 32 WHEN 82 THEN NULL WHEN - 49 * - 26 + - - 1 THEN NULL ELSE 82 END
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4459
SELECT + MAX( - CAST( NULL AS SIGNED ) ) + - 9 - + 30 + + 8 * - 29 + SUM( ALL + - CAST( 30 AS SIGNED ) ) AS col1, - 5 * + CAST( - - 60 AS SIGNED )
----
NULL
-300

skipif mysql # not compatible
query II rowsort label-4459
SELECT + MAX ( - CAST ( NULL AS INTEGER ) ) + - 9 - + 30 + + 8 * - 29 + SUM ( ALL + - CAST ( 30 AS INTEGER ) ) AS col1, - 5 * + CAST ( - - 60 AS INTEGER )
----
NULL
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT - + COALESCE ( ( - - 17 ), - COUNT( * ) + + ( - 58 ) * + 55 * + SUM( DISTINCT - + 13 ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4460
SELECT - + COALESCE ( ( - - 17 ), - COUNT ( * ) + + ( - 58 ) * + 55 * + SUM ( DISTINCT - + 13 ) ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT + COUNT( * ) + - 33 + 60 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4461
SELECT + COUNT ( * ) + - 33 + 60 AS col0
----
28

query I rowsort
SELECT - - 98 + + 35
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT DISTINCT ( + MAX( ALL - 58 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT ( + MAX ( ALL - 58 ) )
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4464
SELECT DISTINCT MAX( ALL + 59 ) + + CAST( - MAX( - + ( ( CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT MAX ( ALL + 59 ) + + CAST ( - MAX ( - + ( ( CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( - 77 ) AS col0
----
-77

query I rowsort
SELECT - + 21 + + 10 + + ( 40 ) * - + 13 AS col0
----
-531

query I rowsort
SELECT + 14 * 44
----
616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4468
SELECT CAST( + - 66 AS SIGNED ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-4468
SELECT CAST ( + - 66 AS INTEGER ) AS col2
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4469
SELECT DISTINCT - 2 DIV + + 55 + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4469
SELECT DISTINCT - 2 / + + 55 + - COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4470
SELECT CAST( NULL AS SIGNED ) col0, 90 + COUNT( * ) * + + NULLIF ( + COUNT( * ), 68 * 99 * - 20 ) + - - 39 DIV + MIN( ALL - 8 ) AS col0
----
NULL
87

skipif mysql # not compatible
query II rowsort label-4470
SELECT CAST ( NULL AS INTEGER ) col0, 90 + COUNT ( * ) * + + NULLIF ( + COUNT ( * ), 68 * 99 * - 20 ) + - - 39 / + MIN ( ALL - 8 ) AS col0
----
NULL
87

query I rowsort
SELECT DISTINCT + 16 * - + 38
----
-608

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT - COUNT( * ) * - + 53
----
53

skipif mysql # not compatible
query I rowsort label-4472
SELECT - COUNT ( * ) * - + 53
----
53

query I rowsort
SELECT ALL + ( 42 ) AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4474
SELECT - COALESCE ( + - 80, - 91 * - 15 - 71 * + COALESCE ( + + 27, - 56 * - 78 * + + 56 * ( 89 ), - - CAST( NULL AS SIGNED ) * - COALESCE ( + 67, + + 70 + - 52, - 56 ), 56 ), + 69 ) DIV + - 30 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4474
SELECT - COALESCE ( + - 80, - 91 * - 15 - 71 * + COALESCE ( + + 27, - 56 * - 78 * + + 56 * ( 89 ), - - CAST ( NULL AS INTEGER ) * - COALESCE ( + 67, + + 70 + - 52, - 56 ), 56 ), + 69 ) / + - 30 AS col2
----
-2

query II rowsort
SELECT ALL 75 * - 43 + - 18 col2, 85
----
-3243
85

query I rowsort
SELECT ALL - 71 * + 68 AS col0
----
-4828

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT - SUM( DISTINCT 60 ) * 23
----
-1380

skipif mysql # not compatible
query I rowsort label-4477
SELECT - SUM ( DISTINCT 60 ) * 23
----
-1380

query I rowsort
SELECT ALL + ( + 65 ) AS col0
----
65

query I rowsort
SELECT NULLIF ( + + 74, + 0 * + 39 - - 57 / + - 98 )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-4480
SELECT ALL + COUNT( * ) AS col2, 79 col2
----
1
79

skipif mysql # not compatible
query II rowsort label-4480
SELECT ALL + COUNT ( * ) AS col2, 79 col2
----
1
79

query II rowsort
SELECT DISTINCT 99, 55 AS col1
----
99
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4482
SELECT DISTINCT COUNT( - 11 ) * CASE + CASE 35 WHEN MIN( 0 ) + + 9 THEN NULL WHEN - COUNT( * ) THEN + NULLIF ( 94, + ( 98 ) - 81 * 35 ) END WHEN - CAST( - COUNT( * ) AS SIGNED ) THEN - 79 * ( 93 ) WHEN + 23 THEN 95 + 52 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT COUNT ( - 11 ) * CASE + CASE 35 WHEN MIN ( 0 ) + + 9 THEN NULL WHEN - COUNT ( * ) THEN + NULLIF ( 94, + ( 98 ) - 81 * 35 ) END WHEN - CAST ( - COUNT ( * ) AS INTEGER ) THEN - 79 * ( 93 ) WHEN + 23 THEN 95 + 52 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT DISTINCT + COUNT( * ) * 77 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT + COUNT ( * ) * 77 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT NULLIF ( + COUNT( + ( 46 ) ), + 69 ) * - 46 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-4484
SELECT NULLIF ( + COUNT ( + ( 46 ) ), + 69 ) * - 46 AS col0
----
-46

query I rowsort
SELECT 89 + + 83 AS col1
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT SUM( 39 ) + + 19
----
58

skipif mysql # not compatible
query I rowsort label-4486
SELECT SUM ( 39 ) + + 19
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT COUNT( * ) * - 14 col1
----
-14

skipif mysql # not compatible
query I rowsort label-4487
SELECT COUNT ( * ) * - 14 col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT ( + ( + 59 ) ) + - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-4488
SELECT ( + ( + 59 ) ) + - COUNT ( * )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4489
SELECT ALL 68 + 31 DIV + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL 68 + 31 / + COUNT ( * )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT ( 77 ) * + COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-4490
SELECT ( 77 ) * + COUNT ( * ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT COUNT( * ) - + 67
----
-66

skipif mysql # not compatible
query I rowsort label-4491
SELECT COUNT ( * ) - + 67
----
-66

query I rowsort
SELECT DISTINCT ( 37 ) + - 77 AS col2
----
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4493
SELECT CAST( NULL AS DECIMAL ) + - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4493
SELECT CAST ( NULL AS REAL ) + - 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT ( ( COUNT( * ) ) ) / - CASE COUNT( * ) * 29 WHEN 47 THEN ( COUNT( * ) ) * - 68 WHEN - 11 THEN 54 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4494
SELECT ( ( COUNT ( * ) ) ) / - CASE COUNT ( * ) * 29 WHEN 47 THEN ( COUNT ( * ) ) * - 68 WHEN - 11 THEN 54 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT COUNT( * ) * - 62
----
-62

skipif mysql # not compatible
query I rowsort label-4495
SELECT COUNT ( * ) * - 62
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT 65 * + COUNT( * ) col2
----
65

skipif mysql # not compatible
query I rowsort label-4496
SELECT 65 * + COUNT ( * ) col2
----
65

query I rowsort
SELECT DISTINCT 2 + ( 20 ) * - 7 AS col1
----
-138

query I rowsort
SELECT ALL + 30 + 48 * 83
----
4014

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ( - 43 ) - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-4499
SELECT ( - 43 ) - COUNT ( * )
----
-44

query I rowsort
SELECT DISTINCT ( 86 ) * ( 52 )
----
4472

query I rowsort
SELECT ( - 14 ) + + 9
----
-5

query I rowsort
SELECT 55 + 24 AS col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4503
SELECT 94 DIV COUNT( 68 * 88 ) - 6
----
88

skipif mysql # not compatible
query I rowsort label-4503
SELECT 94 / COUNT ( 68 * 88 ) - 6
----
88

query I rowsort
SELECT 93 * - 70 AS col0
----
-6510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4505
SELECT ALL + MIN( + 86 ) DIV - 31
----
-2

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL + MIN ( + 86 ) / - 31
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT COUNT( * ) * 51 + - 56
----
-5

skipif mysql # not compatible
query I rowsort label-4506
SELECT COUNT ( * ) * 51 + - 56
----
-5

query I rowsort
SELECT DISTINCT 18 - + 72 AS col1
----
-54

query I rowsort
SELECT 83 + 65 AS col0
----
148

query I rowsort
SELECT ALL + 68 * - 53
----
-3604

query I rowsort
SELECT 90 + - ( 25 ) AS col0
----
65

query I rowsort
SELECT ALL + 95 * + 42
----
3990

query I rowsort
SELECT 99 + + 72
----
171

query I rowsort
SELECT DISTINCT - COALESCE ( 42, 11 * 22 ) * 72
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT DISTINCT + 50 * COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-4514
SELECT DISTINCT + 50 * COUNT ( * )
----
50

query I rowsort
SELECT ALL - - ( 76 ) * 79
----
6004

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT - 10 DIV - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4516
SELECT - 10 / - 78 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT 18 + + CAST( 92 AS SIGNED ) AS col0
----
110

skipif mysql # not compatible
query I rowsort label-4517
SELECT 18 + + CAST ( 92 AS INTEGER ) AS col0
----
110

query I rowsort
SELECT ALL - NULLIF ( - 96, 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT DISTINCT + 68 + + NULLIF ( NULLIF ( - 28, - 97 ) + - MIN( ALL - 81 - 93 ), 23 ) AS col2
----
214

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT + 68 + + NULLIF ( NULLIF ( - 28, - 97 ) + - MIN ( ALL - 81 - 93 ), 23 ) AS col2
----
214

query I rowsort
SELECT DISTINCT 29 + - 77 AS col1
----
-48

query I rowsort
SELECT ALL + 76 + + 87 AS col2
----
163

onlyif mysql # DIV for integer division: 
query I rowsort label-4522
SELECT DISTINCT + 7 + + 25 DIV + 23 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT + 7 + + 25 / + 23 AS col2
----
8

query I rowsort
SELECT NULLIF ( + 62, - 60 ) + + 26 * + 89
----
2376

query I rowsort
SELECT ALL 56 * + 67
----
3752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4525
SELECT ALL + + CAST( NULL AS SIGNED ) + + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL + + CAST ( NULL AS INTEGER ) + + 64 AS col2
----
NULL

query I rowsort
SELECT ALL - 16 + 34 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT 0 * - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4527
SELECT 0 * - COUNT ( * ) col2
----
0

query I rowsort
SELECT + 92 + + ( 93 ) AS col2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT + 62 - COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4529
SELECT + 62 - COUNT ( * ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT DISTINCT COUNT( DISTINCT ( 52 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT COUNT ( DISTINCT ( 52 ) )
----
1

query I rowsort
SELECT 55 + - - 1 * 12 AS col0
----
67

query I rowsort
SELECT DISTINCT - ( + 56 ) - + 85 AS col2
----
-141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4533
SELECT + COUNT( * ) DIV - MAX( DISTINCT + 50 ) * - 61 + + 79 col0
----
79

skipif mysql # not compatible
query I rowsort label-4533
SELECT + COUNT ( * ) / - MAX ( DISTINCT + 50 ) * - 61 + + 79 col0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4534
SELECT 68 DIV - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4534
SELECT 68 / - 95 AS col2
----
0

query I rowsort
SELECT ALL 7 * - - 79
----
553

query I rowsort
SELECT 74 + + ( - 23 )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4537
SELECT ALL 19 DIV - - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL 19 / - - COUNT ( * )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4538
SELECT 45 DIV + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-4538
SELECT 45 / + COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT + COUNT( DISTINCT + ( - 60 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4539
SELECT + COUNT ( DISTINCT + ( - 60 ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT 54 * - ( 24 ) AS col1
----
-1296

onlyif mysql # DIV for integer division: 
query I rowsort label-4541
SELECT 58 DIV - - 34 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4541
SELECT 58 / - - 34 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT 93 * - - COUNT( * ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4542
SELECT 93 * - - COUNT ( * ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT MAX( DISTINCT 90 )
----
90

skipif mysql # not compatible
query I rowsort label-4543
SELECT MAX ( DISTINCT 90 )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4544
SELECT 99 DIV + - 7 + 9
----
-5

skipif mysql # not compatible
query I rowsort label-4544
SELECT 99 / + - 7 + 9
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4545
SELECT 3 * COUNT( * ) DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-4545
SELECT 3 * COUNT ( * ) / + 50
----
0

query I rowsort
SELECT 9 + - - 60 AS col2
----
69

query I rowsort
SELECT + ( 85 ) * 6
----
510

query I rowsort
SELECT DISTINCT 77 * 0
----
0

query I rowsort
SELECT + COALESCE ( + 83, - ( 16 ) )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4550
SELECT + CAST( NULL AS SIGNED ) * 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4550
SELECT + CAST ( NULL AS INTEGER ) * 96 AS col1
----
NULL

query I rowsort
SELECT ALL 12 * 35
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT ALL + ( - - MIN( ALL 43 ) ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL + ( - - MIN ( ALL 43 ) ) AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4553
SELECT 0 * - CAST( NULL AS SIGNED ) - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4553
SELECT 0 * - CAST ( NULL AS INTEGER ) - 14
----
NULL

query I rowsort
SELECT + 29 * - - 43 col1
----
1247

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT + - MAX( - - 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-4555
SELECT + - MAX ( - - 68 ) AS col2
----
-68

query I rowsort
SELECT + NULLIF ( - ( + 82 ), - 24 / 49 ) AS col2
----
-82

query I rowsort
SELECT CASE + - 52 WHEN 30 THEN NULL WHEN AVG ( ALL - 87 ) THEN NULLIF ( ( + 14 ), 11 * 85 ) / 55 END
----
NULL

query I rowsort
SELECT ALL + 86 + + - 83
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4559
SELECT ALL 44 DIV - 8 DIV COUNT( * ) + 53 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL 44 / - 8 / COUNT ( * ) + 53 AS col1
----
48

query I rowsort
SELECT ALL + 5 + - - 78 AS col0
----
83

query I rowsort
SELECT - 87 - 58
----
-145

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4562
SELECT DISTINCT + 78 + + 47 + + NULLIF ( + CAST( NULL AS DECIMAL ), - 82 ) * + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT + 78 + + 47 + + NULLIF ( + CAST ( NULL AS REAL ), - 82 ) * + 69 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 2 + + - 10
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT ALL + + COUNT( * ) + + 69 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL + + COUNT ( * ) + + 69 AS col0
----
70

query I rowsort
SELECT - - 59 * - 87
----
-5133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4566
SELECT - + ( - COUNT( - CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4566
SELECT - + ( - COUNT ( - CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT - + 90 + - COALESCE ( - NULLIF ( + 8, 28 * - MAX( DISTINCT - 63 ) ), + 99 + + 43 ) * ( 25 - - 78 )
----
734

skipif mysql # not compatible
query I rowsort label-4567
SELECT - + 90 + - COALESCE ( - NULLIF ( + 8, 28 * - MAX ( DISTINCT - 63 ) ), + 99 + + 43 ) * ( 25 - - 78 )
----
734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4568
SELECT - + MIN( + CAST( NULL AS SIGNED ) ) * ( - AVG ( 19 ) + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT - + MIN ( + CAST ( NULL AS INTEGER ) ) * ( - AVG ( 19 ) + 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT DISTINCT NULLIF ( - - 89, + 7 * + COALESCE ( COUNT( ALL - 37 ) * - 22, ( 55 ) ) )
----
89

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT NULLIF ( - - 89, + 7 * + COALESCE ( COUNT ( ALL - 37 ) * - 22, ( 55 ) ) )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL - 9 - SUM( - 88 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL - 9 - SUM ( - 88 ) AS col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4571
SELECT ALL 14 - + 21 + - NULLIF ( + MIN( DISTINCT - CAST( 84 AS SIGNED ) ), CAST( 27 AS SIGNED ) + COUNT( * ) ) * - 5
----
-427

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL 14 - + 21 + - NULLIF ( + MIN ( DISTINCT - CAST ( 84 AS INTEGER ) ), CAST ( 27 AS INTEGER ) + COUNT ( * ) ) * - 5
----
-427

query I rowsort
SELECT - 20 * - + 24
----
480

query I rowsort
SELECT DISTINCT NULLIF ( - 43, + + 40 )
----
-43

query I rowsort
SELECT DISTINCT 66 * - 54 * - 86 AS col0
----
306504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4575
SELECT ALL - 12 - - + CAST( - + 65 AS SIGNED ) + - 33 * - COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL - 12 - - + CAST ( - + 65 AS INTEGER ) + - 33 * - COUNT ( * ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT - 84 * - - COUNT( * ) * 36
----
-3024

skipif mysql # not compatible
query I rowsort label-4576
SELECT - 84 * - - COUNT ( * ) * 36
----
-3024

query I rowsort
SELECT + 90 * + 76 col1
----
6840

onlyif mysql # DIV for integer division: 
query II rowsort label-4578
SELECT 64 col2, + 72 * + 25 DIV - 5 + 10 AS col1
----
64
-350

skipif mysql # not compatible
query II rowsort label-4578
SELECT 64 col2, + 72 * + 25 / - 5 + 10 AS col1
----
64
-350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4579
SELECT CAST( CASE + 6 WHEN - 93 THEN NULL ELSE + 84 / - ( - CAST( NULL AS SIGNED ) ) + - ( + AVG ( + CAST( 20 AS SIGNED ) ) ) END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT CAST ( CASE + 6 WHEN - 93 THEN NULL ELSE + 84 / - ( - CAST ( NULL AS INTEGER ) ) + - ( + AVG ( + CAST ( 20 AS INTEGER ) ) ) END AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( - + 81, + - COALESCE ( 11, 25, 61 * 31, 73 * 54 ) )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT - 54 * + NULLIF ( + + 16, 70 - + COUNT( DISTINCT 57 ) ) col2
----
-864

skipif mysql # not compatible
query I rowsort label-4581
SELECT - 54 * + NULLIF ( + + 16, 70 - + COUNT ( DISTINCT 57 ) ) col2
----
-864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4582
SELECT + 60 * COALESCE ( 66, ( + 89 ) - + COUNT( * ) ) DIV 55 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4582
SELECT + 60 * COALESCE ( 66, ( + 89 ) - + COUNT ( * ) ) / 55 AS col0
----
72

query I rowsort
SELECT DISTINCT + ( + - 18 ) col2
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4584
SELECT + CAST( NULL AS SIGNED ) - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4584
SELECT + CAST ( NULL AS INTEGER ) - 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT + COALESCE ( ( ( 40 ) ), - 26 * 55, COUNT( * ) ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4585
SELECT + COALESCE ( ( ( 40 ) ), - 26 * 55, COUNT ( * ) ) AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4586
SELECT DISTINCT 87 / + 19 + CASE + CAST( 92 AS SIGNED ) WHEN - 15 * - 41 - 46 THEN NULL WHEN - 6 / - CAST( 20 AS SIGNED ) THEN 53 * + 45 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT DISTINCT 87 / + 19 + CASE + CAST ( 92 AS INTEGER ) WHEN - 15 * - 41 - 46 THEN NULL WHEN - 6 / - CAST ( 20 AS INTEGER ) THEN 53 * + 45 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4587
SELECT ALL + COUNT( * ), 69 AS col0
----
1
69

skipif mysql # not compatible
query II rowsort label-4587
SELECT ALL + COUNT ( * ), 69 AS col0
----
1
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT ALL + COUNT( ALL 53 )
----
1

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL + COUNT ( ALL 53 )
----
1

query I rowsort
SELECT ALL 62 * + 22 + - 48
----
1316

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4590
SELECT - CAST( NULL AS DECIMAL ) + + - 59 / - + 96 + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-4590
SELECT - CAST ( NULL AS REAL ) + + - 59 / - + 96 + - 44
----
NULL

query II rowsort
SELECT DISTINCT + 51, - 16 col0
----
51
-16

query I rowsort
SELECT + 93 - + 94 * + 7
----
-565

query I rowsort
SELECT + + 90 - - 66
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-4594
SELECT + - 19, + COUNT( ALL - - 28 ) + 86 * 97 AS col1
----
-19
8343

skipif mysql # not compatible
query II rowsort label-4594
SELECT + - 19, + COUNT ( ALL - - 28 ) + 86 * 97 AS col1
----
-19
8343

query I rowsort
SELECT + - 20 + + 76 * - 84
----
-6404

query II rowsort
SELECT + + 66 AS col2, 61 * - 9 AS col1
----
66
-549

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4597
SELECT ALL - - 77 * + - 71 + - 47 + MIN( 1 ) DIV 35
----
-5514

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL - - 77 * + - 71 + - 47 + MIN ( 1 ) / 35
----
-5514

query II rowsort
SELECT 79 col1, - ( + 72 ) AS col2
----
79
-72

query I rowsort
SELECT 80 * 10 + + 60 + - 68 * + 91
----
-5328

query I rowsort
SELECT ALL + + 78 * + 59 * + 88 + - 84 + 37
----
404929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4601
SELECT + - COUNT( - 87 ) * + - 3 DIV + 99 + COALESCE ( + 87 + + 92, + ( ( + 33 ) ) ) * + 39
----
6981

skipif mysql # not compatible
query I rowsort label-4601
SELECT + - COUNT ( - 87 ) * + - 3 / + 99 + COALESCE ( + 87 + + 92, + ( ( + 33 ) ) ) * + 39
----
6981

query I rowsort
SELECT - ( + ( + 95 ) ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT ALL SUM( DISTINCT - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL SUM ( DISTINCT - 70 )
----
-70

query II rowsort
SELECT + 98 AS col2, - 70 * + 15 - 32
----
98
-1082

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT - + SUM( 53 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-4605
SELECT - + SUM ( 53 ) AS col1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4606
SELECT - - 13 + - CAST( NULL AS DECIMAL ) + MAX( 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT - - 13 + - CAST ( NULL AS REAL ) + MAX ( 63 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT + 74 * + 0 + - 92 + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-4607
SELECT + 74 * + 0 + - 92 + COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT DISTINCT - - 74 * SUM( 96 ) col1
----
7104

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT - - 74 * SUM ( 96 ) col1
----
7104

onlyif mysql # DIV for integer division: 
query I rowsort label-4609
SELECT ALL 62 DIV - + 2 + + 82 * 84 AS col0
----
6857

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL 62 / - + 2 + + 82 * 84 AS col0
----
6857

onlyif mysql # DIV for integer division: 
query I rowsort label-4610
SELECT - 1 DIV - - 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4610
SELECT - 1 / - - 78 AS col1
----
0

query I rowsort
SELECT ALL - + 99 * - 92 * + 35 AS col0
----
318780

query I rowsort
SELECT DISTINCT 43 * + - 35 AS col0
----
-1505

query I rowsort
SELECT ALL NULLIF ( + 88, - 51 * 87 ) AS col0
----
88

query I rowsort
SELECT ALL + 80 * + - 58
----
-4640

onlyif mysql # DIV for integer division: 
query I rowsort label-4615
SELECT + 84 DIV 45 * + NULLIF ( + 7, 1 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4615
SELECT + 84 / 45 * + NULLIF ( + 7, 1 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT - 66 * - COUNT( * ) * 15 AS col2
----
990

skipif mysql # not compatible
query I rowsort label-4616
SELECT - 66 * - COUNT ( * ) * 15 AS col2
----
990

onlyif mysql # DIV for integer division: 
query I rowsort label-4617
SELECT 74 DIV - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4617
SELECT 74 / - 89 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4618
SELECT ALL + COUNT( * ) DIV 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL + COUNT ( * ) / 32 AS col0
----
0

query I rowsort
SELECT 83 * 1 * - 34 AS col1
----
-2822

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT DISTINCT + 54 + COUNT( * ) - - 83 * - + COUNT( * ) * 86
----
-7083

skipif mysql # not compatible
query I rowsort label-4620
SELECT DISTINCT + 54 + COUNT ( * ) - - 83 * - + COUNT ( * ) * 86
----
-7083

query I rowsort
SELECT ALL + 9 + + 1
----
10

query I rowsort
SELECT ALL + 36 + - + 67 + - + 72 + + 60 * + 84 * 74
----
372857

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT DISTINCT + COUNT( * ) + + ( 93 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-4623
SELECT DISTINCT + COUNT ( * ) + + ( 93 ) AS col1
----
94

query I rowsort
SELECT DISTINCT - 64 * 81 AS col0
----
-5184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4625
SELECT ALL + COALESCE ( + CASE + COUNT( * ) WHEN - 68 THEN NULL WHEN 99 * - 13 THEN 69 * 8 WHEN + 69 THEN COUNT( * ) END, + 97 ) + - 64 DIV CAST( - 64 AS SIGNED ) col1
----
98

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL + COALESCE ( + CASE + COUNT ( * ) WHEN - 68 THEN NULL WHEN 99 * - 13 THEN 69 * 8 WHEN + 69 THEN COUNT ( * ) END, + 97 ) + - 64 / CAST ( - 64 AS INTEGER ) col1
----
98

query II rowsort
SELECT 99 * - 40 AS col0, 8 AS col0
----
-3960
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4627
SELECT 73 DIV 21 + - 9
----
-6

skipif mysql # not compatible
query I rowsort label-4627
SELECT 73 / 21 + - 9
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4628
SELECT ALL - NULLIF ( - COALESCE ( COUNT( DISTINCT + 97 ), 58 ), - SUM( 73 ) * - CASE WHEN NOT + MIN( 46 ) * 22 + - COUNT( * ) BETWEEN 91 AND COUNT( * ) THEN COALESCE ( + CAST( NULL AS SIGNED ), 96 + 50 ) * 45 ELSE NULL END ) + + 77
----
78

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL - NULLIF ( - COALESCE ( COUNT ( DISTINCT + 97 ), 58 ), - SUM ( 73 ) * - CASE WHEN NOT + MIN ( 46 ) * 22 + - COUNT ( * ) BETWEEN 91 AND COUNT ( * ) THEN COALESCE ( + CAST ( NULL AS INTEGER ), 96 + 50 ) * 45 ELSE NULL END ) + + 77
----
78

query I rowsort
SELECT ALL 73 + - + 64
----
9

query I rowsort
SELECT ALL + 69 * - 83
----
-5727

query I rowsort
SELECT DISTINCT + 36 + - 55 AS col1
----
-19

query I rowsort
SELECT ALL - 78 + + 91
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT SUM( DISTINCT 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4633
SELECT SUM ( DISTINCT 13 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT - - CASE - 92 WHEN + - 85 / + - 98 THEN 38 END * 34 - - NULLIF ( - COUNT( * ), 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT - - CASE - 92 WHEN + - 85 / + - 98 THEN 38 END * 34 - - NULLIF ( - COUNT ( * ), 82 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4635
SELECT 3 * + + CAST( NULL AS SIGNED ) * - + COALESCE ( 25, 63, - 93, + AVG ( ALL 21 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4635
SELECT 3 * + + CAST ( NULL AS INTEGER ) * - + COALESCE ( 25, 63, - 93, + AVG ( ALL 21 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4636
SELECT DISTINCT 62 DIV - - 68 + - - 91 - 31 * 43
----
-1242

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT 62 / - - 68 + - - 91 - 31 * 43
----
-1242

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT ALL - SUM( - 74 )
----
74

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL - SUM ( - 74 )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4638
SELECT 23 * + - ( + 6 ) * + CAST( NULL AS SIGNED ) - + ( + 66 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT 23 * + - ( + 6 ) * + CAST ( NULL AS INTEGER ) - + ( + 66 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4639
SELECT ALL 80 * + COALESCE ( CAST( NULL AS SIGNED ), + - 32 - 48 )
----
-6400

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL 80 * + COALESCE ( CAST ( NULL AS INTEGER ), + - 32 - 48 )
----
-6400

query I rowsort
SELECT ALL 89 * - ( - 64 ) + + - 88
----
5608

query I rowsort
SELECT 83 * - 41 AS col1
----
-3403

onlyif mysql # DIV for integer division: 
query I rowsort label-4642
SELECT DISTINCT + 26 DIV - 95 * - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT + 26 / - 95 * - 75 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT ALL COALESCE ( 37, - 11 ) - - COUNT( * ) + COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL COALESCE ( 37, - 11 ) - - COUNT ( * ) + COUNT ( * ) AS col0
----
39

query I rowsort
SELECT ALL - ( + - 23 )
----
23

query I rowsort
SELECT DISTINCT 51 * 99
----
5049

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT ALL + MAX( - COALESCE ( 10, - 86 ) ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL + MAX ( - COALESCE ( 10, - 86 ) ) AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4647
SELECT + MAX( ALL + CASE - + 10 WHEN ( 33 ) THEN CAST( NULL AS SIGNED ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT + MAX ( ALL + CASE - + 10 WHEN ( 33 ) THEN CAST ( NULL AS INTEGER ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT 52 * CASE - 28 WHEN - MIN( 36 ) THEN + NULLIF ( 12, 25 / COUNT( * ) ) WHEN + 49 THEN 14 WHEN 99 / + 28 THEN NULL ELSE NULL END + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT 52 * CASE - 28 WHEN - MIN ( 36 ) THEN + NULLIF ( 12, 25 / COUNT ( * ) ) WHEN + 49 THEN 14 WHEN 99 / + 28 THEN NULL ELSE NULL END + 81
----
NULL

query I rowsort
SELECT + ( + - 63 ) AS col1
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4650
SELECT SUM( + ( 2 ) ) * + COALESCE ( - - 52, COALESCE ( - 72, + 47 ) - - 21, 76 - - 37 DIV 19 ) AS col0
----
104

skipif mysql # not compatible
query I rowsort label-4650
SELECT SUM ( + ( 2 ) ) * + COALESCE ( - - 52, COALESCE ( - 72, + 47 ) - - 21, 76 - - 37 / 19 ) AS col0
----
104

query I rowsort
SELECT 0 + - 80 + + 87
----
7

query I rowsort
SELECT ALL 60 + - 68 AS col1
----
-8

query I rowsort
SELECT ALL + 49 * 12 AS col1
----
588

query I rowsort
SELECT DISTINCT 95 + + 72
----
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4655
SELECT ALL - 77 + + + CAST( CASE - COUNT( DISTINCT - 5 ) WHEN + COUNT( * ) THEN + 35 WHEN COUNT( * ) THEN NULL WHEN MIN( + 73 ) THEN NULL END AS SIGNED ) - - NULLIF ( 21, 3 ) * COUNT( 23 + + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL - 77 + + + CAST ( CASE - COUNT ( DISTINCT - 5 ) WHEN + COUNT ( * ) THEN + 35 WHEN COUNT ( * ) THEN NULL WHEN MIN ( + 73 ) THEN NULL END AS INTEGER ) - - NULLIF ( 21, 3 ) * COUNT ( 23 + + 76 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT DISTINCT + COALESCE ( + 19, 68, COUNT( * ) ) + + 86 AS col1
----
105

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT + COALESCE ( + 19, 68, COUNT ( * ) ) + + 86 AS col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL MIN( ALL 89 ) * - 13 * + 89 + 2
----
-102971

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL MIN ( ALL 89 ) * - 13 * + 89 + 2
----
-102971

onlyif mysql # DIV for integer division: 
query I rowsort label-4658
SELECT 9 DIV 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4658
SELECT 9 / 82 AS col0
----
0

query I rowsort
SELECT ( - 22 ) - COALESCE ( + + 1, 51 )
----
-23

query I rowsort
SELECT DISTINCT + 32 * - + 74 * + 27 AS col2
----
-63936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4661
SELECT COUNT( + + 12 ) + CASE - + 42 WHEN CAST( NULL AS SIGNED ) THEN + 57 END * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT COUNT ( + + 12 ) + CASE - + 42 WHEN CAST ( NULL AS INTEGER ) THEN + 57 END * + 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4662
SELECT CAST( + - ( 91 ) AS SIGNED ) * - SUM( DISTINCT 61 ) AS col1
----
5551

skipif mysql # not compatible
query I rowsort label-4662
SELECT CAST ( + - ( 91 ) AS INTEGER ) * - SUM ( DISTINCT 61 ) AS col1
----
5551

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4663
SELECT COUNT( * ) DIV - + 34 * ( - COALESCE ( + - COUNT( DISTINCT - 21 ), - COUNT( * ) ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4663
SELECT COUNT ( * ) / - + 34 * ( - COALESCE ( + - COUNT ( DISTINCT - 21 ), - COUNT ( * ) ) ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL - MAX( ALL + 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL - MAX ( ALL + 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT DISTINCT - 40 + - + 72 + - 50 * - - COUNT( * ) + + - 62 * 48
----
-3138

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT - 40 + - + 72 + - 50 * - - COUNT ( * ) + + - 62 * 48
----
-3138

query II rowsort
SELECT ALL - 92, - 19 col0
----
-92
-19

query I rowsort
SELECT ALL + + 25 * + 44 + + 17 + 72 * - - 27
----
3061

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4668
SELECT - + 60 * ( + 43 ) / + 67 - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4668
SELECT - + 60 * ( + 43 ) / + 67 - + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL + - 8 - - 47 + - + ( + 41 ) col2
----
-2

query I rowsort
SELECT 28 + 4 AS col1
----
32

query I rowsort
SELECT 77 * - 12 + + 50 AS col0
----
-874

onlyif mysql # aggregate syntax: 
query II rowsort label-4672
SELECT + COUNT( * ) - - 38 + - COUNT( * ) AS col0, + 20 + + 29 * + MAX( 78 ) AS col2
----
38
2282

skipif mysql # not compatible
query II rowsort label-4672
SELECT + COUNT ( * ) - - 38 + - COUNT ( * ) AS col0, + 20 + + 29 * + MAX ( 78 ) AS col2
----
38
2282

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT ALL - - NULLIF ( - COUNT( DISTINCT 69 ), COUNT( * ) + 33 ) - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL - - NULLIF ( - COUNT ( DISTINCT 69 ), COUNT ( * ) + 33 ) - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT + - ( + ( - SUM( - + 85 ) ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-4674
SELECT + - ( + ( - SUM ( - + 85 ) ) ) AS col1
----
-85

query I rowsort
SELECT ALL + 97 * 70
----
6790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4676
SELECT DISTINCT - - CASE + 82 WHEN + + 96 * - 11 THEN + ( - 73 ) WHEN 67 THEN CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) * - 45 WHEN - CASE ( 15 ) WHEN ( - 45 ) * - 33 + 7 THEN + 89 WHEN - 23 THEN CASE 45 WHEN + 85 THEN NULL ELSE 46 - COUNT( * ) END + 89 * - MAX( ALL 53 ) END THEN ( + 83 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT - - CASE + 82 WHEN + + 96 * - 11 THEN + ( - 73 ) WHEN 67 THEN CAST ( CAST ( NULL AS INTEGER ) AS REAL ) * - 45 WHEN - CASE ( 15 ) WHEN ( - 45 ) * - 33 + 7 THEN + 89 WHEN - 23 THEN CASE 45 WHEN + 85 THEN NULL ELSE 46 - COUNT ( * ) END + 89 * - MAX ( ALL 53 ) END THEN ( + 83 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT COUNT( 92 ) + + COALESCE ( 22, + 15 + 32 ) + + 97 * 57 AS col2
----
5552

skipif mysql # not compatible
query I rowsort label-4677
SELECT COUNT ( 92 ) + + COALESCE ( 22, + 15 + 32 ) + + 97 * 57 AS col2
----
5552

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT DISTINCT - - CASE + COALESCE ( - 78, + 71 ) WHEN - - 18 THEN NULL WHEN - 3 + 73 / 60 THEN + SUM( ALL 47 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4678
SELECT DISTINCT - - CASE + COALESCE ( - 78, + 71 ) WHEN - - 18 THEN NULL WHEN - 3 + 73 / 60 THEN + SUM ( ALL 47 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4679
SELECT ( - CAST( + 29 AS SIGNED ) )
----
-29

skipif mysql # not compatible
query I rowsort label-4679
SELECT ( - CAST ( + 29 AS INTEGER ) )
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4680
SELECT 72 col2, CASE COUNT( * ) WHEN + - 57 THEN 3 WHEN 88 + - 76 THEN NULL END + + 74
----
72
NULL

skipif mysql # not compatible
query II rowsort label-4680
SELECT 72 col2, CASE COUNT ( * ) WHEN + - 57 THEN 3 WHEN 88 + - 76 THEN NULL END + + 74
----
72
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4681
SELECT - 78 DIV - 51
----
1

skipif mysql # not compatible
query I rowsort label-4681
SELECT - 78 / - 51
----
1

query I rowsort
SELECT DISTINCT 90 + - - 65 * 66
----
4380

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT + MIN( ALL - 95 ) * CASE 33 WHEN + - 12 * - 0 + + 90 THEN NULL ELSE - 80 END
----
7600

skipif mysql # not compatible
query I rowsort label-4683
SELECT + MIN ( ALL - 95 ) * CASE 33 WHEN + - 12 * - 0 + + 90 THEN NULL ELSE - 80 END
----
7600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4684
SELECT ALL + 8 + - - 57 * + + CAST( NULL AS SIGNED ) / - + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL + 8 + - - 57 * + + CAST ( NULL AS INTEGER ) / - + 11 AS col0
----
NULL

query I rowsort
SELECT ALL - 54 + 92 * + 42 AS col2
----
3810

onlyif mysql # aggregate syntax: 
query II rowsort label-4686
SELECT - COUNT( * ) AS col2, - 93
----
-1
-93

skipif mysql # not compatible
query II rowsort label-4686
SELECT - COUNT ( * ) AS col2, - 93
----
-1
-93

query I rowsort
SELECT ALL 42 + 32
----
74

query I rowsort
SELECT DISTINCT - 36 + + 76
----
40

query I rowsort
SELECT ALL 13 * - + 87 AS col2
----
-1131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4690
SELECT + ( - ( - 21 ) ) + + 83 * - + CAST( NULL AS SIGNED ) + + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT + ( - ( - 21 ) ) + + 83 * - + CAST ( NULL AS INTEGER ) + + 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4691
SELECT DISTINCT COUNT( * ) * + - COALESCE ( 25, + - 37 * - 81 + + 95 * - 2, + COUNT( * ) ) DIV + 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT COUNT ( * ) * + - COALESCE ( 25, + - 37 * - 81 + + 95 * - 2, + COUNT ( * ) ) / + 34 AS col0
----
0

query I rowsort
SELECT ALL 6 + 25 + + + 70
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT + ( + + 32 ) + + 34 * COUNT( ALL 26 )
----
66

skipif mysql # not compatible
query I rowsort label-4693
SELECT + ( + + 32 ) + + 34 * COUNT ( ALL 26 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT + 47 - 52 + + + MIN( ALL + 38 )
----
33

skipif mysql # not compatible
query I rowsort label-4694
SELECT + 47 - 52 + + + MIN ( ALL + 38 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT + MIN( ALL - 12 ) + 52 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4695
SELECT + MIN ( ALL - 12 ) + 52 AS col2
----
40

query I rowsort
SELECT - 71 + - - 32 + - - 74 AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4697
SELECT - CASE 62 WHEN - 53 * - + CAST( NULL AS SIGNED ) + + 23 THEN + CAST( NULL AS SIGNED ) DIV 76 ELSE ( MIN( + 55 ) ) END AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4697
SELECT - CASE 62 WHEN - 53 * - + CAST ( NULL AS INTEGER ) + + 23 THEN + CAST ( NULL AS INTEGER ) / 76 ELSE ( MIN ( + 55 ) ) END AS col2
----
-55

query I rowsort
SELECT - NULLIF ( 84, - 82 ) col0
----
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-4699
SELECT + 35 + - - 67 AS col1, 50 DIV - 59
----
102
0

skipif mysql # not compatible
query II rowsort label-4699
SELECT + 35 + - - 67 AS col1, 50 / - 59
----
102
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT 40 - + NULLIF ( COUNT( * ), 37 )
----
39

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT 40 - + NULLIF ( COUNT ( * ), 37 )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4701
SELECT ALL ( + 6 ) DIV - - 75 + + 94
----
94

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL ( + 6 ) / - - 75 + + 94
----
94

query I rowsort
SELECT + 38 + 4
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4703
SELECT + - 66 col1, + NULLIF ( 63, + + 22 + + + 94 + + 73 ) + COUNT( * )
----
-66
64

skipif mysql # not compatible
query II rowsort label-4703
SELECT + - 66 col1, + NULLIF ( 63, + + 22 + + + 94 + + 73 ) + COUNT ( * )
----
-66
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4704
SELECT - NULLIF ( + CASE - 32 WHEN + ( - ( + 60 ) ) - - CAST( NULL AS SIGNED ) THEN NULL WHEN - NULLIF ( MIN( ALL 13 ), 8 ) THEN 61 WHEN - 19 THEN COALESCE ( 44, - 23 + - 63 ) + 74 DIV - 22 WHEN - 64 THEN - 60 ELSE 95 END, + 66 )
----
-95

skipif mysql # not compatible
query I rowsort label-4704
SELECT - NULLIF ( + CASE - 32 WHEN + ( - ( + 60 ) ) - - CAST ( NULL AS INTEGER ) THEN NULL WHEN - NULLIF ( MIN ( ALL 13 ), 8 ) THEN 61 WHEN - 19 THEN COALESCE ( 44, - 23 + - 63 ) + 74 / - 22 WHEN - 64 THEN - 60 ELSE 95 END, + 66 )
----
-95

query I rowsort
SELECT ALL + - COALESCE ( + 46, - 27 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT MIN( - 69 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-4706
SELECT MIN ( - 69 ) AS col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4707
SELECT + 89 DIV 33 + COUNT( * ) + ( + 20 ) + + 65 * - 91 * - 50
----
295773

skipif mysql # not compatible
query I rowsort label-4707
SELECT + 89 / 33 + COUNT ( * ) + ( + 20 ) + + 65 * - 91 * - 50
----
295773

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT COUNT( ALL + 73 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT COUNT ( ALL + 73 ) * + COUNT ( * )
----
1

query I rowsort
SELECT ALL + + NULLIF ( COALESCE ( 29, 16 - + 69 * + 27, 94 ), 94 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4710
SELECT DISTINCT + CASE - 3 WHEN ( 32 ) THEN - CAST( 68 AS SIGNED ) * - COUNT( * ) WHEN - COUNT( * ) + + 44 THEN NULL WHEN - 40 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT + CASE - 3 WHEN ( 32 ) THEN - CAST ( 68 AS INTEGER ) * - COUNT ( * ) WHEN - COUNT ( * ) + + 44 THEN NULL WHEN - 40 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT - - MAX( ALL + 78 ) * + 91
----
7098

skipif mysql # not compatible
query I rowsort label-4711
SELECT - - MAX ( ALL + 78 ) * + 91
----
7098

query II rowsort
SELECT ALL + 45, - 40 AS col0
----
45
-40

query I rowsort
SELECT + COALESCE ( + 67, - - 41 ) AS col2
----
67

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4714
SELECT ALL + - 51 AS col2, - CAST( NULL AS DECIMAL ) AS col0
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-4714
SELECT ALL + - 51 AS col2, - CAST ( NULL AS REAL ) AS col0
----
-51
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT + + COUNT( 55 )
----
1

skipif mysql # not compatible
query I rowsort label-4715
SELECT + + COUNT ( 55 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4716
SELECT 5 * 89 + 92 + - 86 DIV + - 40 - + ( - 90 ) AS col2
----
629

skipif mysql # not compatible
query I rowsort label-4716
SELECT 5 * 89 + 92 + - 86 / + - 40 - + ( - 90 ) AS col2
----
629

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT - + COUNT( * ) * + 59 + 13 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-4717
SELECT - + COUNT ( * ) * + 59 + 13 AS col1
----
-46

query I rowsort
SELECT DISTINCT + NULLIF ( + 50, - 50 / 38 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT DISTINCT 28 * - 75 + - 40 + - 14 + - 90 * - 23 * MAX( ALL 2 ) AS col1
----
1986

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT 28 * - 75 + - 40 + - 14 + - 90 * - 23 * MAX ( ALL 2 ) AS col1
----
1986

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4720
SELECT 86 * - MIN( + ( + 24 ) ) * 85 + - MIN( CAST( NULL AS DECIMAL ) ) + 58 - - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4720
SELECT 86 * - MIN ( + ( + 24 ) ) * 85 + - MIN ( CAST ( NULL AS REAL ) ) + 58 - - 1
----
NULL

query I rowsort
SELECT ALL NULLIF ( + + 24, 12 - - - 11 ) AS col1
----
24

query I rowsort
SELECT - 84 - 45 + + 44
----
-85

query I rowsort
SELECT DISTINCT ( - - CASE - - 19 WHEN - + 60 * - 25 * - - 8 THEN - 51 WHEN 50 THEN 94 + - ( + 12 ) ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL + 77 + - 62 * - - 37 AS col1
----
-2217

query I rowsort
SELECT - 71 * + 83 AS col0
----
-5893

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4726
SELECT - 89 DIV + ( - + 3 ) * COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-4726
SELECT - 89 / + ( - + 3 ) * COUNT ( * )
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4727
SELECT - ( - - 90 ) + + - SUM( - + 2 ) + 93 + COALESCE ( + 32, - ( - 7 ) ) DIV 13
----
7

skipif mysql # not compatible
query I rowsort label-4727
SELECT - ( - - 90 ) + + - SUM ( - + 2 ) + 93 + COALESCE ( + 32, - ( - 7 ) ) / 13
----
7

query I rowsort
SELECT - CASE - 8 WHEN - + ( - - 7 ) THEN 65 WHEN - 0 THEN 89 * 93 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT - COUNT( ALL ( + + 91 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4729
SELECT - COUNT ( ALL ( + + 91 ) )
----
-1

query I rowsort
SELECT ALL 35 * + 25
----
875

onlyif mysql # aggregate syntax: 
query II rowsort label-4731
SELECT - 41 * - 93, COUNT( * ) AS col2
----
3813
1

skipif mysql # not compatible
query II rowsort label-4731
SELECT - 41 * - 93, COUNT ( * ) AS col2
----
3813
1

query I rowsort
SELECT ALL 53 * - 28 col2
----
-1484

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT DISTINCT - COUNT( * ) * + COUNT( - 23 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT - COUNT ( * ) * + COUNT ( - 23 ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4734
SELECT ALL CAST( NULL AS SIGNED ) * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL CAST ( NULL AS INTEGER ) * 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT DISTINCT SUM( - ( 77 ) ) - + 2
----
-79

skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT SUM ( - ( 77 ) ) - + 2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT - NULLIF ( 22, - COUNT( * ) ) col1
----
-22

skipif mysql # not compatible
query I rowsort label-4736
SELECT - NULLIF ( 22, - COUNT ( * ) ) col1
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-4737
SELECT DISTINCT + COUNT( * ) * + 34, 7 AS col2
----
34
7

skipif mysql # not compatible
query II rowsort label-4737
SELECT DISTINCT + COUNT ( * ) * + 34, 7 AS col2
----
34
7

query I rowsort
SELECT DISTINCT 23 - 60 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT - 81 * - - MIN( + - ( 19 ) ) AS col1
----
1539

skipif mysql # not compatible
query I rowsort label-4739
SELECT - 81 * - - MIN ( + - ( 19 ) ) AS col1
----
1539

query I rowsort
SELECT ALL - 91 * - 0 + - 54
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT - + CASE ( 78 ) WHEN 89 + - 58 * + 4 - - 33 THEN 42 + + 86 WHEN + 33 + + COUNT( * ) THEN NULL ELSE + 57 * - 12 END - - 53
----
737

skipif mysql # not compatible
query I rowsort label-4741
SELECT - + CASE ( 78 ) WHEN 89 + - 58 * + 4 - - 33 THEN 42 + + 86 WHEN + 33 + + COUNT ( * ) THEN NULL ELSE + 57 * - 12 END - - 53
----
737

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT - - COUNT( ( ( - - 26 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4742
SELECT - - COUNT ( ( ( - - 26 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4743
SELECT + - 10 + - 63 AS col2, COALESCE ( - 26, - 95, + COUNT( * ), + 33 * + 28 ) AS col2
----
-73
-26

skipif mysql # not compatible
query II rowsort label-4743
SELECT + - 10 + - 63 AS col2, COALESCE ( - 26, - 95, + COUNT ( * ), + 33 * + 28 ) AS col2
----
-73
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4744
SELECT - + ( - CAST( - + 69 AS SIGNED ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-4744
SELECT - + ( - CAST ( - + 69 AS INTEGER ) ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT + 25 - CASE + 94 WHEN - + 98 THEN NULL WHEN - + 80 * - + 56 - - COALESCE ( + 23, 24 ) THEN - CASE COUNT( DISTINCT + 61 ) WHEN - 68 THEN NULL WHEN + ( MIN( + 52 ) ) THEN - COUNT( * ) END ELSE - ( - 75 ) END AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-4745
SELECT + 25 - CASE + 94 WHEN - + 98 THEN NULL WHEN - + 80 * - + 56 - - COALESCE ( + 23, 24 ) THEN - CASE COUNT ( DISTINCT + 61 ) WHEN - 68 THEN NULL WHEN + ( MIN ( + 52 ) ) THEN - COUNT ( * ) END ELSE - ( - 75 ) END AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT + COUNT( * ) * + + MIN( - 47 ) * 10 AS col0
----
-470

skipif mysql # not compatible
query I rowsort label-4746
SELECT + COUNT ( * ) * + + MIN ( - 47 ) * 10 AS col0
----
-470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4747
SELECT + CAST( NULL AS SIGNED ) - + + 73 + - 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT + CAST ( NULL AS INTEGER ) - + + 73 + - 22 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4748
SELECT ALL - 64 DIV - COUNT( - 88 ) col2
----
64

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL - 64 / - COUNT ( - 88 ) col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4749
SELECT DISTINCT - 0 DIV - 68 + + 38 + + COUNT( * ) + MAX( + 86 ) * 64 - 57
----
5486

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT - 0 / - 68 + + 38 + + COUNT ( * ) + MAX ( + 86 ) * 64 - 57
----
5486

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4750
SELECT + 96 DIV - CAST( + 67 AS SIGNED ) + - + 21 - - 12 col1
----
-10

skipif mysql # not compatible
query I rowsort label-4750
SELECT + 96 / - CAST ( + 67 AS INTEGER ) + - + 21 - - 12 col1
----
-10

query I rowsort
SELECT + + COALESCE ( + 25, - 78 + - 92 ) * - - 90 * + COALESCE ( - + 30, + 25 * 17 ) + + 17
----
-67483

onlyif mysql # aggregate syntax: 
query II rowsort label-4752
SELECT + - 9 + COUNT( * ) AS col2, 50
----
-8
50

skipif mysql # not compatible
query II rowsort label-4752
SELECT + - 9 + COUNT ( * ) AS col2, 50
----
-8
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4753
SELECT ALL - - CAST( - - CASE - - 37 WHEN 47 * - - 88 + + 96 + - SUM( ALL 66 ) * - 26 / + COUNT( * ) THEN NULL ELSE + MAX( 93 ) END AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL - - CAST ( - - CASE - - 37 WHEN 47 * - - 88 + + 96 + - SUM ( ALL 66 ) * - 26 / + COUNT ( * ) THEN NULL ELSE + MAX ( 93 ) END AS INTEGER )
----
93

query I rowsort
SELECT ALL - 65 + - 47 * + + 53 * - 20 * 11 - 52
----
547903

query I rowsort
SELECT 54 * - - 92 - 15 col0
----
4953

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4756
SELECT ALL COUNT( * ) + + COUNT( * ) DIV + - 38 col1
----
1

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL COUNT ( * ) + + COUNT ( * ) / + - 38 col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT ALL - 90 + ( + 75 ) - + + CAST( NULL AS SIGNED ) - - - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL - 90 + ( + 75 ) - + + CAST ( NULL AS INTEGER ) - - - 10 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT 93 + - COUNT( * ) + - 26 + + 51 col2
----
117

skipif mysql # not compatible
query I rowsort label-4758
SELECT 93 + - COUNT ( * ) + - 26 + + 51 col2
----
117

query I rowsort
SELECT DISTINCT 31 + + + 10 + - 22 * 4 + - 14 * 24
----
-383

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL + SUM( ALL - + 61 ) + 62 * 89 * - SUM( + 2 ) + + 69
----
-11028

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL + SUM ( ALL - + 61 ) + 62 * 89 * - SUM ( + 2 ) + + 69
----
-11028

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4761
SELECT ( - + CAST( ( + + 38 ) AS SIGNED ) ) + + 51 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-4761
SELECT ( - + CAST ( ( + + 38 ) AS INTEGER ) ) + + 51 AS col1
----
13

query I rowsort
SELECT 93 * 63 AS col1
----
5859

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT ALL - COUNT( * ) * 41 * 72
----
-2952

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL - COUNT ( * ) * 41 * 72
----
-2952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4764
SELECT 99 + COUNT( * ) * - COUNT( * ) * + CAST( - 63 AS SIGNED ) + - 18 AS col1
----
144

skipif mysql # not compatible
query I rowsort label-4764
SELECT 99 + COUNT ( * ) * - COUNT ( * ) * + CAST ( - 63 AS INTEGER ) + - 18 AS col1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT COUNT( * ) + - ( - + 47 ) - - - 15 * - 62 AS col0
----
978

skipif mysql # not compatible
query I rowsort label-4765
SELECT COUNT ( * ) + - ( - + 47 ) - - - 15 * - 62 AS col0
----
978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4766
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - CASE + 23 WHEN - SUM( + - CAST( NULL AS SIGNED ) ) THEN NULL ELSE CASE - - COUNT( * ) WHEN + 2 + - 92 THEN NULL WHEN - 94 + - COUNT( * ) THEN NULL ELSE 6 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4766
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - CASE + 23 WHEN - SUM ( + - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE CASE - - COUNT ( * ) WHEN + 2 + - 92 THEN NULL WHEN - 94 + - COUNT ( * ) THEN NULL ELSE 6 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ALL - 28 * COALESCE ( + 60, + 7, MAX( 4 ) )
----
-1680

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL - 28 * COALESCE ( + 60, + 7, MAX ( 4 ) )
----
-1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 8 * + 14
----
112

query I rowsort
SELECT 43 * - 3 AS col1
----
-129

query I rowsort
SELECT 14 + - 65 * + 92
----
-5966

query II rowsort
SELECT - 94 AS col2, - 43
----
-94
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT - CASE - 86 WHEN - - 16 - - 49 + - - 88 * AVG ( ALL + 23 ) * - 51 + COUNT( * ) THEN 57 + + 21 ELSE ( + 89 ) END + + 91
----
2

skipif mysql # not compatible
query I rowsort label-4773
SELECT - CASE - 86 WHEN - - 16 - - 49 + - - 88 * AVG ( ALL + 23 ) * - 51 + COUNT ( * ) THEN 57 + + 21 ELSE ( + 89 ) END + + 91
----
2

query I rowsort
SELECT 24 + - - 30 + - 24
----
30

query I rowsort
SELECT 26 * + 99 AS col0
----
2574

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT - 56 + - 17 - - 99 + MIN( DISTINCT + + 13 ) + + + 2 + - - 52 + + 0 * 72 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4776
SELECT - 56 + - 17 - - 99 + MIN ( DISTINCT + + 13 ) + + + 2 + - - 52 + + 0 * 72 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT - COALESCE ( 97, 68 ) * + - 55 + 6 * + COUNT( * ) AS col2
----
5341

skipif mysql # not compatible
query I rowsort label-4777
SELECT - COALESCE ( 97, 68 ) * + - 55 + 6 * + COUNT ( * ) AS col2
----
5341

query I rowsort
SELECT ALL + 79 * 74 * 16
----
93536

onlyif mysql # DIV for integer division: 
query I rowsort label-4779
SELECT - 14 DIV + 27
----
0

skipif mysql # not compatible
query I rowsort label-4779
SELECT - 14 / + 27
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT ALL + NULLIF ( + 97, - COUNT( * ) + - 42 ) * 79 + + - 37 col1
----
7626

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL + NULLIF ( + 97, - COUNT ( * ) + - 42 ) * 79 + + - 37 col1
----
7626

query I rowsort
SELECT + 23 + + + 88
----
111

query II rowsort
SELECT + 67 AS col1, 70
----
67
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT ALL - - COUNT( * ) * + 54 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL - - COUNT ( * ) * + 54 AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4784
SELECT DISTINCT + - 84 + - 87 + + CAST( NULL AS SIGNED ) / + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4784
SELECT DISTINCT + - 84 + - 87 + + CAST ( NULL AS INTEGER ) / + + 59
----
NULL

query I rowsort
SELECT ALL - 18 + + 51
----
33

query II rowsort
SELECT 2, 1 AS col0
----
2
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT + + COUNT( DISTINCT NULLIF ( - 17, - ( + + 42 ) - - ( + - 54 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4787
SELECT + + COUNT ( DISTINCT NULLIF ( - 17, - ( + + 42 ) - - ( + - 54 ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT + + COALESCE ( - 64, + + COUNT( * ) ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-4788
SELECT + + COALESCE ( - 64, + + COUNT ( * ) ) AS col2
----
-64

query I rowsort
SELECT ALL + 43 + 92 col1
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4790
SELECT DISTINCT + 85 + - COALESCE ( - 64, - + 35 * - NULLIF ( 15, + 72 ) + + + CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT + 85 + - COALESCE ( - 64, - + 35 * - NULLIF ( 15, + 72 ) + + + CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 75 * + 21 AS col0
----
1575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4792
SELECT ALL - - COALESCE ( - + ( - + CAST( AVG ( - - 85 ) AS SIGNED ) ), + COUNT( DISTINCT - 56 ) + CAST( - ( + COUNT( * ) ) AS SIGNED ) * - 84 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL - - COALESCE ( - + ( - + CAST ( AVG ( - - 85 ) AS INTEGER ) ), + COUNT ( DISTINCT - 56 ) + CAST ( - ( + COUNT ( * ) ) AS INTEGER ) * - 84 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT - 61 + - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT - 61 + - COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT ALL - COUNT( * ) + + COALESCE ( + 91, + + COUNT( * ) )
----
90

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL - COUNT ( * ) + + COALESCE ( + 91, + + COUNT ( * ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL - NULLIF ( - + 95, COALESCE ( 4, - - COUNT( * ) - - 97 / 23 ) )
----
95

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL - NULLIF ( - + 95, COALESCE ( 4, - - COUNT ( * ) - - 97 / 23 ) )
----
95

query I rowsort
SELECT ALL - - NULLIF ( + + 69, + 95 * - + 3 ) AS col2
----
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4797
SELECT DISTINCT 87 + - 25 DIV - + ( - - 97 ) - CAST( + 61 AS SIGNED ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT 87 + - 25 / - + ( - - 97 ) - CAST ( + 61 AS INTEGER ) AS col1
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4798
SELECT COUNT( * ) DIV + 14 * 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4798
SELECT COUNT ( * ) / + 14 * 42 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4799
SELECT ALL 90 + - + 33 col0, - SUM( ALL - + 52 ) AS col1
----
57
52

skipif mysql # not compatible
query II rowsort label-4799
SELECT ALL 90 + - + 33 col0, - SUM ( ALL - + 52 ) AS col1
----
57
52

query I rowsort
SELECT 74 * + 84
----
6216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4801
SELECT ALL 66 - - 53 + + CAST( - COUNT( * ) AS SIGNED ) + - MIN( 73 ) * NULLIF ( + 10, - 22 )
----
-612

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL 66 - - 53 + + CAST ( - COUNT ( * ) AS INTEGER ) + - MIN ( 73 ) * NULLIF ( + 10, - 22 )
----
-612

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4802
SELECT 28 DIV - + COUNT( * ) AS col0, 97
----
-28
97

skipif mysql # not compatible
query II rowsort label-4802
SELECT 28 / - + COUNT ( * ) AS col0, 97
----
-28
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT DISTINCT - SUM( DISTINCT 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT - SUM ( DISTINCT 7 )
----
-7

query I rowsort
SELECT DISTINCT 89 * 10
----
890

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT ALL + 60 - + COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL + 60 - + COUNT ( * ) AS col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4806
SELECT 60 * + + 55 * + 83 - - 11 * - - 62 DIV + ( + + 57 ) - 88
----
273823

skipif mysql # not compatible
query I rowsort label-4806
SELECT 60 * + + 55 * + 83 - - 11 * - - 62 / + ( + + 57 ) - 88
----
273823

query I rowsort
SELECT 53 * - + 67 AS col1
----
-3551

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT ALL - ( + SUM( DISTINCT + + 47 ) ) * 39
----
-1833

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - ( + SUM ( DISTINCT + + 47 ) ) * 39
----
-1833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT CAST( NULL AS SIGNED ) + + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT CAST ( NULL AS INTEGER ) + + 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT + COUNT( * ) + - COUNT( * ) * + MAX( DISTINCT 74 )
----
-73

skipif mysql # not compatible
query I rowsort label-4810
SELECT + COUNT ( * ) + - COUNT ( * ) * + MAX ( DISTINCT 74 )
----
-73

query I rowsort
SELECT DISTINCT - ( - 52 ) col0
----
52

query I rowsort
SELECT 41 * - - 75 AS col0
----
3075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4813
SELECT ALL + 8 + 39 * + CAST( - + 63 AS SIGNED ) + - ( - 43 ) AS col2
----
-2406

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL + 8 + 39 * + CAST ( - + 63 AS INTEGER ) + - ( - 43 ) AS col2
----
-2406

onlyif mysql # DIV for integer division: 
query I rowsort label-4814
SELECT ALL + 58 + + 45 DIV - - 54
----
58

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL + 58 + + 45 / - - 54
----
58

query II rowsort
SELECT DISTINCT - - 36 + - - 32 AS col1, - 49 + + 65
----
68
16

query I rowsort
SELECT ALL + - 6 + - - 56
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT - COUNT( DISTINCT + 53 ) + + ( COALESCE ( 19, - - 93 * - COUNT( * ) * + 33 * + 95 + + 98 ) )
----
18

skipif mysql # not compatible
query I rowsort label-4817
SELECT - COUNT ( DISTINCT + 53 ) + + ( COALESCE ( 19, - - 93 * - COUNT ( * ) * + 33 * + 95 + + 98 ) )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4818
SELECT - 0 + + CASE + 57 WHEN - - 74 / + + 17 * - - CAST( + NULLIF ( 11, - CAST( COUNT( * ) AS SIGNED ) * ( + 8 ) + - COUNT( * ) ) AS SIGNED ) + - 31 * CAST( NULL AS SIGNED ) THEN - 89 - 20 * ( 84 ) END + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4818
SELECT - 0 + + CASE + 57 WHEN - - 74 / + + 17 * - - CAST ( + NULLIF ( 11, - CAST ( COUNT ( * ) AS INTEGER ) * ( + 8 ) + - COUNT ( * ) ) AS INTEGER ) + - 31 * CAST ( NULL AS INTEGER ) THEN - 89 - 20 * ( 84 ) END + 20 AS col2
----
NULL

query I rowsort
SELECT ALL - 63 * - 95 * + 13 + - 64 * - - 7 * - 4 + + 41 + - 30 + - 46
----
79562

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4820
SELECT + - NULLIF ( - 87, 25 + - 93 * - + CAST( NULL AS SIGNED ) * - - 75 * 82 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-4820
SELECT + - NULLIF ( - 87, 25 + - 93 * - + CAST ( NULL AS INTEGER ) * - - 75 * 82 ) AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4821
SELECT - - 26 - - 51 DIV + + CAST( - 92 AS SIGNED ) - + 98 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4821
SELECT - - 26 - - 51 / + + CAST ( - 92 AS INTEGER ) - + 98 AS col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4822
SELECT ALL + 20 DIV - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL + 20 / - COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT DISTINCT 62 * - NULLIF ( 22, - COUNT( ALL ( - 97 ) ) * 0 ) * + 58 * + 72 + - MIN( ALL - ( + 97 ) ) - - 85 * + 28
----
-5693587

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT 62 * - NULLIF ( 22, - COUNT ( ALL ( - 97 ) ) * 0 ) * + 58 * + 72 + - MIN ( ALL - ( + 97 ) ) - - 85 * + 28
----
-5693587

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4824
SELECT DISTINCT 64 * + + CASE - CAST( + 19 AS SIGNED ) WHEN + 77 THEN + 1 + ( + 49 ) WHEN + + 24 - COUNT( * ) THEN NULL WHEN 5 / 49 THEN - 40 ELSE 24 + 85 END + 63 AS col1
----
7039

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT 64 * + + CASE - CAST ( + 19 AS INTEGER ) WHEN + 77 THEN + 1 + ( + 49 ) WHEN + + 24 - COUNT ( * ) THEN NULL WHEN 5 / 49 THEN - 40 ELSE 24 + 85 END + 63 AS col1
----
7039

query I rowsort
SELECT DISTINCT - 29 * + + 30 + + 54 * 85 - - 28 AS col0
----
3748

query I rowsort
SELECT DISTINCT - 36 * - + 91 AS col1
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT NULLIF ( + NULLIF ( - + 64, ( MIN( + 44 ) ) ), - 82 + + CASE - NULLIF ( + 20, 70 ) WHEN - 1 - + 87 THEN NULL ELSE + 16 END - ( 88 ) * - 29 )
----
-64

skipif mysql # not compatible
query I rowsort label-4827
SELECT NULLIF ( + NULLIF ( - + 64, ( MIN ( + 44 ) ) ), - 82 + + CASE - NULLIF ( + 20, 70 ) WHEN - 1 - + 87 THEN NULL ELSE + 16 END - ( 88 ) * - 29 )
----
-64

query I rowsort
SELECT CASE - + 64 WHEN - 60 THEN - 53 WHEN - 56 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT - COUNT( - 33 ) + SUM( ALL + 62 ) * + ( - - 51 )
----
3161

skipif mysql # not compatible
query I rowsort label-4829
SELECT - COUNT ( - 33 ) + SUM ( ALL + 62 ) * + ( - - 51 )
----
3161

query I rowsort
SELECT NULLIF ( - 90, + - 94 * - 5 )
----
-90

query I rowsort
SELECT - 46 * + 99 + - - 80 - - 72 + + ( 72 ) col0
----
-4330

query I rowsort
SELECT + 42 * + ( 57 ) AS col1
----
2394

query II rowsort
SELECT ALL + NULLIF ( 17, 33 ) AS col0, 34 + 63 col1
----
17
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT + 95 + + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-4834
SELECT + 95 + + COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL ( - 62 ) * + 72 + + + 64 * + + 75 * + + COUNT( * ) AS col2
----
336

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL ( - 62 ) * + 72 + + + 64 * + + 75 * + + COUNT ( * ) AS col2
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT + 12 * - COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-4836
SELECT + 12 * - COUNT ( * ) AS col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4837
SELECT DISTINCT COALESCE ( 58, 7 ) DIV 74 + 83 + - 50 * - 18
----
983

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT COALESCE ( 58, 7 ) / 74 + 83 + - 50 * - 18
----
983

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4838
SELECT + NULLIF ( + + COUNT( * ), 70 / + COALESCE ( + 23, 56 / - CAST( NULL AS DECIMAL ) * - 52 / - - 6 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4838
SELECT + NULLIF ( + + COUNT ( * ), 70 / + COALESCE ( + 23, 56 / - CAST ( NULL AS REAL ) * - 52 / - - 6 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT COUNT( - 81 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4839
SELECT COUNT ( - 81 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT MAX( ALL 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4840
SELECT MAX ( ALL 66 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT + COUNT( * ) * CASE + 60 WHEN - + COUNT( * ) THEN - MAX( + - 39 ) + - + 69 / - 99 END * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT + COUNT ( * ) * CASE + 60 WHEN - + COUNT ( * ) THEN - MAX ( + - 39 ) + - + 69 / - 99 END * - 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4842
SELECT DISTINCT AVG ( - CAST( NULL AS SIGNED ) ) * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT AVG ( - CAST ( NULL AS INTEGER ) ) * - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4843
SELECT ALL CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) * 64 + - 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) * 64 + - 84 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4844
SELECT ALL - 79 + 28 DIV 54
----
-79

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL - 79 + 28 / 54
----
-79

query I rowsort
SELECT ALL - - 46 + 0 AS col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-4846
SELECT DISTINCT 61 + - 69 + 72 AS col0, MIN( DISTINCT + 81 )
----
64
81

skipif mysql # not compatible
query II rowsort label-4846
SELECT DISTINCT 61 + - 69 + 72 AS col0, MIN ( DISTINCT + 81 )
----
64
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4847
SELECT DISTINCT 57, CAST( NULL AS SIGNED ) * - - 9 + + 25 + - 62 - - 46 AS col2
----
57
NULL

skipif mysql # not compatible
query II rowsort label-4847
SELECT DISTINCT 57, CAST ( NULL AS INTEGER ) * - - 9 + + 25 + - 62 - - 46 AS col2
----
57
NULL

query I rowsort
SELECT DISTINCT + 68 + - ( - 34 ) AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT - SUM( + 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-4849
SELECT - SUM ( + 64 )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4850
SELECT - CAST( - 96 AS SIGNED ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4850
SELECT - CAST ( - 96 AS INTEGER ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4851
SELECT ALL COALESCE ( - 4, + - COUNT( * ) * COUNT( * ), + 46 ) AS col0, 22 col1
----
-4
22

skipif mysql # not compatible
query II rowsort label-4851
SELECT ALL COALESCE ( - 4, + - COUNT ( * ) * COUNT ( * ), + 46 ) AS col0, 22 col1
----
-4
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT - 7 + - SUM( + + 87 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4852
SELECT - 7 + - SUM ( + + 87 ) AS col1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4853
SELECT - + 97 * - + 99 + + + CAST( + 15 AS SIGNED ) * + 96 AS col1
----
11043

skipif mysql # not compatible
query I rowsort label-4853
SELECT - + 97 * - + 99 + + + CAST ( + 15 AS INTEGER ) * + 96 AS col1
----
11043

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4854
SELECT - 21 + - 23 * - CAST( - AVG ( ALL + 49 ) AS SIGNED ) AS col2
----
-1148

skipif mysql # not compatible
query I rowsort label-4854
SELECT - 21 + - 23 * - CAST ( - AVG ( ALL + 49 ) AS INTEGER ) AS col2
----
-1148

query I rowsort
SELECT ALL 90 - 42 + + + 0 * + 40 AS col0
----
48

onlyif mysql # DIV for integer division: 
query II rowsort label-4856
SELECT ALL - 84 AS col2, 11 DIV - - 16 AS col1
----
-84
0

skipif mysql # not compatible
query II rowsort label-4856
SELECT ALL - 84 AS col2, 11 / - - 16 AS col1
----
-84
0

query I rowsort
SELECT - 34 + 26
----
-8

query I rowsort
SELECT ALL - + 74 - 43
----
-117

query I rowsort
SELECT + - COALESCE ( - - 91, + 22 ) AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4860
SELECT - - COALESCE ( + COUNT( * ), COALESCE ( + + 30, - 99 + - - 42 ) * 72 + + 54 + + - NULLIF ( - CAST( NULL AS SIGNED ), ( - COUNT( * ) ) ) ) DIV - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4860
SELECT - - COALESCE ( + COUNT ( * ), COALESCE ( + + 30, - 99 + - - 42 ) * 72 + + 54 + + - NULLIF ( - CAST ( NULL AS INTEGER ), ( - COUNT ( * ) ) ) ) / - 75 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4861
SELECT CAST( NULL AS SIGNED ), 49 AS col1
----
NULL
49

skipif mysql # not compatible
query II rowsort label-4861
SELECT CAST ( NULL AS INTEGER ), 49 AS col1
----
NULL
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4862
SELECT 59 DIV - 55 + 96
----
95

skipif mysql # not compatible
query I rowsort label-4862
SELECT 59 / - 55 + 96
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT - 25 * - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-4863
SELECT - 25 * - COUNT ( * )
----
25

query I rowsort
SELECT ALL - 60 * + 67 * ( 85 ) AS col1
----
-341700

onlyif mysql # DIV for integer division: 
query I rowsort label-4865
SELECT - 42 DIV + 7
----
-6

skipif mysql # not compatible
query I rowsort label-4865
SELECT - 42 / + 7
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4866
SELECT DISTINCT - 87 DIV + 89 * + - 55
----
0

skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT - 87 / + 89 * + - 55
----
0

query II rowsort
SELECT DISTINCT + 87 * - 24 * + ( - 86 ), + 67 AS col2
----
179568
67

query II rowsort
SELECT ALL + 92 AS col2, 97
----
92
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4869
SELECT ALL - 60 * + CAST( NULL AS SIGNED ) AS col1, + 36 + + MAX( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4869
SELECT ALL - 60 * + CAST ( NULL AS INTEGER ) AS col1, + 36 + + MAX ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL
NULL

query II rowsort
SELECT + 66, - COALESCE ( + + 88, - + 95 ) - + 39 + - ( + 33 ) AS col2
----
66
-160

query III rowsort
SELECT ( 18 ) AS col0, + 6 * - 30 + - - 38 - + + 4 * - + 37, 19 AS col0
----
18
6
19

query II rowsort
SELECT + 69, + 62 AS col0
----
69
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4873
SELECT + MAX( DISTINCT - - CAST( - - 99 AS SIGNED ) ) * 17 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT + MAX ( DISTINCT - - CAST ( - - 99 AS INTEGER ) ) * 17 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4874
SELECT DISTINCT + CAST( + - CASE CASE 43 WHEN + 3 / - - 57 THEN + COUNT( * ) END WHEN - 27 * + 23 * + 33 THEN 95 ELSE COALESCE ( AVG ( 46 ), 53 / + 77 ) * 15 + 34 END AS SIGNED ) * + 73 AS col1
----
-52852

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT + CAST ( + - CASE CASE 43 WHEN + 3 / - - 57 THEN + COUNT ( * ) END WHEN - 27 * + 23 * + 33 THEN 95 ELSE COALESCE ( AVG ( 46 ), 53 / + 77 ) * 15 + 34 END AS INTEGER ) * + 73 AS col1
----
-52852

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT ALL - COUNT( * ) * + + COUNT( - 85 ) + + 38
----
37

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL - COUNT ( * ) * + + COUNT ( - 85 ) + + 38
----
37

query I rowsort
SELECT - 35 - - + ( + 88 ) AS col0
----
53

query I rowsort
SELECT + ( - - 83 )
----
83

query I rowsort
SELECT NULLIF ( + + 32, - 95 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT ALL - 46 * COUNT( * ) + + 12 - - 39
----
5

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL - 46 * COUNT ( * ) + + 12 - - 39
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4880
SELECT ALL + ( + NULLIF ( + COUNT( * ), - 44 / - 72 + - CAST( + 4 AS SIGNED ) + - + 34 - 54 ) ) * 17 + + + 30 + ( 75 + + ( ( 53 ) + + 8 ) )
----
183

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL + ( + NULLIF ( + COUNT ( * ), - 44 / - 72 + - CAST ( + 4 AS INTEGER ) + - + 34 - 54 ) ) * 17 + + + 30 + ( 75 + + ( ( 53 ) + + 8 ) )
----
183

query I rowsort
SELECT ALL 41 * - 75 + + + 42 AS col1
----
-3033

query I rowsort
SELECT + 93 - + ( + 78 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT ALL + 12 * COUNT( * ) * + 63 + - ( MIN( ALL - + 37 ) ) AS col1
----
793

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL + 12 * COUNT ( * ) * + 63 + - ( MIN ( ALL - + 37 ) ) AS col1
----
793

query II rowsort
SELECT DISTINCT 13 col2, 7 AS col1
----
13
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4885
SELECT ALL - ( + MAX( DISTINCT - 78 ) ) * - COALESCE ( - 69, - 39 - - 52 DIV - + 39 ) * + 56 * 80 - 54 + - 4
----
24111302

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL - ( + MAX ( DISTINCT - 78 ) ) * - COALESCE ( - 69, - 39 - - 52 / - + 39 ) * + 56 * 80 - 54 + - 4
----
24111302

query I rowsort
SELECT + 42 * + 76
----
3192

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT MIN( ALL - 81 ) + 47 - ( 32 ) * - + 95
----
3006

skipif mysql # not compatible
query I rowsort label-4887
SELECT MIN ( ALL - 81 ) + 47 - ( 32 ) * - + 95
----
3006

query I rowsort
SELECT ALL + ( - ( 30 ) ) col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT + 60 + + 7 + + 74 * - COUNT( * ) * + + 51 * 99 AS col2
----
-373559

skipif mysql # not compatible
query I rowsort label-4889
SELECT + 60 + + 7 + + 74 * - COUNT ( * ) * + + 51 * 99 AS col2
----
-373559

onlyif mysql # aggregate syntax: 
query II rowsort label-4890
SELECT - 42, COUNT( * ) * + + 28 * + - 27 AS col2
----
-42
-756

skipif mysql # not compatible
query II rowsort label-4890
SELECT - 42, COUNT ( * ) * + + 28 * + - 27 AS col2
----
-42
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT ALL MAX( - 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL MAX ( - 55 ) AS col2
----
-55

query I rowsort
SELECT DISTINCT + ( - 15 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT DISTINCT - 37 - 33 - + SUM( + + 74 ) + 41 - - 25 + - COALESCE ( + 81, 71 ) + 48 * + 34 * - 40 * 69 * - ( NULLIF ( + 45, COUNT( ALL 35 ) + 80 ) + + 33 )
----
351336801

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT - 37 - 33 - + SUM ( + + 74 ) + 41 - - 25 + - COALESCE ( + 81, 71 ) + 48 * + 34 * - 40 * 69 * - ( NULLIF ( + 45, COUNT ( ALL 35 ) + 80 ) + + 33 )
----
351336801

query I rowsort
SELECT 19 * - 74
----
-1406

onlyif mysql # DIV for integer division: 
query I rowsort label-4895
SELECT ALL 35 DIV 8 * + + ( + 75 )
----
300

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL 35 / 8 * + + ( + 75 )
----
300

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4896
SELECT - 76 AS col0, CASE 73 WHEN + + 82 THEN - 2 * + - 77 DIV + + 78 + + - SUM( 14 ) ELSE + - COUNT( * ) * + COUNT( * ) + + 43 END - - 40
----
-76
82

skipif mysql # not compatible
query II rowsort label-4896
SELECT - 76 AS col0, CASE 73 WHEN + + 82 THEN - 2 * + - 77 / + + 78 + + - SUM ( 14 ) ELSE + - COUNT ( * ) * + COUNT ( * ) + + 43 END - - 40
----
-76
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4897
SELECT 52 + - ( - 52 ) + + 17 * 88 + + CAST( NULL AS SIGNED ) + + - 5 + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT 52 + - ( - 52 ) + + 17 * 88 + + CAST ( NULL AS INTEGER ) + + - 5 + 10 AS col1
----
NULL

query II rowsort
SELECT 64 AS col1, 14 - + 67
----
64
-53

query I rowsort
SELECT + 76 * + + 49
----
3724

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4900
SELECT + SUM( ALL - + 94 ) + 1 DIV - - 36 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-4900
SELECT + SUM ( ALL - + 94 ) + 1 / - - 36 AS col2
----
-94

query II rowsort
SELECT 7 AS col2, + 35 AS col1
----
7
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4902
SELECT COUNT( * ) + - NULLIF ( - CASE 96 WHEN CAST( - 6 AS SIGNED ) * + 12 THEN NULL WHEN + 85 THEN + + 19 END, + NULLIF ( - COALESCE ( + COUNT( * ), + 30 ), 87 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4902
SELECT COUNT ( * ) + - NULLIF ( - CASE 96 WHEN CAST ( - 6 AS INTEGER ) * + 12 THEN NULL WHEN + 85 THEN + + 19 END, + NULLIF ( - COALESCE ( + COUNT ( * ), + 30 ), 87 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT 18 - ( COUNT( * ) ) - - - 94 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-4903
SELECT 18 - ( COUNT ( * ) ) - - - 94 AS col1
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4904
SELECT ALL - COUNT( - - 4 ) AS col2, - 5 * + + 60 + - + 3 AS col1
----
-1
-303

skipif mysql # not compatible
query II rowsort label-4904
SELECT ALL - COUNT ( - - 4 ) AS col2, - 5 * + + 60 + - + 3 AS col1
----
-1
-303

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT ALL 60 * - + SUM( ALL 89 )
----
-5340

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL 60 * - + SUM ( ALL 89 )
----
-5340

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT 2 * - 17 * + + COUNT( DISTINCT + - 72 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4906
SELECT 2 * - 17 * + + COUNT ( DISTINCT + - 72 ) AS col0
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-4907
SELECT 1 DIV + - 88 * + 51 + 14 * - + NULLIF ( - 87, - 64 ) AS col2
----
1218

skipif mysql # not compatible
query I rowsort label-4907
SELECT 1 / + - 88 * + 51 + 14 * - + NULLIF ( - 87, - 64 ) AS col2
----
1218

onlyif mysql # aggregate syntax: 
query II rowsort label-4908
SELECT DISTINCT - MAX( ( + 24 ) ) AS col0, 85 + + - 85 + + 87 + + - 97 + ( - - 23 ) AS col1
----
-24
13

skipif mysql # not compatible
query II rowsort label-4908
SELECT DISTINCT - MAX ( ( + 24 ) ) AS col0, 85 + + - 85 + + 87 + + - 97 + ( - - 23 ) AS col1
----
-24
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4909
SELECT 47 + - 32, ( + + 51 ) * - + COUNT( * ) AS col1
----
15
-51

skipif mysql # not compatible
query II rowsort label-4909
SELECT 47 + - 32, ( + + 51 ) * - + COUNT ( * ) AS col1
----
15
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ( COUNT( * ) ) + 98
----
99

skipif mysql # not compatible
query I rowsort label-4910
SELECT ( COUNT ( * ) ) + 98
----
99

query II rowsort
SELECT 63 - + 7 AS col1, 95 AS col0
----
56
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4912
SELECT ALL - NULLIF ( 23, 67 ) DIV + 91 + - - 35 - + 88
----
-53

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL - NULLIF ( 23, 67 ) / + 91 + - - 35 - + 88
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4913
SELECT DISTINCT 59 + - + 4 - - SUM( DISTINCT 65 ) * + 2 - 49 - + 46 AS col1, COUNT( * ) AS col1
----
90
1

skipif mysql # not compatible
query II rowsort label-4913
SELECT DISTINCT 59 + - + 4 - - SUM ( DISTINCT 65 ) * + 2 - 49 - + 46 AS col1, COUNT ( * ) AS col1
----
90
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4914
SELECT ALL + 66 + + 82 AS col1, + COUNT( * )
----
148
1

skipif mysql # not compatible
query II rowsort label-4914
SELECT ALL + 66 + + 82 AS col1, + COUNT ( * )
----
148
1

query I rowsort
SELECT DISTINCT - 11 * + - 74 AS col2
----
814

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4916
SELECT DISTINCT + CASE - MAX( + 67 ) WHEN + SUM( + 62 ) THEN + 41 * + 13 ELSE - + 66 * + + 40 * - 72 DIV + COUNT( * ) + 20 DIV + 78 END + 30 * - 90 AS col1
----
187380

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT + CASE - MAX ( + 67 ) WHEN + SUM ( + 62 ) THEN + 41 * + 13 ELSE - + 66 * + + 40 * - 72 / + COUNT ( * ) + 20 / + 78 END + 30 * - 90 AS col1
----
187380

query I rowsort
SELECT ALL + 39 + + + 85
----
124

query I rowsort
SELECT 62 + + 92 + - + 30 + - 18 * + ( + 46 ) * ( 98 ) AS col2
----
-81020

query I rowsort
SELECT DISTINCT - 12 * 80 * - 63 AS col1
----
60480

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT ( + COUNT( * ) ) * - + 68 + + COUNT( ALL + + 56 )
----
-67

skipif mysql # not compatible
query I rowsort label-4920
SELECT ( + COUNT ( * ) ) * - + 68 + + COUNT ( ALL + + 56 )
----
-67

query I rowsort
SELECT + COALESCE ( + + 97, 47, + 26 ) * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT + - ( NULLIF ( - 21, - ( - 99 ) * + + 25 + + MAX( DISTINCT 68 ) * + MIN( - - 95 ) ) ) col1
----
21

skipif mysql # not compatible
query I rowsort label-4922
SELECT + - ( NULLIF ( - 21, - ( - 99 ) * + + 25 + + MAX ( DISTINCT 68 ) * + MIN ( - - 95 ) ) ) col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4923
SELECT ALL - - CASE + 64 WHEN - + 51 + 87 THEN NULL WHEN + 26 THEN + CAST( - 97 AS SIGNED ) * - 48 + + 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL - - CASE + 64 WHEN - + 51 + 87 THEN NULL WHEN + 26 THEN + CAST ( - 97 AS INTEGER ) * - 48 + + 39 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4924
SELECT 19 * NULLIF ( + + CAST( NULL AS SIGNED ), + 22 ) * + - 4 / + - AVG ( + 38 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4924
SELECT 19 * NULLIF ( + + CAST ( NULL AS INTEGER ), + 22 ) * + - 4 / + - AVG ( + 38 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( + 79, 56 ) AS col1
----
-79

query II rowsort
SELECT ALL ( - 35 ) col0, 47 + 24
----
-35
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4927
SELECT + 89 + COUNT( * ) - - 20 + + CAST( NULL AS SIGNED ) + + - 9 * - 34 - - MIN( + 1 ) * - 71 + 78 + - 81 + 42 * + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4927
SELECT + 89 + COUNT ( * ) - - 20 + + CAST ( NULL AS INTEGER ) + + - 9 * - 34 - - MIN ( + 1 ) * - 71 + 78 + - 81 + 42 * + 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4928
SELECT 34 * + - COUNT( * ), - ( + 84 ) AS col1
----
-34
-84

skipif mysql # not compatible
query II rowsort label-4928
SELECT 34 * + - COUNT ( * ), - ( + 84 ) AS col1
----
-34
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL - SUM( ALL 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL - SUM ( ALL 13 )
----
-13

query I rowsort
SELECT + 33 * - 56 AS col1
----
-1848

query I rowsort
SELECT DISTINCT + ( + + 26 ) * + - 5 * 22 AS col1
----
-2860

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4932
SELECT ( - 11 ) DIV 45 * + MIN( DISTINCT + 68 )
----
0

skipif mysql # not compatible
query I rowsort label-4932
SELECT ( - 11 ) / 45 * + MIN ( DISTINCT + 68 )
----
0

query I rowsort
SELECT - 39 + + NULLIF ( - - 93, - 28 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT DISTINCT - - SUM( - 21 ) * + + 82 AS col2
----
-1722

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT - - SUM ( - 21 ) * + + 82 AS col2
----
-1722

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4935
SELECT 12 DIV + SUM( DISTINCT - + 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-4935
SELECT 12 / + SUM ( DISTINCT - + 8 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT 28 + + - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-4936
SELECT 28 + + - COUNT ( * )
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4937
SELECT 2 DIV - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4937
SELECT 2 / - - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT COALESCE ( - + 37, - COUNT( * ) ) * + + 78
----
-2886

skipif mysql # not compatible
query I rowsort label-4938
SELECT COALESCE ( - + 37, - COUNT ( * ) ) * + + 78
----
-2886

onlyif mysql # aggregate syntax: 
query II rowsort label-4939
SELECT + 57, ( - - MAX( ALL + 43 ) ) + - MIN( - + 67 ) * 22 AS col0
----
57
1517

skipif mysql # not compatible
query II rowsort label-4939
SELECT + 57, ( - - MAX ( ALL + 43 ) ) + - MIN ( - + 67 ) * 22 AS col0
----
57
1517

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4940
SELECT AVG ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4940
SELECT AVG ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 47 * 84 AS col0
----
3948

query I rowsort
SELECT ALL + 1 * 20 + - 60 col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT SUM( - + 61 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-4943
SELECT SUM ( - + 61 ) AS col0
----
-61

query II rowsort
SELECT ALL - 98, 74 col0
----
-98
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT DISTINCT + 7 * + ( + COUNT( * ) ) + + 36
----
43

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT + 7 * + ( + COUNT ( * ) ) + + 36
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4946
SELECT DISTINCT - COUNT( * ) AS col1, - 88
----
-1
-88

skipif mysql # not compatible
query II rowsort label-4946
SELECT DISTINCT - COUNT ( * ) AS col1, - 88
----
-1
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT + MIN( ALL - - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-4947
SELECT + MIN ( ALL - - 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT ALL 58 * - ( - + 72 ) + 96 * - + NULLIF ( 86, COUNT( * ) * + + 80 + + MAX( - 93 ) ) AS col1
----
-4080

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL 58 * - ( - + 72 ) + 96 * - + NULLIF ( 86, COUNT ( * ) * + + 80 + + MAX ( - 93 ) ) AS col1
----
-4080

query II rowsort
SELECT ALL - 88, + NULLIF ( - 66, - 22 ) AS col1
----
-88
-66

query I rowsort
SELECT 62 * + + 31
----
1922

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT - 70 * - CASE - MAX( - 78 ) WHEN + 50 * + 79 + - - 49 THEN + 59 * - 66 + - - COUNT( * ) END + - + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-4951
SELECT - 70 * - CASE - MAX ( - 78 ) WHEN + 50 * + 79 + - - 49 THEN + 59 * - 66 + - - COUNT ( * ) END + - + 61
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4952
SELECT COUNT( * ) AS col0, CAST(