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( NULL AS SIGNED ) AS col2
----
1
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT + 64 * - 92 + - 74 - + + 70 * + 19 * - COUNT( * ) * + 27
----
29948

skipif mysql # not compatible
query I rowsort label-4954
SELECT + 64 * - 92 + - 74 - + + 70 * + 19 * - COUNT ( * ) * + 27
----
29948

query I rowsort
SELECT - 85 * + 65 + 21
----
-5504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4956
SELECT + 28 + - + 80 * - + 55 DIV - - MIN( DISTINCT - 55 )
----
-52

skipif mysql # not compatible
query I rowsort label-4956
SELECT + 28 + - + 80 * - + 55 / - - MIN ( DISTINCT - 55 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4957
SELECT + 31 AS col2, + ( + - 45 ) + - + COALESCE ( - MAX( - - 61 ), CASE + 63 WHEN + + COUNT( * ) + + 58 THEN COUNT( * ) ELSE + 56 + - 31 END * CAST( + 68 AS SIGNED ) ) AS col2
----
31
16

skipif mysql # not compatible
query II rowsort label-4957
SELECT + 31 AS col2, + ( + - 45 ) + - + COALESCE ( - MAX ( - - 61 ), CASE + 63 WHEN + + COUNT ( * ) + + 58 THEN COUNT ( * ) ELSE + 56 + - 31 END * CAST ( + 68 AS INTEGER ) ) AS col2
----
31
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4958
SELECT - COALESCE ( 44, ( + 66 ) + 24 ) + - - COUNT( * ) + + + 1 * 80 * + + COALESCE ( 56, + 27, - 47 DIV + 22 DIV COUNT( * ) )
----
4437

skipif mysql # not compatible
query I rowsort label-4958
SELECT - COALESCE ( 44, ( + 66 ) + 24 ) + - - COUNT ( * ) + + + 1 * 80 * + + COALESCE ( 56, + 27, - 47 / + 22 / COUNT ( * ) )
----
4437

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT DISTINCT COUNT( * ) - 68
----
-67

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT COUNT ( * ) - 68
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT ALL + NULLIF ( + ( SUM( DISTINCT 90 ) ), - + 51 )
----
90

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL + NULLIF ( + ( SUM ( DISTINCT 90 ) ), - + 51 )
----
90

query I rowsort
SELECT ALL + + 97 * + 81 AS col2
----
7857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4964
SELECT + 17 * + - CAST( + + ( 39 ) AS SIGNED )
----
-663

skipif mysql # not compatible
query I rowsort label-4964
SELECT + 17 * + - CAST ( + + ( 39 ) AS INTEGER )
----
-663

query I rowsort
SELECT - 31 * 58 AS col1
----
-1798

query I rowsort
SELECT ALL - - 68 * 9 AS col2
----
612

query II rowsort
SELECT + 11 AS col1, 93 AS col2
----
11
93

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4969
SELECT ALL COUNT( * ), - CASE + 56 WHEN - ( - 57 ) THEN - + 47 ELSE - COUNT( * ) END
----
1
1

skipif mysql # not compatible
query II rowsort label-4969
SELECT ALL COUNT ( * ), - CASE + 56 WHEN - ( - 57 ) THEN - + 47 ELSE - COUNT ( * ) END
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT - - COUNT( + - 55 ) * ( + 49 ) * 2 + + 25
----
123

skipif mysql # not compatible
query I rowsort label-4970
SELECT - - COUNT ( + - 55 ) * ( + 49 ) * 2 + + 25
----
123

query I rowsort
SELECT ALL - 52 * + + 24 col0
----
-1248

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

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL + 72 + + COUNT ( * ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT - 96 * + MIN( - 59 ) AS col2
----
5664

skipif mysql # not compatible
query I rowsort label-4973
SELECT - 96 * + MIN ( - 59 ) AS col2
----
5664

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL + ( + 9 ) + + SUM( DISTINCT + + 7 ) col0
----
16

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL + ( + 9 ) + + SUM ( DISTINCT + + 7 ) col0
----
16

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

skipif mysql # not compatible
query I rowsort label-4975
SELECT + 48 / - 57
----
0

query I rowsort
SELECT ALL + NULLIF ( + + 76, - - 17 * 32 * 21 ) + + 17 * 92 AS col1
----
1640

query I rowsort
SELECT - 60 + + + 39
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT + SUM( DISTINCT 79 ) - - 0 - + + 67 * - + NULLIF ( 5, - + 4 ) * - 74
----
-24711

skipif mysql # not compatible
query I rowsort label-4978
SELECT + SUM ( DISTINCT 79 ) - - 0 - + + 67 * - + NULLIF ( 5, - + 4 ) * - 74
----
-24711

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT - 36 + CASE + 35 WHEN - 73 * + COUNT( * ) THEN NULL ELSE 2 END AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4979
SELECT - 36 + CASE + 35 WHEN - 73 * + COUNT ( * ) THEN NULL ELSE 2 END AS col0
----
-34

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

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

query I rowsort
SELECT - 12 + + 32 * - 18 AS col2
----
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT ALL + 38 + - 93 * - CASE + 5 WHEN - 30 THEN - + ( + COUNT( * ) ) * + ( + ( - COUNT( * ) ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL + 38 + - 93 * - CASE + 5 WHEN - 30 THEN - + ( + COUNT ( * ) ) * + ( + ( - COUNT ( * ) ) ) END AS col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4984
SELECT ALL 85 DIV - COUNT( - + 28 ) + - CAST( ( + SUM( 74 ) ) AS SIGNED ) - + - 8 col2
----
-151

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL 85 / - COUNT ( - + 28 ) + - CAST ( ( + SUM ( 74 ) ) AS INTEGER ) - + - 8 col2
----
-151

query I rowsort
SELECT + 6 + - 82
----
-76

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

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL + CAST ( - MIN ( - 31 ) AS INTEGER ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT + COUNT( * ) * 4 + - CASE + MAX( ALL + - 22 ) WHEN - 78 * - NULLIF ( + + 32, 50 / 95 ) + 67 THEN - 69 / + 5 * 91 END - - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT + COUNT ( * ) * 4 + - CASE + MAX ( ALL + - 22 ) WHEN - 78 * - NULLIF ( + + 32, 50 / 95 ) + 67 THEN - 69 / + 5 * 91 END - - 95
----
NULL

query I rowsort
SELECT - 94 * - 45 AS col2
----
4230

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL 22 * + 88 - + COALESCE ( SUM( ALL + - 23 ), SUM( 26 ) - + 97 + + + 4, + + 72, + COUNT( * ) ) + 81 AS col0
----
2040

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL 22 * + 88 - + COALESCE ( SUM ( ALL + - 23 ), SUM ( 26 ) - + 97 + + + 4, + + 72, + COUNT ( * ) ) + 81 AS col0
----
2040

query I rowsort
SELECT - 70 + - 88
----
-158

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

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

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL 40 / - 85
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4993
SELECT 76 * 56 + + - 16 + - 83 + CAST( - 48 AS SIGNED )
----
4109

skipif mysql # not compatible
query I rowsort label-4993
SELECT 76 * 56 + + - 16 + - 83 + CAST ( - 48 AS INTEGER )
----
4109

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT + + MAX( + 29 ) + + 88
----
117

skipif mysql # not compatible
query I rowsort label-4994
SELECT + + MAX ( + 29 ) + + 88
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT + NULLIF ( - + 92, + 50 - + + COUNT( * ) + + 36 * - 54 + - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-4995
SELECT + NULLIF ( - + 92, + 50 - + + COUNT ( * ) + + 36 * - 54 + - 92 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4996
SELECT ALL + + 45 * + MAX( - - CAST( NULL AS SIGNED ) ) - - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL + + 45 * + MAX ( - - CAST ( NULL AS INTEGER ) ) - - 3
----
NULL

query I rowsort
SELECT ALL 18 * 71
----
1278

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT DISTINCT + MAX( DISTINCT + + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT + MAX ( DISTINCT + + 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT ( + MIN( + 40 ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-4999
SELECT ( + MIN ( + 40 ) ) AS col0
----
40

query I rowsort
SELECT ALL 46 * + + 16 * - 37 AS col1
----
-27232

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT - 85 * 72 * MAX( 17 ) AS col1
----
-104040

skipif mysql # not compatible
query I rowsort label-5001
SELECT - 85 * 72 * MAX ( 17 ) AS col1
----
-104040

query I rowsort
SELECT + 20 * - + 44 + - - 9 AS col0
----
-871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5003
SELECT ALL + + CAST( SUM( ALL + 80 ) AS SIGNED ) DIV - + COUNT( * ) + - 28 col1
----
-108

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL + + CAST ( SUM ( ALL + 80 ) AS INTEGER ) / - + COUNT ( * ) + - 28 col1
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-5004
SELECT + + 87 DIV 20 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5004
SELECT + + 87 / 20 AS col2
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-5005
SELECT ALL - + 2 * - COUNT( * ) + + ( 41 ) AS col1, 53 AS col1
----
43
53

skipif mysql # not compatible
query II rowsort label-5005
SELECT ALL - + 2 * - COUNT ( * ) + + ( 41 ) AS col1, 53 AS col1
----
43
53

query I rowsort
SELECT ALL - 55 * 97 * + 94 + + 96 * + CASE - 7 WHEN - 75 THEN - 37 * - + 81 WHEN - 17 - 79 / - - 77 THEN NULL END
----
NULL

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

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

query I rowsort
SELECT - 72 + + - 6 AS col2
----
-78

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

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL + COUNT ( * ) * + 16 / - 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT - COUNT( * ) + - 67 + - - NULLIF ( 51, - + 58 ) * COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-5010
SELECT - COUNT ( * ) + - 67 + - - NULLIF ( 51, - + 58 ) * COUNT ( * )
----
-17

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

skipif mysql # not compatible
query I rowsort label-5011
SELECT DISTINCT CAST ( - CAST ( + 94 AS INTEGER ) AS INTEGER ) col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT ALL - 70 + - MAX( + 82 ) AS col2
----
-152

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL - 70 + - MAX ( + 82 ) AS col2
----
-152

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5014
SELECT SUM( + 35 ) * - CAST( + + AVG ( ALL + 75 ) AS SIGNED )
----
-2625

skipif mysql # not compatible
query I rowsort label-5014
SELECT SUM ( + 35 ) * - CAST ( + + AVG ( ALL + 75 ) AS INTEGER )
----
-2625

onlyif mysql # aggregate syntax: 
query II rowsort label-5015
SELECT + 31 AS col2, COUNT( * ) + + - ( - 9 )
----
31
10

skipif mysql # not compatible
query II rowsort label-5015
SELECT + 31 AS col2, COUNT ( * ) + + - ( - 9 )
----
31
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5016
SELECT ALL + 8 DIV - - 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL + 8 / - - 97 AS col2
----
0

query II rowsort
SELECT ALL - CASE NULLIF ( 44, - 51 + + 34 / 21 ) WHEN 31 THEN 47 END col2, 86
----
NULL
86

query I rowsort
SELECT + 86 * + + 53
----
4558

query I rowsort
SELECT - ( - - 82 ) * - 64
----
5248

onlyif mysql # aggregate syntax: 
query II rowsort label-5020
SELECT + 17 * 14 - - - 25 + - COUNT( + 78 ) * - 41 AS col2, - 49
----
254
-49

skipif mysql # not compatible
query II rowsort label-5020
SELECT + 17 * 14 - - - 25 + - COUNT ( + 78 ) * - 41 AS col2, - 49
----
254
-49

query I rowsort
SELECT + ( + + 93 ) + - 55 + + NULLIF ( + 75, - - 44 * + 84 * ( + 6 ) ) + 47 - + 35 * 40
----
-1240

query I rowsort
SELECT ALL ( 40 ) * - ( - - 69 )
----
-2760

query I rowsort
SELECT ALL 93 + + + 47 AS col0
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5024
SELECT DISTINCT 37 + + CAST( + COALESCE ( 5, + 59 + - 19 * ( + + ( + 12 ) ) ) AS SIGNED ) + - - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT 37 + + CAST ( + COALESCE ( 5, + 59 + - 19 * ( + + ( + 12 ) ) ) AS INTEGER ) + - - COUNT ( * )
----
43

query II rowsort
SELECT DISTINCT - 39 AS col0, - 47 col1
----
-39
-47

query I rowsort
SELECT - 66 * - COALESCE ( + + 97, + - ( - 55 ) ) * + - 23 + 33 + + 89
----
-147124

onlyif mysql # aggregate syntax: 
query II rowsort label-5027
SELECT - 97, COALESCE ( + 28, + 24 + + 20 + + - COUNT( * ), - 43 ) AS col2
----
-97
28

skipif mysql # not compatible
query II rowsort label-5027
SELECT - 97, COALESCE ( + 28, + 24 + + 20 + + - COUNT ( * ), - 43 ) AS col2
----
-97
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5028
SELECT 63 DIV COUNT( * ) * + 24 * + 38
----
57456

skipif mysql # not compatible
query I rowsort label-5028
SELECT 63 / COUNT ( * ) * + 24 * + 38
----
57456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5029
SELECT ALL COUNT( * ) + 94 DIV - MAX( - 27 )
----
4

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL COUNT ( * ) + 94 / - MAX ( - 27 )
----
4

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

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT - 93 / + + COUNT ( * ) / - ( - COUNT ( * ) ) * + - COUNT ( * ) AS col1
----
93

query II rowsort
SELECT ALL + 38 - - + 97 AS col0, 53 * 47 AS col0
----
135
2491

onlyif mysql # DIV for integer division: 
query I rowsort label-5032
SELECT ALL - 84 DIV - 79 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL - 84 / - 79 AS col0
----
1

query III rowsort
SELECT ALL 6 AS col0, NULLIF ( + 60, + 18 * - 91 * + - 19 * - - 70 ) AS col2, 71 AS col1
----
6
60
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5034
SELECT 53 DIV 63 * + + COUNT( * ) * + COALESCE ( - 54, - 32, 67 )
----
0

skipif mysql # not compatible
query I rowsort label-5034
SELECT 53 / 63 * + + COUNT ( * ) * + COALESCE ( - 54, - 32, 67 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5035
SELECT DISTINCT 30 DIV - + 20 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT 30 / - + 20 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5036
SELECT - 17 AS col1, 4 * + 88 + COUNT( * ) DIV ( + 12 ) AS col1
----
-17
352

skipif mysql # not compatible
query II rowsort label-5036
SELECT - 17 AS col1, 4 * + 88 + COUNT ( * ) / ( + 12 ) AS col1
----
-17
352

query I rowsort
SELECT 43 + + - 94
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-5038
SELECT 78 DIV - - 73 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5038
SELECT 78 / - - 73 AS col2
----
1

query I rowsort
SELECT 88 - 77
----
11

query II rowsort
SELECT ALL 29 AS col0, 94 AS col2
----
29
94

query I rowsort
SELECT DISTINCT 88 * + 51 * + 84 * + 70
----
26389440

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT 71 + + + 39 + 76 + + MIN( DISTINCT 12 ) * + 9 * - SUM( - 69 ) AS col1
----
7638

skipif mysql # not compatible
query I rowsort label-5042
SELECT 71 + + + 39 + 76 + + MIN ( DISTINCT 12 ) * + 9 * - SUM ( - 69 ) AS col1
----
7638

query II rowsort
SELECT ALL + 3 * + 6 AS col2, 94 AS col2
----
18
94

query II rowsort
SELECT ALL - 16 AS col0, 19 + 84
----
-16
103

onlyif mysql # DIV for integer division: 
query I rowsort label-5045
SELECT 87 + - 60 + - 39 + - 27 + + 34 DIV + ( 1 ) + 68 DIV 81 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5045
SELECT 87 + - 60 + - 39 + - 27 + + 34 / + ( 1 ) + 68 / 81 AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5046
SELECT ALL - COUNT( * ) AS col2, + 74 * - CASE - ( 11 ) WHEN COUNT( * ) * - + 73 + + 33 THEN CASE - 33 WHEN + + 92 THEN + COUNT( * ) WHEN - 63 * + ( + + COUNT( * ) ) + 45 + CAST( 86 + 33 * 51 AS SIGNED ) THEN 63 * 57 END WHEN - 28 * + 23 THEN + ( 24 ) + + MIN( ALL - 99 + - 38 ) ELSE NULL END / 10
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5046
SELECT ALL - COUNT ( * ) AS col2, + 74 * - CASE - ( 11 ) WHEN COUNT ( * ) * - + 73 + + 33 THEN CASE - 33 WHEN + + 92 THEN + COUNT ( * ) WHEN - 63 * + ( + + COUNT ( * ) ) + 45 + CAST ( 86 + 33 * 51 AS INTEGER ) THEN 63 * 57 END WHEN - 28 * + 23 THEN + ( 24 ) + + MIN ( ALL - 99 + - 38 ) ELSE NULL END / 10
----
-1
NULL

query II rowsort
SELECT DISTINCT - 37 AS col1, + 30 + 30 AS col0
----
-37
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5048
SELECT ALL - + COALESCE ( + + 74, + CAST( NULL AS SIGNED ) + + 82, + 97 + + NULLIF ( - 13, + - 80 ) * + + 18 * 18 * 67 * - - 69 ) col1
----
-74

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL - + COALESCE ( + + 74, + CAST ( NULL AS INTEGER ) + + 82, + 97 + + NULLIF ( - 13, + - 80 ) * + + 18 * 18 * 67 * - - 69 ) col1
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-5049
SELECT 22 DIV + + 54 + 82 + - 9
----
73

skipif mysql # not compatible
query I rowsort label-5049
SELECT 22 / + + 54 + 82 + - 9
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-5050
SELECT DISTINCT - - 19 AS col1, - COUNT( * ) - - + 14 AS col2
----
19
13

skipif mysql # not compatible
query II rowsort label-5050
SELECT DISTINCT - - 19 AS col1, - COUNT ( * ) - - + 14 AS col2
----
19
13

query I rowsort
SELECT + 58 + 34 * 91 + - 3 * 15
----
3107

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT 18 * + ( 67 ) * + - COUNT( * ) * + 35 * + 51 + + 22
----
-2152688

skipif mysql # not compatible
query I rowsort label-5052
SELECT 18 * + ( 67 ) * + - COUNT ( * ) * + 35 * + 51 + + 22
----
-2152688

query I rowsort
SELECT DISTINCT - - 36 + 33 AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5054
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / COALESCE ( - + 83, + + ( + + 84 ) / + 10, + 49, - 66 ) + 5 * + + 67 / + CAST( - 28 AS SIGNED ) * + 77 / - 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / COALESCE ( - + 83, + + ( + + 84 ) / + 10, + 49, - 66 ) + 5 * + + 67 / + CAST ( - 28 AS INTEGER ) * + 77 / - 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL 64 + 75 * + COUNT( * ) AS col0
----
139

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL 64 + 75 * + COUNT ( * ) AS col0
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5056
SELECT DISTINCT - - AVG ( ( CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT - - AVG ( ( CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT ALL + + 6 + COUNT( * ) + 42 * - 78 * ( + 61 ) * + + 57 + + 94
----
-11390551

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL + + 6 + COUNT ( * ) + 42 * - 78 * ( + 61 ) * + + 57 + + 94
----
-11390551

query II rowsort
SELECT 50 AS col2, 33 * + + 10
----
50
330

query I rowsort
SELECT 88 * + - 65 + 94 AS col2
----
-5626

query I rowsort
SELECT DISTINCT + 73 + 50 AS col1
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-5061
SELECT SUM( + 32 ) AS col0, - 31 col0
----
32
-31

skipif mysql # not compatible
query II rowsort label-5061
SELECT SUM ( + 32 ) AS col0, - 31 col0
----
32
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5062
SELECT - COUNT( * ) * CAST( + + 27 AS SIGNED ) - + 40 * + 7 * + + 88 + - 38 + CAST( - 10 AS SIGNED ) * + 32 * - 66 + + 42 + - 27
----
-3570

skipif mysql # not compatible
query I rowsort label-5062
SELECT - COUNT ( * ) * CAST ( + + 27 AS INTEGER ) - + 40 * + 7 * + + 88 + - 38 + CAST ( - 10 AS INTEGER ) * + 32 * - 66 + + 42 + - 27
----
-3570

query I rowsort
SELECT 67 + + 40
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT 26 * + + COUNT( * ) * - 17 * 92 * - - 47 * + + COUNT( * ) AS col0
----
-1911208

skipif mysql # not compatible
query I rowsort label-5064
SELECT 26 * + + COUNT ( * ) * - 17 * 92 * - - 47 * + + COUNT ( * ) AS col0
----
-1911208

onlyif mysql # aggregate syntax: 
query II rowsort label-5065
SELECT DISTINCT COUNT( * ) - - + 22 * + + 39 AS col1, - ( + 55 ) AS col1
----
859
-55

skipif mysql # not compatible
query II rowsort label-5065
SELECT DISTINCT COUNT ( * ) - - + 22 * + + 39 AS col1, - ( + 55 ) AS col1
----
859
-55

query I rowsort
SELECT ALL 25 * 75 * 30
----
56250

query I rowsort
SELECT DISTINCT 42 * + + 84 * - 95
----
-335160

query I rowsort
SELECT ALL 77 * + 78
----
6006

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5069
SELECT ALL 89 * + CAST( NULL AS SIGNED ) AS col2, 49 + - 64 * 73 AS col0
----
NULL
-4623

skipif mysql # not compatible
query II rowsort label-5069
SELECT ALL 89 * + CAST ( NULL AS INTEGER ) AS col2, 49 + - 64 * 73 AS col0
----
NULL
-4623

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT - MIN( ALL - 88 )
----
88

skipif mysql # not compatible
query I rowsort label-5070
SELECT - MIN ( ALL - 88 )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5071
SELECT + 30 * + 85, - 64 + + 88 - + - 45 + - COUNT( * ) DIV + + 30 * + 48 + SUM( - - 4 ) AS col2, - 19 * + ( + + 98 ) + - 52 * - + 72 AS col1
----
2550
73
1882

skipif mysql # not compatible
query III rowsort label-5071
SELECT + 30 * + 85, - 64 + + 88 - + - 45 + - COUNT ( * ) / + + 30 * + 48 + SUM ( - - 4 ) AS col2, - 19 * + ( + + 98 ) + - 52 * - + 72 AS col1
----
2550
73
1882

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT + 35 * - MIN( 68 ) AS col2
----
-2380

skipif mysql # not compatible
query I rowsort label-5072
SELECT + 35 * - MIN ( 68 ) AS col2
----
-2380

query I rowsort
SELECT + 53 + + 50
----
103

query I rowsort
SELECT + 99 * ( + 58 ) * + 75
----
430650

onlyif mysql # DIV for integer division: 
query II rowsort label-5075
SELECT ALL - 44 DIV - + 56 AS col2, 97 AS col2
----
0
97

skipif mysql # not compatible
query II rowsort label-5075
SELECT ALL - 44 / - + 56 AS col2, 97 AS col2
----
0
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5076
SELECT - COALESCE ( + + 9, 0 + + + CAST( NULL AS SIGNED ) ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-5076
SELECT - COALESCE ( + + 9, 0 + + + CAST ( NULL AS INTEGER ) ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT DISTINCT MIN( - 28 ) col0
----
-28

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT MIN ( - 28 ) col0
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-5078
SELECT ALL - COUNT( * ) + - 2 AS col0, - COUNT( * ) + - + 1 + - - 3 + 48 * - 74
----
-3
-3551

skipif mysql # not compatible
query II rowsort label-5078
SELECT ALL - COUNT ( * ) + - 2 AS col0, - COUNT ( * ) + - + 1 + - - 3 + 48 * - 74
----
-3
-3551

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT - COUNT( ALL + 55 ) * + 36 * - 65
----
2340

skipif mysql # not compatible
query I rowsort label-5079
SELECT - COUNT ( ALL + 55 ) * + 36 * - 65
----
2340

onlyif mysql # DIV for integer division: 
query I rowsort label-5080
SELECT ALL 75 DIV 32 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL 75 / 32 AS col0
----
2

query I rowsort
SELECT + 68 - + 59 AS col0
----
9

query I rowsort
SELECT DISTINCT + 29 * 29 * + 94
----
79054

query I rowsort
SELECT - 51 * - + ( + + 22 )
----
1122

query I rowsort
SELECT + 95 * + 57 AS col1
----
5415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5085
SELECT ALL + 64 * 51 - - NULLIF ( COUNT( * ), 24 ) + - - 44 + - - CAST( NULL AS DECIMAL ) * - CAST( NULL AS SIGNED ) / - - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL + 64 * 51 - - NULLIF ( COUNT ( * ), 24 ) + - - 44 + - - CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER ) / - - 89
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5086
SELECT DISTINCT - + 50 * + 40 * + 43 + 20 + + ( COALESCE ( - + 66, - - ( + 80 ) ) ) + - ( + COUNT( ( - 26 ) ) ) AS col0, + SUM( + 90 )
----
-86047
90

skipif mysql # not compatible
query II rowsort label-5086
SELECT DISTINCT - + 50 * + 40 * + 43 + 20 + + ( COALESCE ( - + 66, - - ( + 80 ) ) ) + - ( + COUNT ( ( - 26 ) ) ) AS col0, + SUM ( + 90 )
----
-86047
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5087
SELECT + 25 * 43 + - 73 + - ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5087
SELECT + 25 * 43 + - 73 + - ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 35 * - 24 * + 30 + - 43 * + ( + + 8 ) * - 71 AS col1
----
-776

query II rowsort
SELECT - - 75 * + 85 - - 90 AS col1, + 13 * - - 71 AS col0
----
6465
923

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5090
SELECT - 98 * + + MAX( ALL + - CAST( - - 70 AS SIGNED ) ) + - + 79 col1
----
6781

skipif mysql # not compatible
query I rowsort label-5090
SELECT - 98 * + + MAX ( ALL + - CAST ( - - 70 AS INTEGER ) ) + - + 79 col1
----
6781

query I rowsort
SELECT + + NULLIF ( 61, - - 26 )
----
61

query I rowsort
SELECT - ( 12 ) + - ( + + 10 )
----
-22

query I rowsort
SELECT - + 98 * + ( + + 11 )
----
-1078

query II rowsort
SELECT + 93, - 73 * + 29 + + 25 AS col2
----
93
-2092

query I rowsort
SELECT DISTINCT - 87 * 94 - + - 99
----
-8079

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

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

query I rowsort
SELECT - 42 + + - 48 + - - 18 * - + 35
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT DISTINCT ( - + COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5098
SELECT DISTINCT ( - + COUNT ( * ) ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5099
SELECT - 71 - - 65 * 48 + + 84 col0, 55 * NULLIF ( + COUNT( * ), - 42 - + + 92 - + COUNT( * ) ) DIV 44 + + + 46 AS col0
----
3133
47

skipif mysql # not compatible
query II rowsort label-5099
SELECT - 71 - - 65 * 48 + + 84 col0, 55 * NULLIF ( + COUNT ( * ), - 42 - + + 92 - + COUNT ( * ) ) / 44 + + + 46 AS col0
----
3133
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5100
SELECT ALL + 48 DIV ( - 38 ) * 20 + - - 75 DIV 53 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL + 48 / ( - 38 ) * 20 + - - 75 / 53 AS col2
----
-19

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

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

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

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

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

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

query I rowsort
SELECT ALL ( + - CASE + 23 WHEN - + 83 / 30 THEN NULL ELSE + 55 END )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT + ( - + 39 ) - - + MIN( - - 41 )
----
2

skipif mysql # not compatible
query I rowsort label-5105
SELECT + ( - + 39 ) - - + MIN ( - - 41 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5106
SELECT + 76 * CAST( 57 AS SIGNED ) * - - 8 + 99
----
34755

skipif mysql # not compatible
query I rowsort label-5106
SELECT + 76 * CAST ( 57 AS INTEGER ) * - - 8 + 99
----
34755

query I rowsort
SELECT - 40 * - 20 AS col2
----
800

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

skipif mysql # not compatible
query I rowsort label-5108
SELECT + 46 * - AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5109
SELECT + + NULLIF ( + - 59, - 88 ) + + - 62 + - COUNT( * ) DIV - 11
----
-121

skipif mysql # not compatible
query I rowsort label-5109
SELECT + + NULLIF ( + - 59, - 88 ) + + - 62 + - COUNT ( * ) / - 11
----
-121

query I rowsort
SELECT ALL + 9 + 30
----
39

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

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL - COUNT ( * ) + + 86 AS col0
----
85

query II rowsort
SELECT + - 27 AS col0, 52
----
-27
52

onlyif mysql # DIV for integer division: 
query I rowsort label-5113
SELECT + 82 DIV - 9
----
-9

skipif mysql # not compatible
query I rowsort label-5113
SELECT + 82 / - 9
----
-9

query I rowsort
SELECT - - 87 * - 90 + + 16
----
-7814

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5115
SELECT + 95 * CAST( NULL AS SIGNED ) / + 2, COALESCE ( - 41, 3 ) AS col0
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-5115
SELECT + 95 * CAST ( NULL AS INTEGER ) / + 2, COALESCE ( - 41, 3 ) AS col0
----
NULL
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5116
SELECT - + COUNT( * ) + + + MIN( DISTINCT + 38 ) + + 84 + + 48 DIV - 91 + 35 * + 15 AS col0
----
646

skipif mysql # not compatible
query I rowsort label-5116
SELECT - + COUNT ( * ) + + + MIN ( DISTINCT + 38 ) + + 84 + + 48 / - 91 + 35 * + 15 AS col0
----
646

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT COUNT( ALL 75 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5117
SELECT COUNT ( ALL 75 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5118
SELECT + - 27 * 36 DIV - NULLIF ( + 79, - + 2 - - - ( + 47 ) + + NULLIF ( 54, + 11 ) + - 33 * - COUNT( * ) ) * COUNT( * ) + + - 61 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-5118
SELECT + - 27 * 36 / - NULLIF ( + 79, - + 2 - - - ( + 47 ) + + NULLIF ( 54, + 11 ) + - 33 * - COUNT ( * ) ) * COUNT ( * ) + + - 61 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT COUNT( * ) * + - NULLIF ( + - 70, - 57 + 77 )
----
70

skipif mysql # not compatible
query I rowsort label-5119
SELECT COUNT ( * ) * + - NULLIF ( + - 70, - 57 + 77 )
----
70

query I rowsort
SELECT 72 * - 41 * 85 col1
----
-250920

query I rowsort
SELECT 52 + - COALESCE ( 19, - 14 * + - 96 * - + 90 ) * - 45 AS col0
----
907

query II rowsort
SELECT 62 + + 72, 72 * + COALESCE ( - + 48, - 18 * 63 ) AS col2
----
134
-3456

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5123
SELECT + CAST( NULL AS DECIMAL ) * + 80 * - - 46 * - 16 + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5123
SELECT + CAST ( NULL AS REAL ) * + 80 * - - 46 * - 16 + 61 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT COUNT( * ) + + 65 + - 18
----
48

skipif mysql # not compatible
query I rowsort label-5124
SELECT COUNT ( * ) + + 65 + - 18
----
48

query I rowsort
SELECT ALL + 18 + - 26 AS col1
----
-8

query I rowsort
SELECT 77 * + - ( + - 8 )
----
616

query I rowsort
SELECT 70 * - 97 AS col0
----
-6790

query I rowsort
SELECT ALL + - 0 * + 28
----
0

query I rowsort
SELECT + 53 * + + 47 AS col2
----
2491

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5131
SELECT DISTINCT - CAST( + - SUM( DISTINCT + 27 ) AS SIGNED ) * + 78 - 20
----
2086

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT - CAST ( + - SUM ( DISTINCT + 27 ) AS INTEGER ) * + 78 - 20
----
2086

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT ALL COUNT( ALL - CASE - + ( 97 ) WHEN + - 66 THEN 3 * - + 23 END )
----
0

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL COUNT ( ALL - CASE - + ( 97 ) WHEN + - 66 THEN 3 * - + 23 END )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT COUNT( ALL - 44 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5133
SELECT COUNT ( ALL - 44 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT DISTINCT 14 - + + 12 * MIN( ALL - - NULLIF ( 56, 37 + - 61 ) ) - + COALESCE ( ( ( 17 ) ), + 54 - - + 47 + - 96 * - 23, 85 + + + 84 * + 38, 12 ) AS col0
----
-675

skipif mysql # not compatible
query I rowsort label-5134
SELECT DISTINCT 14 - + + 12 * MIN ( ALL - - NULLIF ( 56, 37 + - 61 ) ) - + COALESCE ( ( ( 17 ) ), + 54 - - + 47 + - 96 * - 23, 85 + + + 84 * + 38, 12 ) AS col0
----
-675

query I rowsort
SELECT DISTINCT + + 58 * - 73
----
-4234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5136
SELECT 11 DIV 53 * + COUNT( ALL + 58 ) - 13
----
-13

skipif mysql # not compatible
query I rowsort label-5136
SELECT 11 / 53 * + COUNT ( ALL + 58 ) - 13
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-5137
SELECT 6 DIV - 64 + 51 * + - 9 - + + 33 + ( - + 65 )
----
-557

skipif mysql # not compatible
query I rowsort label-5137
SELECT 6 / - 64 + 51 * + - 9 - + + 33 + ( - + 65 )
----
-557

onlyif mysql # DIV for integer division: 
query I rowsort label-5138
SELECT COALESCE ( 7, + 13 + + 98 * - + 4, 73 ) DIV 75 * + 9 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5138
SELECT COALESCE ( 7, + 13 + + 98 * - + 4, 73 ) / 75 * + 9 AS col2
----
0

query I rowsort
SELECT ALL 66 * 50 AS col1
----
3300

query I rowsort
SELECT 82 * - 61 AS col1
----
-5002

query I rowsort
SELECT 56 + + 72
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT 62 / CASE + COUNT( * ) WHEN 68 THEN + + 38 + + CASE 88 WHEN - 64 + - 89 + + - 33 + 28 * + 74 THEN + + 90 ELSE + - 24 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-5142
SELECT 62 / CASE + COUNT ( * ) WHEN 68 THEN + + 38 + + CASE 88 WHEN - 64 + - 89 + + - 33 + 28 * + 74 THEN + + 90 ELSE + - 24 END END
----
NULL

query I rowsort
SELECT ALL 30 + + 25 + - 95 + - - 70 * 6
----
380

query I rowsort
SELECT DISTINCT 24 * + - 68 AS col0
----
-1632

query I rowsort
SELECT DISTINCT 17 + - - 24 col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT - COUNT( - - 84 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5146
SELECT - COUNT ( - - 84 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5147
SELECT 25 AS col1, ( - - CASE MIN( + 14 ) WHEN CASE - + 55 WHEN - + COUNT( * ) THEN COALESCE ( - 87, + MIN( DISTINCT - 37 ), + + 39 ) / - MAX( - 18 ) + - 87 / + 41 END * - 15 THEN MAX( + - 46 ) WHEN - MAX( ALL - 79 ) + + COALESCE ( + COUNT( ALL 64 ) + CASE 99 - COUNT( * ) / + 63 WHEN COALESCE ( - CASE 38 WHEN 83 * MIN( DISTINCT + 70 ) + 10 THEN 79 * 49 ELSE 14 + 64 END, 29 * + 26, 16 * + 69, + 80 * - 47 ) * + 30 THEN MAX( ALL 78 ) + - 56 ELSE NULL END, 0 ) THEN NULL WHEN + MAX( ALL + 17 ) THEN NULL ELSE 9 END ) AS col1
----
25
9

skipif mysql # not compatible
query II rowsort label-5147
SELECT 25 AS col1, ( - - CASE MIN ( + 14 ) WHEN CASE - + 55 WHEN - + COUNT ( * ) THEN COALESCE ( - 87, + MIN ( DISTINCT - 37 ), + + 39 ) / - MAX ( - 18 ) + - 87 / + 41 END * - 15 THEN MAX ( + - 46 ) WHEN - MAX ( ALL - 79 ) + + COALESCE ( + COUNT ( ALL 64 ) + CASE 99 - COUNT ( * ) / + 63 WHEN COALESCE ( - CASE 38 WHEN 83 * MIN ( DISTINCT + 70 ) + 10 THEN 79 * 49 ELSE 14 + 64 END, 29 * + 26, 16 * + 69, + 80 * - 47 ) * + 30 THEN MAX ( ALL 78 ) + - 56 ELSE NULL END, 0 ) THEN NULL WHEN + MAX ( ALL + 17 ) THEN NULL ELSE 9 END ) AS col1
----
25
9

query I rowsort
SELECT 22 * 74 AS col2
----
1628

query I rowsort
SELECT DISTINCT + 13 * 18 AS col2
----
234

query I rowsort
SELECT ALL 16 + + + 61
----
77

query I rowsort
SELECT NULLIF ( + 98, + 33 )
----
98

query I rowsort
SELECT ALL + 92 - - - 62 + + + 2 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT + CASE - 75 WHEN + - ( 25 ) THEN NULL WHEN - 55 * - - 15 THEN + 54 WHEN - + COUNT( * ) THEN 2 + + 95 * + COUNT( * ) - + COUNT( * ) ELSE - 48 END - + + SUM( ALL + 49 ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-5153
SELECT + CASE - 75 WHEN + - ( 25 ) THEN NULL WHEN - 55 * - - 15 THEN + 54 WHEN - + COUNT ( * ) THEN 2 + + 95 * + COUNT ( * ) - + COUNT ( * ) ELSE - 48 END - + + SUM ( ALL + 49 ) col2
----
-97

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

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

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

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

query I rowsort
SELECT + 28 + + 48
----
76

query II rowsort
SELECT 59 AS col2, 31 AS col0
----
59
31

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT 57 + CASE 35 WHEN - + 93 * - COUNT( * ) THEN NULL WHEN + - 54 THEN + ( COUNT( * ) ) * + + MIN( ALL 38 ) ELSE NULL END * - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5160
SELECT 57 + CASE 35 WHEN - + 93 * - COUNT ( * ) THEN NULL WHEN + - 54 THEN + ( COUNT ( * ) ) * + + MIN ( ALL 38 ) ELSE NULL END * - 8
----
NULL

query I rowsort
SELECT - 34 - 28 AS col1
----
-62

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

skipif mysql # not compatible
query I rowsort label-5162
SELECT - 77 + - + 15 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5163
SELECT - 86 * - ( - MIN( ALL - 20 ) ) * - CAST( - + ( 51 ) AS SIGNED )
----
87720

skipif mysql # not compatible
query I rowsort label-5163
SELECT - 86 * - ( - MIN ( ALL - 20 ) ) * - CAST ( - + ( 51 ) AS INTEGER )
----
87720

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT - + 24 * CAST( NULL AS SIGNED ) - - ( 58 ) + 71 / - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5165
SELECT - + 24 * CAST ( NULL AS INTEGER ) - - ( 58 ) + 71 / - 33
----
NULL

query I rowsort
SELECT ALL 25 * + - 47 AS col1
----
-1175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5167
SELECT COALESCE ( + CASE - 39 WHEN + 12 * + 16 + + 70 / - + 86 + + 92 + + 43 THEN NULL WHEN - 44 THEN - + 67 END, 76 * - - ( - COALESCE ( - CAST( - NULLIF ( 28, - 69 ) AS SIGNED ), + 24 ) ) + + 21 + - COUNT( * ) + 85, + 47 + 45 ) AS col0
----
-2023

skipif mysql # not compatible
query I rowsort label-5167
SELECT COALESCE ( + CASE - 39 WHEN + 12 * + 16 + + 70 / - + 86 + + 92 + + 43 THEN NULL WHEN - 44 THEN - + 67 END, 76 * - - ( - COALESCE ( - CAST ( - NULLIF ( 28, - 69 ) AS INTEGER ), + 24 ) ) + + 21 + - COUNT ( * ) + 85, + 47 + 45 ) AS col0
----
-2023

query II rowsort
SELECT + 46 AS col1, NULLIF ( + 27, + 18 ) + - 89 AS col2
----
46
-62

query I rowsort
SELECT ALL - 79 * + 73 + + 63
----
-5704

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT ALL 69 * ( - 96 ) * COUNT( * ) + + CASE + - 77 WHEN + 58 + 47 / - + 87 THEN NULL WHEN + 51 THEN + - 27 * 69 * + 7 * COUNT( * ) ELSE COUNT( * ) + 81 END * - + 63 + - 80 + + 89
----
-11781

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL 69 * ( - 96 ) * COUNT ( * ) + + CASE + - 77 WHEN + 58 + 47 / - + 87 THEN NULL WHEN + 51 THEN + - 27 * 69 * + 7 * COUNT ( * ) ELSE COUNT ( * ) + 81 END * - + 63 + - 80 + + 89
----
-11781

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT ALL COALESCE ( - 58, COALESCE ( + 66, - 41 ) ) * - + 42 * - ( + 99 ) + MIN( DISTINCT + 45 )
----
-241119

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL COALESCE ( - 58, COALESCE ( + 66, - 41 ) ) * - + 42 * - ( + 99 ) + MIN ( DISTINCT + 45 )
----
-241119

onlyif mysql # aggregate syntax: 
query II rowsort label-5172
SELECT MIN( DISTINCT 78 ) AS col0, 35
----
78
35

skipif mysql # not compatible
query II rowsort label-5172
SELECT MIN ( DISTINCT 78 ) AS col0, 35
----
78
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5173
SELECT + CASE 63 WHEN - 66 THEN + ( + COALESCE ( - MAX( - + 44 ), 7 + - - 79 * + 60, COUNT( * ) * + - 42 - 60 ) ) + - 12 DIV + + 97 * - + 84 WHEN - 49 THEN + 50 WHEN - 69 DIV + 28 THEN COUNT( * ) ELSE - 22 + 15 * 12 END + 39
----
197

skipif mysql # not compatible
query I rowsort label-5173
SELECT + CASE 63 WHEN - 66 THEN + ( + COALESCE ( - MAX ( - + 44 ), 7 + - - 79 * + 60, COUNT ( * ) * + - 42 - 60 ) ) + - 12 / + + 97 * - + 84 WHEN - 49 THEN + 50 WHEN - 69 / + 28 THEN COUNT ( * ) ELSE - 22 + 15 * 12 END + 39
----
197

query I rowsort
SELECT ALL 6 * + 73 + 77
----
515

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT SUM( ALL + 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5175
SELECT SUM ( ALL + 61 ) AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5176
SELECT + CASE + ( - + 69 ) WHEN - 96 DIV - 11 * + - 3 + 67 * + COALESCE ( + - ( + - 3 ), - - CAST( 29 AS SIGNED ), + 57 * + COUNT( * ) ) DIV - + 5 + - - 28 THEN NULL ELSE CAST( + 1 AS SIGNED ) DIV 29 - - 94 - + 87 END AS col0
----
7

skipif mysql # not compatible
query I rowsort label-5176
SELECT + CASE + ( - + 69 ) WHEN - 96 / - 11 * + - 3 + 67 * + COALESCE ( + - ( + - 3 ), - - CAST ( 29 AS INTEGER ), + 57 * + COUNT ( * ) ) / - + 5 + - - 28 THEN NULL ELSE CAST ( + 1 AS INTEGER ) / 29 - - 94 - + 87 END AS col0
----
7

query I rowsort
SELECT + 17 * + 59
----
1003

query I rowsort
SELECT + 35 + - 79 col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT 18 * 80 / - MAX( ALL + 25 ) * - 22 - CASE + 7 WHEN + + 28 * + 95 THEN - + 2 WHEN - COUNT( * ) * - + 3 * - - 39 + + - 86 + + + COUNT( * ) THEN NULL END + - - 35 * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5179
SELECT 18 * 80 / - MAX ( ALL + 25 ) * - 22 - CASE + 7 WHEN + + 28 * + 95 THEN - + 2 WHEN - COUNT ( * ) * - + 3 * - - 39 + + - 86 + + + COUNT ( * ) THEN NULL END + - - 35 * - 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT ALL NULLIF ( 63, + + 64 + - + 5 - - - 97 ) * - SUM( - 12 ) * - 73 AS col2
----
-55188

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL NULLIF ( 63, + + 64 + - + 5 - - - 97 ) * - SUM ( - 12 ) * - 73 AS col2
----
-55188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5181
SELECT + CASE 39 WHEN + 44 THEN + + 45 * - + 60 * - - 95 * + - 91 * - + CAST( NULL AS SIGNED ) - - COUNT( * ) ELSE - 6 END col2
----
-6

skipif mysql # not compatible
query I rowsort label-5181
SELECT + CASE 39 WHEN + 44 THEN + + 45 * - + 60 * - - 95 * + - 91 * - + CAST ( NULL AS INTEGER ) - - COUNT ( * ) ELSE - 6 END col2
----
-6

query II rowsort
SELECT ALL + 32, 32
----
32
32

query I rowsort
SELECT ALL 75 - - 83
----
158

query II rowsort
SELECT + 87 * 17 AS col1, 83 col0
----
1479
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5185
SELECT + 5 + + ( + MAX( - 25 ) ), + 85 * - 65 * + 72 AS col1
----
-20
-397800

skipif mysql # not compatible
query II rowsort label-5185
SELECT + 5 + + ( + MAX ( - 25 ) ), + 85 * - 65 * + 72 AS col1
----
-20
-397800

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

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

query I rowsort
SELECT ALL - 52 * ( - 35 )
----
1820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5188
SELECT + + 41 + - - 17 DIV COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-5188
SELECT + + 41 + - - 17 / COUNT ( * ) AS col2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5189
SELECT - - CAST( NULL AS SIGNED ), - NULLIF ( + CAST( NULL AS SIGNED ), 93 ) * 87 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5189
SELECT - - CAST ( NULL AS INTEGER ), - NULLIF ( + CAST ( NULL AS INTEGER ), 93 ) * 87 AS col2
----
NULL
NULL

query I rowsort
SELECT + - 97 * 47
----
-4559

query II rowsort
SELECT - 60 col0, 30 * + - 17 * 1 AS col2
----
-60
-510

query II rowsort
SELECT - 82 AS col2, 42
----
-82
42

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT - - SUM( - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-5195
SELECT - - SUM ( - 68 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT ALL CASE 25 WHEN COUNT( * ) THEN NULL WHEN 66 * - 17 THEN 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL CASE 25 WHEN COUNT ( * ) THEN NULL WHEN 66 * - 17 THEN 51 END
----
NULL

query I rowsort
SELECT - + COALESCE ( - 91, - - 41 )
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-5198
SELECT ALL 78 col0, - 73 DIV + + 36
----
78
-2

skipif mysql # not compatible
query II rowsort label-5198
SELECT ALL 78 col0, - 73 / + + 36
----
78
-2

query I rowsort
SELECT - 78 - - 24 AS col0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-5200
SELECT DISTINCT 22 DIV 6 * - 43 + + 12 AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT 22 / 6 * - 43 + + 12 AS col2
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5201
SELECT ALL 47 DIV - MAX( + 61 ) + + 54 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5201
SELECT ALL 47 / - MAX ( + 61 ) + + 54 AS col0
----
54

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5203
SELECT DISTINCT 59 DIV - 73 + - - 79 * + 62 AS col1
----
4898

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT 59 / - 73 + - - 79 * + 62 AS col1
----
4898

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5204
SELECT + 84 DIV + + CAST( + 24 AS SIGNED ) - + 70 col0
----
-67

skipif mysql # not compatible
query I rowsort label-5204
SELECT + 84 / + + CAST ( + 24 AS INTEGER ) - + 70 col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT + COUNT( ALL + 34 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5205
SELECT + COUNT ( ALL + 34 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5206
SELECT ALL 2 DIV + 27 + + - 93
----
-93

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL 2 / + 27 + + - 93
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-5207
SELECT ( - 59 ) AS col2, 17 * + 48 - - COUNT( * ) AS col2
----
-59
817

skipif mysql # not compatible
query II rowsort label-5207
SELECT ( - 59 ) AS col2, 17 * + 48 - - COUNT ( * ) AS col2
----
-59
817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5208
SELECT + COUNT( NULLIF ( + + 53, - ( - + 51 ) * + 31 * - 63 + - CAST( - - 78 AS DECIMAL ) - CAST( NULL AS SIGNED ) ) ) AS col1, + 13 AS col0
----
1
13

skipif mysql # not compatible
query II rowsort label-5208
SELECT + COUNT ( NULLIF ( + + 53, - ( - + 51 ) * + 31 * - 63 + - CAST ( - - 78 AS REAL ) - CAST ( NULL AS INTEGER ) ) ) AS col1, + 13 AS col0
----
1
13

query I rowsort
SELECT - 94 + + 33
----
-61

query I rowsort
SELECT ALL - 31 * - 5 * + 68
----
10540

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5211
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 48 - ( - + 45 ) - 15 * + 96 * + 47, - 1 AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5211
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 48 - ( - + 45 ) - 15 * + 96 * + 47, - 1 AS col1
----
NULL
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5212
SELECT DISTINCT - 14 * CAST( NULL AS SIGNED ) col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5212
SELECT DISTINCT - 14 * CAST ( NULL AS INTEGER ) col1, COUNT ( * )
----
NULL
1

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

query II rowsort
SELECT + 64 * + 51 AS col0, 44 * + 36 + + + 15 col0
----
3264
1599

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT - 83 * - MIN( DISTINCT - 6 ) + + 71 AS col1
----
-427

skipif mysql # not compatible
query I rowsort label-5215
SELECT - 83 * - MIN ( DISTINCT - 6 ) + + 71 AS col1
----
-427

onlyif mysql # DIV for integer division: 
query I rowsort label-5216
SELECT ALL ( + 36 ) DIV + 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL ( + 36 ) / + 39 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5217
SELECT - 10 * ( 54 ) + - CASE - - 39 WHEN - - 81 THEN + - CAST( + - 92 AS DECIMAL ) END / - + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-5217
SELECT - 10 * ( 54 ) + - CASE - - 39 WHEN - - 81 THEN + - CAST ( + - 92 AS REAL ) END / - + 48
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5218
SELECT + 80 * 10 AS col1, - COALESCE ( + 53, - - 84 - - 86 * + COALESCE ( + + 6, - 43 ) DIV - + 85 ) AS col2
----
800
-53

skipif mysql # not compatible
query II rowsort label-5218
SELECT + 80 * 10 AS col1, - COALESCE ( + 53, - - 84 - - 86 * + COALESCE ( + + 6, - 43 ) / - + 85 ) AS col2
----
800
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5219
SELECT DISTINCT + 98 * COUNT( * ) + 89 DIV + + COUNT( DISTINCT 49 ) + - 10
----
177

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT + 98 * COUNT ( * ) + 89 / + + COUNT ( DISTINCT 49 ) + - 10
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT ALL CASE + - 84 WHEN + 17 THEN + + 19 WHEN 2 + 85 + + 28 * + 23 / - 73 * - 73 * COUNT( * ) THEN NULL WHEN + 43 THEN - 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL CASE + - 84 WHEN + 17 THEN + + 19 WHEN 2 + 85 + + 28 * + 23 / - 73 * - 73 * COUNT ( * ) THEN NULL WHEN + 43 THEN - 28 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5221
SELECT ALL + 71 DIV + 4 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL + 71 / + 4 AS col0
----
17

query I rowsort
SELECT + - 60 * + + 43 * + + 9
----
-23220

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT ALL - 79 * - + COUNT( * ) + + + 4
----
83

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL - 79 * - + COUNT ( * ) + + + 4
----
83

query II rowsort
SELECT 17 - - 61 * - 31 AS col0, ( + - 20 ) AS col1
----
-1874
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-5226
SELECT + 73 DIV 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5226
SELECT + 73 / 98 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5227
SELECT - + MAX( DISTINCT + 72 ), - ( + 56 ) AS col2
----
-72
-56

skipif mysql # not compatible
query II rowsort label-5227
SELECT - + MAX ( DISTINCT + 72 ), - ( + 56 ) AS col2
----
-72
-56

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

skipif mysql # not compatible
query I rowsort label-5228
SELECT 66 * 82 * - + ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 65 + 31 + + NULLIF ( - 15, - 59 / - 67 + - 44 + + - 61 / 72 + + - 42 )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5230
SELECT 96 + + COUNT( * ) AS col1, COUNT( + + 79 ) - + COUNT( * ) AS col1
----
97
0

skipif mysql # not compatible
query II rowsort label-5230
SELECT 96 + + COUNT ( * ) AS col1, COUNT ( + + 79 ) - + COUNT ( * ) AS col1
----
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT + COUNT( * ) + - 77 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-5231
SELECT + COUNT ( * ) + - 77 AS col1
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5232
SELECT ALL 92 + + COUNT( * ) + - 96 * 3 DIV - + 26 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL 92 + + COUNT ( * ) + - 96 * 3 / - + 26 AS col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT + MIN( - ( + 10 ) ) + - 44 - - 76
----
22

skipif mysql # not compatible
query I rowsort label-5233
SELECT + MIN ( - ( + 10 ) ) + - 44 - - 76
----
22

query I rowsort
SELECT ALL + 53 + 44 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT ALL + COUNT( 12 ) + 5 + - MIN( ALL + 1 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL + COUNT ( 12 ) + 5 + - MIN ( ALL + 1 ) AS col2
----
5

query II rowsort
SELECT 98, 23 + + 23 AS col1
----
98
46

query I rowsort
SELECT ALL 66 + - 23 AS col0
----
43

query I rowsort
SELECT 81 + 93 - + ( - 97 ) * NULLIF ( - ( - 54 ), + 19 + ( - - 20 ) )
----
5412

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5239
SELECT DISTINCT 1 + 32 - 82 DIV + 75 * - COUNT( ALL - - 64 )
----
34

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT 1 + 32 - 82 / + 75 * - COUNT ( ALL - - 64 )
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-5240
SELECT 17, + 59 DIV 2 + - - 40 AS col2
----
17
69

skipif mysql # not compatible
query II rowsort label-5240
SELECT 17, + 59 / 2 + - - 40 AS col2
----
17
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5241
SELECT - 17 DIV - ( + 99 ) + + 64 * COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-5241
SELECT - 17 / - ( + 99 ) + + 64 * COUNT ( * )
----
64

query I rowsort
SELECT 10 + 81 AS col2
----
91

query I rowsort
SELECT 87 + + 16 + - ( NULLIF ( - - 72, - 62 * + 65 ) ) * 85
----
-6017

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

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

query I rowsort
SELECT 96 * 61 AS col1
----
5856

onlyif mysql # DIV for integer division: 
query I rowsort label-5246
SELECT DISTINCT + 54 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT + 54 / - 55
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5247
SELECT ALL + 73 DIV - + 41
----
-1

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL + 73 / - + 41
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5248
SELECT DISTINCT - 83, ( - 31 ) + - - COUNT( * ) AS col1
----
-83
-30

skipif mysql # not compatible
query II rowsort label-5248
SELECT DISTINCT - 83, ( - 31 ) + - - COUNT ( * ) AS col1
----
-83
-30

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

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

query I rowsort
SELECT 96 * + 43 AS col1
----
4128

query I rowsort
SELECT 31 + 36
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-5252
SELECT DISTINCT - ( + 18 ) * + COUNT( * ) AS col2, 74 AS col2
----
-18
74

skipif mysql # not compatible
query II rowsort label-5252
SELECT DISTINCT - ( + 18 ) * + COUNT ( * ) AS col2, 74 AS col2
----
-18
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT 32 - - + 57 + MAX( 73 ) * + COUNT( * ) * - 42 AS col2
----
-2977

skipif mysql # not compatible
query I rowsort label-5253
SELECT 32 - - + 57 + MAX ( 73 ) * + COUNT ( * ) * - 42 AS col2
----
-2977

query I rowsort
SELECT 76 * + 28
----
2128

query I rowsort
SELECT ALL - 69 * 28
----
-1932

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5256
SELECT ALL - - COALESCE ( + 61, + CAST( - + 31 AS DECIMAL ) - - - 27, 66 ) * - 87 * - CAST( NULL AS SIGNED ), 64 + - - NULLIF ( - - 12, 12 ) * + 91
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5256
SELECT ALL - - COALESCE ( + 61, + CAST ( - + 31 AS REAL ) - - - 27, 66 ) * - 87 * - CAST ( NULL AS INTEGER ), 64 + - - NULLIF ( - - 12, 12 ) * + 91
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT ALL - COALESCE ( + - 14, + 89 + + 37, + 64, + COUNT( * ) )
----
14

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL - COALESCE ( + - 14, + 89 + + 37, + 64, + COUNT ( * ) )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT CASE 87 WHEN + 78 + - 29 THEN - - 3 * 89 + + + 77 * - 98 + - 24 * 7 * 72 ELSE NULL END * + + 20 * - MIN( DISTINCT - 39 ) * + 38 * - - 54 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5258
SELECT CASE 87 WHEN + 78 + - 29 THEN - - 3 * 89 + + + 77 * - 98 + - 24 * 7 * 72 ELSE NULL END * + + 20 * - MIN ( DISTINCT - 39 ) * + 38 * - - 54 * + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5259
SELECT DISTINCT - - 86 + + 27 + + + 15 * 99 * 92 DIV 81 * ( 68 )
----
114761

skipif mysql # not compatible
query I rowsort label-5259
SELECT DISTINCT - - 86 + + 27 + + + 15 * 99 * 92 / 81 * ( 68 )
----
114761

query I rowsort
SELECT ALL 97 + 73 AS col1
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5261
SELECT 34 DIV ( - + 20 ) + - ( - 27 ) - 92 * - 60 * - COUNT( * ) col2, 64 + COUNT( * )
----
-5494
65

skipif mysql # not compatible
query II rowsort label-5261
SELECT 34 / ( - + 20 ) + - ( - 27 ) - 92 * - 60 * - COUNT ( * ) col2, 64 + COUNT ( * )
----
-5494
65

query I rowsort
SELECT - ( - + 90 ) + 97 + + 25 * + 97
----
2612

query II rowsort
SELECT DISTINCT 7, 5 AS col2
----
7
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5264
SELECT DISTINCT - COUNT( * ) / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT - COUNT ( * ) / CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT ALL + 93 + - COUNT( * ) * - + 21 * 41 * COUNT( * ) AS col2
----
954

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL + 93 + - COUNT ( * ) * - + 21 * 41 * COUNT ( * ) AS col2
----
954

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

skipif mysql # not compatible
query I rowsort label-5267
SELECT + 46 / + 32
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5268
SELECT ALL + 82 + - - CAST( - 94 AS SIGNED ) AS col0, - CASE - 3 WHEN - 50 THEN + 93 ELSE NULL END + - COUNT( * ) AS col0
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-5268
SELECT ALL + 82 + - - CAST ( - 94 AS INTEGER ) AS col0, - CASE - 3 WHEN - 50 THEN + 93 ELSE NULL END + - COUNT ( * ) AS col0
----
-12
NULL

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

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT + 65 / COUNT ( * )
----
65

query II rowsort
SELECT - 86, + NULLIF ( 94, + - 65 ) AS col1
----
-86
94

query I rowsort
SELECT ALL 43 * 2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT 55 + SUM( ALL + - 64 ) + + 73 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5272
SELECT 55 + SUM ( ALL + - 64 ) + + 73 AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5273
SELECT MIN( ALL 30 ) * - - CAST( 27 AS SIGNED ) * 58 AS col1
----
46980

skipif mysql # not compatible
query I rowsort label-5273
SELECT MIN ( ALL 30 ) * - - CAST ( 27 AS INTEGER ) * 58 AS col1
----
46980

query II rowsort
SELECT ALL 60 + + 80 AS col1, - 79 AS col1
----
140
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT 16 * ( - MAX( + - 17 ) ) AS col0
----
272

skipif mysql # not compatible
query I rowsort label-5275
SELECT 16 * ( - MAX ( + - 17 ) ) AS col0
----
272

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5276
SELECT 90 - + + 39 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT 90 - + + 39 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5277
SELECT DISTINCT COUNT( * ) * + ( + 90 ) DIV - 28 AS col0, 8 + 29
----
-3
37

skipif mysql # not compatible
query II rowsort label-5277
SELECT DISTINCT COUNT ( * ) * + ( + 90 ) / - 28 AS col0, 8 + 29
----
-3
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5278
SELECT + 25 * COALESCE ( + - 38, + 65 DIV - - 5 + + 70 + - 76 + + 2 DIV 22 + - 78 + - + 50 DIV - 46, + MAX( ( 45 ) ) DIV + 36 * 29 - + - COUNT( * ) ) + - ( + 0 ) * - 23
----
-950

skipif mysql # not compatible
query I rowsort label-5278
SELECT + 25 * COALESCE ( + - 38, + 65 / - - 5 + + 70 + - 76 + + 2 / 22 + - 78 + - + 50 / - 46, + MAX ( ( 45 ) ) / + 36 * 29 - + - COUNT ( * ) ) + - ( + 0 ) * - 23
----
-950

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

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

query I rowsort
SELECT 35 - - 53 + 54 col1
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5281
SELECT - 1 * + NULLIF ( - - 67, - 9 ) * + 62 AS col0, + COUNT( * ) DIV + 69
----
-4154
0

skipif mysql # not compatible
query II rowsort label-5281
SELECT - 1 * + NULLIF ( - - 67, - 9 ) * + 62 AS col0, + COUNT ( * ) / + 69
----
-4154
0

query I rowsort
SELECT 47 + 36 + + 32 * 79
----
2611

query I rowsort
SELECT ALL 84 + - ( - + 53 )
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5284
SELECT NULLIF ( - 59, + AVG ( - 32 ) ), + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) * CASE + 32 WHEN + 20 THEN NULL ELSE + 97 * + + 5 END * - - COALESCE ( - 50, - + 94 ) + ( - - 60 ) col2
----
-59
60

skipif mysql # not compatible
query II rowsort label-5284
SELECT NULLIF ( - 59, + AVG ( - 32 ) ), + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) * CASE + 32 WHEN + 20 THEN NULL ELSE + 97 * + + 5 END * - - COALESCE ( - 50, - + 94 ) + ( - - 60 ) col2
----
-59
60

query II rowsort
SELECT ALL 98 + CASE 11 WHEN 58 THEN NULL ELSE 67 END, 54 * + ( + 53 ) col1
----
165
2862

onlyif mysql # DIV for integer division: 
query I rowsort label-5286
SELECT DISTINCT + 21 DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT + 21 / - 41
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5288
SELECT - 17 + + + 63 AS col0, 28 + 23 * + - ( - CAST( + 98 AS SIGNED ) ) AS col1
----
46
2282

skipif mysql # not compatible
query II rowsort label-5288
SELECT - 17 + + + 63 AS col0, 28 + 23 * + - ( - CAST ( + 98 AS INTEGER ) ) AS col1
----
46
2282

query I rowsort
SELECT - 25 * + ( + 77 ) + - - 32 * + - 14 AS col1
----
-2373

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5290
SELECT ALL - - 8 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL - - 8 + + - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT ALL + 36 + + - COUNT( - - 12 )
----
35

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL + 36 + + - COUNT ( - - 12 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT - - 25 * 68 + - 18 + - 57 + - 97 * + 93 * 56 + + COUNT( * )
----
-503550

skipif mysql # not compatible
query I rowsort label-5293
SELECT - - 25 * 68 + - 18 + - 57 + - 97 * + 93 * 56 + + COUNT ( * )
----
-503550

query I rowsort
SELECT DISTINCT ( - - 60 ) col2
----
60

query I rowsort
SELECT - 71 * + - 34 AS col0
----
2414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5296
SELECT + - CAST( + + 59 AS SIGNED ) + COUNT( * ) + - NULLIF ( + 50, - 83 ) * - + 14 - + 34 + COUNT( * )
----
609

skipif mysql # not compatible
query I rowsort label-5296
SELECT + - CAST ( + + 59 AS INTEGER ) + COUNT ( * ) + - NULLIF ( + 50, - 83 ) * - + 14 - + 34 + COUNT ( * )
----
609

query I rowsort
SELECT + 31 + - - 48 * 98 AS col0
----
4735

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

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

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

skipif mysql # not compatible
query I rowsort label-5299
SELECT + 24 / - 41
----
0

query I rowsort
SELECT ALL - 72 * + 1 col1
----
-72

query I rowsort
SELECT ALL ( - NULLIF ( + 99, 27 * + ( + 44 ) ) )
----
-99

query I rowsort
SELECT DISTINCT - 55 * 53 AS col0
----
-2915

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5304
SELECT - 52 DIV 92 * COUNT( * ), + 31 AS col1
----
0
31

skipif mysql # not compatible
query II rowsort label-5304
SELECT - 52 / 92 * COUNT ( * ), + 31 AS col1
----
0
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ( CASE - - COUNT( * ) WHEN + - MAX( - 78 ) * + 26 + 79 * + 89 THEN NULL WHEN + 33 * - 80 THEN NULL WHEN + 10 THEN NULL ELSE - 85 END )
----
-85

skipif mysql # not compatible
query I rowsort label-5305
SELECT ( CASE - - COUNT ( * ) WHEN + - MAX ( - 78 ) * + 26 + 79 * + 89 THEN NULL WHEN + 33 * - 80 THEN NULL WHEN + 10 THEN NULL ELSE - 85 END )
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-5306
SELECT - 71 DIV - 53 + 50 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-5306
SELECT - 71 / - 53 + 50 AS col2
----
51

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

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

query I rowsort
SELECT ALL + 11 * 94 * - 64 + + 77 + + 28 AS col2
----
-66071

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5309
SELECT DISTINCT + CAST( + + 99 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-5309
SELECT DISTINCT + CAST ( + + 99 AS INTEGER )
----
99

query I rowsort
SELECT + 98 * 38 * + - 76
----
-283024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5311
SELECT ALL - CAST( + - 11 AS SIGNED ) * - + COUNT( * ) / - 96 * + 97 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL - CAST ( + - 11 AS INTEGER ) * - + COUNT ( * ) / - 96 * + 97 * + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5313
SELECT - 48 + - ( - - COUNT( * ) ), + 74 AS col1
----
-49
74

skipif mysql # not compatible
query II rowsort label-5313
SELECT - 48 + - ( - - COUNT ( * ) ), + 74 AS col1
----
-49
74

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

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

query I rowsort
SELECT + COALESCE ( 98, + - 54 ) - - 59
----
157

query I rowsort
SELECT DISTINCT - 98 * 22 + - - 38 AS col0
----
-2118

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5317
SELECT ALL + 86 * - 17 + - 86 + - CAST( + + ( - - 24 ) AS SIGNED ) + - 56 * - 61, + 7 - 9 AS col2
----
1844
-2

skipif mysql # not compatible
query II rowsort label-5317
SELECT ALL + 86 * - 17 + - 86 + - CAST ( + + ( - - 24 ) AS INTEGER ) + - 56 * - 61, + 7 - 9 AS col2
----
1844
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT DISTINCT + + MAX( DISTINCT + 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT + + MAX ( DISTINCT + 22 ) AS col0
----
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT DISTINCT 39 * - - 81 * COALESCE ( 5, - 67, - + 38 ) - - COUNT( * ) AS col2
----
15796

skipif mysql # not compatible
query I rowsort label-5320
SELECT DISTINCT 39 * - - 81 * COALESCE ( 5, - 67, - + 38 ) - - COUNT ( * ) AS col2
----
15796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5321
SELECT ALL - 61, - NULLIF ( 37, MIN( - - CAST( + 11 AS SIGNED ) ) ) col2
----
-61
-37

skipif mysql # not compatible
query II rowsort label-5321
SELECT ALL - 61, - NULLIF ( 37, MIN ( - - CAST ( + 11 AS INTEGER ) ) ) col2
----
-61
-37

query I rowsort
SELECT - 48 * 36 * ( - - 94 )
----
-162432

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5324
SELECT DISTINCT COUNT( * ), 11 col2
----
1
11

skipif mysql # not compatible
query II rowsort label-5324
SELECT DISTINCT COUNT ( * ), 11 col2
----
1
11

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

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

query I rowsort
SELECT DISTINCT - 86 * + 87
----
-7482

query I rowsort
SELECT - 76 * - 0 AS col2
----
0

query II rowsort
SELECT 43 AS col1, - 8 AS col0
----
43
-8

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

skipif mysql # not compatible
query II rowsort label-5329
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0, - 1
----
NULL
-1

query I rowsort
SELECT - 11 * + 5 AS col1
----
-55

query I rowsort
SELECT + 17 * + 73
----
1241

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5333
SELECT DISTINCT ( - ( - NULLIF ( - COALESCE ( COUNT( * ), 62 * - 76 ), - COALESCE ( + COUNT( * ), + 47 + + + 2 ) / + COUNT( DISTINCT COALESCE ( + 26, - CAST( NULL AS SIGNED ) ) ) + ( + - MAX( - + 17 ) ) ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT ( - ( - NULLIF ( - COALESCE ( COUNT ( * ), 62 * - 76 ), - COALESCE ( + COUNT ( * ), + 47 + + + 2 ) / + COUNT ( DISTINCT COALESCE ( + 26, - CAST ( NULL AS INTEGER ) ) ) + ( + - MAX ( - + 17 ) ) ) ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5334
SELECT DISTINCT - CAST( NULL AS SIGNED ) / CASE 3 WHEN 82 * + + 0 + 91 - 10 THEN + - 94 END * AVG ( DISTINCT 23 ) + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / CASE 3 WHEN 82 * + + 0 + 91 - 10 THEN + - 94 END * AVG ( DISTINCT 23 ) + + 42
----
NULL

query I rowsort
SELECT ALL 93 * - 50 AS col2
----
-4650

onlyif mysql # aggregate syntax: 
query II rowsort label-5336
SELECT 43, - 34 * COUNT( + 68 ) col1
----
43
-34

skipif mysql # not compatible
query II rowsort label-5336
SELECT 43, - 34 * COUNT ( + 68 ) col1
----
43
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT ALL - 33 + - + 57 * - 53 + + 96 + - 56 - + - COUNT( * ) + - 68 + 87
----
3048

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL - 33 + - + 57 * - 53 + + 96 + - 56 - + - COUNT ( * ) + - 68 + 87
----
3048

query I rowsort
SELECT ALL + 32 + + 67 + + 59 + + - 34 * 72 AS col0
----
-2290

onlyif mysql # DIV for integer division: 
query II rowsort label-5339
SELECT - 50 DIV + - 59 * + 4 - + - 5 + - + 26 * + + 44 AS col1, 80
----
-1139
80

skipif mysql # not compatible
query II rowsort label-5339
SELECT - 50 / + - 59 * + 4 - + - 5 + - + 26 * + + 44 AS col1, 80
----
-1139
80

query I rowsort
SELECT ALL - + 42 * + - 91
----
3822

query I rowsort
SELECT COALESCE ( + NULLIF ( + - 0, - 8 + - 45 ), 38 * + 37 + - 83 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5342
SELECT 38 DIV + 76 * - 92 col0
----
0

skipif mysql # not compatible
query I rowsort label-5342
SELECT 38 / + 76 * - 92 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5343
SELECT + 24 - + NULLIF ( + - SUM( - 20 ), - 62 - AVG ( DISTINCT + 79 ) + + 78 * + - MAX( ALL 87 ) + COUNT( * ) * - 36 ), - 82 AS col2
----
4
-82

skipif mysql # not compatible
query II rowsort label-5343
SELECT + 24 - + NULLIF ( + - SUM ( - 20 ), - 62 - AVG ( DISTINCT + 79 ) + + 78 * + - MAX ( ALL 87 ) + COUNT ( * ) * - 36 ), - 82 AS col2
----
4
-82

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5345
SELECT ALL 2 + CASE + 11 WHEN - 26 * - NULLIF ( + 41, - 77 ) + - 56 / CAST( + 8 AS SIGNED ) + + + CAST( - 81 AS SIGNED ) - - 89 THEN NULL ELSE 89 + - 82 END + 67
----
76

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL 2 + CASE + 11 WHEN - 26 * - NULLIF ( + 41, - 77 ) + - 56 / CAST ( + 8 AS INTEGER ) + + + CAST ( - 81 AS INTEGER ) - - 89 THEN NULL ELSE 89 + - 82 END + 67
----
76

query I rowsort
SELECT - 90 + - - 34 * + 98
----
3242

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5348
SELECT ALL - - COALESCE ( - 79, - - 56 ) - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL - - COALESCE ( - 79, - - 56 ) - + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT DISTINCT - ( + MAX( + + 33 ) ) - - COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT - ( + MAX ( + + 33 ) ) - - COUNT ( * ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT DISTINCT - - CASE - 74 WHEN - + 63 THEN - - 24 - - + 9 WHEN 36 * + + NULLIF ( 1, 27 ) + + + 60 + - MIN( ALL - + 2 ) * + 18 THEN - 59 * - 23 + 76 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT - - CASE - 74 WHEN - + 63 THEN - - 24 - - + 9 WHEN 36 * + + NULLIF ( 1, 27 ) + + + 60 + - MIN ( ALL - + 2 ) * + 18 THEN - 59 * - 23 + 76 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5351
SELECT DISTINCT - COUNT( ALL + - 49 ) - + - 7 - + ( + 88 ) DIV - 58 + - 99 col1
----
-92

skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT - COUNT ( ALL + - 49 ) - + - 7 - + ( + 88 ) / - 58 + - 99 col1
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5352
SELECT ALL - COUNT( * ), 93 + + - 4 AS col2
----
-1
89

skipif mysql # not compatible
query II rowsort label-5352
SELECT ALL - COUNT ( * ), 93 + + - 4 AS col2
----
-1
89

query I rowsort
SELECT 89 + - + 18 AS col1
----
71

query I rowsort
SELECT 35 * + 20 AS col2
----
700

query I rowsort
SELECT ALL 32 * + - 91 - + 69 AS col1
----
-2981

query I rowsort
SELECT 66 + - COALESCE ( - CASE + - 60 WHEN + COALESCE ( 56, + - 10, 71 ) - - - 24 THEN - 0 END, + 24 ) AS col2
----
42

query II rowsort
SELECT 33 AS col2, + 84
----
33
84

query II rowsort
SELECT 70 AS col2, 79 * - - 66
----
70
5214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5359
SELECT ALL 1 * + - NULLIF ( 74, - 25 * + + 76 + + + 61 * - COUNT( - 45 ) ) DIV + 46
----
-1

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL 1 * + - NULLIF ( 74, - 25 * + + 76 + + + 61 * - COUNT ( - 45 ) ) / + 46
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5360
SELECT CAST( NULL AS SIGNED ) + - 94 * - - 39 + + 22 + + 28 * - 68 + - 27 - - 2 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT CAST ( NULL AS INTEGER ) + - 94 * - - 39 + + 22 + + 28 * - 68 + - 27 - - 2 * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT 16 + + 95 * + SUM( ALL + + 0 ) col1
----
16

skipif mysql # not compatible
query I rowsort label-5361
SELECT 16 + + 95 * + SUM ( ALL + + 0 ) col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5362
SELECT ALL 71 DIV NULLIF ( - 85, - COUNT( * ) - - 13 ) AS col1, 25 AS col0
----
0
25

skipif mysql # not compatible
query II rowsort label-5362
SELECT ALL 71 / NULLIF ( - 85, - COUNT ( * ) - - 13 ) AS col1, 25 AS col0
----
0
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT DISTINCT MAX( ALL 81 ) + + 94
----
175

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT MAX ( ALL 81 ) + + 94
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT 35 + + ( + - SUM( ALL 29 ) ) + + 67 col1
----
73

skipif mysql # not compatible
query I rowsort label-5364
SELECT 35 + + ( + - SUM ( ALL 29 ) ) + + 67 col1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5365
SELECT 44 + + 18 DIV + + 37 - - + 13 + + MIN( DISTINCT + 47 ) AS col2
----
104

skipif mysql # not compatible
query I rowsort label-5365
SELECT 44 + + 18 / + + 37 - - + 13 + + MIN ( DISTINCT + 47 ) AS col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT 15 + - - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-5366
SELECT 15 + - - COUNT ( * )
----
16

query I rowsort
SELECT 51 - - 73
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-5368
SELECT DISTINCT 29 + + + 84, + MAX( ALL + - 98 ) - + - 35 + - + 62 AS col0
----
113
-125

skipif mysql # not compatible
query II rowsort label-5368
SELECT DISTINCT 29 + + + 84, + MAX ( ALL + - 98 ) - + - 35 + - + 62 AS col0
----
113
-125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5369
SELECT ALL - COALESCE ( + COUNT( * ), - + 88 DIV + 29 DIV + 78 * + + 82 ) + 40 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL - COALESCE ( + COUNT ( * ), - + 88 / + 29 / + 78 * + + 82 ) + 40 AS col2
----
39

query I rowsort
SELECT DISTINCT + 92 + - - 35 + + 60
----
187

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

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

query I rowsort
SELECT ALL + 47 + 71 col1
----
118

query I rowsort
SELECT 50 + 4 AS col2
----
54

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

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

query I rowsort
SELECT 24 * 40 * 27 AS col2
----
25920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5376
SELECT + - 85 DIV 23 DIV + 50 + - 63 * - - COUNT( * ) * + 93 * 73 + + 0 AS col0
----
-427707

skipif mysql # not compatible
query I rowsort label-5376
SELECT + - 85 / 23 / + 50 + - 63 * - - COUNT ( * ) * + 93 * 73 + + 0 AS col0
----
-427707

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5377
SELECT COALESCE ( + 70, 62 + - - 70, - ( 99 ) + + NULLIF ( 37, + 72 + + + NULLIF ( 0, - - 52 ) ) ) * 1 * + + COALESCE ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ), - NULLIF ( 32, - + COALESCE ( - 95, 3 ) / - 45 * + 38 + + + 30 ) - + CASE + + 8 WHEN + 19 THEN NULL WHEN - 23 THEN NULL WHEN 16 THEN 35 + 36 ELSE NULL END * + 64, NULLIF ( - 12, 21 ) + + 38 )
----
1820

skipif mysql # not compatible
query I rowsort label-5377
SELECT COALESCE ( + 70, 62 + - - 70, - ( 99 ) + + NULLIF ( 37, + 72 + + + NULLIF ( 0, - - 52 ) ) ) * 1 * + + COALESCE ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), - NULLIF ( 32, - + COALESCE ( - 95, 3 ) / - 45 * + 38 + + + 30 ) - + CASE + + 8 WHEN + 19 THEN NULL WHEN - 23 THEN NULL WHEN 16 THEN 35 + 36 ELSE NULL END * + 64, NULLIF ( - 12, 21 ) + + 38 )
----
1820

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5378
SELECT ALL - 9 * - 15 * - 21 * CAST( + 84 AS SIGNED ), 5 AS col2
----
-238140
5

skipif mysql # not compatible
query II rowsort label-5378
SELECT ALL - 9 * - 15 * - 21 * CAST ( + 84 AS INTEGER ), 5 AS col2
----
-238140
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5379
SELECT ALL - + 35 - - - 64 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL - + 35 - - - 64 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 76 * - - 60 AS col2
----
4560

query I rowsort
SELECT 24 * 21 * 57 AS col0
----
28728

query I rowsort
SELECT ALL - - ( + 9 ) * + 75 + - 80
----
595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5383
SELECT ALL - 57 * - NULLIF ( - - CASE 87 WHEN + + 96 + + + 72 * 6 - - CAST( NULL AS SIGNED ) * - 97 THEN + 60 ELSE NULL END, + 89 * - 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL - 57 * - NULLIF ( - - CASE 87 WHEN + + 96 + + + 72 * 6 - - CAST ( NULL AS INTEGER ) * - 97 THEN + 60 ELSE NULL END, + 89 * - 98 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT - COUNT( * ) * - COUNT( * ) + + 58 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-5385
SELECT - COUNT ( * ) * - COUNT ( * ) + + 58 AS col2
----
59

query I rowsort
SELECT 93 * - 56 + - 83 AS col1
----
-5291

query I rowsort
SELECT 97 * - 43 + 71
----
-4100

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT ALL - CASE - 16 WHEN COUNT( * ) + + 25 - - 23 THEN - - 78 * 45 ELSE - - NULLIF ( ( 94 ), - ( - 73 ) + - 64 ) + 59 + - 85 END AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL - CASE - 16 WHEN COUNT ( * ) + + 25 - - 23 THEN - - 78 * 45 ELSE - - NULLIF ( ( 94 ), - ( - 73 ) + - 64 ) + 59 + - 85 END AS col0
----
-68

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

query I rowsort
SELECT ALL 30 * - + 43
----
-1290

query I rowsort
SELECT 90 * + 89 AS col2
----
8010

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5393
SELECT - NULLIF ( - + 27, - - 36 / + CAST( 54 AS SIGNED ) + - 84 )
----
27

skipif mysql # not compatible
query I rowsort label-5393
SELECT - NULLIF ( - + 27, - - 36 / + CAST ( 54 AS INTEGER ) + - 84 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT ALL 24 + - NULLIF ( 54, 18 * - - ( 48 ) * + 85 * - NULLIF ( - 75, COUNT( * ) + COUNT( * ) + - 51 * + - 11 ) * + 86 ) * + 78
----
-4188

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL 24 + - NULLIF ( 54, 18 * - - ( 48 ) * + 85 * - NULLIF ( - 75, COUNT ( * ) + COUNT ( * ) + - 51 * + - 11 ) * + 86 ) * + 78
----
-4188

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT DISTINCT MAX( - + 84 ) + - 52 * 77 AS col0
----
-4088

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT MAX ( - + 84 ) + - 52 * 77 AS col0
----
-4088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5396
SELECT COUNT( * ) * - COUNT( * ) DIV - ( NULLIF ( - - 35, - - 91 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5396
SELECT COUNT ( * ) * - COUNT ( * ) / - ( NULLIF ( - - 35, - - 91 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT DISTINCT COUNT( * ) + 54
----
55

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT COUNT ( * ) + 54
----
55

query I rowsort
SELECT ALL 88 + + 68
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT ALL + 78 + + COALESCE ( - COUNT( * ), 76 + - 23 ) + - 35
----
42

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL + 78 + + COALESCE ( - COUNT ( * ), 76 + - 23 ) + - 35
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-5400
SELECT + MIN( - + 96 ) * + + ( + 21 ), 0 col1
----
-2016
0

skipif mysql # not compatible
query II rowsort label-5400
SELECT + MIN ( - + 96 ) * + + ( + 21 ), 0 col1
----
-2016
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT - COALESCE ( + + 48, COUNT( * ) ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-5401
SELECT - COALESCE ( + + 48, COUNT ( * ) ) AS col1
----
-48

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

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

query I rowsort
SELECT + 22 + - 27
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5404
SELECT - NULLIF ( - - 80, + 70 * - COUNT( * ) - - + NULLIF ( - COUNT( * ), - 79 + 83 ) + + 88 DIV + + 20 + - COUNT( * ) + - COUNT( * ) ) DIV 73
----
-1

skipif mysql # not compatible
query I rowsort label-5404
SELECT - NULLIF ( - - 80, + 70 * - COUNT ( * ) - - + NULLIF ( - COUNT ( * ), - 79 + 83 ) + + 88 / + + 20 + - COUNT ( * ) + - COUNT ( * ) ) / 73
----
-1

query I rowsort
SELECT + 40 * + 21
----
840

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5406
SELECT - NULLIF ( + + COUNT( * ), 82 + + SUM( ALL - 6 ) ) * + 50 - COALESCE ( - 44, + 52 * + - 84, - 93 ) DIV + + 55 + 82 AS col0, + 2 AS col2
----
32
2

skipif mysql # not compatible
query II rowsort label-5406
SELECT - NULLIF ( + + COUNT ( * ), 82 + + SUM ( ALL - 6 ) ) * + 50 - COALESCE ( - 44, + 52 * + - 84, - 93 ) / + + 55 + 82 AS col0, + 2 AS col2
----
32
2

query I rowsort
SELECT + + 24 - NULLIF ( + - 14, 31 )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-5408
SELECT - COUNT( * ) AS col2, + 3 + + 51 AS col1
----
-1
54

skipif mysql # not compatible
query II rowsort label-5408
SELECT - COUNT ( * ) AS col2, + 3 + + 51 AS col1
----
-1
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT + - COUNT( * ) + - 35 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-5409
SELECT + - COUNT ( * ) + - 35 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-5410
SELECT ALL 70 AS col2, COUNT( 65 )
----
70
1

skipif mysql # not compatible
query II rowsort label-5410
SELECT ALL 70 AS col2, COUNT ( 65 )
----
70
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT DISTINCT - + 12 * - 31 * - + COUNT( * ) * - 78
----
29016

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT - + 12 * - 31 * - + COUNT ( * ) * - 78
----
29016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5412
SELECT - NULLIF ( 71, + AVG ( DISTINCT + 72 ) * - + 31 ) * - - COALESCE ( CAST( NULL AS SIGNED ), + COUNT( * ) * + - 63 * - CAST( NULL AS SIGNED ), - + 27 + + ( + COUNT( * ) ) + + + 34 * - - 27 + COUNT( * ) * + 15 ) + 72 AS col0
----
-64325

skipif mysql # not compatible
query I rowsort label-5412
SELECT - NULLIF ( 71, + AVG ( DISTINCT + 72 ) * - + 31 ) * - - COALESCE ( CAST ( NULL AS INTEGER ), + COUNT ( * ) * + - 63 * - CAST ( NULL AS INTEGER ), - + 27 + + ( + COUNT ( * ) ) + + + 34 * - - 27 + COUNT ( * ) * + 15 ) + 72 AS col0
----
-64325

query I rowsort
SELECT ALL + ( + 55 ) * + 91 * 42 - + - 48
----
210258

query I rowsort
SELECT - 81 * + - 38 AS col1
----
3078

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT + + 98 * - - COUNT( * ) * 36 + 42 + MAX( ( + + 61 ) ) * 8 AS col0
----
4058

skipif mysql # not compatible
query I rowsort label-5416
SELECT + + 98 * - - COUNT ( * ) * 36 + 42 + MAX ( ( + + 61 ) ) * 8 AS col0
----
4058

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT + - CASE - + 24 WHEN - 81 THEN NULL ELSE + + 44 * + MIN( + 39 ) + - 23 END
----
-1693

skipif mysql # not compatible
query I rowsort label-5417
SELECT + - CASE - + 24 WHEN - 81 THEN NULL ELSE + + 44 * + MIN ( + 39 ) + - 23 END
----
-1693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5418
SELECT - ( 32 ) - + CAST( 84 AS SIGNED )
----
-116

skipif mysql # not compatible
query I rowsort label-5418
SELECT - ( 32 ) - + CAST ( 84 AS INTEGER )
----
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-5419
SELECT ALL + COALESCE ( - + 51, + 68 DIV + + 52 * 37 + - 4, + 80 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL + COALESCE ( - + 51, + 68 / + + 52 * 37 + - 4, + 80 ) AS col2
----
-51

query II rowsort
SELECT + 55, 52 + + 61 col0
----
55
113

query I rowsort
SELECT - + 42 * + 48
----
-2016

onlyif mysql # aggregate syntax: 
query II rowsort label-5422
SELECT ALL + 5, COALESCE ( + 14, ( 72 ), - COUNT( ALL - 58 ) + - 86 * 76 * - - CASE + - 11 WHEN - - 50 * + + COALESCE ( - ( - 74 ), 96 * - 48 + 77 + 31 ) THEN 68 END ) col2
----
5
14

skipif mysql # not compatible
query II rowsort label-5422
SELECT ALL + 5, COALESCE ( + 14, ( 72 ), - COUNT ( ALL - 58 ) + - 86 * 76 * - - CASE + - 11 WHEN - - 50 * + + COALESCE ( - ( - 74 ), 96 * - 48 + 77 + 31 ) THEN 68 END ) col2
----
5
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5423
SELECT DISTINCT + - 53, + MAX( + - 62 ) DIV COUNT( * ) * 46 AS col0
----
-53
-2852

skipif mysql # not compatible
query II rowsort label-5423
SELECT DISTINCT + - 53, + MAX ( + - 62 ) / COUNT ( * ) * 46 AS col0
----
-53
-2852

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT DISTINCT - 29 * - + 94 + - - COUNT( * ) + - - 2
----
2729

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT - 29 * - + 94 + - - COUNT ( * ) + - - 2
----
2729

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5427
SELECT ALL + + CAST( NULL AS SIGNED ) * 71 + - 50 * - + 29 / 76
----
NULL

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL + + CAST ( NULL AS INTEGER ) * 71 + - 50 * - + 29 / 76
----
NULL

query I rowsort
SELECT - - 65 - + 7 AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5429
SELECT DISTINCT 12 * - + 92 + 23 * + 52 AS col0, MIN( ALL 57 ) - - COUNT( * )
----
92
58

skipif mysql # not compatible
query II rowsort label-5429
SELECT DISTINCT 12 * - + 92 + 23 * + 52 AS col0, MIN ( ALL 57 ) - - COUNT ( * )
----
92
58

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

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

query I rowsort
SELECT + 42 * 1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5432
SELECT ALL - 34 * + 58 + 43 + - 62 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL - 34 * + 58 + 43 + - 62 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + 18 * + 8 AS col1, - 8 * + 53 * 68
----
144
-28832

query I rowsort
SELECT - 30 + + - 93 col1
----
-123

onlyif mysql # aggregate syntax: 
query II rowsort label-5435
SELECT + NULLIF ( - + 13, ( + COUNT( 75 ) ) ) AS col2, + 99
----
-13
99

skipif mysql # not compatible
query II rowsort label-5435
SELECT + NULLIF ( - + 13, ( + COUNT ( 75 ) ) ) AS col2, + 99
----
-13
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5437
SELECT ALL - CAST( NULL AS SIGNED ) * - 45 / - + 69 + - ( + 88 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL - CAST ( NULL AS INTEGER ) * - 45 / - + 69 + - ( + 88 ) AS col0
----
NULL

query I rowsort
SELECT - 6 + + 18 AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5439
SELECT ALL - 57 * + 29 + 80 DIV - + 12 + + - 62 * - 75 AS col1
----
2991

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL - 57 * + 29 + 80 / - + 12 + + - 62 * - 75 AS col1
----
2991

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT ALL + NULLIF ( 43, + + 98 ) + - + NULLIF ( - MIN( 91 ), + 46 ) col1
----
134

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL + NULLIF ( 43, + + 98 ) + - + NULLIF ( - MIN ( 91 ), + 46 ) col1
----
134

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT + 76 + + - 97 + - COUNT( * ) * - 45 + + 29 * + 59 AS col2
----
1735

skipif mysql # not compatible
query I rowsort label-5443
SELECT + 76 + + - 97 + - COUNT ( * ) * - 45 + + 29 * + 59 AS col2
----
1735

query I rowsort
SELECT DISTINCT 99 - - 27
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT - MAX( DISTINCT + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-5445
SELECT - MAX ( DISTINCT + 20 )
----
-20

query I rowsort
SELECT ALL 34 - 10 * + 11 AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5447
SELECT DISTINCT CAST( + - 66 AS SIGNED ) * - - NULLIF ( - - COUNT( * ), + - 90 ) + + 62 + + NULLIF ( - + 58, + MAX( 7 ) ) - - + 94 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT CAST ( + - 66 AS INTEGER ) * - - NULLIF ( - - COUNT ( * ), + - 90 ) + + 62 + + NULLIF ( - + 58, + MAX ( 7 ) ) - - + 94 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT + NULLIF ( + 24, - + SUM( - 31 ) + + 82 ) + 52
----
76

skipif mysql # not compatible
query I rowsort label-5448
SELECT + NULLIF ( + 24, - + SUM ( - 31 ) + + 82 ) + 52
----
76

query I rowsort
SELECT ALL 28 * - 38 col0
----
-1064

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT + 43 + + MIN( DISTINCT - + 70 ) * + 78
----
-5417

skipif mysql # not compatible
query I rowsort label-5450
SELECT + 43 + + MIN ( DISTINCT - + 70 ) * + 78
----
-5417

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5451
SELECT ALL - 73 - - 34 * + + ( + + COUNT( + + 78 ) ) DIV - ( + - COUNT( * ) ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL - 73 - - 34 * + + ( + + COUNT ( + + 78 ) ) / - ( + - COUNT ( * ) ) AS col1
----
-39

query I rowsort
SELECT + CASE + - 16 WHEN + + 6 THEN - - 29 + - 24 END + 13 col1
----
NULL

query I rowsort
SELECT ALL 26 * + + 72
----
1872

onlyif mysql # DIV for integer division: 
query I rowsort label-5454
SELECT DISTINCT + 60 DIV + + ( - 95 )
----
0

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT + 60 / + + ( - 95 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT + + 38 + + COUNT( * ) * + - 67 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-5455
SELECT + + 38 + + COUNT ( * ) * + - 67 AS col2
----
-29

query I rowsort
SELECT + 1 * 78 + + + 79 AS col2
----
157

query I rowsort
SELECT + + 52 * - - 68 + - 83
----
3453

query I rowsort
SELECT - + 88 + - 36 * - 73
----
2540

query I rowsort
SELECT ALL 98 * + 3 AS col2
----
294

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5461
SELECT ALL + - COALESCE ( - + ( + + CAST( NULL AS SIGNED ) ), 86 * 27 ) AS col2
----
-2322

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL + - COALESCE ( - + ( + + CAST ( NULL AS INTEGER ) ), 86 * 27 ) AS col2
----
-2322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5462
SELECT DISTINCT - COUNT( * ) DIV CAST( - 48 AS SIGNED ) * 26 * + COUNT( * ) * 56 DIV - + 98 DIV - 75 + 82 + - 88
----
-6

skipif mysql # not compatible
query I rowsort label-5462
SELECT DISTINCT - COUNT ( * ) / CAST ( - 48 AS INTEGER ) * 26 * + COUNT ( * ) * 56 / - + 98 / - 75 + 82 + - 88
----
-6

query I rowsort
SELECT DISTINCT - 64 * + ( - - 69 )
----
-4416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT ALL + 89 / - CAST( NULL AS SIGNED ) + + - 10 * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL + 89 / - CAST ( NULL AS INTEGER ) + + - 10 * 21
----
NULL

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

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

query II rowsort
SELECT - 42 + - ( - 6 ), - 52 AS col2
----
-36
-52

query I rowsort
SELECT ALL + CASE - 29 WHEN - 30 THEN - - 21 WHEN - 41 + 50 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 7 * + 99 * + + 10 * + 5 + + 96 + - 74 AS col1
----
-34628

query I rowsort
SELECT + 30 * - 69 * - - 99 * - 24
----
4918320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5470
SELECT ALL + AVG ( ALL - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL + AVG ( ALL - + CAST ( NULL AS INTEGER ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT ALL - CASE 54 WHEN 13 * + + 36 THEN NULL WHEN - COUNT( * ) * + 59 THEN + 66 * - - SUM( ALL - + 7 ) + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL - CASE 54 WHEN 13 * + + 36 THEN NULL WHEN - COUNT ( * ) * + 59 THEN + 66 * - - SUM ( ALL - + 7 ) + 97 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT ALL - SUM( DISTINCT + + 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL - SUM ( DISTINCT + + 51 )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-5474
SELECT ALL + COUNT( * ) - - COUNT( * ) + + 50 AS col2, 69 * + - 64
----
52
-4416

skipif mysql # not compatible
query II rowsort label-5474
SELECT ALL + COUNT ( * ) - - COUNT ( * ) + + 50 AS col2, 69 * + - 64
----
52
-4416

query II rowsort
SELECT DISTINCT 18 col2, + 38 AS col2
----
18
38

query I rowsort
SELECT 34 * - - ( + + 53 ) col1
----
1802

query II rowsort
SELECT - 20 AS col0, + 33 * - - 61 AS col1
----
-20
2013

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

skipif mysql # not compatible
query I rowsort label-5478
SELECT 40 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5479
SELECT ALL 76, 75 * 47 DIV - 33 + + 53 * - 76 * - 12 AS col2
----
76
48230

skipif mysql # not compatible
query II rowsort label-5479
SELECT ALL 76, 75 * 47 / - 33 + + 53 * - 76 * - 12 AS col2
----
76
48230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5480
SELECT ALL + CAST( NULL AS SIGNED ) - 82 * + COUNT( * ) * 53 * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL + CAST ( NULL AS INTEGER ) - 82 * + COUNT ( * ) * 53 * - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT DISTINCT - NULLIF ( + 10, 30 + 85 * + SUM( DISTINCT - 94 ) ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT - NULLIF ( + 10, 30 + 85 * + SUM ( DISTINCT - 94 ) ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-5482
SELECT ALL + NULLIF ( - ( + 47 ), - AVG ( DISTINCT 61 ) ) AS col0, - NULLIF ( - 49, + + COUNT( * ) ) * + 99
----
-47
4851

skipif mysql # not compatible
query II rowsort label-5482
SELECT ALL + NULLIF ( - ( + 47 ), - AVG ( DISTINCT 61 ) ) AS col0, - NULLIF ( - 49, + + COUNT ( * ) ) * + 99
----
-47
4851

query I rowsort
SELECT ALL 3 * - 50 AS col0
----
-150

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5485
SELECT 7 + - + COUNT( * ) * 74 DIV 62
----
6

skipif mysql # not compatible
query I rowsort label-5485
SELECT 7 + - + COUNT ( * ) * 74 / 62
----
6

query I rowsort
SELECT ALL 60 * - - 92 col0
----
5520

query I rowsort
SELECT - 99 * - - 50
----
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT ALL SUM( 60 ) + + 96
----
156

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL SUM ( 60 ) + + 96
----
156

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5490
SELECT ALL CASE + COUNT( * ) WHEN 40 / + 93 + + CASE + ( - 70 ) WHEN ( 99 ) THEN NULL WHEN - 91 THEN 88 * - 79 END THEN NULL WHEN - 67 * + CAST( NULL AS SIGNED ) * - 34 * + 61 THEN - 97 ELSE 79 END AS col2, - 10 + - - 80
----
79
70

skipif mysql # not compatible
query II rowsort label-5490
SELECT ALL CASE + COUNT ( * ) WHEN 40 / + 93 + + CASE + ( - 70 ) WHEN ( 99 ) THEN NULL WHEN - 91 THEN 88 * - 79 END THEN NULL WHEN - 67 * + CAST ( NULL AS INTEGER ) * - 34 * + 61 THEN - 97 ELSE 79 END AS col2, - 10 + - - 80
----
79
70

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

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL 87 + - COUNT ( * ) AS col1
----
86

query I rowsort
SELECT - 57 + - + 27 AS col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-5493
SELECT + 66 DIV 69 * + 67
----
0

skipif mysql # not compatible
query I rowsort label-5493
SELECT + 66 / 69 * + 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT + SUM( + 26 ) * 47 + COALESCE ( + - 68, COUNT( * ) - 45, + 82 * 20 ) col2
----
1154

skipif mysql # not compatible
query I rowsort label-5494
SELECT + SUM ( + 26 ) * 47 + COALESCE ( + - 68, COUNT ( * ) - 45, + 82 * 20 ) col2
----
1154

query I rowsort
SELECT DISTINCT 44 * + + 85
----
3740

query II rowsort
SELECT DISTINCT - - 14 AS col0, - 18
----
14
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT ALL 32 + + + 6 + + 6 + 33 + - - COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL 32 + + + 6 + + 6 + 33 + - - COUNT ( * ) AS col1
----
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT - 15 * - - ( + CASE + 78 WHEN - COUNT( - 11 ) THEN + 80 END ) * - + 39 * - + 20 * 47 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5499
SELECT - 15 * - - ( + CASE + 78 WHEN - COUNT ( - 11 ) THEN + 80 END ) * - + 39 * - + 20 * 47 col1
----
NULL

query I rowsort
SELECT NULLIF ( + - 11, 12 ) + + 82 * 12 + - 66 + 35 AS col2
----
942

query I rowsort
SELECT 6 - - - 71
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5502
SELECT ( + 95 ) * - - CAST( + + 31 AS SIGNED ) AS col2, + ( - + ( - ( - + 89 ) ) ) + + COUNT( * ) DIV + 55 col0
----
2945
-89

skipif mysql # not compatible
query II rowsort label-5502
SELECT ( + 95 ) * - - CAST ( + + 31 AS INTEGER ) AS col2, + ( - + ( - ( - + 89 ) ) ) + + COUNT ( * ) / + 55 col0
----
2945
-89

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5504
SELECT ALL + CASE + MAX( 81 ) WHEN + 17 / 2 THEN - + CAST( NULL AS DECIMAL ) + 42 WHEN - - COUNT( * ) * - + 80 + + 93 - + 85 THEN NULL ELSE + 94 * + CAST( NULL AS SIGNED ) - CASE - CAST( NULL AS SIGNED ) WHEN + 81 / + COALESCE ( - 22, MAX( DISTINCT - CAST( + + 13 AS SIGNED ) ) / 85 + - COALESCE ( 45, 40 ), 82 + + 17 ) THEN - 43 + - - 87 + - COUNT( * ) WHEN + - 16 * + 57 THEN - COUNT( * ) / - 29 + 93 ELSE NULL END END * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL + CASE + MAX ( 81 ) WHEN + 17 / 2 THEN - + CAST ( NULL AS REAL ) + 42 WHEN - - COUNT ( * ) * - + 80 + + 93 - + 85 THEN NULL ELSE + 94 * + CAST ( NULL AS INTEGER ) - CASE - CAST ( NULL AS INTEGER ) WHEN + 81 / + COALESCE ( - 22, MAX ( DISTINCT - CAST ( + + 13 AS INTEGER ) ) / 85 + - COALESCE ( 45, 40 ), 82 + + 17 ) THEN - 43 + - - 87 + - COUNT ( * ) WHEN + - 16 * + 57 THEN - COUNT ( * ) / - 29 + 93 ELSE NULL END END * 60
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5505
SELECT 92 AS col1, COUNT( * ) + - CAST( NULL AS SIGNED ) * + CAST( - 33 AS SIGNED ) AS col0
----
92
NULL

skipif mysql # not compatible
query II rowsort label-5505
SELECT 92 AS col1, COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + CAST ( - 33 AS INTEGER ) AS col0
----
92
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5506
SELECT ALL ( + 9 ) * 48 * + NULLIF ( - COUNT( * ), 63 - + 94 + - 41 + + 17 + + ( - + NULLIF ( - - 37, 23 * - NULLIF ( 97, + + 61 ) / 3 + - - COALESCE ( - COUNT( * ), - - COUNT( + - 50 ) * + CASE - COUNT( * ) WHEN + 83 THEN - 36 / + 19 ELSE - COUNT( * ) * + + CAST( + COUNT( * ) AS DECIMAL ) - COUNT( * ) + + + 20 * 87 END, 98 ) ) ) + 44 ) AS col2
----
-432

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL ( + 9 ) * 48 * + NULLIF ( - COUNT ( * ), 63 - + 94 + - 41 + + 17 + + ( - + NULLIF ( - - 37, 23 * - NULLIF ( 97, + + 61 ) / 3 + - - COALESCE ( - COUNT ( * ), - - COUNT ( + - 50 ) * + CASE - COUNT ( * ) WHEN + 83 THEN - 36 / + 19 ELSE - COUNT ( * ) * + + CAST ( + COUNT ( * ) AS REAL ) - COUNT ( * ) + + + 20 * 87 END, 98 ) ) ) + 44 ) AS col2
----
-432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5507
SELECT DISTINCT COUNT( * ) - - + 78 + + - 78 * - 42 + - ( + - CAST( NULL AS SIGNED ) ) * 82 AS col0, 44
----
NULL
44

skipif mysql # not compatible
query II rowsort label-5507
SELECT DISTINCT COUNT ( * ) - - + 78 + + - 78 * - 42 + - ( + - CAST ( NULL AS INTEGER ) ) * 82 AS col0, 44
----
NULL
44

query I rowsort
SELECT ALL 17 * - + 76
----
-1292

onlyif mysql # aggregate syntax: 
query II rowsort label-5509
SELECT + 9 AS col0, + 86 + 55 + + 7 * + COUNT( * ) + 86
----
9
234

skipif mysql # not compatible
query II rowsort label-5509
SELECT + 9 AS col0, + 86 + 55 + + 7 * + COUNT ( * ) + 86
----
9
234

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT 31 + - + COUNT( * ) - + + COUNT( * ) * + 9
----
21

skipif mysql # not compatible
query I rowsort label-5510
SELECT 31 + - + COUNT ( * ) - + + COUNT ( * ) * + 9
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-5511
SELECT 27 AS col1, - 93 * SUM( ALL 61 ) * 27 col0
----
27
-153171

skipif mysql # not compatible
query II rowsort label-5511
SELECT 27 AS col1, - 93 * SUM ( ALL 61 ) * 27 col0
----
27
-153171

onlyif mysql # aggregate syntax: 
query II rowsort label-5512
SELECT ALL 19, - COUNT( * ) * 45 AS col0
----
19
-45

skipif mysql # not compatible
query II rowsort label-5512
SELECT ALL 19, - COUNT ( * ) * 45 AS col0
----
19
-45

query I rowsort
SELECT 50 + - CASE 27 WHEN + + 31 * 20 THEN + 12 + - 51 + + 82 * 25 * + 92 * + 69 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5514
SELECT ALL - 48 DIV - ( - 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL - 48 / - ( - 26 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5515
SELECT DISTINCT 24 AS col0, - SUM( DISTINCT 49 ) AS col1
----
24
-49

skipif mysql # not compatible
query II rowsort label-5515
SELECT DISTINCT 24 AS col0, - SUM ( DISTINCT 49 ) AS col1
----
24
-49

query II rowsort
SELECT - 78 AS col0, - 43 * - 85 * + 81 + - 68 * - 65 AS col1
----
-78
300475

query I rowsort
SELECT DISTINCT - + 38 * 9 AS col2
----
-342

query II rowsort
SELECT ALL 11 AS col2, 25 AS col1
----
11
25

query I rowsort
SELECT - 5 * + 91
----
-455

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5520
SELECT COALESCE ( + - 33, + COUNT( * ) * COUNT( * ) + - + COUNT( * ) - - COUNT( * ) ) DIV 5, ( + 67 ) * + ( 8 ) AS col1
----
-6
536

skipif mysql # not compatible
query II rowsort label-5520
SELECT COALESCE ( + - 33, + COUNT ( * ) * COUNT ( * ) + - + COUNT ( * ) - - COUNT ( * ) ) / 5, ( + 67 ) * + ( 8 ) AS col1
----
-6
536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5521
SELECT + COALESCE ( + + 41, - 42 * - + COUNT( * ), + - 34 + + CAST( - 96 AS SIGNED ) ) * - 21 * - 27 - - 28 * COALESCE ( + 1, + 91, SUM( - - 99 ), - 67 ) DIV - 44 AS col2
----
23247

skipif mysql # not compatible
query I rowsort label-5521
SELECT + COALESCE ( + + 41, - 42 * - + COUNT ( * ), + - 34 + + CAST ( - 96 AS INTEGER ) ) * - 21 * - 27 - - 28 * COALESCE ( + 1, + 91, SUM ( - - 99 ), - 67 ) / - 44 AS col2
----
23247

query I rowsort
SELECT ALL + - 96 + + 46 + + 30
----
-20

query I rowsort
SELECT DISTINCT + 38 + + 23 * + 88 AS col1
----
2062

query I rowsort
SELECT DISTINCT - 47 + - 67
----
-114

query II rowsort
SELECT - NULLIF ( + 28, 46 ) * + 78 AS col2, 61
----
-2184
61

query I rowsort
SELECT - 91 * - 13
----
1183

query II rowsort
SELECT ALL 69 AS col0, 88
----
69
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT - MAX( - ( - - 74 ) ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-5528
SELECT - MAX ( - ( - - 74 ) ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5529
SELECT 56 AS col0, 98 * + CASE 24 WHEN NULLIF ( 17, - + NULLIF ( + 40, - ( COUNT( * ) ) / - 96 ) + + 8 - + CASE + + 76 WHEN + 32 + + 76 THEN 69 END ) THEN 1 WHEN + 41 THEN COUNT( * ) - - 77 END
----
56
NULL

skipif mysql # not compatible
query II rowsort label-5529
SELECT 56 AS col0, 98 * + CASE 24 WHEN NULLIF ( 17, - + NULLIF ( + 40, - ( COUNT ( * ) ) / - 96 ) + + 8 - + CASE + + 76 WHEN + 32 + + 76 THEN 69 END ) THEN 1 WHEN + 41 THEN COUNT ( * ) - - 77 END
----
56
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5530
SELECT 50, - COUNT( * ) col2
----
50
-1

skipif mysql # not compatible
query II rowsort label-5530
SELECT 50, - COUNT ( * ) col2
----
50
-1

query I rowsort
SELECT + NULLIF ( + 92, - - 75 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT ALL - + MAX( DISTINCT 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL - + MAX ( DISTINCT 28 ) AS col0
----
-28

query I rowsort
SELECT ALL + + 93 * + 62 + - - 65
----
5831

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT - COUNT( * ) * + - 78 - - + 15
----
93

skipif mysql # not compatible
query I rowsort label-5534
SELECT - COUNT ( * ) * + - 78 - - + 15
----
93

query I rowsort
SELECT - 7 + - - 69 * 66
----
4547

query I rowsort
SELECT DISTINCT - 36 * 28 - + 83 * 5
----
-1423

query I rowsort
SELECT DISTINCT - 5 * + 15
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5538
SELECT ALL + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) col1, CASE + 90 WHEN + 34 THEN + - 77 ELSE NULL END / + COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5538
SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col1, CASE + 90 WHEN + 34 THEN + - 77 ELSE NULL END / + COUNT ( * )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5539
SELECT ALL - CASE + CAST( NULL AS SIGNED ) WHEN ( + 6 ) THEN NULL WHEN - 14 THEN - 26 * 77 * - - ( - 47 ) * + 46 * NULLIF ( - 94, + 23 ) + + COUNT( * ) + + COALESCE ( + ( - + COALESCE ( + ( 31 ), + - 75 * + + 7 * 81, - ( - 7 ), 73 ) ), - 2 * + - COUNT( * ) + + CASE + 46 WHEN + - 95 THEN NULL WHEN - - 27 * + + COUNT( * ) THEN 51 * 92 ELSE NULL END ) * + MIN( ALL - 61 ) END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL - CASE + CAST ( NULL AS INTEGER ) WHEN ( + 6 ) THEN NULL WHEN - 14 THEN - 26 * 77 * - - ( - 47 ) * + 46 * NULLIF ( - 94, + 23 ) + + COUNT ( * ) + + COALESCE ( + ( - + COALESCE ( + ( 31 ), + - 75 * + + 7 * 81, - ( - 7 ), 73 ) ), - 2 * + - COUNT ( * ) + + CASE + 46 WHEN + - 95 THEN NULL WHEN - - 27 * + + COUNT ( * ) THEN 51 * 92 ELSE NULL END ) * + MIN ( ALL - 61 ) END * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT ALL + 9 * + + 0 - + COUNT( * ) * - COUNT( - + 33 ) - + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL + 9 * + + 0 - + COUNT ( * ) * - COUNT ( - + 33 ) - + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5541
SELECT - 23 * 32, - SUM( 79 ) AS col2
----
-736
-79

skipif mysql # not compatible
query II rowsort label-5541
SELECT - 23 * 32, - SUM ( 79 ) AS col2
----
-736
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT + COUNT( * ) + 40 * - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-5542
SELECT + COUNT ( * ) + 40 * - COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5543
SELECT + 41 DIV MIN( DISTINCT 30 ) * + 99 + 96
----
195

skipif mysql # not compatible
query I rowsort label-5543
SELECT + 41 / MIN ( DISTINCT 30 ) * + 99 + 96
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT + COUNT( DISTINCT 56 ) * + NULLIF ( + COUNT( * ), + 21 * + - NULLIF ( 61, + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5544
SELECT + COUNT ( DISTINCT 56 ) * + NULLIF ( + COUNT ( * ), + 21 * + - NULLIF ( 61, + COUNT ( * ) ) )
----
1

query I rowsort
SELECT ALL 5 * - ( + 39 )
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT + CASE COUNT( * ) WHEN + 2 THEN NULL ELSE - + 56 END col0
----
-56

skipif mysql # not compatible
query I rowsort label-5546
SELECT + CASE COUNT ( * ) WHEN + 2 THEN NULL ELSE - + 56 END col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT DISTINCT 10 * + 1 * - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-5547
SELECT DISTINCT 10 * + 1 * - COUNT ( * )
----
-10

query I rowsort
SELECT + 33 * + ( - ( 49 ) ) * - + 73
----
118041

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT MAX( ALL 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-5549
SELECT MAX ( ALL 57 ) AS col1
----
57

query I rowsort
SELECT ALL + 20 * ( + 56 )
----
1120

query I rowsort
SELECT + COALESCE ( - - 52, + + 61 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT ALL - - MAX( ALL - + 22 ) + - - 57 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL - - MAX ( ALL - + 22 ) + - - 57 AS col0
----
35

query I rowsort
SELECT DISTINCT - 37 + - - 75 AS col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5554
SELECT ALL - - 86 DIV - 75
----
-1

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL - - 86 / - 75
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5556
SELECT DISTINCT + 87 + - CAST( ( + 99 ) AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT + 87 + - CAST ( ( + 99 ) AS INTEGER )
----
-12

query I rowsort
SELECT ALL - - 73 + 3 + 16 + 51 col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT - - NULLIF ( + COUNT( - 31 ), COALESCE ( - - COUNT( * ), AVG ( + - 45 ) ) * - ( - + 90 ) + 16 )
----
1

skipif mysql # not compatible
query I rowsort label-5558
SELECT - - NULLIF ( + COUNT ( - 31 ), COALESCE ( - - COUNT ( * ), AVG ( + - 45 ) ) * - ( - + 90 ) + 16 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5559
SELECT + 5 + ( 90 ) * - 37 + - - 58 + CASE + - COUNT( * ) WHEN + - 41 THEN + 7 / 96 + + - 67 * 99 * + - CAST( NULL AS SIGNED ) END + + - 53 * - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT + 5 + ( 90 ) * - 37 + - - 58 + CASE + - COUNT ( * ) WHEN + - 41 THEN + 7 / 96 + + - 67 * 99 * + - CAST ( NULL AS INTEGER ) END + + - 53 * - 82 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5560
SELECT - 75 * - COUNT( - 87 ) + - - CAST( NULL AS SIGNED ) * - - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5560
SELECT - 75 * - COUNT ( - 87 ) + - - CAST ( NULL AS INTEGER ) * - - 99
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5561
SELECT ALL + 43 * - COUNT( * ) AS col1, 24 * + - 7 col2
----
-43
-168

skipif mysql # not compatible
query II rowsort label-5561
SELECT ALL + 43 * - COUNT ( * ) AS col1, 24 * + - 7 col2
----
-43
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT - - COUNT( + 77 ) + 2 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5562
SELECT - - COUNT ( + 77 ) + 2 AS col2
----
3

query I rowsort
SELECT - - 83 * + 41
----
3403

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5564
SELECT - + 13 + + 33 + - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-5564
SELECT - + 13 + + 33 + - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5565
SELECT DISTINCT + COUNT( * ) DIV SUM( ALL + - 66 ) * - 62 * NULLIF ( + 7, + 5 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT + COUNT ( * ) / SUM ( ALL + - 66 ) * - 62 * NULLIF ( + 7, + 5 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5566
SELECT ALL 26 DIV 11 - - 78 DIV - 88 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL 26 / 11 - - 78 / - 88 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL + MIN( DISTINCT + + 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL + MIN ( DISTINCT + + 60 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-5568
SELECT + COUNT( * ) AS col2, 28 + 29 * COUNT( * ) * SUM( DISTINCT + 6 ) * + 40
----
1
6988

skipif mysql # not compatible
query II rowsort label-5568
SELECT + COUNT ( * ) AS col2, 28 + 29 * COUNT ( * ) * SUM ( DISTINCT + 6 ) * + 40
----
1
6988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5569
SELECT - COALESCE ( 30, + ( 53 ), 56 + - - 90 - - CASE + COUNT( * ) WHEN COALESCE ( + + COUNT( * ), - COUNT( * ) * - 80 ) THEN - CAST( + - 96 AS SIGNED ) - COUNT( * ) + + CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN NULL WHEN 82 THEN NULL END * - + 0 * + COUNT( * ) ) + COUNT( - - ( 55 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-5569
SELECT - COALESCE ( 30, + ( 53 ), 56 + - - 90 - - CASE + COUNT ( * ) WHEN COALESCE ( + + COUNT ( * ), - COUNT ( * ) * - 80 ) THEN - CAST ( + - 96 AS INTEGER ) - COUNT ( * ) + + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN NULL WHEN 82 THEN NULL END * - + 0 * + COUNT ( * ) ) + COUNT ( - - ( 55 ) )
----
-29

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5572
SELECT + CASE + 85 WHEN - 8 - + + COUNT( DISTINCT + - 28 ) + CASE - COUNT( * ) WHEN + 8 THEN + 55 END THEN + 2 WHEN + 40 * + 55 + + + 44 + MAX( ALL + + 52 ) * + COUNT( * ) + 76 * - - 82 - - CAST( NULL AS SIGNED ) THEN + + 6 WHEN - ( + + 87 ) + - 78 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT + CASE + 85 WHEN - 8 - + + COUNT ( DISTINCT + - 28 ) + CASE - COUNT ( * ) WHEN + 8 THEN + 55 END THEN + 2 WHEN + 40 * + 55 + + + 44 + MAX ( ALL + + 52 ) * + COUNT ( * ) + 76 * - - 82 - - CAST ( NULL AS INTEGER ) THEN + + 6 WHEN - ( + + 87 ) + - 78 THEN NULL END
----
NULL

query I rowsort
SELECT - 0 * - 15 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5574
SELECT ALL + 56 * 95 DIV 35 AS col0, - COUNT( * ) AS col1
----
152
-1

skipif mysql # not compatible
query II rowsort label-5574
SELECT ALL + 56 * 95 / 35 AS col0, - COUNT ( * ) AS col1
----
152
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5575
SELECT - 13 * + + 4 * 87 - 5 + + 8 + + 21 + - + 47 * - 95 * - 76 + 32 + + + NULLIF ( - - CASE WHEN NOT AVG ( DISTINCT + 52 ) BETWEEN NULL AND NULL THEN CAST( NULL AS SIGNED ) ELSE + 60 END, + + 14 ), + 24 * + 80 AS col1
----
-343748
1920

skipif mysql # not compatible
query II rowsort label-5575
SELECT - 13 * + + 4 * 87 - 5 + + 8 + + 21 + - + 47 * - 95 * - 76 + 32 + + + NULLIF ( - - CASE WHEN NOT AVG ( DISTINCT + 52 ) BETWEEN NULL AND NULL THEN CAST ( NULL AS INTEGER ) ELSE + 60 END, + + 14 ), + 24 * + 80 AS col1
----
-343748
1920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5576
SELECT + COUNT( * ), 92 + - CASE 53 WHEN ( + 4 ) * CAST( NULL AS SIGNED ) / 59 + - 81 + 34 THEN + COALESCE ( - 44, + 44 * + 45 * 90 * + - 63 ) * + COUNT( * ) * - 9 + + ( - + 99 ) + + + 70 * - 89 / + SUM( - 76 ) WHEN + + COUNT( * ) THEN NULL ELSE NULL END AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5576
SELECT + COUNT ( * ), 92 + - CASE 53 WHEN ( + 4 ) * CAST ( NULL AS INTEGER ) / 59 + - 81 + 34 THEN + COALESCE ( - 44, + 44 * + 45 * 90 * + - 63 ) * + COUNT ( * ) * - 9 + + ( - + 99 ) + + + 70 * - 89 / + SUM ( - 76 ) WHEN + + COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
1
NULL

query II rowsort
SELECT DISTINCT + 21, 49 AS col2
----
21
49

query I rowsort
SELECT ALL 64 * 36 AS col2
----
2304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5579
SELECT - COUNT( 8 ) * - - 11 DIV + COUNT( ALL 23 ) + - + COUNT( * ) + + - 69 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-5579
SELECT - COUNT ( 8 ) * - - 11 / + COUNT ( ALL 23 ) + - + COUNT ( * ) + + - 69 AS col2
----
-81

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT - 10 * - COUNT( DISTINCT - - 88 ) * - 41 * - + COUNT( * ) AS col2
----
410

skipif mysql # not compatible
query I rowsort label-5582
SELECT - 10 * - COUNT ( DISTINCT - - 88 ) * - 41 * - + COUNT ( * ) AS col2
----
410

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5584
SELECT + 96 + + 60 + ( + COALESCE ( - - CAST( NULL AS SIGNED ), 49 * + + CASE - 46 WHEN - + ( + + 94 ) - + + CAST( 8 AS DECIMAL ) THEN NULL ELSE ( - SUM( + 9 ) ) END + - COUNT( * ) ) ) AS col0
----
-286

skipif mysql # not compatible
query I rowsort label-5584
SELECT + 96 + + 60 + ( + COALESCE ( - - CAST ( NULL AS INTEGER ), 49 * + + CASE - 46 WHEN - + ( + + 94 ) - + + CAST ( 8 AS REAL ) THEN NULL ELSE ( - SUM ( + 9 ) ) END + - COUNT ( * ) ) ) AS col0
----
-286

query I rowsort
SELECT DISTINCT 35 * + 27
----
945

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT + 23 + - COUNT( * ) + ( + 35 ) * - 98 col1
----
-3408

skipif mysql # not compatible
query I rowsort label-5586
SELECT + 23 + - COUNT ( * ) + ( + 35 ) * - 98 col1
----
-3408

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5587
SELECT ALL + 45 * + + CAST( NULL AS DECIMAL ) + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL + 45 * + + CAST ( NULL AS REAL ) + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT ALL - + 57 * + 38 + COUNT( * ) AS col1
----
-2165

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL - + 57 * + 38 + COUNT ( * ) AS col1
----
-2165

onlyif mysql # aggregate syntax: 
query II rowsort label-5589
SELECT + - 53 + 46 + - 67 + 76 AS col2, 46 + NULLIF ( - 42, - - COUNT( * ) )
----
2
4

skipif mysql # not compatible
query II rowsort label-5589
SELECT + - 53 + 46 + - 67 + 76 AS col2, 46 + NULLIF ( - 42, - - COUNT ( * ) )
----
2
4

query I rowsort
SELECT ALL - 47 * - 33
----
1551

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

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

query I rowsort
SELECT - - 3 + + 58 + + 25 * - 60
----
-1439

query I rowsort
SELECT + 12 * - - 23 AS col1
----
276

query I rowsort
SELECT DISTINCT - 53 * + + 63
----
-3339

query II rowsort
SELECT - + 79 AS col0, 21 * + 15
----
-79
315

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5596
SELECT ( + CAST( NULL AS SIGNED ) ) * - 78 * + 69 AS col2, + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5596
SELECT ( + CAST ( NULL AS INTEGER ) ) * - 78 * + 69 AS col2, + CAST ( NULL AS INTEGER )
----
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT 41 * - 66 AS col1
----
-2706

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT ALL COALESCE ( + 48, + SUM( DISTINCT 87 ) ) * + COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL COALESCE ( + 48, + SUM ( DISTINCT 87 ) ) * + COUNT ( * ) AS col2
----
48

onlyif mysql # DIV for integer division: 
query II rowsort label-5600
SELECT 59 DIV + NULLIF ( - 78, 22 ) AS col2, - 70 * - - 86 * 12
----
0
-72240

skipif mysql # not compatible
query II rowsort label-5600
SELECT 59 / + NULLIF ( - 78, 22 ) AS col2, - 70 * - - 86 * 12
----
0
-72240

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT ALL - 89 + - 36 * + ( COUNT( * ) ) * - - 8 + NULLIF ( 0, ( - - 69 ) ) * - + 21
----
-377

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL - 89 + - 36 * + ( COUNT ( * ) ) * - - 8 + NULLIF ( 0, ( - - 69 ) ) * - + 21
----
-377

query I rowsort
SELECT + ( + - 47 ) * 56 + + - 22 AS col1
----
-2654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5603
SELECT + ( - 41 ) * + 90 * + 95 + - ( + ( - - CAST( - 18 AS SIGNED ) ) ) - 54 - + 96 * - - 5 + 93
----
-350973

skipif mysql # not compatible
query I rowsort label-5603
SELECT + ( - 41 ) * + 90 * + 95 + - ( + ( - - CAST ( - 18 AS INTEGER ) ) ) - 54 - + 96 * - - 5 + 93
----
-350973

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT DISTINCT - 80 + 71 + + 29 * + 23 * + ( + 19 ) + - + COUNT( * ) * 36 + - + 21 * - 30
----
13258

skipif mysql # not compatible
query I rowsort label-5604
SELECT DISTINCT - 80 + 71 + + 29 * + 23 * + ( + 19 ) + - + COUNT ( * ) * 36 + - + 21 * - 30
----
13258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5605
SELECT ALL + 26 + CAST( + + 43 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL + 26 + CAST ( + + 43 AS INTEGER )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5606
SELECT DISTINCT + 8 + - 7 + - - 31 + 22 - + + COUNT( * ) DIV 96 * + - SUM( - 89 ) DIV - CAST( + 46 AS SIGNED ) + 5 + + - 5 * + - CAST( - COUNT( ALL + 90 ) AS SIGNED ), 11 AS col0
----
54
11

skipif mysql # not compatible
query II rowsort label-5606
SELECT DISTINCT + 8 + - 7 + - - 31 + 22 - + + COUNT ( * ) / 96 * + - SUM ( - 89 ) / - CAST ( + 46 AS INTEGER ) + 5 + + - 5 * + - CAST ( - COUNT ( ALL + 90 ) AS INTEGER ), 11 AS col0
----
54
11

query I rowsort
SELECT ALL + 53 * - - 65 * + 47
----
161915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5608
SELECT - MIN( DISTINCT + 90 ) * - CASE 31 WHEN 22 THEN + - COUNT( * ) * CASE - CASE + - 37 WHEN + 84 + + COALESCE ( - + 26, 20, + COUNT( * ) * - ( 88 ) ) * 8 * + 35 THEN + + 59 END WHEN + 9 + - + 90 * - 91 THEN NULL WHEN 81 + + NULLIF ( 62, - CAST( NULL AS SIGNED ) * - MIN( + + 10 ) - + + ( - 99 ) + + + ( + 56 ) + - 0 * ( - 78 ) + 21 * + 69 ) + + MAX( ALL + 95 ) * + 43 * - CASE 92 + ( 10 - - 32 ) WHEN COUNT( 92 ) * - 26 THEN COUNT( * ) WHEN 28 + 90 THEN NULL ELSE NULL END THEN 85 * 78 + - 21 * CAST( 16 / 17 - - CAST( NULL AS SIGNED ) AS SIGNED ) ELSE 73 * 61 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-5608
SELECT - MIN ( DISTINCT + 90 ) * - CASE 31 WHEN 22 THEN + - COUNT ( * ) * CASE - CASE + - 37 WHEN + 84 + + COALESCE ( - + 26, 20, + COUNT ( * ) * - ( 88 ) ) * 8 * + 35 THEN + + 59 END WHEN + 9 + - + 90 * - 91 THEN NULL WHEN 81 + + NULLIF ( 62, - CAST ( NULL AS INTEGER ) * - MIN ( + + 10 ) - + + ( - 99 ) + + + ( + 56 ) + - 0 * ( - 78 ) + 21 * + 69 ) + + MAX ( ALL + 95 ) * + 43 * - CASE 92 + ( 10 - - 32 ) WHEN COUNT ( 92 ) * - 26 THEN COUNT ( * ) WHEN 28 + 90 THEN NULL ELSE NULL END THEN 85 * 78 + - 21 * CAST ( 16 / 17 - - CAST ( NULL AS INTEGER ) AS INTEGER ) ELSE 73 * 61 END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5609
SELECT ALL + - 77 + + COALESCE ( + + 67, - COUNT( * ) * 27 * - ( - + 42 ) * 54 + + 28 + 12, - CAST( 69 AS SIGNED ) ) DIV 31
----
-75

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL + - 77 + + COALESCE ( + + 67, - COUNT ( * ) * 27 * - ( - + 42 ) * 54 + + 28 + 12, - CAST ( 69 AS INTEGER ) ) / 31
----
-75

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

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

query II rowsort
SELECT ( + 14 ) AS col0, 88
----
14
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT DISTINCT - - MIN( ALL + + 73 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT - - MIN ( ALL + + 73 ) AS col1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5613
SELECT ALL + - CAST( - + 54 AS SIGNED ) * - ( 16 ) + 87
----
-777

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL + - CAST ( - + 54 AS INTEGER ) * - ( 16 ) + 87
----
-777

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT COUNT( + + ( + 71 ) ) - + COUNT( * ) + 88 * - + 12
----
-1056

skipif mysql # not compatible
query I rowsort label-5614
SELECT COUNT ( + + ( + 71 ) ) - + COUNT ( * ) + 88 * - + 12
----
-1056

query I rowsort
SELECT - 66 * + 88 - + 22 AS col0
----
-5830

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5617
SELECT ALL - 66 DIV 53 DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL - 66 / 53 / 34
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5618
SELECT + 32 * + - 62, MAX( + 65 ) AS col0
----
-1984
65

skipif mysql # not compatible
query II rowsort label-5618
SELECT + 32 * + - 62, MAX ( + 65 ) AS col0
----
-1984
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT DISTINCT CASE + COUNT( * ) WHEN - - ( 77 ) + - NULLIF ( - 40, + 34 ) + + - 98 / ( + 93 ) THEN NULL WHEN + 49 + + SUM( + COALESCE ( - + 3, + + 18 + + 74 ) ) THEN 49 + MAX( - 22 ) + - 51 + - 64 + 77 * - - 76 - + 79 ELSE NULL END * + - 54 * + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT CASE + COUNT ( * ) WHEN - - ( 77 ) + - NULLIF ( - 40, + 34 ) + + - 98 / ( + 93 ) THEN NULL WHEN + 49 + + SUM ( + COALESCE ( - + 3, + + 18 + + 74 ) ) THEN 49 + MAX ( - 22 ) + - 51 + - 64 + 77 * - - 76 - + 79 ELSE NULL END * + - 54 * + 70 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5620
SELECT DISTINCT ( + + CAST( NULL AS DECIMAL ) ) / + COUNT( - + 60 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT ( + + CAST ( NULL AS REAL ) ) / + COUNT ( - + 60 ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5621
SELECT COALESCE ( + CASE + + CAST( NULL AS SIGNED ) WHEN - 84 / + MIN( DISTINCT + 8 ) * + ( - 32 ) - - 84 * CAST( NULL AS SIGNED ) * - 0 THEN NULL WHEN 8 THEN NULL WHEN - 0 * 84 THEN + - 62 * COUNT( * ) * + - 91 END, + COUNT( * ), + CASE WHEN - 24 = - 3 THEN - CASE + - SUM( DISTINCT + 94 ) WHEN - 26 THEN + CAST( + - COUNT( * ) AS SIGNED ) ELSE NULL END * + 2 + 59 - + - 51 - - - 48 + - 89 ELSE NULL END * + 10 )
----
1

skipif mysql # not compatible
query I rowsort label-5621
SELECT COALESCE ( + CASE + + CAST ( NULL AS INTEGER ) WHEN - 84 / + MIN ( DISTINCT + 8 ) * + ( - 32 ) - - 84 * CAST ( NULL AS INTEGER ) * - 0 THEN NULL WHEN 8 THEN NULL WHEN - 0 * 84 THEN + - 62 * COUNT ( * ) * + - 91 END, + COUNT ( * ), + CASE WHEN - 24 = - 3 THEN - CASE + - SUM ( DISTINCT + 94 ) WHEN - 26 THEN + CAST ( + - COUNT ( * ) AS INTEGER ) ELSE NULL END * + 2 + 59 - + - 51 - - - 48 + - 89 ELSE NULL END * + 10 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5622
SELECT ( 46 ) - - CAST( NULL AS SIGNED ) + - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-5622
SELECT ( 46 ) - - CAST ( NULL AS INTEGER ) + - 56
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5623
SELECT CAST( - - 47 AS SIGNED ) * COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5623
SELECT CAST ( - - 47 AS INTEGER ) * COUNT ( * ) AS col0
----
47

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

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 28
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5625
SELECT CAST( - 78 AS SIGNED ) * + 82 AS col1
----
-6396

skipif mysql # not compatible
query I rowsort label-5625
SELECT CAST ( - 78 AS INTEGER ) * + 82 AS col1
----
-6396

query II rowsort
SELECT DISTINCT - 11 + + 40 * + + 70 * - + 1 * - 65 + + - ( + 10 ) + 74 AS col1, + 12
----
182053
12

query I rowsort
SELECT DISTINCT + 57 + - 99 AS col0
----
-42

query I rowsort
SELECT ALL - 2 * - + 58 col1
----
116

query I rowsort
SELECT ALL 98 * + + 12 + 0 AS col0
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT MIN( 65 )
----
65

skipif mysql # not compatible
query I rowsort label-5630
SELECT MIN ( 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT SUM( 48 )
----
48

skipif mysql # not compatible
query I rowsort label-5631
SELECT SUM ( 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT DISTINCT 42 * - 13 + - 91 * - SUM( ALL - ( 96 ) ) + + + 27 - + - NULLIF ( + - 95, + + 20 )
----
-9350

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT 42 * - 13 + - 91 * - SUM ( ALL - ( 96 ) ) + + + 27 - + - NULLIF ( + - 95, + + 20 )
----
-9350

onlyif mysql # DIV for integer division: 
query I rowsort label-5633
SELECT 94 DIV 95 * + 89
----
0

skipif mysql # not compatible
query I rowsort label-5633
SELECT 94 / 95 * + 89
----
0

query I rowsort
SELECT 65 - + 19 AS col2
----
46

query I rowsort
SELECT + 66 * 5 - + 6 AS col2
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT DISTINCT - NULLIF ( - 89, COUNT( * ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT - NULLIF ( - 89, COUNT ( * ) ) AS col2
----
89

query I rowsort
SELECT DISTINCT - 2 * + 84 + - 58
----
-226

query I rowsort
SELECT ALL 45 * 45
----
2025

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5641
SELECT - 14 - + 99 + CAST( NULL AS SIGNED ) + + - 44 + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-5641
SELECT - 14 - + 99 + CAST ( NULL AS INTEGER ) + + - 44 + - 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT - 58 * ( - COUNT( * ) ) + 97 + + 20 + 91 * 14 * 75 - 66 col0
----
95659

skipif mysql # not compatible
query I rowsort label-5642
SELECT - 58 * ( - COUNT ( * ) ) + 97 + + 20 + 91 * 14 * 75 - 66 col0
----
95659

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5643
SELECT + 67 * + 56 + - MIN( - - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5643
SELECT + 67 * + 56 + - MIN ( - - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT - + MIN( DISTINCT - - ( 56 ) ) + - COUNT( * ) * - 60 + - 26 col0
----
-22

skipif mysql # not compatible
query I rowsort label-5644
SELECT - + MIN ( DISTINCT - - ( 56 ) ) + - COUNT ( * ) * - 60 + - 26 col0
----
-22

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

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

query I rowsort
SELECT DISTINCT + ( - + 5 ) col0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-5647
SELECT ALL - 64 * MAX( DISTINCT 32 ) + ( - 99 ) AS col0, - ( NULLIF ( + + 40, 9 ) ) + + 40 AS col2
----
-2147
0

skipif mysql # not compatible
query II rowsort label-5647
SELECT ALL - 64 * MAX ( DISTINCT 32 ) + ( - 99 ) AS col0, - ( NULLIF ( + + 40, 9 ) ) + + 40 AS col2
----
-2147
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5648
SELECT - 78 * + - 41 + + + MIN( + 79 ) * + + COUNT( * ) + - 33 / CAST( NULL AS SIGNED ) * + 47 * + ( + 1 ) / + 18 + + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5648
SELECT - 78 * + - 41 + + + MIN ( + 79 ) * + + COUNT ( * ) + - 33 / CAST ( NULL AS INTEGER ) * + 47 * + ( + 1 ) / + 18 + + - 96
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5649
SELECT - 30 DIV + 41 + ( + 48 ) DIV 80 * - + 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5649
SELECT - 30 / + 41 + ( + 48 ) / 80 * - + 30 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT - NULLIF ( - 29, + 30 ) + COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5650
SELECT - NULLIF ( - 29, + 30 ) + COUNT ( * ) AS col2
----
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT - SUM( + 60 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-5652
SELECT - SUM ( + 60 ) AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5653
SELECT ALL 89 / + CAST( + 47 AS SIGNED ) * + - COUNT( * ) + - CAST( NULL AS SIGNED ) + + + 11 * - + 49 AS col2, + NULLIF ( - + MIN( - 22 ), - 92 + + 25 )
----
NULL
22

skipif mysql # not compatible
query II rowsort label-5653
SELECT ALL 89 / + CAST ( + 47 AS INTEGER ) * + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + + 11 * - + 49 AS col2, + NULLIF ( - + MIN ( - 22 ), - 92 + + 25 )
----
NULL
22

query I rowsort
SELECT - 94 + - + 66
----
-160

onlyif mysql # aggregate syntax: 
query II rowsort label-5655
SELECT - MIN( ALL 7 ) AS col0, 27
----
-7
27

skipif mysql # not compatible
query II rowsort label-5655
SELECT - MIN ( ALL 7 ) AS col0, 27
----
-7
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT ALL + CASE 9 WHEN - 4 * - 75 + MIN( + 58 ) THEN 99 WHEN + COUNT( * ) THEN - 88 ELSE NULL END + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL + CASE 9 WHEN - 4 * - 75 + MIN ( + 58 ) THEN 99 WHEN + COUNT ( * ) THEN - 88 ELSE NULL END + 60
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5657
SELECT DISTINCT - 16 DIV - 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT - 16 / - 39 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5658
SELECT + 29 DIV 99 * - - 25
----
0

skipif mysql # not compatible
query I rowsort label-5658
SELECT + 29 / 99 * - - 25
----
0

query I rowsort
SELECT ALL 41 + + + 26 + - - 38
----
105

query I rowsort
SELECT ALL - 98 * - 19 col1
----
1862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5661
SELECT DISTINCT 11 + 67 * + - CAST( NULL AS SIGNED ) + 96 + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5661
SELECT DISTINCT 11 + 67 * + - CAST ( NULL AS INTEGER ) + 96 + + 90
----
NULL

query I rowsort
SELECT - 17 - 44
----
-61

query II rowsort
SELECT - 4, 11 * + + 9 AS col0
----
-4
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5664
SELECT + 40 + - + 0 - + + 70 * + + 4 + ( + NULLIF ( - 19, - AVG ( DISTINCT + + 93 ) ) ) DIV + + 66 * 63 AS col0
----
-240

skipif mysql # not compatible
query I rowsort label-5664
SELECT + 40 + - + 0 - + + 70 * + + 4 + ( + NULLIF ( - 19, - AVG ( DISTINCT + + 93 ) ) ) / + + 66 * 63 AS col0
----
-240

query I rowsort
SELECT DISTINCT 46 + - - 33
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT - MIN( - + 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5666
SELECT - MIN ( - + 81 ) AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5667
SELECT - CASE + - COUNT( * ) WHEN - 22 * + CAST( NULL AS SIGNED ) THEN 70 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5667
SELECT - CASE + - COUNT ( * ) WHEN - 22 * + CAST ( NULL AS INTEGER ) THEN 70 END AS col2
----
NULL

query II rowsort
SELECT ( + 5 ), 91 * - ( + 30 ) + - + 67 + + + 26 * - - 70 * + 53 AS col1
----
5
93663

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT ALL + 25 * 28 - + + 95 + 42 + - - MIN( + 0 ) + + 54 + + 93 AS col1
----
794

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL + 25 * 28 - + + 95 + 42 + - - MIN ( + 0 ) + + 54 + + 93 AS col1
----
794

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT ALL + MAX( - 62 ) col2
----
-62

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL + MAX ( - 62 ) col2
----
-62

query I rowsort
SELECT DISTINCT - + 77 * + - 24 AS col2
----
1848

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

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

query II rowsort
SELECT + 26, - 36 AS col1
----
26
-36

query I rowsort
SELECT - - 65 + + 23
----
88

query I rowsort
SELECT ALL - 60 * + 80 * - 64 * + 37 * + 44 AS col1
----
500121600

query II rowsort
SELECT ALL + 41 AS col1, + 3 + 83 * + 43 AS col1
----
41
3572

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT - 31 * - 3 + - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-5678
SELECT - 31 * - 3 + - COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT - - COUNT( * ) * - 36 * - + COALESCE ( + 21, 64 )
----
756

skipif mysql # not compatible
query I rowsort label-5679
SELECT - - COUNT ( * ) * - 36 * - + COALESCE ( + 21, 64 )
----
756

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

query I rowsort
SELECT DISTINCT CASE - 2 WHEN + 53 + + - 3 THEN + ( + 11 ) WHEN + + 33 THEN NULL WHEN - + 36 THEN NULL ELSE NULL END * 92 + + - 25 + - 2 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5682
SELECT ALL + - 34 DIV + ( 23 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL + - 34 / + ( 23 ) col2
----
-1

query I rowsort
SELECT - 19 * + - 19
----
361

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT + SUM( + 87 ) - - 10 + - - 62 * 84 col1
----
5305

skipif mysql # not compatible
query I rowsort label-5684
SELECT + SUM ( + 87 ) - - 10 + - - 62 * 84 col1
----
5305

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5685
SELECT + 85 * + 39 + - 2 * ( + 24 ) * + 26 + + 74 + + CAST( + + 59 AS SIGNED ) + - 59 * - - CAST( NULL AS SIGNED ) * + 72 * - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5685
SELECT + 85 * + 39 + - 2 * ( + 24 ) * + 26 + + 74 + + CAST ( + + 59 AS INTEGER ) + - 59 * - - CAST ( NULL AS INTEGER ) * + 72 * - 42 AS col1
----
NULL

query I rowsort
SELECT - + 3 - + 67 AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5687
SELECT ALL - 87 * + CAST( - 59 AS SIGNED ) + + CASE - - 56 WHEN + 90 * + ( 93 ) THEN + 54 WHEN - 55 * - 92 THEN - CAST( - COUNT( * ) AS SIGNED ) + + 62 END + + 17 + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL - 87 * + CAST ( - 59 AS INTEGER ) + + CASE - - 56 WHEN + 90 * + ( 93 ) THEN + 54 WHEN - 55 * - 92 THEN - CAST ( - COUNT ( * ) AS INTEGER ) + + 62 END + + 17 + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5688
SELECT ALL - 11 + + COUNT( * ) * + - ( + + ( - + COALESCE ( - CASE + 6 WHEN + - 56 THEN + 43 DIV + 65 + - 92 * - 1 + + CAST( - COALESCE ( 88, COUNT( * ) + 29, - - 0 DIV - - 43 + + ( - 17 ), - - 23 ) AS SIGNED ) ELSE NULL END, 4 * + MIN( ALL - 68 ) * + + COUNT( * ) ) ) )
----
-283

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL - 11 + + COUNT ( * ) * + - ( + + ( - + COALESCE ( - CASE + 6 WHEN + - 56 THEN + 43 / + 65 + - 92 * - 1 + + CAST ( - COALESCE ( 88, COUNT ( * ) + 29, - - 0 / - - 43 + + ( - 17 ), - - 23 ) AS INTEGER ) ELSE NULL END, 4 * + MIN ( ALL - 68 ) * + + COUNT ( * ) ) ) )
----
-283

query I rowsort
SELECT ALL - 2 * + 64
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5690
SELECT ALL - CAST( NULL AS SIGNED ) + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL - CAST ( NULL AS INTEGER ) + 77
----
NULL

query I rowsort
SELECT ALL + 39 + 88 + - 42
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-5692
SELECT - SUM( + + 54 ) AS col1, 54
----
-54
54

skipif mysql # not compatible
query II rowsort label-5692
SELECT - SUM ( + + 54 ) AS col1, 54
----
-54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT ALL MAX( DISTINCT + 71 ) + 86 * - 92 * 79
----
-624977

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL MAX ( DISTINCT + 71 ) + 86 * - 92 * 79
----
-624977

query I rowsort
SELECT - 17 + + 48 - - + 91 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT - 0 - - 15 - - + 11 * + MAX( DISTINCT + ( 62 ) ) * - 80 * - 56 + - 16 AS col0
----
3055359

skipif mysql # not compatible
query I rowsort label-5695
SELECT - 0 - - 15 - - + 11 * + MAX ( DISTINCT + ( 62 ) ) * - 80 * - 56 + - 16 AS col0
----
3055359

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5696
SELECT DISTINCT CAST( 21 AS SIGNED ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT CAST ( 21 AS INTEGER ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT - MAX( ALL + + 41 ) * 11 + + 26 AS col1
----
-425

skipif mysql # not compatible
query I rowsort label-5697
SELECT - MAX ( ALL + + 41 ) * 11 + + 26 AS col1
----
-425

query I rowsort
SELECT + 93 * NULLIF ( 51, - - 41 ) * + 28 * 46 AS col1
----
6108984

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5699
SELECT - SUM( - 14 ), + 81 DIV 58 AS col2
----
14
1

skipif mysql # not compatible
query II rowsort label-5699
SELECT - SUM ( - 14 ), + 81 / 58 AS col2
----
14
1

query II rowsort
SELECT DISTINCT + 94 - - - 39, 93 AS col2
----
55
93

query II rowsort
SELECT ALL ( + + 59 ), - 22 AS col0
----
59
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT DISTINCT COUNT( * ) * 36 * - 54
----
-1944

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT COUNT ( * ) * 36 * - 54
----
-1944

onlyif mysql # aggregate syntax: 
query II rowsort label-5703
SELECT - ( + - NULLIF ( + 88, - - 65 ) ) + - 52 AS col0, - 37 + + + 40 + - + 31 - - + 60 * + CASE COUNT( * ) WHEN - + MIN( DISTINCT + 58 ) THEN + 24 + 50 WHEN - - 53 + + - 48 THEN + + 49 END AS col0
----
36
NULL

skipif mysql # not compatible
query II rowsort label-5703
SELECT - ( + - NULLIF ( + 88, - - 65 ) ) + - 52 AS col0, - 37 + + + 40 + - + 31 - - + 60 * + CASE COUNT ( * ) WHEN - + MIN ( DISTINCT + 58 ) THEN + 24 + 50 WHEN - - 53 + + - 48 THEN + + 49 END AS col0
----
36
NULL

query I rowsort
SELECT - ( + - 79 ) * 73 AS col2
----
5767

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5705
SELECT ALL + 67 DIV - MAX( ( - 44 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL + 67 / - MAX ( ( - 44 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5706
SELECT ALL 28 * - COUNT( * ), 37 AS col0
----
-28
37

skipif mysql # not compatible
query II rowsort label-5706
SELECT ALL 28 * - COUNT ( * ), 37 AS col0
----
-28
37

query I rowsort
SELECT + NULLIF ( + 94, + 4 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT + CASE COUNT( * ) WHEN + CASE 50 WHEN 48 THEN - - 4 WHEN + + 27 / - ( 6 ) THEN MIN( - 47 ) ELSE - 5 END THEN - 33 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5708
SELECT + CASE COUNT ( * ) WHEN + CASE 50 WHEN 48 THEN - - 4 WHEN + + 27 / - ( 6 ) THEN MIN ( - 47 ) ELSE - 5 END THEN - 33 END AS col0
----
NULL

query II rowsort
SELECT ALL - 31 * - 72 AS col0, - 49
----
2232
-49

query I rowsort
SELECT 53 * ( - 38 ) AS col0
----
-2014

query I rowsort
SELECT 84 - + - 9 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT COUNT( - 12 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5712
SELECT COUNT ( - 12 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT ALL 59 + - COALESCE ( - 83, - - 10 * - 14 + - MAX( ALL + 87 ) - - MIN( ALL 6 ), + 20 ) AS col2
----
142

skipif mysql # not compatible
query I rowsort label-5713
SELECT ALL 59 + - COALESCE ( - 83, - - 10 * - 14 + - MAX ( ALL + 87 ) - - MIN ( ALL 6 ), + 20 ) AS col2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT COUNT( DISTINCT + 86 ) - 36
----
-35

skipif mysql # not compatible
query I rowsort label-5714
SELECT COUNT ( DISTINCT + 86 ) - 36
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-5715
SELECT - - 34 * - 25 + + 27 DIV - 28 + - + 71
----
-921

skipif mysql # not compatible
query I rowsort label-5715
SELECT - - 34 * - 25 + + 27 / - 28 + - + 71
----
-921

onlyif mysql # DIV for integer division: 
query I rowsort label-5716
SELECT + 12 - + + 17 DIV - 85 * 97
----
12

skipif mysql # not compatible
query I rowsort label-5716
SELECT + 12 - + + 17 / - 85 * 97
----
12

query I rowsort
SELECT 2 + + COALESCE ( 11, 70 + - 81, + 67 )
----
13

query I rowsort
SELECT - 79 + 16
----
-63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT 25 + - + 92 * + 59 * + COALESCE ( - ( + 37 ), - 99 ) * 54 + + MAX( DISTINCT 44 ) AS col0
----
10845213

skipif mysql # not compatible
query I rowsort label-5720
SELECT 25 + - + 92 * + 59 * + COALESCE ( - ( + 37 ), - 99 ) * 54 + + MAX ( DISTINCT 44 ) AS col0
----
10845213

query I rowsort
SELECT ALL ( - ( + 86 ) ) + 53 AS col0
----
-33

query I rowsort
SELECT + - 33 * - + 79 + - 6
----
2601

query II rowsort
SELECT 2, 21 AS col2
----
2
21

query II rowsort
SELECT DISTINCT 37, 30 AS col1
----
37
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5725
SELECT ( + - 6 ) DIV + 74 * - 67, COUNT( DISTINCT - + 80 ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-5725
SELECT ( + - 6 ) / + 74 * - 67, COUNT ( DISTINCT - + 80 ) AS col1
----
0
1

query II rowsort
SELECT - 91 AS col2, 79
----
-91
79

query I rowsort
SELECT 88 + - 40 col2
----
48

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5729
SELECT 96, ( - 14 ) + - - CAST( - 16 AS SIGNED ) AS col2
----
96
-30

skipif mysql # not compatible
query II rowsort label-5729
SELECT 96, ( - 14 ) + - - CAST ( - 16 AS INTEGER ) AS col2
----
96
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT ALL + 80 * 78 * COUNT( * ) * + SUM( ALL - 4 )
----
-24960

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL + 80 * 78 * COUNT ( * ) * + SUM ( ALL - 4 )
----
-24960

query I rowsort
SELECT 78 * - + 71 AS col1
----
-5538

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

query I rowsort
SELECT DISTINCT + 54 * + 11 AS col0
----
594

query I rowsort
SELECT ALL + 81 * - 71 AS col1
----
-5751

query I rowsort
SELECT 4 * - 92 AS col2
----
-368

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

skipif mysql # not compatible
query II rowsort label-5736
SELECT 96 AS col1, CAST ( NULL AS INTEGER )
----
96
NULL

query I rowsort
SELECT 78 - - - 37
----
41

query I rowsort
SELECT 94 * - + ( + - 25 ) AS col1
----
2350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5739
SELECT - ( + CAST( - 15 AS SIGNED ) ) + - - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-5739
SELECT - ( + CAST ( - 15 AS INTEGER ) ) + - - COUNT ( * )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT ALL - - SUM( DISTINCT ( - ( 86 ) ) ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL - - SUM ( DISTINCT ( - ( 86 ) ) ) AS col2
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5741
SELECT - 84 * + MIN( + - 67 ) - + 37 AS col0, + CAST( NULL AS SIGNED ) AS col0
----
5591
NULL

skipif mysql # not compatible
query II rowsort label-5741
SELECT - 84 * + MIN ( + - 67 ) - + 37 AS col0, + CAST ( NULL AS INTEGER ) AS col0
----
5591
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5742
SELECT ALL - 58, 10 * + + CAST( + COALESCE ( - 66, - CASE - + MAX( + - 51 ) WHEN - 19 + - 17 THEN + - 4 ELSE 82 + 70 + COUNT( * ) END * + + 87 * + 91 + + 99 * 70 / - 17 * + 1 + 40, CAST( + COUNT( * ) AS SIGNED ) + - 27 ) AS SIGNED ) + + + CASE - 52 WHEN 89 + - 95 THEN + CAST( + + 66 AS SIGNED ) ELSE - + 27 END AS col0
----
-58
-687

skipif mysql # not compatible
query II rowsort label-5742
SELECT ALL - 58, 10 * + + CAST ( + COALESCE ( - 66, - CASE - + MAX ( + - 51 ) WHEN - 19 + - 17 THEN + - 4 ELSE 82 + 70 + COUNT ( * ) END * + + 87 * + 91 + + 99 * 70 / - 17 * + 1 + 40, CAST ( + COUNT ( * ) AS INTEGER ) + - 27 ) AS INTEGER ) + + + CASE - 52 WHEN 89 + - 95 THEN + CAST ( + + 66 AS INTEGER ) ELSE - + 27 END AS col0
----
-58
-687

query I rowsort
SELECT + 60 * + + 40
----
2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5744
SELECT ALL - 77 * + CAST( NULL AS SIGNED ) * - - CASE - 16 WHEN - + COUNT( * ) THEN - 33 WHEN + 7 THEN - 94 END, - 6 AS col2
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-5744
SELECT ALL - 77 * + CAST ( NULL AS INTEGER ) * - - CASE - 16 WHEN - + COUNT ( * ) THEN - 33 WHEN + 7 THEN - 94 END, - 6 AS col2
----
NULL
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5745
SELECT ALL - - 63 + MAX( + 96 ) col1, 92 DIV 70 AS col0
----
159
1

skipif mysql # not compatible
query II rowsort label-5745
SELECT ALL - - 63 + MAX ( + 96 ) col1, 92 / 70 AS col0
----
159
1

query I rowsort
SELECT DISTINCT + 49 + - 24
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-5747
SELECT DISTINCT 22 * - + 16 * + 72, CASE - 57 WHEN - COUNT( - 19 ) THEN + 3 END AS col0
----
-25344
NULL

skipif mysql # not compatible
query II rowsort label-5747
SELECT DISTINCT 22 * - + 16 * + 72, CASE - 57 WHEN - COUNT ( - 19 ) THEN + 3 END AS col0
----
-25344
NULL

query I rowsort
SELECT + 27 * + 44 + + + 31 + + ( + 66 )
----
1285

query I rowsort
SELECT + 59 / 88 + CASE 11 WHEN ( - - 55 ) THEN + 83 END + + COALESCE ( 42, 42, 74, - + 31 ) / + 60 + 86 AS col2
----
NULL

query I rowsort
SELECT ALL - - 51 * - 14 AS col2
----
-714

query I rowsort
SELECT - 10 + 16 + 18 * - 14 * 90 * - 96
----
2177286

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5752
SELECT + 79, 36 - + 17 + - 98 + - - COALESCE ( + + COUNT( * ), - 55 - - COUNT( * ) + COUNT( * ) + + 44 * + SUM( COALESCE ( + 36, 92 * - 11 + + - 7, + 54 + 21 ) ) DIV 51 * + 59, + 11 ) - + 85 AS col0
----
79
-163

skipif mysql # not compatible
query II rowsort label-5752
SELECT + 79, 36 - + 17 + - 98 + - - COALESCE ( + + COUNT ( * ), - 55 - - COUNT ( * ) + COUNT ( * ) + + 44 * + SUM ( COALESCE ( + 36, 92 * - 11 + + - 7, + 54 + 21 ) ) / 51 * + 59, + 11 ) - + 85 AS col0
----
79
-163

query II rowsort
SELECT - 76 * + - 27 * - - 15 - + 84 * + 63 * - + ( - + 78 ) * - 74 col1, 34
----
30576204
34

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

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

query II rowsort
SELECT + 30 AS col0, + CASE - 34 WHEN + 9 / + 56 - + 84 THEN NULL ELSE 3 END * + + 80 * - 55 AS col2
----
30
-13200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5756
SELECT ALL - 31 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL - 31 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT DISTINCT 95 + - - COALESCE ( - 21, 84 + - 45 - - 14, + + 36 * 61 + ( - - ( + 5 ) ) + - 84 * 17 ) + - NULLIF ( + COUNT( ALL - 98 ), - + 67 + + 80 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-5757
SELECT DISTINCT 95 + - - COALESCE ( - 21, 84 + - 45 - - 14, + + 36 * 61 + ( - - ( + 5 ) ) + - 84 * 17 ) + - NULLIF ( + COUNT ( ALL - 98 ), - + 67 + + 80 ) AS col1
----
73

query I rowsort
SELECT 43 + - + 22
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5759
SELECT CAST( 55 AS SIGNED ) DIV - - 35 + 14 DIV - 79 * - - COUNT( DISTINCT + ( + 1 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5759
SELECT CAST ( 55 AS INTEGER ) / - - 35 + 14 / - 79 * - - COUNT ( DISTINCT + ( + 1 ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5760
SELECT CAST( 38 AS SIGNED ) * + + 19
----
722

skipif mysql # not compatible
query I rowsort label-5760
SELECT CAST ( 38 AS INTEGER ) * + + 19
----
722

query I rowsort
SELECT DISTINCT 23 * + + 51 AS col2
----
1173

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT ( - COUNT( * ) ) * - ( + 71 ) + + 21 - + - 72 * COUNT( * ) col2
----
164

skipif mysql # not compatible
query I rowsort label-5762
SELECT ( - COUNT ( * ) ) * - ( + 71 ) + + 21 - + - 72 * COUNT ( * ) col2
----
164

query I rowsort
SELECT 85 * - + 52 AS col2
----
-4420

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

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

query I rowsort
SELECT DISTINCT 81 * - - 57
----
4617

onlyif mysql # aggregate syntax: 
query II rowsort label-5766
SELECT CASE AVG ( DISTINCT 91 ) WHEN - + COUNT( * ) THEN NULL WHEN - + 15 * - 21 + 87 THEN 0 + COALESCE ( + ( 97 ), - 30, 94 ) + + 38 * AVG ( ALL + + 88 ) END + 75 AS col1, + 35 AS col0
----
NULL
35

skipif mysql # not compatible
query II rowsort label-5766
SELECT CASE AVG ( DISTINCT 91 ) WHEN - + COUNT ( * ) THEN NULL WHEN - + 15 * - 21 + 87 THEN 0 + COALESCE ( + ( 97 ), - 30, 94 ) + + 38 * AVG ( ALL + + 88 ) END + 75 AS col1, + 35 AS col0
----
NULL
35

query I rowsort
SELECT - 86 - - ( + - 76 ) col1
----
-162

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT DISTINCT - 39 + + 18 * - MAX( DISTINCT - 89 ) + - 3
----
1560

skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT - 39 + + 18 * - MAX ( DISTINCT - 89 ) + - 3
----
1560

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5771
SELECT ALL + 12 + + + 77 AS col0, + COUNT( 27 ) AS col2
----
89
1

skipif mysql # not compatible
query II rowsort label-5771
SELECT ALL + 12 + + + 77 AS col0, + COUNT ( 27 ) AS col2
----
89
1

query I rowsort
SELECT ALL + 48 * 42 * + 7 col2
----
14112

onlyif mysql # aggregate syntax: 
query II rowsort label-5773
SELECT - - COUNT( * ) * - 12, 5 col0
----
-12
5

skipif mysql # not compatible
query II rowsort label-5773
SELECT - - COUNT ( * ) * - 12, 5 col0
----
-12
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT ALL + - COUNT( * ) + + + ( - NULLIF ( - ( + 40 ), + - NULLIF ( - 46, - 2 * + + 95 * - 78 ) ) ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL + - COUNT ( * ) + + + ( - NULLIF ( - ( + 40 ), + - NULLIF ( - 46, - 2 * + + 95 * - 78 ) ) ) AS col1
----
39

query I rowsort
SELECT DISTINCT + - 99 * - 67 AS col0
----
6633

onlyif mysql # DIV for integer division: 
query II rowsort label-5776
SELECT 57 DIV 45 + + + 34 + NULLIF ( + 69, - 59 + + 19 + 23 * - - 78 * + - 1 + 15 ) * - ( + ( + - 65 ) ) AS col2, 22
----
4520
22

skipif mysql # not compatible
query II rowsort label-5776
SELECT 57 / 45 + + + 34 + NULLIF ( + 69, - 59 + + 19 + 23 * - - 78 * + - 1 + 15 ) * - ( + ( + - 65 ) ) AS col2, 22
----
4520
22

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

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

query I rowsort
SELECT - - 90 + ( - - 21 )
----
111

query I rowsort
SELECT + 40 * ( - - 9 ) * - 32 * - - 7 + - 20 AS col0
----
-80660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5780
SELECT DISTINCT - 5 DIV + COUNT( * ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-5780
SELECT DISTINCT - 5 / + COUNT ( * ) col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5781
SELECT + MAX( 84 ) DIV - COALESCE ( + NULLIF ( + 90, + COUNT( - + 39 ) + + - COUNT( * ) ), - - 86, - COUNT( * ) ) * + 33 - - - COALESCE ( + 41, ( 44 ) ) + - - 39
----
-2

skipif mysql # not compatible
query I rowsort label-5781
SELECT + MAX ( 84 ) / - COALESCE ( + NULLIF ( + 90, + COUNT ( - + 39 ) + + - COUNT ( * ) ), - - 86, - COUNT ( * ) ) * + 33 - - - COALESCE ( + 41, ( 44 ) ) + - - 39
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT ALL + 67 * - NULLIF ( 3, 63 ) + + 26 + + - NULLIF ( 45, + 37 * + COUNT( * ) ) * + 70 + - - NULLIF ( + 67, - 96 ) + + 1 * + - 95 + - 74 AS col1
----
-3427

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL + 67 * - NULLIF ( 3, 63 ) + + 26 + + - NULLIF ( 45, + 37 * + COUNT ( * ) ) * + 70 + - - NULLIF ( + 67, - 96 ) + + 1 * + - 95 + - 74 AS col1
----
-3427

query I rowsort
SELECT - 10 - - ( 21 ) * - 93 AS col2
----
-1963

query I rowsort
SELECT ALL - 52 * - 61 col2
----
3172

query I rowsort
SELECT - ( - - 51 ) + - 81
----
-132

query I rowsort
SELECT + 94 * 56 AS col2
----
5264

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT CASE - 0 WHEN - 70 / 2 * - 60 THEN + - MAX( + + 36 ) END * + 28 + + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5787
SELECT CASE - 0 WHEN - 70 / 2 * - 60 THEN + - MAX ( + + 36 ) END * + 28 + + 55 AS col1
----
NULL

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

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

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

query II rowsort
SELECT ALL + 81 * - + 59 * - 83 col2, + 72
----
396657
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT MIN( 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-5791
SELECT MIN ( 22 ) AS col0
----
22

query I rowsort
SELECT + 11 + 98
----
109

query I rowsort
SELECT - 22 * + 77 AS col2
----
-1694

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

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT 34 / + CAST ( NULL AS INTEGER )
----
NULL

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

query I rowsort
SELECT ALL 69 * 30
----
2070

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5797
SELECT ALL - COUNT( * ) DIV + 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL - COUNT ( * ) / + 58 AS col1
----
0

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

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

query I rowsort
SELECT ALL + 83 + 92 AS col1
----
175

query I rowsort
SELECT DISTINCT + 19 + + 79
----
98

query I rowsort
SELECT ALL - 60 + - 69 * + - 19 col2
----
1251

query I rowsort
SELECT ALL + 2 + 60 AS col0
----
62

query I rowsort
SELECT ALL 26 * + 58
----
1508

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

query I rowsort
SELECT + 69 * + 22 AS col1
----
1518

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT - - COUNT( * ) + - + ( - NULLIF ( 34, ( 67 ) ) )
----
35

skipif mysql # not compatible
query I rowsort label-5806
SELECT - - COUNT ( * ) + - + ( - NULLIF ( 34, ( 67 ) ) )
----
35

query I rowsort
SELECT ALL - COALESCE ( - + 20, - 51 ) + + - 92 AS col2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-5808
SELECT ALL + 13 DIV ( + 93 ) - ( 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL + 13 / ( + 93 ) - ( 55 ) AS col1
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-5809
SELECT ALL - 77 DIV - 43 - - 81 - + 88 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL - 77 / - 43 - - 81 - + 88 AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5810
SELECT ALL 8 DIV - CAST( CAST( + 42 AS SIGNED ) AS SIGNED ) - + 18 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL 8 / - CAST ( CAST ( + 42 AS INTEGER ) AS INTEGER ) - + 18 AS col1
----
-18

query I rowsort
SELECT + + 92 * 38 + - 9 * - - 2
----
3478

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT DISTINCT + CASE + + 14 WHEN - ( 58 ) THEN + 73 + + 0 * + 30 * - 44 * + 22 WHEN 80 THEN - - 93 + MIN( DISTINCT + + 68 ) WHEN 17 - - 56 THEN + - 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5812
SELECT DISTINCT + CASE + + 14 WHEN - ( 58 ) THEN + 73 + + 0 * + 30 * - 44 * + 22 WHEN 80 THEN - - 93 + MIN ( DISTINCT + + 68 ) WHEN 17 - - 56 THEN + - 23 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT DISTINCT - + ( - COUNT( * ) ) * + COUNT( * ) + + 54 col1
----
55

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT - + ( - COUNT ( * ) ) * + COUNT ( * ) + + 54 col1
----
55

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

query II rowsort
SELECT + 31 AS col2, - ( + ( 45 ) )
----
31
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5817
SELECT - COUNT( * ) * - - 28 DIV - 20
----
1

skipif mysql # not compatible
query I rowsort label-5817
SELECT - COUNT ( * ) * - - 28 / - 20
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5819
SELECT ALL + ( + - CASE + CAST( 89 AS SIGNED ) WHEN - + NULLIF ( - 15, - 89 ) THEN + 85 END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL + ( + - CASE + CAST ( 89 AS INTEGER ) WHEN - + NULLIF ( - 15, - 89 ) THEN + 85 END ) col0
----
NULL

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

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

query I rowsort
SELECT 78 + + 99 + + - 80
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5822
SELECT 84 DIV - 40 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5822
SELECT 84 / - 40 AS col2
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT ALL - CASE + - 14 WHEN + 10 * 97 * + COUNT( * ) / - COALESCE ( - 56, - 99 ) THEN 15 * NULLIF ( - 71, + ( + 4 ) * - + 57 * - 38 ) + - + 88 + + 53 / + 99 WHEN + 74 + - 78 * - 68 / + + 77 THEN + 86 + - - 71 - - - 24 END * 63 + 10 + + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL - CASE + - 14 WHEN + 10 * 97 * + COUNT ( * ) / - COALESCE ( - 56, - 99 ) THEN 15 * NULLIF ( - 71, + ( + 4 ) * - + 57 * - 38 ) + - + 88 + + 53 / + 99 WHEN + 74 + - 78 * - 68 / + + 77 THEN + 86 + - - 71 - - - 24 END * 63 + 10 + + 59 AS col2
----
NULL

query I rowsort
SELECT 29 * 26 * - - 54
----
40716

query I rowsort
SELECT DISTINCT - 59 + - 83 AS col2
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT DISTINCT + NULLIF ( + - 79, 2 + 82 ) + - MAX( + - 30 ) * - 46 * ( - 15 )
----
20621

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT + NULLIF ( + - 79, 2 + 82 ) + - MAX ( + - 30 ) * - 46 * ( - 15 )
----
20621

query I rowsort
SELECT 19 * + - 69 AS col2
----
-1311

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT COUNT( * ) + - MIN( DISTINCT 2 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5829
SELECT COUNT ( * ) + - MIN ( DISTINCT 2 ) AS col2
----
-1

query II rowsort
SELECT ALL + 87 + 58, 16 col0
----
145
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5831
SELECT DISTINCT - COALESCE ( ( CAST( 93 AS SIGNED ) ), - CASE 40 WHEN + 25 / - 4 THEN 61 END - 56 ) * - SUM( - - 73 )
----
6789

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT - COALESCE ( ( CAST ( 93 AS INTEGER ) ), - CASE 40 WHEN + 25 / - 4 THEN 61 END - 56 ) * - SUM ( - - 73 )
----
6789

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5832
SELECT - NULLIF ( 55, - CAST( NULL AS SIGNED ) * + 33 )
----
-55

skipif mysql # not compatible
query I rowsort label-5832
SELECT - NULLIF ( 55, - CAST ( NULL AS INTEGER ) * + 33 )
----
-55

query I rowsort
SELECT 46 + 77 * + ( 12 ) AS col0
----
970

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

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

query I rowsort
SELECT DISTINCT NULLIF ( + - 85, + 58 ) + 65
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT ALL - COUNT( ALL + 61 ) + - - COALESCE ( - - 83, - ( + COUNT( * ) ) )
----
82

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL - COUNT ( ALL + 61 ) + - - COALESCE ( - - 83, - ( + COUNT ( * ) ) )
----
82

query II rowsort
SELECT - + 23, + 68 AS col2
----
-23
68

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5839
SELECT - + ( - + CAST( - 59 AS SIGNED ) )
----
-59

skipif mysql # not compatible
query I rowsort label-5839
SELECT - + ( - + CAST ( - 59 AS INTEGER ) )
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-5840
SELECT ALL - 56 col2, + COUNT( * )
----
-56
1

skipif mysql # not compatible
query II rowsort label-5840
SELECT ALL - 56 col2, + COUNT ( * )
----
-56
1

query II rowsort
SELECT + 48, ( + 33 ) AS col2
----
48
33

query I rowsort
SELECT ALL + 88 - 5 AS col0
----
83

query I rowsort
SELECT ALL COALESCE ( - + ( 46 ), - + 2 * + 29 + + 36, + 2 ) AS col1
----
-46

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

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

query I rowsort
SELECT - 70 * 88 AS col1
----
-6160

query I rowsort
SELECT ALL - - 62 col0
----
62

query I rowsort
SELECT 2 + - + 8 AS col0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-5848
SELECT + 36 DIV - + 91 + - 90
----
-90

skipif mysql # not compatible
query I rowsort label-5848
SELECT + 36 / - + 91 + - 90
----
-90

query I rowsort
SELECT 72 * - 46 AS col1
----
-3312

query I rowsort
SELECT ALL - 17 * + + 96 col0
----
-1632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5851
SELECT 4 - + CAST( + + ( - COUNT( DISTINCT + 44 ) ) AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-5851
SELECT 4 - + CAST ( + + ( - COUNT ( DISTINCT + 44 ) ) AS INTEGER )
----
5

query I rowsort
SELECT + 69 * + 49 + + ( + 50 ) col1
----
3431

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5853
SELECT - 82 * CAST( + - 55 AS SIGNED ) + + + ( - 61 ) AS col1
----
4449

skipif mysql # not compatible
query I rowsort label-5853
SELECT - 82 * CAST ( + - 55 AS INTEGER ) + + + ( - 61 ) AS col1
----
4449

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT 32 + - 73 * + + 45 * + COUNT( * ) + + + 38
----
-3215

skipif mysql # not compatible
query I rowsort label-5854
SELECT 32 + - 73 * + + 45 * + COUNT ( * ) + + + 38
----
-3215

query I rowsort
SELECT 3 + NULLIF ( - 87, - - 2 * + 72 * + 2 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT - 25 * + COALESCE ( + 39, + + 48 ) + CASE + - 58 WHEN - - COUNT( * ) * - 22 THEN - + 20 / - 84 END * - 97 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5856
SELECT - 25 * + COALESCE ( + 39, + + 48 ) + CASE + - 58 WHEN - - COUNT ( * ) * - 22 THEN - + 20 / - 84 END * - 97 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5857
SELECT 22 + COUNT( * ) AS col0, 81 * - - 25
----
23
2025

skipif mysql # not compatible
query II rowsort label-5857
SELECT 22 + COUNT ( * ) AS col0, 81 * - - 25
----
23
2025

query I rowsort
SELECT ( + - 40 ) * - + 10 AS col0
----
400

query II rowsort
SELECT 38 * 77, - 66 AS col2
----
2926
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5860
SELECT CAST( NULL AS SIGNED ) + 13 / 95 * - 6 / 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5860
SELECT CAST ( NULL AS INTEGER ) + 13 / 95 * - 6 / 99
----
NULL

query I rowsort
SELECT + 68 * - - 18
----
1224

query I rowsort
SELECT + 52 + - + 88 AS col0
----
-36

query I rowsort
SELECT 91 * + - 3 AS col0
----
-273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5864
SELECT - 4 * + CASE + 16 WHEN 16 - - 38 * + SUM( CAST( NULL AS SIGNED ) ) * - + 21 * - 75 THEN CASE + + 74 WHEN - COUNT( * ) THEN + 84 + - 88 ELSE NULL END WHEN + 79 * - 57 THEN - CAST( + - 4 AS SIGNED ) + + 5 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5864
SELECT - 4 * + CASE + 16 WHEN 16 - - 38 * + SUM ( CAST ( NULL AS INTEGER ) ) * - + 21 * - 75 THEN CASE + + 74 WHEN - COUNT ( * ) THEN + 84 + - 88 ELSE NULL END WHEN + 79 * - 57 THEN - CAST ( + - 4 AS INTEGER ) + + 5 END col0
----
NULL

query I rowsort
SELECT ALL - 8 * + 24
----
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5866
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + - 91 * + 28 - + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + - 91 * + 28 - + - 95
----
NULL

query I rowsort
SELECT + 27 + + 71 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT MIN( ALL + + 33 ) * 30 * + 38
----
37620

skipif mysql # not compatible
query I rowsort label-5868
SELECT MIN ( ALL + + 33 ) * 30 * + 38
----
37620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5869
SELECT 37 + - CAST( + 65 AS SIGNED ) * - + COUNT( * ) * 48
----
3157

skipif mysql # not compatible
query I rowsort label-5869
SELECT 37 + - CAST ( + 65 AS INTEGER ) * - + COUNT ( * ) * 48
----
3157

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT 40 * - COUNT( * ) * - 76 + 4 AS col0
----
3044

skipif mysql # not compatible
query I rowsort label-5870
SELECT 40 * - COUNT ( * ) * - 76 + 4 AS col0
----
3044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5871
SELECT - CAST( + + 87 AS SIGNED ) + - - 40 + + + 9 * - 14 + 91 - 80 col2
----
-162

skipif mysql # not compatible
query I rowsort label-5871
SELECT - CAST ( + + 87 AS INTEGER ) + - - 40 + + + 9 * - 14 + 91 - 80 col2
----
-162

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5872
SELECT DISTINCT - AVG ( + - CAST( NULL AS DECIMAL ) ) / + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT - AVG ( + - CAST ( NULL AS REAL ) ) / + 89 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5873
SELECT ALL 73 * 46 DIV - - 24 + + 76 AS col0
----
215

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL 73 * 46 / - - 24 + + 76 AS col0
----
215

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5875
SELECT ALL + 21 DIV - COUNT( * ) col0, + NULLIF ( - ( + 26 ), + 73 )
----
-21
-26

skipif mysql # not compatible
query II rowsort label-5875
SELECT ALL + 21 / - COUNT ( * ) col0, + NULLIF ( - ( + 26 ), + 73 )
----
-21
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT ALL 78 * 91 * - MIN( + 32 ) * 62 + + + 67 - 71 + 5 * - + 4 + + + ( - 49 ) * 51 AS col2
----
-14084955

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL 78 * 91 * - MIN ( + 32 ) * 62 + + + 67 - 71 + 5 * - + 4 + + + ( - 49 ) * 51 AS col2
----
-14084955

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT MAX( DISTINCT - 44 ) * - NULLIF ( - 54, - 32 )
----
-2376

skipif mysql # not compatible
query I rowsort label-5877
SELECT MAX ( DISTINCT - 44 ) * - NULLIF ( - 54, - 32 )
----
-2376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5878
SELECT CASE - + 74 WHEN - + CAST( NULL AS SIGNED ) THEN - 36 WHEN - + CAST( + NULLIF ( + - COUNT( * ), - CASE + COUNT( * ) WHEN + 83 * - + 73 * + 40 * - 17 THEN - COUNT( * ) WHEN - 86 THEN NULL END ) AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5878
SELECT CASE - + 74 WHEN - + CAST ( NULL AS INTEGER ) THEN - 36 WHEN - + CAST ( + NULLIF ( + - COUNT ( * ), - CASE + COUNT ( * ) WHEN + 83 * - + 73 * + 40 * - 17 THEN - COUNT ( * ) WHEN - 86 THEN NULL END ) AS INTEGER ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 53 * + - 57 + 81 AS col0
----
-2940

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT ALL 22 * NULLIF ( - 51, - - COUNT( * ) ) * - 5 + - 66 - - - COUNT( * ) + - 91
----
5452

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL 22 * NULLIF ( - 51, - - COUNT ( * ) ) * - 5 + - 66 - - - COUNT ( * ) + - 91
----
5452

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5881
SELECT + 88 DIV COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5881
SELECT + 88 / COUNT ( * ) AS col1
----
88

query I rowsort
SELECT + 64 * - - 39 AS col2
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT DISTINCT 90 * - COUNT( * ) + + 87
----
-3

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT 90 * - COUNT ( * ) + + 87
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5884
SELECT ALL - 57 * - 94 * - - 15 + - CAST( + 12 AS SIGNED )
----
80358

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL - 57 * - 94 * - - 15 + - CAST ( + 12 AS INTEGER )
----
80358

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5885
SELECT + 28 * + - COALESCE ( + 37, - - COUNT( * ), 71 * - 4 DIV - 46 * + 43 + + 75 + + 59 ) * - 77 + + 50 * + 93
----
84422

skipif mysql # not compatible
query I rowsort label-5885
SELECT + 28 * + - COALESCE ( + 37, - - COUNT ( * ), 71 * - 4 / - 46 * + 43 + + 75 + + 59 ) * - 77 + + 50 * + 93
----
84422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5886
SELECT ALL - CAST( NULL AS SIGNED ) * + - 48 + 35 + - 83 * + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 48 + 35 + - 83 * + - 33
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5887
SELECT + 16 + - 98 + + + 44 AS col0, ( MAX( + 42 ) ) + 81 + - - 72 AS col0
----
-38
195

skipif mysql # not compatible
query II rowsort label-5887
SELECT + 16 + - 98 + + + 44 AS col0, ( MAX ( + 42 ) ) + 81 + - - 72 AS col0
----
-38
195

query I rowsort
SELECT + NULLIF ( 65, 63 )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5889
SELECT + 92 + - CASE - - ( - + 24 ) WHEN + - 3 * NULLIF ( + 16, + COALESCE ( - 52, + 68, - + 70 ) ) + - 44 * - + 52 THEN 20 * - 43 + + + 94 END * + ( + + 19 ) + + 60 - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5889
SELECT + 92 + - CASE - - ( - + 24 ) WHEN + - 3 * NULLIF ( + 16, + COALESCE ( - 52, + 68, - + 70 ) ) + - 44 * - + 52 THEN 20 * - 43 + + + 94 END * + ( + + 19 ) + + 60 - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT SUM( + + 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-5890
SELECT SUM ( + + 51 ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-5891
SELECT + 45 * + 72 + - COUNT( * ) - + 37 + - ( - 52 ), 32 AS col2
----
3254
32

skipif mysql # not compatible
query II rowsort label-5891
SELECT + 45 * + 72 + - COUNT ( * ) - + 37 + - ( - 52 ), 32 AS col2
----
3254
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5892
SELECT DISTINCT + 1 - - - 25 - ( - 48 ) * 12 + - 14, CAST( NULL AS SIGNED ) AS col0
----
538
NULL

skipif mysql # not compatible
query II rowsort label-5892
SELECT DISTINCT + 1 - - - 25 - ( - 48 ) * 12 + - 14, CAST ( NULL AS INTEGER ) AS col0
----
538
NULL

query I rowsort
SELECT + - 74 + 12 + 60 col0
----
-2

query II rowsort
SELECT ALL - ( - 88 ) - + 34, 45 * - 46 + + + 48 AS col0
----
54
-2022

query I rowsort
SELECT - + 99 + + 55 col0
----
-44

query I rowsort
SELECT - - 82 * - 6 AS col1
----
-492

query II rowsort
SELECT ALL 21 col2, - 37 * + 63 col1
----
21
-2331

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT ALL + COUNT( 15 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL + COUNT ( 15 ) AS col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5899
SELECT + - 13 + - CASE - 44 WHEN + CAST( 11 AS DECIMAL ) THEN NULL WHEN - 57 * + 15 * 25 * 77 THEN 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5899
SELECT + - 13 + - CASE - 44 WHEN + CAST ( 11 AS REAL ) THEN NULL WHEN - 57 * + 15 * 25 * 77 THEN 89 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT - NULLIF ( - 78, + + ( - 66 ) * + 77 ) * 2 + + MIN( DISTINCT - 38 ) - + + NULLIF ( + 63, 67 + - 83 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-5900
SELECT - NULLIF ( - 78, + + ( - 66 ) * + 77 ) * 2 + + MIN ( DISTINCT - 38 ) - + + NULLIF ( + 63, 67 + - 83 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT - 52 - - + MAX( + 55 ) - - 80 * - + 48 + - 69
----
-3906

skipif mysql # not compatible
query I rowsort label-5901
SELECT - 52 - - + MAX ( + 55 ) - - 80 * - + 48 + - 69
----
-3906

query I rowsort
SELECT ALL - 27 * + 96
----
-2592

onlyif mysql # DIV for integer division: 
query I rowsort label-5903
SELECT + 91 DIV + 38
----
2

skipif mysql # not compatible
query I rowsort label-5903
SELECT + 91 / + 38
----
2

query I rowsort
SELECT - 61 * + 56 AS col0
----
-3416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5905
SELECT - MIN( - - CAST( 15 AS SIGNED ) ) + + 16 DIV - 46 + 73 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-5905
SELECT - MIN ( - - CAST ( 15 AS INTEGER ) ) + + 16 / - 46 + 73 AS col0
----
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ALL + 36 * SUM( - 59 ) + COUNT( * ) * - + COUNT( * ) * + 89 + - - NULLIF ( - - 9, 91 ) + 36 * 21 AS col0
----
-1448

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL + 36 * SUM ( - 59 ) + COUNT ( * ) * - + COUNT ( * ) * + 89 + - - NULLIF ( - - 9, 91 ) + 36 * 21 AS col0
----
-1448

query II rowsort
SELECT - + NULLIF ( - 49, - 77 ) AS col2, ( - 18 )
----
49
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT - + 97 + - + CASE 41 WHEN - 88 * - COUNT( * ) * - COUNT( * ) THEN NULL WHEN - 1 THEN NULL ELSE NULLIF ( 23, - 35 ) END
----
-120

skipif mysql # not compatible
query I rowsort label-5909
SELECT - + 97 + - + CASE 41 WHEN - 88 * - COUNT ( * ) * - COUNT ( * ) THEN NULL WHEN - 1 THEN NULL ELSE NULLIF ( 23, - 35 ) END
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT ALL + + 43 * + + 29 * MIN( DISTINCT + 93 )
----
115971

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL + + 43 * + + 29 * MIN ( DISTINCT + 93 )
----
115971

query I rowsort
SELECT - 30 + - 74 - 26 * 81 AS col1
----
-2210

query I rowsort
SELECT - 36 - + 99 + - + 45 AS col1
----
-180

query I rowsort
SELECT + 12 * - 56 AS col1
----
-672

onlyif mysql # DIV for integer division: 
query I rowsort label-5914
SELECT ALL 49 DIV - 55 + - 70 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL 49 / - 55 + - 70 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT ALL + SUM( ALL + - 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL + SUM ( ALL + - 19 ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT - MAX( + 45 ) + + 93 * + + 55 * + - 40 + 40 - + - 84 + 68 AS col0
----
-204453

skipif mysql # not compatible
query I rowsort label-5916
SELECT - MAX ( + 45 ) + + 93 * + + 55 * + - 40 + 40 - + - 84 + 68 AS col0
----
-204453

query I rowsort
SELECT + NULLIF ( - 18, + 23 ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT - SUM( ALL + + 55 ) * + + 93 + - + 66
----
-5181

skipif mysql # not compatible
query I rowsort label-5918
SELECT - SUM ( ALL + + 55 ) * + + 93 + - + 66
----
-5181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5919
SELECT ALL 86 DIV - + 83 + 23 * - MIN( ALL 86 )
----
-1979

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL 86 / - + 83 + 23 * - MIN ( ALL 86 )
----
-1979

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5920
SELECT 91 DIV - 97 * - 9 * - + 55 + + 8 DIV - - ( - 48 ) - 6 + ( - COUNT( * ) ) - 34 + + 16 * 46
----
695

skipif mysql # not compatible
query I rowsort label-5920
SELECT 91 / - 97 * - 9 * - + 55 + + 8 / - - ( - 48 ) - 6 + ( - COUNT ( * ) ) - 34 + + 16 * 46
----
695

onlyif mysql # DIV for integer division: 
query II rowsort label-5921
SELECT DISTINCT - 0 DIV + - 65, + 43 col1
----
0
43

skipif mysql # not compatible
query II rowsort label-5921
SELECT DISTINCT - 0 / + - 65, + 43 col1
----
0
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5922
SELECT DISTINCT + CASE COUNT( * ) WHEN + + ( + 5 ) * 57 THEN 25 + + + 97 WHEN + CAST( NULL AS SIGNED ) * 23 * COUNT( * ) + - - 61 * - MAX( DISTINCT - + 18 ) / - 27 - 41 + 87 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT DISTINCT + CASE COUNT ( * ) WHEN + + ( + 5 ) * 57 THEN 25 + + + 97 WHEN + CAST ( NULL AS INTEGER ) * 23 * COUNT ( * ) + - - 61 * - MAX ( DISTINCT - + 18 ) / - 27 - 41 + 87 THEN NULL END
----
NULL

query I rowsort
SELECT + 46 * - ( + 82 ) AS col2
----
-3772

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT ALL - 20 * + SUM( DISTINCT - 21 ) - + 50 * - 45
----
2670

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL - 20 * + SUM ( DISTINCT - 21 ) - + 50 * - 45
----
2670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5925
SELECT - 10 * SUM( - CAST( NULL AS SIGNED ) ) * - 46 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5925
SELECT - 10 * SUM ( - CAST ( NULL AS INTEGER ) ) * - 46 / + COUNT ( * )
----
NULL

query I rowsort
SELECT COALESCE ( + + 75, 43, + 18 * - 50 * - 1 + + 39 * + + 68 )
----
75

query I rowsort
SELECT + 41 * - 0 * 99 + - - 30 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT + 86 * + - MAX( ALL + 34 ) AS col2
----
-2924

skipif mysql # not compatible
query I rowsort label-5928
SELECT + 86 * + - MAX ( ALL + 34 ) AS col2
----
-2924

query I rowsort
SELECT + 51 + 92 AS col0
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5930
SELECT ALL - 83 DIV + 20 - - 66 * + ( - + ( + COUNT( * ) ) ) + - 41
----
-111

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL - 83 / + 20 - - 66 * + ( - + ( + COUNT ( * ) ) ) + - 41
----
-111

query I rowsort
SELECT + 95 * + 85
----
8075

query I rowsort
SELECT + ( + + 99 ) + - - 80 + - + 72
----
107

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5933
SELECT - 50 + 39 AS col1, - CASE - 29 WHEN - 9 THEN 76 / + 86 + + 35 WHEN - CAST( NULL AS DECIMAL ) * 93 + 27 THEN COUNT( DISTINCT + 46 ) END
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-5933
SELECT - 50 + 39 AS col1, - CASE - 29 WHEN - 9 THEN 76 / + 86 + + 35 WHEN - CAST ( NULL AS REAL ) * 93 + 27 THEN COUNT ( DISTINCT + 46 ) END
----
-11
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5934
SELECT - + SUM( ALL - 55 ) * - 54 + 24 * + 82 + - COUNT( ALL - 84 ) col0, - 45 + + - 97 + - 51
----
-1003
-193

skipif mysql # not compatible
query II rowsort label-5934
SELECT - + SUM ( ALL - 55 ) * - 54 + 24 * + 82 + - COUNT ( ALL - 84 ) col0, - 45 + + - 97 + - 51
----
-1003
-193

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

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

query I rowsort
SELECT + - 27 * 16 AS col0
----
-432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5937
SELECT ALL CAST( - 41 AS SIGNED ) + - 92
----
-133

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL CAST ( - 41 AS INTEGER ) + - 92
----
-133

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

skipif mysql # not compatible
query I rowsort label-5938
SELECT 13 + - COUNT ( * ) + + 9 AS col2
----
21

query I rowsort
SELECT DISTINCT - 77 * - 70 AS col1
----
5390

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5940
SELECT ALL - CASE + 31 WHEN - - CASE + 70 WHEN + COUNT( * ) * + 92 THEN + NULLIF ( 10, + 50 * + + 97 + + - 69 / + + 53 + - SUM( 97 ) + - + 71 * - + COUNT( * ) * 29 + - 70 ) END - + 79 THEN + - 4 WHEN + 54 + COALESCE ( - COUNT( * ), ( + 91 ) + - 5 + + - ( NULLIF ( - 68, COUNT( * ) ) ) + - - 1 * + AVG ( DISTINCT ( - 31 ) ) * + ( - 61 ), + 54 ) THEN NULL ELSE NULL END + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL - CASE + 31 WHEN - - CASE + 70 WHEN + COUNT ( * ) * + 92 THEN + NULLIF ( 10, + 50 * + + 97 + + - 69 / + + 53 + - SUM ( 97 ) + - + 71 * - + COUNT ( * ) * 29 + - 70 ) END - + 79 THEN + - 4 WHEN + 54 + COALESCE ( - COUNT ( * ), ( + 91 ) + - 5 + + - ( NULLIF ( - 68, COUNT ( * ) ) ) + - - 1 * + AVG ( DISTINCT ( - 31 ) ) * + ( - 61 ), + 54 ) THEN NULL ELSE NULL END + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5941
SELECT 3 DIV - + 77 col2
----
0

skipif mysql # not compatible
query I rowsort label-5941
SELECT 3 / - + 77 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT ALL 82 + 47 - - COALESCE ( + - CASE + + 74 WHEN - - 41 THEN NULL ELSE - COUNT( * ) END, - 59 * + 84, - + 90 + COUNT( * ) - - 23 - + - 90 * - - 89 ) AS col0
----
130

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL 82 + 47 - - COALESCE ( + - CASE + + 74 WHEN - - 41 THEN NULL ELSE - COUNT ( * ) END, - 59 * + 84, - + 90 + COUNT ( * ) - - 23 - + - 90 * - - 89 ) AS col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT ALL + CASE - COUNT( * ) WHEN - + 19 THEN + ( - + 65 ) END + + 61 * + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL + CASE - COUNT ( * ) WHEN - + 19 THEN + ( - + 65 ) END + + 61 * + - 58
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5944
SELECT DISTINCT + COUNT( * ) * - + 42 * - CASE - - 98 WHEN COUNT( * ) * 27 - COUNT( * ) + + COUNT( * ) THEN NULL ELSE + 53 DIV - 32 END AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-5944
SELECT DISTINCT + COUNT ( * ) * - + 42 * - CASE - - 98 WHEN COUNT ( * ) * 27 - COUNT ( * ) + + COUNT ( * ) THEN NULL ELSE + 53 / - 32 END AS col1
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-5945
SELECT ALL - 74, - COUNT( * ) * - 65 AS col1
----
-74
65

skipif mysql # not compatible
query II rowsort label-5945
SELECT ALL - 74, - COUNT ( * ) * - 65 AS col1
----
-74
65

onlyif mysql # DIV for integer division: 
query II rowsort label-5946
SELECT 13 AS col2, + 79 DIV + + 62 AS col0
----
13
1

skipif mysql # not compatible
query II rowsort label-5946
SELECT 13 AS col2, + 79 / + + 62 AS col0
----
13
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT 24 * - + 29 - + + COUNT( * )
----
-697

skipif mysql # not compatible
query I rowsort label-5947
SELECT 24 * - + 29 - + + COUNT ( * )
----
-697

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5949
SELECT DISTINCT - 42 - + 87 * - 78 * + 72 - - 96 DIV + COUNT( * ) AS col0, CAST( 79 AS SIGNED ) AS col0, + 61
----
488646
79
61

skipif mysql # not compatible
query III rowsort label-5949
SELECT DISTINCT - 42 - + 87 * - 78 * + 72 - - 96 / + COUNT ( * ) AS col0, CAST ( 79 AS INTEGER ) AS col0, + 61
----
488646
79
61

onlyif mysql # DIV for integer division: 
query I rowsort label-5950
SELECT DISTINCT - + 6 DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT - + 6 / - 61
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5951
SELECT + 22 AS col0, MIN( 67 ) * - + CASE 39 WHEN + COALESCE ( COUNT( * ), 71 ) / - - 16 * - 81 THEN NULL WHEN + + 21 - + CASE + COALESCE ( + 65, + 0 + - + 66 ) WHEN - 63 THEN 85 * 49 ELSE + 26 * + + COUNT( * ) END THEN NULL ELSE + - NULLIF ( + ( + ( 17 ) ), + 7 ) * CASE + 73 WHEN COUNT( * ) + + 35 * + 16 THEN - CASE - + 79 WHEN + 30 + 98 + + 33 * + 66 * COUNT( * ) + + MIN( + + 65 ) THEN - 1 + + + 36 WHEN 81 / - 61 + - COUNT( * ) THEN NULL WHEN + 31 THEN ( + COALESCE ( - 77, 51 - + 23 * - 45, ( AVG ( + 6 ) ) ) ) * - COUNT( * ) END END - 28 * - CASE 97 WHEN 62 THEN + 7 ELSE NULL END END * + 92 + 55
----
22
NULL

skipif mysql # not compatible
query II rowsort label-5951
SELECT + 22 AS col0, MIN ( 67 ) * - + CASE 39 WHEN + COALESCE ( COUNT ( * ), 71 ) / - - 16 * - 81 THEN NULL WHEN + + 21 - + CASE + COALESCE ( + 65, + 0 + - + 66 ) WHEN - 63 THEN 85 * 49 ELSE + 26 * + + COUNT ( * ) END THEN NULL ELSE + - NULLIF ( + ( + ( 17 ) ), + 7 ) * CASE + 73 WHEN COUNT ( * ) + + 35 * + 16 THEN - CASE - + 79 WHEN + 30 + 98 + + 33 * + 66 * COUNT ( * ) + + MIN ( + + 65 ) THEN - 1 + + + 36 WHEN 81 / - 61 + - COUNT ( * ) THEN NULL WHEN + 31 THEN ( + COALESCE ( - 77, 51 - + 23 * - 45, ( AVG ( + 6 ) ) ) ) * - COUNT ( * ) END END - 28 * - CASE 97 WHEN 62 THEN + 7 ELSE NULL END END * + 92 + 55
----
22
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5952
SELECT - COUNT( DISTINCT 61 ) * - CAST( + - MAX( - 85 ) AS SIGNED ) DIV 72 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5952
SELECT - COUNT ( DISTINCT 61 ) * - CAST ( + - MAX ( - 85 ) AS INTEGER ) / 72 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT - COUNT( * ) + + NULLIF ( 78, + COUNT( * ) + + - NULLIF ( - 60, - + COALESCE ( + - 57, COUNT( * ) * - 24 ) + - 73 ) ) + + 3 + - + 57 * - SUM( DISTINCT + 27 ) * - COUNT( * ) * COUNT( * ) - + + 52 + + - 73 + ( - 31 ) AS col1
----
-1615

skipif mysql # not compatible
query I rowsort label-5953
SELECT - COUNT ( * ) + + NULLIF ( 78, + COUNT ( * ) + + - NULLIF ( - 60, - + COALESCE ( + - 57, COUNT ( * ) * - 24 ) + - 73 ) ) + + 3 + - + 57 * - SUM ( DISTINCT + 27 ) * - COUNT ( * ) * COUNT ( * ) - + + 52 + + - 73 + ( - 31 ) AS col1
----
-1615

query I rowsort
SELECT - 39 * + - 71 + - 69 - 18
----
2682

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

query I rowsort
SELECT DISTINCT 99 + + 64
----
163

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

skipif mysql # not compatible
query I rowsort label-5957
SELECT 35 / - COUNT ( * )
----
-35

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

query I rowsort
SELECT + 87 + + 41 + 23 AS col1
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT - SUM( - - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-5960
SELECT - SUM ( - - 95 )
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-5961
SELECT + 62 * - - COUNT( * ) + 11 AS col2, + 58 AS col1
----
73
58

skipif mysql # not compatible
query II rowsort label-5961
SELECT + 62 * - - COUNT ( * ) + 11 AS col2, + 58 AS col1
----
73
58

query II rowsort
SELECT - + 7, + 12 * + + 57 AS col0
----
-7
684

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT CASE 76 WHEN - 50 THEN COUNT( * ) ELSE 26 + + - 17 END + + 37 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-5964
SELECT CASE 76 WHEN - 50 THEN COUNT ( * ) ELSE 26 + + - 17 END + + 37 AS col0
----
46

query II rowsort
SELECT - 78 col2, + 98 * - + 86 AS col0
----
-78
-8428

onlyif mysql # aggregate syntax: 
query II rowsort label-5966
SELECT 7 + - CASE 43 WHEN + 82 THEN + 0 + - + COUNT( * ) ELSE + 88 END AS col2, MIN( + 13 )
----
-81
13

skipif mysql # not compatible
query II rowsort label-5966
SELECT 7 + - CASE 43 WHEN + 82 THEN + 0 + - + COUNT ( * ) ELSE + 88 END AS col2, MIN ( + 13 )
----
-81
13

query I rowsort
SELECT ALL 41 * + 18 * 58 AS col1
----
42804

query I rowsort
SELECT ALL 58 - - - 20 + + 41 * 95 * - 76
----
-295982

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5969
SELECT ALL 89 AS col0, 35 - - NULLIF ( 23, 70 - + CAST( NULL AS SIGNED ) ) AS col1
----
89
58

skipif mysql # not compatible
query II rowsort label-5969
SELECT ALL 89 AS col0, 35 - - NULLIF ( 23, 70 - + CAST ( NULL AS INTEGER ) ) AS col1
----
89
58

query I rowsort
SELECT DISTINCT 93 - 66
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT NULLIF ( + 70, + - COUNT( * ) ) * + + 57 AS col0
----
3990

skipif mysql # not compatible
query I rowsort label-5971
SELECT NULLIF ( + 70, + - COUNT ( * ) ) * + + 57 AS col0
----
3990

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT 38 - + - 96 + - MAX( ALL + 90 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-5972
SELECT 38 - + - 96 + - MAX ( ALL + 90 ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5973
SELECT - 99, COUNT( * ) AS col1
----
-99
1

skipif mysql # not compatible
query II rowsort label-5973
SELECT - 99, COUNT ( * ) AS col1
----
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT ALL - COUNT( + 54 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL - COUNT ( + 54 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5975
SELECT 12 + - CASE - - 65 WHEN - + 60 THEN - 50 * + 90 WHEN 63 THEN NULL END * + + CASE - 68 WHEN + 81 - + 90 * - + NULLIF ( - - 28, + 13 ) THEN + + 0 ELSE + - 89 * + + SUM( + + 78 ) * 22 + - 94 + - - 45 + + + CAST( NULL AS DECIMAL ) * + 25 END * COUNT( * ) / 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT 12 + - CASE - - 65 WHEN - + 60 THEN - 50 * + 90 WHEN 63 THEN NULL END * + + CASE - 68 WHEN + 81 - + 90 * - + NULLIF ( - - 28, + 13 ) THEN + + 0 ELSE + - 89 * + + SUM ( + + 78 ) * 22 + - 94 + - - 45 + + + CAST ( NULL AS REAL ) * + 25 END * COUNT ( * ) / 57
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5976
SELECT + 1, - 55 DIV 55 AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-5976
SELECT + 1, - 55 / 55 AS col0
----
1
-1

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5979
SELECT COALESCE ( 64, - + 29 * + 77 * CAST( 3 AS SIGNED ) / + + MIN( - CAST( NULL AS SIGNED ) ) + - 67 ) + + CAST( NULL AS SIGNED ) * 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5979
SELECT COALESCE ( 64, - + 29 * + 77 * CAST ( 3 AS INTEGER ) / + + MIN ( - CAST ( NULL AS INTEGER ) ) + - 67 ) + + CAST ( NULL AS INTEGER ) * 62
----
NULL

query I rowsort
SELECT 28 * - 32 + 25 AS col1
----
-871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5981
SELECT - 33 DIV + 37 + + - 5 * - + COUNT( * ) * - 82 AS col0
----
-410

skipif mysql # not compatible
query I rowsort label-5981
SELECT - 33 / + 37 + + - 5 * - + COUNT ( * ) * - 82 AS col0
----
-410

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

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

query I rowsort
SELECT 57 + 23
----
80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5985
SELECT + NULLIF ( - CAST( 58 AS SIGNED ), + 39 )
----
-58

skipif mysql # not compatible
query I rowsort label-5985
SELECT + NULLIF ( - CAST ( 58 AS INTEGER ), + 39 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT - 14 * 13 * SUM( ALL + 13 ) + - 39 * 36 + + - 88 + - + ( + 3 )
----
-3861

skipif mysql # not compatible
query I rowsort label-5986
SELECT - 14 * 13 * SUM ( ALL + 13 ) + - 39 * 36 + + - 88 + - + ( + 3 )
----
-3861

query II rowsort
SELECT ALL - - 27, 19 AS col0
----
27
19

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

query I rowsort
SELECT - 71 * - ( + + 59 ) + + 4 - + + 86 * 54 * + 84
----
-385903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5990
SELECT ALL - 49 * COUNT( * ), - 87 + - - 68 DIV + CAST( - 47 AS SIGNED ) + - 2 AS col0
----
-49
-90

skipif mysql # not compatible
query II rowsort label-5990
SELECT ALL - 49 * COUNT ( * ), - 87 + - - 68 / + CAST ( - 47 AS INTEGER ) + - 2 AS col0
----
-49
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5991
SELECT + 80 DIV - MIN( 5 )
----
-16

skipif mysql # not compatible
query I rowsort label-5991
SELECT + 80 / - MIN ( 5 )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5992
SELECT DISTINCT - COUNT( * ) + - 50 * - 88 + - + COUNT( * ) + - 85 + 42 + - + 44 DIV - + SUM( + 25 ) + + COUNT( * )
----
4357

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT - COUNT ( * ) + - 50 * - 88 + - + COUNT ( * ) + - 85 + 42 + - + 44 / - + SUM ( + 25 ) + + COUNT ( * )
----
4357

onlyif mysql # aggregate syntax: 
query II rowsort label-5993
SELECT DISTINCT NULLIF ( - 30, + + 89 ) * - COUNT( * ), ( 93 ) + + 17 - 99 * + - 25 AS col2
----
30
2585

skipif mysql # not compatible
query II rowsort label-5993
SELECT DISTINCT NULLIF ( - 30, + + 89 ) * - COUNT ( * ), ( 93 ) + + 17 - 99 * + - 25 AS col2
----
30
2585

onlyif mysql # DIV for integer division: 
query I rowsort label-5994
SELECT 99 DIV - 21 + + 66 * + 88 + + 54 AS col0
----
5858

skipif mysql # not compatible
query I rowsort label-5994
SELECT 99 / - 21 + + 66 * + 88 + + 54 AS col0
----
5858

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT ALL + COUNT( * ) + + + 50
----
51

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL + COUNT ( * ) + + + 50
----
51

query II rowsort
SELECT DISTINCT - 58 AS col2, + 74 col2
----
-58
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT - 46 + - SUM( DISTINCT 86 ) AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-5997
SELECT - 46 + - SUM ( DISTINCT 86 ) AS col1
----
-132

query I rowsort
SELECT - - COALESCE ( - 57, + - 17 ) AS col2
----
-57

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6000
SELECT DISTINCT + SUM( - ( 82 ) ) * - - 45 * NULLIF ( - COUNT( * ), CAST( NULL AS SIGNED ) * - 1 - 23 * - 93 )
----
3690

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT + SUM ( - ( 82 ) ) * - - 45 * NULLIF ( - COUNT ( * ), CAST ( NULL AS INTEGER ) * - 1 - 23 * - 93 )
----
3690

query I rowsort
SELECT + - 44 * 80 col1
----
-3520

query I rowsort
SELECT ALL 17 - - ( 65 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6003
SELECT ALL - CASE - + COUNT( * ) WHEN + CAST( NULL AS SIGNED ) * - + 88 THEN NULL WHEN - - 44 THEN NULL WHEN + 75 THEN + ( + - AVG ( - 32 ) ) - 99 + 81 END * + 92, COUNT( * ) * + - 43 - + 61 - - - 45 DIV + COUNT( * ) AS col2
----
NULL
-149

skipif mysql # not compatible
query II rowsort label-6003
SELECT ALL - CASE - + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) * - + 88 THEN NULL WHEN - - 44 THEN NULL WHEN + 75 THEN + ( + - AVG ( - 32 ) ) - 99 + 81 END * + 92, COUNT ( * ) * + - 43 - + 61 - - - 45 / + COUNT ( * ) AS col2
----
NULL
-149

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6005
SELECT ALL ( - 36 ) DIV 79 + - 23 * + 10 + + SUM( ALL + 39 ) col0
----
-191

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL ( - 36 ) / 79 + - 23 * + 10 + + SUM ( ALL + 39 ) col0
----
-191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6006
SELECT + 53 + 88 * - + CAST( NULL AS SIGNED ) / + 85 + - 17 + - 76 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT + 53 + 88 * - + CAST ( NULL AS INTEGER ) / + 85 + - 17 + - 76 col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT + 82 * + 80 * - COUNT( * )
----
-6560

skipif mysql # not compatible
query I rowsort label-6008
SELECT + 82 * + 80 * - COUNT ( * )
----
-6560

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT ALL SUM( DISTINCT - 39 ) * + 31 + + 45 + + - 37 * + 38 + + 31
----
-2539

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL SUM ( DISTINCT - 39 ) * + 31 + + 45 + + - 37 * + 38 + + 31
----
-2539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6010
SELECT + 99 + - + CAST( + 88 AS SIGNED ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-6010
SELECT + 99 + - + CAST ( + 88 AS INTEGER ) AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6011
SELECT - CASE + 66 WHEN ( ( + ( + CAST( 0 AS SIGNED ) ) ) ) THEN + + 88 - ( + 56 ) + + ( + CAST( + - 17 AS SIGNED ) ) * 3 WHEN - + NULLIF ( - ( + 68 ), 26 ) * ( 57 ) THEN - - 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6011
SELECT - CASE + 66 WHEN ( ( + ( + CAST ( 0 AS INTEGER ) ) ) ) THEN + + 88 - ( + 56 ) + + ( + CAST ( + - 17 AS INTEGER ) ) * 3 WHEN - + NULLIF ( - ( + 68 ), 26 ) * ( 57 ) THEN - - 26 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT - MAX( DISTINCT - 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-6012
SELECT - MAX ( DISTINCT - 55 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT + 75 + + 73 + + COUNT( + 48 )
----
149

skipif mysql # not compatible
query I rowsort label-6013
SELECT + 75 + + 73 + + COUNT ( + 48 )
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT ALL NULLIF ( + COALESCE ( + + 22, ( + 34 ) + - + COALESCE ( 42, COUNT( * ) ) ), - + CASE + - 47 WHEN + COUNT( * ) * - COUNT( * ) THEN + 65 END + 91 ) * - - 34 * ( + COUNT( * ) ) * - 71 + - 3 + - 99 - + 30
----
-53240

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL NULLIF ( + COALESCE ( + + 22, ( + 34 ) + - + COALESCE ( 42, COUNT ( * ) ) ), - + CASE + - 47 WHEN + COUNT ( * ) * - COUNT ( * ) THEN + 65 END + 91 ) * - - 34 * ( + COUNT ( * ) ) * - 71 + - 3 + - 99 - + 30
----
-53240

query II rowsort
SELECT - NULLIF ( - 68, - - 22 ) AS col2, 64 * - + 43 col1
----
68
-2752

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT DISTINCT NULLIF ( + + 4, + + COUNT( * ) ) * - 24 col1
----
-96

skipif mysql # not compatible
query I rowsort label-6016
SELECT DISTINCT NULLIF ( + + 4, + + COUNT ( * ) ) * - 24 col1
----
-96

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

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL + 97 / - 53 AS col1
----
-1

query I rowsort
SELECT + 19 * + + 3
----
57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6020
SELECT ALL + COALESCE ( - 64, + 23 * - - 99 + - 68 + + 77 ) * 4 * COUNT( - 2 ) * + 35 + COUNT( * ) + COUNT( * ) + + 1, CASE 93 WHEN MAX( - 92 ) THEN NULLIF ( + + ( COUNT( * ) ), + AVG ( DISTINCT - 66 ) ) + + COUNT( + + ( - + CAST( 2 AS SIGNED ) ) ) - + 46 - - 85 WHEN + + 68 THEN - + 26 * + - COUNT( * ) + 99 WHEN + - 33 THEN NULL ELSE + - COUNT( + 39 ) * - 0 + + - 31 + + 65 END AS col2
----
-8957
34

skipif mysql # not compatible
query II rowsort label-6020
SELECT ALL + COALESCE ( - 64, + 23 * - - 99 + - 68 + + 77 ) * 4 * COUNT ( - 2 ) * + 35 + COUNT ( * ) + COUNT ( * ) + + 1, CASE 93 WHEN MAX ( - 92 ) THEN NULLIF ( + + ( COUNT ( * ) ), + AVG ( DISTINCT - 66 ) ) + + COUNT ( + + ( - + CAST ( 2 AS INTEGER ) ) ) - + 46 - - 85 WHEN + + 68 THEN - + 26 * + - COUNT ( * ) + 99 WHEN + - 33 THEN NULL ELSE + - COUNT ( + 39 ) * - 0 + + - 31 + + 65 END AS col2
----
-8957
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6021
SELECT ALL - 55 * CAST( 5 AS SIGNED ) + - - SUM( ALL - - 69 ) + + - ( - 11 ) * 69 * 48 AS col2
----
36226

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL - 55 * CAST ( 5 AS INTEGER ) + - - SUM ( ALL - - 69 ) + + - ( - 11 ) * 69 * 48 AS col2
----
36226

query I rowsort
SELECT DISTINCT 34 * - 87 + + 81
----
-2877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6023
SELECT ALL + + CAST( 41 AS SIGNED ) * + + 51
----
2091

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL + + CAST ( 41 AS INTEGER ) * + + 51
----
2091

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT ALL + 90 * + - 73 + + - COUNT( * ) - + 17 * + 51 * 91 AS col1
----
-85468

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL + 90 * + - 73 + + - COUNT ( * ) - + 17 * + 51 * 91 AS col1
----
-85468

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6025
SELECT - - 14 * - 10 + + 19 DIV - ( - 45 ) - - - 99 + COUNT( * ) * 16 AS col1
----
-223

skipif mysql # not compatible
query I rowsort label-6025
SELECT - - 14 * - 10 + + 19 / - ( - 45 ) - - - 99 + COUNT ( * ) * 16 AS col1
----
-223

query I rowsort
SELECT + - 53 + - 36 AS col2
----
-89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT - COUNT( * ) * + + 43 + + 6 + + - 87
----
-124

skipif mysql # not compatible
query I rowsort label-6028
SELECT - COUNT ( * ) * + + 43 + + 6 + + - 87
----
-124

query I rowsort
SELECT ALL + 75 * - ( + 77 ) - + 78 AS col0
----
-5853

onlyif mysql # aggregate syntax: 
query II rowsort label-6030
SELECT - 71 * - + 99 AS col2, COUNT( * )
----
7029
1

skipif mysql # not compatible
query II rowsort label-6030
SELECT - 71 * - + 99 AS col2, COUNT ( * )
----
7029
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6031
SELECT - 22, 52 DIV - 76 AS col2
----
-22
0

skipif mysql # not compatible
query II rowsort label-6031
SELECT - 22, 52 / - 76 AS col2
----
-22
0

query I rowsort
SELECT DISTINCT NULLIF ( + - 85, + - 25 * - - 62 + 50 - - - 22 * + 81 + - 71 * ( - 15 ) + + - 58 )
----
-85

query I rowsort
SELECT ALL + 73 - + 13 * - 23 + + 21
----
393

onlyif mysql # DIV for integer division: 
query I rowsort label-6034
SELECT DISTINCT COALESCE ( + - 40, - 92, + 20 DIV - 75 ) col1
----
-40

skipif mysql # not compatible
query I rowsort label-6034
SELECT DISTINCT COALESCE ( + - 40, - 92, + 20 / - 75 ) col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT DISTINCT + MIN( + 32 ) * - 49 * + - 59 + - - ( - 94 ) * - 87
----
100690

skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT + MIN ( + 32 ) * - 49 * + - 59 + - - ( - 94 ) * - 87
----
100690

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

query II rowsort
SELECT 10 AS col0, + 73 col1
----
10
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6038
SELECT - SUM( + 53 ) DIV - 31
----
1

skipif mysql # not compatible
query I rowsort label-6038
SELECT - SUM ( + 53 ) / - 31
----
1

query I rowsort
SELECT - 94 * - 62 col1
----
5828

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT - CASE + + CASE + 64 WHEN - MIN( - - ( - 44 ) ) THEN + 80 ELSE - ( - 42 ) + NULLIF ( + 93, - 66 - + 90 ) - 61 END WHEN - + 8 + + + 11 + 97 + + + 14 * - ( MAX( DISTINCT - 47 ) ) THEN + 25 - + 3 WHEN + + ( 79 ) THEN + 41 + + 15 WHEN - 88 + 26 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6040
SELECT - CASE + + CASE + 64 WHEN - MIN ( - - ( - 44 ) ) THEN + 80 ELSE - ( - 42 ) + NULLIF ( + 93, - 66 - + 90 ) - 61 END WHEN - + 8 + + + 11 + 97 + + + 14 * - ( MAX ( DISTINCT - 47 ) ) THEN + 25 - + 3 WHEN + + ( 79 ) THEN + 41 + + 15 WHEN - 88 + 26 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT - 87 - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-6041
SELECT - 87 - COUNT ( * )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6042
SELECT - COUNT( * ) DIV - CAST( + 72 AS SIGNED ) col0, - 69 * + 1 AS col1
----
0
-69

skipif mysql # not compatible
query II rowsort label-6042
SELECT - COUNT ( * ) / - CAST ( + 72 AS INTEGER ) col0, - 69 * + 1 AS col1
----
0
-69

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

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

query II rowsort
SELECT DISTINCT - 83 * 40 * + 65, 64 + - + NULLIF ( + + 50, 76 ) + + 28 * - + 20 AS col2
----
-215800
-546

onlyif mysql # DIV for integer division: 
query II rowsort label-6045
SELECT 40 AS col0, 98 DIV 93
----
40
1

skipif mysql # not compatible
query II rowsort label-6045
SELECT 40 AS col0, 98 / 93
----
40
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT - MIN( - 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-6046
SELECT - MIN ( - 53 ) AS col1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6047
SELECT ALL CAST( 44 AS SIGNED ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL CAST ( 44 AS INTEGER ) AS col2
----
44

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

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

query I rowsort
SELECT ALL 27 + - 97
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT + 33 - + ( + + COUNT( * ) )
----
32

skipif mysql # not compatible
query I rowsort label-6050
SELECT + 33 - + ( + + COUNT ( * ) )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6051
SELECT - 4 + 74 - + CAST( - 49 AS SIGNED ) * + COUNT( * )
----
119

skipif mysql # not compatible
query I rowsort label-6051
SELECT - 4 + 74 - + CAST ( - 49 AS INTEGER ) * + COUNT ( * )
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6052
SELECT + COALESCE ( - ( - 82 ), - + 58 ) - - CASE - 11 WHEN - MIN( ALL - - 12 ) * CAST( NULL AS SIGNED ) * + 81 + + 58 THEN + 88 WHEN - - 66 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6052
SELECT + COALESCE ( - ( - 82 ), - + 58 ) - - CASE - 11 WHEN - MIN ( ALL - - 12 ) * CAST ( NULL AS INTEGER ) * + 81 + + 58 THEN + 88 WHEN - - 66 THEN NULL END AS col0
----
NULL

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

query I rowsort
SELECT - 80 + - 2
----
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6055
SELECT + CAST( NULL AS DECIMAL ), - 52 AS col0
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-6055
SELECT + CAST ( NULL AS REAL ), - 52 AS col0
----
NULL
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT + + 93 + + NULLIF ( 22, 65 * + 62 * - + 63 * - + COUNT( * ) * - - 13 + + 47 ) AS col0
----
115

skipif mysql # not compatible
query I rowsort label-6056
SELECT + + 93 + + NULLIF ( 22, 65 * + 62 * - + 63 * - + COUNT ( * ) * - - 13 + + 47 ) AS col0
----
115

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6057
SELECT DISTINCT + CASE + CASE - - 99 WHEN - 31 + 46 THEN NULL ELSE 81 END WHEN + CASE + SUM( DISTINCT - 62 ) WHEN - + MIN( ALL - 33 ) / - - 44 THEN NULL WHEN - 28 * 80 * COALESCE ( 72, 21 ) THEN - + SUM( ALL + 30 ) END + - - ( - + 64 ) THEN ( - 34 ) + - + 27 END * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT + CASE + CASE - - 99 WHEN - 31 + 46 THEN NULL ELSE 81 END WHEN + CASE + SUM ( DISTINCT - 62 ) WHEN - + MIN ( ALL - 33 ) / - - 44 THEN NULL WHEN - 28 * 80 * COALESCE ( 72, 21 ) THEN - + SUM ( ALL + 30 ) END + - - ( - + 64 ) THEN ( - 34 ) + - + 27 END * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6058
SELECT ALL - 29 DIV - + NULLIF ( 31, - 48 ) + - 12 * - + 34 * - - 68 AS col1
----
27744

skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL - 29 / - + NULLIF ( 31, - 48 ) + - 12 * - + 34 * - - 68 AS col1
----
27744

query I rowsort
SELECT DISTINCT - ( + 36 ) col1
----
-36

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

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

query I rowsort
SELECT ALL 6 + + + 64
----
70

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

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

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL + 97 - - + COUNT ( * ) AS col1
----
98

query I rowsort
SELECT + CASE - 68 WHEN + - 7 THEN - + 38 WHEN + 56 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6065
SELECT - 16 + + 80 + CAST( NULL AS SIGNED ) + - 70 AS col1, 99
----
NULL
99

skipif mysql # not compatible
query II rowsort label-6065
SELECT - 16 + + 80 + CAST ( NULL AS INTEGER ) + - 70 AS col1, 99
----
NULL
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6066
SELECT 92 DIV - + 96 * - 71 + - 32 + + 68 + + 42 + - 2
----
76

skipif mysql # not compatible
query I rowsort label-6066
SELECT 92 / - + 96 * - 71 + - 32 + + 68 + + 42 + - 2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6067
SELECT ALL - CAST( NULL AS SIGNED ) * NULLIF ( + 49, + - 68 * - - 84 + + CASE - - 40 WHEN 10 THEN NULL WHEN + NULLIF ( - + ( + 69 ), 47 ) THEN - - 11 WHEN + COALESCE ( CAST( NULL AS SIGNED ), - - 60 / COUNT( ALL + + ( 91 ) ) ) THEN NULL ELSE NULL END ) * + - CAST( + + COALESCE ( 52, 26 - + ( 29 ) * - - COUNT( * ) * 25 ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL - CAST ( NULL AS INTEGER ) * NULLIF ( + 49, + - 68 * - - 84 + + CASE - - 40 WHEN 10 THEN NULL WHEN + NULLIF ( - + ( + 69 ), 47 ) THEN - - 11 WHEN + COALESCE ( CAST ( NULL AS INTEGER ), - - 60 / COUNT ( ALL + + ( 91 ) ) ) THEN NULL ELSE NULL END ) * + - CAST ( + + COALESCE ( 52, 26 - + ( 29 ) * - - COUNT ( * ) * 25 ) AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6068
SELECT ALL - CAST( + 91 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL - CAST ( + 91 AS INTEGER )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-6069
SELECT ALL - 41, 62 * - + COUNT( * ) col2
----
-41
-62

skipif mysql # not compatible
query II rowsort label-6069
SELECT ALL - 41, 62 * - + COUNT ( * ) col2
----
-41
-62

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

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

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

query I rowsort
SELECT ALL 36 * 42 * + - 61 AS col2
----
-92232

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT ( 34 ) + + + 99 - + NULLIF ( 37, - COUNT( * ) * - 59 * + 20 + - COUNT( * ) - + + MIN( DISTINCT + 0 ) ) * - 87
----
3352

skipif mysql # not compatible
query I rowsort label-6073
SELECT ( 34 ) + + + 99 - + NULLIF ( 37, - COUNT ( * ) * - 59 * + 20 + - COUNT ( * ) - + + MIN ( DISTINCT + 0 ) ) * - 87
----
3352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6074
SELECT DISTINCT ( + 93 ) * - ( MIN( - + CAST( + 83 AS SIGNED ) ) ) AS col0
----
7719

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT ( + 93 ) * - ( MIN ( - + CAST ( + 83 AS INTEGER ) ) ) AS col0
----
7719

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

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

query I rowsort
SELECT 58 * + + 40 * + - 4 AS col1
----
-9280

query II rowsort
SELECT 41 - - 99, 0 AS col2
----
140
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6078
SELECT DISTINCT - 97 + COUNT( * ) * NULLIF ( - 25, - 24 ) * - SUM( DISTINCT - NULLIF ( - 25, - - 81 - + 91 + + + 92 + 54 + - + 92 * + - 1 * 20 * 60 + + 18 ) ) * + - 40 DIV + COUNT( * )
----
-25097

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT - 97 + COUNT ( * ) * NULLIF ( - 25, - 24 ) * - SUM ( DISTINCT - NULLIF ( - 25, - - 81 - + 91 + + + 92 + 54 + - + 92 * + - 1 * 20 * 60 + + 18 ) ) * + - 40 / + COUNT ( * )
----
-25097

onlyif mysql # aggregate syntax: 
query II rowsort label-6079
SELECT COUNT( DISTINCT - 65 ) + - - 40 + + 84, + COUNT( * ) * - 41 col0
----
125
-41

skipif mysql # not compatible
query II rowsort label-6079
SELECT COUNT ( DISTINCT - 65 ) + - - 40 + + 84, + COUNT ( * ) * - 41 col0
----
125
-41

query I rowsort
SELECT ALL + 34 + - 5 * 33 * + 48
----
-7886

query I rowsort
SELECT DISTINCT + 52 + + - 57 col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT - COALESCE ( 1, - - COUNT( DISTINCT + + 19 ), COUNT( + + 70 ) - - ( 8 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6082
SELECT - COALESCE ( 1, - - COUNT ( DISTINCT + + 19 ), COUNT ( + + 70 ) - - ( 8 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT ALL + + SUM( - 36 ) + 89 - 59
----
-6

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL + + SUM ( - 36 ) + 89 - 59
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT ALL 77 + MIN( 7 ) * + 54 + 85 - - - 24 * - 9 * 29
----
6804

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL 77 + MIN ( 7 ) * + 54 + 85 - - - 24 * - 9 * 29
----
6804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6085
SELECT - CAST( - COUNT( * ) AS SIGNED ) - - 22 DIV - 50
----
1

skipif mysql # not compatible
query I rowsort label-6085
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) - - 22 / - 50
----
1

query I rowsort
SELECT 35 * + 72
----
2520

query I rowsort
SELECT ALL - NULLIF ( + 49, - - 53 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT + - CASE 28 WHEN COUNT( * ) THEN - 36 + - + COALESCE ( - - 64, 1 ) * + 20 WHEN NULLIF ( - - 54, - 60 * 7 ) - 39 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6088
SELECT + - CASE 28 WHEN COUNT ( * ) THEN - 36 + - + COALESCE ( - - 64, 1 ) * + 20 WHEN NULLIF ( - - 54, - 60 * 7 ) - 39 THEN NULL ELSE NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT 15 * + 40
----
600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6091
SELECT DISTINCT - - ( - 68 ) AS col1, 23 + NULLIF ( + - 6, 97 * + 84 - COUNT( * ) * + 58 ) - - 3 * - 66 + - NULLIF ( - CAST( NULL AS SIGNED ), + 95 ) AS col2
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-6091
SELECT DISTINCT - - ( - 68 ) AS col1, 23 + NULLIF ( + - 6, 97 * + 84 - COUNT ( * ) * + 58 ) - - 3 * - 66 + - NULLIF ( - CAST ( NULL AS INTEGER ), + 95 ) AS col2
----
-68
NULL

query I rowsort
SELECT ALL - 65 - - + 18
----
-47

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6094
SELECT - 80 * 8 * + 28 + - 29 + CAST( 36 AS SIGNED ) AS col0
----
-17913

skipif mysql # not compatible
query I rowsort label-6094
SELECT - 80 * 8 * + 28 + - 29 + CAST ( 36 AS INTEGER ) AS col0
----
-17913

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6095
SELECT + 89 DIV NULLIF ( - 85, 54 + 96 ) * 57 DIV + ( COUNT( * ) ) + + 27, COALESCE ( COUNT( * ), + 12, + 21 * + - 79 ) AS col0
----
-30
1

skipif mysql # not compatible
query II rowsort label-6095
SELECT + 89 / NULLIF ( - 85, 54 + 96 ) * 57 / + ( COUNT ( * ) ) + + 27, COALESCE ( COUNT ( * ), + 12, + 21 * + - 79 ) AS col0
----
-30
1

query I rowsort
SELECT ( 11 ) * - 59
----
-649

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6098
SELECT + MIN( + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6098
SELECT + MIN ( + CAST ( NULL AS REAL ) ) AS col1
----
NULL

query II rowsort
SELECT + 29, - 42 AS col0
----
29
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6100
SELECT SUM( 13 ) DIV + - 68 * 10 * 8 col1
----
0

skipif mysql # not compatible
query I rowsort label-6100
SELECT SUM ( 13 ) / + - 68 * 10 * 8 col1
----
0

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

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

query I rowsort
SELECT DISTINCT ( - 79 ) + - + 90
----
-169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6103
SELECT DISTINCT CAST( 53 AS SIGNED ) + COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6103
SELECT DISTINCT CAST ( 53 AS INTEGER ) + COUNT ( * ) AS col0
----
54

query I rowsort
SELECT ALL + 10 * + 34
----
340

query I rowsort
SELECT ( - - 24 ) + - 63 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT COUNT( * ) + - + 55
----
-54

skipif mysql # not compatible
query I rowsort label-6106
SELECT COUNT ( * ) + - + 55
----
-54

query I rowsort
SELECT 41 * + + 77
----
3157

query I rowsort
SELECT 82 * - 71
----
-5822

query I rowsort
SELECT DISTINCT 21 + + 11
----
32

query II rowsort
SELECT DISTINCT 65 col1, ( + + 44 ) AS col2
----
65
44

query I rowsort
SELECT ALL 56 + 86
----
142

query I rowsort
SELECT ALL + 3 - + 28 * 45
----
-1257

onlyif mysql # DIV for integer division: 
query I rowsort label-6113
SELECT ALL - 76 DIV - 21 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL - 76 / - 21 AS col1
----
3

query I rowsort
SELECT + 14 + COALESCE ( - 70, + 11 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT - COUNT( * ) - - 60 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-6115
SELECT - COUNT ( * ) - - 60 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT + ( - COUNT( * ) ) + + 25 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6116
SELECT + ( - COUNT ( * ) ) + + 25 AS col0
----
24

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

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

query I rowsort
SELECT ALL + 3 - - 28
----
31

query I rowsort
SELECT ALL - 49 * - 71
----
3479

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT DISTINCT + COUNT( - ( + 24 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT + COUNT ( - ( + 24 ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT 8 * + 89
----
712

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT - COUNT( * ) * + 93 + 60
----
-33

skipif mysql # not compatible
query I rowsort label-6122
SELECT - COUNT ( * ) * + 93 + 60
----
-33

query I rowsort
SELECT - 13 + 25
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-6124
SELECT ALL + ( 94 ) DIV 70 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL + ( 94 ) / 70 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT COALESCE ( + SUM( DISTINCT - 25 ), COUNT( ALL 16 ) ) col0
----
-25

skipif mysql # not compatible
query I rowsort label-6125
SELECT COALESCE ( + SUM ( DISTINCT - 25 ), COUNT ( ALL 16 ) ) col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT COUNT( ALL + ( 11 ) ) * + SUM( - 17 + 20 ) + 81
----
84

skipif mysql # not compatible
query I rowsort label-6126
SELECT COUNT ( ALL + ( 11 ) ) * + SUM ( - 17 + 20 ) + 81
----
84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT COALESCE ( 26, - COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-6128
SELECT COALESCE ( 26, - COUNT ( * ) )
----
26

query I rowsort
SELECT + 95 * 84 + + 41
----
8021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6130
SELECT + CASE + MAX( - COALESCE ( + 5, + CAST( NULL AS SIGNED ) - - 2 ) ) WHEN + 42 + + 3 THEN 67 + CASE 18 + + 14 WHEN COUNT( * ) THEN - 80 + - 40 ELSE NULL END WHEN 91 * + COALESCE ( CAST( COUNT( * ) AS DECIMAL ), - 36 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6130
SELECT + CASE + MAX ( - COALESCE ( + 5, + CAST ( NULL AS INTEGER ) - - 2 ) ) WHEN + 42 + + 3 THEN 67 + CASE 18 + + 14 WHEN COUNT ( * ) THEN - 80 + - 40 ELSE NULL END WHEN 91 * + COALESCE ( CAST ( COUNT ( * ) AS REAL ), - 36 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT DISTINCT + SUM( DISTINCT 63 ) * + 66 + 24 AS col2
----
4182

skipif mysql # not compatible
query I rowsort label-6131
SELECT DISTINCT + SUM ( DISTINCT 63 ) * + 66 + 24 AS col2
----
4182

query I rowsort
SELECT DISTINCT + ( 29 ) * 99 + + 88 AS col0
----
2959

query I rowsort
SELECT ALL 20 * 29 + - 51 AS col2
----
529

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

skipif mysql # not compatible
query I rowsort label-6134
SELECT + MIN ( 55 )
----
55

query I rowsort
SELECT DISTINCT - ( + 78 ) * 10
----
-780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6136
SELECT DISTINCT - ( - 52 ) * + ( 94 ) + 19 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT - ( - 52 ) * + ( 94 ) + 19 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 35 * + 82 + - 47 AS col0
----
-2917

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6138
SELECT - AVG ( DISTINCT 56 ) - CAST( NULL AS SIGNED ) * 84 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6138
SELECT - AVG ( DISTINCT 56 ) - CAST ( NULL AS INTEGER ) * 84 col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT 52 * - CASE ( COUNT( * ) ) WHEN COUNT( * ) * 10 - 24 THEN - 18 ELSE NULL END - - MIN( ALL - 54 + 99 ) / - 88 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6140
SELECT 52 * - CASE ( COUNT ( * ) ) WHEN COUNT ( * ) * 10 - 24 THEN - 18 ELSE NULL END - - MIN ( ALL - 54 + 99 ) / - 88 col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6142
SELECT DISTINCT 10 DIV + 5
----
2

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT 10 / + 5
----
2

query I rowsort
SELECT DISTINCT + 89 + 63
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6144
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - COALESCE ( 60 + - 13, 90, + NULLIF ( - ( - 36 ), 50 - 51 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - COALESCE ( 60 + - 13, 90, + NULLIF ( - ( - 36 ), 50 - 51 ) ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT + CASE NULLIF ( ( NULLIF ( 78, + 11 ) ), + 59 ) WHEN 76 - 74 THEN - NULLIF ( ( - 20 ), + MAX( + 1 ) + 60 / 97 ) ELSE 64 * + 30 + 25 END + + 30
----
1975

skipif mysql # not compatible
query I rowsort label-6146
SELECT + CASE NULLIF ( ( NULLIF ( 78, + 11 ) ), + 59 ) WHEN 76 - 74 THEN - NULLIF ( ( - 20 ), + MAX ( + 1 ) + 60 / 97 ) ELSE 64 * + 30 + 25 END + + 30
----
1975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6147
SELECT + 9 - + CASE - CAST( + CAST( + ( CAST( NULL AS SIGNED ) ) AS SIGNED ) AS SIGNED ) WHEN - 28 * + 78 THEN 40 - 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6147
SELECT + 9 - + CASE - CAST ( + CAST ( + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS INTEGER ) WHEN - 28 * + 78 THEN 40 - 61 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6148
SELECT DISTINCT 74 DIV - 71 col0
----
-1

skipif mysql # not compatible
query I rowsort label-6148
SELECT DISTINCT 74 / - 71 col0
----
-1

query I rowsort
SELECT + + 56 * 75
----
4200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6150
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) * ( MIN( CAST( NULL AS SIGNED ) ) + 36 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT DISTINCT - 92 * - COALESCE ( COUNT( * ), 31 * + 73 )
----
92

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT - 92 * - COALESCE ( COUNT ( * ), 31 * + 73 )
----
92

query I rowsort
SELECT + - 86 * + 72 AS col2
----
-6192

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT + 42 + SUM( ALL 76 + 95 )
----
213

skipif mysql # not compatible
query I rowsort label-6153
SELECT + 42 + SUM ( ALL 76 + 95 )
----
213

query I rowsort
SELECT DISTINCT COALESCE ( - 45, - 18 ) AS col1
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6155
SELECT + MAX( DISTINCT CAST( 32 AS SIGNED ) ) * 76 AS col1
----
2432

skipif mysql # not compatible
query I rowsort label-6155
SELECT + MAX ( DISTINCT CAST ( 32 AS INTEGER ) ) * 76 AS col1
----
2432

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT - - CASE - 64 WHEN 85 THEN NULLIF ( COUNT( * ), COUNT( * ) ) + 56 / - 84 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6156
SELECT - - CASE - 64 WHEN 85 THEN NULLIF ( COUNT ( * ), COUNT ( * ) ) + 56 / - 84 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6157
SELECT ALL ( - NULLIF ( + CAST( NULL AS DECIMAL ), 31 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL ( - NULLIF ( + CAST ( NULL AS REAL ), 31 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT - + SUM( ALL 70 ) * 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6158
SELECT - + SUM ( ALL 70 ) * 0 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6159
SELECT ALL + NULLIF ( 34, 59 ) DIV - 77 + 51 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL + NULLIF ( 34, 59 ) / - 77 + 51 AS col0
----
51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6161
SELECT - + COALESCE ( CASE 26 WHEN 62 THEN - 78 ELSE NULL END, 97 + - 99 ) DIV 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6161
SELECT - + COALESCE ( CASE 26 WHEN 62 THEN - 78 ELSE NULL END, 97 + - 99 ) / 20 AS col1
----
0

query I rowsort
SELECT ALL + 82 * - 84 AS col1
----
-6888

query I rowsort
SELECT + - NULLIF ( - 57, - ( 43 ) + - 8 ) AS col1
----
57

query I rowsort
SELECT + COALESCE ( 87, - 76 )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6165
SELECT ALL - COUNT( * ) DIV - 40 + - 89 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL - COUNT ( * ) / - 40 + - 89 AS col0
----
-89

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6167
SELECT ALL - 73 DIV - - 8 + 61
----
52

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL - 73 / - - 8 + 61
----
52

query I rowsort
SELECT - 23 - + + 12 + ( 44 ) * 27
----
1153

query I rowsort
SELECT DISTINCT - 40 * CASE 63 WHEN 15 THEN 45 END + 90 AS col0
----
NULL

query I rowsort
SELECT ALL - ( 82 ) * + 31 + 80 AS col1
----
-2462

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT ( + NULLIF ( - COALESCE ( ( - COUNT( * ) ), - 70 / - MAX( DISTINCT + 50 ) + + NULLIF ( 50 + + COUNT( * ) * + 11, + NULLIF ( 20, 38 ) ), - 28 * 6 + 44 ), COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT ( + NULLIF ( - COALESCE ( ( - COUNT ( * ) ), - 70 / - MAX ( DISTINCT + 50 ) + + NULLIF ( 50 + + COUNT ( * ) * + 11, + NULLIF ( 20, 38 ) ), - 28 * 6 + 44 ), COUNT ( * ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT ALL + 7 * - + 63 * + 87 + + MAX( 13 ) AS col2
----
-38354

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL + 7 * - + 63 * + 87 + + MAX ( 13 ) AS col2
----
-38354

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6173
SELECT - 87 + - 92 - 15 DIV - SUM( 29 ) AS col0
----
-179

skipif mysql # not compatible
query I rowsort label-6173
SELECT - 87 + - 92 - 15 / - SUM ( 29 ) AS col0
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT - MAX( 72 ) + 91 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6174
SELECT - MAX ( 72 ) + 91 AS col0
----
19

query I rowsort
SELECT - ( 82 ) - 11
----
-93

query I rowsort
SELECT COALESCE ( - 4, 39 * 92 - - 88 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT DISTINCT MAX( DISTINCT 44 ) * - 49 + + 11
----
-2145

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT MAX ( DISTINCT 44 ) * - 49 + + 11
----
-2145

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT CASE ( - COUNT( * ) ) WHEN + 70 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6178
SELECT CASE ( - COUNT ( * ) ) WHEN + 70 THEN - COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL + 75 * + 21 AS col2
----
1575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6180
SELECT DISTINCT 86 * - + ( + NULLIF ( ( - 35 ), CAST( COALESCE ( 35, 16, CASE 6 WHEN 13 THEN 39 WHEN AVG ( + 21 ) THEN + 85 ELSE - 1 END ) AS SIGNED ) * - 47 - - 90 ) )
----
3010

skipif mysql # not compatible
query I rowsort label-6180
SELECT DISTINCT 86 * - + ( + NULLIF ( ( - 35 ), CAST ( COALESCE ( 35, 16, CASE 6 WHEN 13 THEN 39 WHEN AVG ( + 21 ) THEN + 85 ELSE - 1 END ) AS INTEGER ) * - 47 - - 90 ) )
----
3010

query I rowsort
SELECT DISTINCT + 93 * - COALESCE ( 89, + 8 ) * + 19 AS col0
----
-157263

query I rowsort
SELECT 76 + + 32 AS col0
----
108

query I rowsort
SELECT ALL + 75 * - 52 AS col2
----
-3900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6184
SELECT ALL - 21 - 23 + ( CAST( 5 AS SIGNED ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL - 21 - 23 + ( CAST ( 5 AS INTEGER ) ) AS col0
----
-39

query I rowsort
SELECT 62 + + 7 + 16
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6186
SELECT 66 DIV - 11 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-6186
SELECT 66 / - 11 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT COALESCE ( + 28, COUNT( * ) * NULLIF ( 32, 62 + 39 * 0 ) - MIN( DISTINCT COALESCE ( 55, 74, 33 - 98 ) ) ) * 84 AS col0
----
2352

skipif mysql # not compatible
query I rowsort label-6187
SELECT COALESCE ( + 28, COUNT ( * ) * NULLIF ( 32, 62 + 39 * 0 ) - MIN ( DISTINCT COALESCE ( 55, 74, 33 - 98 ) ) ) * 84 AS col0
----
2352

query I rowsort
SELECT 44 + + 73 + 68 * 40 AS col0
----
2837

query I rowsort
SELECT ALL + CASE - 20 WHEN 36 THEN 95 * 43 + - 37 * + 95 END AS col1
----
NULL

query I rowsort
SELECT - 84 * 0
----
0

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6193
SELECT DISTINCT + - 68 DIV + MAX( 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-6193
SELECT DISTINCT + - 68 / + MAX ( 44 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6194
SELECT ALL - 89 * - 47 + - NULLIF ( COUNT( * ), 95 * - 61 + + CAST( NULL AS SIGNED ) )
----
4182

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL - 89 * - 47 + - NULLIF ( COUNT ( * ), 95 * - 61 + + CAST ( NULL AS INTEGER ) )
----
4182

query I rowsort
SELECT + 20 + + 9
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT ALL 89 + - SUM( DISTINCT 98 )
----
-9

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL 89 + - SUM ( DISTINCT 98 )
----
-9

query I rowsort
SELECT DISTINCT + COALESCE ( 46, + 9 + + 2, - NULLIF ( 95, 58 ) + - 45 ) AS col0
----
46

query I rowsort
SELECT - 33 * - 31 AS col1
----
1023

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6199
SELECT 92 + MAX( DISTINCT 30 ) DIV + 89 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-6199
SELECT 92 + MAX ( DISTINCT 30 ) / + 89 AS col2
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6200
SELECT - 42 - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT - 42 - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT ALL 30 * + - MIN( DISTINCT 90 ) * 91
----
-245700

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL 30 * + - MIN ( DISTINCT 90 ) * 91
----
-245700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6202
SELECT - 0 * 16 + + CAST( + 50 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-6202
SELECT - 0 * 16 + + CAST ( + 50 AS INTEGER )
----
50

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

skipif mysql # not compatible
query I rowsort label-6203
SELECT + COUNT ( * ) / - 12 + + 44 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT ALL + 62 + + COUNT( * ) + 12 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL + 62 + + COUNT ( * ) + 12 AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6205
SELECT 56 * + COALESCE ( - COALESCE ( - 54, 92 ), + CAST( - 42 AS SIGNED ), - MAX( + 66 ) DIV - 38 ) * + 48 + COUNT( DISTINCT COALESCE ( + 69, + 84 ) ) AS col2
----
145153

skipif mysql # not compatible
query I rowsort label-6205
SELECT 56 * + COALESCE ( - COALESCE ( - 54, 92 ), + CAST ( - 42 AS INTEGER ), - MAX ( + 66 ) / - 38 ) * + 48 + COUNT ( DISTINCT COALESCE ( + 69, + 84 ) ) AS col2
----
145153

query I rowsort
SELECT DISTINCT 1 + + - 43 AS col1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6207
SELECT 3 AS col0, - NULLIF ( - CAST( 30 AS SIGNED ), CASE ( NULLIF ( - 17, 45 ) ) WHEN - ( 57 ) THEN 51 END )
----
3
30

skipif mysql # not compatible
query II rowsort label-6207
SELECT 3 AS col0, - NULLIF ( - CAST ( 30 AS INTEGER ), CASE ( NULLIF ( - 17, 45 ) ) WHEN - ( 57 ) THEN 51 END )
----
3
30

query I rowsort
SELECT 67 * - 70 AS col2
----
-4690

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

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

query II rowsort
SELECT + 35, + 14 AS col1
----
35
14

query II rowsort
SELECT 21, 82 AS col1
----
21
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT + COUNT( * ) * - + ( + 61 ) + - 74 AS col0
----
-135

skipif mysql # not compatible
query I rowsort label-6212
SELECT + COUNT ( * ) * - + ( + 61 ) + - 74 AS col0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT ALL + 52 - + + COUNT( * ) * 46 col2
----
6

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL + 52 - + + COUNT ( * ) * 46 col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-6214
SELECT ALL - COUNT( * ), - COUNT( * ) * - - 26 - 23 * + NULLIF ( 98, 29 ) AS col1
----
-1
-2280

skipif mysql # not compatible
query II rowsort label-6214
SELECT ALL - COUNT ( * ), - COUNT ( * ) * - - 26 - 23 * + NULLIF ( 98, 29 ) AS col1
----
-1
-2280

query I rowsort
SELECT DISTINCT - ( + 47 ) col0
----
-47

query I rowsort
SELECT DISTINCT 57 * - 92 AS col1
----
-5244

onlyif mysql # aggregate syntax: 
query II rowsort label-6217
SELECT 18 col0, COUNT( * ) * + 72 AS col1
----
18
72

skipif mysql # not compatible
query II rowsort label-6217
SELECT 18 col0, COUNT ( * ) * + 72 AS col1
----
18
72

query II rowsort
SELECT + 58 AS col0, - 76 AS col0
----
58
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-6219
SELECT 66 - - + 11 + - 79 DIV - 90
----
77

skipif mysql # not compatible
query I rowsort label-6219
SELECT 66 - - + 11 + - 79 / - 90
----
77

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6221
SELECT ALL - COUNT( * ) DIV - 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL - COUNT ( * ) / - 13 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6222
SELECT 72 * + COALESCE ( + NULLIF ( + 14, 45 ), + 42 DIV 93 + - 65, + 2 + - 1 * 52 ) AS col0
----
1008

skipif mysql # not compatible
query I rowsort label-6222
SELECT 72 * + COALESCE ( + NULLIF ( + 14, 45 ), + 42 / 93 + - 65, + 2 + - 1 * 52 ) AS col0
----
1008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6223
SELECT 58 * + CAST( 20 AS SIGNED ) + + ( 45 ) col1
----
1205

skipif mysql # not compatible
query I rowsort label-6223
SELECT 58 * + CAST ( 20 AS INTEGER ) + + ( 45 ) col1
----
1205

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6225
SELECT 35 + + COUNT( * ) * CASE 55 WHEN 81 THEN + 15 WHEN CAST( - ( - 31 ) AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT 35 + + COUNT ( * ) * CASE 55 WHEN 81 THEN + 15 WHEN CAST ( - ( - 31 ) AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT ALL COALESCE ( - + 92, - NULLIF ( COUNT( ALL NULLIF ( 65, 99 * 66 ) ), + NULLIF ( 79, 21 ) ) )
----
-92

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL COALESCE ( - + 92, - NULLIF ( COUNT ( ALL NULLIF ( 65, 99 * 66 ) ), + NULLIF ( 79, 21 ) ) )
----
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT DISTINCT - MAX( - 79 ) + - + COUNT( DISTINCT + 42 )
----
78

skipif mysql # not compatible
query I rowsort label-6228
SELECT DISTINCT - MAX ( - 79 ) + - + COUNT ( DISTINCT + 42 )
----
78

query I rowsort
SELECT ALL + ( - - 19 ) * - + 56 * + 24
----
-25536

query I rowsort
SELECT DISTINCT NULLIF ( + NULLIF ( 62, 49 / 86 ), - 12 * - 33 ) AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6231
SELECT + CASE - ( + 18 ) WHEN + COUNT( * ) / 37 THEN + CAST( NULL AS SIGNED ) * 33 + 48 WHEN 42 THEN - ( + 90 ) END * 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6231
SELECT + CASE - ( + 18 ) WHEN + COUNT ( * ) / 37 THEN + CAST ( NULL AS INTEGER ) * 33 + 48 WHEN 42 THEN - ( + 90 ) END * 65 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT NULLIF ( - - 82, 65 * + MAX( - 24 ) ) + 56 AS col0
----
138

skipif mysql # not compatible
query I rowsort label-6232
SELECT NULLIF ( - - 82, 65 * + MAX ( - 24 ) ) + 56 AS col0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT DISTINCT + 99 + + 47 + + 95 + + CASE 50 WHEN COUNT( * ) THEN - 57 + 6 WHEN - 35 + - ( 84 + - 99 ) THEN 80 * 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6233
SELECT DISTINCT + 99 + + 47 + + 95 + + CASE 50 WHEN COUNT ( * ) THEN - 57 + 6 WHEN - 35 + - ( 84 + - 99 ) THEN 80 * 94 END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6235
SELECT ALL + 66 + - CAST( 22 AS SIGNED ) + 52 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL + 66 + - CAST ( 22 AS INTEGER ) + 52 AS col0
----
96

query I rowsort
SELECT 84 * + 43 * 81 + 53 AS col1
----
292625

query II rowsort
SELECT 71, 46 AS col2
----
71
46

query I rowsort
SELECT ALL NULLIF ( - 75, + 63 * 37 ) AS col0
----
-75

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

skipif mysql # not compatible
query II rowsort label-6239
SELECT COUNT ( * ) AS col2, 49 AS col0
----
1
49

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

skipif mysql # not compatible
query I rowsort label-6240
SELECT 76 / COUNT ( * ) AS col2
----
76

query I rowsort
SELECT DISTINCT 65 * - 17 AS col1
----
-1105

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT 31 - - + COALESCE ( + - ( - - 1 ), COUNT( * ) ) + + 98 * - 46 AS col2
----
-4478

skipif mysql # not compatible
query I rowsort label-6242
SELECT 31 - - + COALESCE ( + - ( - - 1 ), COUNT ( * ) ) + + 98 * - 46 AS col2
----
-4478

query I rowsort
SELECT ALL 0 * 82
----
0

query I rowsort
SELECT ALL 58 * - 23
----
-1334

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

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

query I rowsort
SELECT ALL 89 * - - 45 - + 67
----
3938

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

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

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

skipif mysql # not compatible
query I rowsort label-6248
SELECT ALL CAST ( NULL AS REAL ) * - + 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT + COUNT( * ) - + - 55 col0
----
56

skipif mysql # not compatible
query I rowsort label-6249
SELECT + COUNT ( * ) - + - 55 col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6250
SELECT ALL 26 * - + COUNT( * ) - + 76 DIV - 59
----
-25

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL 26 * - + COUNT ( * ) - + 76 / - 59
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6251
SELECT + CAST( NULL AS SIGNED ) * + - 52 + - 13 * + MIN( 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6251
SELECT + CAST ( NULL AS INTEGER ) * + - 52 + - 13 * + MIN ( 58 )
----
NULL

query I rowsort
SELECT + 4 * + 11 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT + MIN( DISTINCT - - 31 ) + - 0 + - 29 * 34
----
-955

skipif mysql # not compatible
query I rowsort label-6253
SELECT + MIN ( DISTINCT - - 31 ) + - 0 + - 29 * 34
----
-955

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT MIN( DISTINCT - - 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-6254
SELECT MIN ( DISTINCT - - 90 ) AS col1
----
90

query I rowsort
SELECT + 51 + 54 + + 50 * + 98 * NULLIF ( 83, - 78 ) AS col0
----
406805

query I rowsort
SELECT - 56 - + - 72 * 5
----
304

query I rowsort
SELECT + 68 * + 53
----
3604

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT DISTINCT - COUNT( * ) * ( - 73 ) * 85 + + 47
----
6252

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT - COUNT ( * ) * ( - 73 ) * 85 + + 47
----
6252

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

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

query I rowsort
SELECT DISTINCT + 44 + 72 AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT - 59 * - COUNT( * ) * + 58 + - 65 * + 19 AS col1
----
2187

skipif mysql # not compatible
query I rowsort label-6261
SELECT - 59 * - COUNT ( * ) * + 58 + - 65 * + 19 AS col1
----
2187

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

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

query I rowsort
SELECT DISTINCT + 64 + 23 + - + 47 + + 48 + + 84 * + 34 * + 91 * - 84
----
-21831176

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT - 79 + + 4 * + MAX( ALL + - 40 ) AS col0
----
-239

skipif mysql # not compatible
query I rowsort label-6264
SELECT - 79 + + 4 * + MAX ( ALL + - 40 ) AS col0
----
-239

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT ALL + + 30 + MIN( DISTINCT - - 38 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL + + 30 + MIN ( DISTINCT - - 38 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT - + MAX( DISTINCT 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-6266
SELECT - + MAX ( DISTINCT 18 ) AS col0
----
-18

query I rowsort
SELECT ALL - ( - 31 ) + - - 37 AS col2
----
68

query I rowsort
SELECT + - 56 + - 93
----
-149

query I rowsort
SELECT - - 50 * - 66
----
-3300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6270
SELECT ALL - COALESCE ( - 95, - - 53 - + - 44, CASE - CAST( NULL AS SIGNED ) WHEN + AVG ( - CAST( NULL AS SIGNED ) ) * - CAST( ( + AVG ( 75 ) ) * + 0 AS DECIMAL ) THEN NULL WHEN + COUNT( * ) + 72 THEN CASE - 13 WHEN 49 - 91 THEN - 90 ELSE 48 * + ( + ( 85 ) ) + 97 END ELSE NULL END ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL - COALESCE ( - 95, - - 53 - + - 44, CASE - CAST ( NULL AS INTEGER ) WHEN + AVG ( - CAST ( NULL AS INTEGER ) ) * - CAST ( ( + AVG ( 75 ) ) * + 0 AS REAL ) THEN NULL WHEN + COUNT ( * ) + 72 THEN CASE - 13 WHEN 49 - 91 THEN - 90 ELSE 48 * + ( + ( 85 ) ) + 97 END ELSE NULL END ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT + + MIN( DISTINCT - 31 ) + 27 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6271
SELECT + + MIN ( DISTINCT - 31 ) + 27 AS col2
----
-4

query I rowsort
SELECT - + 75 * 31
----
-2325

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT ALL + ( - - 37 ) + - 6 + + 90 * CASE + 44 / 16 WHEN ( 99 ) THEN - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL + ( - - 37 ) + - 6 + + 90 * CASE + 44 / 16 WHEN ( 99 ) THEN - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT - - 6 + + - 68 * - ( 56 ) + + COUNT( * ) col0
----
3815

skipif mysql # not compatible
query I rowsort label-6274
SELECT - - 6 + + - 68 * - ( 56 ) + + COUNT ( * ) col0
----
3815

query I rowsort
SELECT ALL - - 50 + + 93 * 73 - 90 + 60
----
6809

onlyif mysql # aggregate syntax: 
query II rowsort label-6276
SELECT DISTINCT + MIN( ALL - 2 ) AS col2, - 18 * ( 71 ) + 62 * - 72
----
-2
-5742

skipif mysql # not compatible
query II rowsort label-6276
SELECT DISTINCT + MIN ( ALL - 2 ) AS col2, - 18 * ( 71 ) + 62 * - 72
----
-2
-5742

query I rowsort
SELECT DISTINCT - NULLIF ( 47, 66 * - + 18 )
----
-47

query I rowsort
SELECT DISTINCT - 4 * 69
----
-276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6279
SELECT DISTINCT - - COUNT( * ) + - MIN( + CAST( - - 36 AS SIGNED ) )
----
-35

skipif mysql # not compatible
query I rowsort label-6279
SELECT DISTINCT - - COUNT ( * ) + - MIN ( + CAST ( - - 36 AS INTEGER ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT ALL - - ( ( + + 5 ) ) * - COUNT( DISTINCT 22 ) + 18 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL - - ( ( + + 5 ) ) * - COUNT ( DISTINCT 22 ) + 18 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT - 18 + - 91 * 2 * - + 23 * 12 + + COUNT( * ) AS col0
----
50215

skipif mysql # not compatible
query I rowsort label-6281
SELECT - 18 + - 91 * 2 * - + 23 * 12 + + COUNT ( * ) AS col0
----
50215

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT DISTINCT - + COUNT( * ) * - 25 * - 65 + + 84 + - 30 * - 55
----
109

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT - + COUNT ( * ) * - 25 * - 65 + + 84 + - 30 * - 55
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT - CASE - COUNT( * ) WHEN + COUNT( * ) + COUNT( * ) - - NULLIF ( SUM( 81 ), 26 * - 57 ) THEN 89 ELSE NULL END - COALESCE ( 82 + NULLIF ( + 64, - ( COALESCE ( - 14, - 83 ) ) ) * - 56, 76 - + COUNT( * ) * - 75, 88 ) * 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6284
SELECT - CASE - COUNT ( * ) WHEN + COUNT ( * ) + COUNT ( * ) - - NULLIF ( SUM ( 81 ), 26 * - 57 ) THEN 89 ELSE NULL END - COALESCE ( 82 + NULLIF ( + 64, - ( COALESCE ( - 14, - 83 ) ) ) * - 56, 76 - + COUNT ( * ) * - 75, 88 ) * 26 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6285
SELECT - 64 + + 59 + - 49 * + 97 * CAST( 86 AS SIGNED ) * - 89 AS col0
----
36379457

skipif mysql # not compatible
query I rowsort label-6285
SELECT - 64 + + 59 + - 49 * + 97 * CAST ( 86 AS INTEGER ) * - 89 AS col0
----
36379457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6286
SELECT 88 * + CAST( NULL AS SIGNED ) + + - SUM( ALL + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6286
SELECT 88 * + CAST ( NULL AS INTEGER ) + + - SUM ( ALL + 6 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT ALL 46 * + 28 * - - SUM( DISTINCT - 9 ) col0
----
-11592

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL 46 * + 28 * - - SUM ( DISTINCT - 9 ) col0
----
-11592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6288
SELECT DISTINCT 63 * NULLIF ( ( + 67 ), - 23 * + ( - CASE + COUNT( * ) WHEN 54 THEN NULL ELSE - MAX( ALL CAST( 8 AS SIGNED ) ) END ) ) col0
----
4221

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT 63 * NULLIF ( ( + 67 ), - 23 * + ( - CASE + COUNT ( * ) WHEN 54 THEN NULL ELSE - MAX ( ALL CAST ( 8 AS INTEGER ) ) END ) ) col0
----
4221

onlyif mysql # DIV for integer division: 
query I rowsort label-6289
SELECT DISTINCT - 34 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT - 34 / 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT + SUM( + + 20 ) + - - 19 + + + 70 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-6290
SELECT + SUM ( + + 20 ) + - - 19 + + + 70 AS col2
----
109

query I rowsort
SELECT ALL - 16 * - - 69 * + 71 AS col1
----
-78384

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT ( + + MAX( + - 54 ) ) * + 18 + - 29 AS col2
----
-1001

skipif mysql # not compatible
query I rowsort label-6292
SELECT ( + + MAX ( + - 54 ) ) * + 18 + - 29 AS col2
----
-1001

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6293
SELECT + 74 DIV COUNT( * ) * - COALESCE ( - 82, + + 46 - - 73 * 70 ) * + NULLIF ( 77 + + 82, 15 * + 93 )
----
964812

skipif mysql # not compatible
query I rowsort label-6293
SELECT + 74 / COUNT ( * ) * - COALESCE ( - 82, + + 46 - - 73 * 70 ) * + NULLIF ( 77 + + 82, 15 * + 93 )
----
964812

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

query I rowsort
SELECT ALL - 53 * - 24 col1
----
1272

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT DISTINCT MAX( + 89 ) * + MAX( ALL + + 44 ) + + COUNT( * ) AS col0
----
3917

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT MAX ( + 89 ) * + MAX ( ALL + + 44 ) + + COUNT ( * ) AS col0
----
3917

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6297
SELECT DISTINCT - COUNT( * ) * COUNT( * ) + - + CASE + 19 WHEN + - 83 THEN NULL WHEN - 78 THEN + ( 63 ) DIV - 35 ELSE + ( - 98 ) + - 10 END * 5
----
539

skipif mysql # not compatible
query I rowsort label-6297
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) + - + CASE + 19 WHEN + - 83 THEN NULL WHEN - 78 THEN + ( 63 ) / - 35 ELSE + ( - 98 ) + - 10 END * 5
----
539

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT DISTINCT + - CASE + ( - 59 ) WHEN - 69 * CASE + COUNT( * ) WHEN - ( COUNT( * ) ) THEN 97 - COUNT( * ) END THEN NULL WHEN + 8 THEN NULL WHEN - 84 THEN NULL ELSE MIN( ALL - 77 ) END * - 58 + + 72 AS col1
----
-4394

skipif mysql # not compatible
query I rowsort label-6298
SELECT DISTINCT + - CASE + ( - 59 ) WHEN - 69 * CASE + COUNT ( * ) WHEN - ( COUNT ( * ) ) THEN 97 - COUNT ( * ) END THEN NULL WHEN + 8 THEN NULL WHEN - 84 THEN NULL ELSE MIN ( ALL - 77 ) END * - 58 + + 72 AS col1
----
-4394

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT DISTINCT - + COUNT( * ) * - 4 * 34 + + 18
----
154

skipif mysql # not compatible
query I rowsort label-6301
SELECT DISTINCT - + COUNT ( * ) * - 4 * 34 + + 18
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6302
SELECT DISTINCT + + 77 * COUNT( * ) * CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-6302
SELECT DISTINCT + + 77 * COUNT ( * ) * CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT - COUNT( * ) + + 17 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-6303
SELECT - COUNT ( * ) + + 17 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT ALL - + COUNT( * ) * - 11 + + SUM( - + 97 ) * + 76
----
-7361

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL - + COUNT ( * ) * - 11 + + SUM ( - + 97 ) * + 76
----
-7361

query I rowsort
SELECT ALL - - 23 * - 85 AS col1
----
-1955

onlyif mysql # DIV for integer division: 
query I rowsort label-6306
SELECT + + NULLIF ( - 85, - 60 + - - 73 * 97 * + 24 ) DIV - ( 60 )
----
1

skipif mysql # not compatible
query I rowsort label-6306
SELECT + + NULLIF ( - 85, - 60 + - - 73 * 97 * + 24 ) / - ( 60 )
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6308
SELECT + COALESCE ( 37, - CAST( - 34 AS SIGNED ) ) DIV - + 2 - - COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-6308
SELECT + COALESCE ( 37, - CAST ( - 34 AS INTEGER ) ) / - + 2 - - COUNT ( * ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT CASE + 97 WHEN + 40 * + 18 + + 80 + - COUNT( * ) * + 84 THEN NULL WHEN - MIN( 44 ) / - CASE WHEN NOT NULLIF ( 27, - 0 * + COUNT( * ) ) IS NULL THEN + 42 END THEN NULL ELSE COUNT( * ) * COALESCE ( 28, - NULLIF ( 15, 43 - 73 * 89 ) + COUNT( * ) ) END
----
28

skipif mysql # not compatible
query I rowsort label-6309
SELECT CASE + 97 WHEN + 40 * + 18 + + 80 + - COUNT ( * ) * + 84 THEN NULL WHEN - MIN ( 44 ) / - CASE WHEN NOT NULLIF ( 27, - 0 * + COUNT ( * ) ) IS NULL THEN + 42 END THEN NULL ELSE COUNT ( * ) * COALESCE ( 28, - NULLIF ( 15, 43 - 73 * 89 ) + COUNT ( * ) ) END
----
28

query II rowsort
SELECT - 25 + - + ( - 34 ) col1, 58
----
9
58

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

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

query I rowsort
SELECT DISTINCT CASE 62 WHEN + 91 THEN + 37 ELSE + + COALESCE ( 85, 96 ) END
----
85

query I rowsort
SELECT ALL + 20 - 24 AS col2
----
-4

query I rowsort
SELECT - 58 * 19 AS col1
----
-1102

query I rowsort
SELECT ALL - 21 * + + 18 * - 20 col1
----
7560

query I rowsort
SELECT 82 * 46 col2
----
3772

query II rowsort
SELECT + 89 AS col0, 34 * - 62 AS col1
----
89
-2108

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6319
SELECT 66 + + 53 DIV - 17
----
63

skipif mysql # not compatible
query I rowsort label-6319
SELECT 66 + + 53 / - 17
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-6320
SELECT + 44, ( - MAX( DISTINCT + 49 ) ) AS col1
----
44
-49

skipif mysql # not compatible
query II rowsort label-6320
SELECT + 44, ( - MAX ( DISTINCT + 49 ) ) AS col1
----
44
-49

query I rowsort
SELECT 72 * + 69
----
4968

query II rowsort
SELECT DISTINCT - 59 AS col1, 62 AS col1
----
-59
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6323
SELECT ALL + SUM( DISTINCT + CAST( 30 AS SIGNED ) ) + 78 AS col0
----
108

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL + SUM ( DISTINCT + CAST ( 30 AS INTEGER ) ) + 78 AS col0
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6324
SELECT ALL - 31 + + - 7 + COUNT( + 77 ) * - 38 + + 13 DIV - 13
----
-77

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL - 31 + + - 7 + COUNT ( + 77 ) * - 38 + + 13 / - 13
----
-77

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6326
SELECT + 12, COUNT( * ) + 98 - - CAST( NULL AS SIGNED ) * + 69 AS col0
----
12
NULL

skipif mysql # not compatible
query II rowsort label-6326
SELECT + 12, COUNT ( * ) + 98 - - CAST ( NULL AS INTEGER ) * + 69 AS col0
----
12
NULL

query I rowsort
SELECT 10 + - + 0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6328
SELECT ALL + 95 + - CAST( NULL AS SIGNED ) * + COALESCE ( + + 36, + + COUNT( * ), - - 95, 6 ) + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL + 95 + - CAST ( NULL AS INTEGER ) * + COALESCE ( + + 36, + + COUNT ( * ), - - 95, 6 ) + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT ALL COALESCE ( + - COUNT( DISTINCT - 85 ), + ( + 11 ) + 4, - 26 ) * 7
----
-7

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL COALESCE ( + - COUNT ( DISTINCT - 85 ), + ( + 11 ) + 4, - 26 ) * 7
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT ALL + + 59 + + MIN( ALL 32 )
----
91

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL + + 59 + + MIN ( ALL 32 )
----
91

query I rowsort
SELECT 30 * + 33 + - - 64 * - 24 + + 18
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT - 10 * - 85 * - 17 * - + 19 + - - 25 - - NULLIF ( + 37, COUNT( ( 36 ) ) + + 42 ) * COUNT( * ) AS col0
----
274612

skipif mysql # not compatible
query I rowsort label-6332
SELECT - 10 * - 85 * - 17 * - + 19 + - - 25 - - NULLIF ( + 37, COUNT ( ( 36 ) ) + + 42 ) * COUNT ( * ) AS col0
----
274612

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6334
SELECT + 93 DIV 17 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6334
SELECT + 93 / 17 AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6335
SELECT DISTINCT - 28 + + CAST( NULL AS SIGNED ) * + - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT - 28 + + CAST ( NULL AS INTEGER ) * + - 33 AS col0
----
NULL

query I rowsort
SELECT ALL 67 * + - 52 AS col0
----
-3484

query I rowsort
SELECT ALL + - 17 - + 71 * + 23
----
-1650

query I rowsort
SELECT DISTINCT + 67 - - ( + 51 )
----
118

query I rowsort
SELECT ALL - + 4 * 45 * 77 col1
----
-13860

onlyif mysql # aggregate syntax: 
query II rowsort label-6340
SELECT DISTINCT COUNT( * ) AS col1, 90 AS col2
----
1
90

skipif mysql # not compatible
query II rowsort label-6340
SELECT DISTINCT COUNT ( * ) AS col1, 90 AS col2
----
1
90

query I rowsort
SELECT - 26 + + + 79 col2
----
53

query I rowsort
SELECT ( 68 ) * + 67
----
4556

query II rowsort
SELECT ALL + 18 AS col0, 45
----
18
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT MAX( + - 70 ) + - 48 + - + 53 * 16 + - 92
----
-1058

skipif mysql # not compatible
query I rowsort label-6344
SELECT MAX ( + - 70 ) + - 48 + - + 53 * 16 + - 92
----
-1058

query I rowsort
SELECT - 53 + + + 92
----
39

query I rowsort
SELECT ALL 97 * - 3 * - 75 AS col0
----
21825

onlyif mysql # aggregate syntax: 
query II rowsort label-6347
SELECT - COUNT( * ) AS col0, - COUNT( * ) + + 46 AS col0
----
-1
45

skipif mysql # not compatible
query II rowsort label-6347
SELECT - COUNT ( * ) AS col0, - COUNT ( * ) + + 46 AS col0
----
-1
45

query I rowsort
SELECT DISTINCT 70 * + 67 AS col1
----
4690

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT 66 + + - COUNT( * ) col2
----
65

skipif mysql # not compatible
query I rowsort label-6349
SELECT 66 + + - COUNT ( * ) col2
----
65

query I rowsort
SELECT DISTINCT 76 * + - 98 * - 21 AS col2
----
156408

query I rowsort
SELECT DISTINCT 34 * 4 * + 63 * 13 * 35 * - 7
----
-27289080

query I rowsort
SELECT 56 + 79
----
135

query I rowsort
SELECT 95 + 47 col1
----
142

query II rowsort
SELECT ALL 69 + - 91 AS col1, 20 AS col1
----
-22
20

query I rowsort
SELECT 11 + 80 + - 84 + - 7 * - + 25 + + + 43 * 52 AS col0
----
2418

onlyif mysql # DIV for integer division: 
query I rowsort label-6356
SELECT DISTINCT + 71 DIV + 55 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT + 71 / + 55 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT ALL 33 + - 40 * + 56 * - 70 * COUNT( * ) + + 49 AS col1
----
156882

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL 33 + - 40 * + 56 * - 70 * COUNT ( * ) + + 49 AS col1
----
156882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6358
SELECT ALL + 99 + - 62, COUNT( * ) / 77 + - 48 - + - COUNT( * ) + - - CAST( 10 AS SIGNED ) - CAST( NULL AS SIGNED ) * 78 AS col0
----
37
NULL

skipif mysql # not compatible
query II rowsort label-6358
SELECT ALL + 99 + - 62, COUNT ( * ) / 77 + - 48 - + - COUNT ( * ) + - - CAST ( 10 AS INTEGER ) - CAST ( NULL AS INTEGER ) * 78 AS col0
----
37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT 99 / + 45 + + COUNT( * ) + + - CASE 60 WHEN - COUNT( * ) THEN 25 + 97 WHEN - 68 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6359
SELECT 99 / + 45 + + COUNT ( * ) + + - CASE 60 WHEN - COUNT ( * ) THEN 25 + 97 WHEN - 68 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6360
SELECT DISTINCT + ( + - 37 ) * CASE ( - COUNT( * ) ) WHEN - - 24 - CASE - 55 WHEN 96 - 71 THEN NULL WHEN - 38 THEN - 74 * + 47 WHEN COUNT( * ) THEN - MIN( ALL - 48 ) ELSE NULL END + + 12 * CAST( 13 AS SIGNED ) THEN NULL WHEN 5 / - 63 THEN NULL ELSE + 73 * - ( + 53 * 54 ) + 61 END * - 18 + + 28
----
-139104062

skipif mysql # not compatible
query I rowsort label-6360
SELECT DISTINCT + ( + - 37 ) * CASE ( - COUNT ( * ) ) WHEN - - 24 - CASE - 55 WHEN 96 - 71 THEN NULL WHEN - 38 THEN - 74 * + 47 WHEN COUNT ( * ) THEN - MIN ( ALL - 48 ) ELSE NULL END + + 12 * CAST ( 13 AS INTEGER ) THEN NULL WHEN 5 / - 63 THEN NULL ELSE + 73 * - ( + 53 * 54 ) + 61 END * - 18 + + 28
----
-139104062

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT ( - CASE - 47 WHEN - - COUNT( * ) / - + 55 * + + 2 + - + 50 THEN 63 END ) * - COALESCE ( 16, 9 * 85 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6361
SELECT ( - CASE - 47 WHEN - - COUNT ( * ) / - + 55 * + + 2 + - + 50 THEN 63 END ) * - COALESCE ( 16, 9 * 85 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6362
SELECT ALL - 90 + + NULLIF ( - CASE NULLIF ( 17, 42 ) WHEN - CAST( + 72 AS SIGNED ) + ( 0 ) / + 24 THEN - 9 END, + 41 ) * + NULLIF ( CAST( - 41 AS SIGNED ) * - 98, 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL - 90 + + NULLIF ( - CASE NULLIF ( 17, 42 ) WHEN - CAST ( + 72 AS INTEGER ) + ( 0 ) / + 24 THEN - 9 END, + 41 ) * + NULLIF ( CAST ( - 41 AS INTEGER ) * - 98, 78 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT DISTINCT + 71 - NULLIF ( + SUM( ALL - 4 ), - - 43 / - - 17 + COUNT( * ) + NULLIF ( - 71, 54 * - 57 ) ) col2
----
75

skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT + 71 - NULLIF ( + SUM ( ALL - 4 ), - - 43 / - - 17 + COUNT ( * ) + NULLIF ( - 71, 54 * - 57 ) ) col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT ALL - - CASE 7 WHEN - - 41 + COALESCE ( + 65, + - COALESCE ( COALESCE ( - 18, - COALESCE ( ( - NULLIF ( - SUM( + 80 ), + 20 ) ), + 64 ) * 86 ), - 42 / + 35 ) ) THEN NULL ELSE - 94 END AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL - - CASE 7 WHEN - - 41 + COALESCE ( + 65, + - COALESCE ( COALESCE ( - 18, - COALESCE ( ( - NULLIF ( - SUM ( + 80 ), + 20 ) ), + 64 ) * 86 ), - 42 / + 35 ) ) THEN NULL ELSE - 94 END AS col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6366
SELECT ALL + + SUM( DISTINCT 39 ) DIV + 21 col2
----
1

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL + + SUM ( DISTINCT 39 ) / + 21 col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6367
SELECT - 57 + - 23 col2, CASE 32 WHEN + 46 * 68 THEN NULL WHEN - 42 THEN COALESCE ( - 8, - ( COUNT( * ) ) ) END
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-6367
SELECT - 57 + - 23 col2, CASE 32 WHEN + 46 * 68 THEN NULL WHEN - 42 THEN COALESCE ( - 8, - ( COUNT ( * ) ) ) END
----
-80
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6368
SELECT DISTINCT + - 14 DIV 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT + - 14 / 37 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6369
SELECT ALL + 89 DIV - + 18 AS col1, + 57 * + 60
----
-4
3420

skipif mysql # not compatible
query II rowsort label-6369
SELECT ALL + 89 / - + 18 AS col1, + 57 * + 60
----
-4
3420

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT - 84 * + ( - - 69 ) * COUNT( * ) AS col2
----
-5796

skipif mysql # not compatible
query I rowsort label-6370
SELECT - 84 * + ( - - 69 ) * COUNT ( * ) AS col2
----
-5796

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6372
SELECT ALL + COALESCE ( - + 58, - ( + 92 ), - - 42 ), COUNT( * ) * + - 84 DIV - 30 + - ( - 2 + + 74 * + COUNT( * ) ) * 24 AS col2
----
-58
-1726

skipif mysql # not compatible
query II rowsort label-6372
SELECT ALL + COALESCE ( - + 58, - ( + 92 ), - - 42 ), COUNT ( * ) * + - 84 / - 30 + - ( - 2 + + 74 * + COUNT ( * ) ) * 24 AS col2
----
-58
-1726

onlyif mysql # DIV for integer division: 
query I rowsort label-6373
SELECT + 51 DIV + 24 - + 91 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-6373
SELECT + 51 / + 24 - + 91 AS col0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6374
SELECT CASE - + COUNT( + 64 ) WHEN + - 15 + + - 77 THEN + - COUNT( * ) * 97 END + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6374
SELECT CASE - + COUNT ( + 64 ) WHEN + - 15 + + - 77 THEN + - COUNT ( * ) * 97 END + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6375
SELECT DISTINCT COUNT( 18 ) AS col0, 97 AS col0
----
1
97

skipif mysql # not compatible
query II rowsort label-6375
SELECT DISTINCT COUNT ( 18 ) AS col0, 97 AS col0
----
1
97

query I rowsort
SELECT - - COALESCE ( + - 40, - 67, - ( 17 ) )
----
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6377
SELECT ALL NULLIF ( - CAST( NULL AS DECIMAL ), + 19 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL NULLIF ( - CAST ( NULL AS REAL ), + 19 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6378
SELECT DISTINCT + 48 + COUNT( * ) * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT + 48 + COUNT ( * ) * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6379
SELECT 35 col2, 12 + + 71 + - + 77 DIV + 66
----
35
82

skipif mysql # not compatible
query II rowsort label-6379
SELECT 35 col2, 12 + + 71 + - + 77 / + 66
----
35
82

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6381
SELECT 73, - AVG ( ALL - 16 ) + + + CAST( 69 AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col1
----
73
NULL

skipif mysql # not compatible
query II rowsort label-6381
SELECT 73, - AVG ( ALL - 16 ) + + + CAST ( 69 AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col1
----
73
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6382
SELECT 43, 94 * + COUNT( * ) * 13 AS col0
----
43
1222

skipif mysql # not compatible
query II rowsort label-6382
SELECT 43, 94 * + COUNT ( * ) * 13 AS col0
----
43
1222

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT - NULLIF ( COUNT( * ), - 51 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6383
SELECT - NULLIF ( COUNT ( * ), - 51 ) AS col2
----
-1

query I rowsort
SELECT + ( - - 77 ) * - 25
----
-1925

query I rowsort
SELECT + 58 * 37
----
2146

query I rowsort
SELECT ALL 40 + - 0 AS col2
----
40

query II rowsort
SELECT 68 AS col1, + 33
----
68
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6388
SELECT ALL ( 26 ) + - + 53 * 68 DIV COUNT( * )
----
-3578

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL ( 26 ) + - + 53 * 68 / COUNT ( * )
----
-3578

query I rowsort
SELECT + 22 * 18 AS col2
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT DISTINCT 45 + - 13 + - COUNT( * ) + 23 * 4
----
123

skipif mysql # not compatible
query I rowsort label-6390
SELECT DISTINCT 45 + - 13 + - COUNT ( * ) + 23 * 4
----
123

query II rowsort
SELECT 86 AS col1, 34 + + 71 AS col2
----
86
105

query I rowsort
SELECT ALL 80 + 51 col2
----
131

query I rowsort
SELECT + 92 * + 85
----
7820

onlyif mysql # DIV for integer division: 
query I rowsort label-6394
SELECT - - 34 DIV 95 * 93 * + 71 - - NULLIF ( - - 11, + 22 ) * 62
----
682

skipif mysql # not compatible
query I rowsort label-6394
SELECT - - 34 / 95 * 93 * + 71 - - NULLIF ( - - 11, + 22 ) * 62
----
682

query I rowsort
SELECT + NULLIF ( + 11, + - 44 ) * - 56
----
-616

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6397
SELECT DISTINCT - + 92 DIV - 8 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT - + 92 / - 8 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT ALL - 22 * + - SUM( ALL 9 ) - 28 + + ( - 86 ) * - COUNT( * )
----
256

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL - 22 * + - SUM ( ALL 9 ) - 28 + + ( - 86 ) * - COUNT ( * )
----
256

query I rowsort
SELECT + 19 * 28
----
532

query II rowsort
SELECT ALL + 45 AS col0, - 27 + - 34 AS col0
----
45
-61

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

query I rowsort
SELECT ALL - 76 * 39
----
-2964

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6403
SELECT + + ( MAX( ALL + - 4 ) ) + CASE - 25 WHEN - 28 THEN - + 89 DIV + - 93 + COUNT( * ) WHEN COUNT( * ) * 94 THEN NULL ELSE 42 END * 7 AS col2
----
290

skipif mysql # not compatible
query I rowsort label-6403
SELECT + + ( MAX ( ALL + - 4 ) ) + CASE - 25 WHEN - 28 THEN - + 89 / + - 93 + COUNT ( * ) WHEN COUNT ( * ) * 94 THEN NULL ELSE 42 END * 7 AS col2
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT + - COALESCE ( + COUNT( * ), + 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-6404
SELECT + - COALESCE ( + COUNT ( * ), + 57 )
----
-1

query I rowsort
SELECT + - 38 + + - 63 AS col2
----
-101

query I rowsort
SELECT ALL + 27 * 4 AS col2
----
108

query I rowsort
SELECT - + 57 - 89 AS col2
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT ALL ( - 70 ) * + NULLIF ( - + 99, COUNT( * ) + + - 80 * + 76 ) * - + 15 * + 81 + 95 AS col0
----
-8419855

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL ( - 70 ) * + NULLIF ( - + 99, COUNT ( * ) + + - 80 * + 76 ) * - + 15 * + 81 + 95 AS col0
----
-8419855

query I rowsort
SELECT - 62 + + - 56 - 71 * - - 86 AS col0
----
-6224

onlyif mysql # DIV for integer division: 
query I rowsort label-6410
SELECT - 88 DIV 50 * + 20 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6410
SELECT - 88 / 50 * + 20 AS col0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6411
SELECT + CAST( 59 AS SIGNED ) * + - 6 + - ( 82 ) AS col0
----
-436

skipif mysql # not compatible
query I rowsort label-6411
SELECT + CAST ( 59 AS INTEGER ) * + - 6 + - ( 82 ) AS col0
----
-436

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT ALL - 71 * - + COUNT( * ) * - 28 col0
----
-1988

skipif mysql # not compatible
query I rowsort label-6413
SELECT ALL - 71 * - + COUNT ( * ) * - 28 col0
----
-1988

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6414
SELECT + 58 DIV - + 10 col0, - 20 DIV - 67 * COUNT( * ) AS col0
----
-5
0

skipif mysql # not compatible
query II rowsort label-6414
SELECT + 58 / - + 10 col0, - 20 / - 67 * COUNT ( * ) AS col0
----
-5
0

query I rowsort
SELECT ALL + 99 + - 27 + - - ( - + ( + + 81 ) ) * + 98 - 74 AS col2
----
-7940

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT - 22 + + MAX( ALL 36 ) * - 34 - + 75 + + 31 col0
----
-1290

skipif mysql # not compatible
query I rowsort label-6418
SELECT - 22 + + MAX ( ALL 36 ) * - 34 - + 75 + + 31 col0
----
-1290

query I rowsort
SELECT + 98 + 26
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6420
SELECT ALL + 99 + + COUNT( * ) + + 34 + + 80 DIV 53 col2
----
135

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL + 99 + + COUNT ( * ) + + 34 + + 80 / 53 col2
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6421
SELECT + 74 + - 84 * - - 87 - + CAST( NULL AS SIGNED ) * 19 * + - 54 - - 14 col1, 61
----
NULL
61

skipif mysql # not compatible
query II rowsort label-6421
SELECT + 74 + - 84 * - - 87 - + CAST ( NULL AS INTEGER ) * 19 * + - 54 - - 14 col1, 61
----
NULL
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6422
SELECT ALL CAST( + 61 AS SIGNED ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL CAST ( + 61 AS INTEGER ) AS col0
----
61

query I rowsort
SELECT DISTINCT - 81 - 95 + + 17
----
-159

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT ALL - + CASE + + 42 WHEN + 29 - + + COUNT( * ) THEN - 93 * 75 / + COALESCE ( + 17, - + MAX( 32 ) * + 88 ) WHEN 5 * - 87 THEN - 75 WHEN - 39 THEN NULL END / 17
----
NULL

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL - + CASE + + 42 WHEN + 29 - + + COUNT ( * ) THEN - 93 * 75 / + COALESCE ( + 17, - + MAX ( 32 ) * + 88 ) WHEN 5 * - 87 THEN - 75 WHEN - 39 THEN NULL END / 17
----
NULL

query I rowsort
SELECT ALL + + 56 col2
----
56

query I rowsort
SELECT ALL + 22 * - 54 - - 7
----
-1181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6428
SELECT - + 2 * 27 * - CAST( + MIN( DISTINCT - CASE + 95 WHEN + 46 THEN CASE - 89 WHEN + 44 * - 91 + 60 THEN NULL WHEN 93 * 52 THEN NULL ELSE 6 END END ) AS SIGNED ) / - MAX( DISTINCT ( 2 ) * + 19 ) + - 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6428
SELECT - + 2 * 27 * - CAST ( + MIN ( DISTINCT - CASE + 95 WHEN + 46 THEN CASE - 89 WHEN + 44 * - 91 + 60 THEN NULL WHEN 93 * 52 THEN NULL ELSE 6 END END ) AS INTEGER ) / - MAX ( DISTINCT ( 2 ) * + 19 ) + - 61 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT - COUNT( * ) * 45 + MAX( + + 86 ) * - + 86 * 13
----
-96193

skipif mysql # not compatible
query I rowsort label-6430
SELECT - COUNT ( * ) * 45 + MAX ( + + 86 ) * - + 86 * 13
----
-96193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6431
SELECT + 6 DIV + 11 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6431
SELECT + 6 / + 11 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT - 75 * SUM( - 57 )
----
4275

skipif mysql # not compatible
query I rowsort label-6432
SELECT - 75 * SUM ( - 57 )
----
4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6433
SELECT 59 * - 83 * - 86 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6433
SELECT 59 * - 83 * - 86 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 64 + + - 23 * + 12 - - 17
----
-195

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6435
SELECT ALL 63 DIV 43 AS col1, NULLIF ( - COUNT( * ), + 38 ) DIV - + 49
----
1
0

skipif mysql # not compatible
query II rowsort label-6435
SELECT ALL 63 / 43 AS col1, NULLIF ( - COUNT ( * ), + 38 ) / - + 49
----
1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6436
SELECT ALL 2 DIV - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL 2 / - COUNT ( * ) AS col2
----
-2

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

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

query I rowsort
SELECT ALL 70 * - 50 AS col1
----
-3500

query I rowsort
SELECT 66 * + 92
----
6072

query I rowsort
SELECT 1 + 85
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT ALL + COUNT( * ) + - + 32 + + 40 * NULLIF ( + COUNT( * ), + COALESCE ( 44, 83 ) + + - 6 ) * - + 45 + + 45 - 76
----
-1862

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL + COUNT ( * ) + - + 32 + + 40 * NULLIF ( + COUNT ( * ), + COALESCE ( 44, 83 ) + + - 6 ) * - + 45 + + 45 - 76
----
-1862

query I rowsort
SELECT ALL - 67 + 38 - + 69 * 12
----
-857

onlyif mysql # aggregate syntax: 
query II rowsort label-6443
SELECT DISTINCT 31 AS col2, - 40 - + + 20 + + 66 - + - 60 + - + 5 + - + COUNT( * )
----
31
60

skipif mysql # not compatible
query II rowsort label-6443
SELECT DISTINCT 31 AS col2, - 40 - + + 20 + + 66 - + - 60 + - + 5 + - + COUNT ( * )
----
31
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6444
SELECT ALL - ( - 23 ) DIV COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL - ( - 23 ) / COUNT ( * ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ALL - 67 - 6 * + + CASE COUNT( * ) WHEN + 30 THEN - + 11 + - + CASE - 40 WHEN COUNT( * ) + + COUNT( * ) + - ( + AVG ( DISTINCT + 41 ) + 44 ) THEN NULL ELSE - COUNT( * ) END - - 84 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL - 67 - 6 * + + CASE COUNT ( * ) WHEN + 30 THEN - + 11 + - + CASE - 40 WHEN COUNT ( * ) + + COUNT ( * ) + - ( + AVG ( DISTINCT + 41 ) + 44 ) THEN NULL ELSE - COUNT ( * ) END - - 84 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT 96 col0, 40 AS col1
----
96
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6447
SELECT 36 DIV + - COUNT( * ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-6447
SELECT 36 / + - COUNT ( * ) AS col2
----
-36

query I rowsort
SELECT 16 * - - 84
----
1344

query II rowsort
SELECT DISTINCT 7 col2, + 98 col2
----
7
98

query I rowsort
SELECT 26 - - - 44 - - NULLIF ( + 50, + 20 ) AS col0
----
32

query I rowsort
SELECT DISTINCT + + NULLIF ( + 23, - - 86 ) * + 21 AS col0
----
483

onlyif mysql # aggregate syntax: 
query II rowsort label-6452
SELECT - + NULLIF ( + 21, - 98 ), + COUNT( * ) * 97 * - ( + + 82 ) AS col1
----
-21
-7954

skipif mysql # not compatible
query II rowsort label-6452
SELECT - + NULLIF ( + 21, - 98 ), + COUNT ( * ) * 97 * - ( + + 82 ) AS col1
----
-21
-7954

query I rowsort
SELECT 5 + - 52 * 18 * + 80
----
-74875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6454
SELECT - + CAST( NULL AS SIGNED ) * COALESCE ( + 9, 40 + + 10 + + - COUNT( * ) - + - 8, - + 47 ) + + COUNT( * ) + + 30 * 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6454
SELECT - + CAST ( NULL AS INTEGER ) * COALESCE ( + 9, 40 + + 10 + + - COUNT ( * ) - + - 8, - + 47 ) + + COUNT ( * ) + + 30 * 5 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6455
SELECT ALL 34 * 78 * 26 + + 63 DIV + - COUNT( * ) + 97 + - 5
----
68981

skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL 34 * 78 * 26 + + 63 / + - COUNT ( * ) + 97 + - 5
----
68981

query I rowsort
SELECT ALL 47 + + 27 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT DISTINCT SUM( + + 19 ) * - + 9 * 5 * + 2 + CASE 94 WHEN + 93 THEN NULL WHEN + - 21 * + 33 + 59 THEN MAX( DISTINCT - ( - 6 ) ) - 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT SUM ( + + 19 ) * - + 9 * 5 * + 2 + CASE 94 WHEN + 93 THEN NULL WHEN + - 21 * + 33 + 59 THEN MAX ( DISTINCT - ( - 6 ) ) - 66 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT ALL - 44 * - + COUNT( * ) + + 73 - - - 25
----
92

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL - 44 * - + COUNT ( * ) + + 73 - - - 25
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6460
SELECT 51 DIV - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6460
SELECT 51 / - 58 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6461
SELECT 0 + - ( + 36 ) - - 15 DIV - 95 AS col1, + 16 AS col1
----
-36
16

skipif mysql # not compatible
query II rowsort label-6461
SELECT 0 + - ( + 36 ) - - 15 / - 95 AS col1, + 16 AS col1
----
-36
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6462
SELECT COUNT( * ) DIV MIN( - 49 ) DIV - 81 + + 89 AS col1, + 39 DIV + SUM( ALL + ( ( + - 78 ) ) )
----
89
0

skipif mysql # not compatible
query II rowsort label-6462
SELECT COUNT ( * ) / MIN ( - 49 ) / - 81 + + 89 AS col1, + 39 / + SUM ( ALL + ( ( + - 78 ) ) )
----
89
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6463
SELECT + ( - + 14 ) DIV + + COALESCE ( COUNT( * ), - + 75 + - + COUNT( * ) + - ( + + 61 ) + 72 * COUNT( * ) * - 85, + 1, + SUM( - 41 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-6463
SELECT + ( - + 14 ) / + + COALESCE ( COUNT ( * ), - + 75 + - + COUNT ( * ) + - ( + + 61 ) + 72 * COUNT ( * ) * - 85, + 1, + SUM ( - 41 ) )
----
-14

query I rowsort
SELECT 89 - - 64 AS col0
----
153

query II rowsort
SELECT 59, - 61 AS col2
----
59
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-6466
SELECT ALL 64 + + - 38 + + 92 DIV - - ( 27 )
----
29

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL 64 + + - 38 + + 92 / - - ( 27 )
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6467
SELECT ALL COUNT( * ) DIV - 7 * - + COALESCE ( MAX( + + 6 ), - + 43, - 92, 35 )
----
0

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL COUNT ( * ) / - 7 * - + COALESCE ( MAX ( + + 6 ), - + 43, - 92, 35 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT CASE - 90 WHEN 9 THEN NULL ELSE + 89 END - + - 83 - - - 29 * + COUNT( * ) + + COUNT( * ) + + + 73 col2
----
217

skipif mysql # not compatible
query I rowsort label-6468
SELECT CASE - 90 WHEN 9 THEN NULL ELSE + 89 END - + - 83 - - - 29 * + COUNT ( * ) + + COUNT ( * ) + + + 73 col2
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT DISTINCT CASE COUNT( * ) WHEN - 54 THEN - - ( - 26 ) * 32 WHEN 97 + - COUNT( * ) - COALESCE ( - MIN( - 91 ), 93 ) THEN 20 + COUNT( * ) END / 71 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6469
SELECT DISTINCT CASE COUNT ( * ) WHEN - 54 THEN - - ( - 26 ) * 32 WHEN 97 + - COUNT ( * ) - COALESCE ( - MIN ( - 91 ), 93 ) THEN 20 + COUNT ( * ) END / 71 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6470
SELECT ALL - 65, COUNT( * ) * 74 * - - 45 + + - COUNT( * ) AS col1
----
-65
3329

skipif mysql # not compatible
query II rowsort label-6470
SELECT ALL - 65, COUNT ( * ) * 74 * - - 45 + + - COUNT ( * ) AS col1
----
-65
3329

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT DISTINCT - MIN( 13 ) * 78 AS col0
----
-1014

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT - MIN ( 13 ) * 78 AS col0
----
-1014

query I rowsort
SELECT ALL + 99 - - 75 AS col1
----
174

onlyif mysql # aggregate syntax: 
query III rowsort label-6474
SELECT - 35 AS col2, + 68 * + + SUM( - 44 ) AS col1, 40 * + SUM( + 86 ) + + - 86 + + 47
----
-35
-2992
3401

skipif mysql # not compatible
query III rowsort label-6474
SELECT - 35 AS col2, + 68 * + + SUM ( - 44 ) AS col1, 40 * + SUM ( + 86 ) + + - 86 + + 47
----
-35
-2992
3401

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6475
SELECT 91 + + COUNT( * ) - + + 2 * 20 * - + 0 * + 64 AS col0, CASE SUM( ALL + + CAST( NULL AS SIGNED ) ) WHEN - 80 + 39 THEN + 39 * + ( 82 ) + + 4 * 49 WHEN COUNT( * ) THEN 67 END col1
----
92
NULL

skipif mysql # not compatible
query II rowsort label-6475
SELECT 91 + + COUNT ( * ) - + + 2 * 20 * - + 0 * + 64 AS col0, CASE SUM ( ALL + + CAST ( NULL AS INTEGER ) ) WHEN - 80 + 39 THEN + 39 * + ( 82 ) + + 4 * 49 WHEN COUNT ( * ) THEN 67 END col1
----
92
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6476
SELECT 26 - + 9 + 2 DIV + NULLIF ( - 84, - - 24 DIV + COUNT( * ) + 79 ) col1
----
17

skipif mysql # not compatible
query I rowsort label-6476
SELECT 26 - + 9 + 2 / + NULLIF ( - 84, - - 24 / + COUNT ( * ) + 79 ) col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT - NULLIF ( + + 79, - 81 + + ( + COUNT( ALL 26 ) ) + + - 55 / - + 72 ) * + - 28 + - 19 + + - ( 37 ) + + 31 * - 26
----
1350

skipif mysql # not compatible
query I rowsort label-6477
SELECT - NULLIF ( + + 79, - 81 + + ( + COUNT ( ALL 26 ) ) + + - 55 / - + 72 ) * + - 28 + - 19 + + - ( 37 ) + + 31 * - 26
----
1350

query I rowsort
SELECT 36 - - 68
----
104

query II rowsort
SELECT - 48, 53 col2
----
-48
53

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

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

query I rowsort
SELECT COALESCE ( ( - 13 ), - 57 + + 0, - 96 ) * + - 38 - - + 46 AS col1
----
540

query I rowsort
SELECT DISTINCT 62 * + + 43 AS col0
----
2666

query II rowsort
SELECT ALL 2 AS col1, 53 AS col1
----
2
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6484
SELECT 26 + + + 1 + + 55 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6484
SELECT 26 + + + 1 + + 55 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT COALESCE ( - - 12, + - 17 ) * + - 84
----
-1008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6486
SELECT 35 + - + 61 - - + 88 + - 22 DIV 3 * - COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-6486
SELECT 35 + - + 61 - - + 88 + - 22 / 3 * - COUNT ( * ) AS col0
----
69

query II rowsort
SELECT DISTINCT - 99 AS col2, 74 AS col0
----
-99
74

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

skipif mysql # not compatible
query I rowsort label-6488
SELECT + 42 / 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT 86 + + SUM( ALL 43 ) AS col1
----
129

skipif mysql # not compatible
query I rowsort label-6489
SELECT 86 + + SUM ( ALL 43 ) AS col1
----
129

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

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

query I rowsort
SELECT DISTINCT + 72 + + + 82 * - 74
----
-5996

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT - MIN( + 27 ) * 45
----
-1215

skipif mysql # not compatible
query I rowsort label-6492
SELECT - MIN ( + 27 ) * 45
----
-1215

onlyif mysql # DIV for integer division: 
query I rowsort label-6493
SELECT ALL + 28 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL + 28 / + 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT ALL - MIN( ALL 91 ) + 43
----
-48

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL - MIN ( ALL 91 ) + 43
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6495
SELECT ALL MAX( + 29 ) * - 71 + + CAST( 77 AS SIGNED ) * 97 + + 49 + - 45 * - ( 58 ) + - 14 DIV + 82 AS col2
----
8069

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL MAX ( + 29 ) * - 71 + + CAST ( 77 AS INTEGER ) * 97 + + 49 + - 45 * - ( 58 ) + - 14 / + 82 AS col2
----
8069

query I rowsort
SELECT ALL + - ( - 95 ) * 70 col2
----
6650

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT - 95 * COUNT( * ) * 97 * MIN( 92 ) col2
----
-847780

skipif mysql # not compatible
query I rowsort label-6497
SELECT - 95 * COUNT ( * ) * 97 * MIN ( 92 ) col2
----
-847780

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT + + COUNT( * ) * + + 13 * 82
----
1066

skipif mysql # not compatible
query I rowsort label-6498
SELECT + + COUNT ( * ) * + + 13 * 82
----
1066

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6500
SELECT DISTINCT + COALESCE ( + - 17, CASE 81 WHEN + COUNT( * ) THEN + - CAST( 51 AS SIGNED ) + - COUNT( * ) END * + - 8 )
----
-17

skipif mysql # not compatible
query I rowsort label-6500
SELECT DISTINCT + COALESCE ( + - 17, CASE 81 WHEN + COUNT ( * ) THEN + - CAST ( 51 AS INTEGER ) + - COUNT ( * ) END * + - 8 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT - ( - SUM( DISTINCT ( - ( + 9 ) ) ) ) * - 84 + + 73
----
829

skipif mysql # not compatible
query I rowsort label-6501
SELECT - ( - SUM ( DISTINCT ( - ( + 9 ) ) ) ) * - 84 + + 73
----
829

query I rowsort
SELECT ALL NULLIF ( - - 38, - - 74 * + 19 + 20 ) * + 87 AS col0
----
3306

query I rowsort
SELECT + 23 + - 65
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-6504
SELECT DISTINCT 37 * COALESCE ( - 0, - + COUNT( * ) ) - - COUNT( * ), 82 * + + 78 col1
----
1
6396

skipif mysql # not compatible
query II rowsort label-6504
SELECT DISTINCT 37 * COALESCE ( - 0, - + COUNT ( * ) ) - - COUNT ( * ), 82 * + + 78 col1
----
1
6396

query I rowsort
SELECT - ( - + 67 ) * - 32 * - 5
----
10720

query I rowsort
SELECT + 75 * - + 83 col2
----
-6225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6507
SELECT NULLIF ( CASE + - ( - 89 ) WHEN - COALESCE ( 63, - - 9, MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * - 30 ) THEN NULL WHEN + 67 / - - 85 * COALESCE ( + 1, SUM( DISTINCT - 48 ) - 73 ) + + 26 + NULLIF ( 13 + - 49, + 39 ) THEN - 39 * 30 + 44 WHEN + CAST( CAST( - 12 AS DECIMAL ) AS SIGNED ) + 64 * 78 THEN ( - 51 ) / 65 END, 41 ) * - 70 + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6507
SELECT NULLIF ( CASE + - ( - 89 ) WHEN - COALESCE ( 63, - - 9, MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 30 ) THEN NULL WHEN + 67 / - - 85 * COALESCE ( + 1, SUM ( DISTINCT - 48 ) - 73 ) + + 26 + NULLIF ( 13 + - 49, + 39 ) THEN - 39 * 30 + 44 WHEN + CAST ( CAST ( - 12 AS REAL ) AS INTEGER ) + 64 * 78 THEN ( - 51 ) / 65 END, 41 ) * - 70 + 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6508
SELECT MAX( - - 68 ), - 64 AS col2
----
68
-64

skipif mysql # not compatible
query II rowsort label-6508
SELECT MAX ( - - 68 ), - 64 AS col2
----
68
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6509
SELECT + 69 + 48 + - + COALESCE ( - - 72, + + CAST( NULL AS SIGNED ), 0 )
----
45

skipif mysql # not compatible
query I rowsort label-6509
SELECT + 69 + 48 + - + COALESCE ( - - 72, + + CAST ( NULL AS INTEGER ), 0 )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6510
SELECT + COUNT( * ) DIV - 75 * + 56 * + - 49 * - ( - + 72 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6510
SELECT + COUNT ( * ) / - 75 * + 56 * + - 49 * - ( - + 72 ) AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT + COUNT( * ) + - 71 + CASE - 87 WHEN SUM( 32 ) THEN + 38 * 15 / + 97 END * - - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-6512
SELECT + COUNT ( * ) + - 71 + CASE - 87 WHEN SUM ( 32 ) THEN + 38 * 15 / + 97 END * - - 48
----
NULL

query I rowsort
SELECT DISTINCT ( 24 ) col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6514
SELECT + 92 / + - CASE + 48 WHEN - CAST( NULL AS SIGNED ) THEN - 96 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6514
SELECT + 92 / + - CASE + 48 WHEN - CAST ( NULL AS INTEGER ) THEN - 96 END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6516
SELECT + 9 * COUNT( ALL + ( - CAST( - 11 AS SIGNED ) ) ) * + + 36 * + MAX( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6516
SELECT + 9 * COUNT ( ALL + ( - CAST ( - 11 AS INTEGER ) ) ) * + + 36 * + MAX ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6517
SELECT - ( MAX( DISTINCT - 9 ) ) AS col2, 34 / - 5 * CAST( NULL AS SIGNED ) / - 34 * + 16 * COUNT( * ) AS col1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-6517
SELECT - ( MAX ( DISTINCT - 9 ) ) AS col2, 34 / - 5 * CAST ( NULL AS INTEGER ) / - 34 * + 16 * COUNT ( * ) AS col1
----
9
NULL

query I rowsort
SELECT + 97 - + 36 AS col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6519
SELECT ALL 67 + - ( + - 56 ) + - 59 DIV - 40 * - COUNT( * ) AS col0
----
122

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL 67 + - ( + - 56 ) + - 59 / - 40 * - COUNT ( * ) AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT + 73 - COUNT( * ) col0
----
72

skipif mysql # not compatible
query I rowsort label-6520
SELECT + 73 - COUNT ( * ) col0
----
72

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6522
SELECT - COUNT( ALL 68 ) AS col2, 26
----
-1
26

skipif mysql # not compatible
query II rowsort label-6522
SELECT - COUNT ( ALL 68 ) AS col2, 26
----
-1
26

query I rowsort
SELECT DISTINCT + 41 + + 48 * 97 AS col1
----
4697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6524
SELECT ALL - 19 + + CAST( + 43 AS SIGNED ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL - 19 + + CAST ( + 43 AS INTEGER ) AS col0
----
24

query I rowsort
SELECT DISTINCT + 60 + - 95
----
-35

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6527
SELECT - 12 DIV 60 AS col0, - COALESCE ( - COUNT( * ), + 54 )
----
0
1

skipif mysql # not compatible
query II rowsort label-6527
SELECT - 12 / 60 AS col0, - COALESCE ( - COUNT ( * ), + 54 )
----
0
1

query I rowsort
SELECT + + 52 + + - 44
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6529
SELECT + - CASE - 19 WHEN - + ( CAST( NULL AS SIGNED ) ) + 60 + + 36 + - 32 THEN NULL WHEN CAST( - 98 AS DECIMAL ) THEN NULL ELSE + - 36 * SUM( DISTINCT + + 94 ) + 35 END AS col2
----
3349

skipif mysql # not compatible
query I rowsort label-6529
SELECT + - CASE - 19 WHEN - + ( CAST ( NULL AS INTEGER ) ) + 60 + + 36 + - 32 THEN NULL WHEN CAST ( - 98 AS REAL ) THEN NULL ELSE + - 36 * SUM ( DISTINCT + + 94 ) + 35 END AS col2
----
3349

query I rowsort
SELECT ( + + 63 ) * + NULLIF ( + 91, - 83 / 98 ) + - 14
----
5719

onlyif mysql # aggregate syntax: 
query II rowsort label-6531
SELECT - - 72 - - - COUNT( ALL - - 2 ) + ( + - 21 ) + - 70 * + 17, 62 AS col1
----
-1140
62

skipif mysql # not compatible
query II rowsort label-6531
SELECT - - 72 - - - COUNT ( ALL - - 2 ) + ( + - 21 ) + - 70 * + 17, 62 AS col1
----
-1140
62

query I rowsort
SELECT + 88 * - + 5
----
-440

query I rowsort
SELECT + + 57 col1
----
57

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

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

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

query I rowsort
SELECT - 82 + + + 97 AS col2
----
15

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

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

query II rowsort
SELECT + 22 col1, ( 20 )
----
22
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6539
SELECT CAST( + COUNT( - + 73 ) AS SIGNED ) * + 9 * + 55 * + CAST( NULL AS SIGNED ) + - NULLIF ( 47, - MIN( + 13 ) ) - + - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6539
SELECT CAST ( + COUNT ( - + 73 ) AS INTEGER ) * + 9 * + 55 * + CAST ( NULL AS INTEGER ) + - NULLIF ( 47, - MIN ( + 13 ) ) - + - 77 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT ALL + MAX( DISTINCT + 74 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-6542
SELECT ALL + MAX ( DISTINCT + 74 ) AS col2
----
74

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

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

query I rowsort
SELECT - 16 * - 21 AS col1
----
336

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6546
SELECT - 33 - + - 55 + COUNT( * ) AS col1, - 98 AS col1
----
23
-98

skipif mysql # not compatible
query II rowsort label-6546
SELECT - 33 - + - 55 + COUNT ( * ) AS col1, - 98 AS col1
----
23
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT 9 * - + 86 + - - 74 * + - COUNT( * )
----
-848

skipif mysql # not compatible
query I rowsort label-6547
SELECT 9 * - + 86 + - - 74 * + - COUNT ( * )
----
-848

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6548
SELECT COALESCE ( 37, - - ( - 18 ) * - 66 - - 24 DIV 63 * COUNT( * ) ) AS col2, + 85 + + 29 - 12 AS col1
----
37
102

skipif mysql # not compatible
query II rowsort label-6548
SELECT COALESCE ( 37, - - ( - 18 ) * - 66 - - 24 / 63 * COUNT ( * ) ) AS col2, + 85 + + 29 - 12 AS col1
----
37
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6549
SELECT DISTINCT - 78 * CAST( + + 59 AS SIGNED ) + - 22
----
-4624

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT - 78 * CAST ( + + 59 AS INTEGER ) + - 22
----
-4624

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT ALL + COUNT( * ) * + ( + + 15 ) + + 16 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL + COUNT ( * ) * + ( + + 15 ) + + 16 AS col1
----
31

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

query I rowsort
SELECT 35 + - + ( + + 67 )
----
-32

query I rowsort
SELECT 70 - NULLIF ( - 7, 64 )
----
77

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

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

query II rowsort
SELECT - 90, - 6 * + 6 AS col1
----
-90
-36

query I rowsort
SELECT ALL 0 + + 32 col2
----
32

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6558
SELECT COALESCE ( 80, 94 DIV - 12 DIV + ( + 34 ) + + + 54 ) + - COALESCE ( 54, 21 )
----
26

skipif mysql # not compatible
query I rowsort label-6558
SELECT COALESCE ( 80, 94 / - 12 / + ( + 34 ) + + + 54 ) + - COALESCE ( 54, 21 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT ALL NULLIF ( + CASE 37 WHEN - 12 + 10 + + 34 * - 46 THEN - - 94 END, COUNT( * ) * 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL NULLIF ( + CASE 37 WHEN - 12 + 10 + + 34 * - 46 THEN - - 94 END, COUNT ( * ) * 27 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT + SUM( ALL - 80 ) + + + 82 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6560
SELECT + SUM ( ALL - 80 ) + + + 82 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6561
SELECT CASE - + MAX( ALL - 26 ) WHEN + + 14 THEN + CASE COUNT( DISTINCT - + 38 ) WHEN - + 39 THEN 16 END WHEN + 36 + ( 35 ) * + 17 + + COALESCE ( - 64, NULLIF ( MAX( ( - 64 ) ), CAST( NULL AS SIGNED ) + 22 ) ) * - 85 THEN - 72 + 48 / 3 ELSE 55 * MIN( DISTINCT + CAST( 80 AS SIGNED ) * 38 ) + ( CAST( NULL AS SIGNED ) ) END / 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6561
SELECT CASE - + MAX ( ALL - 26 ) WHEN + + 14 THEN + CASE COUNT ( DISTINCT - + 38 ) WHEN - + 39 THEN 16 END WHEN + 36 + ( 35 ) * + 17 + + COALESCE ( - 64, NULLIF ( MAX ( ( - 64 ) ), CAST ( NULL AS INTEGER ) + 22 ) ) * - 85 THEN - 72 + 48 / 3 ELSE 55 * MIN ( DISTINCT + CAST ( 80 AS INTEGER ) * 38 ) + ( CAST ( NULL AS INTEGER ) ) END / 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT NULLIF ( - + SUM( - 48 ), + 15 ) + - 42 + 78 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-6562
SELECT NULLIF ( - + SUM ( - 48 ), + 15 ) + - 42 + 78 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6563
SELECT DISTINCT 84 - CAST( + COUNT( * ) AS SIGNED ) + NULLIF ( + 98, - - 48 / + + 95 ) + COUNT( ALL - - ( - 27 ) )
----
182

skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT 84 - CAST ( + COUNT ( * ) AS INTEGER ) + NULLIF ( + 98, - - 48 / + + 95 ) + COUNT ( ALL - - ( - 27 ) )
----
182

query I rowsort
SELECT 95 + + 38
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6565
SELECT - + SUM( DISTINCT + CAST( + 30 AS SIGNED ) ), - 39 - - + COUNT( * ) AS col2
----
-30
-38

skipif mysql # not compatible
query II rowsort label-6565
SELECT - + SUM ( DISTINCT + CAST ( + 30 AS INTEGER ) ), - 39 - - + COUNT ( * ) AS col2
----
-30
-38

query I rowsort
SELECT DISTINCT + 93 * 18 col0
----
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT ALL - COALESCE ( + CASE + - COUNT( 97 ) WHEN ( - COALESCE ( - 83, + 50 ) ) * 38 THEN 21 + + - 93 WHEN + + 23 + - 79 THEN NULL WHEN - 70 THEN NULL ELSE 81 END, 21 - 69 )
----
-81

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL - COALESCE ( + CASE + - COUNT ( 97 ) WHEN ( - COALESCE ( - 83, + 50 ) ) * 38 THEN 21 + + - 93 WHEN + + 23 + - 79 THEN NULL WHEN - 70 THEN NULL ELSE 81 END, 21 - 69 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT + COUNT( * ) * 25 + - COUNT( * ) * - - 35
----
-10

skipif mysql # not compatible
query I rowsort label-6568
SELECT + COUNT ( * ) * 25 + - COUNT ( * ) * - - 35
----
-10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6569
SELECT CASE WHEN + 93 NOT BETWEEN + 9 * + 66 - + 34 + 35 * 54 + - CAST( - - MIN( - - 86 ) AS DECIMAL ) * + + 34 * + 84 * - COUNT( * ) * 1 AND + 12 THEN COUNT( * ) * - 69 END * 18 - - 45 AS col2
----
-1197

skipif mysql # not compatible
query I rowsort label-6569
SELECT CASE WHEN + 93 NOT BETWEEN + 9 * + 66 - + 34 + 35 * 54 + - CAST ( - - MIN ( - - 86 ) AS REAL ) * + + 34 * + 84 * - COUNT ( * ) * 1 AND + 12 THEN COUNT ( * ) * - 69 END * 18 - - 45 AS col2
----
-1197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6570
SELECT 30 DIV - MIN( + 56 )
----
0

skipif mysql # not compatible
query I rowsort label-6570
SELECT 30 / - MIN ( + 56 )
----
0

query I rowsort
SELECT 1 * + + 92
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6572
SELECT ALL - CASE - 95 WHEN 94 + - CAST( + + 46 AS SIGNED ) + + 93 + - + ( + 79 ) + - 40 + 16 * + 31 THEN + + 44 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL - CASE - 95 WHEN 94 + - CAST ( + + 46 AS INTEGER ) + + 93 + - + ( + 79 ) + - 40 + 16 * + 31 THEN + + 44 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6573
SELECT ALL 4 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL 4 / - 64
----
0

query II rowsort
SELECT 26 + - 70, + 77 * - + 6 AS col2
----
-44
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT ALL - COUNT( DISTINCT + 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL - COUNT ( DISTINCT + 44 )
----
-1

query I rowsort
SELECT 35 + + 55 AS col2
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-6577
SELECT 39 * - - COUNT( * ) AS col0, 23 AS col2
----
39
23

skipif mysql # not compatible
query II rowsort label-6577
SELECT 39 * - - COUNT ( * ) AS col0, 23 AS col2
----
39
23

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

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT + 32 + - + ( - COUNT ( * ) ) AS col1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6579
SELECT ALL - CAST( + - ( + + COALESCE ( + 55, + 59 * + - CAST( + + CASE 51 WHEN + 28 + + 36 THEN NULL ELSE - 76 END AS SIGNED ) * - - 51, - COALESCE ( - 20, - 51, - 72 + 68 ) ) ) AS SIGNED ) + + 75 * 18 AS col1
----
1405

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL - CAST ( + - ( + + COALESCE ( + 55, + 59 * + - CAST ( + + CASE 51 WHEN + 28 + + 36 THEN NULL ELSE - 76 END AS INTEGER ) * - - 51, - COALESCE ( - 20, - 51, - 72 + 68 ) ) ) AS INTEGER ) + + 75 * 18 AS col1
----
1405

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT NULLIF ( - 35, 71 ) * + 65 + - SUM( 4 ) AS col0
----
-2279

skipif mysql # not compatible
query I rowsort label-6581
SELECT NULLIF ( - 35, 71 ) * + 65 + - SUM ( 4 ) AS col0
----
-2279

query I rowsort
SELECT 70 + + 28 * + 62 AS col2
----
1806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6583
SELECT DISTINCT + CAST( + - ( - 59 ) AS SIGNED ) + CAST( + 16 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-6583
SELECT DISTINCT + CAST ( + - ( - 59 ) AS INTEGER ) + CAST ( + 16 AS INTEGER )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT - CASE COUNT( * ) WHEN + + 4 + + + 73 THEN - + 55 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6584
SELECT - CASE COUNT ( * ) WHEN + + 4 + + + 73 THEN - + 55 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL ( + 23 ) * + 65 + - + 13 * 94
----
273

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6586
SELECT ALL + ( - 35 ) AS col2, - COALESCE ( + - 50, 7, 14 DIV + - CAST( NULL AS SIGNED ) + - 93 ) AS col0
----
-35
50

skipif mysql # not compatible
query II rowsort label-6586
SELECT ALL + ( - 35 ) AS col2, - COALESCE ( + - 50, 7, 14 / + - CAST ( NULL AS INTEGER ) + - 93 ) AS col0
----
-35
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT ALL + CASE 61 WHEN - 4 * + 5 - MIN( DISTINCT 67 ) * + - MAX( - - ( 43 ) ) THEN NULL WHEN 56 THEN 12 + - AVG ( - ( - + 77 ) ) END - 37 * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL + CASE 61 WHEN - 4 * + 5 - MIN ( DISTINCT 67 ) * + - MAX ( - - ( 43 ) ) THEN NULL WHEN 56 THEN 12 + - AVG ( - ( - + 77 ) ) END - 37 * - 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT 74 - MAX( ALL + 7 )
----
67

skipif mysql # not compatible
query I rowsort label-6588
SELECT 74 - MAX ( ALL + 7 )
----
67

query II rowsort
SELECT - 4 * - 74, 77 AS col0
----
296
77

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

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

query II rowsort
SELECT ALL - - 52 * - 21 AS col0, - 85 col1
----
-1092
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT DISTINCT + - SUM( DISTINCT 44 ) - + + 84
----
-128

skipif mysql # not compatible
query I rowsort label-6592
SELECT DISTINCT + - SUM ( DISTINCT 44 ) - + + 84
----
-128

query I rowsort
SELECT + 97 - 9 * - + 1 * + 67 * 60
----
36277

onlyif mysql # aggregate syntax: 
query II rowsort label-6594
SELECT ALL 36 * - ( 16 ) + ( + 98 ) + + 11 + - + NULLIF ( 64, + COUNT( * ) ) AS col0, - 92
----
-531
-92

skipif mysql # not compatible
query II rowsort label-6594
SELECT ALL 36 * - ( 16 ) + ( + 98 ) + + 11 + - + NULLIF ( 64, + COUNT ( * ) ) AS col0, - 92
----
-531
-92

query II rowsort
SELECT 20 * 8 AS col0, - 19 AS col0
----
160
-19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT 23 + + + 73 + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-6597
SELECT 23 + + + 73 + + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT MIN( ALL + 91 ) + - 98 - - MAX( 37 ) * + - 16
----
-599

skipif mysql # not compatible
query I rowsort label-6598
SELECT MIN ( ALL + 91 ) + - 98 - - MAX ( 37 ) * + - 16
----
-599

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6599
SELECT 90 * + CAST( 66 AS DECIMAL ) * + 80 + + 1 * - NULLIF ( - + 84, + - 85 - - COUNT( * ) ) / - + 51 * - ( - 23 ) + 70 + + 47 + 67 - + NULLIF ( + 60, 45 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6599
SELECT 90 * + CAST ( 66 AS REAL ) * + 80 + + 1 * - NULLIF ( - + 84, + - 85 - - COUNT ( * ) ) / - + 51 * - ( - 23 ) + 70 + + 47 + 67 - + NULLIF ( + 60, 45 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT 10 * - SUM( DISTINCT 94 )
----
-940

skipif mysql # not compatible
query I rowsort label-6600
SELECT 10 * - SUM ( DISTINCT 94 )
----
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT DISTINCT + 33 * 86 + - 54 + - ( + + 9 ) * SUM( - 36 ) + - - 6 AS col2
----
3114

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT + 33 * 86 + - 54 + - ( + + 9 ) * SUM ( - 36 ) + - - 6 AS col2
----
3114

query I rowsort
SELECT DISTINCT 64 * 16
----
1024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6603
SELECT DISTINCT + COUNT( * ) * + 90 * - - 83 + CAST( NULL AS SIGNED ) + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-6603
SELECT DISTINCT + COUNT ( * ) * + 90 * - - 83 + CAST ( NULL AS INTEGER ) + 96
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6604
SELECT CAST( NULL AS DECIMAL ) + + 77 + - 73 + AVG ( + - 71 ) / + 53 * 10 + - CAST( NULL AS SIGNED ) / + AVG ( ALL 38 ) * + 79 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6604
SELECT CAST ( NULL AS REAL ) + + 77 + - 73 + AVG ( + - 71 ) / + 53 * 10 + - CAST ( NULL AS INTEGER ) / + AVG ( ALL 38 ) * + 79 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT COUNT( - 52 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6605
SELECT COUNT ( - 52 ) AS col0
----
1

query I rowsort
SELECT ALL + 7 * - + 77 + - 31 + - ( - 31 ) AS col0
----
-539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6607
SELECT ALL + CAST( NULL AS SIGNED ) * + 28 + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL + CAST ( NULL AS INTEGER ) * + 28 + - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT + COALESCE ( - COUNT( * ), + - 24 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6608
SELECT + COALESCE ( - COUNT ( * ), + - 24 ) AS col2
----
-1

query I rowsort
SELECT 46 * - 76 + + 98 * + 29 * 68
----
189760

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT - COUNT( * ) + + 32 + - 95 col2
----
-64

skipif mysql # not compatible
query I rowsort label-6611
SELECT - COUNT ( * ) + + 32 + - 95 col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT MIN( 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6612
SELECT MIN ( 5 ) AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6613
SELECT ALL + 47 + + 2 DIV + 66 * - 40 * - 76
----
47

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL + 47 + + 2 / + 66 * - 40 * - 76
----
47

query I rowsort
SELECT - + 17 * 31
----
-527

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT ALL COUNT( * ) * + 38 - + - 53 + - 27 col0
----
64

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL COUNT ( * ) * + 38 - + - 53 + - 27 col0
----
64

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6618
SELECT + 9 * - - 76 - + + 63 + 3 * CAST( - COUNT( * ) AS SIGNED ) AS col2
----
618

skipif mysql # not compatible
query I rowsort label-6618
SELECT + 9 * - - 76 - + + 63 + 3 * CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
618

query I rowsort
SELECT - 79 * - + 33 * - 63 * + + 48 AS col1
----
-7883568

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT + 96 * - 23 + + COUNT( * ) + ( 89 ) - + MIN( DISTINCT - ( + - ( + 24 ) ) )
----
-2142

skipif mysql # not compatible
query I rowsort label-6620
SELECT + 96 * - 23 + + COUNT ( * ) + ( 89 ) - + MIN ( DISTINCT - ( + - ( + 24 ) ) )
----
-2142

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6621
SELECT - - CAST( NULL AS DECIMAL ) - - 95 + + 9 + - 32 + + + 15 * - - CAST( NULL AS SIGNED ) - + - 34 * - 13 * - - ( + AVG ( + 99 ) ) + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6621
SELECT - - CAST ( NULL AS REAL ) - - 95 + + 9 + - 32 + + + 15 * - - CAST ( NULL AS INTEGER ) - + - 34 * - 13 * - - ( + AVG ( + 99 ) ) + - 43
----
NULL

query I rowsort
SELECT - 92 * - - 39 * - 70
----
251160

query I rowsort
SELECT - ( - + 91 ) + + - 99
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT - + COUNT( 14 ) + + 53 * - 87 AS col0
----
-4612

skipif mysql # not compatible
query I rowsort label-6624
SELECT - + COUNT ( 14 ) + + 53 * - 87 AS col0
----
-4612

query I rowsort
SELECT - + NULLIF ( + 39, + ( - 72 ) + 76 ) * - 50 col1
----
1950

query I rowsort
SELECT - - 99 + + 37
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6627
SELECT ALL - 88 * - CAST( + 66 AS SIGNED ) * - 87 + - MAX( ALL 57 ) + - 34
----
-505387

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL - 88 * - CAST ( + 66 AS INTEGER ) * - 87 + - MAX ( ALL 57 ) + - 34
----
-505387

onlyif mysql # aggregate syntax: 
query II rowsort label-6628
SELECT DISTINCT 55 AS col2, - 24 + 33 + 44 * - + COUNT( * ) * - - 94
----
55
-4127

skipif mysql # not compatible
query II rowsort label-6628
SELECT DISTINCT 55 AS col2, - 24 + 33 + 44 * - + COUNT ( * ) * - - 94
----
55
-4127

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

skipif mysql # not compatible
query I rowsort label-6629
SELECT - + 55 * - COUNT ( DISTINCT + 1 ) AS col2
----
55

query I rowsort
SELECT - 95 + - 74 AS col2
----
-169

onlyif mysql # aggregate syntax: 
query II rowsort label-6631
SELECT ALL + COUNT( * ) * 59 * + 65 col2, - 17
----
3835
-17

skipif mysql # not compatible
query II rowsort label-6631
SELECT ALL + COUNT ( * ) * 59 * + 65 col2, - 17
----
3835
-17

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

query I rowsort
SELECT + + 58 + ( + - 54 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT - - COUNT( * ) + - 41
----
-40

skipif mysql # not compatible
query I rowsort label-6634
SELECT - - COUNT ( * ) + - 41
----
-40

query I rowsort
SELECT + 29 + 15 AS col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6636
SELECT ALL 11 + + 40, - 47 - - COUNT( DISTINCT 2 ) DIV - COUNT( * ) AS col1
----
51
-48

skipif mysql # not compatible
query II rowsort label-6636
SELECT ALL 11 + + 40, - 47 - - COUNT ( DISTINCT 2 ) / - COUNT ( * ) AS col1
----
51
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT ALL COALESCE ( + - 11, - 25 + 21 - - + 96 + + 45 + - 31 + 39 * - 79 + - 41 - - 10 * + 83 * - 99 * - - 23 * + + NULLIF ( 65, + 51 ) * COUNT( * ) ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-6637
SELECT ALL COALESCE ( + - 11, - 25 + 21 - - + 96 + + 45 + - 31 + 39 * - 79 + - 41 - - 10 * + 83 * - 99 * - - 23 * + + NULLIF ( 65, + 51 ) * COUNT ( * ) ) col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT ALL 5 / - CASE + + 17 WHEN + 9 THEN - + 11 + - COUNT( * ) * - 62 WHEN - ( NULLIF ( + 27, - + 38 ) ) THEN + SUM( - - 65 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL 5 / - CASE + + 17 WHEN + 9 THEN - + 11 + - COUNT ( * ) * - 62 WHEN - ( NULLIF ( + 27, - + 38 ) ) THEN + SUM ( - - 65 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT - 33 * COUNT( * ) + + CASE 70 WHEN - 99 THEN + 58 + - 99 ELSE NULL END * 26 * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6639
SELECT - 33 * COUNT ( * ) + + CASE 70 WHEN - 99 THEN + 58 + - 99 ELSE NULL END * 26 * 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6640
SELECT DISTINCT - COUNT( * ) DIV + ( - 57 ) + + + 15 * 4 DIV 35 - - 4 DIV + - MIN( ALL + CAST( - - 43 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-6640
SELECT DISTINCT - COUNT ( * ) / + ( - 57 ) + + + 15 * 4 / 35 - - 4 / + - MIN ( ALL + CAST ( - - 43 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT + NULLIF ( - 10, + - COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-6641
SELECT + NULLIF ( - 10, + - COUNT ( * ) )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6642
SELECT + COUNT( * ) DIV - + ( - NULLIF ( + COALESCE ( 57, + 1, + - ( - - 71 ) ), - - 53 DIV - 38 * + - ( - + SUM( ALL - - 60 ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-6642
SELECT + COUNT ( * ) / - + ( - NULLIF ( + COALESCE ( 57, + 1, + - ( - - 71 ) ), - - 53 / - 38 * + - ( - + SUM ( ALL - - 60 ) ) ) )
----
0

query I rowsort
SELECT - 57 * + 99 * 7 * - + 22 AS col2
----
869022

query II rowsort
SELECT ( 70 ), 35 AS col0
----
70
35

query I rowsort
SELECT - 74 + - 1
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6646
SELECT + MIN( - 97 ), - CASE + 1 WHEN + + COUNT( ALL + - 99 ) * 52 * - + 84 THEN + 98 WHEN CAST( NULL AS SIGNED ) * SUM( + 25 ) * 48 + - 83 * - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) - ( + ( - 9 ) ) * - 84 THEN + 16 ELSE - 20 + - 50 * + 71 END * + 27 + 87 AS col0
----
-97
96477

skipif mysql # not compatible
query II rowsort label-6646
SELECT + MIN ( - 97 ), - CASE + 1 WHEN + + COUNT ( ALL + - 99 ) * 52 * - + 84 THEN + 98 WHEN CAST ( NULL AS INTEGER ) * SUM ( + 25 ) * 48 + - 83 * - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) - ( + ( - 9 ) ) * - 84 THEN + 16 ELSE - 20 + - 50 * + 71 END * + 27 + 87 AS col0
----
-97
96477

query I rowsort
SELECT ALL + 88 * - 52 AS col2
----
-4576

query I rowsort
SELECT + COALESCE ( 18, + 70 + - 24 ) AS col2
----
18

query I rowsort
SELECT + 97 + - 12
----
85

query II rowsort
SELECT + 31 AS col1, + 27 + - - 7 * + - 58
----
31
-379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6651
SELECT - 77 * - COUNT( * ) * - 50 * COALESCE ( + 29, - 27 ) * - 65 + - + COALESCE ( + COALESCE ( + 87, 74 DIV + ( 39 ) ), - + CAST( 66 AS SIGNED ) * 80 * 79, + 67 * + COALESCE ( - MIN( DISTINCT + 45 ), + 45 * - COUNT( * ) + 64 ) )
----
7257163

skipif mysql # not compatible
query I rowsort label-6651
SELECT - 77 * - COUNT ( * ) * - 50 * COALESCE ( + 29, - 27 ) * - 65 + - + COALESCE ( + COALESCE ( + 87, 74 / + ( 39 ) ), - + CAST ( 66 AS INTEGER ) * 80 * 79, + 67 * + COALESCE ( - MIN ( DISTINCT + 45 ), + 45 * - COUNT ( * ) + 64 ) )
----
7257163

query I rowsort
SELECT - - 89 + - 44
----
45

query I rowsort
SELECT DISTINCT + 50 * - 15
----
-750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6654
SELECT ALL - 39 DIV + + COUNT( * ) + CASE + 70 WHEN - 58 + 19 + 12 + - + 25 THEN NULL WHEN - 43 THEN NULL ELSE + 6 END AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL - 39 / + + COUNT ( * ) + CASE + 70 WHEN - 58 + 19 + 12 + - + 25 THEN NULL WHEN - 43 THEN NULL ELSE + 6 END AS col1
----
-33

query II rowsort
SELECT - 66 AS col2, - 81 + + 17
----
-66
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT - CASE WHEN NULL <> COUNT( * ) THEN + 56 ELSE - 33 * - 95 + - 3 END * - + 48
----
150336

skipif mysql # not compatible
query I rowsort label-6656
SELECT - CASE WHEN NULL <> COUNT ( * ) THEN + 56 ELSE - 33 * - 95 + - 3 END * - + 48
----
150336

onlyif mysql # aggregate syntax: 
query II rowsort label-6657
SELECT + + 67 - 79 AS col2, 33 + - 29 * - 42 * + + COUNT( * ) AS col0
----
-12
1251

skipif mysql # not compatible
query II rowsort label-6657
SELECT + + 67 - 79 AS col2, 33 + - 29 * - 42 * + + COUNT ( * ) AS col0
----
-12
1251

query I rowsort
SELECT - 93 * 73 * + 45
----
-305505

query I rowsort
SELECT + - 93 - - 4
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6660
SELECT ALL - - 9 + - + CAST( + 84 AS SIGNED ) * + 86 AS col2
----
-7215

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL - - 9 + - + CAST ( + 84 AS INTEGER ) * + 86 AS col2
----
-7215

query I rowsort
SELECT + + 18 + 44
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT - - ( - 32 ) * - 15 * NULLIF ( + + 85, + + COUNT( * ) / + 86 / + + 36 )
----
40800

skipif mysql # not compatible
query I rowsort label-6662
SELECT - - ( - 32 ) * - 15 * NULLIF ( + + 85, + + COUNT ( * ) / + 86 / + + 36 )
----
40800

onlyif mysql # aggregate syntax: 
query II rowsort label-6663
SELECT ALL MIN( - 42 ), 78 AS col1
----
-42
78

skipif mysql # not compatible
query II rowsort label-6663
SELECT ALL MIN ( - 42 ), 78 AS col1
----
-42
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6664
SELECT ALL 82 + CAST( NULL AS DECIMAL ) * + 31 - + COUNT( * ) * + 15 * - 94 + + ( 23 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL 82 + CAST ( NULL AS REAL ) * + 31 - + COUNT ( * ) * + 15 * - 94 + + ( 23 ) AS col0
----
NULL

query II rowsort
SELECT ALL + 64 + - + 70 AS col1, - 18 + + 68 AS col1
----
-6
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6666
SELECT - 69 - - 94 - - - NULLIF ( + COUNT( * ), - + 50 ) * + 92 DIV 30 col1
----
22

skipif mysql # not compatible
query I rowsort label-6666
SELECT - 69 - - 94 - - - NULLIF ( + COUNT ( * ), - + 50 ) * + 92 / 30 col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT - 57 + + 3 * + COUNT( * ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-6667
SELECT - 57 + + 3 * + COUNT ( * ) col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6668
SELECT 29 + + CAST( - - 62 AS SIGNED ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-6668
SELECT 29 + + CAST ( - - 62 AS INTEGER ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT 65 * - + COUNT( * ) + - 97
----
-162

skipif mysql # not compatible
query I rowsort label-6669
SELECT 65 * - + COUNT ( * ) + - 97
----
-162

query I rowsort
SELECT 74 - + + 47 + - 39 * 14 AS col2
----
-519

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6671
SELECT DISTINCT + ( + - 62 ) * - - CAST( ( - + 39 ) AS SIGNED ), CAST( NULL AS SIGNED ) AS col2
----
2418
NULL

skipif mysql # not compatible
query II rowsort label-6671
SELECT DISTINCT + ( + - 62 ) * - - CAST ( ( - + 39 ) AS INTEGER ), CAST ( NULL AS INTEGER ) AS col2
----
2418
NULL

query I rowsort
SELECT ALL + 29 - - NULLIF ( + + 98, + AVG ( - 69 ) ) AS col1
----
127

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

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

query I rowsort
SELECT 64 + + 81 + + 50 col2
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-6675
SELECT DISTINCT 50 DIV + 65 * + 51 * 56
----
0

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT 50 / + 65 * + 51 * 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT MAX( - + 48 ) * - 90 + COALESCE ( 67, - 87 + - COUNT( * ) ) + + + COUNT( * ) * + 86
----
4473

skipif mysql # not compatible
query I rowsort label-6676
SELECT MAX ( - + 48 ) * - 90 + COALESCE ( 67, - 87 + - COUNT ( * ) ) + + + COUNT ( * ) * + 86
----
4473

query I rowsort
SELECT 80 * + - 5 AS col1
----
-400

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6678
SELECT + + 11 * - CAST( NULL AS DECIMAL ) + - + CASE ( - 60 ) WHEN + 46 * 44 * - 23 * 1 + - - 49 + - 23 + + NULLIF ( - + 55, + + AVG ( 84 ) * 81 ) * + AVG ( DISTINCT 12 ) THEN + 2 WHEN - 0 * 75 THEN NULL WHEN - 89 + - 55 * + 78 THEN NULL ELSE + 93 + + 79 * 10 END * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-6678
SELECT + + 11 * - CAST ( NULL AS REAL ) + - + CASE ( - 60 ) WHEN + 46 * 44 * - 23 * 1 + - - 49 + - 23 + + NULLIF ( - + 55, + + AVG ( 84 ) * 81 ) * + AVG ( DISTINCT 12 ) THEN + 2 WHEN - 0 * 75 THEN NULL WHEN - 89 + - 55 * + 78 THEN NULL ELSE + 93 + + 79 * 10 END * + 17
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6679
SELECT COALESCE ( 47, + 93 + + 62 - + + 76 DIV + COUNT( * ) DIV - 88, 77 + + + 57 ) DIV - 47 + - 86 + - 69 DIV + 70 - - 18 * + MAX( ALL 61 )
----
1011

skipif mysql # not compatible
query I rowsort label-6679
SELECT COALESCE ( 47, + 93 + + 62 - + + 76 / + COUNT ( * ) / - 88, 77 + + + 57 ) / - 47 + - 86 + - 69 / + 70 - - 18 * + MAX ( ALL 61 )
----
1011

query I rowsort
SELECT + 74 + + 34 * 70 AS col2
----
2454

query I rowsort
SELECT - 14 * + 41 + 22
----
-552

query I rowsort
SELECT DISTINCT + 10 * + 58
----
580

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT - + COUNT( * ) * + 12 + - SUM( ALL COALESCE ( + 51, 15 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-6683
SELECT - + COUNT ( * ) * + 12 + - SUM ( ALL COALESCE ( + 51, 15 ) )
----
-63

query I rowsort
SELECT ALL + 77 * + 69 + + 66 AS col2
----
5379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6685
SELECT CASE - - 93 WHEN - - CAST( - 38 AS SIGNED ) THEN NULL WHEN + + 47 + + + MAX( ALL - + 22 ) + + 71 + - - 40 / + 63 * CAST( NULL AS SIGNED ) THEN - 87 WHEN - CAST( - - 58 AS SIGNED ) THEN - 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6685
SELECT CASE - - 93 WHEN - - CAST ( - 38 AS INTEGER ) THEN NULL WHEN + + 47 + + + MAX ( ALL - + 22 ) + + 71 + - - 40 / + 63 * CAST ( NULL AS INTEGER ) THEN - 87 WHEN - CAST ( - - 58 AS INTEGER ) THEN - 29 ELSE NULL END
----
NULL

query II rowsort
SELECT ( + 71 ) col2, - 77 AS col2
----
71
-77

query I rowsort
SELECT ALL + 27 + - 82
----
-55

query I rowsort
SELECT + - 81 * - - 36 * - + ( + 26 ) + - 80
----
75736

query I rowsort
SELECT - 30 + + - 45
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT ALL 69 + - MIN( + + 71 )
----
-2

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL 69 + - MIN ( + + 71 )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6691
SELECT ALL 13 + + 62 + ( 42 ) + ( + - 51 ) * + 92 AS col0, COUNT( * ) col0
----
-4575
1

skipif mysql # not compatible
query II rowsort label-6691
SELECT ALL 13 + + 62 + ( 42 ) + ( + - 51 ) * + 92 AS col0, COUNT ( * ) col0
----
-4575
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6692
SELECT 98 + 55 AS col1, CAST( NULL AS SIGNED ) * + 84 * 49 / + - COUNT( * )
----
153
NULL

skipif mysql # not compatible
query II rowsort label-6692
SELECT 98 + 55 AS col1, CAST ( NULL AS INTEGER ) * + 84 * 49 / + - COUNT ( * )
----
153
NULL

query I rowsort
SELECT - + 13 col1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6694
SELECT DISTINCT 41 + + COUNT( * ) DIV COALESCE ( - 89, - 6, + 60 ) + 17 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-6694
SELECT DISTINCT 41 + + COUNT ( * ) / COALESCE ( - 89, - 6, + 60 ) + 17 AS col0
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-6695
SELECT 39 + + 68 DIV - - 50, + 27 AS col2
----
40
27

skipif mysql # not compatible
query II rowsort label-6695
SELECT 39 + + 68 / - - 50, + 27 AS col2
----
40
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT ALL 76 + - 77 * 6 + + 57 + 49 + 49 + 2 * + 89 * - - MIN( - - 23 ) * - - COUNT( * ) AS col0
----
3863

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL 76 + - 77 * 6 + + 57 + 49 + 49 + 2 * + 89 * - - MIN ( - - 23 ) * - - COUNT ( * ) AS col0
----
3863

query I rowsort
SELECT 10 * - + 56 AS col0
----
-560

query II rowsort
SELECT - 19, 51 * 70 AS col2
----
-19
3570

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT 48 + + 42 + + MIN( - ( + 76 ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-6699
SELECT 48 + + 42 + + MIN ( - ( + 76 ) ) AS col1
----
14

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

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

query I rowsort
SELECT ALL ( - 10 ) * - 18 AS col0
----
180

query I rowsort
SELECT 64 + + 72 AS col1
----
136

query I rowsort
SELECT 35 * + CASE - - 7 WHEN - - 19 THEN 16 WHEN 92 + - 35 THEN - 86 * + 2 + + - COALESCE ( 80, 64 + - + 94 ) + + - 52 - - 6 * - + 86 * - - 19 + - 71 / 17 END AS col2
----
NULL

query I rowsort
SELECT 74 + + 57
----
131

query I rowsort
SELECT ALL ( 57 ) * + 53
----
3021

onlyif mysql # DIV for integer division: 
query II rowsort label-6706
SELECT + 47 AS col1, 60 DIV - 96
----
47
0

skipif mysql # not compatible
query II rowsort label-6706
SELECT + 47 AS col1, 60 / - 96
----
47
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6707
SELECT ALL - 97 - + 88 - ( ( + ( 38 ) ) ) DIV - 82 * + - 33, + 72 col0
----
-185
72

skipif mysql # not compatible
query II rowsort label-6707
SELECT ALL - 97 - + 88 - ( ( + ( 38 ) ) ) / - 82 * + - 33, + 72 col0
----
-185
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT MIN( 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-6708
SELECT MIN ( 42 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT 97 * + 19 - + SUM( - 27 )
----
1870

skipif mysql # not compatible
query I rowsort label-6709
SELECT 97 * + 19 - + SUM ( - 27 )
----
1870

query II rowsort
SELECT 89 * + ( - + 26 ), - 34 * 58 * - + 16 AS col0
----
-2314
31552

query I rowsort
SELECT ALL - 25 * - 79
----
1975

onlyif mysql # aggregate syntax: 
query II rowsort label-6712
SELECT COUNT( * ), 16 * + ( - - 54 ) + 82 AS col2
----
1
946

skipif mysql # not compatible
query II rowsort label-6712
SELECT COUNT ( * ), 16 * + ( - - 54 ) + 82 AS col2
----
1
946

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6713
SELECT - 54 + - + 91 * - + CAST( - 56 AS SIGNED ) * - + SUM( DISTINCT - 89 ) + + 88 + + 74 col2
----
-453436

skipif mysql # not compatible
query I rowsort label-6713
SELECT - 54 + - + 91 * - + CAST ( - 56 AS INTEGER ) * - + SUM ( DISTINCT - 89 ) + + 88 + + 74 col2
----
-453436

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT DISTINCT - + NULLIF ( + - 28, - + CASE - + 79 WHEN - COUNT( * ) * + 47 / + - 21 * + 99 THEN 24 WHEN + 37 THEN NULL WHEN - 38 THEN + 27 * + + 22 + + - ( + 81 ) * - 81 + - 27 + - - 59 * 78 END + - 83 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6714
SELECT DISTINCT - + NULLIF ( + - 28, - + CASE - + 79 WHEN - COUNT ( * ) * + 47 / + - 21 * + 99 THEN 24 WHEN + 37 THEN NULL WHEN - 38 THEN + 27 * + + 22 + + - ( + 81 ) * - 81 + - 27 + - - 59 * 78 END + - 83 ) AS col1
----
28

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6716
SELECT ALL - ( + 55 ) * - COUNT( * ) * + - COUNT( * ) AS col1, COALESCE ( 48, + 75 + + 2 )
----
-55
48

skipif mysql # not compatible
query II rowsort label-6716
SELECT ALL - ( + 55 ) * - COUNT ( * ) * + - COUNT ( * ) AS col1, COALESCE ( 48, + 75 + + 2 )
----
-55
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6717
SELECT + 21 + COUNT( * ) + - 21 DIV + 91, MAX( + + 45 ) AS col1
----
22
45

skipif mysql # not compatible
query II rowsort label-6717
SELECT + 21 + COUNT ( * ) + - 21 / + 91, MAX ( + + 45 ) AS col1
----
22
45

query I rowsort
SELECT 64 * 80
----
5120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6719
SELECT + 48 * CASE NULLIF ( - - MIN( 45 ), + 11 ) WHEN - 70 THEN + + 78 WHEN + 91 - + 53 + 83 + + + 30 THEN - 11 * - + 12 DIV + + 98 ELSE + 10 + 47 + 44 + NULLIF ( 58, 76 * + 53 ) END AS col1
----
7632

skipif mysql # not compatible
query I rowsort label-6719
SELECT + 48 * CASE NULLIF ( - - MIN ( 45 ), + 11 ) WHEN - 70 THEN + + 78 WHEN + 91 - + 53 + 83 + + + 30 THEN - 11 * - + 12 / + + 98 ELSE + 10 + 47 + 44 + NULLIF ( 58, 76 * + 53 ) END AS col1
----
7632

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT ALL - 56 + - COUNT( * ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL - 56 + - COUNT ( * ) AS col2
----
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT 33 + + 32 - + NULLIF ( - 0, + 70 / 93 * - - ( + - ( MIN( + 94 ) ) ) * + 80 + + COUNT( * ) ) * + ( + + 66 )
----
65

skipif mysql # not compatible
query I rowsort label-6722
SELECT 33 + + 32 - + NULLIF ( - 0, + 70 / 93 * - - ( + - ( MIN ( + 94 ) ) ) * + 80 + + COUNT ( * ) ) * + ( + + 66 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT DISTINCT - COUNT( DISTINCT + - 99 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6723
SELECT DISTINCT - COUNT ( DISTINCT + - 99 ) col2
----
-1

query I rowsort
SELECT ALL - 4 + + 20 AS col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6725
SELECT - + CAST( - 38 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-6725
SELECT - + CAST ( - 38 AS INTEGER )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-6726
SELECT DISTINCT 35 * + - NULLIF ( - - 34, + 7 ) AS col0, + ( + MAX( + 31 ) )
----
-1190
31

skipif mysql # not compatible
query II rowsort label-6726
SELECT DISTINCT 35 * + - NULLIF ( - - 34, + 7 ) AS col0, + ( + MAX ( + 31 ) )
----
-1190
31

query I rowsort
SELECT - 58 - + 7
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-6728
SELECT - 34 + - 60, COUNT( + - 15 ) AS col2
----
-94
1

skipif mysql # not compatible
query II rowsort label-6728
SELECT - 34 + - 60, COUNT ( + - 15 ) AS col2
----
-94
1

query I rowsort
SELECT + 10 + + 13 AS col0
----
23

query I rowsort
SELECT ALL COALESCE ( 21, + 76 ) AS col1
----
21

query I rowsort
SELECT DISTINCT 51 - + 16
----
35

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

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

query I rowsort
SELECT + 80 - - - 54 * + 94 AS col0
----
-4996

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6734
SELECT ALL MAX( ALL - + 22 ) DIV - 42 + - 67 - - 24 * + 72 * + 97 * - 85 AS col2
----
-14247427

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL MAX ( ALL - + 22 ) / - 42 + - 67 - - 24 * + 72 * + 97 * - 85 AS col2
----
-14247427

query I rowsort
SELECT + 98 * - 58 AS col0
----
-5684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6736
SELECT + ( + + CAST( NULL AS SIGNED ) ) + 62 - + 28 - - + 3 + - - 60 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6736
SELECT + ( + + CAST ( NULL AS INTEGER ) ) + 62 - + 28 - - + 3 + - - 60 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT + MAX( + 9 ) * - MAX( DISTINCT + 71 ) AS col0
----
-639

skipif mysql # not compatible
query I rowsort label-6737
SELECT + MAX ( + 9 ) * - MAX ( DISTINCT + 71 ) AS col0
----
-639

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT + 44 + - 0 + MAX( + 91 ) - - 86 * - + 38 + 78 * - 86 * + 92 AS col0
----
-620269

skipif mysql # not compatible
query I rowsort label-6738
SELECT + 44 + - 0 + MAX ( + 91 ) - - 86 * - + 38 + 78 * - 86 * + 92 AS col0
----
-620269

onlyif mysql # aggregate syntax: 
query II rowsort label-6739
SELECT + 20 + - + COUNT( * ) + - - 93 * 4 AS col1, COUNT( * ) + - + CASE - 83 WHEN - - 94 THEN - COUNT( * ) * + ( - 67 ) + 76 END AS col1
----
391
NULL

skipif mysql # not compatible
query II rowsort label-6739
SELECT + 20 + - + COUNT ( * ) + - - 93 * 4 AS col1, COUNT ( * ) + - + CASE - 83 WHEN - - 94 THEN - COUNT ( * ) * + ( - 67 ) + 76 END AS col1
----
391
NULL

query I rowsort
SELECT - 26 - + + 15 col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT ALL + SUM( DISTINCT 65 ) * - ( 10 ) + - - COUNT( * ) + + 19
----
-630

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL + SUM ( DISTINCT 65 ) * - ( 10 ) + - - COUNT ( * ) + + 19
----
-630

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

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

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

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

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

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

query I rowsort
SELECT 82 * + 79 + + 52 + + + 76 * - + 52 * + - 49 AS col1
----
200178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6746
SELECT ALL 65 * + 97 * - - 64 + 81 * - + 90 DIV - COUNT( * )
----
410810

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL 65 * + 97 * - - 64 + 81 * - + 90 / - COUNT ( * )
----
410810

onlyif mysql # DIV for integer division: 
query I rowsort label-6747
SELECT + ( - 8 ) DIV 29 + - + 27
----
-27

skipif mysql # not compatible
query I rowsort label-6747
SELECT + ( - 8 ) / 29 + - + 27
----
-27

query I rowsort
SELECT + 89 * + 24 AS col1
----
2136

query I rowsort
SELECT - + ( + 76 ) + - 68
----
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-6750
SELECT - + 0 * - - 87 DIV + 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6750
SELECT - + 0 * - - 87 / + 34 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT DISTINCT + + 30 * COUNT( * ) + - 12 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT + + 30 * COUNT ( * ) + - 12 AS col2
----
18

query I rowsort
SELECT - + 56 * 44
----
-2464

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT + 82 * + COUNT( DISTINCT - + 1 ) + - 77
----
5

skipif mysql # not compatible
query I rowsort label-6753
SELECT + 82 * + COUNT ( DISTINCT - + 1 ) + - 77
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6754
SELECT - 48 + + 71 + + - 99 * 56 col1, ( + MIN( 44 ) ) AS col1
----
-5521
44

skipif mysql # not compatible
query II rowsort label-6754
SELECT - 48 + + 71 + + - 99 * 56 col1, ( + MIN ( 44 ) ) AS col1
----
-5521
44

query I rowsort
SELECT - 92 * - 45 AS col1
----
4140

query I rowsort
SELECT - ( + - 7 ) + - 68 AS col0
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-6757
SELECT ALL + 84 DIV - NULLIF ( 20, 23 )
----
-4

skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL + 84 / - NULLIF ( 20, 23 )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6758
SELECT - 58 + ( + - 57 ) - + 43 + + 60 + COUNT( * ) * COUNT( * ) - + - COUNT( * ) + + + CAST( NULL AS SIGNED ) + + - COUNT( * ) * - 68 * - 16 + + 34 + + 48 * - + 32 * - 57 - + + 85 + - - 32 * + 80 * 91 + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6758
SELECT - 58 + ( + - 57 ) - + 43 + + 60 + COUNT ( * ) * COUNT ( * ) - + - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) * - 68 * - 16 + + 34 + + 48 * - + 32 * - 57 - + + 85 + - - 32 * + 80 * 91 + + 11
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6759
SELECT - SUM( ALL 91 ) DIV + + CAST( + - 89 AS SIGNED ) + + - COALESCE ( - - 12, - 55 )
----
-11

skipif mysql # not compatible
query I rowsort label-6759
SELECT - SUM ( ALL 91 ) / + + CAST ( + - 89 AS INTEGER ) + + - COALESCE ( - - 12, - 55 )
----
-11

query II rowsort
SELECT 32 * 20 + - + 97 col0, 45
----
543
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT + 40 - + 62 - - COUNT( * ) * 18 * 51 AS col1
----
896

skipif mysql # not compatible
query I rowsort label-6761
SELECT + 40 - + 62 - - COUNT ( * ) * 18 * 51 AS col1
----
896

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

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL + 33 / - - COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT DISTINCT - 42 * + CASE + 42 WHEN - 59 * - 35 THEN NULL WHEN + 65 + COUNT( * ) THEN + - 44 / - COUNT( * ) / - 22 + 29 * + + 93 * 43 + 33 + ( + 42 ) + ( + - 73 ) * 77 + 50 * ( - 13 ) ELSE NULL END * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6763
SELECT DISTINCT - 42 * + CASE + 42 WHEN - 59 * - 35 THEN NULL WHEN + 65 + COUNT ( * ) THEN + - 44 / - COUNT ( * ) / - 22 + 29 * + + 93 * 43 + 33 + ( + 42 ) + ( + - 73 ) * 77 + 50 * ( - 13 ) ELSE NULL END * + 26
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6764
SELECT - 4 + - + COUNT( * ) DIV - SUM( DISTINCT 81 ) * - + 16 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-6764
SELECT - 4 + - + COUNT ( * ) / - SUM ( DISTINCT 81 ) * - + 16 AS col1
----
-4

query I rowsort
SELECT - CASE + CASE 88 WHEN + + 90 + + 22 THEN + - 72 ELSE NULL END WHEN - 12 THEN NULL ELSE + 83 END + 65
----
-18

query I rowsort
SELECT + 57 + - + 67 - - 23 col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT + SUM( + 29 ) * + + MIN( ALL - 25 )
----
-725

skipif mysql # not compatible
query I rowsort label-6767
SELECT + SUM ( + 29 ) * + + MIN ( ALL - 25 )
----
-725

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT DISTINCT - 25 * - ( + MIN( DISTINCT - 99 ) ) * - + 4 * + + 65 AS col1
----
643500

skipif mysql # not compatible
query I rowsort label-6768
SELECT DISTINCT - 25 * - ( + MIN ( DISTINCT - 99 ) ) * - + 4 * + + 65 AS col1
----
643500

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT - MIN( - 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-6769
SELECT - MIN ( - 86 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT + NULLIF ( + COUNT( - 70 ), + 96 ) + - 16 + 96
----
81

skipif mysql # not compatible
query I rowsort label-6770
SELECT + NULLIF ( + COUNT ( - 70 ), + 96 ) + - 16 + 96
----
81

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

skipif mysql # not compatible
query I rowsort label-6771
SELECT - COUNT ( * ) * + SUM ( ALL - ( 7 ) ) AS col0
----
7

query II rowsort
SELECT 50, ( + 31 ) + + 16 col2
----
50
47

query I rowsort
SELECT ALL - 71 + 2 * + + 9
----
-53

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

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

query I rowsort
SELECT DISTINCT 26 + 20
----
46

query I rowsort
SELECT DISTINCT - 53 + - + 49 AS col1
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6777
SELECT ALL + 92 + - CAST( - - 24 AS SIGNED ) * + + 38 * + - 77 * + CASE CAST( NULL AS SIGNED ) WHEN - + MIN( - - 42 ) THEN + CASE + + 5 WHEN 93 / 91 + + 91 / 46 * + SUM( DISTINCT + ( 69 ) ) + 7 + + 68 THEN NULL ELSE COALESCE ( 22, - ( 45 ) + 46 ) * ( ( - 45 ) / - 41 ) - CAST( NULL AS SIGNED ) END END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL + 92 + - CAST ( - - 24 AS INTEGER ) * + + 38 * + - 77 * + CASE CAST ( NULL AS INTEGER ) WHEN - + MIN ( - - 42 ) THEN + CASE + + 5 WHEN 93 / 91 + + 91 / 46 * + SUM ( DISTINCT + ( 69 ) ) + 7 + + 68 THEN NULL ELSE COALESCE ( 22, - ( 45 ) + 46 ) * ( ( - 45 ) / - 41 ) - CAST ( NULL AS INTEGER ) END END col2
----
NULL

query II rowsort
SELECT - + 70 AS col0, 70 * - - 26 AS col1
----
-70
1820

query I rowsort
SELECT DISTINCT - 23 * - 36 * - 33
----
-27324

onlyif mysql # DIV for integer division: 
query I rowsort label-6780
SELECT + - 84 DIV - 15
----
5

skipif mysql # not compatible
query I rowsort label-6780
SELECT + - 84 / - 15
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6781
SELECT COUNT( * ) * + - 47 - + COUNT( * ) + - 36 DIV ( - - 64 ) col1
----
-48

skipif mysql # not compatible
query I rowsort label-6781
SELECT COUNT ( * ) * + - 47 - + COUNT ( * ) + - 36 / ( - - 64 ) col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6782
SELECT + + NULLIF ( - NULLIF ( - + CASE 31 WHEN - 18 * + 50 / 58 - - 7 + - 4 + 96 + + 54 * + 30 * + - COUNT( * ) + + 91 + + CAST( + COUNT( * ) AS SIGNED ) * + + 53 THEN - + COUNT( - 59 ) WHEN + 56 THEN NULL ELSE NULL END, + 70 ), ( NULLIF ( NULLIF ( - COUNT( DISTINCT 56 ), + ( CASE CASE + 13 WHEN 98 - 91 THEN 99 + + ( + 44 ) * 59 END WHEN + 15 / - 49 + CASE - COUNT( DISTINCT + 94 ) WHEN - 47 THEN ( COUNT( * ) ) END * - CAST( NULL AS SIGNED ) THEN 89 END ) + CASE - 28 WHEN - COUNT( * ) THEN + 0 WHEN - 1 + 54 THEN NULL ELSE - 41 * 72 + - 25 END ), 5 / 30 + COUNT( * ) ) ) * - COUNT( * ) - 13 ) * + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6782
SELECT + + NULLIF ( - NULLIF ( - + CASE 31 WHEN - 18 * + 50 / 58 - - 7 + - 4 + 96 + + 54 * + 30 * + - COUNT ( * ) + + 91 + + CAST ( + COUNT ( * ) AS INTEGER ) * + + 53 THEN - + COUNT ( - 59 ) WHEN + 56 THEN NULL ELSE NULL END, + 70 ), ( NULLIF ( NULLIF ( - COUNT ( DISTINCT 56 ), + ( CASE CASE + 13 WHEN 98 - 91 THEN 99 + + ( + 44 ) * 59 END WHEN + 15 / - 49 + CASE - COUNT ( DISTINCT + 94 ) WHEN - 47 THEN ( COUNT ( * ) ) END * - CAST ( NULL AS INTEGER ) THEN 89 END ) + CASE - 28 WHEN - COUNT ( * ) THEN + 0 WHEN - 1 + 54 THEN NULL ELSE - 41 * 72 + - 25 END ), 5 / 30 + COUNT ( * ) ) ) * - COUNT ( * ) - 13 ) * + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT + + 4 + 87 AS col0
----
91

query I rowsort
SELECT - + 54 * - 5 + + 12
----
282

onlyif mysql # DIV for integer division: 
query II rowsort label-6785
SELECT ALL - 90 DIV 9 - + 33 + + 99 * - - 65 AS col2, 55 col1
----
6392
55

skipif mysql # not compatible
query II rowsort label-6785
SELECT ALL - 90 / 9 - + 33 + + 99 * - - 65 AS col2, 55 col1
----
6392
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT ( NULLIF ( COUNT( * ), - ( 59 ) + + 27 * - NULLIF ( - 10, 53 * + 47 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6786
SELECT ( NULLIF ( COUNT ( * ), - ( 59 ) + + 27 * - NULLIF ( - 10, 53 * + 47 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT + 79 * - 66 + MIN( - + 10 ) - + 53
----
-5277

skipif mysql # not compatible
query I rowsort label-6787
SELECT + 79 * - 66 + MIN ( - + 10 ) - + 53
----
-5277

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6788
SELECT DISTINCT + CAST( NULL AS SIGNED ), 37 AS col0
----
NULL
37

skipif mysql # not compatible
query II rowsort label-6788
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 37 AS col0
----
NULL
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6789
SELECT COUNT( * ) * - 37 + + - 55 * + + 11 * - 29 * + CAST( + - 91 AS SIGNED )
----
-1596632

skipif mysql # not compatible
query I rowsort label-6789
SELECT COUNT ( * ) * - 37 + + - 55 * + + 11 * - 29 * + CAST ( + - 91 AS INTEGER )
----
-1596632

onlyif mysql # DIV for integer division: 
query II rowsort label-6790
SELECT 75, - 65 - 8 DIV - 98 col1
----
75
-65

skipif mysql # not compatible
query II rowsort label-6790
SELECT 75, - 65 - 8 / - 98 col1
----
75
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT ALL + 28 * COALESCE ( + + 52, + - COUNT( * ) ) AS col1
----
1456

skipif mysql # not compatible
query I rowsort label-6791
SELECT ALL + 28 * COALESCE ( + + 52, + - COUNT ( * ) ) AS col1
----
1456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6792
SELECT DISTINCT CASE - - 64 WHEN + - 54 * - 5 THEN - 75 DIV + 28 ELSE 85 * - + 11 * - 54 * + ( 68 ) + - + 54 + + 46 + - SUM( 42 ) END - + + COUNT( ALL + + 70 ) AS col2
----
3433269

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT CASE - - 64 WHEN + - 54 * - 5 THEN - 75 / + 28 ELSE 85 * - + 11 * - 54 * + ( 68 ) + - + 54 + + 46 + - SUM ( 42 ) END - + + COUNT ( ALL + + 70 ) AS col2
----
3433269

query II rowsort
SELECT 48 * + + ( + ( + 89 ) ) AS col1, 73 AS col0
----
4272
73

query I rowsort
SELECT ALL - COALESCE ( + - 43, + - 48 )
----
43

query II rowsort
SELECT - 69 AS col0, + COALESCE ( 71, 28 - 54 + - + 8 ) AS col0
----
-69
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6796
SELECT ALL 22 col0, CAST( - 68 AS SIGNED ) * - 12, - 51 * - + 25 + 92 + 13 col1
----
22
816
1380

skipif mysql # not compatible
query III rowsort label-6796
SELECT ALL 22 col0, CAST ( - 68 AS INTEGER ) * - 12, - 51 * - + 25 + 92 + 13 col1
----
22
816
1380

query II rowsort
SELECT 17, - 36 * + 99 AS col0
----
17
-3564

query I rowsort
SELECT 73 * - + 78 * + 65
----
-370110

onlyif mysql # DIV for integer division: 
query I rowsort label-6799
SELECT 80 DIV - 19
----
-4

skipif mysql # not compatible
query I rowsort label-6799
SELECT 80 / - 19
----
-4

query I rowsort
SELECT 54 + - - NULLIF ( + + 14, - - 98 ) AS col2
----
68

query II rowsort
SELECT - 36 AS col2, 40
----
-36
40

query II rowsort
SELECT 46 AS col0, - 82 + - - 46
----
46
-36

query I rowsort
SELECT ALL + 66 * - - 24 * 89
----
140976

onlyif mysql # DIV for integer division: 
query I rowsort label-6804
SELECT 70 DIV 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6804
SELECT 70 / 87 AS col2
----
0

query I rowsort
SELECT ALL - 39 + + 1 * - 23 * + 39 * + 90 AS col0
----
-80769

onlyif mysql # DIV for integer division: 
query I rowsort label-6806
SELECT DISTINCT + 84 DIV + + 88
----
0

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT + 84 / + + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT DISTINCT - 93 + + + SUM( ALL + - 19 ) + SUM( DISTINCT + + 9 ) + + - 18 * + + COALESCE ( - 98, CASE + 36 WHEN + 68 THEN ( - 6 ) ELSE - 87 + + + 28 + - 33 + ( - ( COUNT( * ) ) ) + - + 71 END, - + 9, + 57 + 24 * - COALESCE ( + 96, 63 + 12 ) ) * - NULLIF ( COUNT( * ), + MAX( DISTINCT - 53 ) + 42 * 82 )
----
-1867

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT - 93 + + + SUM ( ALL + - 19 ) + SUM ( DISTINCT + + 9 ) + + - 18 * + + COALESCE ( - 98, CASE + 36 WHEN + 68 THEN ( - 6 ) ELSE - 87 + + + 28 + - 33 + ( - ( COUNT ( * ) ) ) + - + 71 END, - + 9, + 57 + 24 * - COALESCE ( + 96, 63 + 12 ) ) * - NULLIF ( COUNT ( * ), + MAX ( DISTINCT - 53 ) + 42 * 82 )
----
-1867

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT ALL - NULLIF ( - 80, ( - + 35 ) ) + - MIN( + 4 ) + - - 8 + 96 + + 13 + - - SUM( - 60 ) * + - 14 * - 42 * + + 51 * COUNT( * ) - + 10 * - + 74 AS col2
----
-1798347

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL - NULLIF ( - 80, ( - + 35 ) ) + - MIN ( + 4 ) + - - 8 + 96 + + 13 + - - SUM ( - 60 ) * + - 14 * - 42 * + + 51 * COUNT ( * ) - + 10 * - + 74 AS col2
----
-1798347

query I rowsort
SELECT 89 - + 36 AS col0
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6810
SELECT ALL 2, ( + ( - 8 ) ) DIV - - 6 + - + COUNT( + 98 ) col2
----
2
-2

skipif mysql # not compatible
query II rowsort label-6810
SELECT ALL 2, ( + ( - 8 ) ) / - - 6 + - + COUNT ( + 98 ) col2
----
2
-2

query I rowsort
SELECT DISTINCT + 12 + - 66 AS col2
----
-54

query I rowsort
SELECT 98 - 72
----
26

query II rowsort
SELECT 67 col2, + 54 AS col2
----
67
54

query I rowsort
SELECT DISTINCT + 93 + - + 63 col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6815
SELECT ALL - 35 + - 54 + CASE - COUNT( * ) WHEN - - COUNT( * ) * - 73 DIV 41 THEN - 43 * 72 END AS col1
----
-3185

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL - 35 + - 54 + CASE - COUNT ( * ) WHEN - - COUNT ( * ) * - 73 / 41 THEN - 43 * 72 END AS col1
----
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT ALL + + COALESCE ( + COUNT( + 50 ), - 88 ) + - 8 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL + + COALESCE ( + COUNT ( + 50 ), - 88 ) + - 8 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-6817
SELECT - 96 AS col0, COUNT( * )
----
-96
1

skipif mysql # not compatible
query II rowsort label-6817
SELECT - 96 AS col0, COUNT ( * )
----
-96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT + 58 + CASE 3 WHEN + COUNT( * ) THEN + + ( + NULLIF ( + - COUNT( * ), + + COALESCE ( COUNT( * ), + 60 ) * - 47 + + COUNT( * ) ) ) ELSE - - SUM( + 2 ) * 42 END
----
142

skipif mysql # not compatible
query I rowsort label-6818
SELECT + 58 + CASE 3 WHEN + COUNT ( * ) THEN + + ( + NULLIF ( + - COUNT ( * ), + + COALESCE ( COUNT ( * ), + 60 ) * - 47 + + COUNT ( * ) ) ) ELSE - - SUM ( + 2 ) * 42 END
----
142

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

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

query I rowsort
SELECT ALL 20 * + 73 * - 4
----
-5840

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT ALL 24 - - 97 + - COUNT( * )
----
120

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL 24 - - 97 + - COUNT ( * )
----
120

query II rowsort
SELECT ALL - 31 AS col2, + 61
----
-31
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6823
SELECT DISTINCT - - CASE + CASE + 50 WHEN - 98 THEN - + COALESCE ( 12, + CAST( - COUNT( * ) AS SIGNED ), - + 25 + + - COUNT( * ), + CASE + + 41 WHEN 94 * + + 15 + 34 + + 72 + 1 * 62 + - 72 + + 62 THEN - 78 WHEN COALESCE ( CAST( NULL AS SIGNED ), + 22 / 56 ) THEN NULL ELSE NULL END + + SUM( DISTINCT 65 ) * COUNT( * ) ) WHEN + 38 * - MAX( + 20 ) THEN NULL END WHEN - 97 / + 95 THEN NULL WHEN 0 THEN + 43 WHEN + COUNT( * ) - ( 57 ) THEN 90 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6823
SELECT DISTINCT - - CASE + CASE + 50 WHEN - 98 THEN - + COALESCE ( 12, + CAST ( - COUNT ( * ) AS INTEGER ), - + 25 + + - COUNT ( * ), + CASE + + 41 WHEN 94 * + + 15 + 34 + + 72 + 1 * 62 + - 72 + + 62 THEN - 78 WHEN COALESCE ( CAST ( NULL AS INTEGER ), + 22 / 56 ) THEN NULL ELSE NULL END + + SUM ( DISTINCT 65 ) * COUNT ( * ) ) WHEN + 38 * - MAX ( + 20 ) THEN NULL END WHEN - 97 / + 95 THEN NULL WHEN 0 THEN + 43 WHEN + COUNT ( * ) - ( 57 ) THEN 90 ELSE NULL END
----
NULL

query I rowsort
SELECT - 7 + 9 AS col1
----
2

query I rowsort
SELECT ALL - 28 * + 67
----
-1876

query I rowsort
SELECT ALL + 17 * + 25
----
425

query I rowsort
SELECT ALL 91 - - + 65 col2
----
156

query I rowsort
SELECT ( ( 89 ) ) * - 4 + + 23 AS col2
----
-333

onlyif mysql # DIV for integer division: 
query II rowsort label-6829
SELECT + 74 DIV - - ( - ( - - 70 ) ), - 33 AS col0
----
-1
-33

skipif mysql # not compatible
query II rowsort label-6829
SELECT + 74 / - - ( - ( - - 70 ) ), - 33 AS col0
----
-1
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT MIN( ALL - - 24 ) * + 81 + 81
----
2025

skipif mysql # not compatible
query I rowsort label-6830
SELECT MIN ( ALL - - 24 ) * + 81 + 81
----
2025

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT - SUM( + 2 ) + 0 * 10 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6831
SELECT - SUM ( + 2 ) + 0 * 10 AS col0
----
-2

query II rowsort
SELECT + 87 AS col0, - 86 + - 88
----
87
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT + 57 * + MAX( DISTINCT 90 ) col2
----
5130

skipif mysql # not compatible
query I rowsort label-6833
SELECT + 57 * + MAX ( DISTINCT 90 ) col2
----
5130

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6835
SELECT 90 + - 90 - - 4 DIV 8 + 6
----
6

skipif mysql # not compatible
query I rowsort label-6835
SELECT 90 + - 90 - - 4 / 8 + 6
----
6

query I rowsort
SELECT ALL + 82 * 26 + + - 20 AS col0
----
2112

query I rowsort
SELECT DISTINCT COALESCE ( 0, + 33 ) * - 51 AS col1
----
0

query I rowsort
SELECT 54 + - ( + 81 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6839
SELECT CASE WHEN NOT - 74 IS NOT NULL THEN + CAST( 98 AS SIGNED ) WHEN ( NULL ) IS NULL THEN + 61 END * + CASE + COUNT( * ) WHEN + 29 THEN NULL ELSE COALESCE ( CASE + + 11 WHEN + 65 + + CAST( NULL AS SIGNED ) THEN 81 WHEN + 94 * - 64 * + CAST( + + 73 AS SIGNED ) THEN 49 WHEN + 28 THEN NULL ELSE COUNT( * ) + - 73 END, - 5 ) END AS col1
----
-4392

skipif mysql # not compatible
query I rowsort label-6839
SELECT CASE WHEN NOT - 74 IS NOT NULL THEN + CAST ( 98 AS INTEGER ) WHEN ( NULL ) IS NULL THEN + 61 END * + CASE + COUNT ( * ) WHEN + 29 THEN NULL ELSE COALESCE ( CASE + + 11 WHEN + 65 + + CAST ( NULL AS INTEGER ) THEN 81 WHEN + 94 * - 64 * + CAST ( + + 73 AS INTEGER ) THEN 49 WHEN + 28 THEN NULL ELSE COUNT ( * ) + - 73 END, - 5 ) END AS col1
----
-4392

query I rowsort
SELECT DISTINCT 4 + 70
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6841
SELECT NULLIF ( + 93, - + COUNT( * ) ) * - CAST( - 16 AS SIGNED ) AS col0
----
1488

skipif mysql # not compatible
query I rowsort label-6841
SELECT NULLIF ( + 93, - + COUNT ( * ) ) * - CAST ( - 16 AS INTEGER ) AS col0
----
1488

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6843
SELECT + COUNT( DISTINCT - - 26 ) * - ( 7 ) + + 62 + 12 / CAST( NULL AS SIGNED ) * - + 14 * + 86 / + - 19 + - 6 + - - 40 * - CASE - + COUNT( * ) WHEN - 3 THEN SUM( 94 ) * COUNT( * ) - - 20 + + 69 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6843
SELECT + COUNT ( DISTINCT - - 26 ) * - ( 7 ) + + 62 + 12 / CAST ( NULL AS INTEGER ) * - + 14 * + 86 / + - 19 + - 6 + - - 40 * - CASE - + COUNT ( * ) WHEN - 3 THEN SUM ( 94 ) * COUNT ( * ) - - 20 + + 69 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6844
SELECT 89 + 35 + + + COUNT( * ) + + + 20 DIV + ( COALESCE ( 64, AVG ( DISTINCT - - 59 ) + 62 + + 55 ) ) AS col1
----
125

skipif mysql # not compatible
query I rowsort label-6844
SELECT 89 + 35 + + + COUNT ( * ) + + + 20 / + ( COALESCE ( 64, AVG ( DISTINCT - - 59 ) + 62 + + 55 ) ) AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT ALL 57 * - MIN( 40 ) AS col2
----
-2280

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL 57 * - MIN ( 40 ) AS col2
----
-2280

query I rowsort
SELECT 99 + 87 + - 2 + 49 + - - 37 * 43 AS col1
----
1824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6847
SELECT CAST( 20 AS SIGNED ) * 94 col2
----
1880

skipif mysql # not compatible
query I rowsort label-6847
SELECT CAST ( 20 AS INTEGER ) * 94 col2
----
1880

query II rowsort
SELECT ALL 3 + - 40 AS col1, + 33
----
-37
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6849
SELECT ALL 21 * + 11 AS col2, CASE + 69 WHEN NULLIF ( MAX( 46 ), - - COUNT( * ) + - - 30 ) + 38 - - ( - 35 ) THEN NULL ELSE 49 DIV - 69 - + + 70 - 86 - + 66 END - + + CAST( ( + 51 ) AS SIGNED )
----
231
-273

skipif mysql # not compatible
query II rowsort label-6849
SELECT ALL 21 * + 11 AS col2, CASE + 69 WHEN NULLIF ( MAX ( 46 ), - - COUNT ( * ) + - - 30 ) + 38 - - ( - 35 ) THEN NULL ELSE 49 / - 69 - + + 70 - 86 - + 66 END - + + CAST ( ( + 51 ) AS INTEGER )
----
231
-273

query I rowsort
SELECT ALL 56 * - - 51
----
2856

query I rowsort
SELECT DISTINCT 15 + + 95
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6852
SELECT MAX( DISTINCT 27 ) * - CASE - 69 WHEN - 31 / 38 THEN + - 76 * + + CASE + + 53 WHEN - NULLIF ( + - 89, + - ( + ( + - 17 ) ) * + 54 * 49 - + CASE - COALESCE ( - - 48, 8, 81 ) WHEN 94 THEN NULL ELSE - 2 END / - 40 + - 38 * + 43 ) / - 38 THEN - CAST( NULL AS SIGNED ) ELSE + 59 * ( + 19 ) END + - 7 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT MAX ( DISTINCT 27 ) * - CASE - 69 WHEN - 31 / 38 THEN + - 76 * + + CASE + + 53 WHEN - NULLIF ( + - 89, + - ( + ( + - 17 ) ) * + 54 * 49 - + CASE - COALESCE ( - - 48, 8, 81 ) WHEN 94 THEN NULL ELSE - 2 END / - 40 + - 38 * + 43 ) / - 38 THEN - CAST ( NULL AS INTEGER ) ELSE + 59 * ( + 19 ) END + - 7 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT - 98 * + + 96 * - 13 col0, - 72
----
122304
-72

query I rowsort
SELECT - 38 + - + 21 * - + 15
----
277

query I rowsort
SELECT 33 * - 15
----
-495

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6857
SELECT ALL - + 67 DIV + 53 + + - 25 + 78 * 6 * - 53 AS col0
----
-24830

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL - + 67 / + 53 + + - 25 + 78 * 6 * - 53 AS col0
----
-24830

query I rowsort
SELECT ALL + 49 - - 65 + - 82 * 6 * CASE + ( 18 ) WHEN + 71 + - 57 THEN + 31 WHEN + 61 THEN - 35 END + 70
----
NULL

query I rowsort
SELECT 56 * - 20 - + 91 AS col2
----
-1211

query I rowsort
SELECT DISTINCT + - 54 * - 61 col2
----
3294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6861
SELECT ALL - + 67 * + ( AVG ( ALL CAST( NULL AS SIGNED ) ) ) - - + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL - + 67 * + ( AVG ( ALL CAST ( NULL AS INTEGER ) ) ) - - + 4 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6862
SELECT - - 82 * + COUNT( * ) AS col0, 21
----
82
21

skipif mysql # not compatible
query II rowsort label-6862
SELECT - - 82 * + COUNT ( * ) AS col0, 21
----
82
21

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

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

query I rowsort
SELECT + 8 * + 9 * - 44 - - + 7 AS col1
----
-3161

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

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

query II rowsort
SELECT DISTINCT 38 * - 4, 58 * - 6 AS col1
----
-152
-348

query II rowsort
SELECT ALL + 93 AS col2, 41 AS col0
----
93
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6868
SELECT COUNT( * ) AS col0, CAST( - - 89 AS SIGNED ) AS col0
----
1
89

skipif mysql # not compatible
query II rowsort label-6868
SELECT COUNT ( * ) AS col0, CAST ( - - 89 AS INTEGER ) AS col0
----
1
89

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6870
SELECT ALL 4 * + - CASE 19 WHEN - 26 + + - 61 + + 76 THEN + - 11 WHEN + - 66 THEN NULL ELSE + 86 END + + CASE - 92 WHEN 68 THEN NULL WHEN CAST( + 56 AS DECIMAL ) THEN NULLIF ( + 67, COALESCE ( 48, - - 18 ) ) * - COUNT( DISTINCT - 8 ) * - ( - 45 ) * + 58 WHEN - COUNT( * ) * + 85 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL 4 * + - CASE 19 WHEN - 26 + + - 61 + + 76 THEN + - 11 WHEN + - 66 THEN NULL ELSE + 86 END + + CASE - 92 WHEN 68 THEN NULL WHEN CAST ( + 56 AS REAL ) THEN NULLIF ( + 67, COALESCE ( 48, - - 18 ) ) * - COUNT ( DISTINCT - 8 ) * - ( - 45 ) * + 58 WHEN - COUNT ( * ) * + 85 THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6871
SELECT + 34 DIV 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6871
SELECT + 34 / 98 AS col0
----
0

query I rowsort
SELECT - 45 * + 37 * - 90 AS col0
----
149850

query I rowsort
SELECT + 51 * + 80
----
4080

query I rowsort
SELECT DISTINCT 57 * - - 31
----
1767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6875
SELECT ALL 16 * + - 48 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL 16 * + - 48 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6876
SELECT + SUM ( + 62 )
----
62

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6878
SELECT + 98 DIV 78
----
1

skipif mysql # not compatible
query I rowsort label-6878
SELECT + 98 / 78
----
1

query I rowsort
SELECT ALL 59 * - + 6 + + 69
----
-285

query I rowsort
SELECT + 15 * 46
----
690

onlyif mysql # aggregate syntax: 
query II rowsort label-6881
SELECT DISTINCT + COUNT( * ), NULLIF ( 56, - 88 ) AS col2
----
1
56

skipif mysql # not compatible
query II rowsort label-6881
SELECT DISTINCT + COUNT ( * ), NULLIF ( 56, - 88 ) AS col2
----
1
56

onlyif mysql # aggregate syntax: 
query II rowsort label-6882
SELECT DISTINCT COUNT( * ) + - COUNT( DISTINCT - - 46 ) AS col2, + MAX( DISTINCT 44 ) + + 95
----
0
139

skipif mysql # not compatible
query II rowsort label-6882
SELECT DISTINCT COUNT ( * ) + - COUNT ( DISTINCT - - 46 ) AS col2, + MAX ( DISTINCT 44 ) + + 95
----
0
139

query I rowsort
SELECT + ( - - 28 ) + + - 47 AS col0
----
-19

query II rowsort
SELECT DISTINCT 1 AS col1, 1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT ALL 57 * 34 + + ( MIN( 24 ) )
----
1962

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL 57 * 34 + + ( MIN ( 24 ) )
----
1962

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

skipif mysql # not compatible
query I rowsort label-6886
SELECT + 26 + + COUNT ( * ) AS col2
----
27

query I rowsort
SELECT - 96 * 97 AS col1
----
-9312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6888
SELECT + COALESCE ( - - 14, CASE 52 WHEN + 57 * 58 + + 85 * + 87 + + + COUNT( * ) THEN + - 74 DIV - CASE - 34 WHEN 59 * - 24 THEN 7 END WHEN - SUM( - + CAST( NULL AS SIGNED ) ) THEN 60 * + + COUNT( * ) ELSE - 32 + + 43 END, + ( + + 61 ) + + 36 ) + - 67 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-6888
SELECT + COALESCE ( - - 14, CASE 52 WHEN + 57 * 58 + + 85 * + 87 + + + COUNT ( * ) THEN + - 74 / - CASE - 34 WHEN 59 * - 24 THEN 7 END WHEN - SUM ( - + CAST ( NULL AS INTEGER ) ) THEN 60 * + + COUNT ( * ) ELSE - 32 + + 43 END, + ( + + 61 ) + + 36 ) + - 67 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT ALL + 52 - + + SUM( 44 ) + + COUNT( * ) * - + 34 * 66
----
-2236

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL + 52 - + + SUM ( 44 ) + + COUNT ( * ) * - + 34 * 66
----
-2236

onlyif mysql # aggregate syntax: 
query II rowsort label-6890
SELECT - COUNT( * ) AS col1, COUNT( DISTINCT 21 ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-6890
SELECT - COUNT ( * ) AS col1, COUNT ( DISTINCT 21 ) AS col1
----
-1
1

query I rowsort
SELECT ALL + 83 * - - 86 AS col2
----
7138

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6892
SELECT + + 72 - + - MIN( + 72 ), - 49 DIV MIN( ALL - NULLIF ( 38, - + 81 ) ) AS col0
----
144
1

skipif mysql # not compatible
query II rowsort label-6892
SELECT + + 72 - + - MIN ( + 72 ), - 49 / MIN ( ALL - NULLIF ( 38, - + 81 ) ) AS col0
----
144
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT DISTINCT COALESCE ( - COUNT( * ), - 63 * - 81 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT COALESCE ( - COUNT ( * ), - 63 * - 81 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT DISTINCT 41 * - - 92 * - ( - - 54 ) * COUNT( * ) AS col2
----
-203688

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT 41 * - - 92 * - ( - - 54 ) * COUNT ( * ) AS col2
----
-203688

onlyif mysql # aggregate syntax: 
query II rowsort label-6895
SELECT - - 58, - CASE + 34 WHEN - MIN( DISTINCT - 64 ) THEN - ( - + 42 ) ELSE NULL END * - - 75 AS col0
----
58
NULL

skipif mysql # not compatible
query II rowsort label-6895
SELECT - - 58, - CASE + 34 WHEN - MIN ( DISTINCT - 64 ) THEN - ( - + 42 ) ELSE NULL END * - - 75 AS col0
----
58
NULL

query I rowsort
SELECT - + 23 + - 75 + + - 6 AS col1
----
-104

query II rowsort
SELECT ALL 93 AS col1, 41 AS col0
----
93
41

onlyif mysql # DIV for integer division: 
query I rowsort label-6898
SELECT + 29 DIV 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6898
SELECT + 29 / 34 AS col2
----
0

query II rowsort
SELECT ALL - 91 AS col2, - 8 - + 68
----
-91
-76

query I rowsort
SELECT + - 95 * 24
----
-2280

query I rowsort
SELECT + 42 + + + 97
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT - ( - COUNT( * ) ) * - 28 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-6902
SELECT - ( - COUNT ( * ) ) * - 28 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT + 56 + NULLIF ( + MAX( ALL - 40 ), + COUNT( * ) + + 48 ) * - 92 col2
----
3736

skipif mysql # not compatible
query I rowsort label-6903
SELECT + 56 + NULLIF ( + MAX ( ALL - 40 ), + COUNT ( * ) + + 48 ) * - 92 col2
----
3736

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT - 26 - - 31 * + - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-6904
SELECT - 26 - - 31 * + - COUNT ( * )
----
-57

query I rowsort
SELECT ALL - - 39 * 37 col1
----
1443

query II rowsort
SELECT ALL + NULLIF ( 26, 14 ) AS col0, + ( + - 89 )
----
26
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT - + ( + + 65 ) * NULLIF ( + COUNT( * ), 22 / + 13 / - + ( + 2 ) - + ( - + 38 ) + 5 + + + 58 )
----
-65

skipif mysql # not compatible
query I rowsort label-6907
SELECT - + ( + + 65 ) * NULLIF ( + COUNT ( * ), 22 / + 13 / - + ( + 2 ) - + ( - + 38 ) + 5 + + + 58 )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6908
SELECT ALL + 17, CAST( 56 AS SIGNED ) AS col2
----
17
56

skipif mysql # not compatible
query II rowsort label-6908
SELECT ALL + 17, CAST ( 56 AS INTEGER ) AS col2
----
17
56

query II rowsort
SELECT + 39, 40 AS col2
----
39
40

query II rowsort
SELECT + - 50, 32 AS col1
----
-50
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT ALL + + COUNT( * ) / 57 * - 89 + + - 40 * - - CASE + - 82 WHEN + - 53 * + 8 * - + COUNT( * ) THEN - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL + + COUNT ( * ) / 57 * - 89 + + - 40 * - - CASE + - 82 WHEN + - 53 * + 8 * - + COUNT ( * ) THEN - 10 END
----
NULL

query I rowsort
SELECT ALL - 15 * - 56 AS col1
----
840

query II rowsort
SELECT - 58 * 19 AS col0, 79 col2
----
-1102
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6914
SELECT ALL 37 DIV + 64 * - + 51 + 7 + - COUNT( DISTINCT + - 28 ) * - + 8 DIV 97 * - - 41
----
7

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL 37 / + 64 * - + 51 + 7 + - COUNT ( DISTINCT + - 28 ) * - + 8 / 97 * - - 41
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT - ( + 13 ) - - + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-6915
SELECT - ( + 13 ) - - + COUNT ( * )
----
-12

query I rowsort
SELECT + 28 * 89 col1
----
2492

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT DISTINCT - 98 * SUM( ALL - 10 ) AS col0
----
980

skipif mysql # not compatible
query I rowsort label-6917
SELECT DISTINCT - 98 * SUM ( ALL - 10 ) AS col0
----
980

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT ALL 87 * MIN( 86 ) * + 4 * - ( + COUNT( * ) ) + + + ( + + 66 ) + + 44 - - 19
----
-29799

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL 87 * MIN ( 86 ) * + 4 * - ( + COUNT ( * ) ) + + + ( + + 66 ) + + 44 - - 19
----
-29799

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT - ( 31 ) + + + ( - COALESCE ( - 4, 87, + + MIN( 86 ) * + + 58 ) ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-6919
SELECT - ( 31 ) + + + ( - COALESCE ( - 4, 87, + + MIN ( 86 ) * + + 58 ) ) AS col0
----
-27

query I rowsort
SELECT DISTINCT + NULLIF ( - 48, + 55 )
----
-48

query I rowsort
SELECT DISTINCT 3 * - 0 * - 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT COALESCE ( 53, + 67, + - COUNT( * ) + + 47 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-6922
SELECT COALESCE ( 53, + 67, + - COUNT ( * ) + + 47 ) AS col0
----
53

query II rowsort
SELECT + 44 + + - 54 AS col1, 54
----
-10
54

query I rowsort
SELECT + 62 * + - 68
----
-4216

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6925
SELECT DISTINCT - COUNT( * ) * - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT - COUNT ( * ) * - - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + 38 + + 58
----
96

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

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

query I rowsort
SELECT - 26 * + + 98
----
-2548

query I rowsort
SELECT DISTINCT + 36 * 12 * - 63 AS col1
----
-27216

query I rowsort
SELECT + + 76 * + 92 * - 7 AS col1
----
-48944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6931
SELECT ALL - + 87 * COUNT( - CAST( - - 60 AS SIGNED ) ), - 52 AS col1
----
-87
-52

skipif mysql # not compatible
query II rowsort label-6931
SELECT ALL - + 87 * COUNT ( - CAST ( - - 60 AS INTEGER ) ), - 52 AS col1
----
-87
-52

query III rowsort
SELECT DISTINCT - 54 * + NULLIF ( + 70, + 25 ) AS col0, 16 AS col2, - 76 + + - 82
----
-3780
16
-158

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT ALL MIN( DISTINCT + 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-6934
SELECT ALL MIN ( DISTINCT + 82 ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT ALL 19 + COUNT( ALL + 99 ) + - 92 * 51 + - 22
----
-4694

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL 19 + COUNT ( ALL + 99 ) + - 92 * 51 + - 22
----
-4694

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6936
SELECT MIN( 15 ) AS col0, COALESCE ( + 56, MIN( ALL + - 29 ) + + - CASE 93 WHEN - + 62 THEN 59 DIV - + 24 + - 71 END + - - 19 - - - 44 + 62 * 47 + - 31 ) col0
----
15
56

skipif mysql # not compatible
query II rowsort label-6936
SELECT MIN ( 15 ) AS col0, COALESCE ( + 56, MIN ( ALL + - 29 ) + + - CASE 93 WHEN - + 62 THEN 59 / - + 24 + - 71 END + - - 19 - - - 44 + 62 * 47 + - 31 ) col0
----
15
56

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

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL + 14 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 85 + - - 92 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT DISTINCT - COUNT( * ) + 81 + - NULLIF ( + COUNT( * ), 65 * - 34 ) * + 9 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT - COUNT ( * ) + 81 + - NULLIF ( + COUNT ( * ), 65 * - 34 ) * + 9 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT ALL CASE - ( 82 ) WHEN - - 84 + + + NULLIF ( - 19, + 35 ) + + + 30 * - COALESCE ( 43, - CASE - - 47 WHEN 82 THEN NULL WHEN - COUNT( * ) + - 56 THEN NULL ELSE - 64 END * 27 / - - 73 ) * - 99 * 3 THEN + 69 - COUNT( * ) * + - MIN( ALL + - CASE 65 WHEN + 46 THEN NULL ELSE 36 * 77 END ) WHEN + 17 THEN COUNT( * ) * + 10 END * - 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL CASE - ( 82 ) WHEN - - 84 + + + NULLIF ( - 19, + 35 ) + + + 30 * - COALESCE ( 43, - CASE - - 47 WHEN 82 THEN NULL WHEN - COUNT ( * ) + - 56 THEN NULL ELSE - 64 END * 27 / - - 73 ) * - 99 * 3 THEN + 69 - COUNT ( * ) * + - MIN ( ALL + - CASE 65 WHEN + 46 THEN NULL ELSE 36 * 77 END ) WHEN + 17 THEN COUNT ( * ) * + 10 END * - 29 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6941
SELECT + + 72 / + ( - CASE + 98 WHEN 12 * - + 65 + + 57 - - 87 THEN + ( - COUNT( * ) ) END ) * - + CAST( NULL AS DECIMAL ) * + + 19 + ( + + 7 ) + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6941
SELECT + + 72 / + ( - CASE + 98 WHEN 12 * - + 65 + + 57 - - 87 THEN + ( - COUNT ( * ) ) END ) * - + CAST ( NULL AS REAL ) * + + 19 + ( + + 7 ) + 60 AS col0
----
NULL

query II rowsort
SELECT ALL 40 + 1 + + 73, + 97 * 74 AS col1
----
114
7178

query I rowsort
SELECT 99 + - - 96 AS col1
----
195

query I rowsort
SELECT DISTINCT + 38 + 96 AS col2
----
134

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT 83 * + 7 * 99 DIV - 1
----
-57519

skipif mysql # not compatible
query I rowsort label-6946
SELECT 83 * + 7 * 99 / - 1
----
-57519

onlyif mysql # DIV for integer division: 
query I rowsort label-6947
SELECT DISTINCT 39 + + 37 DIV + 99 col1
----
39

skipif mysql # not compatible
query I rowsort label-6947
SELECT DISTINCT 39 + + 37 / + 99 col1
----
39

query I rowsort
SELECT DISTINCT 98 + + 2
----
100

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6950
SELECT 18, CASE + 83 WHEN + 50 * + - AVG ( DISTINCT - 47 ) * - 48 + - - 90 * COUNT( * ) THEN + 93 + - 34 + + COUNT( DISTINCT + - 4 ) END AS col2
----
18
NULL

skipif mysql # not compatible
query II rowsort label-6950
SELECT 18, CASE + 83 WHEN + 50 * + - AVG ( DISTINCT - 47 ) * - 48 + - - 90 * COUNT ( * ) THEN + 93 + - 34 + + COUNT ( DISTINCT + - 4 ) END AS col2
----
18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT ALL - 76 - SUM( ALL - + 18 ) + + - 20 - + 11 * + 15 * 32 AS col1
----
-5358

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL - 76 - SUM ( ALL - + 18 ) + + - 20 - + 11 * + 15 * 32 AS col1
----
-5358

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT ALL - 49 * + + COUNT( * ) * + 26
----
-1274

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL - 49 * + + COUNT ( * ) * + 26
----
-1274

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT DISTINCT - SUM( - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT - SUM ( - 11 )
----
11

query I rowsort
SELECT ALL + 76 - + 11
----
65

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

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

query II rowsort
SELECT + 50, 84 AS col2
----
50
84

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

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

query I rowsort
SELECT 14 * 34
----
476

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT SUM( ALL 34 ) * + - 89 + 60 + + - 89 * + COUNT( * )
----
-3055

skipif mysql # not compatible
query I rowsort label-6961
SELECT SUM ( ALL 34 ) * + - 89 + 60 + + - 89 * + COUNT ( * )
----
-3055

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT 0 * - SUM( + 67 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6962
SELECT 0 * - SUM ( + 67 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6963
SELECT 18 / + CAST( NULL AS SIGNED ) * + COUNT( * ) + 50 * + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-6963
SELECT 18 / + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + 50 * + - 64
----
NULL

query I rowsort
SELECT + 24 + - - CASE 27 WHEN + + 45 THEN + 62 END + 14
----
NULL

query I rowsort
SELECT - COALESCE ( + 84, NULLIF ( - 2, + 29 ), - 87 )
----
-84

query I rowsort
SELECT ALL + - 5 + + 12 + + - 68 - + 38 AS col2
----
-99

query I rowsort
SELECT ALL 86 + + + 63
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-6968
SELECT DISTINCT + 7 + + 66 * + - ( CASE + 83 WHEN + + 84 THEN NULL ELSE 8 DIV 25 END )
----
7

skipif mysql # not compatible
query I rowsort label-6968
SELECT DISTINCT + 7 + + 66 * + - ( CASE + 83 WHEN + + 84 THEN NULL ELSE 8 / 25 END )
----
7

query I rowsort
SELECT ALL - - 93 * 13 + 16 * + 80 * - 18 AS col2
----
-21831

query I rowsort
SELECT - 74 + + 30 AS col1
----
-44

query II rowsort
SELECT - - 90, - ( - 77 ) * + 3 col2
----
90
231

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT ALL - COUNT( DISTINCT - 21 ) + - 7 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL - COUNT ( DISTINCT - 21 ) + - 7 AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6973
SELECT - MAX( - + NULLIF ( - - CAST( NULL AS SIGNED ), - + 52 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6973
SELECT - MAX ( - + NULLIF ( - - CAST ( NULL AS INTEGER ), - + 52 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6974
SELECT ALL CAST( + + CASE - + 37 WHEN - - 94 THEN 86 * + CAST( - 62 AS SIGNED ) - + - 70 + - + 94 * 46 * + MIN( DISTINCT - - 4 ) + + + 29 * + - 64 * AVG ( DISTINCT + 57 ) - + + 10 WHEN + MIN( ALL 23 ) * 84 + - - CASE NULLIF ( + 16, + SUM( ALL 58 ) ) WHEN COUNT( * ) * + 78 THEN NULL WHEN 56 * CAST( NULL AS SIGNED ) - - COUNT( DISTINCT 10 ) THEN NULL ELSE COUNT( * ) END + - 91 * + SUM( DISTINCT + 50 ) THEN 5 ELSE - 90 END AS SIGNED ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL CAST ( + + CASE - + 37 WHEN - - 94 THEN 86 * + CAST ( - 62 AS INTEGER ) - + - 70 + - + 94 * 46 * + MIN ( DISTINCT - - 4 ) + + + 29 * + - 64 * AVG ( DISTINCT + 57 ) - + + 10 WHEN + MIN ( ALL 23 ) * 84 + - - CASE NULLIF ( + 16, + SUM ( ALL 58 ) ) WHEN COUNT ( * ) * + 78 THEN NULL WHEN 56 * CAST ( NULL AS INTEGER ) - - COUNT ( DISTINCT 10 ) THEN NULL ELSE COUNT ( * ) END + - 91 * + SUM ( DISTINCT + 50 ) THEN 5 ELSE - 90 END AS INTEGER ) AS col1
----
-90

query I rowsort
SELECT 67 * 72 + + 59 + + 95
----
4978

query I rowsort
SELECT + 41 + + + 89 AS col2
----
130

query I rowsort
SELECT - NULLIF ( 46, - - 21 * + + 76 )
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-6978
SELECT - COUNT( * ) AS col0, + CASE - - 18 WHEN - + COUNT( ALL + - 33 ) THEN NULL WHEN + COUNT( * ) THEN - - ( + - 15 ) END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6978
SELECT - COUNT ( * ) AS col0, + CASE - - 18 WHEN - + COUNT ( ALL + - 33 ) THEN NULL WHEN + COUNT ( * ) THEN - - ( + - 15 ) END
----
-1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6979
SELECT DISTINCT 34 + - + 91 - + + 21 * - + 79 * + 5 * - COUNT( * ) * + 70 col2, - 66 AS col0
----
-580707
-66

skipif mysql # not compatible
query II rowsort label-6979
SELECT DISTINCT 34 + - + 91 - + + 21 * - + 79 * + 5 * - COUNT ( * ) * + 70 col2, - 66 AS col0
----
-580707
-66

query I rowsort
SELECT ALL 93 * - 88 AS col0
----
-8184

query I rowsort
SELECT ALL 98 * + 2 - - 58
----
254

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

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

query I rowsort
SELECT DISTINCT 40 * - - 2 * + ( 76 ) AS col0
----
6080

query I rowsort
SELECT DISTINCT 72 * 18 - + 1 AS col0
----
1295

query I rowsort
SELECT ALL 57 * - 56 * + 50
----
-159600

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

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

query II rowsort
SELECT + 27 AS col1, 53
----
27
53

query II rowsort
SELECT ALL - 43 col0, 57
----
-43
57

query I rowsort
SELECT COALESCE ( + ( + 40 ), + 55, + - ( - ( + 41 ) ) + + - 49 ) * - + 33 + 88
----
-1232

query I rowsort
SELECT 18 * 80
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT ALL - MAX( - 28 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL - MAX ( - 28 ) AS col2
----
28

query I rowsort
SELECT + 3 * + - 78 + + NULLIF ( - 25, - + 62 ) + - + 3 * 1 * + - 99 AS col1
----
38

query I rowsort
SELECT - 15 * - + 39 - - 23
----
608

onlyif mysql # DIV for integer division: 
query I rowsort label-6994
SELECT ALL + ( + + 89 ) DIV 87
----
1

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL + ( + + 89 ) / 87
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6995
SELECT COALESCE ( + 5, - - 65 ) * - 32 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT COALESCE ( + 5, - - 65 ) * - 32 * - CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6997
SELECT ALL + 59 AS col1, + 24 DIV 53 DIV - 42 AS col2, - 10 * CAST( - 36 AS SIGNED )
----
59
0
360

skipif mysql # not compatible
query III rowsort label-6997
SELECT ALL + 59 AS col1, + 24 / 53 / - 42 AS col2, - 10 * CAST ( - 36 AS INTEGER )
----
59
0
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6998
SELECT + - ( - 92 ) * + + COUNT( - 7 ) + + 41 + - CAST( NULL AS SIGNED ) / + 83 + + 53 + - + COUNT( + - CAST( + 33 AS SIGNED ) ) + + 87 * - + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-6998
SELECT + - ( - 92 ) * + + COUNT ( - 7 ) + + 41 + - CAST ( NULL AS INTEGER ) / + 83 + + 53 + - + COUNT ( + - CAST ( + 33 AS INTEGER ) ) + + 87 * - + 31
----
NULL

query I rowsort
SELECT ALL + + 45 + + - 76
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT - - COUNT( * ) + 98 * - 90
----
-8819

skipif mysql # not compatible
query I rowsort label-7000
SELECT - - COUNT ( * ) + 98 * - 90
----
-8819

query II rowsort
SELECT DISTINCT + 71 + - COALESCE ( - + 86, - ( 61 ) ) * + 26 AS col1, 1 * + 32 * + NULLIF ( 25, + ( - - 84 ) * + 70 )
----
2307
800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7002
SELECT - 9 * 66 * - CASE 97 WHEN + + COUNT( * ) THEN + 90 + - - ( + 7 ) WHEN - 9 THEN 45 WHEN - 28 THEN - ( - SUM( ALL + ( CAST( 98 AS SIGNED ) ) ) ) + 82 + 65 ELSE - COUNT( * ) * - 33 END AS col0
----
19602

skipif mysql # not compatible
query I rowsort label-7002
SELECT - 9 * 66 * - CASE 97 WHEN + + COUNT ( * ) THEN + 90 + - - ( + 7 ) WHEN - 9 THEN 45 WHEN - 28 THEN - ( - SUM ( ALL + ( CAST ( 98 AS INTEGER ) ) ) ) + 82 + 65 ELSE - COUNT ( * ) * - 33 END AS col0
----
19602

query I rowsort
SELECT DISTINCT - ( - 62 ) + 45 col2
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-7004
SELECT DISTINCT + 22 + - 91, 98 * COUNT( ALL - 30 ) AS col0
----
-69
98

skipif mysql # not compatible
query II rowsort label-7004
SELECT DISTINCT + 22 + - 91, 98 * COUNT ( ALL - 30 ) AS col0
----
-69
98

query I rowsort
SELECT DISTINCT + - 3 + + 59
----
56

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

skipif mysql # not compatible
query I rowsort label-7006
SELECT DISTINCT - + COUNT ( * ) + + - 76 * - ( + + CAST ( NULL AS INTEGER ) ) + - 31
----
NULL

query I rowsort
SELECT ALL + + ( - 66 ) + 78 AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-7008
SELECT - SUM( ALL - + 61 ) AS col2, 38 + + + 92
----
61
130

skipif mysql # not compatible
query II rowsort label-7008
SELECT - SUM ( ALL - + 61 ) AS col2, 38 + + + 92
----
61
130

onlyif mysql # aggregate syntax: 
query II rowsort label-7009
SELECT - - 2 AS col1, 11 + - 3 * 3 * COUNT( * )
----
2
2

skipif mysql # not compatible
query II rowsort label-7009
SELECT - - 2 AS col1, 11 + - 3 * 3 * COUNT ( * )
----
2
2

query I rowsort
SELECT - - 23 - - 17 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT DISTINCT + - ( - 80 ) + + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-7011
SELECT DISTINCT + - ( - 80 ) + + COUNT ( * )
----
81

query I rowsort
SELECT + - 26 + 11 * - 61
----
-697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7013
SELECT ALL - 84 AS col2, - 77 + - 35 + 87 + + + 6 * CAST( + + ( - 80 ) AS SIGNED ) * - + 30 + + + COUNT( * ) AS col1
----
-84
14376

skipif mysql # not compatible
query II rowsort label-7013
SELECT ALL - 84 AS col2, - 77 + - 35 + 87 + + + 6 * CAST ( + + ( - 80 ) AS INTEGER ) * - + 30 + + + COUNT ( * ) AS col1
----
-84
14376

query I rowsort
SELECT ALL - 48 * + + 54
----
-2592

query I rowsort
SELECT DISTINCT - 39 * - - 56 AS col2
----
-2184

query I rowsort
SELECT - CASE - 76 WHEN - 2 THEN + 26 ELSE + - 62 END + - 18
----
44

query I rowsort
SELECT DISTINCT + 75 - 8 AS col2
----
67

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7019
SELECT ( - 94 ) AS col2, - NULLIF ( + 83, + 5 * - - COALESCE ( - CASE + 77 WHEN 7 THEN + - 89 * + MAX( DISTINCT 16 ) WHEN + 68 - - 77 + 19 * 71 * 3 THEN CASE 95 WHEN - + 43 THEN + NULLIF ( - 4, 4 ) WHEN + - 98 + + 27 THEN + 31 END / - CASE - SUM( ALL + 96 ) WHEN - 18 THEN + 28 END + - 48 + 45 END, 52 ) - - 7 )
----
-94
-83

skipif mysql # not compatible
query II rowsort label-7019
SELECT ( - 94 ) AS col2, - NULLIF ( + 83, + 5 * - - COALESCE ( - CASE + 77 WHEN 7 THEN + - 89 * + MAX ( DISTINCT 16 ) WHEN + 68 - - 77 + 19 * 71 * 3 THEN CASE 95 WHEN - + 43 THEN + NULLIF ( - 4, 4 ) WHEN + - 98 + + 27 THEN + 31 END / - CASE - SUM ( ALL + 96 ) WHEN - 18 THEN + 28 END + - 48 + 45 END, 52 ) - - 7 )
----
-94
-83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT + NULLIF ( + + ( + 44 ), - 43 * - 84 + 24 + ( 49 ) + + SUM( DISTINCT + 24 ) * 48 + - 96 - - 85 + - COUNT( * ) + 30 * - - ( COUNT( * ) ) * + 60 )
----
44

skipif mysql # not compatible
query I rowsort label-7021
SELECT + NULLIF ( + + ( + 44 ), - 43 * - 84 + 24 + ( 49 ) + + SUM ( DISTINCT + 24 ) * 48 + - 96 - - 85 + - COUNT ( * ) + 30 * - - ( COUNT ( * ) ) * + 60 )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-7022
SELECT + 62 * - 97 AS col0, MAX( DISTINCT - 60 ) col1
----
-6014
-60

skipif mysql # not compatible
query II rowsort label-7022
SELECT + 62 * - 97 AS col0, MAX ( DISTINCT - 60 ) col1
----
-6014
-60

query II rowsort
SELECT ( - 40 ), 79 * + - 52 AS col1
----
-40
-4108

onlyif mysql # DIV for integer division: 
query I rowsort label-7024
SELECT + 26 DIV + 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7024
SELECT + 26 / + 40 AS col2
----
0

query I rowsort
SELECT + 32 * 92
----
2944

query I rowsort
SELECT ALL - 17 * + 58 + - NULLIF ( - + 20, + 57 - + 55 ) col2
----
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT + 66 - + + COUNT( * ) AS col0
----
65

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7028
SELECT DISTINCT + 3 * + 13 + + 23 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7028
SELECT DISTINCT + 3 * + 13 + + 23 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7029
SELECT ALL + 32 * + 83 + 45 + ( + - CASE - + CAST( NULL AS SIGNED ) WHEN 44 * + 13 + COUNT( ALL - + 38 ) + - - COUNT( * ) + + + 62 / - 40 * + 17 + - 47 THEN - - 23 + + + 71 END ) * - - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7029
SELECT ALL + 32 * + 83 + 45 + ( + - CASE - + CAST ( NULL AS INTEGER ) WHEN 44 * + 13 + COUNT ( ALL - + 38 ) + - - COUNT ( * ) + + + 62 / - 40 * + 17 + - 47 THEN - - 23 + + + 71 END ) * - - 43 AS col2
----
NULL

query I rowsort
SELECT + 7 * 37 * - 48 * + 64
----
-795648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7031
SELECT ALL + + 62 * CAST( NULL AS SIGNED ) * + ( + + ( ( 53 ) ) ) + - 12 + + 14 + + 51 + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-7031
SELECT ALL + + 62 * CAST ( NULL AS INTEGER ) * + ( + + ( ( 53 ) ) ) + - 12 + + 14 + + 51 + + 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7032
SELECT ALL COALESCE ( + + 63, + + COUNT( * ) * - 3 + + 64, - 46 + - 18 - - ( + - 3 ) * - 26 DIV - ( - 47 ), + COUNT( DISTINCT + CAST( + 71 AS SIGNED ) ) ) * - - 78 + + 95 AS col2, 44 - - 30 + + - 30 AS col2
----
5009
44

skipif mysql # not compatible
query II rowsort label-7032
SELECT ALL COALESCE ( + + 63, + + COUNT ( * ) * - 3 + + 64, - 46 + - 18 - - ( + - 3 ) * - 26 / - ( - 47 ), + COUNT ( DISTINCT + CAST ( + 71 AS INTEGER ) ) ) * - - 78 + + 95 AS col2, 44 - - 30 + + - 30 AS col2
----
5009
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT - COALESCE ( - COUNT( * ), - 0, - 49, - 51 * + 99 + - MAX( + - 66 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7033
SELECT - COALESCE ( - COUNT ( * ), - 0, - 49, - 51 * + 99 + - MAX ( + - 66 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT ALL + 45 * + + 19 + + COUNT( DISTINCT + - 71 )
----
856

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL + 45 * + + 19 + + COUNT ( DISTINCT + - 71 )
----
856

query I rowsort
SELECT + + 12 - + 24
----
-12

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT DISTINCT 21 * 2 * COUNT( * ) * + - ( + 36 )
----
-1512

skipif mysql # not compatible
query I rowsort label-7038
SELECT DISTINCT 21 * 2 * COUNT ( * ) * + - ( + 36 )
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT + + 95 * 12 + + + COUNT( DISTINCT - 89 ) - - - COUNT( * )
----
1140

skipif mysql # not compatible
query I rowsort label-7039
SELECT + + 95 * 12 + + + COUNT ( DISTINCT - 89 ) - - - COUNT ( * )
----
1140

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7041
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) * COUNT( * ) * + 91 * - 19 col2
----
-1729

skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) * COUNT ( * ) * + 91 * - 19 col2
----
-1729

query I rowsort
SELECT ALL 92 - - ( + 82 ) + 90 * - 1 * 5 AS col0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT ALL - 22 * + + MAX( ALL 31 ) AS col1
----
-682

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL - 22 * + + MAX ( ALL 31 ) AS col1
----
-682

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT ALL - + 50 - - ( MIN( DISTINCT + 14 ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL - + 50 - - ( MIN ( DISTINCT + 14 ) ) AS col2
----
-36

query III rowsort
SELECT DISTINCT NULLIF ( + 70, + - 96 ) AS col2, ( + - 37 ) + - 54 AS col0, + 74
----
70
-91
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT + 40 * - - NULLIF ( + - 43, + ( - MAX( + 97 ) ) ) AS col2
----
-1720

skipif mysql # not compatible
query I rowsort label-7046
SELECT + 40 * - - NULLIF ( + - 43, + ( - MAX ( + 97 ) ) ) AS col2
----
-1720

onlyif mysql # DIV for integer division: 
query I rowsort label-7047
SELECT ALL - 17 DIV 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL - 17 / 93 AS col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT DISTINCT - COUNT( * ) * - - ( 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT - COUNT ( * ) * - - ( 84 ) AS col2
----
-84

query I rowsort
SELECT - ( + 1 ) + 71
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7051
SELECT ALL - 17 DIV - - 22
----
0

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL - 17 / - - 22
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7052
SELECT - 81, + COUNT( * ) + + 96 - + 26 + + - 20 - + + 22 AS col0
----
-81
29

skipif mysql # not compatible
query II rowsort label-7052
SELECT - 81, + COUNT ( * ) + + 96 - + 26 + + - 20 - + + 22 AS col0
----
-81
29

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7055
SELECT 18 DIV 78 - 49 AS col2, - CASE 99 WHEN - COUNT( * ) * - + 35 * + 0 THEN + - 56 END - + ( - ( CASE 71 WHEN 43 THEN 61 - - + 0 END ) ) AS col0
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-7055
SELECT 18 / 78 - 49 AS col2, - CASE 99 WHEN - COUNT ( * ) * - + 35 * + 0 THEN + - 56 END - + ( - ( CASE 71 WHEN 43 THEN 61 - - + 0 END ) ) AS col0
----
-49
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7056
SELECT 44 AS col1, - 62 + - 97 - + MAX( 19 ) + + - CAST( NULL AS DECIMAL ) * 41 col1
----
44
NULL

skipif mysql # not compatible
query II rowsort label-7056
SELECT 44 AS col1, - 62 + - 97 - + MAX ( 19 ) + + - CAST ( NULL AS REAL ) * 41 col1
----
44
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7057
SELECT ALL - MAX( ALL - + 48 ) + 74 AS col0, 91
----
122
91

skipif mysql # not compatible
query II rowsort label-7057
SELECT ALL - MAX ( ALL - + 48 ) + 74 AS col0, 91
----
122
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7058
SELECT DISTINCT - + COALESCE ( + + ( + 9 ), - 30 DIV - 46 * - - 91 - + 5 + 14 + + 25 * - ( + + 51 ) * COUNT( 28 ) + - 48, - COUNT( * ) * - 15 DIV - COALESCE ( + 55, - 26 ) * 35 - CAST( + 15 AS SIGNED ) DIV + - 30 + + 45 )
----
-9

skipif mysql # not compatible
query I rowsort label-7058
SELECT DISTINCT - + COALESCE ( + + ( + 9 ), - 30 / - 46 * - - 91 - + 5 + 14 + + 25 * - ( + + 51 ) * COUNT ( 28 ) + - 48, - COUNT ( * ) * - 15 / - COALESCE ( + 55, - 26 ) * 35 - CAST ( + 15 AS INTEGER ) / + - 30 + + 45 )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7059
SELECT ALL + 22 + + + 81 DIV - COUNT( * ) * + ( - COUNT( * ) ) + - 20 AS col1, - 9
----
83
-9

skipif mysql # not compatible
query II rowsort label-7059
SELECT ALL + 22 + + + 81 / - COUNT ( * ) * + ( - COUNT ( * ) ) + - 20 AS col1, - 9
----
83
-9

query I rowsort
SELECT 16 + - + 70 AS col2
----
-54

query I rowsort
SELECT ALL - 78 * 65 + + 44
----
-5026

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7062
SELECT ALL SUM( DISTINCT 27 ) - - 94 DIV + - SUM( - 51 )
----
28

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL SUM ( DISTINCT 27 ) - - 94 / + - SUM ( - 51 )
----
28

query II rowsort
SELECT + + 39, - ( + 70 ) AS col2
----
39
-70

query I rowsort
SELECT 55 + - + 27 * + + 56 * + + ( + + 79 )
----
-119393

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7065
SELECT ALL COUNT( * ) - 89 + - COALESCE ( 65, 93 + - 10, - 19 ) DIV - 73 col1
----
-88

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL COUNT ( * ) - 89 + - COALESCE ( 65, 93 + - 10, - 19 ) / - 73 col1
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-7066
SELECT + 42, 85 + + + 24 + 64 * - ( + MIN( - 55 ) ) * + COALESCE ( CASE + - 51 WHEN 35 THEN 60 END, 1 ) + + + 88 AS col0
----
42
3717

skipif mysql # not compatible
query II rowsort label-7066
SELECT + 42, 85 + + + 24 + 64 * - ( + MIN ( - 55 ) ) * + COALESCE ( CASE + - 51 WHEN 35 THEN 60 END, 1 ) + + + 88 AS col0
----
42
3717

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

query I rowsort
SELECT + 63 + + 56
----
119

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7070
SELECT DISTINCT 70 col1, + CAST( + 81 AS SIGNED ) AS col2
----
70
81

skipif mysql # not compatible
query II rowsort label-7070
SELECT DISTINCT 70 col1, + CAST ( + 81 AS INTEGER ) AS col2
----
70
81

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

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL - COUNT ( * ) / 93
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7072
SELECT - 29 DIV - 12
----
2

skipif mysql # not compatible
query I rowsort label-7072
SELECT - 29 / - 12
----
2

query I rowsort
SELECT DISTINCT + - 60 - 60 AS col2
----
-120

query I rowsort
SELECT ALL 34 * - 69 AS col0
----
-2346

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7075
SELECT MIN( ALL + 26 ) DIV COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-7075
SELECT MIN ( ALL + 26 ) / COUNT ( * )
----
26

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

skipif mysql # not compatible
query I rowsort label-7076
SELECT 8 / + 85
----
0

query I rowsort
SELECT ALL 10 * 55 * - + 74
----
-40700

query I rowsort
SELECT 82 - - ( 96 ) + - 18 * 92 * - 50 AS col2
----
82978

query I rowsort
SELECT 89 + - 75 AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7080
SELECT CASE 78 WHEN - 43 * - CAST( - COUNT( ALL - 16 ) AS SIGNED ) - + MAX( ALL - - 9 ) THEN 95 ELSE NULL END - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-7080
SELECT CASE 78 WHEN - 43 * - CAST ( - COUNT ( ALL - 16 ) AS INTEGER ) - + MAX ( ALL - - 9 ) THEN 95 ELSE NULL END - 19
----
NULL

query I rowsort
SELECT 8 * + 67 AS col0
----
536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7082
SELECT ALL - CAST( - 50 AS SIGNED ) + - - 86
----
136

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL - CAST ( - 50 AS INTEGER ) + - - 86
----
136

query I rowsort
SELECT DISTINCT 9 * NULLIF ( + 27, + 68 - - + 40 ) AS col0
----
243

query I rowsort
SELECT DISTINCT 27 + + 81
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT 33 + 84 + - CASE - + AVG ( ALL - + 66 ) WHEN + + 48 * + COUNT( * ) + + COUNT( * ) THEN + - 30 + - - ( 72 ) WHEN + + CASE 50 WHEN + COALESCE ( + AVG ( - 15 ), 30 * 83 + - 95, + ( + + 4 ) ) THEN - 63 ELSE 7 * - - 56 END THEN NULL ELSE + - ( - 98 ) + + COUNT( * ) * + MIN( ALL 41 ) + + COUNT( * ) END * + 53
----
-7303

skipif mysql # not compatible
query I rowsort label-7085
SELECT 33 + 84 + - CASE - + AVG ( ALL - + 66 ) WHEN + + 48 * + COUNT ( * ) + + COUNT ( * ) THEN + - 30 + - - ( 72 ) WHEN + + CASE 50 WHEN + COALESCE ( + AVG ( - 15 ), 30 * 83 + - 95, + ( + + 4 ) ) THEN - 63 ELSE 7 * - - 56 END THEN NULL ELSE + - ( - 98 ) + + COUNT ( * ) * + MIN ( ALL 41 ) + + COUNT ( * ) END * + 53
----
-7303

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

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

query I rowsort
SELECT ALL - 59 * + 7 AS col0
----
-413

query I rowsort
SELECT 23 * 3 * + 39
----
2691

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT DISTINCT + 41 + + - 4 - 3 - - 93 - COUNT( * ) * + 51
----
76

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT + 41 + + - 4 - 3 - - 93 - COUNT ( * ) * + 51
----
76

query I rowsort
SELECT ALL - + 26 + 87 * + 55 col2
----
4759

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT ALL + 51 + - 51 + + + CASE + - 84 WHEN 45 * ( + - 18 ) THEN COUNT( * ) * 38 + 40 END + 19 * 89 / 66 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL + 51 + - 51 + + + CASE + - 84 WHEN 45 * ( + - 18 ) THEN COUNT ( * ) * 38 + 40 END + 19 * 89 / 66 / + COUNT ( * )
----
NULL

query I rowsort
SELECT - 84 * + 57
----
-4788

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7093
SELECT CAST( NULL AS SIGNED ) - + 20 AS col2, + MAX( - + 82 )
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-7093
SELECT CAST ( NULL AS INTEGER ) - + 20 AS col2, + MAX ( - + 82 )
----
NULL
-82

query I rowsort
SELECT + 34 * + 8 + - 70 + 32 * + - 10 AS col1
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7095
SELECT + 78 - 26 + - 31 * - 56 * - + CAST( NULL AS SIGNED ) + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-7095
SELECT + 78 - 26 + - 31 * - 56 * - + CAST ( NULL AS INTEGER ) + 6
----
NULL

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

query I rowsort
SELECT ALL 30 - - 58
----
88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT DISTINCT - - MAX( + - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-7099
SELECT DISTINCT - - MAX ( + - 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT ALL - COUNT( * ) * + + 26 * - 76 col1
----
1976

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL - COUNT ( * ) * + + 26 * - 76 col1
----
1976

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT - CASE + 11 WHEN COUNT( * ) + + + ( - + 59 ) + + 13 / MIN( ALL - 27 ) THEN NULL WHEN + - COUNT( + - 7 ) + - SUM( + 46 ) THEN NULL ELSE - - 61 + + + COUNT( * ) * - - NULLIF ( + - 59, NULLIF ( + - 12, + + 66 * 19 + - 34 ) ) END AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7101
SELECT - CASE + 11 WHEN COUNT ( * ) + + + ( - + 59 ) + + 13 / MIN ( ALL - 27 ) THEN NULL WHEN + - COUNT ( + - 7 ) + - SUM ( + 46 ) THEN NULL ELSE - - 61 + + + COUNT ( * ) * - - NULLIF ( + - 59, NULLIF ( + - 12, + + 66 * 19 + - 34 ) ) END AS col1
----
-2

query I rowsort
SELECT DISTINCT 15 * - - 19
----
285

query II rowsort
SELECT ALL 58 AS col0, + ( 11 ) * - - 82 * + 18
----
58
16236

query I rowsort
SELECT ALL 87 + - 25 col2
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-7105
SELECT 92 + - 9 + 28 DIV + - 40 * + 26 * - 16 + - 29
----
54

skipif mysql # not compatible
query I rowsort label-7105
SELECT 92 + - 9 + 28 / + - 40 * + 26 * - 16 + - 29
----
54

query I rowsort
SELECT 27 - + 27 + 31 * + - 80 AS col0
----
-2480

query I rowsort
SELECT DISTINCT 22 + + + 29
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT ALL COUNT( + + 84 ) + 66
----
67

skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL COUNT ( + + 84 ) + 66
----
67

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7110
SELECT DISTINCT ( - + NULLIF ( + 30, + 41 ) ) * - NULLIF ( - 19, 90 ) - + - 91 - 37 - - + 10 - + - 43 DIV + 73 AS col0
----
-506

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT ( - + NULLIF ( + 30, + 41 ) ) * - NULLIF ( - 19, 90 ) - + - 91 - 37 - - + 10 - + - 43 / + 73 AS col0
----
-506

query I rowsort
SELECT DISTINCT 86 + - 35
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7112
SELECT + 56 DIV + - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7112
SELECT + 56 / + - 96 AS col1
----
0

query I rowsort
SELECT ALL 21 + - - 66
----
87

query II rowsort
SELECT DISTINCT ( 58 ) * - 70 col0, + 23
----
-4060
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT + 20 + COUNT( * ) col2
----
21

skipif mysql # not compatible
query I rowsort label-7116
SELECT + 20 + COUNT ( * ) col2
----
21

query I rowsort
SELECT + 79 * - ( - 60 )
----
4740

query II rowsort
SELECT 13, + 37 - - - 38 col1
----
13
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT ALL - 55 + + 87 + MIN( DISTINCT + + 78 ) * - - 30 AS col2
----
2372

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL - 55 + + 87 + MIN ( DISTINCT + + 78 ) * - - 30 AS col2
----
2372

query I rowsort
SELECT ALL + + ( + 55 ) * - 0 + + 60 - + - 35
----
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT + - 14 + - - COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-7122
SELECT + - 14 + - - COUNT ( * ) AS col0
----
-13

query I rowsort
SELECT + - 56 * + 11
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT - COALESCE ( COUNT( * ), 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-7124
SELECT - COALESCE ( COUNT ( * ), 12 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7125
SELECT - - 97 * - + MIN( DISTINCT + + 50 ) + + 21 + - 15 DIV + COUNT( * ) col0
----
-4844

skipif mysql # not compatible
query I rowsort label-7125
SELECT - - 97 * - + MIN ( DISTINCT + + 50 ) + + 21 + - 15 / + COUNT ( * ) col0
----
-4844

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT - 18 - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-7126
SELECT - 18 - COUNT ( * )
----
-19

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7128
SELECT ALL + + CAST( - - 4 AS SIGNED ) col0
----
4

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL + + CAST ( - - 4 AS INTEGER ) col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7129
SELECT 64 DIV + COUNT( - 86 ) - + + 71 + - 83
----
-90

skipif mysql # not compatible
query I rowsort label-7129
SELECT 64 / + COUNT ( - 86 ) - + + 71 + - 83
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT 59 * 72 - + CAST( - 62 AS SIGNED )
----
4310

skipif mysql # not compatible
query I rowsort label-7130
SELECT 59 * 72 - + CAST ( - 62 AS INTEGER )
----
4310

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT - COUNT( + ( - 8 ) ) + - 91 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-7131
SELECT - COUNT ( + ( - 8 ) ) + - 91 AS col2
----
-92

query I rowsort
SELECT ALL + + 19 * + + 81 col2
----
1539

onlyif mysql # DIV for integer division: 
query I rowsort label-7133
SELECT - + 73 DIV + 46 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7133
SELECT - + 73 / + 46 AS col1
----
-1

query I rowsort
SELECT DISTINCT + 67 * + 75 AS col1
----
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT - - CASE + AVG ( 51 ) WHEN - 64 THEN NULL WHEN + 63 THEN COUNT( * ) ELSE NULL END + SUM( + 92 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7135
SELECT - - CASE + AVG ( 51 ) WHEN - 64 THEN NULL WHEN + 63 THEN COUNT ( * ) ELSE NULL END + SUM ( + 92 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - ( 88 ) * 18
----
1584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7137
SELECT + - COUNT( * ) / - CASE + 33 WHEN - + 2 THEN - + SUM( DISTINCT - - 7 ) WHEN - 77 + + 50 THEN + - 11 + - CAST( NULL AS SIGNED ) ELSE NULL END * - + CAST( NULL AS SIGNED ) + - - 83 / + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7137
SELECT + - COUNT ( * ) / - CASE + 33 WHEN - + 2 THEN - + SUM ( DISTINCT - - 7 ) WHEN - 77 + + 50 THEN + - 11 + - CAST ( NULL AS INTEGER ) ELSE NULL END * - + CAST ( NULL AS INTEGER ) + - - 83 / + + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT ALL + COUNT( 39 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL + COUNT ( 39 ) col1
----
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7140
SELECT - + SUM( 90 ) DIV 65 DIV + 24 + + ( - COALESCE ( + 12, + + 51 DIV 87 + + 52 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-7140
SELECT - + SUM ( 90 ) / 65 / + 24 + + ( - COALESCE ( + 12, + + 51 / 87 + + 52 ) )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT - + SUM( DISTINCT 72 ) + + 74 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7141
SELECT - + SUM ( DISTINCT 72 ) + + 74 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7142
SELECT ALL - 52 DIV - CASE - 59 WHEN + 17 THEN - 27 DIV 42 - - 18 DIV - 64 * - + 45 WHEN - + 52 * CAST( MAX( 57 ) AS SIGNED ) THEN NULL ELSE - - 77 * + + 14 END, 27 AS col0
----
0
27

skipif mysql # not compatible
query II rowsort label-7142
SELECT ALL - 52 / - CASE - 59 WHEN + 17 THEN - 27 / 42 - - 18 / - 64 * - + 45 WHEN - + 52 * CAST ( MAX ( 57 ) AS INTEGER ) THEN NULL ELSE - - 77 * + + 14 END, 27 AS col0
----
0
27

query I rowsort
SELECT ALL + 50 * - 27 + + 33 AS col1
----
-1317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7144
SELECT DISTINCT - COUNT( - 54 ) * 5 + - 1 - 66 + + 43 * + - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT - COUNT ( - 54 ) * 5 + - 1 - 66 + + 43 * + - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT DISTINCT NULLIF ( - + MAX( DISTINCT 7 ), - 77 + 48 / - - COUNT( * ) ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT NULLIF ( - + MAX ( DISTINCT 7 ), - 77 + 48 / - - COUNT ( * ) ) AS col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7146
SELECT ALL + 34 * - CAST( - + COUNT( * ) AS SIGNED ) + 30 * - MAX( ALL + 53 ) AS col0
----
-1556

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL + 34 * - CAST ( - + COUNT ( * ) AS INTEGER ) + 30 * - MAX ( ALL + 53 ) AS col0
----
-1556

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

skipif mysql # not compatible
query II rowsort label-7147
SELECT COUNT ( * ) AS col0, 20 AS col2
----
1
20

query I rowsort
SELECT ALL 33 + 67 AS col0
----
100

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7150
SELECT 23, + COALESCE ( 69, - MAX( DISTINCT 12 ) ) + + - 80 AS col2
----
23
-11

skipif mysql # not compatible
query II rowsort label-7150
SELECT 23, + COALESCE ( 69, - MAX ( DISTINCT 12 ) ) + + - 80 AS col2
----
23
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7151
SELECT + 57 + - - CAST( - 45 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-7151
SELECT + 57 + - - CAST ( - 45 AS INTEGER )
----
12

query I rowsort
SELECT + 15 * + 19 AS col2
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT ALL + 68 + - COUNT( * ) + - 63
----
4

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL + 68 + - COUNT ( * ) + - 63
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT - CASE + 79 WHEN - 36 THEN NULL ELSE + - COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-7154
SELECT - CASE + 79 WHEN - 36 THEN NULL ELSE + - COUNT ( * ) END
----
1

query I rowsort
SELECT ALL ( - 72 ) * - 81
----
5832

query I rowsort
SELECT - 3 - + + 66 AS col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7157
SELECT DISTINCT CAST( - 8 AS SIGNED ) + + 23 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT CAST ( - 8 AS INTEGER ) + + 23 AS col2
----
15

query II rowsort
SELECT DISTINCT ( 38 ) col2, - 33 + 6 + 1
----
38
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7159
SELECT DISTINCT 8 - - - COUNT( * ) + + COUNT( * ) + 27 * + + 30 * - SUM( ALL + + 70 ) + 48 * + - CAST( - + 45 AS SIGNED )
----
-54532

skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT 8 - - - COUNT ( * ) + + COUNT ( * ) + 27 * + + 30 * - SUM ( ALL + + 70 ) + 48 * + - CAST ( - + 45 AS INTEGER )
----
-54532

query II rowsort
SELECT ALL 42, 36 + - 33 col2
----
42
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT + 67 + - - 58 + - - 19 * COUNT( - 95 )
----
144

skipif mysql # not compatible
query I rowsort label-7161
SELECT + 67 + - - 58 + - - 19 * COUNT ( - 95 )
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT ALL NULLIF ( ( COUNT( - 39 ) ), + 73 * - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL NULLIF ( ( COUNT ( - 39 ) ), + 73 * - + COUNT ( * ) )
----
1

query II rowsort
SELECT - 37, ( - ( 21 ) ) col0
----
-37
-21

query I rowsort
SELECT + + 85 * - 2
----
-170

query II rowsort
SELECT + 37 * - 30 AS col2, - 66 AS col2
----
-1110
-66

query I rowsort
SELECT + 7 * 89
----
623

query I rowsort
SELECT ALL 76 * + 66
----
5016

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT - 16 + - + 45 * - NULLIF ( ( + - 38 ), + - 36 * COUNT( * ) + NULLIF ( + 23, + + 27 + - 24 ) + 83 * - + 44 ) AS col0
----
-1726

skipif mysql # not compatible
query I rowsort label-7169
SELECT - 16 + - + 45 * - NULLIF ( ( + - 38 ), + - 36 * COUNT ( * ) + NULLIF ( + 23, + + 27 + - 24 ) + 83 * - + 44 ) AS col0
----
-1726

query II rowsort
SELECT DISTINCT + + 25 AS col2, 52 AS col2
----
25
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7171
SELECT + CASE ( - + 45 ) WHEN + 27 - + 93 / + 94 / - 69 THEN + MAX( ALL - - 80 ) END * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7171
SELECT + CASE ( - + 45 ) WHEN + 27 - + 93 / + 94 / - 69 THEN + MAX ( ALL - - 80 ) END * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-7172
SELECT DISTINCT + - COUNT( * ) AS col1, - 80 + 19 + - + 50, 69 col2
----
-1
-111
69

skipif mysql # not compatible
query III rowsort label-7172
SELECT DISTINCT + - COUNT ( * ) AS col1, - 80 + 19 + - + 50, 69 col2
----
-1
-111
69

query II rowsort
SELECT + - 50, - 3 + 44 col1
----
-50
41

query I rowsort
SELECT + + 83 * 77 - + 47 col2
----
6344

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT + - ( ( MAX( DISTINCT - + 40 ) ) ) * COUNT( * ) + + COUNT( * ) - + + 3 col0
----
38

skipif mysql # not compatible
query I rowsort label-7175
SELECT + - ( ( MAX ( DISTINCT - + 40 ) ) ) * COUNT ( * ) + + COUNT ( * ) - + + 3 col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT DISTINCT + - MIN( ALL 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT + - MIN ( ALL 22 )
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-7177
SELECT ALL + 70 DIV - + 78 + 37 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL + 70 / - + 78 + 37 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT + COUNT( + - 69 ) - 46 * - 87
----
4003

skipif mysql # not compatible
query I rowsort label-7178
SELECT + COUNT ( + - 69 ) - 46 * - 87
----
4003

query II rowsort
SELECT + 78 AS col2, ( 67 ) AS col1
----
78
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7180
SELECT - 36 DIV 40 * 60 col2
----
0

skipif mysql # not compatible
query I rowsort label-7180
SELECT - 36 / 40 * 60 col2
----
0

query I rowsort
SELECT + + 5 * + + 73 + 3 col1
----
368

query II rowsort
SELECT ALL - 6 * + + 67, + 21 AS col1
----
-402
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7183
SELECT DISTINCT + CAST( - 24 AS SIGNED ) + 20 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-7183
SELECT DISTINCT + CAST ( - 24 AS INTEGER ) + 20 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT DISTINCT COUNT( * ) + + 88 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT COUNT ( * ) + + 88 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT 27 - - COUNT( DISTINCT - - 0 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7185
SELECT 27 - - COUNT ( DISTINCT - - 0 ) AS col0
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT 36 + + MIN( - 38 )
----
-2

skipif mysql # not compatible
query I rowsort label-7187
SELECT 36 + + MIN ( - 38 )
----
-2

query I rowsort
SELECT 7 * 32 / 92 / + CASE - 46 WHEN - - 17 THEN NULL WHEN - 46 * + 26 THEN + 31 WHEN + + 67 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7189
SELECT ALL + CAST( + 17 AS SIGNED ) + - COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL + CAST ( + 17 AS INTEGER ) + - COUNT ( * ) AS col2
----
16

query I rowsort
SELECT 26 + - 4 * 79 col2
----
-290

onlyif mysql # aggregate syntax: 
query II rowsort label-7191
SELECT ALL 85 * 65 AS col2, + MAX( ALL + + 42 ) AS col2
----
5525
42

skipif mysql # not compatible
query II rowsort label-7191
SELECT ALL 85 * 65 AS col2, + MAX ( ALL + + 42 ) AS col2
----
5525
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7192
SELECT DISTINCT + CAST( 68 AS SIGNED ) - - 64 * + + 9
----
644

skipif mysql # not compatible
query I rowsort label-7192
SELECT DISTINCT + CAST ( 68 AS INTEGER ) - - 64 * + + 9
----
644

query I rowsort
SELECT ALL 20 * 0 AS col1
----
0

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

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

query I rowsort
SELECT DISTINCT - 61 * 87 AS col2
----
-5307

onlyif mysql # aggregate syntax: 
query II rowsort label-7196
SELECT ALL - + 77 * COUNT( * ) AS col0, 92 * + 0
----
-77
0

skipif mysql # not compatible
query II rowsort label-7196
SELECT ALL - + 77 * COUNT ( * ) AS col0, 92 * + 0
----
-77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT COUNT( 5 ) * + - 33 + 83 + + 93
----
143

skipif mysql # not compatible
query I rowsort label-7197
SELECT COUNT ( 5 ) * + - 33 + 83 + + 93
----
143

query I rowsort
SELECT + 30 + - - 89 - - 41 AS col0
----
160

query I rowsort
SELECT ALL + ( - CASE - + 67 WHEN - 41 + - 76 THEN + 45 WHEN - 55 THEN NULL END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7200
SELECT ALL 97 DIV + 17 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL 97 / + 17 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT + COUNT( * ) * - - 13 - - 64
----
77

skipif mysql # not compatible
query I rowsort label-7201
SELECT + COUNT ( * ) * - - 13 - - 64
----
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7202
SELECT ALL CAST( NULL AS DECIMAL ) + 64 + - - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL CAST ( NULL AS REAL ) + 64 + - - 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7203
SELECT ALL 54 DIV COUNT( * ) - - ( + COUNT( * ) ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL 54 / COUNT ( * ) - - ( + COUNT ( * ) ) AS col1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-7204
SELECT 34 DIV 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7204
SELECT 34 / 84 AS col0
----
0

query II rowsort
SELECT 78 + + 70 AS col0, ( + + 67 )
----
148
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT + SUM( DISTINCT - 17 ) * + + 79 + - 28
----
-1371

skipif mysql # not compatible
query I rowsort label-7206
SELECT + SUM ( DISTINCT - 17 ) * + + 79 + - 28
----
-1371

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT 3 * + - ( + - COALESCE ( + 89, ( - - COUNT( * ) ) + - 57 ) ) + - ( - COUNT( * ) )
----
268

skipif mysql # not compatible
query I rowsort label-7207
SELECT 3 * + - ( + - COALESCE ( + 89, ( - - COUNT ( * ) ) + - 57 ) ) + - ( - COUNT ( * ) )
----
268

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7208
SELECT ALL CASE - 67 WHEN + 67 THEN 91 * + CAST( - - 83 AS DECIMAL ) * - 9 - + 52 - + + 3 + 31 * - 85 WHEN - 71 THEN + SUM( + COALESCE ( + 9, 59, + 52 * + + 93 ) ) END + - COUNT( * ) - 91 / - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL CASE - 67 WHEN + 67 THEN 91 * + CAST ( - - 83 AS REAL ) * - 9 - + 52 - + + 3 + 31 * - 85 WHEN - 71 THEN + SUM ( + COALESCE ( + 9, 59, + 52 * + + 93 ) ) END + - COUNT ( * ) - 91 / - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT - NULLIF ( + 36, - + 5 ) * + 84 + + + CASE - 30 WHEN - - 28 + 24 THEN - 23 / - - 58 + - + 65 ELSE + - 60 * + 88 - + 94 * - - 96 * - 38 * + CASE WHEN - 25 IS NULL THEN ( - COUNT( * ) ) END - + 63 END * + COUNT( * ) + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-7209
SELECT - NULLIF ( + 36, - + 5 ) * + 84 + + + CASE - 30 WHEN - - 28 + 24 THEN - 23 / - - 58 + - + 65 ELSE + - 60 * + 88 - + 94 * - - 96 * - 38 * + CASE WHEN - 25 IS NULL THEN ( - COUNT ( * ) ) END - + 63 END * + COUNT ( * ) + + 56
----
NULL

query II rowsort
SELECT 61, 95 * - 43 AS col1
----
61
-4085

query I rowsort
SELECT 17 * - 40
----
-680

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT ALL - COUNT( DISTINCT - 23 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL - COUNT ( DISTINCT - 23 ) AS col0
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7214
SELECT ALL 62 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-7214
SELECT ALL 62 / - 89
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7216
SELECT DISTINCT - 96 * + 47 * ( + - 98 ) * + - 98 * 33 * + 9 * CASE MIN( - 85 ) WHEN - + 96 * - COUNT( * ) + 81 + + COUNT( * ) * - 37 THEN - 69 * 58 WHEN + COALESCE ( + 16, 36 * + 30 ) THEN NULL END * - + CAST( - + 95 AS SIGNED ) * - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT - 96 * + 47 * ( + - 98 ) * + - 98 * 33 * + 9 * CASE MIN ( - 85 ) WHEN - + 96 * - COUNT ( * ) + 81 + + COUNT ( * ) * - 37 THEN - 69 * 58 WHEN + COALESCE ( + 16, 36 * + 30 ) THEN NULL END * - + CAST ( - + 95 AS INTEGER ) * - 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT DISTINCT MAX( DISTINCT + - 6 ) - 94 AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-7217
SELECT DISTINCT MAX ( DISTINCT + - 6 ) - 94 AS col1
----
-100

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

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

query I rowsort
SELECT 68 + - + 13 AS col1
----
55

query II rowsort
SELECT ALL 49, - 17 AS col1
----
49
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-7221
SELECT 51 - + 45 * + + ( 20 ) + + 36 DIV 42
----
-849

skipif mysql # not compatible
query I rowsort label-7221
SELECT 51 - + 45 * + + ( 20 ) + + 36 / 42
----
-849

query I rowsort
SELECT ( + 63 ) * - ( - ( + 18 ) ) * + 66 * 45
----
3367980

query I rowsort
SELECT - ( + 71 ) + 50
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-7224
SELECT DISTINCT + - 87 DIV - 16 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7224
SELECT DISTINCT + - 87 / - 16 AS col2
----
5

query I rowsort
SELECT + 28 * - 29 * + 91
----
-73892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7226
SELECT ALL + - CAST( NULL AS SIGNED ) + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL + - CAST ( NULL AS INTEGER ) + + 11
----
NULL

query I rowsort
SELECT - 51 + - 67
----
-118

query II rowsort
SELECT DISTINCT + 98, + 4 AS col0
----
98
4

query I rowsort
SELECT 0 + - 81
----
-81

query I rowsort
SELECT - 69 - + + ( + + 81 )
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT DISTINCT - COUNT( + 56 ) + + COUNT( DISTINCT - 63 ) * + ( - 87 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-7231
SELECT DISTINCT - COUNT ( + 56 ) + + COUNT ( DISTINCT - 63 ) * + ( - 87 ) AS col1
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7232
SELECT ALL + NULLIF ( + 54, + CAST( NULL AS SIGNED ) ) + 75 AS col0
----
129

skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL + NULLIF ( + 54, + CAST ( NULL AS INTEGER ) ) + 75 AS col0
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-7233
SELECT - 16 DIV - 47 * - 63 + - 99
----
-99

skipif mysql # not compatible
query I rowsort label-7233
SELECT - 16 / - 47 * - 63 + - 99
----
-99

query I rowsort
SELECT ALL - + 90 * + 0 * - + 88 + + 50
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-7235
SELECT ALL 40 * MAX( - - 8 ) * + - 18 + - 53 + + 5 AS col2, 3
----
-5808
3

skipif mysql # not compatible
query II rowsort label-7235
SELECT ALL 40 * MAX ( - - 8 ) * + - 18 + - 53 + + 5 AS col2, 3
----
-5808
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7236
SELECT + 40 DIV - 50 col2
----
0

skipif mysql # not compatible
query I rowsort label-7236
SELECT + 40 / - 50 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7237
SELECT DISTINCT MAX( DISTINCT - 5 ) DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT MAX ( DISTINCT - 5 ) / + 59
----
0

query I rowsort
SELECT - 87 * - + 74 * + + 73 AS col1
----
469974

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7239
SELECT ALL CASE - 21 WHEN - CAST( NULL AS DECIMAL ) THEN + - 66 ELSE NULL END * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL CASE - 21 WHEN - CAST ( NULL AS REAL ) THEN + - 66 ELSE NULL END * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT - 4 - + + 6 + - COUNT( * ) * + + 18 * 89
----
-1612

skipif mysql # not compatible
query I rowsort label-7240
SELECT - 4 - + + 6 + - COUNT ( * ) * + + 18 * 89
----
-1612

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

skipif mysql # not compatible
query I rowsort label-7241
SELECT + COUNT ( * ) / - 60
----
0

query I rowsort
SELECT ALL ( 79 ) * 48 + - 16 + - - 3 AS col0
----
3779

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT 9 * + + 16 / CASE 41 WHEN - 52 THEN COUNT( DISTINCT + + 74 ) WHEN - - 61 THEN NULL END + + - ( + COUNT( - 73 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7243
SELECT 9 * + + 16 / CASE 41 WHEN - 52 THEN COUNT ( DISTINCT + + 74 ) WHEN - - 61 THEN NULL END + + - ( + COUNT ( - 73 ) )
----
NULL

query I rowsort
SELECT ALL 92 * + 32
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT MAX( + + 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7245
SELECT MAX ( + + 74 ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT - 95 * + 8 + COUNT( * ) + + + 39
----
-720

skipif mysql # not compatible
query I rowsort label-7246
SELECT - 95 * + 8 + COUNT ( * ) + + + 39
----
-720

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT DISTINCT 21 * + + CASE - COUNT( * ) WHEN ( NULLIF ( + - NULLIF ( + 42, COUNT( * ) ), + 84 + + COUNT( * ) + - + SUM( DISTINCT 33 ) - - MIN( + 69 ) * + COUNT( * ) * - ( + 23 ) * + + COUNT( * ) ) ) THEN COUNT( * ) + - + 17 WHEN + + COUNT( * ) + - 32 - 87 / + MIN( - + 18 ) * + + 74 * - - 12 - - - 40 THEN - + COUNT( * ) * - + COUNT( * ) WHEN - + 42 + 48 THEN NULL END * - 60 + - + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT 21 * + + CASE - COUNT ( * ) WHEN ( NULLIF ( + - NULLIF ( + 42, COUNT ( * ) ), + 84 + + COUNT ( * ) + - + SUM ( DISTINCT 33 ) - - MIN ( + 69 ) * + COUNT ( * ) * - ( + 23 ) * + + COUNT ( * ) ) ) THEN COUNT ( * ) + - + 17 WHEN + + COUNT ( * ) + - 32 - 87 / + MIN ( - + 18 ) * + + 74 * - - 12 - - - 40 THEN - + COUNT ( * ) * - + COUNT ( * ) WHEN - + 42 + 48 THEN NULL END * - 60 + - + 20
----
NULL

query I rowsort
SELECT + 50 - - 62 AS col1
----
112

query I rowsort
SELECT - 32 * - 14 + - 3 * - 57 AS col2
----
619

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT + NULLIF ( + 38, - 68 * + + COUNT( * ) ) - - 19
----
57

skipif mysql # not compatible
query I rowsort label-7251
SELECT + NULLIF ( + 38, - 68 * + + COUNT ( * ) ) - - 19
----
57

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

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

query I rowsort
SELECT + 2 + - 67
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7254
SELECT + CASE 57 WHEN 76 THEN ( - CAST( - 92 AS SIGNED ) ) * + - 85 WHEN 45 + + 24 + - 5 + CAST( NULL AS SIGNED ) * + 56 + + 71 * - 39 THEN NULL END + - - CASE 24 WHEN AVG ( - 16 ) + - 94 * 84 + + 70 + + 81 THEN ( 89 ) * NULLIF ( + 57, - COUNT( * ) + 75 ) END * - 9 * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7254
SELECT + CASE 57 WHEN 76 THEN ( - CAST ( - 92 AS INTEGER ) ) * + - 85 WHEN 45 + + 24 + - 5 + CAST ( NULL AS INTEGER ) * + 56 + + 71 * - 39 THEN NULL END + - - CASE 24 WHEN AVG ( - 16 ) + - 94 * 84 + + 70 + + 81 THEN ( 89 ) * NULLIF ( + 57, - COUNT ( * ) + 75 ) END * - 9 * 64
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7255
SELECT + COUNT( * ) * + 64 + - CAST( 6 AS SIGNED ), - ( COUNT( DISTINCT - + 44 ) ) AS col1
----
58
-1

skipif mysql # not compatible
query II rowsort label-7255
SELECT + COUNT ( * ) * + 64 + - CAST ( 6 AS INTEGER ), - ( COUNT ( DISTINCT - + 44 ) ) AS col1
----
58
-1

query I rowsort
SELECT DISTINCT + 95 + + 9 - 99
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7257
SELECT DISTINCT - 84 DIV - 40
----
2

skipif mysql # not compatible
query I rowsort label-7257
SELECT DISTINCT - 84 / - 40
----
2

query I rowsort
SELECT ALL - + 72 + + - 72 AS col2
----
-144

query I rowsort
SELECT ALL + 51 * + - 14 AS col1
----
-714

query I rowsort
SELECT DISTINCT 14 + - 42
----
-28

query I rowsort
SELECT - 53 + 23 + - 16
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7262
SELECT - + 65 * + + ( - 84 ) + + - 73 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7262
SELECT - + 65 * + + ( - 84 ) + + - 73 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 59 + ( 27 ) AS col0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7264
SELECT + 15 + + 65 DIV 93 DIV - - 42 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-7264
SELECT + 15 + + 65 / 93 / - - 42 AS col1
----
15

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

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

query I rowsort
SELECT - 42 + 52 AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7267
SELECT DISTINCT - ( + 55 ) AS col2, MIN( DISTINCT - 89 )
----
-55
-89

skipif mysql # not compatible
query II rowsort label-7267
SELECT DISTINCT - ( + 55 ) AS col2, MIN ( DISTINCT - 89 )
----
-55
-89

query II rowsort
SELECT ALL - ( - 14 ) * + + 61 * - 27 AS col1, 18 AS col0
----
-23058
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7269
SELECT DISTINCT - 27 * - - ( COUNT( * ) ) * - - 79 - - + COUNT( * ) DIV 62 + COUNT( * ) + 11 AS col2
----
-2121

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT - 27 * - - ( COUNT ( * ) ) * - - 79 - - + COUNT ( * ) / 62 + COUNT ( * ) + 11 AS col2
----
-2121

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

query I rowsort
SELECT ALL + 40 * - + 53 AS col0
----
-2120

query I rowsort
SELECT - 34 * - + 34 AS col0
----
1156

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT COALESCE ( + 71, + COUNT( * ) ) * + 45 + + - ( + - 50 )
----
3245

skipif mysql # not compatible
query I rowsort label-7273
SELECT COALESCE ( + 71, + COUNT ( * ) ) * + 45 + + - ( + - 50 )
----
3245

onlyif mysql # DIV for integer division: 
query I rowsort label-7274
SELECT 41 DIV 71 + 6 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-7274
SELECT 41 / 71 + 6 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT + MIN( ALL 53 ) * + COUNT( ALL + 1 ) * - 74 + - + 89 * + 19 + 77 + + 32 + + + COUNT( * ) AS col2
----
-5503

skipif mysql # not compatible
query I rowsort label-7275
SELECT + MIN ( ALL 53 ) * + COUNT ( ALL + 1 ) * - 74 + - + 89 * + 19 + 77 + + 32 + + + COUNT ( * ) AS col2
----
-5503

query I rowsort
SELECT ALL + ( 49 ) * + ( - 97 ) AS col1
----
-4753

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7277
SELECT - 81 + + CASE - 27 WHEN 58 THEN + 28 WHEN + + 35 * + - CAST( NULL AS SIGNED ) THEN NULL END + + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7277
SELECT - 81 + + CASE - 27 WHEN 58 THEN + 28 WHEN + + 35 * + - CAST ( NULL AS INTEGER ) THEN NULL END + + 68 AS col0
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + + 1, 64 ) * - 90 * - + 88
----
7920

query I rowsort
SELECT - 98 * + 78 AS col1
----
-7644

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7280
SELECT - COUNT( * ) * - + COUNT( * ) DIV - ( + MIN( - - 59 ) ) * SUM( ALL + 87 ) + 90 - - 27 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-7280
SELECT - COUNT ( * ) * - + COUNT ( * ) / - ( + MIN ( - - 59 ) ) * SUM ( ALL + 87 ) + 90 - - 27 AS col1
----
117

onlyif mysql # DIV for integer division: 
query II rowsort label-7281
SELECT ALL 45 DIV + ( - 99 ) AS col1, - 97
----
0
-97

skipif mysql # not compatible
query II rowsort label-7281
SELECT ALL 45 / + ( - 99 ) AS col1, - 97
----
0
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7282
SELECT + 66 * - + 27 + NULLIF ( 75, - - 53 * - 5 ) * + 41 + 82 DIV - + 6
----
1280

skipif mysql # not compatible
query I rowsort label-7282
SELECT + 66 * - + 27 + NULLIF ( 75, - - 53 * - 5 ) * + 41 + 82 / - + 6
----
1280

onlyif mysql # DIV for integer division: 
query I rowsort label-7283
SELECT ALL 62 DIV + 20 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7283
SELECT ALL 62 / + 20 AS col0
----
3

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

query I rowsort
SELECT 78 * - - 26 * - - 69 + - - 53 col0
----
139985

query I rowsort
SELECT - 38 * - 24 AS col2
----
912

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT + COALESCE ( - 0, + + COUNT( * ), + + 25 + - + 64 + + + COUNT( ALL + - 10 ) + - + 91 * - + 84 + + NULLIF ( 59, - + 27 / + - 54 ) * + 69 * - + 85 * - 64 * + + ( 58 ) * - - COUNT( * ) + - 91 )
----
0

skipif mysql # not compatible
query I rowsort label-7287
SELECT + COALESCE ( - 0, + + COUNT ( * ), + + 25 + - + 64 + + + COUNT ( ALL + - 10 ) + - + 91 * - + 84 + + NULLIF ( 59, - + 27 / + - 54 ) * + 69 * - + 85 * - 64 * + + ( 58 ) * - - COUNT ( * ) + - 91 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7288
SELECT + ( - CASE 6 WHEN + CAST( + - CAST( 49 AS SIGNED ) AS SIGNED ) THEN - ( + 24 ) * + 37 ELSE NULL END ) + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT + ( - CASE 6 WHEN + CAST ( + - CAST ( 49 AS INTEGER ) AS INTEGER ) THEN - ( + 24 ) * + 37 ELSE NULL END ) + 90
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7289
SELECT ALL + 78 DIV + - 70
----
-1

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL + 78 / + - 70
----
-1

query I rowsort
SELECT DISTINCT 44 * + - COALESCE ( - 34, - 43 )
----
1496

query I rowsort
SELECT DISTINCT - 94 * - 16 + - + 23
----
1481

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7293
SELECT ALL COALESCE ( + ( - 8 ), + - 55 ) * CAST( + 30 AS SIGNED ) * + 51 + 99
----
-12141

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL COALESCE ( + ( - 8 ), + - 55 ) * CAST ( + 30 AS INTEGER ) * + 51 + 99
----
-12141

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT ALL + - NULLIF ( - 45, - + COUNT( * ) * + 65 ) * 40
----
1800

skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL + - NULLIF ( - 45, - + COUNT ( * ) * + 65 ) * 40
----
1800

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7295
SELECT ALL 56 AS col1, + COUNT( + 10 ) DIV 74
----
56
0

skipif mysql # not compatible
query II rowsort label-7295
SELECT ALL 56 AS col1, + COUNT ( + 10 ) / 74
----
56
0

query I rowsort
SELECT + 33 + 22 + + + 67 AS col1
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7297
SELECT DISTINCT - 68 * - 79 + + 82 AS col0, CAST( 12 AS SIGNED )
----
5454
12

skipif mysql # not compatible
query II rowsort label-7297
SELECT DISTINCT - 68 * - 79 + + 82 AS col0, CAST ( 12 AS INTEGER )
----
5454
12

query I rowsort
SELECT + 46 + + 88 * + 38
----
3390

query I rowsort
SELECT CASE + 50 WHEN - 42 * 30 + ( - + 29 ) / 57 THEN - AVG ( ALL - 6 ) END AS col1
----
NULL

query I rowsort
SELECT ALL - 30 + - 21 AS col1
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-7301
SELECT - 57 AS col2, + COALESCE ( - 77, - 6 * - 64 + 4 ) + + 9 DIV 2 AS col0
----
-57
-73

skipif mysql # not compatible
query II rowsort label-7301
SELECT - 57 AS col2, + COALESCE ( - 77, - 6 * - 64 + 4 ) + + 9 / 2 AS col0
----
-57
-73

query I rowsort
SELECT DISTINCT 48 + 28 AS col1
----
76

query I rowsort
SELECT - COALESCE ( + - 97, + 30 * - + 88 ) - + 25 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT ALL - ( ( - COUNT( * ) ) ) - - 28
----
29

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL - ( ( - COUNT ( * ) ) ) - - 28
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT + 40 * + + 68 + COUNT( * ) * - 65 AS col2
----
2655

skipif mysql # not compatible
query I rowsort label-7306
SELECT + 40 * + + 68 + COUNT ( * ) * - 65 AS col2
----
2655

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7307
SELECT ALL + 78 DIV - + 60 + + + NULLIF ( + COALESCE ( + 17, - - 40 * + SUM( 59 ) ), - + 15 ) + - 58 * - COALESCE ( - COUNT( * ), 62 ) + 89 DIV 46, COUNT( * ) AS col1
----
-41
1

skipif mysql # not compatible
query II rowsort label-7307
SELECT ALL + 78 / - + 60 + + + NULLIF ( + COALESCE ( + 17, - - 40 * + SUM ( 59 ) ), - + 15 ) + - 58 * - COALESCE ( - COUNT ( * ), 62 ) + 89 / 46, COUNT ( * ) AS col1
----
-41
1

query I rowsort
SELECT ALL 32 - + 72 * + 16 AS col0
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT + 6 * 43 + - + 2 * - COUNT( * ) AS col0
----
260

skipif mysql # not compatible
query I rowsort label-7309
SELECT + 6 * 43 + - + 2 * - COUNT ( * ) AS col0
----
260

query I rowsort
SELECT 52 * - 98
----
-5096

onlyif mysql # DIV for integer division: 
query I rowsort label-7311
SELECT 56 DIV - - 19
----
2

skipif mysql # not compatible
query I rowsort label-7311
SELECT 56 / - - 19
----
2

query I rowsort
SELECT ALL - COALESCE ( + 99, - 82 ) AS col2
----
-99

query II rowsort
SELECT DISTINCT - 78 AS col2, ( 36 ) AS col2
----
-78
36

query II rowsort
SELECT ALL - 81, 67 AS col2
----
-81
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT ALL - MAX( - 49 )
----
49

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL - MAX ( - 49 )
----
49

query II rowsort
SELECT + 72, + 21 AS col2
----
72
21

query I rowsort
SELECT 35 + - 66 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT 42 - - COUNT( 29 ) + 43 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-7318
SELECT 42 - - COUNT ( 29 ) + 43 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT SUM( 48 ) * - MAX( + 63 ) * + ( - + 9 ) * - COALESCE ( - 57, 91 ) + - 57 AS col2
----
1551255

skipif mysql # not compatible
query I rowsort label-7319
SELECT SUM ( 48 ) * - MAX ( + 63 ) * + ( - + 9 ) * - COALESCE ( - 57, 91 ) + - 57 AS col2
----
1551255

onlyif mysql # DIV for integer division: 
query I rowsort label-7320
SELECT 51 + - 36 * + 12 * - ( - 56 ) + - ( - 44 ) + 89 DIV - 47 AS col1
----
-24098

skipif mysql # not compatible
query I rowsort label-7320
SELECT 51 + - 36 * + 12 * - ( - 56 ) + - ( - 44 ) + 89 / - 47 AS col1
----
-24098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7321
SELECT ALL - 20 + - CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL - 20 + - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT MIN( DISTINCT - 4 ) * COUNT( * ) + - - 12 * 73 AS col1
----
872

skipif mysql # not compatible
query I rowsort label-7322
SELECT MIN ( DISTINCT - 4 ) * COUNT ( * ) + - - 12 * 73 AS col1
----
872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7323
SELECT ALL - ( - + COUNT( * ) ) + + CAST( NULLIF ( 75, + COUNT( * ) ) AS SIGNED ) * 95 + - + COUNT( + 57 ) AS col0, 86 AS col1
----
7125
86

skipif mysql # not compatible
query II rowsort label-7323
SELECT ALL - ( - + COUNT ( * ) ) + + CAST ( NULLIF ( 75, + COUNT ( * ) ) AS INTEGER ) * 95 + - + COUNT ( + 57 ) AS col0, 86 AS col1
----
7125
86

query I rowsort
SELECT + 48 * 12 + - - ( - - 53 )
----
629

query I rowsort
SELECT ALL + 47 + - + 21 AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7326
SELECT DISTINCT - NULLIF ( + 13, + CAST( NULL AS SIGNED ) * - ( + 73 ) + - 96 + - COUNT( * ) - 23 + + - NULLIF ( + 6, - 71 * 36 ) * 23 * - 1 )
----
-13

skipif mysql # not compatible
query I rowsort label-7326
SELECT DISTINCT - NULLIF ( + 13, + CAST ( NULL AS INTEGER ) * - ( + 73 ) + - 96 + - COUNT ( * ) - 23 + + - NULLIF ( + 6, - 71 * 36 ) * 23 * - 1 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT ALL - 20 + 57 * - 74 * + NULLIF ( - 18, - 75 / 73 * - COUNT( * ) ) AS col2
----
75904

skipif mysql # not compatible
query I rowsort label-7327
SELECT ALL - 20 + 57 * - 74 * + NULLIF ( - 18, - 75 / 73 * - COUNT ( * ) ) AS col2
----
75904

query I rowsort
SELECT 86 - + 87 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7329
SELECT DISTINCT - 1 DIV - + ( + - MAX( DISTINCT 42 ) ) * - 30
----
0

skipif mysql # not compatible
query I rowsort label-7329
SELECT DISTINCT - 1 / - + ( + - MAX ( DISTINCT 42 ) ) * - 30
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7330
SELECT - 47 AS col0, ( + 93 ) DIV MIN( ALL + - 20 ) * + COUNT( * ) + - - ( + COUNT( * ) ) - 51
----
-47
-54

skipif mysql # not compatible
query II rowsort label-7330
SELECT - 47 AS col0, ( + 93 ) / MIN ( ALL + - 20 ) * + COUNT ( * ) + - - ( + COUNT ( * ) ) - 51
----
-47
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7331
SELECT - 88 + - CAST( 67 AS SIGNED ) + SUM( DISTINCT 33 ) + + 48 * + 37 / 57 + - ( - CAST( NULL AS SIGNED ) ) - - CASE + + ( + 79 ) WHEN - 35 + - - 61 THEN 44 * - 21 ELSE NULL END + + 53 / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7331
SELECT - 88 + - CAST ( 67 AS INTEGER ) + SUM ( DISTINCT 33 ) + + 48 * + 37 / 57 + - ( - CAST ( NULL AS INTEGER ) ) - - CASE + + ( + 79 ) WHEN - 35 + - - 61 THEN 44 * - 21 ELSE NULL END + + 53 / COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7332
SELECT COUNT( * ) * + 59 AS col2, CAST( - 76 AS SIGNED ) * + - 26
----
59
1976

skipif mysql # not compatible
query II rowsort label-7332
SELECT COUNT ( * ) * + 59 AS col2, CAST ( - 76 AS INTEGER ) * + - 26
----
59
1976

query I rowsort
SELECT 47 + + + 0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7334
SELECT DISTINCT - 41 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-7334
SELECT DISTINCT - 41 / - 71
----
0

query II rowsort
SELECT ALL + COALESCE ( - - 24, - 94 ) - - 93 AS col0, + 45 * + - 87
----
117
-3915

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

skipif mysql # not compatible
query I rowsort label-7336
SELECT CAST ( NULL AS INTEGER ) * 38 * - 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7337
SELECT ALL - 67 AS col1, + CASE AVG ( DISTINCT 57 ) WHEN + - ( CAST( - COALESCE ( + ( + COUNT( * ) ), + - MIN( - NULLIF ( - 88, - 69 * + + 28 + - + 91 + + + 73 ) ) ) AS DECIMAL ) ) THEN - + 43 END + 73 * + MIN( 56 )
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-7337
SELECT ALL - 67 AS col1, + CASE AVG ( DISTINCT 57 ) WHEN + - ( CAST ( - COALESCE ( + ( + COUNT ( * ) ), + - MIN ( - NULLIF ( - 88, - 69 * + + 28 + - + 91 + + + 73 ) ) ) AS REAL ) ) THEN - + 43 END + 73 * + MIN ( 56 )
----
-67
NULL

query I rowsort
SELECT 57 + 91 + - + 85
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-7339
SELECT - 20, - 69 * + MIN( ALL - 40 ) AS col0
----
-20
2760

skipif mysql # not compatible
query II rowsort label-7339
SELECT - 20, - 69 * + MIN ( ALL - 40 ) AS col0
----
-20
2760

query II rowsort
SELECT 34, + 64 col0
----
34
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT COUNT( * ) + - 0 * + 86
----
1

skipif mysql # not compatible
query I rowsort label-7341
SELECT COUNT ( * ) + - 0 * + 86
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT - COUNT( * ) * + + 35 + + - ( - 10 ) * + + COALESCE ( - COUNT( DISTINCT + + 49 ), - 23 + COUNT( * ) * - MAX( DISTINCT - 53 ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-7342
SELECT - COUNT ( * ) * + + 35 + + - ( - 10 ) * + + COALESCE ( - COUNT ( DISTINCT + + 49 ), - 23 + COUNT ( * ) * - MAX ( DISTINCT - 53 ) ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT ALL - NULLIF ( - SUM( ALL + 76 ), + - 54 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL - NULLIF ( - SUM ( ALL + 76 ), + - 54 ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-7344
SELECT - COUNT( * ), 31 col1
----
-1
31

skipif mysql # not compatible
query II rowsort label-7344
SELECT - COUNT ( * ), 31 col1
----
-1
31

query II rowsort
SELECT - + 39 col0, NULLIF ( - COALESCE ( 87, - - 82 ), - 97 )
----
-39
-87

query I rowsort
SELECT 36 + - - 16 AS col1
----
52

query I rowsort
SELECT ALL 69 * - 71
----
-4899

query I rowsort
SELECT 42 + 38
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7349
SELECT DISTINCT 98 DIV + COALESCE ( - 89, 8, + 9 DIV - 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT 98 / + COALESCE ( - 89, 8, + 9 / - 72 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7350
SELECT 14 DIV 23 * NULLIF ( 1, - - COUNT( * ) * + 35 * + + COUNT( * ) + - 9 ) + - COUNT( + - 18 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7350
SELECT 14 / 23 * NULLIF ( 1, - - COUNT ( * ) * + 35 * + + COUNT ( * ) + - 9 ) + - COUNT ( + - 18 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7351
SELECT ALL CASE - COUNT( * ) WHEN + CAST( 1 AS SIGNED ) THEN - 39 + - 81 + + + 42 / ( - COUNT( * ) ) END * CAST( NULL AS DECIMAL ) * - COUNT( * ) + + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL CASE - COUNT ( * ) WHEN + CAST ( 1 AS INTEGER ) THEN - 39 + - 81 + + + 42 / ( - COUNT ( * ) ) END * CAST ( NULL AS REAL ) * - COUNT ( * ) + + 43 AS col2
----
NULL

query I rowsort
SELECT 51 * - + ( + 21 ) AS col1
----
-1071

query I rowsort
SELECT ALL ( + - 85 ) * - 64 * - 9 + + + 32
----
-48928

onlyif mysql # aggregate syntax: 
query II rowsort label-7354
SELECT COUNT( DISTINCT + + 98 ) AS col1, + 76 AS col2
----
1
76

skipif mysql # not compatible
query II rowsort label-7354
SELECT COUNT ( DISTINCT + + 98 ) AS col1, + 76 AS col2
----
1
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7355
SELECT MIN( DISTINCT + CAST( 59 AS SIGNED ) ) DIV + - COUNT( * ) + MIN( 73 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7355
SELECT MIN ( DISTINCT + CAST ( 59 AS INTEGER ) ) / + - COUNT ( * ) + MIN ( 73 ) AS col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7356
SELECT ALL 1 * + - COALESCE ( CAST( NULL AS SIGNED ), + ( - - 77 ) * + COALESCE ( 52, - 76, + CAST( NULL AS SIGNED ) + + COUNT( * ), - 50 ) + 51 ) * - + 11 + - COUNT( * )
----
44604

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL 1 * + - COALESCE ( CAST ( NULL AS INTEGER ), + ( - - 77 ) * + COALESCE ( 52, - 76, + CAST ( NULL AS INTEGER ) + + COUNT ( * ), - 50 ) + 51 ) * - + 11 + - COUNT ( * )
----
44604

query I rowsort
SELECT ALL - 16 + - 18 + - 17
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT MIN( ALL + 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-7358
SELECT MIN ( ALL + 36 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT COUNT( * ) * + - 70 + - - COUNT( * ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-7359
SELECT COUNT ( * ) * + - 70 + - - COUNT ( * ) AS col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7360
SELECT ALL - - CAST( + 94 AS SIGNED ) * + 66 + + 77 AS col2
----
6281

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL - - CAST ( + 94 AS INTEGER ) * + 66 + + 77 AS col2
----
6281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7361
SELECT + CAST( 18 AS SIGNED ) * + - 7 + - NULLIF ( - 4, + 81 ) + 87 DIV + 49 AS col0, - MAX( DISTINCT + 32 ) + 46
----
-121
14

skipif mysql # not compatible
query II rowsort label-7361
SELECT + CAST ( 18 AS INTEGER ) * + - 7 + - NULLIF ( - 4, + 81 ) + 87 / + 49 AS col0, - MAX ( DISTINCT + 32 ) + 46
----
-121
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT + ( NULLIF ( - MAX( 9 ), - - 71 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-7362
SELECT + ( NULLIF ( - MAX ( 9 ), - - 71 ) )
----
-9

query I rowsort
SELECT ALL - ( - + 87 ) * + 40 + + 84 AS col0
----
3564

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT ALL + 48 - - ( + - MIN( 3 ) )
----
45

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL + 48 - - ( + - MIN ( 3 ) )
----
45

query I rowsort
SELECT DISTINCT + + 69 - 6 + 56
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT - 61 * + - 57 + - 73 + COUNT( * ) AS col1
----
3405

skipif mysql # not compatible
query I rowsort label-7366
SELECT - 61 * + - 57 + - 73 + COUNT ( * ) AS col1
----
3405

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT - + 76 + + NULLIF ( - + COUNT( * ), + 18 / 80 * + - 92 * + 92 * + ( + 39 ) * - + COUNT( * ) )
----
-77

skipif mysql # not compatible
query I rowsort label-7367
SELECT - + 76 + + NULLIF ( - + COUNT ( * ), + 18 / 80 * + - 92 * + 92 * + ( + 39 ) * - + COUNT ( * ) )
----
-77

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7369
SELECT ALL - 96 DIV COUNT( * ) col2, 90 * - 28 * - 60 DIV ( + COALESCE ( + COUNT( * ), - - 97 DIV + + MAX( ALL + - 87 ) DIV - + ( 61 ) ) )
----
-96
151200

skipif mysql # not compatible
query II rowsort label-7369
SELECT ALL - 96 / COUNT ( * ) col2, 90 * - 28 * - 60 / ( + COALESCE ( + COUNT ( * ), - - 97 / + + MAX ( ALL + - 87 ) / - + ( 61 ) ) )
----
-96
151200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7370
SELECT - + 32 - - + CASE + 74 WHEN + SUM( DISTINCT 31 ) * + - ( + + 33 ) + - - 54 THEN + 56 + + ( CAST( - 65 AS SIGNED ) ) - - - SUM( ALL - 85 ) * - CASE + + NULLIF ( 69, + + COUNT( * ) ) WHEN + + 89 THEN NULL ELSE + CAST( NULL AS SIGNED ) END WHEN + 92 THEN NULL END + - + ( + + ( - CASE 78 WHEN - + 21 - - 16 THEN - COUNT( * ) + 31 + - COUNT( * ) / 97 * + 67 * 83 ELSE NULL END ) ) * - + 37 + - + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT - + 32 - - + CASE + 74 WHEN + SUM ( DISTINCT 31 ) * + - ( + + 33 ) + - - 54 THEN + 56 + + ( CAST ( - 65 AS INTEGER ) ) - - - SUM ( ALL - 85 ) * - CASE + + NULLIF ( 69, + + COUNT ( * ) ) WHEN + + 89 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END WHEN + 92 THEN NULL END + - + ( + + ( - CASE 78 WHEN - + 21 - - 16 THEN - COUNT ( * ) + 31 + - COUNT ( * ) / 97 * + 67 * 83 ELSE NULL END ) ) * - + 37 + - + 94
----
NULL

query I rowsort
SELECT ALL + ( + 33 ) col1
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7372
SELECT DISTINCT 50 * CAST( NULL AS DECIMAL ) + 32 - + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7372
SELECT DISTINCT 50 * CAST ( NULL AS REAL ) + 32 - + 65 AS col0
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 18, 26 ) * + 59 AS col2
----
-1062

onlyif mysql # DIV for integer division: 
query I rowsort label-7374
SELECT - 24 DIV 7
----
-3

skipif mysql # not compatible
query I rowsort label-7374
SELECT - 24 / 7
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7375
SELECT ALL 28 * + + ( + CAST( NULL AS SIGNED ) ) * + 24 * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL 28 * + + ( + CAST ( NULL AS INTEGER ) ) * + 24 * 68
----
NULL

query I rowsort
SELECT - 34 * - 18
----
612

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT ALL 45 + + COUNT( * ) + + - ( - + MIN( ALL - - 79 ) ) * 95 + + 84 AS col2
----
7635

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL 45 + + COUNT ( * ) + + - ( - + MIN ( ALL - - 79 ) ) * 95 + + 84 AS col2
----
7635

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT DISTINCT - COALESCE ( + COUNT( * ), - 41 ) * 22
----
-22

skipif mysql # not compatible
query I rowsort label-7378
SELECT DISTINCT - COALESCE ( + COUNT ( * ), - 41 ) * 22
----
-22

query I rowsort
SELECT ALL - 92 * + COALESCE ( + 27, + + 10 * 17 )
----
-2484

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7381
SELECT - COALESCE ( + + 82, - 56 + - 70, 63 * CAST( NULL AS SIGNED ), + 82 - + 42 - + 35 DIV - COALESCE ( - + 49, - + SUM( ALL + - NULLIF ( 72, - 64 ) ) * 40 + + 48 ) * 65 ), 75 + - COALESCE ( + 34, - + 91 + + ( 84 ), + - NULLIF ( + COUNT( * ), - + 49 ) * + ( - COUNT( * ) ) * NULLIF ( - COUNT( * ), - 8 ) DIV 12 * CAST( 77 AS SIGNED ) * + 78 * 33 ) AS col2
----
-82
41

skipif mysql # not compatible
query II rowsort label-7381
SELECT - COALESCE ( + + 82, - 56 + - 70, 63 * CAST ( NULL AS INTEGER ), + 82 - + 42 - + 35 / - COALESCE ( - + 49, - + SUM ( ALL + - NULLIF ( 72, - 64 ) ) * 40 + + 48 ) * 65 ), 75 + - COALESCE ( + 34, - + 91 + + ( 84 ), + - NULLIF ( + COUNT ( * ), - + 49 ) * + ( - COUNT ( * ) ) * NULLIF ( - COUNT ( * ), - 8 ) / 12 * CAST ( 77 AS INTEGER ) * + 78 * 33 ) AS col2
----
-82
41

query II rowsort
SELECT 78 col1, 42
----
78
42

query I rowsort
SELECT DISTINCT 44 + + 82 AS col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT ALL COUNT( * ) * + - ( + - 32 ) + 52 + + 75 * + COUNT( * ) AS col0
----
159

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL COUNT ( * ) * + - ( + - 32 ) + 52 + + 75 * + COUNT ( * ) AS col0
----
159

query I rowsort
SELECT ALL 16 * + 38 + CASE + - 75 WHEN + - 36 THEN NULL ELSE + - 5 END AS col0
----
603

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

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

query I rowsort
SELECT ALL 43 * - COALESCE ( - + 19, + 37 ) AS col2
----
817

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7390
SELECT + COUNT( + CAST( + 90 AS SIGNED ) ) + - - ( - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-7390
SELECT + COUNT ( + CAST ( + 90 AS INTEGER ) ) + - - ( - COUNT ( * ) )
----
0

query I rowsort
SELECT + 8 * 46 AS col0
----
368

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

query I rowsort
SELECT + + 37 + + + 66 * + + 18 AS col0
----
1225

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT ALL - 41 * + 63 * + COUNT( * ) - COUNT( DISTINCT - 46 ) * - 66 AS col1
----
-2517

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL - 41 * + 63 * + COUNT ( * ) - COUNT ( DISTINCT - 46 ) * - 66 AS col1
----
-2517

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

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

query I rowsort
SELECT + + CASE 39 WHEN + 92 THEN NULL ELSE + 8 END * 5 + + 67 AS col2
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7397
SELECT ALL + 52 DIV + MIN( ( 52 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL + 52 / + MIN ( ( 52 ) )
----
1

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

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

query I rowsort
SELECT + 93 * + - 98
----
-9114

query I rowsort
SELECT ALL + 2 * + + 6
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT ALL + + COUNT( ALL 55 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL + + COUNT ( ALL 55 ) AS col0
----
1

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

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

query I rowsort
SELECT - - 5 * - - 30 + + 61 - + 86 * + - 60 * + 60 * + - 41 AS col2
----
-12693389

onlyif mysql # aggregate syntax: 
query II rowsort label-7404
SELECT - - 90 * COUNT( DISTINCT + - 50 ) + 2, - COUNT( DISTINCT + - 2 ) AS col2
----
92
-1

skipif mysql # not compatible
query II rowsort label-7404
SELECT - - 90 * COUNT ( DISTINCT + - 50 ) + 2, - COUNT ( DISTINCT + - 2 ) AS col2
----
92
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-7405
SELECT 82 col1, 49 DIV - 45 col1
----
82
-1

skipif mysql # not compatible
query II rowsort label-7405
SELECT 82 col1, 49 / - 45 col1
----
82
-1

query II rowsort
SELECT ALL - 76 AS col0, + 80 AS col1
----
-76
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7407
SELECT - + 86 + - COALESCE ( - 74, + 62 DIV - 56 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-7407
SELECT - + 86 + - COALESCE ( - 74, + 62 / - 56 ) AS col1
----
-12

query I rowsort
SELECT ALL 78 + + - 44 * + - 84
----
3774

query II rowsort
SELECT - 67 AS col2, + 68 - + 8
----
-67
60

onlyif mysql # aggregate syntax: 
query II rowsort label-7410
SELECT DISTINCT - 73 + 68 + COUNT( + 41 ) + + COUNT( * ) + - 84 * + COALESCE ( - 54, 9 ) + - 25 * - 75, - 61 * + COUNT( * ) AS col1
----
6408
-61

skipif mysql # not compatible
query II rowsort label-7410
SELECT DISTINCT - 73 + 68 + COUNT ( + 41 ) + + COUNT ( * ) + - 84 * + COALESCE ( - 54, 9 ) + - 25 * - 75, - 61 * + COUNT ( * ) AS col1
----
6408
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7411
SELECT - COUNT( * ) DIV + + 67 AS col1, 7 * + - 16 * - 15 AS col1
----
0
1680

skipif mysql # not compatible
query II rowsort label-7411
SELECT - COUNT ( * ) / + + 67 AS col1, 7 * + - 16 * - 15 AS col1
----
0
1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7412
SELECT ALL + 51 + CAST( - 72 AS SIGNED ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL + 51 + CAST ( - 72 AS INTEGER ) col2
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-7413
SELECT - 16 + 53 + - - 75 * 82 - + COUNT( * ) AS col2, 23 AS col0
----
6186
23

skipif mysql # not compatible
query II rowsort label-7413
SELECT - 16 + 53 + - - 75 * 82 - + COUNT ( * ) AS col2, 23 AS col0
----
6186
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7414
SELECT - COALESCE ( + - 40, COUNT( * ) + 65 * + - 23 DIV + 50 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-7414
SELECT - COALESCE ( + - 40, COUNT ( * ) + 65 * + - 23 / + 50 ) AS col1
----
40

query I rowsort
SELECT - 92 + - 35
----
-127

onlyif mysql # DIV for integer division: 
query II rowsort label-7416
SELECT + 98 - + 36 AS col1, - COALESCE ( + - 0, 24, 57 + - - 56 ) DIV - 68 + - - 32
----
62
32

skipif mysql # not compatible
query II rowsort label-7416
SELECT + 98 - + 36 AS col1, - COALESCE ( + - 0, 24, 57 + - - 56 ) / - 68 + - - 32
----
62
32

query I rowsort
SELECT DISTINCT COALESCE ( - 24, - 49 )
----
-24

query I rowsort
SELECT DISTINCT + 33 + - 29 col2
----
4

query I rowsort
SELECT - ( - + 24 ) * + 32 AS col0
----
768

query I rowsort
SELECT - ( - + 79 ) + + 88 AS col2
----
167

query I rowsort
SELECT ALL - 61 * + - 46 AS col1
----
2806

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7423
SELECT + SUM( - 81 ) AS col2, 69 AS col2
----
-81
69

skipif mysql # not compatible
query II rowsort label-7423
SELECT + SUM ( - 81 ) AS col2, 69 AS col2
----
-81
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT DISTINCT - CASE - ( + - 66 ) WHEN + 78 * - 55 + + - 78 THEN - ( + - NULLIF ( 24, 2 + - COUNT( * ) ) ) WHEN + - 69 + - 55 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT - CASE - ( + - 66 ) WHEN + 78 * - 55 + + - 78 THEN - ( + - NULLIF ( 24, 2 + - COUNT ( * ) ) ) WHEN + - 69 + - 55 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 98 * - 3 + - 55 col0
----
-349

onlyif mysql # DIV for integer division: 
query I rowsort label-7426
SELECT + 77 DIV 1 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-7426
SELECT + 77 / 1 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT DISTINCT - 62 * + COUNT( * ) + + 89 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-7427
SELECT DISTINCT - 62 * + COUNT ( * ) + + 89 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT + COALESCE ( + - 55, - - ( - COUNT( * ) ), + 64 ) * + 95 + + - 67 * + - 59
----
-1272

skipif mysql # not compatible
query I rowsort label-7428
SELECT + COALESCE ( + - 55, - - ( - COUNT ( * ) ), + 64 ) * + 95 + + - 67 * + - 59
----
-1272

onlyif mysql # DIV for integer division: 
query I rowsort label-7429
SELECT - 43 DIV + ( 95 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7429
SELECT - 43 / + ( 95 ) AS col1
----
0

query I rowsort
SELECT 53 * ( + 36 ) AS col2
----
1908

query I rowsort
SELECT DISTINCT 83 * 18
----
1494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7432
SELECT MIN( CAST( + 71 AS SIGNED ) ) * 66 - - 88 - - + 88 col1
----
4862

skipif mysql # not compatible
query I rowsort label-7432
SELECT MIN ( CAST ( + 71 AS INTEGER ) ) * 66 - - 88 - - + 88 col1
----
4862

query I rowsort
SELECT - ( - - 61 ) + + ( - ( - + 24 ) ) AS col0
----
-37

query I rowsort
SELECT + - 1 col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7435
SELECT ALL - MAX( DISTINCT 46 ) + + 57 + + CAST( NULL AS SIGNED ) * + - ( + 63 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL - MAX ( DISTINCT 46 ) + + 57 + + CAST ( NULL AS INTEGER ) * + - ( + 63 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT SUM( DISTINCT 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-7436
SELECT SUM ( DISTINCT 34 ) AS col1
----
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT - COUNT( * ) + + 45 - ( - - ( + 59 ) ) + 98
----
83

skipif mysql # not compatible
query I rowsort label-7438
SELECT - COUNT ( * ) + + 45 - ( - - ( + 59 ) ) + 98
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7439
SELECT - CASE - 99 WHEN AVG ( - 24 ) * - COUNT( * ) - + MAX( DISTINCT + CAST( + - 46 AS SIGNED ) ) THEN + CASE 49 WHEN + 36 * - + CASE - 69 WHEN + ( - + 29 ) / - - MAX( ( + - ( - - 86 ) ) ) * - 4 * + COALESCE ( - + 5, + 96 ) * + 64 + + - 77 THEN MAX( ALL - - 56 ) ELSE NULL END + - 93 + + - CASE - 12 WHEN + + 22 THEN - - 61 END * - 44 * 42 * + 2 * 11 THEN 16 ELSE NULL END * - 24 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7439
SELECT - CASE - 99 WHEN AVG ( - 24 ) * - COUNT ( * ) - + MAX ( DISTINCT + CAST ( + - 46 AS INTEGER ) ) THEN + CASE 49 WHEN + 36 * - + CASE - 69 WHEN + ( - + 29 ) / - - MAX ( ( + - ( - - 86 ) ) ) * - 4 * + COALESCE ( - + 5, + 96 ) * + 64 + + - 77 THEN MAX ( ALL - - 56 ) ELSE NULL END + - 93 + + - CASE - 12 WHEN + + 22 THEN - - 61 END * - 44 * 42 * + 2 * 11 THEN 16 ELSE NULL END * - 24 END AS col0
----
NULL

query I rowsort
SELECT 1 + 2 + + + 66 - + 28
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT ALL 74 + + 68 - - COUNT( * ) AS col0
----
143

skipif mysql # not compatible
query I rowsort label-7441
SELECT ALL 74 + + 68 - - COUNT ( * ) AS col0
----
143

query I rowsort
SELECT 77 * + 21
----
1617

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT 90 * + - NULLIF ( + - 5, + - COUNT( * ) ) AS col2
----
450

skipif mysql # not compatible
query I rowsort label-7444
SELECT 90 * + - NULLIF ( + - 5, + - COUNT ( * ) ) AS col2
----
450

onlyif mysql # aggregate syntax: 
query II rowsort label-7445
SELECT - 77 AS col0, COUNT( + - 96 ) AS col0
----
-77
1

skipif mysql # not compatible
query II rowsort label-7445
SELECT - 77 AS col0, COUNT ( + - 96 ) AS col0
----
-77
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7446
SELECT CAST( - + COALESCE ( - 79, - 32 * - 96 ) AS SIGNED ) - + + 18 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7446
SELECT CAST ( - + COALESCE ( - 79, - 32 * - 96 ) AS INTEGER ) - + + 18 AS col2
----
61

onlyif mysql # DIV for integer division: 
query II rowsort label-7447
SELECT - 31, 46 DIV + + 46 AS col1
----
-31
1

skipif mysql # not compatible
query II rowsort label-7447
SELECT - 31, 46 / + + 46 AS col1
----
-31
1

query I rowsort
SELECT 76 - + 79
----
-3

query I rowsort
SELECT 80 * + 36 AS col1
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT ALL - MIN( 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL - MIN ( 58 ) AS col1
----
-58

query I rowsort
SELECT 2 * + 72 AS col0
----
144

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT - COUNT( * ) * + 31 + 55 * + 41
----
2224

skipif mysql # not compatible
query I rowsort label-7453
SELECT - COUNT ( * ) * + 31 + 55 * + 41
----
2224

query II rowsort
SELECT + 22 col0, + 30 * + 26 AS col2
----
22
780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7455
SELECT 37 * MAX( - CAST( + 36 AS SIGNED ) ) * 29 AS col2
----
-38628

skipif mysql # not compatible
query I rowsort label-7455
SELECT 37 * MAX ( - CAST ( + 36 AS INTEGER ) ) * 29 AS col2
----
-38628

query I rowsort
SELECT ALL + + 12 + - - 29 AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7457
SELECT - 41 + + + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
-40

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

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

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT + 72 + + COUNT ( * ) AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7459
SELECT CAST( - 34 AS SIGNED ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-7459
SELECT CAST ( - 34 AS INTEGER ) col1
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-7460
SELECT DISTINCT 16 + - + COALESCE ( + + 70, + COUNT( * ) * + + 36, - - 58 - + 83 ) + + - 81, 48 - + 87 + + - ( + 10 ) col2
----
-135
-49

skipif mysql # not compatible
query II rowsort label-7460
SELECT DISTINCT 16 + - + COALESCE ( + + 70, + COUNT ( * ) * + + 36, - - 58 - + 83 ) + + - 81, 48 - + 87 + + - ( + 10 ) col2
----
-135
-49

query I rowsort
SELECT 95 * - 75 col0
----
-7125

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

skipif mysql # not compatible
query I rowsort label-7462
SELECT + 4 + - + 51 + COUNT ( * ) AS col0
----
-46

query I rowsort
SELECT DISTINCT - CASE + - 35 WHEN + 49 THEN 74 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7464
SELECT DISTINCT 83 + - 67 * COUNT( * ) DIV - - 97 * - COUNT( * ) + + 60
----
143

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT 83 + - 67 * COUNT ( * ) / - - 97 * - COUNT ( * ) + + 60
----
143

query II rowsort
SELECT 56 AS col2, 39 * + - 8 col2
----
56
-312

onlyif mysql # aggregate syntax: 
query II rowsort label-7466
SELECT ALL 53, COUNT( * ) col0
----
53
1

skipif mysql # not compatible
query II rowsort label-7466
SELECT ALL 53, COUNT ( * ) col0
----
53
1

query II rowsort
SELECT 64 AS col0, - 76 * + 17 * - 99 * - 99
----
64
-12662892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7468
SELECT ALL + CAST( + 5 AS SIGNED ) * + 45 - 36 AS col2
----
189

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL + CAST ( + 5 AS INTEGER ) * + 45 - 36 AS col2
----
189

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7470
SELECT ALL 57 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL 57 / - 45
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL 15 - COUNT( * ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL 15 - COUNT ( * ) AS col2
----
14

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

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

query I rowsort
SELECT 61 * + 57 AS col2
----
3477

query II rowsort
SELECT 1 AS col1, 10
----
1
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7475
SELECT + ( - - 42 ) + - - MIN( - 54 ) col1, 28 + + 49 AS col1
----
-12
77

skipif mysql # not compatible
query II rowsort label-7475
SELECT + ( - - 42 ) + - - MIN ( - 54 ) col1, 28 + + 49 AS col1
----
-12
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7476
SELECT 74, - MIN( - - 28 ) AS col2
----
74
-28

skipif mysql # not compatible
query II rowsort label-7476
SELECT 74, - MIN ( - - 28 ) AS col2
----
74
-28

query I rowsort
SELECT + 79 + 55 AS col0
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7478
SELECT + CAST( + ( + 90 ) AS SIGNED ) + - 2
----
88

skipif mysql # not compatible
query I rowsort label-7478
SELECT + CAST ( + ( + 90 ) AS INTEGER ) + - 2
----
88

query I rowsort
SELECT - 49 + + + 39
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7480
SELECT + CAST( NULL AS SIGNED ) * 52 * - - AVG ( + 11 ), - 58 + ( - + 33 ) + COALESCE ( + 68, + 37 ) / + 48 / - - COUNT( * ) + + CAST( NULL AS SIGNED ) col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7480
SELECT + CAST ( NULL AS INTEGER ) * 52 * - - AVG ( + 11 ), - 58 + ( - + 33 ) + COALESCE ( + 68, + 37 ) / + 48 / - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) col1
----
NULL
NULL

query II rowsort
SELECT - 50, 11 AS col0
----
-50
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7482
SELECT DISTINCT - 14 * - 14 * + 78 + - 1 + + NULLIF ( 1, + 81 ) + CAST( - 87 AS SIGNED ) + + 18 * - 74 * - + 45 * + + 85 AS col2
----
5110101

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT - 14 * - 14 * + 78 + - 1 + + NULLIF ( 1, + 81 ) + CAST ( - 87 AS INTEGER ) + + 18 * - 74 * - + 45 * + + 85 AS col2
----
5110101

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT + - MAX( 57 ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-7483
SELECT + - MAX ( 57 ) col0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7484
SELECT ALL - + 47 DIV + 93 * COUNT( * ) + + 85 + - 69
----
16

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL - + 47 / + 93 * COUNT ( * ) + + 85 + - 69
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT DISTINCT - 85 * + 25 + + 29 + - + COUNT( * )
----
-2097

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT - 85 * + 25 + + 29 + - + COUNT ( * )
----
-2097

query I rowsort
SELECT ALL - + CASE 2 WHEN + 8 * + 50 THEN NULL ELSE + 23 END * + - 85 * - 83 + 22 AS col1
----
-162243

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT DISTINCT + NULLIF ( - 64, + - 12 * + NULLIF ( + ( - 37 ), 71 - - COUNT( * ) + + 12 ) - - 14 )
----
-64

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT + NULLIF ( - 64, + - 12 * + NULLIF ( + ( - 37 ), 71 - - COUNT ( * ) + + 12 ) - - 14 )
----
-64

query I rowsort
SELECT - - 99 * 80 - 86 + 15 * - ( + 86 ) + - 30 + + - 75 AS col0
----
6439

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

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

query I rowsort
SELECT ALL - - 5 * 23
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-7491
SELECT + NULLIF ( 96, - 36 ) DIV + 44
----
2

skipif mysql # not compatible
query I rowsort label-7491
SELECT + NULLIF ( 96, - 36 ) / + 44
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT - 88 * - COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-7492
SELECT - 88 * - COUNT ( * ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-7493
SELECT + COUNT( * ), 68 col1
----
1
68

skipif mysql # not compatible
query II rowsort label-7493
SELECT + COUNT ( * ), 68 col1
----
1
68

query I rowsort
SELECT ALL + 48 * 85 + - 95 * - 15 * 18 AS col1
----
29730

query II rowsort
SELECT 57 AS col0, - 13 * + + 73
----
57
-949

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT 30 * - + 75 - + - 10 + - COUNT( * ) + - 24 col2
----
-2265

skipif mysql # not compatible
query I rowsort label-7496
SELECT 30 * - + 75 - + - 10 + - COUNT ( * ) + - 24 col2
----
-2265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7497
SELECT DISTINCT + 55 * - - CASE - - CAST( - + 62 AS SIGNED ) WHEN 97 + + CAST( + + 89 AS SIGNED ) THEN + + 80 WHEN - + 30 + + - COUNT( * ) THEN - CASE - - CAST( NULL AS SIGNED ) WHEN 31 THEN + COALESCE ( MAX( 7 ), - 75 / + - COUNT( - - 13 ), - - COUNT( * ) / - + 34 * COUNT( * ) + - COUNT( * ) + - 61, - - 15 * - COUNT( * ) * - MAX( + + 47 ) ) ELSE NULL END + + ( + + 32 ) + 42 END - + 14 * - 50 / - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-7497
SELECT DISTINCT + 55 * - - CASE - - CAST ( - + 62 AS INTEGER ) WHEN 97 + + CAST ( + + 89 AS INTEGER ) THEN + + 80 WHEN - + 30 + + - COUNT ( * ) THEN - CASE - - CAST ( NULL AS INTEGER ) WHEN 31 THEN + COALESCE ( MAX ( 7 ), - 75 / + - COUNT ( - - 13 ), - - COUNT ( * ) / - + 34 * COUNT ( * ) + - COUNT ( * ) + - 61, - - 15 * - COUNT ( * ) * - MAX ( + + 47 ) ) ELSE NULL END + + ( + + 32 ) + 42 END - + 14 * - 50 / - + 56
----
NULL

query I rowsort
SELECT DISTINCT 31 * + 97 - - - 32
----
2975

query I rowsort
SELECT - 21 * - 92
----
1932

query I rowsort
SELECT + 25 * - 54 - - ( - 88 ) col1
----
-1438

query I rowsort
SELECT + ( - 12 ) + 37 * + ( + + 13 )
----
469

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

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

query I rowsort
SELECT ALL 80 - ( 49 )
----
31

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

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

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

query I rowsort
SELECT DISTINCT - 12 * + 80
----
-960

query I rowsort
SELECT ALL - 3 * - + 13
----
39

query I rowsort
SELECT DISTINCT + 39 * + + 66 AS col0
----
2574

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7510
SELECT + + 27 - + + COUNT( * ), + 82 * + NULLIF ( - + COUNT( * ), + 21 ) + 47 - + - ( - + ( + COUNT( - 95 ) ) ) * + 36 * - - 83 * + COALESCE ( + - 30, 80 * SUM( DISTINCT + 54 ) + + + ( 29 ) ) AS col0
----
26
89605

skipif mysql # not compatible
query II rowsort label-7510
SELECT + + 27 - + + COUNT ( * ), + 82 * + NULLIF ( - + COUNT ( * ), + 21 ) + 47 - + - ( - + ( + COUNT ( - 95 ) ) ) * + 36 * - - 83 * + COALESCE ( + - 30, 80 * SUM ( DISTINCT + 54 ) + + + ( 29 ) ) AS col0
----
26
89605

query I rowsort
SELECT - + CASE - 29 WHEN - + 7 THEN + 6 + + + 46 ELSE - + 87 END
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT + - 52 - MIN( - 7 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-7512
SELECT + - 52 - MIN ( - 7 ) AS col1
----
-45

query I rowsort
SELECT + + 78 * - 44 AS col1
----
-3432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7514
SELECT DISTINCT + + ( - MIN( - 73 ) ) DIV - 60 + + 14 * - 82 AS col0
----
-1149

skipif mysql # not compatible
query I rowsort label-7514
SELECT DISTINCT + + ( - MIN ( - 73 ) ) / - 60 + + 14 * - 82 AS col0
----
-1149

query II rowsort
SELECT + 59 - + + ( - 47 ), 2 AS col2
----
106
2

query I rowsort
SELECT - 57 * + 5 * COALESCE ( + 36, 88 ) * 14 * - 66 * + + 46 + 3 + - 48 * + + 80
----
436087203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7517
SELECT - - NULLIF ( 17, + 32 * + 41 ) - 83 + + CAST( + 60 AS SIGNED ), - COUNT( + 38 ) AS col1
----
-6
-1

skipif mysql # not compatible
query II rowsort label-7517
SELECT - - NULLIF ( 17, + 32 * + 41 ) - 83 + + CAST ( + 60 AS INTEGER ), - COUNT ( + 38 ) AS col1
----
-6
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7518
SELECT - + 62 DIV + 44 * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7518
SELECT - + 62 / + 44 * + COUNT ( * )
----
-1

query I rowsort
SELECT + - 51 * 5 * + 86 AS col0
----
-21930

query I rowsort
SELECT + + 76 + + + 55 + - 99
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT ALL + - SUM( + 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL + - SUM ( + 94 ) AS col1
----
-94

query I rowsort
SELECT - 62 * - NULLIF ( 62, 13 ) * - 2
----
-7688

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT + 82 * 77 + + 48 - - - 27 + COALESCE ( - 53, - NULLIF ( - COUNT( * ), + + 58 ) + + 29, COUNT( * ) ) + - 79 * 96 + - + 47 AS col2
----
-1349

skipif mysql # not compatible
query I rowsort label-7523
SELECT + 82 * 77 + + 48 - - - 27 + COALESCE ( - 53, - NULLIF ( - COUNT ( * ), + + 58 ) + + 29, COUNT ( * ) ) + - 79 * 96 + - + 47 AS col2
----
-1349

query I rowsort
SELECT ALL 65 * + 23 - - 79 * + 22 col0
----
3233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7525
SELECT ALL + COALESCE ( + 84, - - 39 ) AS col1, + 58 * - CAST( MIN( 5 ) AS SIGNED ) - 21
----
84
-311

skipif mysql # not compatible
query II rowsort label-7525
SELECT ALL + COALESCE ( + 84, - - 39 ) AS col1, + 58 * - CAST ( MIN ( 5 ) AS INTEGER ) - 21
----
84
-311

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7526
SELECT ALL 10 DIV NULLIF ( - COUNT( * ), 45 * + NULLIF ( + 18, + - COALESCE ( 64, 86 ) ) )
----
-10

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL 10 / NULLIF ( - COUNT ( * ), 45 * + NULLIF ( + 18, + - COALESCE ( 64, 86 ) ) )
----
-10

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

skipif mysql # not compatible
query I rowsort label-7527
SELECT - COUNT ( * ) / 23 AS col0
----
0

query I rowsort
SELECT + 33 * + - 90
----
-2970

onlyif mysql # DIV for integer division: 
query II rowsort label-7529
SELECT + 53 AS col2, - 46 DIV + 40 AS col0
----
53
-1

skipif mysql # not compatible
query II rowsort label-7529
SELECT + 53 AS col2, - 46 / + 40 AS col0
----
53
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7530
SELECT NULLIF ( + 63, - 74 - 36 ) AS col1, COUNT( - 15 ) AS col1
----
63
1

skipif mysql # not compatible
query II rowsort label-7530
SELECT NULLIF ( + 63, - 74 - 36 ) AS col1, COUNT ( - 15 ) AS col1
----
63
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7531
SELECT ALL - COUNT( * ) col1, 31
----
-1
31

skipif mysql # not compatible
query II rowsort label-7531
SELECT ALL - COUNT ( * ) col1, 31
----
-1
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7532
SELECT 70 DIV - + 13 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-7532
SELECT 70 / - + 13 AS col0
----
-5

query II rowsort
SELECT + 62, + 30 * + 66 AS col2
----
62
1980

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7534
SELECT + 20 * 50 + - - ( - 8 ) col2, - CAST( NULL AS DECIMAL ) / + 3 AS col1
----
992
NULL

skipif mysql # not compatible
query II rowsort label-7534
SELECT + 20 * 50 + - - ( - 8 ) col2, - CAST ( NULL AS REAL ) / + 3 AS col1
----
992
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7536
SELECT 15 * - CAST( - 42 AS SIGNED ) * + 83 * - 11 AS col2
----
-575190

skipif mysql # not compatible
query I rowsort label-7536
SELECT 15 * - CAST ( - 42 AS INTEGER ) * + 83 * - 11 AS col2
----
-575190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7537
SELECT DISTINCT + COUNT( * ) + 69 + + 38 DIV 69 * - 34 DIV 98 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT + COUNT ( * ) + 69 + + 38 / 69 * - 34 / 98 AS col0
----
70

query I rowsort
SELECT DISTINCT 61 * - 64 col2
----
-3904

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT 86 + - + COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-7539
SELECT 86 + - + COUNT ( * ) AS col0
----
85

query I rowsort
SELECT 1 + - 27 AS col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7541
SELECT - 93, 35 * - + 80 - CAST( NULL AS SIGNED ) AS col1
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-7541
SELECT - 93, 35 * - + 80 - CAST ( NULL AS INTEGER ) AS col1
----
-93
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7542
SELECT - 94 + - - COUNT( * ) DIV 86 * + 37 DIV + - 58 + - 55 - + - MIN( - + 68 )
----
-217

skipif mysql # not compatible
query I rowsort label-7542
SELECT - 94 + - - COUNT ( * ) / 86 * + 37 / + - 58 + - 55 - + - MIN ( - + 68 )
----
-217

query I rowsort
SELECT ALL 38 * + 54
----
2052

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT ALL + 1 + COUNT( * ) + - ( 98 ) + 69 * + 41
----
2733

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL + 1 + COUNT ( * ) + - ( 98 ) + 69 * + 41
----
2733

query II rowsort
SELECT ALL 40, 57 col2
----
40
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7546
SELECT DISTINCT + + CAST( COUNT( * ) AS SIGNED ) * - CASE 9 WHEN - + 47 THEN NULL WHEN 36 THEN NULL ELSE COUNT( * ) * - 12 END AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT + + CAST ( COUNT ( * ) AS INTEGER ) * - CASE 9 WHEN - + 47 THEN NULL WHEN 36 THEN NULL ELSE COUNT ( * ) * - 12 END AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT DISTINCT - 93 + - - COUNT( * ) + 81 + 31 * COUNT( - 68 ) * + CASE + 24 WHEN + + 6 * - 92 THEN NULL WHEN - 71 THEN 70 END + - 84 * + 4 * + 67 * + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT - 93 + - - COUNT ( * ) + 81 + 31 * COUNT ( - 68 ) * + CASE + 24 WHEN + + 6 * - 92 THEN NULL WHEN - 71 THEN 70 END + - 84 * + 4 * + 67 * + + 38
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT SUM( ALL - 75 ) + - 79 * + 88 + + - ( - - CASE + NULLIF ( 50, COUNT( * ) + + 76 ) WHEN + 99 * 31 THEN - + 98 ELSE NULL END ) / - 13 - + NULLIF ( ( + 92 ), - MIN( + - 5 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7549
SELECT SUM ( ALL - 75 ) + - 79 * + 88 + + - ( - - CASE + NULLIF ( 50, COUNT ( * ) + + 76 ) WHEN + 99 * 31 THEN - + 98 ELSE NULL END ) / - 13 - + NULLIF ( ( + 92 ), - MIN ( + - 5 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7550
SELECT - COALESCE ( + - 42, + - 4 ) DIV + 47 - + - 28 + + 29 col1
----
57

skipif mysql # not compatible
query I rowsort label-7550
SELECT - COALESCE ( + - 42, + - 4 ) / + 47 - + - 28 + + 29 col1
----
57

query II rowsort
SELECT 22 * + - 25 * - 93, - 90 + + - 0 AS col1
----
51150
-90

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

query I rowsort
SELECT 24 * 76 * - 24 col1
----
-43776

query I rowsort
SELECT - 93 * 66 AS col1
----
-6138

query II rowsort
SELECT + 70 AS col0, - 34 col1
----
70
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7556
SELECT ALL 7 - - CAST( CAST( + + CASE AVG ( ALL + ( + 95 ) ) WHEN - 74 THEN - 36 - 38 END AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7556
SELECT ALL 7 - - CAST ( CAST ( + + CASE AVG ( ALL + ( + 95 ) ) WHEN - 74 THEN - 36 - 38 END AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7557
SELECT DISTINCT - + 16, 2 DIV COUNT( * ) * 0 AS col0
----
-16
0

skipif mysql # not compatible
query II rowsort label-7557
SELECT DISTINCT - + 16, 2 / COUNT ( * ) * 0 AS col0
----
-16
0

query I rowsort
SELECT ALL - 44 - + - 94 AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7559
SELECT + 60 * COALESCE ( - + 87, - 72, - 5 - 81 * + CAST( NULL AS SIGNED ) )
----
-5220

skipif mysql # not compatible
query I rowsort label-7559
SELECT + 60 * COALESCE ( - + 87, - 72, - 5 - 81 * + CAST ( NULL AS INTEGER ) )
----
-5220

query I rowsort
SELECT ALL + 33 * + 60
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT DISTINCT 38 * 47 + - COUNT( * ) AS col1
----
1785

skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT 38 * 47 + - COUNT ( * ) AS col1
----
1785

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

query I rowsort
SELECT 96 * 55 * + + 42
----
221760

query II rowsort
SELECT ALL 62 + - + 33 AS col2, - 88 AS col0
----
29
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7565
SELECT ALL COUNT( * ) + + 40 * - CAST( NULL AS SIGNED ) + - - 94 AS col0, 74 AS col1
----
NULL
74

skipif mysql # not compatible
query II rowsort label-7565
SELECT ALL COUNT ( * ) + + 40 * - CAST ( NULL AS INTEGER ) + - - 94 AS col0, 74 AS col1
----
NULL
74

query II rowsort
SELECT DISTINCT 97 + - 24 AS col2, 5 * ( - 71 ) AS col2
----
73
-355

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT 86 * COUNT( * ) * - 63 AS col2
----
-5418

skipif mysql # not compatible
query I rowsort label-7567
SELECT 86 * COUNT ( * ) * - 63 AS col2
----
-5418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7568
SELECT 21 + COALESCE ( 63, + + COUNT( * ) DIV 21, - MAX( 26 ) )
----
84

skipif mysql # not compatible
query I rowsort label-7568
SELECT 21 + COALESCE ( 63, + + COUNT ( * ) / 21, - MAX ( 26 ) )
----
84

query II rowsort
SELECT DISTINCT - 94 + + - 74, + 73 AS col1
----
-168
73

query I rowsort
SELECT ALL - ( - 3 ) + + - 57
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT DISTINCT + + 11 - - COUNT( * ) + - 4 * - 28 col0
----
124

skipif mysql # not compatible
query I rowsort label-7571
SELECT DISTINCT + + 11 - - COUNT ( * ) + - 4 * - 28 col0
----
124

query I rowsort
SELECT ALL + + 61 - 63
----
-2

query I rowsort
SELECT - 81 * + 56 * - ( 9 ) + + 80 AS col2
----
40904

query I rowsort
SELECT 47 - - - 76
----
-29

query I rowsort
SELECT ALL + - 86 * - NULLIF ( - - 5, - 23 ) * + + 41 * - 3 AS col0
----
-52890

onlyif mysql # aggregate syntax: 
query II rowsort label-7576
SELECT ALL + - 94 * + 12 - + 10 + + 73, COUNT( * ) AS col2
----
-1065
1

skipif mysql # not compatible
query II rowsort label-7576
SELECT ALL + - 94 * + 12 - + 10 + + 73, COUNT ( * ) AS col2
----
-1065
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7577
SELECT 16 DIV + 22 + + 76
----
76

skipif mysql # not compatible
query I rowsort label-7577
SELECT 16 / + 22 + + 76
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7578
SELECT - NULLIF ( - 91, - 19 * + 5 + SUM( + + 68 ) - + CAST( + 2 AS SIGNED ) * - - MAX( DISTINCT + 34 ) * - 84 * - 0 + - 2 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-7578
SELECT - NULLIF ( - 91, - 19 * + 5 + SUM ( + + 68 ) - + CAST ( + 2 AS INTEGER ) * - - MAX ( DISTINCT + 34 ) * - 84 * - 0 + - 2 ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT DISTINCT - - NULLIF ( - NULLIF ( + - 12, COUNT( * ) ), + 25 * ( - + COUNT( * ) ) * - NULLIF ( + 8, + + 37 ) )
----
12

skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT - - NULLIF ( - NULLIF ( + - 12, COUNT ( * ) ), + 25 * ( - + COUNT ( * ) ) * - NULLIF ( + 8, + + 37 ) )
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-7580
SELECT 95 DIV + 61
----
1

skipif mysql # not compatible
query I rowsort label-7580
SELECT 95 / + 61
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7581
SELECT + 92 * 71 DIV - 84 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-7581
SELECT + 92 * 71 / - 84 AS col0
----
-77

query I rowsort
SELECT + 63 + + 69 col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT DISTINCT + NULLIF ( - COUNT( * ), - - 26 * - 24 * - 19 + - 77 + + + 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT + NULLIF ( - COUNT ( * ), - - 26 * - 24 * - 19 + - 77 + + + 90 )
----
-1

query I rowsort
SELECT + 50 * - + 53 + + 37 + - 16
----
-2629

query I rowsort
SELECT ALL 68 * 27 + - 33 * 37
----
615

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

skipif mysql # not compatible
query I rowsort label-7586
SELECT SUM ( ALL 82 )
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-7587
SELECT + COUNT( * ) col0, ( + - COUNT( + 88 ) )
----
1
-1

skipif mysql # not compatible
query II rowsort label-7587
SELECT + COUNT ( * ) col0, ( + - COUNT ( + 88 ) )
----
1
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7589
SELECT DISTINCT - CAST( - ( + - 96 ) AS SIGNED ) + - 44
----
-140

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT - CAST ( - ( + - 96 ) AS INTEGER ) + - 44
----
-140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7590
SELECT ALL + COUNT( * ) DIV + - 71 * + CAST( - 13 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL + COUNT ( * ) / + - 71 * + CAST ( - 13 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7591
SELECT 89 AS col2, CAST( NULL AS SIGNED ) * + COALESCE ( + 58, + 86 + + NULLIF ( - 95, - + 71 ) * - + 54 ) AS col1
----
89
NULL

skipif mysql # not compatible
query II rowsort label-7591
SELECT 89 AS col2, CAST ( NULL AS INTEGER ) * + COALESCE ( + 58, + 86 + + NULLIF ( - 95, - + 71 ) * - + 54 ) AS col1
----
89
NULL

query I rowsort
SELECT DISTINCT - 26 - + + 55 * + + ( - 78 ) + 85 * ( 81 ) AS col0
----
11149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7593
SELECT DISTINCT CASE + 89 WHEN + MAX( 14 ) THEN NULL WHEN + 83 * + COUNT( * ) - + + CAST( NULL AS SIGNED ) + - 2 THEN + 70 ELSE - MAX( + - 18 ) END - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-7593
SELECT DISTINCT CASE + 89 WHEN + MAX ( 14 ) THEN NULL WHEN + 83 * + COUNT ( * ) - + + CAST ( NULL AS INTEGER ) + - 2 THEN + 70 ELSE - MAX ( + - 18 ) END - COUNT ( * )
----
17

query I rowsort
SELECT - 26 + - - 41 AS col2
----
15

query I rowsort
SELECT DISTINCT - + 96 * + - ( - - 90 )
----
8640

query I rowsort
SELECT + - ( + + 12 ) + + 73 col2
----
61

query I rowsort
SELECT ALL - 58 - + 35 + + COALESCE ( 60, - - 92, - - 72 ) AS col2
----
-33

query I rowsort
SELECT ALL + 0 * + ( + 16 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT ALL + CASE + + 74 WHEN 81 THEN - 65 WHEN + 23 * + + 24 + - COUNT( * ) THEN - 12 ELSE NULL END - + 8 + + 71 + COUNT( * ) * 31 * - - ( - 55 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL + CASE + + 74 WHEN 81 THEN - 65 WHEN + 23 * + + 24 + - COUNT ( * ) THEN - 12 ELSE NULL END - + 8 + + 71 + COUNT ( * ) * 31 * - - ( - 55 ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7600
SELECT DISTINCT 84 * - ( + 4 ) * - COALESCE ( - CAST( NULL AS SIGNED ), - - 83 ) AS col1
----
27888

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT 84 * - ( + 4 ) * - COALESCE ( - CAST ( NULL AS INTEGER ), - - 83 ) AS col1
----
27888

query II rowsort
SELECT - 66 AS col1, 55
----
-66
55

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

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

query I rowsort
SELECT - 99 * + 87
----
-8613

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7604
SELECT 48 * - COUNT( * ) DIV + 88 + + 69 AS col2, ( + - 67 )
----
69
-67

skipif mysql # not compatible
query II rowsort label-7604
SELECT 48 * - COUNT ( * ) / + 88 + + 69 AS col2, ( + - 67 )
----
69
-67

query II rowsort
SELECT + 46 AS col2, 93 * - 38
----
46
-3534

onlyif mysql # DIV for integer division: 
query I rowsort label-7606
SELECT DISTINCT + 84 DIV - 42
----
-2

skipif mysql # not compatible
query I rowsort label-7606
SELECT DISTINCT + 84 / - 42
----
-2

query II rowsort
SELECT ALL + 60 AS col1, 67 * 10 AS col0
----
60
670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7608
SELECT DISTINCT - SUM( - CAST( - 62 AS SIGNED ) ) * - COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT - SUM ( - CAST ( - 62 AS INTEGER ) ) * - COUNT ( * ) AS col0
----
62

query I rowsort
SELECT ALL - 62 * - - 67 + + 40
----
-4114

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT + 9 * - COUNT( * ) * - 50
----
450

skipif mysql # not compatible
query I rowsort label-7610
SELECT + 9 * - COUNT ( * ) * - 50
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT 67 * - - COUNT( * ) + - + 9 + + - 36 + 53 col1
----
75

skipif mysql # not compatible
query I rowsort label-7611
SELECT 67 * - - COUNT ( * ) + - + 9 + + - 36 + 53 col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7612
SELECT + CASE + - 3 WHEN - 61 THEN - 59 * - COUNT( * ) * - - 76 * - - 14 * + ( + 27 ) + CAST( NULL AS SIGNED ) + 55 ELSE 12 + 69 END
----
81

skipif mysql # not compatible
query I rowsort label-7612
SELECT + CASE + - 3 WHEN - 61 THEN - 59 * - COUNT ( * ) * - - 76 * - - 14 * + ( + 27 ) + CAST ( NULL AS INTEGER ) + 55 ELSE 12 + 69 END
----
81

query I rowsort
SELECT - 70 * - 25 * + 1 + + 78 AS col1
----
1828

query I rowsort
SELECT - 73 * + - 93
----
6789

query I rowsort
SELECT - 90 + 83
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7616
SELECT - 70 * 78 - 42 DIV 49 col1, - MAX( DISTINCT - 45 )
----
-5460
45

skipif mysql # not compatible
query II rowsort label-7616
SELECT - 70 * 78 - 42 / 49 col1, - MAX ( DISTINCT - 45 )
----
-5460
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT ALL + ( - - NULLIF ( CASE + - 9 WHEN - + COUNT( * ) / 36 THEN - 35 + 58 * + 4 * - 85 - - COUNT( * ) * - 46 + - 22 END, - 98 + SUM( + 17 ) - + 33 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL + ( - - NULLIF ( CASE + - 9 WHEN - + COUNT ( * ) / 36 THEN - 35 + 58 * + 4 * - 85 - - COUNT ( * ) * - 46 + - 22 END, - 98 + SUM ( + 17 ) - + 33 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT + CASE + + ( + COUNT( * ) ) WHEN 72 THEN + 4 + + - ( 15 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7618
SELECT + CASE + + ( + COUNT ( * ) ) WHEN 72 THEN + 4 + + - ( 15 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT CASE - - 48 WHEN 95 + + COUNT( * ) + - 69 / - 56 * + + 68 THEN + - 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7619
SELECT CASE - - 48 WHEN 95 + + COUNT ( * ) + - 69 / - 56 * + + 68 THEN + - 65 END
----
NULL

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

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

query I rowsort
SELECT ALL 31 * 73 col1
----
2263

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7622
SELECT + COALESCE ( - CAST( + ( + 94 ) AS SIGNED ), - 45, - 99 ) + + 60 + + 33 * + 35
----
1121

skipif mysql # not compatible
query I rowsort label-7622
SELECT + COALESCE ( - CAST ( + ( + 94 ) AS INTEGER ), - 45, - 99 ) + + 60 + + 33 * + 35
----
1121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7623
SELECT DISTINCT - - ( 80 ) * - + 45 DIV ( 5 ) * 13 * + 61 + - 28 * + 36 + 20 - - ( - - CASE - 37 WHEN + NULLIF ( COUNT( DISTINCT + 17 ), - + COUNT( * ) ) THEN NULL WHEN - 37 THEN ( + 19 ) * + - COALESCE ( 84, + 91 ) * - - MAX( DISTINCT 45 ) + COUNT( * ) + + 73 - + 99 * - + SUM( ALL 0 ) ELSE NULL END ) - 71 - - - 10 AS col0
----
-643775

skipif mysql # not compatible
query I rowsort label-7623
SELECT DISTINCT - - ( 80 ) * - + 45 / ( 5 ) * 13 * + 61 + - 28 * + 36 + 20 - - ( - - CASE - 37 WHEN + NULLIF ( COUNT ( DISTINCT + 17 ), - + COUNT ( * ) ) THEN NULL WHEN - 37 THEN ( + 19 ) * + - COALESCE ( 84, + 91 ) * - - MAX ( DISTINCT 45 ) + COUNT ( * ) + + 73 - + 99 * - + SUM ( ALL 0 ) ELSE NULL END ) - 71 - - - 10 AS col0
----
-643775

onlyif mysql # aggregate syntax: 
query II rowsort label-7624
SELECT + - 6 * - - 55 - - + 78 * + + COUNT( * ) AS col0, 79
----
-252
79

skipif mysql # not compatible
query II rowsort label-7624
SELECT + - 6 * - - 55 - - + 78 * + + COUNT ( * ) AS col0, 79
----
-252
79

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

skipif mysql # not compatible
query I rowsort label-7625
SELECT - - SUM ( + 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT DISTINCT CASE ( + MIN( DISTINCT 76 ) ) WHEN - 67 THEN + - 1 ELSE - COUNT( * ) * - 47 END AS col0
----
47

skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT CASE ( + MIN ( DISTINCT 76 ) ) WHEN - 67 THEN + - 1 ELSE - COUNT ( * ) * - 47 END AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT + - COUNT( * ) + + + 45 AS col0
----
44

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7628
SELECT DISTINCT COUNT( * ), NULLIF ( - 38, + 56 ) * + 89 * 81 AS col0
----
1
-273942

skipif mysql # not compatible
query II rowsort label-7628
SELECT DISTINCT COUNT ( * ), NULLIF ( - 38, + 56 ) * + 89 * 81 AS col0
----
1
-273942

query II rowsort
SELECT ALL 77 AS col0, - 14 AS col1
----
77
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-7630
SELECT DISTINCT - + MAX( ALL - + 79 ) * + ( + 68 ) AS col2, 44
----
5372
44

skipif mysql # not compatible
query II rowsort label-7630
SELECT DISTINCT - + MAX ( ALL - + 79 ) * + ( + 68 ) AS col2, 44
----
5372
44

query II rowsort
SELECT DISTINCT + 81 AS col0, 86
----
81
86

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

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

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

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

query I rowsort
SELECT + 70 + - 29
----
41

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

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

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

query I rowsort
SELECT + ( + 42 ) * - 95 AS col0
----
-3990

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT ALL + 96 + + MAX( 80 ) + - - 22
----
198

skipif mysql # not compatible
query I rowsort label-7638
SELECT ALL + 96 + + MAX ( 80 ) + - - 22
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7639
SELECT - + 22 AS col1, + CAST( NULL AS SIGNED ) * - + 42 / NULLIF ( + SUM( ALL - 10 ), + 48 ) * - - CAST( - 34 AS SIGNED ) + 53 AS col2
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-7639
SELECT - + 22 AS col1, + CAST ( NULL AS INTEGER ) * - + 42 / NULLIF ( + SUM ( ALL - 10 ), + 48 ) * - - CAST ( - 34 AS INTEGER ) + 53 AS col2
----
-22
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7640
SELECT NULLIF ( + 20, - - 0 + 5 ) - - + CAST( - + 16 AS SIGNED ) * 86
----
-1356

skipif mysql # not compatible
query I rowsort label-7640
SELECT NULLIF ( + 20, - - 0 + 5 ) - - + CAST ( - + 16 AS INTEGER ) * 86
----
-1356

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT DISTINCT + ( 16 ) * NULLIF ( + + COUNT( * ), 71 * 6 ) col2
----
16

skipif mysql # not compatible
query I rowsort label-7641
SELECT DISTINCT + ( 16 ) * NULLIF ( + + COUNT ( * ), 71 * 6 ) col2
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7642
SELECT ALL 45 + 22, - SUM( 21 ) col0
----
67
-21

skipif mysql # not compatible
query II rowsort label-7642
SELECT ALL 45 + 22, - SUM ( 21 ) col0
----
67
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-7643
SELECT 99 * COUNT( 81 ) AS col1, + 44 AS col0
----
99
44

skipif mysql # not compatible
query II rowsort label-7643
SELECT 99 * COUNT ( 81 ) AS col1, + 44 AS col0
----
99
44

query I rowsort
SELECT DISTINCT 80 + + 31
----
111

query I rowsort
SELECT + 42 * - 25 * + 39 + + 54 AS col2
----
-40896

query I rowsort
SELECT 15 - - 13 + 94
----
122

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT 80 * + + 86 - COUNT( * ) + + 43 AS col2
----
6922

skipif mysql # not compatible
query I rowsort label-7648
SELECT 80 * + + 86 - COUNT ( * ) + + 43 AS col2
----
6922

onlyif mysql # DIV for integer division: 
query I rowsort label-7649
SELECT DISTINCT - 35 DIV 88 * + 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7649
SELECT DISTINCT - 35 / 88 * + 51 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7650
SELECT DISTINCT - 26 * - COALESCE ( + + NULLIF ( 79, - + MAX( + + 8 ) ), 25 * 26 * 27 + 91, 50 DIV - + ( + 98 ) * + NULLIF ( - + 68, + + 19 * + 43 ) + 43, - 95 DIV + 34 + 28 + + CAST( NULL AS SIGNED ) * + - 14 ) * + - 30 * - - COALESCE ( 8, + 73 * + 60 + - 52, + 90 * 64 + - - 36 - + + 92 DIV - 8 ) + 82 - 56 - - NULLIF ( + 9, - 25 + - + 60 DIV + 79 * + - 98 ) AS col1, - 49 * - ( - - 83 ) AS col0, - 74
----
-492925
4067
-74

skipif mysql # not compatible
query III rowsort label-7650
SELECT DISTINCT - 26 * - COALESCE ( + + NULLIF ( 79, - + MAX ( + + 8 ) ), 25 * 26 * 27 + 91, 50 / - + ( + 98 ) * + NULLIF ( - + 68, + + 19 * + 43 ) + 43, - 95 / + 34 + 28 + + CAST ( NULL AS INTEGER ) * + - 14 ) * + - 30 * - - COALESCE ( 8, + 73 * + 60 + - 52, + 90 * 64 + - - 36 - + + 92 / - 8 ) + 82 - 56 - - NULLIF ( + 9, - 25 + - + 60 / + 79 * + - 98 ) AS col1, - 49 * - ( - - 83 ) AS col0, - 74
----
-492925
4067
-74

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

skipif mysql # not compatible
query I rowsort label-7651
SELECT 14 + ( - - 34 ) * - - COUNT ( * ) + + 49 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT DISTINCT - COUNT( * ) * 61 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT - COUNT ( * ) * 61 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT ALL + 81 - COALESCE ( - COUNT( * ), 45 )
----
82

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL + 81 - COALESCE ( - COUNT ( * ), 45 )
----
82

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

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

query I rowsort
SELECT ALL - 18 * + 69 AS col0
----
-1242

onlyif mysql # aggregate syntax: 
query II rowsort label-7656
SELECT DISTINCT - ( - + COUNT( * ) ) AS col1, + 92 AS col2
----
1
92

skipif mysql # not compatible
query II rowsort label-7656
SELECT DISTINCT - ( - + COUNT ( * ) ) AS col1, + 92 AS col2
----
1
92

query I rowsort
SELECT ALL - 9 * - + 95 * + - 99 col0
----
-84645

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT ALL - ( MAX( DISTINCT 36 ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL - ( MAX ( DISTINCT 36 ) ) AS col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7659
SELECT 20 + - MIN( DISTINCT - CAST( 17 AS SIGNED ) )
----
37

skipif mysql # not compatible
query I rowsort label-7659
SELECT 20 + - MIN ( DISTINCT - CAST ( 17 AS INTEGER ) )
----
37

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

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

query I rowsort
SELECT ( - - 6 ) * - + 25
----
-150

query I rowsort
SELECT 11 * + 90 * - - 73
----
72270

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7663
SELECT ( 9 ) * 94 - 66 + - 94 * + NULLIF ( 29, - 43 ) + AVG ( + + 19 ) * + 71 + CAST( NULL AS DECIMAL ) / 34 + + - 72 * + - 93 + - 77 * COUNT( + 99 ) * 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7663
SELECT ( 9 ) * 94 - 66 + - 94 * + NULLIF ( 29, - 43 ) + AVG ( + + 19 ) * + 71 + CAST ( NULL AS REAL ) / 34 + + - 72 * + - 93 + - 77 * COUNT ( + 99 ) * 19 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT COUNT( * ) + + - 96 * - 12 + MIN( + 12 )
----
1165

skipif mysql # not compatible
query I rowsort label-7664
SELECT COUNT ( * ) + + - 96 * - 12 + MIN ( + 12 )
----
1165

query I rowsort
SELECT 91 * + + 29 + + 92 * + 68
----
8895

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT ALL + 61 * - + 22 * COUNT( * ) + 24 AS col1
----
-1318

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL + 61 * - + 22 * COUNT ( * ) + 24 AS col1
----
-1318

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7667
SELECT DISTINCT - CAST( 77 AS SIGNED ), ( - - 83 ) AS col0
----
-77
83

skipif mysql # not compatible
query II rowsort label-7667
SELECT DISTINCT - CAST ( 77 AS INTEGER ), ( - - 83 ) AS col0
----
-77
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7668
SELECT + 10 + + + 82 * + 93 + + 88 + ( + + CAST( NULL AS SIGNED ) ) * 17 * - MIN( 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT + 10 + + + 82 * + 93 + + 88 + ( + + CAST ( NULL AS INTEGER ) ) * 17 * - MIN ( 65 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7669
SELECT ALL + 17 * + - CASE 20 WHEN - - 42 * + - 25 / - NULLIF ( - 96, 48 ) + + 85 * 63 THEN + - AVG ( - + CAST( - 58 AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL + 17 * + - CASE 20 WHEN - - 42 * + - 25 / - NULLIF ( - 96, 48 ) + + 85 * 63 THEN + - AVG ( - + CAST ( - 58 AS INTEGER ) ) END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7670
SELECT ( + COUNT ( * ) ) + - 51 * + + 92 AS col0
----
-4691

query I rowsort
SELECT 60 + + - 32
----
28

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

query I rowsort
SELECT DISTINCT ( - 36 ) + + - 96 AS col2
----
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7674
SELECT ALL COUNT( * ) + - COUNT( * ) + + - 77 DIV + NULLIF ( + - COUNT( * ), 10 + + - 47 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL COUNT ( * ) + - COUNT ( * ) + + - 77 / + NULLIF ( + - COUNT ( * ), 10 + + - 47 ) AS col2
----
77

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

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

query II rowsort
SELECT 54 AS col1, - 82 AS col2
----
54
-82

query I rowsort
SELECT 15 + + 43
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7678
SELECT ALL MAX( ALL 0 ) DIV - 76 AS col1, COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-7678
SELECT ALL MAX ( ALL 0 ) / - 76 AS col1, COUNT ( * ) AS col1
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7679
SELECT ALL AVG ( + + 13 ) - 97 * 35 * - 88 * + CASE - 18 WHEN + 86 THEN NULL ELSE 95 * - + ( + COALESCE ( + + 55, + + 94, - SUM( DISTINCT - 55 ) ) ) / - CASE WHEN + 86 BETWEEN - 18 AND - 21 THEN - 35 - + 63 + + - MIN( - + ( 81 ) ) * - - 50 * CASE - COALESCE ( + COUNT( * ), COUNT( * ) - - COALESCE ( - 29, - + 0 * 4 / + 51 * - 24 / - - 23 - + MIN( DISTINCT - 27 ) ) + 17 * - 27 ) WHEN + MIN( - 96 ) THEN + 34 * - - 52 * - 24 + + + ( + 30 ) + - 86 WHEN 53 * 26 + + COALESCE ( + 79, 28, COUNT( * ) ) THEN 3 + + 88 * AVG ( ALL - 0 * 39 ) END * - COALESCE ( 21 + - CAST( NULL AS DECIMAL ), 74 ) + CASE 88 WHEN + 25 + + 81 * - 60 THEN - 53 WHEN 35 THEN NULL END END + + ( MAX( ALL - 89 ) ) + + 2 END * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL AVG ( + + 13 ) - 97 * 35 * - 88 * + CASE - 18 WHEN + 86 THEN NULL ELSE 95 * - + ( + COALESCE ( + + 55, + + 94, - SUM ( DISTINCT - 55 ) ) ) / - CASE WHEN + 86 BETWEEN - 18 AND - 21 THEN - 35 - + 63 + + - MIN ( - + ( 81 ) ) * - - 50 * CASE - COALESCE ( + COUNT ( * ), COUNT ( * ) - - COALESCE ( - 29, - + 0 * 4 / + 51 * - 24 / - - 23 - + MIN ( DISTINCT - 27 ) ) + 17 * - 27 ) WHEN + MIN ( - 96 ) THEN + 34 * - - 52 * - 24 + + + ( + 30 ) + - 86 WHEN 53 * 26 + + COALESCE ( + 79, 28, COUNT ( * ) ) THEN 3 + + 88 * AVG ( ALL - 0 * 39 ) END * - COALESCE ( 21 + - CAST ( NULL AS REAL ), 74 ) + CASE 88 WHEN + 25 + + 81 * - 60 THEN - 53 WHEN 35 THEN NULL END END + + ( MAX ( ALL - 89 ) ) + + 2 END * 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT COUNT( ALL - 40 ) * + MIN( - 79 ) + - - 20 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-7680
SELECT COUNT ( ALL - 40 ) * + MIN ( - 79 ) + - - 20 AS col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7681
SELECT 85 * + 14 + AVG ( - 1 ) + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7681
SELECT 85 * + 14 + AVG ( - 1 ) + - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7682
SELECT ALL + 97 * - CASE + - CAST( NULL AS SIGNED ) WHEN - CAST( + 83 AS SIGNED ) THEN NULL WHEN - - ( - - SUM( ALL 8 ) ) THEN + MIN( + + 94 ) END * - 6 - - 84 + + CAST( NULL AS SIGNED ) * + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL + 97 * - CASE + - CAST ( NULL AS INTEGER ) WHEN - CAST ( + 83 AS INTEGER ) THEN NULL WHEN - - ( - - SUM ( ALL 8 ) ) THEN + MIN ( + + 94 ) END * - 6 - - 84 + + CAST ( NULL AS INTEGER ) * + 15 AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 1 AS col1, - 30
----
-1
-30

query I rowsort
SELECT ALL + 50 - - 74 * 61
----
4564

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7687
SELECT COUNT( * ) AS col2, 57 * + 80
----
1
4560

skipif mysql # not compatible
query II rowsort label-7687
SELECT COUNT ( * ) AS col2, 57 * + 80
----
1
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT COUNT( 25 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7688
SELECT COUNT ( 25 ) col1
----
1

query I rowsort
SELECT ALL - 87 * 60 * 19
----
-99180

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ALL - - COALESCE ( MIN( ALL 73 ), 12 ) * + + 11
----
803

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL - - COALESCE ( MIN ( ALL 73 ), 12 ) * + + 11
----
803

query I rowsort
SELECT ALL + + 60 * 42 col2
----
2520

query II rowsort
SELECT DISTINCT - 88, + 5 col2
----
-88
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT ALL + 90 + + 62 + - COUNT( * ) + 6 AS col2
----
157

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL + 90 + + 62 + - COUNT ( * ) + 6 AS col2
----
157

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

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

query I rowsort
SELECT ALL - COALESCE ( 5, + - ( - 85 ) ) AS col0
----
-5

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

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

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

skipif mysql # not compatible
query I rowsort label-7697
SELECT 36 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7698
SELECT - 38 DIV 19 * 31 AS col0, - ( 84 ) + + MIN( ALL - 1 )
----
-62
-85

skipif mysql # not compatible
query II rowsort label-7698
SELECT - 38 / 19 * 31 AS col0, - ( 84 ) + + MIN ( ALL - 1 )
----
-62
-85

query I rowsort
SELECT - 8 * + 15
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-7700
SELECT ALL + 29 + - - 46 + 11, ( + - COUNT( * ) ) col1
----
86
-1

skipif mysql # not compatible
query II rowsort label-7700
SELECT ALL + 29 + - - 46 + 11, ( + - COUNT ( * ) ) col1
----
86
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7701
SELECT + 73 AS col1, CASE + 27 WHEN + + COUNT( * ) * - 69 + + 10 THEN + + 50 * - 4 + + - 75 + - 32 + - 89 / + 18 * - + COUNT( * ) * 39 + SUM( - - 59 ) + + + 91 END * 44 * 68 * - 94 AS col1
----
73
NULL

skipif mysql # not compatible
query II rowsort label-7701
SELECT + 73 AS col1, CASE + 27 WHEN + + COUNT ( * ) * - 69 + + 10 THEN + + 50 * - 4 + + - 75 + - 32 + - 89 / + 18 * - + COUNT ( * ) * 39 + SUM ( - - 59 ) + + + 91 END * 44 * 68 * - 94 AS col1
----
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT + 21 * + SUM( ALL + 82 ) + MIN( ALL - 51 )
----
1671

skipif mysql # not compatible
query I rowsort label-7702
SELECT + 21 * + SUM ( ALL + 82 ) + MIN ( ALL - 51 )
----
1671

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7703
SELECT DISTINCT + CAST( + + 11 AS SIGNED ) + + NULLIF ( + 86, COUNT( * ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT + CAST ( + + 11 AS INTEGER ) + + NULLIF ( + 86, COUNT ( * ) ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT ALL + 80 + - COUNT( * ) + - - CASE + + 91 WHEN + - COUNT( * ) THEN 46 + - 49 END * - 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL + 80 + - COUNT ( * ) + - - CASE + + 91 WHEN + - COUNT ( * ) THEN 46 + - 49 END * - 71 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7705
SELECT ALL + - COUNT( * ) + - - CAST( NULL AS DECIMAL ) - - COALESCE ( + - 82, + 92 / + 22 + - CAST( - 50 AS SIGNED ) + - 38 * - 37 ) - 96 / + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-7705
SELECT ALL + - COUNT ( * ) + - - CAST ( NULL AS REAL ) - - COALESCE ( + - 82, + 92 / + 22 + - CAST ( - 50 AS INTEGER ) + - 38 * - 37 ) - 96 / + 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT - - 0 * + - 85 + + MIN( ALL 79 ) + + 81 + 46 + - 93 + + 18 * COUNT( * ) + + 97 AS col0
----
228

skipif mysql # not compatible
query I rowsort label-7706
SELECT - - 0 * + - 85 + + MIN ( ALL 79 ) + + 81 + 46 + - 93 + + 18 * COUNT ( * ) + + 97 AS col0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT ALL - MIN( - 21 ) + + ( 20 )
----
41

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL - MIN ( - 21 ) + + ( 20 )
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-7708
SELECT DISTINCT + 82 AS col1, 55 + - COUNT( * )
----
82
54

skipif mysql # not compatible
query II rowsort label-7708
SELECT DISTINCT + 82 AS col1, 55 + - COUNT ( * )
----
82
54

query I rowsort
SELECT ALL + 14 + - COALESCE ( 73, - 40 ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT DISTINCT + 55 * - + MIN( DISTINCT ( + 52 ) )
----
-2860

skipif mysql # not compatible
query I rowsort label-7710
SELECT DISTINCT + 55 * - + MIN ( DISTINCT ( + 52 ) )
----
-2860

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT - COUNT( * ) + 79 + - 92
----
-14

skipif mysql # not compatible
query I rowsort label-7711
SELECT - COUNT ( * ) + 79 + - 92
----
-14

query I rowsort
SELECT + 10 * - + 34
----
-340

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7713
SELECT - MAX( ALL + 77 ), ( + - CAST( NULL AS DECIMAL ) ) + - 25 AS col0
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-7713
SELECT - MAX ( ALL + 77 ), ( + - CAST ( NULL AS REAL ) ) + - 25 AS col0
----
-77
NULL

query II rowsort
SELECT - 74 - + 15 + + 1 * 65, - 83 col1
----
-24
-83

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

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

query I rowsort
SELECT ALL - 81 - + 21 - + 28
----
-130

query I rowsort
SELECT + 26 + - + 60 col0
----
-34

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7719
SELECT + 44 * CASE + + 51 WHEN + + COALESCE ( + ( 87 ), - COUNT( * ) * - 98 ) + 16 * - + COALESCE ( - 12, 1 + - 57 + - + 81 + 52 * + NULLIF ( - 77, + - COUNT( + 34 ) ), + + 84 * + 58 * + - 63, 64 ) * - CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) THEN - 53 ELSE + 79 * 57 END AS col1
----
198132

skipif mysql # not compatible
query I rowsort label-7719
SELECT + 44 * CASE + + 51 WHEN + + COALESCE ( + ( 87 ), - COUNT ( * ) * - 98 ) + 16 * - + COALESCE ( - 12, 1 + - 57 + - + 81 + 52 * + NULLIF ( - 77, + - COUNT ( + 34 ) ), + + 84 * + 58 * + - 63, 64 ) * - CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) THEN - 53 ELSE + 79 * 57 END AS col1
----
198132

query I rowsort
SELECT + 3 + - 13 * + + 63 AS col2
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT + NULLIF ( - 86, MIN( CASE 42 WHEN - - 92 + 3 THEN + + ( 45 ) WHEN 35 THEN NULL END ) ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-7721
SELECT + NULLIF ( - 86, MIN ( CASE 42 WHEN - - 92 + 3 THEN + + ( 45 ) WHEN 35 THEN NULL END ) ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-7722
SELECT + 8 * COUNT( * ) AS col0, + 56 AS col2
----
8
56

skipif mysql # not compatible
query II rowsort label-7722
SELECT + 8 * COUNT ( * ) AS col0, + 56 AS col2
----
8
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT + NULLIF ( + - 99, - 25 + + COUNT( * ) ) * - + 60 * - 73
----
-433620

skipif mysql # not compatible
query I rowsort label-7723
SELECT + NULLIF ( + - 99, - 25 + + COUNT ( * ) ) * - + 60 * - 73
----
-433620

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7724
SELECT DISTINCT CAST( NULL AS SIGNED ) * 16 AS col2, - ( - 93 ) AS col2
----
NULL
93

skipif mysql # not compatible
query II rowsort label-7724
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 16 AS col2, - ( - 93 ) AS col2
----
NULL
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT ( + - NULLIF ( - - COUNT( * ), 0 - 61 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7725
SELECT ( + - NULLIF ( - - COUNT ( * ), 0 - 61 ) )
----
-1

query I rowsort
SELECT ALL 72 * 86 * + COALESCE ( + 95, + 51 )
----
588240

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

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

query I rowsort
SELECT + - 7 * 44 + 16 AS col0
----
-292

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL - 41 * + NULLIF ( + 57, + 98 * + MIN( + 10 ) ) AS col2
----
-2337

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL - 41 * + NULLIF ( + 57, + 98 * + MIN ( + 10 ) ) AS col2
----
-2337

query I rowsort
SELECT ALL - 79 * ( - + 18 ) * + 71 + - 27 AS col1
----
100935

query I rowsort
SELECT DISTINCT 82 * + 56 + - 80 * - - 25 + + 12 AS col0
----
2604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7732
SELECT + - CAST( NULL AS SIGNED ) * - 61 * + 29 + 60 AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT + + ( 49 ) * 62 AS col2
----
3038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7734
SELECT - + NULLIF ( - 12, + 68 + + 32 + - CASE + NULLIF ( + 64, 48 ) WHEN + + ( + + SUM( DISTINCT - 67 ) ) THEN NULL ELSE + COALESCE ( + 50, + 62, - 42 + - COALESCE ( + 43, + - 87 ) * - 29 ) END * - - 11 * + 17 ) + - - 92 + CAST( NULL AS SIGNED ) + - COUNT( + 65 ) AS col2, 57 * + - 5
----
NULL
-285

skipif mysql # not compatible
query II rowsort label-7734
SELECT - + NULLIF ( - 12, + 68 + + 32 + - CASE + NULLIF ( + 64, 48 ) WHEN + + ( + + SUM ( DISTINCT - 67 ) ) THEN NULL ELSE + COALESCE ( + 50, + 62, - 42 + - COALESCE ( + 43, + - 87 ) * - 29 ) END * - - 11 * + 17 ) + - - 92 + CAST ( NULL AS INTEGER ) + - COUNT ( + 65 ) AS col2, 57 * + - 5
----
NULL
-285

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

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

query I rowsort
SELECT - 8 + 87 AS col2
----
79

query II rowsort
SELECT 6, 96 * 45 AS col2
----
6
4320

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7739
SELECT - 74 + - - ( - 13 ) * 64 + + - COUNT( * ) DIV - 6 * - + 86 AS col2
----
-906

skipif mysql # not compatible
query I rowsort label-7739
SELECT - 74 + - - ( - 13 ) * 64 + + - COUNT ( * ) / - 6 * - + 86 AS col2
----
-906

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7740
SELECT ALL CAST( - - 26 AS SIGNED ) col2
----
26

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL CAST ( - - 26 AS INTEGER ) col2
----
26

query I rowsort
SELECT DISTINCT COALESCE ( + + 80, - 59 )
----
80

query I rowsort
SELECT - 27 * + 30
----
-810

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7744
SELECT - 44 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-7744
SELECT - 44 / 84
----
0

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

skipif mysql # not compatible
query I rowsort label-7745
SELECT - MAX ( + ( + 65 ) )
----
-65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT + CASE + - ( - 17 ) WHEN - ( + 94 ) THEN COUNT( * ) END + 91 / 19
----
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT + CASE + - ( - 17 ) WHEN - ( + 94 ) THEN COUNT ( * ) END + 91 / 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7748
SELECT ALL 65 / 40 * 97 + + COUNT( * ) - - 45 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT ALL 65 / 40 * 97 + + COUNT ( * ) - - 45 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7750
SELECT DISTINCT MAX( ALL - 89 ) DIV MAX( 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-7750
SELECT DISTINCT MAX ( ALL - 89 ) / MAX ( 61 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7751
SELECT ALL ( + COUNT( * ) ) DIV 3 + 85
----
85

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL ( + COUNT ( * ) ) / 3 + 85
----
85

query I rowsort
SELECT DISTINCT 71 + - 5 AS col2
----
66

query I rowsort
SELECT 48 + 97 * 18 AS col0
----
1794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7754
SELECT + 71 * 93 + CAST( - 6 AS SIGNED ) * - 76 AS col1
----
7059

skipif mysql # not compatible
query I rowsort label-7754
SELECT + 71 * 93 + CAST ( - 6 AS INTEGER ) * - 76 AS col1
----
7059

query I rowsort
SELECT 93 * + 35 AS col1
----
3255

query I rowsort
SELECT ALL 65 + + 93
----
158

query I rowsort
SELECT ALL 82 + 13 AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT DISTINCT 17 + + 31 * - COUNT( + 22 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT 17 + + 31 * - COUNT ( + 22 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT 61 * + 74 - COUNT( * ) AS col1
----
4513

skipif mysql # not compatible
query I rowsort label-7759
SELECT 61 * + 74 - COUNT ( * ) AS col1
----
4513

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT DISTINCT 52 - COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-7760
SELECT DISTINCT 52 - COUNT ( * ) AS col2
----
51

query I rowsort
SELECT DISTINCT 81 - + 25 AS col1
----
56

query I rowsort
SELECT DISTINCT 16 - + 46 * 29
----
-1318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7763
SELECT + CAST( - ( MAX( 84 ) ) AS SIGNED ) * 19 - 23
----
-1619

skipif mysql # not compatible
query I rowsort label-7763
SELECT + CAST ( - ( MAX ( 84 ) ) AS INTEGER ) * 19 - 23
----
-1619

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

skipif mysql # not compatible
query I rowsort label-7764
SELECT CAST ( NULL AS INTEGER ) * + MAX ( 56 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT ALL + COUNT( 3 ) * + 26
----
26

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL + COUNT ( 3 ) * + 26
----
26

query I rowsort
SELECT 34 * 27 AS col0
----
918

query I rowsort
SELECT ALL 9 * - 69
----
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT COALESCE ( 20, + MAX( DISTINCT 57 ) * + 10, - 23 ) + + 21 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-7768
SELECT COALESCE ( 20, + MAX ( DISTINCT 57 ) * + 10, - 23 ) + + 21 AS col1
----
41

query I rowsort
SELECT DISTINCT - 46 + - 7 col0
----
-53

query I rowsort
SELECT ALL + 91 + - 71
----
20

query I rowsort
SELECT 39 + NULLIF ( 49, 90 - COALESCE ( + 57 - 2 * - 34, 44 ) * + 49 ) * - 69
----
-3342

onlyif mysql # DIV for integer division: 
query I rowsort label-7772
SELECT ALL - 28 + - 97 DIV - 33 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL - 28 + - 97 / - 33 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT 49 + - COUNT( * ) * + 65 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-7773
SELECT 49 + - COUNT ( * ) * + 65 AS col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-7774
SELECT ALL - 19 DIV 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - 19 / 41 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT DISTINCT - COALESCE ( - 24, 50, + 99 ) + - SUM( - 55 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT - COALESCE ( - 24, 50, + 99 ) + - SUM ( - 55 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT ALL + 55 + COALESCE ( + COUNT( * ), 33 * 73 )
----
56

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL + 55 + COALESCE ( + COUNT ( * ), 33 * 73 )
----
56

query I rowsort
SELECT DISTINCT - 1 * 59
----
-59

query I rowsort
SELECT 68 + - 92 * + 14
----
-1220

query I rowsort
SELECT ALL - 28 + 53
----
25

query I rowsort
SELECT DISTINCT + 74 + 91 AS col2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT - SUM( ALL 54 ) * 71 + + 12 AS col0
----
-3822

skipif mysql # not compatible
query I rowsort label-7781
SELECT - SUM ( ALL 54 ) * 71 + + 12 AS col0
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT + MAX( - 35 ) - + 90 * ( + 52 * + 74 ) AS col2
----
-346355

skipif mysql # not compatible
query I rowsort label-7782
SELECT + MAX ( - 35 ) - + 90 * ( + 52 * + 74 ) AS col2
----
-346355

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT ALL + - 41 * + MAX( DISTINCT - 1 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL + - 41 * + MAX ( DISTINCT - 1 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT ALL - + MIN( DISTINCT ( + 45 ) ) + + 60 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL - + MIN ( DISTINCT ( + 45 ) ) + + 60 AS col2
----
15

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7786
SELECT ALL - CAST( - 83 AS SIGNED ) * - 35
----
-2905

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL - CAST ( - 83 AS INTEGER ) * - 35
----
-2905

query I rowsort
SELECT + - 77 * 40 + 32
----
-3048

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT ALL - + COALESCE ( COUNT( * ), 67 + - 99, - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL - + COALESCE ( COUNT ( * ), 67 + - 99, - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT - 54 * NULLIF ( 41 - ( 82 ), 48 ) AS col0
----
2214

onlyif mysql # DIV for integer division: 
query I rowsort label-7790
SELECT ALL - NULLIF ( + 61, - ( 1 ) ) DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL - NULLIF ( + 61, - ( 1 ) ) / 76
----
0

query I rowsort
SELECT DISTINCT - ( - NULLIF ( + 35, + AVG ( 17 ) ) )
----
35

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

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

query I rowsort
SELECT 52 + 99 * 63 AS col1
----
6289

query I rowsort
SELECT + 21 * + ( 39 * + 34 )
----
27846

query I rowsort
SELECT DISTINCT 69 * 37
----
2553

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

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL - + 81 / + COUNT ( * ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT 62 + + 77 * + COUNT( * )
----
139

skipif mysql # not compatible
query I rowsort label-7797
SELECT 62 + + 77 * + COUNT ( * )
----
139

query I rowsort
SELECT DISTINCT 74 * + 53
----
3922

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7799
SELECT COUNT( * ) DIV + ( 15 ) * - 78
----
0

skipif mysql # not compatible
query I rowsort label-7799
SELECT COUNT ( * ) / + ( 15 ) * - 78
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7800
SELECT ALL 15 DIV COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL 15 / COUNT ( * )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT NULLIF ( - 15, + 12 ) + - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-7801
SELECT NULLIF ( - 15, + 12 ) + - COUNT ( * )
----
-16

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

query I rowsort
SELECT 49 + + - ( 9 )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7804
SELECT DISTINCT 97 + + - 54 + MIN( - 6 + + 32 ) DIV + 61 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT 97 + + - 54 + MIN ( - 6 + + 32 ) / + 61 AS col2
----
43

query I rowsort
SELECT DISTINCT 14 + + + 85 AS col0
----
99

query I rowsort
SELECT ALL - 32 * 80
----
-2560

query I rowsort
SELECT ALL 19 + - 78 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT DISTINCT MAX( DISTINCT 28 )
----
28

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT MAX ( DISTINCT 28 )
----
28

query I rowsort
SELECT DISTINCT - 15 * + COALESCE ( 50, 95 )
----
-750

query I rowsort
SELECT ALL + 60 + 16 * - 94 col2
----
-1444

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

skipif mysql # not compatible
query I rowsort label-7811
SELECT + 78 / + + CAST ( + 12 AS INTEGER ) * + COUNT ( * ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT - SUM( ALL + - 89 ) + 28 col1
----
117

skipif mysql # not compatible
query I rowsort label-7812
SELECT - SUM ( ALL + - 89 ) + 28 col1
----
117

query I rowsort
SELECT ALL 89 * - 24 col0
----
-2136

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT - - COALESCE ( - + 82, ( + MAX( 0 ) ) )
----
-82

skipif mysql # not compatible
query I rowsort label-7814
SELECT - - COALESCE ( - + 82, ( + MAX ( 0 ) ) )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT - + MAX( DISTINCT - - 5 ) + ( 74 + - 94 * 71 )
----
-6605

skipif mysql # not compatible
query I rowsort label-7815
SELECT - + MAX ( DISTINCT - - 5 ) + ( 74 + - 94 * 71 )
----
-6605

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7817
SELECT - 2 DIV ( + COUNT( ALL - ( - 20 ) ) ) * + 34 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-7817
SELECT - 2 / ( + COUNT ( ALL - ( - 20 ) ) ) * + 34 AS col2
----
-68

query I rowsort
SELECT - NULLIF ( + 33, - 79 ) * + 14 AS col2
----
-462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7819
SELECT DISTINCT + MIN( DISTINCT + 1 ) DIV 8
----
0

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT + MIN ( DISTINCT + 1 ) / 8
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7820
SELECT ALL COALESCE ( + 27, + 73 DIV 29 + 58 ) * + COUNT( * ) - 38
----
-11

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL COALESCE ( + 27, + 73 / 29 + 58 ) * + COUNT ( * ) - 38
----
-11

query I rowsort
SELECT - + 41 * - 94
----
3854

query I rowsort
SELECT ALL + 30 * 96 * + 28
----
80640

onlyif mysql # DIV for integer division: 
query I rowsort label-7823
SELECT 72 DIV + 93 + + 94 + + 25 DIV 93
----
94

skipif mysql # not compatible
query I rowsort label-7823
SELECT 72 / + 93 + + 94 + + 25 / 93
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7824
SELECT - COUNT( * ) * - + 4 * CAST( NULL AS SIGNED ) + 76 * 63
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT DISTINCT - COUNT( * ) * - 71 * - 53 + - 68 AS col0
----
-3831

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT - COUNT ( * ) * - 71 * - 53 + - 68 AS col0
----
-3831

query I rowsort
SELECT + ( 34 ) * - 44
----
-1496

query I rowsort
SELECT ALL - - COALESCE ( - 72, 54 ) * - 82
----
5904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7829
SELECT DISTINCT - CASE + ( + 83 ) WHEN + COALESCE ( + 78, 65 ) / MAX( ALL 62 ) THEN + ( ( - COALESCE ( + 96, - 24, 27 + - 82 / 71 ) ) ) END * + ( - AVG ( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT - CASE + ( + 83 ) WHEN + COALESCE ( + 78, 65 ) / MAX ( ALL 62 ) THEN + ( ( - COALESCE ( + 96, - 24, 27 + - 82 / 71 ) ) ) END * + ( - AVG ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 67 * - 96
----
6432

query I rowsort
SELECT - 45 - - - 66 * 71 col2
----
-4731

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT - + COUNT( * ) * - 61 * - MAX( DISTINCT + 38 )
----
-2318

skipif mysql # not compatible
query I rowsort label-7832
SELECT - + COUNT ( * ) * - 61 * - MAX ( DISTINCT + 38 )
----
-2318

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

skipif mysql # not compatible
query I rowsort label-7833
SELECT COUNT ( - - 46 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7834
SELECT DISTINCT + CAST( 34 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT + CAST ( 34 AS INTEGER )
----
34

query I rowsort
SELECT - 92 * - ( - NULLIF ( 46, 58 ) )
----
-4232

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

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

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

query I rowsort
SELECT DISTINCT NULLIF ( + 6, + 74 / - ( 39 ) + - CASE + 0 WHEN 13 THEN 47 - 6 WHEN 95 THEN NULL END ) + + ( 41 ) AS col1
----
47

query I rowsort
SELECT ALL 79 + + - COALESCE ( - 18, - 13 * + 5 ) - + NULLIF ( 75, 35 * 79 )
----
22

query I rowsort
SELECT 55 * 22 * + 2 - - 35 * 48
----
4100

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT + SUM( + CASE - + 21 WHEN 61 / + NULLIF ( 23, - 12 * + 97 ) THEN 65 WHEN + 34 THEN - 8 END ) / - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-7841
SELECT + SUM ( + CASE - + 21 WHEN 61 / + NULLIF ( 23, - 12 * + 97 ) THEN 65 WHEN + 34 THEN - 8 END ) / - 40
----
NULL

query I rowsort
SELECT - 61 * + 18 AS col1
----
-1098

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT DISTINCT + ( - + 25 ) + + COUNT( * ) * - CASE 89 * + 0 WHEN - 32 THEN 80 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT + ( - + 25 ) + + COUNT ( * ) * - CASE 89 * + 0 WHEN - 32 THEN 80 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 49 * + 57
----
2793

query I rowsort
SELECT DISTINCT 67 + - + 97
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT DISTINCT 78 + - COUNT( DISTINCT - 84 ) - + 72 * + 22 * 92
----
-145651

skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT 78 + - COUNT ( DISTINCT - 84 ) - + 72 * + 22 * 92
----
-145651

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7847
SELECT 70, 32 DIV 72 * COUNT( * ) AS col1
----
70
0

skipif mysql # not compatible
query II rowsort label-7847
SELECT 70, 32 / 72 * COUNT ( * ) AS col1
----
70
0

query I rowsort
SELECT ALL 2 + - 34 AS col0
----
-32

query I rowsort
SELECT + 8 - 34
----
-26

query I rowsort
SELECT ALL 13 * - + 85 * 39 AS col1
----
-43095

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT - MIN( DISTINCT + 76 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-7851
SELECT - MIN ( DISTINCT + 76 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT + 54 + + 94 + + COUNT( * ) * 99 AS col0
----
247

skipif mysql # not compatible
query I rowsort label-7852
SELECT + 54 + + 94 + + COUNT ( * ) * 99 AS col0
----
247

query I rowsort
SELECT ALL 66 - 34
----
32

query I rowsort
SELECT + 72 * - + ( + + 94 )
----
-6768

onlyif mysql # aggregate syntax: 
query II rowsort label-7855
SELECT 27 AS col1, - COUNT( * ) * - + 32 - COUNT( * ) AS col0
----
27
31

skipif mysql # not compatible
query II rowsort label-7855
SELECT 27 AS col1, - COUNT ( * ) * - + 32 - COUNT ( * ) AS col0
----
27
31

query I rowsort
SELECT + - ( + 97 ) + + - 39 + - 23
----
-159

query I rowsort
SELECT + + 62 + 93 * - 99
----
-9145

query I rowsort
SELECT ALL + 51 * + ( - 99 ) * 77 AS col2
----
-388773

query I rowsort
SELECT + + 45 * + - NULLIF ( COALESCE ( - 21, 78 * 91 + + 28, - ( 77 ) ), + 21 ) + - 83
----
862

query I rowsort
SELECT + - 87 + + + 80
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT ALL NULLIF ( + ( 0 ), 63 * SUM( - 60 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL NULLIF ( + ( 0 ), 63 * SUM ( - 60 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7862
SELECT DISTINCT 88 DIV MAX( 64 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7862
SELECT DISTINCT 88 / MAX ( 64 ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7863
SELECT + 98 * 28 * + CASE + 45 WHEN - 36 THEN NULL ELSE + 80 END + + 22 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7863
SELECT + 98 * 28 * + CASE + 45 WHEN - 36 THEN NULL ELSE + 80 END + + 22 * - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT + 76 * + + 24
----
1824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7865
SELECT COUNT( * ) DIV 83 + ( MAX( 74 ) ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7865
SELECT COUNT ( * ) / 83 + ( MAX ( 74 ) ) AS col0
----
74

query I rowsort
SELECT NULLIF ( - - 76, - - ( 2 ) * + 89 ) * - 72 + 16
----
-5456

query I rowsort
SELECT DISTINCT + 57 * - 83 - - CASE 34 WHEN + 96 THEN 51 WHEN 62 * 56 THEN - 2 ELSE ( 83 ) * 60 END AS col0
----
249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7868
SELECT DISTINCT + CASE - 76 WHEN + 16 * 56 THEN COUNT( * ) / CAST( NULL AS SIGNED ) ELSE 19 END AS col0
----
19

skipif mysql # not compatible
query I rowsort label-7868
SELECT DISTINCT + CASE - 76 WHEN + 16 * 56 THEN COUNT ( * ) / CAST ( NULL AS INTEGER ) ELSE 19 END AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7869
SELECT + 3 DIV 85 + + - 44
----
-44

skipif mysql # not compatible
query I rowsort label-7869
SELECT + 3 / 85 + + - 44
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7870
SELECT - - COALESCE ( + 30, - 72 ) DIV - SUM( + 70 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7870
SELECT - - COALESCE ( + 30, - 72 ) / - SUM ( + 70 ) AS col0
----
0

query I rowsort
SELECT + + 60 + 62
----
122

query I rowsort
SELECT ALL + + CASE 89 WHEN + + ( 4 ) THEN 45 WHEN + 78 * - 70 THEN - ( 63 ) + + 45 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7873
SELECT DISTINCT + - 96 DIV + 2 + + 32 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT + - 96 / + 2 + + 32 AS col2
----
-16

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

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL + 74 / 14 * + COUNT ( * )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7875
SELECT DISTINCT 17 DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT 17 / 39
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7876
SELECT ALL + CAST( NULL AS DECIMAL ) * + 26 + - SUM( ALL 23 ) + 65 * COALESCE ( - 37 * - 79, + 31, + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL + CAST ( NULL AS REAL ) * + 26 + - SUM ( ALL 23 ) + 65 * COALESCE ( - 37 * - 79, + 31, + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT - 56 + + 21 + - COUNT( * ) * - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-7878
SELECT - 56 + + 21 + - COUNT ( * ) * - COUNT ( * )
----
-34

query I rowsort
SELECT DISTINCT - 23 * + 33 * + - 95 + - + 30 * + 62 AS col0
----
70245

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT ALL + COUNT( * ) * + 46 + + 5 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-7880
SELECT ALL + COUNT ( * ) * + 46 + + 5 AS col1
----
51

query I rowsort
SELECT ALL - 57 * + NULLIF ( - 9, + 76 ) + 72 * 74
----
5841

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT + COALESCE ( - CASE COUNT( * ) WHEN - COUNT( ALL ( 50 ) ) / - ( + CASE WHEN 17 IS NULL THEN ( 3 ) * 82 ELSE NULL END ) THEN COUNT( * ) END, + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-7882
SELECT + COALESCE ( - CASE COUNT ( * ) WHEN - COUNT ( ALL ( 50 ) ) / - ( + CASE WHEN 17 IS NULL THEN ( 3 ) * 82 ELSE NULL END ) THEN COUNT ( * ) END, + 45 )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7883
SELECT 59 * - + CAST( 19 AS SIGNED ) + - 93 AS col0
----
-1214

skipif mysql # not compatible
query I rowsort label-7883
SELECT 59 * - + CAST ( 19 AS INTEGER ) + - 93 AS col0
----
-1214

query I rowsort
SELECT COALESCE ( - + 90, + - 24 * 68 ) AS col2
----
-90

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

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

query I rowsort
SELECT - 14 + 49 AS col0
----
35

query I rowsort
SELECT ALL 18 * 9 + + 22 * + 78 AS col2
----
1878

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7888
SELECT 39 DIV 43 * - - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7888
SELECT 39 / 43 * - - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT ( NULLIF ( + 68, - SUM( DISTINCT + 22 ) ) ) * 58 + 12 AS col1
----
3956

skipif mysql # not compatible
query I rowsort label-7889
SELECT ( NULLIF ( + 68, - SUM ( DISTINCT + 22 ) ) ) * 58 + 12 AS col1
----
3956

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT ALL + 97 - COUNT( * ) * + ( + 33 ) col0
----
64

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL + 97 - COUNT ( * ) * + ( + 33 ) col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT 64 * + 55 * - SUM( ( 87 ) )
----
-306240

skipif mysql # not compatible
query I rowsort label-7891
SELECT 64 * + 55 * - SUM ( ( 87 ) )
----
-306240

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT COALESCE ( - 83, 12 + - 56 * 20 ) * + SUM( DISTINCT - 16 * 53 )
----
70384

skipif mysql # not compatible
query I rowsort label-7892
SELECT COALESCE ( - 83, 12 + - 56 * 20 ) * + SUM ( DISTINCT - 16 * 53 )
----
70384

query I rowsort
SELECT 3 + - 80 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-7894
SELECT DISTINCT COUNT( * ) - - + 64, ( 61 ) * 88 AS col1
----
65
5368

skipif mysql # not compatible
query II rowsort label-7894
SELECT DISTINCT COUNT ( * ) - - + 64, ( 61 ) * 88 AS col1
----
65
5368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7895
SELECT ALL + 96 * + ( COUNT( * ) ) * CASE + 91 WHEN 56 * + 43 THEN - 91 ELSE NULLIF ( 39, + 54 ) * - 27 END * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL + 96 * + ( COUNT ( * ) ) * CASE + 91 WHEN 56 * + 43 THEN - 91 ELSE NULLIF ( 39, + 54 ) * - 27 END * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7896
SELECT 20 * + - CAST( NULL AS SIGNED ) * - 12 / - - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT 20 * + - CAST ( NULL AS INTEGER ) * - 12 / - - 20
----
NULL

query I rowsort
SELECT ALL - 94 * 81 + + 45
----
-7569

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT ALL MIN( ALL - - ( 88 ) )
----
88

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL MIN ( ALL - - ( 88 ) )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7899
SELECT DISTINCT CASE WHEN 16 BETWEEN 44 * COUNT( * ) AND 30 - 55 THEN NULL WHEN NOT ( + 48 + 30 * - 59 ) NOT BETWEEN COUNT( * ) AND NULLIF ( SUM( DISTINCT + 2 ), 96 * 39 ) THEN NULL ELSE + 85 DIV 70 + 23 END AS col2
----
24

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT CASE WHEN 16 BETWEEN 44 * COUNT ( * ) AND 30 - 55 THEN NULL WHEN NOT ( + 48 + 30 * - 59 ) NOT BETWEEN COUNT ( * ) AND NULLIF ( SUM ( DISTINCT + 2 ), 96 * 39 ) THEN NULL ELSE + 85 / 70 + 23 END AS col2
----
24

query I rowsort
SELECT + 73 * 47 AS col1
----
3431

query I rowsort
SELECT 89 * + 71 AS col2
----
6319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7902
SELECT - - COUNT( * ) * MAX( - 47 ) + + 0 - AVG ( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7902
SELECT - - COUNT ( * ) * MAX ( - 47 ) + + 0 - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT DISTINCT 79 + - - 80, + 89 AS col1
----
159
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT DISTINCT - NULLIF ( + - COUNT( * ), - 80 ) + - - 59 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT - NULLIF ( + - COUNT ( * ), - 80 ) + - - 59 AS col0
----
60

query I rowsort
SELECT ALL + 29 * + - 32 col2
----
-928

query II rowsort
SELECT ALL 6 + + 2 AS col0, 32
----
8
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT COUNT( * ) * - 63 + - 29 * + COUNT( * ) + - 19 AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-7907
SELECT COUNT ( * ) * - 63 + - 29 * + COUNT ( * ) + - 19 AS col1
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT ALL COALESCE ( - 75, + - ( - - COUNT( * ) ) + + 97 * + 2 ) + 18
----
-57

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL COALESCE ( - 75, + - ( - - COUNT ( * ) ) + + 97 * + 2 ) + 18
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT DISTINCT - COALESCE ( 50, - SUM( 20 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT - COALESCE ( 50, - SUM ( 20 ) )
----
-50

query I rowsort
SELECT DISTINCT ( - 99 ) + NULLIF ( + + 73, - 24 ) AS col1
----
-26

query I rowsort
SELECT DISTINCT + 46 + 83 col1
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-7912
SELECT DISTINCT - 82 DIV + 4
----
-20

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT - 82 / + 4
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT ALL + 28 - 10 + - - 92 + - + COUNT( * ) * 49 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL + 28 - 10 + - - 92 + - + COUNT ( * ) * 49 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL - 73 * - COUNT( * ) * 4
----
292

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL - 73 * - COUNT ( * ) * 4
----
292

query I rowsort
SELECT 68 * - + 38 * - - 54 AS col0
----
-139536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7916
SELECT ALL 97 DIV MAX( - 8 ) * 91
----
-1092

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL 97 / MAX ( - 8 ) * 91
----
-1092

onlyif mysql # DIV for integer division: 
query I rowsort label-7917
SELECT 74 DIV - NULLIF ( 91, 12 ) * + 54
----
0

skipif mysql # not compatible
query I rowsort label-7917
SELECT 74 / - NULLIF ( 91, 12 ) * + 54
----
0

query I rowsort
SELECT DISTINCT - 83 * 59
----
-4897

query I rowsort
SELECT 68 * 33 * COALESCE ( - - 49, - 50 )
----
109956

onlyif mysql # aggregate syntax: 
query II rowsort label-7920
SELECT 38 AS col1, + MIN( - 26 ) * + 85 AS col2
----
38
-2210

skipif mysql # not compatible
query II rowsort label-7920
SELECT 38 AS col1, + MIN ( - 26 ) * + 85 AS col2
----
38
-2210

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7921
SELECT DISTINCT + 93 * ( + 99 ) DIV 17 + CASE ( COALESCE ( + 60, - 50 + 91 * + 90 ) ) WHEN - 44 * 90 - 38 DIV CAST( NULL AS SIGNED ) THEN NULL WHEN - 85 * + 94 THEN 32 ELSE + 95 END
----
636

skipif mysql # not compatible
query I rowsort label-7921
SELECT DISTINCT + 93 * ( + 99 ) / 17 + CASE ( COALESCE ( + 60, - 50 + 91 * + 90 ) ) WHEN - 44 * 90 - 38 / CAST ( NULL AS INTEGER ) THEN NULL WHEN - 85 * + 94 THEN 32 ELSE + 95 END
----
636

query I rowsort
SELECT DISTINCT + 11 * + + 3
----
33

query I rowsort
SELECT 4 * - 62
----
-248

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL - SUM( ALL - 43 ) col2
----
43

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL - SUM ( ALL - 43 ) col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT NULLIF ( 36, + 79 ) + - COALESCE ( + 10, ( 75 ), COUNT( * ) + 17 * 57 ) + 58 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-7925
SELECT NULLIF ( 36, + 79 ) + - COALESCE ( + 10, ( 75 ), COUNT ( * ) + 17 * 57 ) + 58 AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7926
SELECT + CAST( NULL AS SIGNED ) - 36 + CASE - 92 WHEN - - 54 - - 82 * - 83 THEN NULL ELSE - 84 END + COUNT( + ( 61 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7926
SELECT + CAST ( NULL AS INTEGER ) - 36 + CASE - 92 WHEN - - 54 - - 82 * - 83 THEN NULL ELSE - 84 END + COUNT ( + ( 61 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT 83 + 12 * MIN( ALL - + ( - 26 ) )
----
395

skipif mysql # not compatible
query I rowsort label-7927
SELECT 83 + 12 * MIN ( ALL - + ( - 26 ) )
----
395

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT - - ( + + COALESCE ( + 25, + 13 - MAX( DISTINCT - 74 ) - - 66 ) )
----
25

skipif mysql # not compatible
query I rowsort label-7928
SELECT - - ( + + COALESCE ( + 25, + 13 - MAX ( DISTINCT - 74 ) - - 66 ) )
----
25

query I rowsort
SELECT + 62 + + 94
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-7930
SELECT DISTINCT - 40 DIV + 32 col1
----
-1

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT - 40 / + 32 col1
----
-1

query I rowsort
SELECT DISTINCT + 82 + - NULLIF ( 35, 49 ) + - 4
----
43

query I rowsort
SELECT ALL + ( - 67 ) + - 78
----
-145

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7934
SELECT ALL CAST( + 22 AS SIGNED ) + - 55 * - 3 col0
----
187

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL CAST ( + 22 AS INTEGER ) + - 55 * - 3 col0
----
187

onlyif mysql # DIV for integer division: 
query I rowsort label-7935
SELECT + 60 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-7935
SELECT + 60 / 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT SUM( DISTINCT + 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-7936
SELECT SUM ( DISTINCT + 61 ) AS col1
----
61

query I rowsort
SELECT + 43 * - - 63 AS col1
----
2709

query I rowsort
SELECT DISTINCT - 15 * + 45 + 3 + - 4 * - 38 + 93
----
-427

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7939
SELECT + + 29 DIV - 89 + - 22 + + MAX( + - 65 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-7939
SELECT + + 29 / - 89 + - 22 + + MAX ( + - 65 ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query III rowsort label-7940
SELECT COUNT( * ) AS col0, + 46 col0, + - 70 AS col2
----
1
46
-70

skipif mysql # not compatible
query III rowsort label-7940
SELECT COUNT ( * ) AS col0, + 46 col0, + - 70 AS col2
----
1
46
-70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT ALL - 91 * + ( + ( COUNT( * ) ) ) - ( + 71 ) * 41
----
-3002

skipif mysql # not compatible
query I rowsort label-7942
SELECT ALL - 91 * + ( + ( COUNT ( * ) ) ) - ( + 71 ) * 41
----
-3002

query I rowsort
SELECT ALL 26 * + 96 col2
----
2496

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7944
SELECT ALL + 33 AS col1, + CAST( NULL AS SIGNED ) / + - 8
----
33
NULL

skipif mysql # not compatible
query II rowsort label-7944
SELECT ALL + 33 AS col1, + CAST ( NULL AS INTEGER ) / + - 8
----
33
NULL

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

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

query I rowsort
SELECT - 3 + - - 7 + 63 * - - 76 + - 7
----
4785

query I rowsort
SELECT + 91 * + + 16 - 32
----
1424

query I rowsort
SELECT + 67 * 0 * - 44 AS col0
----
0

query I rowsort
SELECT + 79 + - 63 + - 5 * 19 * 35 * + + 70
----
-232734

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT ALL 90 * - - 51 * - + COUNT( * )
----
-4590

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL 90 * - - 51 * - + COUNT ( * )
----
-4590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7951
SELECT + ( COUNT( * ) ) * - CAST( - 92 AS SIGNED ) + 3 + - 44 + 54 AS col0
----
105

skipif mysql # not compatible
query I rowsort label-7951
SELECT + ( COUNT ( * ) ) * - CAST ( - 92 AS INTEGER ) + 3 + - 44 + 54 AS col0
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7952
SELECT + 31 * CAST( - + 74 AS SIGNED ) AS col0
----
-2294

skipif mysql # not compatible
query I rowsort label-7952
SELECT + 31 * CAST ( - + 74 AS INTEGER ) AS col0
----
-2294

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT COUNT( * ) * - 21 + - 12 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-7953
SELECT COUNT ( * ) * - 21 + - 12 AS col1
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-7954
SELECT + ( - 60 ) + + 97 - 45 + - 19 * - 80 DIV + 40
----
30

skipif mysql # not compatible
query I rowsort label-7954
SELECT + ( - 60 ) + + 97 - 45 + - 19 * - 80 / + 40
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT + COUNT( * ) + + - 74 + + 21
----
-52

skipif mysql # not compatible
query I rowsort label-7955
SELECT + COUNT ( * ) + + - 74 + + 21
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-7956
SELECT ALL - 34 DIV + + 69 * 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL - 34 / + + 69 * 20 AS col1
----
0

query I rowsort
SELECT + NULLIF ( - 62, + 97 )
----
-62

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

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

query II rowsort
SELECT - - 8 + 32 AS col2, - 55
----
40
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT + - NULLIF ( - 69, - 73 ) * + + 69 * + + COUNT( * ) col2
----
4761

skipif mysql # not compatible
query I rowsort label-7960
SELECT + - NULLIF ( - 69, - 73 ) * + + 69 * + + COUNT ( * ) col2
----
4761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7961
SELECT - 16 + NULLIF ( - 96, - CAST( + ( - ( - 26 ) ) AS SIGNED ) ) AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-7961
SELECT - 16 + NULLIF ( - 96, - CAST ( + ( - ( - 26 ) ) AS INTEGER ) ) AS col0
----
-112

query II rowsort
SELECT DISTINCT 84, + 27 AS col2
----
84
27

query I rowsort
SELECT DISTINCT - 11 * + 28 * + 58 col0
----
-17864

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT ALL + COUNT( + - 94 ) + 81 + - 53 + + + 4
----
33

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL + COUNT ( + - 94 ) + 81 + - 53 + + + 4
----
33

query I rowsort
SELECT ALL - + 12 + + NULLIF ( + NULLIF ( + 33, 92 ), - 2 * 64 ) col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT - 82 * - 50 * - COUNT( + 40 ) * - 79
----
323900

skipif mysql # not compatible
query I rowsort label-7966
SELECT - 82 * - 50 * - COUNT ( + 40 ) * - 79
----
323900

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

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

query II rowsort
SELECT 83 AS col2, - 71 * - - 53 AS col0
----
83
-3763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7969
SELECT + - 12 * NULLIF ( - + 92, - 45 * - - 45 + + - 68 * 29 ) * 0 + CAST( NULL AS SIGNED ) / + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-7969
SELECT + - 12 * NULLIF ( - + 92, - 45 * - - 45 + + - 68 * 29 ) * 0 + CAST ( NULL AS INTEGER ) / + 58
----
NULL

query I rowsort
SELECT - - 7 * ( + 24 ) - 17 + - 54
----
97

query I rowsort
SELECT ALL + - 7 + - - 69 AS col1
----
62

query II rowsort
SELECT 20 col0, 31
----
20
31

query I rowsort
SELECT - 85 * + 99 AS col0
----
-8415

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT + MIN( - 75 ) * 39 AS col1
----
-2925

skipif mysql # not compatible
query I rowsort label-7974
SELECT + MIN ( - 75 ) * 39 AS col1
----
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT ALL 9 * + ( ( - ( + SUM( DISTINCT 92 ) ) ) ) * 51
----
-42228

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL 9 * + ( ( - ( + SUM ( DISTINCT 92 ) ) ) ) * 51
----
-42228

query I rowsort
SELECT - 15 * - 40
----
600

query I rowsort
SELECT ALL - 1 * + 50 AS col1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7978
SELECT ALL 69 DIV MIN( 70 ) - NULLIF ( - 14, 53 )
----
14

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL 69 / MIN ( 70 ) - NULLIF ( - 14, 53 )
----
14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT - 62 + - + 65 * - + MAX( - 60 ) - - - COUNT( * ) AS col0
----
-3963

skipif mysql # not compatible
query I rowsort label-7980
SELECT - 62 + - + 65 * - + MAX ( - 60 ) - - - COUNT ( * ) AS col0
----
-3963

query I rowsort
SELECT - 79 * 9 AS col2
----
-711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7982
SELECT DISTINCT + COALESCE ( 14, + 68, + COUNT( * ) - + 84 + - 88 + ( + 5 ) + + 92 * + 6 * ( - CASE - 47 WHEN - CASE COUNT( * ) WHEN + COUNT( * ) THEN NULL ELSE + 67 / + SUM( 81 ) END THEN - 55 * - 81 END + CAST( NULL AS SIGNED ) ) )
----
14

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT + COALESCE ( 14, + 68, + COUNT ( * ) - + 84 + - 88 + ( + 5 ) + + 92 * + 6 * ( - CASE - 47 WHEN - CASE COUNT ( * ) WHEN + COUNT ( * ) THEN NULL ELSE + 67 / + SUM ( 81 ) END THEN - 55 * - 81 END + CAST ( NULL AS INTEGER ) ) )
----
14

query II rowsort
SELECT - 55 * - 86, 44 AS col2
----
4730
44

query I rowsort
SELECT + COALESCE ( - + 21, - 69 ) AS col0
----
-21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT DISTINCT + COALESCE ( 83, + + MIN( 26 ) )
----
83

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT + COALESCE ( 83, + + MIN ( 26 ) )
----
83

query I rowsort
SELECT + COALESCE ( + ( - + 75 ), 93 )
----
-75

query I rowsort
SELECT ALL 86 * - 2 * - 44 + CASE + ( + - 66 ) WHEN + - 81 + - 9 THEN - 60 END AS col2
----
NULL

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

query I rowsort
SELECT + 78 * 67 * - + 42
----
-219492

query I rowsort
SELECT - 89 * 60
----
-5340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7992
SELECT CASE - + 42 WHEN 42 THEN + CAST( + - 55 AS SIGNED ) + - 74 / COALESCE ( - MIN( 88 ), 96 / + ( 40 * + 54 ) ) + - COUNT( * ) / + 67 WHEN 31 + + 75 THEN - 48 - - NULLIF ( - 45, + 65 ) ELSE + 97 END col0
----
97

skipif mysql # not compatible
query I rowsort label-7992
SELECT CASE - + 42 WHEN 42 THEN + CAST ( + - 55 AS INTEGER ) + - 74 / COALESCE ( - MIN ( 88 ), 96 / + ( 40 * + 54 ) ) + - COUNT ( * ) / + 67 WHEN 31 + + 75 THEN - 48 - - NULLIF ( - 45, + 65 ) ELSE + 97 END col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT + + MAX( 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-7993
SELECT + + MAX ( 56 ) AS col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7994
SELECT + 31 / + CASE + - 58 WHEN COALESCE ( - CAST( + + 67 AS SIGNED ), - 69 * 21 - 8 ) THEN NULL WHEN COALESCE ( 71, COUNT( * ) ) THEN + 67 + + 58 ELSE NULL END * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT + 31 / + CASE + - 58 WHEN COALESCE ( - CAST ( + + 67 AS INTEGER ), - 69 * 21 - 8 ) THEN NULL WHEN COALESCE ( 71, COUNT ( * ) ) THEN + 67 + + 58 ELSE NULL END * - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + 0 * + + 92 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT + - MAX( - 22 ) - + ( COUNT( * ) ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7996
SELECT + - MAX ( - 22 ) - + ( COUNT ( * ) ) AS col0
----
21

query I rowsort
SELECT + + 77 - 74 + - 19 col2
----
-16

query I rowsort
SELECT ALL 27 * + 72 AS col1
----
1944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7999
SELECT + - ( + + SUM( ALL + 21 ) ) DIV - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7999
SELECT + - ( + + SUM ( ALL + 21 ) ) / - 91 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT ALL - CASE - 7 WHEN + 68 * 90 + SUM( DISTINCT - 0 ) THEN + 84 * + ( - 54 / 52 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL - CASE - 7 WHEN + 68 * 90 + SUM ( DISTINCT - 0 ) THEN + 84 * + ( - 54 / 52 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT ALL + COUNT( * ) + - - 27 - - + 26 - - 5 * 60 AS col0
----
354

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL + COUNT ( * ) + - - 27 - - + 26 - - 5 * 60 AS col0
----
354

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT MAX( DISTINCT + 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-8002
SELECT MAX ( DISTINCT + 74 ) AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8003
SELECT + COUNT( * ) + - 52 - + 96 AS col2, + 33 + CASE COUNT( * ) WHEN - 20 THEN NULLIF ( + COUNT( * ), - 18 * COUNT( - 16 * 87 ) ) WHEN CAST( NULL AS SIGNED ) / - 18 THEN NULL END AS col2
----
-147
NULL

skipif mysql # not compatible
query II rowsort label-8003
SELECT + COUNT ( * ) + - 52 - + 96 AS col2, + 33 + CASE COUNT ( * ) WHEN - 20 THEN NULLIF ( + COUNT ( * ), - 18 * COUNT ( - 16 * 87 ) ) WHEN CAST ( NULL AS INTEGER ) / - 18 THEN NULL END AS col2
----
-147
NULL

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

query II rowsort
SELECT + 47 + - 39 * 46, 89 AS col1
----
-1747
89

query I rowsort
SELECT - 16 - - NULLIF ( + 75, + 62 ) * + - 14 + + 13 - + - 99 * 62 AS col2
----
5085

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ALL - 6 * + 33 * + 30 + + COUNT( * )
----
-5939

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL - 6 * + 33 * + 30 + + COUNT ( * )
----
-5939

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8009
SELECT DISTINCT + MIN( + - 68 ), 52 AS col0
----
-68
52

skipif mysql # not compatible
query II rowsort label-8009
SELECT DISTINCT + MIN ( + - 68 ), 52 AS col0
----
-68
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT ( - - 24 ) + - + COUNT( * ) * + 97 col0
----
-73

skipif mysql # not compatible
query I rowsort label-8010
SELECT ( - - 24 ) + - + COUNT ( * ) * + 97 col0
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-8011
SELECT DISTINCT 38, 59 * - COUNT( * ) + - + 51 AS col2
----
38
-110

skipif mysql # not compatible
query II rowsort label-8011
SELECT DISTINCT 38, 59 * - COUNT ( * ) + - + 51 AS col2
----
38
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-8012
SELECT 62 + - 77 * 15 DIV + 36 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-8012
SELECT 62 + - 77 * 15 / + 36 AS col2
----
30

query I rowsort
SELECT 68 * - 52
----
-3536

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT COUNT( * ) + COUNT( * ) + + 22 + COALESCE ( ( + + 48 ), MIN( - + 61 ) ) * 75 AS col0
----
3624

skipif mysql # not compatible
query I rowsort label-8014
SELECT COUNT ( * ) + COUNT ( * ) + + 22 + COALESCE ( ( + + 48 ), MIN ( - + 61 ) ) * 75 AS col0
----
3624

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT 58 * - - 53 * - COUNT( ALL - 65 )
----
-3074

skipif mysql # not compatible
query I rowsort label-8015
SELECT 58 * - - 53 * - COUNT ( ALL - 65 )
----
-3074

query I rowsort
SELECT 94 * - 56 * + 13 * - 32
----
2189824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8017
SELECT COUNT( ALL - - 78 ) DIV - 69 + + - 93 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-8017
SELECT COUNT ( ALL - - 78 ) / - 69 + + - 93 AS col0
----
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-8018
SELECT DISTINCT - 16 AS col0, 57 + ( - + 71 ) DIV 84 AS col2
----
-16
57

skipif mysql # not compatible
query II rowsort label-8018
SELECT DISTINCT - 16 AS col0, 57 + ( - + 71 ) / 84 AS col2
----
-16
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8019
SELECT DISTINCT + 52 + - ( + COUNT( * ) ), - 62 * - - 87 AS col1
----
51
-5394

skipif mysql # not compatible
query II rowsort label-8019
SELECT DISTINCT + 52 + - ( + COUNT ( * ) ), - 62 * - - 87 AS col1
----
51
-5394

query I rowsort
SELECT 74 + + 17 AS col1
----
91

query I rowsort
SELECT - ( - + 19 ) * - - 66 + 91 - - NULLIF ( + 77, - 52 - + 32 )
----
1422

query I rowsort
SELECT DISTINCT + 34 + + NULLIF ( - - 8, + 46 ) + 19 + + 12 * 66 * - + CASE + 15 WHEN 78 * + 56 THEN NULL WHEN 43 THEN + 28 * - 97 WHEN - 17 THEN NULL END + 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT ALL - MAX( ALL + 94 ) * NULLIF ( + 20, - - COUNT( * ) )
----
-1880

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL - MAX ( ALL + 94 ) * NULLIF ( + 20, - - COUNT ( * ) )
----
-1880

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT 83 * - - NULLIF ( + 59, + COUNT( * ) )
----
4897

skipif mysql # not compatible
query I rowsort label-8024
SELECT 83 * - - NULLIF ( + 59, + COUNT ( * ) )
----
4897

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT DISTINCT - COUNT( ALL - 42 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT - COUNT ( ALL - 42 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8026
SELECT + - CAST( 2 AS SIGNED ) * - 76 DIV - COUNT( * ) + + 66
----
-86

skipif mysql # not compatible
query I rowsort label-8026
SELECT + - CAST ( 2 AS INTEGER ) * - 76 / - COUNT ( * ) + + 66
----
-86

query II rowsort
SELECT DISTINCT - 9 col0, 85 * + 74
----
-9
6290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8028
SELECT ALL - NULLIF ( + - CAST( + COUNT( * ) AS SIGNED ), + MIN( + ( + - 59 ) ) * 90 ) + + 97 * 41 AS col1
----
3978

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL - NULLIF ( + - CAST ( + COUNT ( * ) AS INTEGER ), + MIN ( + ( + - 59 ) ) * 90 ) + + 97 * 41 AS col1
----
3978

query I rowsort
SELECT 6 * + 89 + + 74 + + 53 + + - 58 * - + 23 AS col0
----
1995

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT ALL - CASE + + 86 WHEN COUNT( DISTINCT + ( 21 ) ) + + 7 THEN NULL ELSE + CASE WHEN + 53 IS NULL THEN 52 * 84 END * 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL - CASE + + 86 WHEN COUNT ( DISTINCT + ( 21 ) ) + + 7 THEN NULL ELSE + CASE WHEN + 53 IS NULL THEN 52 * 84 END * 32 END
----
NULL

query I rowsort
SELECT ALL 90 + - CASE 10 WHEN - 59 THEN NULL WHEN + - 74 / + + 87 * 31 + - 37 THEN 24 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT ALL - ( - COUNT( 42 ) ) * 18 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL - ( - COUNT ( 42 ) ) * 18 AS col0
----
18

query I rowsort
SELECT ALL + - 28 + 59 AS col0
----
31

query I rowsort
SELECT 81 + + 79 * + 56 + + + ( - 57 ) AS col1
----
4448

query I rowsort
SELECT COALESCE ( - 29, - 1 )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8036
SELECT + 40 * - + CAST( NULL AS SIGNED ) * + + 20 col0, - COALESCE ( + 4, + 41 - + COALESCE ( CAST( COUNT( * ) AS SIGNED ), 57, - 63 ) ) * 36
----
NULL
-144

skipif mysql # not compatible
query II rowsort label-8036
SELECT + 40 * - + CAST ( NULL AS INTEGER ) * + + 20 col0, - COALESCE ( + 4, + 41 - + COALESCE ( CAST ( COUNT ( * ) AS INTEGER ), 57, - 63 ) ) * 36
----
NULL
-144

query I rowsort
SELECT DISTINCT - 68 * 63 + 5 AS col0
----
-4279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8038
SELECT ALL + NULLIF ( + + CAST( + - 65 AS SIGNED ), - + MIN( - + 90 ) * + 92 )
----
-65

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL + NULLIF ( + + CAST ( + - 65 AS INTEGER ), - + MIN ( - + 90 ) * + 92 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT DISTINCT COUNT( * ) * 66 * - - 48 * + + 87 * + + 20 AS col2
----
5512320

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT COUNT ( * ) * 66 * - - 48 * + + 87 * + + 20 AS col2
----
5512320

onlyif mysql # aggregate syntax: 
query II rowsort label-8040
SELECT - 81 AS col0, + 76 + - - 33 * + - 25 * + 30 + + MIN( ALL + 14 ) AS col2
----
-81
-24660

skipif mysql # not compatible
query II rowsort label-8040
SELECT - 81 AS col0, + 76 + - - 33 * + - 25 * + 30 + + MIN ( ALL + 14 ) AS col2
----
-81
-24660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8041
SELECT DISTINCT - COUNT( * ) - 38 - - + ( - CAST( - 24 AS SIGNED ) ) + + 41 * + SUM( ALL + 9 ) + ( 27 ) AS col1
----
381

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT - COUNT ( * ) - 38 - - + ( - CAST ( - 24 AS INTEGER ) ) + + 41 * + SUM ( ALL + 9 ) + ( 27 ) AS col1
----
381

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT NULLIF ( - - 56, - - 43 * - MIN( + - 78 ) ) * + 12 + - + 88 AS col0
----
584

skipif mysql # not compatible
query I rowsort label-8042
SELECT NULLIF ( - - 56, - - 43 * - MIN ( + - 78 ) ) * + 12 + - + 88 AS col0
----
584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8043
SELECT DISTINCT 33 DIV - + CAST( + ( + COUNT( * ) ) AS SIGNED ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-8043
SELECT DISTINCT 33 / - + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col2
----
-33

query I rowsort
SELECT ( + 12 ) * - - 28 AS col1
----
336

onlyif mysql # DIV for integer division: 
query II rowsort label-8045
SELECT ( - 95 ) DIV + ( - - 18 ) AS col2, 61 DIV - 54
----
-5
-1

skipif mysql # not compatible
query II rowsort label-8045
SELECT ( - 95 ) / + ( - - 18 ) AS col2, 61 / - 54
----
-5
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT ALL MAX( DISTINCT - ( - - 83 ) ) * - + 22 AS col1
----
1826

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL MAX ( DISTINCT - ( - - 83 ) ) * - + 22 AS col1
----
1826

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8047
SELECT ALL 32 + 88 + - 18 + - 53 + - AVG ( DISTINCT 1 ) * + CASE + 68 WHEN - - 8 THEN + 79 WHEN - 61 THEN CAST( + 91 AS DECIMAL ) WHEN + 38 THEN - COALESCE ( AVG ( - 3 ), 96, 8 ) ELSE NULL END * + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL 32 + 88 + - 18 + - 53 + - AVG ( DISTINCT 1 ) * + CASE + 68 WHEN - - 8 THEN + 79 WHEN - 61 THEN CAST ( + 91 AS REAL ) WHEN + 38 THEN - COALESCE ( AVG ( - 3 ), 96, 8 ) ELSE NULL END * + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT ALL + 38 + - 3 * 12 AS col2
----
2

query I rowsort
SELECT 22 - 68
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT ALL - COUNT( - - 32 ) + 63 + 74 + + - 74
----
62

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL - COUNT ( - - 32 ) + 63 + 74 + + - 74
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT ALL + 21 + - COUNT( * ) * - COALESCE ( - 33, - + ( + COUNT( * ) ) * + 16 + + - 99 ) - 51 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL + 21 + - COUNT ( * ) * - COALESCE ( - 33, - + ( + COUNT ( * ) ) * + 16 + + - 99 ) - 51 AS col2
----
-63

query I rowsort
SELECT 77 * + 6 + - NULLIF ( - - 22, AVG ( DISTINCT 32 ) ) - - + 30 * 63 AS col0
----
2330

query I rowsort
SELECT ALL - + 76 + - 83 + + 50 * + - 44 * 68
----
-149759

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT COALESCE ( - + 1, + - 72 * COUNT( * ) + + ( COUNT( * ) ) - + - ( + 83 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8054
SELECT COALESCE ( - + 1, + - 72 * COUNT ( * ) + + ( COUNT ( * ) ) - + - ( + 83 ) ) AS col2
----
-1

query I rowsort
SELECT ALL - 30 * 36 AS col2
----
-1080

onlyif mysql # aggregate syntax: 
query II rowsort label-8056
SELECT DISTINCT + 72 * + - COUNT( * ), NULLIF ( - COUNT( * ), + 62 ) * - - 39 AS col0
----
-72
-39

skipif mysql # not compatible
query II rowsort label-8056
SELECT DISTINCT + 72 * + - COUNT ( * ), NULLIF ( - COUNT ( * ), + 62 ) * - - 39 AS col0
----
-72
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-8057
SELECT 83 DIV - 17
----
-4

skipif mysql # not compatible
query I rowsort label-8057
SELECT 83 / - 17
----
-4

query I rowsort
SELECT - 38 - - + 41
----
3

query II rowsort
SELECT 75 - 74, 16 AS col0
----
1
16

query I rowsort
SELECT DISTINCT + 56 * + 67
----
3752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8061
SELECT - + 98 + COALESCE ( ( + COUNT( * ) ), CAST( - 96 AS SIGNED ), 47 + + 40 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-8061
SELECT - + 98 + COALESCE ( ( + COUNT ( * ) ), CAST ( - 96 AS INTEGER ), 47 + + 40 ) AS col1
----
-97

query II rowsort
SELECT - - 23 + + 80 col1, 67
----
103
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8063
SELECT + - 18 - + + SUM( ALL + COALESCE ( 77, - CAST( - 94 AS SIGNED ) ) ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-8063
SELECT + - 18 - + + SUM ( ALL + COALESCE ( 77, - CAST ( - 94 AS INTEGER ) ) ) AS col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8064
SELECT - 39 + 76 * 34 DIV - MAX( ALL + 73 )
----
-74

skipif mysql # not compatible
query I rowsort label-8064
SELECT - 39 + 76 * 34 / - MAX ( ALL + 73 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT ALL COUNT( * ) + + - 59 * - + ( + 87 ) AS col2
----
5134

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL COUNT ( * ) + + - 59 * - + ( + 87 ) AS col2
----
5134

query I rowsort
SELECT + ( + - 78 ) + + 46
----
-32

query I rowsort
SELECT ALL + 79 * 93
----
7347

onlyif mysql # DIV for integer division: 
query I rowsort label-8068
SELECT DISTINCT - 24 + + + 11 DIV COALESCE ( - 6, 61 DIV - 16 ) col2
----
-25

skipif mysql # not compatible
query I rowsort label-8068
SELECT DISTINCT - 24 + + + 11 / COALESCE ( - 6, 61 / - 16 ) col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8069
SELECT + COUNT( * ) + NULLIF ( 47, - ( - + COUNT( * ) ) * - 92 + AVG ( CASE + + 83 WHEN + COALESCE ( - 22, CAST( NULL AS SIGNED ), 99 * + 88 ) THEN - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) + + 92 ELSE NULL END ) / 42 ) + 85 AS col2
----
133

skipif mysql # not compatible
query I rowsort label-8069
SELECT + COUNT ( * ) + NULLIF ( 47, - ( - + COUNT ( * ) ) * - 92 + AVG ( CASE + + 83 WHEN + COALESCE ( - 22, CAST ( NULL AS INTEGER ), 99 * + 88 ) THEN - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + + 92 ELSE NULL END ) / 42 ) + 85 AS col2
----
133

query I rowsort
SELECT DISTINCT 79 + + + 21 AS col0
----
100

query I rowsort
SELECT + 85 + - - 82 AS col2
----
167

query I rowsort
SELECT ALL 91 + + - 43
----
48

query I rowsort
SELECT DISTINCT 14 + - 19 AS col2
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8074
SELECT - CASE 11 WHEN + 57 THEN NULL ELSE - - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8074
SELECT - CASE 11 WHEN + 57 THEN NULL ELSE - - CAST ( NULL AS INTEGER ) END
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8076
SELECT + 55 + 14 * + CAST( 91 AS SIGNED )
----
1329

skipif mysql # not compatible
query I rowsort label-8076
SELECT + 55 + 14 * + CAST ( 91 AS INTEGER )
----
1329

onlyif mysql # DIV for integer division: 
query I rowsort label-8077
SELECT + 72 DIV 18
----
4

skipif mysql # not compatible
query I rowsort label-8077
SELECT + 72 / 18
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT + COUNT( - - ( - + 54 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8078
SELECT + COUNT ( - - ( - + 54 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8079
SELECT ALL - CAST( NULL AS SIGNED ) * + 46 + 61 * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL - CAST ( NULL AS INTEGER ) * + 46 + 61 * + 93
----
NULL

query II rowsort
SELECT DISTINCT + 41 col1, - 80 * + + 88
----
41
-7040

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

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

query I rowsort
SELECT ALL + 17 * 83 * - 52 AS col2
----
-73372

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT ALL NULLIF ( - 14, ( - + 64 ) ) * + 32 - + COUNT( ALL - 67 ) + + COUNT( * ) + + ( - 63 ) * 12 * ( - ( + 83 ) + 52 ) col2
----
22988

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL NULLIF ( - 14, ( - + 64 ) ) * + 32 - + COUNT ( ALL - 67 ) + + COUNT ( * ) + + ( - 63 ) * 12 * ( - ( + 83 ) + 52 ) col2
----
22988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8084
SELECT + COUNT( * ) * + 28 - - - 29, - COALESCE ( - 2, 71, + - 45 + + + 71 ) / + CAST( NULL AS SIGNED ) col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8084
SELECT + COUNT ( * ) * + 28 - - - 29, - COALESCE ( - 2, 71, + - 45 + + + 71 ) / + CAST ( NULL AS INTEGER ) col0
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT - - COUNT( * ) * - + SUM( - 2 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8085
SELECT - - COUNT ( * ) * - + SUM ( - 2 ) AS col1
----
2

query I rowsort
SELECT ALL - 34 * + + 23 + - - 39 * - - 26 AS col0
----
232

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT - CASE - 13 WHEN + 29 * COUNT( * ) THEN NULL ELSE 62 END + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-8088
SELECT - CASE - 13 WHEN + 29 * COUNT ( * ) THEN NULL ELSE 62 END + COUNT ( * )
----
-61

query I rowsort
SELECT + 9 + - - CASE + 99 WHEN - 73 * - 30 * + + 14 * NULLIF ( - + 55, - 45 * - 5 ) * + ( 97 + 25 ) THEN 65 WHEN 55 * 42 THEN NULL ELSE 8 * - 88 END AS col1
----
-695

query I rowsort
SELECT - 36 + 81 * 13 AS col1
----
1017

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT ALL - COUNT( * ) * + + 95 + + 23
----
-72

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL - COUNT ( * ) * + + 95 + + 23
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-8092
SELECT ALL + 7 DIV + + 96
----
0

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL + 7 / + + 96
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8093
SELECT - + 96 DIV + - 66 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8093
SELECT - + 96 / + - 66 AS col1
----
1

query II rowsort
SELECT DISTINCT - 85 * + 73 + - - 30 AS col0, 99 + - + 73
----
-6175
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT - - COALESCE ( + 34, - 44 ) + + 66 + 41 * - 76 + - - SUM( DISTINCT 47 ) + - 13 AS col2
----
-2982

skipif mysql # not compatible
query I rowsort label-8095
SELECT - - COALESCE ( + 34, - 44 ) + + 66 + 41 * - 76 + - - SUM ( DISTINCT 47 ) + - 13 AS col2
----
-2982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8096
SELECT - + ( - - 35 ) DIV - - ( + 52 ) + + + CASE + 29 WHEN + 7 + ( - - 72 ) THEN NULL WHEN + 29 * 63 THEN NULL WHEN + 15 * + 7 THEN - 3 WHEN - COUNT( * ) THEN - 54 ELSE + COUNT( * ) END + + 50 * 66 * CAST( + 99 + 57 AS SIGNED )
----
514801

skipif mysql # not compatible
query I rowsort label-8096
SELECT - + ( - - 35 ) / - - ( + 52 ) + + + CASE + 29 WHEN + 7 + ( - - 72 ) THEN NULL WHEN + 29 * 63 THEN NULL WHEN + 15 * + 7 THEN - 3 WHEN - COUNT ( * ) THEN - 54 ELSE + COUNT ( * ) END + + 50 * 66 * CAST ( + 99 + 57 AS INTEGER )
----
514801

query I rowsort
SELECT ALL - - 93 * - + 57 AS col1
----
-5301

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8099
SELECT - MIN( + 48 ) * + COUNT( * ) + + 65 DIV + COALESCE ( 56, 72 )
----
-47

skipif mysql # not compatible
query I rowsort label-8099
SELECT - MIN ( + 48 ) * + COUNT ( * ) + + 65 / + COALESCE ( 56, 72 )
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8100
SELECT - 25 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-8100
SELECT - 25 / 96
----
0

query I rowsort
SELECT - NULLIF ( - 81, 1 )
----
81

query I rowsort
SELECT - 99 + - 89 * - - 11 + - 48
----
-1126

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8104
SELECT - COUNT( * ) + - 13 AS col0, - 95 DIV + - 40 + - - 89 col1
----
-14
91

skipif mysql # not compatible
query II rowsort label-8104
SELECT - COUNT ( * ) + - 13 AS col0, - 95 / + - 40 + - - 89 col1
----
-14
91

query II rowsort
SELECT - 33 * - 14 * - 54 * + + 91 AS col0, 13 AS col0
----
-2270268
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8106
SELECT DISTINCT - 38 + + CAST( NULL AS SIGNED ) + + 52 * - CAST( NULL AS DECIMAL ) * COUNT( * )
----
NULL

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

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

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

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

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

query II rowsort
SELECT 35, 11 AS col1
----
35
11

query II rowsort
SELECT ALL - 20 + + 7 col0, 39
----
-13
39

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

query I rowsort
SELECT - 61 * + 72 * 80 AS col0
----
-351360

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

skipif mysql # not compatible
query I rowsort label-8113
SELECT - 73 - - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - COALESCE ( 75, - 94 * - 58 ) - 94
----
-169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8115
SELECT - CASE - 93 WHEN + CAST( NULL AS SIGNED ) * SUM( - 60 ) THEN NULL ELSE + MIN( DISTINCT + 78 ) * + + 86 - + 79 DIV - COUNT( * ) END
----
-6787

skipif mysql # not compatible
query I rowsort label-8115
SELECT - CASE - 93 WHEN + CAST ( NULL AS INTEGER ) * SUM ( - 60 ) THEN NULL ELSE + MIN ( DISTINCT + 78 ) * + + 86 - + 79 / - COUNT ( * ) END
----
-6787

query I rowsort
SELECT + 73 + - 28 AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8117
SELECT ALL 37 + - 13 - + 98 DIV - 88 DIV - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL 37 + - 13 - + 98 / - 88 / - COUNT ( * )
----
23

query II rowsort
SELECT ALL 72 AS col1, 46
----
72
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8119
SELECT - CASE + 50 WHEN 78 THEN - CAST( - COALESCE ( AVG ( ALL 13 ), - 69 ) AS SIGNED ) / MIN( DISTINCT + 63 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8119
SELECT - CASE + 50 WHEN 78 THEN - CAST ( - COALESCE ( AVG ( ALL 13 ), - 69 ) AS INTEGER ) / MIN ( DISTINCT + 63 ) END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8120
SELECT + NULLIF ( - 30, + 58 / CAST( 87 AS SIGNED ) )
----
-30

skipif mysql # not compatible
query I rowsort label-8120
SELECT + NULLIF ( - 30, + 58 / CAST ( 87 AS INTEGER ) )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8121
SELECT DISTINCT - 81 DIV - ( - NULLIF ( - + 32, + 85 ) ) - 88 + - 24
----
-110

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT - 81 / - ( - NULLIF ( - + 32, + 85 ) ) - 88 + - 24
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT DISTINCT + MAX( + - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT + MAX ( + - 66 )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8123
SELECT - COUNT( * ) DIV - 28 + - - 40 * + COUNT( * ) - + - 51
----
91

skipif mysql # not compatible
query I rowsort label-8123
SELECT - COUNT ( * ) / - 28 + - - 40 * + COUNT ( * ) - + - 51
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT NULLIF ( - COUNT( * ), - - 15 )
----
-1

skipif mysql # not compatible
query I rowsort label-8124
SELECT NULLIF ( - COUNT ( * ), - - 15 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8125
SELECT + - 33 AS col0, CASE 57 WHEN - 66 * + + COUNT( * ) * 71 + - - 11 * + - COUNT( * ) + 85 THEN + 86 WHEN - ( 56 ) + COUNT( + 9 ) THEN NULL WHEN + 24 THEN 41 + 29 END AS col1
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-8125
SELECT + - 33 AS col0, CASE 57 WHEN - 66 * + + COUNT ( * ) * 71 + - - 11 * + - COUNT ( * ) + 85 THEN + 86 WHEN - ( 56 ) + COUNT ( + 9 ) THEN NULL WHEN + 24 THEN 41 + 29 END AS col1
----
-33
NULL

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

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

query I rowsort
SELECT + 11 * 79 AS col1
----
869

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8128
SELECT ALL + COUNT( * ) * 79 + - CAST( - COUNT( + 36 ) AS SIGNED ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL + COUNT ( * ) * 79 + - CAST ( - COUNT ( + 36 ) AS INTEGER ) AS col0
----
80

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

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

query I rowsort
SELECT DISTINCT 68 * + + 69 AS col0
----
4692

onlyif mysql # aggregate syntax: 
query II rowsort label-8131
SELECT ALL - COUNT( * ) AS col1, 66 + + 64
----
-1
130

skipif mysql # not compatible
query II rowsort label-8131
SELECT ALL - COUNT ( * ) AS col1, 66 + + 64
----
-1
130

query I rowsort
SELECT NULLIF ( + 96, - 90 + - - 81 ) * - 9 AS col0
----
-864

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8133
SELECT + 0, + CAST( NULL AS SIGNED ) * - ( - 27 ) * + - 54 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8133
SELECT + 0, + CAST ( NULL AS INTEGER ) * - ( - 27 ) * + - 54 AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT - 45 * 49 + CASE - 12 WHEN + MAX( + + 79 ) THEN - COUNT( * ) + - + 42 WHEN + NULLIF ( + - MIN( - 49 ), - 11 ) + 49 THEN NULL END + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8134
SELECT - 45 * 49 + CASE - 12 WHEN + MAX ( + + 79 ) THEN - COUNT ( * ) + - + 42 WHEN + NULLIF ( + - MIN ( - 49 ), - 11 ) + 49 THEN NULL END + - 48
----
NULL

query II rowsort
SELECT + 50 col1, + 36 AS col1
----
50
36

query I rowsort
SELECT 84 * + 40
----
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT - 83 * + 49 + - - 14 - COUNT( ALL 66 ) AS col1
----
-4054

skipif mysql # not compatible
query I rowsort label-8137
SELECT - 83 * + 49 + - - 14 - COUNT ( ALL 66 ) AS col1
----
-4054

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT ALL 53 + 91 + 43 * + COUNT( * )
----
187

skipif mysql # not compatible
query I rowsort label-8138
SELECT ALL 53 + 91 + 43 * + COUNT ( * )
----
187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8139
SELECT + NULLIF ( 47, ( + CAST( NULL AS SIGNED ) ) ) - 28 - + + 53 DIV + + COALESCE ( - - CAST( NULL AS SIGNED ), 18, + ( - ( - 28 ) ) - - MAX( ALL - CAST( NULL AS SIGNED ) ) ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-8139
SELECT + NULLIF ( 47, ( + CAST ( NULL AS INTEGER ) ) ) - 28 - + + 53 / + + COALESCE ( - - CAST ( NULL AS INTEGER ), 18, + ( - ( - 28 ) ) - - MAX ( ALL - CAST ( NULL AS INTEGER ) ) ) AS col0
----
17

query I rowsort
SELECT ALL - 24 + + 74
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8141
SELECT + 73 * + COUNT( * ) + - 57 col1, 57
----
16
57

skipif mysql # not compatible
query II rowsort label-8141
SELECT + 73 * + COUNT ( * ) + - 57 col1, 57
----
16
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT SUM( ALL 71 ) + - 41
----
30

skipif mysql # not compatible
query I rowsort label-8142
SELECT SUM ( ALL 71 ) + - 41
----
30

query I rowsort
SELECT 3 * + + ( 36 ) AS col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT 12 - + 41 * - 19 * + 4 - COALESCE ( - 24, + 0, - 57, + COUNT( * ) ) AS col0
----
3152

skipif mysql # not compatible
query I rowsort label-8144
SELECT 12 - + 41 * - 19 * + 4 - COALESCE ( - 24, + 0, - 57, + COUNT ( * ) ) AS col0
----
3152

onlyif mysql # aggregate syntax: 
query II rowsort label-8145
SELECT 22 - + 89 AS col0, - 53 * - + COUNT( * ) col1
----
-67
53

skipif mysql # not compatible
query II rowsort label-8145
SELECT 22 - + 89 AS col0, - 53 * - + COUNT ( * ) col1
----
-67
53

query I rowsort
SELECT ALL + 89 - + - ( - + 6 ) AS col0
----
83

query II rowsort
SELECT 93 * - 75, - 43 col1
----
-6975
-43

query II rowsort
SELECT 28 * + 80 * + 53 AS col1, - 7 AS col1
----
118720
-7

query I rowsort
SELECT 2 + - 12 + + 42 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT 12 + + COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8150
SELECT 12 + + COUNT ( * ) AS col0
----
13

query I rowsort
SELECT 28 * + + 52 AS col1
----
1456

query I rowsort
SELECT + 2 * + 9 + 90 col0
----
108

query I rowsort
SELECT - CASE + 12 WHEN 96 * + - 15 / + - 82 * + 23 THEN 53 ELSE + 70 - - - 5 END * - + 42 * - 25
----
-68250

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT + 15 * + COALESCE ( - - 26, - 23, - - MIN( - + 20 ) ) * 96 * + - ( MIN( + 83 ) ) + COUNT( * ) + 67
----
-3107452

skipif mysql # not compatible
query I rowsort label-8154
SELECT + 15 * + COALESCE ( - - 26, - 23, - - MIN ( - + 20 ) ) * 96 * + - ( MIN ( + 83 ) ) + COUNT ( * ) + 67
----
-3107452

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT + NULLIF ( - CASE + 4 WHEN - 90 THEN NULL ELSE 83 END, - ( - NULLIF ( COUNT( * ), + COUNT( * ) ) ) + + 91 )
----
-83

skipif mysql # not compatible
query I rowsort label-8155
SELECT + NULLIF ( - CASE + 4 WHEN - 90 THEN NULL ELSE 83 END, - ( - NULLIF ( COUNT ( * ), + COUNT ( * ) ) ) + + 91 )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8156
SELECT DISTINCT - + COUNT( * ) / + 74 * - 96 * - - COUNT( + 36 ) * 11 + 81 * - + CAST( NULL AS SIGNED ) + + CAST( - 93 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT - + COUNT ( * ) / + 74 * - 96 * - - COUNT ( + 36 ) * 11 + 81 * - + CAST ( NULL AS INTEGER ) + + CAST ( - 93 AS INTEGER ) AS col1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT - 98 * COUNT( DISTINCT - ( - 64 ) ) + COALESCE ( - 33, + 50 * + 86 * + NULLIF ( - + 38, - COUNT( * ) ) ) AS col1
----
-131

skipif mysql # not compatible
query I rowsort label-8159
SELECT - 98 * COUNT ( DISTINCT - ( - 64 ) ) + COALESCE ( - 33, + 50 * + 86 * + NULLIF ( - + 38, - COUNT ( * ) ) ) AS col1
----
-131

onlyif mysql # DIV for integer division: 
query II rowsort label-8160
SELECT - 31 DIV - + 76 AS col0, - 62
----
0
-62

skipif mysql # not compatible
query II rowsort label-8160
SELECT - 31 / - + 76 AS col0, - 62
----
0
-62

query I rowsort
SELECT ALL + 91 + + 24 + 19 col1
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT + MIN( ALL - 4 ) * - 65 + 46 AS col2
----
306

skipif mysql # not compatible
query I rowsort label-8162
SELECT + MIN ( ALL - 4 ) * - 65 + 46 AS col2
----
306

query I rowsort
SELECT DISTINCT - 58 + + 76 + - 31
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8164
SELECT ALL - 0 + - + SUM( - - 78 ) DIV 23
----
-3

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL - 0 + - + SUM ( - - 78 ) / 23
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8165
SELECT + CASE 0 WHEN - CAST( NULL AS SIGNED ) * CASE 51 WHEN - COUNT( * ) THEN - + ( + COUNT( * ) ) * 30 * - 4 * + 41 END THEN - + 45 - 28 ELSE - 98 + - COUNT( * ) END + - NULLIF ( 38 + 53 * - 76, 42 ) DIV 4
----
898

skipif mysql # not compatible
query I rowsort label-8165
SELECT + CASE 0 WHEN - CAST ( NULL AS INTEGER ) * CASE 51 WHEN - COUNT ( * ) THEN - + ( + COUNT ( * ) ) * 30 * - 4 * + 41 END THEN - + 45 - 28 ELSE - 98 + - COUNT ( * ) END + - NULLIF ( 38 + 53 * - 76, 42 ) / 4
----
898

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT + ( + + COUNT( * ) ) + - NULLIF ( - 48, - + 5 + + 15 )
----
49

skipif mysql # not compatible
query I rowsort label-8166
SELECT + ( + + COUNT ( * ) ) + - NULLIF ( - 48, - + 5 + + 15 )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8167
SELECT DISTINCT 46 DIV - 25 - + MIN( ALL + - 17 ) * 52 DIV + COUNT( * )
----
883

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT 46 / - 25 - + MIN ( ALL + - 17 ) * 52 / + COUNT ( * )
----
883

query I rowsort
SELECT ALL + 75 + + 16
----
91

query I rowsort
SELECT + ( - 32 ) + - - 46 col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8170
SELECT ALL 3 + - NULLIF ( + 91, CAST( - - COALESCE ( - + ( - CASE - 75 WHEN 90 * + 76 * + 87 + 50 THEN 33 WHEN 6 THEN ( - 6 ) * COUNT( * ) END ), CAST( NULLIF ( - 26, COUNT( * ) ) AS SIGNED ) ) AS SIGNED ) + 3 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL 3 + - NULLIF ( + 91, CAST ( - - COALESCE ( - + ( - CASE - 75 WHEN 90 * + 76 * + 87 + 50 THEN 33 WHEN 6 THEN ( - 6 ) * COUNT ( * ) END ), CAST ( NULLIF ( - 26, COUNT ( * ) ) AS INTEGER ) ) AS INTEGER ) + 3 ) AS col1
----
-88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT - COUNT( ALL - 4 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8172
SELECT - COUNT ( ALL - 4 ) AS col2
----
-1

query II rowsort
SELECT ALL 90, 49 AS col1
----
90
49

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

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

query II rowsort
SELECT 60, 11 AS col0
----
60
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT 57 * + 94 + 25 + - COUNT( * ) AS col1
----
5382

skipif mysql # not compatible
query I rowsort label-8176
SELECT 57 * + 94 + 25 + - COUNT ( * ) AS col1
----
5382

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8177
SELECT DISTINCT 5 AS col0, 69 * - CAST( - 73 AS SIGNED ) col2
----
5
5037

skipif mysql # not compatible
query II rowsort label-8177
SELECT DISTINCT 5 AS col0, 69 * - CAST ( - 73 AS INTEGER ) col2
----
5
5037

query I rowsort
SELECT DISTINCT 67 - + + COALESCE ( + 50, + 61 )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8179
SELECT 98 AS col0, COUNT( * )
----
98
1

skipif mysql # not compatible
query II rowsort label-8179
SELECT 98 AS col0, COUNT ( * )
----
98
1

query I rowsort
SELECT 28 * - + 45 * - 85
----
107100

onlyif mysql # DIV for integer division: 
query I rowsort label-8181
SELECT 2 - - - 41 * + 51 DIV - - 51 - + 33 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-8181
SELECT 2 - - - 41 * + 51 / - - 51 - + 33 AS col2
----
-72

query II rowsort
SELECT - 78, + 50 AS col0
----
-78
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8183
SELECT ALL + SUM( - - 89 ) * + 38, + 6 AS col2
----
3382
6

skipif mysql # not compatible
query II rowsort label-8183
SELECT ALL + SUM ( - - 89 ) * + 38, + 6 AS col2
----
3382
6

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8185
SELECT 53 + - 40 * + + 2 - 90 + + - 23 DIV - COUNT( * ) + 97
----
3

skipif mysql # not compatible
query I rowsort label-8185
SELECT 53 + - 40 * + + 2 - 90 + + - 23 / - COUNT ( * ) + 97
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT + ( - 84 ) * CASE WHEN NOT ( NULL ) <> 6 THEN NULL WHEN NOT ( NOT NULL <> - SUM( ALL + 20 ) * - 63 + + - 51 ) THEN NULL ELSE ( 36 ) * 36 + 44 END * + 85 AS col1
----
-9567600

skipif mysql # not compatible
query I rowsort label-8186
SELECT + ( - 84 ) * CASE WHEN NOT ( NULL ) <> 6 THEN NULL WHEN NOT ( NOT NULL <> - SUM ( ALL + 20 ) * - 63 + + - 51 ) THEN NULL ELSE ( 36 ) * 36 + 44 END * + 85 AS col1
----
-9567600

query I rowsort
SELECT DISTINCT - 3 * + 99 + + 34 * 36 * - + 45 col2
----
-55377

onlyif mysql # aggregate syntax: 
query II rowsort label-8188
SELECT - SUM( + 5 ) * + 4 + - 56, - COUNT( * ) + - 11 AS col0
----
-76
-12

skipif mysql # not compatible
query II rowsort label-8188
SELECT - SUM ( + 5 ) * + 4 + - 56, - COUNT ( * ) + - 11 AS col0
----
-76
-12

query II rowsort
SELECT DISTINCT + 24 AS col1, 39 + + 55
----
24
94

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8191
SELECT ALL + - 10 * + + MIN( + + 10 ) + COUNT( - 41 ) * + ( NULLIF ( 76, + 66 + + + 67 ) ) + - 63 DIV - 89 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL + - 10 * + + MIN ( + + 10 ) + COUNT ( - 41 ) * + ( NULLIF ( 76, + 66 + + + 67 ) ) + - 63 / - 89 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT - + 34 * + 74 - - 63 + - + COUNT( * )
----
-2454

skipif mysql # not compatible
query I rowsort label-8192
SELECT - + 34 * + 74 - - 63 + - + COUNT ( * )
----
-2454

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT ALL - 24 * + COUNT( * ) * 46 + + 63 col2
----
-1041

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL - 24 * + COUNT ( * ) * 46 + + 63 col2
----
-1041

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT - NULLIF ( + 60, + + ( MIN( - - NULLIF ( + 35, 17 + + ( 65 ) / 13 ) ) ) + - 60 * - - 1 )
----
-60

skipif mysql # not compatible
query I rowsort label-8195
SELECT - NULLIF ( + 60, + + ( MIN ( - - NULLIF ( + 35, 17 + + ( 65 ) / 13 ) ) ) + - 60 * - - 1 )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8196
SELECT + 12 AS col2, + ( - CAST( - - 21 AS SIGNED ) ) + + 3 * - 73 AS col2, + 38 col1
----
12
-240
38

skipif mysql # not compatible
query III rowsort label-8196
SELECT + 12 AS col2, + ( - CAST ( - - 21 AS INTEGER ) ) + + 3 * - 73 AS col2, + 38 col1
----
12
-240
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8197
SELECT + 34 AS col1, + CAST( 73 AS SIGNED )
----
34
73

skipif mysql # not compatible
query II rowsort label-8197
SELECT + 34 AS col1, + CAST ( 73 AS INTEGER )
----
34
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL - ( 55 ) * + 95 * + + COUNT( * ) + - 33 col1
----
-5258

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL - ( 55 ) * + 95 * + + COUNT ( * ) + - 33 col1
----
-5258

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

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

query II rowsort
SELECT ALL + - 57 AS col1, NULLIF ( 43, - 38 )
----
-57
43

query I rowsort
SELECT - - 7 * + 2 col0
----
14

onlyif mysql # DIV for integer division: 
query II rowsort label-8202
SELECT - 74 + - + ( - ( + + 97 ) ), + 3 DIV + - 14 + 10 AS col0
----
23
10

skipif mysql # not compatible
query II rowsort label-8202
SELECT - 74 + - + ( - ( + + 97 ) ), + 3 / + - 14 + 10 AS col0
----
23
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8203
SELECT MAX( - CAST( NULL AS SIGNED ) ) col2, 36 * - + ( + 45 ) + 71 AS col2
----
NULL
-1549

skipif mysql # not compatible
query II rowsort label-8203
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) col2, 36 * - + ( + 45 ) + 71 AS col2
----
NULL
-1549

onlyif mysql # DIV for integer division: 
query II rowsort label-8204
SELECT + 56 DIV + 57 AS col0, 51 AS col0
----
0
51

skipif mysql # not compatible
query II rowsort label-8204
SELECT + 56 / + 57 AS col0, 51 AS col0
----
0
51

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

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

query I rowsort
SELECT + NULLIF ( + + 68, - + 77 ) AS col2
----
68

query I rowsort
SELECT + 20 - 15
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8208
SELECT ALL - 89 DIV + 46
----
-1

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL - 89 / + 46
----
-1

query I rowsort
SELECT + 96 + - 93
----
3

query I rowsort
SELECT ALL COALESCE ( - 21, + 80 ) * + 65 * + + COALESCE ( - 52, - ( 34 ) ) - - 42
----
71022

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT 99 * 6 + - - 40 * - SUM( - 37 )
----
2074

skipif mysql # not compatible
query I rowsort label-8211
SELECT 99 * 6 + - - 40 * - SUM ( - 37 )
----
2074

query I rowsort
SELECT + 66 - 46 + + 2 AS col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-8213
SELECT + 78 * + - COUNT( * ), 57 AS col1
----
-78
57

skipif mysql # not compatible
query II rowsort label-8213
SELECT + 78 * + - COUNT ( * ), 57 AS col1
----
-78
57

query I rowsort
SELECT + 36 + 60 * + 84 + + 99 + + + 50 * 76 + 62 col0
----
9037

query I rowsort
SELECT + 42 - + 83 * + 94 AS col1
----
-7760

query I rowsort
SELECT - NULLIF ( - 32, + - 21 )
----
32

query I rowsort
SELECT + 13 + - 4
----
9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8219
SELECT + 6 + + CASE COALESCE ( + - COUNT( CAST( NULL AS DECIMAL ) ), + MAX( CAST( 46 AS SIGNED ) ) + - + 1 ) WHEN - 38 THEN NULL WHEN - + 25 THEN + + 96 ELSE + - 53 + + - 83 END + + 36
----
-94

skipif mysql # not compatible
query I rowsort label-8219
SELECT + 6 + + CASE COALESCE ( + - COUNT ( CAST ( NULL AS REAL ) ), + MAX ( CAST ( 46 AS INTEGER ) ) + - + 1 ) WHEN - 38 THEN NULL WHEN - + 25 THEN + + 96 ELSE + - 53 + + - 83 END + + 36
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-8220
SELECT + + COUNT( * ) + - 45, - COUNT( * ) + - 8 AS col2
----
-44
-9

skipif mysql # not compatible
query II rowsort label-8220
SELECT + + COUNT ( * ) + - 45, - COUNT ( * ) + - 8 AS col2
----
-44
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8221
SELECT + CASE 83 WHEN + CAST( NULL AS SIGNED ) THEN - 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8221
SELECT + CASE 83 WHEN + CAST ( NULL AS INTEGER ) THEN - 80 END
----
NULL

query I rowsort
SELECT - 22 * - ( 66 )
----
1452

query I rowsort
SELECT DISTINCT - + 84 * + - 37
----
3108

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8224
SELECT DISTINCT ( + 66 ) DIV - + 53 + + - 33 + - 55 + - ( - - 99 ) * - + 98 * + ( NULLIF ( - - 8, + 75 ) ) AS col0, - COALESCE ( - 63, - COUNT( * ) + 62, MIN( DISTINCT 25 ) * 24 + 62 ) - + 46 AS col1
----
77527
17

skipif mysql # not compatible
query II rowsort label-8224
SELECT DISTINCT ( + 66 ) / - + 53 + + - 33 + - 55 + - ( - - 99 ) * - + 98 * + ( NULLIF ( - - 8, + 75 ) ) AS col0, - COALESCE ( - 63, - COUNT ( * ) + 62, MIN ( DISTINCT 25 ) * 24 + 62 ) - + 46 AS col1
----
77527
17

query I rowsort
SELECT ALL 63 * + 78 AS col2
----
4914

query I rowsort
SELECT - 2 + + 90
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8227
SELECT DISTINCT 22 DIV + + 2 + - 67 + 68
----
12

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT 22 / + + 2 + - 67 + 68
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8228
SELECT 53 * + ( - + 72 ) + - + COUNT( * ) AS col1, - CAST( - + AVG ( DISTINCT - 59 ) AS SIGNED )
----
-3817
-59

skipif mysql # not compatible
query II rowsort label-8228
SELECT 53 * + ( - + 72 ) + - + COUNT ( * ) AS col1, - CAST ( - + AVG ( DISTINCT - 59 ) AS INTEGER )
----
-3817
-59

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8230
SELECT DISTINCT - 83 DIV 68 - - 5
----
4

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT - 83 / 68 - - 5
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8231
SELECT 93 / - COUNT( * ) * - - COUNT( * ) + + NULLIF ( + - 12, + + 34 ) + - - 48 + - + 39 / 53 / - CAST( NULL AS SIGNED ) / - - 16 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8231
SELECT 93 / - COUNT ( * ) * - - COUNT ( * ) + + NULLIF ( + - 12, + + 34 ) + - - 48 + - + 39 / 53 / - CAST ( NULL AS INTEGER ) / - - 16 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT DISTINCT + COALESCE ( - + NULLIF ( + 25, - 56 ), 57 + + + MAX( ALL + + 28 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-8232
SELECT DISTINCT + COALESCE ( - + NULLIF ( + 25, - 56 ), 57 + + + MAX ( ALL + + 28 ) )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT 94 * + COUNT( * ) + + MIN( - 20 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-8233
SELECT 94 * + COUNT ( * ) + + MIN ( - 20 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT ALL + COUNT( * ) * - MAX( DISTINCT + 28 ) * - COUNT( * ) col1
----
28

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL + COUNT ( * ) * - MAX ( DISTINCT + 28 ) * - COUNT ( * ) col1
----
28

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

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

query I rowsort
SELECT DISTINCT - 85 * + 11 AS col2
----
-935

query I rowsort
SELECT COALESCE ( + + 21, - 98 ) AS col1
----
21

query I rowsort
SELECT NULLIF ( + 49, + 68 * - + 18 ) AS col2
----
49

query I rowsort
SELECT COALESCE ( 55, 52 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT - 3 * - COUNT( 28 ) + - + ( - 20 )
----
23

skipif mysql # not compatible
query I rowsort label-8240
SELECT - 3 * - COUNT ( 28 ) + - + ( - 20 )
----
23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT + 19 + - 1 + + CASE ( - COALESCE ( + - 4, - 92 + - ( + 6 ) ) ) WHEN 82 * COUNT( * ) * - 14 - - - 43 THEN 16 END - + 84 * + 95 * 71 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8242
SELECT + 19 + - 1 + + CASE ( - COALESCE ( + - 4, - 92 + - ( + 6 ) ) ) WHEN 82 * COUNT ( * ) * - 14 - - - 43 THEN 16 END - + 84 * + 95 * 71 col0
----
NULL

query I rowsort
SELECT ALL 1 + - 61 col2
----
-60

query I rowsort
SELECT DISTINCT 60 * - 71
----
-4260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8245
SELECT DISTINCT - NULLIF ( 24, 98 - - CAST( - 95 AS SIGNED ) ) + + 77 + + 68 * 31 + - 54
----
2107

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT - NULLIF ( 24, 98 - - CAST ( - 95 AS INTEGER ) ) + + 77 + + 68 * 31 + - 54
----
2107

query I rowsort
SELECT ALL - 64 * - 2 + + 27 + 11
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8247
SELECT - NULLIF ( ( - - CAST( - - 40 AS SIGNED ) ), + 24 )
----
-40

skipif mysql # not compatible
query I rowsort label-8247
SELECT - NULLIF ( ( - - CAST ( - - 40 AS INTEGER ) ), + 24 )
----
-40

query I rowsort
SELECT ALL - + 70 + + 44 AS col0
----
-26

query I rowsort
SELECT 56 + + 18
----
74

query I rowsort
SELECT - ( + 96 ) * - - 56 - ( + 96 ) AS col1
----
-5472

query I rowsort
SELECT - 20 + - + 44 + - - 50
----
-14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT ALL CASE - + 14 WHEN - 39 THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL CASE - + 14 WHEN - 39 THEN NULL ELSE COUNT ( * ) END
----
1

query I rowsort
SELECT ALL 8 - + + 48 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT - 77 - - 87 + + - NULLIF ( - 99, + MAX( DISTINCT 20 ) + COUNT( * ) - + 22 / + 24 * - - 38 ) * - - 54 AS col0
----
5356

skipif mysql # not compatible
query I rowsort label-8255
SELECT - 77 - - 87 + + - NULLIF ( - 99, + MAX ( DISTINCT 20 ) + COUNT ( * ) - + 22 / + 24 * - - 38 ) * - - 54 AS col0
----
5356

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT - COALESCE ( 76, + 65 * SUM( - 98 ) - + 87 + - - 13 + + - 8, - 10 + + - 61 + - 67 )
----
-76

skipif mysql # not compatible
query I rowsort label-8256
SELECT - COALESCE ( 76, + 65 * SUM ( - 98 ) - + 87 + - - 13 + + - 8, - 10 + + - 61 + - 67 )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8257
SELECT ALL + 51 - + 43 + + - 38 + 17 + + 39 DIV + 64 * 65 + - CAST( + + 36 AS SIGNED ) - 38 * SUM( ALL + 43 ) * + 1 + 98 DIV + - 6 + - COUNT( * ) * + COUNT( 93 - 31 )
----
-1700

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL + 51 - + 43 + + - 38 + 17 + + 39 / + 64 * 65 + - CAST ( + + 36 AS INTEGER ) - 38 * SUM ( ALL + 43 ) * + 1 + 98 / + - 6 + - COUNT ( * ) * + COUNT ( 93 - 31 )
----
-1700

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

query I rowsort
SELECT + 44 * + CASE + + 48 WHEN 32 * 31 THEN 4 * - + 46 ELSE + 67 - + ( - ( 81 ) ) END AS col0
----
6512

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8260
SELECT AVG ( - + 11 ) * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8260
SELECT AVG ( - + 11 ) * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8261
SELECT 5 DIV - MIN( ALL + 1 ) - - SUM( - 49 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-8261
SELECT 5 / - MIN ( ALL + 1 ) - - SUM ( - 49 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT 53 * - 97 * COUNT( * ) * - 67 AS col1
----
344447

skipif mysql # not compatible
query I rowsort label-8262
SELECT 53 * - 97 * COUNT ( * ) * - 67 AS col1
----
344447

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8264
SELECT 90 AS col1, + MIN( DISTINCT 73 )
----
90
73

skipif mysql # not compatible
query II rowsort label-8264
SELECT 90 AS col1, + MIN ( DISTINCT 73 )
----
90
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8265
SELECT COUNT( * ) DIV - + 57 col2
----
0

skipif mysql # not compatible
query I rowsort label-8265
SELECT COUNT ( * ) / - + 57 col2
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8267
SELECT ALL - 47, 70 + + CAST( NULL AS SIGNED ) * - + 69 * - + 88 AS col0
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-8267
SELECT ALL - 47, 70 + + CAST ( NULL AS INTEGER ) * - + 69 * - + 88 AS col0
----
-47
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT ALL - SUM( DISTINCT - 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL - SUM ( DISTINCT - 14 ) AS col1
----
14

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

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL - SUM ( 70 )
----
-70

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

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

query I rowsort
SELECT 21 + + 83
----
104

query II rowsort
SELECT + 64 AS col1, 59
----
64
59

query I rowsort
SELECT ALL + 99 + 11 AS col2
----
110

query I rowsort
SELECT 27 + + - 12
----
15

query I rowsort
SELECT ALL 95 + - + 99 - - 46 col0
----
42

query I rowsort
SELECT 37 + - - 64
----
101

query I rowsort
SELECT ALL - 27 * - + 66
----
1782

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8279
SELECT ALL + CAST( NULL AS DECIMAL ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8279
SELECT ALL + CAST ( NULL AS REAL ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT 56 + 69 * + 79 AS col1
----
5507

query I rowsort
SELECT ALL - ( + 18 ) + - + 10 + - 72 AS col2
----
-100

query I rowsort
SELECT 27 + + 89 AS col1
----
116

query I rowsort
SELECT 50 + - + 3
----
47

query I rowsort
SELECT 94 - + 22 AS col1
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-8285
SELECT - COUNT( * ) + + + 12 * + - 70 * - 21, + 92 AS col1
----
17639
92

skipif mysql # not compatible
query II rowsort label-8285
SELECT - COUNT ( * ) + + + 12 * + - 70 * - 21, + 92 AS col1
----
17639
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT - MAX( - 88 )
----
88

skipif mysql # not compatible
query I rowsort label-8286
SELECT - MAX ( - 88 )
----
88

query I rowsort
SELECT ALL + 83 - - 76
----
159

query II rowsort
SELECT - 19 AS col2, 87 * 10
----
-19
870

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT COALESCE ( 13, + + MIN( 64 ) ) + + + 86 col1
----
99

skipif mysql # not compatible
query I rowsort label-8289
SELECT COALESCE ( 13, + + MIN ( 64 ) ) + + + 86 col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8290
SELECT ALL + 92 * - + COUNT( * ) / + 53 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8290
SELECT ALL + 92 * - + COUNT ( * ) / + 53 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8291
SELECT - 3 col1, MIN( + 7 ) + + COUNT( * ) AS col2
----
-3
8

skipif mysql # not compatible
query II rowsort label-8291
SELECT - 3 col1, MIN ( + 7 ) + + COUNT ( * ) AS col2
----
-3
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8292
SELECT DISTINCT + MIN( CAST( NULL AS SIGNED ) ) / - - 60 + - 62 - - 52 - - - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT + MIN ( CAST ( NULL AS INTEGER ) ) / - - 60 + - 62 - - 52 - - - 19
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8293
SELECT ALL - 22 - 8 DIV - - 2 + + - 5
----
-31

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL - 22 - 8 / - - 2 + + - 5
----
-31

query II rowsort
SELECT - + 96 AS col2, 26 * 51
----
-96
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT DISTINCT ( - 41 ) * + MAX( DISTINCT + 84 ) + 16 + + - 89 * + 23 AS col2
----
-5475

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT ( - 41 ) * + MAX ( DISTINCT + 84 ) + 16 + + - 89 * + 23 AS col2
----
-5475

onlyif mysql # DIV for integer division: 
query I rowsort label-8296
SELECT 99 DIV - 41 + - ( + 89 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-8296
SELECT 99 / - 41 + - ( + 89 ) AS col1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8297
SELECT 42 * - 23 DIV COUNT( * ) + + - 5 * 15 AS col0
----
-1041

skipif mysql # not compatible
query I rowsort label-8297
SELECT 42 * - 23 / COUNT ( * ) + + - 5 * 15 AS col0
----
-1041

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

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

query I rowsort
SELECT 89 * 8 * 27 * + + 97 + - + 65
----
1864663

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT - ( - COUNT( * ) ) + - - 2 * + - 27
----
-53

skipif mysql # not compatible
query I rowsort label-8300
SELECT - ( - COUNT ( * ) ) + - - 2 * + - 27
----
-53

query II rowsort
SELECT 59 AS col1, - 88 * + 66
----
59
-5808

onlyif mysql # aggregate syntax: 
query II rowsort label-8302
SELECT + 26, - MIN( - 21 ) AS col1
----
26
21

skipif mysql # not compatible
query II rowsort label-8302
SELECT + 26, - MIN ( - 21 ) AS col1
----
26
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8303
SELECT + + COUNT( - - 22 ) * - ( - 68 ) * 66 + 12 + + + SUM( 2 ) + + 55 DIV 71
----
4502

skipif mysql # not compatible
query I rowsort label-8303
SELECT + + COUNT ( - - 22 ) * - ( - 68 ) * 66 + 12 + + + SUM ( 2 ) + + 55 / 71
----
4502

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8305
SELECT COUNT( - - 8 ) AS col2, + 61 * - - NULLIF ( - 29, ( + + 86 ) ) AS col0
----
1
-1769

skipif mysql # not compatible
query II rowsort label-8305
SELECT COUNT ( - - 8 ) AS col2, + 61 * - - NULLIF ( - 29, ( + + 86 ) ) AS col0
----
1
-1769

query I rowsort
SELECT ( - 6 ) + - 27 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT 3 * COUNT( * ) + + + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8307
SELECT 3 * COUNT ( * ) + + + COUNT ( * ) AS col1
----
4

query I rowsort
SELECT 94 * + 47 + - 89 * - 12 AS col0
----
5486

onlyif mysql # aggregate syntax: 
query II rowsort label-8309
SELECT + MAX( ALL 27 ) AS col2, COUNT( * )
----
27
1

skipif mysql # not compatible
query II rowsort label-8309
SELECT + MAX ( ALL 27 ) AS col2, COUNT ( * )
----
27
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8310
SELECT COUNT( - 72 ) AS col1, - 89 * + 41 col1
----
1
-3649

skipif mysql # not compatible
query II rowsort label-8310
SELECT COUNT ( - 72 ) AS col1, - 89 * + 41 col1
----
1
-3649

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8313
SELECT NULLIF ( - - COUNT( + 83 ), + 24 * + - CAST( + - CASE 14 WHEN - - 29 THEN + 43 - + 92 + + 62 * - 56 WHEN ( - 1 ) THEN + 41 ELSE - AVG ( ALL - + 50 ) END AS DECIMAL ) - + 2 ) + 36 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-8313
SELECT NULLIF ( - - COUNT ( + 83 ), + 24 * + - CAST ( + - CASE 14 WHEN - - 29 THEN + 43 - + 92 + + 62 * - 56 WHEN ( - 1 ) THEN + 41 ELSE - AVG ( ALL - + 50 ) END AS REAL ) - + 2 ) + 36 AS col1
----
37

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

skipif mysql # not compatible
query I rowsort label-8314
SELECT MIN ( + + 1 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8315
SELECT - 19 + + 16 + - 28 + 39 + + 85 DIV COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-8315
SELECT - 19 + + 16 + - 28 + 39 + + 85 / COUNT ( * ) AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8316
SELECT DISTINCT ( 39 ) * + 8 + + 81 / - ( MAX( ALL 72 ) ) * + 37 * + ( + COALESCE ( 15, - COUNT( * ) ) ) - 8 + + ( - 91 ) + - 96 * - ( CAST( NULL AS SIGNED ) ) + - NULLIF ( - 53, - 93 + 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT ( 39 ) * + 8 + + 81 / - ( MAX ( ALL 72 ) ) * + 37 * + ( + COALESCE ( 15, - COUNT ( * ) ) ) - 8 + + ( - 91 ) + - 96 * - ( CAST ( NULL AS INTEGER ) ) + - NULLIF ( - 53, - 93 + 89 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT DISTINCT NULLIF ( - 1, 90 * - + 93 ) + + - 6 * + MIN( DISTINCT + 60 ) * 79 * COUNT( * ) AS col0
----
-28441

skipif mysql # not compatible
query I rowsort label-8317
SELECT DISTINCT NULLIF ( - 1, 90 * - + 93 ) + + - 6 * + MIN ( DISTINCT + 60 ) * 79 * COUNT ( * ) AS col0
----
-28441

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT ALL 89 + - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL 89 + - COUNT ( * )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8319
SELECT + CASE - - 46 WHEN - CAST( NULL AS SIGNED ) THEN 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8319
SELECT + CASE - - 46 WHEN - CAST ( NULL AS INTEGER ) THEN 87 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT + 71 * - MIN( DISTINCT - + 31 ) * + + 68 AS col0
----
149668

skipif mysql # not compatible
query I rowsort label-8320
SELECT + 71 * - MIN ( DISTINCT - + 31 ) * + + 68 AS col0
----
149668

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

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL + COUNT ( DISTINCT - 25 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8322
SELECT + 48 * - 41 AS col1, ( CASE - + 27 WHEN + 30 THEN - 11 - 53 ELSE - - COUNT( * ) * - + CAST( NULL AS SIGNED ) + - 54 + - - 91 END ) + 3 + + 47 * - 23 * CASE - + 50 WHEN + 24 THEN 14 / 69 + COALESCE ( 82, 71 ) * 99 END
----
-1968
NULL

skipif mysql # not compatible
query II rowsort label-8322
SELECT + 48 * - 41 AS col1, ( CASE - + 27 WHEN + 30 THEN - 11 - 53 ELSE - - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + - 54 + - - 91 END ) + 3 + + 47 * - 23 * CASE - + 50 WHEN + 24 THEN 14 / 69 + COALESCE ( 82, 71 ) * 99 END
----
-1968
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT - 53 * + 27 * + + COUNT( * )
----
-1431

skipif mysql # not compatible
query I rowsort label-8323
SELECT - 53 * + 27 * + + COUNT ( * )
----
-1431

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT - + CASE + CASE WHEN NOT 94 <> NULL THEN 31 END WHEN + 93 THEN NULL WHEN COUNT( * ) / + 1 THEN - 57 + 16 * + 34 - + - 53 + + 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8324
SELECT - + CASE + CASE WHEN NOT 94 <> NULL THEN 31 END WHEN + 93 THEN NULL WHEN COUNT ( * ) / + 1 THEN - 57 + 16 * + 34 - + - 53 + + 1 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT DISTINCT - - 90 + - CASE + + 88 WHEN + + CASE WHEN NOT ( NULL ) IS NULL THEN + + 66 WHEN NOT 6 * - MIN( DISTINCT + 41 ) / - + 11 IS NOT NULL THEN NULL END THEN 60 * - 24 * - + 87 * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT - - 90 + - CASE + + 88 WHEN + + CASE WHEN NOT ( NULL ) IS NULL THEN + + 66 WHEN NOT 6 * - MIN ( DISTINCT + 41 ) / - + 11 IS NOT NULL THEN NULL END THEN 60 * - 24 * - + 87 * - COUNT ( * ) END
----
NULL

query II rowsort
SELECT ALL - + 40 - + 44 AS col0, - 96
----
-84
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT + + 7 * MAX( DISTINCT 34 )
----
238

skipif mysql # not compatible
query I rowsort label-8327
SELECT + + 7 * MAX ( DISTINCT 34 )
----
238

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8328
SELECT DISTINCT 11 - CASE + - 42 WHEN - + 11 THEN - - CAST( NULL AS DECIMAL ) WHEN ( - 54 ) THEN NULL END / - + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT 11 - CASE + - 42 WHEN - + 11 THEN - - CAST ( NULL AS REAL ) WHEN ( - 54 ) THEN NULL END / - + 11
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8329
SELECT - 55 + 45 + - CAST( 69 AS SIGNED ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-8329
SELECT - 55 + 45 + - CAST ( 69 AS INTEGER ) AS col0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8330
SELECT - 69 * - CAST( + 20 AS SIGNED ) * 53 AS col0
----
73140

skipif mysql # not compatible
query I rowsort label-8330
SELECT - 69 * - CAST ( + 20 AS INTEGER ) * 53 AS col0
----
73140

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT ALL - MIN( ALL 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL - MIN ( ALL 92 ) AS col1
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-8332
SELECT - 26 + 7 * 28 DIV + - 3 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-8332
SELECT - 26 + 7 * 28 / + - 3 AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8333
SELECT DISTINCT + COALESCE ( - + CASE - 67 WHEN - CASE + - CAST( COUNT( * ) AS SIGNED ) WHEN 90 THEN NULL WHEN - 67 + 30 * - 58 THEN 75 - + 81 - - 70 * 38 END * - - NULLIF ( + 70, + - COALESCE ( COUNT( * ), 86 / ( 16 ), - 92 ) / 11 ) THEN - 75 ELSE NULL END, 74 )
----
74

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT + COALESCE ( - + CASE - 67 WHEN - CASE + - CAST ( COUNT ( * ) AS INTEGER ) WHEN 90 THEN NULL WHEN - 67 + 30 * - 58 THEN 75 - + 81 - - 70 * 38 END * - - NULLIF ( + 70, + - COALESCE ( COUNT ( * ), 86 / ( 16 ), - 92 ) / 11 ) THEN - 75 ELSE NULL END, 74 )
----
74

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

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

query I rowsort
SELECT + + 99 + + 41
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8336
SELECT - - 30 / + + CAST( NULL AS SIGNED ) * - ( + 43 ) * - 74 * + CASE - 0 WHEN - 89 THEN - + CAST( - + 64 AS SIGNED ) ELSE NULL END / CAST( + 72 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8336
SELECT - - 30 / + + CAST ( NULL AS INTEGER ) * - ( + 43 ) * - 74 * + CASE - 0 WHEN - 89 THEN - + CAST ( - + 64 AS INTEGER ) ELSE NULL END / CAST ( + 72 AS INTEGER ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT DISTINCT - MAX( DISTINCT - - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT - MAX ( DISTINCT - - 2 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8339
SELECT ALL + COUNT( * ) / CAST( + AVG ( ALL + NULLIF ( 52, 46 ) ) AS SIGNED ) * - MAX( ALL CAST( NULL AS DECIMAL ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL + COUNT ( * ) / CAST ( + AVG ( ALL + NULLIF ( 52, 46 ) ) AS INTEGER ) * - MAX ( ALL CAST ( NULL AS REAL ) ) col1
----
NULL

query II rowsort
SELECT DISTINCT + 54, + 13 AS col1
----
54
13

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

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

query I rowsort
SELECT - 61 * + NULLIF ( NULLIF ( 17, - 23 ), 26 ) * + 59 - - - 40 col2
----
-61223

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT DISTINCT + 95 * COUNT( * ) + + + NULLIF ( + + MAX( - + 19 ), 80 ) + - - 22
----
98

skipif mysql # not compatible
query I rowsort label-8343
SELECT DISTINCT + 95 * COUNT ( * ) + + + NULLIF ( + + MAX ( - + 19 ), 80 ) + - - 22
----
98

query I rowsort
SELECT ( - + COALESCE ( - 31, + 92, - 10, - - ( + 42 ) ) )
----
31

query I rowsort
SELECT - 31 - - + 72
----
41

query II rowsort
SELECT ALL + 66 AS col0, 85 - 11 * + 36 AS col2
----
66
-311

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT DISTINCT + COUNT( * ) * + 16 + ( + + 79 )
----
95

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT + COUNT ( * ) * + 16 + ( + + 79 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL - 35 * - NULLIF ( CASE - + AVG ( ALL - - 30 ) WHEN + + 64 THEN NULL WHEN - 91 THEN - 61 END, 58 * + + 83 ) + - - COALESCE ( - 76, - - 63 + - ( COUNT( * ) ) - + + COUNT( * ) / + 82 + 90 * + 38 ) - 68 / - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL - 35 * - NULLIF ( CASE - + AVG ( ALL - - 30 ) WHEN + + 64 THEN NULL WHEN - 91 THEN - 61 END, 58 * + + 83 ) + - - COALESCE ( - 76, - - 63 + - ( COUNT ( * ) ) - + + COUNT ( * ) / + 82 + 90 * + 38 ) - 68 / - 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8349
SELECT + SUM( + COALESCE ( + - 1, 9 ) ) * 62 * 85 AS col1, + 14
----
-5270
14

skipif mysql # not compatible
query II rowsort label-8349
SELECT + SUM ( + COALESCE ( + - 1, 9 ) ) * 62 * 85 AS col1, + 14
----
-5270
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT ALL + 85 * + 82 + - 64 * - 96 * + 19 * COUNT( * ) + - COUNT( * ) AS col2
----
123705

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL + 85 * + 82 + - 64 * - 96 * + 19 * COUNT ( * ) + - COUNT ( * ) AS col2
----
123705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8351
SELECT CASE - CAST( NULL AS SIGNED ) WHEN - - 69 * COUNT( * ) THEN NULL WHEN - NULLIF ( + 0, - 3 ) THEN + COALESCE ( + 10, 48 + - COUNT( * ) ) + - - CAST( NULL AS SIGNED ) + + + 35 END, 79 * - + 53 * 67 AS col0
----
NULL
-280529

skipif mysql # not compatible
query II rowsort label-8351
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN - - 69 * COUNT ( * ) THEN NULL WHEN - NULLIF ( + 0, - 3 ) THEN + COALESCE ( + 10, 48 + - COUNT ( * ) ) + - - CAST ( NULL AS INTEGER ) + + + 35 END, 79 * - + 53 * 67 AS col0
----
NULL
-280529

query I rowsort
SELECT - 72 + 70 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT - COUNT( DISTINCT - - 8 ) * 16 * + 6 + + + COALESCE ( + 20, + - COUNT( DISTINCT + - 86 ) * 90, + 94 * - 12 + 46 + NULLIF ( - 11, + 31 * - CASE 33 WHEN + ( 57 ) * - MIN( 56 ) THEN + 63 + - AVG ( + 71 ) ELSE NULL END ), 6 ) + - 6 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-8353
SELECT - COUNT ( DISTINCT - - 8 ) * 16 * + 6 + + + COALESCE ( + 20, + - COUNT ( DISTINCT + - 86 ) * 90, + 94 * - 12 + 46 + NULLIF ( - 11, + 31 * - CASE 33 WHEN + ( 57 ) * - MIN ( 56 ) THEN + 63 + - AVG ( + 71 ) ELSE NULL END ), 6 ) + - 6 AS col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8354
SELECT + CASE - 58 WHEN 78 THEN + - 80 * - 33 - + 59 + + COUNT( * ) ELSE - COALESCE ( - - 44, + - 37 + - - CAST( NULL AS SIGNED ), + 54 ) * + 93 END * - COUNT( * ) AS col1
----
4092

skipif mysql # not compatible
query I rowsort label-8354
SELECT + CASE - 58 WHEN 78 THEN + - 80 * - 33 - + 59 + + COUNT ( * ) ELSE - COALESCE ( - - 44, + - 37 + - - CAST ( NULL AS INTEGER ), + 54 ) * + 93 END * - COUNT ( * ) AS col1
----
4092

query I rowsort
SELECT + + 52 + 38
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8356
SELECT ALL + 47 DIV + 88 * - + 66
----
0

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL + 47 / + 88 * - + 66
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8358
SELECT + COUNT( * ) * + 53 * + COUNT( * ) + - 26 * 30 * CAST( 68 AS SIGNED ) + - 29
----
-53016

skipif mysql # not compatible
query I rowsort label-8358
SELECT + COUNT ( * ) * + 53 * + COUNT ( * ) + - 26 * 30 * CAST ( 68 AS INTEGER ) + - 29
----
-53016

query I rowsort
SELECT ALL 13 * - 84
----
-1092

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

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

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

query I rowsort
SELECT + NULLIF ( - 56, - - 37 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT + + 25 + + - COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-8363
SELECT + + 25 + + - COUNT ( * ) AS col1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8364
SELECT - + 20 + - - CAST( + - 39 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-8364
SELECT - + 20 + - - CAST ( + - 39 AS INTEGER )
----
-59

query I rowsort
SELECT + 33 * 71 * 31
----
72633

query I rowsort
SELECT - 2 * 50
----
-100

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8368
SELECT DISTINCT + + 71 * COALESCE ( - CAST( + + CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ), - - ( 32 ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT + + 71 * COALESCE ( - CAST ( + + CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ), - - ( 32 ) ) AS col1
----
71

query I rowsort
SELECT DISTINCT - 96 + + 17
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-8370
SELECT - 60 + - COUNT( * ) + + + 97 + - - 80 AS col0, 36 col2
----
116
36

skipif mysql # not compatible
query II rowsort label-8370
SELECT - 60 + - COUNT ( * ) + + + 97 + - - 80 AS col0, 36 col2
----
116
36

query I rowsort
SELECT - + ( - - 54 ) * 96 * - - 16 AS col2
----
-82944

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8372
SELECT ALL + COUNT( * ) + - 7 DIV - NULLIF ( - - 81, + NULLIF ( 45, 17 - + 76 + COUNT( * ) ) ), + 49 AS col2
----
1
49

skipif mysql # not compatible
query II rowsort label-8372
SELECT ALL + COUNT ( * ) + - 7 / - NULLIF ( - - 81, + NULLIF ( 45, 17 - + 76 + COUNT ( * ) ) ), + 49 AS col2
----
1
49

query I rowsort
SELECT DISTINCT - 85 + 50 + - 74
----
-109

query I rowsort
SELECT - 38 + 69 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT ALL - MAX( DISTINCT - - 63 ) + + ( 87 ) * - + 52
----
-4587

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL - MAX ( DISTINCT - - 63 ) + + ( 87 ) * - + 52
----
-4587

onlyif mysql # DIV for integer division: 
query II rowsort label-8376
SELECT DISTINCT 79 + - 22 - - - 27 DIV 19 AS col2, 57 + - 9 * - 84 AS col1
----
56
813

skipif mysql # not compatible
query II rowsort label-8376
SELECT DISTINCT 79 + - 22 - - - 27 / 19 AS col2, 57 + - 9 * - 84 AS col1
----
56
813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8377
SELECT DISTINCT + CASE + - 59 WHEN + COUNT( * ) - - + 34 + + ( - MIN( ALL + - 21 ) ) + + 54 THEN NULL WHEN 6 THEN 55 + + 4 ELSE NULL END / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8377
SELECT DISTINCT + CASE + - 59 WHEN + COUNT ( * ) - - + 34 + + ( - MIN ( ALL + - 21 ) ) + + 54 THEN NULL WHEN 6 THEN 55 + + 4 ELSE NULL END / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT 37 + + COALESCE ( - 48, + 92, COUNT( * ) )
----
-11

skipif mysql # not compatible
query I rowsort label-8378
SELECT 37 + + COALESCE ( - 48, + 92, COUNT ( * ) )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8379
SELECT ALL + 68 + - - CAST( - 47 AS SIGNED ) + + 69 * - ( - - 93 ) + - MIN( 49 ) DIV 4
----
-6408

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL + 68 + - - CAST ( - 47 AS INTEGER ) + + 69 * - ( - - 93 ) + - MIN ( 49 ) / 4
----
-6408

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT 47 + + 10 + 97 + - COUNT( * ) * 34 * 31 * + + 79
----
-83112

skipif mysql # not compatible
query I rowsort label-8380
SELECT 47 + + 10 + 97 + - COUNT ( * ) * 34 * 31 * + + 79
----
-83112

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT ALL 96 + + 49 * COUNT( * ) col2
----
145

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL 96 + + 49 * COUNT ( * ) col2
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-8382
SELECT DISTINCT - 95 DIV 28 * - 11 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT - 95 / 28 * - 11 AS col0
----
33

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

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

query I rowsort
SELECT DISTINCT + 23 - 82 AS col0
----
-59

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8386
SELECT ALL + 5 - - CAST( 64 AS SIGNED ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-8386
SELECT ALL + 5 - - CAST ( 64 AS INTEGER ) AS col2
----
69

query I rowsort
SELECT 52 * - 38
----
-1976

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT DISTINCT + ( NULLIF ( 8, MIN( ALL - 73 ) ) ) * ( + + 73 ) * 35 + 78 * + 92 + - 44
----
27572

skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT + ( NULLIF ( 8, MIN ( ALL - 73 ) ) ) * ( + + 73 ) * 35 + 78 * + 92 + - 44
----
27572

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT + CASE - - ( + 61 ) WHEN + + 87 THEN + - 47 WHEN + + ( - - COUNT( * ) ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8389
SELECT + CASE - - ( + 61 ) WHEN + + 87 THEN + - 47 WHEN + + ( - - COUNT ( * ) ) THEN NULL ELSE NULL END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8390
SELECT + ( MIN ( 26 ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT 17 * - SUM( DISTINCT - 47 ) + - 2 + - + 82 * 47
----
-3057

skipif mysql # not compatible
query I rowsort label-8391
SELECT 17 * - SUM ( DISTINCT - 47 ) + - 2 + - + 82 * 47
----
-3057

onlyif mysql # aggregate syntax: 
query II rowsort label-8392
SELECT ( ( 82 ) ) * 93 + 33 AS col1, - CASE 73 WHEN - - 18 + 60 THEN - NULLIF ( 86, + COUNT( * ) ) * + + COUNT( * ) + + - 57 END * + 28
----
7659
NULL

skipif mysql # not compatible
query II rowsort label-8392
SELECT ( ( 82 ) ) * 93 + 33 AS col1, - CASE 73 WHEN - - 18 + 60 THEN - NULLIF ( 86, + COUNT ( * ) ) * + + COUNT ( * ) + + - 57 END * + 28
----
7659
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8393
SELECT ALL ( + CAST( - + 75 AS SIGNED ) ) * - COALESCE ( - NULLIF ( - - NULLIF ( + COUNT( * ), 50 ), + + 9 ), 46, 57 )
----
-75

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL ( + CAST ( - + 75 AS INTEGER ) ) * - COALESCE ( - NULLIF ( - - NULLIF ( + COUNT ( * ), 50 ), + + 9 ), 46, 57 )
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8394
SELECT ALL - ( + 29 ) DIV 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL - ( + 29 ) / 43 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8395
SELECT ALL + CAST( - 20 AS SIGNED ) + - + 33
----
-53

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL + CAST ( - 20 AS INTEGER ) + - + 33
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-8396
SELECT DISTINCT - 41 DIV 9 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8396
SELECT DISTINCT - 41 / 9 AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8397
SELECT ALL ( + 47 ) + 70 * + - COUNT( * ) + + CAST( + - 11 AS SIGNED ) + + 70 * - + 39 * + 14 AS col2
----
-38254

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL ( + 47 ) + 70 * + - COUNT ( * ) + + CAST ( + - 11 AS INTEGER ) + + 70 * - + 39 * + 14 AS col2
----
-38254

query I rowsort
SELECT - 44 * 24 + + 42 AS col0
----
-1014

query II rowsort
SELECT ALL - 8 * - - 17, - 76 AS col2
----
-136
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-8400
SELECT + 53 DIV + + 37 + - 24
----
-23

skipif mysql # not compatible
query I rowsort label-8400
SELECT + 53 / + + 37 + - 24
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT DISTINCT 92 + + MAX( DISTINCT 9 ) * 65 AS col0
----
677

skipif mysql # not compatible
query I rowsort label-8401
SELECT DISTINCT 92 + + MAX ( DISTINCT 9 ) * 65 AS col0
----
677

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8402
SELECT ALL - CASE - + 88 WHEN + - CAST( + - COUNT( * ) AS SIGNED ) THEN - + NULLIF ( - 67, + - COALESCE ( + 87, + 86 + - 90 ) ) * - 58 ELSE + 64 - - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL - CASE - + 88 WHEN + - CAST ( + - COUNT ( * ) AS INTEGER ) THEN - + NULLIF ( - 67, + - COALESCE ( + 87, + 86 + - 90 ) ) * - 58 ELSE + 64 - - CAST ( NULL AS INTEGER ) END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col2
----
2

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

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL - 59 + - - COUNT ( * ) AS col0
----
-58

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8406
SELECT - 20 DIV - 22 + 56 * MAX( 68 )
----
3808

skipif mysql # not compatible
query I rowsort label-8406
SELECT - 20 / - 22 + 56 * MAX ( 68 )
----
3808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8407
SELECT ( - - NULLIF ( 51, + COUNT( * ) + 50 * - - CASE - + 60 WHEN COUNT( * ) * + + ( + 77 ) THEN - 1 ELSE MIN( 62 ) / + CAST( NULL AS SIGNED ) + + SUM( - ( + - 72 ) ) END * 16 ) ) + - 7
----
44

skipif mysql # not compatible
query I rowsort label-8407
SELECT ( - - NULLIF ( 51, + COUNT ( * ) + 50 * - - CASE - + 60 WHEN COUNT ( * ) * + + ( + 77 ) THEN - 1 ELSE MIN ( 62 ) / + CAST ( NULL AS INTEGER ) + + SUM ( - ( + - 72 ) ) END * 16 ) ) + - 7
----
44

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

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

query I rowsort
SELECT 47 + + 89 AS col1
----
136

query I rowsort
SELECT ALL + 8 * - 90 AS col1
----
-720

query II rowsort
SELECT DISTINCT 98 AS col0, 96
----
98
96

query I rowsort
SELECT ALL + 36 - + 71
----
-35

query I rowsort
SELECT ALL - 82 * - 60 col0
----
4920

query I rowsort
SELECT ALL 66 * 2
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8415
SELECT 62 * - CAST( - 1 AS SIGNED ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-8415
SELECT 62 * - CAST ( - 1 AS INTEGER ) AS col2
----
62

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

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

query I rowsort
SELECT DISTINCT - 91 * - - 85 AS col0
----
-7735

query I rowsort
SELECT 52 * + 61 AS col2
----
3172

query I rowsort
SELECT DISTINCT 65 * - - 31 AS col1
----
2015

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL - MAX( 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL - MAX ( 81 )
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8421
SELECT ALL - COUNT( * ) DIV + + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL - COUNT ( * ) / + + 93 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8422
SELECT + 26 AS col2, MIN( ALL - - 4 ) * + 40 - - + 64
----
26
224

skipif mysql # not compatible
query II rowsort label-8422
SELECT + 26 AS col2, MIN ( ALL - - 4 ) * + 40 - - + 64
----
26
224

query I rowsort
SELECT DISTINCT - - 77 AS col0
----
77

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8425
SELECT ALL - MIN( DISTINCT - ( CAST( NULL AS SIGNED ) ) ) / - 28 * - 72 + - 72 - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL - MIN ( DISTINCT - ( CAST ( NULL AS INTEGER ) ) ) / - 28 * - 72 + - 72 - + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 73 + 81 * - 49
----
-3896

query I rowsort
SELECT 63 - 49 * - 53
----
2660

query I rowsort
SELECT ALL + - 29 * - 6 * - 89 + 10 AS col2
----
-15476

query II rowsort
SELECT - 92 + - - 98 + NULLIF ( + 62, + 60 ) AS col0, - 48 AS col2
----
68
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8430
SELECT + CASE - 74 WHEN + COALESCE ( - COUNT( * ), COALESCE ( SUM( + + 16 ), + 34, + 43 / - - 87 + 25 ) ) * + - 58 + + 79 + - + COUNT( * ) THEN - CAST( NULL AS SIGNED ) WHEN + 78 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8430
SELECT + CASE - 74 WHEN + COALESCE ( - COUNT ( * ), COALESCE ( SUM ( + + 16 ), + 34, + 43 / - - 87 + 25 ) ) * + - 58 + + 79 + - + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) WHEN + 78 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT DISTINCT + + COUNT( * ) + - 24 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT + + COUNT ( * ) + - 24 AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8432
SELECT ALL - CAST( NULL AS SIGNED ) * + 29 * - ( + 39 ) * - 7 * + + 37 * 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL - CAST ( NULL AS INTEGER ) * + 29 * - ( + 39 ) * - 7 * + + 37 * 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT MAX( - 88 ) + - 21
----
-109

skipif mysql # not compatible
query I rowsort label-8433
SELECT MAX ( - 88 ) + - 21
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT DISTINCT + + 24 + 68 * COUNT( * ) + - 37 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-8434
SELECT DISTINCT + + 24 + 68 * COUNT ( * ) + - 37 AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8435
SELECT ALL - 22 AS col2, - CASE - + NULLIF ( - 2, + - CASE 65 WHEN 59 THEN NULL WHEN + ( - 76 ) THEN + 99 ELSE - - COUNT( * ) END DIV + 66 DIV + 47 ) WHEN - 98 + - - SUM( DISTINCT 93 ) THEN - 80 - - 95 * CAST( NULL AS SIGNED ) DIV COUNT( 3 ) ELSE - 71 END + + 27 DIV 46 AS col1
----
-22
71

skipif mysql # not compatible
query II rowsort label-8435
SELECT ALL - 22 AS col2, - CASE - + NULLIF ( - 2, + - CASE 65 WHEN 59 THEN NULL WHEN + ( - 76 ) THEN + 99 ELSE - - COUNT ( * ) END / + 66 / + 47 ) WHEN - 98 + - - SUM ( DISTINCT 93 ) THEN - 80 - - 95 * CAST ( NULL AS INTEGER ) / COUNT ( 3 ) ELSE - 71 END + + 27 / 46 AS col1
----
-22
71

query I rowsort
SELECT ALL + - 74 + 70 AS col2
----
-4

query II rowsort
SELECT - 73 col1, 72
----
-73
72

onlyif mysql # aggregate syntax: 
query II rowsort label-8438
SELECT - 8 * 33 * + - COUNT( * ) + 80 + + 13 AS col1, COUNT( - - 56 )
----
357
1

skipif mysql # not compatible
query II rowsort label-8438
SELECT - 8 * 33 * + - COUNT ( * ) + 80 + + 13 AS col1, COUNT ( - - 56 )
----
357
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT + 78 + SUM( DISTINCT + 70 ) + - 10 + - COUNT( * )
----
137

skipif mysql # not compatible
query I rowsort label-8439
SELECT + 78 + SUM ( DISTINCT + 70 ) + - 10 + - COUNT ( * )
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8440
SELECT ALL 48 DIV + MIN( DISTINCT - 18 ) + + 9
----
7

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL 48 / + MIN ( DISTINCT - 18 ) + + 9
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT - MIN( 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-8441
SELECT - MIN ( 84 ) AS col2
----
-84

query I rowsort
SELECT + 92 + 97 + + 93
----
282

query I rowsort
SELECT DISTINCT 68 * - 75 * - 99
----
504900

query II rowsort
SELECT DISTINCT + 67 - - + 21, + ( 55 ) AS col2
----
88
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT - MIN( DISTINCT + 43 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-8445
SELECT - MIN ( DISTINCT + 43 ) AS col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8446
SELECT DISTINCT COUNT( * ) * + CAST( - SUM( ALL + + 16 ) AS SIGNED ), - 23 AS col1
----
-16
-23

skipif mysql # not compatible
query II rowsort label-8446
SELECT DISTINCT COUNT ( * ) * + CAST ( - SUM ( ALL + + 16 ) AS INTEGER ), - 23 AS col1
----
-16
-23

query II rowsort
SELECT ALL 94 AS col0, 40 AS col1
----
94
40

query I rowsort
SELECT - 55 * - + 51 AS col1
----
2805

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT + 61 * - 84 * + + MIN( + + 80 ) col1
----
-409920

skipif mysql # not compatible
query I rowsort label-8449
SELECT + 61 * - 84 * + + MIN ( + + 80 ) col1
----
-409920

query I rowsort
SELECT - 73 + - 85
----
-158

query I rowsort
SELECT - 31 - 36
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT + 49 + ( + 23 ) + - + 85 + - CASE - 44 WHEN AVG ( DISTINCT - + 33 ) THEN NULL WHEN + 43 * 23 THEN NULL ELSE COUNT( DISTINCT 34 ) + 72 END * - MIN( 40 ) * - 21 + - - 30 * - COUNT( * ) AS col0
----
-61363

skipif mysql # not compatible
query I rowsort label-8452
SELECT + 49 + ( + 23 ) + - + 85 + - CASE - 44 WHEN AVG ( DISTINCT - + 33 ) THEN NULL WHEN + 43 * 23 THEN NULL ELSE COUNT ( DISTINCT 34 ) + 72 END * - MIN ( 40 ) * - 21 + - - 30 * - COUNT ( * ) AS col0
----
-61363

query I rowsort
SELECT + 55 - - 38
----
93

query I rowsort
SELECT DISTINCT 60 - + - 10 + 69 AS col2
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-8455
SELECT ALL 19 DIV - - 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL 19 / - - 81 AS col1
----
0

query I rowsort
SELECT + 25 * ( 53 ) AS col0
----
1325

query I rowsort
SELECT + 1 * + + 96
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8458
SELECT ALL + 27, - SUM( - + ( + 66 ) ) * - + 24 AS col0
----
27
-1584

skipif mysql # not compatible
query II rowsort label-8458
SELECT ALL + 27, - SUM ( - + ( + 66 ) ) * - + 24 AS col0
----
27
-1584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8459
SELECT 42 DIV + + NULLIF ( - 27, - 44 - + + 63 ) + + + 93 + + NULLIF ( SUM( ALL + ( + - 60 ) ), + + COUNT( * ) DIV + AVG ( ( - 79 ) ) + - + ( + 28 ) + + 46 + - CAST( NULL AS SIGNED ) * - - 89 * + - SUM( DISTINCT + + 32 ) )
----
32

skipif mysql # not compatible
query I rowsort label-8459
SELECT 42 / + + NULLIF ( - 27, - 44 - + + 63 ) + + + 93 + + NULLIF ( SUM ( ALL + ( + - 60 ) ), + + COUNT ( * ) / + AVG ( ( - 79 ) ) + - + ( + 28 ) + + 46 + - CAST ( NULL AS INTEGER ) * - - 89 * + - SUM ( DISTINCT + + 32 ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT ( - - CASE COUNT( * ) WHEN CASE - + 86 WHEN + 40 + - COUNT( * ) THEN + NULLIF ( 70, + + 64 + + NULLIF ( - + 69, - NULLIF ( - NULLIF ( - ( 67 ), COUNT( * ) ), - 84 / 11 - + ( - - 68 ) + - 92 * 9 ) + + 71 * 16 ) ) ELSE 34 * - COUNT( * ) END THEN + 25 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT ( - - CASE COUNT ( * ) WHEN CASE - + 86 WHEN + 40 + - COUNT ( * ) THEN + NULLIF ( 70, + + 64 + + NULLIF ( - + 69, - NULLIF ( - NULLIF ( - ( 67 ), COUNT ( * ) ), - 84 / 11 - + ( - - 68 ) + - 92 * 9 ) + + 71 * 16 ) ) ELSE 34 * - COUNT ( * ) END THEN + 25 ELSE NULL END ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8462
SELECT ( + ( - 39 ) ) * 14 * + - 1 + 68 + + CAST( NULL AS SIGNED ) + - NULLIF ( + - 83, - 9 ) + + 30 - - COUNT( * ) / + + COALESCE ( - + 96, 74 + COUNT( DISTINCT ( 50 ) ) / COUNT( * ) ) + + + NULLIF ( - NULLIF ( 34, MIN( DISTINCT 81 ) - COALESCE ( 3, + 20 ) * 56 ), - CASE + 17 WHEN - 24 THEN + 69 + COUNT( * ) END ) / - CASE - 34 WHEN COUNT( * ) + 43 THEN + 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8462
SELECT ( + ( - 39 ) ) * 14 * + - 1 + 68 + + CAST ( NULL AS INTEGER ) + - NULLIF ( + - 83, - 9 ) + + 30 - - COUNT ( * ) / + + COALESCE ( - + 96, 74 + COUNT ( DISTINCT ( 50 ) ) / COUNT ( * ) ) + + + NULLIF ( - NULLIF ( 34, MIN ( DISTINCT 81 ) - COALESCE ( 3, + 20 ) * 56 ), - CASE + 17 WHEN - 24 THEN + 69 + COUNT ( * ) END ) / - CASE - 34 WHEN COUNT ( * ) + 43 THEN + 27 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8463
SELECT + 79 AS col0, 39 DIV 67 col1
----
79
0

skipif mysql # not compatible
query II rowsort label-8463
SELECT + 79 AS col0, 39 / 67 col1
----
79
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8464
SELECT ALL + 12 * - + 27 + - - NULLIF ( + 28, CAST( 85 AS SIGNED ) ) + + + CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-297

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL + 12 * - + 27 + - - NULLIF ( + 28, CAST ( 85 AS INTEGER ) ) + + + CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT + - ( - 57 ) * + + 51 * - SUM( - - 21 ) * + 0 + + 80 + ( + NULLIF ( + NULLIF ( 10, 11 ), - 13 ) ) + + COUNT( * ) - + ( 92 ) * + 72
----
-6533

skipif mysql # not compatible
query I rowsort label-8465
SELECT + - ( - 57 ) * + + 51 * - SUM ( - - 21 ) * + 0 + + 80 + ( + NULLIF ( + NULLIF ( 10, 11 ), - 13 ) ) + + COUNT ( * ) - + ( 92 ) * + 72
----
-6533

query I rowsort
SELECT DISTINCT + ( - CASE - 61 WHEN - 23 THEN + ( - 48 ) WHEN - - 74 THEN NULL END )
----
NULL

query I rowsort
SELECT + 63 * + 60 AS col0
----
3780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8468
SELECT 7 / + - 79 / 57 + - CASE + NULLIF ( - - COUNT( DISTINCT 34 ), + - CAST( - + 49 AS SIGNED ) * - 3 ) WHEN AVG ( - 27 ) THEN - ( - CASE + 17 WHEN - 57 THEN NULL WHEN - 55 / - - 66 + 21 THEN NULL ELSE 39 END ) WHEN - - 71 * - 73 THEN NULL END + 96 + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8468
SELECT 7 / + - 79 / 57 + - CASE + NULLIF ( - - COUNT ( DISTINCT 34 ), + - CAST ( - + 49 AS INTEGER ) * - 3 ) WHEN AVG ( - 27 ) THEN - ( - CASE + 17 WHEN - 57 THEN NULL WHEN - 55 / - - 66 + 21 THEN NULL ELSE 39 END ) WHEN - - 71 * - 73 THEN NULL END + 96 + - 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT ALL - 2 * - - MIN( + 54 ) AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL - 2 * - - MIN ( + 54 ) AS col0
----
-108

query II rowsort
SELECT + 72, 58 AS col1
----
72
58

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT ALL + 18 * ( + + COUNT( * ) ) + + COUNT( * ) - - 57 + - + 82 * 62 AS col1
----
-5008

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL + 18 * ( + + COUNT ( * ) ) + + COUNT ( * ) - - 57 + - + 82 * 62 AS col1
----
-5008

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8476
SELECT ALL - 82 * - COALESCE ( - 29, 75 * + 59 + - - 17 ) + + COUNT( * ) DIV + + 9 AS col2
----
-2378

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL - 82 * - COALESCE ( - 29, 75 * + 59 + - - 17 ) + + COUNT ( * ) / + + 9 AS col2
----
-2378

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT COUNT( * ) * + 61 * - - 67 - - COALESCE ( - 74, 21 * - 12, + 24 )
----
4013

skipif mysql # not compatible
query I rowsort label-8477
SELECT COUNT ( * ) * + 61 * - - 67 - - COALESCE ( - 74, 21 * - 12, + 24 )
----
4013

onlyif mysql # DIV for integer division: 
query I rowsort label-8478
SELECT - ( + 85 ) DIV + 85
----
-1

skipif mysql # not compatible
query I rowsort label-8478
SELECT - ( + 85 ) / + 85
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT - + 31 / + 25 * - 48 / + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT - + 31 / + 25 * - 48 / + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8480
SELECT ALL + 25 * - CAST( - 51 AS SIGNED ) AS col0
----
1275

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL + 25 * - CAST ( - 51 AS INTEGER ) AS col0
----
1275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8481
SELECT - - 20 * + 87 * 69 * + 63 + + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT - - 20 * + 87 * 69 * + 63 + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8482
SELECT - 24 AS col0, ( NULLIF ( CAST( NULL AS SIGNED ), 55 ) )
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-8482
SELECT - 24 AS col0, ( NULLIF ( CAST ( NULL AS INTEGER ), 55 ) )
----
-24
NULL

query I rowsort
SELECT ALL - - 9 * - 28 AS col2
----
-252

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8484
SELECT ALL + MIN( ALL 63 ) - NULLIF ( - ( - + 60 ), + + 83 * - 30 * + 46 - + ( 34 ) DIV + COUNT( * ) ) AS col0, + 92 DIV - 8 + 25 * + 91
----
3
2264

skipif mysql # not compatible
query II rowsort label-8484
SELECT ALL + MIN ( ALL 63 ) - NULLIF ( - ( - + 60 ), + + 83 * - 30 * + 46 - + ( 34 ) / + COUNT ( * ) ) AS col0, + 92 / - 8 + 25 * + 91
----
3
2264

query I rowsort
SELECT - - 70 - + + 84
----
-14

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8487
SELECT - 32 + - - 64 AS col1, COUNT( * ) AS col2
----
32
1

skipif mysql # not compatible
query II rowsort label-8487
SELECT - 32 + - - 64 AS col1, COUNT ( * ) AS col2
----
32
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8488
SELECT + COUNT( * ) * ( - NULLIF ( + COUNT( * ), - 80 ) ) * 51 DIV + 67 + + MAX( - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-8488
SELECT + COUNT ( * ) * ( - NULLIF ( + COUNT ( * ), - 80 ) ) * 51 / + 67 + + MAX ( - 59 )
----
-59

query I rowsort
SELECT + 14 - 41 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-8490
SELECT DISTINCT ( + 95 ) AS col1, - COUNT( * ) + + COALESCE ( - - 10, - + MIN( + ( + - 80 ) ) ) AS col0
----
95
9

skipif mysql # not compatible
query II rowsort label-8490
SELECT DISTINCT ( + 95 ) AS col1, - COUNT ( * ) + + COALESCE ( - - 10, - + MIN ( + ( + - 80 ) ) ) AS col0
----
95
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT ALL 13 * - COUNT( * ) * + ( - 20 )
----
260

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL 13 * - COUNT ( * ) * + ( - 20 )
----
260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8492
SELECT DISTINCT + 73 / CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) * + - 32 * 24 - - - COUNT( * ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8492
SELECT DISTINCT + 73 / CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * + - 32 * 24 - - - COUNT ( * ) AS col0
----
NULL
NULL

query I rowsort
SELECT DISTINCT + 64 * + 97
----
6208

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

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL + 47 + + CAST ( NULL AS REAL ) + - 23
----
NULL

query I rowsort
SELECT + 48 * 10 AS col0
----
480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8496
SELECT COUNT( * ) * - CAST( + - COALESCE ( + + SUM( 41 ), + 52, + 87 * 51 * - + 18 + + 18 ) AS SIGNED ) - - ( - 35 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-8496
SELECT COUNT ( * ) * - CAST ( + - COALESCE ( + + SUM ( 41 ), + 52, + 87 * 51 * - + 18 + + 18 ) AS INTEGER ) - - ( - 35 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT + SUM( + - 82 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-8497
SELECT + SUM ( + - 82 ) AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8498
SELECT + CAST( - - CASE - - ( + 49 ) WHEN - 53 * - ( ( - + 88 ) ) THEN + - 88 / + + NULLIF ( + 5, - 30 ) + + COUNT( * ) + + ( + ( + 11 ) ) * + 31 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT + CAST ( - - CASE - - ( + 49 ) WHEN - 53 * - ( ( - + 88 ) ) THEN + - 88 / + + NULLIF ( + 5, - 30 ) + + COUNT ( * ) + + ( + ( + 11 ) ) * + 31 END AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8499
SELECT ALL 61 DIV - 99 * - COALESCE ( 92, - 54 + ( + - 31 ) ) + - 4 + + COUNT( * ) * + 87 DIV - - 29 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL 61 / - 99 * - COALESCE ( 92, - 54 + ( + - 31 ) ) + - 4 + + COUNT ( * ) * + 87 / - - 29 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-8500
SELECT - + 42 DIV + + 49 - 72, + 45 AS col0
----
-72
45

skipif mysql # not compatible
query II rowsort label-8500
SELECT - + 42 / + + 49 - 72, + 45 AS col0
----
-72
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT + + 36 * - 36 + ( + - 46 ) * - COUNT( * )
----
-1250

skipif mysql # not compatible
query I rowsort label-8501
SELECT + + 36 * - 36 + ( + - 46 ) * - COUNT ( * )
----
-1250

query I rowsort
SELECT + - 62 * - + 44 + 8 + 67 * 6
----
3138

query I rowsort
SELECT DISTINCT + - NULLIF ( - 59, + + 88 ) AS col2
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8504
SELECT ALL + ( + 59 ) DIV - 23 + + 68 - ( - 5 )
----
71

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL + ( + 59 ) / - 23 + + 68 - ( - 5 )
----
71

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

skipif mysql # not compatible
query I rowsort label-8505
SELECT + 83 - 62 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 90 * + 56, 63 * - + 28 col1
----
5040
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT + - COUNT( * ) + + + 41 * - - 9 col1
----
368

skipif mysql # not compatible
query I rowsort label-8507
SELECT + - COUNT ( * ) + + + 41 * - - 9 col1
----
368

query I rowsort
SELECT + 86 * - 73 + + - 0
----
-6278

query I rowsort
SELECT + + 35 - - 52
----
87

query II rowsort
SELECT ALL - 29 * + + 43, + 60 AS col2
----
-1247
60

query I rowsort
SELECT + COALESCE ( - - 96, - 89 ) - - 4 AS col0
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-8512
SELECT DISTINCT + 96 * 53 DIV + 82
----
62

skipif mysql # not compatible
query I rowsort label-8512
SELECT DISTINCT + 96 * 53 / + 82
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT ALL + 80 - - 95 * - 95 + + COUNT( * ) AS col2
----
-8944

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL + 80 - - 95 * - 95 + + COUNT ( * ) AS col2
----
-8944

onlyif mysql # DIV for integer division: 
query I rowsort label-8514
SELECT 28 * + 65 - 16 DIV + 17 AS col0
----
1820

skipif mysql # not compatible
query I rowsort label-8514
SELECT 28 * + 65 - 16 / + 17 AS col0
----
1820

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

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

query II rowsort
SELECT DISTINCT 81 col2, 56 AS col0
----
81
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8517
SELECT DISTINCT CAST( NULL AS SIGNED ) / - - 7 * COUNT( * ) AS col1, - 88 + - - COUNT( * ) * - + 65 col0
----
NULL
-153

skipif mysql # not compatible
query II rowsort label-8517
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - - 7 * COUNT ( * ) AS col1, - 88 + - - COUNT ( * ) * - + 65 col0
----
NULL
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8518
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + 36 + + 59 + + - CASE + 72 WHEN - COUNT( * ) * 35 THEN - 60 WHEN + 5 * 5 THEN NULL END + - 45 * 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + 36 + + 59 + + - CASE + 72 WHEN - COUNT ( * ) * 35 THEN - 60 WHEN + 5 * 5 THEN NULL END + - 45 * 0 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT ALL + 50 * + MIN( DISTINCT ( 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL + 50 * + MIN ( DISTINCT ( 0 ) )
----
0

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

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

query I rowsort
SELECT 75 + - - ( + 64 ) - - 56 + + 35 AS col1
----
230

query I rowsort
SELECT 46 * 61 AS col2
----
2806

query I rowsort
SELECT DISTINCT - 78 * 97 * 18
----
-136188

query I rowsort
SELECT ALL + 23 * 52
----
1196

query I rowsort
SELECT ALL + 60 * 55
----
3300

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT ALL + 87 * CASE + ( - 59 ) WHEN - 46 - + - COUNT( * ) THEN - + 84 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8526
SELECT ALL + 87 * CASE + ( - 59 ) WHEN - 46 - + - COUNT ( * ) THEN - + 84 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 72 + + - 3
----
69

query I rowsort
SELECT DISTINCT + 78 * + 83
----
6474

query II rowsort
SELECT ALL 11, 8 AS col0
----
11
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT ALL - 15 + - + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL - 15 + - + COUNT ( * )
----
-16

query II rowsort
SELECT 52 + ( + 72 ) * - COALESCE ( - + ( 11 ), 90 ) * + 51 col2, + 0 AS col0
----
40444
0

query I rowsort
SELECT 91 * 33 * 72 col1
----
216216

query I rowsort
SELECT 62 + + 83
----
145

query I rowsort
SELECT 71 + 72 AS col2
----
143

query I rowsort
SELECT 7 + 39 AS col0
----
46

query II rowsort
SELECT 55 AS col1, 15 col2
----
55
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT NULLIF ( - ( - - 55 ), - 15 ) + - - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-8538
SELECT NULLIF ( - ( - - 55 ), - 15 ) + - - COUNT ( * )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT - 54 + + 87 + + + 48 + 76 + + + CASE - + MIN( DISTINCT + ( - - 17 ) ) WHEN + 21 * 78 + - COUNT( * ) THEN + COUNT( * ) * + 77 * ( + 17 ) * - ( + 26 ) + + CASE + + 84 WHEN 50 THEN - 97 ELSE - - 16 END * + + CASE + COALESCE ( 87, 66, 89 * - 51 ) WHEN 84 THEN 65 WHEN COUNT( * ) + - 83 * + 13 THEN NULL END + 27 ELSE NULL END + 67 * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-8539
SELECT - 54 + + 87 + + + 48 + 76 + + + CASE - + MIN ( DISTINCT + ( - - 17 ) ) WHEN + 21 * 78 + - COUNT ( * ) THEN + COUNT ( * ) * + 77 * ( + 17 ) * - ( + 26 ) + + CASE + + 84 WHEN 50 THEN - 97 ELSE - - 16 END * + + CASE + COALESCE ( 87, 66, 89 * - 51 ) WHEN 84 THEN 65 WHEN COUNT ( * ) + - 83 * + 13 THEN NULL END + 27 ELSE NULL END + 67 * 27
----
NULL

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

query I rowsort
SELECT ALL 11 * - 5 AS col1
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8542
SELECT + 81 + ( - 40 ) - - 93 DIV 49 DIV ( 73 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-8542
SELECT + 81 + ( - 40 ) - - 93 / 49 / ( 73 ) AS col2
----
41

query I rowsort
SELECT ALL + 25 + + 60 AS col2
----
85

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

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

query I rowsort
SELECT DISTINCT + + ( - 33 ) + + 78 AS col0
----
45

query I rowsort
SELECT + 39 * + 53 - + 60 + + - 18 AS col1
----
1989

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

skipif mysql # not compatible
query I rowsort label-8547
SELECT + COUNT ( * ) / - 25
----
0

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

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

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

query I rowsort
SELECT - 44 + - 58
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-8551
SELECT ALL COUNT( * ) - - 41 + 48, 41 + 76 col1
----
90
117

skipif mysql # not compatible
query II rowsort label-8551
SELECT ALL COUNT ( * ) - - 41 + 48, 41 + 76 col1
----
90
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8552
SELECT COUNT( 23 ) DIV COALESCE ( - 51, - 36 ) * + 76
----
0

skipif mysql # not compatible
query I rowsort label-8552
SELECT COUNT ( 23 ) / COALESCE ( - 51, - 36 ) * + 76
----
0

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

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

query I rowsort
SELECT - 97 * + 27
----
-2619

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT ALL + 48 - ( 27 ) * - CASE WHEN NOT + 43 <= - 8 * COUNT( * ) + - - 26 THEN NULL WHEN 33 IS NULL THEN NULL ELSE + 8 + - 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + 48 - ( 27 ) * - CASE WHEN NOT + 43 <= - 8 * COUNT ( * ) + - - 26 THEN NULL WHEN 33 IS NULL THEN NULL ELSE + 8 + - 29 END
----
NULL

query II rowsort
SELECT DISTINCT - 7 AS col0, 10
----
-7
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8557
SELECT - CASE - 7 WHEN - + MIN( ALL + 55 ) + 77 * + 64 THEN NULL ELSE 36 * - + COUNT( * ) + 39 - CAST( NULL AS DECIMAL ) - + - 67 + 73 + + - 55 * - 13 * + CASE - ( + 8 ) WHEN - - 55 * 6 + - 6 THEN 22 + - 67 END / - + 73 END * CAST( COUNT( * ) * - 72 AS SIGNED ) - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-8557
SELECT - CASE - 7 WHEN - + MIN ( ALL + 55 ) + 77 * + 64 THEN NULL ELSE 36 * - + COUNT ( * ) + 39 - CAST ( NULL AS REAL ) - + - 67 + 73 + + - 55 * - 13 * + CASE - ( + 8 ) WHEN - - 55 * 6 + - 6 THEN 22 + - 67 END / - + 73 END * CAST ( COUNT ( * ) * - 72 AS INTEGER ) - 77
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8558
SELECT ALL CAST( + - NULLIF ( COALESCE ( + 45, + 92 ), 91 * + 57 * + 35 ) AS SIGNED ) * + - 93 * 98 / + CAST( NULL AS DECIMAL ) + + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8558
SELECT ALL CAST ( + - NULLIF ( COALESCE ( + 45, + 92 ), 91 * + 57 * + 35 ) AS INTEGER ) * + - 93 * 98 / + CAST ( NULL AS REAL ) + + - 42
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8559
SELECT ALL 3 * + 24 AS col0, COUNT( * ) col2
----
72
1

skipif mysql # not compatible
query II rowsort label-8559
SELECT ALL 3 * + 24 AS col0, COUNT ( * ) col2
----
72
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8561
SELECT + 48 * + + 10 + 30 + + CAST( 83 AS SIGNED ) - + 98 * - COUNT( * ) AS col1
----
691

skipif mysql # not compatible
query I rowsort label-8561
SELECT + 48 * + + 10 + 30 + + CAST ( 83 AS INTEGER ) - + 98 * - COUNT ( * ) AS col1
----
691

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8562
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT CAST ( NULL AS REAL ) * - 1 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 43 + 78 AS col1, 83 AS col0
----
121
83

query II rowsort
SELECT DISTINCT + 64 + 73 + + 45 - - 12 + + - 59 * 93 + + 69 AS col2, - 80 AS col1
----
-5224
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT DISTINCT - 1 + - COUNT( - 0 ) * 5 - - 25
----
19

skipif mysql # not compatible
query I rowsort label-8565
SELECT DISTINCT - 1 + - COUNT ( - 0 ) * 5 - - 25
----
19

query I rowsort
SELECT ALL 36 + + + 8 col2
----
44

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8568
SELECT CASE - ( + MIN( - + 51 ) ) WHEN - 77 + - + 24 THEN NULL WHEN + + COUNT( * ) THEN - 71 - - + COUNT( * ) + + 73 - - 13 + - - 15 * - ( - + CAST( + 53 AS SIGNED ) ) + COUNT( * ) - 76 * - - 77 + + 93 END + + 0 * - MIN( ALL + + 70 ) + + 1 * 55 * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT CASE - ( + MIN ( - + 51 ) ) WHEN - 77 + - + 24 THEN NULL WHEN + + COUNT ( * ) THEN - 71 - - + COUNT ( * ) + + 73 - - 13 + - - 15 * - ( - + CAST ( + 53 AS INTEGER ) ) + COUNT ( * ) - 76 * - - 77 + + 93 END + + 0 * - MIN ( ALL + + 70 ) + + 1 * 55 * - 69
----
NULL

query I rowsort
SELECT ( - + 39 ) * + 84 col2
----
-3276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8570
SELECT DISTINCT + 47 + + - CAST( NULL AS SIGNED ) + 48 + - 27 col0, - 99 + COUNT( * ) AS col0
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-8570
SELECT DISTINCT + 47 + + - CAST ( NULL AS INTEGER ) + 48 + - 27 col0, - 99 + COUNT ( * ) AS col0
----
NULL
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT ALL + NULLIF ( COUNT( 58 ), - 29 ) * 0 + - - COUNT( * ) + - 58 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL + NULLIF ( COUNT ( 58 ), - 29 ) * 0 + - - COUNT ( * ) + - 58 AS col1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8572
SELECT ALL + COALESCE ( - ( CAST( + 35 AS SIGNED ) ), - + 60 * + 80, + - 1 + 57, - 24 )
----
-35

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL + COALESCE ( - ( CAST ( + 35 AS INTEGER ) ), - + 60 * + 80, + - 1 + 57, - 24 )
----
-35

query I rowsort
SELECT ALL + 96 * + 3
----
288

query I rowsort
SELECT - COALESCE ( - + 44, - 36, + 83, + 8 + NULLIF ( - 33, 68 * + - ( - + 43 ) ) ) - - + 16
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT SUM( DISTINCT - + COALESCE ( - 17, + 97, 58 * + - 66 ) )
----
17

skipif mysql # not compatible
query I rowsort label-8575
SELECT SUM ( DISTINCT - + COALESCE ( - 17, + 97, 58 * + - 66 ) )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8576
SELECT ALL + - CAST( + 64 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-8576
SELECT ALL + - CAST ( + 64 AS INTEGER )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT - COUNT( * ) * + + CASE 21 WHEN 32 / 39 * + - 38 * - COUNT( * ) THEN + 22 ELSE NULL END + - 70 + + 73 + + NULLIF ( - + 48, + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8577
SELECT - COUNT ( * ) * + + CASE 21 WHEN 32 / 39 * + - 38 * - COUNT ( * ) THEN + 22 ELSE NULL END + - 70 + + 73 + + NULLIF ( - + 48, + 6 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT NULLIF ( + - 86, 56 * + ( COUNT( * ) ) + + 63 ) col0
----
-86

skipif mysql # not compatible
query I rowsort label-8578
SELECT NULLIF ( + - 86, 56 * + ( COUNT ( * ) ) + + 63 ) col0
----
-86

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8580
SELECT - SUM( - 47 ) * 11 + - 40, + ( + 14 ) + + 63 * COUNT( DISTINCT 70 ) AS col0
----
477
77

skipif mysql # not compatible
query II rowsort label-8580
SELECT - SUM ( - 47 ) * 11 + - 40, + ( + 14 ) + + 63 * COUNT ( DISTINCT 70 ) AS col0
----
477
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT DISTINCT 21 * COUNT( ALL - 30 )
----
21

skipif mysql # not compatible
query I rowsort label-8581
SELECT DISTINCT 21 * COUNT ( ALL - 30 )
----
21

query I rowsort
SELECT DISTINCT 30 * 73 + + 7
----
2197

query I rowsort
SELECT - + 8 * + 89
----
-712

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT - 48 + + COUNT( ALL - 54 ) col2
----
-47

skipif mysql # not compatible
query I rowsort label-8584
SELECT - 48 + + COUNT ( ALL - 54 ) col2
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8585
SELECT + 18 DIV - - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8585
SELECT + 18 / - - 76 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8586
SELECT ALL - ( + + 39 ) * + - 84 * + CAST( + + 36 AS SIGNED )
----
117936

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL - ( + + 39 ) * + - 84 * + CAST ( + + 36 AS INTEGER )
----
117936

query I rowsort
SELECT - 40 * 87 * 55 * 99 + - 90 AS col1
----
-18948690

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8588
SELECT + NULLIF ( 90, + + 16 + - 22 ) - - - 37, + CASE 87 WHEN ( - + 36 ) THEN 87 * - 2 WHEN COALESCE ( 0, + 28 * 96 + + COUNT( * ), + + 13 ) * 20 * + COUNT( * ) + - 59 * CASE - 41 WHEN + 93 * SUM( 17 ) THEN - MAX( CAST( NULL AS DECIMAL ) ) ELSE 99 END * - SUM( DISTINCT + 27 + 44 ) THEN NULL END + 59 AS col0
----
53
NULL

skipif mysql # not compatible
query II rowsort label-8588
SELECT + NULLIF ( 90, + + 16 + - 22 ) - - - 37, + CASE 87 WHEN ( - + 36 ) THEN 87 * - 2 WHEN COALESCE ( 0, + 28 * 96 + + COUNT ( * ), + + 13 ) * 20 * + COUNT ( * ) + - 59 * CASE - 41 WHEN + 93 * SUM ( 17 ) THEN - MAX ( CAST ( NULL AS REAL ) ) ELSE 99 END * - SUM ( DISTINCT + 27 + 44 ) THEN NULL END + 59 AS col0
----
53
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8591
SELECT - 26 DIV + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8591
SELECT - 26 / + 72 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8592
SELECT COUNT( * ) AS col0, + COALESCE ( - 59, ( - + 37 ) + + 73 DIV - 82 * + - 35 * - NULLIF ( 94, AVG ( - 9 ) + 52 * 78 - - MIN( CAST( NULL AS SIGNED ) ) ), 12 * + 19 + + + 42 )
----
1
-59

skipif mysql # not compatible
query II rowsort label-8592
SELECT COUNT ( * ) AS col0, + COALESCE ( - 59, ( - + 37 ) + + 73 / - 82 * + - 35 * - NULLIF ( 94, AVG ( - 9 ) + 52 * 78 - - MIN ( CAST ( NULL AS INTEGER ) ) ), 12 * + 19 + + + 42 )
----
1
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8593
SELECT DISTINCT - 33 * - NULLIF ( + - 71, - - 92 ) + - CAST( + - COUNT( - 43 ) AS SIGNED ) + - + 61 * 10 * 25, - 93 * 61 AS col0
----
-17592
-5673

skipif mysql # not compatible
query II rowsort label-8593
SELECT DISTINCT - 33 * - NULLIF ( + - 71, - - 92 ) + - CAST ( + - COUNT ( - 43 ) AS INTEGER ) + - + 61 * 10 * 25, - 93 * 61 AS col0
----
-17592
-5673

query I rowsort
SELECT DISTINCT - 14 + + + 93
----
79

query I rowsort
SELECT DISTINCT 8 + - - 67
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT + 19 * - - COUNT( * ) * 64
----
1216

skipif mysql # not compatible
query I rowsort label-8596
SELECT + 19 * - - COUNT ( * ) * 64
----
1216

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT + 36 + COUNT( ALL + 2 ) * 78 * + 97 AS col0
----
7602

skipif mysql # not compatible
query I rowsort label-8597
SELECT + 36 + COUNT ( ALL + 2 ) * 78 * + 97 AS col0
----
7602

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + 42 * + SUM( DISTINCT 93 )
----
3906

skipif mysql # not compatible
query I rowsort label-8598
SELECT + 42 * + SUM ( DISTINCT 93 )
----
3906

query I rowsort
SELECT DISTINCT 48 + + 68
----
116

query II rowsort
SELECT 72, - 20 AS col1
----
72
-20

query I rowsort
SELECT + 6 + + 74
----
80

query I rowsort
SELECT DISTINCT 12 - - 74 AS col0
----
86

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

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

query I rowsort
SELECT + 82 + 95
----
177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8605
SELECT ALL COUNT( * ) - 29 * - 93 AS col0, CAST( NULL AS SIGNED ) + - 0 + + 35 + - + COUNT( * ) + + 7 AS col2
----
2698
NULL

skipif mysql # not compatible
query II rowsort label-8605
SELECT ALL COUNT ( * ) - 29 * - 93 AS col0, CAST ( NULL AS INTEGER ) + - 0 + + 35 + - + COUNT ( * ) + + 7 AS col2
----
2698
NULL

query I rowsort
SELECT DISTINCT + - ( 65 ) - - 61 col1
----
-4

query I rowsort
SELECT + 3 + + 96 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8608
SELECT - + COALESCE ( - CASE - 80 WHEN 1 THEN NULL WHEN - CAST( NULL AS DECIMAL ) + + 91 * - 58 THEN + + 10 + - 19 - + 28 DIV - + 92 ELSE NULL END, - COALESCE ( 46, + 81 * 25 * 41 DIV + 18 ) * + ( + COUNT( * ) ) * 77, 79 + 30 + COALESCE ( - - COUNT( * ), 37 + - 53 ), COUNT( * ) ) - + 56
----
3486

skipif mysql # not compatible
query I rowsort label-8608
SELECT - + COALESCE ( - CASE - 80 WHEN 1 THEN NULL WHEN - CAST ( NULL AS REAL ) + + 91 * - 58 THEN + + 10 + - 19 - + 28 / - + 92 ELSE NULL END, - COALESCE ( 46, + 81 * 25 * 41 / + 18 ) * + ( + COUNT ( * ) ) * 77, 79 + 30 + COALESCE ( - - COUNT ( * ), 37 + - 53 ), COUNT ( * ) ) - + 56
----
3486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8609
SELECT - ( + CAST( - 83 AS SIGNED ) ) * COALESCE ( 92, + + 20 + - 73 * + 59 + - - NULLIF ( - - 81, - - ( 16 ) ), - 47 * 36 * 35 + + - 2 - - 93 ) AS col1
----
7636

skipif mysql # not compatible
query I rowsort label-8609
SELECT - ( + CAST ( - 83 AS INTEGER ) ) * COALESCE ( 92, + + 20 + - 73 * + 59 + - - NULLIF ( - - 81, - - ( 16 ) ), - 47 * 36 * 35 + + - 2 - - 93 ) AS col1
----
7636

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT - - 47 + + ( - + 83 ) + + CASE - 34 WHEN SUM( - + 70 ) * + 31 THEN NULLIF ( + + 69, - 31 ) WHEN - 63 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT - - 47 + + ( - + 83 ) + + CASE - 34 WHEN SUM ( - + 70 ) * + 31 THEN NULLIF ( + + 69, - 31 ) WHEN - 63 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8611
SELECT ALL - COUNT( * ) - + 40 * 10 + - 7 - COUNT( * ) AS col2, - 53
----
-409
-53

skipif mysql # not compatible
query II rowsort label-8611
SELECT ALL - COUNT ( * ) - + 40 * 10 + - 7 - COUNT ( * ) AS col2, - 53
----
-409
-53

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8613
SELECT - + ( + + CASE - + 47 WHEN - + COUNT( * ) * + 82 THEN + CASE - + ( AVG ( + 3 ) ) WHEN + 82 THEN - COUNT( * ) WHEN CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + CAST( NULL AS DECIMAL ) + - COUNT( * ) THEN - + 73 - 57 DIV + CAST( + CASE + - ( - 58 ) WHEN - - COUNT( * ) THEN + - ( - + 71 ) WHEN - + 81 * 65 + - 32 THEN NULL ELSE NULL END AS SIGNED ) ELSE NULL END - 3 WHEN 49 THEN NULL ELSE 3 END ) DIV - 33 + + ( - 44 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-8613
SELECT - + ( + + CASE - + 47 WHEN - + COUNT ( * ) * + 82 THEN + CASE - + ( AVG ( + 3 ) ) WHEN + 82 THEN - COUNT ( * ) WHEN CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + CAST ( NULL AS REAL ) + - COUNT ( * ) THEN - + 73 - 57 / + CAST ( + CASE + - ( - 58 ) WHEN - - COUNT ( * ) THEN + - ( - + 71 ) WHEN - + 81 * 65 + - 32 THEN NULL ELSE NULL END AS INTEGER ) ELSE NULL END - 3 WHEN 49 THEN NULL ELSE 3 END ) / - 33 + + ( - 44 ) AS col1
----
-44

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

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

query I rowsort
SELECT - 79 + 0 col0
----
-79

query I rowsort
SELECT ALL ( + 85 ) * + 74
----
6290

onlyif mysql # aggregate syntax: 
query II rowsort label-8617
SELECT DISTINCT + COALESCE ( + - COALESCE ( - 92, - + 48 + + + 77 + - + 57 * 16 ), + 74 * 41 * + 32 + COUNT( * ) + + 21, + - COUNT( * ) * + + 37 + - 18 ), + 73 AS col0
----
92
73

skipif mysql # not compatible
query II rowsort label-8617
SELECT DISTINCT + COALESCE ( + - COALESCE ( - 92, - + 48 + + + 77 + - + 57 * 16 ), + 74 * 41 * + 32 + COUNT ( * ) + + 21, + - COUNT ( * ) * + + 37 + - 18 ), + 73 AS col0
----
92
73

query I rowsort
SELECT 46 * - - CASE WHEN ( NULL ) NOT IN ( - + 34, + 96 * - 16, - - 71 ) THEN NULL ELSE - 50 END + 21 AS col0
----
-2279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8619
SELECT DISTINCT 58 DIV - COUNT( * ) + - ( ( + + 61 ) )
----
-119

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT 58 / - COUNT ( * ) + - ( ( + + 61 ) )
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT ALL + + SUM( DISTINCT + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL + + SUM ( DISTINCT + 70 )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8621
SELECT 90 col1, SUM( DISTINCT 1 )
----
90
1

skipif mysql # not compatible
query II rowsort label-8621
SELECT 90 col1, SUM ( DISTINCT 1 )
----
90
1

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

query II rowsort
SELECT + 85 AS col0, 53 AS col0
----
85
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8624
SELECT ALL + COALESCE ( - ( + - 42 ), + 93 * 54 * - 45 + - 19, + COALESCE ( + 60, - 33 * - 80, COUNT( * ) + + 57 - - + ( + 11 ) * + 97 + - + 29 + NULLIF ( 71, 94 + + 87 ) * + + CAST( - 38 AS SIGNED ) ) * - 67 * MAX( - - 95 ) )
----
42

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL + COALESCE ( - ( + - 42 ), + 93 * 54 * - 45 + - 19, + COALESCE ( + 60, - 33 * - 80, COUNT ( * ) + + 57 - - + ( + 11 ) * + 97 + - + 29 + NULLIF ( 71, 94 + + 87 ) * + + CAST ( - 38 AS INTEGER ) ) * - 67 * MAX ( - - 95 ) )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT - SUM( - 85 ) * - 97 AS col1
----
-8245

skipif mysql # not compatible
query I rowsort label-8625
SELECT - SUM ( - 85 ) * - 97 AS col1
----
-8245

query II rowsort
SELECT ALL 67 * - 97 AS col1, 62
----
-6499
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8627
SELECT NULLIF ( - - CASE + 95 WHEN 13 THEN - 11 - ( 20 ) + 5 END, + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8627
SELECT NULLIF ( - - CASE + 95 WHEN 13 THEN - 11 - ( 20 ) + 5 END, + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT ALL 33 * + 68 + - SUM( DISTINCT - 95 ) AS col2
----
2339

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL 33 * + 68 + - SUM ( DISTINCT - 95 ) AS col2
----
2339

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT - COUNT( * ) - - + ( + - 34 ) + - 33 + - 20
----
-88

skipif mysql # not compatible
query I rowsort label-8629
SELECT - COUNT ( * ) - - + ( + - 34 ) + - 33 + - 20
----
-88

query I rowsort
SELECT - 95 + 45 + 80
----
30

query I rowsort
SELECT NULLIF ( + 28, 47 ) AS col2
----
28

query I rowsort
SELECT ALL - 56 * + 89 * + 15 * + 10 AS col2
----
-747600

query I rowsort
SELECT ALL + 41 * + 16 - - 79 col2
----
735

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT 66 * COALESCE ( 74, - + 63, - COUNT( * ) ) - - - 54 + - COUNT( * ) + - - 80 AS col1
----
4909

skipif mysql # not compatible
query I rowsort label-8634
SELECT 66 * COALESCE ( 74, - + 63, - COUNT ( * ) ) - - - 54 + - COUNT ( * ) + - - 80 AS col1
----
4909

query I rowsort
SELECT - NULLIF ( 60, 74 ) AS col2
----
-60

query I rowsort
SELECT + 41 - 81 AS col1
----
-40

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

skipif mysql # not compatible
query I rowsort label-8637
SELECT SUM ( ( + 59 ) )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT - SUM( ALL 51 ) * - + 78
----
3978

skipif mysql # not compatible
query I rowsort label-8638
SELECT - SUM ( ALL 51 ) * - + 78
----
3978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8639
SELECT - COALESCE ( - - 28, + COUNT( 19 ) * + - 77 * + CAST( NULL AS SIGNED ), + MAX( DISTINCT 67 ), - 19 )
----
-28

skipif mysql # not compatible
query I rowsort label-8639
SELECT - COALESCE ( - - 28, + COUNT ( 19 ) * + - 77 * + CAST ( NULL AS INTEGER ), + MAX ( DISTINCT 67 ), - 19 )
----
-28

query II rowsort
SELECT 23 + 98 * - 27 * - 71 AS col2, + 56 AS col1
----
187889
56

query I rowsort
SELECT DISTINCT 40 - - 83
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8642
SELECT - CAST( 96 AS SIGNED ) col1
----
-96

skipif mysql # not compatible
query I rowsort label-8642
SELECT - CAST ( 96 AS INTEGER ) col1
----
-96

query II rowsort
SELECT ALL 81, 53 * + 25 AS col1
----
81
1325

query I rowsort
SELECT ALL - 2 * 1 AS col0
----
-2

query I rowsort
SELECT - + NULLIF ( + + 9, + 94 ) AS col2
----
-9

query I rowsort
SELECT COALESCE ( 16, + 62 + - - 41, 44 * 93 ) AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8647
SELECT ALL 24 * + 29 * 75 / - CAST( NULL AS SIGNED ) * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL 24 * + 29 * 75 / - CAST ( NULL AS INTEGER ) * 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT - MIN( DISTINCT - - 69 ) * - + 13
----
897

skipif mysql # not compatible
query I rowsort label-8648
SELECT - MIN ( DISTINCT - - 69 ) * - + 13
----
897

onlyif mysql # aggregate syntax: 
query II rowsort label-8649
SELECT ALL - MIN( DISTINCT 76 ) + COUNT( ALL + ( 16 ) ) + + - 78 + + - SUM( ALL 57 ) * 87 * + 96 + - 49, 14 AS col2
----
-476266
14

skipif mysql # not compatible
query II rowsort label-8649
SELECT ALL - MIN ( DISTINCT 76 ) + COUNT ( ALL + ( 16 ) ) + + - 78 + + - SUM ( ALL 57 ) * 87 * + 96 + - 49, 14 AS col2
----
-476266
14

query II rowsort
SELECT - - 72 AS col2, 98 AS col2
----
72
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8651
SELECT ALL + 86 + - CAST( COUNT( * ) AS SIGNED ) * 50 * + - 47 + - COUNT( * ) * + 40 col2
----
2396

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL + 86 + - CAST ( COUNT ( * ) AS INTEGER ) * 50 * + - 47 + - COUNT ( * ) * + 40 col2
----
2396

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT - - COALESCE ( - 75, - 38 + + 27, + 12 ) * - + 3 + COUNT( * ) + 70 + - 84
----
212

skipif mysql # not compatible
query I rowsort label-8652
SELECT - - COALESCE ( - 75, - 38 + + 27, + 12 ) * - + 3 + COUNT ( * ) + 70 + - 84
----
212

query I rowsort
SELECT - CASE 1 WHEN - 85 THEN + + 28 END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8654
SELECT ALL + CASE COUNT( * ) WHEN + - COUNT( * ) THEN - CAST( - 60 AS SIGNED ) ELSE CAST( NULL AS SIGNED ) + + + 31 END / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL + CASE COUNT ( * ) WHEN + - COUNT ( * ) THEN - CAST ( - 60 AS INTEGER ) ELSE CAST ( NULL AS INTEGER ) + + + 31 END / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8655
SELECT 6 / - - CAST( NULL AS DECIMAL ) + 66 * + 60, 93 col1
----
NULL
93

skipif mysql # not compatible
query II rowsort label-8655
SELECT 6 / - - CAST ( NULL AS REAL ) + 66 * + 60, 93 col1
----
NULL
93

onlyif mysql # aggregate syntax: 
query II rowsort label-8656
SELECT ALL 83 + - ( 81 ) * + ( - - COALESCE ( - 75, - 99 ) ) AS col1, COUNT( * ) * + ( - 46 ) AS col2
----
6158
-46

skipif mysql # not compatible
query II rowsort label-8656
SELECT ALL 83 + - ( 81 ) * + ( - - COALESCE ( - 75, - 99 ) ) AS col1, COUNT ( * ) * + ( - 46 ) AS col2
----
6158
-46

query I rowsort
SELECT ALL + 25 + + - ( + + 88 ) * + 49 * + + 3 - + ( + ( + 58 ) )
----
-12969

onlyif mysql # aggregate syntax: 
query II rowsort label-8658
SELECT + - 13 col0, + COUNT( * )
----
-13
1

skipif mysql # not compatible
query II rowsort label-8658
SELECT + - 13 col0, + COUNT ( * )
----
-13
1

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

query I rowsort
SELECT 84 + - 95
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT ALL - NULLIF ( COALESCE ( + 48, ( - 32 ) ), COUNT( * ) ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL - NULLIF ( COALESCE ( + 48, ( - 32 ) ), COUNT ( * ) ) AS col2
----
-48

query II rowsort
SELECT 0 - - 70 col0, + 70 AS col2
----
70
70

onlyif mysql # aggregate syntax: 
query III rowsort label-8663
SELECT ALL - ( + 57 ) AS col0, 63 * + MAX( ALL + 1 ), - 9 AS col1
----
-57
63
-9

skipif mysql # not compatible
query III rowsort label-8663
SELECT ALL - ( + 57 ) AS col0, 63 * + MAX ( ALL + 1 ), - 9 AS col1
----
-57
63
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT CAST( 73 AS SIGNED ) * - + 35 + 78 AS col1
----
-2477

skipif mysql # not compatible
query I rowsort label-8664
SELECT CAST ( 73 AS INTEGER ) * - + 35 + 78 AS col1
----
-2477

query I rowsort
SELECT 33 * + 55 - 41 + - 92
----
1682

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT 84 + - - ( SUM( 43 ) ) + + CASE + - 24 WHEN - ( + MIN( ALL 29 ) ) + + 13 THEN - + 34 * + COALESCE ( 46, + 85 + - + MIN( DISTINCT - - 18 ) / + COUNT( DISTINCT 44 ) ) * 37 + - - MIN( 58 ) + + ( - + NULLIF ( 91, - NULLIF ( - 43, - - 44 ) ) ) END + 3 / ( - 50 ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8666
SELECT 84 + - - ( SUM ( 43 ) ) + + CASE + - 24 WHEN - ( + MIN ( ALL 29 ) ) + + 13 THEN - + 34 * + COALESCE ( 46, + 85 + - + MIN ( DISTINCT - - 18 ) / + COUNT ( DISTINCT 44 ) ) * 37 + - - MIN ( 58 ) + + ( - + NULLIF ( 91, - NULLIF ( - 43, - - 44 ) ) ) END + 3 / ( - 50 ) * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT DISTINCT 36 - - 70 + COUNT( * )
----
107

skipif mysql # not compatible
query I rowsort label-8667
SELECT DISTINCT 36 - - 70 + COUNT ( * )
----
107

query I rowsort
SELECT 70 * 1 + - 95 * - + 54 - + 9
----
5191

query I rowsort
SELECT DISTINCT + 80 * 69 AS col1
----
5520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8670
SELECT ALL + 71 * - ( - + CASE + 35 WHEN + 35 + 86 + - - MAX( + 78 ) * + 3 + + + AVG ( ALL + 1 ) THEN CAST( NULL AS SIGNED ) * 54 WHEN 94 THEN NULL ELSE NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL + 71 * - ( - + CASE + 35 WHEN + 35 + 86 + - - MAX ( + 78 ) * + 3 + + + AVG ( ALL + 1 ) THEN CAST ( NULL AS INTEGER ) * 54 WHEN 94 THEN NULL ELSE NULL END ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8671
SELECT 90 DIV - 87
----
-1

skipif mysql # not compatible
query I rowsort label-8671
SELECT 90 / - 87
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8672
SELECT COUNT( * ) * 14 AS col1, 4 + + COUNT( * )
----
14
5

skipif mysql # not compatible
query II rowsort label-8672
SELECT COUNT ( * ) * 14 AS col1, 4 + + COUNT ( * )
----
14
5

query I rowsort
SELECT + 72 + + ( + 98 ) AS col0
----
170

onlyif mysql # DIV for integer division: 
query I rowsort label-8674
SELECT - 12 DIV - 14
----
0

skipif mysql # not compatible
query I rowsort label-8674
SELECT - 12 / - 14
----
0

query I rowsort
SELECT 87 * - 15 * + + 25
----
-32625

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT COUNT( * ) + - COALESCE ( + ( + + 90 ), + - COUNT( * ) ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-8676
SELECT COUNT ( * ) + - COALESCE ( + ( + + 90 ), + - COUNT ( * ) ) AS col2
----
-89

query I rowsort
SELECT + 61 + - 17 AS col1
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8678
SELECT ALL + + 16 + 27, NULLIF ( + 14, - - 67 + 86 + + MAX( - - 46 ) + + 5 * 29 + + 36 ) - - COUNT( * ) * + - 65 AS col2
----
43
-51

skipif mysql # not compatible
query II rowsort label-8678
SELECT ALL + + 16 + 27, NULLIF ( + 14, - - 67 + 86 + + MAX ( - - 46 ) + + 5 * 29 + + 36 ) - - COUNT ( * ) * + - 65 AS col2
----
43
-51

query I rowsort
SELECT ( + 84 ) + + - 64 AS col1
----
20

query II rowsort
SELECT - 14 + - 70 AS col0, - 83 AS col0
----
-84
-83

query I rowsort
SELECT 86 + - 30 AS col2
----
56

query II rowsort
SELECT + ( - 82 ) col1, NULLIF ( ( - 10 ), - + 41 * - 73 )
----
-82
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT ALL + 40 * MIN( ALL - 61 ) AS col1
----
-2440

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL + 40 * MIN ( ALL - 61 ) AS col1
----
-2440

query I rowsort
SELECT 89 * 21 AS col1
----
1869

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT - 97 + 54 - - + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-8685
SELECT - 97 + 54 - - + COUNT ( * )
----
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8686
SELECT DISTINCT - 7 + ( + 18 ) / + 67 * + - CAST( NULL AS DECIMAL ) - + 56 + + 31 * + COALESCE ( 87, - 34 * - 82 ) - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT - 7 + ( + 18 ) / + 67 * + - CAST ( NULL AS REAL ) - + 56 + + 31 * + COALESCE ( 87, - 34 * - 82 ) - 60 AS col0
----
NULL

query I rowsort
SELECT ALL 81 + 17 + + 41 - + 77
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT MIN( + - 67 ) + ( COUNT( ALL - 61 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-8688
SELECT MIN ( + - 67 ) + ( COUNT ( ALL - 61 ) )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-8689
SELECT DISTINCT ( 79 ) AS col0, + CASE + NULLIF ( + COUNT( DISTINCT 92 ), 91 * MAX( ALL 37 ) + - + MIN( DISTINCT 75 ) ) WHEN MAX( - 46 ) THEN NULL WHEN + 11 THEN + 21 * + 25 + - 12 + + + 64 END + + + 43 / - + MIN( ALL 52 )
----
79
NULL

skipif mysql # not compatible
query II rowsort label-8689
SELECT DISTINCT ( 79 ) AS col0, + CASE + NULLIF ( + COUNT ( DISTINCT 92 ), 91 * MAX ( ALL 37 ) + - + MIN ( DISTINCT 75 ) ) WHEN MAX ( - 46 ) THEN NULL WHEN + 11 THEN + 21 * + 25 + - 12 + + + 64 END + + + 43 / - + MIN ( ALL 52 )
----
79
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT DISTINCT 3 * COUNT( * ) * 40 AS col0
----
120

skipif mysql # not compatible
query I rowsort label-8691
SELECT DISTINCT 3 * COUNT ( * ) * 40 AS col0
----
120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT MIN( DISTINCT 49 ) * - ( + 0 ) * 14
----
0

skipif mysql # not compatible
query I rowsort label-8693
SELECT MIN ( DISTINCT 49 ) * - ( + 0 ) * 14
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8694
SELECT MAX( ALL CAST( 73 AS SIGNED ) )
----
73

skipif mysql # not compatible
query I rowsort label-8694
SELECT MAX ( ALL CAST ( 73 AS INTEGER ) )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8695
SELECT 65 * COUNT( * ) + 96 + - 61 + - + 1 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8695
SELECT 65 * COUNT ( * ) + 96 + - 61 + - + 1 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 10 + + 46
----
56

query I rowsort
SELECT ALL + 3 * 80 - + 62 * - 18 col1
----
1356

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT COUNT( DISTINCT - - 97 ) * + 84
----
84

skipif mysql # not compatible
query I rowsort label-8698
SELECT COUNT ( DISTINCT - - 97 ) * + 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT DISTINCT 89 * - - COUNT( * ) * ( - 16 )
----
-1424

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT 89 * - - COUNT ( * ) * ( - 16 )
----
-1424

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT MIN( DISTINCT 97 ) * - 2
----
-194

skipif mysql # not compatible
query I rowsort label-8700
SELECT MIN ( DISTINCT 97 ) * - 2
----
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT - 59 * COUNT( DISTINCT + + 96 )
----
-59

skipif mysql # not compatible
query I rowsort label-8701
SELECT - 59 * COUNT ( DISTINCT + + 96 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT ALL COUNT( 55 ) * 54 + 43 + - - COUNT( * ) - + 59 * 28
----
-1554

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL COUNT ( 55 ) * 54 + 43 + - - COUNT ( * ) - + 59 * 28
----
-1554

query I rowsort
SELECT 3 * + 7 - - 33 AS col0
----
54

query II rowsort
SELECT ALL - 12, 47 AS col2
----
-12
47

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

skipif mysql # not compatible
query I rowsort label-8705
SELECT - - AVG ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT 16 * - - 14 - - ( + 52 )
----
276

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8708
SELECT - - COUNT( * ) DIV - MIN( - 24 ), 5 AS col2
----
0
5

skipif mysql # not compatible
query II rowsort label-8708
SELECT - - COUNT ( * ) / - MIN ( - 24 ), 5 AS col2
----
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT ALL + 19 + - MIN( DISTINCT - - ( + 50 ) ) * ( + 9 )
----
-431

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL + 19 + - MIN ( DISTINCT - - ( + 50 ) ) * ( + 9 )
----
-431

query I rowsort
SELECT + 85 * - 83
----
-7055

onlyif mysql # aggregate syntax: 
query II rowsort label-8711
SELECT - COUNT( * ) col0, 21 AS col0
----
-1
21

skipif mysql # not compatible
query II rowsort label-8711
SELECT - COUNT ( * ) col0, 21 AS col0
----
-1
21

query II rowsort
SELECT - 78, + 46 * + 31 AS col1
----
-78
1426

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

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

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

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

query I rowsort
SELECT ALL - 70 * 30
----
-2100

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

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

query I rowsort
SELECT ALL + ( + 53 ) + 32 * 15 + + 89 AS col0
----
622

query I rowsort
SELECT ALL - 20 + 68 AS col2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8719
SELECT - + COUNT( 34 ) DIV + 74 * + COUNT( * ) * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8719
SELECT - + COUNT ( 34 ) / + 74 * + COUNT ( * ) * + COUNT ( * )
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8721
SELECT DISTINCT COUNT( * ) AS col1, 64 AS col2
----
1
64

skipif mysql # not compatible
query II rowsort label-8721
SELECT DISTINCT COUNT ( * ) AS col1, 64 AS col2
----
1
64

onlyif mysql # aggregate syntax: 
query III rowsort label-8722
SELECT ALL + 18 + - ( + COUNT( * ) ) + + 73 - COUNT( * ) * - 90 * - + COUNT( * ) * 28 AS col2, 68, + + 26 * - 60 * + 87 col0
----
-2430
68
-135720

skipif mysql # not compatible
query III rowsort label-8722
SELECT ALL + 18 + - ( + COUNT ( * ) ) + + 73 - COUNT ( * ) * - 90 * - + COUNT ( * ) * 28 AS col2, 68, + + 26 * - 60 * + 87 col0
----
-2430
68
-135720

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT - 1 - SUM( + - 69 )
----
68

skipif mysql # not compatible
query I rowsort label-8723
SELECT - 1 - SUM ( + - 69 )
----
68

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

skipif mysql # not compatible
query I rowsort label-8724
SELECT - MAX ( + ( - - 65 ) )
----
-65

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

query I rowsort
SELECT - 44 + + - 88 AS col1
----
-132

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

query I rowsort
SELECT + 26 * 51 * - 27
----
-35802

query I rowsort
SELECT - 96 + + 15 + 54 + + 59 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT + NULLIF ( 98, + CASE - 83 WHEN - 73 * + 8 + - 34 THEN NULL WHEN + 82 + + MAX( DISTINCT - 63 ) * - + 81 * + + COUNT( * ) THEN 25 WHEN + COUNT( * ) + + + 94 - 88 THEN NULL END ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-8730
SELECT + NULLIF ( 98, + CASE - 83 WHEN - 73 * + 8 + - 34 THEN NULL WHEN + 82 + + MAX ( DISTINCT - 63 ) * - + 81 * + + COUNT ( * ) THEN 25 WHEN + COUNT ( * ) + + + 94 - 88 THEN NULL END ) AS col1
----
98

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

query I rowsort
SELECT ( ( 57 ) )
----
57

query I rowsort
SELECT ALL + 97 * + 11 AS col2
----
1067

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( + 27, + + 69 )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8736
SELECT - 54 DIV 31 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8736
SELECT - 54 / 31 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT + 19 + 19 + + + 89 * COUNT( * ) AS col0
----
127

skipif mysql # not compatible
query I rowsort label-8737
SELECT + 19 + 19 + + + 89 * COUNT ( * ) AS col0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT - COALESCE ( SUM( DISTINCT + 52 ), + - 3 ) + 32 * COUNT( * ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-8738
SELECT - COALESCE ( SUM ( DISTINCT + 52 ), + - 3 ) + 32 * COUNT ( * ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT CASE - 1 WHEN - 78 * 97 THEN NULL ELSE + COUNT( ALL + 14 ) * COUNT( * ) + NULLIF ( - 74, + 67 ) + - 87 END
----
-160

skipif mysql # not compatible
query I rowsort label-8739
SELECT CASE - 1 WHEN - 78 * 97 THEN NULL ELSE + COUNT ( ALL + 14 ) * COUNT ( * ) + NULLIF ( - 74, + 67 ) + - 87 END
----
-160

query I rowsort
SELECT 7 * 95 * + 0 + + 78 + 30 + + 85 AS col1
----
193

query I rowsort
SELECT + 12 - - 95 AS col2
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-8742
SELECT ALL 18 DIV 43 DIV - + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL 18 / 43 / - + 67 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8743
SELECT + 24 DIV + 96 * - - 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8743
SELECT + 24 / + 96 * - - 84 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT + 83 + COUNT( + - 59 ) + 22
----
106

skipif mysql # not compatible
query I rowsort label-8744
SELECT + 83 + COUNT ( + - 59 ) + 22
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8745
SELECT CASE + MAX( ALL + + 45 ) WHEN + - 26 + + SUM( - CAST( NULL AS SIGNED ) ) + - ( - 76 ) * - 51 / 23 THEN NULL ELSE + 72 END
----
72

skipif mysql # not compatible
query I rowsort label-8745
SELECT CASE + MAX ( ALL + + 45 ) WHEN + - 26 + + SUM ( - CAST ( NULL AS INTEGER ) ) + - ( - 76 ) * - 51 / 23 THEN NULL ELSE + 72 END
----
72

query I rowsort
SELECT DISTINCT - + ( 11 ) * - 15 * - ( 80 ) + + + 11 * + 58 AS col1
----
-12562

query II rowsort
SELECT ALL + 34 * 20 + 79 * - 29 AS col1, 30 * - 30 * 47
----
-1611
-42300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8748
SELECT + 16 * 62 AS col0, 90 + - 6 + - CASE - + 43 WHEN - MAX( DISTINCT + CAST( - + 73 AS SIGNED ) ) THEN NULL ELSE + 56 * + 7 END + + COALESCE ( 5, + COUNT( * ) ) AS col1
----
992
-303

skipif mysql # not compatible
query II rowsort label-8748
SELECT + 16 * 62 AS col0, 90 + - 6 + - CASE - + 43 WHEN - MAX ( DISTINCT + CAST ( - + 73 AS INTEGER ) ) THEN NULL ELSE + 56 * + 7 END + + COALESCE ( 5, + COUNT ( * ) ) AS col1
----
992
-303

query II rowsort
SELECT ALL 13 * - - 55 AS col2, - 42 AS col0
----
715
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-8750
SELECT ALL COUNT( 51 ) AS col1, 66 * + 74 AS col0
----
1
4884

skipif mysql # not compatible
query II rowsort label-8750
SELECT ALL COUNT ( 51 ) AS col1, 66 * + 74 AS col0
----
1
4884

query I rowsort
SELECT + + 93 + + + 59
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8752
SELECT ALL + 82 + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL + 82 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT ALL - + 49 + + COALESCE ( - 99, 9 ) + + 20 - - ( + COUNT( * ) ) AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL - + 49 + + COALESCE ( - 99, 9 ) + + 20 - - ( + COUNT ( * ) ) AS col0
----
-127

query II rowsort
SELECT + 19 + - 60, - 83 + 39 AS col0
----
-41
-44

query I rowsort
SELECT - 32 + - 58 - + 19 AS col0
----
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8756
SELECT - - 69 * - + 25 * + + COUNT( * ) + - ( - 54 ) * 15 DIV 24 + + MAX( ALL - - NULLIF ( - + 19, + - 34 ) )
----
-1711

skipif mysql # not compatible
query I rowsort label-8756
SELECT - - 69 * - + 25 * + + COUNT ( * ) + - ( - 54 ) * 15 / 24 + + MAX ( ALL - - NULLIF ( - + 19, + - 34 ) )
----
-1711

query I rowsort
SELECT - ( + - 8 ) + - 19
----
-11

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8759
SELECT - 59 + + - 72 * 80 + - 49 DIV - 2
----
-5795

skipif mysql # not compatible
query I rowsort label-8759
SELECT - 59 + + - 72 * 80 + - 49 / - 2
----
-5795

query I rowsort
SELECT DISTINCT - 14 - - 52 + - 76 * - + 99 col0
----
7562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8761
SELECT DISTINCT - NULLIF ( - ( + - CAST( NULL AS SIGNED ) ), + NULLIF ( - 68, ( - NULLIF ( + + 94, - + 8 * 30 + - - 67 * + 30 ) ) ) * - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT - NULLIF ( - ( + - CAST ( NULL AS INTEGER ) ), + NULLIF ( - 68, ( - NULLIF ( + + 94, - + 8 * 30 + - - 67 * + 30 ) ) ) * - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT - 26 + + COUNT( COALESCE ( + 70, - - 2 ) ) col0
----
-25

skipif mysql # not compatible
query I rowsort label-8762
SELECT - 26 + + COUNT ( COALESCE ( + 70, - - 2 ) ) col0
----
-25

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8765
SELECT 11 AS col1, COUNT( * ) * + - COUNT( * ) * 70 * COUNT( * )
----
11
-70

skipif mysql # not compatible
query II rowsort label-8765
SELECT 11 AS col1, COUNT ( * ) * + - COUNT ( * ) * 70 * COUNT ( * )
----
11
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8766
SELECT DISTINCT - 29 DIV - COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT - 29 / - COUNT ( * ) AS col1
----
29

query I rowsort
SELECT - 66 + - - 32 AS col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8768
SELECT ALL COUNT( * ) DIV - CAST( + - 25 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8768
SELECT ALL COUNT ( * ) / - CAST ( + - 25 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8769
SELECT 10 * + MAX( - 28 ) AS col1, 59 AS col2
----
-280
59

skipif mysql # not compatible
query II rowsort label-8769
SELECT 10 * + MAX ( - 28 ) AS col1, 59 AS col2
----
-280
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8770
SELECT ALL - 39 DIV + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL - 39 / + 72 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8771
SELECT 16 DIV + + 39
----
0

skipif mysql # not compatible
query I rowsort label-8771
SELECT 16 / + + 39
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8772
SELECT 26 AS col2, - 76 * + 90 - ( COUNT( DISTINCT + COALESCE ( - 99, - 29 * + CAST( + + 22 AS SIGNED ) ) ) )
----
26
-6841

skipif mysql # not compatible
query II rowsort label-8772
SELECT 26 AS col2, - 76 * + 90 - ( COUNT ( DISTINCT + COALESCE ( - 99, - 29 * + CAST ( + + 22 AS INTEGER ) ) ) )
----
26
-6841

query I rowsort
SELECT 9 * - 57 AS col1
----
-513

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8774
SELECT 44 + - + 78 / + - CASE + 52 WHEN - 52 + 37 THEN NULL ELSE + COUNT( * ) END * + SUM( DISTINCT 58 ) * - CASE + 51 WHEN + + 59 THEN - 74 + + CAST( NULL AS SIGNED ) ELSE NULL END + + - CASE - 74 WHEN COUNT( * ) * COUNT( + 47 ) + + + NULLIF ( 26, - COUNT( * ) ) THEN NULL WHEN COUNT( ALL - ( 49 ) ) * 97 THEN 0 WHEN - AVG ( ALL - ( - 52 ) ) + - 47 / 12 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT 44 + - + 78 / + - CASE + 52 WHEN - 52 + 37 THEN NULL ELSE + COUNT ( * ) END * + SUM ( DISTINCT 58 ) * - CASE + 51 WHEN + + 59 THEN - 74 + + CAST ( NULL AS INTEGER ) ELSE NULL END + + - CASE - 74 WHEN COUNT ( * ) * COUNT ( + 47 ) + + + NULLIF ( 26, - COUNT ( * ) ) THEN NULL WHEN COUNT ( ALL - ( 49 ) ) * 97 THEN 0 WHEN - AVG ( ALL - ( - 52 ) ) + - 47 / 12 THEN NULL ELSE NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT 29 * + 22 AS col1
----
638

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT ALL ( 32 ) + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL ( 32 ) + + COUNT ( * )
----
33

query I rowsort
SELECT DISTINCT + 94 + + + 85 AS col0
----
179

query I rowsort
SELECT + 93 * 67 - - 0 + 50
----
6281

query I rowsort
SELECT ALL + - ( + ( - 26 ) ) + + 89 AS col0
----
115

query I rowsort
SELECT - 26 * - - 38 * NULLIF ( - - 61, + 50 / - + 85 * - 93 + + + 26 * + + 24 ) - + 39 + + 50 AS col0
----
-60257

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

query I rowsort
SELECT 64 + 55 AS col1
----
119

query II rowsort
SELECT 90, 10 AS col2
----
90
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8785
SELECT + 5 * + 43 + - - 36 * + 85 * - + 36 * + 78 + - NULLIF ( 91, - 5 + NULLIF ( - - CASE + - COUNT( * ) WHEN + 97 THEN + 38 END, 56 ) * - + 5 + + 16 * - COUNT( - - CAST( NULL AS SIGNED ) ) ) + - 26 * + 38
----
-8593344

skipif mysql # not compatible
query I rowsort label-8785
SELECT + 5 * + 43 + - - 36 * + 85 * - + 36 * + 78 + - NULLIF ( 91, - 5 + NULLIF ( - - CASE + - COUNT ( * ) WHEN + 97 THEN + 38 END, 56 ) * - + 5 + + 16 * - COUNT ( - - CAST ( NULL AS INTEGER ) ) ) + - 26 * + 38
----
-8593344

query I rowsort
SELECT ALL - 78 - + + 51
----
-129

query I rowsort
SELECT DISTINCT - 20 * - + ( + + 65 ) * + 51 AS col1
----
66300

query II rowsort
SELECT ALL - 20 AS col1, + 53 + - - 72 - - 74 * 35 AS col1
----
-20
2715

query I rowsort
SELECT ALL 4 - - 73 AS col2
----
77

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

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

query I rowsort
SELECT - COALESCE ( - 45, NULLIF ( + 12, - 52 ) )
----
45

query II rowsort
SELECT DISTINCT + 15, 38 AS col2
----
15
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT + COUNT( - - 42 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8793
SELECT + COUNT ( - - 42 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8794
SELECT ALL 78, - 15 - 34 DIV - COUNT( * ) AS col2
----
78
19

skipif mysql # not compatible
query II rowsort label-8794
SELECT ALL 78, - 15 - 34 / - COUNT ( * ) AS col2
----
78
19

onlyif mysql # DIV for integer division: 
query II rowsort label-8795
SELECT 88 col2, - 52 DIV 5 AS col0
----
88
-10

skipif mysql # not compatible
query II rowsort label-8795
SELECT 88 col2, - 52 / 5 AS col0
----
88
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT ALL - COUNT( * ) * 41 * - 4
----
164

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL - COUNT ( * ) * 41 * - 4
----
164

query II rowsort
SELECT ALL 36, ( + + 33 ) AS col0
----
36
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT 19 * - NULLIF ( + 37, + 9 * 70 + - 6 + + - CAST( + 75 AS SIGNED ) ) AS col1
----
-703

skipif mysql # not compatible
query I rowsort label-8798
SELECT 19 * - NULLIF ( + 37, + 9 * 70 + - 6 + + - CAST ( + 75 AS INTEGER ) ) AS col1
----
-703

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT MAX( + + 34 ) + CASE + 64 WHEN - + 76 + - COALESCE ( + 53, AVG ( - 25 ) ) - ( - + 92 ) / - + 16 * - ( - 49 ) + + 23 - 88 THEN - 17 + + 25 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8799
SELECT MAX ( + + 34 ) + CASE + 64 WHEN - + 76 + - COALESCE ( + 53, AVG ( - 25 ) ) - ( - + 92 ) / - + 16 * - ( - 49 ) + + 23 - 88 THEN - 17 + + 25 END col1
----
NULL

query I rowsort
SELECT 25 - + + 49
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT ALL + 80 + + 82 * + COUNT( * )
----
162

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL + 80 + + 82 * + COUNT ( * )
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-8802
SELECT 44 DIV - CASE 50 WHEN 95 + + - 50 THEN - - 84 WHEN 21 - + 38 THEN NULL ELSE + + 69 END + - 63 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-8802
SELECT 44 / - CASE 50 WHEN 95 + + - 50 THEN - - 84 WHEN 21 - + 38 THEN NULL ELSE + + 69 END + - 63 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT COALESCE ( + - 12, + - 73, + 88 + + ( - 9 ) ) + + + 56 + - COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8803
SELECT COALESCE ( + - 12, + - 73, + 88 + + ( - 9 ) ) + + + 56 + - COUNT ( * ) AS col0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8804
SELECT 17 * - - 72 DIV + 24 + - COUNT( * ) * + - 11 col1
----
62

skipif mysql # not compatible
query I rowsort label-8804
SELECT 17 * - - 72 / + 24 + - COUNT ( * ) * + - 11 col1
----
62

query I rowsort
SELECT ALL 65 + + 6 col0
----
71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT ALL + COUNT( * ) + - - 90 - - MIN( - - 36 ) AS col2
----
127

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL + COUNT ( * ) + - - 90 - - MIN ( - - 36 ) AS col2
----
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8808
SELECT DISTINCT + - COUNT( * ) DIV + - 7 * - 25 * + 58 DIV - ( + + COALESCE ( 6, - COALESCE ( - 72, + ( 15 ) ) * + 15 + + - 22 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT + - COUNT ( * ) / + - 7 * - 25 * + 58 / - ( + + COALESCE ( 6, - COALESCE ( - 72, + ( 15 ) ) * + 15 + + - 22 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT ( - 20 ) - COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-8809
SELECT ( - 20 ) - COUNT ( * )
----
-21

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

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

query I rowsort
SELECT 79 + + 69 * - 14
----
-887

onlyif mysql # DIV for integer division: 
query I rowsort label-8812
SELECT ALL + 82 - + + ( + + 66 ) + - 76 + - + 74 * - 66 - - - ( + 92 ) + + 90 DIV - 69
----
4731

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL + 82 - + + ( + + 66 ) + - 76 + - + 74 * - 66 - - - ( + 92 ) + + 90 / - 69
----
4731

query I rowsort
SELECT DISTINCT - + 32 * - - 74 + - 68
----
-2436

query II rowsort
SELECT ALL - + 31 AS col2, - 23 AS col2
----
-31
-23

query II rowsort
SELECT + 30 AS col2, - 17 AS col0
----
30
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8816
SELECT DISTINCT - 80 * - - CAST( NULL AS SIGNED ) + + 4 + - - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT - 80 * - - CAST ( NULL AS INTEGER ) + + 4 + - - 99
----
NULL

query II rowsort
SELECT ALL - 45 AS col2, 97
----
-45
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8818
SELECT + CASE + - CAST( NULL AS SIGNED ) WHEN - + AVG ( + 15 ) THEN + ( MIN( ALL CAST( - ( - 90 ) AS SIGNED ) ) ) WHEN + 60 THEN NULL WHEN + NULLIF ( + 72, - CAST( NULL AS SIGNED ) - - CASE + NULLIF ( - ( + NULLIF ( + COUNT( ALL - + 95 ), + 60 * 48 ) ), 25 ) WHEN - AVG ( - - 70 ) THEN NULL ELSE - 89 END ) THEN NULL ELSE - COUNT( * ) END, 36 + 9 + - - 29 col1
----
-1
74

skipif mysql # not compatible
query II rowsort label-8818
SELECT + CASE + - CAST ( NULL AS INTEGER ) WHEN - + AVG ( + 15 ) THEN + ( MIN ( ALL CAST ( - ( - 90 ) AS INTEGER ) ) ) WHEN + 60 THEN NULL WHEN + NULLIF ( + 72, - CAST ( NULL AS INTEGER ) - - CASE + NULLIF ( - ( + NULLIF ( + COUNT ( ALL - + 95 ), + 60 * 48 ) ), 25 ) WHEN - AVG ( - - 70 ) THEN NULL ELSE - 89 END ) THEN NULL ELSE - COUNT ( * ) END, 36 + 9 + - - 29 col1
----
-1
74

query I rowsort
SELECT 35 * - + 93 * + - 20 AS col0
----
65100

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

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

query I rowsort
SELECT 66 + - - 1 + 76 col1
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8822
SELECT - 81 + + + ( + ( + 50 ) ) + 3 * - 29 + + - MIN( ALL + 16 ) + - 28 * CAST( + 14 AS SIGNED )
----
-526

skipif mysql # not compatible
query I rowsort label-8822
SELECT - 81 + + + ( + ( + 50 ) ) + 3 * - 29 + + - MIN ( ALL + 16 ) + - 28 * CAST ( + 14 AS INTEGER )
----
-526

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8823
SELECT - 15 AS col2, CAST( + - 49 AS SIGNED ) * - - 64 * - 99 AS col2
----
-15
310464

skipif mysql # not compatible
query II rowsort label-8823
SELECT - 15 AS col2, CAST ( + - 49 AS INTEGER ) * - - 64 * - 99 AS col2
----
-15
310464

onlyif mysql # DIV for integer division: 
query I rowsort label-8824
SELECT + 55 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-8824
SELECT + 55 / - 90
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8825
SELECT 58 + + 57 DIV + + 37
----
59

skipif mysql # not compatible
query I rowsort label-8825
SELECT 58 + + 57 / + + 37
----
59

query I rowsort
SELECT + 43 + 23 AS col0
----
66

query I rowsort
SELECT ALL NULLIF ( + 14, 64 ) + + 68 * + 87 * + 62 AS col1
----
366806

query I rowsort
SELECT + 7 * - 36 AS col0
----
-252

query I rowsort
SELECT + 13 + + - 49 + + 57 AS col1
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-8830
SELECT ALL COUNT( * ) + + + 27 col0, NULLIF ( - 23, - MIN( DISTINCT - - 28 ) ) AS col2
----
28
-23

skipif mysql # not compatible
query II rowsort label-8830
SELECT ALL COUNT ( * ) + + + 27 col0, NULLIF ( - 23, - MIN ( DISTINCT - - 28 ) ) AS col2
----
28
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8831
SELECT ALL 95 + + CAST( + + NULLIF ( CAST( NULL AS SIGNED ), - 82 ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL 95 + + CAST ( + + NULLIF ( CAST ( NULL AS INTEGER ), - 82 ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT ALL MIN( 13 ) + 50 + + - COUNT( * ) + + 89 AS col2
----
151

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL MIN ( 13 ) + 50 + + - COUNT ( * ) + + 89 AS col2
----
151

query I rowsort
SELECT DISTINCT 24 + + 60
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT ALL - COALESCE ( + 70, + 66 + - 79 ) + COUNT( * ) * - 92
----
-162

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL - COALESCE ( + 70, + 66 + - 79 ) + COUNT ( * ) * - 92
----
-162

onlyif mysql # aggregate syntax: 
query II rowsort label-8835
SELECT ( - COUNT( * ) ) AS col1, MAX( + + 82 ) * - 61 + + - 29 + + 33 AS col0
----
-1
-4998

skipif mysql # not compatible
query II rowsort label-8835
SELECT ( - COUNT ( * ) ) AS col1, MAX ( + + 82 ) * - 61 + + - 29 + + 33 AS col0
----
-1
-4998

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

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

query I rowsort
SELECT COALESCE ( + + 96, + ( + - 92 ) )
----
96

query II rowsort
SELECT DISTINCT ( - 20 ) * - + 75 * 84 - + 0 col0, 16 * + + ( - - 48 ) AS col2
----
126000
768

query I rowsort
SELECT + NULLIF ( - ( + 9 ), 44 * + 94 ) AS col0
----
-9

query II rowsort
SELECT - 10 * + 35 AS col0, 38 AS col2
----
-350
38

query I rowsort
SELECT ALL + ( - 58 ) * 10
----
-580

query I rowsort
SELECT + 49 * - 72
----
-3528

query I rowsort
SELECT DISTINCT + 75 * 90 AS col1
----
6750

query I rowsort
SELECT DISTINCT - 56 * + 3 - 26 * + - 72
----
1704

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

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL + ( COUNT ( + - 21 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8846
SELECT + + 70 DIV - + 29
----
-2

skipif mysql # not compatible
query I rowsort label-8846
SELECT + + 70 / - + 29
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT - COUNT( * ) * + + 65 - - + COUNT( * ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-8847
SELECT - COUNT ( * ) * + + 65 - - + COUNT ( * ) col0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8848
SELECT + + CAST( NULL AS SIGNED ) * + 52 + - 87, 84 AS col0
----
NULL
84

skipif mysql # not compatible
query II rowsort label-8848
SELECT + + CAST ( NULL AS INTEGER ) * + 52 + - 87, 84 AS col0
----
NULL
84

query I rowsort
SELECT ALL + 35 * - 41 - - 83 + - + 20 * - 3
----
-1292

onlyif mysql # aggregate syntax: 
query II rowsort label-8850
SELECT - CASE - + COUNT( * ) WHEN 47 + + 63 - - 50 * + AVG ( 31 ) * ( + 47 ) THEN - - 26 END * 55 * 54 AS col2, - 34 * + + 75
----
NULL
-2550

skipif mysql # not compatible
query II rowsort label-8850
SELECT - CASE - + COUNT ( * ) WHEN 47 + + 63 - - 50 * + AVG ( 31 ) * ( + 47 ) THEN - - 26 END * 55 * 54 AS col2, - 34 * + + 75
----
NULL
-2550

query I rowsort
SELECT - 26 - - 25 * + ( - + 62 ) AS col0
----
-1576

query I rowsort
SELECT DISTINCT ( - 50 ) AS col0
----
-50

query II rowsort
SELECT - 30 AS col2, + 24
----
-30
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8854
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + COUNT( * ) + - 19 - + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-8854
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + COUNT ( * ) + - 19 - + 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8855
SELECT - CASE - 25 WHEN + NULLIF ( - - 78, 31 ) + - COUNT( * ) THEN - MAX( 35 ) + - 8 + + 84 + ( - CAST( - + 16 AS SIGNED ) ) * + CAST( - 90 AS SIGNED ) + + 64 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8855
SELECT - CASE - 25 WHEN + NULLIF ( - - 78, 31 ) + - COUNT ( * ) THEN - MAX ( 35 ) + - 8 + + 84 + ( - CAST ( - + 16 AS INTEGER ) ) * + CAST ( - 90 AS INTEGER ) + + 64 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 8 * - - 44
----
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT + COUNT( * ) * + 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-8857
SELECT + COUNT ( * ) * + 82 AS col2
----
82

query II rowsort
SELECT ALL 41 AS col0, + 26 AS col1
----
41
26

query I rowsort
SELECT - 1 - + 60
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8860
SELECT ALL - COALESCE ( + - CAST( NULL AS DECIMAL ), + SUM( ALL + 21 ) * 32 * + NULLIF ( SUM( DISTINCT - + 97 ), + CAST( + ( COUNT( * ) ) AS SIGNED ) ) + - 48 ) / + + CAST( NULL AS SIGNED ) / - 64 / + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL - COALESCE ( + - CAST ( NULL AS REAL ), + SUM ( ALL + 21 ) * 32 * + NULLIF ( SUM ( DISTINCT - + 97 ), + CAST ( + ( COUNT ( * ) ) AS INTEGER ) ) + - 48 ) / + + CAST ( NULL AS INTEGER ) / - 64 / + 41
----
NULL

query I rowsort
SELECT - CASE + + 43 WHEN + 0 THEN 92 * + - 3 END col1
----
NULL

query I rowsort
SELECT ALL 65 * + 63 col2
----
4095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8863
SELECT DISTINCT CAST( + 19 AS SIGNED ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT CAST ( + 19 AS INTEGER ) AS col2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8864
SELECT - 42 + + 29 - + - 49 + - - 89 DIV 11 + + 49 + + - 3
----
90

skipif mysql # not compatible
query I rowsort label-8864
SELECT - 42 + + 29 - + - 49 + - - 89 / 11 + + 49 + + - 3
----
90

query I rowsort
SELECT - 18 + COALESCE ( 6, 82 * 71, 57 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-8866
SELECT + COUNT( * ) - COUNT( * ) + - 65 + - 33 AS col1, + COUNT( + - 12 )
----
-98
1

skipif mysql # not compatible
query II rowsort label-8866
SELECT + COUNT ( * ) - COUNT ( * ) + - 65 + - 33 AS col1, + COUNT ( + - 12 )
----
-98
1

query I rowsort
SELECT + 94 + + + 21
----
115

query I rowsort
SELECT ALL + 46 * + 52 AS col1
----
2392

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT + + 35 * + 9 * + COUNT( * )
----
315

skipif mysql # not compatible
query I rowsort label-8869
SELECT + + 35 * + 9 * + COUNT ( * )
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT + - CASE 38 WHEN - 22 THEN NULL WHEN 96 THEN - COUNT( - + 44 ) END + + 31 * ( - - 52 ) * - - 16 + 0 * + COUNT( * ) * - COUNT( * ) + - + 63 + + - 40 + 72 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT + - CASE 38 WHEN - 22 THEN NULL WHEN 96 THEN - COUNT ( - + 44 ) END + + 31 * ( - - 52 ) * - - 16 + 0 * + COUNT ( * ) * - COUNT ( * ) + - + 63 + + - 40 + 72 col1
----
NULL

query I rowsort
SELECT ALL + + COALESCE ( + - COALESCE ( 72, + + 7 ), + 81 * - 94 ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT + ( - 67 ) * COUNT( * ) + 74
----
7

skipif mysql # not compatible
query I rowsort label-8872
SELECT + ( - 67 ) * COUNT ( * ) + 74
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-8873
SELECT DISTINCT + - 53 col0, 32 * MIN( + - ( + 51 ) )
----
-53
-1632

skipif mysql # not compatible
query II rowsort label-8873
SELECT DISTINCT + - 53 col0, 32 * MIN ( + - ( + 51 ) )
----
-53
-1632

onlyif mysql # aggregate syntax: 
query II rowsort label-8874
SELECT + 43, - COUNT( * ) AS col1
----
43
-1

skipif mysql # not compatible
query II rowsort label-8874
SELECT + 43, - COUNT ( * ) AS col1
----
43
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8875
SELECT DISTINCT + CAST( - + 84 AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT + CAST ( - + 84 AS INTEGER )
----
-84

query I rowsort
SELECT + - 8 * + 77
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT - 24 + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-8877
SELECT - 24 + COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT + - CASE - 0 WHEN + 79 / - COUNT( * ) * + 77 THEN NULL WHEN - 65 + + 64 * + COUNT( * ) * + 64 - + 34 + - + 68 * 70 * 57 + - 59 * 5 THEN + 0 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT + - CASE - 0 WHEN + 79 / - COUNT ( * ) * + 77 THEN NULL WHEN - 65 + + 64 * + COUNT ( * ) * + 64 - + 34 + - + 68 * 70 * 57 + - 59 * 5 THEN + 0 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT ALL + ( - ( + - MIN( DISTINCT - 43 ) ) )
----
-43

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL + ( - ( + - MIN ( DISTINCT - 43 ) ) )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8880
SELECT ALL + 70 * - CAST( NULL AS SIGNED ) / + CAST( - 17 AS SIGNED ) / COALESCE ( + 9, - - 35 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL + 70 * - CAST ( NULL AS INTEGER ) / + CAST ( - 17 AS INTEGER ) / COALESCE ( + 9, - - 35 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8881
SELECT + ( COALESCE ( + + 41, + + 16 ) ) AS col1, - 4 DIV + 74 - 50 + 87 * COUNT( * ) * - 31 AS col0
----
41
-2747

skipif mysql # not compatible
query II rowsort label-8881
SELECT + ( COALESCE ( + + 41, + + 16 ) ) AS col1, - 4 / + 74 - 50 + 87 * COUNT ( * ) * - 31 AS col0
----
41
-2747

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT ALL + 86 * + COUNT( * ) + - 5 col0
----
81

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL + 86 * + COUNT ( * ) + - 5 col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8883
SELECT ALL - CASE + CASE - - COUNT( * ) WHEN + CAST( - 56 AS SIGNED ) + SUM( ALL + + 84 ) THEN - 75 WHEN - 60 THEN + MAX( ALL 80 ) + - - 15 END WHEN - + CASE - 12 WHEN COUNT( * ) THEN - + 85 WHEN + 3 THEN NULL WHEN - - 92 THEN - 46 ELSE CASE - 5 WHEN + 44 THEN + + CAST( + 22 AS SIGNED ) - + 41 * - COUNT( * ) END * - - 69 + - - COALESCE ( + - 69, + 31 ) END THEN NULL WHEN - ( 96 ) * - 22 + + 74 THEN + ( 78 ) END * - 52 + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL - CASE + CASE - - COUNT ( * ) WHEN + CAST ( - 56 AS INTEGER ) + SUM ( ALL + + 84 ) THEN - 75 WHEN - 60 THEN + MAX ( ALL 80 ) + - - 15 END WHEN - + CASE - 12 WHEN COUNT ( * ) THEN - + 85 WHEN + 3 THEN NULL WHEN - - 92 THEN - 46 ELSE CASE - 5 WHEN + 44 THEN + + CAST ( + 22 AS INTEGER ) - + 41 * - COUNT ( * ) END * - - 69 + - - COALESCE ( + - 69, + 31 ) END THEN NULL WHEN - ( 96 ) * - 22 + + 74 THEN + ( 78 ) END * - 52 + + 89
----
NULL

query II rowsort
SELECT + 66 col1, 2 AS col2
----
66
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8885
SELECT ALL + 78 * MIN( 15 ) AS col1, + 83
----
1170
83

skipif mysql # not compatible
query II rowsort label-8885
SELECT ALL + 78 * MIN ( 15 ) AS col1, + 83
----
1170
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8886
SELECT DISTINCT - COUNT( * ) + - CAST( NULL AS SIGNED ) - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) - 50
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8887
SELECT 64 DIV COUNT( ALL - 55 ) + + + 13 * + + 16 + + - 9 * 57 + 52, NULLIF ( - CASE - CASE - 20 WHEN + - ( + 22 ) THEN NULL WHEN - NULLIF ( CASE + 77 WHEN + MIN( DISTINCT - + 54 ) THEN - 5 + - - 51 * 27 DIV - 79 * - 21 * + 38 WHEN - + COUNT( DISTINCT 45 ) * + - 48 * + - 0 + COALESCE ( - CAST( NULL AS SIGNED ), 58, + COUNT( * ) * 17 + ( + COALESCE ( - 55, 94 ) + NULLIF ( + 48, + 43 + + 78 ) ) ) * + 2 THEN NULL END, COUNT( * ) ) * - COALESCE ( 78 DIV + 66, 57 ) THEN NULL WHEN CASE - 82 WHEN 68 THEN + MIN( 66 ) + + 47 END + - 16 THEN NULL ELSE - 60 END WHEN - 40 THEN - 15 END, 41 DIV - 99 ) AS col1
----
-189
NULL

skipif mysql # not compatible
query II rowsort label-8887
SELECT 64 / COUNT ( ALL - 55 ) + + + 13 * + + 16 + + - 9 * 57 + 52, NULLIF ( - CASE - CASE - 20 WHEN + - ( + 22 ) THEN NULL WHEN - NULLIF ( CASE + 77 WHEN + MIN ( DISTINCT - + 54 ) THEN - 5 + - - 51 * 27 / - 79 * - 21 * + 38 WHEN - + COUNT ( DISTINCT 45 ) * + - 48 * + - 0 + COALESCE ( - CAST ( NULL AS INTEGER ), 58, + COUNT ( * ) * 17 + ( + COALESCE ( - 55, 94 ) + NULLIF ( + 48, + 43 + + 78 ) ) ) * + 2 THEN NULL END, COUNT ( * ) ) * - COALESCE ( 78 / + 66, 57 ) THEN NULL WHEN CASE - 82 WHEN 68 THEN + MIN ( 66 ) + + 47 END + - 16 THEN NULL ELSE - 60 END WHEN - 40 THEN - 15 END, 41 / - 99 ) AS col1
----
-189
NULL

query I rowsort
SELECT ALL 82 + + - 73
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT 93 * + COUNT( + ( - 60 ) )
----
93

skipif mysql # not compatible
query I rowsort label-8889
SELECT 93 * + COUNT ( + ( - 60 ) )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT COUNT( * ) + + - 25 + - COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-8890
SELECT COUNT ( * ) + + - 25 + - COUNT ( * )
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8891
SELECT 35 DIV 60 DIV - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8891
SELECT 35 / 60 / - 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT COUNT( * ) + + COUNT( * ) + + COUNT( * ) + 1 * + 78 * + - 2
----
-153

skipif mysql # not compatible
query I rowsort label-8892
SELECT COUNT ( * ) + + COUNT ( * ) + + COUNT ( * ) + 1 * + 78 * + - 2
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT ALL MIN( ALL 90 ) + - - ( - 1 )
----
89

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL MIN ( ALL 90 ) + - - ( - 1 )
----
89

query I rowsort
SELECT ALL - ( + 94 ) + + - 14
----
-108

query I rowsort
SELECT 25 + 3 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT DISTINCT - CASE 28 WHEN + + COALESCE ( + COUNT( * ), + COUNT( * ) * 41 ) * - 65 * - ( - - 71 ) THEN + 12 END + - 67 / - 99 / - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-8896
SELECT DISTINCT - CASE 28 WHEN + + COALESCE ( + COUNT ( * ), + COUNT ( * ) * 41 ) * - 65 * - ( - - 71 ) THEN + 12 END + - 67 / - 99 / - 77
----
NULL

query I rowsort
SELECT 35 + + 80 AS col2
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8898
SELECT ALL + COUNT( * ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT 18 * - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-8899
SELECT 18 * - COUNT ( * )
----
-18

query I rowsort
SELECT DISTINCT + ( - 5 ) - + 44
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT DISTINCT + COUNT( * ) - 31
----
-30

skipif mysql # not compatible
query I rowsort label-8901
SELECT DISTINCT + COUNT ( * ) - 31
----
-30

query I rowsort
SELECT DISTINCT + 36 - - 28
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8903
SELECT ALL - - 9 DIV + COUNT( * ) * COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL - - 9 / + COUNT ( * ) * COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT + 67 * + - 89 * + + COUNT( * ) + 11 + 32 AS col0
----
-5920

skipif mysql # not compatible
query I rowsort label-8904
SELECT + 67 * + - 89 * + + COUNT ( * ) + 11 + 32 AS col0
----
-5920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8905
SELECT - 88 DIV 77 * + + 11 * - 51 - 87 + - + COALESCE ( 56, - + ( COUNT( * ) ) DIV + - 86 )
----
418

skipif mysql # not compatible
query I rowsort label-8905
SELECT - 88 / 77 * + + 11 * - 51 - 87 + - + COALESCE ( 56, - + ( COUNT ( * ) ) / + - 86 )
----
418

query I rowsort
SELECT ( - 33 ) * + - 79
----
2607

query I rowsort
SELECT - 85 * - 26 * + 51 + + 0 + + 42 * + - 16
----
112038

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT + 34 / 54 * - - 45 * - - COUNT( * ) + + 1 - 93 / - + CASE - 94 WHEN - COUNT( * ) THEN + 0 * + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT + 34 / 54 * - - 45 * - - COUNT ( * ) + + 1 - 93 / - + CASE - 94 WHEN - COUNT ( * ) THEN + 0 * + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8909
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8909
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8910
SELECT 64 * 20 + + + MAX( 73 ) + + 80 * - ( - 30 ) * - + 29 * COUNT( * ) * - - CAST( ( 80 ) AS SIGNED ) AS col0, 25 - - 23 * - + 13 col1
----
-5566647
-274

skipif mysql # not compatible
query II rowsort label-8910
SELECT 64 * 20 + + + MAX ( 73 ) + + 80 * - ( - 30 ) * - + 29 * COUNT ( * ) * - - CAST ( ( 80 ) AS INTEGER ) AS col0, 25 - - 23 * - + 13 col1
----
-5566647
-274

query II rowsort
SELECT DISTINCT 86 + - ( - + 12 ) * - 36, 28 col0
----
-346
28

query I rowsort
SELECT ALL - 18 + + 99 + + 39 - - - 38 * + 24 AS col0
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT COUNT( * ) * + ( - + ( + 94 ) ) - + + 30 - 8 * + 96 * - 67 * 81 + + - 27 + 10 * + 5 AS col2
----
4167835

skipif mysql # not compatible
query I rowsort label-8913
SELECT COUNT ( * ) * + ( - + ( + 94 ) ) - + + 30 - 8 * + 96 * - 67 * 81 + + - 27 + 10 * + 5 AS col2
----
4167835

query I rowsort
SELECT DISTINCT + 49 + ( + 49 ) + + - 17 - 19
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8915
SELECT ALL - COALESCE ( - 11, COUNT( * ) * 80 DIV - 62 ) + 18 - MAX( ALL + + 24 ) DIV - 73 + - 68
----
-39

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL - COALESCE ( - 11, COUNT ( * ) * 80 / - 62 ) + 18 - MAX ( ALL + + 24 ) / - 73 + - 68
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT ALL MIN( - 37 ) + 95 col0
----
58

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL MIN ( - 37 ) + 95 col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8917
SELECT CASE 68 WHEN + 12 / - CAST( + 42 AS DECIMAL ) THEN - 74 * + 64 ELSE 30 END + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-8917
SELECT CASE 68 WHEN + 12 / - CAST ( + 42 AS REAL ) THEN - 74 * + 64 ELSE 30 END + COUNT ( * )
----
31

query I rowsort
SELECT 35 + + 55
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT 38 * - - COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-8919
SELECT 38 * - - COUNT ( * ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT DISTINCT - MAX( - 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT - MAX ( - 42 ) AS col0
----
42

query I rowsort
SELECT ALL 96 + 70 col1
----
166

query I rowsort
SELECT DISTINCT 8 * + 45
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT ALL - COUNT( ALL - 83 ) - 9 * COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-8923
SELECT ALL - COUNT ( ALL - 83 ) - 9 * COUNT ( * )
----
-10

query I rowsort
SELECT 38 + - ( + 0 ) AS col2
----
38

query II rowsort
SELECT ALL 96 AS col1, - 26
----
96
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8926
SELECT CAST( NULL AS SIGNED ) - 44 / - ( - 61 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8926
SELECT CAST ( NULL AS INTEGER ) - 44 / - ( - 61 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT - MAX( - + 45 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-8927
SELECT - MAX ( - + 45 ) AS col0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8928
SELECT 60 DIV 51
----
1

skipif mysql # not compatible
query I rowsort label-8928
SELECT 60 / 51
----
1

query II rowsort
SELECT - 7 AS col0, 89
----
-7
89

query I rowsort
SELECT 59 - 41
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT DISTINCT - - 6 * - - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT - - 6 * - - COUNT ( * )
----
6

query I rowsort
SELECT - + ( + 4 ) AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8933
SELECT 79 * + - MAX( DISTINCT CAST( NULL AS SIGNED ) ) * + - 91 * + - 33 + + 27 + + 50 + 97 + 39 * - 18, + NULLIF ( + - CASE - ( 70 ) WHEN + 61 * - 79 * + + 8 THEN NULL WHEN + 76 THEN NULL ELSE + COUNT( ALL 29 ) END, + 46 ) * - - 2 + 53 AS col1
----
NULL
51

skipif mysql # not compatible
query II rowsort label-8933
SELECT 79 * + - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * + - 91 * + - 33 + + 27 + + 50 + 97 + 39 * - 18, + NULLIF ( + - CASE - ( 70 ) WHEN + 61 * - 79 * + + 8 THEN NULL WHEN + 76 THEN NULL ELSE + COUNT ( ALL 29 ) END, + 46 ) * - - 2 + 53 AS col1
----
NULL
51

query I rowsort
SELECT + 56 * + 94
----
5264

query I rowsort
SELECT ALL - 63 * - - 49 AS col0
----
-3087

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT COUNT( * ) + + 97 + + 39 * 72 AS col2
----
2906

skipif mysql # not compatible
query I rowsort label-8936
SELECT COUNT ( * ) + + 97 + + 39 * 72 AS col2
----
2906

query II rowsort
SELECT + 71 col2, 53 AS col1
----
71
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT 99 - + ( + + 11 ) - + 11 * - + 27 * MIN( DISTINCT + + 30 ) + + 17 AS col0
----
9015

skipif mysql # not compatible
query I rowsort label-8938
SELECT 99 - + ( + + 11 ) - + 11 * - + 27 * MIN ( DISTINCT + + 30 ) + + 17 AS col0
----
9015

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT ALL - COUNT( * ) + - - 48
----
47

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL - COUNT ( * ) + - - 48
----
47

query I rowsort
SELECT + 22 + + + 24 + + 42 + COALESCE ( - 39, 13 ) + + + 84 AS col0
----
133

query I rowsort
SELECT ALL 68 * + - COALESCE ( 64, 3, - + 67, + 32 ) + - 78
----
-4430

query I rowsort
SELECT + 72 * - 20 + 97 - + - 39 AS col1
----
-1304

query I rowsort
SELECT ALL - 31 * + + 71 * + ( - + 58 )
----
127658

query I rowsort
SELECT - - 81 * + 21 AS col1
----
1701

query II rowsort
SELECT + 12, 91 * - ( - 8 ) AS col1
----
12
728

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT + + MAX( 2 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8946
SELECT + + MAX ( 2 ) AS col2
----
2

query II rowsort
SELECT 18 AS col2, + 57 AS col2
----
18
57

onlyif mysql # DIV for integer division: 
query I rowsort label-8948
SELECT - - NULLIF ( - 63, - + 39 ) DIV 78 + - 9 + 93 * + 60
----
5571

skipif mysql # not compatible
query I rowsort label-8948
SELECT - - NULLIF ( - 63, - + 39 ) / 78 + - 9 + 93 * + 60
----
5571

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8949
SELECT - ( + 11 ) * ( + 95 ) + CAST( 76 AS SIGNED ) * + + 95 AS col2
----
6175

skipif mysql # not compatible
query I rowsort label-8949
SELECT - ( + 11 ) * ( + 95 ) + CAST ( 76 AS INTEGER ) * + + 95 AS col2
----
6175

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT - 85 * CASE - 29 WHEN ( + COUNT( * ) ) + - ( - 77 ) THEN NULL ELSE + + 51 END AS col1
----
-4335

skipif mysql # not compatible
query I rowsort label-8950
SELECT - 85 * CASE - 29 WHEN ( + COUNT ( * ) ) + - ( - 77 ) THEN NULL ELSE + + 51 END AS col1
----
-4335

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT MAX( - - 19 )
----
19

skipif mysql # not compatible
query I rowsort label-8951
SELECT MAX ( - - 19 )
----
19

query II rowsort
SELECT ALL + 70 AS col2, - 46 AS col1
----
70
-46

query I rowsort
SELECT - 25 * + 0
----
0

query II rowsort
SELECT 49 * + 7 + 28 + 94 * + 74 + - - 23 AS col1, 23
----
7350
23

onlyif mysql # aggregate syntax: 
query II rowsort label-8955
SELECT COUNT( * ) AS col2, 55 AS col2
----
1
55

skipif mysql # not compatible
query II rowsort label-8955
SELECT COUNT ( * ) AS col2, 55 AS col2
----
1
55

query I rowsort
SELECT + 19 + - + 58 + + 10
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8957
SELECT + COUNT( ALL + 21 ) * AVG ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8957
SELECT + COUNT ( ALL + 21 ) * AVG ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL CASE + 29 WHEN + 39 * - + 31 THEN - 58 END * + + NULLIF ( - - 38, - - 5 ) AS col2
----
NULL

query I rowsort
SELECT + 95 + 12 + 24 col2
----
131

onlyif mysql # aggregate syntax: 
query II rowsort label-8960
SELECT + COUNT( * ) + - 33 AS col1, 44 col2
----
-32
44

skipif mysql # not compatible
query II rowsort label-8960
SELECT + COUNT ( * ) + - 33 AS col1, 44 col2
----
-32
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8961
SELECT ALL - COALESCE ( + COUNT( * ), 46 ) - - COALESCE ( - CASE - 43 WHEN 3 * + CAST( NULL AS SIGNED ) + + - 96 THEN NULL WHEN - - NULLIF ( 20, + 65 * + + 83 DIV + 14 ) * - COUNT( * ) THEN NULL ELSE - 10 END, + + 4 * + 68 DIV + - 66 + 84 + - COUNT( * ) * - COUNT( * ) + - 47 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-8961
SELECT ALL - COALESCE ( + COUNT ( * ), 46 ) - - COALESCE ( - CASE - 43 WHEN 3 * + CAST ( NULL AS INTEGER ) + + - 96 THEN NULL WHEN - - NULLIF ( 20, + 65 * + + 83 / + 14 ) * - COUNT ( * ) THEN NULL ELSE - 10 END, + + 4 * + 68 / + - 66 + 84 + - COUNT ( * ) * - COUNT ( * ) + - 47 ) AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8962
SELECT - NULLIF ( - + CAST( NULL AS DECIMAL ), + CAST( - ( - 8 ) AS SIGNED ) * 2 * - + MAX( DISTINCT 84 ) - + - 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8962
SELECT - NULLIF ( - + CAST ( NULL AS REAL ), + CAST ( - ( - 8 ) AS INTEGER ) * 2 * - + MAX ( DISTINCT 84 ) - + - 66 )
----
NULL

query II rowsort
SELECT ALL 6, 22 AS col1
----
6
22

query I rowsort
SELECT + 89 + - 87 AS col2
----
2

query II rowsort
SELECT DISTINCT 8 AS col2, + 96
----
8
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT ALL CASE - - 4 WHEN + 23 THEN NULL WHEN - 57 - 57 - - ( 24 ) THEN NULL WHEN COUNT( * ) THEN 59 + 69 END * - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8966
SELECT ALL CASE - - 4 WHEN + 23 THEN NULL WHEN - 57 - 57 - - ( 24 ) THEN NULL WHEN COUNT ( * ) THEN 59 + 69 END * - 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT DISTINCT MAX( ALL - + 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT MAX ( ALL - + 4 )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8968
SELECT DISTINCT 88 * ( + 69 ) / CASE + 28 WHEN + - 38 THEN - ( - CAST( NULL AS DECIMAL ) ) + CASE - 27 WHEN COUNT( * ) THEN 82 END ELSE NULL END - + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT 88 * ( + 69 ) / CASE + 28 WHEN + - 38 THEN - ( - CAST ( NULL AS REAL ) ) + CASE - 27 WHEN COUNT ( * ) THEN 82 END ELSE NULL END - + - 83
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8969
SELECT + COUNT( * ) DIV + 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8969
SELECT + COUNT ( * ) / + 60 AS col0
----
0

query II rowsort
SELECT - 99 col0, 6 * 55 AS col0
----
-99
330

query I rowsort
SELECT - - 23 * + 6 AS col0
----
138

query I rowsort
SELECT ALL + - 41 + 1 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT - 76 + + COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-8973
SELECT - 76 + + COUNT ( * )
----
-75

query I rowsort
SELECT DISTINCT ( 67 )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8975
SELECT ALL - - COUNT( * ) + + 1 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL - - COUNT ( * ) + + 1 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - + NULLIF ( 94, + + 49 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT ALL 3 + COUNT( * ) * + 59 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL 3 + COUNT ( * ) * + 59 AS col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8978
SELECT + 41 DIV + 90 - COUNT( * ) * + + 88 col0
----
-88

skipif mysql # not compatible
query I rowsort label-8978
SELECT + 41 / + 90 - COUNT ( * ) * + + 88 col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8979
SELECT ALL + - COALESCE ( + + 69, - 72 * - - CAST( NULL AS SIGNED ) + - 28 + + 91 * - - 70 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL + - COALESCE ( + + 69, - 72 * - - CAST ( NULL AS INTEGER ) + - 28 + + 91 * - - 70 ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT - 23 - - SUM( ALL 48 )
----
25

skipif mysql # not compatible
query I rowsort label-8980
SELECT - 23 - - SUM ( ALL 48 )
----
25

query I rowsort
SELECT - 92 * 22 * - 64 * - 61 * + - 87 AS col2
----
687447552

onlyif mysql # aggregate syntax: 
query II rowsort label-8982
SELECT DISTINCT + 21 AS col1, 70 + + - 52 * + MIN( ALL + 96 )
----
21
-4922

skipif mysql # not compatible
query II rowsort label-8982
SELECT DISTINCT + 21 AS col1, 70 + + - 52 * + MIN ( ALL + 96 )
----
21
-4922

onlyif mysql # DIV for integer division: 
query I rowsort label-8983
SELECT DISTINCT - - 94 DIV + ( - 69 ) - - 64 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT - - 94 / + ( - 69 ) - - 64 AS col2
----
63

query II rowsort
SELECT DISTINCT + 97 * + + 52 * - 68 - 53, - COALESCE ( 4, 76 ) AS col0
----
-343045
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8985
SELECT ALL + + COUNT( * ) DIV - 49 - + 40 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL + + COUNT ( * ) / - 49 - + 40 AS col1
----
-40

query I rowsort
SELECT - 61 * + 36 AS col0
----
-2196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8987
SELECT 62 DIV + COALESCE ( - 98, + - ( - MIN( ALL + CAST( NULL AS SIGNED ) ) ), - - 64 ) * MAX( DISTINCT - 95 ) - - 63 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-8987
SELECT 62 / + COALESCE ( - 98, + - ( - MIN ( ALL + CAST ( NULL AS INTEGER ) ) ), - - 64 ) * MAX ( DISTINCT - 95 ) - - 63 AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8988
SELECT 53 * - COUNT( * ) * + - 77 + + - NULLIF ( + + COUNT( * ), - COALESCE ( - 62, - 0 * - 3 * + 6 * + NULLIF ( + 79, + 24 ) + + - CAST( NULL AS SIGNED ) * + 72 + 3 ) ) AS col1
----
4080

skipif mysql # not compatible
query I rowsort label-8988
SELECT 53 * - COUNT ( * ) * + - 77 + + - NULLIF ( + + COUNT ( * ), - COALESCE ( - 62, - 0 * - 3 * + 6 * + NULLIF ( + 79, + 24 ) + + - CAST ( NULL AS INTEGER ) * + 72 + 3 ) ) AS col1
----
4080

query I rowsort
SELECT ( - - 28 )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8990
SELECT - 1 * - + CAST( - 62 AS SIGNED ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-8990
SELECT - 1 * - + CAST ( - 62 AS INTEGER ) AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8991
SELECT - 78 + - ( + ( CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8991
SELECT - 78 + - ( + ( CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8992
SELECT + ( - 31 ) / 45 * + - 91 + CAST( NULL AS SIGNED ) + 69 - + 95 * AVG ( DISTINCT + 42 ) - 75 - - COUNT( * ) * - ( - 6 ) * - - AVG ( + 95 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT + ( - 31 ) / 45 * + - 91 + CAST ( NULL AS INTEGER ) + 69 - + 95 * AVG ( DISTINCT + 42 ) - 75 - - COUNT ( * ) * - ( - 6 ) * - - AVG ( + 95 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT - COUNT( + + 69 ) * 83
----
-83

skipif mysql # not compatible
query I rowsort label-8993
SELECT - COUNT ( + + 69 ) * 83
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT + 56 * MAX( - - 41 ) + + 97
----
2393

skipif mysql # not compatible
query I rowsort label-8994
SELECT + 56 * MAX ( - - 41 ) + + 97
----
2393

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT ALL + SUM( ALL 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL + SUM ( ALL 30 ) AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8996
SELECT + COALESCE ( + 99, + 30, 5 DIV - 98 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-8996
SELECT + COALESCE ( + 99, + 30, 5 / - 98 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT + COUNT( * ) * + + 13 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-8997
SELECT + COUNT ( * ) * + + 13 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL 12 * + MIN( DISTINCT 38 ) + 65 + 35 col2
----
556

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL 12 * + MIN ( DISTINCT 38 ) + 65 + 35 col2
----
556

query I rowsort
SELECT - 29 - - 49 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT SUM( DISTINCT + 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9000
SELECT SUM ( DISTINCT + 38 ) AS col0
----
38

query I rowsort
SELECT ALL 89 * + 2 + ( - - 15 )
----
193

query I rowsort
SELECT ALL + 55 + + 80 * - 4 AS col1
----
-265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9003
SELECT + 13 - - 20 * SUM( ALL - 65 ) - + 75 + - + CAST( NULL AS SIGNED ) + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9003
SELECT + 13 - - 20 * SUM ( ALL - 65 ) - + 75 + - + CAST ( NULL AS INTEGER ) + 47 AS col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 86, + 3 )
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9005
SELECT COUNT( * ) DIV 60 * + + 50
----
0

skipif mysql # not compatible
query I rowsort label-9005
SELECT COUNT ( * ) / 60 * + + 50
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9006
SELECT ALL 10 + - CAST( 54 AS SIGNED ) col0
----
-44

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL 10 + - CAST ( 54 AS INTEGER ) col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT - ( - COUNT( * ) ) * 84
----
84

skipif mysql # not compatible
query I rowsort label-9007
SELECT - ( - COUNT ( * ) ) * 84
----
84

query I rowsort
SELECT - 93 + 3
----
-90

query II rowsort
SELECT 88 + 61 AS col2, + 33 AS col2
----
149
33

query I rowsort
SELECT - 77 - + 93 col1
----
-170

query I rowsort
SELECT ALL - 79 - - - 31 + - - 61 AS col2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9012
SELECT ALL + 10 DIV SUM( DISTINCT 44 ) + - - 24 - - 48 * - CAST( 40 AS SIGNED ) AS col2
----
-1896

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL + 10 / SUM ( DISTINCT 44 ) + - - 24 - - 48 * - CAST ( 40 AS INTEGER ) AS col2
----
-1896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9013
SELECT - + 47 * 11 + 23 DIV + MAX( - + 7 ) + - - 7
----
-513

skipif mysql # not compatible
query I rowsort label-9013
SELECT - + 47 * 11 + 23 / + MAX ( - + 7 ) + - - 7
----
-513

onlyif mysql # aggregate syntax: 
query II rowsort label-9014
SELECT DISTINCT ( + COUNT( * ) ) * - 4 AS col1, + 92 AS col0
----
-4
92

skipif mysql # not compatible
query II rowsort label-9014
SELECT DISTINCT ( + COUNT ( * ) ) * - 4 AS col1, + 92 AS col0
----
-4
92

query I rowsort
SELECT 47 + - 22 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT 54 * 28 * - ( - COUNT( ALL + ( - 31 ) ) )
----
1512

skipif mysql # not compatible
query I rowsort label-9016
SELECT 54 * 28 * - ( - COUNT ( ALL + ( - 31 ) ) )
----
1512

query I rowsort
SELECT ALL + 58 * + 43 AS col0
----
2494

query II rowsort
SELECT + 34, + 64 * 81 AS col0
----
34
5184

query II rowsort
SELECT 29, 32 AS col2
----
29
32

onlyif mysql # aggregate syntax: 
query II rowsort label-9020
SELECT + 37, ( + + COUNT( * ) ) AS col0
----
37
1

skipif mysql # not compatible
query II rowsort label-9020
SELECT + 37, ( + + COUNT ( * ) ) AS col0
----
37
1

query I rowsort
SELECT ALL - ( 91 ) AS col1
----
-91

query I rowsort
SELECT 44 * + ( + + ( + NULLIF ( 8, + 96 + + 83 ) ) ) * + + ( + 3 ) AS col0
----
1056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9023
SELECT ALL CAST( - + 9 AS SIGNED ) * - + COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL CAST ( - + 9 AS INTEGER ) * - + COUNT ( * ) AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9024
SELECT DISTINCT + 13 DIV - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9024
SELECT DISTINCT + 13 / - 93 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT ALL - 59 + - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL - 59 + - COUNT ( * )
----
-60

query I rowsort
SELECT 69 + 80
----
149

onlyif mysql # DIV for integer division: 
query II rowsort label-9027
SELECT + 55 AS col2, 21 DIV + 64
----
55
0

skipif mysql # not compatible
query II rowsort label-9027
SELECT + 55 AS col2, 21 / + 64
----
55
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9028
SELECT DISTINCT - 14 DIV + 24
----
0

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT - 14 / + 24
----
0

query II rowsort
SELECT + 58 * 49 + - 7, - ( + + 53 ) * 85 + + + 83 AS col1
----
2835
-4422

query II rowsort
SELECT 10, - 34 * + + 87 AS col2
----
10
-2958

query I rowsort
SELECT 23 * + - ( + 49 ) - + + 12 + 46
----
-1093

onlyif mysql # aggregate syntax: 
query II rowsort label-9032
SELECT 53 col2, + MIN( ALL 95 )
----
53
95

skipif mysql # not compatible
query II rowsort label-9032
SELECT 53 col2, + MIN ( ALL 95 )
----
53
95

query I rowsort
SELECT ALL + 84 + + - 16 * 22 col2
----
-268

query II rowsort
SELECT DISTINCT 57 AS col0, 68
----
57
68

query I rowsort
SELECT ALL - + 58 + - ( 78 )
----
-136

onlyif mysql # aggregate syntax: 
query II rowsort label-9036
SELECT - ( - CASE - + 83 WHEN - COUNT( * ) THEN - ( - COUNT( * ) ) END ) AS col0, COUNT( * ) * - 51 - - ( + 47 )
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-9036
SELECT - ( - CASE - + 83 WHEN - COUNT ( * ) THEN - ( - COUNT ( * ) ) END ) AS col0, COUNT ( * ) * - 51 - - ( + 47 )
----
NULL
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT ALL COUNT( * ) + - 26 + + - 93
----
-118

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL COUNT ( * ) + - 26 + + - 93
----
-118

query I rowsort
SELECT - 11 + 76
----
65

query I rowsort
SELECT ALL + + 45 + 67
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9040
SELECT - CAST( NULL AS SIGNED ) + + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9040
SELECT - CAST ( NULL AS INTEGER ) + + 21 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9041
SELECT + 78 * + + 46 * + 81 - 32 * - - 21 * + 86, 86 DIV - COALESCE ( + - 68, - CASE - CAST( NULL AS SIGNED ) WHEN 17 + + 25 * 83 THEN - 46 WHEN - 81 THEN NULL ELSE + 84 + - - SUM( ALL + ( 80 ) ) END * - - COUNT( * ) - - 20 + - + CAST( NULL AS SIGNED ) ) * + ( - - COUNT( * ) ) AS col2
----
232836
1

skipif mysql # not compatible
query II rowsort label-9041
SELECT + 78 * + + 46 * + 81 - 32 * - - 21 * + 86, 86 / - COALESCE ( + - 68, - CASE - CAST ( NULL AS INTEGER ) WHEN 17 + + 25 * 83 THEN - 46 WHEN - 81 THEN NULL ELSE + 84 + - - SUM ( ALL + ( 80 ) ) END * - - COUNT ( * ) - - 20 + - + CAST ( NULL AS INTEGER ) ) * + ( - - COUNT ( * ) ) AS col2
----
232836
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT - + MIN( - 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-9042
SELECT - + MIN ( - 10 ) AS col0
----
10

query II rowsort
SELECT + ( + ( - 22 ) ), 47 AS col2
----
-22
47

query I rowsort
SELECT + 61 + - 19 * 47 * 86 AS col2
----
-76737

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9045
SELECT ALL + COUNT( * ) - - 3 + - 79 * NULLIF ( 26, 41 ) DIV - CAST( CASE - 11 WHEN - - COALESCE ( + 47, - - CAST( NULL AS SIGNED ) * - 93 * - 87 * - 48 + + + 43 + - - COUNT( * ) * 18 ) * + 36 THEN - NULLIF ( - 4, - - NULLIF ( 92, + - COALESCE ( - NULLIF ( + 67, + + 95 * + - 83 ), + - 56 ) ) ) ELSE - 74 END AS SIGNED ) + 40
----
17

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL + COUNT ( * ) - - 3 + - 79 * NULLIF ( 26, 41 ) / - CAST ( CASE - 11 WHEN - - COALESCE ( + 47, - - CAST ( NULL AS INTEGER ) * - 93 * - 87 * - 48 + + + 43 + - - COUNT ( * ) * 18 ) * + 36 THEN - NULLIF ( - 4, - - NULLIF ( 92, + - COALESCE ( - NULLIF ( + 67, + + 95 * + - 83 ), + - 56 ) ) ) ELSE - 74 END AS INTEGER ) + 40
----
17

query I rowsort
SELECT 33 * + 74
----
2442

query I rowsort
SELECT - NULLIF ( + 85, + 24 ) AS col2
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9048
SELECT ALL - 92 AS col0, - ( 51 ) - COUNT( * ) + - - 38 DIV 65 col2
----
-92
-52

skipif mysql # not compatible
query II rowsort label-9048
SELECT ALL - 92 AS col0, - ( 51 ) - COUNT ( * ) + - - 38 / 65 col2
----
-92
-52

query I rowsort
SELECT DISTINCT - 81 - - 17 + 28 AS col1
----
-36

query II rowsort
SELECT ALL 92 AS col2, + 55 * + 22
----
92
1210

onlyif mysql # aggregate syntax: 
query II rowsort label-9051
SELECT - 43, - COUNT( * ) AS col2
----
-43
-1

skipif mysql # not compatible
query II rowsort label-9051
SELECT - 43, - COUNT ( * ) AS col2
----
-43
-1

query II rowsort
SELECT 24 AS col2, + 84
----
24
84

query I rowsort
SELECT 47 * + 66
----
3102

onlyif mysql # DIV for integer division: 
query I rowsort label-9054
SELECT 54 DIV + 34
----
1

skipif mysql # not compatible
query I rowsort label-9054
SELECT 54 / + 34
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT COALESCE ( - 78, ( + 91 ) + - - 6 - + MAX( ALL + ( COALESCE ( 45, 64 * 34, 91 ) ) ) * 12 * 17 * - 55 ) - - 69 * + - 39
----
-2769

skipif mysql # not compatible
query I rowsort label-9055
SELECT COALESCE ( - 78, ( + 91 ) + - - 6 - + MAX ( ALL + ( COALESCE ( 45, 64 * 34, 91 ) ) ) * 12 * 17 * - 55 ) - - 69 * + - 39
----
-2769

onlyif mysql # aggregate syntax: 
query II rowsort label-9056
SELECT COUNT( 3 ) AS col0, + 43
----
1
43

skipif mysql # not compatible
query II rowsort label-9056
SELECT COUNT ( 3 ) AS col0, + 43
----
1
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT DISTINCT - 21 * 42 + - + COUNT( * ) col2
----
-883

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT - 21 * 42 + - + COUNT ( * ) col2
----
-883

onlyif mysql # DIV for integer division: 
query I rowsort label-9058
SELECT ALL 66 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL 66 / + 81
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9059
SELECT 44 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9059
SELECT 44 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT MAX( - ( - 31 ) ) - 63 col1
----
-32

skipif mysql # not compatible
query I rowsort label-9060
SELECT MAX ( - ( - 31 ) ) - 63 col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT + COALESCE ( + - 35, + + 37 * - 27 - - COUNT( * ) )
----
-35

skipif mysql # not compatible
query I rowsort label-9061
SELECT + COALESCE ( + - 35, + + 37 * - 27 - - COUNT ( * ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT 50 * + ( + 99 ) * COUNT( * ) + + + 34 AS col1
----
4984

skipif mysql # not compatible
query I rowsort label-9062
SELECT 50 * + ( + 99 ) * COUNT ( * ) + + + 34 AS col1
----
4984

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT + MIN( - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-9063
SELECT + MIN ( - 37 )
----
-37

query I rowsort
SELECT ALL 88 + - + 16
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9065
SELECT ALL - COALESCE ( - 83, - CAST( + 77 AS SIGNED ), - 21 ) AS col2, - 41
----
83
-41

skipif mysql # not compatible
query II rowsort label-9065
SELECT ALL - COALESCE ( - 83, - CAST ( + 77 AS INTEGER ), - 21 ) AS col2, - 41
----
83
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9066
SELECT DISTINCT - MIN( DISTINCT 95 ) + CAST( - 25 AS SIGNED ) - + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT - MIN ( DISTINCT 95 ) + CAST ( - 25 AS INTEGER ) - + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT DISTINCT + + ( - ( - COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9067
SELECT DISTINCT + + ( - ( - COUNT ( * ) ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9068
SELECT ALL - + 22 DIV 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL - + 22 / 38 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9069
SELECT - 96 DIV - + 67 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9069
SELECT - 96 / - + 67 AS col2
----
1

query I rowsort
SELECT + + 73 - + 65 AS col0
----
8

query I rowsort
SELECT + CASE + 25 WHEN + 2 THEN 86 WHEN + 54 THEN NULL WHEN - 61 * - - 1 THEN NULL END * 60 * 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9072
SELECT ALL - COUNT( * ) DIV 11 * COUNT( * ) * + 79
----
0

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL - COUNT ( * ) / 11 * COUNT ( * ) * + 79
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9073
SELECT - - 92 DIV - COUNT( * ) AS col2, 39 AS col2
----
-92
39

skipif mysql # not compatible
query II rowsort label-9073
SELECT - - 92 / - COUNT ( * ) AS col2, 39 AS col2
----
-92
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT - + 23 + + COUNT( * ) + - 39
----
-61

skipif mysql # not compatible
query I rowsort label-9074
SELECT - + 23 + + COUNT ( * ) + - 39
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT - ( ( + 96 ) ) * COUNT( * ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-9075
SELECT - ( ( + 96 ) ) * COUNT ( * ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT - - SUM( 60 ) * 57 AS col0
----
3420

skipif mysql # not compatible
query I rowsort label-9076
SELECT - - SUM ( 60 ) * 57 AS col0
----
3420

query I rowsort
SELECT ALL - 43 * + 76
----
-3268

query I rowsort
SELECT DISTINCT + ( + + CASE + 77 WHEN 39 THEN NULL WHEN + 9 THEN - - 92 END ) * 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT + - MAX( DISTINCT + 45 ) * - 8 col1
----
360

skipif mysql # not compatible
query I rowsort label-9079
SELECT + - MAX ( DISTINCT + 45 ) * - 8 col1
----
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9080
SELECT SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1, - 89 - - 66 * - 45 * + - 69 * - - 77 * + SUM( DISTINCT + 99 )
----
NULL
1562181301

skipif mysql # not compatible
query II rowsort label-9080
SELECT SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1, - 89 - - 66 * - 45 * + - 69 * - - 77 * + SUM ( DISTINCT + 99 )
----
NULL
1562181301

query I rowsort
SELECT ALL - NULLIF ( - 32, + 83 / 29 + 90 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-9082
SELECT - + ( + 24 ) + ( 82 ) AS col1, + MIN( + 40 ) AS col1
----
58
40

skipif mysql # not compatible
query II rowsort label-9082
SELECT - + ( + 24 ) + ( 82 ) AS col1, + MIN ( + 40 ) AS col1
----
58
40

query I rowsort
SELECT - 79 + 49
----
-30

query I rowsort
SELECT + 84 - + 4 + + - 9
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-9085
SELECT ALL 90 * COALESCE ( + - COUNT( * ), + - 48, 61 ), 72 AS col2
----
-90
72

skipif mysql # not compatible
query II rowsort label-9085
SELECT ALL 90 * COALESCE ( + - COUNT ( * ), + - 48, 61 ), 72 AS col2
----
-90
72

query I rowsort
SELECT - 96 * - 24
----
2304

query I rowsort
SELECT DISTINCT - 58 + + + 77 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT DISTINCT 25 * CASE - 64 WHEN - 15 THEN - 63 + + - 39 + + 10 * - 98 / 88 END * - + ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT 25 * CASE - 64 WHEN - 15 THEN - 63 + + - 39 + + 10 * - 98 / 88 END * - + ( COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT ALL - COALESCE ( - - 42, - 63, - COUNT( * ) * - 12 ) * 71 + - + 57 AS col0
----
-3039

skipif mysql # not compatible
query I rowsort label-9089
SELECT ALL - COALESCE ( - - 42, - 63, - COUNT ( * ) * - 12 ) * 71 + - + 57 AS col0
----
-3039

query I rowsort
SELECT + 44 * 94 + + 24 AS col0
----
4160

query I rowsort
SELECT DISTINCT 89 * 62
----
5518

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT ( + - COUNT( 4 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9092
SELECT ( + - COUNT ( 4 ) )
----
-1

query I rowsort
SELECT ALL 0 * + 57 + - 63
----
-63

query I rowsort
SELECT + 6 + + + 44 AS col2
----
50

query I rowsort
SELECT + 24 * - 34 * - - 75 + - 22 AS col2
----
-61222

onlyif mysql # aggregate syntax: 
query II rowsort label-9096
SELECT ALL + 49 col2, COUNT( * ) + - 61
----
49
-60

skipif mysql # not compatible
query II rowsort label-9096
SELECT ALL + 49 col2, COUNT ( * ) + - 61
----
49
-60

query I rowsort
SELECT + ( + - 95 ) * 66
----
-6270

query I rowsort
SELECT + - 13 + + - ( 14 )
----
-27

query I rowsort
SELECT + ( 19 ) col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT + MIN( DISTINCT + - 29 ) + - - 93 + + 89
----
153

skipif mysql # not compatible
query I rowsort label-9100
SELECT + MIN ( DISTINCT + - 29 ) + - - 93 + + 89
----
153

query I rowsort
SELECT DISTINCT + 30 * - 74 AS col1
----
-2220

query I rowsort
SELECT DISTINCT 47 * - 82 AS col0
----
-3854

query I rowsort
SELECT + 87 * 76
----
6612

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT ALL - MAX( ALL - + 17 )
----
17

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL - MAX ( ALL - + 17 )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9105
SELECT - + 86 + COUNT( ALL + 36 ) DIV 82
----
-86

skipif mysql # not compatible
query I rowsort label-9105
SELECT - + 86 + COUNT ( ALL + 36 ) / 82
----
-86

query I rowsort
SELECT DISTINCT + ( - - 71 ) AS col2
----
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9107
SELECT - - 11 + NULLIF ( + CAST( NULL AS DECIMAL ), 48 + + 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9107
SELECT - - 11 + NULLIF ( + CAST ( NULL AS REAL ), 48 + + 23 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT DISTINCT + MIN( - 39 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT + MIN ( - 39 ) AS col1
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9109
SELECT + + COUNT( * ) * 14 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-9109
SELECT + + COUNT ( * ) * 14 / - 51
----
0

query I rowsort
SELECT DISTINCT + 98 * + 70 AS col1
----
6860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9111
SELECT - CAST( - 23 AS SIGNED ) * + COALESCE ( + ( + 21 ), - - 29 ) - + + 37 * + 28 * - 18
----
19131

skipif mysql # not compatible
query I rowsort label-9111
SELECT - CAST ( - 23 AS INTEGER ) * + COALESCE ( + ( + 21 ), - - 29 ) - + + 37 * + 28 * - 18
----
19131

query I rowsort
SELECT ALL + 65 * + 49 * 87 * - + 96
----
-26601120

query I rowsort
SELECT ALL - 45 * 36 col2
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT ALL 61 + + + 41 - - + COALESCE ( + 54, - 49 ) + + - MAX( DISTINCT 13 ) + + 71
----
214

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL 61 + + + 41 - - + COALESCE ( + 54, - 49 ) + + - MAX ( DISTINCT 13 ) + + 71
----
214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9115
SELECT - COUNT( * ) DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-9115
SELECT - COUNT ( * ) / 93
----
0

query I rowsort
SELECT ALL - 45 + - - 42
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT - 42 + 37 + - 0 + - - 69 * - COALESCE ( SUM( ALL - ( + 69 ) ), 43 ) col1
----
4756

skipif mysql # not compatible
query I rowsort label-9117
SELECT - 42 + 37 + - 0 + - - 69 * - COALESCE ( SUM ( ALL - ( + 69 ) ), 43 ) col1
----
4756

query I rowsort
SELECT DISTINCT - 27 + 7 AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9119
SELECT + COALESCE ( + 83, - 71 * + - 9 * + COUNT( * ) + - CAST( NULL AS SIGNED ) )
----
83

skipif mysql # not compatible
query I rowsort label-9119
SELECT + COALESCE ( + 83, - 71 * + - 9 * + COUNT ( * ) + - CAST ( NULL AS INTEGER ) )
----
83

query I rowsort
SELECT + ( - 64 ) AS col1
----
-64

query II rowsort
SELECT ALL - 4 AS col2, - 30 AS col0
----
-4
-30

query I rowsort
SELECT ALL + 10 - - 35
----
45

query I rowsort
SELECT 78 * - 12 AS col1
----
-936

query I rowsort
SELECT ALL 29 - + CASE - 43 WHEN + 74 THEN 25 / - - 22 - - 53 END + + 49 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9125
SELECT ALL - 23, + COUNT( DISTINCT - + 27 ) * - + 50 AS col0
----
-23
-50

skipif mysql # not compatible
query II rowsort label-9125
SELECT ALL - 23, + COUNT ( DISTINCT - + 27 ) * - + 50 AS col0
----
-23
-50

query I rowsort
SELECT DISTINCT + 83 * - 87
----
-7221

query I rowsort
SELECT 68 * 10 AS col0
----
680

query I rowsort
SELECT ALL + 65 * ( + ( + 58 ) )
----
3770

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT ALL - - SUM( + 67 ) - + NULLIF ( 59, - 30 / - - 85 )
----
8

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL - - SUM ( + 67 ) - + NULLIF ( 59, - 30 / - - 85 )
----
8

query II rowsort
SELECT + + 85, - 69 col0
----
85
-69

query I rowsort
SELECT 21 * + 25
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT DISTINCT - - ( + ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9132
SELECT DISTINCT - - ( + ( COUNT ( * ) ) )
----
1

query I rowsort
SELECT ALL - 21 * + + ( 75 ) * 16 * - 86 AS col2
----
2167200

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT MAX( DISTINCT + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-9134
SELECT MAX ( DISTINCT + 21 )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9135
SELECT DISTINCT 50 DIV - 54 + COUNT( * ) DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT 50 / - 54 + COUNT ( * ) / - 39
----
0

query II rowsort
SELECT ALL - + 54 AS col1, 75
----
-54
75

query II rowsort
SELECT - - 80 AS col2, 79 + 53
----
80
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT - 21 * + + 49 * - COUNT( * ) AS col0
----
1029

skipif mysql # not compatible
query I rowsort label-9138
SELECT - 21 * + + 49 * - COUNT ( * ) AS col0
----
1029

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT COUNT( * ) + + MAX( - 21 ) + + ( + + 50 ) + + NULLIF ( - 36, - + 15 / + 8 + + COUNT( * ) ) * + MIN( DISTINCT + 65 ) * + + 46 - + 72 * - COALESCE ( - 75, - 45 * + 9 * + MIN( - 92 ), - 96 * - 27 * + 81 - + 50 + + - 87 + - + 90 * 44 ) + + 66 AS col0
----
-112944

skipif mysql # not compatible
query I rowsort label-9139
SELECT COUNT ( * ) + + MAX ( - 21 ) + + ( + + 50 ) + + NULLIF ( - 36, - + 15 / + 8 + + COUNT ( * ) ) * + MIN ( DISTINCT + 65 ) * + + 46 - + 72 * - COALESCE ( - 75, - 45 * + 9 * + MIN ( - 92 ), - 96 * - 27 * + 81 - + 50 + + - 87 + - + 90 * 44 ) + + 66 AS col0
----
-112944

query I rowsort
SELECT 57 + + ( - - 64 ) AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT - 87 + - + MIN( 66 )
----
-153

skipif mysql # not compatible
query I rowsort label-9141
SELECT - 87 + - + MIN ( 66 )
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9142
SELECT ALL - 40 + + ( + 60 ) + - - 8 * + CAST( NULL AS SIGNED ) + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9142
SELECT ALL - 40 + + ( + 60 ) + - - 8 * + CAST ( NULL AS INTEGER ) + - 28
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9143
SELECT 53 - + CAST( + + 93 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-9143
SELECT 53 - + CAST ( + + 93 AS INTEGER )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT DISTINCT 72 + - CASE - 50 WHEN 71 + + 73 THEN NULL WHEN + + 50 THEN - COUNT( * ) ELSE - MIN( - 96 ) END + 2 + - + 87 * 45 + + - 47 AS col1
----
-3984

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT 72 + - CASE - 50 WHEN 71 + + 73 THEN NULL WHEN + + 50 THEN - COUNT ( * ) ELSE - MIN ( - 96 ) END + 2 + - + 87 * 45 + + - 47 AS col1
----
-3984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9145
SELECT CAST( - 17 AS SIGNED ) + 86
----
69

skipif mysql # not compatible
query I rowsort label-9145
SELECT CAST ( - 17 AS INTEGER ) + 86
----
69

query I rowsort
SELECT 88 * - + 2
----
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9147
SELECT ALL + 69 * + + 66 / CASE + + NULLIF ( - 22, + + COUNT( * ) + - + 43 * - 4 ) WHEN + 65 * - NULLIF ( + - 27, - + 50 ) THEN + 6 + + 97 WHEN - + 63 + + 28 / + COALESCE ( - AVG ( DISTINCT 60 ), - 63 + - - COALESCE ( - 52, + - 67 - COALESCE ( + COUNT( DISTINCT + 13 ), - 83 ), - 10 ) - - - CAST( + CASE 62 WHEN + CAST( NULL AS SIGNED ) THEN + + 94 ELSE NULL END AS SIGNED ) / + 61 * - 47 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL + 69 * + + 66 / CASE + + NULLIF ( - 22, + + COUNT ( * ) + - + 43 * - 4 ) WHEN + 65 * - NULLIF ( + - 27, - + 50 ) THEN + 6 + + 97 WHEN - + 63 + + 28 / + COALESCE ( - AVG ( DISTINCT 60 ), - 63 + - - COALESCE ( - 52, + - 67 - COALESCE ( + COUNT ( DISTINCT + 13 ), - 83 ), - 10 ) - - - CAST ( + CASE 62 WHEN + CAST ( NULL AS INTEGER ) THEN + + 94 ELSE NULL END AS INTEGER ) / + 61 * - 47 ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT SUM( ALL + + 93 ) + + - 36
----
57

skipif mysql # not compatible
query I rowsort label-9148
SELECT SUM ( ALL + + 93 ) + + - 36
----
57

query I rowsort
SELECT DISTINCT + 51 * 74
----
3774

query I rowsort
SELECT 72 + - 38 + + + 32 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT ALL 48 - - 61 * - - ( COUNT( * ) )
----
109

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL 48 - - 61 * - - ( COUNT ( * ) )
----
109

query I rowsort
SELECT 78 * - 35
----
-2730

query II rowsort
SELECT ALL 65 * + - 97, ( + 52 ) col2
----
-6305
52

query I rowsort
SELECT 88 + - - 73 col1
----
161

onlyif mysql # aggregate syntax: 
query II rowsort label-9155
SELECT DISTINCT + 97 * - 72 AS col1, NULLIF ( + - 71, - COUNT( * ) * + 99 ) - + 65 col0
----
-6984
-136

skipif mysql # not compatible
query II rowsort label-9155
SELECT DISTINCT + 97 * - 72 AS col1, NULLIF ( + - 71, - COUNT ( * ) * + 99 ) - + 65 col0
----
-6984
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-9156
SELECT - 3 DIV - 78 + + 37 * - - 75
----
2775

skipif mysql # not compatible
query I rowsort label-9156
SELECT - 3 / - 78 + + 37 * - - 75
----
2775

query II rowsort
SELECT 78 * - 16 col2, + 44
----
-1248
44

query I rowsort
SELECT ALL - + ( + + ( + 0 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9159
SELECT ALL - CASE CASE 91 WHEN ( - 81 ) / NULLIF ( + 77, 13 ) THEN - 78 * - - SUM( ALL + - 1 ) + + 66 - + + 93 + - 78 WHEN + ( + + 69 ) THEN + - COUNT( * ) * - - AVG ( ALL 22 ) WHEN + + 83 THEN - + ( - + COUNT( * ) ) + - CAST( 69 AS SIGNED ) END WHEN 28 + - 20 THEN NULL ELSE - 28 END AS col2
----
28

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL - CASE CASE 91 WHEN ( - 81 ) / NULLIF ( + 77, 13 ) THEN - 78 * - - SUM ( ALL + - 1 ) + + 66 - + + 93 + - 78 WHEN + ( + + 69 ) THEN + - COUNT ( * ) * - - AVG ( ALL 22 ) WHEN + + 83 THEN - + ( - + COUNT ( * ) ) + - CAST ( 69 AS INTEGER ) END WHEN 28 + - 20 THEN NULL ELSE - 28 END AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9160
SELECT + COUNT( * ) * + - 64 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9160
SELECT + COUNT ( * ) * + - 64 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9161
SELECT DISTINCT - 22 + COUNT( * ) * + COALESCE ( + 22, - - COUNT( * ) DIV - - 40, + CAST( NULL AS SIGNED ) + + 69 ) DIV + 66 + 7 + + - 64 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT - 22 + COUNT ( * ) * + COALESCE ( + 22, - - COUNT ( * ) / - - 40, + CAST ( NULL AS INTEGER ) + + 69 ) / + 66 + 7 + + - 64 AS col1
----
-79

query II rowsort
SELECT ( - 1 ) AS col1, 50 AS col1
----
-1
50

onlyif mysql # aggregate syntax: 
query II rowsort label-9163
SELECT + COUNT( * ) + 88, + COUNT( * ) AS col1
----
89
1

skipif mysql # not compatible
query II rowsort label-9163
SELECT + COUNT ( * ) + 88, + COUNT ( * ) AS col1
----
89
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9164
SELECT ALL + CAST( NULL AS DECIMAL ) + 67 * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL + CAST ( NULL AS REAL ) + 67 * 2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9165
SELECT SUM( DISTINCT - + 12 ) / + CAST( NULL AS SIGNED ) + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-9165
SELECT SUM ( DISTINCT - + 12 ) / + CAST ( NULL AS INTEGER ) + - 49
----
NULL

query I rowsort
SELECT - ( COALESCE ( - 93, + + 97 + - + 28 * + 53 ) ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT + ( - + MAX( DISTINCT + 66 ) ) * 71 + - 45 AS col1
----
-4731

skipif mysql # not compatible
query I rowsort label-9167
SELECT + ( - + MAX ( DISTINCT + 66 ) ) * 71 + - 45 AS col1
----
-4731

onlyif mysql # DIV for integer division: 
query I rowsort label-9168
SELECT ALL 14 DIV - + 6
----
-2

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL 14 / - + 6
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT ALL 31 + - - 22 - + - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL 31 + - - 22 - + - COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT 34 * COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-9170
SELECT 34 * COUNT ( * ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-9171
SELECT ( MIN( DISTINCT + 64 ) ) + + - 10, - 5 AS col0
----
54
-5

skipif mysql # not compatible
query II rowsort label-9171
SELECT ( MIN ( DISTINCT + 64 ) ) + + - 10, - 5 AS col0
----
54
-5

query II rowsort
SELECT DISTINCT 26, 9 - + 98 col2
----
26
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-9173
SELECT - COUNT( * ) col1, 26 AS col0
----
-1
26

skipif mysql # not compatible
query II rowsort label-9173
SELECT - COUNT ( * ) col1, 26 AS col0
----
-1
26

query I rowsort
SELECT ALL 60 * + + 51 AS col2
----
3060

onlyif mysql # aggregate syntax: 
query II rowsort label-9175
SELECT 65 AS col1, - MAX( + - 72 ) + - 78 + + 29 * - 94
----
65
-2732

skipif mysql # not compatible
query II rowsort label-9175
SELECT 65 AS col1, - MAX ( + - 72 ) + - 78 + + 29 * - 94
----
65
-2732

query II rowsort
SELECT DISTINCT 89, 32 AS col2
----
89
32

query I rowsort
SELECT ALL 54 - + 23
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9178
SELECT - COUNT( * ) AS col0, - ( + 38 ) AS col0
----
-1
-38

skipif mysql # not compatible
query II rowsort label-9178
SELECT - COUNT ( * ) AS col0, - ( + 38 ) AS col0
----
-1
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9179
SELECT ALL 24 * + - CAST( + - 48 AS SIGNED )
----
1152

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL 24 * + - CAST ( + - 48 AS INTEGER )
----
1152

query I rowsort
SELECT - 29 + - 30
----
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9181
SELECT + 0 / CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT + 0 / CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - 6 * + - 3 AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9183
SELECT ALL 11 DIV ( SUM( + 11 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL 11 / ( SUM ( + 11 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT ALL + COUNT( DISTINCT - 34 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL + COUNT ( DISTINCT - 34 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9185
SELECT + 52 + - ( MIN( DISTINCT - 10 ) ) * - - 53 DIV 59 * 0 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-9185
SELECT + 52 + - ( MIN ( DISTINCT - 10 ) ) * - - 53 / 59 * 0 AS col1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9186
SELECT DISTINCT - - COUNT( ALL + - 57 ) * - ( - - 13 ) AS col0, 24 * - - 71
----
-13
1704

skipif mysql # not compatible
query II rowsort label-9186
SELECT DISTINCT - - COUNT ( ALL + - 57 ) * - ( - - 13 ) AS col0, 24 * - - 71
----
-13
1704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9187
SELECT ALL - - CAST( + 3 AS SIGNED ) * 76 + + 64 + - + 64 * + 79 * + 72 + - + 78 AS col2
----
-363818

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL - - CAST ( + 3 AS INTEGER ) * 76 + + 64 + - + 64 * + 79 * + 72 + - + 78 AS col2
----
-363818

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9188
SELECT ALL + 35 * CASE + + 8 WHEN 46 + + 6 THEN 73 WHEN + 94 * - 83 * + COUNT( * ) / + CAST( + CAST( COUNT( - 48 ) AS SIGNED ) AS SIGNED ) + - + 53 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL + 35 * CASE + + 8 WHEN 46 + + 6 THEN 73 WHEN + 94 * - 83 * + COUNT ( * ) / + CAST ( + CAST ( COUNT ( - 48 ) AS INTEGER ) AS INTEGER ) + - + 53 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9189
SELECT - - 24 * 5 DIV 56, 71 * 81 col0
----
2
5751

skipif mysql # not compatible
query II rowsort label-9189
SELECT - - 24 * 5 / 56, 71 * 81 col0
----
2
5751

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT ALL + + 2 * - 59 * + COUNT( ALL + 21 ) + 57 - - 43 * + + 58 AS col1
----
2433

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL + + 2 * - 59 * + COUNT ( ALL + 21 ) + 57 - - 43 * + + 58 AS col1
----
2433

query I rowsort
SELECT ALL + - 69 * + + 76 + - 68 AS col2
----
-5312

query I rowsort
SELECT - - 80 + - + ( 10 ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ALL + SUM( ALL + - 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL + SUM ( ALL + - 99 ) AS col0
----
-99

query I rowsort
SELECT - 12 * + - 89
----
1068

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT DISTINCT + COUNT( 46 ) * + 66 + + 38 AS col1
----
104

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT + COUNT ( 46 ) * + 66 + + 38 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT ALL - - COUNT( * ) * + 62 * - - 76 AS col0
----
4712

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL - - COUNT ( * ) * + 62 * - - 76 AS col0
----
4712

query II rowsort
SELECT DISTINCT - 68 * + 62 AS col2, - 72
----
-4216
-72

query II rowsort
SELECT ALL ( + 19 ) AS col2, 47 * + 71
----
19
3337

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT - SUM( DISTINCT 78 ) + + - 54 * - 21 + + 4
----
1060

skipif mysql # not compatible
query I rowsort label-9199
SELECT - SUM ( DISTINCT 78 ) + + - 54 * - 21 + + 4
----
1060

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT SUM( DISTINCT - CASE 53 WHEN + + 97 THEN NULL WHEN + 27 * - 89 THEN 84 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT SUM ( DISTINCT - CASE 53 WHEN + + 97 THEN NULL WHEN + 27 * - 89 THEN 84 END ) AS col2
----
NULL

query I rowsort
SELECT + 54 * + + 12 AS col2
----
648

query I rowsort
SELECT - 66 + + ( + - 45 ) + - 35 - 58
----
-204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9203
SELECT ALL - ( - + 17 ) * 66 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL - ( - + 17 ) * 66 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT DISTINCT CASE - 65 WHEN + + 54 / + 29 + CASE 65 WHEN AVG ( DISTINCT + 23 ) * + SUM( ALL - + ( - 44 ) ) THEN - CASE 49 WHEN 6 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - - 55 END WHEN - 38 THEN + SUM( 24 ) END THEN + 44 * + 58 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT DISTINCT CASE - 65 WHEN + + 54 / + 29 + CASE 65 WHEN AVG ( DISTINCT + 23 ) * + SUM ( ALL - + ( - 44 ) ) THEN - CASE 49 WHEN 6 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - - 55 END WHEN - 38 THEN + SUM ( 24 ) END THEN + 44 * + 58 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 69 * 65 AS col2
----
-4485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9206
SELECT DISTINCT 13 / CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT 13 / CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT + COUNT( * ) * - 77 * - 11 AS col0
----
847

skipif mysql # not compatible
query I rowsort label-9207
SELECT + COUNT ( * ) * - 77 * - 11 AS col0
----
847

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT + COUNT( * ) - 23 * - - COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-9208
SELECT + COUNT ( * ) - 23 * - - COUNT ( * )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT ALL 48 * + MIN( - 55 ) * + 93
----
-245520

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL 48 * + MIN ( - 55 ) * + 93
----
-245520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9210
SELECT DISTINCT - 33 DIV + COUNT( DISTINCT + 85 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT - 33 / + COUNT ( DISTINCT + 85 ) AS col0
----
-33

query I rowsort
SELECT + 30 * 50
----
1500

query I rowsort
SELECT + 88 + + 84 AS col2
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT - COUNT( * ) + + + COALESCE ( + + 27, + 97 * + 38 * - COUNT( * ) + + COUNT( * ) ) * - 46 AS col0
----
-1243

skipif mysql # not compatible
query I rowsort label-9213
SELECT - COUNT ( * ) + + + COALESCE ( + + 27, + 97 * + 38 * - COUNT ( * ) + + COUNT ( * ) ) * - 46 AS col0
----
-1243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT - ( - - CAST( + + 5 AS SIGNED ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9214
SELECT - ( - - CAST ( + + 5 AS INTEGER ) ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT + 65 + SUM( 71 ) - - 57 * COUNT( - 4 )
----
193

skipif mysql # not compatible
query I rowsort label-9215
SELECT + 65 + SUM ( 71 ) - - 57 * COUNT ( - 4 )
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT ALL 70 * + + ( NULLIF ( - + 41, + - 69 * + - COUNT( + + 24 ) + - - 74 ) ) AS col0
----
-2870

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL 70 * + + ( NULLIF ( - + 41, + - 69 * + - COUNT ( + + 24 ) + - - 74 ) ) AS col0
----
-2870

query I rowsort
SELECT + 94 * - 39 * + - 74 AS col0
----
271284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9218
SELECT ALL CAST( - ( 10 ) AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL CAST ( - ( 10 ) AS INTEGER )
----
-10

query I rowsort
SELECT ALL + 14 * + - 4
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT ALL - + CASE + ( - NULLIF ( + - 94, + 31 ) ) WHEN - + 29 THEN + + 57 / - + 77 * SUM( ALL + 52 ) - + 27 * - 92 + - 30 + - 90 + - 96 * + - 3 * + - COUNT( * ) / + - 35 WHEN + + 25 THEN - 90 WHEN - 89 THEN NULL END / + 36 + 89 + + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL - + CASE + ( - NULLIF ( + - 94, + 31 ) ) WHEN - + 29 THEN + + 57 / - + 77 * SUM ( ALL + 52 ) - + 27 * - 92 + - 30 + - 90 + - 96 * + - 3 * + - COUNT ( * ) / + - 35 WHEN + + 25 THEN - 90 WHEN - 89 THEN NULL END / + 36 + 89 + + 15 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9221
SELECT ALL - - 12 DIV + 44 + 42 + - 23
----
19

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL - - 12 / + 44 + 42 + - 23
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9222
SELECT ALL + + CAST( NULL AS SIGNED ) / 89 + + 34 + 47 + - - 58 * + + 79 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL + + CAST ( NULL AS INTEGER ) / 89 + + 34 + 47 + - - 58 * + + 79 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT ALL + CASE - 88 WHEN - MAX( ALL - 34 ) * 30 THEN - 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL + CASE - 88 WHEN - MAX ( ALL - 34 ) * 30 THEN - 8 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT + + CASE 60 WHEN COUNT( * ) THEN + ( - - COUNT( * ) ) WHEN + AVG ( + 59 ) THEN + 33 / 6 END / - 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9224
SELECT + + CASE 60 WHEN COUNT ( * ) THEN + ( - - COUNT ( * ) ) WHEN + AVG ( + 59 ) THEN + 33 / 6 END / - 35 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9225
SELECT + - ( - + 32 ) + - ( COUNT( * ) ) + - CAST( ( - - ( + + ( + + 83 ) ) ) AS SIGNED ) + - + 15
----
-67

skipif mysql # not compatible
query I rowsort label-9225
SELECT + - ( - + 32 ) + - ( COUNT ( * ) ) + - CAST ( ( - - ( + + ( + + 83 ) ) ) AS INTEGER ) + - + 15
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT + 13 + + ( + + 80 ) * COUNT( * ) - + 88
----
5

skipif mysql # not compatible
query I rowsort label-9226
SELECT + 13 + + ( + + 80 ) * COUNT ( * ) - + 88
----
5

query I rowsort
SELECT + + 9 * - 64
----
-576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9228
SELECT 92 * - CASE WHEN 49 IS NOT NULL THEN NULL ELSE - + COUNT( * ) * + 53 + 91 + + 90 END + 4 - 47 * 78 + + + COALESCE ( + MIN( + 91 ), + - 51 ) + + + CASE 72 WHEN + CASE - 94 WHEN + 15 + - 38 THEN - SUM( - - CAST( 29 AS SIGNED ) ) END THEN + 19 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9228
SELECT 92 * - CASE WHEN 49 IS NOT NULL THEN NULL ELSE - + COUNT ( * ) * + 53 + 91 + + 90 END + 4 - 47 * 78 + + + COALESCE ( + MIN ( + 91 ), + - 51 ) + + + CASE 72 WHEN + CASE - 94 WHEN + 15 + - 38 THEN - SUM ( - - CAST ( 29 AS INTEGER ) ) END THEN + 19 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9229
SELECT DISTINCT + 70 DIV - 67
----
-1

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT + 70 / - 67
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT ALL - 48 * + 3 * - + MIN( ALL + 47 ) - + - MIN( DISTINCT 54 ) AS col0
----
6822

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL - 48 * + 3 * - + MIN ( ALL + 47 ) - + - MIN ( DISTINCT 54 ) AS col0
----
6822

query I rowsort
SELECT + 53 * + NULLIF ( 65, - 96 )
----
3445

query I rowsort
SELECT ALL - 37 * + 42 + - + 35 + - 5 - + + 25
----
-1619

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9233
SELECT DISTINCT + 24 * + CAST( NULL AS SIGNED ) / 24 - - 91 + - 49 * + + ( - 55 ) + 60 * - 80 AS col1, - 9 * - 63 AS col1
----
NULL
567

skipif mysql # not compatible
query II rowsort label-9233
SELECT DISTINCT + 24 * + CAST ( NULL AS INTEGER ) / 24 - - 91 + - 49 * + + ( - 55 ) + 60 * - 80 AS col1, - 9 * - 63 AS col1
----
NULL
567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9234
SELECT DISTINCT + 88 * 39 - - + 91 + - - 95 + + - 24 + + + CAST( NULL AS SIGNED ) / + 79 + 26 / + 52 * 35 * - 77 - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT + 88 * 39 - - + 91 + - - 95 + + - 24 + + + CAST ( NULL AS INTEGER ) / + 79 + 26 / + 52 * 35 * - 77 - 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT - + 51 + - + NULLIF ( - COUNT( * ), + COUNT( * ) * - - 17 )
----
-50

skipif mysql # not compatible
query I rowsort label-9235
SELECT - + 51 + - + NULLIF ( - COUNT ( * ), + COUNT ( * ) * - - 17 )
----
-50

query I rowsort
SELECT + - 82 * - 12 + 34 AS col2
----
1018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9237
SELECT COUNT( ALL - - ( + + CAST( - + 90 AS SIGNED ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9237
SELECT COUNT ( ALL - - ( + + CAST ( - + 90 AS INTEGER ) ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9238
SELECT CASE + 90 WHEN + 43 * - - 58 THEN COALESCE ( + 61, ( 86 ) * CASE + 53 WHEN + 48 * 90 + 5 * + + 47 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - - CAST( NULL AS SIGNED ) - SUM( - 78 ) THEN - NULLIF ( AVG ( ALL + - 10 ), + 79 ) ELSE - + 38 * + COUNT( * ) * 34 * 13 + - 30 + + 7 END, - 37 ) WHEN - 34 THEN NULL ELSE NULL END AS col0, - 46 AS col1
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-9238
SELECT CASE + 90 WHEN + 43 * - - 58 THEN COALESCE ( + 61, ( 86 ) * CASE + 53 WHEN + 48 * 90 + 5 * + + 47 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - - CAST ( NULL AS INTEGER ) - SUM ( - 78 ) THEN - NULLIF ( AVG ( ALL + - 10 ), + 79 ) ELSE - + 38 * + COUNT ( * ) * 34 * 13 + - 30 + + 7 END, - 37 ) WHEN - 34 THEN NULL ELSE NULL END AS col0, - 46 AS col1
----
NULL
-46

query I rowsort
SELECT 78 * - 3 AS col0
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT DISTINCT - COUNT( * ) * + 98
----
-98

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT - COUNT ( * ) * + 98
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-9241
SELECT DISTINCT 33, + COUNT( * ) AS col1
----
33
1

skipif mysql # not compatible
query II rowsort label-9241
SELECT DISTINCT 33, + COUNT ( * ) AS col1
----
33
1

query I rowsort
SELECT ALL - 19 * - - 34
----
-646

query I rowsort
SELECT 98 + + 8
----
106

query I rowsort
SELECT ALL - 47 * + + 35
----
-1645

query I rowsort
SELECT DISTINCT - 38 * + 5 * 63
----
-11970

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT 17 * + COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9246
SELECT 17 * + COUNT ( * ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT 23 + + COUNT( DISTINCT - NULLIF ( - 44, - 75 ) ) * - 72
----
-49

skipif mysql # not compatible
query I rowsort label-9247
SELECT 23 + + COUNT ( DISTINCT - NULLIF ( - 44, - 75 ) ) * - 72
----
-49

query I rowsort
SELECT DISTINCT + 29 * 44 * - 32
----
-40832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9249
SELECT DISTINCT - SUM( ALL 47 ) + 49 + - + 94 - + - COUNT( * ) + COUNT( + COALESCE ( CAST( NULL AS SIGNED ), - ( - 32 ) + ( - + ( + NULLIF ( + + 68, - + 88 ) ) ), - 42 + - + 52 ) ) * + - ( - + ( COUNT( * ) ) ) + COUNT( * ) * + 42
----
-48

skipif mysql # not compatible
query I rowsort label-9249
SELECT DISTINCT - SUM ( ALL 47 ) + 49 + - + 94 - + - COUNT ( * ) + COUNT ( + COALESCE ( CAST ( NULL AS INTEGER ), - ( - 32 ) + ( - + ( + NULLIF ( + + 68, - + 88 ) ) ), - 42 + - + 52 ) ) * + - ( - + ( COUNT ( * ) ) ) + COUNT ( * ) * + 42
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT DISTINCT + COUNT( * ) + 49
----
50

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT + COUNT ( * ) + 49
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9251
SELECT + 65 + 52 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9251
SELECT + 65 + 52 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT 21 * - 9 * + COUNT( + 20 ) + - 47 * - 83
----
3712

skipif mysql # not compatible
query I rowsort label-9252
SELECT 21 * - 9 * + COUNT ( + 20 ) + - 47 * - 83
----
3712

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT ALL + 93 + COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL + 93 + COUNT ( * ) AS col2
----
94

query I rowsort
SELECT COALESCE ( 58, - 23, + - 59 ) AS col2
----
58

query I rowsort
SELECT ALL 32 + 27 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT 0 - - COUNT( * ) + - - 69
----
70

skipif mysql # not compatible
query I rowsort label-9256
SELECT 0 - - COUNT ( * ) + - - 69
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9257
SELECT ALL 54 * - CASE - 89 WHEN + + 37 THEN 39 + + 27 * + - 22 WHEN SUM( ( 97 ) ) + - MAX( DISTINCT + + CAST( + 79 AS SIGNED ) ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL 54 * - CASE - 89 WHEN + + 37 THEN 39 + + 27 * + - 22 WHEN SUM ( ( 97 ) ) + - MAX ( DISTINCT + + CAST ( + 79 AS INTEGER ) ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 41 * 95 col1
----
-3895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9259
SELECT ALL + SUM( ALL 5 ) - CAST( - 55 AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL + SUM ( ALL 5 ) - CAST ( - 55 AS INTEGER )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT + CASE + - 50 WHEN - 67 THEN - 26 * - 55 WHEN - - 56 - + + 30 + - COUNT( * ) THEN 89 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9260
SELECT + CASE + - 50 WHEN - 67 THEN - 26 * - 55 WHEN - - 56 - + + 30 + - COUNT ( * ) THEN 89 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9261
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 3 + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 3 + 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT DISTINCT 16 - 48 + - + 38 * - 85 * + + MIN( ALL + 34 ) + 70
----
109858

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT 16 - 48 + - + 38 * - 85 * + + MIN ( ALL + 34 ) + 70
----
109858

query I rowsort
SELECT + 65 - + 41
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9264
SELECT ALL - CAST( + - 50 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL - CAST ( + - 50 AS INTEGER )
----
50

query I rowsort
SELECT 49 * 61 AS col2
----
2989

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT + - MAX( 82 ) col1
----
-82

skipif mysql # not compatible
query I rowsort label-9266
SELECT + - MAX ( 82 ) col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT ALL 37 * + ( COUNT( * ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL 37 * + ( COUNT ( * ) ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-9268
SELECT DISTINCT + COUNT( * ) * 93 AS col2, - 75 + - + COALESCE ( + - ( - 32 ), 91 )
----
93
-107

skipif mysql # not compatible
query II rowsort label-9268
SELECT DISTINCT + COUNT ( * ) * 93 AS col2, - 75 + - + COALESCE ( + - ( - 32 ), 91 )
----
93
-107

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9269
SELECT ALL - 53, CAST( - + 98 AS SIGNED ) AS col1
----
-53
-98

skipif mysql # not compatible
query II rowsort label-9269
SELECT ALL - 53, CAST ( - + 98 AS INTEGER ) AS col1
----
-53
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT + COUNT( DISTINCT - 12 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9270
SELECT + COUNT ( DISTINCT - 12 ) AS col1
----
1

query I rowsort
SELECT ALL 1 * ( - 9 ) AS col2
----
-9

query I rowsort
SELECT CASE - - COALESCE ( - 92, + 65 ) WHEN 93 * - + AVG ( + - 60 ) THEN - - 38 WHEN - 89 THEN 14 END + + NULLIF ( - 30, + 35 / - 86 * + 20 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9273
SELECT 98 * - COUNT( * ) AS col0, ( + 8 )
----
-98
8

skipif mysql # not compatible
query II rowsort label-9273
SELECT 98 * - COUNT ( * ) AS col0, ( + 8 )
----
-98
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9274
SELECT 72 * - 54 * - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT 72 * - 54 * - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 95 + + 90 AS col0
----
185

query II rowsort
SELECT - 89 AS col0, 56
----
-89
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9277
SELECT 17 DIV - + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9277
SELECT 17 / - + 73 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9278
SELECT CAST( - COUNT( * ) AS SIGNED ) + - + 46 col0
----
-47

skipif mysql # not compatible
query I rowsort label-9278
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + - + 46 col0
----
-47

query II rowsort
SELECT ALL 94 col2, 77 * 71 AS col2
----
94
5467

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT DISTINCT COUNT( * ) + - + 40
----
-39

skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT COUNT ( * ) + - + 40
----
-39

query I rowsort
SELECT ALL - COALESCE ( - 22, - 0 + - 11 ) + + + CASE 24 WHEN + - 3 THEN NULL ELSE + - 20 * - 12 - + 33 END
----
229

query II rowsort
SELECT - 50, + 86 * 85 * - ( 48 ) + + + 64 + 75 col2
----
-50
-350741

query I rowsort
SELECT DISTINCT 76 + - 87 + + 53
----
42

query I rowsort
SELECT DISTINCT + ( + 58 ) + 73 * ( - 44 )
----
-3154

query I rowsort
SELECT DISTINCT 94 + - 0 col0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9286
SELECT DISTINCT COUNT( * ) AS col0, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-9286
SELECT DISTINCT COUNT ( * ) AS col0, + COUNT ( * )
----
1
1

query II rowsort
SELECT ALL + 89 + + 41 AS col2, - 70 AS col1
----
130
-70

query I rowsort
SELECT 22 + - 75
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9289
SELECT 91, CAST( + 80 AS SIGNED ) AS col1
----
91
80

skipif mysql # not compatible
query II rowsort label-9289
SELECT 91, CAST ( + 80 AS INTEGER ) AS col1
----
91
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9290
SELECT 32 + - MIN( ALL + 62 ) DIV + + ( ( 17 ) ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9290
SELECT 32 + - MIN ( ALL + 62 ) / + + ( ( 17 ) ) AS col0
----
29

query I rowsort
SELECT DISTINCT + - ( - 79 ) * - NULLIF ( + 61, - 36 )
----
-4819

query II rowsort
SELECT DISTINCT 12 AS col2, ( + 61 ) AS col0
----
12
61

query I rowsort
SELECT ALL + 47 + + - 65
----
-18

query I rowsort
SELECT - 72 + + 74 + - 78 AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9295
SELECT 15 + + - NULLIF ( 43, - - 78 * - 62 + + 16 / - + COALESCE ( + - COUNT( * ), CAST( NULL AS SIGNED ) ) ) / - - CASE + 71 WHEN - 62 THEN + 62 + 4 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9295
SELECT 15 + + - NULLIF ( 43, - - 78 * - 62 + + 16 / - + COALESCE ( + - COUNT ( * ), CAST ( NULL AS INTEGER ) ) ) / - - CASE + 71 WHEN - 62 THEN + 62 + 4 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT ALL + NULLIF ( - ( + + 68 ), - + COUNT( * ) / + - 38 * - 13 + + NULLIF ( + + 4, - 78 ) + - + 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-9296
SELECT ALL + NULLIF ( - ( + + 68 ), - + COUNT ( * ) / + - 38 * - 13 + + NULLIF ( + + 4, - 78 ) + - + 68 ) AS col2
----
-68

query I rowsort
SELECT ALL + + CASE + 35 WHEN 10 THEN + 9 ELSE - 2 END * - 22
----
44

query II rowsort
SELECT DISTINCT + 20 AS col2, + 29 AS col1
----
20
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT ALL - - COUNT( DISTINCT - + NULLIF ( - 50, - + CASE - 82 WHEN + 53 - NULLIF ( + 70, 35 ) THEN NULL WHEN + NULLIF ( - - 22, + 94 ) THEN + 78 * + 21 * + 20 END / - 86 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL - - COUNT ( DISTINCT - + NULLIF ( - 50, - + CASE - 82 WHEN + 53 - NULLIF ( + 70, 35 ) THEN NULL WHEN + NULLIF ( - - 22, + 94 ) THEN + 78 * + 21 * + 20 END / - 86 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9300
SELECT + 26 * + CASE + 96 WHEN + 76 * 4 THEN NULL ELSE - 82 DIV + - 91 + + 45 + - + COUNT( * ) END + + + COUNT( * ) AS col0
----
1145

skipif mysql # not compatible
query I rowsort label-9300
SELECT + 26 * + CASE + 96 WHEN + 76 * 4 THEN NULL ELSE - 82 / + - 91 + + 45 + - + COUNT ( * ) END + + + COUNT ( * ) AS col0
----
1145

query I rowsort
SELECT ALL - - ( - 54 )
----
-54

query I rowsort
SELECT 25 * - - 9
----
225

onlyif mysql # aggregate syntax: 
query II rowsort label-9303
SELECT - COUNT( * ) AS col0, - 7
----
-1
-7

skipif mysql # not compatible
query II rowsort label-9303
SELECT - COUNT ( * ) AS col0, - 7
----
-1
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9304
SELECT ALL - + 42 DIV - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL - + 42 / - COUNT ( * )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9305
SELECT - 2 DIV - 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9305
SELECT - 2 / - 74 AS col1
----
0

query I rowsort
SELECT - - 49 + - ( 4 ) AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9307
SELECT + + 85 * 96 / - + 60 * CAST( NULL AS SIGNED ) * - + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9307
SELECT + + 85 * 96 / - + 60 * CAST ( NULL AS INTEGER ) * - + 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT + - 94 * - + COUNT( * ) + - + 44 + 3 * + + 89 AS col0
----
317

skipif mysql # not compatible
query I rowsort label-9308
SELECT + - 94 * - + COUNT ( * ) + - + 44 + 3 * + + 89 AS col0
----
317

onlyif mysql # aggregate syntax: 
query II rowsort label-9309
SELECT + NULLIF ( - COUNT( * ), COALESCE ( 5, 8 - + + 85 + 93 * - 23 / 45 ) ), + 22 * + ( + 67 ) AS col2
----
-1
1474

skipif mysql # not compatible
query II rowsort label-9309
SELECT + NULLIF ( - COUNT ( * ), COALESCE ( 5, 8 - + + 85 + 93 * - 23 / 45 ) ), + 22 * + ( + 67 ) AS col2
----
-1
1474

query I rowsort
SELECT DISTINCT + 64 * + - 85
----
-5440

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT + COALESCE ( - ( 87 ), + - 0 - + 98 ) * - MAX( 55 ) AS col1
----
4785

skipif mysql # not compatible
query I rowsort label-9311
SELECT + COALESCE ( - ( 87 ), + - 0 - + 98 ) * - MAX ( 55 ) AS col1
----
4785

onlyif mysql # DIV for integer division: 
query I rowsort label-9312
SELECT + ( - 58 ) + - - 32 + + - 71 DIV - - 76 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-9312
SELECT + ( - 58 ) + - - 32 + + - 71 / - - 76 AS col0
----
-26

query II rowsort
SELECT DISTINCT + 46 * 8, + 11 AS col0
----
368
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9314
SELECT - NULLIF ( - + COUNT( * ), 82 - - CAST( NULL AS SIGNED ) + - 17 * - + 2 ) * + 15 + - - 14 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9314
SELECT - NULLIF ( - + COUNT ( * ), 82 - - CAST ( NULL AS INTEGER ) + - 17 * - + 2 ) * + 15 + - - 14 AS col0
----
29

query I rowsort
SELECT ALL 53 * 4 + 70 AS col2
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT MAX( DISTINCT + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-9316
SELECT MAX ( DISTINCT + 60 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9317
SELECT + NULLIF ( + 38, - CAST( + 48 AS SIGNED ) ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9317
SELECT + NULLIF ( + 38, - CAST ( + 48 AS INTEGER ) ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT MAX( DISTINCT - NULLIF ( 93, + + 77 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-9318
SELECT MAX ( DISTINCT - NULLIF ( 93, + + 77 ) )
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9319
SELECT 83 * - 50 + COUNT( * ), - COUNT( * ) DIV - 13 AS col0
----
-4149
0

skipif mysql # not compatible
query II rowsort label-9319
SELECT 83 * - 50 + COUNT ( * ), - COUNT ( * ) / - 13 AS col0
----
-4149
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9320
SELECT COUNT( - 98 ) AS col2, 37 + + - 35 * SUM( ALL + 84 ) AS col0
----
1
-2903

skipif mysql # not compatible
query II rowsort label-9320
SELECT COUNT ( - 98 ) AS col2, 37 + + - 35 * SUM ( ALL + 84 ) AS col0
----
1
-2903

onlyif mysql # DIV for integer division: 
query I rowsort label-9321
SELECT ALL COALESCE ( - - NULLIF ( 94, 40 ), - - 35, + 91 ) DIV 28
----
3

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL COALESCE ( - - NULLIF ( 94, 40 ), - - 35, + 91 ) / 28
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9322
SELECT ALL MAX( DISTINCT - 45 ) + 74 + + - 4 + - + SUM( - - 56 ) - + 19 * + CAST( + + 42 AS SIGNED )
----
-829

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL MAX ( DISTINCT - 45 ) + 74 + + - 4 + - + SUM ( - - 56 ) - + 19 * + CAST ( + + 42 AS INTEGER )
----
-829

query I rowsort
SELECT - NULLIF ( - + 80, + 73 / + - 47 + + + 55 + + 18 + 88 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL 35 + - COUNT( * ) * - + ( - 40 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL 35 + - COUNT ( * ) * - + ( - 40 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9325
SELECT DISTINCT CASE + 82 WHEN + COUNT( * ) THEN + COUNT( * ) + - - 66 * + + 10 END + + + 11 AS col0, + 36
----
NULL
36

skipif mysql # not compatible
query II rowsort label-9325
SELECT DISTINCT CASE + 82 WHEN + COUNT ( * ) THEN + COUNT ( * ) + - - 66 * + + 10 END + + + 11 AS col0, + 36
----
NULL
36

query I rowsort
SELECT ALL - 57 + - 5
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT DISTINCT + ( + + 3 ) + - - SUM( DISTINCT - 71 ) + - - 37
----
-31

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT + ( + + 3 ) + - - SUM ( DISTINCT - 71 ) + - - 37
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9328
SELECT - COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9328
SELECT - COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT + 99 * - + 51 AS col0
----
-5049

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT - CASE COUNT( * ) WHEN + + 1 * + 27 THEN + - COALESCE ( + 70, + 84 ) WHEN - - NULLIF ( - 42, 44 ) * - - 80 + - 57 + + 0 * + 11 * - 88 THEN + COUNT( * ) + + 61 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9330
SELECT - CASE COUNT ( * ) WHEN + + 1 * + 27 THEN + - COALESCE ( + 70, + 84 ) WHEN - - NULLIF ( - 42, 44 ) * - - 80 + - 57 + + 0 * + 11 * - 88 THEN + COUNT ( * ) + + 61 ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9331
SELECT - NULLIF ( 54, + 95 * + MAX( ALL + 75 ) + 53 + - + CAST( + + 58 AS SIGNED ) - + - 49 )
----
-54

skipif mysql # not compatible
query I rowsort label-9331
SELECT - NULLIF ( 54, + 95 * + MAX ( ALL + 75 ) + 53 + - + CAST ( + + 58 AS INTEGER ) - + - 49 )
----
-54

query II rowsort
SELECT ALL 82 + - - ( + 63 ) - 89 + + 83 AS col0, + 42
----
139
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT - - 66 * + - COUNT( * ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-9333
SELECT - - 66 * + - COUNT ( * ) AS col0
----
-66

query I rowsort
SELECT + - 96 * - 5 + - ( - + 58 )
----
538

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT DISTINCT 49 * - + CASE - - MAX( ALL + 75 ) WHEN - 38 THEN + + 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT 49 * - + CASE - - MAX ( ALL + 75 ) WHEN - 38 THEN + + 13 END
----
NULL

query I rowsort
SELECT ALL - 16 - - + COALESCE ( - + 11, 40 ) * - - 13
----
-159

query I rowsort
SELECT NULLIF ( + 82, - + 74 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT - NULLIF ( - + 4, MAX( - + 44 ) * + 81 ) * + - 73 AS col0
----
-292

skipif mysql # not compatible
query I rowsort label-9338
SELECT - NULLIF ( - + 4, MAX ( - + 44 ) * + 81 ) * + - 73 AS col0
----
-292

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9339
SELECT DISTINCT + NULLIF ( - COALESCE ( - - COUNT( * ), - MIN( 84 ) ), + 74 ) * + - 20 AS col1, COUNT( * ) + - - ( 91 ) DIV - COUNT( * )
----
20
-90

skipif mysql # not compatible
query II rowsort label-9339
SELECT DISTINCT + NULLIF ( - COALESCE ( - - COUNT ( * ), - MIN ( 84 ) ), + 74 ) * + - 20 AS col1, COUNT ( * ) + - - ( 91 ) / - COUNT ( * )
----
20
-90

query I rowsort
SELECT - + 39 + + ( + 27 ) * - ( + 79 ) AS col0
----
-2172

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT + - COUNT( - 50 ) * COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9341
SELECT + - COUNT ( - 50 ) * COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT - - SUM( ALL 78 ) * - + 54 * + 83 col2
----
-349596

skipif mysql # not compatible
query I rowsort label-9342
SELECT - - SUM ( ALL 78 ) * - + 54 * + 83 col2
----
-349596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9343
SELECT ALL + 58 * - CASE - + 85 WHEN - + 51 THEN - 32 * 87 - COUNT( * ) - + MIN( ALL - - 48 ) * - 61 * + - 66 + + CAST( - 91 AS SIGNED ) WHEN COALESCE ( + NULLIF ( - - 17, - 90 - - COALESCE ( + 7, + - 16, - 56 * 90 + - + 87 + + + 82 / - 7 ) ), + 3 / + 9 * COUNT( ALL 1 ) ) THEN 27 WHEN + + 70 THEN CASE + + 63 WHEN + - 82 THEN CAST( + - 17 AS DECIMAL ) WHEN - - 18 THEN NULL ELSE NULL END + + - 96 * + 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL + 58 * - CASE - + 85 WHEN - + 51 THEN - 32 * 87 - COUNT ( * ) - + MIN ( ALL - - 48 ) * - 61 * + - 66 + + CAST ( - 91 AS INTEGER ) WHEN COALESCE ( + NULLIF ( - - 17, - 90 - - COALESCE ( + 7, + - 16, - 56 * 90 + - + 87 + + + 82 / - 7 ) ), + 3 / + 9 * COUNT ( ALL 1 ) ) THEN 27 WHEN + + 70 THEN CASE + + 63 WHEN + - 82 THEN CAST ( + - 17 AS REAL ) WHEN - - 18 THEN NULL ELSE NULL END + + - 96 * + 5 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9344
SELECT - + COUNT( DISTINCT + + 76 ) AS col1, - COUNT( * ) + + COALESCE ( + - 83, + 56 ) + 8 * + COALESCE ( 82, ( 70 ) )
----
-1
572

skipif mysql # not compatible
query II rowsort label-9344
SELECT - + COUNT ( DISTINCT + + 76 ) AS col1, - COUNT ( * ) + + COALESCE ( + - 83, + 56 ) + 8 * + COALESCE ( 82, ( 70 ) )
----
-1
572

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT - - 20 + + COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-9345
SELECT - - 20 + + COUNT ( * ) AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9346
SELECT ALL 78 * + CASE + + 29 WHEN + ( - + CASE NULLIF ( - 74, 98 * 4 - + - 31 * 75 + - 53 + + - CASE CAST( NULLIF ( SUM( DISTINCT + 63 ), 72 ) AS SIGNED ) WHEN - 40 / 83 * - - 20 THEN NULL WHEN 23 THEN COUNT( ALL + 81 ) END + - 27 + - 7 * + + 85 * + 39 ) WHEN - + 17 THEN + 5 WHEN - MIN( 73 ) * ( + + CASE + 26 WHEN + 3 THEN - 47 * + 11 - - MIN( - + 17 ) END ) THEN - - COUNT( * ) + + - 67 ELSE NULL END ) * + + COUNT( * ) THEN + + 23 END - + AVG ( - + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL 78 * + CASE + + 29 WHEN + ( - + CASE NULLIF ( - 74, 98 * 4 - + - 31 * 75 + - 53 + + - CASE CAST ( NULLIF ( SUM ( DISTINCT + 63 ), 72 ) AS INTEGER ) WHEN - 40 / 83 * - - 20 THEN NULL WHEN 23 THEN COUNT ( ALL + 81 ) END + - 27 + - 7 * + + 85 * + 39 ) WHEN - + 17 THEN + 5 WHEN - MIN ( 73 ) * ( + + CASE + 26 WHEN + 3 THEN - 47 * + 11 - - MIN ( - + 17 ) END ) THEN - - COUNT ( * ) + + - 67 ELSE NULL END ) * + + COUNT ( * ) THEN + + 23 END - + AVG ( - + 67 )
----
NULL

query I rowsort
SELECT - 37 * + + 94 AS col1
----
-3478

query I rowsort
SELECT ALL + NULLIF ( - 8, - - ( - - 55 ) ) AS col2
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9349
SELECT ALL 74 * - 0 * - + COALESCE ( - 61, - + 67 + - + 98 * - - COUNT( * ) ) * 19 DIV + + 36 + - COUNT( * ) * - 77 + 50 + - 98
----
29

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL 74 * - 0 * - + COALESCE ( - 61, - + 67 + - + 98 * - - COUNT ( * ) ) * 19 / + + 36 + - COUNT ( * ) * - 77 + 50 + - 98
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9350
SELECT - 90 DIV 65 * - ( 10 ) * - 14 AS col0
----
-140

skipif mysql # not compatible
query I rowsort label-9350
SELECT - 90 / 65 * - ( 10 ) * - 14 AS col0
----
-140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9351
SELECT DISTINCT - 79 * CAST( + 72 AS SIGNED ) * - - 88 AS col1
----
-500544

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT - 79 * CAST ( + 72 AS INTEGER ) * - - 88 AS col1
----
-500544

query I rowsort
SELECT - ( - 45 ) * + 17
----
765

query I rowsort
SELECT ( + 40 ) col1
----
40

query II rowsort
SELECT ALL + 62, - 37 AS col1
----
62
-37

query I rowsort
SELECT NULLIF ( - + 5, - - 74 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT ALL NULLIF ( 7, 64 ) * 47 + ( 18 ) + + 35 + 7 + - 23 * + 35 * 90 * MAX( ALL 39 ) - 84 + - 43
----
-2825288

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL NULLIF ( 7, 64 ) * 47 + ( 18 ) + + 35 + 7 + - 23 * + 35 * 90 * MAX ( ALL 39 ) - 84 + - 43
----
-2825288

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT DISTINCT 86 * COUNT( * ) + 5 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT 86 * COUNT ( * ) + 5 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL - COUNT( ALL + 93 ) * 42 + 59
----
17

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL - COUNT ( ALL + 93 ) * 42 + 59
----
17

query I rowsort
SELECT DISTINCT + 16 * + - 56
----
-896

query I rowsort
SELECT - 11 * + 18
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-9361
SELECT - 88 + 1 DIV + 85 + - 45
----
-133

skipif mysql # not compatible
query I rowsort label-9361
SELECT - 88 + 1 / + 85 + - 45
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT MIN( - 91 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-9362
SELECT MIN ( - 91 ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9363
SELECT DISTINCT 59 AS col0, 7 * + SUM( DISTINCT - - 56 ) AS col0
----
59
392

skipif mysql # not compatible
query II rowsort label-9363
SELECT DISTINCT 59 AS col0, 7 * + SUM ( DISTINCT - - 56 ) AS col0
----
59
392

query I rowsort
SELECT + 64 + - 67 AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9365
SELECT ALL 75 DIV - ( + + 52 ), COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-9365
SELECT ALL 75 / - ( + + 52 ), COUNT ( * ) AS col2
----
-1
1

query I rowsort
SELECT + 68 + - - 45
----
113

query I rowsort
SELECT DISTINCT ( - + 38 ) AS col2
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-9368
SELECT + 90 DIV - - 78 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9368
SELECT + 90 / - - 78 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9369
SELECT - COUNT( * ) AS col0, 15 AS col1
----
-1
15

skipif mysql # not compatible
query II rowsort label-9369
SELECT - COUNT ( * ) AS col0, 15 AS col1
----
-1
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9370
SELECT + 48 * - 61 DIV + + 60 col2
----
-48

skipif mysql # not compatible
query I rowsort label-9370
SELECT + 48 * - 61 / + + 60 col2
----
-48

query I rowsort
SELECT ALL + 29 * - - 14 AS col2
----
406

query II rowsort
SELECT 90, 99 + - 30 * + 92 AS col1
----
90
-2661

query I rowsort
SELECT - 40 * - 54
----
2160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9374
SELECT ALL CAST( NULL AS SIGNED ) / - SUM( ALL - 35 ) / - 59 + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9374
SELECT ALL CAST ( NULL AS INTEGER ) / - SUM ( ALL - 35 ) / - 59 + - 91
----
NULL

query II rowsort
SELECT - 10, 69 + - 55 AS col2
----
-10
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT DISTINCT - + 37 + + NULLIF ( - 66, - NULLIF ( + - COUNT( ALL + - 23 ), - 39 / + 68 ) ) AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-9376
SELECT DISTINCT - + 37 + + NULLIF ( - 66, - NULLIF ( + - COUNT ( ALL + - 23 ), - 39 / + 68 ) ) AS col0
----
-103

query I rowsort
SELECT ALL COALESCE ( - 83, + + 3, + 3 )
----
-83

query I rowsort
SELECT DISTINCT 94 + + 14
----
108

query I rowsort
SELECT DISTINCT 8 + + + 45
----
53

onlyif mysql # DIV for integer division: 
query II rowsort label-9380
SELECT ALL 20 + - + 77 AS col0, 77 DIV 31
----
-57
2

skipif mysql # not compatible
query II rowsort label-9380
SELECT ALL 20 + - + 77 AS col0, 77 / 31
----
-57
2

query I rowsort
SELECT ALL 78 + + ( - + 75 ) * - 13
----
1053

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9382
SELECT + 20 DIV - 42 * - + 22 * MAX( ALL 2 ) + - 63
----
-63

skipif mysql # not compatible
query I rowsort label-9382
SELECT + 20 / - 42 * - + 22 * MAX ( ALL 2 ) + - 63
----
-63

query I rowsort
SELECT 88 + - 87 * 23 - - - 87 * + 43
----
-5654

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT ALL - CASE - 44 WHEN + 21 THEN - SUM( + 65 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL - CASE - 44 WHEN + 21 THEN - SUM ( + 65 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT ALL - SUM( + - 67 ) + COUNT( * ) * + + 25 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL - SUM ( + - 67 ) + COUNT ( * ) * + + 25 AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT 20 * - + 95 * - - 85 + - CAST( - + 78 AS SIGNED ) AS col1
----
-161422

skipif mysql # not compatible
query I rowsort label-9386
SELECT 20 * - + 95 * - - 85 + - CAST ( - + 78 AS INTEGER ) AS col1
----
-161422

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT DISTINCT - MIN( - 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT - MIN ( - 99 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT DISTINCT - MAX( DISTINCT + 8 ) + 74
----
66

skipif mysql # not compatible
query I rowsort label-9388
SELECT DISTINCT - MAX ( DISTINCT + 8 ) + 74
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9389
SELECT 26 * - COALESCE ( - 47, 1, - 57 DIV 3 + - - 17 ) * 62
----
75764

skipif mysql # not compatible
query I rowsort label-9389
SELECT 26 * - COALESCE ( - 47, 1, - 57 / 3 + - - 17 ) * 62
----
75764

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT 32 + - - COALESCE ( 68, 35 * - MAX( ALL - - 98 ) ) - 26 + 32 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-9390
SELECT 32 + - - COALESCE ( 68, 35 * - MAX ( ALL - - 98 ) ) - 26 + 32 AS col1
----
106

query I rowsort
SELECT ALL - 57 - 64
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-9392
SELECT 3 DIV - 92 * + + 32
----
0

skipif mysql # not compatible
query I rowsort label-9392
SELECT 3 / - 92 * + + 32
----
0

query I rowsort
SELECT - 93 * - 75 * 8 + ( 4 ) AS col2
----
55804

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT DISTINCT + COUNT( * ) - ( - 16 ) + - - 6 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT + COUNT ( * ) - ( - 16 ) + - - 6 AS col2
----
23

query I rowsort
SELECT 16 * 4 AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9396
SELECT ALL - AVG ( DISTINCT ( + CAST( NULL AS SIGNED ) ) ) * + AVG ( + NULLIF ( + + 95, 6 ) ) + + COUNT( * ) - - 23, + CASE - - 10 WHEN + 82 THEN 70 / + 92 WHEN 92 THEN NULL ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9396
SELECT ALL - AVG ( DISTINCT ( + CAST ( NULL AS INTEGER ) ) ) * + AVG ( + NULLIF ( + + 95, 6 ) ) + + COUNT ( * ) - - 23, + CASE - - 10 WHEN + 82 THEN 70 / + 92 WHEN 92 THEN NULL ELSE NULL END
----
NULL
NULL

query I rowsort
SELECT 13 * - 64
----
-832

query I rowsort
SELECT 31 * + 86
----
2666

onlyif mysql # aggregate syntax: 
query II rowsort label-9399
SELECT 93 * - 32, ( - 22 ) + + COUNT( * ) col1
----
-2976
-21

skipif mysql # not compatible
query II rowsort label-9399
SELECT 93 * - 32, ( - 22 ) + + COUNT ( * ) col1
----
-2976
-21

query I rowsort
SELECT + 15 * - NULLIF ( + 84, 29 ) AS col1
----
-1260

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9401
SELECT - 55 - + COUNT( * ) + - 88 * + + 39 - + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9401
SELECT - 55 - + COUNT ( * ) + - 88 * + + 39 - + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 99 + + 94 - + + 3
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT ALL + COUNT( * ) + 7 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL + COUNT ( * ) + 7 AS col0
----
8

query I rowsort
SELECT DISTINCT ( 8 ) + 54 col2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9405
SELECT 69 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9405
SELECT 69 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 97 + - + 48 + + - 43
----
6

query I rowsort
SELECT DISTINCT + 99 * - + 46 + - 20
----
-4574

query I rowsort
SELECT 91 + 6 + - 13 AS col2
----
84

query I rowsort
SELECT ALL 43 * + 91
----
3913

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT MAX( DISTINCT - 90 ) col2
----
-90

skipif mysql # not compatible
query I rowsort label-9410
SELECT MAX ( DISTINCT - 90 ) col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9411
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - COUNT( * ) + COUNT( * ), COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9411
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + COUNT ( * ), COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9412
SELECT DISTINCT - CASE - 90 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + 87 THEN NULL WHEN ( ( - - MAX( - 48 ) ) ) THEN NULL ELSE 95 * ( + ( + COUNT( * ) ) ) * 5 + + - ( 31 ) END AS col2, - NULLIF ( + 9, - 93 * - 21 ) * - COUNT( * )
----
-444
9

skipif mysql # not compatible
query II rowsort label-9412
SELECT DISTINCT - CASE - 90 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + 87 THEN NULL WHEN ( ( - - MAX ( - 48 ) ) ) THEN NULL ELSE 95 * ( + ( + COUNT ( * ) ) ) * 5 + + - ( 31 ) END AS col2, - NULLIF ( + 9, - 93 * - 21 ) * - COUNT ( * )
----
-444
9

query I rowsort
SELECT ALL - 61 * - + 13 col2
----
793

query I rowsort
SELECT DISTINCT 30 - + - 18
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT ALL SUM( ALL - 73 ) * - 62 * - + 81 * - - 46 * - + ( + 93 )
----
1568340468

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL SUM ( ALL - 73 ) * - 62 * - + 81 * - - 46 * - + ( + 93 )
----
1568340468

query I rowsort
SELECT DISTINCT - 44 * 16
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT NULLIF ( 1, + COUNT( * ) ) * + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT NULLIF ( 1, + COUNT ( * ) ) * + 8 AS col2
----
NULL

query I rowsort
SELECT 48 - + 13 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT ALL - COUNT( + 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL - COUNT ( + 38 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9420
SELECT ALL + 99 DIV + 48 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL + 99 / + 48 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9421
SELECT ( 50 ) DIV - 33
----
-1

skipif mysql # not compatible
query I rowsort label-9421
SELECT ( 50 ) / - 33
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9422
SELECT DISTINCT + 9 DIV + 4
----
2

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT + 9 / + 4
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9423
SELECT - CASE - 37 WHEN 44 THEN CAST( MIN( 19 ) AS SIGNED ) * 57 - 93 * - COUNT( * ) ELSE + 15 END * 30 col0
----
-450

skipif mysql # not compatible
query I rowsort label-9423
SELECT - CASE - 37 WHEN 44 THEN CAST ( MIN ( 19 ) AS INTEGER ) * 57 - 93 * - COUNT ( * ) ELSE + 15 END * 30 col0
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT - SUM( - 38 ) + - SUM( ALL - 83 ) * 8 AS col1
----
702

skipif mysql # not compatible
query I rowsort label-9424
SELECT - SUM ( - 38 ) + - SUM ( ALL - 83 ) * 8 AS col1
----
702

onlyif mysql # DIV for integer division: 
query I rowsort label-9425
SELECT ALL + 91 DIV - ( 18 * 70 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL + 91 / - ( 18 * 70 ) AS col0
----
0

query I rowsort
SELECT ALL - 36 + + 6
----
-30

query I rowsort
SELECT - 51 + - 87
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-9428
SELECT DISTINCT + 9 DIV 27
----
0

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT + 9 / 27
----
0

query I rowsort
SELECT - NULLIF ( 46, 86 * 21 ) + - ( + 35 ) AS col0
----
-81

query I rowsort
SELECT ALL + 64 + 83 * + 32 AS col1
----
2720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9431
SELECT ALL - 37 + - CAST( NULL AS SIGNED ) * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9431
SELECT ALL - 37 + - CAST ( NULL AS INTEGER ) * + 2
----
NULL

query I rowsort
SELECT ALL + 73 + COALESCE ( 85, + 51 ) AS col2
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9433
SELECT - SUM( CAST( NULL AS SIGNED ) ) * 52 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9433
SELECT - SUM ( CAST ( NULL AS INTEGER ) ) * 52 col2
----
NULL

query I rowsort
SELECT + 73 + 91
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT ALL + COUNT( * ) + + 91 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL + COUNT ( * ) + + 91 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT DISTINCT NULLIF ( - 98, - NULLIF ( COUNT( * ), - 24 * + AVG ( + 23 ) ) + ( 53 ) * + COUNT( * ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT NULLIF ( - 98, - NULLIF ( COUNT ( * ), - 24 * + AVG ( + 23 ) ) + ( 53 ) * + COUNT ( * ) ) AS col2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9437
SELECT ALL CASE + 30 WHEN 24 * 79 THEN NULL WHEN - 60 THEN 29 + - 54 / CAST( MAX( DISTINCT + CASE WHEN NOT 66 BETWEEN ( NULL ) AND + 21 * 91 THEN NULL ELSE + 23 END ) + + 24 AS SIGNED ) ELSE CAST( NULL AS SIGNED ) + - 38 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL CASE + 30 WHEN 24 * 79 THEN NULL WHEN - 60 THEN 29 + - 54 / CAST ( MAX ( DISTINCT + CASE WHEN NOT 66 BETWEEN ( NULL ) AND + 21 * 91 THEN NULL ELSE + 23 END ) + + 24 AS INTEGER ) ELSE CAST ( NULL AS INTEGER ) + - 38 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9438
SELECT - 78 + + NULLIF ( - 4, ( + 0 ) - + 98 * 42 ) DIV 50
----
-78

skipif mysql # not compatible
query I rowsort label-9438
SELECT - 78 + + NULLIF ( - 4, ( + 0 ) - + 98 * 42 ) / 50
----
-78

query I rowsort
SELECT ALL + 2 + + 62
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9440
SELECT DISTINCT NULLIF ( + 78, CAST( NULL AS SIGNED ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT NULLIF ( + 78, CAST ( NULL AS INTEGER ) ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT ALL CASE - 77 WHEN 57 THEN 41 WHEN + ( - CASE + COUNT( ALL 26 ) WHEN 80 + 81 THEN + 23 + - 7 * 71 ELSE + COUNT( * ) + + 99 END ) * 10 + + 64 THEN 98 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL CASE - 77 WHEN 57 THEN 41 WHEN + ( - CASE + COUNT ( ALL 26 ) WHEN 80 + 81 THEN + 23 + - 7 * 71 ELSE + COUNT ( * ) + + 99 END ) * 10 + + 64 THEN 98 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 7 * ( 15 )
----
105

query I rowsort
SELECT ALL ( + 3 ) * 60
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9444
SELECT + 24 + CASE 15 WHEN - COALESCE ( - 52, - 2 + 37 / - COUNT( ALL 68 ) ) THEN + CAST( NULL AS SIGNED ) ELSE - 92 END * 26
----
-2368

skipif mysql # not compatible
query I rowsort label-9444
SELECT + 24 + CASE 15 WHEN - COALESCE ( - 52, - 2 + 37 / - COUNT ( ALL 68 ) ) THEN + CAST ( NULL AS INTEGER ) ELSE - 92 END * 26
----
-2368

query I rowsort
SELECT ( 41 ) AS col2
----
41

query I rowsort
SELECT ALL + 75 * - 61 - 42 AS col0
----
-4617

query I rowsort
SELECT DISTINCT 24 * + 19 AS col1
----
456

query I rowsort
SELECT ALL ( 89 ) * + 31
----
2759

onlyif mysql # DIV for integer division: 
query I rowsort label-9449
SELECT + 89 + + 73 DIV + 39
----
90

skipif mysql # not compatible
query I rowsort label-9449
SELECT + 89 + + 73 / + 39
----
90

query I rowsort
SELECT + 47 * 81 AS col2
----
3807

query I rowsort
SELECT + 65 + - 15
----
50

query I rowsort
SELECT ALL + 39 * + ( - 71 )
----
-2769

onlyif mysql # DIV for integer division: 
query I rowsort label-9453
SELECT ALL 53 DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL 53 / - 60
----
0

query I rowsort
SELECT + 17 * ( + 15 )
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT - COUNT( * ) * 47 + 82 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9455
SELECT - COUNT ( * ) * 47 + 82 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT + 11 + + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-9456
SELECT + 11 + + COUNT ( * )
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9457
SELECT + CAST( NULL AS SIGNED ) * + 87 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT + CAST ( NULL AS INTEGER ) * + 87 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT + 70 + + COUNT( * ) * 39 col0
----
109

skipif mysql # not compatible
query I rowsort label-9458
SELECT + 70 + + COUNT ( * ) * 39 col0
----
109

query I rowsort
SELECT DISTINCT + 75 * 48 col0
----
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT ALL + 52 * MIN( DISTINCT 18 * - 61 ) + - 23 col2
----
-57119

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL + 52 * MIN ( DISTINCT 18 * - 61 ) + - 23 col2
----
-57119

query I rowsort
SELECT + - 36 * 21
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT ALL + + 31 * - MIN( 55 + + 81 ) AS col2
----
-4216

skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL + + 31 * - MIN ( 55 + + 81 ) AS col2
----
-4216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9463
SELECT DISTINCT + 66 * + 62 + + SUM( ALL + 69 ) DIV + 3 AS col2
----
4115

skipif mysql # not compatible
query I rowsort label-9463
SELECT DISTINCT + 66 * + 62 + + SUM ( ALL + 69 ) / + 3 AS col2
----
4115

query I rowsort
SELECT ALL COALESCE ( - 86, 95 + 65 ) * 43 + - 79
----
-3777

query I rowsort
SELECT DISTINCT + 1 * + 97 + + 31 * 3 AS col0
----
190

onlyif mysql # DIV for integer division: 
query I rowsort label-9466
SELECT DISTINCT 14 * + 2 + ( + 93 ) DIV + 25 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT 14 * + 2 + ( + 93 ) / + 25 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ALL 56 + CASE COALESCE ( + 45, - 71 * 40, + 24 ) WHEN - 15 + 40 THEN - 70 * NULLIF ( COUNT( * ) * ( - 10 * - COUNT( * ) ), 26 + 35 * + 63 ) + 36 WHEN 92 / - 16 - 18 THEN NULL ELSE NULL END * CASE + 12 WHEN - 35 THEN + 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL 56 + CASE COALESCE ( + 45, - 71 * 40, + 24 ) WHEN - 15 + 40 THEN - 70 * NULLIF ( COUNT ( * ) * ( - 10 * - COUNT ( * ) ), 26 + 35 * + 63 ) + 36 WHEN 92 / - 16 - 18 THEN NULL ELSE NULL END * CASE + 12 WHEN - 35 THEN + 2 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9468
SELECT - COALESCE ( - 83, 80 DIV 39 + 47 * + 75, + ( - 78 ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-9468
SELECT - COALESCE ( - 83, 80 / 39 + 47 * + 75, + ( - 78 ) ) AS col2
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9469
SELECT - 0 DIV ( + MAX( + 4 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9469
SELECT - 0 / ( + MAX ( + 4 ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9470
SELECT DISTINCT + CAST( MIN( - 67 ) AS SIGNED ) DIV 60 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9470
SELECT DISTINCT + CAST ( MIN ( - 67 ) AS INTEGER ) / 60 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL + 40 + - COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL + 40 + - COUNT ( * ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT + - COUNT( * ) - + 15 * - 64 AS col2
----
959

skipif mysql # not compatible
query I rowsort label-9472
SELECT + - COUNT ( * ) - + 15 * - 64 AS col2
----
959

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT - - MAX( + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-9473
SELECT - - MAX ( + 8 )
----
8

query I rowsort
SELECT ALL - + ( 79 ) * 10
----
-790

onlyif mysql # DIV for integer division: 
query I rowsort label-9475
SELECT - + 60 DIV + ( - 10 * - 99 )
----
0

skipif mysql # not compatible
query I rowsort label-9475
SELECT - + 60 / + ( - 10 * - 99 )
----
0

query I rowsort
SELECT ALL - 49 * + 27
----
-1323

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT - 75 * COALESCE ( COUNT( * ), 43 * - 39 + 44 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-9477
SELECT - 75 * COALESCE ( COUNT ( * ), 43 * - 39 + 44 ) AS col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9478
SELECT DISTINCT 45 DIV 35 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9478
SELECT DISTINCT 45 / 35 AS col0
----
1

query I rowsort
SELECT ALL + 70 - - 66 AS col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT DISTINCT + MIN( DISTINCT + 46 ) * - 49 AS col1
----
-2254

skipif mysql # not compatible
query I rowsort label-9480
SELECT DISTINCT + MIN ( DISTINCT + 46 ) * - 49 AS col1
----
-2254

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT DISTINCT + 88 - + + CASE + 17 WHEN COUNT( * ) * + 43 THEN NULL WHEN + 87 + - 3 THEN ( - 58 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT + 88 - + + CASE + 17 WHEN COUNT ( * ) * + 43 THEN NULL WHEN + 87 + - 3 THEN ( - 58 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT - ( ( 11 ) ) + - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-9482
SELECT - ( ( 11 ) ) + - COUNT ( * )
----
-12

query I rowsort
SELECT - 84 - + 71 AS col2
----
-155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9484
SELECT - CAST( + ( - NULLIF ( + ( COUNT( * ) ), - 93 ) ) AS SIGNED ) * 76 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-9484
SELECT - CAST ( + ( - NULLIF ( + ( COUNT ( * ) ), - 93 ) ) AS INTEGER ) * 76 AS col0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9485
SELECT DISTINCT CAST( - - 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT CAST ( - - 86 AS INTEGER )
----
86

query I rowsort
SELECT - 24 + + 44 * + 81 AS col1
----
3540

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT ALL + MIN( ALL - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL + MIN ( ALL - 69 )
----
-69

query I rowsort
SELECT ALL 12 * - 79 AS col1
----
-948

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT - COUNT( * ) * - NULLIF ( + 12, MIN( ALL - 40 ) ) col1
----
12

skipif mysql # not compatible
query I rowsort label-9489
SELECT - COUNT ( * ) * - NULLIF ( + 12, MIN ( ALL - 40 ) ) col1
----
12

query I rowsort
SELECT ALL 29 * - + NULLIF ( - 12, ( - 47 ) ) * 48
----
16704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9491
SELECT DISTINCT + COUNT( * ) DIV + 23 * + 17
----
0

skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT + COUNT ( * ) / + 23 * + 17
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9492
SELECT - 82 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-9492
SELECT - 82 / + 89
----
0

query I rowsort
SELECT DISTINCT 11 * - - 85 AS col0
----
935

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT + MIN( 57 )
----
57

skipif mysql # not compatible
query I rowsort label-9494
SELECT + MIN ( 57 )
----
57

query I rowsort
SELECT DISTINCT - 43 * - 39 AS col2
----
1677

query I rowsort
SELECT ALL + 85 + 90 col2
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT DISTINCT - + SUM( ALL 22 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT - + SUM ( ALL 22 ) AS col2
----
-22

query I rowsort
SELECT ALL 87 + - 58
----
29

query I rowsort
SELECT 98 - COALESCE ( 9, 64 * 12 + - 28 * - 81 ) * - 66
----
692

query I rowsort
SELECT - 1 + 23
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9501
SELECT + 20 * + 25 - COALESCE ( 71, 7 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT + 20 * + 25 - COALESCE ( 71, 7 ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9502
SELECT MAX( - 90 ) + NULLIF ( MIN( 35 ), + 42 + CAST( NULL AS SIGNED ) * - ( + MAX( 6 ) ) )
----
-55

skipif mysql # not compatible
query I rowsort label-9502
SELECT MAX ( - 90 ) + NULLIF ( MIN ( 35 ), + 42 + CAST ( NULL AS INTEGER ) * - ( + MAX ( 6 ) ) )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT - COUNT( + 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-9503
SELECT - COUNT ( + 24 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9504
SELECT ALL + CASE 42 WHEN - ( + CAST( - 73 AS SIGNED ) ) THEN + 71 * 28 + + 56 / - 81 ELSE NULL END * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL + CASE 42 WHEN - ( + CAST ( - 73 AS INTEGER ) ) THEN + 71 * 28 + + 56 / - 81 ELSE NULL END * 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT MIN( 1 ) * 95 + 99 AS col1
----
194

skipif mysql # not compatible
query I rowsort label-9505
SELECT MIN ( 1 ) * 95 + 99 AS col1
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT DISTINCT + ( COUNT( * ) ) * NULLIF ( 9, COUNT( * ) )
----
9

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT + ( COUNT ( * ) ) * NULLIF ( 9, COUNT ( * ) )
----
9

query I rowsort
SELECT 16 + - 32
----
-16

query I rowsort
SELECT ALL 34 * + 29 AS col1
----
986

query I rowsort
SELECT 47 * + + 81 * 97
----
369279

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT ALL MIN( - + 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL MIN ( - + 41 )
----
-41

query II rowsort
SELECT 71, + 73 AS col0
----
71
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9512
SELECT 26 + + 40 * - + 0 + 20 DIV + 71
----
26

skipif mysql # not compatible
query I rowsort label-9512
SELECT 26 + + 40 * - + 0 + 20 / + 71
----
26

query I rowsort
SELECT 97 * - 50
----
-4850

query I rowsort
SELECT 32 * 75 * + - 47 * 56
----
-6316800

onlyif mysql # aggregate syntax: 
query II rowsort label-9515
SELECT 84 AS col1, COUNT( * ) * - 9 AS col1
----
84
-9

skipif mysql # not compatible
query II rowsort label-9515
SELECT 84 AS col1, COUNT ( * ) * - 9 AS col1
----
84
-9

query II rowsort
SELECT - 26, 11 * 98 AS col1
----
-26
1078

onlyif mysql # DIV for integer division: 
query I rowsort label-9517
SELECT 51 DIV - + 83 col1
----
0

skipif mysql # not compatible
query I rowsort label-9517
SELECT 51 / - + 83 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9518
SELECT DISTINCT - CAST( - 44 AS SIGNED ) * - + 40 AS col2
----
-1760

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT - CAST ( - 44 AS INTEGER ) * - + 40 AS col2
----
-1760

query I rowsort
SELECT 32 * + 20
----
640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9520
SELECT ALL 6 DIV COUNT( * ) * - 73
----
-438

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL 6 / COUNT ( * ) * - 73
----
-438

onlyif mysql # DIV for integer division: 
query I rowsort label-9521
SELECT 41 DIV - 94 * - 98
----
0

skipif mysql # not compatible
query I rowsort label-9521
SELECT 41 / - 94 * - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT ALL - 67 + SUM( DISTINCT + COALESCE ( + 58, - 19 * - 21 + 6 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL - 67 + SUM ( DISTINCT + COALESCE ( + 58, - 19 * - 21 + 6 ) )
----
-9

query I rowsort
SELECT ALL + 13 * + 50
----
650

query I rowsort
SELECT ALL + 40 * - 10
----
-400

query II rowsort
SELECT + 49, - 3 * + 15 AS col1
----
49
-45

query I rowsort
SELECT 47 + + 90 + 89 * - 78
----
-6805

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT DISTINCT - NULLIF ( + CASE 90 WHEN + COUNT( * ) * 59 THEN NULL ELSE 25 END, + 5 * 62 + 44 ) + 70 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT - NULLIF ( + CASE 90 WHEN + COUNT ( * ) * 59 THEN NULL ELSE 25 END, + 5 * 62 + 44 ) + 70 AS col1
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-9528
SELECT + 90 AS col2, - COUNT( * )
----
90
-1

skipif mysql # not compatible
query II rowsort label-9528
SELECT + 90 AS col2, - COUNT ( * )
----
90
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT ALL - COUNT( * ) + - - 3
----
2

skipif mysql # not compatible
query I rowsort label-9529
SELECT ALL - COUNT ( * ) + - - 3
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT DISTINCT 67 * - - COUNT( * ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT 67 * - - COUNT ( * ) AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9531
SELECT ALL + 34 + CASE - 59 WHEN + COUNT( * ) THEN 31 WHEN + 62 THEN - 74 ELSE - 80 - - CAST( NULL AS SIGNED ) * ( CASE COALESCE ( + 4, + NULLIF ( - ( + 29 ), + 62 + 79 ) + 27 * - 26, 65 - 27 ) WHEN 90 + + COUNT( * ) / 84 THEN 74 * 30 ELSE NULL END + 36 * NULLIF ( 73, + 84 ) ) END * + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL + 34 + CASE - 59 WHEN + COUNT ( * ) THEN 31 WHEN + 62 THEN - 74 ELSE - 80 - - CAST ( NULL AS INTEGER ) * ( CASE COALESCE ( + 4, + NULLIF ( - ( + 29 ), + 62 + 79 ) + 27 * - 26, 65 - 27 ) WHEN 90 + + COUNT ( * ) / 84 THEN 74 * 30 ELSE NULL END + 36 * NULLIF ( 73, + 84 ) ) END * + 67 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9532
SELECT CASE + + 47 WHEN COUNT( DISTINCT 29 ) * + SUM( + 98 * 99 ) THEN - 29 WHEN - CASE 31 WHEN - 12 * CASE 48 * 69 WHEN MAX( DISTINCT 42 ) / - CAST( AVG ( + NULLIF ( 94, 12 ) ) AS SIGNED ) THEN NULL WHEN + 72 * + 65 THEN CASE - 89 WHEN CAST( NULL AS SIGNED ) THEN 93 END ELSE NULL END THEN + 78 - 50 END * - 25 THEN - 96 + + 53 * + 1 WHEN 43 THEN - 46 ELSE NULL END * 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT CASE + + 47 WHEN COUNT ( DISTINCT 29 ) * + SUM ( + 98 * 99 ) THEN - 29 WHEN - CASE 31 WHEN - 12 * CASE 48 * 69 WHEN MAX ( DISTINCT 42 ) / - CAST ( AVG ( + NULLIF ( 94, 12 ) ) AS INTEGER ) THEN NULL WHEN + 72 * + 65 THEN CASE - 89 WHEN CAST ( NULL AS INTEGER ) THEN 93 END ELSE NULL END THEN + 78 - 50 END * - 25 THEN - 96 + + 53 * + 1 WHEN 43 THEN - 46 ELSE NULL END * 80 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9533
SELECT ALL - 65 / - CAST( NULL AS SIGNED ) + + + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL - 65 / - CAST ( NULL AS INTEGER ) + + + 84 AS col2
----
NULL

query I rowsort
SELECT 13 + + - 94 + - ( 11 ) AS col1
----
-92

query I rowsort
SELECT + + COALESCE ( - + ( 12 ), + 67, + 83 ) AS col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9536
SELECT ALL + - 84 - - - CAST( - 7 AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL + - 84 - - - CAST ( - 7 AS INTEGER )
----
-77

query II rowsort
SELECT + + 46, + 44 col1
----
46
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT 62 * NULLIF ( + - 99, CASE 59 WHEN - COUNT( * ) THEN - 95 * 50 ELSE - ( + 65 ) END + + 38 )
----
-6138

skipif mysql # not compatible
query I rowsort label-9538
SELECT 62 * NULLIF ( + - 99, CASE 59 WHEN - COUNT ( * ) THEN - 95 * 50 ELSE - ( + 65 ) END + + 38 )
----
-6138

query II rowsort
SELECT + + 5 AS col2, 52
----
5
52

query I rowsort
SELECT ALL 52 * + + NULLIF ( - 88, - ( + 56 ) * 68 ) AS col2
----
-4576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9541
SELECT 92 DIV - 62 - + COUNT( * ) * - 9 col0
----
8

skipif mysql # not compatible
query I rowsort label-9541
SELECT 92 / - 62 - + COUNT ( * ) * - 9 col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9542
SELECT - CAST( - - 45 AS SIGNED ) * - COUNT( * ) + + COALESCE ( - COUNT( * ), + 76 * 96 )
----
44

skipif mysql # not compatible
query I rowsort label-9542
SELECT - CAST ( - - 45 AS INTEGER ) * - COUNT ( * ) + + COALESCE ( - COUNT ( * ), + 76 * 96 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT ALL - SUM( DISTINCT - 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL - SUM ( DISTINCT - 83 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT DISTINCT - + 55 * + COUNT( * ) * 61
----
-3355

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT - + 55 * + COUNT ( * ) * 61
----
-3355

query II rowsort
SELECT + 31 AS col2, 96 AS col0
----
31
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT - COUNT( * ) * NULLIF ( 89, COUNT( * ) * - 50 )
----
-89

skipif mysql # not compatible
query I rowsort label-9546
SELECT - COUNT ( * ) * NULLIF ( 89, COUNT ( * ) * - 50 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT DISTINCT - - 42 - - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-9547
SELECT DISTINCT - - 42 - - COUNT ( * )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9548
SELECT DISTINCT 97 DIV ( COUNT( * ) ) * ( + 43 ) + - COALESCE ( + 43, 86 * + 14 ) col1
----
4128

skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT 97 / ( COUNT ( * ) ) * ( + 43 ) + - COALESCE ( + 43, 86 * + 14 ) col1
----
4128

query II rowsort
SELECT - 31 AS col0, 39 * + 45 AS col0
----
-31
1755

query I rowsort
SELECT ALL ( + 84 ) col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT - + CASE - - ( + 67 ) WHEN + 72 THEN NULL WHEN 12 THEN + 93 * + 86 WHEN + 30 * COUNT( * ) + + 22 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9551
SELECT - + CASE - - ( + 67 ) WHEN + 72 THEN NULL WHEN 12 THEN + 93 * + 86 WHEN + 30 * COUNT ( * ) + + 22 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT COUNT( + + 66 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9552
SELECT COUNT ( + + 66 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT NULLIF ( + + 58, 76 ) + + - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-9553
SELECT NULLIF ( + + 58, 76 ) + + - COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT - MIN( + 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-9554
SELECT - MIN ( + 26 )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9555
SELECT NULLIF ( ( - 88 ), + 75 * - 34 ) - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9555
SELECT NULLIF ( ( - 88 ), + 75 * - 34 ) - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 36 * 54
----
1944

query I rowsort
SELECT 32 * 0 * - + 27
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT - MAX( - - 51 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-9558
SELECT - MAX ( - - 51 ) AS col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9559
SELECT ALL COALESCE ( + 80, 31 + CAST( 45 AS SIGNED ) ) + + 72
----
152

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL COALESCE ( + 80, 31 + CAST ( 45 AS INTEGER ) ) + + 72
----
152

query I rowsort
SELECT DISTINCT 65 * 0 AS col2
----
0

query I rowsort
SELECT ALL + 35 + 41 * - 51 * + 85 * - 15
----
2666060

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT ALL - 81 + - COUNT( * ) + - - 61 + 45 * - MAX( DISTINCT - 7 )
----
294

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL - 81 + - COUNT ( * ) + - - 61 + 45 * - MAX ( DISTINCT - 7 )
----
294

onlyif mysql # DIV for integer division: 
query I rowsort label-9563
SELECT 22 DIV 26
----
0

skipif mysql # not compatible
query I rowsort label-9563
SELECT 22 / 26
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9564
SELECT ALL 94 + + + 20 - + + 69 + - 91 + - 94 DIV - 56 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL 94 + + + 20 - + + 69 + - 91 + - 94 / - 56 AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9565
SELECT + 76 / CASE AVG ( 52 ) WHEN - 82 / - COUNT( * ) + - COUNT( * ) THEN COUNT( * ) WHEN 29 * COUNT( * ) THEN NULL END * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9565
SELECT + 76 / CASE AVG ( 52 ) WHEN - 82 / - COUNT ( * ) + - COUNT ( * ) THEN COUNT ( * ) WHEN 29 * COUNT ( * ) THEN NULL END * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 35 + + NULLIF ( 1, 82 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT + COALESCE ( - - 4, + + SUM( 86 ), 42 )
----
4

skipif mysql # not compatible
query I rowsort label-9567
SELECT + COALESCE ( - - 4, + + SUM ( 86 ), 42 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT ALL + 7 * + NULLIF ( - 66, + + 98 ) * + 63 + ( SUM( 81 ) + - 77 ) col1
----
-29102

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL + 7 * + NULLIF ( - 66, + + 98 ) * + 63 + ( SUM ( 81 ) + - 77 ) col1
----
-29102

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT ALL + 45 * - - MAX( DISTINCT - 57 )
----
-2565

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL + 45 * - - MAX ( DISTINCT - 57 )
----
-2565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9570
SELECT CASE + COALESCE ( - ( 36 ), 91 * ( 6 ), - 73, 79 ) WHEN CAST( - 13 AS SIGNED ) THEN NULL WHEN - 10 THEN - 57 / - 12 ELSE 73 * COUNT( * ) END AS col2
----
73

skipif mysql # not compatible
query I rowsort label-9570
SELECT CASE + COALESCE ( - ( 36 ), 91 * ( 6 ), - 73, 79 ) WHEN CAST ( - 13 AS INTEGER ) THEN NULL WHEN - 10 THEN - 57 / - 12 ELSE 73 * COUNT ( * ) END AS col2
----
73

query I rowsort
SELECT ALL 24 * 89 - + - 65 + - 93 * - 31 AS col1
----
5084

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT ALL - CASE 30 WHEN - 74 + - 45 THEN - 12 * 77 ELSE NULL END * + COALESCE ( COUNT( * ), 28 + 88 * 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL - CASE 30 WHEN - 74 + - 45 THEN - 12 * 77 ELSE NULL END * + COALESCE ( COUNT ( * ), 28 + 88 * 74 )
----
NULL

query I rowsort
SELECT - 26 * - 23 AS col1
----
598

query I rowsort
SELECT ALL - 2 * - 22 + + 60
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT + 92 - MAX( + + 15 ) * + + 62 AS col0
----
-838

skipif mysql # not compatible
query I rowsort label-9575
SELECT + 92 - MAX ( + + 15 ) * + + 62 AS col0
----
-838

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9576
SELECT - 61 DIV - COUNT( * ) + + - 6 DIV 12
----
61

skipif mysql # not compatible
query I rowsort label-9576
SELECT - 61 / - COUNT ( * ) + + - 6 / 12
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT ALL - + MIN( ( + 32 ) ) * ( + 77 ) * 36 AS col0
----
-88704

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL - + MIN ( ( + 32 ) ) * ( + 77 ) * 36 AS col0
----
-88704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9578
SELECT ALL + CAST( 47 AS SIGNED ) * + 35
----
1645

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL + CAST ( 47 AS INTEGER ) * + 35
----
1645

query I rowsort
SELECT - 55 - 75 * - ( ( COALESCE ( 79, 19, - 53 + + 87 ) ) )
----
5870

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT - ( - 62 ) * - - COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9580
SELECT - ( - 62 ) * - - COUNT ( * ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT + 82 + COUNT( * ) col1
----
83

skipif mysql # not compatible
query I rowsort label-9581
SELECT + 82 + COUNT ( * ) col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT ALL + + 77 * ( - - COUNT( * ) ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL + + 77 * ( - - COUNT ( * ) ) AS col1
----
77

query I rowsort
SELECT - 22 + + - 2 AS col0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9584
SELECT + 78 DIV MAX( - 1 ) * + 80 * - MIN( 57 )
----
355680

skipif mysql # not compatible
query I rowsort label-9584
SELECT + 78 / MAX ( - 1 ) * + 80 * - MIN ( 57 )
----
355680

query I rowsort
SELECT - 48 + + + 38 col1
----
-10

query I rowsort
SELECT ALL + 12 + - 74
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT ALL 13 + - - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL 13 + - - COUNT ( * )
----
14

query I rowsort
SELECT ALL - 40 * - 5 AS col0
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ALL 89 + 84 * + + 72 + + + 66 * 20 * - COUNT( - 38 ) col0
----
4817

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL 89 + 84 * + + 72 + + + 66 * 20 * - COUNT ( - 38 ) col0
----
4817

query I rowsort
SELECT - 6 + - 46 AS col2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9591
SELECT + ( - COALESCE ( 36, - CAST( - + 81 AS SIGNED ), - CAST( - 47 AS SIGNED ) * 89 + + 74 ) ) + COUNT( * ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-9591
SELECT + ( - COALESCE ( 36, - CAST ( - + 81 AS INTEGER ), - CAST ( - 47 AS INTEGER ) * 89 + + 74 ) ) + COUNT ( * ) AS col0
----
-35

query I rowsort
SELECT + 35 * + - 90 * 52
----
-163800

query I rowsort
SELECT ALL 46 * + - 36
----
-1656

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT - COALESCE ( + + COUNT( * ), - 13 + 77 + + COUNT( + 13 ) * 72, + 15 * NULLIF ( - COUNT( NULLIF ( 38, 60 ) ), - COUNT( * ) * 56 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9594
SELECT - COALESCE ( + + COUNT ( * ), - 13 + 77 + + COUNT ( + 13 ) * 72, + 15 * NULLIF ( - COUNT ( NULLIF ( 38, 60 ) ), - COUNT ( * ) * 56 ) ) col2
----
-1

query I rowsort
SELECT ALL 40 - + 59 AS col1
----
-19

query I rowsort
SELECT ALL 99 - - 7 * - + 11
----
22

query I rowsort
SELECT + NULLIF ( 99, + 40 ) * + 31
----
3069

query II rowsort
SELECT - + 7 AS col1, 5 col1
----
-7
5

query I rowsort
SELECT + 23 + + - 93
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9600
SELECT ALL + 27 / - 89 * + 80 * + ( - - 61 ) * CASE 89 WHEN CAST( NULL AS SIGNED ) THEN COUNT( * ) * COUNT( * ) WHEN 35 THEN NULL ELSE NULL END - 35 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL + 27 / - 89 * + 80 * + ( - - 61 ) * CASE 89 WHEN CAST ( NULL AS INTEGER ) THEN COUNT ( * ) * COUNT ( * ) WHEN 35 THEN NULL ELSE NULL END - 35 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT + MIN( - 72 ) * + ( - - 16 )
----
-1152

skipif mysql # not compatible
query I rowsort label-9601
SELECT + MIN ( - 72 ) * + ( - - 16 )
----
-1152

onlyif mysql # DIV for integer division: 
query I rowsort label-9602
SELECT ALL + 82 DIV COALESCE ( + + 52, + COALESCE ( - 88, - 64 ), 21 * 65 - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL + 82 / COALESCE ( + + 52, + COALESCE ( - 88, - 64 ), 21 * 65 - 46 )
----
1

query I rowsort
SELECT + - 48 * + 26 + + + 10
----
-1238

query I rowsort
SELECT DISTINCT + + 80 * - 74
----
-5920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9605
SELECT + 9 * - + 11 * - + 88 * - 67 / - 66 + + CAST( NULL AS SIGNED ) * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT + 9 * - + 11 * - + 88 * - 67 / - 66 + + CAST ( NULL AS INTEGER ) * 23
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9606
SELECT - - 27 DIV 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9606
SELECT - - 27 / 85 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9607
SELECT ALL 0 DIV 15 * + 28
----
0

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL 0 / 15 * + 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT - 44 * + - CASE - + MIN( ALL + 16 ) WHEN + 15 + NULLIF ( 99, 41 * 79 + 13 / 65 ) THEN COALESCE ( ( 1 ), - 69 * 3 ) * 78 WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9608
SELECT - 44 * + - CASE - + MIN ( ALL + 16 ) WHEN + 15 + NULLIF ( 99, 41 * 79 + 13 / 65 ) THEN COALESCE ( ( 1 ), - 69 * 3 ) * 78 WHEN COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + + ( - - 43 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT ALL - 30 * + MAX( ALL 50 )
----
-1500

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL - 30 * + MAX ( ALL 50 )
----
-1500

query I rowsort
SELECT ( - 2 ) * - 65 + + - 60 + + 9 AS col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9612
SELECT + - CASE 86 WHEN - - 71 * + 20 * + 47 THEN - MIN( 42 ) WHEN + 68 + - CASE 44 + - COUNT( * ) WHEN + 3 THEN 55 ELSE 20 END THEN 31 DIV 86 ELSE 46 END
----
-46

skipif mysql # not compatible
query I rowsort label-9612
SELECT + - CASE 86 WHEN - - 71 * + 20 * + 47 THEN - MIN ( 42 ) WHEN + 68 + - CASE 44 + - COUNT ( * ) WHEN + 3 THEN 55 ELSE 20 END THEN 31 / 86 ELSE 46 END
----
-46

query II rowsort
SELECT 41 AS col2, + 75 AS col0
----
41
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT - + MIN( + + 57 ) * - + 60
----
3420

skipif mysql # not compatible
query I rowsort label-9614
SELECT - + MIN ( + + 57 ) * - + 60
----
3420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9615
SELECT ALL - CAST( - COALESCE ( - 47, 98, + 56 ) AS SIGNED ) * - - 61 + 17
----
-2850

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL - CAST ( - COALESCE ( - 47, 98, + 56 ) AS INTEGER ) * - - 61 + 17
----
-2850

query I rowsort
SELECT - 1 * + - 75 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT ALL CASE + MIN( DISTINCT + - 81 ) WHEN - 81 THEN NULL WHEN SUM( ALL + 93 ) + 23 THEN COUNT( * ) WHEN COUNT( * ) / ( 84 / - ( + 88 / 97 ) ) THEN 6 - 55 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL CASE + MIN ( DISTINCT + - 81 ) WHEN - 81 THEN NULL WHEN SUM ( ALL + 93 ) + 23 THEN COUNT ( * ) WHEN COUNT ( * ) / ( 84 / - ( + 88 / 97 ) ) THEN 6 - 55 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9618
SELECT 25 + - - 53 + - + 35 + + - 30 DIV + 49 * CAST( + 13 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-9618
SELECT 25 + - - 53 + - + 35 + + - 30 / + 49 * CAST ( + 13 AS INTEGER )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9619
SELECT SUM( - - 73 ) * 42 + + + 15 + - CAST( + - 91 AS SIGNED ) * COUNT( * ) DIV + 27
----
3084

skipif mysql # not compatible
query I rowsort label-9619
SELECT SUM ( - - 73 ) * 42 + + + 15 + - CAST ( + - 91 AS INTEGER ) * COUNT ( * ) / + 27
----
3084

query II rowsort
SELECT 43 col0, - 1 AS col0
----
43
-1

query I rowsort
SELECT 50 - + + 6 AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9622
SELECT 60 - - COUNT( * ) + + 70 + + 42 * + CAST( NULL AS SIGNED ) * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9622
SELECT 60 - - COUNT ( * ) + + 70 + + 42 * + CAST ( NULL AS INTEGER ) * COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9623
SELECT ALL - 18 - + CAST( NULL AS SIGNED ) * 12 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL - 18 - + CAST ( NULL AS INTEGER ) * 12 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9624
SELECT DISTINCT + CAST( NULLIF ( 44, - - COUNT( * ) ) AS SIGNED ) * ( - ( - 90 ) )
----
3960

skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT + CAST ( NULLIF ( 44, - - COUNT ( * ) ) AS INTEGER ) * ( - ( - 90 ) )
----
3960

query I rowsort
SELECT ALL 99 - + + 25 AS col1
----
74

query I rowsort
SELECT 76 * - 42
----
-3192

query II rowsort
SELECT DISTINCT 53, ( - + 42 ) AS col0
----
53
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT COUNT( - - 11 ) - - 51
----
52

skipif mysql # not compatible
query I rowsort label-9628
SELECT COUNT ( - - 11 ) - - 51
----
52

query II rowsort
SELECT 24 col1, + CASE - + 69 WHEN 58 + ( + 14 ) * 10 THEN + 25 ELSE 98 * 22 END col2
----
24
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT DISTINCT ( - COUNT( ALL + - 44 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT ( - COUNT ( ALL + - 44 ) )
----
-1

query II rowsort
SELECT ALL - 78 col1, - 82 AS col2
----
-78
-82

query I rowsort
SELECT + 35 * + + 78
----
2730

onlyif mysql # aggregate syntax: 
query II rowsort label-9633
SELECT - - 98 col0, COUNT( * ) AS col0
----
98
1

skipif mysql # not compatible
query II rowsort label-9633
SELECT - - 98 col0, COUNT ( * ) AS col0
----
98
1

query I rowsort
SELECT + 79 + - + 89
----
-10

query I rowsort
SELECT DISTINCT + 53 * - 81
----
-4293

query I rowsort
SELECT DISTINCT - - 27 col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT - 1 * - SUM( - + 98 ) - 40
----
-138

skipif mysql # not compatible
query I rowsort label-9637
SELECT - 1 * - SUM ( - + 98 ) - 40
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9638
SELECT ALL COUNT( * ) * + MIN( - - 30 ) * + + 12 + CAST( + 49 AS SIGNED )
----
409

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL COUNT ( * ) * + MIN ( - - 30 ) * + + 12 + CAST ( + 49 AS INTEGER )
----
409

query I rowsort
SELECT ALL - - COALESCE ( - 46, - + 64 * 42 + 89 )
----
-46

query I rowsort
SELECT DISTINCT - ( 92 ) AS col1
----
-92

query I rowsort
SELECT + 68 + + - 93
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT ALL - + NULLIF ( - 84, + - ( + + MIN( - + 75 ) ) )
----
84

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL - + NULLIF ( - 84, + - ( + + MIN ( - + 75 ) ) )
----
84

query I rowsort
SELECT + - COALESCE ( + 46, + + 70 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT CASE + COUNT( * ) WHEN 3 THEN - COUNT( * ) * + + 80 WHEN - + COALESCE ( ( + 6 ), - 59 ) * - NULLIF ( 70 * 64, 99 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9644
SELECT CASE + COUNT ( * ) WHEN 3 THEN - COUNT ( * ) * + + 80 WHEN - + COALESCE ( ( + 6 ), - 59 ) * - NULLIF ( 70 * 64, 99 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9645
SELECT + COUNT( * ) AS col0, 51 * - 58 - - + 93 DIV + + 84 AS col1
----
1
-2957

skipif mysql # not compatible
query II rowsort label-9645
SELECT + COUNT ( * ) AS col0, 51 * - 58 - - + 93 / + + 84 AS col1
----
1
-2957

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9646
SELECT COUNT( * ) DIV - 6 * + + 11 * - 93 col1
----
0

skipif mysql # not compatible
query I rowsort label-9646
SELECT COUNT ( * ) / - 6 * + + 11 * - 93 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT ALL + 10 + + 94 + - - 4 * SUM( - ( + 73 ) ) * 76 AS col0
----
-22088

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL + 10 + + 94 + - - 4 * SUM ( - ( + 73 ) ) * 76 AS col0
----
-22088

query I rowsort
SELECT + 2 * - - 86 * + - 92 + 27 AS col2
----
-15797

query I rowsort
SELECT - 17 + - 5 AS col1
----
-22

query I rowsort
SELECT ALL 57 + - + 97
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT + SUM( - + 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-9651
SELECT + SUM ( - + 85 ) AS col1
----
-85

query I rowsort
SELECT 35 + 96 + 86 AS col0
----
217

query I rowsort
SELECT 41 * 85
----
3485

query I rowsort
SELECT DISTINCT - 40 * - + 99
----
3960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9655
SELECT 25 + + + 61 + CAST( - 50 AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-9655
SELECT 25 + + + 61 + CAST ( - 50 AS INTEGER )
----
36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9656
SELECT ALL 77 + 8 * 99 col2, - SUM( CAST( NULL AS DECIMAL ) ) + + 38 AS col2
----
869
NULL

skipif mysql # not compatible
query II rowsort label-9656
SELECT ALL 77 + 8 * 99 col2, - SUM ( CAST ( NULL AS REAL ) ) + + 38 AS col2
----
869
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9657
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 54 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 54 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT ( + COUNT( * ) ) + - - COUNT( * ) * + 5 + - - 49
----
55

skipif mysql # not compatible
query I rowsort label-9658
SELECT ( + COUNT ( * ) ) + - - COUNT ( * ) * + 5 + - - 49
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT ALL + 77 * - 65 * COUNT( * ) AS col1
----
-5005

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL + 77 * - 65 * COUNT ( * ) AS col1
----
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT MAX( ALL 92 ) + - 56
----
36

skipif mysql # not compatible
query I rowsort label-9660
SELECT MAX ( ALL 92 ) + - 56
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9661
SELECT 60 + MIN( DISTINCT + + NULLIF ( CAST( NULL AS SIGNED ), - + 28 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT 60 + MIN ( DISTINCT + + NULLIF ( CAST ( NULL AS INTEGER ), - + 28 ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9662
SELECT 66 * - 64 AS col2, + 26 * - COUNT( DISTINCT + + 20 )
----
-4224
-26

skipif mysql # not compatible
query II rowsort label-9662
SELECT 66 * - 64 AS col2, + 26 * - COUNT ( DISTINCT + + 20 )
----
-4224
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT ALL - MIN( DISTINCT 27 ) - ( - 76 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL - MIN ( DISTINCT 27 ) - ( - 76 ) AS col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-9664
SELECT DISTINCT + 32 DIV + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT + 32 / + 83 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT - MIN( ALL - + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-9665
SELECT - MIN ( ALL - + 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT ALL + 87 - + 14 + - MIN( + + 30 ) + - SUM( ALL + + 8 ) * - COUNT( * ) * - 53 * 57
----
-24125

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL + 87 - + 14 + - MIN ( + + 30 ) + - SUM ( ALL + + 8 ) * - COUNT ( * ) * - 53 * 57
----
-24125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9667
SELECT DISTINCT - 33 * + 51 * + CAST( + CASE + ( COUNT( * ) ) WHEN 91 + - 14 THEN MAX( ALL 94 ) WHEN 10 / + 1 THEN 27 ELSE - 74 * - 52 END AS SIGNED )
----
-6476184

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT - 33 * + 51 * + CAST ( + CASE + ( COUNT ( * ) ) WHEN 91 + - 14 THEN MAX ( ALL 94 ) WHEN 10 / + 1 THEN 27 ELSE - 74 * - 52 END AS INTEGER )
----
-6476184

query I rowsort
SELECT 4 + - 74 AS col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9669
SELECT + 49 DIV CAST( + SUM( DISTINCT 50 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9669
SELECT + 49 / CAST ( + SUM ( DISTINCT 50 ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9670
SELECT - COUNT( * ) * + 63 AS col2, 73
----
-63
73

skipif mysql # not compatible
query II rowsort label-9670
SELECT - COUNT ( * ) * + 63 AS col2, 73
----
-63
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9671
SELECT DISTINCT - - 21 DIV - - 45 col1
----
0

skipif mysql # not compatible
query I rowsort label-9671
SELECT DISTINCT - - 21 / - - 45 col1
----
0

query I rowsort
SELECT 13 + 82
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9673
SELECT ALL - - COUNT( * ) * - CASE CAST( NULL AS SIGNED ) WHEN + 59 THEN NULL WHEN - 64 - COUNT( * ) DIV - - 72 * - 13 + + 54 THEN NULL ELSE COALESCE ( 77, + 87 ) END DIV 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL - - COUNT ( * ) * - CASE CAST ( NULL AS INTEGER ) WHEN + 59 THEN NULL WHEN - 64 - COUNT ( * ) / - - 72 * - 13 + + 54 THEN NULL ELSE COALESCE ( 77, + 87 ) END / 96 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9674
SELECT CAST( 69 AS SIGNED ) AS col0, 76 - - SUM( + 8 ) DIV - 18
----
69
76

skipif mysql # not compatible
query II rowsort label-9674
SELECT CAST ( 69 AS INTEGER ) AS col0, 76 - - SUM ( + 8 ) / - 18
----
69
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT + 8 + + - ( + 90 ) + - - MIN( DISTINCT - 33 ) + + 37
----
-78

skipif mysql # not compatible
query I rowsort label-9675
SELECT + 8 + + - ( + 90 ) + - - MIN ( DISTINCT - 33 ) + + 37
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9676
SELECT + COUNT( ALL - 40 ) DIV 2
----
0

skipif mysql # not compatible
query I rowsort label-9676
SELECT + COUNT ( ALL - 40 ) / 2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9677
SELECT - 50 DIV + 75 + - + 31 + - - 36 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-9677
SELECT - 50 / + 75 + - + 31 + - - 36 AS col1
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-9678
SELECT 62 + - 55 AS col0, + 48 + + 60 DIV 47 DIV + - 10 * + - 85 + + 1
----
7
49

skipif mysql # not compatible
query II rowsort label-9678
SELECT 62 + - 55 AS col0, + 48 + + 60 / 47 / + - 10 * + - 85 + + 1
----
7
49

query I rowsort
SELECT - 1 * + 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL - 96 * 10 + + + COUNT( - 13 ) + + 96 - + + COUNT( * )
----
-864

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL - 96 * 10 + + + COUNT ( - 13 ) + + 96 - + + COUNT ( * )
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT ALL - + COUNT( ALL - 36 ) * + - 74 + + 28 + + 86 AS col1
----
188

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL - + COUNT ( ALL - 36 ) * + - 74 + + 28 + + 86 AS col1
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT - - COUNT( * ) * 78 + - 96 * + - COUNT( * ) + + - 73 - - MIN( DISTINCT - + 14 )
----
87

skipif mysql # not compatible
query I rowsort label-9682
SELECT - - COUNT ( * ) * 78 + - 96 * + - COUNT ( * ) + + - 73 - - MIN ( DISTINCT - + 14 )
----
87

query I rowsort
SELECT + 95 + 32 AS col2
----
127

query I rowsort
SELECT ALL 1 * - + 62 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-9685
SELECT + 67, + 92 + - COUNT( * ) AS col1
----
67
91

skipif mysql # not compatible
query II rowsort label-9685
SELECT + 67, + 92 + - COUNT ( * ) AS col1
----
67
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT + COALESCE ( - COALESCE ( + 91, + - COUNT( * ), 18, + 19 ), - 99 - - 22 )
----
-91

skipif mysql # not compatible
query I rowsort label-9686
SELECT + COALESCE ( - COALESCE ( + 91, + - COUNT ( * ), 18, + 19 ), - 99 - - 22 )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9687
SELECT + 60 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9687
SELECT + 60 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 65 * - - 92 col0
----
5980

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT DISTINCT COUNT( - 70 ) * + - 46 + 95 - + 43 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT COUNT ( - 70 ) * + - 46 + 95 - + 43 AS col0
----
6

query II rowsort
SELECT + ( + 5 ) * - 5 AS col1, - 0 col1
----
-25
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9691
SELECT + 76 + - + 56 DIV + + COUNT( * ) + + + 2 * + 0 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-9691
SELECT + 76 + - + 56 / + + COUNT ( * ) + + + 2 * + 0 AS col0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9692
SELECT + 93 DIV - + 54 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9692
SELECT + 93 / - + 54 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9693
SELECT + ( 1 ) + + 31 + - + 21 * + + CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-9693
SELECT + ( 1 ) + + 31 + - + 21 * + + CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
11

query I rowsort
SELECT - 76 * - - CASE - 59 WHEN + - 84 THEN - 21 END
----
NULL

query I rowsort
SELECT DISTINCT 81 * COALESCE ( - 6, + 99 ) AS col2
----
-486

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT + COUNT( * ) - - - 59
----
-58

skipif mysql # not compatible
query I rowsort label-9696
SELECT + COUNT ( * ) - - - 59
----
-58

query I rowsort
SELECT + 47 - + + 58 AS col2
----
-11

query I rowsort
SELECT + + CASE - - 72 WHEN + + 2 * - - 53 THEN NULL WHEN - 17 THEN NULL WHEN - 51 + - - 60 + 36 THEN NULL ELSE 80 * 77 END * + 38
----
234080

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT ALL + COUNT( * ) + 61 * 26
----
1587

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL + COUNT ( * ) + 61 * 26
----
1587

query I rowsort
SELECT - + ( + 42 ) AS col2
----
-42

query I rowsort
SELECT ALL - 3 + 90 col1
----
87

query I rowsort
SELECT + - 45 + + 91 col2
----
46

query I rowsort
SELECT - - 39 - 2
----
37

query I rowsort
SELECT - + 65 - 85 AS col1
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT ALL - COUNT( * ) + - 82 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL - COUNT ( * ) + - 82 AS col2
----
-83

query I rowsort
SELECT - 77 + + 20 AS col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9707
SELECT ALL 46 / + CASE - - 1 WHEN - CASE + AVG ( DISTINCT - 75 ) WHEN 29 + + + 10 - 95 THEN + COUNT( * ) + COUNT( * ) * ( 47 ) END + - 11 THEN NULL WHEN 96 * 33 THEN 90 + 2 WHEN - COALESCE ( + COUNT( * ), 0 * 30 ) + ( - NULLIF ( CAST( 45 AS SIGNED ), COUNT( * ) * - 71 ) ) / COUNT( * ) THEN + 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL 46 / + CASE - - 1 WHEN - CASE + AVG ( DISTINCT - 75 ) WHEN 29 + + + 10 - 95 THEN + COUNT ( * ) + COUNT ( * ) * ( 47 ) END + - 11 THEN NULL WHEN 96 * 33 THEN 90 + 2 WHEN - COALESCE ( + COUNT ( * ), 0 * 30 ) + ( - NULLIF ( CAST ( 45 AS INTEGER ), COUNT ( * ) * - 71 ) ) / COUNT ( * ) THEN + 18 END
----
NULL

query I rowsort
SELECT ALL + + ( + 45 ) AS col1
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9709
SELECT DISTINCT + - COALESCE ( 21, COUNT( 13 ) * 6 * - 75 ) DIV - - 70 + + - 84
----
-84

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT + - COALESCE ( 21, COUNT ( 13 ) * 6 * - 75 ) / - - 70 + + - 84
----
-84

query I rowsort
SELECT - - 38 * - + 40 - + 12 AS col1
----
-1532

onlyif mysql # DIV for integer division: 
query I rowsort label-9711
SELECT - + 27 DIV - COALESCE ( - ( 17 ), + 87 * - ( 74 ) ) + + 42 + - 78 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9711
SELECT - + 27 / - COALESCE ( - ( 17 ), + 87 * - ( 74 ) ) + + 42 + - 78 AS col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9712
SELECT - ( CAST( NULL AS SIGNED ) ) / - + 67 - - 98 - - 36 + - + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9712
SELECT - ( CAST ( NULL AS INTEGER ) ) / - + 67 - - 98 - - 36 + - + 30 AS col0
----
NULL

query I rowsort
SELECT ALL + + CASE + 31 WHEN + 17 THEN NULL WHEN 56 + + 90 THEN - ( 34 ) END AS col1
----
NULL

query I rowsort
SELECT - 66 + 77
----
11

query I rowsort
SELECT - 84 * 38
----
-3192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9716
SELECT - 19 * COUNT( * ) DIV 66 * - ( + - 36 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9716
SELECT - 19 * COUNT ( * ) / 66 * - ( + - 36 ) AS col0
----
0

query I rowsort
SELECT 22 * - 45 * - + 51 + 83
----
50573

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9718
SELECT ALL + CASE - + COALESCE ( - COALESCE ( - 39, - MIN( ALL + NULLIF ( + 64, - + 26 * - COALESCE ( 96, 88, + CAST( NULL AS SIGNED ) ) ) ) ), + 58 ) WHEN - 54 THEN 91 * 16 ELSE NULLIF ( - 46, 2 * ( ( - 4 ) * + 28 ) ) - 58 END
----
-104

skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL + CASE - + COALESCE ( - COALESCE ( - 39, - MIN ( ALL + NULLIF ( + 64, - + 26 * - COALESCE ( 96, 88, + CAST ( NULL AS INTEGER ) ) ) ) ), + 58 ) WHEN - 54 THEN 91 * 16 ELSE NULLIF ( - 46, 2 * ( ( - 4 ) * + 28 ) ) - 58 END
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT + SUM( - - 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-9719
SELECT + SUM ( - - 43 ) AS col1
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9720
SELECT - 88 + - 89 DIV - 98 * - + 87 * + COUNT( * ) * 29 + - + 41
----
-129

skipif mysql # not compatible
query I rowsort label-9720
SELECT - 88 + - 89 / - 98 * - + 87 * + COUNT ( * ) * 29 + - + 41
----
-129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9721
SELECT + NULLIF ( + 2, 87 + - + 44 * CASE + COUNT( + ( 49 ) ) WHEN + + 41 THEN NULL WHEN 19 THEN NULLIF ( - 73, 49 ) * 96 END * - 38 - - CAST( NULL AS SIGNED ) * 80 ) * + COUNT( * ) + + ( + 77 )
----
79

skipif mysql # not compatible
query I rowsort label-9721
SELECT + NULLIF ( + 2, 87 + - + 44 * CASE + COUNT ( + ( 49 ) ) WHEN + + 41 THEN NULL WHEN 19 THEN NULLIF ( - 73, 49 ) * 96 END * - 38 - - CAST ( NULL AS INTEGER ) * 80 ) * + COUNT ( * ) + + ( + 77 )
----
79

query I rowsort
SELECT DISTINCT 47 * + 29
----
1363

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9723
SELECT - 53 * - COUNT( * ) DIV + 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9723
SELECT - 53 * - COUNT ( * ) / + 86 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT NULLIF ( + 48, - + 55 * - COUNT( - 62 ) / + 84 * 4 + - COALESCE ( + 70, + COUNT( * ) ) )
----
48

skipif mysql # not compatible
query I rowsort label-9724
SELECT NULLIF ( + 48, - + 55 * - COUNT ( - 62 ) / + 84 * 4 + - COALESCE ( + 70, + COUNT ( * ) ) )
----
48

query I rowsort
SELECT + 76 * + + 9 * - 82 AS col2
----
-56088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9726
SELECT - CAST( NULL AS SIGNED ) + - 23 * + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-9726
SELECT - CAST ( NULL AS INTEGER ) + - 23 * + + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT + 58 * - - 97 + - NULLIF ( + + ( + 17 ), + + 61 ) * + COUNT( * ) AS col2
----
5609

skipif mysql # not compatible
query I rowsort label-9727
SELECT + 58 * - - 97 + - NULLIF ( + + ( + 17 ), + + 61 ) * + COUNT ( * ) AS col2
----
5609

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT DISTINCT + ( 71 ) * + + MIN( 97 ) AS col1
----
6887

skipif mysql # not compatible
query I rowsort label-9728
SELECT DISTINCT + ( 71 ) * + + MIN ( 97 ) AS col1
----
6887

onlyif mysql # aggregate syntax: 
query II rowsort label-9729
SELECT - 7 + + 25 AS col1, COUNT( * ) AS col1
----
18
1

skipif mysql # not compatible
query II rowsort label-9729
SELECT - 7 + + 25 AS col1, COUNT ( * ) AS col1
----
18
1

query I rowsort
SELECT DISTINCT - 5 * 50 * + + 89
----
-22250

query II rowsort
SELECT + 95 + + 20 col0, COALESCE ( 43, + 50, 83 ) col2
----
115
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT ALL + 72 + - - 79 * - NULLIF ( - 33, NULLIF ( + 61, + 87 + + - MAX( DISTINCT - 85 ) * 5 ) * - 32 ) + 15
----
2694

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL + 72 + - - 79 * - NULLIF ( - 33, NULLIF ( + 61, + 87 + + - MAX ( DISTINCT - 85 ) * 5 ) * - 32 ) + 15
----
2694

query I rowsort
SELECT ALL 40 + - 95
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-9734
SELECT ALL - + 91 - - 86 DIV + - 24 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL - + 91 - - 86 / + - 24 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT DISTINCT SUM( ALL 89 )
----
89

skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT SUM ( ALL 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT - 6 + - + COUNT( * ) + - - COUNT( * ) * + 77 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9736
SELECT - 6 + - + COUNT ( * ) + - - COUNT ( * ) * + 77 AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9737
SELECT - COUNT( * ) * - CASE + COALESCE ( COALESCE ( + - 4, - + 85 ), + 30 ) WHEN - 87 * - + COUNT( * ) * CAST( NULL AS SIGNED ) + 83 * + 52 THEN - 55 * - CAST( COUNT( * ) AS SIGNED ) WHEN COUNT( * ) THEN COUNT( * ) + + CASE 88 WHEN 26 THEN NULL ELSE - 55 END WHEN 52 * - 39 THEN - ( 24 ) * 89 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9737
SELECT - COUNT ( * ) * - CASE + COALESCE ( COALESCE ( + - 4, - + 85 ), + 30 ) WHEN - 87 * - + COUNT ( * ) * CAST ( NULL AS INTEGER ) + 83 * + 52 THEN - 55 * - CAST ( COUNT ( * ) AS INTEGER ) WHEN COUNT ( * ) THEN COUNT ( * ) + + CASE 88 WHEN 26 THEN NULL ELSE - 55 END WHEN 52 * - 39 THEN - ( 24 ) * 89 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9738
SELECT COUNT( * ) DIV - CAST( + + 5 AS SIGNED ) + - - COUNT( ALL 34 )
----
1

skipif mysql # not compatible
query I rowsort label-9738
SELECT COUNT ( * ) / - CAST ( + + 5 AS INTEGER ) + - - COUNT ( ALL 34 )
----
1

query I rowsort
SELECT DISTINCT + 36 - 15 AS col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9740
SELECT ( + 26 ) * + + CAST( NULL AS SIGNED ) - + 20 / 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9740
SELECT ( + 26 ) * + + CAST ( NULL AS INTEGER ) - + 20 / 96
----
NULL

query I rowsort
SELECT 80 * 94 col0
----
7520

query I rowsort
SELECT DISTINCT + 18 * + 88
----
1584

query I rowsort
SELECT 70 * + - COALESCE ( - 40, 8 )
----
2800

query I rowsort
SELECT ALL - ( + + 96 )
----
-96

query II rowsort
SELECT ALL + 18 * 25 * 12 AS col0, - 28 * - 69 * - 68 AS col0
----
5400
-131376

query I rowsort
SELECT 56 * - - 78 * ( + 41 )
----
179088

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT 60 * + COUNT( * ) * 74
----
4440

skipif mysql # not compatible
query I rowsort label-9747
SELECT 60 * + COUNT ( * ) * 74
----
4440

query II rowsort
SELECT + 86 AS col2, 89 AS col0
----
86
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9749
SELECT COUNT( * ) DIV - - 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9749
SELECT COUNT ( * ) / - - 45 AS col0
----
0

query I rowsort
SELECT ALL - 28 + + 19 * - 41
----
-807

query I rowsort
SELECT ALL - NULLIF ( + 83, ( + 99 ) )
----
-83

query I rowsort
SELECT DISTINCT - 46 + 46 - - 87 + - 65
----
22

query I rowsort
SELECT 95 * + + 88 AS col2
----
8360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9754
SELECT DISTINCT COUNT( * ) + - COUNT( - 75 ) * + 68 + - - ( - CAST( + - ( - 37 ) AS SIGNED ) ) AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT COUNT ( * ) + - COUNT ( - 75 ) * + 68 + - - ( - CAST ( + - ( - 37 ) AS INTEGER ) ) AS col2
----
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-9755
SELECT + + COUNT( * ) AS col1, - 1 col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-9755
SELECT + + COUNT ( * ) AS col1, - 1 col1
----
1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9756
SELECT ALL - - 21 AS col2, - 37 * COUNT( * ) AS col2
----
21
-37

skipif mysql # not compatible
query II rowsort label-9756
SELECT ALL - - 21 AS col2, - 37 * COUNT ( * ) AS col2
----
21
-37

query I rowsort
SELECT - 96 + 94 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9758
SELECT 57 * + 17 * 46 + - ( + 52 ) - + + ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9758
SELECT 57 * + 17 * 46 + - ( + 52 ) - + + ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT + MIN( + 27 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-9759
SELECT + MIN ( + 27 ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT DISTINCT + - COUNT( * ) + + 50
----
49

skipif mysql # not compatible
query I rowsort label-9760
SELECT DISTINCT + - COUNT ( * ) + + 50
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT MAX( + 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9761
SELECT MAX ( + 28 ) AS col0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9762
SELECT - CAST( - ( + 84 ) AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-9762
SELECT - CAST ( - ( + 84 ) AS INTEGER )
----
84

query I rowsort
SELECT DISTINCT - CASE + 27 WHEN + - 15 THEN 5 WHEN - 30 THEN + ( - + 39 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT DISTINCT + 15 + - COUNT( * ) * - 24 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT + 15 + - COUNT ( * ) * - 24 AS col0
----
39

query I rowsort
SELECT ALL + + 85 - 13 AS col0
----
72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9766
SELECT - ( - - 57 ) * 70 DIV + 82 + - - CAST( + + 25 AS SIGNED ) * - 14 * 89, 16 AS col1
----
-31198
16

skipif mysql # not compatible
query II rowsort label-9766
SELECT - ( - - 57 ) * 70 / + 82 + - - CAST ( + + 25 AS INTEGER ) * - 14 * 89, 16 AS col1
----
-31198
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT ALL - 60 * - + MIN( - 95 ) AS col1
----
-5700

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL - 60 * - + MIN ( - 95 ) AS col1
----
-5700

query I rowsort
SELECT ALL 12 - - 84 - - 12 - - 64
----
172

query I rowsort
SELECT 8 + 8 + 69 * + + 56
----
3880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9770
SELECT - CAST( - 17 AS SIGNED ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9770
SELECT - CAST ( - 17 AS INTEGER ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query III rowsort label-9771
SELECT - - 16 AS col0, 22 * - - COUNT( * ) AS col2, - 55 * - 75
----
16
22
4125

skipif mysql # not compatible
query III rowsort label-9771
SELECT - - 16 AS col0, 22 * - - COUNT ( * ) AS col2, - 55 * - 75
----
16
22
4125

query II rowsort
SELECT DISTINCT 57 col1, + 56 AS col1
----
57
56

query II rowsort
SELECT DISTINCT - 99 AS col0, 93 AS col1
----
-99
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9774
SELECT CASE WHEN 18 IN ( AVG ( + 12 ) + - + ( - 29 ) + - SUM( + + 53 ) * - ( 73 ) ) THEN NULL WHEN ( - COUNT( * ) * - SUM( DISTINCT 80 ) ) IS NOT NULL THEN 15 END + CASE 27 WHEN - 68 * + CAST( COALESCE ( 42, + 57 * 20 ) AS SIGNED ) THEN + 11 * 11 + - CASE - 16 + 25 WHEN 37 + 24 THEN 51 + 41 END / 4 END * + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9774
SELECT CASE WHEN 18 IN ( AVG ( + 12 ) + - + ( - 29 ) + - SUM ( + + 53 ) * - ( 73 ) ) THEN NULL WHEN ( - COUNT ( * ) * - SUM ( DISTINCT 80 ) ) IS NOT NULL THEN 15 END + CASE 27 WHEN - 68 * + CAST ( COALESCE ( 42, + 57 * 20 ) AS INTEGER ) THEN + 11 * 11 + - CASE - 16 + 25 WHEN 37 + 24 THEN 51 + 41 END / 4 END * + 0 AS col1
----
NULL

query II rowsort
SELECT 60 + + + 32 AS col1, + ( - 6 ) * 62 + + + 43 AS col2
----
92
-329

query I rowsort
SELECT ALL 65 + + 22 * + ( + 93 ) + - 99 * + + 58 * + 18 AS col0
----
-101245

query I rowsort
SELECT 66 + - 10
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9778
SELECT ( + - ( 80 ) ) DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-9778
SELECT ( + - ( 80 ) ) / + 98
----
0

query I rowsort
SELECT 5 * 17 AS col2
----
85

query I rowsort
SELECT + 6 * - ( + NULLIF ( - 78, 85 * + - 22 + 94 / - - ( - - 27 ) ) ) + - 89
----
379

query II rowsort
SELECT DISTINCT + 87 * + 55 AS col0, - 14 AS col0
----
4785
-14

query I rowsort
SELECT DISTINCT 70 + 94 + + 12 + + + 63
----
239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9783
SELECT 95 + CASE + 96 WHEN - 22 * - - 69 + 26 + - + 59 THEN NULL WHEN - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) THEN + ( - + 49 ) + COALESCE ( - 48, 23, 2 ) END * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-9783
SELECT 95 + CASE + 96 WHEN - 22 * - - 69 + 26 + - + 59 THEN NULL WHEN - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) THEN + ( - + 49 ) + COALESCE ( - 48, 23, 2 ) END * - 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT 4 + COUNT( * ) * + 23 * - + 37
----
-847

skipif mysql # not compatible
query I rowsort label-9784
SELECT 4 + COUNT ( * ) * + 23 * - + 37
----
-847

query I rowsort
SELECT 10 + - - 59 * - + 74
----
-4356

query II rowsort
SELECT ALL + COALESCE ( + + 1, 87 ) * - 53 AS col1, 61 + + + 27
----
-53
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9787
SELECT 85 DIV - - 97 * + 65
----
0

skipif mysql # not compatible
query I rowsort label-9787
SELECT 85 / - - 97 * + 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT 97 * + 26 + COUNT( * )
----
2523

skipif mysql # not compatible
query I rowsort label-9788
SELECT 97 * + 26 + COUNT ( * )
----
2523

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9789
SELECT - NULLIF ( 0, - 40 + CAST( + - 4 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9789
SELECT - NULLIF ( 0, - 40 + CAST ( + - 4 AS INTEGER ) )
----
0

query I rowsort
SELECT ALL + - 24 + + 12 * 65 AS col0
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT SUM( ALL + + 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-9791
SELECT SUM ( ALL + + 25 ) AS col0
----
25

query II rowsort
SELECT + - 3 AS col0, - 59 + + 77 AS col1
----
-3
18

query I rowsort
SELECT + 77 + + + 7 * - 24 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9794
SELECT - 16 + + + 78, ( - + 76 ) * 59 + + - ( + COUNT( * ) ) + SUM( DISTINCT 67 ) * - + 6 AS col1
----
62
-4887

skipif mysql # not compatible
query II rowsort label-9794
SELECT - 16 + + + 78, ( - + 76 ) * 59 + + - ( + COUNT ( * ) ) + SUM ( DISTINCT 67 ) * - + 6 AS col1
----
62
-4887

query II rowsort
SELECT ALL 41 AS col0, + 34 * 22
----
41
748

query I rowsort
SELECT ( + - 8 ) AS col2
----
-8

query I rowsort
SELECT ALL - 11 - + 47
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL MAX( 76 ) - - 55 * + 15 * - 93 AS col1
----
-76649

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL MAX ( 76 ) - - 55 * + 15 * - 93 AS col1
----
-76649

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT MIN( ALL - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-9799
SELECT MIN ( ALL - 29 )
----
-29

query I rowsort
SELECT ALL + 70 - - NULLIF ( + - 58, 63 * 51 ) AS col1
----
12

query I rowsort
SELECT - - 65 * + 81 AS col2
----
5265

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT + COUNT( * ) * - - 10 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-9802
SELECT + COUNT ( * ) * - - 10 AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9803
SELECT - NULLIF ( + - COUNT( * ), CAST( NULL AS SIGNED ) ) + - - ( + - 84 ) * - 66, + ( 96 ) AS col1
----
5545
96

skipif mysql # not compatible
query II rowsort label-9803
SELECT - NULLIF ( + - COUNT ( * ), CAST ( NULL AS INTEGER ) ) + - - ( + - 84 ) * - 66, + ( 96 ) AS col1
----
5545
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9804
SELECT - 76, - MAX( ALL - 22 ) * ( + - MAX( DISTINCT + 11 ) ) * - 13 + - COUNT( * ) * - CASE 52 WHEN - CASE 78 WHEN + 28 * - 29 THEN 14 WHEN + ( NULLIF ( ( + COUNT( * ) ), - 69 ) ) * COUNT( * ) THEN NULL END THEN 52 / 84 ELSE NULL END * 85 + 60 AS col0
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-9804
SELECT - 76, - MAX ( ALL - 22 ) * ( + - MAX ( DISTINCT + 11 ) ) * - 13 + - COUNT ( * ) * - CASE 52 WHEN - CASE 78 WHEN + 28 * - 29 THEN 14 WHEN + ( NULLIF ( ( + COUNT ( * ) ), - 69 ) ) * COUNT ( * ) THEN NULL END THEN 52 / 84 ELSE NULL END * 85 + 60 AS col0
----
-76
NULL

query I rowsort
SELECT DISTINCT - 26 * + ( + 78 )
----
-2028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9806
SELECT ALL COALESCE ( 29, CASE + 20 WHEN - 78 / + 44 - CAST( NULL AS SIGNED ) * + + 55 * + MAX( ALL - - 39 ) + - 19 + + 66 / 27 * 52 THEN + 49 * - 60 END + - 18 * 43 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL COALESCE ( 29, CASE + 20 WHEN - 78 / + 44 - CAST ( NULL AS INTEGER ) * + + 55 * + MAX ( ALL - - 39 ) + - 19 + + 66 / 27 * 52 THEN + 49 * - 60 END + - 18 * 43 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT ALL - 10 * + + COUNT( * ) col1
----
-10

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL - 10 * + + COUNT ( * ) col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9808
SELECT ALL 25 DIV + COALESCE ( + 15, + 52, + + 91 * - 85 * + - ( - NULLIF ( - + 46, - + CASE - ( + - 37 ) WHEN 71 * - ( + 97 ) THEN 92 WHEN + ( - 95 ) * 23 + 68 THEN NULL ELSE COUNT( * ) END ) ) DIV 15, - 26 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL 25 / + COALESCE ( + 15, + 52, + + 91 * - 85 * + - ( - NULLIF ( - + 46, - + CASE - ( + - 37 ) WHEN 71 * - ( + 97 ) THEN 92 WHEN + ( - 95 ) * 23 + 68 THEN NULL ELSE COUNT ( * ) END ) ) / 15, - 26 ) AS col1
----
1

query II rowsort
SELECT + COALESCE ( 16, + 59 * 98 ) + 54, + 3 AS col1
----
70
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9810
SELECT ALL - 0 DIV + - ( - COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL - 0 / + - ( - COUNT ( * ) ) AS col0
----
0

query I rowsort
SELECT - 77 * + - 25 col2
----
1925

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT + 83 + - + COALESCE ( - 65, + + NULLIF ( 59, - COUNT( * ) ) * 1 + + 90 + - COUNT( * ), + + 67 )
----
148

skipif mysql # not compatible
query I rowsort label-9812
SELECT + 83 + - + COALESCE ( - 65, + + NULLIF ( 59, - COUNT ( * ) ) * 1 + + 90 + - COUNT ( * ), + + 67 )
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-9813
SELECT ALL 65 + + - ( 23 ) + - + 30 + - + 67 DIV - 70 * + - 62
----
12

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL 65 + + - ( 23 ) + - + 30 + - + 67 / - 70 * + - 62
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT ( + COUNT( - + 85 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9814
SELECT ( + COUNT ( - + 85 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9815
SELECT 1 DIV + 25 + ( + - 85 ) + + 64 DIV COUNT( * ) * + 66 AS col0, + 27 * + - 69 AS col1
----
4139
-1863

skipif mysql # not compatible
query II rowsort label-9815
SELECT 1 / + 25 + ( + - 85 ) + + 64 / COUNT ( * ) * + 66 AS col0, + 27 * + - 69 AS col1
----
4139
-1863

query I rowsort
SELECT + 47 * 86 * - + 86 * + 94 AS col1
----
-32675528

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT 92 * NULLIF ( - MIN( - 36 ), + 71 ) + - ( COUNT( * ) ) AS col0
----
3311

skipif mysql # not compatible
query I rowsort label-9817
SELECT 92 * NULLIF ( - MIN ( - 36 ), + 71 ) + - ( COUNT ( * ) ) AS col0
----
3311

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9818
SELECT + COALESCE ( - + CASE + + 3 WHEN + COUNT( * ) DIV + COUNT( * ) THEN - COUNT( * ) WHEN - 67 THEN NULL END, + 42 DIV + 91 * + + 9 + - 20 - - ( + 65 ) DIV - ( MAX( ALL - 35 ) * + 3 + 79 ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-9818
SELECT + COALESCE ( - + CASE + + 3 WHEN + COUNT ( * ) / + COUNT ( * ) THEN - COUNT ( * ) WHEN - 67 THEN NULL END, + 42 / + 91 * + + 9 + - 20 - - ( + 65 ) / - ( MAX ( ALL - 35 ) * + 3 + 79 ) ) AS col2
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9819
SELECT ALL - 40 * - - CAST( NULL AS SIGNED ) + + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL - 40 * - - CAST ( NULL AS INTEGER ) + + 77 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT + 93 * COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-9820
SELECT + 93 * COUNT ( * ) AS col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9821
SELECT DISTINCT - COUNT( * ) * - 64 + CAST( NULL AS SIGNED ), + 85 * - - 10 + + + ( - 51 ) AS col1
----
NULL
799

skipif mysql # not compatible
query II rowsort label-9821
SELECT DISTINCT - COUNT ( * ) * - 64 + CAST ( NULL AS INTEGER ), + 85 * - - 10 + + + ( - 51 ) AS col1
----
NULL
799

query I rowsort
SELECT CASE - - 21 WHEN + 63 - + 77 THEN 87 END
----
NULL

query I rowsort
SELECT + COALESCE ( + + 48, - 69 + - - 47 )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9824
SELECT ALL + + ( COUNT( * ) ) AS col0, 78
----
1
78

skipif mysql # not compatible
query II rowsort label-9824
SELECT ALL + + ( COUNT ( * ) ) AS col0, 78
----
1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT ALL - COUNT( * ) * + SUM( ALL 47 ) col1
----
-47

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL - COUNT ( * ) * + SUM ( ALL 47 ) col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9826
SELECT ALL - - COALESCE ( 52, + COUNT( DISTINCT ( + - 41 ) ) * - - 22 + + 97 DIV + ( + + 15 ) * - + 55 ) * - COUNT( * ) - + - COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL - - COALESCE ( 52, + COUNT ( DISTINCT ( + - 41 ) ) * - - 22 + + 97 / + ( + + 15 ) * - + 55 ) * - COUNT ( * ) - + - COUNT ( * )
----
-51

query II rowsort
SELECT + + 4 * - 92, 10 * + 72 AS col1
----
-368
720

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT + - MAX( 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-9828
SELECT + - MAX ( 54 ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-9829
SELECT ALL + COUNT( 55 ) * - - 78 * - 12 - + 25 col1, - CASE 45 WHEN - + COUNT( * ) - 44 THEN + 2 END AS col0
----
-961
NULL

skipif mysql # not compatible
query II rowsort label-9829
SELECT ALL + COUNT ( 55 ) * - - 78 * - 12 - + 25 col1, - CASE 45 WHEN - + COUNT ( * ) - 44 THEN + 2 END AS col0
----
-961
NULL

query I rowsort
SELECT + 89 * + NULLIF ( + 7, 81 )
----
623

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9831
SELECT + + CASE 28 WHEN - CAST( NULL AS SIGNED ) THEN - 65 END + + 30 * + ( 76 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9831
SELECT + + CASE 28 WHEN - CAST ( NULL AS INTEGER ) THEN - 65 END + + 30 * + ( 76 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9832
SELECT - 72 + 79 * - - 34 / MIN( 19 ) * + CAST( NULL AS SIGNED ) + - + 24 AS col2, 1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9832
SELECT - 72 + 79 * - - 34 / MIN ( 19 ) * + CAST ( NULL AS INTEGER ) + - + 24 AS col2, 1
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9833
SELECT - ( 86 ) DIV 89 * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9833
SELECT - ( 86 ) / 89 * + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT - 30 + + MAX( + 11 ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-9834
SELECT - 30 + + MAX ( + 11 ) col2
----
-19

query I rowsort
SELECT - ( 40 ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT DISTINCT CASE - COUNT( * ) WHEN 48 THEN 53 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT CASE - COUNT ( * ) WHEN 48 THEN 53 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9837
SELECT ALL - - COALESCE ( + - NULLIF ( + 85, + 50 ), - 83, - 19 ) * + 16 * CASE 62 WHEN + 58 * COUNT( * ) + - 75 * 0 THEN CAST( NULL AS SIGNED ) WHEN - 51 - + 18 THEN - 80 END - - 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL - - COALESCE ( + - NULLIF ( + 85, + 50 ), - 83, - 19 ) * + 16 * CASE 62 WHEN + 58 * COUNT ( * ) + - 75 * 0 THEN CAST ( NULL AS INTEGER ) WHEN - 51 - + 18 THEN - 80 END - - 94 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT - + ( - 71 ) * CASE + + COUNT( * ) WHEN 76 THEN + + ( + CASE + + 72 WHEN - 94 + + 37 THEN - + 49 * - 10 END ) * + 13 END / - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9838
SELECT - + ( - 71 ) * CASE + + COUNT ( * ) WHEN 76 THEN + + ( + CASE + + 72 WHEN - 94 + + 37 THEN - + 49 * - 10 END ) * + 13 END / - 29 AS col2
----
NULL

query I rowsort
SELECT ALL - - 13 + 76
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT - SUM( ALL - ( - NULLIF ( 87, + 31 ) ) ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-9840
SELECT - SUM ( ALL - ( - NULLIF ( 87, + 31 ) ) ) AS col1
----
-87

query I rowsort
SELECT DISTINCT + 59 + - ( - 23 ) AS col0
----
82

query I rowsort
SELECT - 60 * - 78
----
4680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9843
SELECT ALL + 41 + + NULLIF ( - 39, + CAST( NULL AS SIGNED ) * 98 )
----
2

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL + 41 + + NULLIF ( - 39, + CAST ( NULL AS INTEGER ) * 98 )
----
2

query I rowsort
SELECT - COALESCE ( + 88, - 30 * + 49 ) - + + ( 75 ) AS col1
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT DISTINCT + 60 + - - 17 * + + COUNT( * ) * - - ( + + ( - 63 ) ) AS col1
----
-1011

skipif mysql # not compatible
query I rowsort label-9845
SELECT DISTINCT + 60 + - - 17 * + + COUNT ( * ) * - - ( + + ( - 63 ) ) AS col1
----
-1011

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9846
SELECT - 24 * + 44 * + 53 AS col0, CAST( - 6 AS SIGNED ) + + 59 AS col2
----
-55968
53

skipif mysql # not compatible
query II rowsort label-9846
SELECT - 24 * + 44 * + 53 AS col0, CAST ( - 6 AS INTEGER ) + + 59 AS col2
----
-55968
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT ALL - 96 + + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL - 96 + + COUNT ( * )
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9848
SELECT 42 AS col2, - COUNT( * ) DIV - + CASE + 20 WHEN - COALESCE ( + COUNT( * ), 13 ) THEN NULL ELSE - - 59 DIV + COUNT( * ) + + 8 END AS col2
----
42
0

skipif mysql # not compatible
query II rowsort label-9848
SELECT 42 AS col2, - COUNT ( * ) / - + CASE + 20 WHEN - COALESCE ( + COUNT ( * ), 13 ) THEN NULL ELSE - - 59 / + COUNT ( * ) + + 8 END AS col2
----
42
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL COALESCE ( - COUNT( * ), - 33 * 94, 95 + - 85 + NULLIF ( - 38, - 56 ) ) + + 62 + - - 8 + COALESCE ( - + 17, + 97 ) * - 1 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL COALESCE ( - COUNT ( * ), - 33 * 94, 95 + - 85 + NULLIF ( - 38, - 56 ) ) + + 62 + - - 8 + COALESCE ( - + 17, + 97 ) * - 1 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT + NULLIF ( + 2, - COUNT( * ) * + - 49 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9850
SELECT + NULLIF ( + 2, - COUNT ( * ) * + - 49 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT 97 * 30 - + CASE + - 51 WHEN - 7 + 46 + - 88 * 88 / + 42 * + + 27 THEN NULL WHEN - - 2 * - - 34 - - - 1 + + COUNT( * ) * - 83 THEN NULL ELSE + 61 * + COUNT( * ) + + COUNT( * ) END col1
----
2848

skipif mysql # not compatible
query I rowsort label-9851
SELECT 97 * 30 - + CASE + - 51 WHEN - 7 + 46 + - 88 * 88 / + 42 * + + 27 THEN NULL WHEN - - 2 * - - 34 - - - 1 + + COUNT ( * ) * - 83 THEN NULL ELSE + 61 * + COUNT ( * ) + + COUNT ( * ) END col1
----
2848

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT + 70 * - NULLIF ( - NULLIF ( SUM( + - 57 ), + - NULLIF ( - - 95, 5 ) * + - 68 ), 29 ) AS col1
----
-3990

skipif mysql # not compatible
query I rowsort label-9852
SELECT + 70 * - NULLIF ( - NULLIF ( SUM ( + - 57 ), + - NULLIF ( - - 95, 5 ) * + - 68 ), 29 ) AS col1
----
-3990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9853
SELECT ALL + COUNT( * ) DIV 4 - 59
----
-59

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL + COUNT ( * ) / 4 - 59
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9854
SELECT CAST( - - COALESCE ( + COALESCE ( + 24, 45 ), + - 30 ) AS SIGNED ), - 84 + 42 - + 53 * + COUNT( * ) + COUNT( * ) + 1 col1
----
24
-93

skipif mysql # not compatible
query II rowsort label-9854
SELECT CAST ( - - COALESCE ( + COALESCE ( + 24, 45 ), + - 30 ) AS INTEGER ), - 84 + 42 - + 53 * + COUNT ( * ) + COUNT ( * ) + 1 col1
----
24
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT DISTINCT MAX( ALL + 54 ) * 70 AS col0
----
3780

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT MAX ( ALL + 54 ) * 70 AS col0
----
3780

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT 34 * - - COUNT( * ) + + 55
----
89

skipif mysql # not compatible
query I rowsort label-9856
SELECT 34 * - - COUNT ( * ) + + 55
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-9857
SELECT ALL + 45, COUNT( * ) AS col1
----
45
1

skipif mysql # not compatible
query II rowsort label-9857
SELECT ALL + 45, COUNT ( * ) AS col1
----
45
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9858
SELECT ALL + COUNT( * ), COALESCE ( - 72, - + CASE + + 85 WHEN + + 97 THEN 63 WHEN + + COUNT( - 47 ) + - + 30 THEN NULL END * + ( - 79 ) ) AS col0
----
1
-72

skipif mysql # not compatible
query II rowsort label-9858
SELECT ALL + COUNT ( * ), COALESCE ( - 72, - + CASE + + 85 WHEN + + 97 THEN 63 WHEN + + COUNT ( - 47 ) + - + 30 THEN NULL END * + ( - 79 ) ) AS col0
----
1
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9859
SELECT ALL - - 25 DIV - 22 + - COUNT( * ) - + 7 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL - - 25 / - 22 + - COUNT ( * ) - + 7 AS col0
----
-9

query II rowsort
SELECT DISTINCT + 63 AS col0, 94 AS col0
----
63
94

query I rowsort
SELECT ALL + 64 - - 73 col2
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9862
SELECT - COUNT( * ) * - - 30 DIV + + COUNT( ALL + 51 )
----
-30

skipif mysql # not compatible
query I rowsort label-9862
SELECT - COUNT ( * ) * - - 30 / + + COUNT ( ALL + 51 )
----
-30

query I rowsort
SELECT ALL 90 * - 55 AS col2
----
-4950

query I rowsort
SELECT 12 + + 45
----
57

query I rowsort
SELECT DISTINCT - + COALESCE ( + - 61, - - 17 ) AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9866
SELECT - COUNT( ALL - - ( - 29 ) ) * 18 DIV - 48 col0
----
0

skipif mysql # not compatible
query I rowsort label-9866
SELECT - COUNT ( ALL - - ( - 29 ) ) * 18 / - 48 col0
----
0

query I rowsort
SELECT 4 + + + 81
----
85

query I rowsort
SELECT ALL - ( - 27 ) col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9869
SELECT + 23 * + 89 + + + 64 AS col1, CAST( NULL AS SIGNED ) / + 38 AS col0
----
2111
NULL

skipif mysql # not compatible
query II rowsort label-9869
SELECT + 23 * + 89 + + + 64 AS col1, CAST ( NULL AS INTEGER ) / + 38 AS col0
----
2111
NULL

query II rowsort
SELECT - - 83, - 97 * + - 36 + - 53 AS col1
----
83
3439

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9871
SELECT ALL NULLIF ( 33, CASE 78 WHEN ( NULLIF ( - + ( + ( 36 ) ), - COUNT( * ) * CASE - 83 WHEN 78 THEN - 82 ELSE NULL END * - CAST( NULL AS SIGNED ) - 81 * COUNT( * ) ) ) THEN NULL ELSE 66 END / + COUNT( * ) )
----
33

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL NULLIF ( 33, CASE 78 WHEN ( NULLIF ( - + ( + ( 36 ) ), - COUNT ( * ) * CASE - 83 WHEN 78 THEN - 82 ELSE NULL END * - CAST ( NULL AS INTEGER ) - 81 * COUNT ( * ) ) ) THEN NULL ELSE 66 END / + COUNT ( * ) )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9872
SELECT DISTINCT 2 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT 2 / 56
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9873
SELECT ALL - 87 * - CASE NULLIF ( + 6, COALESCE ( CASE COUNT( * ) WHEN - MAX( DISTINCT + 9 ) + + 74 THEN 18 WHEN - 99 THEN NULL ELSE NULL END, + 91 ) ) WHEN - CASE + 17 WHEN COUNT( * ) * + COUNT( * ) + + 80 THEN - 14 ELSE - 99 END THEN + 98 + 34 WHEN 73 THEN ( COUNT( * ) ) * - 20 WHEN 19 * CASE - 23 WHEN - 45 THEN NULL WHEN + 78 THEN 55 / 42 ELSE 34 * + COUNT( ALL + 61 * 24 ) END THEN NULL WHEN + 42 THEN COUNT( * ) END + - CAST( 74 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL - 87 * - CASE NULLIF ( + 6, COALESCE ( CASE COUNT ( * ) WHEN - MAX ( DISTINCT + 9 ) + + 74 THEN 18 WHEN - 99 THEN NULL ELSE NULL END, + 91 ) ) WHEN - CASE + 17 WHEN COUNT ( * ) * + COUNT ( * ) + + 80 THEN - 14 ELSE - 99 END THEN + 98 + 34 WHEN 73 THEN ( COUNT ( * ) ) * - 20 WHEN 19 * CASE - 23 WHEN - 45 THEN NULL WHEN + 78 THEN 55 / 42 ELSE 34 * + COUNT ( ALL + 61 * 24 ) END THEN NULL WHEN + 42 THEN COUNT ( * ) END + - CAST ( 74 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9874
SELECT - - 63 AS col2, COUNT( * ) * + 52
----
63
52

skipif mysql # not compatible
query II rowsort label-9874
SELECT - - 63 AS col2, COUNT ( * ) * + 52
----
63
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9875
SELECT MAX( 69 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9875
SELECT MAX ( 69 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9876
SELECT 98 + + 36 - - 93 - CAST( NULL AS SIGNED ) / + 17 * + 32 + - 69 + - 41 - 96 * - 73 * - + 79 + ( + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9876
SELECT 98 + + 36 - - 93 - CAST ( NULL AS INTEGER ) / + 17 * + 32 + - 69 + - 41 - 96 * - 73 * - + 79 + ( + 97 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT ALL - 1 + + MIN( 53 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL - 1 + + MIN ( 53 ) AS col2
----
52

query I rowsort
SELECT 76 + - 66 AS col1
----
10

query I rowsort
SELECT DISTINCT 54 + + ( - 21 )
----
33

query I rowsort
SELECT 85 + + + 40 + 0 AS col2
----
125

query II rowsort
SELECT DISTINCT + 28 + + 38 AS col2, - 81 * - 39 * - 68 col0
----
66
-214812

query I rowsort
SELECT DISTINCT - 56 * + 87
----
-4872

query I rowsort
SELECT 20 + + 98
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9884
SELECT COUNT( * ) + - 83 col0, + 14 DIV - 15
----
-82
0

skipif mysql # not compatible
query II rowsort label-9884
SELECT COUNT ( * ) + - 83 col0, + 14 / - 15
----
-82
0

query I rowsort
SELECT ALL - 66 - - 54 AS col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9886
SELECT ALL - COALESCE ( - - ( - - 0 ), + CAST( NULL AS SIGNED ), 15 )
----
0

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL - COALESCE ( - - ( - - 0 ), + CAST ( NULL AS INTEGER ), 15 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9887
SELECT DISTINCT - CASE - + 74 WHEN - 27 THEN NULL WHEN - CAST( + ( + 47 ) AS SIGNED ) * - CASE + 28 WHEN - 34 / - ( - ( + ( 66 ) ) ) * - 23 * + 1 + 63 THEN NULL WHEN + 46 THEN 16 * 71 + 64 END * 33 + - 39 THEN + ( - 45 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9887
SELECT DISTINCT - CASE - + 74 WHEN - 27 THEN NULL WHEN - CAST ( + ( + 47 ) AS INTEGER ) * - CASE + 28 WHEN - 34 / - ( - ( + ( 66 ) ) ) * - 23 * + 1 + 63 THEN NULL WHEN + 46 THEN 16 * 71 + 64 END * 33 + - 39 THEN + ( - 45 ) END
----
NULL

query I rowsort
SELECT DISTINCT - - 61 col0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9889
SELECT DISTINCT - 76 DIV - 14
----
5

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT - 76 / - 14
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT DISTINCT - COALESCE ( - MAX( ALL - 11 ), - COUNT( * ) )
----
-11

skipif mysql # not compatible
query I rowsort label-9890
SELECT DISTINCT - COALESCE ( - MAX ( ALL - 11 ), - COUNT ( * ) )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-9891
SELECT - 62 * 50, - 83 * + 32 + - ( + + 50 ) - - COUNT( * ) col0
----
-3100
-2705

skipif mysql # not compatible
query II rowsort label-9891
SELECT - 62 * 50, - 83 * + 32 + - ( + + 50 ) - - COUNT ( * ) col0
----
-3100
-2705

onlyif mysql # DIV for integer division: 
query I rowsort label-9892
SELECT + 71 DIV 23 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9892
SELECT + 71 / 23 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT + SUM( - ( 72 ) ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-9893
SELECT + SUM ( - ( 72 ) ) AS col2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-9894
SELECT + 54 * 84 DIV + - 45 AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-9894
SELECT + 54 * 84 / + - 45 AS col1
----
-100

query I rowsort
SELECT ALL - 83 + 84
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9896
SELECT COUNT( * ) - 69 DIV - COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-9896
SELECT COUNT ( * ) - 69 / - COUNT ( * ) AS col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9897
SELECT ALL + - NULLIF ( + COALESCE ( - - 7, + 82, + + 9 DIV CASE - 81 WHEN 56 THEN + + 88 * - 37 END * + + 42 DIV - 31 + + 59 + + 34 * 66 + - 23 * - 6 ), + 84 DIV 23 - 77 ) DIV ( + COUNT( * ) ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL + - NULLIF ( + COALESCE ( - - 7, + 82, + + 9 / CASE - 81 WHEN 56 THEN + + 88 * - 37 END * + + 42 / - 31 + + 59 + + 34 * 66 + - 23 * - 6 ), + 84 / 23 - 77 ) / ( + COUNT ( * ) ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT DISTINCT - CASE + - 21 WHEN 18 + + + COUNT( * ) THEN 30 / + COUNT( * ) + - CASE 3 WHEN + + 64 / + 81 - + 39 + - 42 * - - 26 THEN - ( 9 ) * - MIN( + 65 + + 77 * + 83 ) END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT - CASE + - 21 WHEN 18 + + + COUNT ( * ) THEN 30 / + COUNT ( * ) + - CASE 3 WHEN + + 64 / + 81 - + 39 + - 42 * - - 26 THEN - ( 9 ) * - MIN ( + 65 + + 77 * + 83 ) END END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9899
SELECT DISTINCT 47 + + - CAST( 55 AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT 47 + + - CAST ( 55 AS INTEGER )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9900
SELECT ALL 51 * - - 88 * + 41 * - 21 + + - 58 + + + ( - CAST( NULL AS SIGNED ) ), 41 AS col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-9900
SELECT ALL 51 * - - 88 * + 41 * - 21 + + - 58 + + + ( - CAST ( NULL AS INTEGER ) ), 41 AS col2
----
NULL
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9901
SELECT DISTINCT - 80 + + - ( + 94 ) - + - CAST( + 20 AS SIGNED ) + + 41 + + 16 + - + 47 * - 54 * 44 AS col2
----
111575

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT - 80 + + - ( + 94 ) - + - CAST ( + 20 AS INTEGER ) + + 41 + + 16 + - + 47 * - 54 * 44 AS col2
----
111575

query II rowsort
SELECT ALL + - 58 + + 58 AS col1, 58 AS col0
----
0
58

query I rowsort
SELECT DISTINCT - 0 + + - 91
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT - 78 + COUNT( * ) + 12 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-9904
SELECT - 78 + COUNT ( * ) + 12 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT COUNT( * ) * + + 72 - - 23 * - 30 * + - 8 AS col0
----
5592

skipif mysql # not compatible
query I rowsort label-9905
SELECT COUNT ( * ) * + + 72 - - 23 * - 30 * + - 8 AS col0
----
5592

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT - 29 * ( - - ( - COALESCE ( COUNT( * ), + 86 ) ) ) + - + 5 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9906
SELECT - 29 * ( - - ( - COALESCE ( COUNT ( * ), + 86 ) ) ) + - + 5 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT CASE + 25 WHEN + 53 * + 45 THEN - 5 + + 23 ELSE + + 23 END * + COUNT( * ) + - + 81
----
-58

skipif mysql # not compatible
query I rowsort label-9907
SELECT CASE + 25 WHEN + 53 * + 45 THEN - 5 + + 23 ELSE + + 23 END * + COUNT ( * ) + - + 81
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9908
SELECT DISTINCT + 96 + + COUNT( * ) + 55 - + - 37 + - 68 DIV 25 + - 17 AS col2
----
170

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT + 96 + + COUNT ( * ) + 55 - + - 37 + - 68 / 25 + - 17 AS col2
----
170

onlyif mysql # aggregate syntax: 
query II rowsort label-9909
SELECT ALL MIN( - 43 ) * - 39 AS col0, 67 + 1
----
1677
68

skipif mysql # not compatible
query II rowsort label-9909
SELECT ALL MIN ( - 43 ) * - 39 AS col0, 67 + 1
----
1677
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9910
SELECT ALL 6 DIV - - 57
----
0

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL 6 / - - 57
----
0

query I rowsort
SELECT ALL 65 - + 54
----
11

query I rowsort
SELECT DISTINCT + 24 * - + 5 AS col2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT DISTINCT COUNT( * ) * - MAX( + 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT COUNT ( * ) * - MAX ( + 91 ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT ALL MIN( DISTINCT 78 ) * - - 22
----
1716

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL MIN ( DISTINCT 78 ) * - - 22
----
1716

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT 23 + - SUM( ALL 88 )
----
-65

skipif mysql # not compatible
query I rowsort label-9915
SELECT 23 + - SUM ( ALL 88 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT COUNT( * ) - + 33 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9916
SELECT COUNT ( * ) - + 33 AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9917
SELECT CAST( NULL AS SIGNED ) - + 78 + + 18 / - 98 * - COUNT( * ) AS col1, COUNT( * ) + 50
----
NULL
51

skipif mysql # not compatible
query II rowsort label-9917
SELECT CAST ( NULL AS INTEGER ) - + 78 + + 18 / - 98 * - COUNT ( * ) AS col1, COUNT ( * ) + 50
----
NULL
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT COUNT( * ) * - 14 * - - 56 AS col1
----
-784

skipif mysql # not compatible
query I rowsort label-9918
SELECT COUNT ( * ) * - 14 * - - 56 AS col1
----
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT - NULLIF ( - 79, 0 / + ( - MAX( ALL NULLIF ( - 21, + 98 * 94 ) ) ) - + 4 * + 3 + + 50 + - 74 * - 61 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-9919
SELECT - NULLIF ( - 79, 0 / + ( - MAX ( ALL NULLIF ( - 21, + 98 * 94 ) ) ) - + 4 * + 3 + + 50 + - 74 * - 61 ) AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9920
SELECT ALL + CAST( 25 AS SIGNED ) DIV - 38 * + 22 * 5 AS col0, ( 75 ) * + 6 + - 17
----
0
433

skipif mysql # not compatible
query II rowsort label-9920
SELECT ALL + CAST ( 25 AS INTEGER ) / - 38 * + 22 * 5 AS col0, ( 75 ) * + 6 + - 17
----
0
433

query I rowsort
SELECT NULLIF ( - 89, - 34 + - 86 ) AS col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9922
SELECT - 94 * - - 34 * - 89 * - + 81 * - CAST( 73 AS SIGNED ) AS col2
----
1681917372

skipif mysql # not compatible
query I rowsort label-9922
SELECT - 94 * - - 34 * - 89 * - + 81 * - CAST ( 73 AS INTEGER ) AS col2
----
1681917372

query I rowsort
SELECT - 82 * + 25 * 97 * 96 - - 5 AS col2
----
-19089595

query I rowsort
SELECT + + 73 + + ( + 86 )
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-9925
SELECT + 94 DIV + 69 - + + 60
----
-59

skipif mysql # not compatible
query I rowsort label-9925
SELECT + 94 / + 69 - + + 60
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT ALL + NULLIF ( - - 78, + 35 * + - 52 ) * + 52 * - 98 * COUNT( * )
----
-397488

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL + NULLIF ( - - 78, + 35 * + - 52 ) * + 52 * - 98 * COUNT ( * )
----
-397488

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT - - 92 * - MIN( + 97 ) AS col1
----
-8924

skipif mysql # not compatible
query I rowsort label-9927
SELECT - - 92 * - MIN ( + 97 ) AS col1
----
-8924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9928
SELECT - 69 + + 15 / CAST( NULL AS SIGNED ) / - ( - COALESCE ( - NULLIF ( 64, + ( - 26 ) ), - NULLIF ( 18, ( + 49 ) / - - COUNT( * ) * 10 ) * + COUNT( * ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9928
SELECT - 69 + + 15 / CAST ( NULL AS INTEGER ) / - ( - COALESCE ( - NULLIF ( 64, + ( - 26 ) ), - NULLIF ( 18, ( + 49 ) / - - COUNT ( * ) * 10 ) * + COUNT ( * ) ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9929
SELECT + - 72, - 5 / - CAST( NULL AS SIGNED ) AS col2
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-9929
SELECT + - 72, - 5 / - CAST ( NULL AS INTEGER ) AS col2
----
-72
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9930
SELECT ALL 11 * - - 81 + + + 91 DIV ( COUNT( * ) ) + + - 55 + + 82
----
1009

skipif mysql # not compatible
query I rowsort label-9930
SELECT ALL 11 * - - 81 + + + 91 / ( COUNT ( * ) ) + + - 55 + + 82
----
1009

query I rowsort
SELECT DISTINCT + 43 * + 50
----
2150

onlyif mysql # aggregate syntax: 
query II rowsort label-9932
SELECT DISTINCT + 26 * - COUNT( * ) + 9, 19 AS col1
----
-17
19

skipif mysql # not compatible
query II rowsort label-9932
SELECT DISTINCT + 26 * - COUNT ( * ) + 9, 19 AS col1
----
-17
19

query I rowsort
SELECT - + 71 * 22 * + 81 * + + 12 AS col1
----
-1518264

query I rowsort
SELECT - + 65 + + 28 AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9935
SELECT ALL + + CAST( NULL AS SIGNED ) col1, - COUNT( * ) - - 51
----
NULL
50

skipif mysql # not compatible
query II rowsort label-9935
SELECT ALL + + CAST ( NULL AS INTEGER ) col1, - COUNT ( * ) - - 51
----
NULL
50

query I rowsort
SELECT + - 31 col0
----
-31

query I rowsort
SELECT - NULLIF ( 78, + 87 * - 22 )
----
-78

query II rowsort
SELECT DISTINCT + 64, 30 AS col1
----
64
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT - 99 * - COALESCE ( - 87, - 27, - - COUNT( * ) + 46 ) * - 71 col0
----
611523

skipif mysql # not compatible
query I rowsort label-9939
SELECT - 99 * - COALESCE ( - 87, - 27, - - COUNT ( * ) + 46 ) * - 71 col0
----
611523

query I rowsort
SELECT + 68 * - 86 * - 77 + 8 AS col2
----
450304

onlyif mysql # aggregate syntax: 
query II rowsort label-9941
SELECT + 54 AS col0, + 25 + - + 73 + COUNT( * ) * + ( + MIN( ALL - 36 ) ) col2
----
54
-84

skipif mysql # not compatible
query II rowsort label-9941
SELECT + 54 AS col0, + 25 + - + 73 + COUNT ( * ) * + ( + MIN ( ALL - 36 ) ) col2
----
54
-84

query I rowsort
SELECT DISTINCT CASE + 24 WHEN + 24 - + 51 THEN + 17 END AS col0
----
NULL

query I rowsort
SELECT - 1 * + 59
----
-59

query I rowsort
SELECT ALL - 37 * + - 6 AS col1
----
222

query I rowsort
SELECT ALL + 83 - - 70
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT SUM( - CASE - + 88 WHEN - 63 THEN NULL WHEN - 16 * 16 THEN 58 ELSE + 92 - - - NULLIF ( + 25, - - 24 ) END )
----
-67

skipif mysql # not compatible
query I rowsort label-9946
SELECT SUM ( - CASE - + 88 WHEN - 63 THEN NULL WHEN - 16 * 16 THEN 58 ELSE + 92 - - - NULLIF ( + 25, - - 24 ) END )
----
-67

query II rowsort
SELECT DISTINCT 73 AS col1, 46 AS col1
----
73
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT + 29 * + + SUM( + 67 ) AS col0
----
1943

skipif mysql # not compatible
query I rowsort label-9948
SELECT + 29 * + + SUM ( + 67 ) AS col0
----
1943

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9949
SELECT - CAST( NULL AS SIGNED ) * - 64 AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9949
SELECT - CAST ( NULL AS INTEGER ) * - 64 AS col0, COUNT ( * )
----
NULL
1

query I rowsort
SELECT + 35 + - 18
----
17

query I rowsort
SELECT + 93 - - 69
----
162

query I rowsort
SELECT ALL ( 34 ) col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-9953
SELECT ALL COUNT( * ) AS col1, 72 AS col0
----
1
72

skipif mysql # not compatible
query II rowsort label-9953
SELECT ALL COUNT ( * ) AS col1, 72 AS col0
----
1
72

query I rowsort
SELECT - NULLIF ( + - ( - + 43 ), + 42 )
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9955
SELECT + MIN( ALL + 68 ) DIV - 6 + COUNT( * ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-9955
SELECT + MIN ( ALL + 68 ) / - 6 + COUNT ( * ) AS col2
----
-10

query II rowsort
SELECT + 75 * + + COALESCE ( - 75, + 88 ) AS col0, + 88
----
-5625
88

query I rowsort
SELECT + 81 + + + 11 * 84
----
1005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9958
SELECT DISTINCT 87 * + CAST( + 12 AS SIGNED ) * 95 AS col1
----
99180

skipif mysql # not compatible
query I rowsort label-9958
SELECT DISTINCT 87 * + CAST ( + 12 AS INTEGER ) * 95 AS col1
----
99180

query II rowsort
SELECT - - 51, 74 AS col2
----
51
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9960
SELECT + + COUNT( * ) DIV + + 17 + - - 47 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9960
SELECT + + COUNT ( * ) / + + 17 + - - 47 AS col0
----
47

query I rowsort
SELECT - 14 + + ( + 91 )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9962
SELECT + 53 * 66 DIV + 78 + + ( COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-9962
SELECT + 53 * 66 / + 78 + + ( COUNT ( * ) )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9963
SELECT ALL - SUM( + 52 ) DIV - + 52 + - COUNT( * ) * 89 DIV + CAST( - - 10 AS SIGNED ) col0
----
-7

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL - SUM ( + 52 ) / - + 52 + - COUNT ( * ) * 89 / + CAST ( - - 10 AS INTEGER ) col0
----
-7

query II rowsort
SELECT 41 AS col1, 12 * + 8
----
41
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9965
SELECT ALL - + 45 / 68 - - COUNT( * ) * ( - 18 ) + COUNT( * ) + + 62 + + 71 - 42 / - MIN( - - 48 ) - + + ( - CASE 53 WHEN + CASE + - 1 WHEN NULLIF ( 44, NULLIF ( 5, COALESCE ( 3, + CAST( - 73 AS SIGNED ) ) ) ) + 84 THEN - CAST( NULL AS SIGNED ) ELSE NULL END THEN 95 * + 94 END ) + AVG ( ALL 76 ) * + ( 90 * 11 ) / 35 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL - + 45 / 68 - - COUNT ( * ) * ( - 18 ) + COUNT ( * ) + + 62 + + 71 - 42 / - MIN ( - - 48 ) - + + ( - CASE 53 WHEN + CASE + - 1 WHEN NULLIF ( 44, NULLIF ( 5, COALESCE ( 3, + CAST ( - 73 AS INTEGER ) ) ) ) + 84 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END THEN 95 * + 94 END ) + AVG ( ALL 76 ) * + ( 90 * 11 ) / 35 * - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9966
SELECT - 39, ( + COUNT( * ) ) * - + 18 * + + 67 * 94 AS col0
----
-39
-113364

skipif mysql # not compatible
query II rowsort label-9966
SELECT - 39, ( + COUNT ( * ) ) * - + 18 * + + 67 * 94 AS col0
----
-39
-113364

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT + + COUNT( DISTINCT + 34 ) * + + 19
----
19

skipif mysql # not compatible
query I rowsort label-9967
SELECT + + COUNT ( DISTINCT + 34 ) * + + 19
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9968
SELECT ALL + + 46 DIV - COUNT( * ) + + 86
----
40

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL + + 46 / - COUNT ( * ) + + 86
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9969
SELECT DISTINCT + 64 DIV - ( + COUNT( - + 24 ) ) + + - 87 + - + NULLIF ( + CAST( + 51 AS SIGNED ), - ( - CASE MAX( DISTINCT - + 97 ) WHEN + COUNT( * ) + 78 THEN - + 97 WHEN + 89 THEN NULL END ) - 31 ) AS col1
----
-202

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT + 64 / - ( + COUNT ( - + 24 ) ) + + - 87 + - + NULLIF ( + CAST ( + 51 AS INTEGER ), - ( - CASE MAX ( DISTINCT - + 97 ) WHEN + COUNT ( * ) + 78 THEN - + 97 WHEN + 89 THEN NULL END ) - 31 ) AS col1
----
-202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9970
SELECT + COALESCE ( - + CAST( NULL AS SIGNED ), - + 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-9970
SELECT + COALESCE ( - + CAST ( NULL AS INTEGER ), - + 95 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT + - COUNT( * ) - + 6
----
-7

skipif mysql # not compatible
query I rowsort label-9971
SELECT + - COUNT ( * ) - + 6
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT + MIN( + + 3 ) * - 42 - 28 + - 72 * - MIN( + - 20 ) AS col1
----
-1594

skipif mysql # not compatible
query I rowsort label-9972
SELECT + MIN ( + + 3 ) * - 42 - 28 + - 72 * - MIN ( + - 20 ) AS col1
----
-1594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9973
SELECT ALL CASE + ( + 8 ) WHEN - - CAST( + 99 AS SIGNED ) * + 33 + + - AVG ( COALESCE ( - 89, - 56 / + ( - 8 ) ) ) THEN 25 * - 3 - + ( + 81 ) END * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL CASE + ( + 8 ) WHEN - - CAST ( + 99 AS INTEGER ) * + 33 + + - AVG ( COALESCE ( - 89, - 56 / + ( - 8 ) ) ) THEN 25 * - 3 - + ( + 81 ) END * - 94
----
NULL

query II rowsort
SELECT - 47 AS col2, 16
----
-47
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT DISTINCT + 37 * - - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT + 37 * - - COUNT ( * )
----
37

query II rowsort
SELECT - 53 - - - 30 col1, - 96 AS col1
----
-83
-96

query I rowsort
SELECT ALL + COALESCE ( 17, + + 2 + + 27 * 27 )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9978
SELECT COALESCE ( + - 41, NULLIF ( - 65, - 17 ), - COUNT( * ) + 85 + + 31 * + - CAST( NULL AS SIGNED ) DIV - CASE + 62 WHEN + 4 + 82 * + 5 - COUNT( * ) THEN COUNT( * ) END - 99 * 42 )
----
-41

skipif mysql # not compatible
query I rowsort label-9978
SELECT COALESCE ( + - 41, NULLIF ( - 65, - 17 ), - COUNT ( * ) + 85 + + 31 * + - CAST ( NULL AS INTEGER ) / - CASE + 62 WHEN + 4 + 82 * + 5 - COUNT ( * ) THEN COUNT ( * ) END - 99 * 42 )
----
-41

query I rowsort
SELECT - 41 * - 84
----
3444

query I rowsort
SELECT - 47 * - 68 * - + 21
----
-67116

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9981
SELECT ALL - COUNT( * ) DIV + 84 AS col1, + MAX( ALL - NULLIF ( - - 79, + + 72 DIV - + 68 ) )
----
0
-79

skipif mysql # not compatible
query II rowsort label-9981
SELECT ALL - COUNT ( * ) / + 84 AS col1, + MAX ( ALL - NULLIF ( - - 79, + + 72 / - + 68 ) )
----
0
-79

query I rowsort
SELECT - 17 * - 88
----
1496

query I rowsort
SELECT - 94 + - + ( 79 ) AS col2
----
-173

query I rowsort
SELECT ALL 5 * + 73 * + + 1 AS col1
----
365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT ALL - 7 * - - 19 * + CAST( - + 44 AS SIGNED ) * + - ( - - 53 )
----
-310156

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL - 7 * - - 19 * + CAST ( - + 44 AS INTEGER ) * + - ( - - 53 )
----
-310156

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT COUNT( * ) * + - 98 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-9986
SELECT COUNT ( * ) * + - 98 AS col1
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9987
SELECT DISTINCT + 34 * - ( + + ( + CASE + 6 WHEN + 62 + + 66 THEN 69 + - + 36 + - 79 WHEN - COUNT( * ) THEN - CAST( + 65 AS SIGNED ) ELSE - ( + 6 ) END ) ) AS col2, 63
----
204
63

skipif mysql # not compatible
query II rowsort label-9987
SELECT DISTINCT + 34 * - ( + + ( + CASE + 6 WHEN + 62 + + 66 THEN 69 + - + 36 + - 79 WHEN - COUNT ( * ) THEN - CAST ( + 65 AS INTEGER ) ELSE - ( + 6 ) END ) ) AS col2, 63
----
204
63

query I rowsort
SELECT 10 + 80 * + 36 * 84
----
241930

onlyif mysql # aggregate syntax: 
query II rowsort label-9989
SELECT ALL + COUNT( * ) * 73 AS col2, 88
----
73
88

skipif mysql # not compatible
query II rowsort label-9989
SELECT ALL + COUNT ( * ) * 73 AS col2, 88
----
73
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT COUNT( * ) * + 8
----
8

skipif mysql # not compatible
query I rowsort label-9990
SELECT COUNT ( * ) * + 8
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT ( - 65 ) * - MAX( 57 )
----
3705

skipif mysql # not compatible
query I rowsort label-9991
SELECT ( - 65 ) * - MAX ( 57 )
----
3705

query I rowsort
SELECT ALL - ( - 43 ) + 98 AS col2
----
141

query I rowsort
SELECT DISTINCT + NULLIF ( - - 85, + 40 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT ALL COUNT( * ) + + 45 - - 94
----
140

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL COUNT ( * ) + + 45 - - 94
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-9995
SELECT 35 - 95 DIV + 2
----
-12

skipif mysql # not compatible
query I rowsort label-9995
SELECT 35 - 95 / + 2
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9996
SELECT ALL - CAST( + 24 AS SIGNED ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL - CAST ( + 24 AS INTEGER ) AS col2
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9997
SELECT - 43 DIV + COUNT( * ) - - NULLIF ( - 34, - COUNT( * ) + - ( COUNT( * ) ) ) - - 15 + + - 83 + + 11 - + 53 + - 94, 33 + - CASE + 52 WHEN - ( + 20 ) THEN 11 END DIV - 42 AS col1
----
-281
NULL

skipif mysql # not compatible
query II rowsort label-9997
SELECT - 43 / + COUNT ( * ) - - NULLIF ( - 34, - COUNT ( * ) + - ( COUNT ( * ) ) ) - - 15 + + - 83 + + 11 - + 53 + - 94, 33 + - CASE + 52 WHEN - ( + 20 ) THEN 11 END / - 42 AS col1
----
-281
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9998
SELECT + - 24 * CAST( NULL AS SIGNED ) * + - 22 - 28 * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9998
SELECT + - 24 * CAST ( NULL AS INTEGER ) * + - 22 - 28 * + 95
----
NULL

query I rowsort
SELECT ALL 75 * + + ( - 80 )
----
-6000

