hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT 94 - - MIN( ALL - 6 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-0
SELECT 94 - - MIN ( ALL - 6 ) AS col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1
SELECT DISTINCT - - 8 + - + 74 * COALESCE ( COUNT( * ), + 7 * MAX( + - CAST( + + 77 AS SIGNED ) ) )
----
-66

skipif mysql # not compatible
query I rowsort label-1
SELECT DISTINCT - - 8 + - + 74 * COALESCE ( COUNT ( * ), + 7 * MAX ( + - CAST ( + + 77 AS INTEGER ) ) )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT SUM( + + 8 ) + + 25 col2
----
33

skipif mysql # not compatible
query I rowsort label-2
SELECT SUM ( + + 8 ) + + 25 col2
----
33

query I rowsort
SELECT - 47 * + - 15
----
705

query I rowsort
SELECT ALL - + 58 + + - ( + - 24 ) + - 50 * + - 5 * 50
----
12466

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6
SELECT ALL NULLIF ( - NULLIF ( - 90, COUNT( * ) ), + - 76 / - - 83 + 17 + - 17 * - + ( - + 39 ) / - + 79 - + + AVG ( DISTINCT 84 ) * + 36 + ( - ( NULLIF ( CAST( 7 AS SIGNED ), + ( MAX( - 68 ) ) * NULLIF ( 58, 97 ) ) ) ) ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL NULLIF ( - NULLIF ( - 90, COUNT ( * ) ), + - 76 / - - 83 + 17 + - 17 * - + ( - + 39 ) / - + 79 - + + AVG ( DISTINCT 84 ) * + 36 + ( - ( NULLIF ( CAST ( 7 AS INTEGER ), + ( MAX ( - 68 ) ) * NULLIF ( 58, 97 ) ) ) ) ) AS col0
----
90

query I rowsort
SELECT - - CASE 6 WHEN 48 THEN + 78 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8
SELECT - CAST( NULL AS SIGNED ) + + + COALESCE ( + 95, + MAX( ALL + 16 ) ) * - COUNT( * ) - + NULLIF ( 25, - COALESCE ( + - 75, + 50 ) + - 93 ) * + + ( + 11 ) * + 70, + 39 * 94 col1
----
NULL
3666

skipif mysql # not compatible
query II rowsort label-8
SELECT - CAST ( NULL AS INTEGER ) + + + COALESCE ( + 95, + MAX ( ALL + 16 ) ) * - COUNT ( * ) - + NULLIF ( 25, - COALESCE ( + - 75, + 50 ) + - 93 ) * + + ( + 11 ) * + 70, + 39 * 94 col1
----
NULL
3666

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT COALESCE ( + 86, - 0 ) * + SUM( - 23 ) col0
----
-1978

skipif mysql # not compatible
query I rowsort label-9
SELECT COALESCE ( + 86, - 0 ) * + SUM ( - 23 ) col0
----
-1978

query II rowsort
SELECT 90 AS col1, - 1
----
90
-1

query I rowsort
SELECT 21 * + 82 - + CASE 41 WHEN - 46 THEN - + 42 + - 15 + + ( - 63 ) END * - - 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-12
SELECT DISTINCT NULLIF ( + - COUNT( * ), - + 40 * + 58 * + + 37 ) DIV MAX( DISTINCT 31 ) - - 48 + - 37 - + 15 * 56
----
-829

skipif mysql # not compatible
query I rowsort label-12
SELECT DISTINCT NULLIF ( + - COUNT ( * ), - + 40 * + 58 * + + 37 ) / MAX ( DISTINCT 31 ) - - 48 + - 37 - + 15 * 56
----
-829

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

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

query I rowsort
SELECT 13 + + - 58 AS col0
----
-45

query I rowsort
SELECT ALL 46 - 72
----
-26

query I rowsort
SELECT 44 * - + 73
----
-3212

onlyif mysql # DIV for integer division: 
query II rowsort label-17
SELECT 70 AS col2, + 82 + + 7 DIV - + 4 + - 58
----
70
23

skipif mysql # not compatible
query II rowsort label-17
SELECT 70 AS col2, + 82 + + 7 / - + 4 + - 58
----
70
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-18
SELECT - COUNT( * ) * - COUNT( * ) + - COUNT( * ) * + MAX( DISTINCT 52 ) + + 2 - - NULLIF ( + + CAST( NULL AS SIGNED ), - - 87 ) + - 37 * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-18
SELECT - COUNT ( * ) * - COUNT ( * ) + - COUNT ( * ) * + MAX ( DISTINCT 52 ) + + 2 - - NULLIF ( + + CAST ( NULL AS INTEGER ), - - 87 ) + - 37 * 30
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-19
SELECT - ( + ( - - COUNT( * ) ) ) col0, - 69 * + + 45
----
-1
-3105

skipif mysql # not compatible
query II rowsort label-19
SELECT - ( + ( - - COUNT ( * ) ) ) col0, - 69 * + + 45
----
-1
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT NULLIF ( 77, 16 * + ( - - COALESCE ( 46, 40 ) ) * - + MAX( ALL + 97 ) * 10 / 80 * - COUNT( * ) + + 69 + + - SUM( ALL + 98 ) - - MIN( - + 95 ) ) * 55 * COALESCE ( + 93, + COUNT( * ) + 8 * + SUM( 31 * + 7 + 38 ) )
----
393855

skipif mysql # not compatible
query I rowsort label-20
SELECT NULLIF ( 77, 16 * + ( - - COALESCE ( 46, 40 ) ) * - + MAX ( ALL + 97 ) * 10 / 80 * - COUNT ( * ) + + 69 + + - SUM ( ALL + 98 ) - - MIN ( - + 95 ) ) * 55 * COALESCE ( + 93, + COUNT ( * ) + 8 * + SUM ( 31 * + 7 + 38 ) )
----
393855

query I rowsort
SELECT ALL 78 * - 24 AS col2
----
-1872

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT 54 * - + 37 * + COUNT( * ) AS col2
----
-1998

skipif mysql # not compatible
query I rowsort label-22
SELECT 54 * - + 37 * + COUNT ( * ) AS col2
----
-1998

onlyif mysql # aggregate syntax: 
query II rowsort label-23
SELECT 85 AS col2, + COUNT( * ) * - 63 col1
----
85
-63

skipif mysql # not compatible
query II rowsort label-23
SELECT 85 AS col2, + COUNT ( * ) * - 63 col1
----
85
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-24
SELECT ALL 90 AS col0, COUNT( * ) AS col1
----
90
1

skipif mysql # not compatible
query II rowsort label-24
SELECT ALL 90 AS col0, COUNT ( * ) AS col1
----
90
1

onlyif mysql # DIV for integer division: 
query I rowsort label-25
SELECT DISTINCT 30 + - 8 DIV - ( + 59 )
----
30

skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT 30 + - 8 / - ( + 59 )
----
30

query II rowsort
SELECT ALL - 5 AS col0, - 26 AS col0
----
-5
-26

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

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

query I rowsort
SELECT CASE + 78 WHEN + 26 THEN - COALESCE ( + - 99, 86 + 16 ) + - 69 WHEN - AVG ( + ( - 7 ) ) THEN NULL END * + 89
----
NULL

query II rowsort
SELECT + 75 * + 50 + + 75 - - + 99 AS col2, - 26 * + 95 + - - 30 AS col1
----
3924
-2440

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT 4 * MAX( ALL - 78 ) AS col1
----
-312

skipif mysql # not compatible
query I rowsort label-30
SELECT 4 * MAX ( ALL - 78 ) AS col1
----
-312

onlyif mysql # DIV for integer division: 
query II rowsort label-31
SELECT 50 DIV - 88 + + 88 + - 11 AS col2, - 66 * - 39
----
77
2574

skipif mysql # not compatible
query II rowsort label-31
SELECT 50 / - 88 + + 88 + - 11 AS col2, - 66 * - 39
----
77
2574

query I rowsort
SELECT ALL - 77 + 4
----
-73

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

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

query II rowsort
SELECT ALL 82 + - 43 + 21 * - + NULLIF ( - 52, + - 62 ) AS col2, 61 * + + 90 * + - ( 98 ) + 40 * 71
----
1131
-535180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-35
SELECT 94 + - COUNT( * ) DIV + 50 * 31 * 66
----
94

skipif mysql # not compatible
query I rowsort label-35
SELECT 94 + - COUNT ( * ) / + 50 * 31 * 66
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-36
SELECT ALL - MIN( DISTINCT + + 47 ) + - 72 + 56 * 42 * + CAST( NULL AS SIGNED ) * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-36
SELECT ALL - MIN ( DISTINCT + + 47 ) + - 72 + 56 * 42 * + CAST ( NULL AS INTEGER ) * - 74
----
NULL

query I rowsort
SELECT ALL + 19 - + - 16 + - 90
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-38
SELECT + 71 * 64 * MIN( ALL - + 85 ), + ( - NULLIF ( + 96, - 98 ) ) AS col1
----
-386240
-96

skipif mysql # not compatible
query II rowsort label-38
SELECT + 71 * 64 * MIN ( ALL - + 85 ), + ( - NULLIF ( + 96, - 98 ) ) AS col1
----
-386240
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT COUNT( * ) * + 93 * CASE - ( - 46 ) WHEN + 72 * - 32 * - 21 THEN - - 36 END * + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-39
SELECT COUNT ( * ) * + 93 * CASE - ( - 46 ) WHEN + 72 * - 32 * - 21 THEN - - 36 END * + 88 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-40
SELECT DISTINCT - CASE - CASE - CASE 58 WHEN - 68 * - 93 + + COALESCE ( + 44, + + 43 ) * + + ( 74 ) * + 97 + 67 - 73 + + 64 + - 66 * + 97 * - ( + - 70 ) - + ( ( - NULLIF ( + 10, 29 ) ) ) * - 68 THEN NULL WHEN - 52 THEN NULL WHEN + AVG ( DISTINCT + 84 ) THEN COUNT( 47 ) END WHEN 2 * + 81 THEN 38 + COUNT( * ) WHEN 27 THEN + COUNT( DISTINCT 49 ) ELSE NULL END WHEN 43 / + CAST( NULL AS DECIMAL ) THEN + 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT - CASE - CASE - CASE 58 WHEN - 68 * - 93 + + COALESCE ( + 44, + + 43 ) * + + ( 74 ) * + 97 + 67 - 73 + + 64 + - 66 * + 97 * - ( + - 70 ) - + ( ( - NULLIF ( + 10, 29 ) ) ) * - 68 THEN NULL WHEN - 52 THEN NULL WHEN + AVG ( DISTINCT + 84 ) THEN COUNT ( 47 ) END WHEN 2 * + 81 THEN 38 + COUNT ( * ) WHEN 27 THEN + COUNT ( DISTINCT 49 ) ELSE NULL END WHEN 43 / + CAST ( NULL AS REAL ) THEN + 22 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT DISTINCT - 11 - + ( - 65 ) * - - 22 + COUNT( * ) AS col0
----
1420

skipif mysql # not compatible
query I rowsort label-41
SELECT DISTINCT - 11 - + ( - 65 ) * - - 22 + COUNT ( * ) AS col0
----
1420

query I rowsort
SELECT ALL - 78 - - + 19 AS col2
----
-59

query I rowsort
SELECT DISTINCT + 20 * + 57 AS col1
----
1140

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-44
SELECT ALL + COUNT( * ) AS col1, + CASE + 74 WHEN - 12 THEN + 73 * 93 * - CAST( NULL AS DECIMAL ) + - - ( - + 73 ) ELSE + 9 / + CASE 1 WHEN + 13 + + 20 THEN + 69 * - 9 END END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-44
SELECT ALL + COUNT ( * ) AS col1, + CASE + 74 WHEN - 12 THEN + 73 * 93 * - CAST ( NULL AS REAL ) + - - ( - + 73 ) ELSE + 9 / + CASE 1 WHEN + 13 + + 20 THEN + 69 * - 9 END END
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT DISTINCT + + MIN( - - 86 ) * + - 82 AS col0
----
-7052

skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT + + MIN ( - - 86 ) * + - 82 AS col0
----
-7052

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT ALL - SUM( ALL 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL - SUM ( ALL 17 ) AS col2
----
-17

query I rowsort
SELECT DISTINCT COALESCE ( - + 1, - 22 )
----
-1

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

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

query I rowsort
SELECT 46 + 23 AS col0
----
69

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-52
SELECT - AVG ( + 66 ) / NULLIF ( AVG ( - 68 ), 84 ) * - CASE 19 WHEN + - ( - 26 ) * - 40 THEN + - COUNT( * ) / ( + - CASE + 34 WHEN COUNT( * ) THEN NULL WHEN - 98 * + + 87 * 6 * - 19 THEN - 44 ELSE CAST( NULL AS SIGNED ) END ) * 39 END + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-52
SELECT - AVG ( + 66 ) / NULLIF ( AVG ( - 68 ), 84 ) * - CASE 19 WHEN + - ( - 26 ) * - 40 THEN + - COUNT ( * ) / ( + - CASE + 34 WHEN COUNT ( * ) THEN NULL WHEN - 98 * + + 87 * 6 * - 19 THEN - 44 ELSE CAST ( NULL AS INTEGER ) END ) * 39 END + - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT DISTINCT 19 * MIN( ALL - + 10 ) * 67
----
-12730

skipif mysql # not compatible
query I rowsort label-53
SELECT DISTINCT 19 * MIN ( ALL - + 10 ) * 67
----
-12730

query I rowsort
SELECT ALL 78 + - ( + 23 ) * + 4
----
-14

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-56
SELECT ALL 42 + + 79 + + 95 + - 11 DIV - - 41 + - - 33 AS col0
----
249

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL 42 + + 79 + + 95 + - 11 / - - 41 + - - 33 AS col0
----
249

onlyif mysql # DIV for integer division: 
query I rowsort label-57
SELECT 45 DIV - 23 + - 87
----
-88

skipif mysql # not compatible
query I rowsort label-57
SELECT 45 / - 23 + - 87
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT ( + NULLIF ( 99, COUNT( * ) * - COUNT( * ) + + NULLIF ( + COUNT( * ), + - 60 * - 31 * 76 - - COUNT( * ) ) - - 17 * - 28 / - - 58 + + 88 ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-58
SELECT ( + NULLIF ( 99, COUNT ( * ) * - COUNT ( * ) + + NULLIF ( + COUNT ( * ), + - 60 * - 31 * 76 - - COUNT ( * ) ) - - 17 * - 28 / - - 58 + + 88 ) ) AS col0
----
99

query I rowsort
SELECT ALL 34 * + 65 * - 52 + 45 AS col0
----
-114875

onlyif mysql # aggregate syntax: 
query II rowsort label-60
SELECT DISTINCT 23 * + 64 AS col0, - 86 * - 18 * - + COUNT( * ) + - - 62 + - - 85 + - 44 AS col0
----
1472
-1445

skipif mysql # not compatible
query II rowsort label-60
SELECT DISTINCT 23 * + 64 AS col0, - 86 * - 18 * - + COUNT ( * ) + - - 62 + - - 85 + - 44 AS col0
----
1472
-1445

query I rowsort
SELECT DISTINCT 96 * + + 73 + - + 30
----
6978

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

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

query I rowsort
SELECT + 70 * + - 39
----
-2730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-64
SELECT ALL MAX( DISTINCT - CASE 57 WHEN 60 THEN + 28 DIV + 0 ELSE + - 18 + + 31 END ) * - 29 - + + 43 col1
----
334

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL MAX ( DISTINCT - CASE 57 WHEN 60 THEN + 28 / + 0 ELSE + - 18 + + 31 END ) * - 29 - + + 43 col1
----
334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-65
SELECT + - ( - - 71 ) * 27 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-65
SELECT + - ( - - 71 ) * 27 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-66
SELECT - 38 * + 31 AS col1, - COUNT( * ) + + - 5
----
-1178
-6

skipif mysql # not compatible
query II rowsort label-66
SELECT - 38 * + 31 AS col1, - COUNT ( * ) + + - 5
----
-1178
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-67
SELECT + + NULLIF ( + - 2, + ( 29 ) * - + 24 + - + CASE - CAST( NULL AS SIGNED ) WHEN - 36 THEN + ( 51 ) WHEN - + COUNT( * ) THEN NULL END * + 60 + + - 91 * + - 49 )
----
-2

skipif mysql # not compatible
query I rowsort label-67
SELECT + + NULLIF ( + - 2, + ( 29 ) * - + 24 + - + CASE - CAST ( NULL AS INTEGER ) WHEN - 36 THEN + ( 51 ) WHEN - + COUNT ( * ) THEN NULL END * + 60 + + - 91 * + - 49 )
----
-2

query I rowsort
SELECT DISTINCT + 40 * 85 + - 2
----
3398

query I rowsort
SELECT + 5 * + 81 - 78
----
327

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

skipif mysql # not compatible
query I rowsort label-70
SELECT ALL + SUM ( + - 25 ) * COUNT ( * ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-71
SELECT DISTINCT + + SUM( DISTINCT 80 ) * 75, - 17 - + 14 AS col2
----
6000
-31

skipif mysql # not compatible
query II rowsort label-71
SELECT DISTINCT + + SUM ( DISTINCT 80 ) * 75, - 17 - + 14 AS col2
----
6000
-31

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

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

query I rowsort
SELECT ALL + 47 * - - 31 AS col1
----
1457

query I rowsort
SELECT + + ( - 17 ) * - + 11 + - + 21 + - 70 * 72
----
-4874

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT - + ( - 60 ) * - SUM( + 66 ) AS col2
----
-3960

skipif mysql # not compatible
query I rowsort label-76
SELECT - + ( - 60 ) * - SUM ( + 66 ) AS col2
----
-3960

query I rowsort
SELECT - 7 * + 54 AS col1
----
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT - 12 + - SUM( 14 )
----
-26

skipif mysql # not compatible
query I rowsort label-78
SELECT - 12 + - SUM ( 14 )
----
-26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT ALL - 20 + - MAX( 93 ) AS col1
----
-113

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL - 20 + - MAX ( 93 ) AS col1
----
-113

query I rowsort
SELECT ALL - ( - + 48 ) + 57
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT DISTINCT - 40 + COUNT( 25 ) * + 39
----
-1

skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT - 40 + COUNT ( 25 ) * + 39
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-83
SELECT ALL NULLIF ( + 97, - + 42 ) AS col1, + NULLIF ( + + CAST( + 30 AS SIGNED ), - ( - 95 ) ) DIV + - MIN( - 7 ) + - 15 - + 5
----
97
-16

skipif mysql # not compatible
query II rowsort label-83
SELECT ALL NULLIF ( + 97, - + 42 ) AS col1, + NULLIF ( + + CAST ( + 30 AS INTEGER ), - ( - 95 ) ) / + - MIN ( - 7 ) + - 15 - + 5
----
97
-16

query II rowsort
SELECT 10 AS col0, - 81
----
10
-81

query II rowsort
SELECT - 42 AS col2, + 85 AS col2
----
-42
85

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-87
SELECT DISTINCT NULLIF ( 80, - + CAST( - - 80 AS SIGNED ) / + - ( 26 ) )
----
80

skipif mysql # not compatible
query I rowsort label-87
SELECT DISTINCT NULLIF ( 80, - + CAST ( - - 80 AS INTEGER ) / + - ( 26 ) )
----
80

query I rowsort
SELECT ALL - 50 + - 71 AS col0
----
-121

query II rowsort
SELECT ALL 53 AS col0, 12 + + 64 AS col0
----
53
76

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

query I rowsort
SELECT ALL 65 * + 15 AS col1
----
975

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-93
SELECT DISTINCT - NULLIF ( + 0, - + 50 ) DIV 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT - NULLIF ( + 0, - + 50 ) / 98 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-94
SELECT + 16 DIV 75 + + - 67, - COUNT( * ) * - 96 AS col1
----
-67
96

skipif mysql # not compatible
query II rowsort label-94
SELECT + 16 / 75 + + - 67, - COUNT ( * ) * - 96 AS col1
----
-67
96

query I rowsort
SELECT - 17 * + + 70
----
-1190

query I rowsort
SELECT + 23 * 52 AS col2
----
1196

query I rowsort
SELECT ALL 29 * - + 30
----
-870

query I rowsort
SELECT - 34 + + - 44 + + 28
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-99
SELECT 15 / 92 - + + ( - 23 ) + + NULLIF ( - 28, + 46 * + - CAST( - 56 AS SIGNED ) - + 13 + + 78 + + COUNT( * ) * 89 ) + + 72 / + - CASE - + 48 WHEN COALESCE ( - ( 31 ), + MIN( DISTINCT COALESCE ( - + 34, + + 30 ) ), - 25 ) THEN NULL WHEN + 80 / 81 + CAST( NULL AS SIGNED ) THEN + 60 END * - 81 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-99
SELECT 15 / 92 - + + ( - 23 ) + + NULLIF ( - 28, + 46 * + - CAST ( - 56 AS INTEGER ) - + 13 + + 78 + + COUNT ( * ) * 89 ) + + 72 / + - CASE - + 48 WHEN COALESCE ( - ( 31 ), + MIN ( DISTINCT COALESCE ( - + 34, + + 30 ) ), - 25 ) THEN NULL WHEN + 80 / 81 + CAST ( NULL AS INTEGER ) THEN + 60 END * - 81 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT ALL + 11 * - MIN( DISTINCT - 8 ) col1
----
88

skipif mysql # not compatible
query I rowsort label-100
SELECT ALL + 11 * - MIN ( DISTINCT - 8 ) col1
----
88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT ALL - COALESCE ( MIN( + 53 ), - 44 ) * - 32 AS col1
----
1696

skipif mysql # not compatible
query I rowsort label-102
SELECT ALL - COALESCE ( MIN ( + 53 ), - 44 ) * - 32 AS col1
----
1696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-103
SELECT + - CAST( NULL AS SIGNED ) / COALESCE ( + 47, - 20 * - 87 / - 35 * + SUM( DISTINCT - 2 ) - + - COALESCE ( + COUNT( * ), - ( - 78 ) / + 13 + COUNT( * ), ( - 52 ) ) * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-103
SELECT + - CAST ( NULL AS INTEGER ) / COALESCE ( + 47, - 20 * - 87 / - 35 * + SUM ( DISTINCT - 2 ) - + - COALESCE ( + COUNT ( * ), - ( - 78 ) / + 13 + COUNT ( * ), ( - 52 ) ) * COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL + + COALESCE ( + 51, - + 38, - + ( 34 ) )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-105
SELECT ALL + 29, 45 + - + CASE 37 WHEN COUNT( - + 8 ) + 71 THEN NULL ELSE COUNT( * ) * - - CAST( NULL AS SIGNED ) + + 12 END AS col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-105
SELECT ALL + 29, 45 + - + CASE 37 WHEN COUNT ( - + 8 ) + 71 THEN NULL ELSE COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + + 12 END AS col1
----
29
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-106
SELECT + - 81 + CASE 73 WHEN - COUNT( * ) + - 15 + + - COUNT( * ) * 18 * - - 37 THEN NULL WHEN + 62 THEN NULL ELSE - 82 END + + + 20 AS col1, 53 + + MAX( DISTINCT - 95 ) + + + COALESCE ( + - ( + CAST( NULL AS SIGNED ) ), 12 + 46 + - - 87 ) * + CAST( NULL AS SIGNED ) * - 98 * - 21 AS col1
----
-143
NULL

skipif mysql # not compatible
query II rowsort label-106
SELECT + - 81 + CASE 73 WHEN - COUNT ( * ) + - 15 + + - COUNT ( * ) * 18 * - - 37 THEN NULL WHEN + 62 THEN NULL ELSE - 82 END + + + 20 AS col1, 53 + + MAX ( DISTINCT - 95 ) + + + COALESCE ( + - ( + CAST ( NULL AS INTEGER ) ), 12 + 46 + - - 87 ) * + CAST ( NULL AS INTEGER ) * - 98 * - 21 AS col1
----
-143
NULL

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

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

query I rowsort
SELECT + 39 * + + NULLIF ( + - 29, + 75 )
----
-1131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-109
SELECT ALL - 49 * - 88 + + - AVG ( + CAST( NULL AS DECIMAL ) ) * + - 89 + + CAST( NULL AS SIGNED ) col0, + COUNT( * ) + + + COUNT( * ) AS col0
----
NULL
2

skipif mysql # not compatible
query II rowsort label-109
SELECT ALL - 49 * - 88 + + - AVG ( + CAST ( NULL AS REAL ) ) * + - 89 + + CAST ( NULL AS INTEGER ) col0, + COUNT ( * ) + + + COUNT ( * ) AS col0
----
NULL
2

onlyif mysql # DIV for integer division: 
query I rowsort label-110
SELECT 98 * - 36 - ( ( - 5 ) ) + - 34 + + 82 DIV 77 AS col1
----
-3556

skipif mysql # not compatible
query I rowsort label-110
SELECT 98 * - 36 - ( ( - 5 ) ) + - 34 + + 82 / 77 AS col1
----
-3556

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-112
SELECT 29 DIV + 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-112
SELECT 29 / + 51 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT + 62 * - ( 2 ) + CASE 57 WHEN SUM( ALL - 26 ) * 94 * + - 81 + + 69 + - - 5 * + 74 THEN NULL WHEN + - 62 + + 74 THEN 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-115
SELECT + 62 * - ( 2 ) + CASE 57 WHEN SUM ( ALL - 26 ) * 94 * + - 81 + + 69 + - - 5 * + 74 THEN NULL WHEN + - 62 + + 74 THEN 22 END
----
NULL

query II rowsort
SELECT - 82 AS col0, - 10
----
-82
-10

query I rowsort
SELECT 53 * - ( 76 )
----
-4028

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-119
SELECT CAST( COALESCE ( + 58, + 35 * + 31 ) AS SIGNED ) - + + 46 + + - ( + 84 ) * + SUM( DISTINCT - 95 ) + + 28 AS col2
----
8020

skipif mysql # not compatible
query I rowsort label-119
SELECT CAST ( COALESCE ( + 58, + 35 * + 31 ) AS INTEGER ) - + + 46 + + - ( + 84 ) * + SUM ( DISTINCT - 95 ) + + 28 AS col2
----
8020

query I rowsort
SELECT 5 - - 4 col2
----
9

query I rowsort
SELECT DISTINCT + 45 + 29 + - 76 - + 74 + + 26 * - ( + - 14 ) * + + 27 * + + 22 AS col2
----
216140

onlyif mysql # aggregate syntax: 
query II rowsort label-122
SELECT ALL 65 - - 63, - 67 - + 67 + + COUNT( * ) col0
----
128
-133

skipif mysql # not compatible
query II rowsort label-122
SELECT ALL 65 - - 63, - 67 - + 67 + + COUNT ( * ) col0
----
128
-133

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

skipif mysql # not compatible
query I rowsort label-123
SELECT DISTINCT 42 / COUNT ( * )
----
42

query I rowsort
SELECT 98 * - 5 AS col0
----
-490

query I rowsort
SELECT ALL - 19 * - 35 AS col2
----
665

query I rowsort
SELECT 84 * + ( 23 ) AS col1
----
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT DISTINCT - NULLIF ( + + ( - 62 ), - COUNT( * ) + - 52 / - 92 + 47 ) * - + 15 + + - 77 * + COUNT( * ) - 62 + + 22 + + + 28 + + 54 * + 41 + 22
----
1217

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT - NULLIF ( + + ( - 62 ), - COUNT ( * ) + - 52 / - 92 + 47 ) * - + 15 + + - 77 * + COUNT ( * ) - 62 + + 22 + + + 28 + + 54 * + 41 + 22
----
1217

query I rowsort
SELECT 33 * - - ( + 60 )
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT 39 + - SUM( 20 )
----
19

skipif mysql # not compatible
query I rowsort label-129
SELECT 39 + - SUM ( 20 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT ALL - 83 - + + 57 + - COUNT( * )
----
-141

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL - 83 - + + 57 + - COUNT ( * )
----
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-131
SELECT ALL - ( + 65 ) AS col0, COUNT( * ) * + 53
----
-65
53

skipif mysql # not compatible
query II rowsort label-131
SELECT ALL - ( + 65 ) AS col0, COUNT ( * ) * + 53
----
-65
53

onlyif mysql # DIV for integer division: 
query I rowsort label-132
SELECT ( - COALESCE ( - 90, - 29 DIV - + ( + 27 ) + - 20 ) ) * - 93 + - - 18 - - + 78 DIV 70
----
-8351

skipif mysql # not compatible
query I rowsort label-132
SELECT ( - COALESCE ( - 90, - 29 / - + ( + 27 ) + - 20 ) ) * - 93 + - - 18 - - + 78 / 70
----
-8351

query I rowsort
SELECT ( CASE WHEN 50 IS NULL THEN + 29 / - + 76 / - - 90 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-134
SELECT 44 * - ( + COUNT( + + 87 ) ) AS col1, 7 * + + 66
----
-44
462

skipif mysql # not compatible
query II rowsort label-134
SELECT 44 * - ( + COUNT ( + + 87 ) ) AS col1, 7 * + + 66
----
-44
462

query I rowsort
SELECT - 14 * + 42
----
-588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-136
SELECT + 23 * - CASE + - 19 WHEN - COUNT( * ) THEN + 9 + + CAST( NULL AS SIGNED ) WHEN 54 THEN - 70 ELSE - 88 + + 22 END - - 12 * + CAST( NULL AS SIGNED ) + + + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-136
SELECT + 23 * - CASE + - 19 WHEN - COUNT ( * ) THEN + 9 + + CAST ( NULL AS INTEGER ) WHEN 54 THEN - 70 ELSE - 88 + + 22 END - - 12 * + CAST ( NULL AS INTEGER ) + + + 15 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT ALL + 64 * - ( - CASE COUNT( * ) WHEN - 29 * - SUM( ALL + 43 ) THEN - + 59 * ( + + 42 ) + - + 32 * + - 28 WHEN - + 61 * - COUNT( * ) * 7 + + - 9 + - - 28 THEN + 63 * + - 39 * 38 + + 32 ELSE - 75 END )
----
-4800

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL + 64 * - ( - CASE COUNT ( * ) WHEN - 29 * - SUM ( ALL + 43 ) THEN - + 59 * ( + + 42 ) + - + 32 * + - 28 WHEN - + 61 * - COUNT ( * ) * 7 + + - 9 + - - 28 THEN + 63 * + - 39 * 38 + + 32 ELSE - 75 END )
----
-4800

query I rowsort
SELECT DISTINCT ( 80 ) * 73 AS col0
----
5840

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT ALL - MIN( DISTINCT 83 ) + - 5 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL - MIN ( DISTINCT 83 ) + - 5 AS col0
----
-88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT ALL + 14 + - MIN( ALL + 9 ) col0
----
5

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL + 14 + - MIN ( ALL + 9 ) col0
----
5

query I rowsort
SELECT + - 45 * + + 56 - + 78 * - 83 * + - 16
----
-106104

onlyif mysql # aggregate syntax: 
query II rowsort label-144
SELECT + + MAX( + + 75 ) AS col0, 62 col1
----
75
62

skipif mysql # not compatible
query II rowsort label-144
SELECT + + MAX ( + + 75 ) AS col0, 62 col1
----
75
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-145
SELECT ALL 13 + + - COUNT( * ) * + ( 4 ) col2, 85 DIV + + 3 AS col0
----
9
28

skipif mysql # not compatible
query II rowsort label-145
SELECT ALL 13 + + - COUNT ( * ) * + ( 4 ) col2, 85 / + + 3 AS col0
----
9
28

query I rowsort
SELECT ALL 2 + + 59
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT 98 * + COUNT( * ) * - 58
----
-5684

skipif mysql # not compatible
query I rowsort label-147
SELECT 98 * + COUNT ( * ) * - 58
----
-5684

query II rowsort
SELECT ALL 86, - 65 * - ( + 66 ) AS col2
----
86
4290

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-149
SELECT DISTINCT 54 * + 65 * + + 22 AS col2, 44 * 76 * - - CAST( - 98 AS SIGNED )
----
77220
-327712

skipif mysql # not compatible
query II rowsort label-149
SELECT DISTINCT 54 * + 65 * + + 22 AS col2, 44 * 76 * - - CAST ( - 98 AS INTEGER )
----
77220
-327712

query II rowsort
SELECT DISTINCT 89 AS col0, 39
----
89
39

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT ALL + COUNT( * ) - ( + 32 )
----
-31

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL + COUNT ( * ) - ( + 32 )
----
-31

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

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

query I rowsort
SELECT DISTINCT 18 * - 6
----
-108

query I rowsort
SELECT 14 * - 96
----
-1344

query I rowsort
SELECT ALL 53 * + + 25 AS col0
----
1325

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT MIN( DISTINCT + 83 ) - - 17 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-156
SELECT MIN ( DISTINCT + 83 ) - - 17 AS col0
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-157
SELECT 94 + - ( COALESCE ( - + 49, - NULLIF ( 73, + + NULLIF ( + 63, - + 13 / + + CAST( NULL AS SIGNED ) * + 75 ) ) ) ) AS col1
----
143

skipif mysql # not compatible
query I rowsort label-157
SELECT 94 + - ( COALESCE ( - + 49, - NULLIF ( 73, + + NULLIF ( + 63, - + 13 / + + CAST ( NULL AS INTEGER ) * + 75 ) ) ) ) AS col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT - COUNT( ALL - 4 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-158
SELECT - COUNT ( ALL - 4 ) col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-159
SELECT 33 DIV + 98 col2
----
0

skipif mysql # not compatible
query I rowsort label-159
SELECT 33 / + 98 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-160
SELECT NULLIF ( + - 91, - CAST( 5 AS SIGNED ) * + MIN( + + 49 ) ) * - + 94 + 15 AS col1
----
8569

skipif mysql # not compatible
query I rowsort label-160
SELECT NULLIF ( + - 91, - CAST ( 5 AS INTEGER ) * + MIN ( + + 49 ) ) * - + 94 + 15 AS col1
----
8569

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-161
SELECT DISTINCT + COUNT( * ) DIV 82 * 47 AS col0, 78 * - 37 AS col1
----
0
-2886

skipif mysql # not compatible
query II rowsort label-161
SELECT DISTINCT + COUNT ( * ) / 82 * 47 AS col0, 78 * - 37 AS col1
----
0
-2886

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT 23 DIV + 79 col1
----
0

skipif mysql # not compatible
query I rowsort label-162
SELECT 23 / + 79 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-163
SELECT ALL 41 DIV 68 + - 41 * 64 + + COALESCE ( + COUNT( * ), 88, - - 82 * - - 71 + + COUNT( * ) * + 89 * - - 64 * + CAST( 81 AS SIGNED ), + NULLIF ( - 10, 72 ) )
----
-2623

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL 41 / 68 + - 41 * 64 + + COALESCE ( + COUNT ( * ), 88, - - 82 * - - 71 + + COUNT ( * ) * + 89 * - - 64 * + CAST ( 81 AS INTEGER ), + NULLIF ( - 10, 72 ) )
----
-2623

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT DISTINCT + 3 * - COUNT( * ) * ( - - 57 ) AS col2
----
-171

skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT + 3 * - COUNT ( * ) * ( - - 57 ) AS col2
----
-171

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-165
SELECT DISTINCT - 92 + + COUNT( * ) - - + CAST( NULL AS DECIMAL ) + + - 12 * + 22 * + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-165
SELECT DISTINCT - 92 + + COUNT ( * ) - - + CAST ( NULL AS REAL ) + + - 12 * + 22 * + 45 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-167
SELECT DISTINCT + - COALESCE ( COUNT( * ), - MIN( ALL - CAST( NULL AS SIGNED ) ) ) * COUNT( 17 ) + + - COUNT( * ) + 24 * - - ( + 88 ) + - 81 + - 34 * + MAX( + 80 ) * - + COALESCE ( + MAX( DISTINCT - + 80 ), - + 7 ) * - 42
----
9141229

skipif mysql # not compatible
query I rowsort label-167
SELECT DISTINCT + - COALESCE ( COUNT ( * ), - MIN ( ALL - CAST ( NULL AS INTEGER ) ) ) * COUNT ( 17 ) + + - COUNT ( * ) + 24 * - - ( + 88 ) + - 81 + - 34 * + MAX ( + 80 ) * - + COALESCE ( + MAX ( DISTINCT - + 80 ), - + 7 ) * - 42
----
9141229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-168
SELECT ALL - + COALESCE ( - CAST( NULL AS SIGNED ), - 48 + + 8, 27 + + COUNT( * ), 65 + - COUNT( * ) * 51 ) * - 16 + + 85 * - 69 * 76 * 79 + - 21 * 96 + - - 19
----
-35216097

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL - + COALESCE ( - CAST ( NULL AS INTEGER ), - 48 + + 8, 27 + + COUNT ( * ), 65 + - COUNT ( * ) * 51 ) * - 16 + + 85 * - 69 * 76 * 79 + - 21 * 96 + - - 19
----
-35216097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-169
SELECT + 37 + 52 * 98 + SUM( + - 61 ) * CAST( 66 AS SIGNED )
----
1107

skipif mysql # not compatible
query I rowsort label-169
SELECT + 37 + 52 * 98 + SUM ( + - 61 ) * CAST ( 66 AS INTEGER )
----
1107

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT + COUNT( - 92 ) * + + 46 + 44 * 51 AS col2
----
2290

skipif mysql # not compatible
query I rowsort label-170
SELECT + COUNT ( - 92 ) * + + 46 + 44 * 51 AS col2
----
2290

query I rowsort
SELECT ALL - 20 * CASE + + 47 WHEN + 49 THEN 39 WHEN 83 THEN 2 ELSE NULL END + - 0
----
NULL

query I rowsort
SELECT ALL - 55 * COALESCE ( - + 72, + 54 + - - 5 ) + - + 0 AS col2
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT ALL + COUNT( * ) * - 99 * 55
----
-5445

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL + COUNT ( * ) * - 99 * 55
----
-5445

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT ALL 16 * NULLIF ( - - 76, 82 + - COALESCE ( ( + 48 ), 8 * + + NULLIF ( 0, + 71 ) ) ) + - CASE + - 45 WHEN - + 70 + - 14 THEN - COUNT( * ) + + + ( 29 ) WHEN + 70 THEN NULL ELSE NULL END - - 95 * + - ( - 50 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL 16 * NULLIF ( - - 76, 82 + - COALESCE ( ( + 48 ), 8 * + + NULLIF ( 0, + 71 ) ) ) + - CASE + - 45 WHEN - + 70 + - 14 THEN - COUNT ( * ) + + + ( 29 ) WHEN + 70 THEN NULL ELSE NULL END - - 95 * + - ( - 50 ) col2
----
NULL

query I rowsort
SELECT - 1 + + + ( - 10 )
----
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT DISTINCT 74 * + + 77 + + + COUNT( * )
----
5699

skipif mysql # not compatible
query I rowsort label-177
SELECT DISTINCT 74 * + + 77 + + + COUNT ( * )
----
5699

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-178
SELECT - - CASE - - CAST( + 70 AS SIGNED ) WHEN 25 THEN - 27 + - + 78 ELSE NULL END * + 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-178
SELECT - - CASE - - CAST ( + 70 AS INTEGER ) WHEN 25 THEN - 27 + - + 78 ELSE NULL END * + 11 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-180
SELECT ALL + 19 * - + 65 - + COUNT( * ) AS col1, 43 AS col1
----
-1236
43

skipif mysql # not compatible
query II rowsort label-180
SELECT ALL + 19 * - + 65 - + COUNT ( * ) AS col1, 43 AS col1
----
-1236
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-181
SELECT + CAST( + 33 AS SIGNED ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-181
SELECT + CAST ( + 33 AS INTEGER ) AS col1
----
33

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

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

query I rowsort
SELECT ALL + 90 * - 24 AS col0
----
-2160

onlyif mysql # DIV for integer division: 
query I rowsort label-184
SELECT DISTINCT + 18 DIV ( + 10 ) * + - ( - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-184
SELECT DISTINCT + 18 / ( + 10 ) * + - ( - 73 )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-185
SELECT - CAST( COALESCE ( - ( + + 86 ), + 25 + - AVG ( + 39 ), - - 16 / COUNT( * ) ) AS SIGNED ) * 92 col0
----
7912

skipif mysql # not compatible
query I rowsort label-185
SELECT - CAST ( COALESCE ( - ( + + 86 ), + 25 + - AVG ( + 39 ), - - 16 / COUNT ( * ) ) AS INTEGER ) * 92 col0
----
7912

query I rowsort
SELECT ALL + 91 * 79 AS col0
----
7189

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT + SUM( + + 72 ) * + 19 AS col1
----
1368

skipif mysql # not compatible
query I rowsort label-187
SELECT + SUM ( + + 72 ) * + 19 AS col1
----
1368

query I rowsort
SELECT ALL - 28 * 83
----
-2324

onlyif mysql # aggregate syntax: 
query II rowsort label-189
SELECT - 96 AS col1, + MAX( DISTINCT COALESCE ( 19, ( + 82 ) ) ) AS col2
----
-96
19

skipif mysql # not compatible
query II rowsort label-189
SELECT - 96 AS col1, + MAX ( DISTINCT COALESCE ( 19, ( + 82 ) ) ) AS col2
----
-96
19

query II rowsort
SELECT 69 AS col2, ( 77 ) col2
----
69
77

query II rowsort
SELECT ALL 98, 16 AS col1
----
98
16

query I rowsort
SELECT - COALESCE ( 82, + 69 ) * - 2 AS col0
----
164

query I rowsort
SELECT + 94 - + 81 col2
----
13

query II rowsort
SELECT ALL 7 AS col2, + 1 AS col1
----
7
1

query I rowsort
SELECT ALL CASE + 36 WHEN + ( + 1 ) + + 22 / + 54 * - - 59 THEN NULL WHEN - 21 * + 56 THEN + ( 43 ) END * + 43
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-196
SELECT ALL 15 AS col0, - 13 * 32 + + ( COUNT( * ) ) + - 42 + + 15 - + 55
----
15
-497

skipif mysql # not compatible
query II rowsort label-196
SELECT ALL 15 AS col0, - 13 * 32 + + ( COUNT ( * ) ) + - 42 + + 15 - + 55
----
15
-497

query I rowsort
SELECT - NULLIF ( + 89, 8 ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT + 81 + - + 39 * COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-198
SELECT + 81 + - + 39 * COUNT ( * ) AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-199
SELECT ALL COALESCE ( + + COALESCE ( + 4, - - COALESCE ( - ( + 67 ), NULLIF ( - CAST( 95 AS SIGNED ), + + COUNT( - 67 ) ) + - 52 * + 39 * 12 + + 21 ), + COUNT( * ) ), + COUNT( ALL + + 77 ), + + 25 * COUNT( * ) - COUNT( * ) ) * - + MAX( - 21 ) * 87 * + 78
----
570024

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL COALESCE ( + + COALESCE ( + 4, - - COALESCE ( - ( + 67 ), NULLIF ( - CAST ( 95 AS INTEGER ), + + COUNT ( - 67 ) ) + - 52 * + 39 * 12 + + 21 ), + COUNT ( * ) ), + COUNT ( ALL + + 77 ), + + 25 * COUNT ( * ) - COUNT ( * ) ) * - + MAX ( - 21 ) * 87 * + 78
----
570024

query I rowsort
SELECT ALL + 29 + + 3 * - 70 * + 90 * + 45 AS col0
----
-850471

query I rowsort
SELECT + - 94 + + + 33 + 79 + + 41 + 88
----
147

query I rowsort
SELECT - 5 + - 7 AS col0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-203
SELECT ALL 64 DIV 49 + - 81 + - 12 * 37
----
-524

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL 64 / 49 + - 81 + - 12 * 37
----
-524

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT + - ( + 91 ) * + + MAX( ALL 72 ) * + 60
----
-393120

skipif mysql # not compatible
query I rowsort label-204
SELECT + - ( + 91 ) * + + MAX ( ALL 72 ) * + 60
----
-393120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-205
SELECT DISTINCT - 58 / + 62 + MIN( ALL 48 ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-205
SELECT DISTINCT - 58 / + 62 + MIN ( ALL 48 ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-206
SELECT - + CAST( - + 6 AS SIGNED ) DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-206
SELECT - + CAST ( - + 6 AS INTEGER ) / 95 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-207
SELECT ALL ( + 91 ) DIV - - 28 - - + ( + - ( + 23 ) ) AS col1, - 51 + + COALESCE ( + NULLIF ( CASE + ( 82 ) WHEN 84 THEN - - 68 * 66 * COUNT( * ) + + - 50 - + 0 - + - 7 * - - 15 END, CASE - - 76 WHEN + 23 THEN + MIN( DISTINCT + 45 ) DIV + + CAST( NULL AS SIGNED ) WHEN CASE 25 WHEN + 70 THEN + 36 + 79 END THEN 95 END + - 16 ), ( - COUNT( * ) ) * 61, + 9 )
----
-20
-112

skipif mysql # not compatible
query II rowsort label-207
SELECT ALL ( + 91 ) / - - 28 - - + ( + - ( + 23 ) ) AS col1, - 51 + + COALESCE ( + NULLIF ( CASE + ( 82 ) WHEN 84 THEN - - 68 * 66 * COUNT ( * ) + + - 50 - + 0 - + - 7 * - - 15 END, CASE - - 76 WHEN + 23 THEN + MIN ( DISTINCT + 45 ) / + + CAST ( NULL AS INTEGER ) WHEN CASE 25 WHEN + 70 THEN + 36 + 79 END THEN 95 END + - 16 ), ( - COUNT ( * ) ) * 61, + 9 )
----
-20
-112

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

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

query I rowsort
SELECT + 76 * 77 - + + 47 AS col0
----
5805

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

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

query II rowsort
SELECT + 84 AS col2, + 8 + + 21 AS col0
----
84
29

query I rowsort
SELECT ALL + 62 * 73
----
4526

onlyif mysql # DIV for integer division: 
query I rowsort label-213
SELECT - ( - 5 ) * + 39 DIV 1
----
195

skipif mysql # not compatible
query I rowsort label-213
SELECT - ( - 5 ) * + 39 / 1
----
195

query I rowsort
SELECT DISTINCT + ( 21 ) AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-215
SELECT ALL + 95 * + COUNT( * ) / + ( - + 30 ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL + 95 * + COUNT ( * ) / + ( - + 30 ) - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - ( - 95 ) )
----
95

query I rowsort
SELECT ALL + NULLIF ( 76, - 88 * 56 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT + 57 * - + 14 - - SUM( + + 55 ) col2
----
-743

skipif mysql # not compatible
query I rowsort label-218
SELECT + 57 * - + 14 - - SUM ( + + 55 ) col2
----
-743

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

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

skipif mysql # not compatible
query I rowsort label-220
SELECT NULLIF ( + COUNT ( * ), - 92 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-221
SELECT COALESCE ( - 63, + CAST( 65 AS SIGNED ) ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-221
SELECT COALESCE ( - 63, + CAST ( 65 AS INTEGER ) ) AS col1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-222
SELECT ALL + 69 DIV + NULLIF ( + 4, 78 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL + 69 / + NULLIF ( + 4, 78 ) AS col2
----
17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-224
SELECT ALL + 60 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL + 60 / + 91
----
0

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

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL CAST ( ( - MIN ( + 47 ) ) AS INTEGER )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-226
SELECT ALL - 36 * - 69 / 52 / + CASE + + 18 WHEN - + COUNT( * ) THEN 77 ELSE NULL END * - 48 + - 40 + - ( - CAST( NULL AS SIGNED ) ) * - - ( + + CAST( + 36 AS SIGNED ) ) + - - ( 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL - 36 * - 69 / 52 / + CASE + + 18 WHEN - + COUNT ( * ) THEN 77 ELSE NULL END * - 48 + - 40 + - ( - CAST ( NULL AS INTEGER ) ) * - - ( + + CAST ( + 36 AS INTEGER ) ) + - - ( 60 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-227
SELECT ALL CAST( 91 AS SIGNED ), COUNT( * ) + + - ( - 45 ) AS col0
----
91
46

skipif mysql # not compatible
query II rowsort label-227
SELECT ALL CAST ( 91 AS INTEGER ), COUNT ( * ) + + - ( - 45 ) AS col0
----
91
46

query I rowsort
SELECT DISTINCT - 92 * 58 * + 23 + + + 3 col1
----
-122725

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

skipif mysql # not compatible
query I rowsort label-229
SELECT - NULLIF ( + COUNT ( * ), 29 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-230
SELECT ALL - NULLIF ( 31, + 8 + - 33 + - CAST( NULL AS DECIMAL ) ) + + 20
----
-11

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL - NULLIF ( 31, + 8 + - 33 + - CAST ( NULL AS REAL ) ) + + 20
----
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-231
SELECT - 6 - + 63 - - 2 + - - CAST( - CASE + COUNT( * ) WHEN 7 THEN - COUNT( * ) END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-231
SELECT - 6 - + 63 - - 2 + - - CAST ( - CASE + COUNT ( * ) WHEN 7 THEN - COUNT ( * ) END AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-232
SELECT - ( CAST( NULL AS SIGNED ) ), - COALESCE ( ( + 91 ), - - 88, - + 62 * - 38 + COUNT( * ) + + 44 + 46 * + SUM( - 83 ) ) AS col0
----
NULL
-91

skipif mysql # not compatible
query II rowsort label-232
SELECT - ( CAST ( NULL AS INTEGER ) ), - COALESCE ( ( + 91 ), - - 88, - + 62 * - 38 + COUNT ( * ) + + 44 + 46 * + SUM ( - 83 ) ) AS col0
----
NULL
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT - 19 + + 50 - + COUNT( * ) col0
----
30

skipif mysql # not compatible
query I rowsort label-233
SELECT - 19 + + 50 - + COUNT ( * ) col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT DISTINCT CASE - + COUNT( * ) WHEN - 53 THEN NULL WHEN - 25 THEN COALESCE ( 23, - - 82 ) ELSE + 62 END AS col1
----
62

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT CASE - + COUNT ( * ) WHEN - 53 THEN NULL WHEN - 25 THEN COALESCE ( 23, - - 82 ) ELSE + 62 END AS col1
----
62

query I rowsort
SELECT ALL + 76 + - - NULLIF ( + 19, 62 * - - 70 )
----
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-236
SELECT DISTINCT 34 - + CAST( NULL AS DECIMAL ) + + MAX( + - 38 ) * 20 - - 0 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT 34 - + CAST ( NULL AS REAL ) + + MAX ( + - 38 ) * 20 - - 0 * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-237
SELECT CAST( 67 AS SIGNED ) + - 48 + - 14 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-237
SELECT CAST ( 67 AS INTEGER ) + - 48 + - 14 AS col1
----
5

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

skipif mysql # not compatible
query II rowsort label-238
SELECT + 83 + - - 24, 19 / - - COUNT ( * ) AS col2
----
107
19

onlyif mysql # aggregate syntax: 
query II rowsort label-239
SELECT ALL 52 - + COUNT( * ) AS col2, 22 * - - 79
----
51
1738

skipif mysql # not compatible
query II rowsort label-239
SELECT ALL 52 - + COUNT ( * ) AS col2, 22 * - - 79
----
51
1738

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT COUNT( * ) * 58 col2
----
58

skipif mysql # not compatible
query I rowsort label-241
SELECT COUNT ( * ) * 58 col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT + COUNT( * ) * - 78 + - 34 AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-242
SELECT + COUNT ( * ) * - 78 + - 34 AS col0
----
-112

query I rowsort
SELECT ALL - 75 - - 13 - 28 * - - 47
----
-1378

query I rowsort
SELECT 98 * + NULLIF ( + 32, - COALESCE ( 18, 64 ) ) * + - 85
----
-266560

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-245
SELECT - 76 + 10, + 41 * - MIN( ALL - + 67 ) * - + 61 + + ( - + 99 ) DIV - 55 + 53 + - 84 * + + 59 AS col2
----
-66
-172469

skipif mysql # not compatible
query II rowsort label-245
SELECT - 76 + 10, + 41 * - MIN ( ALL - + 67 ) * - + 61 + + ( - + 99 ) / - 55 + 53 + - 84 * + + 59 AS col2
----
-66
-172469

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT + 85 * - ( 92 ) + COUNT( * )
----
-7819

skipif mysql # not compatible
query I rowsort label-246
SELECT + 85 * - ( 92 ) + COUNT ( * )
----
-7819

onlyif mysql # aggregate syntax: 
query II rowsort label-247
SELECT 98 + - + 83 - - + COUNT( * ) AS col0, + 83 * - 11 AS col2
----
16
-913

skipif mysql # not compatible
query II rowsort label-247
SELECT 98 + - + 83 - - + COUNT ( * ) AS col0, + 83 * - 11 AS col2
----
16
-913

onlyif mysql # DIV for integer division: 
query I rowsort label-248
SELECT 69 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-248
SELECT 69 / - 74
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-249
SELECT + 80 AS col2, CAST( NULL AS SIGNED ) col0
----
80
NULL

skipif mysql # not compatible
query II rowsort label-249
SELECT + 80 AS col2, CAST ( NULL AS INTEGER ) col0
----
80
NULL

query II rowsort
SELECT - 91 * - + 24 * + 88 * + 87 + + 40 * 71 AS col1, 14
----
16723544
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-251
SELECT ( - COUNT( ALL ( ( - 41 ) ) ) ) * ( 35 ) + + ( CASE - 25 WHEN + CAST( NULL AS SIGNED ) * - + 39 THEN NULL WHEN COUNT( * ) + - NULLIF ( + MAX( DISTINCT + 26 ), + - 13 ) THEN + - MAX( - 77 ) END ) + + - 22 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-251
SELECT ( - COUNT ( ALL ( ( - 41 ) ) ) ) * ( 35 ) + + ( CASE - 25 WHEN + CAST ( NULL AS INTEGER ) * - + 39 THEN NULL WHEN COUNT ( * ) + - NULLIF ( + MAX ( DISTINCT + 26 ), + - 13 ) THEN + - MAX ( - 77 ) END ) + + - 22 AS col0
----
20

query I rowsort
SELECT ALL + CASE + 17 WHEN + 6 THEN - 57 + 73 WHEN + 91 THEN NULL END + - 87 AS col1
----
NULL

query II rowsort
SELECT 24 AS col0, + 6 + + 31
----
24
37

onlyif mysql # aggregate syntax: 
query II rowsort label-254
SELECT + 46, SUM( + + 71 ) + 1 AS col0
----
46
72

skipif mysql # not compatible
query II rowsort label-254
SELECT + 46, SUM ( + + 71 ) + 1 AS col0
----
46
72

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT ALL - COUNT( + 16 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-255
SELECT ALL - COUNT ( + 16 ) col1
----
-1

query I rowsort
SELECT ALL 94 + - 69 + - - 92 * 73
----
6741

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT ALL - COALESCE ( + - COUNT( * ), - - 25 ) + - - 58 * - - 14 AS col1
----
813

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL - COALESCE ( + - COUNT ( * ), - - 25 ) + - - 58 * - - 14 AS col1
----
813

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT DISTINCT - ( - + 42 ) + + SUM( - - 59 ) * 51 AS col0
----
3051

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT - ( - + 42 ) + + SUM ( - - 59 ) * 51 AS col0
----
3051

query II rowsort
SELECT DISTINCT 65 col2, + 56
----
65
56

query I rowsort
SELECT 19 + - 2 + + + 30 * + ( - 76 )
----
-2263

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-262
SELECT - 58 * + COALESCE ( - + 36, - + 36 ) * + ( - 85 ) * - 71 + - CAST( - - 2 AS SIGNED ) + + + 36 AS col1
----
12601114

skipif mysql # not compatible
query I rowsort label-262
SELECT - 58 * + COALESCE ( - + 36, - + 36 ) * + ( - 85 ) * - 71 + - CAST ( - - 2 AS INTEGER ) + + + 36 AS col1
----
12601114

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT + 73 + COUNT( * ) * + - MAX( 82 ) * - 12 AS col1
----
1057

skipif mysql # not compatible
query I rowsort label-263
SELECT + 73 + COUNT ( * ) * + - MAX ( 82 ) * - 12 AS col1
----
1057

query I rowsort
SELECT 54 * - - 30
----
1620

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

query I rowsort
SELECT ALL + 22 * + 44 AS col2
----
968

query I rowsort
SELECT - 40 + 45 + - 63 * - 74 + + + 64 AS col2
----
4731

query II rowsort
SELECT ( + 81 ) * + 98 col1, 5 AS col2
----
7938
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-269
SELECT DISTINCT + 78 * + CAST( - + 91 AS SIGNED )
----
-7098

skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT + 78 * + CAST ( - + 91 AS INTEGER )
----
-7098

query I rowsort
SELECT ALL - 20 - - - 57 + 27 * + 81 * 59
----
128956

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT - 67 + - COALESCE ( + - 90, 63 * COUNT( * ) + + + 47 ) + ( + ( SUM( ALL - 86 ) ) )
----
-63

skipif mysql # not compatible
query I rowsort label-271
SELECT - 67 + - COALESCE ( + - 90, 63 * COUNT ( * ) + + + 47 ) + ( + ( SUM ( ALL - 86 ) ) )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-272
SELECT - CAST( NULL AS SIGNED ) * SUM( DISTINCT + CASE 1 WHEN ( 45 ) THEN + 57 WHEN + - 16 * 13 * 36 THEN - + 9 END ) * - ( + + 94 ) - - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-272
SELECT - CAST ( NULL AS INTEGER ) * SUM ( DISTINCT + CASE 1 WHEN ( 45 ) THEN + 57 WHEN + - 16 * 13 * 36 THEN - + 9 END ) * - ( + + 94 ) - - 8
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-273
SELECT 13 * COALESCE ( + 74, + 63 * - 32 ) * - - 83 + + + 46 * + 63, CAST( NULL AS SIGNED ) * - COUNT( * ) + 40 + - 27 AS col2
----
82744
NULL

skipif mysql # not compatible
query II rowsort label-273
SELECT 13 * COALESCE ( + 74, + 63 * - 32 ) * - - 83 + + + 46 * + 63, CAST ( NULL AS INTEGER ) * - COUNT ( * ) + 40 + - 27 AS col2
----
82744
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT DISTINCT CASE 68 WHEN + 24 + + + 12 THEN + ( + CASE + 69 WHEN - 24 THEN NULL WHEN + 91 THEN + + COUNT( * ) * 2 ELSE + SUM( + + 51 ) + + - 95 - - + COUNT( * ) / + 27 END ) * 82 * ( + COUNT( * ) ) * 27 * + NULLIF ( + - 51, - 25 ) + - 29 * 24 + + 91 + + ( - 31 ) WHEN 11 THEN 67 ELSE 29 END AS col0
----
29

skipif mysql # not compatible
query I rowsort label-274
SELECT DISTINCT CASE 68 WHEN + 24 + + + 12 THEN + ( + CASE + 69 WHEN - 24 THEN NULL WHEN + 91 THEN + + COUNT ( * ) * 2 ELSE + SUM ( + + 51 ) + + - 95 - - + COUNT ( * ) / + 27 END ) * 82 * ( + COUNT ( * ) ) * 27 * + NULLIF ( + - 51, - 25 ) + - 29 * 24 + + 91 + + ( - 31 ) WHEN 11 THEN 67 ELSE 29 END AS col0
----
29

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

skipif mysql # not compatible
query I rowsort label-275
SELECT - COUNT ( 39 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-276
SELECT DISTINCT 40, + 80 - + ( + COUNT( * ) ) AS col0
----
40
79

skipif mysql # not compatible
query II rowsort label-276
SELECT DISTINCT 40, + 80 - + ( + COUNT ( * ) ) AS col0
----
40
79

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT ALL + COUNT( * ) * - ( - CASE + 20 WHEN + + COUNT( * ) * 18 THEN NULL ELSE - COUNT( * ) END ) * - 69 * 47 * + 14 * 3 + + COUNT( * )
----
136207

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL + COUNT ( * ) * - ( - CASE + 20 WHEN + + COUNT ( * ) * 18 THEN NULL ELSE - COUNT ( * ) END ) * - 69 * 47 * + 14 * 3 + + COUNT ( * )
----
136207

query I rowsort
SELECT ( - 98 ) * + 87
----
-8526

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

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

query I rowsort
SELECT DISTINCT - + 76 * + + 97 col1
----
-7372

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT MAX( + + 55 ) col0
----
55

skipif mysql # not compatible
query I rowsort label-282
SELECT MAX ( + + 55 ) col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-283
SELECT 14 * 19 AS col2, - SUM( - - ( - 74 ) )
----
266
74

skipif mysql # not compatible
query II rowsort label-283
SELECT 14 * 19 AS col2, - SUM ( - - ( - 74 ) )
----
266
74

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-285
SELECT COUNT( * ) * + COALESCE ( - 48, 42, + - 25 + MIN( DISTINCT 64 ) - - 51 * + 70, 2 ) AS col2, ( + COALESCE ( + ( + - 51 ), - NULLIF ( 42, - COALESCE ( + - 29, - CASE + 74 WHEN + 42 THEN NULL ELSE + 17 END ) + - 21 ) * - + 35 * - - 99 + - 99 - - - COUNT( * ) - + 35 ) )
----
-48
-51

skipif mysql # not compatible
query II rowsort label-285
SELECT COUNT ( * ) * + COALESCE ( - 48, 42, + - 25 + MIN ( DISTINCT 64 ) - - 51 * + 70, 2 ) AS col2, ( + COALESCE ( + ( + - 51 ), - NULLIF ( 42, - COALESCE ( + - 29, - CASE + 74 WHEN + 42 THEN NULL ELSE + 17 END ) + - 21 ) * - + 35 * - - 99 + - 99 - - - COUNT ( * ) - + 35 ) )
----
-48
-51

query I rowsort
SELECT ALL + 31 * 89 + + 83
----
2842

onlyif mysql # DIV for integer division: 
query II rowsort label-287
SELECT 4 DIV + 68, 3 DIV - 40 col0
----
0
0

skipif mysql # not compatible
query II rowsort label-287
SELECT 4 / + 68, 3 / - 40 col0
----
0
0

query I rowsort
SELECT ( 42 ) + 83 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT ALL - COUNT( DISTINCT + 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL - COUNT ( DISTINCT + 87 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-290
SELECT COUNT( - - 94 ), 37 * + 28 * + CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-290
SELECT COUNT ( - - 94 ), 37 * + 28 * + CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT ALL - COUNT( * ) + 98 + - + 77
----
20

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL - COUNT ( * ) + 98 + - + 77
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-292
SELECT 6 * + 43 - - 96 - + 35 / - - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-292
SELECT 6 * + 43 - - 96 - + 35 / - - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-293
SELECT NULLIF ( + COALESCE ( - 56, - - 52 ), - + 12 * + 9 * - - 16 ) - + CAST( - 36 AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-293
SELECT NULLIF ( + COALESCE ( - 56, - - 52 ), - + 12 * + 9 * - - 16 ) - + CAST ( - 36 AS INTEGER )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT DISTINCT ( - 26 ) + + - ( - 74 ) + 26 + NULLIF ( + 11, + 31 * 61 ) - COUNT( - ( + - 77 ) ) col0
----
84

skipif mysql # not compatible
query I rowsort label-294
SELECT DISTINCT ( - 26 ) + + - ( - 74 ) + 26 + NULLIF ( + 11, + 31 * 61 ) - COUNT ( - ( + - 77 ) ) col0
----
84

query II rowsort
SELECT DISTINCT + + 33 - - 54 * + - 24 + + 23 col2, 82 * + 51
----
-1240
4182

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-297
SELECT DISTINCT - 82 - - 86 + 43 + COUNT( * ) + - + 17 * + CAST( NULL AS SIGNED ) / + - 50 * + ( - 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT - 82 - - 86 + 43 + COUNT ( * ) + - + 17 * + CAST ( NULL AS INTEGER ) / + - 50 * + ( - 98 )
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - 17, + 50 ) AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-299
SELECT DISTINCT - - 95 - + 85 + + 22 + - + CAST( 22 AS SIGNED ) + - COALESCE ( + + 89, + 69 ) * ( + 84 ) * - COALESCE ( - - ( - 40 ), COUNT( * ) ) * 15 AS col1
----
-4485590

skipif mysql # not compatible
query I rowsort label-299
SELECT DISTINCT - - 95 - + 85 + + 22 + - + CAST ( 22 AS INTEGER ) + - COALESCE ( + + 89, + 69 ) * ( + 84 ) * - COALESCE ( - - ( - 40 ), COUNT ( * ) ) * 15 AS col1
----
-4485590

query II rowsort
SELECT DISTINCT + ( + 20 ), NULLIF ( - + 61, - + 62 + - ( - ( + ( - 34 ) ) ) ) * + 68 * - 13 * + + 42 + 24 AS col1
----
20
2264832

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT + + 94 + - COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-301
SELECT + + 94 + - COUNT ( * ) AS col0
----
93

query II rowsort
SELECT + 9 * 72, 10 AS col1
----
648
10

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT - - COALESCE ( + 31, + - COUNT( * ), - 59 ) * - - COALESCE ( - 4, + 5 ) * - + 15 + COUNT( * ) + - 76
----
1785

skipif mysql # not compatible
query I rowsort label-303
SELECT - - COALESCE ( + 31, + - COUNT ( * ), - 59 ) * - - COALESCE ( - 4, + 5 ) * - + 15 + COUNT ( * ) + - 76
----
1785

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

query I rowsort
SELECT DISTINCT - - 53 * 33 * - 99 * 39 AS col0
----
-6752889

query I rowsort
SELECT - + 44 + - - 52
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-307
SELECT ALL + + 86 * + + 89, ( - 64 ) * - 99 * - + NULLIF ( - + COUNT( ALL + ( - + 52 ) ), + 23 * + COUNT( * ) DIV COUNT( * ) + NULLIF ( + 71, 85 ) + 37 + + + ( 70 ) * - COUNT( * ) DIV ( + ( - CAST( NULL AS SIGNED ) ) ) - + 30 ) * + 25 + 71 DIV 36 * - 27 DIV + + COUNT( * ) AS col0
----
7654
158373

skipif mysql # not compatible
query II rowsort label-307
SELECT ALL + + 86 * + + 89, ( - 64 ) * - 99 * - + NULLIF ( - + COUNT ( ALL + ( - + 52 ) ), + 23 * + COUNT ( * ) / COUNT ( * ) + NULLIF ( + 71, 85 ) + 37 + + + ( 70 ) * - COUNT ( * ) / ( + ( - CAST ( NULL AS INTEGER ) ) ) - + 30 ) * + 25 + 71 / 36 * - 27 / + + COUNT ( * ) AS col0
----
7654
158373

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-308
SELECT - 67 - COUNT( * ) * - - ( - COALESCE ( 4, - CASE 46 WHEN CAST( NULL AS SIGNED ) + - SUM( ALL + 74 ) - + - 0 THEN 94 WHEN + + 80 - - 91 THEN + 64 * - - CAST( + + 70 AS SIGNED ) * 32 + + - 94 + - 42 + 84 DIV + - 30 DIV - 75 END, + ( + 21 ) + - + 51 ) ) + + ( 68 ) * + 8 AS col1
----
481

skipif mysql # not compatible
query I rowsort label-308
SELECT - 67 - COUNT ( * ) * - - ( - COALESCE ( 4, - CASE 46 WHEN CAST ( NULL AS INTEGER ) + - SUM ( ALL + 74 ) - + - 0 THEN 94 WHEN + + 80 - - 91 THEN + 64 * - - CAST ( + + 70 AS INTEGER ) * 32 + + - 94 + - 42 + 84 / + - 30 / - 75 END, + ( + 21 ) + - + 51 ) ) + + ( 68 ) * + 8 AS col1
----
481

query I rowsort
SELECT ALL + + 11 * + + 84 - 38 AS col1
----
886

onlyif mysql # DIV for integer division: 
query I rowsort label-310
SELECT - 11 DIV 12 * + 30
----
0

skipif mysql # not compatible
query I rowsort label-310
SELECT - 11 / 12 * + 30
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-311
SELECT - CASE + 52 WHEN SUM( - 33 ) / + SUM( - 29 ) + - 65 / 14 THEN CAST( NULL AS SIGNED ) * + + 28 + ( 9 ) / 80 END + + 14 col2, + SUM( + 56 ) AS col0
----
NULL
56

skipif mysql # not compatible
query II rowsort label-311
SELECT - CASE + 52 WHEN SUM ( - 33 ) / + SUM ( - 29 ) + - 65 / 14 THEN CAST ( NULL AS INTEGER ) * + + 28 + ( 9 ) / 80 END + + 14 col2, + SUM ( + 56 ) AS col0
----
NULL
56

query I rowsort
SELECT - 2 * 54 AS col2
----
-108

query I rowsort
SELECT - 19 + 2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT + ( + 60 ) * - + 53 * + - 90 * 68 + - COUNT( * )
----
19461599

skipif mysql # not compatible
query I rowsort label-314
SELECT + ( + 60 ) * - + 53 * + - 90 * 68 + - COUNT ( * )
----
19461599

onlyif mysql # aggregate syntax: 
query II rowsort label-315
SELECT DISTINCT 32 * + 95 + + 65, + 9 + + MAX( + 70 ) AS col2
----
3105
79

skipif mysql # not compatible
query II rowsort label-315
SELECT DISTINCT 32 * + 95 + + 65, + 9 + + MAX ( + 70 ) AS col2
----
3105
79

query I rowsort
SELECT ALL + 70 * - 47 + - 26
----
-3316

query I rowsort
SELECT ALL + 10 * - + ( - 73 ) + 77 AS col2
----
807

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT DISTINCT - NULLIF ( + 73, + NULLIF ( + + 94, + ( + 9 ) * - 94 ) ) * + CASE 83 WHEN + - ( COUNT( * ) ) THEN + 52 WHEN CASE - 76 WHEN + + COALESCE ( COUNT( * ), - 48, 18 + 43 ) THEN 9 + - 11 END THEN + 79 END + - - 53 + + 2 * MAX( - + 86 ) * + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT - NULLIF ( + 73, + NULLIF ( + + 94, + ( + 9 ) * - 94 ) ) * + CASE 83 WHEN + - ( COUNT ( * ) ) THEN + 52 WHEN CASE - 76 WHEN + + COALESCE ( COUNT ( * ), - 48, 18 + 43 ) THEN 9 + - 11 END THEN + 79 END + - - 53 + + 2 * MAX ( - + 86 ) * + 20 AS col1
----
NULL

query I rowsort
SELECT + 41 + - + 57 col2
----
-16

query I rowsort
SELECT CASE - 53 WHEN - + 54 THEN + - 47 / + 96 * - - 58 END
----
NULL

query I rowsort
SELECT 11 * 93 + 39
----
1062

query I rowsort
SELECT + NULLIF ( - 13, + - 51 ) AS col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-323
SELECT ALL + 84, 37 DIV + NULLIF ( 79, + COALESCE ( - COALESCE ( COALESCE ( - 41, - 85 * + - SUM( 32 ) ), MAX( - 62 ) + NULLIF ( 17, - + 29 ), + 84 + - 89 ), 0 - + CAST( NULL AS SIGNED ) ) + + 87 ) AS col0
----
84
0

skipif mysql # not compatible
query II rowsort label-323
SELECT ALL + 84, 37 / + NULLIF ( 79, + COALESCE ( - COALESCE ( COALESCE ( - 41, - 85 * + - SUM ( 32 ) ), MAX ( - 62 ) + NULLIF ( 17, - + 29 ), + 84 + - 89 ), 0 - + CAST ( NULL AS INTEGER ) ) + + 87 ) AS col0
----
84
0

query I rowsort
SELECT ALL - 94 * + + 79 * - 9 + + 96
----
66930

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

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

query I rowsort
SELECT - 23 + 54 AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-327
SELECT DISTINCT COUNT( * ) * - 71 DIV + + 95 - + 13
----
-13

skipif mysql # not compatible
query I rowsort label-327
SELECT DISTINCT COUNT ( * ) * - 71 / + + 95 - + 13
----
-13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT + CASE - + SUM( DISTINCT - 73 ) WHEN + 21 * + 50 + 80 + + 35 / - 61 THEN 58 + COUNT( * ) WHEN - COUNT( * ) THEN + + 43 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-329
SELECT + CASE - + SUM ( DISTINCT - 73 ) WHEN + 21 * + 50 + 80 + + 35 / - 61 THEN 58 + COUNT ( * ) WHEN - COUNT ( * ) THEN + + 43 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-330
SELECT ALL 87 DIV + 77 col2
----
1

skipif mysql # not compatible
query I rowsort label-330
SELECT ALL 87 / + 77 col2
----
1

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

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

query I rowsort
SELECT 83 * 48 + 27 AS col0
----
4011

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-333
SELECT ALL MAX( + + 81 ) DIV - - ( + 69 ) * COUNT( * ) AS col2, - NULLIF ( + 88, - 5 ) AS col2
----
1
-88

skipif mysql # not compatible
query II rowsort label-333
SELECT ALL MAX ( + + 81 ) / - - ( + 69 ) * COUNT ( * ) AS col2, - NULLIF ( + 88, - 5 ) AS col2
----
1
-88

query I rowsort
SELECT + + 14 * 63 * + 27 AS col2
----
23814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-335
SELECT + + 9 + 1 + - + CAST( NULL AS SIGNED ) - + COUNT( * ) - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-335
SELECT + + 9 + 1 + - + CAST ( NULL AS INTEGER ) - + COUNT ( * ) - 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-336
SELECT + MAX( - 13 ) + + 35, + 95 * + - CAST( NULL AS SIGNED ) * + + 8 AS col2
----
22
NULL

skipif mysql # not compatible
query II rowsort label-336
SELECT + MAX ( - 13 ) + + 35, + 95 * + - CAST ( NULL AS INTEGER ) * + + 8 AS col2
----
22
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT DISTINCT - SUM( - + 15 ) * 7 * + 6 + + 59 + - 24 AS col0
----
665

skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT - SUM ( - + 15 ) * 7 * + 6 + + 59 + - 24 AS col0
----
665

query I rowsort
SELECT + - 90 - + 89 AS col0
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT ALL 46 * + SUM( ALL - + 37 )
----
-1702

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL 46 * + SUM ( ALL - + 37 )
----
-1702

query I rowsort
SELECT DISTINCT 3 * - 61 + - 64 col0
----
-247

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-342
SELECT ALL + + 50 + ( - + COUNT( * ) ) * + 72 + - 82 DIV - 95
----
-22

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL + + 50 + ( - + COUNT ( * ) ) * + 72 + - 82 / - 95
----
-22

query II rowsort
SELECT ALL 8 AS col2, 98 * + 28 col2
----
8
2744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-344
SELECT - COALESCE ( - CAST( - 10 AS SIGNED ), 35 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-344
SELECT - COALESCE ( - CAST ( - 10 AS INTEGER ), 35 ) AS col1
----
-10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-345
SELECT - - 32 + + 43 + + 48 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-345
SELECT - - 32 + + 43 + + 48 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 18 * - 36 AS col2
----
-648

query II rowsort
SELECT 97, + 78 AS col0
----
97
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-348
SELECT ALL ( - MAX( + CASE - + 37 WHEN + ( - 88 ) THEN + ( 95 ) * 39 * 95 * - NULLIF ( - + CAST( NULL AS SIGNED ), + 63 ) END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL ( - MAX ( + CASE - + 37 WHEN + ( - 88 ) THEN + ( 95 ) * 39 * 95 * - NULLIF ( - + CAST ( NULL AS INTEGER ), + 63 ) END ) )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 3, - - 42 ) * - - 22 * + 32 col0
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT ALL MIN( - - COALESCE ( - + 21, - 15, - 20 ) ) + - 88
----
-109

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL MIN ( - - COALESCE ( - + 21, - 15, - 20 ) ) + - 88
----
-109

query I rowsort
SELECT DISTINCT + 97 * + + 51 col2
----
4947

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-352
SELECT ALL + 77 DIV 1 + - 73 * - CAST( 80 AS SIGNED ) * - COUNT( * ) AS col0
----
-5763

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL + 77 / 1 + - 73 * - CAST ( 80 AS INTEGER ) * - COUNT ( * ) AS col0
----
-5763

query II rowsort
SELECT ALL + 58 col2, 57
----
58
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-354
SELECT ALL - COUNT( * ) DIV 54 + + COUNT( * )
----
1

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

query I rowsort
SELECT + 53 * + - 84 AS col1
----
-4452

query I rowsort
SELECT 42 * + 9 * + 24
----
9072

query I rowsort
SELECT ALL - COALESCE ( + 41, - ( + NULLIF ( 60, + 61 ) ) )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-358
SELECT ALL 46 * - CAST( + - 81 AS SIGNED ) AS col0
----
3726

skipif mysql # not compatible
query I rowsort label-358
SELECT ALL 46 * - CAST ( + - 81 AS INTEGER ) AS col0
----
3726

query I rowsort
SELECT 57 * - 1 * 60
----
-3420

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT ALL - CASE + + 31 WHEN + - ( ( - COUNT( * ) ) ) THEN NULL ELSE 52 END
----
-52

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL - CASE + + 31 WHEN + - ( ( - COUNT ( * ) ) ) THEN NULL ELSE 52 END
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT + 7 * 90 * 77 - - + COUNT( * ) AS col0
----
48511

skipif mysql # not compatible
query I rowsort label-361
SELECT + 7 * 90 * 77 - - + COUNT ( * ) AS col0
----
48511

onlyif mysql # aggregate syntax: 
query II rowsort label-362
SELECT DISTINCT - 60 AS col0, - COUNT( * )
----
-60
-1

skipif mysql # not compatible
query II rowsort label-362
SELECT DISTINCT - 60 AS col0, - COUNT ( * )
----
-60
-1

query I rowsort
SELECT ( 81 ) * + 0 AS col1
----
0

query II rowsort
SELECT + + 65 AS col0, - 2 + + 27 AS col1
----
65
25

query II rowsort
SELECT + 30, 74 * + 88 AS col0
----
30
6512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-366
SELECT 11 + 46 + + + CASE 87 WHEN + 97 THEN NULL WHEN - 31 * - 73 * + + CAST( + - NULLIF ( - CAST( NULL AS SIGNED ), - - 1 ) AS SIGNED ) * - + 59 + - CAST( - + COUNT( * ) AS DECIMAL ) THEN + AVG ( ALL - - 3 ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-366
SELECT 11 + 46 + + + CASE 87 WHEN + 97 THEN NULL WHEN - 31 * - 73 * + + CAST ( + - NULLIF ( - CAST ( NULL AS INTEGER ), - - 1 ) AS INTEGER ) * - + 59 + - CAST ( - + COUNT ( * ) AS REAL ) THEN + AVG ( ALL - - 3 ) ELSE NULL END col0
----
NULL

query I rowsort
SELECT 42 * + 21
----
882

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT ALL + ( COALESCE ( - 57, + COUNT( * ), - ( + 18 ) ) ) + + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-368
SELECT ALL + ( COALESCE ( - 57, + COUNT ( * ), - ( + 18 ) ) ) + + COUNT ( * )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-369
SELECT ALL + COUNT( * ) + - - 8, - CAST( ( 93 ) AS SIGNED ) * ( + + 55 ) AS col1
----
9
-5115

skipif mysql # not compatible
query II rowsort label-369
SELECT ALL + COUNT ( * ) + - - 8, - CAST ( ( 93 ) AS INTEGER ) * ( + + 55 ) AS col1
----
9
-5115

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-371
SELECT + 36 * 43 DIV 54 * - COUNT( * ) * - - 94 AS col0
----
-2632

skipif mysql # not compatible
query I rowsort label-371
SELECT + 36 * 43 / 54 * - COUNT ( * ) * - - 94 AS col0
----
-2632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-372
SELECT ALL COALESCE ( + COUNT( * ), - - CAST( - 67 AS SIGNED ) * - 47 + - ( - ( - - 7 ) ) ) + + 81
----
82

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL COALESCE ( + COUNT ( * ), - - CAST ( - 67 AS INTEGER ) * - 47 + - ( - ( - - 7 ) ) ) + + 81
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-373
SELECT 98 + - + 34 - - 71 + 52 * + - CAST( NULL AS SIGNED ) + 5 * - COUNT( * ) * + NULLIF ( - 99, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-373
SELECT 98 + - + 34 - - 71 + 52 * + - CAST ( NULL AS INTEGER ) + 5 * - COUNT ( * ) * + NULLIF ( - 99, COUNT ( * ) )
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-375
SELECT SUM ( ALL - 60 ) * + + COUNT ( * ) AS col1
----
-60

query I rowsort
SELECT DISTINCT + 65 * + 20
----
1300

query I rowsort
SELECT 91 + + 43
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT ALL 78 + + - NULLIF ( + COALESCE ( 98, - COUNT( 28 ), - - 21 ), 69 * - 69 )
----
-20

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL 78 + + - NULLIF ( + COALESCE ( 98, - COUNT ( 28 ), - - 21 ), 69 * - 69 )
----
-20

query I rowsort
SELECT ( 5 ) - + 43 + - - 96 * - 71 + - 18
----
-6872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-380
SELECT ALL CASE - + 52 WHEN + ( + COALESCE ( - - MAX( - 99 ), + 71, + - COUNT( * ) ) ) THEN + COUNT( * ) WHEN - - CASE + 46 WHEN + + 77 THEN - 95 * - 43 + 85 WHEN - + 67 * 17 THEN AVG ( + 45 ) / 12 / CAST( + 2 AS SIGNED ) ELSE NULL END THEN - 16 END * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL CASE - + 52 WHEN + ( + COALESCE ( - - MAX ( - 99 ), + 71, + - COUNT ( * ) ) ) THEN + COUNT ( * ) WHEN - - CASE + 46 WHEN + + 77 THEN - 95 * - 43 + 85 WHEN - + 67 * 17 THEN AVG ( + 45 ) / 12 / CAST ( + 2 AS INTEGER ) ELSE NULL END THEN - 16 END * - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT COUNT( * ) + + 85 + 8 * - - 85 * + + 36 * - 45
----
-1101514

skipif mysql # not compatible
query I rowsort label-381
SELECT COUNT ( * ) + + 85 + 8 * - - 85 * + + 36 * - 45
----
-1101514

query I rowsort
SELECT 42 + - - 10 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT ALL ( 20 ) - + + NULLIF ( - + MAX( 33 ), - 13 + 49 ) * + COUNT( * ) * + - 66 AS col0
----
-2158

skipif mysql # not compatible
query I rowsort label-383
SELECT ALL ( 20 ) - + + NULLIF ( - + MAX ( 33 ), - 13 + 49 ) * + COUNT ( * ) * + - 66 AS col0
----
-2158

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT ( - + 4 ) * - 80 * - - COUNT( * ) * ( - + 34 )
----
-10880

skipif mysql # not compatible
query I rowsort label-384
SELECT ( - + 4 ) * - 80 * - - COUNT ( * ) * ( - + 34 )
----
-10880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-385
SELECT 48 * + 8 AS col1, + 95 + + + 99 * + 1 + - CASE + CAST( NULL AS SIGNED ) WHEN - 58 THEN NULL WHEN + - 53 THEN NULL ELSE 71 * - 11 - 12 * - 81 / + 29 + - 27 + 89 + - + CAST( - COUNT( * ) AS SIGNED ) + + + 86 + COUNT( - + 35 ) END + + CASE - + ( + SUM( 45 ) ) WHEN - - CASE + 70 WHEN + 22 + SUM( DISTINCT + - 72 ) + 39 THEN + ( 12 ) + 45 ELSE NULL END THEN NULLIF ( 25, + SUM( ALL - 85 ) * - 45 ) * 90 WHEN - 52 THEN NULL ELSE NULL END AS col1
----
384
NULL

skipif mysql # not compatible
query II rowsort label-385
SELECT 48 * + 8 AS col1, + 95 + + + 99 * + 1 + - CASE + CAST ( NULL AS INTEGER ) WHEN - 58 THEN NULL WHEN + - 53 THEN NULL ELSE 71 * - 11 - 12 * - 81 / + 29 + - 27 + 89 + - + CAST ( - COUNT ( * ) AS INTEGER ) + + + 86 + COUNT ( - + 35 ) END + + CASE - + ( + SUM ( 45 ) ) WHEN - - CASE + 70 WHEN + 22 + SUM ( DISTINCT + - 72 ) + 39 THEN + ( 12 ) + 45 ELSE NULL END THEN NULLIF ( 25, + SUM ( ALL - 85 ) * - 45 ) * 90 WHEN - 52 THEN NULL ELSE NULL END AS col1
----
384
NULL

query I rowsort
SELECT 61 * - ( + 19 )
----
-1159

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT - COUNT( * ) * + 24 * - 21 + - + 64 AS col1
----
440

skipif mysql # not compatible
query I rowsort label-387
SELECT - COUNT ( * ) * + 24 * - 21 + - + 64 AS col1
----
440

query I rowsort
SELECT ALL - 75 * + + 17 col0
----
-1275

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT 38 * - COUNT( + 20 )
----
-38

skipif mysql # not compatible
query I rowsort label-389
SELECT 38 * - COUNT ( + 20 )
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-390
SELECT - NULLIF ( - 41, - - 9 ) DIV 96 * 9 * 60 + 90 * - ( + 93 ) AS col1
----
-8370

skipif mysql # not compatible
query I rowsort label-390
SELECT - NULLIF ( - 41, - - 9 ) / 96 * 9 * 60 + 90 * - ( + 93 ) AS col1
----
-8370

query I rowsort
SELECT 51 * + 1 * 20 AS col0
----
1020

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

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

query I rowsort
SELECT ALL 58 * + 70
----
4060

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

skipif mysql # not compatible
query I rowsort label-394
SELECT + MAX ( + + 58 )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-395
SELECT DISTINCT + 3 * CAST( + - 60 AS SIGNED ) * - 63
----
11340

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT + 3 * CAST ( + - 60 AS INTEGER ) * - 63
----
11340

onlyif mysql # aggregate syntax: 
query II rowsort label-396
SELECT DISTINCT - ( COUNT( * ) ), + 15 + COUNT( * ) AS col1
----
-1
16

skipif mysql # not compatible
query II rowsort label-396
SELECT DISTINCT - ( COUNT ( * ) ), + 15 + COUNT ( * ) AS col1
----
-1
16

query I rowsort
SELECT 65 + + - 54
----
11

onlyif mysql # DIV for integer division: 
query II rowsort label-398
SELECT DISTINCT - 1 + 39 AS col1, + 1 DIV + + 26 AS col2
----
38
0

skipif mysql # not compatible
query II rowsort label-398
SELECT DISTINCT - 1 + 39 AS col1, + 1 / + + 26 AS col2
----
38
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-399
SELECT + 84 + - - 10 + - CAST( NULL AS DECIMAL ) * + 96 * - + 0 * - + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-399
SELECT + 84 + - - 10 + - CAST ( NULL AS REAL ) * + 96 * - + 0 * - + 3 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - + 46 + - 48 AS col0, + 41 col2
----
-94
41

query II rowsort
SELECT ALL + 46 + + 49, + 6 * + 26 AS col0
----
95
156

onlyif mysql # aggregate syntax: 
query II rowsort label-402
SELECT ALL - 87 + + 84 AS col0, 77 + + COUNT( * )
----
-3
78

skipif mysql # not compatible
query II rowsort label-402
SELECT ALL - 87 + + 84 AS col0, 77 + + COUNT ( * )
----
-3
78

query I rowsort
SELECT DISTINCT NULLIF ( - 6, + - 0 ) * + 48 * + - 88
----
25344

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT DISTINCT + + 17 + + 32 * NULLIF ( + 48, + 18 + + MAX( - 7 ) + + + 54 * - + ( + + 19 ) ) + 73 AS col1
----
1626

skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT + + 17 + + 32 * NULLIF ( + 48, + 18 + + MAX ( - 7 ) + + + 54 * - + ( + + 19 ) ) + 73 AS col1
----
1626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-405
SELECT - COUNT( * ) + - 94 - + 80 DIV + - CAST( 63 AS SIGNED ) + 77 * - - 96 AS col1
----
7298

skipif mysql # not compatible
query I rowsort label-405
SELECT - COUNT ( * ) + - 94 - + 80 / + - CAST ( 63 AS INTEGER ) + 77 * - - 96 AS col1
----
7298

query I rowsort
SELECT ALL - - 67 + 68 + - 77
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-407
SELECT ALL + - 4 + 11 AS col1, - COUNT( 43 ) * + 13
----
7
-13

skipif mysql # not compatible
query II rowsort label-407
SELECT ALL + - 4 + 11 AS col1, - COUNT ( 43 ) * + 13
----
7
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT ALL 60 - - - 82 + + COUNT( * ) - + - 2
----
-19

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL 60 - - - 82 + + COUNT ( * ) - + - 2
----
-19

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-410
SELECT DISTINCT 78 / - COALESCE ( 0, - + ( 73 ) + + CAST( NULL AS SIGNED ) ) * 91 * - CAST( NULL AS SIGNED ) * - ( - 62 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-410
SELECT DISTINCT 78 / - COALESCE ( 0, - + ( 73 ) + + CAST ( NULL AS INTEGER ) ) * 91 * - CAST ( NULL AS INTEGER ) * - ( - 62 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-411
SELECT - 30 DIV 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-411
SELECT - 30 / 41 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-412
SELECT - 84, + MAX( - 78 ) AS col1
----
-84
-78

skipif mysql # not compatible
query II rowsort label-412
SELECT - 84, + MAX ( - 78 ) AS col1
----
-84
-78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT ALL MIN( ALL - 12 ) * - 24 * - - 98
----
28224

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL MIN ( ALL - 12 ) * - 24 * - - 98
----
28224

query II rowsort
SELECT 67 AS col1, - NULLIF ( + 89, + 44 )
----
67
-89

query I rowsort
SELECT ALL 70 * + 73 * + ( + 18 ) * + 94 AS col2
----
8646120

query I rowsort
SELECT ALL 82 * + 45
----
3690

query I rowsort
SELECT ALL 17 * + 50
----
850

query I rowsort
SELECT + 23 + + 78
----
101

query I rowsort
SELECT + 40 * 92
----
3680

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT + 46 * + CASE + - COALESCE ( COUNT( * ), 73 - + 9 + - - 26 ) WHEN + - COALESCE ( - - 40, + 46 ) THEN NULL ELSE - 75 END * - 85 AS col2
----
293250

skipif mysql # not compatible
query I rowsort label-421
SELECT + 46 * + CASE + - COALESCE ( COUNT ( * ), 73 - + 9 + - - 26 ) WHEN + - COALESCE ( - - 40, + 46 ) THEN NULL ELSE - 75 END * - 85 AS col2
----
293250

query I rowsort
SELECT COALESCE ( + 58, + 95 )
----
58

query I rowsort
SELECT - 81 * - - 37 AS col1
----
-2997

query I rowsort
SELECT + NULLIF ( - 54, - 18 - 80 ) AS col1
----
-54

query I rowsort
SELECT + + 35 * + 97 AS col2
----
3395

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

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT + - ( + + 92 ) + + 81 + COUNT( * ) - + 76 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-427
SELECT + - ( + + 92 ) + + 81 + COUNT ( * ) - + 76 AS col1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-428
SELECT + 65, + COUNT( * ) * + CAST( 38 AS SIGNED ) AS col2
----
65
38

skipif mysql # not compatible
query II rowsort label-428
SELECT + 65, + COUNT ( * ) * + CAST ( 38 AS INTEGER ) AS col2
----
65
38

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT ALL - 56 * + - 24 + - COUNT( * ) * 94 + + 7
----
1257

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL - 56 * + - 24 + - COUNT ( * ) * 94 + + 7
----
1257

query II rowsort
SELECT + 15 AS col1, - ( - + 95 ) + + 91
----
15
186

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT ALL + 85 * 7 + - - 9 * - MAX( DISTINCT 75 )
----
-80

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL + 85 * 7 + - - 9 * - MAX ( DISTINCT 75 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT - 60 * + 19 * CASE 73 WHEN - 81 THEN + 17 + - + 25 ELSE + CASE - ( - + 82 ) WHEN - 17 * - 27 * + 55 * - COUNT( * ) THEN - 68 + + 84 + - + 8 / 55 * + 58 * - + COUNT( + 55 ) ELSE NULL END END - - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-432
SELECT - 60 * + 19 * CASE 73 WHEN - 81 THEN + 17 + - + 25 ELSE + CASE - ( - + 82 ) WHEN - 17 * - 27 * + 55 * - COUNT ( * ) THEN - 68 + + 84 + - + 8 / 55 * + 58 * - + COUNT ( + 55 ) ELSE NULL END END - - 72 AS col2
----
NULL

query I rowsort
SELECT - 22 + 89 * - 77 * - - 14 * - 42
----
4029542

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT - + 70 * - - COALESCE ( + COUNT( * ), + 17, + MIN( - 88 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-434
SELECT - + 70 * - - COALESCE ( + COUNT ( * ), + 17, + MIN ( - 88 ) )
----
-70

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

query I rowsort
SELECT ALL - + 39 - - 0 * - 45
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-437
SELECT ALL COALESCE ( + COUNT( * ), - 67, + COUNT( * ), + 95 + - - COALESCE ( - - 56, + 18 ) + 1 ) AS col0, - 89 AS col2
----
1
-89

skipif mysql # not compatible
query II rowsort label-437
SELECT ALL COALESCE ( + COUNT ( * ), - 67, + COUNT ( * ), + 95 + - - COALESCE ( - - 56, + 18 ) + 1 ) AS col0, - 89 AS col2
----
1
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-438
SELECT ALL - - 89 - - 75 + + MAX( ALL 38 ), + 94 - - - 10 col1
----
202
84

skipif mysql # not compatible
query II rowsort label-438
SELECT ALL - - 89 - - 75 + + MAX ( ALL 38 ), + 94 - - - 10 col1
----
202
84

query I rowsort
SELECT - NULLIF ( - + 62, + - 84 ) * + 7
----
434

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

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

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

skipif mysql # not compatible
query I rowsort label-441
SELECT - MIN ( - ( + 44 ) )
----
44

query I rowsort
SELECT - 30 + - - 9
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-443
SELECT - 89 * - - 0 DIV - 47
----
0

skipif mysql # not compatible
query I rowsort label-443
SELECT - 89 * - - 0 / - 47
----
0

query I rowsort
SELECT - 7 + + 73 + - 82 * - 74 * - ( - + 8 ) AS col1
----
48610

query I rowsort
SELECT + 12 - 56 AS col1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-446
SELECT ALL CAST( - + 15 AS SIGNED ), + COUNT( * ) DIV 19 AS col0
----
-15
0

skipif mysql # not compatible
query II rowsort label-446
SELECT ALL CAST ( - + 15 AS INTEGER ), + COUNT ( * ) / 19 AS col0
----
-15
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-447
SELECT - 83 + 97 + - 10 + - + 11 DIV + - 52 * COUNT( * ) * 65
----
4

skipif mysql # not compatible
query I rowsort label-447
SELECT - 83 + 97 + - 10 + - + 11 / + - 52 * COUNT ( * ) * 65
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT - 59 + + CASE - 27 WHEN + 11 + - 50 THEN - - 15 * + + 14 * 28 + + - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-448
SELECT - 59 + + CASE - 27 WHEN + 11 + - 50 THEN - - 15 * + + 14 * 28 + + - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT DISTINCT - ( + + CASE - COUNT( * ) WHEN - COUNT( * ) THEN - 35 * + 94 END ) * 2 + - - 63
----
6643

skipif mysql # not compatible
query I rowsort label-449
SELECT DISTINCT - ( + + CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN - 35 * + 94 END ) * 2 + - - 63
----
6643

query II rowsort
SELECT ALL ( + - 68 ) AS col2, - 73 col0
----
-68
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-451
SELECT - 23 * COALESCE ( + 22, + 96 + + MAX( + 25 ), - 61 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-451
SELECT - 23 * COALESCE ( + 22, + 96 + + MAX ( + 25 ), - 61 ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-452
SELECT + COUNT( * ) + - + CAST( NULL AS DECIMAL ) + - 96 * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-452
SELECT + COUNT ( * ) + - + CAST ( NULL AS REAL ) + - 96 * 29
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-453
SELECT DISTINCT 70 DIV + 85 * + 69
----
0

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT 70 / + 85 * + 69
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-454
SELECT + CASE - 99 WHEN + - 13 THEN NULL WHEN 34 + + 66 - + ( 56 ) THEN 82 + - - CASE COUNT( * ) WHEN - - COUNT( * ) + + - 44 * + + 40 THEN NULL WHEN - 36 THEN - 53 + 40 - 51 + + 93 / - AVG ( CASE + 89 WHEN 74 * 89 * - 11 THEN + + 84 - 59 WHEN + 93 THEN NULL ELSE NULL END ) WHEN + CAST( - + COUNT( * ) AS SIGNED ) THEN + COUNT( * ) WHEN + COALESCE ( + - 11, + - 26, + - COUNT( * ) ) THEN NULL ELSE 88 END ELSE NULL END + + 83 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-454
SELECT + CASE - 99 WHEN + - 13 THEN NULL WHEN 34 + + 66 - + ( 56 ) THEN 82 + - - CASE COUNT ( * ) WHEN - - COUNT ( * ) + + - 44 * + + 40 THEN NULL WHEN - 36 THEN - 53 + 40 - 51 + + 93 / - AVG ( CASE + 89 WHEN 74 * 89 * - 11 THEN + + 84 - 59 WHEN + 93 THEN NULL ELSE NULL END ) WHEN + CAST ( - + COUNT ( * ) AS INTEGER ) THEN + COUNT ( * ) WHEN + COALESCE ( + - 11, + - 26, + - COUNT ( * ) ) THEN NULL ELSE 88 END ELSE NULL END + + 83 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-455
SELECT + CAST( 1 AS SIGNED ) * - SUM( DISTINCT + 83 ) + 11
----
-72

skipif mysql # not compatible
query I rowsort label-455
SELECT + CAST ( 1 AS INTEGER ) * - SUM ( DISTINCT + 83 ) + 11
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT COALESCE ( 82, - 24 * + - COUNT( * ) * + 56, - 64 ) * + + 26 + - + 58
----
2074

skipif mysql # not compatible
query I rowsort label-456
SELECT COALESCE ( 82, - 24 * + - COUNT ( * ) * + 56, - 64 ) * + + 26 + - + 58
----
2074

onlyif mysql # DIV for integer division: 
query I rowsort label-457
SELECT DISTINCT + + 38 DIV 19 DIV 82 col0
----
0

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT + + 38 / 19 / 82 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-458
SELECT + MIN( 72 ) + + + COUNT( * ) DIV - - 99 AS col2, 21 col0
----
72
21

skipif mysql # not compatible
query II rowsort label-458
SELECT + MIN ( 72 ) + + + COUNT ( * ) / - - 99 AS col2, 21 col0
----
72
21

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT - 33 * - ( 94 ) + - COUNT( * )
----
3101

skipif mysql # not compatible
query I rowsort label-459
SELECT - 33 * - ( 94 ) + - COUNT ( * )
----
3101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-460
SELECT + COALESCE ( CAST( - 97 AS SIGNED ), MAX( - 55 ) * COUNT( * ) + + 74, + 43, - - CAST( - 80 AS SIGNED ) ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-460
SELECT + COALESCE ( CAST ( - 97 AS INTEGER ), MAX ( - 55 ) * COUNT ( * ) + + 74, + 43, - - CAST ( - 80 AS INTEGER ) ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT + + NULLIF ( - - MIN( + 67 ), 80 + + 8 * + 53 + - + 34 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-461
SELECT + + NULLIF ( - - MIN ( + 67 ), 80 + + 8 * + 53 + - + 34 ) AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-462
SELECT + CAST( 60 AS SIGNED ) + + - 35 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-462
SELECT + CAST ( 60 AS INTEGER ) + + - 35 AS col0
----
25

query I rowsort
SELECT + + 30 * + 10 AS col1
----
300

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-465
SELECT + 9 * - + NULLIF ( + - 36, + COUNT( ALL + - ( + 56 ) ) ) DIV + 36 - + 69 * - + NULLIF ( - 30, + 48 + + + CAST( - COUNT( * ) AS SIGNED ) * + 62 ) * - + CASE - 51 WHEN 14 * + 52 THEN + COUNT( * ) ELSE 81 * - 83 END * CAST( + 68 AS SIGNED ) + COUNT( * ) + - COUNT( * ) - - 17 AS col1
----
-946329454

skipif mysql # not compatible
query I rowsort label-465
SELECT + 9 * - + NULLIF ( + - 36, + COUNT ( ALL + - ( + 56 ) ) ) / + 36 - + 69 * - + NULLIF ( - 30, + 48 + + + CAST ( - COUNT ( * ) AS INTEGER ) * + 62 ) * - + CASE - 51 WHEN 14 * + 52 THEN + COUNT ( * ) ELSE 81 * - 83 END * CAST ( + 68 AS INTEGER ) + COUNT ( * ) + - COUNT ( * ) - - 17 AS col1
----
-946329454

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

skipif mysql # not compatible
query I rowsort label-466
SELECT - MAX ( + - 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT CASE + 11 WHEN + + 57 THEN + MIN( + - 85 ) ELSE - + 26 END + + - 76 + + + 70
----
-32

skipif mysql # not compatible
query I rowsort label-467
SELECT CASE + 11 WHEN + + 57 THEN + MIN ( + - 85 ) ELSE - + 26 END + + - 76 + + + 70
----
-32

query I rowsort
SELECT ALL + 42 * + 61 - 32 - 57 + + - 2
----
2471

query I rowsort
SELECT + 32 + - 31
----
1

query I rowsort
SELECT 52 * + - 90 AS col2
----
-4680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-471
SELECT 58 + + COUNT( * ) - - 51 * + + MAX( DISTINCT CAST( - 90 AS SIGNED ) ) col2
----
-4531

skipif mysql # not compatible
query I rowsort label-471
SELECT 58 + + COUNT ( * ) - - 51 * + + MAX ( DISTINCT CAST ( - 90 AS INTEGER ) ) col2
----
-4531

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

query I rowsort
SELECT DISTINCT 6 * - 27 * + + 10 AS col2
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT 51 * COUNT( 36 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-474
SELECT 51 * COUNT ( 36 ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT 41 * + NULLIF ( + 95, + COUNT( * ) ) * + 80 * - + MIN( ALL + + 52 )
----
-16203200

skipif mysql # not compatible
query I rowsort label-475
SELECT 41 * + NULLIF ( + 95, + COUNT ( * ) ) * + 80 * - + MIN ( ALL + + 52 )
----
-16203200

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-477
SELECT 47 - CAST( NULL AS SIGNED ) - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-477
SELECT 47 - CAST ( NULL AS INTEGER ) - 89 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 44 * 16 AS col0
----
704

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT ALL - 90 + - COALESCE ( - 27, 25, COUNT( * ) * + + 24 )
----
-63

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL - 90 + - COALESCE ( - 27, 25, COUNT ( * ) * + + 24 )
----
-63

query II rowsort
SELECT DISTINCT + 45 * - ( - 23 ), - 89 AS col2
----
1035
-89

query I rowsort
SELECT - 89 * 73 + - - 42
----
-6455

query II rowsort
SELECT 72 AS col2, 51 AS col1
----
72
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-483
SELECT ALL - + MAX( 81 ) + + CAST( NULL AS SIGNED ) + 98 + - + 78 - - 30 * - ( + 82 ) * 68 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL - + MAX ( 81 ) + + CAST ( NULL AS INTEGER ) + 98 + - + 78 - - 30 * - ( + 82 ) * 68 col2
----
NULL

query I rowsort
SELECT + - 34 * + 81 * - - 17 * + 27 + 65 AS col2
----
-1264021

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT - NULLIF ( + + CASE - 84 WHEN + 1 THEN + 64 ELSE NULL END, 54 * + COUNT( * ) * - 19 ) * - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-485
SELECT - NULLIF ( + + CASE - 84 WHEN + 1 THEN + 64 ELSE NULL END, 54 * + COUNT ( * ) * - 19 ) * - 80 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-486
SELECT 32 * COALESCE ( CAST( + ( + 24 ) AS SIGNED ), + 85, + - 68 ) col0
----
768

skipif mysql # not compatible
query I rowsort label-486
SELECT 32 * COALESCE ( CAST ( + ( + 24 ) AS INTEGER ), + 85, + - 68 ) col0
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT ALL + ( - 28 ) - - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL + ( - 28 ) - - COUNT ( * )
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-488
SELECT 34 DIV + 78 + + 80 + + 7 * - 68 col0
----
-396

skipif mysql # not compatible
query I rowsort label-488
SELECT 34 / + 78 + + 80 + + 7 * - 68 col0
----
-396

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-490
SELECT ALL + + 68 DIV + 48
----
1

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL + + 68 / + 48
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-491
SELECT + 80 * + - SUM( + + CAST( NULL AS SIGNED ) ) + + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-491
SELECT + 80 * + - SUM ( + + CAST ( NULL AS INTEGER ) ) + + 9 AS col0
----
NULL

query II rowsort
SELECT ALL - + 19 AS col1, + 35 AS col0
----
-19
35

query I rowsort
SELECT DISTINCT 58 - 85 col2
----
-27

query I rowsort
SELECT - - 54 * + 74 + 38
----
4034

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

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 28 * - 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT + 46 * + COUNT( ALL - 82 ) + + COUNT( + - 82 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-496
SELECT + 46 * + COUNT ( ALL - 82 ) + + COUNT ( + - 82 ) AS col1
----
47

query I rowsort
SELECT - 8 * - 26 + + 82
----
290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-498
SELECT ALL + CASE 31 WHEN - 86 THEN + 41 DIV - 34 + + COUNT( * ) + - 65 ELSE 41 - - + MIN( + ( - 21 ) ) + + 50 * 85 + - ( - 23 ) * + ( - 14 ) END * + 81
----
319788

skipif mysql # not compatible
query I rowsort label-498
SELECT ALL + CASE 31 WHEN - 86 THEN + 41 / - 34 + + COUNT ( * ) + - 65 ELSE 41 - - + MIN ( + ( - 21 ) ) + + 50 * 85 + - ( - 23 ) * + ( - 14 ) END * + 81
----
319788

query I rowsort
SELECT ALL 65 + - 39 + - - 80 + - 10 * 75
----
-644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-500
SELECT CAST( 17 AS SIGNED ) - - 32
----
49

skipif mysql # not compatible
query I rowsort label-500
SELECT CAST ( 17 AS INTEGER ) - - 32
----
49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-501
SELECT DISTINCT CAST( + ( - 43 ) AS SIGNED ) DIV CAST( - 10 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-501
SELECT DISTINCT CAST ( + ( - 43 ) AS INTEGER ) / CAST ( - 10 AS INTEGER )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-502
SELECT 57 * + COALESCE ( - COUNT( - - 31 ), - 46, + 73 * - + MIN( - 63 ) ) + - CAST( NULL AS SIGNED ) / - 78 / - 48 * + - 55 + - 68 + - CAST( - + CASE + 6 WHEN + + 75 THEN + - 51 WHEN - 27 * + - 13 * + - 62 + + 53 THEN NULL ELSE NULL END AS SIGNED ) AS col1, - COALESCE ( 92, - - CAST( + - 69 AS SIGNED ) ) AS col0
----
NULL
-92

skipif mysql # not compatible
query II rowsort label-502
SELECT 57 * + COALESCE ( - COUNT ( - - 31 ), - 46, + 73 * - + MIN ( - 63 ) ) + - CAST ( NULL AS INTEGER ) / - 78 / - 48 * + - 55 + - 68 + - CAST ( - + CASE + 6 WHEN + + 75 THEN + - 51 WHEN - 27 * + - 13 * + - 62 + + 53 THEN NULL ELSE NULL END AS INTEGER ) AS col1, - COALESCE ( 92, - - CAST ( + - 69 AS INTEGER ) ) AS col0
----
NULL
-92

query I rowsort
SELECT ALL 94 * 5 AS col1
----
470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-504
SELECT ( + COUNT( * ) ) DIV COUNT( + 4 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-504
SELECT ( + COUNT ( * ) ) / COUNT ( + 4 ) col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-505
SELECT 77 DIV 52 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-505
SELECT 77 / 52 AS col1
----
1

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

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

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

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL 88 + + + COUNT ( * ) AS col1
----
89

query I rowsort
SELECT 67 + - + 36 * + 10 AS col1
----
-293

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT ALL - SUM( ALL - 29 ) + 76 AS col1
----
105

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL - SUM ( ALL - 29 ) + 76 AS col1
----
105

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

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

query I rowsort
SELECT ALL 52 + + + 46 * + 37 AS col1
----
1754

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT DISTINCT MIN( ALL 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-512
SELECT DISTINCT MIN ( ALL 19 ) AS col1
----
19

query I rowsort
SELECT ALL - 59 + 83 + 18 * + + 18 AS col1
----
348

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT 92 + + - COUNT( * ) + + 23
----
114

skipif mysql # not compatible
query I rowsort label-514
SELECT 92 + + - COUNT ( * ) + + 23
----
114

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

skipif mysql # not compatible
query I rowsort label-515
SELECT - ( + - CAST ( NULL AS INTEGER ) ) + + 62 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT 16 + + ( - 82 ) + - 4 * + + ( + - COUNT( 19 ) ) + + COUNT( * ) + - - COUNT( * ) * + - ( + - 26 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-516
SELECT 16 + + ( - 82 ) + - 4 * + + ( + - COUNT ( 19 ) ) + + COUNT ( * ) + - - COUNT ( * ) * + - ( + - 26 ) AS col1
----
-35

query I rowsort
SELECT - 28 * - 49
----
1372

query I rowsort
SELECT DISTINCT - - COALESCE ( + 69, + - 89, + ( + ( + 62 ) ) + 56 * - - 81 ) AS col2
----
69

query I rowsort
SELECT DISTINCT - 41 * - 40 + + 9
----
1649

query II rowsort
SELECT ALL - 36 AS col2, - 84 * + + 53
----
-36
-4452

query II rowsort
SELECT ALL - + 20 AS col2, 44 AS col2
----
-20
44

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-522
SELECT CAST( NULL AS DECIMAL ) * 69 col2, - 11 * + + 38 * + 58 + ( - + 95 ) AS col0
----
NULL
-24339

skipif mysql # not compatible
query II rowsort label-522
SELECT CAST ( NULL AS REAL ) * 69 col2, - 11 * + + 38 * + 58 + ( - + 95 ) AS col0
----
NULL
-24339

query II rowsort
SELECT 92, - 41 AS col0
----
92
-41

query II rowsort
SELECT - 62 AS col1, 70 * - 75
----
-62
-5250

onlyif mysql # DIV for integer division: 
query I rowsort label-525
SELECT - 30 DIV 79 + + 87
----
87

skipif mysql # not compatible
query I rowsort label-525
SELECT - 30 / 79 + + 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT ALL + COUNT( * ) * 21 + - - 49 * 51 * - 34 AS col2
----
-84945

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL + COUNT ( * ) * 21 + - - 49 * 51 * - 34 AS col2
----
-84945

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT - MAX( DISTINCT + 12 ) * - 40
----
480

skipif mysql # not compatible
query I rowsort label-527
SELECT - MAX ( DISTINCT + 12 ) * - 40
----
480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-528
SELECT ALL + CAST( NULL AS SIGNED ) * + + 69 * - 16 + - - 43 + - 98 * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 69 * - 16 + - - 43 + - 98 * 27
----
NULL

query II rowsort
SELECT ALL 48 + - 37, + CASE - - 54 WHEN + 59 THEN 94 END AS col2
----
11
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT MAX( DISTINCT - + ( + + 42 ) ) * - 88 + 15 + 50
----
3761

skipif mysql # not compatible
query I rowsort label-530
SELECT MAX ( DISTINCT - + ( + + 42 ) ) * - 88 + 15 + 50
----
3761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-531
SELECT ALL + 62 * - 68 AS col1, CAST( NULL AS SIGNED ) * - COUNT( * ) + + 31
----
-4216
NULL

skipif mysql # not compatible
query II rowsort label-531
SELECT ALL + 62 * - 68 AS col1, CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 31
----
-4216
NULL

query I rowsort
SELECT ALL - 90 + + 94 - + 12 * + 32 + 61 * + 17 - - ( - 13 )
----
644

onlyif mysql # DIV for integer division: 
query I rowsort label-533
SELECT ALL 40 DIV + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL 40 / + 81 AS col0
----
0

query I rowsort
SELECT - COALESCE ( 75, ( + 11 ) ) AS col2
----
-75

query II rowsort
SELECT ALL 52 + - - 36 col0, 30 AS col1
----
88
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-536
SELECT - CASE 14 WHEN 36 * - + 54 * + + NULLIF ( - ( - 31 ), - + 84 - - - 88 ) THEN NULL ELSE + + CAST( - 87 AS SIGNED ) END
----
87

skipif mysql # not compatible
query I rowsort label-536
SELECT - CASE 14 WHEN 36 * - + 54 * + + NULLIF ( - ( - 31 ), - + 84 - - - 88 ) THEN NULL ELSE + + CAST ( - 87 AS INTEGER ) END
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT ALL COUNT( * ) + ( + + 87 )
----
88

skipif mysql # not compatible
query I rowsort label-537
SELECT ALL COUNT ( * ) + ( + + 87 )
----
88

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

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL 5 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 31 * - - 0, + 30 * 72 AS col2
----
0
2160

query II rowsort
SELECT DISTINCT 47 - + + 25 AS col2, 45 AS col0
----
22
45

onlyif mysql # aggregate syntax: 
query II rowsort label-541
SELECT DISTINCT 91 * + 53, - 6 + - 8 + + + COALESCE ( - COUNT( * ), - 26 ) - 66 AS col1
----
4823
-81

skipif mysql # not compatible
query II rowsort label-541
SELECT DISTINCT 91 * + 53, - 6 + - 8 + + + COALESCE ( - COUNT ( * ), - 26 ) - 66 AS col1
----
4823
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-542
SELECT DISTINCT - 48 DIV 76 + 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-542
SELECT DISTINCT - 48 / 76 + 26 AS col1
----
26

query I rowsort
SELECT + - 43 * 45 AS col2
----
-1935

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-545
SELECT - COUNT( * ) DIV - COUNT( * ) * - - COUNT( * ) - - COALESCE ( COUNT( * ), - 75, - + 35 ), COUNT( * ) * - ( + + COUNT( * ) ) AS col0
----
2
-1

skipif mysql # not compatible
query II rowsort label-545
SELECT - COUNT ( * ) / - COUNT ( * ) * - - COUNT ( * ) - - COALESCE ( COUNT ( * ), - 75, - + 35 ), COUNT ( * ) * - ( + + COUNT ( * ) ) AS col0
----
2
-1

query I rowsort
SELECT + 1 * 90 * + - 88 * - 54 AS col2
----
427680

onlyif mysql # DIV for integer division: 
query I rowsort label-547
SELECT 82 * 46 + ( 9 ) DIV - 82 * - + 5
----
3772

skipif mysql # not compatible
query I rowsort label-547
SELECT 82 * 46 + ( 9 ) / - 82 * - + 5
----
3772

query I rowsort
SELECT - - ( - 62 ) * - + 44
----
2728

query I rowsort
SELECT DISTINCT + 88 * - 97 + + + 78 AS col2
----
-8458

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT ALL - 35 * 73 * + + 38 * + 69 + 53 + COUNT( * ) AS col0
----
-6699156

skipif mysql # not compatible
query I rowsort label-550
SELECT ALL - 35 * 73 * + + 38 * + 69 + 53 + COUNT ( * ) AS col0
----
-6699156

query I rowsort
SELECT + 7 * + ( - 49 )
----
-343

query II rowsort
SELECT NULLIF ( 92, + 74 ) AS col1, 15 AS col2
----
92
15

onlyif mysql # DIV for integer division: 
query I rowsort label-553
SELECT - 30 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-553
SELECT - 30 / + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT COALESCE ( - COUNT( * ), + + 53 + 76, - - 46 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-554
SELECT COALESCE ( - COUNT ( * ), + + 53 + 76, - - 46 ) AS col2
----
-1

query I rowsort
SELECT ALL 74 * - 46 + 36 AS col2
----
-3368

query I rowsort
SELECT - 77 * + + 59 AS col2
----
-4543

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT CASE + ( - 15 ) WHEN + COUNT( * ) THEN NULL ELSE ( + 88 ) END
----
88

skipif mysql # not compatible
query I rowsort label-557
SELECT CASE + ( - 15 ) WHEN + COUNT ( * ) THEN NULL ELSE ( + 88 ) END
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-558
SELECT + 61 * - 50 + - 80 + + 84 - NULLIF ( - + 79, + - 11 ) * + + 21 * - - 16 * + CAST( - 54 AS SIGNED )
----
-1436422

skipif mysql # not compatible
query I rowsort label-558
SELECT + 61 * - 50 + - 80 + + 84 - NULLIF ( - + 79, + - 11 ) * + + 21 * - - 16 * + CAST ( - 54 AS INTEGER )
----
-1436422

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-559
SELECT ALL COALESCE ( + ( + 82 ), + COUNT( * ) ) * + - ( - + COUNT( * ) ) + + - COUNT( * ) DIV + + COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL COALESCE ( + ( + 82 ), + COUNT ( * ) ) * + - ( - + COUNT ( * ) ) + + - COUNT ( * ) / + + COUNT ( * ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT ALL 80 * + NULLIF ( + 98, + - MIN( ALL - + 31 ) + 74 * COUNT( * ) ) + + COUNT( * )
----
7841

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL 80 * + NULLIF ( + 98, + - MIN ( ALL - + 31 ) + 74 * COUNT ( * ) ) + + COUNT ( * )
----
7841

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT NULLIF ( 4, + + ( - NULLIF ( - 71, + NULLIF ( 86, + COALESCE ( + 35, COUNT( * ), - + 7 * 90 ) ) ) ) )
----
4

skipif mysql # not compatible
query I rowsort label-561
SELECT NULLIF ( 4, + + ( - NULLIF ( - 71, + NULLIF ( 86, + COALESCE ( + 35, COUNT ( * ), - + 7 * 90 ) ) ) ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT ALL COUNT( * ) * + COALESCE ( + + 14, + + 26, + + COUNT( * ), - 23 ) - + 64
----
-50

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL COUNT ( * ) * + COALESCE ( + + 14, + + 26, + + COUNT ( * ), - 23 ) - + 64
----
-50

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

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT + 86 * + + COUNT ( * ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT + 42 * + 80 * - - COUNT( * ) + - 14 AS col1
----
3346

skipif mysql # not compatible
query I rowsort label-564
SELECT + 42 * + 80 * - - COUNT ( * ) + - 14 AS col1
----
3346

query I rowsort
SELECT - CASE + 9 WHEN - - 49 THEN - 93 ELSE - + 55 END AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT - 4 + + NULLIF ( + 70, - 49 * 44 + ( - COUNT( * ) ) + + - COUNT( * ) ) * - 77 AS col2
----
-5394

skipif mysql # not compatible
query I rowsort label-566
SELECT - 4 + + NULLIF ( + 70, - 49 * 44 + ( - COUNT ( * ) ) + + - COUNT ( * ) ) * - 77 AS col2
----
-5394

query I rowsort
SELECT + 10 * - 44 AS col1
----
-440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-568
SELECT - + COUNT( * ) + - COUNT( * ) * - 97 + + 3 * + 70 + - - CAST( - 52 AS SIGNED ) AS col1
----
254

skipif mysql # not compatible
query I rowsort label-568
SELECT - + COUNT ( * ) + - COUNT ( * ) * - 97 + + 3 * + 70 + - - CAST ( - 52 AS INTEGER ) AS col1
----
254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-569
SELECT + - 46 + + 92 DIV - - COALESCE ( - 89, - - 63, - COUNT( * ), 20 * - 79 * + 1 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-569
SELECT + - 46 + + 92 / - - COALESCE ( - 89, - - 63, - COUNT ( * ), 20 * - 79 * + 1 ) AS col0
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-570
SELECT DISTINCT COUNT( * ), 79 + - 97 DIV + 71 AS col0
----
1
78

skipif mysql # not compatible
query II rowsort label-570
SELECT DISTINCT COUNT ( * ), 79 + - 97 / + 71 AS col0
----
1
78

query II rowsort
SELECT ALL 91, 14 AS col1
----
91
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-572
SELECT - 46 + + - 17 + + 67 * - 85 * ( + CAST( + COUNT( * ) AS SIGNED ) ) AS col0
----
-5758

skipif mysql # not compatible
query I rowsort label-572
SELECT - 46 + + - 17 + + 67 * - 85 * ( + CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0
----
-5758

query II rowsort
SELECT 90, 50 AS col1
----
90
50

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT + 73 + - ( + MIN( ALL + ( + + 82 ) ) )
----
-9

skipif mysql # not compatible
query I rowsort label-574
SELECT + 73 + - ( + MIN ( ALL + ( + + 82 ) ) )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT ALL + 25 + COUNT( * ) + - + 44 + + 7 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL + 25 + COUNT ( * ) + - + 44 + + 7 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT 48 + COUNT( DISTINCT + 52 ) * - 51 + 44 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-576
SELECT 48 + COUNT ( DISTINCT + 52 ) * - 51 + 44 AS col0
----
41

query I rowsort
SELECT DISTINCT 91 + + 50 * - + ( - 69 ) + - + 52 AS col0
----
3489

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT DISTINCT 5 + COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-578
SELECT DISTINCT 5 + COUNT ( * ) AS col1
----
6

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

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

query I rowsort
SELECT DISTINCT - 6 * 25
----
-150

query I rowsort
SELECT ALL - 84 + + - 94 AS col2
----
-178

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

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

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

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT 36 + + COUNT ( * ) / + - 4 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT ALL + 71 + 52 + + - 58 * + SUM( DISTINCT - 57 )
----
3429

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL + 71 + 52 + + - 58 * + SUM ( DISTINCT - 57 )
----
3429

onlyif mysql # DIV for integer division: 
query I rowsort label-585
SELECT DISTINCT - 17 * 50 DIV - 49 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT - 17 * 50 / - 49 AS col1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-586
SELECT CAST( - 50 AS SIGNED ) + + - 42 * - 94, 83 AS col1
----
3898
83

skipif mysql # not compatible
query II rowsort label-586
SELECT CAST ( - 50 AS INTEGER ) + + - 42 * - 94, 83 AS col1
----
3898
83

onlyif mysql # aggregate syntax: 
query II rowsort label-587
SELECT ALL - 99 * SUM( ALL + 20 ) * 17 + - 2, - 57 + - 49 AS col0
----
-33662
-106

skipif mysql # not compatible
query II rowsort label-587
SELECT ALL - 99 * SUM ( ALL + 20 ) * 17 + - 2, - 57 + - 49 AS col0
----
-33662
-106

query I rowsort
SELECT ALL 77 * 21 AS col2
----
1617

onlyif mysql # aggregate syntax: 
query II rowsort label-589
SELECT ALL 35 - + COUNT( * ) AS col1, 80 + + MAX( ALL + - 66 ) * - 79 AS col2
----
34
5294

skipif mysql # not compatible
query II rowsort label-589
SELECT ALL 35 - + COUNT ( * ) AS col1, 80 + + MAX ( ALL + - 66 ) * - 79 AS col2
----
34
5294

query I rowsort
SELECT DISTINCT 94 * 88 AS col2
----
8272

query I rowsort
SELECT ALL - 72 - 59
----
-131

query II rowsort
SELECT 86 * - 34, - NULLIF ( + ( 49 ), - 48 ) AS col1
----
-2924
-49

query I rowsort
SELECT ALL - 99 * - - 60
----
-5940

onlyif mysql # aggregate syntax: 
query II rowsort label-594
SELECT COUNT( * ) * + - 61 + + + 1 + - - 22, 86 AS col1
----
-38
86

skipif mysql # not compatible
query II rowsort label-594
SELECT COUNT ( * ) * + - 61 + + + 1 + - - 22, 86 AS col1
----
-38
86

query I rowsort
SELECT 2 + - - 13
----
15

query I rowsort
SELECT 76 * - 14 AS col1
----
-1064

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

query I rowsort
SELECT 55 * + + 48 * + ( - - ( - - 28 ) )
----
73920

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT ALL - MAX( + 33 ) * - - 27
----
-891

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL - MAX ( + 33 ) * - - 27
----
-891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-600
SELECT DISTINCT + CASE WHEN ( NULL ) IS NOT NULL THEN - + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-600
SELECT DISTINCT + CASE WHEN ( NULL ) IS NOT NULL THEN - + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL + + 59 * + + COUNT ( * ) / - + 73
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-602
SELECT ( - CAST( NULL AS SIGNED ) ) * - + 1 * CAST( NULL AS SIGNED ) + + 74, 75 * + 2 AS col2
----
NULL
150

skipif mysql # not compatible
query II rowsort label-602
SELECT ( - CAST ( NULL AS INTEGER ) ) * - + 1 * CAST ( NULL AS INTEGER ) + + 74, 75 * + 2 AS col2
----
NULL
150

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT + 30 * COUNT( * ) * - + 6
----
-180

skipif mysql # not compatible
query I rowsort label-603
SELECT + 30 * COUNT ( * ) * - + 6
----
-180

query II rowsort
SELECT ALL - + 46 * - - 68, 38 + - + 9 col0
----
-3128
29

query I rowsort
SELECT - 97 - + 4
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT ALL MIN( + 26 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-606
SELECT ALL MIN ( + 26 ) AS col2
----
26

query I rowsort
SELECT ALL 54 + - ( - + 30 )
----
84

query II rowsort
SELECT DISTINCT - 46 + + 23 AS col0, 97 - - 60
----
-23
157

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT ALL + NULLIF ( + COUNT( * ), + - 28 / - MAX( - 65 ) - - 34 )
----
1

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL + NULLIF ( + COUNT ( * ), + - 28 / - MAX ( - 65 ) - - 34 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-610
SELECT ALL - ( - 17 ) + MIN( ALL - - 84 ), - 0 AS col1
----
101
0

skipif mysql # not compatible
query II rowsort label-610
SELECT ALL - ( - 17 ) + MIN ( ALL - - 84 ), - 0 AS col1
----
101
0

query I rowsort
SELECT - NULLIF ( 22, + - 73 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT ALL - COUNT( * ) * - 89 + 45 + + 63 - - 41 + - - 10
----
248

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL - COUNT ( * ) * - 89 + 45 + + 63 - - 41 + - - 10
----
248

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

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

query I rowsort
SELECT 19 * + - 12
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT ALL 91 * 99 * - COUNT( * ) + + COUNT( * )
----
-9008

skipif mysql # not compatible
query I rowsort label-615
SELECT ALL 91 * 99 * - COUNT ( * ) + + COUNT ( * )
----
-9008

query I rowsort
SELECT DISTINCT - 58 - 5 AS col2
----
-63

query I rowsort
SELECT ALL + ( + + 72 ) * - 42
----
-3024

query I rowsort
SELECT 70 + + 84 + + 90 * + 83 * 62 + + + 23 + 24 AS col0
----
463341

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT ALL 36 - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL 36 - COUNT ( * )
----
35

query I rowsort
SELECT DISTINCT 94 * - 51
----
-4794

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT ALL + 40 - - SUM( - 63 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL + 40 - - SUM ( - 63 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT COUNT( ALL + 88 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-622
SELECT COUNT ( ALL + 88 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT MIN( ALL 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-623
SELECT MIN ( ALL 96 ) AS col1
----
96

query II rowsort
SELECT + NULLIF ( - - 71, + 37 ), 50 + - + 34 AS col2
----
71
16

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT COUNT( DISTINCT - - 10 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-625
SELECT COUNT ( DISTINCT - - 10 ) col1
----
1

query I rowsort
SELECT 82 - + 7 AS col2
----
75

query I rowsort
SELECT 21 * - - 2
----
42

query I rowsort
SELECT + NULLIF ( - + 55, + + 33 * 92 * - COALESCE ( + - 34, 62 + 52 ) + - + 18 )
----
-55

query I rowsort
SELECT DISTINCT 22 * - 9
----
-198

query I rowsort
SELECT - 34 * - 27 * + 73
----
67014

query I rowsort
SELECT ALL + 24 + - + 76
----
-52

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

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

query I rowsort
SELECT + + 44 + + + 71 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT - 28 + + CASE 37 WHEN - + COUNT( * ) * - 71 / + 79 THEN + COUNT( DISTINCT - 95 ) / 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-634
SELECT - 28 + + CASE 37 WHEN - + COUNT ( * ) * - 71 / + 79 THEN + COUNT ( DISTINCT - 95 ) / 74 END
----
NULL

query II rowsort
SELECT - 81 + + 70 + 96 AS col0, + 58
----
85
58

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT - + CASE - NULLIF ( + CASE + 73 WHEN - COUNT( * ) THEN NULL WHEN - 16 * - 13 + + CASE 45 WHEN ( 34 ) + + + 28 + + - 16 + - 48 THEN - COUNT( * ) ELSE NULL END THEN + 40 END, - 76 ) WHEN + - 13 THEN 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-636
SELECT - + CASE - NULLIF ( + CASE + 73 WHEN - COUNT ( * ) THEN NULL WHEN - 16 * - 13 + + CASE 45 WHEN ( 34 ) + + + 28 + + - 16 + - 48 THEN - COUNT ( * ) ELSE NULL END THEN + 40 END, - 76 ) WHEN + - 13 THEN 88 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-637
SELECT + 15 AS col1, - COUNT( * ) + + 63
----
15
62

skipif mysql # not compatible
query II rowsort label-637
SELECT + 15 AS col1, - COUNT ( * ) + + 63
----
15
62

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

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

query I rowsort
SELECT ALL - 98 + 65 + + + ( 18 ) col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT - - 54 + - ( + COUNT( * ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-640
SELECT - - 54 + - ( + COUNT ( * ) ) AS col1
----
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT ALL MIN( + 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL MIN ( + 25 ) AS col0
----
25

query I rowsort
SELECT - 44 + - 25 AS col2
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-644
SELECT - ( 69 ) + + COALESCE ( - 6, - COUNT( * ) DIV + COUNT( * ) - - COUNT( * ) * 93 )
----
-75

skipif mysql # not compatible
query I rowsort label-644
SELECT - ( 69 ) + + COALESCE ( - 6, - COUNT ( * ) / + COUNT ( * ) - - COUNT ( * ) * 93 )
----
-75

query I rowsort
SELECT ALL - - 39 - - 58 + - ( - 92 ) AS col1
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT DISTINCT + 24 * + 52 * + COUNT( DISTINCT 48 ) + + + 4 * + + 23 + + 52
----
1392

skipif mysql # not compatible
query I rowsort label-646
SELECT DISTINCT + 24 * + 52 * + COUNT ( DISTINCT 48 ) + + + 4 * + + 23 + + 52
----
1392

query I rowsort
SELECT + 71 + - 90 AS col0
----
-19

query I rowsort
SELECT - 11 * 92 AS col2
----
-1012

query I rowsort
SELECT + ( + - 81 ) * - + 44
----
3564

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

query I rowsort
SELECT DISTINCT + 26 * + 50
----
1300

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT ALL + COUNT( * ) * - 34 - - 44 - + COUNT( * ) * - 92 - 94 * - - 73
----
-6760

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL + COUNT ( * ) * - 34 - - 44 - + COUNT ( * ) * - 92 - 94 * - - 73
----
-6760

query I rowsort
SELECT DISTINCT + 17 * 10 * + 74
----
12580

query II rowsort
SELECT DISTINCT + 38 AS col1, - CASE COALESCE ( - - 54, - 48 ) WHEN 81 THEN + 59 * - + 29 WHEN + + 64 THEN NULL ELSE NULL END * - 98 * - + 23 * - + 67 * + ( 33 )
----
38
NULL

query II rowsort
SELECT ALL + 41, + 69 AS col2
----
41
69

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-656
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1, - 72 AS col2
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-656
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1, - 72 AS col2
----
NULL
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-657
SELECT + 85 AS col2, 33 - + + 25 + - MAX( - 15 )
----
85
23

skipif mysql # not compatible
query II rowsort label-657
SELECT + 85 AS col2, 33 - + + 25 + - MAX ( - 15 )
----
85
23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-660
SELECT + 17 + + 78 + - COALESCE ( - COUNT( * ), - CAST( + 46 AS SIGNED ) ) col2, - 10
----
96
-10

skipif mysql # not compatible
query II rowsort label-660
SELECT + 17 + + 78 + - COALESCE ( - COUNT ( * ), - CAST ( + 46 AS INTEGER ) ) col2, - 10
----
96
-10

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

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

query I rowsort
SELECT 64 * + 97 + + 57 * + - 12
----
5524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-663
SELECT COALESCE ( - 50, CAST( NULL AS SIGNED ) * + 19 + + 43, + 26 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-663
SELECT COALESCE ( - 50, CAST ( NULL AS INTEGER ) * + 19 + + 43, + 26 ) AS col1
----
-50

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

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

query I rowsort
SELECT + 81 + 82
----
163

query I rowsort
SELECT ALL - 64 * - - 26 AS col2
----
-1664

onlyif mysql # aggregate syntax: 
query II rowsort label-667
SELECT ALL + NULLIF ( ( - 25 ), - + 49 ) AS col1, COUNT( * ) + - + 53 * + 12
----
-25
-635

skipif mysql # not compatible
query II rowsort label-667
SELECT ALL + NULLIF ( ( - 25 ), - + 49 ) AS col1, COUNT ( * ) + - + 53 * + 12
----
-25
-635

query I rowsort
SELECT DISTINCT - 55 * 85
----
-4675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-669
SELECT DISTINCT 81 * - CAST( + 91 AS SIGNED ) AS col1
----
-7371

skipif mysql # not compatible
query I rowsort label-669
SELECT DISTINCT 81 * - CAST ( + 91 AS INTEGER ) AS col1
----
-7371

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT CASE + COALESCE ( - CASE - 30 WHEN - + 41 THEN 52 * + 84 + + ( - - 27 ) ELSE NULL END, - 69, - 46 - - MAX( DISTINCT + 63 ) + + + 47 * + + 47 - + 99 ) WHEN + COUNT( * ) + + 56 - - COUNT( * ) * 86 / - 14 THEN 92 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-670
SELECT CASE + COALESCE ( - CASE - 30 WHEN - + 41 THEN 52 * + 84 + + ( - - 27 ) ELSE NULL END, - 69, - 46 - - MAX ( DISTINCT + 63 ) + + + 47 * + + 47 - + 99 ) WHEN + COUNT ( * ) + + 56 - - COUNT ( * ) * 86 / - 14 THEN 92 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT - 29 * + + COUNT( * ) * - + 19 col2
----
551

skipif mysql # not compatible
query I rowsort label-671
SELECT - 29 * + + COUNT ( * ) * - + 19 col2
----
551

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-672
SELECT + COALESCE ( CAST( - 73 AS SIGNED ), + ( + 40 ) ) + - 64 DIV - 66 AS col2, + 19 DIV ( + 83 )
----
-73
0

skipif mysql # not compatible
query II rowsort label-672
SELECT + COALESCE ( CAST ( - 73 AS INTEGER ), + ( + 40 ) ) + - 64 / - 66 AS col2, + 19 / ( + 83 )
----
-73
0

query I rowsort
SELECT + 26 * + 70 AS col2
----
1820

query I rowsort
SELECT + - ( + - 11 ) * 79 + + 29 AS col2
----
898

query I rowsort
SELECT + CASE + + 24 WHEN + 26 THEN - 48 ELSE + 23 END AS col0
----
23

query I rowsort
SELECT DISTINCT - 21 * + 85 + - - 74 AS col0
----
-1711

query I rowsort
SELECT + COALESCE ( - 44, + + 99 + + 39 - + 88 + 3 - - 8 + 59 )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-678
SELECT + CASE SUM( + CASE - 65 WHEN - 8 THEN + 98 WHEN 56 THEN NULL ELSE NULL END ) WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE + 20 * + CAST( - + 19 AS SIGNED ) + - COUNT( * ) + + COUNT( * ) END + + 22 DIV - COALESCE ( - 33, MAX( DISTINCT + 16 ), - + 14 ) AS col2, COUNT( ALL - ( + + 76 ) ) AS col0
----
-380
1

skipif mysql # not compatible
query II rowsort label-678
SELECT + CASE SUM ( + CASE - 65 WHEN - 8 THEN + 98 WHEN 56 THEN NULL ELSE NULL END ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + 20 * + CAST ( - + 19 AS INTEGER ) + - COUNT ( * ) + + COUNT ( * ) END + + 22 / - COALESCE ( - 33, MAX ( DISTINCT + 16 ), - + 14 ) AS col2, COUNT ( ALL - ( + + 76 ) ) AS col0
----
-380
1

onlyif mysql # DIV for integer division: 
query II rowsort label-679
SELECT 59 AS col0, 92 DIV - 41 AS col0
----
59
-2

skipif mysql # not compatible
query II rowsort label-679
SELECT 59 AS col0, 92 / - 41 AS col0
----
59
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-680
SELECT - - COUNT( * ) AS col2, ( - + COUNT( * ) ) * ( COUNT( 43 ) ) + + NULLIF ( - 32, + CAST( NULL AS SIGNED ) ) AS col0
----
1
-33

skipif mysql # not compatible
query II rowsort label-680
SELECT - - COUNT ( * ) AS col2, ( - + COUNT ( * ) ) * ( COUNT ( 43 ) ) + + NULLIF ( - 32, + CAST ( NULL AS INTEGER ) ) AS col0
----
1
-33

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

skipif mysql # not compatible
query I rowsort label-681
SELECT + - CAST ( NULL AS INTEGER ) - 59 AS col2
----
NULL

query I rowsort
SELECT - - 25 * - 74 col1
----
-1850

query I rowsort
SELECT - + 56 - 78
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT ALL + ( + COALESCE ( 85, + 92, - + COUNT( * ) + COALESCE ( + 41, 92 ) ) ) - - MAX( 92 )
----
177

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL + ( + COALESCE ( 85, + 92, - + COUNT ( * ) + COALESCE ( + 41, 92 ) ) ) - - MAX ( 92 )
----
177

query II rowsort
SELECT ALL - 40 - + + 18 AS col1, 38 + - - 24
----
-58
62

query I rowsort
SELECT - 48 * - 41 AS col1
----
1968

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT ALL CASE MIN( + - 38 ) WHEN + - 53 + - ( 9 ) THEN - 30 WHEN 7 - + - 25 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL CASE MIN ( + - 38 ) WHEN + - 53 + - ( 9 ) THEN - 30 WHEN 7 - + - 25 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-688
SELECT DISTINCT - 58 DIV + + 18, 52 col0
----
-3
52

skipif mysql # not compatible
query II rowsort label-688
SELECT DISTINCT - 58 / + + 18, 52 col0
----
-3
52

query I rowsort
SELECT + 94 + - 38 + + 74 col1
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-690
SELECT 77 DIV 49 - + 94 + + + MAX( DISTINCT + 54 ) + + - 84 col1
----
-123

skipif mysql # not compatible
query I rowsort label-690
SELECT 77 / 49 - + 94 + + + MAX ( DISTINCT + 54 ) + + - 84 col1
----
-123

query II rowsort
SELECT ALL - 40 * 16 AS col2, - 12
----
-640
-12

query I rowsort
SELECT - 76 - + 73
----
-149

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

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

query I rowsort
SELECT - 94 * + 75 * - 61 AS col1
----
430050

query I rowsort
SELECT ALL + 68 * - 57 AS col1
----
-3876

query I rowsort
SELECT ALL + 77 * - + ( - 83 )
----
6391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-697
SELECT DISTINCT - CASE + 23 WHEN - + 32 + + + CASE 18 WHEN 14 * + - CAST( 56 AS SIGNED ) + 22 THEN 80 WHEN - - 90 THEN 96 END + 56 THEN - 72 ELSE NULL END + - 15 + 23 * + 41 + + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-697
SELECT DISTINCT - CASE + 23 WHEN - + 32 + + + CASE 18 WHEN 14 * + - CAST ( 56 AS INTEGER ) + 22 THEN 80 WHEN - - 90 THEN 96 END + 56 THEN - 72 ELSE NULL END + - 15 + 23 * + 41 + + 41 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-698
SELECT 5 * 40 + + 26 + + - COUNT( * ) * 94 DIV COALESCE ( 64, + - 55, 33 ) * + CAST( 8 AS SIGNED )
----
218

skipif mysql # not compatible
query I rowsort label-698
SELECT 5 * 40 + + 26 + + - COUNT ( * ) * 94 / COALESCE ( 64, + - 55, 33 ) * + CAST ( 8 AS INTEGER )
----
218

query I rowsort
SELECT 27 * 8 * + 39 AS col2
----
8424

query I rowsort
SELECT ( - + 54 ) col1
----
-54

query I rowsort
SELECT ALL + 42 + 25 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT + ( - 23 ) + - - 53 + - 97 * + MIN( - 96 ) AS col2
----
9342

skipif mysql # not compatible
query I rowsort label-702
SELECT + ( - 23 ) + - - 53 + - 97 * + MIN ( - 96 ) AS col2
----
9342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-703
SELECT - COUNT( * ) * 88 + + - CAST( - COALESCE ( + 68, + 16, - - 59 ) AS SIGNED ) * 79 AS col0, 12 + 20 + COALESCE ( - + 96, + 66 + COUNT( * ), + 63 + + - COUNT( * ) )
----
5284
-64

skipif mysql # not compatible
query II rowsort label-703
SELECT - COUNT ( * ) * 88 + + - CAST ( - COALESCE ( + 68, + 16, - - 59 ) AS INTEGER ) * 79 AS col0, 12 + 20 + COALESCE ( - + 96, + 66 + COUNT ( * ), + 63 + + - COUNT ( * ) )
----
5284
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT ALL - + MIN( - + 81 ) * - + 78
----
-6318

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL - + MIN ( - + 81 ) * - + 78
----
-6318

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT ALL - CASE - - COUNT( * ) WHEN + - 68 THEN - + ( + - 87 ) WHEN - 93 THEN NULL END + ( - 79 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL - CASE - - COUNT ( * ) WHEN + - 68 THEN - + ( + - 87 ) WHEN - 93 THEN NULL END + ( - 79 ) AS col2
----
NULL

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

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

query I rowsort
SELECT 48 * + 65 AS col1
----
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT 26 * - - 10 + + ( 9 ) * ( - 86 ) * + + COUNT( * ) + + + 69 + + COUNT( * ) AS col1
----
-444

skipif mysql # not compatible
query I rowsort label-708
SELECT 26 * - - 10 + + ( 9 ) * ( - 86 ) * + + COUNT ( * ) + + + 69 + + COUNT ( * ) AS col1
----
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT NULLIF ( + - COUNT( * ), - 80 ) + - 12 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-709
SELECT NULLIF ( + - COUNT ( * ), - 80 ) + - 12 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT + COALESCE ( + + COUNT( * ), - + 37, MIN( ALL 45 ) + - 16 )
----
1

skipif mysql # not compatible
query I rowsort label-710
SELECT + COALESCE ( + + COUNT ( * ), - + 37, MIN ( ALL 45 ) + - 16 )
----
1

query I rowsort
SELECT ALL 32 * + - 74 col1
----
-2368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-712
SELECT 35 * + 3 + - 93 - 21 * + 53 + + ( - + 46 ) DIV - - 49 - - COUNT( * )
----
-1100

skipif mysql # not compatible
query I rowsort label-712
SELECT 35 * + 3 + - 93 - 21 * + 53 + + ( - + 46 ) / - - 49 - - COUNT ( * )
----
-1100

query II rowsort
SELECT - 64 AS col1, - 44 AS col2
----
-64
-44

query I rowsort
SELECT 80 * 1 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT ALL 13 * - - SUM( + + 17 )
----
221

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL 13 * - - SUM ( + + 17 )
----
221

query I rowsort
SELECT 86 + - 57 AS col0
----
29

query I rowsort
SELECT ALL 30 * + + 87 col1
----
2610

query I rowsort
SELECT 57 + + 17 AS col1
----
74

query I rowsort
SELECT DISTINCT 65 * - 96 AS col0
----
-6240

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT 5 + ( 66 ) + + - COALESCE ( - 84, - 36, + NULLIF ( - 1, + ( + 89 ) * - COUNT( * ) ) ) * 43 * - 51
----
-184141

skipif mysql # not compatible
query I rowsort label-720
SELECT 5 + ( 66 ) + + - COALESCE ( - 84, - 36, + NULLIF ( - 1, + ( + 89 ) * - COUNT ( * ) ) ) * 43 * - 51
----
-184141

query II rowsort
SELECT 79, ( + + 4 ) * 14 AS col2
----
79
56

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT DISTINCT 29 + - + 56 * + + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-724
SELECT DISTINCT 29 + - + 56 * + + COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-725
SELECT ALL 64 + + COUNT( - + 86 ) AS col1, + 96
----
65
96

skipif mysql # not compatible
query II rowsort label-725
SELECT ALL 64 + + COUNT ( - + 86 ) AS col1, + 96
----
65
96

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT DISTINCT - ( - - 77 ) * + MAX( + + 34 ) AS col1
----
-2618

skipif mysql # not compatible
query I rowsort label-726
SELECT DISTINCT - ( - - 77 ) * + MAX ( + + 34 ) AS col1
----
-2618

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

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL + 10 / - COUNT ( * ) AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-728
SELECT - 84 DIV COUNT( * ) + - + CAST( - 9 AS SIGNED ) * + 4 * 79 + - - 58
----
2818

skipif mysql # not compatible
query I rowsort label-728
SELECT - 84 / COUNT ( * ) + - + CAST ( - 9 AS INTEGER ) * + 4 * 79 + - - 58
----
2818

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

query II rowsort
SELECT + 61, + 95 AS col0
----
61
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-731
SELECT ALL CAST( NULL AS SIGNED ) * + 14 / 6 + NULLIF ( COUNT( * ), - + 68 + 49 + + - 54 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL CAST ( NULL AS INTEGER ) * + 14 / 6 + NULLIF ( COUNT ( * ), - + 68 + 49 + + - 54 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-732
SELECT - + 56 * - + 98 - - 72, 18 DIV + 30 AS col1
----
5560
0

skipif mysql # not compatible
query II rowsort label-732
SELECT - + 56 * - + 98 - - 72, 18 / + 30 AS col1
----
5560
0

query I rowsort
SELECT DISTINCT - + 70 * + 67
----
-4690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-734
SELECT ALL - - NULLIF ( - 8, + 91 * - - CASE 84 WHEN - NULLIF ( 4, - 2 * - SUM( ALL - 8 ) + 55 / 96 * + ( - + 46 ) ) * - + NULLIF ( + - COUNT( * ), + 36 ) * - 7 - + 37 THEN NULL WHEN 31 / + CAST( - - COALESCE ( + + 56, + COALESCE ( - + 62, + + 47, 46 ) ) AS SIGNED ) + + + 44 THEN + ( + 14 ) * + 30 WHEN - + NULLIF ( + + 95, + 46 ) THEN NULL END )
----
-8

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL - - NULLIF ( - 8, + 91 * - - CASE 84 WHEN - NULLIF ( 4, - 2 * - SUM ( ALL - 8 ) + 55 / 96 * + ( - + 46 ) ) * - + NULLIF ( + - COUNT ( * ), + 36 ) * - 7 - + 37 THEN NULL WHEN 31 / + CAST ( - - COALESCE ( + + 56, + COALESCE ( - + 62, + + 47, 46 ) ) AS INTEGER ) + + + 44 THEN + ( + 14 ) * + 30 WHEN - + NULLIF ( + + 95, + 46 ) THEN NULL END )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT ALL - + 45 - - + 51 * - - NULLIF ( - + 75, AVG ( ALL + 91 ) + + + 61 ) * + COUNT( * ) * 50 * + COUNT( * ) * - 4 * - 8
----
-6120045

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL - + 45 - - + 51 * - - NULLIF ( - + 75, AVG ( ALL + 91 ) + + + 61 ) * + COUNT ( * ) * 50 * + COUNT ( * ) * - 4 * - 8
----
-6120045

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-736
SELECT DISTINCT - 42, 64 + + - CAST( NULL AS DECIMAL ) * + 76 AS col1
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-736
SELECT DISTINCT - 42, 64 + + - CAST ( NULL AS REAL ) * + 76 AS col1
----
-42
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - 45, + ( - 62 ) * + 19 + 42 + - 16 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT ALL - MIN( ALL - 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-738
SELECT ALL - MIN ( ALL - 78 ) AS col2
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-739
SELECT + COALESCE ( + 45, - 34 * + COUNT( * ) + - - 28 + + COUNT( * ) + - + 95 * + 76 - + 26 DIV + 92 * 36 ) * + 91 + - - 58 AS col1
----
4153

skipif mysql # not compatible
query I rowsort label-739
SELECT + COALESCE ( + 45, - 34 * + COUNT ( * ) + - - 28 + + COUNT ( * ) + - + 95 * + 76 - + 26 / + 92 * 36 ) * + 91 + - - 58 AS col1
----
4153

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-741
SELECT - - CAST( NULL AS SIGNED ), + CAST( NULL AS DECIMAL ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-741
SELECT - - CAST ( NULL AS INTEGER ), + CAST ( NULL AS REAL ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-742
SELECT - + 26 AS col2, + 76 * 80 + - ( + 93 ) + 76 * SUM( + - ( 39 ) ) - - ( 15 ) * - 42 * + - 37 AS col2
----
-26
26333

skipif mysql # not compatible
query II rowsort label-742
SELECT - + 26 AS col2, + 76 * 80 + - ( + 93 ) + 76 * SUM ( + - ( 39 ) ) - - ( 15 ) * - 42 * + - 37 AS col2
----
-26
26333

query I rowsort
SELECT ALL + 83 - + + 20
----
63

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

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL - COUNT ( * ) / + 50 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-745
SELECT + 62 AS col1, + COUNT( * ) + + 46 DIV - 89 * 34 * - 31
----
62
1

skipif mysql # not compatible
query II rowsort label-745
SELECT + 62 AS col1, + COUNT ( * ) + + 46 / - 89 * 34 * - 31
----
62
1

query I rowsort
SELECT DISTINCT + 92 * - 24 AS col1
----
-2208

query II rowsort
SELECT ALL 24 AS col1, 94
----
24
94

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT DISTINCT + CASE + 74 WHEN 10 - - - MAX( ALL - 65 ) * + 77 THEN - - 67 END * 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-748
SELECT DISTINCT + CASE + 74 WHEN 10 - - - MAX ( ALL - 65 ) * + 77 THEN - - 67 END * 71 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-749
SELECT - COUNT( * ) * + 14 + 27 + CASE - 49 WHEN + - 94 + 51 THEN + - 17 * - 27 + - 0 * - COUNT( * ) + - 74 * 78 * + 66 * - + COUNT( * ) END + ( + - 73 ) + - CAST( NULL AS DECIMAL ) / - + 89 + - ( 34 ) / + + ( MAX( DISTINCT - 48 ) ) + + - 38 + + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-749
SELECT - COUNT ( * ) * + 14 + 27 + CASE - 49 WHEN + - 94 + 51 THEN + - 17 * - 27 + - 0 * - COUNT ( * ) + - 74 * 78 * + 66 * - + COUNT ( * ) END + ( + - 73 ) + - CAST ( NULL AS REAL ) / - + 89 + - ( 34 ) / + + ( MAX ( DISTINCT - 48 ) ) + + - 38 + + + 34
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-750
SELECT SUM( DISTINCT - 49 ) DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-750
SELECT SUM ( DISTINCT - 49 ) / 72
----
0

query I rowsort
SELECT ALL 59 + + 32 AS col0
----
91

query I rowsort
SELECT 85 - - 63
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-753
SELECT DISTINCT + 23 + + ( MIN( ALL - 24 ) ) + - 38 DIV + 44
----
-1

skipif mysql # not compatible
query I rowsort label-753
SELECT DISTINCT + 23 + + ( MIN ( ALL - 24 ) ) + - 38 / + 44
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-754
SELECT DISTINCT 11 + + 42 + + 52 / - CASE 77 WHEN - 1 THEN AVG ( ALL + 38 ) / - CAST( NULL AS SIGNED ) END, + 15 AS col1
----
NULL
15

skipif mysql # not compatible
query II rowsort label-754
SELECT DISTINCT 11 + + 42 + + 52 / - CASE 77 WHEN - 1 THEN AVG ( ALL + 38 ) / - CAST ( NULL AS INTEGER ) END, + 15 AS col1
----
NULL
15

query I rowsort
SELECT + 17 + - 37 AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-756
SELECT DISTINCT COUNT( * ) + CAST( - MIN( - 76 ) AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT COUNT ( * ) + CAST ( - MIN ( - 76 ) AS INTEGER )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT ALL + 51 + + ( COUNT( * ) ) + - 18
----
34

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL + 51 + + ( COUNT ( * ) ) + - 18
----
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-758
SELECT CAST( + - 87 AS SIGNED ) * 64 + - 7 DIV - 5
----
-5567

skipif mysql # not compatible
query I rowsort label-758
SELECT CAST ( + - 87 AS INTEGER ) * 64 + - 7 / - 5
----
-5567

onlyif mysql # DIV for integer division: 
query I rowsort label-759
SELECT 51 DIV - + 59 DIV COALESCE ( + 1, + 37, + 63 * + - 60 ) - - 83 + - 17
----
66

skipif mysql # not compatible
query I rowsort label-759
SELECT 51 / - + 59 / COALESCE ( + 1, + 37, + 63 * + - 60 ) - - 83 + - 17
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT CASE + - 62 WHEN - COUNT( * ) / + 17 * - 64 * + 2 + 20 THEN NULL WHEN + 95 THEN - NULLIF ( 48, - MAX( DISTINCT + 95 ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-760
SELECT CASE + - 62 WHEN - COUNT ( * ) / + 17 * - 64 * + 2 + 20 THEN NULL WHEN + 95 THEN - NULLIF ( 48, - MAX ( DISTINCT + 95 ) ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-761
SELECT + CASE + 81 WHEN - 95 + - 21 / + 74 THEN + - CAST( NULL AS SIGNED ) * - AVG ( 73 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-761
SELECT + CASE + 81 WHEN - 95 + - 21 / + 74 THEN + - CAST ( NULL AS INTEGER ) * - AVG ( 73 ) END
----
NULL

query II rowsort
SELECT NULLIF ( + ( + + 10 ), 40 ), 84 + + 60 col2
----
10
144

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT + CASE COUNT( * ) WHEN - 34 THEN NULL ELSE - 60 * 65 END col1
----
-3900

skipif mysql # not compatible
query I rowsort label-763
SELECT + CASE COUNT ( * ) WHEN - 34 THEN NULL ELSE - 60 * 65 END col1
----
-3900

query I rowsort
SELECT + - 1 * - 72 + - + 58 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT 84 * - 70 + - 23 * - COUNT( ALL + + NULLIF ( + 9, 44 ) ) * - - 54 AS col1
----
-4638

skipif mysql # not compatible
query I rowsort label-765
SELECT 84 * - 70 + - 23 * - COUNT ( ALL + + NULLIF ( + 9, 44 ) ) * - - 54 AS col1
----
-4638

query I rowsort
SELECT + 25 * + 63 - 23
----
1552

query I rowsort
SELECT - ( + 35 ) * 99
----
-3465

query I rowsort
SELECT ALL + 98 * + - 43 * 75 AS col0
----
-316050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-769
SELECT + 34 - - 13 + CAST( NULL AS SIGNED ) + - SUM( + 22 ) * + COUNT( * ) / + - 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-769
SELECT + 34 - - 13 + CAST ( NULL AS INTEGER ) + - SUM ( + 22 ) * + COUNT ( * ) / + - 95 AS col2
----
NULL

query I rowsort
SELECT + 39 * 50
----
1950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-771
SELECT - ( + 38 ) + + - 98 * + 95 * + 22 * - 22 * + + 73 + + COUNT( * ) * 26 * - 7 + - CAST( NULL AS DECIMAL ) * 24 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-771
SELECT - ( + 38 ) + + - 98 * + 95 * + 22 * - 22 * + + 73 + + COUNT ( * ) * 26 * - 7 + - CAST ( NULL AS REAL ) * 24 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 68 * + 71
----
-4828

query I rowsort
SELECT DISTINCT - 96 * + - 41 AS col0
----
3936

query I rowsort
SELECT - + ( - - 83 ) + + + 38 col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-775
SELECT ALL - - 1 * + 95 * + - 90 + + - 12 * - CAST( 35 AS SIGNED ) * + + CAST( NULL AS SIGNED ) + + + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL - - 1 * + 95 * + - 90 + + - 12 * - CAST ( 35 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) + + + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT - SUM( ALL + 55 ) - + 2 + - 14
----
-71

skipif mysql # not compatible
query I rowsort label-776
SELECT - SUM ( ALL + 55 ) - + 2 + - 14
----
-71

query I rowsort
SELECT + - 71 * - + 3 + 13 AS col1
----
226

query I rowsort
SELECT - 11 + - 11 + + 2
----
-20

query I rowsort
SELECT - 77 + + + 9 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT - 89 + - - ( + COUNT( DISTINCT + 81 ) ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-780
SELECT - 89 + - - ( + COUNT ( DISTINCT + 81 ) ) AS col2
----
-88

query II rowsort
SELECT - 68 AS col0, - 17 col2
----
-68
-17

query I rowsort
SELECT + 54 * - 92 AS col1
----
-4968

query I rowsort
SELECT - ( - - 72 ) + - 65
----
-137

query I rowsort
SELECT ALL + COALESCE ( - - 64, + - 75 + - 60, - + 26 ) * - 33 AS col0
----
-2112

query I rowsort
SELECT ALL - 55 + - - 40
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT - 41 + - ( + COUNT( + 43 ) ) + - ( 16 ) - - ( 48 ) * + + 23 + - + 47
----
999

skipif mysql # not compatible
query I rowsort label-786
SELECT - 41 + - ( + COUNT ( + 43 ) ) + - ( 16 ) - - ( 48 ) * + + 23 + - + 47
----
999

query I rowsort
SELECT - 18 + + 40 AS col0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-788
SELECT DISTINCT ( - - NULLIF ( - CAST( - 22 AS SIGNED ), + 70 * + NULLIF ( 12, ( - - 80 ) ) - - 22 * - NULLIF ( - 58, - - ( 49 ) ) ) )
----
22

skipif mysql # not compatible
query I rowsort label-788
SELECT DISTINCT ( - - NULLIF ( - CAST ( - 22 AS INTEGER ), + 70 * + NULLIF ( 12, ( - - 80 ) ) - - 22 * - NULLIF ( - 58, - - ( 49 ) ) ) )
----
22

query I rowsort
SELECT ALL + 10 * 42 * - 12 AS col1
----
-5040

query I rowsort
SELECT + 11 + - 94
----
-83

query I rowsort
SELECT ALL ( 30 ) col2
----
30

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

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

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

skipif mysql # not compatible
query I rowsort label-793
SELECT + 87 + - COUNT ( * ) AS col1
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-794
SELECT DISTINCT 53 AS col0, - 85 - + CAST( NULL AS DECIMAL )
----
53
NULL

skipif mysql # not compatible
query II rowsort label-794
SELECT DISTINCT 53 AS col0, - 85 - + CAST ( NULL AS REAL )
----
53
NULL

query I rowsort
SELECT + 69 + + 55
----
124

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

query I rowsort
SELECT DISTINCT 57 * - - 36 * - - 3 * + - 93
----
-572508

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-798
SELECT + CAST( NULL AS SIGNED ) AS col2, 13 * + - 10 * - - 56 + - 66 - 66 AS col1
----
NULL
-7412

skipif mysql # not compatible
query II rowsort label-798
SELECT + CAST ( NULL AS INTEGER ) AS col2, 13 * + - 10 * - - 56 + - 66 - 66 AS col1
----
NULL
-7412

query I rowsort
SELECT - 70 * 75 - 64
----
-5314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-800
SELECT + MAX( DISTINCT - ( + 64 ) ) * CAST( 21 AS SIGNED ) + - 99 AS col2, COUNT( * ) AS col2
----
-1443
1

skipif mysql # not compatible
query II rowsort label-800
SELECT + MAX ( DISTINCT - ( + 64 ) ) * CAST ( 21 AS INTEGER ) + - 99 AS col2, COUNT ( * ) AS col2
----
-1443
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-801
SELECT ALL CAST( NULL AS SIGNED ) * - 58 + + ( - 45 ) + - + 44 + - - COALESCE ( - 65, + 38 * + 47 * - 70 + - 11 ) + - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL CAST ( NULL AS INTEGER ) * - 58 + + ( - 45 ) + - + 44 + - - COALESCE ( - 65, + 38 * + 47 * - 70 + - 11 ) + - 53 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-802
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2, 85
----
NULL
85

skipif mysql # not compatible
query II rowsort label-802
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2, 85
----
NULL
85

query I rowsort
SELECT DISTINCT 35 * - 33
----
-1155

query I rowsort
SELECT + 79 + - + ( - 50 ) AS col1
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-805
SELECT ALL + - CAST( - - 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL + - CAST ( - - 5 AS INTEGER )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-806
SELECT - 93 * + MIN( + 41 ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-806
SELECT - 93 * + MIN ( + 41 ) + - + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-808
SELECT ALL + CAST( 24 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL + CAST ( 24 AS INTEGER )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT + - SUM( 97 ) * + - MIN( 70 ) AS col2
----
6790

skipif mysql # not compatible
query I rowsort label-809
SELECT + - SUM ( 97 ) * + - MIN ( 70 ) AS col2
----
6790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-810
SELECT ALL 73 * - + NULLIF ( + 14, + - CASE - 19 WHEN - - 6 + + 87 + MIN( DISTINCT + ( 5 ) ) / - - 43 * COALESCE ( 12, + ( - + 76 ) ) + - + 8 + - 83 THEN + COUNT( * ) * 44 - + 26 * + COUNT( * ) WHEN - - MIN( ALL + 73 ) + + COUNT( * ) + 25 * ( - 62 ) * + 82 / + 3 * + 68 * + + 1 * + 85 + - - 31 * - COUNT( DISTINCT + 81 ) + - 6 + + 7 THEN 78 ELSE - CASE - COALESCE ( - 53, + 45, - 63 - - - 25 * + 51 + 6 * - 83 ) WHEN + 19 + COUNT( * ) THEN NULL WHEN + CAST( - MIN( - 59 ) AS SIGNED ) THEN COALESCE ( 18, 74 * 68 ) * 77 ELSE NULL END END ) + + NULLIF ( + 71, - 94 ) AS col0
----
-951

skipif mysql # not compatible
query I rowsort label-810
SELECT ALL 73 * - + NULLIF ( + 14, + - CASE - 19 WHEN - - 6 + + 87 + MIN ( DISTINCT + ( 5 ) ) / - - 43 * COALESCE ( 12, + ( - + 76 ) ) + - + 8 + - 83 THEN + COUNT ( * ) * 44 - + 26 * + COUNT ( * ) WHEN - - MIN ( ALL + 73 ) + + COUNT ( * ) + 25 * ( - 62 ) * + 82 / + 3 * + 68 * + + 1 * + 85 + - - 31 * - COUNT ( DISTINCT + 81 ) + - 6 + + 7 THEN 78 ELSE - CASE - COALESCE ( - 53, + 45, - 63 - - - 25 * + 51 + 6 * - 83 ) WHEN + 19 + COUNT ( * ) THEN NULL WHEN + CAST ( - MIN ( - 59 ) AS INTEGER ) THEN COALESCE ( 18, 74 * 68 ) * 77 ELSE NULL END END ) + + NULLIF ( + 71, - 94 ) AS col0
----
-951

onlyif mysql # DIV for integer division: 
query I rowsort label-811
SELECT + 25 DIV - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-811
SELECT + 25 / - 83 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-812
SELECT + CAST( NULL AS DECIMAL ) * + 16 * - 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-812
SELECT + CAST ( NULL AS REAL ) * + 16 * - 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT ALL + COUNT( + 86 ) * 98 * + MIN( + + 41 ) * - COUNT( DISTINCT - 14 ) + + COUNT( * ) + + 19
----
-3998

skipif mysql # not compatible
query I rowsort label-813
SELECT ALL + COUNT ( + 86 ) * 98 * + MIN ( + + 41 ) * - COUNT ( DISTINCT - 14 ) + + COUNT ( * ) + + 19
----
-3998

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

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

query I rowsort
SELECT DISTINCT + 41 * + 19 AS col1
----
779

query I rowsort
SELECT 95 * + 76
----
7220

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT ALL - 50 + - COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL - 50 + - COUNT ( * )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-818
SELECT CAST( + 91 AS SIGNED ) + + MAX( DISTINCT + 32 ) AS col1
----
123

skipif mysql # not compatible
query I rowsort label-818
SELECT CAST ( + 91 AS INTEGER ) + + MAX ( DISTINCT + 32 ) AS col1
----
123

query I rowsort
SELECT 20 * 37
----
740

query II rowsort
SELECT ALL 34 AS col0, 89 * + + 12
----
34
1068

query II rowsort
SELECT 33, 23 AS col2
----
33
23

query I rowsort
SELECT ALL - ( + - 76 ) - 69 AS col2
----
7

query III rowsort
SELECT - 89, 52 * - - 12 + + 23 AS col1, 34 * + 14 AS col1
----
-89
647
476

query II rowsort
SELECT 41 AS col0, 24
----
41
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-825
SELECT ALL + CASE + 44 WHEN + 21 THEN NULL WHEN + 7 * + COUNT( * ) THEN + - 72 * + + 22 + + + 49 + 47 ELSE + NULLIF ( - COUNT( * ), 26 ) * + CAST( NULL AS SIGNED ) + - 58 - + ( CAST( - 52 AS SIGNED ) ) * - 52 + - COUNT( * ) END - - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL + CASE + 44 WHEN + 21 THEN NULL WHEN + 7 * + COUNT ( * ) THEN + - 72 * + + 22 + + + 49 + 47 ELSE + NULLIF ( - COUNT ( * ), 26 ) * + CAST ( NULL AS INTEGER ) + - 58 - + ( CAST ( - 52 AS INTEGER ) ) * - 52 + - COUNT ( * ) END - - 84 AS col1
----
NULL

query I rowsort
SELECT 10 * + + 62
----
620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-827
SELECT ALL + CAST( + - 65 AS SIGNED ) * 44
----
-2860

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL + CAST ( + - 65 AS INTEGER ) * 44
----
-2860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-828
SELECT ALL 48 AS col2, 21 * + COUNT( ALL 60 ) * CAST( + 46 AS SIGNED ) * + - COUNT( * ) - COUNT( * )
----
48
-967

skipif mysql # not compatible
query II rowsort label-828
SELECT ALL 48 AS col2, 21 * + COUNT ( ALL 60 ) * CAST ( + 46 AS INTEGER ) * + - COUNT ( * ) - COUNT ( * )
----
48
-967

onlyif mysql # DIV for integer division: 
query II rowsort label-829
SELECT - 49, + 17 DIV + 55 AS col1
----
-49
0

skipif mysql # not compatible
query II rowsort label-829
SELECT - 49, + 17 / + 55 AS col1
----
-49
0

query I rowsort
SELECT 29 + + - ( - 52 )
----
81

query I rowsort
SELECT ALL - 88 - 9 AS col2
----
-97

query II rowsort
SELECT 36 * 22 col0, - 58 AS col2
----
792
-58

query I rowsort
SELECT 39 + - - CASE - 53 WHEN + - 57 THEN + 66 END AS col2
----
NULL

query I rowsort
SELECT ALL 16 - - 62 AS col2
----
78

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

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

query I rowsort
SELECT 9 * - 45
----
-405

query II rowsort
SELECT + - 99 AS col0, ( + + 47 )
----
-99
47

onlyif mysql # aggregate syntax: 
query II rowsort label-838
SELECT 4 * 56 + - SUM( - 86 ) + - - COUNT( * ) + - 11 AS col0, 18 AS col1
----
300
18

skipif mysql # not compatible
query II rowsort label-838
SELECT 4 * 56 + - SUM ( - 86 ) + - - COUNT ( * ) + - 11 AS col0, 18 AS col1
----
300
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-839
SELECT ALL - 98 DIV 74 AS col1, COALESCE ( + 51, + - 8 * - NULLIF ( + COUNT( * ), + - 43 ) + - 26 + + + 36 )
----
-1
51

skipif mysql # not compatible
query II rowsort label-839
SELECT ALL - 98 / 74 AS col1, COALESCE ( + 51, + - 8 * - NULLIF ( + COUNT ( * ), + - 43 ) + - 26 + + + 36 )
----
-1
51

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-841
SELECT + 77 DIV - NULLIF ( - + ( COUNT( * ) ), - 43 + - - 57 ) col1
----
77

skipif mysql # not compatible
query I rowsort label-841
SELECT + 77 / - NULLIF ( - + ( COUNT ( * ) ), - 43 + - - 57 ) col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT 78 * CASE - COUNT( ALL + - 34 ) WHEN - - COUNT( DISTINCT + 82 ) + - - 20 THEN + + 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-842
SELECT 78 * CASE - COUNT ( ALL + - 34 ) WHEN - - COUNT ( DISTINCT + 82 ) + - - 20 THEN + + 64 END
----
NULL

query I rowsort
SELECT ALL + 96 + 86 - - + 40
----
222

onlyif mysql # aggregate syntax: 
query II rowsort label-844
SELECT ALL - NULLIF ( - + COUNT( * ), - 13 * - 19 + 87 * - 10 ) col1, - 26 * - 17
----
1
442

skipif mysql # not compatible
query II rowsort label-844
SELECT ALL - NULLIF ( - + COUNT ( * ), - 13 * - 19 + 87 * - 10 ) col1, - 26 * - 17
----
1
442

query I rowsort
SELECT ALL 83 + - 6
----
77

query II rowsort
SELECT - 31 AS col1, 52
----
-31
52

query I rowsort
SELECT ALL 26 + - 4 AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-848
SELECT 66 DIV 72 * COUNT( * ) + - 38
----
-38

skipif mysql # not compatible
query I rowsort label-848
SELECT 66 / 72 * COUNT ( * ) + - 38
----
-38

query II rowsort
SELECT + 15, + 57 AS col0
----
15
57

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT + CASE + - 49 WHEN COUNT( * ) THEN - + 21 + 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-850
SELECT + CASE + - 49 WHEN COUNT ( * ) THEN - + 21 + 41 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-851
SELECT ALL - ( 46 ) + + ( - COUNT ( * ) ) + - 97 / - + 71
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT 27 + 92 - - COUNT( * ) AS col2
----
120

skipif mysql # not compatible
query I rowsort label-852
SELECT 27 + 92 - - COUNT ( * ) AS col2
----
120

query I rowsort
SELECT ALL + 94 + + + ( + + 80 ) col1
----
174

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT NULLIF ( + COUNT( ALL 70 ), - + 22 + + 61 * + 79 / COUNT( * ) ) + 13
----
14

skipif mysql # not compatible
query I rowsort label-855
SELECT NULLIF ( + COUNT ( ALL 70 ), - + 22 + + 61 * + 79 / COUNT ( * ) ) + 13
----
14

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

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL + 18 + - COUNT ( * ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT DISTINCT - ( + + COALESCE ( COUNT( * ), + - 19, - + 39 ) ) * - 60 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-857
SELECT DISTINCT - ( + + COALESCE ( COUNT ( * ), + - 19, - + 39 ) ) * - 60 AS col1
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-858
SELECT DISTINCT 35 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT 35 / - 68
----
0

query II rowsort
SELECT DISTINCT 53 * - + ( + - 75 ) AS col2, 1
----
3975
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-860
SELECT 92 * - + 5 + - - COUNT( * ) DIV + 16
----
-460

skipif mysql # not compatible
query I rowsort label-860
SELECT 92 * - + 5 + - - COUNT ( * ) / + 16
----
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT COUNT( * ) + - 10 + - 40 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-861
SELECT COUNT ( * ) + - 10 + - 40 AS col2
----
-49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT ALL + COUNT( DISTINCT + 9 ) * 37 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL + COUNT ( DISTINCT + 9 ) * 37 AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-864
SELECT CAST( NULL AS SIGNED ) + - 13 + 73 + + 84 * - + COUNT( * ) * 53 / + 87 + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-864
SELECT CAST ( NULL AS INTEGER ) + - 13 + 73 + + 84 * - + COUNT ( * ) * 53 / + 87 + - 13
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-865
SELECT DISTINCT ( + 72 ) * - COUNT( DISTINCT CAST( + 27 AS SIGNED ) ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-865
SELECT DISTINCT ( + 72 ) * - COUNT ( DISTINCT CAST ( + 27 AS INTEGER ) ) col0
----
-72

query I rowsort
SELECT ALL 28 * + 66 * - 66
----
-121968

onlyif mysql # aggregate syntax: 
query II rowsort label-867
SELECT - MAX( + 59 ), ( + + 91 ) col1
----
-59
91

skipif mysql # not compatible
query II rowsort label-867
SELECT - MAX ( + 59 ), ( + + 91 ) col1
----
-59
91

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT COALESCE ( + + 33, - - 10 * + 81, - + 94 ) * COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-868
SELECT COALESCE ( + + 33, - - 10 * + 81, - + 94 ) * COUNT ( * ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT + COALESCE ( - 45, + 28 ) * - COUNT( * ) * + + 83 * + 86
----
321210

skipif mysql # not compatible
query I rowsort label-869
SELECT + COALESCE ( - 45, + 28 ) * - COUNT ( * ) * + + 83 * + 86
----
321210

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT CASE - 64 WHEN + 22 - - MAX( 59 ) + - + 77 + - - 17 / + 64 + + + 58 THEN ( - - 18 ) * + SUM( DISTINCT - + 6 ) * + 44 + + 19 + 30 END + + 91 - - 35 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-870
SELECT CASE - 64 WHEN + 22 - - MAX ( 59 ) + - + 77 + - - 17 / + 64 + + + 58 THEN ( - - 18 ) * + SUM ( DISTINCT - + 6 ) * + 44 + + 19 + 30 END + + 91 - - 35 * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL - 53 + + 8 AS col2
----
-45

query I rowsort
SELECT DISTINCT 61 * 31 + 46
----
1937

query I rowsort
SELECT DISTINCT - 9 * - 64 * 84 col1
----
48384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-874
SELECT DISTINCT 69 * + CAST( NULL AS SIGNED ) * - - 29 + - 59 * + + CASE 0 WHEN 77 THEN 12 * 97 * - ( 57 ) + - 58 + - - 72 WHEN - + SUM( 36 ) THEN + + 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT 69 * + CAST ( NULL AS INTEGER ) * - - 29 + - 59 * + + CASE 0 WHEN 77 THEN 12 * 97 * - ( 57 ) + - 58 + - - 72 WHEN - + SUM ( 36 ) THEN + + 23 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-875
SELECT NULLIF ( COALESCE ( - + CASE 65 WHEN + 99 THEN + 23 - - 6 ELSE + 31 END, + 5 ), - - 55 ) * - 83 * 81 * CASE 3 WHEN + - 4 * - 97 * 76 THEN 4 ELSE NULL END * + - 91 + - + 31 + COUNT( * ) + 74, ( + 37 ) AS col2
----
NULL
37

skipif mysql # not compatible
query II rowsort label-875
SELECT NULLIF ( COALESCE ( - + CASE 65 WHEN + 99 THEN + 23 - - 6 ELSE + 31 END, + 5 ), - - 55 ) * - 83 * 81 * CASE 3 WHEN + - 4 * - 97 * 76 THEN 4 ELSE NULL END * + - 91 + - + 31 + COUNT ( * ) + 74, ( + 37 ) AS col2
----
NULL
37

query II rowsort
SELECT - 17 * 18 AS col1, - 37 - 40
----
-306
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT ALL 89 * - COUNT( * ) + COUNT( * ) + + 29
----
-59

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL 89 * - COUNT ( * ) + COUNT ( * ) + + 29
----
-59

query II rowsort
SELECT DISTINCT + - 66 * ( 39 ) * 68 + 54 + + 23 + + 65 AS col1, 20 AS col1
----
-174890
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-879
SELECT ALL + - COUNT( + 68 ), + 92 + - NULLIF ( 22, + 84 * NULLIF ( + 83, - 86 * + - COUNT( * ) ) + - CAST( + - 5 AS SIGNED ) ) AS col2
----
-1
70

skipif mysql # not compatible
query II rowsort label-879
SELECT ALL + - COUNT ( + 68 ), + 92 + - NULLIF ( 22, + 84 * NULLIF ( + 83, - 86 * + - COUNT ( * ) ) + - CAST ( + - 5 AS INTEGER ) ) AS col2
----
-1
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-880
SELECT + 36 * + + COALESCE ( MIN( + 39 ), 93 DIV + CASE + 55 WHEN + + 21 THEN NULL ELSE 61 - - 8 END + 69 + - 21 + - - 74 + + 88 * + - 19 DIV + ( + 91 ) ) * - 92 + - COUNT( * ) + 93
----
-129076

skipif mysql # not compatible
query I rowsort label-880
SELECT + 36 * + + COALESCE ( MIN ( + 39 ), 93 / + CASE + 55 WHEN + + 21 THEN NULL ELSE 61 - - 8 END + 69 + - 21 + - - 74 + + 88 * + - 19 / + ( + 91 ) ) * - 92 + - COUNT ( * ) + 93
----
-129076

onlyif mysql # aggregate syntax: 
query II rowsort label-881
SELECT COUNT( * ) AS col0, 42
----
1
42

skipif mysql # not compatible
query II rowsort label-881
SELECT COUNT ( * ) AS col0, 42
----
1
42

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

skipif mysql # not compatible
query I rowsort label-882
SELECT + MAX ( - 67 )
----
-67

query I rowsort
SELECT ALL + ( - 64 ) col0
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-884
SELECT MAX( - + ( + 91 ) ) AS col1, - COUNT( * ) * - + 51
----
-91
51

skipif mysql # not compatible
query II rowsort label-884
SELECT MAX ( - + ( + 91 ) ) AS col1, - COUNT ( * ) * - + 51
----
-91
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-885
SELECT ALL 94 - NULLIF ( + 6, - 85 / 39 ) + 15 + + 1 + + + 49 + 46 * - + CAST( NULL AS SIGNED ) - - ( - 53 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-885
SELECT ALL 94 - NULLIF ( + 6, - 85 / 39 ) + 15 + + 1 + + + 49 + 46 * - + CAST ( NULL AS INTEGER ) - - ( - 53 ) AS col2
----
NULL

query I rowsort
SELECT - 0 * - 15
----
0

query II rowsort
SELECT + 76, - 7 AS col2
----
76
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT COUNT( - 23 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-888
SELECT COUNT ( - 23 ) AS col0
----
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-890
SELECT ALL 99 DIV 85 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL 99 / 85 AS col1
----
1

query I rowsort
SELECT + 5 * - + 57 col0
----
-285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-892
SELECT - CASE 39 WHEN ( + + MAX( DISTINCT - 99 ) ) * + NULLIF ( - 51, 64 * + COUNT( - 77 ) - + 22 + - 13 - - CASE - - NULLIF ( 99, - - 10 ) WHEN 82 THEN NULL WHEN - + 16 THEN - CAST( NULL AS SIGNED ) ELSE MIN( ALL + - 6 ) + + 37 END * 11 ) THEN 67 * + 18 + + CAST( NULL AS SIGNED ) ELSE CASE + 6 WHEN - 66 / - + COUNT( * ) * - 68 * + - 13 THEN - - COUNT( * ) ELSE + 1 END END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-892
SELECT - CASE 39 WHEN ( + + MAX ( DISTINCT - 99 ) ) * + NULLIF ( - 51, 64 * + COUNT ( - 77 ) - + 22 + - 13 - - CASE - - NULLIF ( 99, - - 10 ) WHEN 82 THEN NULL WHEN - + 16 THEN - CAST ( NULL AS INTEGER ) ELSE MIN ( ALL + - 6 ) + + 37 END * 11 ) THEN 67 * + 18 + + CAST ( NULL AS INTEGER ) ELSE CASE + 6 WHEN - 66 / - + COUNT ( * ) * - 68 * + - 13 THEN - - COUNT ( * ) ELSE + 1 END END AS col2
----
-1

query II rowsort
SELECT + 93 + - 87 * 39 AS col0, 95 - - - 86 * 35
----
-3300
-2915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-894
SELECT + 69 + - + COUNT( * ) DIV - 38 AS col1, - CAST( NULL AS SIGNED )
----
69
NULL

skipif mysql # not compatible
query II rowsort label-894
SELECT + 69 + - + COUNT ( * ) / - 38 AS col1, - CAST ( NULL AS INTEGER )
----
69
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT + SUM( DISTINCT - 73 ) * - ( - - 87 ) - - - 70 + + 82 * - 4 AS col0
----
5953

skipif mysql # not compatible
query I rowsort label-895
SELECT + SUM ( DISTINCT - 73 ) * - ( - - 87 ) - - - 70 + + 82 * - 4 AS col0
----
5953

query I rowsort
SELECT ALL 81 * 48 * + 6
----
23328

query I rowsort
SELECT DISTINCT 98 + - 76 AS col2
----
22

query I rowsort
SELECT ALL 15 * 29 AS col0
----
435

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT + 89 + - + 96 * COUNT( * ) * + 32
----
-2983

skipif mysql # not compatible
query I rowsort label-899
SELECT + 89 + - + 96 * COUNT ( * ) * + 32
----
-2983

query I rowsort
SELECT ALL 59 * + + 56 * 58 AS col0
----
191632

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

skipif mysql # not compatible
query I rowsort label-901
SELECT + - 60 / - 72 / + + CAST ( + COUNT ( * ) AS INTEGER ) - COUNT ( * )
----
-1

query I rowsort
SELECT + 3 + - 52
----
-49

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

query I rowsort
SELECT ALL 86 + - - 69 AS col2
----
155

query I rowsort
SELECT + + 41 + - ( 89 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT - + 35 - - + ( COUNT( - - 84 ) ) * - + ( + + COUNT( ALL - 15 ) ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-906
SELECT - + 35 - - + ( COUNT ( - - 84 ) ) * - + ( + + COUNT ( ALL - 15 ) ) AS col1
----
-36

query II rowsort
SELECT + 5 * + NULLIF ( - 3, + + 95 + - + 44 * + 12 * - 21 * + - 58 ) AS col1, + 4 AS col0
----
-15
4

query I rowsort
SELECT ALL - 64 * - + 99 + + 39
----
6375

onlyif mysql # DIV for integer division: 
query I rowsort label-909
SELECT - - 58 DIV + - 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-909
SELECT - - 58 / + - 62 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-910
SELECT + - 33 DIV - 23 + 17 AS col0, 15 AS col0
----
18
15

skipif mysql # not compatible
query II rowsort label-910
SELECT + - 33 / - 23 + 17 AS col0, 15 AS col0
----
18
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-911
SELECT DISTINCT + + 22 * + - 97 - CAST( - - 57 AS SIGNED )
----
-2191

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT + + 22 * + - 97 - CAST ( - - 57 AS INTEGER )
----
-2191

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT ALL + 14 * - 43 + + - 39 * - - 82 * - - 83 + - COUNT( * )
----
-266037

skipif mysql # not compatible
query I rowsort label-912
SELECT ALL + 14 * - 43 + + - 39 * - - 82 * - - 83 + - COUNT ( * )
----
-266037

onlyif mysql # aggregate syntax: 
query II rowsort label-913
SELECT 67 AS col0, + 4 * - 65 + + SUM( DISTINCT 19 ) AS col1
----
67
-241

skipif mysql # not compatible
query II rowsort label-913
SELECT 67 AS col0, + 4 * - 65 + + SUM ( DISTINCT 19 ) AS col1
----
67
-241

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-914
SELECT DISTINCT 12 * + - MIN( DISTINCT CASE + CAST( NULL AS SIGNED ) WHEN + NULLIF ( - 88, 54 ) + + 51 THEN NULL ELSE + 48 * - 70 * + - 87 * - COALESCE ( 49, 29 DIV - 53 ) END ) - + 59 * + 13
----
171883393

skipif mysql # not compatible
query I rowsort label-914
SELECT DISTINCT 12 * + - MIN ( DISTINCT CASE + CAST ( NULL AS INTEGER ) WHEN + NULLIF ( - 88, 54 ) + + 51 THEN NULL ELSE + 48 * - 70 * + - 87 * - COALESCE ( 49, 29 / - 53 ) END ) - + 59 * + 13
----
171883393

query I rowsort
SELECT 91 * - 31 + + 85
----
-2736

query II rowsort
SELECT ( + 61 ), 85 + - 95 AS col1
----
61
-10

query I rowsort
SELECT DISTINCT - 45 * - 28 - + - 88
----
1348

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT - ( - COALESCE ( + + COUNT( * ), - 36 ) ) + - ( - 15 ) - + COUNT( ALL + 2 ) + - 54 + - 52 * 71
----
-3731

skipif mysql # not compatible
query I rowsort label-918
SELECT - ( - COALESCE ( + + COUNT ( * ), - 36 ) ) + - ( - 15 ) - + COUNT ( ALL + 2 ) + - 54 + - 52 * 71
----
-3731

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT NULLIF ( - - 84, - 95 + - - NULLIF ( - 52, COUNT( * ) * + 13 / 62 / 78 + - + 12 * - 7 ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-919
SELECT NULLIF ( - - 84, - 95 + - - NULLIF ( - 52, COUNT ( * ) * + 13 / 62 / 78 + - + 12 * - 7 ) ) AS col0
----
84

query I rowsort
SELECT - 77 + - + 38 col0
----
-115

onlyif mysql # DIV for integer division: 
query I rowsort label-921
SELECT - 35 DIV - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-921
SELECT - 35 / - 98 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-922
SELECT ALL + COUNT( * ) DIV 64 * + 54 * + 49
----
0

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL + COUNT ( * ) / 64 * + 54 * + 49
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-923
SELECT DISTINCT + ( + - 98 ) DIV - + 55 + + 13
----
14

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT + ( + - 98 ) / - + 55 + + 13
----
14

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-926
SELECT + 81 * 33 DIV 82 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-926
SELECT + 81 * 33 / 82 AS col1
----
32

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

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

query I rowsort
SELECT - 10 * 44 AS col1
----
-440

query I rowsort
SELECT + ( 93 ) + - 54 AS col1
----
39

query I rowsort
SELECT DISTINCT 40 * 90 AS col1
----
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT - 45 * + COUNT( * ) * - 9
----
405

skipif mysql # not compatible
query I rowsort label-931
SELECT - 45 * + COUNT ( * ) * - 9
----
405

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT + COUNT( * ) * - - 67 + - 4 * 12 * - + 6 AS col1
----
355

skipif mysql # not compatible
query I rowsort label-932
SELECT + COUNT ( * ) * - - 67 + - 4 * 12 * - + 6 AS col1
----
355

query II rowsort
SELECT ALL 33 * + 29 + + ( - 30 ) AS col0, 97
----
927
97

query I rowsort
SELECT ALL 33 + - + 3 AS col0
----
30

query I rowsort
SELECT + 39 + + 82 col2
----
121

query I rowsort
SELECT DISTINCT + - 52 * 91
----
-4732

query I rowsort
SELECT - NULLIF ( - 44, + - 53 * - 77 ) AS col2
----
44

query I rowsort
SELECT - 49 + 75 AS col0
----
26

query I rowsort
SELECT + 23 + + ( 95 ) col2
----
118

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

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT DISTINCT - 26 * - - 76 * + 22 * + COUNT( * ) AS col2
----
-43472

skipif mysql # not compatible
query I rowsort label-941
SELECT DISTINCT - 26 * - - 76 * + 22 * + COUNT ( * ) AS col2
----
-43472

query I rowsort
SELECT + 50 + 58 AS col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT COUNT( * ) * - 16 + + 91 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-943
SELECT COUNT ( * ) * - 16 + + 91 AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-944
SELECT ALL + 98 DIV COUNT( * ) * 39 col0
----
3822

skipif mysql # not compatible
query I rowsort label-944
SELECT ALL + 98 / COUNT ( * ) * 39 col0
----
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT + 3 * CASE + COUNT( * ) WHEN + ( - + 15 ) THEN + - 18 - + 15 WHEN + - 79 + - COUNT( * ) THEN NULL END + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-945
SELECT + 3 * CASE + COUNT ( * ) WHEN + ( - + 15 ) THEN + - 18 - + 15 WHEN + - 79 + - COUNT ( * ) THEN NULL END + 28 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-946
SELECT + NULLIF ( - 56, + 12 ) + - + CAST( NULL AS SIGNED ) * - - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-946
SELECT + NULLIF ( - 56, + 12 ) + - + CAST ( NULL AS INTEGER ) * - - 45 AS col1
----
NULL

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

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

query II rowsort
SELECT ALL - 74 * - ( - 22 ) - - COALESCE ( - 57, - - 24 * - 55 ) AS col1, - 36 * + - 83
----
-1685
2988

query I rowsort
SELECT DISTINCT - - NULLIF ( - - CASE + 56 WHEN - 26 / - COALESCE ( + 78, 73 ) THEN - 95 ELSE + - 80 END, + AVG ( 60 ) + - 4 ) AS col1
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-950
SELECT - 30 DIV 32 + + 73
----
73

skipif mysql # not compatible
query I rowsort label-950
SELECT - 30 / 32 + + 73
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-951
SELECT DISTINCT - 41 - - CASE - + 72 WHEN 39 THEN + NULLIF ( + + ( COUNT( * ) ), + + COUNT( * ) + + COUNT( * ) ) + 41 - - - COALESCE ( 0, - 82 ) + - COUNT( * ) + + - 58 * - CAST( NULL AS SIGNED ) + 97 / - NULLIF ( 94, + + 29 / - + 50 + - 95 ) WHEN ( 82 ) THEN - 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-951
SELECT DISTINCT - 41 - - CASE - + 72 WHEN 39 THEN + NULLIF ( + + ( COUNT ( * ) ), + + COUNT ( * ) + + COUNT ( * ) ) + 41 - - - COALESCE ( 0, - 82 ) + - COUNT ( * ) + + - 58 * - CAST ( NULL AS INTEGER ) + 97 / - NULLIF ( 94, + + 29 / - + 50 + - 95 ) WHEN ( 82 ) THEN - 62 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-952
SELECT COALESCE ( - 75, + MIN( DISTINCT - - 79 ) - 80 ) * - - 84 + 78 + + - 29 + COUNT( - 60 ) * 83 AS col2, + ( - - 69 ) * - - 9 col0
----
-6168
621

skipif mysql # not compatible
query II rowsort label-952
SELECT COALESCE ( - 75, + MIN ( DISTINCT - - 79 ) - 80 ) * - - 84 + 78 + + - 29 + COUNT ( - 60 ) * 83 AS col2, + ( - - 69 ) * - - 9 col0
----
-6168
621

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT ALL - SUM( DISTINCT 22 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL - SUM ( DISTINCT 22 ) AS col2
----
-22

query I rowsort
SELECT DISTINCT + 42 * - 6 * - 2
----
504

query I rowsort
SELECT ALL + 33 * - 23
----
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT ALL - MAX( DISTINCT 41 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL - MAX ( DISTINCT 41 ) AS col2
----
-41

query I rowsort
SELECT DISTINCT + 15 * ( + 40 )
----
600

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

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

query I rowsort
SELECT ALL + 25 * - NULLIF ( + + 80, + NULLIF ( - 46, - 25 * + 91 + + + ( - 40 ) - + + 84 * 68 + + 12 ) )
----
-2000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-960
SELECT DISTINCT - 52 + - - ( COUNT( ALL + - 30 ) ) * 63 DIV - + ( - + NULLIF ( + 25, + + CASE + + 55 WHEN + 60 * + - 72 + - 82 THEN NULL ELSE - + 55 + + 13 END ) ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT - 52 + - - ( COUNT ( ALL + - 30 ) ) * 63 / - + ( - + NULLIF ( + 25, + + CASE + + 55 WHEN + 60 * + - 72 + - 82 THEN NULL ELSE - + 55 + + 13 END ) ) AS col1
----
-50

query I rowsort
SELECT ALL + 71 * + + 84
----
5964

query I rowsort
SELECT DISTINCT - 80 + + + 18
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-963
SELECT ALL - 71 DIV + ( 72 )
----
0

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL - 71 / + ( 72 )
----
0

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

skipif mysql # not compatible
query I rowsort label-964
SELECT 64 / - COUNT ( * ) * COUNT ( * ) AS col0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-965
SELECT ALL - 98 + + ( - - CAST( NULL AS SIGNED ) ) + - ( - + 84 ) / 64 col0, 83 AS col1
----
NULL
83

skipif mysql # not compatible
query II rowsort label-965
SELECT ALL - 98 + + ( - - CAST ( NULL AS INTEGER ) ) + - ( - + 84 ) / 64 col0, 83 AS col1
----
NULL
83

query I rowsort
SELECT DISTINCT 45 + 32 AS col2
----
77

query I rowsort
SELECT DISTINCT - 81 + 95 * 29 AS col0
----
2674

query I rowsort
SELECT DISTINCT + 8 * 82
----
656

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT 64 + + 11 * + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-969
SELECT 64 + + 11 * + COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT 70 * + COALESCE ( COUNT( * ), 50 + - 81 )
----
70

skipif mysql # not compatible
query I rowsort label-970
SELECT 70 * + COALESCE ( COUNT ( * ), 50 + - 81 )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-971
SELECT DISTINCT + COUNT( - CAST( + 81 AS DECIMAL ) ) * CAST( - 23 * - 40 AS SIGNED ) AS col2
----
920

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT + COUNT ( - CAST ( + 81 AS REAL ) ) * CAST ( - 23 * - 40 AS INTEGER ) AS col2
----
920

query I rowsort
SELECT ALL 44 - 39
----
5

query I rowsort
SELECT 79 + + 32 * 51
----
1711

query I rowsort
SELECT DISTINCT + 9 * + 69
----
621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-975
SELECT MAX( 99 ) + - CAST( - COUNT( * ) AS SIGNED )
----
100

skipif mysql # not compatible
query I rowsort label-975
SELECT MAX ( 99 ) + - CAST ( - COUNT ( * ) AS INTEGER )
----
100

query I rowsort
SELECT DISTINCT + 91 * 66
----
6006

query I rowsort
SELECT ALL - 36 - - 70 * 22 AS col1
----
1504

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT COUNT( 42 ) + - 96
----
-95

skipif mysql # not compatible
query I rowsort label-978
SELECT COUNT ( 42 ) + - 96
----
-95

query I rowsort
SELECT ( 16 ) * 52
----
832

query I rowsort
SELECT 88 + 36 * - 62
----
-2144

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-981
SELECT COUNT( * ) - NULLIF ( + CAST( NULL AS DECIMAL ), + 66 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-981
SELECT COUNT ( * ) - NULLIF ( + CAST ( NULL AS REAL ), + 66 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-982
SELECT DISTINCT 36 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-982
SELECT DISTINCT 36 / 45
----
0

query I rowsort
SELECT 33 + 41 * 22
----
935

onlyif mysql # DIV for integer division: 
query I rowsort label-984
SELECT 4 DIV - 19 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-984
SELECT 4 / - 19 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT 40 * + SUM( 24 ) AS col0
----
960

skipif mysql # not compatible
query I rowsort label-985
SELECT 40 * + SUM ( 24 ) AS col0
----
960

query I rowsort
SELECT ALL 71 * NULLIF ( 13 * - 18, - 10 ) AS col2
----
-16614

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-987
SELECT 11 - + 38 DIV COUNT( * ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-987
SELECT 11 - + 38 / COUNT ( * ) AS col1
----
-27

query I rowsort
SELECT DISTINCT 89 * 37
----
3293

onlyif mysql # DIV for integer division: 
query I rowsort label-989
SELECT DISTINCT - 47 DIV - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-989
SELECT DISTINCT - 47 / - 93 AS col0
----
0

query I rowsort
SELECT 23 + - 82
----
-59

query I rowsort
SELECT 30 * 69
----
2070

query I rowsort
SELECT ALL 35 + + ( 44 )
----
79

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

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

query I rowsort
SELECT ALL + 29 + + 2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT ( COUNT( * ) ) - - COALESCE ( + 25 + - 76, 69 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-995
SELECT ( COUNT ( * ) ) - - COALESCE ( + 25 + - 76, 69 ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT DISTINCT ( 87 ) * - COUNT( * ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT ( 87 ) * - COUNT ( * ) AS col1
----
-87

query I rowsort
SELECT ALL 88 + + 40 AS col1
----
128

query I rowsort
SELECT 66 * + 5 + 29 AS col0
----
359

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT MAX( DISTINCT - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-999
SELECT MAX ( DISTINCT - 72 )
----
-72

query I rowsort
SELECT ( - 87 ) + + 10
----
-77

query I rowsort
SELECT ALL 81 + + 27 AS col0
----
108

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1002
SELECT - CAST( 49 AS SIGNED ) DIV + 89 + + ( 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-1002
SELECT - CAST ( 49 AS INTEGER ) / + 89 + + ( 19 ) AS col0
----
19

query I rowsort
SELECT ALL 58 + - 2 * 56
----
-54

query I rowsort
SELECT DISTINCT 16 + 86 AS col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT DISTINCT COUNT( DISTINCT COALESCE ( 75, - NULLIF ( 86, - 98 ) * - 37 - 74, 99 ) ) + + 9
----
10

skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT COUNT ( DISTINCT COALESCE ( 75, - NULLIF ( 86, - 98 ) * - 37 - 74, 99 ) ) + + 9
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1006
SELECT ALL + 94 * CAST( COUNT( * ) * 89 AS SIGNED ) AS col1
----
8366

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL + 94 * CAST ( COUNT ( * ) * 89 AS INTEGER ) AS col1
----
8366

query I rowsort
SELECT + 13 * 89 + 74 * 9 AS col2
----
1823

query I rowsort
SELECT ALL 22 + 83
----
105

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

skipif mysql # not compatible
query I rowsort label-1009
SELECT 74 + + 86 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT 45 * SUM( + 10 * 27 )
----
12150

skipif mysql # not compatible
query I rowsort label-1010
SELECT 45 * SUM ( + 10 * 27 )
----
12150

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT + MAX( ALL - ( + 15 ) ) + NULLIF ( 86 - + 57, + COUNT( * ) * 38 ) col0
----
14

skipif mysql # not compatible
query I rowsort label-1011
SELECT + MAX ( ALL - ( + 15 ) ) + NULLIF ( 86 - + 57, + COUNT ( * ) * 38 ) col0
----
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT ALL - COUNT( * ) - - 33 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL - COUNT ( * ) - - 33 AS col1
----
32

query I rowsort
SELECT - 14 * 32
----
-448

onlyif mysql # DIV for integer division: 
query I rowsort label-1015
SELECT - + 73 + 86 DIV - 45 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-1015
SELECT - + 73 + 86 / - 45 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT - + 62 * + MIN( ALL - 1 )
----
62

skipif mysql # not compatible
query I rowsort label-1016
SELECT - + 62 * + MIN ( ALL - 1 )
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-1017
SELECT ALL - + 60 DIV - 7 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL - + 60 / - 7 AS col1
----
8

query I rowsort
SELECT - 81 * + 80 AS col2
----
-6480

onlyif mysql # DIV for integer division: 
query I rowsort label-1019
SELECT DISTINCT - - 34 DIV + 9
----
3

skipif mysql # not compatible
query I rowsort label-1019
SELECT DISTINCT - - 34 / + 9
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1020
SELECT DISTINCT - NULLIF ( + MAX( 23 ), ( COUNT( * ) ) + 9 ) DIV - 94 col1
----
0

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT - NULLIF ( + MAX ( 23 ), ( COUNT ( * ) ) + 9 ) / - 94 col1
----
0

query I rowsort
SELECT DISTINCT NULLIF ( 22, + 83 ) AS col2
----
22

query I rowsort
SELECT - - 35 * + 88 col1
----
3080

onlyif mysql # DIV for integer division: 
query I rowsort label-1023
SELECT DISTINCT + - 55 * COALESCE ( - 78 + - 80 * - ( 31 DIV 95 + + 72 ), - 25 * - 71 - 61 )
----
-312510

skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT + - 55 * COALESCE ( - 78 + - 80 * - ( 31 / 95 + + 72 ), - 25 * - 71 - 61 )
----
-312510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1024
SELECT - + CAST( 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-1024
SELECT - + CAST ( 46 AS INTEGER )
----
-46

query I rowsort
SELECT ALL - 91 * 66
----
-6006

query I rowsort
SELECT ALL 27 * + 69
----
1863

query I rowsort
SELECT - 30 + + 26 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL 72 * - + CASE - 94 WHEN NULLIF ( + 30, + ( 38 ) - NULLIF ( 91 + + COUNT( ALL + 75 ), 11 * 70 - - 51 ) ) THEN 5 WHEN - 83 / - COUNT( * ) THEN NULL END * + NULLIF ( SUM( ALL 40 ), 53 * + CASE AVG ( DISTINCT 38 ) WHEN 7 * 70 + + 15 THEN NULLIF ( 44, - COUNT( * ) ) END ) + - AVG ( 2 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL 72 * - + CASE - 94 WHEN NULLIF ( + 30, + ( 38 ) - NULLIF ( 91 + + COUNT ( ALL + 75 ), 11 * 70 - - 51 ) ) THEN 5 WHEN - 83 / - COUNT ( * ) THEN NULL END * + NULLIF ( SUM ( ALL 40 ), 53 * + CASE AVG ( DISTINCT 38 ) WHEN 7 * 70 + + 15 THEN NULLIF ( 44, - COUNT ( * ) ) END ) + - AVG ( 2 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT - COUNT( * ) * ( COUNT( * ) ) - - 78
----
77

skipif mysql # not compatible
query I rowsort label-1029
SELECT - COUNT ( * ) * ( COUNT ( * ) ) - - 78
----
77

query I rowsort
SELECT DISTINCT - 4 * - 54 + - 34
----
182

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT + COUNT( * ) * - COUNT( * ) + - 93 * + COUNT( * ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-1032
SELECT + COUNT ( * ) * - COUNT ( * ) + - 93 * + COUNT ( * ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT + MIN( DISTINCT + - NULLIF ( 6, 59 - 68 ) ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-1033
SELECT + MIN ( DISTINCT + - NULLIF ( 6, 59 - 68 ) ) AS col2
----
-6

query I rowsort
SELECT + 23 * 48 AS col2
----
1104

query I rowsort
SELECT ALL 34 * - 91 * - 25 AS col1
----
77350

onlyif mysql # DIV for integer division: 
query I rowsort label-1036
SELECT + 40 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-1036
SELECT + 40 / - 96
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1037
SELECT ALL - NULLIF ( - + 33, 88 - - 5 ) * + CASE 37 WHEN NULLIF ( 83, - 60 * - COUNT( * ) ) DIV - 55 THEN CAST( 67 AS SIGNED ) ELSE 55 + 58 END + - 88 DIV + 3 AS col0
----
3700

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL - NULLIF ( - + 33, 88 - - 5 ) * + CASE 37 WHEN NULLIF ( 83, - 60 * - COUNT ( * ) ) / - 55 THEN CAST ( 67 AS INTEGER ) ELSE 55 + 58 END + - 88 / + 3 AS col0
----
3700

query I rowsort
SELECT ALL 10 * - 43 * - 7 AS col0
----
3010

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT ALL 65 * MIN( DISTINCT + 51 ) + 20 AS col1
----
3335

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL 65 * MIN ( DISTINCT + 51 ) + 20 AS col1
----
3335

query I rowsort
SELECT DISTINCT 39 * + 70
----
2730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1041
SELECT - 4 DIV COUNT( * ) * - 61
----
244

skipif mysql # not compatible
query I rowsort label-1041
SELECT - 4 / COUNT ( * ) * - 61
----
244

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

query I rowsort
SELECT ALL 74 * - 75 AS col2
----
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT + 86 * - COALESCE ( 7, - SUM( + ( ( - 49 ) ) ), ( MIN( ALL + CASE + 28 WHEN + 99 THEN - 61 * + 69 ELSE NULL END ) ) + COUNT( * ) * ( + 69 ) )
----
-602

skipif mysql # not compatible
query I rowsort label-1044
SELECT + 86 * - COALESCE ( 7, - SUM ( + ( ( - 49 ) ) ), ( MIN ( ALL + CASE + 28 WHEN + 99 THEN - 61 * + 69 ELSE NULL END ) ) + COUNT ( * ) * ( + 69 ) )
----
-602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1045
SELECT CASE 83 WHEN - 41 + - 98 THEN + 60 + 65 / + CAST( NULL AS SIGNED ) WHEN 53 + + 31 THEN + CASE 69 WHEN + 18 / + 34 + + 39 * + 50 THEN NULL ELSE 98 + + MAX( - 8 - 89 ) END * + COUNT( * ) WHEN 48 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1045
SELECT CASE 83 WHEN - 41 + - 98 THEN + 60 + 65 / + CAST ( NULL AS INTEGER ) WHEN 53 + + 31 THEN + CASE 69 WHEN + 18 / + 34 + + 39 * + 50 THEN NULL ELSE 98 + + MAX ( - 8 - 89 ) END * + COUNT ( * ) WHEN 48 THEN NULL END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT + ( COUNT( + NULLIF ( 56, 53 * + 78 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1047
SELECT + ( COUNT ( + NULLIF ( 56, 53 * + 78 ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT 91 * + CASE 76 WHEN 63 THEN NULL WHEN + SUM( + 24 ) + 22 THEN COUNT( * ) * 56 - 49 / - 90 END * - 72 - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1048
SELECT 91 * + CASE 76 WHEN 63 THEN NULL WHEN + SUM ( + 24 ) + 22 THEN COUNT ( * ) * 56 - 49 / - 90 END * - 72 - 22 AS col0
----
NULL

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

query I rowsort
SELECT ALL - 59 * - 74 * + 97 - 61
----
423441

query I rowsort
SELECT ALL - + 32 * - + 80 AS col0
----
2560

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

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

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

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL + COUNT ( * ) / - 67 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT + + MIN( ALL + ( - 73 ) ) + ( 22 )
----
-51

skipif mysql # not compatible
query I rowsort label-1054
SELECT + + MIN ( ALL + ( - 73 ) ) + ( 22 )
----
-51

query I rowsort
SELECT - + 76 - COALESCE ( - 24, 94 ) col0
----
-52

query I rowsort
SELECT - 15 * - + 86 AS col0
----
1290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1057
SELECT DISTINCT - CAST( + + 92 AS SIGNED ) * - 51 AS col0
----
4692

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT - CAST ( + + 92 AS INTEGER ) * - 51 AS col0
----
4692

query I rowsort
SELECT ALL 33 + - 99 AS col2
----
-66

query I rowsort
SELECT + 72 + - + 77 AS col2
----
-5

query I rowsort
SELECT - - 98 * + 5
----
490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1061
SELECT DISTINCT - MAX( DISTINCT 39 ) + - 61 * + CASE 2 WHEN + CASE + 83 WHEN ( COUNT( * ) ) THEN NULL WHEN + 36 - + COUNT( * ) THEN 53 END THEN NULLIF ( COUNT( * ), - 62 / 47 ) * + CAST( + 77 + NULLIF ( - 76, 39 ) AS SIGNED ) WHEN + 32 + - COUNT( DISTINCT 66 - + 9 * - 99 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT - MAX ( DISTINCT 39 ) + - 61 * + CASE 2 WHEN + CASE + 83 WHEN ( COUNT ( * ) ) THEN NULL WHEN + 36 - + COUNT ( * ) THEN 53 END THEN NULLIF ( COUNT ( * ), - 62 / 47 ) * + CAST ( + 77 + NULLIF ( - 76, 39 ) AS INTEGER ) WHEN + 32 + - COUNT ( DISTINCT 66 - + 9 * - 99 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT ALL COUNT( ALL 15 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL COUNT ( ALL 15 ) AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT ALL + 74 * - + COALESCE ( + 1, + COUNT( * ) * COUNT( * ), 82 ) * 25 AS col2
----
-1850

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL + 74 * - + COALESCE ( + 1, + COUNT ( * ) * COUNT ( * ), 82 ) * 25 AS col2
----
-1850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1065
SELECT + 18 + - + ( + CAST( + COUNT( * ) AS SIGNED ) )
----
17

skipif mysql # not compatible
query I rowsort label-1065
SELECT + 18 + - + ( + CAST ( + COUNT ( * ) AS INTEGER ) )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT + 94 * + COUNT( * ) * + 21
----
1974

skipif mysql # not compatible
query I rowsort label-1066
SELECT + 94 * + COUNT ( * ) * + 21
----
1974

query I rowsort
SELECT - 0 * - 29 AS col0
----
0

query I rowsort
SELECT DISTINCT - 29 + 36
----
7

query I rowsort
SELECT ALL + 66 + - - 44 + + 59
----
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1070
SELECT ALL 5 DIV - - COUNT( * ) + + 28 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL 5 / - - COUNT ( * ) + + 28 AS col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-1071
SELECT + 26, ( COUNT( * ) ) * 5 + 11 AS col2
----
26
16

skipif mysql # not compatible
query II rowsort label-1071
SELECT + 26, ( COUNT ( * ) ) * 5 + 11 AS col2
----
26
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1072
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - - 89 + - - 71 - - 21 * 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1072
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - - 89 + - - 71 - - 21 * 62 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 93 * + - 43 AS col0
----
3999

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1074
SELECT DISTINCT CAST( NULL AS SIGNED ) / COUNT( * ) + + 89 + CASE 41 WHEN COUNT( * ) * 22 THEN - NULLIF ( ( + 82 ), + 94 - 81 ) WHEN + 59 THEN - 59 + 41 WHEN - COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT CAST ( NULL AS INTEGER ) / COUNT ( * ) + + 89 + CASE 41 WHEN COUNT ( * ) * 22 THEN - NULLIF ( ( + 82 ), + 94 - 81 ) WHEN + 59 THEN - 59 + 41 WHEN - COUNT ( * ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 12 * - 71 * - 73 * 69
----
-4291524

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT ALL 92 / + 38 * CASE CASE + ( - 33 ) WHEN + 25 THEN - MIN( 29 ) ELSE COALESCE ( 30, 55 / 4 + - 42, + 34 ) END WHEN - 5 THEN NULL ELSE 69 END * - CASE + 86 WHEN COALESCE ( 82, - 29 - + COUNT( * ) ) THEN - AVG ( + 14 ) * + 20 - + MIN( DISTINCT - 27 ) WHEN - 60 / - 68 - - 77 * + 94 THEN NULL ELSE NULL END - 81 * - COUNT( 0 - - 71 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL 92 / + 38 * CASE CASE + ( - 33 ) WHEN + 25 THEN - MIN ( 29 ) ELSE COALESCE ( 30, 55 / 4 + - 42, + 34 ) END WHEN - 5 THEN NULL ELSE 69 END * - CASE + 86 WHEN COALESCE ( 82, - 29 - + COUNT ( * ) ) THEN - AVG ( + 14 ) * + 20 - + MIN ( DISTINCT - 27 ) WHEN - 60 / - 68 - - 77 * + 94 THEN NULL ELSE NULL END - 81 * - COUNT ( 0 - - 71 ) AS col0
----
NULL

query II rowsort
SELECT ALL + 38 AS col2, - 66
----
38
-66

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

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

query I rowsort
SELECT - 98 * 90 * + + 5 + + 57 col2
----
-44043

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1080
SELECT + CAST( NULL AS SIGNED ) - 11 + - 62 * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-1080
SELECT + CAST ( NULL AS INTEGER ) - 11 + - 62 * 18
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1081
SELECT NULLIF ( - + 4, + 62 * + 72 ) DIV + 43 + MIN( + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-1081
SELECT NULLIF ( - + 4, + 62 * + 72 ) / + 43 + MIN ( + 34 )
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-1082
SELECT + 17 * + 82 DIV + + 2 - + ( + 83 + 62 ) * 2 AS col1
----
407

skipif mysql # not compatible
query I rowsort label-1082
SELECT + 17 * + 82 / + + 2 - + ( + 83 + 62 ) * 2 AS col1
----
407

onlyif mysql # DIV for integer division: 
query I rowsort label-1083
SELECT ALL ( - - 33 ) DIV + 95 * + 78 - 87 col0
----
-87

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL ( - - 33 ) / + 95 * + 78 - 87 col0
----
-87

query I rowsort
SELECT - 57 + 2
----
-55

query I rowsort
SELECT 70 + - 22 * - - 66 AS col1
----
-1382

query I rowsort
SELECT 73 * 41
----
2993

query I rowsort
SELECT - ( - 98 ) * + + 91
----
8918

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT DISTINCT - COUNT( * ) * + 2 + 75
----
73

skipif mysql # not compatible
query I rowsort label-1088
SELECT DISTINCT - COUNT ( * ) * + 2 + 75
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1089
SELECT DISTINCT + + 26 DIV - 78 col2
----
0

skipif mysql # not compatible
query I rowsort label-1089
SELECT DISTINCT + + 26 / - 78 col2
----
0

query I rowsort
SELECT + + 55 * - - 88 + + 13
----
4853

query II rowsort
SELECT ALL - 56 col1, 66
----
-56
66

query I rowsort
SELECT ALL + 90 * + 64 - - - 11
----
5749

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

query I rowsort
SELECT DISTINCT - 57 * - 26
----
1482

query I rowsort
SELECT 94 * + 99
----
9306

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT - 21 * + + ( 92 ) + MIN( - 41 ) * 14 + + 5
----
-2501

skipif mysql # not compatible
query I rowsort label-1096
SELECT - 21 * + + ( 92 ) + MIN ( - 41 ) * 14 + + 5
----
-2501

onlyif mysql # aggregate syntax: 
query II rowsort label-1097
SELECT DISTINCT 8 col1, + COUNT( * ) AS col1
----
8
1

skipif mysql # not compatible
query II rowsort label-1097
SELECT DISTINCT 8 col1, + COUNT ( * ) AS col1
----
8
1

query I rowsort
SELECT DISTINCT - 97 + + - 23
----
-120

query I rowsort
SELECT ALL ( 60 ) + + - 56 + 58 * - 26 * + 75
----
-113096

query I rowsort
SELECT + 70 * - 64 AS col1
----
-4480

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

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

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

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

query I rowsort
SELECT DISTINCT + + 63 * + - 73
----
-4599

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT COUNT( * ) - - 93 * + - 31
----
-2882

skipif mysql # not compatible
query I rowsort label-1104
SELECT COUNT ( * ) - - 93 * + - 31
----
-2882

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT 55 + - COUNT( * ) + COALESCE ( + - COALESCE ( - 1, COUNT( - 18 ) * 5 ), + COUNT( * ) * + 86 ) + - 75 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1105
SELECT 55 + - COUNT ( * ) + COALESCE ( + - COALESCE ( - 1, COUNT ( - 18 ) * 5 ), + COUNT ( * ) * + 86 ) + - 75 AS col0
----
-20

query I rowsort
SELECT ALL 41 + - ( + 48 )
----
-7

query I rowsort
SELECT ( - 25 ) * + + 93
----
-2325

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT DISTINCT ( - MIN( DISTINCT 87 ) ) - - 64
----
-23

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT ( - MIN ( DISTINCT 87 ) ) - - 64
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-1109
SELECT 58 DIV - + 55 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1109
SELECT 58 / - + 55 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1110
SELECT DISTINCT + 53 DIV + 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1110
SELECT DISTINCT + 53 / + 86 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1111
SELECT 83 DIV + 64 AS col0, 39
----
1
39

skipif mysql # not compatible
query II rowsort label-1111
SELECT 83 / + 64 AS col0, 39
----
1
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT 90 + - - NULLIF ( + + COUNT( * ), - 4 ) * - 39
----
51

skipif mysql # not compatible
query I rowsort label-1112
SELECT 90 + - - NULLIF ( + + COUNT ( * ), - 4 ) * - 39
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-1113
SELECT ALL + 35 - 57 AS col2, - CASE + - 65 WHEN 12 + MIN( ALL 13 ) / + 41 THEN 65 WHEN 47 THEN - 26 * + 40 + - 40 * - 30 WHEN - 7 THEN 73 ELSE 61 END + 8 AS col2
----
-22
-53

skipif mysql # not compatible
query II rowsort label-1113
SELECT ALL + 35 - 57 AS col2, - CASE + - 65 WHEN 12 + MIN ( ALL 13 ) / + 41 THEN 65 WHEN 47 THEN - 26 * + 40 + - 40 * - 30 WHEN - 7 THEN 73 ELSE 61 END + 8 AS col2
----
-22
-53

query I rowsort
SELECT 99 + + 22
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT 83 * + 62 * 12 * - + ( ( + ( COUNT( * ) ) ) ) AS col2
----
-61752

skipif mysql # not compatible
query I rowsort label-1115
SELECT 83 * + 62 * 12 * - + ( ( + ( COUNT ( * ) ) ) ) AS col2
----
-61752

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT ALL + - CASE - 14 WHEN - COUNT( ALL - 96 ) THEN 74 ELSE NULL END * - ( + 49 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL + - CASE - 14 WHEN - COUNT ( ALL - 96 ) THEN 74 ELSE NULL END * - ( + 49 ) AS col1
----
NULL

query I rowsort
SELECT - 51 * + 66 - + - 3 AS col1
----
-3363

query I rowsort
SELECT ALL + 20 + COALESCE ( + 95, + + COALESCE ( + 37, 98 ), + 42 * ( 67 ), 47 ) + 17 AS col1
----
132

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

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

query I rowsort
SELECT 6 * + - 93 AS col0
----
-558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1121
SELECT ALL + ( + + SUM( ALL + ( 80 ) ) ) + - 33 * ( + 28 DIV 38 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL + ( + + SUM ( ALL + ( 80 ) ) ) + - 33 * ( + 28 / 38 ) AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1122
SELECT ALL - COUNT( * ) + - CAST( NULL AS SIGNED ) * CASE - CAST( + COALESCE ( - SUM( 22 ), 13, 32 + + COUNT( * ) ) AS DECIMAL ) WHEN + ( COUNT( * ) ) THEN + CASE - COUNT( * ) WHEN CAST( 96 AS SIGNED ) / - AVG ( ALL 32 * + ( - 86 ) + 68 / 44 ) + 68 THEN 66 / - 37 + - ( + 20 ) WHEN COUNT( * ) * 64 THEN NULL ELSE NULL END + - 91 END / + NULLIF ( - CAST( NULL AS SIGNED ) / - 49 + + COUNT( * ), 19 ) - NULLIF ( - 78, ( 85 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1122
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * CASE - CAST ( + COALESCE ( - SUM ( 22 ), 13, 32 + + COUNT ( * ) ) AS REAL ) WHEN + ( COUNT ( * ) ) THEN + CASE - COUNT ( * ) WHEN CAST ( 96 AS INTEGER ) / - AVG ( ALL 32 * + ( - 86 ) + 68 / 44 ) + 68 THEN 66 / - 37 + - ( + 20 ) WHEN COUNT ( * ) * 64 THEN NULL ELSE NULL END + - 91 END / + NULLIF ( - CAST ( NULL AS INTEGER ) / - 49 + + COUNT ( * ), 19 ) - NULLIF ( - 78, ( 85 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1123
SELECT DISTINCT + 76 + ( - + NULLIF ( + - CASE MIN( ALL - 1 ) WHEN 41 / 91 THEN NULL WHEN + 88 * 90 + - COUNT( * ) THEN + 38 END, CAST( 59 AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT + 76 + ( - + NULLIF ( + - CASE MIN ( ALL - 1 ) WHEN 41 / 91 THEN NULL WHEN + 88 * 90 + - COUNT ( * ) THEN + 38 END, CAST ( 59 AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 7 + - - 72 AS col2
----
79

query I rowsort
SELECT 65 + - - 57 AS col2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT COUNT( * ) * - 30 - + ( ( SUM( - 98 ) ) ) + 60
----
128

skipif mysql # not compatible
query I rowsort label-1126
SELECT COUNT ( * ) * - 30 - + ( ( SUM ( - 98 ) ) ) + 60
----
128

query I rowsort
SELECT - 34 + ( 95 ) col1
----
61

query I rowsort
SELECT 55 - + 10
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1129
SELECT ALL 18 - + 47 * - + SUM( DISTINCT - 5 ) * - - 74 * 58 + + 99 DIV - 84 AS col2
----
-1008603

skipif mysql # not compatible
query I rowsort label-1129
SELECT ALL 18 - + 47 * - + SUM ( DISTINCT - 5 ) * - - 74 * 58 + + 99 / - 84 AS col2
----
-1008603

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT ALL MIN( 48 ) * + - 40 + + 0 AS col2
----
-1920

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL MIN ( 48 ) * + - 40 + + 0 AS col2
----
-1920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1132
SELECT DISTINCT 17 - - - 91 * - 15 * - 90 DIV - - COUNT( * ) - 64 AS col1
----
-122897

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT 17 - - - 91 * - 15 * - 90 / - - COUNT ( * ) - 64 AS col1
----
-122897

onlyif mysql # aggregate syntax: 
query II rowsort label-1133
SELECT - COUNT( * ) col1, + 33 * + + CASE 24 WHEN - 86 THEN NULL WHEN ( + 0 ) THEN MIN( ALL 62 ) WHEN - COUNT( * ) * + 94 THEN NULLIF ( + 36, - 89 ) ELSE NULL END AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1133
SELECT - COUNT ( * ) col1, + 33 * + + CASE 24 WHEN - 86 THEN NULL WHEN ( + 0 ) THEN MIN ( ALL 62 ) WHEN - COUNT ( * ) * + 94 THEN NULLIF ( + 36, - 89 ) ELSE NULL END AS col0
----
-1
NULL

query I rowsort
SELECT - COALESCE ( 53, + 1, - 20, 65 * - 53 ) AS col2
----
-53

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

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

query I rowsort
SELECT + ( + - 19 ) * - 33 + + - 87 + + - 86
----
454

onlyif mysql # aggregate syntax: 
query II rowsort label-1137
SELECT + COUNT( * ) AS col2, 77 * + + 18
----
1
1386

skipif mysql # not compatible
query II rowsort label-1137
SELECT + COUNT ( * ) AS col2, 77 * + + 18
----
1
1386

query II rowsort
SELECT ALL + 44, 65 AS col1
----
44
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT 77 DIV 92 + - + 82 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-1139
SELECT 77 / 92 + - + 82 AS col1
----
-82

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1141
SELECT ALL 21 * - - 46 + 10 + - - 78 DIV - 40 AS col0
----
975

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL 21 * - - 46 + 10 + - - 78 / - 40 AS col0
----
975

onlyif mysql # DIV for integer division: 
query I rowsort label-1142
SELECT ALL - 60 DIV + - ( 17 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL - 60 / + - ( 17 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT - COUNT( * ) * + 71 + + 9 * + - 47 AS col0
----
-494

skipif mysql # not compatible
query I rowsort label-1143
SELECT - COUNT ( * ) * + 71 + + 9 * + - 47 AS col0
----
-494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1144
SELECT - + COUNT( * ) - CASE 6 WHEN + COUNT( * ) / - - 90 THEN NULL WHEN MAX( 64 ) THEN + 12 - - CAST( + COUNT( * ) + + 93 AS SIGNED ) WHEN - 91 + + 23 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1144
SELECT - + COUNT ( * ) - CASE 6 WHEN + COUNT ( * ) / - - 90 THEN NULL WHEN MAX ( 64 ) THEN + 12 - - CAST ( + COUNT ( * ) + + 93 AS INTEGER ) WHEN - 91 + + 23 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1145
SELECT DISTINCT - 32 DIV MAX( + 13 )
----
-2

skipif mysql # not compatible
query I rowsort label-1145
SELECT DISTINCT - 32 / MAX ( + 13 )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1146
SELECT + + 18 DIV COALESCE ( + 31, 22 ) * - 44 DIV - 82 + 5 + - 27 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-1146
SELECT + + 18 / COALESCE ( + 31, 22 ) * - 44 / - 82 + 5 + - 27 AS col0
----
-22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT DISTINCT + COUNT( * ) * + + 90 * + + 42 + - 61 + - 70 + + 18 AS col1
----
3667

skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT + COUNT ( * ) * + + 90 * + + 42 + - 61 + - 70 + + 18 AS col1
----
3667

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1149
SELECT + 11 + - ( 85 ) + + 43 + NULLIF ( COUNT( 99 ), ( 96 ) + COALESCE ( COALESCE ( 77, - 18 ), - MIN( 59 ) ) DIV 72 ) + 7 DIV 20
----
-30

skipif mysql # not compatible
query I rowsort label-1149
SELECT + 11 + - ( 85 ) + + 43 + NULLIF ( COUNT ( 99 ), ( 96 ) + COALESCE ( COALESCE ( 77, - 18 ), - MIN ( 59 ) ) / 72 ) + 7 / 20
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1150
SELECT ALL - - COUNT( DISTINCT 39 ) * - 74 DIV + 59 + - - 93 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL - - COUNT ( DISTINCT 39 ) * - 74 / + 59 + - - 93 / 67
----
0

query I rowsort
SELECT - 25 + ( + - 62 ) + + - ( 79 ) - - 16 AS col0
----
-150

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

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

query II rowsort
SELECT ALL + 42 AS col0, 93 + - 95 col1
----
42
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT ALL + - MIN( DISTINCT - 74 )
----
74

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL + - MIN ( DISTINCT - 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT - 52 + + - 95 * - - MAX( - 20 ) * - 20 - 21 col0
----
-38073

skipif mysql # not compatible
query I rowsort label-1155
SELECT - 52 + + - 95 * - - MAX ( - 20 ) * - 20 - 21 col0
----
-38073

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1157
SELECT DISTINCT - 17 * - COALESCE ( - - CAST( COUNT( * ) AS SIGNED ), CASE COUNT( * ) WHEN COALESCE ( + 53, MAX( - 24 ) * 4 ) THEN + 98 WHEN + 90 THEN NULL END * ( 31 ) + 22 ) * + 95 + + 19 AS col2
----
1634

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT - 17 * - COALESCE ( - - CAST ( COUNT ( * ) AS INTEGER ), CASE COUNT ( * ) WHEN COALESCE ( + 53, MAX ( - 24 ) * 4 ) THEN + 98 WHEN + 90 THEN NULL END * ( 31 ) + 22 ) * + 95 + + 19 AS col2
----
1634

query I rowsort
SELECT ALL + NULLIF ( - - 98, 57 ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT - + 87 + + + 42 + + COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1159
SELECT - + 87 + + + 42 + + COUNT ( * ) AS col2
----
-44

query I rowsort
SELECT - - 75 * + 59
----
4425

query I rowsort
SELECT ALL - 52 * - + 0 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1162
SELECT - 24 DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-1162
SELECT - 24 / 39
----
0

query II rowsort
SELECT ALL COALESCE ( - 54, 16, + 22 ) AS col0, + 52
----
-54
52

query I rowsort
SELECT ALL 12 * - + 27 AS col1
----
-324

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1166
SELECT ALL - 53 * ( - 83 ) * + - 42 * - + CAST( NULL AS SIGNED ) + + + 22 - - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL - 53 * ( - 83 ) * + - 42 * - + CAST ( NULL AS INTEGER ) + + + 22 - - 98 AS col2
----
NULL

query I rowsort
SELECT - 5 + - + 81 AS col2
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1168
SELECT + CAST( + - COALESCE ( - - 60, + COALESCE ( + 21, - 46 ) ) AS SIGNED ) + - SUM( 49 )
----
-109

skipif mysql # not compatible
query I rowsort label-1168
SELECT + CAST ( + - COALESCE ( - - 60, + COALESCE ( + 21, - 46 ) ) AS INTEGER ) + - SUM ( 49 )
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT + MIN( - 36 ) + 81 * - ( + + 67 ) AS col1
----
-5463

skipif mysql # not compatible
query I rowsort label-1169
SELECT + MIN ( - 36 ) + 81 * - ( + + 67 ) AS col1
----
-5463

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

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

query I rowsort
SELECT - ( - + 33 ) * - 26 AS col0
----
-858

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1172
SELECT + CAST( ( + 45 ) AS SIGNED ) + 91 AS col2, + 29
----
136
29

skipif mysql # not compatible
query II rowsort label-1172
SELECT + CAST ( ( + 45 ) AS INTEGER ) + 91 AS col2, + 29
----
136
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT + COUNT( * ) - + 11 + - 56 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-1173
SELECT + COUNT ( * ) - + 11 + - 56 AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1174
SELECT DISTINCT CAST( + NULLIF ( - 12, 30 + COUNT( * ) - - 28 + - 21 * + 57 * COUNT( * ) ) AS SIGNED ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT CAST ( + NULLIF ( - 12, 30 + COUNT ( * ) - - 28 + - 21 * + 57 * COUNT ( * ) ) AS INTEGER ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT ALL 98 * + COUNT( * ) col0
----
98

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL 98 * + COUNT ( * ) col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1176
SELECT + 4 * - + COALESCE ( 31, + CAST( NULL AS SIGNED ) + + 29 * + 89, + 73 - CASE 95 WHEN ( 51 ) * 26 - - 71 * 66 THEN - 36 END * + COUNT( * ) )
----
-124

skipif mysql # not compatible
query I rowsort label-1176
SELECT + 4 * - + COALESCE ( 31, + CAST ( NULL AS INTEGER ) + + 29 * + 89, + 73 - CASE 95 WHEN ( 51 ) * 26 - - 71 * 66 THEN - 36 END * + COUNT ( * ) )
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1177
SELECT DISTINCT 68 + - 55 - + CAST( NULL AS SIGNED ) * 68 * - 33 * 22 * - 22 - - 77 * 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT 68 + - 55 - + CAST ( NULL AS INTEGER ) * 68 * - 33 * 22 * - 22 - - 77 * 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT + + COUNT( + 84 ) + + 75 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-1178
SELECT + + COUNT ( + 84 ) + + 75 AS col1
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1179
SELECT DISTINCT + COUNT( ALL + 85 ) DIV 13 + + + 59 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-1179
SELECT DISTINCT + COUNT ( ALL + 85 ) / 13 + + + 59 AS col1
----
59

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

query I rowsort
SELECT + 9 * 84 - - 76
----
832

query II rowsort
SELECT DISTINCT + + 48, - ( 93 ) + - 49 col0
----
48
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT DISTINCT + COALESCE ( - + 3, NULLIF ( - 13, AVG ( 83 ) * 43 ) * + COALESCE ( + 75 * + 51, 71, + 65 ) + 98, - 91 ) * - CASE 39 * MIN( ALL - 28 ) WHEN + 94 THEN 34 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT + COALESCE ( - + 3, NULLIF ( - 13, AVG ( 83 ) * 43 ) * + COALESCE ( + 75 * + 51, 71, + 65 ) + 98, - 91 ) * - CASE 39 * MIN ( ALL - 28 ) WHEN + 94 THEN 34 ELSE NULL END AS col0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1185
SELECT ALL - 87 DIV 90 * - 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL - 87 / 90 * - 20 AS col1
----
0

query II rowsort
SELECT DISTINCT + 41 AS col2, 27 AS col0
----
41
27

query I rowsort
SELECT DISTINCT + 70 * ( + 99 ) + + 90 AS col0
----
7020

query I rowsort
SELECT + + 96 - + + 34 AS col0
----
62

query I rowsort
SELECT - - 90 * + 4 - - - 88 col2
----
272

onlyif mysql # DIV for integer division: 
query I rowsort label-1190
SELECT ALL - 27 DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL - 27 / + 35
----
0

query I rowsort
SELECT + ( - + 18 ) * + 5
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1192
SELECT ALL + 12 * - - COALESCE ( + 77, + COUNT( * ) + - 94 * - 51 + 60 * - 20 ) - + CAST( + 58 + + 48 AS SIGNED ) * - 41
----
5270

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL + 12 * - - COALESCE ( + 77, + COUNT ( * ) + - 94 * - 51 + 60 * - 20 ) - + CAST ( + 58 + + 48 AS INTEGER ) * - 41
----
5270

query I rowsort
SELECT 30 * 48 + - + ( - - NULLIF ( - 7, + + ( 57 ) * - 86 ) ) - + 75 AS col0
----
1372

query I rowsort
SELECT - 0 - ( - - 81 ) AS col2
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-1195
SELECT - 18 * - 93, - 77 * - 83 * + ( + 90 ) * - 0 + 18 DIV + 43 AS col1
----
1674
0

skipif mysql # not compatible
query II rowsort label-1195
SELECT - 18 * - 93, - 77 * - 83 * + ( + 90 ) * - 0 + 18 / + 43 AS col1
----
1674
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1196
SELECT ALL CASE - 43 WHEN - COUNT( * ) * + - NULLIF ( - 92, + 69 ) THEN NULL WHEN COUNT( * ) THEN 79 + CAST( 13 AS DECIMAL ) / 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL CASE - 43 WHEN - COUNT ( * ) * + - NULLIF ( - 92, + 69 ) THEN NULL WHEN COUNT ( * ) THEN 79 + CAST ( 13 AS REAL ) / 26 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT + 64 + + MAX( 85 ) AS col1
----
149

skipif mysql # not compatible
query I rowsort label-1197
SELECT + 64 + + MAX ( 85 ) AS col1
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-1198
SELECT - 70 - - ( - 61 ) DIV + 94 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-1198
SELECT - 70 - - ( - 61 ) / + 94 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT ALL ( + MIN( DISTINCT + 30 ) ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL ( + MIN ( DISTINCT + 30 ) ) AS col1
----
30

query I rowsort
SELECT 57 + - 73
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT MIN( - - 16 ) - - 41 + - 86 * - COALESCE ( - 92, + 78 * + 8, + 0 )
----
-7855

skipif mysql # not compatible
query I rowsort label-1201
SELECT MIN ( - - 16 ) - - 41 + - 86 * - COALESCE ( - 92, + 78 * + 8, + 0 )
----
-7855

query II rowsort
SELECT 83 + - 34, - 79 / - CASE 69 WHEN + 45 * + 14 / 17 + + 45 * 15 THEN 19 END AS col0
----
49
NULL

query II rowsort
SELECT DISTINCT - 31 + 73 col1, 78 - - 93 * + - 99 * + 95
----
42
-874587

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1204
SELECT ALL + 77 + - - CASE 85 WHEN + - CASE NULLIF ( + ( - + 40 ), 10 * 71 ) WHEN ( CAST( - 36 AS SIGNED ) ) + 77 THEN NULL ELSE 38 END * - 96 + 30 THEN + COUNT( * ) * + 26 ELSE NULL END + + 83 / - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL + 77 + - - CASE 85 WHEN + - CASE NULLIF ( + ( - + 40 ), 10 * 71 ) WHEN ( CAST ( - 36 AS INTEGER ) ) + 77 THEN NULL ELSE 38 END * - 96 + 30 THEN + COUNT ( * ) * + 26 ELSE NULL END + + 83 / - 24 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1205
SELECT ALL 98 * + + CAST( CASE - - MIN( - + 25 ) WHEN - 86 * + ( 76 ) THEN ( + 64 ) WHEN - 89 THEN NULL ELSE NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL 98 * + + CAST ( CASE - - MIN ( - + 25 ) WHEN - 86 * + ( 76 ) THEN ( + 64 ) WHEN - 89 THEN NULL ELSE NULL END AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1206
SELECT 99 DIV + 82 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1206
SELECT 99 / + 82 AS col0
----
1

query I rowsort
SELECT DISTINCT - 4 * 78 * - 45
----
14040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1208
SELECT 89 + + SUM( ALL 24 ) * + + 21 / + 93 * + 92 - 41 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1208
SELECT 89 + + SUM ( ALL 24 ) * + + 21 / + 93 * + 92 - 41 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1209
SELECT 66 DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-1209
SELECT 66 / + 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT + ( + 55 ) + 6 + - - 85 - - 10 * + COUNT( * ) AS col0
----
156

skipif mysql # not compatible
query I rowsort label-1210
SELECT + ( + 55 ) + 6 + - - 85 - - 10 * + COUNT ( * ) AS col0
----
156

query II rowsort
SELECT + 80 - 94 AS col2, + 43
----
-14
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT ALL - - SUM( ALL + 77 ) col0
----
77

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL - - SUM ( ALL + 77 ) col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT - ( - MAX( 76 ) ) * + - 62 * - 62 + - 71 + + 60 - + COUNT( DISTINCT + 47 )
----
292132

skipif mysql # not compatible
query I rowsort label-1213
SELECT - ( - MAX ( 76 ) ) * + - 62 * - 62 + - 71 + + 60 - + COUNT ( DISTINCT + 47 )
----
292132

onlyif mysql # aggregate syntax: 
query III rowsort label-1214
SELECT + + COUNT( + 68 ) col1, 62 AS col2, - 33 + - 70 + + - 15 AS col2
----
1
62
-118

skipif mysql # not compatible
query III rowsort label-1214
SELECT + + COUNT ( + 68 ) col1, 62 AS col2, - 33 + - 70 + + - 15 AS col2
----
1
62
-118

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT + 79 * - + CASE + COALESCE ( + 9, + + 45 + + 58 + - + 80 * 54 ) WHEN + 51 + 98 THEN COUNT( * ) * - 25 END + - 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1216
SELECT + 79 * - + CASE + COALESCE ( + 9, + + 45 + + 58 + - + 80 * 54 ) WHEN + 51 + 98 THEN COUNT ( * ) * - 25 END + - 95 AS col2
----
NULL

query II rowsort
SELECT 15 - - 3, + 54 col0
----
18
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1218
SELECT + + COUNT( * ) * + 45 + MAX( - 44 ) + + CAST( - 80 AS SIGNED ) * + 52 + - 95 AS col2
----
-4254

skipif mysql # not compatible
query I rowsort label-1218
SELECT + + COUNT ( * ) * + 45 + MAX ( - 44 ) + + CAST ( - 80 AS INTEGER ) * + 52 + - 95 AS col2
----
-4254

query I rowsort
SELECT 63 * + COALESCE ( + 77, - - 28 ) AS col1
----
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT - 91 * + - COUNT( * ) * NULLIF ( - NULLIF ( 56, + + MAX( 51 ) ), 60 - - 58 ) * CASE CASE - 8 WHEN + 65 THEN COUNT( * ) ELSE + 23 END WHEN + COUNT( * ) THEN - 87 * + ( + 59 * 12 ) END + ( + NULLIF ( + AVG ( - 91 ), - 59 + - NULLIF ( + 51, CASE 79 WHEN - MIN( 60 ) * + 29 - - 3 THEN 82 * - COUNT( * ) + 99 * COUNT( - 47 ) ELSE NULL END ) * + 94 ) + 50 ) + - 18 * - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1220
SELECT - 91 * + - COUNT ( * ) * NULLIF ( - NULLIF ( 56, + + MAX ( 51 ) ), 60 - - 58 ) * CASE CASE - 8 WHEN + 65 THEN COUNT ( * ) ELSE + 23 END WHEN + COUNT ( * ) THEN - 87 * + ( + 59 * 12 ) END + ( + NULLIF ( + AVG ( - 91 ), - 59 + - NULLIF ( + 51, CASE 79 WHEN - MIN ( 60 ) * + 29 - - 3 THEN 82 * - COUNT ( * ) + 99 * COUNT ( - 47 ) ELSE NULL END ) * + 94 ) + 50 ) + - 18 * - 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT + - 86 * + + COUNT( * ) + + 36
----
-50

skipif mysql # not compatible
query I rowsort label-1221
SELECT + - 86 * + + COUNT ( * ) + + 36
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT ALL + 4 * - - 41 * - 54 * - MIN( + 45 )
----
398520

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL + 4 * - - 41 * - 54 * - MIN ( + 45 )
----
398520

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT CASE - 71 WHEN + 95 THEN - ( 12 ) WHEN - 39 * ( 8 ) * + SUM( ALL 21 ) THEN NULL END / 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1223
SELECT CASE - 71 WHEN + 95 THEN - ( 12 ) WHEN - 39 * ( 8 ) * + SUM ( ALL 21 ) THEN NULL END / 28
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1224
SELECT DISTINCT + 7 DIV 62 DIV + 97 col1
----
0

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT + 7 / 62 / + 97 col1
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-1226
SELECT ( + 61 ) + - - ( + 25 ) / CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 22 AS col1, - 21 - - + 13 AS col0
----
-22
-8

query I rowsort
SELECT DISTINCT 99 + - + 84 AS col0
----
15

query I rowsort
SELECT ALL - 17 * - 84
----
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT MAX( DISTINCT - - 66 ) + - 47 col1
----
19

skipif mysql # not compatible
query I rowsort label-1230
SELECT MAX ( DISTINCT - - 66 ) + - 47 col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1231
SELECT ALL 93 + - COUNT( * ) DIV - 33, 22 AS col2
----
93
22

skipif mysql # not compatible
query II rowsort label-1231
SELECT ALL 93 + - COUNT ( * ) / - 33, 22 AS col2
----
93
22

onlyif mysql # aggregate syntax: 
query II rowsort label-1232
SELECT DISTINCT - COUNT( * ) + + 23 * + - 25 + + 10 + 69 * 27 AS col1, + 12
----
1297
12

skipif mysql # not compatible
query II rowsort label-1232
SELECT DISTINCT - COUNT ( * ) + + 23 * + - 25 + + 10 + 69 * 27 AS col1, + 12
----
1297
12

onlyif mysql # aggregate syntax: 
query II rowsort label-1233
SELECT DISTINCT + 45 + - + ( + COUNT( * ) ) AS col1, - 8
----
44
-8

skipif mysql # not compatible
query II rowsort label-1233
SELECT DISTINCT + 45 + - + ( + COUNT ( * ) ) AS col1, - 8
----
44
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT - COUNT( ALL - 18 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1234
SELECT - COUNT ( ALL - 18 ) AS col2
----
-1

query I rowsort
SELECT 24 + - CASE - 44 WHEN - 96 THEN - 58 / - 63 * + - 25 * + 19 ELSE NULL END * 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT DISTINCT - COALESCE ( + COUNT( * ), + + 88 * + ( + - COUNT( * ) ) * + 5 * COALESCE ( 40, COUNT( 13 ) - + 48 * 65 ) ) + + 31 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + + 88 * + ( + - COUNT ( * ) ) * + 5 * COALESCE ( 40, COUNT ( 13 ) - + 48 * 65 ) ) + + 31 AS col1
----
30

query I rowsort
SELECT 34 + + + 38 AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1238
SELECT ALL - - 52 + - + 89 DIV + 24
----
49

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL - - 52 + - + 89 / + 24
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1239
SELECT DISTINCT + 53 DIV + 44 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1239
SELECT DISTINCT + 53 / + 44 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1240
SELECT COUNT( * ) - - + 71 - + 12 - - - 78 - + 19 - + 49 * CAST( - - COUNT( * ) AS SIGNED ) * + 28 col2
----
-1409

skipif mysql # not compatible
query I rowsort label-1240
SELECT COUNT ( * ) - - + 71 - + 12 - - - 78 - + 19 - + 49 * CAST ( - - COUNT ( * ) AS INTEGER ) * + 28 col2
----
-1409

query I rowsort
SELECT ALL + - 39 * + 78
----
-3042

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

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT + COUNT ( ALL 39 ) * + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT ( - + 62 ) * + ( - + 61 )
----
3782

query I rowsort
SELECT - COALESCE ( 67, - 12, + 53 ) * - 13 AS col1
----
871

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT ALL + + COALESCE ( + 79, - 94 ) * NULLIF ( + + SUM( DISTINCT - ( 38 ) ), + 46 * + 16 + - COUNT( * ) ) * SUM( DISTINCT + 60 * 63 - - NULLIF ( 8 + 14, + 27 ) )
----
-11413604

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL + + COALESCE ( + 79, - 94 ) * NULLIF ( + + SUM ( DISTINCT - ( 38 ) ), + 46 * + 16 + - COUNT ( * ) ) * SUM ( DISTINCT + 60 * 63 - - NULLIF ( 8 + 14, + 27 ) )
----
-11413604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1246
SELECT - - 76 DIV + ( + 27 ) + - 60 + - 61 + + 92 + - 40 * COUNT( * ) * - 88 + - 62 AS col0
----
3431

skipif mysql # not compatible
query I rowsort label-1246
SELECT - - 76 / + ( + 27 ) + - 60 + - 61 + + 92 + - 40 * COUNT ( * ) * - 88 + - 62 AS col0
----
3431

query I rowsort
SELECT DISTINCT + + 97 * 1 + - 83
----
14

query I rowsort
SELECT ALL - + 35 * 4 AS col2
----
-140

query I rowsort
SELECT + 54 * + - 56
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT DISTINCT 84 * + SUM( - + 10 ) - - ( - + 99 ) AS col1
----
-939

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT 84 * + SUM ( - + 10 ) - - ( - + 99 ) AS col1
----
-939

onlyif mysql # aggregate syntax: 
query II rowsort label-1251
SELECT COUNT( 42 ) * - - 91, + NULLIF ( - 61, - 35 ) AS col0
----
91
-61

skipif mysql # not compatible
query II rowsort label-1251
SELECT COUNT ( 42 ) * - - 91, + NULLIF ( - 61, - 35 ) AS col0
----
91
-61

query I rowsort
SELECT ALL - - 68 * - + 92 AS col0
----
-6256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1253
SELECT - COALESCE ( ( - - 41 ), 25 - + - 43 + + + 92 DIV + COUNT( * ), - 66 * - ( 36 * - 38 ) ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-1253
SELECT - COALESCE ( ( - - 41 ), 25 - + - 43 + + + 92 / + COUNT ( * ), - 66 * - ( 36 * - 38 ) ) AS col2
----
-41

query I rowsort
SELECT - 34 * + 87 AS col1
----
-2958

query I rowsort
SELECT ALL - NULLIF ( 20, - - 25 * - ( + 58 ) * + + ( 87 ) * - ( - - 96 ) + 61 / - 85 + - 55 * - 35 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1256
SELECT - 65 + - + 6 - + 34 + - CAST( COALESCE ( - 63, + CAST( NULL AS SIGNED ) * 84, + ( COUNT( DISTINCT ( NULLIF ( 90, - 1 ) ) ) ) * 29 ) AS SIGNED ) + 90 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-1256
SELECT - 65 + - + 6 - + 34 + - CAST ( COALESCE ( - 63, + CAST ( NULL AS INTEGER ) * 84, + ( COUNT ( DISTINCT ( NULLIF ( 90, - 1 ) ) ) ) * 29 ) AS INTEGER ) + 90 AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1257
SELECT + COUNT( * ) * + NULLIF ( - 85, + CASE - 33 WHEN + + AVG ( ALL 90 ) * - CAST( + - 30 AS SIGNED ) * + MIN( + 29 ) - SUM( 15 ) + NULLIF ( 13 + + 63, + 18 + 54 ) THEN NULL WHEN + 12 THEN NULL ELSE CAST( - COUNT( * ) AS DECIMAL ) END ) + CAST( + 47 AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-1257
SELECT + COUNT ( * ) * + NULLIF ( - 85, + CASE - 33 WHEN + + AVG ( ALL 90 ) * - CAST ( + - 30 AS INTEGER ) * + MIN ( + 29 ) - SUM ( 15 ) + NULLIF ( 13 + + 63, + 18 + 54 ) THEN NULL WHEN + 12 THEN NULL ELSE CAST ( - COUNT ( * ) AS REAL ) END ) + CAST ( + 47 AS INTEGER )
----
-38

query I rowsort
SELECT + ( + - 6 ) * 31
----
-186

query I rowsort
SELECT ALL 53 * + NULLIF ( + + 66, 40 ) col0
----
3498

query I rowsort
SELECT ALL 46 + 89 AS col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT DISTINCT - 76 + MIN( - 74 )
----
-150

skipif mysql # not compatible
query I rowsort label-1261
SELECT DISTINCT - 76 + MIN ( - 74 )
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-1262
SELECT + ( 53 ) DIV + 46
----
1

skipif mysql # not compatible
query I rowsort label-1262
SELECT + ( 53 ) / + 46
----
1

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

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

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

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

query I rowsort
SELECT DISTINCT 52 * - 76
----
-3952

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT + COALESCE ( - 56, - 53 * + 19 + + COUNT( * ), - - 33 * + + 5 ) * 98 + - + 55
----
-5543

skipif mysql # not compatible
query I rowsort label-1266
SELECT + COALESCE ( - 56, - 53 * + 19 + + COUNT ( * ), - - 33 * + + 5 ) * 98 + - + 55
----
-5543

query I rowsort
SELECT + 81 * + 13 AS col2
----
1053

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT - SUM( DISTINCT - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-1268
SELECT - SUM ( DISTINCT - 29 )
----
29

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1270
SELECT 59 * 87 DIV - 45 - + - 47 + + 2
----
-65

skipif mysql # not compatible
query I rowsort label-1270
SELECT 59 * 87 / - 45 - + - 47 + + 2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1271
SELECT - CASE + 11 WHEN - ( ( - CAST( NULL AS SIGNED ) ) ) * - + 48 * + SUM( - 86 ) / CAST( - 10 AS DECIMAL ) THEN 56 + + ( 55 ) WHEN + 57 * - 35 THEN NULL ELSE 22 * 43 END AS col2
----
-946

skipif mysql # not compatible
query I rowsort label-1271
SELECT - CASE + 11 WHEN - ( ( - CAST ( NULL AS INTEGER ) ) ) * - + 48 * + SUM ( - 86 ) / CAST ( - 10 AS REAL ) THEN 56 + + ( 55 ) WHEN + 57 * - 35 THEN NULL ELSE 22 * 43 END AS col2
----
-946

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1272
SELECT DISTINCT 31 - + CAST( NULL AS SIGNED ), - 93 * - CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1272
SELECT DISTINCT 31 - + CAST ( NULL AS INTEGER ), - 93 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

query I rowsort
SELECT DISTINCT + 91 * - 2
----
-182

query I rowsort
SELECT ALL ( + 93 ) - - 88 AS col1
----
181

onlyif mysql # DIV for integer division: 
query I rowsort label-1275
SELECT + - 58 + + 24 DIV - 24 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1275
SELECT + - 58 + + 24 / - 24 AS col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-1276
SELECT + + 83 + + 87 DIV 23 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-1276
SELECT + + 83 + + 87 / 23 AS col0
----
86

query I rowsort
SELECT CASE - - 79 WHEN - 42 THEN NULL ELSE + + 20 * + + 1 * + 99 * 4 * + 98 + - - 55 + 18 * 13 END
----
776449

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1278
SELECT - ( - - MIN( - + 22 ) ) * - 81 DIV 9 * - 72 AS col2
----
14256

skipif mysql # not compatible
query I rowsort label-1278
SELECT - ( - - MIN ( - + 22 ) ) * - 81 / 9 * - 72 AS col2
----
14256

onlyif mysql # aggregate syntax: 
query II rowsort label-1279
SELECT + - COUNT( * ) + - 57, 20 AS col2
----
-58
20

skipif mysql # not compatible
query II rowsort label-1279
SELECT + - COUNT ( * ) + - 57, 20 AS col2
----
-58
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1280
SELECT ALL + 48 DIV 34 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL + 48 / 34 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1281
SELECT - + 85 * + COUNT( * ) + - CAST( - 4 AS SIGNED ) + - + 80 * COUNT( * )
----
-161

skipif mysql # not compatible
query I rowsort label-1281
SELECT - + 85 * + COUNT ( * ) + - CAST ( - 4 AS INTEGER ) + - + 80 * COUNT ( * )
----
-161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1282
SELECT - 24 DIV - - COUNT( * ) * + COUNT( * ) + - + COALESCE ( + 85, - COUNT( * ) )
----
-109

skipif mysql # not compatible
query I rowsort label-1282
SELECT - 24 / - - COUNT ( * ) * + COUNT ( * ) + - + COALESCE ( + 85, - COUNT ( * ) )
----
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-1283
SELECT DISTINCT + ( - 97 ) DIV NULLIF ( - 67, 80 * + 88 + + + 0 )
----
1

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT + ( - 97 ) / NULLIF ( - 67, 80 * + 88 + + + 0 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT DISTINCT + + MIN( ALL 96 )
----
96

skipif mysql # not compatible
query I rowsort label-1284
SELECT DISTINCT + + MIN ( ALL 96 )
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-1285
SELECT - + 76 - - - 97 col1, - COUNT( * ) col0
----
-173
-1

skipif mysql # not compatible
query II rowsort label-1285
SELECT - + 76 - - - 97 col1, - COUNT ( * ) col0
----
-173
-1

query I rowsort
SELECT - - 1 - 39
----
-38

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

skipif mysql # not compatible
query I rowsort label-1287
SELECT - 41 / + 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT ALL CASE - 79 WHEN - - 1 * + 35 THEN - 82 - + 69 + - 0 * 94 ELSE NULL END * + + COUNT( * ) + - 23 + 55 * 33 * - NULLIF ( MAX( DISTINCT - ( 45 ) ), 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL CASE - 79 WHEN - - 1 * + 35 THEN - 82 - + 69 + - 0 * 94 ELSE NULL END * + + COUNT ( * ) + - 23 + 55 * 33 * - NULLIF ( MAX ( DISTINCT - ( 45 ) ), 19 )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1290
SELECT ALL 83 * - 77 + 22 AS col0, - 26 / - - MIN( ALL CAST( NULL AS DECIMAL ) )
----
-6369
NULL

skipif mysql # not compatible
query II rowsort label-1290
SELECT ALL 83 * - 77 + 22 AS col0, - 26 / - - MIN ( ALL CAST ( NULL AS REAL ) )
----
-6369
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1292
SELECT ALL 2 * - - 73 + + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL 2 * - - 73 + + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT ALL 27 * + 31 + MAX( DISTINCT 43 ) * 0 * + + 53 * 19 * - COUNT( * ) AS col2
----
837

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL 27 * + 31 + MAX ( DISTINCT 43 ) * 0 * + + 53 * 19 * - COUNT ( * ) AS col2
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT NULLIF ( + 5, + - 3 / COUNT( * ) / - - 34 )
----
5

skipif mysql # not compatible
query I rowsort label-1294
SELECT NULLIF ( + 5, + - 3 / COUNT ( * ) / - - 34 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1295
SELECT CASE - - 58 WHEN 50 + 25 * 93 THEN NULL WHEN - - COUNT( * ) THEN AVG ( DISTINCT - - 97 ) * + 41 - + CASE + 56 WHEN - ( COUNT( * ) ) * MAX( 27 ) THEN 92 WHEN CAST( NULL AS SIGNED ) THEN - 41 ELSE NULL END WHEN + 53 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1295
SELECT CASE - - 58 WHEN 50 + 25 * 93 THEN NULL WHEN - - COUNT ( * ) THEN AVG ( DISTINCT - - 97 ) * + 41 - + CASE + 56 WHEN - ( COUNT ( * ) ) * MAX ( 27 ) THEN 92 WHEN CAST ( NULL AS INTEGER ) THEN - 41 ELSE NULL END WHEN + 53 THEN NULL END
----
NULL

query I rowsort
SELECT + 57 + - + COALESCE ( - 99, - 21 ) col0
----
156

query I rowsort
SELECT 64 * - - 54 * 90 + - ( 54 ) AS col0
----
310986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1298
SELECT ALL - 49 * - ( + COUNT( * ) ) * + 51 - - + CAST( - 77 AS SIGNED )
----
2422

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL - 49 * - ( + COUNT ( * ) ) * + 51 - - + CAST ( - 77 AS INTEGER )
----
2422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1299
SELECT DISTINCT ( + + CASE - 59 WHEN + + COUNT( * ) + COUNT( * ) * + 45 THEN - 41 + + CASE + CAST( - 30 AS SIGNED ) WHEN 69 THEN - 47 END + 59 WHEN 7 * 72 THEN CASE + 59 WHEN 27 + 42 THEN 27 WHEN COUNT( * ) THEN + 68 WHEN - 45 THEN NULL ELSE NULL END WHEN + ( + CAST( + COUNT( * ) AS SIGNED ) ) THEN - 22 * COUNT( * ) ELSE 96 END ) * 79
----
7584

skipif mysql # not compatible
query I rowsort label-1299
SELECT DISTINCT ( + + CASE - 59 WHEN + + COUNT ( * ) + COUNT ( * ) * + 45 THEN - 41 + + CASE + CAST ( - 30 AS INTEGER ) WHEN 69 THEN - 47 END + 59 WHEN 7 * 72 THEN CASE + 59 WHEN 27 + 42 THEN 27 WHEN COUNT ( * ) THEN + 68 WHEN - 45 THEN NULL ELSE NULL END WHEN + ( + CAST ( + COUNT ( * ) AS INTEGER ) ) THEN - 22 * COUNT ( * ) ELSE 96 END ) * 79
----
7584

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT + 39 + - COUNT( 93 )
----
38

skipif mysql # not compatible
query I rowsort label-1301
SELECT + 39 + - COUNT ( 93 )
----
38

query I rowsort
SELECT DISTINCT + 82 * + 2 AS col0
----
164

query I rowsort
SELECT + 15 + + + ( 35 ) + 6
----
56

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT + 96 + + - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-1305
SELECT + 96 + + - COUNT ( * )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1306
SELECT + - 49 DIV - + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1306
SELECT + - 49 / - + 81 AS col0
----
0

query I rowsort
SELECT + + 38 * - - COALESCE ( 45, + - 19 + + 14 ) - - 31
----
1741

query I rowsort
SELECT + NULLIF ( 79, 82 ) + + + COALESCE ( + 79, + - ( + 28 ), 24 ) col2
----
158

query I rowsort
SELECT DISTINCT - 19 * 79 * - 47 + - 54 + + + 9
----
70502

query I rowsort
SELECT + 80 - + 99
----
-19

query II rowsort
SELECT ALL + 5 AS col1, + ( - 91 )
----
5
-91

query I rowsort
SELECT ALL + + 67 * 95 * 49
----
311885

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT ALL + MAX( - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL + MAX ( - 9 )
----
-9

query I rowsort
SELECT ALL - ( - 9 ) + - 60 AS col0
----
-51

query I rowsort
SELECT + - 5 + 92 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT + CASE - 72 WHEN - + ( 22 ) THEN - - COUNT( * ) * - + COUNT( * ) + + + 4 + ( - ( 41 ) ) END * + 77 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1316
SELECT + CASE - 72 WHEN - + ( 22 ) THEN - - COUNT ( * ) * - + COUNT ( * ) + + + 4 + ( - ( 41 ) ) END * + 77 col2
----
NULL

query I rowsort
SELECT ALL ( - 18 ) + + 37 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT - 39 + + MAX( ALL + 40 ) * CASE - ( 95 ) WHEN + 76 THEN - - COALESCE ( 83, - + 44 * 89, 52 ) WHEN 73 THEN NULL ELSE 39 END col0
----
1521

skipif mysql # not compatible
query I rowsort label-1318
SELECT - 39 + + MAX ( ALL + 40 ) * CASE - ( 95 ) WHEN + 76 THEN - - COALESCE ( 83, - + 44 * 89, 52 ) WHEN 73 THEN NULL ELSE 39 END col0
----
1521

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1319
SELECT ALL - NULLIF ( + + 3, - - CAST( + 3 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL - NULLIF ( + + 3, - - CAST ( + 3 AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1320
SELECT + 4 AS col2, MAX( + 62 ) AS col2
----
4
62

skipif mysql # not compatible
query II rowsort label-1320
SELECT + 4 AS col2, MAX ( + 62 ) AS col2
----
4
62

query I rowsort
SELECT ALL 24 + - + 51 + + - 61
----
-88

query I rowsort
SELECT ALL + 31 + - + 75 AS col1
----
-44

query I rowsort
SELECT ALL 17 + + 24 - + - 50
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1324
SELECT 93 DIV - 6 col2
----
-15

skipif mysql # not compatible
query I rowsort label-1324
SELECT 93 / - 6 col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1325
SELECT ALL - ( CAST( NULL AS SIGNED ) ) + + - 13 - 91 / - MAX( ALL 77 ) - - ( + 44 ) + + 25 * + AVG ( ALL - 79 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) + + - 13 - 91 / - MAX ( ALL 77 ) - - ( + 44 ) + + 25 * + AVG ( ALL - 79 ) AS col0
----
NULL

query I rowsort
SELECT 99 * 22 AS col2
----
2178

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT ALL + 31 + - 53 * - 20 + - 41 - - - 91 + - + COUNT( - 0 ) * - COUNT( * )
----
960

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL + 31 + - 53 * - 20 + - 41 - - - 91 + - + COUNT ( - 0 ) * - COUNT ( * )
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT 83 + - 43 + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-1328
SELECT 83 + - 43 + COUNT ( * )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1329
SELECT 18 DIV + - 74
----
0

skipif mysql # not compatible
query I rowsort label-1329
SELECT 18 / + - 74
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1330
SELECT + 91 * - - COALESCE ( + - COALESCE ( + + 83, + + 2 * + 58 * + 52 + 93 + + 26 * ( SUM( ALL + 29 ) ), - 42, 71 ), 3, 82 + + 44 DIV 88 ) + 64
----
-7489

skipif mysql # not compatible
query I rowsort label-1330
SELECT + 91 * - - COALESCE ( + - COALESCE ( + + 83, + + 2 * + 58 * + 52 + 93 + + 26 * ( SUM ( ALL + 29 ) ), - 42, 71 ), 3, 82 + + 44 / 88 ) + 64
----
-7489

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT DISTINCT + MIN( 18 ) * 72
----
1296

skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT + MIN ( 18 ) * 72
----
1296

onlyif mysql # DIV for integer division: 
query I rowsort label-1332
SELECT ALL - 60 * 99 DIV + 29
----
-204

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL - 60 * 99 / + 29
----
-204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1333
SELECT ALL - CAST( - CASE 79 WHEN + 67 * - + COUNT( * ) + 11 * - 42 THEN NULL ELSE COUNT( * ) END AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL - CAST ( - CASE 79 WHEN + 67 * - + COUNT ( * ) + 11 * - 42 THEN NULL ELSE COUNT ( * ) END AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT 17 - COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-1334
SELECT 17 - COUNT ( * ) AS col2
----
16

query I rowsort
SELECT 27 + - 24 * 97 AS col1
----
-2301

query II rowsort
SELECT ALL 49 col2, 89 AS col1
----
49
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT 58 * COUNT( * ) * 33 + 58 col0
----
1972

skipif mysql # not compatible
query I rowsort label-1337
SELECT 58 * COUNT ( * ) * 33 + 58 col0
----
1972

query I rowsort
SELECT + COALESCE ( 47, - - 6 + + 32 + - 4, - + 10 ) + 20 + - 36 col1
----
31

query II rowsort
SELECT - - 35 AS col0, + 56 col1
----
35
56

query I rowsort
SELECT - 98 - - 23 + - + 49
----
-124

query I rowsort
SELECT - 37 * - 69 * + 72
----
183816

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT ALL + 81 * - 71 * - 53 + + 93 + 83 + MIN( DISTINCT 74 )
----
305053

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL + 81 * - 71 * - 53 + + 93 + 83 + MIN ( DISTINCT 74 )
----
305053

onlyif mysql # DIV for integer division: 
query I rowsort label-1343
SELECT DISTINCT - 70 DIV + 17
----
-4

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT - 70 / + 17
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT ALL NULLIF ( - COUNT( * ), ( 36 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1344
SELECT ALL NULLIF ( - COUNT ( * ), ( 36 ) )
----
-1

query I rowsort
SELECT DISTINCT CASE - 10 WHEN - 53 THEN NULL WHEN + 93 THEN NULL WHEN 84 + + - 71 THEN + 63 * - + 2 + + 8 END + COALESCE ( + 28, + AVG ( DISTINCT 95 ) - + 11, 21 ) * 45 AS col0
----
NULL

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

query I rowsort
SELECT ALL - + 61 * + - 6 * ( - 95 ) AS col2
----
-34770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1348
SELECT + 73 * - CASE - - 45 WHEN + CAST( - 79 AS SIGNED ) * - + 8 THEN NULL WHEN + - ( + 39 ) + + - 74 THEN NULL ELSE - 34 - 9 END * + 46
----
144394

skipif mysql # not compatible
query I rowsort label-1348
SELECT + 73 * - CASE - - 45 WHEN + CAST ( - 79 AS INTEGER ) * - + 8 THEN NULL WHEN + - ( + 39 ) + + - 74 THEN NULL ELSE - 34 - 9 END * + 46
----
144394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1349
SELECT + CAST( + - 25 AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-1349
SELECT + CAST ( + - 25 AS INTEGER )
----
-25

query I rowsort
SELECT ALL + + 48 + - + 45
----
3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1352
SELECT - - 53, 63 * + 55 - - + SUM( - 26 ) + + - 47 + - - 89 AS col0
----
53
3481

skipif mysql # not compatible
query II rowsort label-1352
SELECT - - 53, 63 * + 55 - - + SUM ( - 26 ) + + - 47 + - - 89 AS col0
----
53
3481

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1353
SELECT - 40 + + 28 * COUNT( * ) + 95 DIV 17
----
-7

skipif mysql # not compatible
query I rowsort label-1353
SELECT - 40 + + 28 * COUNT ( * ) + 95 / 17
----
-7

query I rowsort
SELECT 84 * - 97 * 12 AS col1
----
-97776

query I rowsort
SELECT DISTINCT 79 + + 94 AS col0
----
173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1356
SELECT - 23 * + + CAST( NULL AS SIGNED ) + + + CAST( 47 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1356
SELECT - 23 * + + CAST ( NULL AS INTEGER ) + + + CAST ( 47 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 5 + + 12 + 91 + + + 88 * + ( + + 69 )
----
6180

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT SUM( DISTINCT + 65 ) + + 4 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-1358
SELECT SUM ( DISTINCT + 65 ) + + 4 AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1359
SELECT DISTINCT + - COALESCE ( COALESCE ( 29, ( - 92 ) * - - 75, - 99 * - + 66 DIV + - COUNT( * ) * - 88 + + 85 + + 59 * + CAST( - 44 AS SIGNED ) ), + 32 + 32 ) DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT + - COALESCE ( COALESCE ( 29, ( - 92 ) * - - 75, - 99 * - + 66 / + - COUNT ( * ) * - 88 + + 85 + + 59 * + CAST ( - 44 AS INTEGER ) ), + 32 + 32 ) / 67
----
0

query I rowsort
SELECT 2 + - 56
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT 9 + + NULLIF ( 95, - COUNT( * ) ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-1361
SELECT 9 + + NULLIF ( 95, - COUNT ( * ) ) AS col1
----
104

query I rowsort
SELECT ALL 23 * - 21 AS col0
----
-483

query I rowsort
SELECT 98 * + 77 AS col1
----
7546

query I rowsort
SELECT 1 * + - 38 * - - 72 + - 46 col2
----
-2782

onlyif mysql # DIV for integer division: 
query I rowsort label-1365
SELECT ALL - 28 DIV + 8 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1365
SELECT ALL - 28 / + 8 AS col0
----
-3

query I rowsort
SELECT 24 * 46
----
1104

query I rowsort
SELECT - 73 * 33 + + + 68
----
-2341

query I rowsort
SELECT 37 * + 18 * + + 64
----
42624

query I rowsort
SELECT 73 + 89 AS col1
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-1370
SELECT ALL - - COUNT( * ) + + 45 AS col0, - 85 * - + 61 * + - 2 * + 52 + 86 AS col2
----
46
-539154

skipif mysql # not compatible
query II rowsort label-1370
SELECT ALL - - COUNT ( * ) + + 45 AS col0, - 85 * - + 61 * + - 2 * + 52 + 86 AS col2
----
46
-539154

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL + 41 * NULLIF ( + COUNT( 79 ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL + 41 * NULLIF ( + COUNT ( 79 ), COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT DISTINCT 9 + + 73 + - - 14 + - - COUNT( * ) * + MIN( 61 ) AS col2
----
157

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT 9 + + 73 + - - 14 + - - COUNT ( * ) * + MIN ( 61 ) AS col2
----
157

onlyif mysql # aggregate syntax: 
query II rowsort label-1373
SELECT ALL - + COUNT( * ) + + 35, 95 col1
----
34
95

skipif mysql # not compatible
query II rowsort label-1373
SELECT ALL - + COUNT ( * ) + + 35, 95 col1
----
34
95

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

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

query I rowsort
SELECT + - 14 + + 40 AS col0
----
26

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

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

query I rowsort
SELECT DISTINCT + 23 + + 17 AS col1
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-1378
SELECT - + ( - + 81 ) DIV 27 AS col1, + 96
----
3
96

skipif mysql # not compatible
query II rowsort label-1378
SELECT - + ( - + 81 ) / 27 AS col1, + 96
----
3
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1379
SELECT DISTINCT ( - 57 ) * - - 39 - + CAST( + - COUNT( * ) AS SIGNED ) AS col2
----
-2222

skipif mysql # not compatible
query I rowsort label-1379
SELECT DISTINCT ( - 57 ) * - - 39 - + CAST ( + - COUNT ( * ) AS INTEGER ) AS col2
----
-2222

query I rowsort
SELECT DISTINCT + 86 * + 96
----
8256

query I rowsort
SELECT ALL NULLIF ( + + ( + - 92 ), + 88 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT DISTINCT + 77 - + CASE WHEN NOT 76 < NULL THEN 88 + - COUNT( * ) * 24 + - NULLIF ( - 63, + CASE + 46 WHEN - + 44 * - 4 * - 17 - - COUNT( * ) THEN + NULLIF ( + 23, 90 ) + COUNT( * ) END * 4 ) WHEN NOT CASE + 57 WHEN 5 THEN COUNT( ALL - 94 ) * NULLIF ( NULLIF ( - NULLIF ( + 88, + NULLIF ( 29, + 20 * 60 ) ), SUM( ALL ( - 95 ) ) + 85 * 44 ) * 31, - 61 ) WHEN COUNT( * ) + + COUNT( * ) THEN NULL ELSE + 6 - - 17 END + + 67 * 79 IS NULL THEN NULL ELSE NULL END + 17 * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT + 77 - + CASE WHEN NOT 76 < NULL THEN 88 + - COUNT ( * ) * 24 + - NULLIF ( - 63, + CASE + 46 WHEN - + 44 * - 4 * - 17 - - COUNT ( * ) THEN + NULLIF ( + 23, 90 ) + COUNT ( * ) END * 4 ) WHEN NOT CASE + 57 WHEN 5 THEN COUNT ( ALL - 94 ) * NULLIF ( NULLIF ( - NULLIF ( + 88, + NULLIF ( 29, + 20 * 60 ) ), SUM ( ALL ( - 95 ) ) + 85 * 44 ) * 31, - 61 ) WHEN COUNT ( * ) + + COUNT ( * ) THEN NULL ELSE + 6 - - 17 END + + 67 * 79 IS NULL THEN NULL ELSE NULL END + 17 * + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT - MIN( DISTINCT + - 6 ) * COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-1383
SELECT - MIN ( DISTINCT + - 6 ) * COUNT ( * )
----
6

query I rowsort
SELECT DISTINCT - 13 - + ( + + 87 )
----
-100

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT DISTINCT + ( - CASE - - ( - CASE + 59 WHEN - 10 + + 31 * + + 34 THEN - - COUNT( * ) + + MAX( + 57 ) WHEN + COALESCE ( + 30, 55 ) + - ( + 68 + - 65 ) THEN - ( 83 ) WHEN + 25 + CASE 49 WHEN + 45 THEN + 2 ELSE NULL END / ( 54 * + 71 ) THEN NULL END ) WHEN 50 THEN NULL WHEN 61 + 32 THEN - 68 END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1386
SELECT DISTINCT + ( - CASE - - ( - CASE + 59 WHEN - 10 + + 31 * + + 34 THEN - - COUNT ( * ) + + MAX ( + 57 ) WHEN + COALESCE ( + 30, 55 ) + - ( + 68 + - 65 ) THEN - ( 83 ) WHEN + 25 + CASE 49 WHEN + 45 THEN + 2 ELSE NULL END / ( 54 * + 71 ) THEN NULL END ) WHEN 50 THEN NULL WHEN 61 + 32 THEN - 68 END ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT DISTINCT + MIN( ALL 52 )
----
52

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT + MIN ( ALL 52 )
----
52

query I rowsort
SELECT + NULLIF ( - 56, - - 12 + + - ( + 9 ) ) AS col1
----
-56

query II rowsort
SELECT ALL + 63 AS col2, - 53 - + 83
----
63
-136

query I rowsort
SELECT + 92 * - ( + - 55 )
----
5060

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

query I rowsort
SELECT + 39 + 22 - + NULLIF ( 2, 82 ) AS col2
----
59

query I rowsort
SELECT + 56 * + + 44
----
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT 42 * - 97 * + - ( + - NULLIF ( 24, + COUNT( * ) ) ) + + - 17 col1
----
-97793

skipif mysql # not compatible
query I rowsort label-1394
SELECT 42 * - 97 * + - ( + - NULLIF ( 24, + COUNT ( * ) ) ) + + - 17 col1
----
-97793

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT NULLIF ( + + COUNT( * ), - 24 * + - 38 / + - COUNT( * ) + - 57 )
----
1

skipif mysql # not compatible
query I rowsort label-1395
SELECT NULLIF ( + + COUNT ( * ), - 24 * + - 38 / + - COUNT ( * ) + - 57 )
----
1

query II rowsort
SELECT ALL + + 75, 51 + - ( - + 76 ) AS col1
----
75
127

query I rowsort
SELECT - 78 * - 22 - + 52
----
1664

onlyif mysql # DIV for integer division: 
query I rowsort label-1398
SELECT DISTINCT - + 10 * + 12 + - - 90 DIV 32
----
-118

skipif mysql # not compatible
query I rowsort label-1398
SELECT DISTINCT - + 10 * + 12 + - - 90 / 32
----
-118

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1400
SELECT ALL + 69 * - SUM( CAST( NULL AS SIGNED ) ) + + + 78 + + - 1 * + 67 * - - 11 / 43 * + - 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL + 69 * - SUM ( CAST ( NULL AS INTEGER ) ) + + + 78 + + - 1 * + 67 * - - 11 / 43 * + - 5 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1401
SELECT + 99 + - - 97 * 17 DIV 41 * + COUNT( * )
----
139

skipif mysql # not compatible
query I rowsort label-1401
SELECT + 99 + - - 97 * 17 / 41 * + COUNT ( * )
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1402
SELECT - + COALESCE ( + + ( - 27 ), + CAST( + + COUNT( 4 ) AS SIGNED ) )
----
27

skipif mysql # not compatible
query I rowsort label-1402
SELECT - + COALESCE ( + + ( - 27 ), + CAST ( + + COUNT ( 4 ) AS INTEGER ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT DISTINCT - MIN( ALL - 62 )
----
62

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT - MIN ( ALL - 62 )
----
62

query I rowsort
SELECT ALL + 38 + - + 85
----
-47

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1406
SELECT - 44 * + CAST( NULL AS DECIMAL ) + COUNT( DISTINCT 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT - 44 * + CAST ( NULL AS REAL ) + COUNT ( DISTINCT 93 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT ALL - 94 * 28 + - 82 + - ( - 23 ) * + ( - + COUNT( * ) ) AS col2
----
-2737

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL - 94 * 28 + - 82 + - ( - 23 ) * + ( - + COUNT ( * ) ) AS col2
----
-2737

query I rowsort
SELECT ALL + 44 - + - 55 + - + 24 AS col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1409
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, ( + 52 ) AS col2
----
NULL
52

skipif mysql # not compatible
query II rowsort label-1409
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, ( + 52 ) AS col2
----
NULL
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT - 82 - - NULLIF ( CASE - 20 WHEN 47 THEN + 32 END, - 4 * 36 ) + + 16 / 48 * + - MAX( ALL 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1410
SELECT - 82 - - NULLIF ( CASE - 20 WHEN 47 THEN + 32 END, - 4 * 36 ) + + 16 / 48 * + - MAX ( ALL 44 )
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1411
SELECT DISTINCT NULLIF ( - - CAST ( NULL AS INTEGER ), + CAST ( + + COUNT ( * ) AS INTEGER ) ), 0 col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT DISTINCT NULLIF ( CASE - 12 WHEN 74 * + 52 THEN 53 / + - 36 + + + 0 + - 47 + - 66 ELSE 49 END, + MAX( ALL 23 ) )
----
49

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT NULLIF ( CASE - 12 WHEN 74 * + 52 THEN 53 / + - 36 + + + 0 + - 47 + - 66 ELSE 49 END, + MAX ( ALL 23 ) )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT - 23 + - 94 - COUNT( * )
----
-118

skipif mysql # not compatible
query I rowsort label-1413
SELECT - 23 + - 94 - COUNT ( * )
----
-118

query I rowsort
SELECT DISTINCT + 55 * + 10 * - - 44 * + ( + 16 )
----
387200

query I rowsort
SELECT - 75 + 13
----
-62

query I rowsort
SELECT ALL + NULLIF ( - 86, 36 ) * + 97
----
-8342

query I rowsort
SELECT DISTINCT + ( 12 ) * 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1418
SELECT - 39 * + 19 * + COUNT( ALL 36 ), 57 DIV - - 93 AS col0
----
-741
0

skipif mysql # not compatible
query II rowsort label-1418
SELECT - 39 * + 19 * + COUNT ( ALL 36 ), 57 / - - 93 AS col0
----
-741
0

query I rowsort
SELECT + 78 * - + 47 + + 31
----
-3635

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1420
SELECT ALL + 70 DIV + 96 + + MAX( DISTINCT - + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL + 70 / + 96 + + MAX ( DISTINCT - + 49 )
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-1421
SELECT DISTINCT - + 33 DIV - + 26 + - 8 + + 53 * + + 65 AS col0
----
3438

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT - + 33 / - + 26 + - 8 + + 53 * + + 65 AS col0
----
3438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1422
SELECT ALL + - 66 / - 83 + 14 * + 22 + + 47 * - 24 * - 28 + - CASE - 22 WHEN - CASE 23 WHEN - CASE 61 WHEN COUNT( * ) * - 55 THEN NULL WHEN 48 THEN + 11 ELSE ( + MIN( - 78 ) ) + - 35 * + 10 END THEN + CAST( NULL AS SIGNED ) / - 65 ELSE + 95 END + 70 * 51 THEN NULL WHEN + 17 THEN NULL WHEN CASE - 0 WHEN - 44 THEN NULL WHEN + COUNT( ALL CAST( NULL AS SIGNED ) ) THEN - 97 + 73 ELSE NULL END + CAST( NULL AS SIGNED ) THEN - 78 ELSE NULL END + COUNT( * ) / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL + - 66 / - 83 + 14 * + 22 + + 47 * - 24 * - 28 + - CASE - 22 WHEN - CASE 23 WHEN - CASE 61 WHEN COUNT ( * ) * - 55 THEN NULL WHEN 48 THEN + 11 ELSE ( + MIN ( - 78 ) ) + - 35 * + 10 END THEN + CAST ( NULL AS INTEGER ) / - 65 ELSE + 95 END + 70 * 51 THEN NULL WHEN + 17 THEN NULL WHEN CASE - 0 WHEN - 44 THEN NULL WHEN + COUNT ( ALL CAST ( NULL AS INTEGER ) ) THEN - 97 + 73 ELSE NULL END + CAST ( NULL AS INTEGER ) THEN - 78 ELSE NULL END + COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1423
SELECT + SUM ( + - 8 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1424
SELECT DISTINCT + COUNT( * ) + - NULLIF ( CAST( NULL AS SIGNED ), - 29 * 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1424
SELECT DISTINCT + COUNT ( * ) + - NULLIF ( CAST ( NULL AS INTEGER ), - 29 * 97 )
----
NULL

query I rowsort
SELECT + 84 * + + 55 col1
----
4620

query I rowsort
SELECT + 67 + 37 * + 22 + - - 80 AS col1
----
961

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT ALL + COALESCE ( COUNT( * ), + 48 ) - - 66
----
67

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL + COALESCE ( COUNT ( * ), + 48 ) - - 66
----
67

query II rowsort
SELECT ALL 89 * + + 32 AS col0, 83 * 2 * - 83 col0
----
2848
-13778

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT + 42 + + - MIN( - + 47 ) + - 85 * + 11 AS col0
----
-846

skipif mysql # not compatible
query I rowsort label-1429
SELECT + 42 + + - MIN ( - + 47 ) + - 85 * + 11 AS col0
----
-846

onlyif mysql # DIV for integer division: 
query I rowsort label-1430
SELECT 30 DIV 60 * + + 86 + - 50 + + 28
----
-22

skipif mysql # not compatible
query I rowsort label-1430
SELECT 30 / 60 * + + 86 + - 50 + + 28
----
-22

query I rowsort
SELECT 61 + + + 80 - - 36 AS col1
----
177

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

query I rowsort
SELECT 10 - - 83 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT 28 + + ( - + COUNT( * ) ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-1434
SELECT 28 + + ( - + COUNT ( * ) ) AS col0
----
27

query I rowsort
SELECT ALL - 14 * - + 8 AS col0
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-1436
SELECT 2 DIV 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1436
SELECT 2 / 34 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT ALL 11 * ( + COUNT( * ) ) col1
----
11

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL 11 * ( + COUNT ( * ) ) col1
----
11

query II rowsort
SELECT DISTINCT 63, 68 col2
----
63
68

query I rowsort
SELECT DISTINCT 46 * - 1 AS col1
----
-46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT 98 - NULLIF ( + 96, + MAX( + 1 ) ) * + + ( + 50 ) AS col1
----
-4702

skipif mysql # not compatible
query I rowsort label-1441
SELECT 98 - NULLIF ( + 96, + MAX ( + 1 ) ) * + + ( + 50 ) AS col1
----
-4702

query I rowsort
SELECT 37 * + - 42 AS col0
----
-1554

query I rowsort
SELECT ALL - 78 + + 89
----
11

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

skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + ( + - 67 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT ALL - MAX( + + 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL - MAX ( + + 94 )
----
-94

query I rowsort
SELECT 52 * - - 94 AS col2
----
4888

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

skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT 50 + - COUNT ( * ) AS col0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1448
SELECT 84 + - - 9 DIV + 73 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-1448
SELECT 84 + - - 9 / + 73 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1449
SELECT 93 * + CAST( - ( - 68 ) AS SIGNED ) - COUNT( * ), - 60 AS col1
----
6323
-60

skipif mysql # not compatible
query II rowsort label-1449
SELECT 93 * + CAST ( - ( - 68 ) AS INTEGER ) - COUNT ( * ), - 60 AS col1
----
6323
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-1450
SELECT + 81 + + 96 + - ( + 31 ) + + 10 AS col0, - SUM( ALL + 39 ) AS col0
----
156
-39

skipif mysql # not compatible
query II rowsort label-1450
SELECT + 81 + + 96 + - ( + 31 ) + + 10 AS col0, - SUM ( ALL + 39 ) AS col0
----
156
-39

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1451
SELECT CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) - + 85 + + 66 + + 77 / + 68 + 26 + ( - - 40 ) / - CAST( + 23 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1451
SELECT CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) - + 85 + + 66 + + 77 / + 68 + 26 + ( - - 40 ) / - CAST ( + 23 AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL - 38 - + 81 + 93
----
-26

query I rowsort
SELECT 7 * ( - + 81 ) AS col0
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT ALL - - MAX( 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL - - MAX ( 57 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT DISTINCT - ( + - 94 ) - - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT - ( + - 94 ) - - COUNT ( * )
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1456
SELECT - COALESCE ( - 57, - - 30 * NULLIF ( + COALESCE ( + 70, COUNT( * ) * - + 75 DIV - 15, - - 8 - 83 ), + - 85 ) + - 25, + 24 + - - ( 25 ) ) + 70
----
127

skipif mysql # not compatible
query I rowsort label-1456
SELECT - COALESCE ( - 57, - - 30 * NULLIF ( + COALESCE ( + 70, COUNT ( * ) * - + 75 / - 15, - - 8 - 83 ), + - 85 ) + - 25, + 24 + - - ( 25 ) ) + 70
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1457
SELECT ALL - - 35 - + CAST( + 93 AS SIGNED ) - - 10 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL - - 35 - + CAST ( + 93 AS INTEGER ) - - 10 AS col2
----
-48

query I rowsort
SELECT DISTINCT - - NULLIF ( + + ( + 77 ), - 44 * - - 65 * + + 53 + - 10 ) AS col1
----
77

query I rowsort
SELECT 45 + + - 78
----
-33

query I rowsort
SELECT 32 * + + 71 AS col2
----
2272

query II rowsort
SELECT - - 63 AS col0, 23 + + - 60 * + 79 AS col2
----
63
-4717

query I rowsort
SELECT + ( + - 11 ) + - - 59 * - 36 * + - ( - 80 )
----
-169931

query I rowsort
SELECT 25 + + - 13
----
12

query I rowsort
SELECT - 81 + 84 col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1465
SELECT - CAST( + + COUNT( * ) AS SIGNED ) * 35, COUNT( * ) AS col1
----
-35
1

skipif mysql # not compatible
query II rowsort label-1465
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) * 35, COUNT ( * ) AS col1
----
-35
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1466
SELECT ALL MAX( - CASE + 93 WHEN COALESCE ( - - CAST( NULL AS SIGNED ), - 53 / - 99 + 97 ) THEN NULL WHEN + + CAST( + 17 AS SIGNED ) + + 80 + + + 3 + - 89 * CASE + + 88 WHEN + 41 THEN + 59 ELSE NULL END THEN - 42 END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL MAX ( - CASE + 93 WHEN COALESCE ( - - CAST ( NULL AS INTEGER ), - 53 / - 99 + 97 ) THEN NULL WHEN + + CAST ( + 17 AS INTEGER ) + + 80 + + + 3 + - 89 * CASE + + 88 WHEN + 41 THEN + 59 ELSE NULL END THEN - 42 END ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT DISTINCT MIN( - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-1467
SELECT DISTINCT MIN ( - 46 )
----
-46

query I rowsort
SELECT ALL 5 + - 94 * + 32 * + 65 AS col2
----
-195515

query II rowsort
SELECT 80 AS col0, 93 + - 98 + 78 * + + 86 + + 8 AS col1
----
80
6711

query I rowsort
SELECT 43 - 23 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT NULLIF ( 98, - SUM( DISTINCT + 24 ) ) + + 30 - + 97 * - 37 AS col0
----
3717

skipif mysql # not compatible
query I rowsort label-1471
SELECT NULLIF ( 98, - SUM ( DISTINCT + 24 ) ) + + 30 - + 97 * - 37 AS col0
----
3717

query III rowsort
SELECT - 78 AS col0, - 12, - 77 AS col1
----
-78
-12
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-1473
SELECT ALL ( - - 31 ) + - 9 * - + COALESCE ( - COUNT( DISTINCT 96 ), 19, 74 + - - 88 ) AS col1, - 76
----
22
-76

skipif mysql # not compatible
query II rowsort label-1473
SELECT ALL ( - - 31 ) + - 9 * - + COALESCE ( - COUNT ( DISTINCT 96 ), 19, 74 + - - 88 ) AS col1, - 76
----
22
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT ALL 10 * - + ( - + COUNT( * ) ) * - + 24
----
-240

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL 10 * - + ( - + COUNT ( * ) ) * - + 24
----
-240

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

skipif mysql # not compatible
query I rowsort label-1475
SELECT 62 / COUNT ( * )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1476
SELECT 33 + + - NULLIF ( 42, + 6 ) + COUNT( * ) + ( ( + 40 ) ) - - 30 + 1 + - SUM( ALL + 53 ) DIV - 68
----
63

skipif mysql # not compatible
query I rowsort label-1476
SELECT 33 + + - NULLIF ( 42, + 6 ) + COUNT ( * ) + ( ( + 40 ) ) - - 30 + 1 + - SUM ( ALL + 53 ) / - 68
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1477
SELECT ALL 86 AS col1, MIN( ALL + 17 ) - 22
----
86
-5

skipif mysql # not compatible
query II rowsort label-1477
SELECT ALL 86 AS col1, MIN ( ALL + 17 ) - 22
----
86
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT DISTINCT COUNT( + 85 ) + 33
----
34

skipif mysql # not compatible
query I rowsort label-1478
SELECT DISTINCT COUNT ( + 85 ) + 33
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT ALL ( 6 ) + - 15 + - + SUM( ALL 8 ) * - 62 * - 72
----
-35721

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL ( 6 ) + - 15 + - + SUM ( ALL 8 ) * - 62 * - 72
----
-35721

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1480
SELECT COALESCE ( - + 16, + 91 ) DIV + - COUNT( * ) + 64 + - COUNT( * ) + + 46 + + ( + 47 ) * 6 AS col0
----
407

skipif mysql # not compatible
query I rowsort label-1480
SELECT COALESCE ( - + 16, + 91 ) / + - COUNT ( * ) + 64 + - COUNT ( * ) + + 46 + + ( + 47 ) * 6 AS col0
----
407

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT + SUM( 57 ) * - NULLIF ( - 10, - 26 )
----
570

skipif mysql # not compatible
query I rowsort label-1481
SELECT + SUM ( 57 ) * - NULLIF ( - 10, - 26 )
----
570

onlyif mysql # aggregate syntax: 
query II rowsort label-1482
SELECT DISTINCT + 93 AS col1, COUNT( * )
----
93
1

skipif mysql # not compatible
query II rowsort label-1482
SELECT DISTINCT + 93 AS col1, COUNT ( * )
----
93
1

query I rowsort
SELECT + + 36 * + 20 * 4 * - 87 AS col1
----
-250560

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT ALL + MIN( DISTINCT 5 )
----
5

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL + MIN ( DISTINCT 5 )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1485
SELECT DISTINCT + 50 AS col0, COUNT( + 13 )
----
50
1

skipif mysql # not compatible
query II rowsort label-1485
SELECT DISTINCT + 50 AS col0, COUNT ( + 13 )
----
50
1

query I rowsort
SELECT DISTINCT - 48 * 43 + 34
----
-2030

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1487
SELECT + 68 - CAST( 95 AS SIGNED ) + 33 + - 44
----
-38

skipif mysql # not compatible
query I rowsort label-1487
SELECT + 68 - CAST ( 95 AS INTEGER ) + 33 + - 44
----
-38

query I rowsort
SELECT - NULLIF ( - 37, - 12 + - 88 ) * 20 * 36
----
26640

query I rowsort
SELECT ALL - 15 * - + 53 AS col1
----
795

query II rowsort
SELECT 24, 51 * - ( 43 ) col0
----
24
-2193

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1492
SELECT 61 AS col0, COUNT( * ) DIV + 81 * + 45
----
61
0

skipif mysql # not compatible
query II rowsort label-1492
SELECT 61 AS col0, COUNT ( * ) / + 81 * + 45
----
61
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1493
SELECT - - 60 DIV - 33
----
-1

skipif mysql # not compatible
query I rowsort label-1493
SELECT - - 60 / - 33
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1495
SELECT DISTINCT - - 57 DIV 28 * - 68 * + + 34 AS col0
----
-4624

skipif mysql # not compatible
query I rowsort label-1495
SELECT DISTINCT - - 57 / 28 * - 68 * + + 34 AS col0
----
-4624

query I rowsort
SELECT - 24 + + 16 AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1497
SELECT - 0 + - + 41 + + CAST( 80 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-1497
SELECT - 0 + - + 41 + + CAST ( 80 AS INTEGER )
----
39

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

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

query II rowsort
SELECT - 23 + - 25 col2, 11
----
-48
11

query I rowsort
SELECT - 40 * - 38
----
1520

onlyif mysql # aggregate syntax: 
query II rowsort label-1501
SELECT ALL 52 + + COUNT( * ) + 91, 71 AS col1
----
144
71

skipif mysql # not compatible
query II rowsort label-1501
SELECT ALL 52 + + COUNT ( * ) + 91, 71 AS col1
----
144
71

onlyif mysql # aggregate syntax: 
query II rowsort label-1502
SELECT - MAX( - + 62 ), + COUNT( * ) * + - 98 col1
----
62
-98

skipif mysql # not compatible
query II rowsort label-1502
SELECT - MAX ( - + 62 ), + COUNT ( * ) * + - 98 col1
----
62
-98

query I rowsort
SELECT ALL + 79 + - - 91 * 74 AS col2
----
6813

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT DISTINCT - NULLIF ( 84, + 9 ) + - 50 * - COUNT( * ) * - - 62 - 41
----
2975

skipif mysql # not compatible
query I rowsort label-1504
SELECT DISTINCT - NULLIF ( 84, + 9 ) + - 50 * - COUNT ( * ) * - - 62 - 41
----
2975

query I rowsort
SELECT + 10 * 76 * - ( - 34 ) AS col2
----
25840

query I rowsort
SELECT ALL - 6 + 34 AS col1
----
28

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

query I rowsort
SELECT ALL 98 + 21 AS col1
----
119

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT + - ( - MIN( DISTINCT + - 78 ) ) * + 72 - + 52
----
-5668

skipif mysql # not compatible
query I rowsort label-1510
SELECT + - ( - MIN ( DISTINCT + - 78 ) ) * + 72 - + 52
----
-5668

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1511
SELECT ALL - 21 * + 28 AS col0, - 25 + + CAST( NULL AS SIGNED ) AS col1
----
-588
NULL

skipif mysql # not compatible
query II rowsort label-1511
SELECT ALL - 21 * + 28 AS col0, - 25 + + CAST ( NULL AS INTEGER ) AS col1
----
-588
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1512
SELECT + - CAST( NULL AS SIGNED ) - + COUNT( * ) AS col0, 6 * 18 AS col0
----
NULL
108

skipif mysql # not compatible
query II rowsort label-1512
SELECT + - CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col0, 6 * 18 AS col0
----
NULL
108

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT ALL 56 * 86 * - + COUNT( * ) AS col2
----
-4816

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL 56 * 86 * - + COUNT ( * ) AS col2
----
-4816

query I rowsort
SELECT DISTINCT + ( + 52 ) * - 26 AS col2
----
-1352

onlyif mysql # DIV for integer division: 
query I rowsort label-1515
SELECT - 22 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-1515
SELECT - 22 / + 51
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT DISTINCT - MAX( DISTINCT 52 ) * CASE - 11 WHEN + + COUNT( * ) THEN - 25 ELSE NULL END + 5 + + 73 + - 41 + 86 * - ( 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT - MAX ( DISTINCT 52 ) * CASE - 11 WHEN + + COUNT ( * ) THEN - 25 ELSE NULL END + 5 + + 73 + - 41 + 86 * - ( 71 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT ALL + COUNT( * ) * - COUNT( * ) * - 89 * 41 + 9 + + NULLIF ( SUM( DISTINCT + - 38 ), 47 * + 60 - - 75 + COALESCE ( - NULLIF ( 84, + - 6 ), + 5 ) )
----
3620

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * - 89 * 41 + 9 + + NULLIF ( SUM ( DISTINCT + - 38 ), 47 * + 60 - - 75 + COALESCE ( - NULLIF ( 84, + - 6 ), + 5 ) )
----
3620

query I rowsort
SELECT DISTINCT - + 71 * - 81 + 53 AS col2
----
5804

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1520
SELECT - 59 + + ( + - 80 ) AS col0, + 45 DIV - - COUNT( * ) AS col0
----
-139
45

skipif mysql # not compatible
query II rowsort label-1520
SELECT - 59 + + ( + - 80 ) AS col0, + 45 / - - COUNT ( * ) AS col0
----
-139
45

query I rowsort
SELECT ALL + ( + 36 ) * + 84
----
3024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1522
SELECT ALL - 87 * 75 + 66 + COUNT( * ) DIV - 49 AS col1
----
-6459

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL - 87 * 75 + 66 + COUNT ( * ) / - 49 AS col1
----
-6459

onlyif mysql # aggregate syntax: 
query II rowsort label-1523
SELECT - 7, + COUNT( * ) * - 55 AS col0
----
-7
-55

skipif mysql # not compatible
query II rowsort label-1523
SELECT - 7, + COUNT ( * ) * - 55 AS col0
----
-7
-55

query I rowsort
SELECT + 23 * - 14
----
-322

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT ALL - 54 * + + COUNT( * ) + - ( - 40 )
----
-14

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL - 54 * + + COUNT ( * ) + - ( - 40 )
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1528
SELECT ALL + 47 DIV - NULLIF ( - 53, + 86 * + - 77 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL + 47 / - NULLIF ( - 53, + 86 * + - 77 ) AS col0
----
0

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

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

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

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

query I rowsort
SELECT ALL 57 * - 66
----
-3762

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT 42 + + COUNT( + - 80 )
----
43

skipif mysql # not compatible
query I rowsort label-1532
SELECT 42 + + COUNT ( + - 80 )
----
43

query I rowsort
SELECT 78 - - - 96 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT ALL - 75 * - COUNT( * ) * + + 39 AS col1
----
2925

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL - 75 * - COUNT ( * ) * + + 39 AS col1
----
2925

onlyif mysql # aggregate syntax: 
query II rowsort label-1535
SELECT 52 + - MIN( DISTINCT + 98 ) AS col1, 3
----
-46
3

skipif mysql # not compatible
query II rowsort label-1535
SELECT 52 + - MIN ( DISTINCT + 98 ) AS col1, 3
----
-46
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT DISTINCT - COUNT( DISTINCT - 43 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT - COUNT ( DISTINCT - 43 ) AS col2
----
-1

query I rowsort
SELECT ALL 87 * 4 AS col1
----
348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1538
SELECT ALL + 14 * + CASE + CAST( NULL AS SIGNED ) WHEN + + COUNT( * ) THEN NULL WHEN - 19 THEN - 6 WHEN + 52 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL + 14 * + CASE + CAST ( NULL AS INTEGER ) WHEN + + COUNT ( * ) THEN NULL WHEN - 19 THEN - 6 WHEN + 52 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1539
SELECT 59 + - NULLIF ( - - CASE + + 9 WHEN - ( + ( + 47 ) ) THEN 59 END, + 32 ) AS col1, + COUNT( * ) - + 42 - + + 29 + CASE 59 WHEN + 0 THEN - 5 * 42 WHEN - 87 * 97 + + 43 THEN + 28 + - 65 / 5 ELSE NULL END + 56 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1539
SELECT 59 + - NULLIF ( - - CASE + + 9 WHEN - ( + ( + 47 ) ) THEN 59 END, + 32 ) AS col1, + COUNT ( * ) - + 42 - + + 29 + CASE 59 WHEN + 0 THEN - 5 * 42 WHEN - 87 * 97 + + 43 THEN + 28 + - 65 / 5 ELSE NULL END + 56 AS col0
----
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1541
SELECT + ( 8 ) / CAST( NULL AS SIGNED ) / + + ( 99 ) + 16 * CAST( NULL AS SIGNED ) / - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1541
SELECT + ( 8 ) / CAST ( NULL AS INTEGER ) / + + ( 99 ) + 16 * CAST ( NULL AS INTEGER ) / - 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT - 11 * - COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1542
SELECT - 11 * - COUNT ( * ) AS col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1543
SELECT - 59 DIV - NULLIF ( - - 31, + + 84 - - 48 * - CASE 12 WHEN - 80 THEN + 79 ELSE NULL END + + 57 + CAST( NULL AS SIGNED ) + ( + 50 ) * + 55 - - 11 * + + COUNT( - 10 ) * - ( + 65 ) + + ( + 41 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1543
SELECT - 59 / - NULLIF ( - - 31, + + 84 - - 48 * - CASE 12 WHEN - 80 THEN + 79 ELSE NULL END + + 57 + CAST ( NULL AS INTEGER ) + ( + 50 ) * + 55 - - 11 * + + COUNT ( - 10 ) * - ( + 65 ) + + ( + 41 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1544
SELECT 29 * 4 + + - 30 - + CAST( 16 AS SIGNED ) * - - 88 / - + 83 * - ( 91 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1544
SELECT 29 * 4 + + - 30 - + CAST ( 16 AS INTEGER ) * - - 88 / - + 83 * - ( 91 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT ALL + - 48 + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL + - 48 + COUNT ( * )
----
-47

query I rowsort
SELECT ALL NULLIF ( + 90, + ( 66 ) ) + 90
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT ALL 30 + + COUNT( * ) * - 43
----
-13

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL 30 + + COUNT ( * ) * - 43
----
-13

query I rowsort
SELECT DISTINCT - 16 + 91 + 31 * - + 5 AS col1
----
-80

query I rowsort
SELECT DISTINCT 74 * 80 col0
----
5920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1551
SELECT DISTINCT + 46 + - CAST( 31 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT + 46 + - CAST ( 31 AS INTEGER )
----
15

query I rowsort
SELECT ALL - ( - + 66 ) + + + 72 + - + 40 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT COUNT( * ) - + 47 * - 83 + - 87 * 80
----
-3058

skipif mysql # not compatible
query I rowsort label-1553
SELECT COUNT ( * ) - + 47 * - 83 + - 87 * 80
----
-3058

query I rowsort
SELECT 53 + + - 96 * 40 - - 96 col1
----
-3691

query I rowsort
SELECT 56 * - 21 * + 23 AS col0
----
-27048

query I rowsort
SELECT ALL - 24 - - ( + + 39 ) + + 62 + + 70 * + + 19
----
1407

query I rowsort
SELECT 43 + + 57
----
100

query I rowsort
SELECT 52 + - 42 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT DISTINCT + 61 - - - 95 + - CASE + 59 WHEN - - 1 THEN - - 95 * + 54 WHEN + 55 THEN - 61 * - COUNT( * ) + + 60 / + 19 * + - 1 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT + 61 - - - 95 + - CASE + 59 WHEN - - 1 THEN - - 95 * + 54 WHEN + 55 THEN - 61 * - COUNT ( * ) + + 60 / + 19 * + - 1 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1561
SELECT 71 * - CAST( + 25 AS SIGNED )
----
-1775

skipif mysql # not compatible
query I rowsort label-1561
SELECT 71 * - CAST ( + 25 AS INTEGER )
----
-1775

query I rowsort
SELECT 78 + - 43 * 24 AS col2
----
-954

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT DISTINCT + 43 - + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-1563
SELECT DISTINCT + 43 - + COUNT ( * )
----
42

query I rowsort
SELECT 87 + - 88 AS col2
----
-1

query I rowsort
SELECT DISTINCT 26 * 30
----
780

query I rowsort
SELECT + ( - 87 ) * + 31 * 49 * 66 AS col0
----
-8722098

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT 76 * MIN( 67 ) AS col0
----
5092

skipif mysql # not compatible
query I rowsort label-1567
SELECT 76 * MIN ( 67 ) AS col0
----
5092

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

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL + COUNT ( * ) + + 6 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT NULLIF ( + ( - 70 ), + - COUNT( * ) ) - 58
----
-128

skipif mysql # not compatible
query I rowsort label-1569
SELECT NULLIF ( + ( - 70 ), + - COUNT ( * ) ) - 58
----
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1570
SELECT 97 * + 99 AS col0, 28 DIV COUNT( * ) * + + 99 + + + 65 - 27 * - 49 * - 58 + 26 col1
----
9603
-73871

skipif mysql # not compatible
query II rowsort label-1570
SELECT 97 * + 99 AS col0, 28 / COUNT ( * ) * + + 99 + + + 65 - 27 * - 49 * - 58 + 26 col1
----
9603
-73871

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

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

query I rowsort
SELECT ALL + CASE - 62 WHEN + 55 THEN 54 + + 35 ELSE NULL END * - 68 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT + COALESCE ( - + 89, - - ( 58 ) ) * SUM( 85 )
----
-7565

skipif mysql # not compatible
query I rowsort label-1573
SELECT + COALESCE ( - + 89, - - ( 58 ) ) * SUM ( 85 )
----
-7565

query I rowsort
SELECT ALL 21 * - - 45 + - 26 col2
----
919

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1575
SELECT CASE - COUNT( - CAST( NULL AS SIGNED ) ) WHEN - - CASE + + 35 WHEN + 0 * - + 10 THEN 6 ELSE NULL END * + CAST( NULL AS SIGNED ) THEN 53 WHEN + + ( + COUNT( * ) ) + + + 9 THEN + - CASE - - 54 WHEN - + 99 THEN - - COUNT( * ) WHEN CASE - 63 WHEN 44 THEN 71 WHEN - MAX( DISTINCT - 72 ) * 14 - - 80 THEN NULL ELSE ( COUNT( * ) ) - - 91 END THEN + 46 + + ( 91 + + CAST( - COUNT( * ) AS SIGNED ) ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1575
SELECT CASE - COUNT ( - CAST ( NULL AS INTEGER ) ) WHEN - - CASE + + 35 WHEN + 0 * - + 10 THEN 6 ELSE NULL END * + CAST ( NULL AS INTEGER ) THEN 53 WHEN + + ( + COUNT ( * ) ) + + + 9 THEN + - CASE - - 54 WHEN - + 99 THEN - - COUNT ( * ) WHEN CASE - 63 WHEN 44 THEN 71 WHEN - MAX ( DISTINCT - 72 ) * 14 - - 80 THEN NULL ELSE ( COUNT ( * ) ) - - 91 END THEN + 46 + + ( 91 + + CAST ( - COUNT ( * ) AS INTEGER ) ) END END
----
NULL

query I rowsort
SELECT ALL + - 84 * + - 77 + - + 36
----
6432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1577
SELECT + - CASE CASE + - 38 WHEN + - 34 + - 11 + + - 47 THEN 44 END WHEN - - 42 * - + 92 * + MAX( ALL + - CAST( NULL AS SIGNED ) ) THEN - ( - 24 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1577
SELECT + - CASE CASE + - 38 WHEN + - 34 + - 11 + + - 47 THEN 44 END WHEN - - 42 * - + 92 * + MAX ( ALL + - CAST ( NULL AS INTEGER ) ) THEN - ( - 24 ) END
----
NULL

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

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

query I rowsort
SELECT ALL - - 85 * + 71 + - - 40 + - 2 * 32 * + + 82 AS col2
----
827

onlyif mysql # DIV for integer division: 
query I rowsort label-1580
SELECT - 12 DIV + 54 + - ( + 61 ) + - ( 19 ) + + + 15 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-1580
SELECT - 12 / + 54 + - ( + 61 ) + - ( 19 ) + + + 15 AS col1
----
-65

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

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL - - MAX ( ALL - 88 )
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1582
SELECT 55 DIV COUNT( * ) - + ( 79 ) + - 75 col1
----
-99

skipif mysql # not compatible
query I rowsort label-1582
SELECT 55 / COUNT ( * ) - + ( 79 ) + - 75 col1
----
-99

query I rowsort
SELECT DISTINCT 94 / + ( + CASE - ( + - 29 ) WHEN - ( + + 60 ) THEN 92 * - 10 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT 56 - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-1584
SELECT 56 - COUNT ( * )
----
55

query I rowsort
SELECT ALL 29 * + 12
----
348

query I rowsort
SELECT ALL 88 - - - 57
----
31

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1588
SELECT DISTINCT - CASE - 68 WHEN + + 99 + - ( - 33 ) * + - COUNT( * ) THEN - + 82 * - 43 - 33 WHEN - + 56 + COALESCE ( - 50, 96 + - ( + 72 ), + COUNT( * ) ) THEN NULL ELSE - 47 * - + COUNT( * ) + NULLIF ( - 39, COUNT( * ) * + 70 ) END DIV - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1588
SELECT DISTINCT - CASE - 68 WHEN + + 99 + - ( - 33 ) * + - COUNT ( * ) THEN - + 82 * - 43 - 33 WHEN - + 56 + COALESCE ( - 50, 96 + - ( + 72 ), + COUNT ( * ) ) THEN NULL ELSE - 47 * - + COUNT ( * ) + NULLIF ( - 39, COUNT ( * ) * + 70 ) END / - 91 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1589
SELECT ALL 93 * - MAX( - 68 ) DIV 17 + - 35 AS col0
----
337

skipif mysql # not compatible
query I rowsort label-1589
SELECT ALL 93 * - MAX ( - 68 ) / 17 + - 35 AS col0
----
337

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT + 75 + + - COUNT( + - 64 ) col1
----
74

skipif mysql # not compatible
query I rowsort label-1590
SELECT + 75 + + - COUNT ( + - 64 ) col1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-1591
SELECT + 39 DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-1591
SELECT + 39 / + 94
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1592
SELECT - MAX( - 81 ) + + 70 DIV 42
----
82

skipif mysql # not compatible
query I rowsort label-1592
SELECT - MAX ( - 81 ) + + 70 / 42
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1593
SELECT DISTINCT CAST( + 77 AS SIGNED ) * - 96 + + - 40 * + 40
----
-8992

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT CAST ( + 77 AS INTEGER ) * - 96 + + - 40 * + 40
----
-8992

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT + 21 - 78 * COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-1594
SELECT + 21 - 78 * COUNT ( * )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1595
SELECT + ( 69 ) * + CAST( - ( - 75 ) AS SIGNED ) * - COALESCE ( + ( 99 ), - 92 * + MIN( DISTINCT - - ( 65 ) ) * - MIN( + 77 ) + - COUNT( * ) DIV COUNT( * ), + 85 )
----
-512325

skipif mysql # not compatible
query I rowsort label-1595
SELECT + ( 69 ) * + CAST ( - ( - 75 ) AS INTEGER ) * - COALESCE ( + ( 99 ), - 92 * + MIN ( DISTINCT - - ( 65 ) ) * - MIN ( + 77 ) + - COUNT ( * ) / COUNT ( * ), + 85 )
----
-512325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1596
SELECT + CAST( COUNT( * ) AS SIGNED ) + 16 * - - 12
----
193

skipif mysql # not compatible
query I rowsort label-1596
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + 16 * - - 12
----
193

onlyif mysql # DIV for integer division: 
query II rowsort label-1597
SELECT ALL + 99 AS col2, ( + 39 ) DIV 72 AS col0
----
99
0

skipif mysql # not compatible
query II rowsort label-1597
SELECT ALL + 99 AS col2, ( + 39 ) / 72 AS col0
----
99
0

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

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

query I rowsort
SELECT - + ( + + 42 ) * - - ( + ( + NULLIF ( + + 39, + NULLIF ( - NULLIF ( 49, - - 41 - + + 91 ), - 21 + - 4 * + 82 ) * 27 * 76 ) ) ) + 47 * - ( - + 58 ) AS col0
----
1088

onlyif mysql # aggregate syntax: 
query II rowsort label-1600
SELECT + 5 + 97 + - + 16 + + 2 * - + SUM( ALL + 86 ) AS col1, COUNT( * ) * - 0 + - COALESCE ( + - NULLIF ( + 58, 79 ), + ( 62 ), 4 + 92 )
----
-86
58

skipif mysql # not compatible
query II rowsort label-1600
SELECT + 5 + 97 + - + 16 + + 2 * - + SUM ( ALL + 86 ) AS col1, COUNT ( * ) * - 0 + - COALESCE ( + - NULLIF ( + 58, 79 ), + ( 62 ), 4 + 92 )
----
-86
58

query II rowsort
SELECT - 25 AS col2, 80
----
-25
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT ALL - MIN( ALL 87 ) + 40 + COUNT( * ) + ( + 29 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL - MIN ( ALL 87 ) + 40 + COUNT ( * ) + ( + 29 ) AS col2
----
-17

query I rowsort
SELECT ALL + - 61 + 30 AS col0
----
-31

query I rowsort
SELECT - + 1 + - 94 - ( - - 45 )
----
-140

query I rowsort
SELECT DISTINCT 34 + + 67
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-1606
SELECT ALL - + 48 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-1606
SELECT ALL - + 48 / + 80
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1607
SELECT DISTINCT - 16 DIV - 78 + + - COALESCE ( - + 6, - CASE AVG ( DISTINCT - 37 ) WHEN + NULLIF ( - 27, - ( - + 84 ) ) THEN - - 56 END * 8 * - COUNT( + + 75 ) * + 9 + + - 17 )
----
6

skipif mysql # not compatible
query I rowsort label-1607
SELECT DISTINCT - 16 / - 78 + + - COALESCE ( - + 6, - CASE AVG ( DISTINCT - 37 ) WHEN + NULLIF ( - 27, - ( - + 84 ) ) THEN - - 56 END * 8 * - COUNT ( + + 75 ) * + 9 + + - 17 )
----
6

query II rowsort
SELECT DISTINCT + + 56 AS col1, - 66 AS col2
----
56
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1609
SELECT - - CAST( + NULLIF ( 36, 99 ) AS SIGNED ) + + 87 col2
----
123

skipif mysql # not compatible
query I rowsort label-1609
SELECT - - CAST ( + NULLIF ( 36, 99 ) AS INTEGER ) + + 87 col2
----
123

query I rowsort
SELECT - 4 * + - 8
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1611
SELECT ALL - + MIN( DISTINCT + 16 ) DIV - + 6 + 62 + - - 13 + - + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL - + MIN ( DISTINCT + 16 ) / - + 6 + 62 + - - 13 + - + COUNT ( * )
----
76

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

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

query II rowsort
SELECT ALL - 89 * - - 98 * - - 75 - 63 AS col0, - 12 + - 70 AS col1
----
-654213
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT - 94 * + 44 * - - ( COUNT( * ) )
----
-4136

skipif mysql # not compatible
query I rowsort label-1614
SELECT - 94 * + 44 * - - ( COUNT ( * ) )
----
-4136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1615
SELECT ALL - CAST( - 36 AS SIGNED ) * - + 62 * 6 + - 52 AS col1
----
-13444

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL - CAST ( - 36 AS INTEGER ) * - + 62 * 6 + - 52 AS col1
----
-13444

query I rowsort
SELECT DISTINCT - 79 * + 68
----
-5372

onlyif mysql # DIV for integer division: 
query II rowsort label-1617
SELECT ALL + 17 AS col0, 1 DIV 64
----
17
0

skipif mysql # not compatible
query II rowsort label-1617
SELECT ALL + 17 AS col0, 1 / 64
----
17
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT DISTINCT + CASE - COALESCE ( + AVG ( 46 ), + 43 ) WHEN - 50 + + SUM( ALL - + 1 ) * + COALESCE ( 94, + + COUNT( * ) ) * 44 - - - 23 THEN - COUNT( DISTINCT + + NULLIF ( - 8, + 42 ) ) + - + 33 WHEN 62 - - + 12 THEN 44 + 66 WHEN 94 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT DISTINCT + CASE - COALESCE ( + AVG ( 46 ), + 43 ) WHEN - 50 + + SUM ( ALL - + 1 ) * + COALESCE ( 94, + + COUNT ( * ) ) * 44 - - - 23 THEN - COUNT ( DISTINCT + + NULLIF ( - 8, + 42 ) ) + - + 33 WHEN 62 - - + 12 THEN 44 + 66 WHEN 94 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT DISTINCT + CASE COUNT( * ) WHEN + + 87 THEN ( - 51 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT + CASE COUNT ( * ) WHEN + + 87 THEN ( - 51 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 34 - 27 + + ( + 82 ) * + 61
----
4941

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1621
SELECT DISTINCT 39 DIV + COALESCE ( - 76, - ( 4 ), ( + CASE - - ( + - 10 ) WHEN - - COUNT( * ) + + - 58 THEN NULL WHEN + 14 THEN NULLIF ( - SUM( + 35 ), 13 ) WHEN - 88 THEN + + COALESCE ( + 41, + 67 * + COUNT( * ) ) + + 19 * + 22 ELSE NULL END ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1621
SELECT DISTINCT 39 / + COALESCE ( - 76, - ( 4 ), ( + CASE - - ( + - 10 ) WHEN - - COUNT ( * ) + + - 58 THEN NULL WHEN + 14 THEN NULLIF ( - SUM ( + 35 ), 13 ) WHEN - 88 THEN + + COALESCE ( + 41, + 67 * + COUNT ( * ) ) + + 19 * + 22 ELSE NULL END ) ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-1622
SELECT + SUM ( 28 )
----
28

query I rowsort
SELECT ALL + ( NULLIF ( - - 37, - - 18 ) )
----
37

query I rowsort
SELECT ALL 74 * + 51 AS col1
----
3774

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT MAX( DISTINCT 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-1625
SELECT MAX ( DISTINCT 88 ) AS col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1626
SELECT ALL - 26 DIV - - COUNT( + 55 ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL - 26 / - - COUNT ( + 55 ) col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1627
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * - 70 + 3 AS col2, + 51 + - - 38 AS col1
----
73
89

skipif mysql # not compatible
query II rowsort label-1627
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * - 70 + 3 AS col2, + 51 + - - 38 AS col1
----
73
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT + MIN( + + 4 ) + SUM( - 6 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1628
SELECT + MIN ( + + 4 ) + SUM ( - 6 ) AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1629
SELECT DISTINCT - 17 DIV - ( - - 13 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT - 17 / - ( - - 13 ) AS col2
----
1

query II rowsort
SELECT ALL 92 AS col2, 74 * - 72
----
92
-5328

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

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

query I rowsort
SELECT ALL NULLIF ( + - ( - 47 ), + 91 ) * 59 + 11 AS col2
----
2784

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

query II rowsort
SELECT DISTINCT + ( + 45 ) AS col2, + 76 - - 59
----
45
135

query I rowsort
SELECT + - 91 + - + 39
----
-130

query I rowsort
SELECT DISTINCT 51 + COALESCE ( - + 16, + - 85 * + 64 + - 27 + + 10 + - 55 ) * + 14 * - 22 AS col1
----
4979

query I rowsort
SELECT ALL + 11 + + ( - 41 )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1638
SELECT + - 31 * + NULLIF ( 23, CAST( - 40 AS SIGNED ) + - 72 + + 2 / 19 * - MAX( ALL + + 48 ) ) * - + 37 AS col1
----
26381

skipif mysql # not compatible
query I rowsort label-1638
SELECT + - 31 * + NULLIF ( 23, CAST ( - 40 AS INTEGER ) + - 72 + + 2 / 19 * - MAX ( ALL + + 48 ) ) * - + 37 AS col1
----
26381

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT ALL + ( - ( - MAX( 1 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL + ( - ( - MAX ( 1 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT ALL 22 + - - 86 + - 37 - - + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-1640
SELECT ALL 22 + - - 86 + - 37 - - + COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT ALL - ( SUM( DISTINCT + + ( + 69 ) ) ) * 32 AS col1
----
-2208

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL - ( SUM ( DISTINCT + + ( + 69 ) ) ) * 32 AS col1
----
-2208

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

skipif mysql # not compatible
query I rowsort label-1642
SELECT + ( + NULLIF ( + - CAST ( NULL AS INTEGER ), COUNT ( * ) ) ) - COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT + 19 - 70 AS col0, - 76 * 23 AS col1
----
-51
-1748

query I rowsort
SELECT ALL 63 * - 78 + + 33 AS col0
----
-4881

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1645
SELECT + ( COUNT( ALL - 51 ) ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1645
SELECT + ( COUNT ( ALL - 51 ) ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT + - 4 * 18 * COUNT( * ) + - 77 + + 98 + - - 74 * - + 88
----
-6563

skipif mysql # not compatible
query I rowsort label-1647
SELECT + - 4 * 18 * COUNT ( * ) + - 77 + + 98 + - - 74 * - + 88
----
-6563

query I rowsort
SELECT DISTINCT - 93 * 16 AS col1
----
-1488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1649
SELECT ALL - - COUNT( * ) DIV - + 10 * ( + - 10 ) * ( + 44 ) + - 1 - - COUNT( DISTINCT + 93 ) + - COUNT( * ) * - 66 - + 90 - + 42
----
-66

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL - - COUNT ( * ) / - + 10 * ( + - 10 ) * ( + 44 ) + - 1 - - COUNT ( DISTINCT + 93 ) + - COUNT ( * ) * - 66 - + 90 - + 42
----
-66

query I rowsort
SELECT ALL + 65 * - 31 * + + 99 AS col0
----
-199485

onlyif mysql # aggregate syntax: 
query II rowsort label-1651
SELECT 46 - - COUNT( * ) AS col0, - 60
----
47
-60

skipif mysql # not compatible
query II rowsort label-1651
SELECT 46 - - COUNT ( * ) AS col0, - 60
----
47
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT ALL + 2 DIV + - ( - + 19 )
----
0

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL + 2 / + - ( - + 19 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1653
SELECT COALESCE ( + - 18, + 84 DIV 20 ) DIV - 80 + + - 38
----
-38

skipif mysql # not compatible
query I rowsort label-1653
SELECT COALESCE ( + - 18, + 84 / 20 ) / - 80 + + - 38
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1654
SELECT 36 + + ( - - CAST( - 2 AS SIGNED ) )
----
34

skipif mysql # not compatible
query I rowsort label-1654
SELECT 36 + + ( - - CAST ( - 2 AS INTEGER ) )
----
34

query I rowsort
SELECT 45 + + ( + 63 )
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-1656
SELECT 52 DIV - 41 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1656
SELECT 52 / - 41 AS col1
----
-1

query I rowsort
SELECT DISTINCT + 84 * 25 AS col2
----
2100

onlyif mysql # aggregate syntax: 
query II rowsort label-1658
SELECT ALL - 30 * - 61 * - + 96, MAX( + 96 ) AS col1
----
-175680
96

skipif mysql # not compatible
query II rowsort label-1658
SELECT ALL - 30 * - 61 * - + 96, MAX ( + 96 ) AS col1
----
-175680
96

query I rowsort
SELECT DISTINCT - 12 * + 65
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT ALL + MAX( DISTINCT + ( 29 ) ) + - - 83 * + + 23 * - - 41
----
78298

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL + MAX ( DISTINCT + ( 29 ) ) + - - 83 * + + 23 * - - 41
----
78298

query I rowsort
SELECT ALL - 3 + - 10 col0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1662
SELECT ALL - 30 * 18 DIV COUNT( * )
----
-540

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL - 30 * 18 / COUNT ( * )
----
-540

onlyif mysql # aggregate syntax: 
query II rowsort label-1663
SELECT 87 * + + 4 AS col2, - 72 + + COUNT( 55 )
----
348
-71

skipif mysql # not compatible
query II rowsort label-1663
SELECT 87 * + + 4 AS col2, - 72 + + COUNT ( 55 )
----
348
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT MAX( - ( + 11 ) ) + 41
----
30

skipif mysql # not compatible
query I rowsort label-1664
SELECT MAX ( - ( + 11 ) ) + 41
----
30

query I rowsort
SELECT ALL + 67 + 70
----
137

query I rowsort
SELECT ALL + 58 + - + ( - 37 )
----
95

query II rowsort
SELECT 67 + - + 72 col1, 25 * 99 AS col1
----
-5
2475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1668
SELECT CAST( NULL AS SIGNED ) * - + MAX( DISTINCT - COALESCE ( + + ( - 91 ), - 88 * + - 16 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1668
SELECT CAST ( NULL AS INTEGER ) * - + MAX ( DISTINCT - COALESCE ( + + ( - 91 ), - 88 * + - 16 ) )
----
NULL

query I rowsort
SELECT - NULLIF ( - 52, - + 5 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1670
SELECT - - ( + MAX( ALL - + CAST( 30 AS SIGNED ) ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-1670
SELECT - - ( + MAX ( ALL - + CAST ( 30 AS INTEGER ) ) ) AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1671
SELECT DISTINCT - - 27 + + COALESCE ( - 61, + CAST( NULL AS SIGNED ) ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-1671
SELECT DISTINCT - - 27 + + COALESCE ( - 61, + CAST ( NULL AS INTEGER ) ) AS col0
----
-34

onlyif mysql # DIV for integer division: 
query II rowsort label-1672
SELECT DISTINCT + 38 DIV 62 AS col2, + 87 AS col0
----
0
87

skipif mysql # not compatible
query II rowsort label-1672
SELECT DISTINCT + 38 / 62 AS col2, + 87 AS col0
----
0
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1673
SELECT DISTINCT + 32 - + 40 AS col0, + ( COUNT( * ) ) * - - 79 AS col0
----
-8
79

skipif mysql # not compatible
query II rowsort label-1673
SELECT DISTINCT + 32 - + 40 AS col0, + ( COUNT ( * ) ) * - - 79 AS col0
----
-8
79

query I rowsort
SELECT ALL + + 14 * - 93 AS col1
----
-1302

query I rowsort
SELECT ALL + 30 * - 32
----
-960

query I rowsort
SELECT + 3 + - + 89
----
-86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1677
SELECT CAST( - - 33 AS SIGNED ) - - 74 DIV + 21 col0
----
36

skipif mysql # not compatible
query I rowsort label-1677
SELECT CAST ( - - 33 AS INTEGER ) - - 74 / + 21 col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT - 77 * - - 81 + + - ( + MAX( CASE + 59 WHEN - 51 + - 0 THEN + 14 END ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1678
SELECT - 77 * - - 81 + + - ( + MAX ( CASE + 59 WHEN - 51 + - 0 THEN + 14 END ) ) AS col0
----
NULL

query II rowsort
SELECT + 17 + - 98 AS col2, + 52
----
-81
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT 30 * - ( + + COUNT( * ) ) + - NULLIF ( + 20, + 95 + - 28 )
----
-50

skipif mysql # not compatible
query I rowsort label-1680
SELECT 30 * - ( + + COUNT ( * ) ) + - NULLIF ( + 20, + 95 + - 28 )
----
-50

query I rowsort
SELECT - 66 + - + 85
----
-151

query II rowsort
SELECT DISTINCT 98 AS col0, 93 + + - 3
----
98
90

query II rowsort
SELECT 56 + 55 + 40 + - 38 AS col1, + CASE + + 88 WHEN - 46 THEN 29 / + 70 + + 49 + 47 END + + 39 * 73
----
113
NULL

query II rowsort
SELECT + 3 AS col2, + 95
----
3
95

query I rowsort
SELECT ALL 29 * - 8 * - + 22
----
5104

onlyif mysql # aggregate syntax: 
query II rowsort label-1686
SELECT 97 AS col1, 77 * - COUNT( * )
----
97
-77

skipif mysql # not compatible
query II rowsort label-1686
SELECT 97 AS col1, 77 * - COUNT ( * )
----
97
-77

query I rowsort
SELECT 98 * + + 61 + + 0 col2
----
5978

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

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

query I rowsort
SELECT ALL + 89 + - 15 * - 36 AS col2
----
629

query II rowsort
SELECT DISTINCT 28 + 30 + + + 81 AS col1, 37 * - 42 + - - 55 * + - 82 AS col2
----
139
-6064

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT ALL - COUNT( * ) + - MIN( DISTINCT + - 32 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL - COUNT ( * ) + - MIN ( DISTINCT + - 32 ) AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1692
SELECT 77 + + COUNT( * ) - - - 56 DIV 72
----
78

skipif mysql # not compatible
query I rowsort label-1692
SELECT 77 + + COUNT ( * ) - - - 56 / 72
----
78

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

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT 4 + + 1 * ( COUNT ( * ) ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT + 66 * - NULLIF ( + - 41, + 95 + - ( + 62 ) * COUNT( ALL + - 49 ) ) + - - 42
----
2748

skipif mysql # not compatible
query I rowsort label-1694
SELECT + 66 * - NULLIF ( + - 41, + 95 + - ( + 62 ) * COUNT ( ALL + - 49 ) ) + - - 42
----
2748

query II rowsort
SELECT 83, 75 + 2 AS col0
----
83
77

query I rowsort
SELECT + 65 * + 26 - 44 AS col1
----
1646

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1698
SELECT CAST( + + 40 AS SIGNED ) * - 79 - - 19 AS col0
----
-3141

skipif mysql # not compatible
query I rowsort label-1698
SELECT CAST ( + + 40 AS INTEGER ) * - 79 - - 19 AS col0
----
-3141

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

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

query I rowsort
SELECT ALL + 11 * + - 92 AS col2
----
-1012

query I rowsort
SELECT 20 * - - 65 AS col1
----
1300

query II rowsort
SELECT ALL - 7, - 33 AS col2
----
-7
-33

query I rowsort
SELECT + 33 * 53 + - + 86
----
1663

query I rowsort
SELECT ALL + + 54 * + 30
----
1620

query II rowsort
SELECT - 26 - 32 * 51, ( + 26 ) AS col0
----
-1658
26

query I rowsort
SELECT DISTINCT - CASE + 89 WHEN 44 THEN + 24 WHEN + 19 + + 79 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT 68 * - COUNT( * ) * 45
----
-3060

skipif mysql # not compatible
query I rowsort label-1707
SELECT 68 * - COUNT ( * ) * 45
----
-3060

onlyif mysql # DIV for integer division: 
query I rowsort label-1708
SELECT - ( - 58 ) DIV + 49 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1708
SELECT - ( - 58 ) / + 49 AS col1
----
1

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1711
SELECT ALL 81 * - 51 + MAX( DISTINCT 99 ) + - 32 + 45, - 41 col1
----
-4019
-41

skipif mysql # not compatible
query II rowsort label-1711
SELECT ALL 81 * - 51 + MAX ( DISTINCT 99 ) + - 32 + 45, - 41 col1
----
-4019
-41

query I rowsort
SELECT ALL + ( - 91 ) * + 19 * - 2 + 40
----
3498

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT - - 52 - COUNT( * ) * + 70 + 95 + - 26
----
51

skipif mysql # not compatible
query I rowsort label-1713
SELECT - - 52 - COUNT ( * ) * + 70 + 95 + - 26
----
51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1715
SELECT ALL + 2 + + CASE - 20 WHEN + + COUNT( * ) THEN + ( - COUNT( * ) ) * - COUNT( * ) + 44 * ( + - COUNT( * ) ) WHEN - CAST( - 67 AS SIGNED ) + - 59 THEN NULL END * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL + 2 + + CASE - 20 WHEN + + COUNT ( * ) THEN + ( - COUNT ( * ) ) * - COUNT ( * ) + 44 * ( + - COUNT ( * ) ) WHEN - CAST ( - 67 AS INTEGER ) + - 59 THEN NULL END * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT - 35 - 90 - MIN( 87 ) * + ( - - 83 ) * + - 95 * + + 64
----
43903555

skipif mysql # not compatible
query I rowsort label-1716
SELECT - 35 - 90 - MIN ( 87 ) * + ( - - 83 ) * + - 95 * + + 64
----
43903555

query I rowsort
SELECT - 11 + - 64 AS col1
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1718
SELECT - 87 DIV 20
----
-4

skipif mysql # not compatible
query I rowsort label-1718
SELECT - 87 / 20
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT ALL 37 * + + MAX( DISTINCT 17 ) + - 38 + ( + 35 )
----
626

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL 37 * + + MAX ( DISTINCT 17 ) + - 38 + ( + 35 )
----
626

onlyif mysql # aggregate syntax: 
query II rowsort label-1721
SELECT ALL 43 * 36 + + 28 + + 91 AS col0, - 10 + - CASE + - COUNT( * ) WHEN - 36 + 29 / 26 - - ( + 50 ) THEN - - MAX( DISTINCT 11 ) WHEN - 96 THEN NULL ELSE - COUNT( * ) END
----
1667
-9

skipif mysql # not compatible
query II rowsort label-1721
SELECT ALL 43 * 36 + + 28 + + 91 AS col0, - 10 + - CASE + - COUNT ( * ) WHEN - 36 + 29 / 26 - - ( + 50 ) THEN - - MAX ( DISTINCT 11 ) WHEN - 96 THEN NULL ELSE - COUNT ( * ) END
----
1667
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1722
SELECT DISTINCT COALESCE ( 97, 80 DIV - - 71 * + + 0 * + - 76, - SUM( + - 10 ) ) * - - 14 + + - COUNT( + 33 ) + 6, - 58 DIV - 22 AS col0
----
1363
2

skipif mysql # not compatible
query II rowsort label-1722
SELECT DISTINCT COALESCE ( 97, 80 / - - 71 * + + 0 * + - 76, - SUM ( + - 10 ) ) * - - 14 + + - COUNT ( + 33 ) + 6, - 58 / - 22 AS col0
----
1363
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1723
SELECT + SUM( - + 29 ), 12 AS col1
----
-29
12

skipif mysql # not compatible
query II rowsort label-1723
SELECT + SUM ( - + 29 ), 12 AS col1
----
-29
12

query I rowsort
SELECT ALL 80 * 66 + + - 11 AS col0
----
5269

query II rowsort
SELECT + 21 + + 29 col0, 14 * + 96
----
50
1344

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT + ( - + 58 ) + 77 - + 44 / + 15 + 8 + + - 30 + 31 / - - 26 * - 52 * MAX( - - ( CASE - 85 WHEN - - 33 + 49 + - 91 THEN NULL WHEN - 21 THEN NULL WHEN ( 91 ) THEN ( + + 82 ) * + 82 END ) ) * ( NULLIF ( COALESCE ( + 12, + 64, 86 / 68 ), 83 + ( 95 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1727
SELECT + ( - + 58 ) + 77 - + 44 / + 15 + 8 + + - 30 + 31 / - - 26 * - 52 * MAX ( - - ( CASE - 85 WHEN - - 33 + 49 + - 91 THEN NULL WHEN - 21 THEN NULL WHEN ( 91 ) THEN ( + + 82 ) * + 82 END ) ) * ( NULLIF ( COALESCE ( + 12, + 64, 86 / 68 ), 83 + ( 95 ) ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 21 * - - 2 AS col0
----
42

query I rowsort
SELECT ALL + 14 * - - 63 - 8 col0
----
874

onlyif mysql # aggregate syntax: 
query II rowsort label-1730
SELECT + 96 * - + COUNT( * ) AS col0, 51 AS col0
----
-96
51

skipif mysql # not compatible
query II rowsort label-1730
SELECT + 96 * - + COUNT ( * ) AS col0, 51 AS col0
----
-96
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1731
SELECT + + 85 + 78 col2, COUNT( * ) * + 20 * - NULLIF ( + 36, + ( + + 37 ) ) DIV CASE + 28 WHEN + 63 THEN NULL ELSE + ( + - CASE - ( + 36 ) WHEN + 17 THEN 94 WHEN 99 + 35 THEN NULL ELSE + SUM( ALL - 58 ) END ) * + - 1 * + 27 - + 32 END
----
163
0

skipif mysql # not compatible
query II rowsort label-1731
SELECT + + 85 + 78 col2, COUNT ( * ) * + 20 * - NULLIF ( + 36, + ( + + 37 ) ) / CASE + 28 WHEN + 63 THEN NULL ELSE + ( + - CASE - ( + 36 ) WHEN + 17 THEN 94 WHEN 99 + 35 THEN NULL ELSE + SUM ( ALL - 58 ) END ) * + - 1 * + 27 - + 32 END
----
163
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1732
SELECT + + 99 * COALESCE ( - 74, - 36 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT + + 99 * COALESCE ( - 74, - 36 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - ( - + 65 ) * 68 + + - 83 + - ( 86 ) + + 58
----
4309

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT + - COALESCE ( - 90, 63, CASE 44 WHEN - - NULLIF ( - 93, COALESCE ( - 79, - ( - 96 ) / + COALESCE ( 96, + 30 ) ) * + - 27 + + - AVG ( + COALESCE ( - ( 40 ), 51 + 46 ) ) * - 47 ) THEN + 83 END + - + COUNT( * ) ) * 22 AS col2
----
1980

skipif mysql # not compatible
query I rowsort label-1734
SELECT + - COALESCE ( - 90, 63, CASE 44 WHEN - - NULLIF ( - 93, COALESCE ( - 79, - ( - 96 ) / + COALESCE ( 96, + 30 ) ) * + - 27 + + - AVG ( + COALESCE ( - ( 40 ), 51 + 46 ) ) * - 47 ) THEN + 83 END + - + COUNT ( * ) ) * 22 AS col2
----
1980

query I rowsort
SELECT - + 49 * + 64 + + - 20 * + + 27
----
-3676

onlyif mysql # DIV for integer division: 
query I rowsort label-1736
SELECT ALL - + 47 * - + COALESCE ( + 70, 52 DIV + 91 ) AS col2
----
3290

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL - + 47 * - + COALESCE ( + 70, 52 / + 91 ) AS col2
----
3290

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT + MAX( - - 89 ) + + MIN( DISTINCT + 99 ) + CASE 20 WHEN 24 * - 86 THEN NULL WHEN + 75 THEN NULL ELSE - + MIN( DISTINCT - 53 ) END AS col0
----
241

skipif mysql # not compatible
query I rowsort label-1737
SELECT + MAX ( - - 89 ) + + MIN ( DISTINCT + 99 ) + CASE 20 WHEN 24 * - 86 THEN NULL WHEN + 75 THEN NULL ELSE - + MIN ( DISTINCT - 53 ) END AS col0
----
241

onlyif mysql # DIV for integer division: 
query I rowsort label-1738
SELECT ALL 69 DIV - 18
----
-3

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL 69 / - 18
----
-3

query I rowsort
SELECT ALL + + 34 * 91 * + 79
----
244426

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT ALL CASE WHEN COUNT( * ) IS NOT NULL THEN + - 51 - 73 + - 45 END
----
-169

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL CASE WHEN COUNT ( * ) IS NOT NULL THEN + - 51 - 73 + - 45 END
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT - - 67 + + MIN( 61 ) AS col1
----
128

skipif mysql # not compatible
query I rowsort label-1741
SELECT - - 67 + + MIN ( 61 ) AS col1
----
128

query I rowsort
SELECT - + 92 + + + 32 + - ( + 55 ) * 43 AS col2
----
-2425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1743
SELECT ALL + - 42 + - COALESCE ( - CASE 99 WHEN - COUNT( * ) THEN + 79 END, NULLIF ( - NULLIF ( - 41, + + NULLIF ( - 96, COUNT( - 30 ) + + 3 + 57 ) ), 55 ) * - 99, - 44 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL + - 42 + - COALESCE ( - CASE 99 WHEN - COUNT ( * ) THEN + 79 END, NULLIF ( - NULLIF ( - 41, + + NULLIF ( - 96, COUNT ( - 30 ) + + 3 + 57 ) ), 55 ) * - 99, - 44 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT ALL - COUNT( * ) + - 63 * - 38
----
2393

skipif mysql # not compatible
query I rowsort label-1744
SELECT ALL - COUNT ( * ) + - 63 * - 38
----
2393

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT - CASE 26 WHEN 84 THEN + 54 / + 9 - - 86 + + 7 * - 13 WHEN + 5 * MIN( - - 20 ) THEN NULL ELSE + 85 END - + CASE - 6 WHEN COUNT( * ) THEN 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1746
SELECT - CASE 26 WHEN 84 THEN + 54 / + 9 - - 86 + + 7 * - 13 WHEN + 5 * MIN ( - - 20 ) THEN NULL ELSE + 85 END - + CASE - 6 WHEN COUNT ( * ) THEN 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT ALL ( - NULLIF ( - MIN( - + ( + 58 ) ), + 83 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL ( - NULLIF ( - MIN ( - + ( + 58 ) ), + 83 ) )
----
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT ALL - 98 + + + CASE - 56 WHEN - 33 + - AVG ( ALL 21 ) THEN - + 79 ELSE + MAX( - 49 ) END
----
-147

skipif mysql # not compatible
query I rowsort label-1749
SELECT ALL - 98 + + + CASE - 56 WHEN - 33 + - AVG ( ALL 21 ) THEN - + 79 ELSE + MAX ( - 49 ) END
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT DISTINCT - 89 + + COUNT( - 24 ) * + 1
----
-88

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT - 89 + + COUNT ( - 24 ) * + 1
----
-88

query II rowsort
SELECT - 7 AS col1, + 68
----
-7
68

query I rowsort
SELECT ALL - 71 + + - 72 + + 10
----
-133

query I rowsort
SELECT - 81 + 71 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT ALL NULLIF ( 49, + MAX( - 42 ) )
----
49

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL NULLIF ( 49, + MAX ( - 42 ) )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT - COUNT( DISTINCT 60 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1755
SELECT - COUNT ( DISTINCT 60 ) AS col1
----
-1

query I rowsort
SELECT - 34 + 41 AS col2
----
7

query I rowsort
SELECT ALL - 71 + 79 AS col2
----
8

query I rowsort
SELECT - 45 * 91 AS col1
----
-4095

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1759
SELECT ALL 7 DIV + - 89 * - 94 + + COALESCE ( + 44, + 51 * + 33 + + MAX( + 61 ) )
----
44

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL 7 / + - 89 * - 94 + + COALESCE ( + 44, + 51 * + 33 + + MAX ( + 61 ) )
----
44

query I rowsort
SELECT ALL + 99 * + 47
----
4653

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT ALL + 9 * - CASE - 24 WHEN - - 35 * ( ( 25 ) ) - + CASE + 15 WHEN 33 / - COUNT( * ) THEN NULL WHEN 15 THEN + + 74 * MAX( DISTINCT - 35 ) ELSE NULL END THEN + 25 * 9 - - ( 87 ) + - COUNT( * ) + + 47 WHEN - 61 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL + 9 * - CASE - 24 WHEN - - 35 * ( ( 25 ) ) - + CASE + 15 WHEN 33 / - COUNT ( * ) THEN NULL WHEN 15 THEN + + 74 * MAX ( DISTINCT - 35 ) ELSE NULL END THEN + 25 * 9 - - ( 87 ) + - COUNT ( * ) + + 47 WHEN - 61 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1762
SELECT ALL + 67, SUM( - 62 ) * + ( + + 0 ) AS col2
----
67
0

skipif mysql # not compatible
query II rowsort label-1762
SELECT ALL + 67, SUM ( - 62 ) * + ( + + 0 ) AS col2
----
67
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1763
SELECT - - CAST( NULL AS SIGNED ) * 97 * + + 9 * 39 + 46 + + 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1763
SELECT - - CAST ( NULL AS INTEGER ) * 97 * + + 9 * 39 + 46 + + 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT + NULLIF ( - + 64, - MAX( + 28 ) * + 56 ) * - 24 * 10 AS col2
----
15360

skipif mysql # not compatible
query I rowsort label-1764
SELECT + NULLIF ( - + 64, - MAX ( + 28 ) * + 56 ) * - 24 * 10 AS col2
----
15360

query I rowsort
SELECT ALL 0 * 87 + - ( 11 ) col1
----
-11

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

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

query II rowsort
SELECT ALL + + 13 AS col0, ( 88 ) AS col0
----
13
88

query II rowsort
SELECT + 46, 96 AS col2
----
46
96

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

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

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

query II rowsort
SELECT ALL - 39, 92 * - + 41 + - 30 + - 99 AS col0
----
-39
-3901

query I rowsort
SELECT ( - ( 5 ) ) col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1773
SELECT DISTINCT - - COUNT( * ) col1, - 0 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-1773
SELECT DISTINCT - - COUNT ( * ) col1, - 0 AS col0
----
1
0

query II rowsort
SELECT DISTINCT - 16 col2, - 86 AS col0
----
-16
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-1775
SELECT - 31 AS col1, - 54 * + - 89 - + COUNT( * )
----
-31
4805

skipif mysql # not compatible
query II rowsort label-1775
SELECT - 31 AS col1, - 54 * + - 89 - + COUNT ( * )
----
-31
4805

onlyif mysql # DIV for integer division: 
query I rowsort label-1776
SELECT ALL 30 DIV - + 15
----
-2

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL 30 / - + 15
----
-2

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

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

query I rowsort
SELECT ALL + 2 + + 16 AS col2
----
18

query III rowsort
SELECT DISTINCT 0 AS col0, 41 AS col1, - + 34 AS col2
----
0
41
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-1780
SELECT DISTINCT 55, 74 + - + COUNT( * ) AS col1
----
55
73

skipif mysql # not compatible
query II rowsort label-1780
SELECT DISTINCT 55, 74 + - + COUNT ( * ) AS col1
----
55
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT DISTINCT 5 + + ( - COUNT( * ) )
----
4

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT 5 + + ( - COUNT ( * ) )
----
4

query II rowsort
SELECT - 62 AS col0, 96
----
-62
96

query I rowsort
SELECT 71 + 58 AS col0
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1784
SELECT ALL - COALESCE ( + 98, 18 * 10, ( - - COUNT( * ) ) ) - 11 + + + CAST( + - 28 AS SIGNED )
----
-137

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL - COALESCE ( + 98, 18 * 10, ( - - COUNT ( * ) ) ) - 11 + + + CAST ( + - 28 AS INTEGER )
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT 15 + COUNT( * ) + + 4 * 12
----
64

skipif mysql # not compatible
query I rowsort label-1785
SELECT 15 + COUNT ( * ) + + 4 * 12
----
64

query I rowsort
SELECT 86 * - 65
----
-5590

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1787
SELECT 21 * + + CAST( NULL AS DECIMAL ) * + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1787
SELECT 21 * + + CAST ( NULL AS REAL ) * + 2 AS col2
----
NULL

query I rowsort
SELECT ALL - - 62 col2
----
62

query I rowsort
SELECT DISTINCT - - 5 * NULLIF ( - - 86, + 45 / AVG ( ALL - + 22 ) + + 51 + - 60 ) AS col0
----
430

query I rowsort
SELECT - 45 + 62 * 49 * 71 AS col1
----
215653

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1791
SELECT ALL + CAST( + - 39 AS SIGNED ) * 44 AS col0
----
-1716

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL + CAST ( + - 39 AS INTEGER ) * 44 AS col0
----
-1716

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

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

query I rowsort
SELECT 74 * + 20 AS col1
----
1480

onlyif mysql # aggregate syntax: 
query II rowsort label-1794
SELECT ALL - 61, - 65 / - 87 + - + 61 + - CASE - 66 WHEN + - 23 THEN - 84 WHEN - 89 THEN + SUM( - 52 ) END - + + 31 AS col2
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-1794
SELECT ALL - 61, - 65 / - 87 + - + 61 + - CASE - 66 WHEN + - 23 THEN - 84 WHEN - 89 THEN + SUM ( - 52 ) END - + + 31 AS col2
----
-61
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1795
SELECT COUNT( + 90 ) * + 84 + 59 * 73 + - 29 DIV + + 44 AS col0, COUNT( * )
----
4391
1

skipif mysql # not compatible
query II rowsort label-1795
SELECT COUNT ( + 90 ) * + 84 + 59 * 73 + - 29 / + + 44 AS col0, COUNT ( * )
----
4391
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT ALL - COUNT( * ) + - 8 * + 48
----
-385

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL - COUNT ( * ) + - 8 * + 48
----
-385

onlyif mysql # aggregate syntax: 
query II rowsort label-1797
SELECT + 75, - COUNT( * ) col2
----
75
-1

skipif mysql # not compatible
query II rowsort label-1797
SELECT + 75, - COUNT ( * ) col2
----
75
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT ( - NULLIF ( + SUM( DISTINCT + 47 ), - - NULLIF ( + - 60, + 81 * - + 24 + 9 ) ) ) * - 25
----
1175

skipif mysql # not compatible
query I rowsort label-1798
SELECT ( - NULLIF ( + SUM ( DISTINCT + 47 ), - - NULLIF ( + - 60, + 81 * - + 24 + 9 ) ) ) * - 25
----
1175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1799
SELECT DISTINCT COALESCE ( 11, + COUNT( * ) ) * + 37 * - CASE - 30 WHEN + COUNT( * ) THEN - 80 + - - AVG ( ALL + 90 ) WHEN 25 / + 61 * + 91 + - - 57 * + SUM( + 12 ) THEN - - CASE - - 9 WHEN + ( + CASE 22 WHEN - 43 / - 7 + + 2 * - 85 * 36 THEN NULLIF ( 82, - ( CASE CAST( NULL AS SIGNED ) WHEN CAST( SUM( - 13 ) AS SIGNED ) * COUNT( * ) THEN 74 / 91 WHEN - 29 THEN NULL END ) * 30 ) END ) THEN 13 * - 37 WHEN - 16 THEN 23 END - - 68 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT COALESCE ( 11, + COUNT ( * ) ) * + 37 * - CASE - 30 WHEN + COUNT ( * ) THEN - 80 + - - AVG ( ALL + 90 ) WHEN 25 / + 61 * + 91 + - - 57 * + SUM ( + 12 ) THEN - - CASE - - 9 WHEN + ( + CASE 22 WHEN - 43 / - 7 + + 2 * - 85 * 36 THEN NULLIF ( 82, - ( CASE CAST ( NULL AS INTEGER ) WHEN CAST ( SUM ( - 13 ) AS INTEGER ) * COUNT ( * ) THEN 74 / 91 WHEN - 29 THEN NULL END ) * 30 ) END ) THEN 13 * - 37 WHEN - 16 THEN 23 END - - 68 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1800
SELECT 23 + + + CAST( NULL AS SIGNED ) + 32 * - 58 + - COALESCE ( 74, 10 ) + + 62 / + + 93 AS col0, 30 + - 85 AS col2
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-1800
SELECT 23 + + + CAST ( NULL AS INTEGER ) + 32 * - 58 + - COALESCE ( 74, 10 ) + + 62 / + + 93 AS col0, 30 + - 85 AS col2
----
NULL
-55

query II rowsort
SELECT 82 + 11 AS col1, ( - 66 )
----
93
-66

query I rowsort
SELECT 99 + - 33 + 37
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT DISTINCT - MIN( ALL 78 ) * - 72 * 32
----
179712

skipif mysql # not compatible
query I rowsort label-1803
SELECT DISTINCT - MIN ( ALL 78 ) * - 72 * 32
----
179712

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT MIN( 12 ) * - 41 + 69 AS col2
----
-423

skipif mysql # not compatible
query I rowsort label-1805
SELECT MIN ( 12 ) * - 41 + 69 AS col2
----
-423

query I rowsort
SELECT 61 + + - 85 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT NULLIF ( - 32, + COUNT( * ) * + MAX( - + 74 ) ) + - 11 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1807
SELECT NULLIF ( - 32, + COUNT ( * ) * + MAX ( - + 74 ) ) + - 11 AS col1
----
-43

query I rowsort
SELECT ( 38 ) + - + 27
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-1809
SELECT ( - 10 ) * - + 82 AS col0, + COUNT( * ) AS col0
----
820
1

skipif mysql # not compatible
query II rowsort label-1809
SELECT ( - 10 ) * - + 82 AS col0, + COUNT ( * ) AS col0
----
820
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT ALL + NULLIF ( - 33, - - 53 + 95 ) * - COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL + NULLIF ( - 33, - - 53 + 95 ) * - COUNT ( * ) AS col0
----
33

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

skipif mysql # not compatible
query I rowsort label-1811
SELECT ( - 93 ) / + - COUNT ( * ) * ( - COUNT ( * ) )
----
-93

query II rowsort
SELECT 6 + 50, ( - + 53 ) AS col2
----
56
-53

query I rowsort
SELECT ALL - ( + ( 28 ) ) * + - NULLIF ( + 86, - 13 + + 10 * - 3 )
----
2408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1814
SELECT DISTINCT - COUNT( ALL - CAST( - - 11 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT - COUNT ( ALL - CAST ( - - 11 AS INTEGER ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1815
SELECT CAST( NULL AS SIGNED ) + + 2 + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-1815
SELECT CAST ( NULL AS INTEGER ) + + 2 + 81
----
NULL

query I rowsort
SELECT - 52 * 78 AS col2
----
-4056

query I rowsort
SELECT DISTINCT - - 37 * 87 + - 90 + + + 89
----
3218

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

query I rowsort
SELECT - + ( - + 32 ) + COALESCE ( - 67, + - 57 ) * 61 + + 87 AS col1
----
-3968

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT ALL - + 51 * + 18 * + 92 + + - NULLIF ( - + CASE 98 WHEN + 24 THEN NULL ELSE + - 30 END, + 15 + 96 / 31 * - - 26 * - 31 ) * 17 + + 54 * + COUNT( * ) + - - 17 AS col0
----
-84895

skipif mysql # not compatible
query I rowsort label-1820
SELECT ALL - + 51 * + 18 * + 92 + + - NULLIF ( - + CASE 98 WHEN + 24 THEN NULL ELSE + - 30 END, + 15 + 96 / 31 * - - 26 * - 31 ) * 17 + + 54 * + COUNT ( * ) + - - 17 AS col0
----
-84895

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT + NULLIF ( - COUNT( * ), - - 24 * AVG ( - + 59 ) + + + ( 61 ) + - 21 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1821
SELECT + NULLIF ( - COUNT ( * ), - - 24 * AVG ( - + 59 ) + + + ( 61 ) + - 21 ) AS col1
----
-1

query I rowsort
SELECT ALL + 99 * 27 * 56 AS col2
----
149688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1823
SELECT COUNT( * ) * - 19 / + 84 - - ( + ( + ( - 86 ) ) ) * + - 36 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1823
SELECT COUNT ( * ) * - 19 / + 84 - - ( + ( + ( - 86 ) ) ) * + - 36 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1824
SELECT DISTINCT - ( + - 95 ) * + 32 - 67 + - CAST( NULL AS DECIMAL ) / + 36 * + 15 * ( 21 ) - + 90 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT - ( + - 95 ) * + 32 - 67 + - CAST ( NULL AS REAL ) / + 36 * + 15 * ( 21 ) - + 90 col2
----
NULL

query I rowsort
SELECT DISTINCT - 42 * + - 52 * - + 62 + + + 44 AS col2
----
-135364

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT ALL 35 * COUNT( * ) - + 25 + - + SUM( 36 ) + - - 58 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL 35 * COUNT ( * ) - + 25 + - + SUM ( 36 ) + - - 58 AS col2
----
32

query II rowsort
SELECT ALL 73 * - - COALESCE ( + 52, + 34 ) + + + 10 AS col0, - 51 * + 84 AS col0
----
3806
-4284

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1828
SELECT - 8 * + COALESCE ( COUNT( * ), - - NULLIF ( - 28, + - 51 ) * + 3 DIV 37, - 12 * - - 29, + - 37 * 36 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1828
SELECT - 8 * + COALESCE ( COUNT ( * ), - - NULLIF ( - 28, + - 51 ) * + 3 / 37, - 12 * - - 29, + - 37 * 36 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT ALL + 39 - - 16 * + 4 * COALESCE ( + 14, + - SUM( - - 39 ) ) AS col2
----
935

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL + 39 - - 16 * + 4 * COALESCE ( + 14, + - SUM ( - - 39 ) ) AS col2
----
935

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1831
SELECT - COUNT( * ) * 73 * + 24 * - 35, - COUNT( * ) AS col1
----
61320
-1

skipif mysql # not compatible
query II rowsort label-1831
SELECT - COUNT ( * ) * 73 * + 24 * - 35, - COUNT ( * ) AS col1
----
61320
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT ALL COUNT( * ) - 3 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL COUNT ( * ) - 3 AS col0
----
-2

query I rowsort
SELECT + 92 - 19
----
73

query II rowsort
SELECT + ( 48 ) * + 27, + 43 + 51 AS col2
----
1296
94

query II rowsort
SELECT ALL 74 AS col2, - 38 AS col2
----
74
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1837
SELECT DISTINCT NULLIF ( 30, - 1 ) * + 61 + 92 * 95 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT NULLIF ( 30, - 1 ) * + 61 + 92 * 95 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 21 * + - 74
----
-1554

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1839
SELECT - CAST( NULL AS DECIMAL ) + - 22 / - 90 + + AVG ( - 67 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1839
SELECT - CAST ( NULL AS REAL ) + - 22 / - 90 + + AVG ( - 67 ) AS col1
----
NULL

query I rowsort
SELECT + 9 + 20 AS col2
----
29

query I rowsort
SELECT + 85 + + 11 AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1842
SELECT ALL 66 DIV + 7 - + 35
----
-26

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL 66 / + 7 - + 35
----
-26

query I rowsort
SELECT ALL 80 + + + 57
----
137

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1845
SELECT ALL ( - 49 ) DIV + 4 + - 41
----
-53

skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL ( - 49 ) / + 4 + - 41
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-1846
SELECT + - 83 DIV - 91 + - 33 - + 48 * 74 AS col1
----
-3585

skipif mysql # not compatible
query I rowsort label-1846
SELECT + - 83 / - 91 + - 33 - + 48 * 74 AS col1
----
-3585

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1847
SELECT + + 3 * + 76 + 29 + - 63 + + 73 + 38 * 63 + - COUNT( * ) DIV 45 AS col0
----
2661

skipif mysql # not compatible
query I rowsort label-1847
SELECT + + 3 * + 76 + 29 + - 63 + + 73 + 38 * 63 + - COUNT ( * ) / 45 AS col0
----
2661

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1848
SELECT ALL - 46 DIV + MIN( DISTINCT 67 ) * - - 15 + + - 79 + + 32 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL - 46 / + MIN ( DISTINCT 67 ) * - - 15 + + - 79 + + 32 AS col0
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1849
SELECT ALL + 31 DIV + + 62 + - 75 - - COUNT( ALL + 18 ) + - COUNT( ALL 56 ) * + + 16 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL + 31 / + + 62 + - 75 - - COUNT ( ALL + 18 ) + - COUNT ( ALL 56 ) * + + 16 AS col1
----
-90

query I rowsort
SELECT + + 64 + - + 75 + + 78 AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1851
SELECT - 22 * + 15 + + - CAST( NULL AS SIGNED ) * - 30 + 68 + - 48 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1851
SELECT - 22 * + 15 + + - CAST ( NULL AS INTEGER ) * - 30 + 68 + - 48 / - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1852
SELECT DISTINCT + 26 * + 52 DIV - - COUNT( DISTINCT - 43 )
----
1352

skipif mysql # not compatible
query I rowsort label-1852
SELECT DISTINCT + 26 * + 52 / - - COUNT ( DISTINCT - 43 )
----
1352

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT ALL + NULLIF ( - + 82, 31 - - COUNT( * ) ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL + NULLIF ( - + 82, 31 - - COUNT ( * ) ) AS col0
----
-82

query I rowsort
SELECT - 79 * - + ( 48 ) AS col2
----
3792

onlyif mysql # DIV for integer division: 
query I rowsort label-1855
SELECT ALL + 87 DIV + 37 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL + 87 / + 37 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1856
SELECT + - CASE WHEN NOT 93 IS NULL THEN CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT + - CASE WHEN NOT 93 IS NULL THEN CAST ( NULL AS INTEGER ) END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL + ( - 9 ) / + COUNT ( * )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1858
SELECT COALESCE ( - - CAST( + + 33 AS SIGNED ), - 97 + - 49 )
----
33

skipif mysql # not compatible
query I rowsort label-1858
SELECT COALESCE ( - - CAST ( + + 33 AS INTEGER ), - 97 + - 49 )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1859
SELECT + ( - + 48 ) + - 90 + - 36 * ( - COUNT( 15 ) ) DIV - COUNT( - 83 ) AS col1
----
-174

skipif mysql # not compatible
query I rowsort label-1859
SELECT + ( - + 48 ) + - 90 + - 36 * ( - COUNT ( 15 ) ) / - COUNT ( - 83 ) AS col1
----
-174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1860
SELECT + 29 * + COALESCE ( + 80, 63 ) + COALESCE ( + 45, + - 38 * + CAST( NULL AS SIGNED ), - - 76 ) - + + 15 DIV 57 * - SUM( ALL + 58 ) DIV - COUNT( * ) AS col0
----
2365

skipif mysql # not compatible
query I rowsort label-1860
SELECT + 29 * + COALESCE ( + 80, 63 ) + COALESCE ( + 45, + - 38 * + CAST ( NULL AS INTEGER ), - - 76 ) - + + 15 / 57 * - SUM ( ALL + 58 ) / - COUNT ( * ) AS col0
----
2365

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT COALESCE ( - + 3, - + 81, + 97 - + COUNT( * ) + - 99 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1861
SELECT COALESCE ( - + 3, - + 81, + 97 - + COUNT ( * ) + - 99 ) AS col1
----
-3

query II rowsort
SELECT - ( 20 ) + 74 * 61 + + 81 AS col1, 3 AS col1
----
4575
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1863
SELECT - 51 DIV - + 4
----
12

skipif mysql # not compatible
query I rowsort label-1863
SELECT - 51 / - + 4
----
12

query I rowsort
SELECT - 69 + 95 * 51 AS col1
----
4776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1865
SELECT - 45 + CASE ( - 30 ) WHEN + 8 THEN NULL WHEN - - COUNT( * ) THEN NULL ELSE + 94 + 96 + - + 78 * - - COUNT( * ) * - ( + + 14 ) END DIV - COUNT( ALL 66 ) + + 37 * - 31
----
-2474

skipif mysql # not compatible
query I rowsort label-1865
SELECT - 45 + CASE ( - 30 ) WHEN + 8 THEN NULL WHEN - - COUNT ( * ) THEN NULL ELSE + 94 + 96 + - + 78 * - - COUNT ( * ) * - ( + + 14 ) END / - COUNT ( ALL 66 ) + + 37 * - 31
----
-2474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1866
SELECT DISTINCT - 91 / + - 2 * + - CASE + + 14 WHEN + 87 * + 11 + - - 48 * - 84 - - - 91 * + + 70 + COALESCE ( NULLIF ( CAST( + 86 AS SIGNED ), 46 + COALESCE ( - COUNT( * ), - 52 * 95 * NULLIF ( - COUNT( * ), + + CAST( NULL AS SIGNED ) ) + + 8 + + + COUNT( * ) * CAST( + + 49 AS DECIMAL ) ) + 21 ), + ( 83 ) ) + - 87 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT DISTINCT - 91 / + - 2 * + - CASE + + 14 WHEN + 87 * + 11 + - - 48 * - 84 - - - 91 * + + 70 + COALESCE ( NULLIF ( CAST ( + 86 AS INTEGER ), 46 + COALESCE ( - COUNT ( * ), - 52 * 95 * NULLIF ( - COUNT ( * ), + + CAST ( NULL AS INTEGER ) ) + + 8 + + + COUNT ( * ) * CAST ( + + 49 AS REAL ) ) + 21 ), + ( 83 ) ) + - 87 THEN COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT + 97 * - - COUNT( * ) * + 29 AS col1
----
2813

skipif mysql # not compatible
query I rowsort label-1867
SELECT + 97 * - - COUNT ( * ) * + 29 AS col1
----
2813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1868
SELECT DISTINCT CAST( + 63 AS SIGNED ) * 67
----
4221

skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT CAST ( + 63 AS INTEGER ) * 67
----
4221

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL + COUNT( * ) + - 39 + + 22 - + 59 * - 99 + 28 AS col0
----
5853

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL + COUNT ( * ) + - 39 + + 22 - + 59 * - 99 + 28 AS col0
----
5853

query I rowsort
SELECT ALL + 34 + - 98 AS col1
----
-64

query I rowsort
SELECT ALL - ( + 20 ) + 1 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-1872
SELECT 18 * + 3 + COUNT( * ) - - + 83 * - 61 AS col1, - 50
----
-5008
-50

skipif mysql # not compatible
query II rowsort label-1872
SELECT 18 * + 3 + COUNT ( * ) - - + 83 * - 61 AS col1, - 50
----
-5008
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT - - 56 * - - CASE - COUNT( * ) WHEN + 70 THEN NULL WHEN + CASE - 78 WHEN 10 * 66 THEN - 66 + - + 76 * 18 WHEN + AVG ( - - ( - 82 ) ) * + 67 THEN NULL END THEN + 44 END + + 94 - 71 - - - NULLIF ( 18, 82 * 19 ) * - - 20 * - 93 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1873
SELECT - - 56 * - - CASE - COUNT ( * ) WHEN + 70 THEN NULL WHEN + CASE - 78 WHEN 10 * 66 THEN - 66 + - + 76 * 18 WHEN + AVG ( - - ( - 82 ) ) * + 67 THEN NULL END THEN + 44 END + + 94 - 71 - - - NULLIF ( 18, 82 * 19 ) * - - 20 * - 93 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1874
SELECT 98 DIV + 22 - 92
----
-88

skipif mysql # not compatible
query I rowsort label-1874
SELECT 98 / + 22 - 92
----
-88

query I rowsort
SELECT - 97 * + + 15 * - 86 + + 91 AS col0
----
125221

query I rowsort
SELECT + 63 * 34
----
2142

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT ALL 3 * + MAX( + 83 ) AS col2
----
249

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL 3 * + MAX ( + 83 ) AS col2
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT DISTINCT 42 - - CAST( + 98 AS SIGNED ) AS col0
----
140

skipif mysql # not compatible
query I rowsort label-1878
SELECT DISTINCT 42 - - CAST ( + 98 AS INTEGER ) AS col0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT + + 55 * + 49 + ( COUNT( * ) ) * + - 80
----
2615

skipif mysql # not compatible
query I rowsort label-1879
SELECT + + 55 * + 49 + ( COUNT ( * ) ) * + - 80
----
2615

onlyif mysql # DIV for integer division: 
query I rowsort label-1880
SELECT - 30 DIV + 66 * - - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1880
SELECT - 30 / + 66 * - - 90 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1881
SELECT 46 * COALESCE ( 11, + COUNT( * ) ) * 54 + + - 40 + - 78 - 88 * + CASE 89 WHEN + COALESCE ( + 38, 16 + COUNT( * ) + + - MIN( + CAST( NULL AS SIGNED ) ) * + ( - AVG ( ( 98 ) ) ), 56 ) THEN - COALESCE ( - 14, 81 * - COALESCE ( + 69, + 65 + + 90 ), + 39 ) * 18 + - 14 * - 79 END + + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1881
SELECT 46 * COALESCE ( 11, + COUNT ( * ) ) * 54 + + - 40 + - 78 - 88 * + CASE 89 WHEN + COALESCE ( + 38, 16 + COUNT ( * ) + + - MIN ( + CAST ( NULL AS INTEGER ) ) * + ( - AVG ( ( 98 ) ) ), 56 ) THEN - COALESCE ( - 14, 81 * - COALESCE ( + 69, + 65 + + 90 ), + 39 ) * 18 + - 14 * - 79 END + + 2 AS col0
----
NULL

query I rowsort
SELECT - 69 * - - 80 * + + 36 * - + 56 + + 23 * 34 * 70
----
11183060

query I rowsort
SELECT 90 * + 9 * - - 16 AS col0
----
12960

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT ALL - SUM( ( - 27 ) )
----
27

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL - SUM ( ( - 27 ) )
----
27

query I rowsort
SELECT DISTINCT - 95 * + - 56 AS col1
----
5320

query I rowsort
SELECT 15 * 25 col1
----
375

query I rowsort
SELECT ALL + 50 + + + 33
----
83

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

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

query I rowsort
SELECT 5 * + 58
----
290

query I rowsort
SELECT 41 * + 47 AS col1
----
1927

query I rowsort
SELECT ALL + 87 + + - 46
----
41

query I rowsort
SELECT DISTINCT - 33 + + 41
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1893
SELECT DISTINCT CASE + CASE - 70 WHEN + + 2 * 25 * 89 THEN - CAST( NULL AS SIGNED ) END WHEN - 37 * + - 96 THEN NULL ELSE - 84 + - 49 END AS col0
----
-133

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT CASE + CASE - 70 WHEN + + 2 * 25 * 89 THEN - CAST ( NULL AS INTEGER ) END WHEN - 37 * + - 96 THEN NULL ELSE - 84 + - 49 END AS col0
----
-133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1894
SELECT - ( 95 ) DIV - CASE + 45 WHEN - 15 THEN NULL WHEN - 58 * + 96 + + + MIN( 44 ) THEN NULL ELSE + 68 * - + MAX( + - 57 ) * - 68 * SUM( ALL + 88 ) + - 32 END
----
0

skipif mysql # not compatible
query I rowsort label-1894
SELECT - ( 95 ) / - CASE + 45 WHEN - 15 THEN NULL WHEN - 58 * + 96 + + + MIN ( 44 ) THEN NULL ELSE + 68 * - + MAX ( + - 57 ) * - 68 * SUM ( ALL + 88 ) + - 32 END
----
0

query I rowsort
SELECT + 54 * - + 81 AS col0
----
-4374

query I rowsort
SELECT ALL - 3 + 77 AS col2
----
74

query I rowsort
SELECT + ( + 69 ) + - 5 AS col1
----
64

query I rowsort
SELECT + 81 - 42
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1899
SELECT CAST( NULL AS SIGNED ) * ( ( - + 39 ) ) - + - ( + 2 ) * 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1899
SELECT CAST ( NULL AS INTEGER ) * ( ( - + 39 ) ) - + - ( + 2 ) * 86 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1901
SELECT DISTINCT - 9 - - 66 + - AVG ( ALL CAST( NULL AS SIGNED ) ) * + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT - 9 - - 66 + - AVG ( ALL CAST ( NULL AS INTEGER ) ) * + 25 AS col1
----
NULL

query I rowsort
SELECT ALL - + 49 * + 63 + - 36 - - 41
----
-3082

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT + + 65 * - 89 - + ( 72 ) + - 23 + + COUNT( * ) AS col0
----
-5879

skipif mysql # not compatible
query I rowsort label-1903
SELECT + + 65 * - 89 - + ( 72 ) + - 23 + + COUNT ( * ) AS col0
----
-5879

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1904
SELECT ALL - + CASE - + ( - COUNT( - + COALESCE ( - 72, - 26 ) ) ) WHEN ( + CAST( 47 AS SIGNED ) ) THEN + 25 ELSE 48 END AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL - + CASE - + ( - COUNT ( - + COALESCE ( - 72, - 26 ) ) ) WHEN ( + CAST ( 47 AS INTEGER ) ) THEN + 25 ELSE 48 END AS col0
----
-48

query I rowsort
SELECT + 97 * + ( - 24 ) * 64 - + 3 * + 25 + 49 + 2 * - 11
----
-149040

query I rowsort
SELECT + 37 * 94 AS col0
----
3478

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT MIN( - 48 ) + - + 99 AS col0
----
-147

skipif mysql # not compatible
query I rowsort label-1907
SELECT MIN ( - 48 ) + - + 99 AS col0
----
-147

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1909
SELECT 90 DIV + + 58
----
1

skipif mysql # not compatible
query I rowsort label-1909
SELECT 90 / + + 58
----
1

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

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT + COUNT ( * ) / 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT COUNT( * ) + - 70 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-1911
SELECT COUNT ( * ) + - 70 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-1912
SELECT DISTINCT 93 + + - 66, SUM( - - 40 ) + MAX( ALL 43 ) AS col2
----
27
83

skipif mysql # not compatible
query II rowsort label-1912
SELECT DISTINCT 93 + + - 66, SUM ( - - 40 ) + MAX ( ALL 43 ) AS col2
----
27
83

query I rowsort
SELECT 25 * 63
----
1575

query I rowsort
SELECT 96 + - 93 + + - 9 AS col1
----
-6

query II rowsort
SELECT 31 - + + 15 AS col0, - ( - + 97 ) * - + 36 - - 92 * 43 - + - 67 AS col1
----
16
531

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT + CASE COUNT( * ) WHEN - 87 THEN NULL ELSE + - 9 + COUNT( * ) END AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1916
SELECT + CASE COUNT ( * ) WHEN - 87 THEN NULL ELSE + - 9 + COUNT ( * ) END AS col1
----
-8

query I rowsort
SELECT + 86 + + - 61 * - 34
----
2160

query I rowsort
SELECT ALL 92 + - + 3 col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1919
SELECT 81 AS col2, - COUNT( * ) - 29 + + ( + - CAST( - + 41 AS SIGNED ) ) * + 58
----
81
2348

skipif mysql # not compatible
query II rowsort label-1919
SELECT 81 AS col2, - COUNT ( * ) - 29 + + ( + - CAST ( - + 41 AS INTEGER ) ) * + 58
----
81
2348

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT ALL + ( + - COUNT( ALL - 16 ) ) + ( - 42 )
----
-43

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL + ( + - COUNT ( ALL - 16 ) ) + ( - 42 )
----
-43

query I rowsort
SELECT - NULLIF ( 91, - + 47 )
----
-91

query I rowsort
SELECT + 56 + - - 74
----
130

query II rowsort
SELECT 72 AS col2, + ( 98 )
----
72
98

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

skipif mysql # not compatible
query I rowsort label-1924
SELECT - COUNT ( - 60 )
----
-1

query II rowsort
SELECT - + 38 + - 36 AS col1, - 78 AS col1
----
-74
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-1926
SELECT ALL + 32 DIV + 93 + - + 96 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL + 32 / + 93 + - + 96 AS col2
----
-96

query I rowsort
SELECT - - 21 * + 53 AS col0
----
1113

query I rowsort
SELECT ALL 79 * - 65
----
-5135

query I rowsort
SELECT - 18 * + ( + 37 ) AS col2
----
-666

query I rowsort
SELECT ALL 2 * + - ( + 33 ) + + 50 AS col1
----
-16

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1932
SELECT ALL + + 1 DIV 91 col1
----
0

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL + + 1 / 91 col1
----
0

query I rowsort
SELECT - + 94 * - 17 + - 23
----
1575

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

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

query I rowsort
SELECT - - NULLIF ( - - 33, 36 + + 28 ) * + - 20 * - 23 AS col2
----
15180

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT - SUM( - + 74 ) * 48 AS col0
----
3552

skipif mysql # not compatible
query I rowsort label-1936
SELECT - SUM ( - + 74 ) * 48 AS col0
----
3552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1937
SELECT ALL + - 35 / - 63 + + 96 * + + 97 * + ( 39 ) / - + ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL + - 35 / - 63 + + 96 * + + 97 * + ( 39 ) / - + ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - + 50 - - + 72 col0
----
22

query I rowsort
SELECT + 1 * + 74 + 54 * - 80
----
-4246

query II rowsort
SELECT + + 30, 1 AS col1
----
30
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1941
SELECT ALL + 17 AS col2, - 23 DIV - COUNT( * ) - 88 AS col2
----
17
-65

skipif mysql # not compatible
query II rowsort label-1941
SELECT ALL + 17 AS col2, - 23 / - COUNT ( * ) - 88 AS col2
----
17
-65

query I rowsort
SELECT - 34 * - 6
----
204

query I rowsort
SELECT ALL 5 * - 41 + 36
----
-169

query I rowsort
SELECT - 70 + + - 25 * + 57
----
-1495

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT ALL + COALESCE ( SUM( DISTINCT + - 75 ), - ( + 26 ) / + - SUM( 13 ), - MAX( - 17 ), - 4 + COUNT( * ) ) * - 82 + + ( 6 ) - + + MIN( - 67 ) / + CASE + 22 WHEN - COUNT( * ) THEN 92 WHEN 10 THEN NULL END * - - 87 + COUNT( * ) + - - 88 / + NULLIF ( - COUNT( * ), ( - + 61 ) ) + - + 82 * + - SUM( + COALESCE ( + 78, - 87, - 33 ) ) - - 4 + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL + COALESCE ( SUM ( DISTINCT + - 75 ), - ( + 26 ) / + - SUM ( 13 ), - MAX ( - 17 ), - 4 + COUNT ( * ) ) * - 82 + + ( 6 ) - + + MIN ( - 67 ) / + CASE + 22 WHEN - COUNT ( * ) THEN 92 WHEN 10 THEN NULL END * - - 87 + COUNT ( * ) + - - 88 / + NULLIF ( - COUNT ( * ), ( - + 61 ) ) + - + 82 * + - SUM ( + COALESCE ( + 78, - 87, - 33 ) ) - - 4 + 72 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT CASE - 84 WHEN + - COUNT( * ) THEN + COUNT( * ) * + 51 WHEN - + 14 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT CASE - 84 WHEN + - COUNT ( * ) THEN + COUNT ( * ) * + 51 WHEN - + 14 THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1948
SELECT NULLIF ( CAST ( + + 49 AS INTEGER ), - 98 ) AS col0
----
49

query I rowsort
SELECT + 16 + + + 93 AS col2
----
109

query I rowsort
SELECT ALL + 15 * - + 17 + - + 55 AS col0
----
-310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1951
SELECT DISTINCT + COUNT( * ) * + 38 * + 43 + - 27 * - + CAST( NULL AS SIGNED ) * + NULLIF ( + 55, + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT + COUNT ( * ) * + 38 * + 43 + - 27 * - + CAST ( NULL AS INTEGER ) * + NULLIF ( + 55, + 15 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT + NULLIF ( + NULLIF ( - + COUNT( * ), - - 41 + - 83 ), - COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1952
SELECT + NULLIF ( + NULLIF ( - + COUNT ( * ), - - 41 + - 83 ), - COUNT ( * ) ) col2
----
NULL

query I rowsort
SELECT + 39 * - + 37
----
-1443

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1954
SELECT ALL + MIN( + - 28 ) DIV + 31, 40 AS col2
----
0
40

skipif mysql # not compatible
query II rowsort label-1954
SELECT ALL + MIN ( + - 28 ) / + 31, 40 AS col2
----
0
40

query II rowsort
SELECT DISTINCT 68 * 53, 2 * + + 21 * - + 44 AS col2
----
3604
-1848

query I rowsort
SELECT DISTINCT ( + 84 ) * - - 74 AS col0
----
6216

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1957
SELECT ALL - CAST( + 21 AS SIGNED ) * + - 5 - - - ( + 65 ) + 81 + + + 86 + - + 48 DIV + + 37 AS col1
----
206

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL - CAST ( + 21 AS INTEGER ) * + - 5 - - - ( + 65 ) + 81 + + + 86 + - + 48 / + + 37 AS col1
----
206

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT - 3 * + - 26 * + - ( + SUM( DISTINCT 79 ) )
----
-6162

skipif mysql # not compatible
query I rowsort label-1958
SELECT - 3 * + - 26 * + - ( + SUM ( DISTINCT 79 ) )
----
-6162

query II rowsort
SELECT - ( + 34 ) AS col1, 86 AS col0
----
-34
86

query I rowsort
SELECT + 20 - + - 13 + - + 73 + 94
----
54

query I rowsort
SELECT + 50 * + - 25
----
-1250

query I rowsort
SELECT + 7 * 57 + + + 79 AS col0
----
478

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT ALL + COUNT( + 81 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL + COUNT ( + 81 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT ALL COUNT( DISTINCT ( 7 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL COUNT ( DISTINCT ( 7 ) )
----
1

query I rowsort
SELECT + + 40 - - 68 + - - 53 * - - ( - 44 ) * - + 43 * + + 42 - + + 31 * 35 AS col0
----
4210615

query I rowsort
SELECT - NULLIF ( + 95, + 48 + - 99 ) col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT - MIN( DISTINCT 95 ) * + 65
----
-6175

skipif mysql # not compatible
query I rowsort label-1967
SELECT - MIN ( DISTINCT 95 ) * + 65
----
-6175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1968
SELECT - + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, 77 * + + 67 + + - MIN( DISTINCT 82 )
----
NULL
5077

skipif mysql # not compatible
query II rowsort label-1968
SELECT - + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, 77 * + + 67 + + - MIN ( DISTINCT 82 )
----
NULL
5077

query I rowsort
SELECT + ( - 85 ) + + 56
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1970
SELECT + 19 DIV + - 85 + - - 93 + + - 18
----
75

skipif mysql # not compatible
query I rowsort label-1970
SELECT + 19 / + - 85 + - - 93 + + - 18
----
75

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1972
SELECT ALL - 33 * + 55 + - + 46 - - 65 DIV - + MIN( - + CAST( - + 29 AS SIGNED ) ) + 18 + - 27 * + ( COUNT( * ) ) col0
----
-1872

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL - 33 * + 55 + - + 46 - - 65 / - + MIN ( - + CAST ( - + 29 AS INTEGER ) ) + 18 + - 27 * + ( COUNT ( * ) ) col0
----
-1872

query I rowsort
SELECT DISTINCT - 48 / + CASE 74 WHEN 40 - 95 THEN 62 END - + - 81 + - + 85
----
NULL

query I rowsort
SELECT - 29 + + + 84 * - 71 AS col0
----
-5993

query I rowsort
SELECT - 46 * - + 41 AS col1
----
1886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1976
SELECT ALL + 98 / ( - - COUNT( * ) ) + - 18 + AVG ( - 42 ) + + + 84 + CASE + 2 WHEN COALESCE ( + 50, + 20 / - 55 * - 67 ) THEN 54 - - COUNT( * ) END - - AVG ( + - 61 ) * - - CAST( NULL AS SIGNED ) + + 41 - + 27 + - + 99 * + 66 * - 25 * + - 45 + + - 24 * COUNT( - 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL + 98 / ( - - COUNT ( * ) ) + - 18 + AVG ( - 42 ) + + + 84 + CASE + 2 WHEN COALESCE ( + 50, + 20 / - 55 * - 67 ) THEN 54 - - COUNT ( * ) END - - AVG ( + - 61 ) * - - CAST ( NULL AS INTEGER ) + + 41 - + 27 + - + 99 * + 66 * - 25 * + - 45 + + - 24 * COUNT ( - 51 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1977
SELECT ALL - COALESCE ( + - CASE + - 99 WHEN AVG ( - 42 ) * - 19 + + 0 THEN 45 WHEN 59 * - COALESCE ( + 74, - NULLIF ( 80, - - 19 ) DIV - 58 ) + - - 70 THEN + ( + + CASE + 93 WHEN - 37 THEN 62 * 13 + + CAST( NULL AS SIGNED ) * - 69 WHEN - 62 DIV + 80 + + SUM( - 34 ) THEN 53 * + 53 ELSE NULL END ) ELSE - 54 END, + + ( - + 93 ) ) DIV 52 + - 96
----
-97

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL - COALESCE ( + - CASE + - 99 WHEN AVG ( - 42 ) * - 19 + + 0 THEN 45 WHEN 59 * - COALESCE ( + 74, - NULLIF ( 80, - - 19 ) / - 58 ) + - - 70 THEN + ( + + CASE + 93 WHEN - 37 THEN 62 * 13 + + CAST ( NULL AS INTEGER ) * - 69 WHEN - 62 / + 80 + + SUM ( - 34 ) THEN 53 * + 53 ELSE NULL END ) ELSE - 54 END, + + ( - + 93 ) ) / 52 + - 96
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT COUNT( * ) * - 86 + 41 + + - COUNT( * ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-1978
SELECT COUNT ( * ) * - 86 + 41 + + - COUNT ( * ) AS col0
----
-46

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

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT - COUNT ( * ) / + 46
----
0

query I rowsort
SELECT 41 * ( - - 78 )
----
3198

query I rowsort
SELECT DISTINCT - CASE - 4 WHEN - 98 * + 62 + - - 85 THEN NULL WHEN 79 - - 0 THEN + - 87 WHEN + + 89 THEN - 62 * + 57 END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL - CAST ( NULL AS REAL ) + 0 col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 46 * - 92 AS col2
----
-4232

query I rowsort
SELECT 43 * + 31 AS col2
----
1333

query II rowsort
SELECT 41 AS col2, - ( + + 48 )
----
41
-48

query I rowsort
SELECT 56 * - 73 * - 18 + - 67
----
73517

query I rowsort
SELECT 18 + 33 - 16 + + 65 col2
----
100

query I rowsort
SELECT DISTINCT + ( ( + 26 ) ) AS col2
----
26

query I rowsort
SELECT + 0 + + 71
----
71

query I rowsort
SELECT DISTINCT 40 * + 83 AS col1
----
3320

query I rowsort
SELECT 87 + - 96
----
-9

query I rowsort
SELECT ALL 97 * - 29
----
-2813

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

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

query I rowsort
SELECT ALL 24 + 87 AS col0
----
111

query I rowsort
SELECT - 64 + + 57
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1997
SELECT DISTINCT + - CASE - 53 WHEN - CAST( COUNT( * ) AS SIGNED ) * - COUNT( * ) * - - COALESCE ( - + 14, + 16 / - 54 + 80 ) + + 92 THEN - 39 * - COUNT( * ) END * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT + - CASE - 53 WHEN - CAST ( COUNT ( * ) AS INTEGER ) * - COUNT ( * ) * - - COALESCE ( - + 14, + 16 / - 54 + 80 ) + + 92 THEN - 39 * - COUNT ( * ) END * + 86
----
NULL

query I rowsort
SELECT ALL + 48 + - 69
----
-21

query I rowsort
SELECT + NULLIF ( + - 48, - 5 / - 60 + - - 10 )
----
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT DISTINCT SUM( ALL + 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT SUM ( ALL + 62 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT DISTINCT 9 + + - 80 + + 57 - + COUNT( * ) - + 3 * - - 33 AS col2
----
-114

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT 9 + + - 80 + + 57 - + COUNT ( * ) - + 3 * - - 33 AS col2
----
-114

query I rowsort
SELECT ALL 11 + - + 41 AS col1
----
-30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT ALL 75 + - - 17 + 97 * - + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL 75 + - - 17 + 97 * - + COUNT ( * )
----
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT ALL - COALESCE ( 82, 57 - 42 + - - COUNT( * ) ) - - 82
----
0

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL - COALESCE ( 82, 57 - 42 + - - COUNT ( * ) ) - - 82
----
0

query I rowsort
SELECT ALL 69 * + - 63 col1
----
-4347

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2009
SELECT ALL - COALESCE ( + 55, + 90 + - + 25, CAST( - + ( - 10 ) AS SIGNED ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL - COALESCE ( + 55, + 90 + - + 25, CAST ( - + ( - 10 ) AS INTEGER ) ) AS col0
----
-55

query I rowsort
SELECT 40 + + 8
----
48

query II rowsort
SELECT 14 * 36, + 71 AS col1
----
504
71

query I rowsort
SELECT 70 * 3 + + 22
----
232

onlyif mysql # DIV for integer division: 
query I rowsort label-2013
SELECT 69 DIV - - 71 col2
----
0

skipif mysql # not compatible
query I rowsort label-2013
SELECT 69 / - - 71 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT COUNT( * ) * + NULLIF ( + + MAX( + 11 ), COUNT( * ) * - - 77 - + COUNT( ALL + ( 39 ) ) )
----
11

skipif mysql # not compatible
query I rowsort label-2014
SELECT COUNT ( * ) * + NULLIF ( + + MAX ( + 11 ), COUNT ( * ) * - - 77 - + COUNT ( ALL + ( 39 ) ) )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT 75 + - + SUM( DISTINCT + 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2015
SELECT 75 + - + SUM ( DISTINCT + 74 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2016
SELECT ALL - SUM( ALL - 98 ) AS col0, 42
----
98
42

skipif mysql # not compatible
query II rowsort label-2016
SELECT ALL - SUM ( ALL - 98 ) AS col0, 42
----
98
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2017
SELECT + ( 79 ) * + 59 + COUNT( * ) AS col2, CAST( + 0 AS SIGNED ) AS col1
----
4662
0

skipif mysql # not compatible
query II rowsort label-2017
SELECT + ( 79 ) * + 59 + COUNT ( * ) AS col2, CAST ( + 0 AS INTEGER ) AS col1
----
4662
0

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

skipif mysql # not compatible
query I rowsort label-2018
SELECT + 95 * CAST ( NULL AS INTEGER ) - + + 75
----
NULL

query I rowsort
SELECT - CASE - 10 WHEN 82 * 54 THEN - - 6 ELSE NULL END
----
NULL

query I rowsort
SELECT 2 * 66
----
132

query II rowsort
SELECT + 65 - + 24 AS col1, + ( 53 ) AS col0
----
41
53

query I rowsort
SELECT COALESCE ( - 69, + 75 ) AS col2
----
-69

query I rowsort
SELECT ALL + + 28 + 53 * + 72 + - + 26 col1
----
3818

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2024
SELECT DISTINCT + 41 + 71 / 73 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT + 41 + 71 / 73 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2025
SELECT ALL - + 15 + - 41 col1, NULLIF ( - COUNT( * ), + - 71 )
----
-56
-1

skipif mysql # not compatible
query II rowsort label-2025
SELECT ALL - + 15 + - 41 col1, NULLIF ( - COUNT ( * ), + - 71 )
----
-56
-1

query I rowsort
SELECT ALL + + 36 + CASE 49 WHEN 7 THEN 24 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT ALL MAX( 85 ) + - - 7 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL MAX ( 85 ) + - - 7 AS col1
----
92

query I rowsort
SELECT - 28 - + 10 AS col2
----
-38

query I rowsort
SELECT ALL - - 23 + - 10 + - ( 81 ) + - 67
----
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2030
SELECT CASE - COUNT( * ) WHEN 26 THEN - + ( + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) ELSE - 68 END
----
-68

skipif mysql # not compatible
query I rowsort label-2030
SELECT CASE - COUNT ( * ) WHEN 26 THEN - + ( + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) ELSE - 68 END
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT - 81 + + CASE + COUNT( * ) WHEN - 65 THEN + 47 + + - 14 * - - 76 WHEN - 41 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2031
SELECT - 81 + + CASE + COUNT ( * ) WHEN - 65 THEN + 47 + + - 14 * - - 76 WHEN - 41 THEN NULL END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2032
SELECT + 99 * + + CAST ( NULL AS INTEGER ) * - ( - - 95 )
----
NULL

query I rowsort
SELECT - 70 + - 29
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT ALL + COUNT( * ) - - 48 * - 31 AS col1
----
-1487

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL + COUNT ( * ) - - 48 * - 31 AS col1
----
-1487

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2035
SELECT DISTINCT NULLIF ( - + 75, - 2 + - 77 - CAST( + 5 AS SIGNED ) + - 46 ) col0
----
-75

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT NULLIF ( - + 75, - 2 + - 77 - CAST ( + 5 AS INTEGER ) + - 46 ) col0
----
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT ALL CASE - - COALESCE ( 60, COUNT( - 27 ) ) WHEN - 39 THEN NULL ELSE + 27 END AS col0
----
27

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL CASE - - COALESCE ( 60, COUNT ( - 27 ) ) WHEN - 39 THEN NULL ELSE + 27 END AS col0
----
27

query I rowsort
SELECT ALL - 73 * + 48
----
-3504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2039
SELECT + 16 + CAST( NULL AS SIGNED ) + + COUNT( * ) + 35 + 47 * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2039
SELECT + 16 + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + 35 + 47 * 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT + 3 * + MAX( 72 ) AS col0
----
216

skipif mysql # not compatible
query I rowsort label-2040
SELECT + 3 * + MAX ( 72 ) AS col0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT + 9 * + COUNT( * ) * + - 14 * + 18 AS col0
----
-2268

skipif mysql # not compatible
query I rowsort label-2041
SELECT + 9 * + COUNT ( * ) * + - 14 * + 18 AS col0
----
-2268

query I rowsort
SELECT 92 * - 29 + 88
----
-2580

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT + MAX( DISTINCT + 94 ) + + 88 AS col2
----
182

skipif mysql # not compatible
query I rowsort label-2043
SELECT + MAX ( DISTINCT + 94 ) + + 88 AS col2
----
182

onlyif mysql # DIV for integer division: 
query I rowsort label-2044
SELECT ALL 79 DIV + 55
----
1

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL 79 / + 55
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2045
SELECT DISTINCT COUNT( * ) * - CASE - - 91 WHEN 1 * - ( - 28 ) + - + 79 + 79 * 32 * + 5 + - + CASE 12 WHEN 42 * 24 - 81 + + 74 + + 37 / - 58 + + COUNT( + - 43 ) * + 13 THEN + 72 WHEN - 92 - COUNT( * ) THEN - 27 * + COUNT( * ) / 17 + - 67 + - ( - - ( + + ( - - 83 ) ) ) * - 30 * 66 + - 6 + 24 + - COALESCE ( 62 + CAST( NULL AS SIGNED ), 69 * NULLIF ( + 68 / MIN( 30 ), 60 / 33 ) ) END THEN NULL WHEN + 11 * CAST( NULL AS SIGNED ) THEN COUNT( * ) * + 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT COUNT ( * ) * - CASE - - 91 WHEN 1 * - ( - 28 ) + - + 79 + 79 * 32 * + 5 + - + CASE 12 WHEN 42 * 24 - 81 + + 74 + + 37 / - 58 + + COUNT ( + - 43 ) * + 13 THEN + 72 WHEN - 92 - COUNT ( * ) THEN - 27 * + COUNT ( * ) / 17 + - 67 + - ( - - ( + + ( - - 83 ) ) ) * - 30 * 66 + - 6 + 24 + - COALESCE ( 62 + CAST ( NULL AS INTEGER ), 69 * NULLIF ( + 68 / MIN ( 30 ), 60 / 33 ) ) END THEN NULL WHEN + 11 * CAST ( NULL AS INTEGER ) THEN COUNT ( * ) * + 49 END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2047
SELECT + 59 * CAST( NULL AS SIGNED ) * + COUNT( * ) - + 5 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2047
SELECT + 59 * CAST ( NULL AS INTEGER ) * + COUNT ( * ) - + 5 + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2048
SELECT + 26 * + CAST( MIN( - 25 ) AS SIGNED ) AS col2
----
-650

skipif mysql # not compatible
query I rowsort label-2048
SELECT + 26 * + CAST ( MIN ( - 25 ) AS INTEGER ) AS col2
----
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT + - 42 + 90 * + + COUNT( * ) + 82 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-2049
SELECT + - 42 + 90 * + + COUNT ( * ) + 82 AS col1
----
130

query I rowsort
SELECT - + 61 - - 68 AS col1
----
7

query I rowsort
SELECT + - 92 + - 81 * - 79
----
6307

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT DISTINCT + MIN( ALL + - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-2052
SELECT DISTINCT + MIN ( ALL + - 32 )
----
-32

query I rowsort
SELECT - 12 + - 50 * 2
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ALL + 45 + COALESCE ( - - COUNT( * ), - 56 )
----
46

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL + 45 + COALESCE ( - - COUNT ( * ), - 56 )
----
46

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

query I rowsort
SELECT - + 76 + + 13
----
-63

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

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

query I rowsort
SELECT - - 60 * + + 83 col2
----
4980

query I rowsort
SELECT DISTINCT - 54 * - + 68
----
3672

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2061
SELECT - - CAST( - 27 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-2061
SELECT - - CAST ( - 27 AS INTEGER )
----
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL CASE + 61 WHEN + MAX( ALL - 67 ) THEN + ( 11 ) + - - ( + 71 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL CASE + 61 WHEN + MAX ( ALL - 67 ) THEN + ( 11 ) + - - ( + 71 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2064
SELECT ALL CAST( + ( - 10 ) AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL CAST ( + ( - 10 ) AS INTEGER )
----
-10

query I rowsort
SELECT DISTINCT COALESCE ( - ( - + 35 ), 32 + - - 26 - + 95, + - 92, - - 53 )
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-2066
SELECT ALL ( + 40 ) col0, + 30 + + SUM( - + 53 ) AS col1
----
40
-23

skipif mysql # not compatible
query II rowsort label-2066
SELECT ALL ( + 40 ) col0, + 30 + + SUM ( - + 53 ) AS col1
----
40
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2067
SELECT DISTINCT + ( 15 ) DIV - 25 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2067
SELECT DISTINCT + ( 15 ) / - 25 + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2068
SELECT + COUNT( * ) DIV - COALESCE ( 36, - + 79 ), - 23 AS col0
----
0
-23

skipif mysql # not compatible
query II rowsort label-2068
SELECT + COUNT ( * ) / - COALESCE ( 36, - + 79 ), - 23 AS col0
----
0
-23

query I rowsort
SELECT - 21 + - 47 AS col2
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2070
SELECT - 80 - COALESCE ( - 51, - 80 DIV + COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-2070
SELECT - 80 - COALESCE ( - 51, - 80 / + COUNT ( * ) )
----
-29

query II rowsort
SELECT ALL + 14 AS col2, + 77 + + 66
----
14
143

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

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

query I rowsort
SELECT + 67 + - - 39 * 33
----
1354

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2076
SELECT + 9 AS col1, + COALESCE ( - COUNT( * ), + 83 ) * - COALESCE ( 77, - 57 ) * - + 66 + - + COALESCE ( - 82, 76 ) * + 17 + - - 15 * + SUM( ALL + - 33 ) col2
----
9
-4183

skipif mysql # not compatible
query II rowsort label-2076
SELECT + 9 AS col1, + COALESCE ( - COUNT ( * ), + 83 ) * - COALESCE ( 77, - 57 ) * - + 66 + - + COALESCE ( - 82, 76 ) * + 17 + - - 15 * + SUM ( ALL + - 33 ) col2
----
9
-4183

query II rowsort
SELECT - 42, 45 * + 86 AS col2
----
-42
3870

query I rowsort
SELECT + ( ( - 36 ) ) * ( - 94 )
----
3384

query I rowsort
SELECT ALL + 97 * + 65 + + + 51 col2
----
6356

query II rowsort
SELECT DISTINCT + + 25 AS col1, - 61 AS col1
----
25
-61

query II rowsort
SELECT ALL - 47 * + 73 + 14 + + 46 AS col2, - 27 AS col1
----
-3371
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2082
SELECT DISTINCT - ( - COUNT( * ) ) * - 36 + + - 55 DIV + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT - ( - COUNT ( * ) ) * - 36 + + - 55 / + COUNT ( * )
----
-91

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

skipif mysql # not compatible
query I rowsort label-2083
SELECT + - CAST ( - 13 AS INTEGER ) * + 28 AS col0
----
364

onlyif mysql # aggregate syntax: 
query II rowsort label-2084
SELECT + ( 76 ) col2, CASE + 59 WHEN + + 99 - + 51 THEN - CASE - + 64 WHEN 23 THEN + 22 / - 64 END ELSE - COUNT( * ) END
----
76
-1

skipif mysql # not compatible
query II rowsort label-2084
SELECT + ( 76 ) col2, CASE + 59 WHEN + + 99 - + 51 THEN - CASE - + 64 WHEN 23 THEN + 22 / - 64 END ELSE - COUNT ( * ) END
----
76
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT 21 - + 68 + 7 * ( + 78 ) - + 28 * 54 * + + 85 + + - COUNT( * ) + - 28 * + 96 + 44 AS col0
----
-130666

skipif mysql # not compatible
query I rowsort label-2086
SELECT 21 - + 68 + 7 * ( + 78 ) - + 28 * 54 * + + 85 + + - COUNT ( * ) + - 28 * + 96 + 44 AS col0
----
-130666

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT 65 * ( - ( - - COUNT( DISTINCT 49 ) ) )
----
-65

skipif mysql # not compatible
query I rowsort label-2087
SELECT 65 * ( - ( - - COUNT ( DISTINCT 49 ) ) )
----
-65

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2089
SELECT ALL + + 56 - CASE 91 WHEN - 92 THEN + 50 + CAST( NULL AS SIGNED ) WHEN + 17 THEN 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL + + 56 - CASE 91 WHEN - 92 THEN + 50 + CAST ( NULL AS INTEGER ) WHEN + 17 THEN 26 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2090
SELECT + CAST( 78 AS SIGNED ) * - - 29 + 45 DIV COUNT( * ) * 53, 66 * + 67 + + 99 * + 0 AS col1
----
4647
4422

skipif mysql # not compatible
query II rowsort label-2090
SELECT + CAST ( 78 AS INTEGER ) * - - 29 + 45 / COUNT ( * ) * 53, 66 * + 67 + + 99 * + 0 AS col1
----
4647
4422

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2092
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 65 * 9 / + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 65 * 9 / + - 71
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2094
SELECT 44 - - - CAST( - COUNT( * ) AS SIGNED ) AS col1, + 23 AS col1
----
45
23

skipif mysql # not compatible
query II rowsort label-2094
SELECT 44 - - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1, + 23 AS col1
----
45
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT COUNT( * ) * + NULLIF ( - 85, + COUNT( * ) + + + 19 * + + 69 )
----
-85

skipif mysql # not compatible
query I rowsort label-2095
SELECT COUNT ( * ) * + NULLIF ( - 85, + COUNT ( * ) + + + 19 * + + 69 )
----
-85

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

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

query I rowsort
SELECT ( 1 ) + + 70 + 11
----
82

query II rowsort
SELECT 40 * + ( - 8 ) AS col2, + 42 AS col1
----
-320
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2099
SELECT DISTINCT NULLIF ( - - CASE COUNT( * ) WHEN - - 38 * - 33 THEN NULL WHEN + 34 - - COUNT( * ) + ( - COUNT( * ) ) THEN - - 12 + - + 19 END, + CASE - MAX( ALL + + 21 ) WHEN 52 + - 57 THEN - 64 * - 24 WHEN - - 34 + - CAST( + ( - 25 ) AS SIGNED ) * 66 THEN NULL ELSE - 86 END + + 5 / 76 ) + + 52 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT DISTINCT NULLIF ( - - CASE COUNT ( * ) WHEN - - 38 * - 33 THEN NULL WHEN + 34 - - COUNT ( * ) + ( - COUNT ( * ) ) THEN - - 12 + - + 19 END, + CASE - MAX ( ALL + + 21 ) WHEN 52 + - 57 THEN - 64 * - 24 WHEN - - 34 + - CAST ( + ( - 25 ) AS INTEGER ) * 66 THEN NULL ELSE - 86 END + + 5 / 76 ) + + 52 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 80 + - 88 * + + COALESCE ( - + 21, - 45 ) * - 69 AS col0
----
-127432

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

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL + COUNT ( * ) + + 29 AS col2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-2102
SELECT ALL + 66 + 72 + + 11 * + MAX( 74 ) AS col2, 77
----
952
77

skipif mysql # not compatible
query II rowsort label-2102
SELECT ALL + 66 + 72 + + 11 * + MAX ( 74 ) AS col2, 77
----
952
77

query I rowsort
SELECT ALL - 11 + + 65 col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-2104
SELECT DISTINCT + 84 + - 78 AS col1, - 24 + - COALESCE ( - 63, + 25 * 90 * - 76 * COUNT( * ) * + 5 - + 94 + + 79, - - COUNT( * ) * - 6 * CASE 27 WHEN + + 31 THEN NULL WHEN - CAST( NULL AS DECIMAL ) THEN + - 45 - - 40 ELSE NULL END * + ( + 57 ) * - + COALESCE ( - CAST( NULL AS SIGNED ), 90 DIV - 82 * - 92 ) ) AS col0
----
6
39

skipif mysql # not compatible
query II rowsort label-2104
SELECT DISTINCT + 84 + - 78 AS col1, - 24 + - COALESCE ( - 63, + 25 * 90 * - 76 * COUNT ( * ) * + 5 - + 94 + + 79, - - COUNT ( * ) * - 6 * CASE 27 WHEN + + 31 THEN NULL WHEN - CAST ( NULL AS REAL ) THEN + - 45 - - 40 ELSE NULL END * + ( + 57 ) * - + COALESCE ( - CAST ( NULL AS INTEGER ), 90 / - 82 * - 92 ) ) AS col0
----
6
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2105
SELECT AVG ( 80 ) + - 60 + + - CAST( NULL AS SIGNED ) * + 71 * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2105
SELECT AVG ( 80 ) + - 60 + + - CAST ( NULL AS INTEGER ) * + 71 * 59
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2107
SELECT + 88 DIV - 30 - + - ( - - COUNT( * ) ) DIV 93 + - - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2107
SELECT + 88 / - 30 - + - ( - - COUNT ( * ) ) / 93 + - - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT - 92 * - 42 * - ( 64 )
----
-247296

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT ALL COUNT( - - 0 ) * - 81 * NULLIF ( 14, - - 85 / - - 27 ) AS col2
----
-1134

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL COUNT ( - - 0 ) * - 81 * NULLIF ( 14, - - 85 / - - 27 ) AS col2
----
-1134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2111
SELECT DISTINCT - 12 + - ( 21 ) + + COUNT( * ) * + 8 / + + CAST( NULL AS SIGNED ) * COUNT( * ) * + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2111
SELECT DISTINCT - 12 + - ( 21 ) + + COUNT ( * ) * + 8 / + + CAST ( NULL AS INTEGER ) * COUNT ( * ) * + 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT DISTINCT + 53 * - + 37 + NULLIF ( - 21, + + 37 ) * - COUNT( * ) AS col2
----
-1940

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT + 53 * - + 37 + NULLIF ( - 21, + + 37 ) * - COUNT ( * ) AS col2
----
-1940

query II rowsort
SELECT ALL - ( - 12 ), 2 AS col0
----
12
2

query I rowsort
SELECT ALL + 20 * - 62 * - + 38
----
47120

query I rowsort
SELECT - 12 * + 3 * + 68 + - - 73 AS col2
----
-2375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2116
SELECT 97 * + ( + - 36 ) - + COUNT( * ) DIV + + 5 AS col1
----
-3492

skipif mysql # not compatible
query I rowsort label-2116
SELECT 97 * + ( + - 36 ) - + COUNT ( * ) / + + 5 AS col1
----
-3492

onlyif mysql # aggregate syntax: 
query II rowsort label-2117
SELECT ALL - CASE + 18 WHEN - 0 THEN - - 46 + - - 36 WHEN ( 96 ) THEN - 63 ELSE NULL END col2, - CASE - COUNT( DISTINCT + - 63 ) WHEN 52 THEN NULL ELSE + - ( + 22 ) * 73 + + - 47 END
----
NULL
1653

skipif mysql # not compatible
query II rowsort label-2117
SELECT ALL - CASE + 18 WHEN - 0 THEN - - 46 + - - 36 WHEN ( 96 ) THEN - 63 ELSE NULL END col2, - CASE - COUNT ( DISTINCT + - 63 ) WHEN 52 THEN NULL ELSE + - ( + 22 ) * 73 + + - 47 END
----
NULL
1653

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT 36 + + 9 * + 5 + - - MAX( DISTINCT - - 1 ) + 82 * - 22 * + ( - + ( 44 ) )
----
79458

skipif mysql # not compatible
query I rowsort label-2118
SELECT 36 + + 9 * + 5 + - - MAX ( DISTINCT - - 1 ) + 82 * - 22 * + ( - + ( 44 ) )
----
79458

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT - 98 * - CASE + - COALESCE ( - + 22, 34 * - 93 * - 35 + 81 ) WHEN 17 * - 53 THEN NULL WHEN - - 2 THEN + + MIN( - + 72 ) + 68 WHEN + 40 THEN + COUNT( * ) * - 68 END + MAX( ALL - 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2121
SELECT - 98 * - CASE + - COALESCE ( - + 22, 34 * - 93 * - 35 + 81 ) WHEN 17 * - 53 THEN NULL WHEN - - 2 THEN + + MIN ( - + 72 ) + 68 WHEN + 40 THEN + COUNT ( * ) * - 68 END + MAX ( ALL - 17 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2122
SELECT COUNT( ALL + 19 ) + + 66 AS col0, 38 * + CASE + - 86 WHEN - 1 THEN - 56 - ( + 80 ) ELSE NULL END + - 0 * - + 20 AS col0
----
67
NULL

skipif mysql # not compatible
query II rowsort label-2122
SELECT COUNT ( ALL + 19 ) + + 66 AS col0, 38 * + CASE + - 86 WHEN - 1 THEN - 56 - ( + 80 ) ELSE NULL END + - 0 * - + 20 AS col0
----
67
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2123
SELECT ALL 47 AS col0, 62 * - + 81 + - - COUNT( * ) + 22 * COUNT( * ) * + - 6
----
47
-5153

skipif mysql # not compatible
query II rowsort label-2123
SELECT ALL 47 AS col0, 62 * - + 81 + - - COUNT ( * ) + 22 * COUNT ( * ) * + - 6
----
47
-5153

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT 34 * - 95 * - COUNT( ALL 25 ) AS col1
----
3230

skipif mysql # not compatible
query I rowsort label-2124
SELECT 34 * - 95 * - COUNT ( ALL 25 ) AS col1
----
3230

query I rowsort
SELECT 69 + 85
----
154

query I rowsort
SELECT 40 + - 85
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2127
SELECT DISTINCT 4 + + 85 DIV + - 2 * + COUNT( ALL 79 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT 4 + + 85 / + - 2 * + COUNT ( ALL 79 ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT - MIN( DISTINCT - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-2128
SELECT - MIN ( DISTINCT - 24 )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2129
SELECT 53 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-2129
SELECT 53 / 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT ALL 39 + - - COUNT( * ) * 70 * 99
----
6969

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL 39 + - - COUNT ( * ) * 70 * 99
----
6969

query I rowsort
SELECT DISTINCT ( + + 36 ) + + 44
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2132
SELECT ALL + 79 + 56 + + - 2 - + 55 + - + NULLIF ( - COUNT( * ), + NULLIF ( - + MIN( 70 ), - - CASE - 68 WHEN - 89 + 93 + 83 THEN COUNT( * ) * 44 DIV - + 89 END ) + - + COUNT( * ) ) * - 72 * - COUNT( * ) + - COUNT( * ) + + ( COUNT( + 56 ) ) DIV 82 col1
----
149

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL + 79 + 56 + + - 2 - + 55 + - + NULLIF ( - COUNT ( * ), + NULLIF ( - + MIN ( 70 ), - - CASE - 68 WHEN - 89 + 93 + 83 THEN COUNT ( * ) * 44 / - + 89 END ) + - + COUNT ( * ) ) * - 72 * - COUNT ( * ) + - COUNT ( * ) + + ( COUNT ( + 56 ) ) / 82 col1
----
149

query II rowsort
SELECT DISTINCT 22, 42 * + 97 AS col2
----
22
4074

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2134
SELECT 71, ( + 3 ) * + CAST( NULL AS SIGNED ) AS col1
----
71
NULL

skipif mysql # not compatible
query II rowsort label-2134
SELECT 71, ( + 3 ) * + CAST ( NULL AS INTEGER ) AS col1
----
71
NULL

query I rowsort
SELECT 84 + - 17
----
67

query I rowsort
SELECT ALL 26 + + - 8 col2
----
18

query I rowsort
SELECT ALL 85 + 42 col0
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2138
SELECT SUM( ALL + - CAST( NULL AS SIGNED ) ) - - ( 78 ) * - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-2138
SELECT SUM ( ALL + - CAST ( NULL AS INTEGER ) ) - - ( 78 ) * - 87
----
NULL

query I rowsort
SELECT DISTINCT 32 * - 46 col2
----
-1472

query I rowsort
SELECT ALL + 10 * - - 65 + + - ( + 20 ) + + - 86
----
544

query I rowsort
SELECT 33 + - - 68
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT + 56 * + COUNT( * ) * - 92 + 76
----
-5076

skipif mysql # not compatible
query I rowsort label-2142
SELECT + 56 * + COUNT ( * ) * - 92 + 76
----
-5076

query II rowsort
SELECT ALL - 92, 80 AS col0
----
-92
80

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2145
SELECT - 22 DIV - - 33
----
0

skipif mysql # not compatible
query I rowsort label-2145
SELECT - 22 / - - 33
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT ALL + + 1 * COUNT( DISTINCT 74 )
----
1

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL + + 1 * COUNT ( DISTINCT 74 )
----
1

query II rowsort
SELECT DISTINCT - 80 * 81 - 79 + - 35 col1, 65 AS col2
----
-6594
65

query II rowsort
SELECT ALL + - 98, 78 + + 47 + + 94 AS col1
----
-98
219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2150
SELECT COUNT( * ) AS col1, SUM( DISTINCT + - 45 ) * - CAST( NULL AS SIGNED ) + - - SUM( - 34 ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2150
SELECT COUNT ( * ) AS col1, SUM ( DISTINCT + - 45 ) * - CAST ( NULL AS INTEGER ) + - - SUM ( - 34 ) AS col0
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2151
SELECT 67 * 37 + + - CASE - 18 WHEN + CASE + COUNT( * ) WHEN + CAST( - 66 AS SIGNED ) THEN + COALESCE ( - NULLIF ( 1, - 82 ), - COUNT( * ), + 10 ) ELSE NULL END THEN + NULLIF ( COALESCE ( - COUNT( * ), 94 ), 92 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2151
SELECT 67 * 37 + + - CASE - 18 WHEN + CASE + COUNT ( * ) WHEN + CAST ( - 66 AS INTEGER ) THEN + COALESCE ( - NULLIF ( 1, - 82 ), - COUNT ( * ), + 10 ) ELSE NULL END THEN + NULLIF ( COALESCE ( - COUNT ( * ), 94 ), 92 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2152
SELECT 26, + 33 + - 15 DIV - - 27 AS col2
----
26
33

skipif mysql # not compatible
query II rowsort label-2152
SELECT 26, + 33 + - 15 / - - 27 AS col2
----
26
33

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

skipif mysql # not compatible
query I rowsort label-2153
SELECT - SUM ( + - 97 )
----
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT - COALESCE ( - 70, - + COUNT( * ), SUM( - 10 ) + - 3 )
----
70

skipif mysql # not compatible
query I rowsort label-2155
SELECT - COALESCE ( - 70, - + COUNT ( * ), SUM ( - 10 ) + - 3 )
----
70

query I rowsort
SELECT ALL 51 + 60 * - - 19 col2
----
1191

query II rowsort
SELECT - 57 + + 5 - + + 0 + + 5 AS col0, + 33 * - + 87
----
-47
-2871

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT - MIN( - ( 90 ) )
----
90

skipif mysql # not compatible
query I rowsort label-2158
SELECT - MIN ( - ( 90 ) )
----
90

query I rowsort
SELECT ALL 45 + - 12
----
33

query I rowsort
SELECT + 27 - - 66 col2
----
93

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

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

query I rowsort
SELECT + 79 + - 71
----
8

query I rowsort
SELECT ALL 85 + + 71 AS col2
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-2164
SELECT + 91 + - + COALESCE ( - COUNT( * ), - COUNT( * ) ) col1, 73
----
92
73

skipif mysql # not compatible
query II rowsort label-2164
SELECT + 91 + - + COALESCE ( - COUNT ( * ), - COUNT ( * ) ) col1, 73
----
92
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT + 97 * + - ( COUNT( * ) ) * + + 77 * - 5 + - ( - + ( - 16 ) )
----
37329

skipif mysql # not compatible
query I rowsort label-2165
SELECT + 97 * + - ( COUNT ( * ) ) * + + 77 * - 5 + - ( - + ( - 16 ) )
----
37329

onlyif mysql # DIV for integer division: 
query I rowsort label-2166
SELECT DISTINCT 38 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT 38 / + 92
----
0

query I rowsort
SELECT ALL + 64 - - 68 - - 63 * 32
----
2148

query I rowsort
SELECT - - NULLIF ( - 28, - 81 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT 82 * NULLIF ( 14, 41 + - 39 * + ( + 58 ) - + - COALESCE ( + 87, - - 31, - - 42 ) * - + 32 * + 25 * + 7 ) + 49 + + 63 * - 0 * - COUNT( * )
----
1197

skipif mysql # not compatible
query I rowsort label-2169
SELECT 82 * NULLIF ( 14, 41 + - 39 * + ( + 58 ) - + - COALESCE ( + 87, - - 31, - - 42 ) * - + 32 * + 25 * + 7 ) + 49 + + 63 * - 0 * - COUNT ( * )
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT ALL + + NULLIF ( + 52, + - COUNT( * ) * + - 17 - - + 39 - + 53 )
----
52

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL + + NULLIF ( + 52, + - COUNT ( * ) * + - 17 - - + 39 - + 53 )
----
52

query I rowsort
SELECT CASE 7 WHEN 56 THEN NULL ELSE - - 55 END
----
55

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

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

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

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

query I rowsort
SELECT + - 32 + + 77
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2175
SELECT DISTINCT COUNT( * ) * + 44 DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT COUNT ( * ) * + 44 / - 58
----
0

query II rowsort
SELECT - 52 + - 41 AS col0, 88 * - 16 * - 58
----
-93
81664

onlyif mysql # DIV for integer division: 
query I rowsort label-2177
SELECT - 56 DIV + 49 col0
----
-1

skipif mysql # not compatible
query I rowsort label-2177
SELECT - 56 / + 49 col0
----
-1

query I rowsort
SELECT ALL - CASE WHEN NULL NOT BETWEEN + 32 AND - 99 THEN - 47 ELSE + 25 END * 54 + 69
----
-1281

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2181
SELECT DISTINCT - 69 DIV 58 DIV + 60 AS col0, 40
----
0
40

skipif mysql # not compatible
query II rowsort label-2181
SELECT DISTINCT - 69 / 58 / + 60 AS col0, 40
----
0
40

query I rowsort
SELECT - ( + 39 ) * - 69 + + + 67
----
2758

onlyif mysql # DIV for integer division: 
query II rowsort label-2183
SELECT - ( 71 ) - - + 72, - 22 DIV 50 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-2183
SELECT - ( 71 ) - - + 72, - 22 / 50 AS col0
----
1
0

query I rowsort
SELECT ALL - 51 * + 24 * - 46
----
56304

onlyif mysql # aggregate syntax: 
query II rowsort label-2185
SELECT ALL + 87 * - ( - COUNT( * ) ) + - COALESCE ( + - 29, - 44 ) AS col1, 23 + - 65 AS col0
----
116
-42

skipif mysql # not compatible
query II rowsort label-2185
SELECT ALL + 87 * - ( - COUNT ( * ) ) + - COALESCE ( + - 29, - 44 ) AS col1, 23 + - 65 AS col0
----
116
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2186
SELECT DISTINCT + CASE 16 WHEN + - 41 + + - 78 + - 44 / - CAST( - + COALESCE ( + 41, 77 ) AS SIGNED ) * + + COUNT( * ) THEN - + 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT + CASE 16 WHEN + - 41 + + - 78 + - 44 / - CAST ( - + COALESCE ( + 41, 77 ) AS INTEGER ) * + + COUNT ( * ) THEN - + 48 END
----
NULL

query I rowsort
SELECT DISTINCT - ( + 43 ) * + 62
----
-2666

query I rowsort
SELECT - 51 + - 96 + + + 30 AS col1
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2189
SELECT ALL - COALESCE ( - 47, CAST( NULL AS SIGNED ), - + 36 ) * 68 * - MAX( ALL + 7 ) AS col2
----
-22372

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL - COALESCE ( - 47, CAST ( NULL AS INTEGER ), - + 36 ) * 68 * - MAX ( ALL + 7 ) AS col2
----
-22372

query I rowsort
SELECT ALL + 52 * 53 col0
----
2756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT DISTINCT CAST( + + 6 AS SIGNED ) * - 13 + 73 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT CAST ( + + 6 AS INTEGER ) * - 13 + 73 AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2192
SELECT + ( + CASE + CAST( NULL AS SIGNED ) WHEN - 29 THEN - 78 + ( + 67 ) WHEN - COUNT( * ) THEN + 64 END ) + ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2192
SELECT + ( + CASE + CAST ( NULL AS INTEGER ) WHEN - 29 THEN - 78 + ( + 67 ) WHEN - COUNT ( * ) THEN + 64 END ) + ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2193
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, 90 + - 47
----
NULL
43

skipif mysql # not compatible
query II rowsort label-2193
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 90 + - 47
----
NULL
43

query I rowsort
SELECT + 73 + + 28
----
101

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

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL CAST ( - MIN ( + + 72 ) AS INTEGER )
----
-72

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

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

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

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

query I rowsort
SELECT 16 + - - 21 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT ALL - 33 - - COUNT( * ) + 9 * + 57 AS col2
----
481

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL - 33 - - COUNT ( * ) + 9 * + 57 AS col2
----
481

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT + 77 * - COUNT( * ) * 63 * - + 6
----
29106

skipif mysql # not compatible
query I rowsort label-2200
SELECT + 77 * - COUNT ( * ) * 63 * - + 6
----
29106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2201
SELECT CAST( - 48 AS SIGNED ) - + 3 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-2201
SELECT CAST ( - 48 AS INTEGER ) - + 3 AS col2
----
-51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT 42 * + NULLIF ( + CASE - 0 WHEN COUNT( 75 ) + - 83 + - 44 THEN NULL WHEN - 58 * 75 THEN NULL WHEN 25 + - 92 + + 13 * 80 + + 50 * MIN( ALL - 59 ) THEN - 63 * - + MAX( ALL - + 19 ) * + 82 - + ( - 64 ) END, + - 83 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2203
SELECT 42 * + NULLIF ( + CASE - 0 WHEN COUNT ( 75 ) + - 83 + - 44 THEN NULL WHEN - 58 * 75 THEN NULL WHEN 25 + - 92 + + 13 * 80 + + 50 * MIN ( ALL - 59 ) THEN - 63 * - + MAX ( ALL - + 19 ) * + 82 - + ( - 64 ) END, + - 83 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2204
SELECT DISTINCT + 50 / + NULLIF ( - + CAST( NULL AS SIGNED ), - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2204
SELECT DISTINCT + 50 / + NULLIF ( - + CAST ( NULL AS INTEGER ), - 90 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2205
SELECT DISTINCT - 16 AS col1, + NULLIF ( - 81, - + 83 * + - 92 ) DIV + - CAST( - - 40 AS SIGNED )
----
-16
2

skipif mysql # not compatible
query II rowsort label-2205
SELECT DISTINCT - 16 AS col1, + NULLIF ( - 81, - + 83 * + - 92 ) / + - CAST ( - - 40 AS INTEGER )
----
-16
2

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

skipif mysql # not compatible
query II rowsort label-2206
SELECT ALL ( + + COUNT ( * ) ) / 8 AS col0, 43 AS col0
----
0
43

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

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

query I rowsort
SELECT ALL + 15 + 53 + 57 AS col2
----
125

query II rowsort
SELECT + 80 AS col0, - 53
----
80
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2210
SELECT DISTINCT - 85, SUM( DISTINCT - 43 ) DIV + 36 + 91 AS col1
----
-85
90

skipif mysql # not compatible
query II rowsort label-2210
SELECT DISTINCT - 85, SUM ( DISTINCT - 43 ) / + 36 + 91 AS col1
----
-85
90

onlyif mysql # DIV for integer division: 
query II rowsort label-2211
SELECT + 42 AS col0, 91 * 51 + 6 DIV 1 AS col1
----
42
4647

skipif mysql # not compatible
query II rowsort label-2211
SELECT + 42 AS col0, 91 * 51 + 6 / 1 AS col1
----
42
4647

query II rowsort
SELECT DISTINCT - 31 AS col1, - 20 AS col1
----
-31
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-2213
SELECT + 88, + COUNT( * ) * 15 AS col2
----
88
15

skipif mysql # not compatible
query II rowsort label-2213
SELECT + 88, + COUNT ( * ) * 15 AS col2
----
88
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2214
SELECT ALL + 11 + CASE MIN( + 17 ) WHEN - SUM( - 58 ) * + 87 THEN 85 END + - 46 * - 56 - + + 53 AS col2, - ( - 14 ) * + 75 + + + 67 + - - 24 + + 1 * COUNT( * ) * - 65 * 41 AS col0
----
NULL
-1524

skipif mysql # not compatible
query II rowsort label-2214
SELECT ALL + 11 + CASE MIN ( + 17 ) WHEN - SUM ( - 58 ) * + 87 THEN 85 END + - 46 * - 56 - + + 53 AS col2, - ( - 14 ) * + 75 + + + 67 + - - 24 + + 1 * COUNT ( * ) * - 65 * 41 AS col0
----
NULL
-1524

onlyif mysql # aggregate syntax: 
query II rowsort label-2215
SELECT + 43 AS col0, ( - - 99 ) * + - 14 * + + SUM( - - 68 ) col2
----
43
-94248

skipif mysql # not compatible
query II rowsort label-2215
SELECT + 43 AS col0, ( - - 99 ) * + - 14 * + + SUM ( - - 68 ) col2
----
43
-94248

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT ALL COUNT( * ) + 84 * 95 col2
----
7981

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL COUNT ( * ) + 84 * 95 col2
----
7981

query I rowsort
SELECT DISTINCT 75 + + 21 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT ALL 33 + - - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL 33 + - - COUNT ( * )
----
34

query I rowsort
SELECT ALL 10 - - 69 + 51 * 22 * + + 55 AS col2
----
61789

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT NULLIF ( - 40, 66 ) * - COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-2220
SELECT NULLIF ( - 40, 66 ) * - COUNT ( * ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-2221
SELECT 85 * 70, - CASE + 20 WHEN 95 THEN NULL WHEN + + 10 - 92 THEN - - COUNT( * ) ELSE NULL END AS col0
----
5950
NULL

skipif mysql # not compatible
query II rowsort label-2221
SELECT 85 * 70, - CASE + 20 WHEN 95 THEN NULL WHEN + + 10 - 92 THEN - - COUNT ( * ) ELSE NULL END AS col0
----
5950
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2222
SELECT DISTINCT + 39 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT + 39 / 40
----
0

query I rowsort
SELECT 59 + 77 * + ( ( - 37 ) )
----
-2790

query I rowsort
SELECT 97 * + + 78 AS col2
----
7566

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2225
SELECT DISTINCT 18, CASE WHEN NOT - CAST( NULL AS SIGNED ) IS NOT NULL THEN 50 END AS col2
----
18
50

skipif mysql # not compatible
query II rowsort label-2225
SELECT DISTINCT 18, CASE WHEN NOT - CAST ( NULL AS INTEGER ) IS NOT NULL THEN 50 END AS col2
----
18
50

query I rowsort
SELECT 78 + - 13 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT ALL - 49 - MAX( ALL 49 )
----
-98

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL - 49 - MAX ( ALL 49 )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2228
SELECT 94 DIV - 15
----
-6

skipif mysql # not compatible
query I rowsort label-2228
SELECT 94 / - 15
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-2229
SELECT ALL 79 AS col2, + MIN( + + 41 ) * + 46
----
79
1886

skipif mysql # not compatible
query II rowsort label-2229
SELECT ALL 79 AS col2, + MIN ( + + 41 ) * + 46
----
79
1886

onlyif mysql # aggregate syntax: 
query II rowsort label-2230
SELECT ALL - 49 * - - 90 AS col0, 81 * + + NULLIF ( + SUM( DISTINCT + 65 ), ( - - ( - 31 ) ) ) * - 16 - + + 48
----
-4410
-84288

skipif mysql # not compatible
query II rowsort label-2230
SELECT ALL - 49 * - - 90 AS col0, 81 * + + NULLIF ( + SUM ( DISTINCT + 65 ), ( - - ( - 31 ) ) ) * - 16 - + + 48
----
-4410
-84288

query I rowsort
SELECT 74 * 4 AS col2
----
296

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-2232
SELECT - 85 AS col1, 39 - 2 DIV - 76 AS col2, + + 35 * + 98 + - 60 + + 25 * + + 3 - - 70 + CAST( NULL AS DECIMAL ) * - 3 - + ( COALESCE ( - 93, + - 11 - 0 * + 70, + + COUNT( * ) * COUNT( * ) * + - 54 + 56 * - CASE - + 89 WHEN + AVG ( ALL - + 47 ) * - 86 THEN 31 ELSE NULL END + - 19 ) ) + + COUNT( * ) * + 52 * 53 * 26 AS col2
----
-85
39
NULL

skipif mysql # not compatible
query III rowsort label-2232
SELECT - 85 AS col1, 39 - 2 / - 76 AS col2, + + 35 * + 98 + - 60 + + 25 * + + 3 - - 70 + CAST ( NULL AS REAL ) * - 3 - + ( COALESCE ( - 93, + - 11 - 0 * + 70, + + COUNT ( * ) * COUNT ( * ) * + - 54 + 56 * - CASE - + 89 WHEN + AVG ( ALL - + 47 ) * - 86 THEN 31 ELSE NULL END + - 19 ) ) + + COUNT ( * ) * + 52 * 53 * 26 AS col2
----
-85
39
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2233
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2, - 98
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-2233
SELECT ALL + CAST ( NULL AS REAL ) AS col2, - 98
----
NULL
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-2234
SELECT - 96 AS col2, MAX( + 79 ) AS col0
----
-96
79

skipif mysql # not compatible
query II rowsort label-2234
SELECT - 96 AS col2, MAX ( + 79 ) AS col0
----
-96
79

onlyif mysql # DIV for integer division: 
query I rowsort label-2235
SELECT - 75 + - 74 DIV 84 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-2235
SELECT - 75 + - 74 / 84 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-2236
SELECT ALL - 21, COUNT( * ) col0
----
-21
1

skipif mysql # not compatible
query II rowsort label-2236
SELECT ALL - 21, COUNT ( * ) col0
----
-21
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2237
SELECT - CASE - + COUNT( * ) WHEN - CAST( + 32 AS SIGNED ) THEN NULL WHEN + - 6 THEN NULL ELSE + 13 - + 2 END * - 53 * + + 42
----
24486

skipif mysql # not compatible
query I rowsort label-2237
SELECT - CASE - + COUNT ( * ) WHEN - CAST ( + 32 AS INTEGER ) THEN NULL WHEN + - 6 THEN NULL ELSE + 13 - + 2 END * - 53 * + + 42
----
24486

query I rowsort
SELECT 80 + + + 61 - - + 92 * - 29 * - - 68
----
-181283

query II rowsort
SELECT ALL + 23 AS col0, 55 AS col0
----
23
55

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2241
SELECT ALL 41 * - 71 + 35 * + 32 AS col2, COUNT( * )
----
-1791
1

skipif mysql # not compatible
query II rowsort label-2241
SELECT ALL 41 * - 71 + 35 * + 32 AS col2, COUNT ( * )
----
-1791
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT ALL + - 78 + COUNT( * ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL + - 78 + COUNT ( * ) col0
----
-77

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

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

query I rowsort
SELECT ALL + + 3 * 45
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-2245
SELECT 95, 92 + 68 - 74 * NULLIF ( - - 61, - NULLIF ( - + ( + 21 ), SUM( ALL - 69 ) ) ) * - ( COUNT( * ) ) * - 80 + 3 col2
----
95
-360957

skipif mysql # not compatible
query II rowsort label-2245
SELECT 95, 92 + 68 - 74 * NULLIF ( - - 61, - NULLIF ( - + ( + 21 ), SUM ( ALL - 69 ) ) ) * - ( COUNT ( * ) ) * - 80 + 3 col2
----
95
-360957

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT 79 * COUNT( * ) + 65 AS col2
----
144

skipif mysql # not compatible
query I rowsort label-2246
SELECT 79 * COUNT ( * ) + 65 AS col2
----
144

query I rowsort
SELECT ALL + 24 * + - 42 + 68 - 12
----
-952

query I rowsort
SELECT DISTINCT + 27 * + 64 + + 83
----
1811

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT - 82 * - 74 * + COUNT( * ) / + CASE + - 97 WHEN + 23 + + - 81 THEN - - 70 ELSE NULL END + + + COUNT( DISTINCT 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2249
SELECT - 82 * - 74 * + COUNT ( * ) / + CASE + - 97 WHEN + 23 + + - 81 THEN - - 70 ELSE NULL END + + + COUNT ( DISTINCT 81 )
----
NULL

query I rowsort
SELECT 28 * 55
----
1540

query II rowsort
SELECT + + 72 AS col0, 33
----
72
33

query I rowsort
SELECT ALL + + 5 * + + 9 + - 11 AS col1
----
34

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2254
SELECT ALL 71 DIV - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL 71 / - 96 AS col0
----
0

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

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

query I rowsort
SELECT DISTINCT 63 * + ( 77 ) * + 76
----
368676

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT DISTINCT 75 DIV NULLIF ( + + 56, + 14 )
----
1

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT 75 / NULLIF ( + + 56, + 14 )
----
1

query I rowsort
SELECT ALL 34 - 33 AS col2
----
1

query I rowsort
SELECT ALL 86 * - - 54 * 64 AS col1
----
297216

onlyif mysql # aggregate syntax: 
query II rowsort label-2260
SELECT COUNT( - 70 ) * + - 19 * 13 + 79 - + 17 * - 28 AS col0, + 63 * 87 AS col2
----
308
5481

skipif mysql # not compatible
query II rowsort label-2260
SELECT COUNT ( - 70 ) * + - 19 * 13 + 79 - + 17 * - 28 AS col0, + 63 * 87 AS col2
----
308
5481

query I rowsort
SELECT DISTINCT 21 * + 25 AS col1
----
525

query I rowsort
SELECT DISTINCT 33 * - + COALESCE ( + COALESCE ( 6, + 66 ), + 71 * + 81 )
----
-198

onlyif mysql # aggregate syntax: 
query II rowsort label-2263
SELECT DISTINCT 68 * 26 AS col0, - COUNT( * ) * 72 * 50 * 0 AS col0
----
1768
0

skipif mysql # not compatible
query II rowsort label-2263
SELECT DISTINCT 68 * 26 AS col0, - COUNT ( * ) * 72 * 50 * 0 AS col0
----
1768
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT DISTINCT - SUM( + + 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-2264
SELECT DISTINCT - SUM ( + + 41 ) AS col1
----
-41

query I rowsort
SELECT DISTINCT 85 * + CASE + 1 WHEN 10 THEN - 66 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT + ( 18 ) * 68
----
1224

query I rowsort
SELECT - 90 + - 45 AS col1
----
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-2269
SELECT ALL + + 55 DIV - + COALESCE ( + 27, - 96 ) + 67 * 49 * - - 67 col1
----
219959

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL + + 55 / - + COALESCE ( + 27, - 96 ) + 67 * 49 * - - 67 col1
----
219959

query I rowsort
SELECT + - 94 + + + 25
----
-69

query I rowsort
SELECT ALL - NULLIF ( 4, ( - + NULLIF ( + 57, - 96 * 80 ) ) + 29 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT + + ( + 75 ) * - MAX( DISTINCT - 60 ) AS col1
----
4500

skipif mysql # not compatible
query I rowsort label-2272
SELECT + + ( + 75 ) * - MAX ( DISTINCT - 60 ) AS col1
----
4500

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

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL + 14 + - + COUNT ( * ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT DISTINCT - COUNT( ALL - 13 ) * - 12
----
12

skipif mysql # not compatible
query I rowsort label-2274
SELECT DISTINCT - COUNT ( ALL - 13 ) * - 12
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL + MIN( 64 ) + + - 98 + + - 17
----
-51

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL + MIN ( 64 ) + + - 98 + + - 17
----
-51

query I rowsort
SELECT - 18 + + 29 AS col0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-2277
SELECT DISTINCT + + COUNT( * ) * COUNT( * ) AS col1, 0
----
1
0

skipif mysql # not compatible
query II rowsort label-2277
SELECT DISTINCT + + COUNT ( * ) * COUNT ( * ) AS col1, 0
----
1
0

query I rowsort
SELECT NULLIF ( - 20, - 23 ) AS col0
----
-20

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT - 2 - 33 * - - COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-2280
SELECT - 2 - 33 * - - COUNT ( * ) AS col1
----
-35

query II rowsort
SELECT ALL + + ( + 54 ) AS col2, 55 AS col0
----
54
55

query I rowsort
SELECT DISTINCT + - 64 * - - 60 - + - 20 AS col2
----
-3820

query II rowsort
SELECT - - 93 * - 55 AS col1, 29 AS col2
----
-5115
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2284
SELECT ALL COUNT( * ) * - MIN( + 42 ) * 88 * + 90 + CAST( NULL AS SIGNED ), - 15 * + 73 AS col1
----
NULL
-1095

skipif mysql # not compatible
query II rowsort label-2284
SELECT ALL COUNT ( * ) * - MIN ( + 42 ) * 88 * + 90 + CAST ( NULL AS INTEGER ), - 15 * + 73 AS col1
----
NULL
-1095

query II rowsort
SELECT + 41, - 65 - + - 59 * + - 59 * + 71 AS col2
----
41
-247216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2286
SELECT + CAST( + COUNT( * ) AS SIGNED ) * + 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2286
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * + 49 AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2287
SELECT COALESCE ( - - ( - 12 ), + 48, + - CASE 10 WHEN + + CAST( - + COUNT( * ) AS SIGNED ) THEN + 58 WHEN - 6 + - MIN( ALL - 78 ) THEN - 73 ELSE - 23 + - 28 END * + 68 + - - 3 * + 70 )
----
-12

skipif mysql # not compatible
query I rowsort label-2287
SELECT COALESCE ( - - ( - 12 ), + 48, + - CASE 10 WHEN + + CAST ( - + COUNT ( * ) AS INTEGER ) THEN + 58 WHEN - 6 + - MIN ( ALL - 78 ) THEN - 73 ELSE - 23 + - 28 END * + 68 + - - 3 * + 70 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT CASE + 9 WHEN 5 THEN + - 72 ELSE + - COUNT( * ) * 33 * - 19 * + ( - 3 ) END AS col0
----
-1881

skipif mysql # not compatible
query I rowsort label-2288
SELECT CASE + 9 WHEN 5 THEN + - 72 ELSE + - COUNT ( * ) * 33 * - 19 * + ( - 3 ) END AS col0
----
-1881

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2289
SELECT COALESCE ( + 54, - 87 * MIN( DISTINCT 83 ), - - 22 + + 50 - - - COUNT( * ) + CASE - 39 WHEN - + SUM( ALL CAST( NULL AS DECIMAL ) ) * + - 86 + 70 * 73 THEN NULL WHEN + 59 THEN + + 56 - + 60 + + SUM( ALL + + 43 ) ELSE NULL END ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-2289
SELECT COALESCE ( + 54, - 87 * MIN ( DISTINCT 83 ), - - 22 + + 50 - - - COUNT ( * ) + CASE - 39 WHEN - + SUM ( ALL CAST ( NULL AS REAL ) ) * + - 86 + 70 * 73 THEN NULL WHEN + 59 THEN + + 56 - + 60 + + SUM ( ALL + + 43 ) ELSE NULL END ) AS col0
----
54

query I rowsort
SELECT DISTINCT - 30 * + 34 AS col0
----
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT - 45 * + + ( + ( + SUM( ALL 60 ) ) )
----
-2700

skipif mysql # not compatible
query I rowsort label-2291
SELECT - 45 * + + ( + ( + SUM ( ALL 60 ) ) )
----
-2700

query I rowsort
SELECT ALL - 21 * - 89 * CASE + 42 WHEN + 25 THEN - 1 + 53 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2293
SELECT + 62 / CASE - + 2 WHEN + 83 THEN + - 67 WHEN + ( - + 8 ) * + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-2293
SELECT + 62 / CASE - + 2 WHEN + 83 THEN + - 67 WHEN + ( - + 8 ) * + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END * 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL + NULLIF ( - 50, - - MIN( DISTINCT - 2 ) ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL + NULLIF ( - 50, - - MIN ( DISTINCT - 2 ) ) AS col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2295
SELECT 58 * NULLIF ( + + 65, - COALESCE ( + 11, - COUNT( * ) * - CAST( - + 2 AS SIGNED ) ) * 16 + 4 ) + - 36 + - 1 DIV - 45 AS col2
----
3734

skipif mysql # not compatible
query I rowsort label-2295
SELECT 58 * NULLIF ( + + 65, - COALESCE ( + 11, - COUNT ( * ) * - CAST ( - + 2 AS INTEGER ) ) * 16 + 4 ) + - 36 + - 1 / - 45 AS col2
----
3734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2296
SELECT CASE - + 69 WHEN 85 THEN NULL WHEN - - 27 THEN NULL ELSE - - CAST( + COUNT( * ) AS SIGNED ) END
----
1

skipif mysql # not compatible
query I rowsort label-2296
SELECT CASE - + 69 WHEN 85 THEN NULL WHEN - - 27 THEN NULL ELSE - - CAST ( + COUNT ( * ) AS INTEGER ) END
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2297
SELECT ALL 20 / - + CAST( NULL AS SIGNED ) * + + 84, 23 AS col1
----
NULL
23

skipif mysql # not compatible
query II rowsort label-2297
SELECT ALL 20 / - + CAST ( NULL AS INTEGER ) * + + 84, 23 AS col1
----
NULL
23

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

skipif mysql # not compatible
query I rowsort label-2298
SELECT - 26 / + COUNT ( * )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2299
SELECT + CAST( NULL AS DECIMAL ) * COUNT( * ) * + 6 + - + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT + CAST ( NULL AS REAL ) * COUNT ( * ) * + 6 + - + 55 AS col1
----
NULL

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

query II rowsort
SELECT + 57 * - 49 + - 83 AS col0, - 12 * - - 92
----
-2876
-1104

query I rowsort
SELECT + 8 * 30 AS col0
----
240

query I rowsort
SELECT + 79 + + 1
----
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT ALL COUNT( * ) * 79 + + 67 - 42 - - + 94 AS col0
----
198

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL COUNT ( * ) * 79 + + 67 - 42 - - + 94 AS col0
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2306
SELECT DISTINCT 19 + - + 59 * + 78, CAST( NULL AS SIGNED ) * 57 + - 46 AS col0
----
-4583
NULL

skipif mysql # not compatible
query II rowsort label-2306
SELECT DISTINCT 19 + - + 59 * + 78, CAST ( NULL AS INTEGER ) * 57 + - 46 AS col0
----
-4583
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT ALL COUNT( * ) + - COALESCE ( + 33, - - 54 + COUNT( * ) )
----
-32

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL COUNT ( * ) + - COALESCE ( + 33, - - 54 + COUNT ( * ) )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT + COUNT( * ) + + 7 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2308
SELECT + COUNT ( * ) + + 7 AS col0
----
8

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

skipif mysql # not compatible
query I rowsort label-2309
SELECT + CAST ( NULL AS INTEGER ) + + AVG ( - 75 ) AS col0
----
NULL

query I rowsort
SELECT + + 38 * 45 + - - 67 AS col2
----
1777

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

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

query I rowsort
SELECT + + 89 + + 67 AS col1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT COALESCE ( + + 1, COUNT( * ), - - 56 )
----
1

skipif mysql # not compatible
query I rowsort label-2313
SELECT COALESCE ( + + 1, COUNT ( * ), - - 56 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2314
SELECT ALL 65 DIV - - 14 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL 65 / - - 14 AS col1
----
4

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2317
SELECT - 23 * - 30 * + 81 * - 10 / ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2317
SELECT - 23 * - 30 * + 81 * - 10 / ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT - COUNT( * ) + + - 57 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-2318
SELECT - COUNT ( * ) + + - 57 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT ALL + - 56 * + + COALESCE ( + COALESCE ( - + SUM( ALL - - 15 ), + 60 ), 89 + 89, + MIN( DISTINCT - 29 ) + 93 )
----
840

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL + - 56 * + + COALESCE ( + COALESCE ( - + SUM ( ALL - - 15 ), + 60 ), 89 + 89, + MIN ( DISTINCT - 29 ) + 93 )
----
840

query I rowsort
SELECT DISTINCT NULLIF ( - 85, + 86 )
----
-85

query I rowsort
SELECT ALL + 52 * + 99
----
5148

query I rowsort
SELECT - 86 * - 34 + + 12 * - + 69 AS col0
----
2096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2323
SELECT CASE WHEN NOT + COUNT( DISTINCT 39 ) NOT IN ( - 12 * + + 59 + + - 3 * - COALESCE ( + + 86, + + 38 * - COALESCE ( - ( + 13 ), 64 + COUNT( * ), 53 ) / + 83 * + - 22 + - + CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) + 20 + COUNT( 59 ) * + 89 / - 45 + - - 2 + COALESCE ( SUM( + 4 ), + ( - 72 ) * + - 58 ) ) + + CASE COUNT( * ) WHEN - 30 THEN NULL WHEN + + 84 THEN NULL ELSE - 16 END ) THEN 42 END * 27 + + + ( + 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2323
SELECT CASE WHEN NOT + COUNT ( DISTINCT 39 ) NOT IN ( - 12 * + + 59 + + - 3 * - COALESCE ( + + 86, + + 38 * - COALESCE ( - ( + 13 ), 64 + COUNT ( * ), 53 ) / + 83 * + - 22 + - + CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) + 20 + COUNT ( 59 ) * + 89 / - 45 + - - 2 + COALESCE ( SUM ( + 4 ), + ( - 72 ) * + - 58 ) ) + + CASE COUNT ( * ) WHEN - 30 THEN NULL WHEN + + 84 THEN NULL ELSE - 16 END ) THEN 42 END * 27 + + + ( + 21 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2324
SELECT + ( 97 ) DIV 23 + - 81 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-2324
SELECT + ( 97 ) / 23 + - 81 AS col1
----
-77

query I rowsort
SELECT - 21 * - - 70
----
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT - 54 * + 69 * - NULLIF ( - 64, NULLIF ( + 33, + 26 - - 73 ) + + 28 ) + - 55 * 83 - - COUNT( * ) AS col2
----
-243028

skipif mysql # not compatible
query I rowsort label-2326
SELECT - 54 * + 69 * - NULLIF ( - 64, NULLIF ( + 33, + 26 - - 73 ) + + 28 ) + - 55 * 83 - - COUNT ( * ) AS col2
----
-243028

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT ALL - MAX( - 37 ) * 94 + - + 87 + - 7 col1
----
3384

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL - MAX ( - 37 ) * 94 + - + 87 + - 7 col1
----
3384

query I rowsort
SELECT 77 * + + 98
----
7546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2329
SELECT COUNT( * ) + + ( MIN( ALL - 60 ) ) - - 78 * - CAST( NULL AS SIGNED ) * + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-2329
SELECT COUNT ( * ) + + ( MIN ( ALL - 60 ) ) - - 78 * - CAST ( NULL AS INTEGER ) * + + 84
----
NULL

query I rowsort
SELECT DISTINCT - 72 + 54
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2331
SELECT ALL - CAST( + 86 AS SIGNED ), - 77 * - + 63 * - - COUNT( + 37 ) AS col1
----
-86
4851

skipif mysql # not compatible
query II rowsort label-2331
SELECT ALL - CAST ( + 86 AS INTEGER ), - 77 * - + 63 * - - COUNT ( + 37 ) AS col1
----
-86
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT DISTINCT - MIN( + COALESCE ( 74, 89 ) ) + + + 10 col1
----
-64

skipif mysql # not compatible
query I rowsort label-2332
SELECT DISTINCT - MIN ( + COALESCE ( 74, 89 ) ) + + + 10 col1
----
-64

query I rowsort
SELECT DISTINCT 84 + 12 AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2334
SELECT DISTINCT - 56 + + CAST( NULL AS SIGNED ) + + + COUNT( * ) + - 23 / - - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT - 56 + + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) + - 23 / - - 95
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2335
SELECT DISTINCT + 92 + - CASE + + 86 WHEN + - 76 * 98 - - 37 THEN + - 12 + + 62 WHEN COALESCE ( COUNT( * ), - 62, - COALESCE ( 0, ( + 8 ) + NULLIF ( COUNT( * ), + + 90 * - - 41 ) + + COUNT( * ) * 50 ) ) THEN + + 57 + + - 75 END + + 3 col1, + 67 col2
----
NULL
67

skipif mysql # not compatible
query II rowsort label-2335
SELECT DISTINCT + 92 + - CASE + + 86 WHEN + - 76 * 98 - - 37 THEN + - 12 + + 62 WHEN COALESCE ( COUNT ( * ), - 62, - COALESCE ( 0, ( + 8 ) + NULLIF ( COUNT ( * ), + + 90 * - - 41 ) + + COUNT ( * ) * 50 ) ) THEN + + 57 + + - 75 END + + 3 col1, + 67 col2
----
NULL
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ALL NULLIF ( - 50, + + 39 ) + + - MIN( 3 )
----
-53

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL NULLIF ( - 50, + + 39 ) + + - MIN ( 3 )
----
-53

query I rowsort
SELECT - 77 * 90
----
-6930

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT - 21 * - COUNT( * ) + + 72
----
93

skipif mysql # not compatible
query I rowsort label-2338
SELECT - 21 * - COUNT ( * ) + + 72
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT DISTINCT - - ( - + 64 ) / CASE + 86 WHEN + + CASE - - MAX( DISTINCT - 82 ) WHEN 29 + + 41 THEN + NULLIF ( 38, + 11 + + 39 ) * - + 49 ELSE + 2 END THEN 8 WHEN + + 73 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT - - ( - + 64 ) / CASE + 86 WHEN + + CASE - - MAX ( DISTINCT - 82 ) WHEN 29 + + 41 THEN + NULLIF ( 38, + 11 + + 39 ) * - + 49 ELSE + 2 END THEN 8 WHEN + + 73 THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2340
SELECT + 4 DIV - + 70
----
0

skipif mysql # not compatible
query I rowsort label-2340
SELECT + 4 / - + 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT ALL - COUNT( ALL + - 56 ) + 1
----
0

skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL - COUNT ( ALL + - 56 ) + 1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT CAST( + 80 AS SIGNED ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-2342
SELECT CAST ( + 80 AS INTEGER ) AS col1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2343
SELECT ALL + CAST( - 44 AS SIGNED ) + + 13 col0
----
-31

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

query I rowsort
SELECT ( 63 ) * - + 47 * 98 col1
----
-290178

query I rowsort
SELECT ALL 97 * + - 9 - - 52 AS col0
----
-821

query I rowsort
SELECT 65 + + 66 * - 81 col1
----
-5281

query I rowsort
SELECT DISTINCT + 49 * 34
----
1666

query I rowsort
SELECT - 93 * - 83 * - + 65
----
-501735

query I rowsort
SELECT ALL 37 - + 80
----
-43

query I rowsort
SELECT + 60 * - - 5 + - 12 AS col0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT + COUNT( * ) + 62 + + 15 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-2351
SELECT + COUNT ( * ) + 62 + + 15 AS col1
----
78

query I rowsort
SELECT ALL + NULLIF ( + COALESCE ( + + 88, + 50 ), - - 88 ) AS col1
----
NULL

query I rowsort
SELECT 62 - - 98 * + 64 col2
----
6334

onlyif mysql # DIV for integer division: 
query I rowsort label-2354
SELECT ALL 63 DIV - 59 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL 63 / - 59 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT SUM( ALL - - 89 ) * 78 + + 23
----
6965

skipif mysql # not compatible
query I rowsort label-2355
SELECT SUM ( ALL - - 89 ) * 78 + + 23
----
6965

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2356
SELECT ALL - COALESCE ( CAST( ( + + 42 ) AS SIGNED ), + + 29, - + 45 + 26 )
----
-42

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL - COALESCE ( CAST ( ( + + 42 ) AS INTEGER ), + + 29, - + 45 + 26 )
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-2357
SELECT DISTINCT - 20 AS col1, 61 + - - COUNT( * )
----
-20
62

skipif mysql # not compatible
query II rowsort label-2357
SELECT DISTINCT - 20 AS col1, 61 + - - COUNT ( * )
----
-20
62

query II rowsort
SELECT ALL + 58 + 42 * - 36 AS col1, 21 AS col0
----
-1454
21

query II rowsort
SELECT 99 AS col0, 13 AS col1
----
99
13

query I rowsort
SELECT DISTINCT 45 * + + 81
----
3645

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

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

query I rowsort
SELECT DISTINCT 62 + + 50 AS col2
----
112

query I rowsort
SELECT CASE - ( - 3 ) WHEN - 70 THEN + 60 END / + 91 * 63 + + - 51 - + 31 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2364
SELECT 13 DIV + - 53 * + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2364
SELECT 13 / + - 53 * + + COUNT ( * ) AS col1
----
0

query II rowsort
SELECT 31 AS col2, + 6 col2
----
31
6

query I rowsort
SELECT DISTINCT 2 + + 93 - 92 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT ALL - MIN( DISTINCT 33 ) + 57 * - 63 + - 81 AS col0
----
-3705

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL - MIN ( DISTINCT 33 ) + 57 * - 63 + - 81 AS col0
----
-3705

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT + 75 * + 62 + - ( + COUNT( * ) ) col1
----
4649

skipif mysql # not compatible
query I rowsort label-2368
SELECT + 75 * + 62 + - ( + COUNT ( * ) ) col1
----
4649

query I rowsort
SELECT 10 * 61 AS col0
----
610

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

query I rowsort
SELECT ALL + - 56 - - - 5 + + ( - 26 )
----
-87

query I rowsort
SELECT DISTINCT + ( + 81 ) - + 24
----
57

query I rowsort
SELECT ALL + + 44 * 58 AS col2
----
2552

query I rowsort
SELECT DISTINCT + + 27 * + 38 AS col2
----
1026

onlyif mysql # aggregate syntax: 
query II rowsort label-2375
SELECT - + ( + 16 ) * - + 0 + + COUNT( 34 ) * 55, + 90 col2
----
55
90

skipif mysql # not compatible
query II rowsort label-2375
SELECT - + ( + 16 ) * - + 0 + + COUNT ( 34 ) * 55, + 90 col2
----
55
90

query I rowsort
SELECT ALL + 67 * + 90
----
6030

onlyif mysql # DIV for integer division: 
query I rowsort label-2377
SELECT ALL + 61 - 33 + 68 - 10 - - NULLIF ( + + 87, - - 79 ) DIV 32 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL + 61 - 33 + 68 - 10 - - NULLIF ( + + 87, - - 79 ) / 32 AS col0
----
88

query I rowsort
SELECT + 91 + + 28 * + + 61
----
1799

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

skipif mysql # not compatible
query I rowsort label-2379
SELECT - + MAX ( + 94 )
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2380
SELECT - 44 DIV + 39 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2380
SELECT - 44 / + 39 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2381
SELECT ALL + CAST( 83 AS SIGNED ) DIV MAX( 5 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL + CAST ( 83 AS INTEGER ) / MAX ( 5 ) AS col1
----
16

query I rowsort
SELECT DISTINCT + 93 * + 93 AS col0
----
8649

query II rowsort
SELECT DISTINCT 22 * - 39, + 64 AS col0
----
-858
64

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

query I rowsort
SELECT 78 * - 65 * - - 84 * - 94 AS col1
----
40032720

query I rowsort
SELECT ALL 57 * + - 26 AS col2
----
-1482

query I rowsort
SELECT DISTINCT - 17 * 79 col2
----
-1343

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT ALL CASE + + COUNT( * ) WHEN - - SUM( 18 ) THEN 99 + 98 * 89 + + + 89 WHEN - COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL CASE + + COUNT ( * ) WHEN - - SUM ( 18 ) THEN 99 + 98 * 89 + + + 89 WHEN - COUNT ( * ) THEN NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT ALL 97 + + COUNT( DISTINCT - + 52 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL 97 + + COUNT ( DISTINCT - + 52 ) AS col2
----
98

query I rowsort
SELECT 90 * - 71 + + 31
----
-6359

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2392
SELECT DISTINCT MIN( ALL + - COALESCE ( + 11, + + 47 + 48 ) ) DIV + ( 41 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT MIN ( ALL + - COALESCE ( + 11, + + 47 + 48 ) ) / + ( 41 ) AS col1
----
0

query I rowsort
SELECT + 56 + - 62 AS col1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2394
SELECT ALL - 48 * + 64 DIV - + COUNT( * ) * - - COUNT( * ) + + - 13
----
3059

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL - 48 * + 64 / - + COUNT ( * ) * - - COUNT ( * ) + + - 13
----
3059

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2395
SELECT + 49 + 83 + - COUNT( ALL - 61 ) DIV 50 + 8 AS col0, - 37 + + 29 AS col2
----
140
-8

skipif mysql # not compatible
query II rowsort label-2395
SELECT + 49 + 83 + - COUNT ( ALL - 61 ) / 50 + 8 AS col0, - 37 + + 29 AS col2
----
140
-8

query II rowsort
SELECT 27 * + 28 * - 18 + 35 col2, 22
----
-13573
22

query I rowsort
SELECT - 7 * + + 3 + + 27 AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2398
SELECT + 12 * CAST( + + NULLIF ( 34, - 57 * + 96 ) AS SIGNED )
----
408

skipif mysql # not compatible
query I rowsort label-2398
SELECT + 12 * CAST ( + + NULLIF ( 34, - 57 * + 96 ) AS INTEGER )
----
408

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT + + MAX( ALL - - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-2399
SELECT + + MAX ( ALL - - 52 )
----
52

query I rowsort
SELECT - + 45 + + - 77
----
-122

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

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

query I rowsort
SELECT - + 60 * - ( - CASE + 78 WHEN 92 THEN 35 * 82 ELSE - 5 END )
----
300

query II rowsort
SELECT 56 AS col0, CASE - 76 WHEN 22 THEN + + 66 ELSE NULL END
----
56
NULL

query II rowsort
SELECT ALL + + 92 AS col1, + 74 AS col1
----
92
74

query II rowsort
SELECT DISTINCT + 66 AS col0, - 85
----
66
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT ALL + MAX( + 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL + MAX ( + 10 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2407
SELECT ALL + + COUNT( * ) * 24 * + 7 * - 73 AS col0, - COUNT( - 87 )
----
-12264
-1

skipif mysql # not compatible
query II rowsort label-2407
SELECT ALL + + COUNT ( * ) * 24 * + 7 * - 73 AS col0, - COUNT ( - 87 )
----
-12264
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2408
SELECT - + ( + - 56 ), 92 + - COUNT( - 41 ) AS col0
----
56
91

skipif mysql # not compatible
query II rowsort label-2408
SELECT - + ( + - 56 ), 92 + - COUNT ( - 41 ) AS col0
----
56
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2409
SELECT - 69 * 93 * CAST( + 89 AS SIGNED ) + + 80 * + + 17
----
-569753

skipif mysql # not compatible
query I rowsort label-2409
SELECT - 69 * 93 * CAST ( + 89 AS INTEGER ) + + 80 * + + 17
----
-569753

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2410
SELECT DISTINCT + AVG ( - 78 ) + + MAX( ALL ( + 63 ) ) * + AVG ( + - CAST( NULL AS DECIMAL ) ) * + - 36, 88 AS col2
----
NULL
88

skipif mysql # not compatible
query II rowsort label-2410
SELECT DISTINCT + AVG ( - 78 ) + + MAX ( ALL ( + 63 ) ) * + AVG ( + - CAST ( NULL AS REAL ) ) * + - 36, 88 AS col2
----
NULL
88

query I rowsort
SELECT ALL NULLIF ( - + 73, - 9 )
----
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT - COUNT( ALL + 48 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2413
SELECT - COUNT ( ALL + 48 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2414
SELECT - ( 54 ) DIV 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2414
SELECT - ( 54 ) / 73 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2415
SELECT DISTINCT + 58 + 66 * 54 / 48 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT + 58 + 66 * 54 / 48 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT + 92 * CASE + 12 WHEN - - AVG ( DISTINCT + 33 ) THEN + 77 * 11 / COUNT( * ) + - 49 - SUM( DISTINCT + 24 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT + 92 * CASE + 12 WHEN - - AVG ( DISTINCT + 33 ) THEN + 77 * 11 / COUNT ( * ) + - 49 - SUM ( DISTINCT + 24 ) END
----
NULL

query II rowsort
SELECT - 62 * + 37 AS col1, ( - 16 )
----
-2294
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2419
SELECT ALL - COALESCE ( ( - NULLIF ( - + CAST( NULL AS SIGNED ), NULLIF ( + 85, - + 49 ) ) ), 84 * - 58 ) + - 11 - ( - 10 ) + + 80 * - - CASE 15 WHEN - 57 * 86 * + - ( 18 ) THEN NULL WHEN - 24 * + 90 + - 25 THEN SUM( NULLIF ( + 54, 59 * 84 / - 80 * 54 ) ) END / + COALESCE ( 0, + 29 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL - COALESCE ( ( - NULLIF ( - + CAST ( NULL AS INTEGER ), NULLIF ( + 85, - + 49 ) ) ), 84 * - 58 ) + - 11 - ( - 10 ) + + 80 * - - CASE 15 WHEN - 57 * 86 * + - ( 18 ) THEN NULL WHEN - 24 * + 90 + - 25 THEN SUM ( NULLIF ( + 54, 59 * 84 / - 80 * 54 ) ) END / + COALESCE ( 0, + 29 ) AS col2
----
NULL

query I rowsort
SELECT + 86 + + - 12 * - - 87 AS col0
----
-958

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL SUM( ALL 45 ) * 25 * + 64
----
72000

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL SUM ( ALL 45 ) * 25 * + 64
----
72000

onlyif mysql # DIV for integer division: 
query I rowsort label-2422
SELECT ALL - 4 DIV ( - ( 27 ) ) + - 9 - + 7 DIV + + 83 col0
----
-9

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL - 4 / ( - ( 27 ) ) + - 9 - + 7 / + + 83 col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT + NULLIF ( - 3, - CASE + + 40 WHEN + + ( + 59 ) / + + COUNT( * ) THEN NULL ELSE + 11 END )
----
-3

skipif mysql # not compatible
query I rowsort label-2423
SELECT + NULLIF ( - 3, - CASE + + 40 WHEN + + ( + 59 ) / + + COUNT ( * ) THEN NULL ELSE + 11 END )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2424
SELECT CAST( 3 AS SIGNED ) AS col2, + 97 AS col1
----
3
97

skipif mysql # not compatible
query II rowsort label-2424
SELECT CAST ( 3 AS INTEGER ) AS col2, + 97 AS col1
----
3
97

query I rowsort
SELECT ALL + 68 * + 33 AS col1
----
2244

onlyif mysql # DIV for integer division: 
query I rowsort label-2426
SELECT DISTINCT + 60 DIV - 62 - 39 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT + 60 / - 62 - 39 AS col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2427
SELECT ALL - NULLIF ( + 13, - 11 ) DIV COUNT( * ) - - 76
----
63

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL - NULLIF ( + 13, - 11 ) / COUNT ( * ) - - 76
----
63

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

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

query I rowsort
SELECT + - 49 * + 49 + + - 50
----
-2451

query I rowsort
SELECT ALL + + 40 col2
----
40

query I rowsort
SELECT + - 80 - - + ( + 14 ) AS col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2432
SELECT ALL + CAST( NULL AS SIGNED ) / + 5 - + COUNT( * ) + 10 * - + MIN( ALL + 41 ) / + + 62 + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL + CAST ( NULL AS INTEGER ) / + 5 - + COUNT ( * ) + 10 * - + MIN ( ALL + 41 ) / + + 62 + 10
----
NULL

query I rowsort
SELECT + 33 * + + 50
----
1650

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT ALL 20 DIV - - 74 + + 90 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL 20 / - - 74 + + 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT - 14 * + - COALESCE ( + - 14, + MAX( ALL + + 78 ) ) + COUNT( * ) + + - 10 * - - COUNT( * ) * COUNT( * ) AS col2
----
-205

skipif mysql # not compatible
query I rowsort label-2435
SELECT - 14 * + - COALESCE ( + - 14, + MAX ( ALL + + 78 ) ) + COUNT ( * ) + + - 10 * - - COUNT ( * ) * COUNT ( * ) AS col2
----
-205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2436
SELECT ALL + MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL + MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + 17 + + 46 + + 5 + 65
----
133

query I rowsort
SELECT 78 * 6 * - 69 + 44
----
-32248

query I rowsort
SELECT + + COALESCE ( + ( 10 ), 42, - 93 ) col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT ALL + 62 * - COUNT( * ) + - + 17 + - 65 + - + 75 AS col2
----
-219

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL + 62 * - COUNT ( * ) + - + 17 + - 65 + - + 75 AS col2
----
-219

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2441
SELECT + + 4 + 58 + CAST( NULL AS DECIMAL ) - + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-2441
SELECT + + 4 + 58 + CAST ( NULL AS REAL ) - + 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT ALL - 98 * CASE + 89 WHEN MIN( ALL 49 ) / - 49 + - 21 * - COUNT( * ) THEN - 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL - 98 * CASE + 89 WHEN MIN ( ALL 49 ) / - 49 + - 21 * - COUNT ( * ) THEN - 7 ELSE NULL END
----
NULL

query I rowsort
SELECT + 49 * + 44 * + 85 * - 40
----
-7330400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2444
SELECT DISTINCT + 65 * - - 16 * + 10 * ( - 73 ) / ( 96 ) * + 19 + + + CAST( NULL AS SIGNED ) - - 94 + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT + 65 * - - 16 * + 10 * ( - 73 ) / ( 96 ) * + 19 + + + CAST ( NULL AS INTEGER ) - - 94 + - 61
----
NULL

query I rowsort
SELECT ALL - 69 * - 56 + - 64
----
3800

query I rowsort
SELECT ALL + 43 + 24
----
67

query I rowsort
SELECT ALL + - 97 + - ( 25 ) + - 31
----
-153

query I rowsort
SELECT DISTINCT - 26 + + 41 + - 42 col1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2449
SELECT 93 + 68 + - CASE + ( - CAST( NULL AS SIGNED ) ) WHEN + - 93 THEN 61 END * - ( + - 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT 93 + 68 + - CASE + ( - CAST ( NULL AS INTEGER ) ) WHEN + - 93 THEN 61 END * - ( + - 73 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2450
SELECT ALL 45 DIV + 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL 45 / + 87 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2451
SELECT DISTINCT - NULLIF ( - - COUNT( * ), + 20 ) + - ( - 27 ) DIV - COALESCE ( 81, 96 + - COUNT( * ) * - + 82 * + 96 * + 5 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT - NULLIF ( - - COUNT ( * ), + 20 ) + - ( - 27 ) / - COALESCE ( 81, 96 + - COUNT ( * ) * - + 82 * + 96 * + 5 ) col2
----
-1

query I rowsort
SELECT 28 - - 83 AS col0
----
111

query II rowsort
SELECT DISTINCT - 27 - 46 + + 59 AS col0, ( 9 )
----
-14
9

query I rowsort
SELECT 38 + + 69
----
107

query II rowsort
SELECT ALL 70 AS col2, - 28 AS col1
----
70
-28

query I rowsort
SELECT 47 * - - 40 AS col1
----
1880

query I rowsort
SELECT 64 * - - 81 + 8 AS col1
----
5192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2458
SELECT 54 + + - CASE - + 54 WHEN - + 57 * - - 68 THEN + COUNT( * ) DIV + 54 * 44 + + COUNT( * ) - - + 32 WHEN + 15 * - AVG ( ALL + 6 ) THEN NULL WHEN - AVG ( DISTINCT + 2 ) THEN NULL ELSE - 5 END AS col2
----
59

skipif mysql # not compatible
query I rowsort label-2458
SELECT 54 + + - CASE - + 54 WHEN - + 57 * - - 68 THEN + COUNT ( * ) / + 54 * 44 + + COUNT ( * ) - - + 32 WHEN + 15 * - AVG ( ALL + 6 ) THEN NULL WHEN - AVG ( DISTINCT + 2 ) THEN NULL ELSE - 5 END AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT ALL + SUM( - 57 ) * + - 96 - + 67 AS col1
----
5405

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL + SUM ( - 57 ) * + - 96 - + 67 AS col1
----
5405

query I rowsort
SELECT - 21 * + + 45 * - + 64
----
60480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2461
SELECT DISTINCT + - 8 * - 53 + + + COALESCE ( - COUNT( * ), + 51 DIV + 14, + 91 ) AS col0
----
423

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT + - 8 * - 53 + + + COALESCE ( - COUNT ( * ), + 51 / + 14, + 91 ) AS col0
----
423

query II rowsort
SELECT ALL - + 14 AS col2, - 99
----
-14
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT - 88 * + COUNT( * ) + 74 * - 91 + + + 20 col2
----
-6802

skipif mysql # not compatible
query I rowsort label-2463
SELECT - 88 * + COUNT ( * ) + 74 * - 91 + + + 20 col2
----
-6802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2464
SELECT + CASE - + 46 WHEN + - COALESCE ( + 41, + + 8 ) THEN 34 ELSE NULL END + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2464
SELECT + CASE - + 46 WHEN + - COALESCE ( + 41, + + 8 ) THEN 34 ELSE NULL END + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2465
SELECT 16 * - COALESCE ( + - 24, - 8 * - COUNT( * ) ) + - + 50 AS col0, 76 AS col1
----
334
76

skipif mysql # not compatible
query II rowsort label-2465
SELECT 16 * - COALESCE ( + - 24, - 8 * - COUNT ( * ) ) + - + 50 AS col0, 76 AS col1
----
334
76

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

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

query I rowsort
SELECT DISTINCT - 5 + + 40
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2468
SELECT 95 DIV + COUNT( DISTINCT 12 ) + - 9 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-2468
SELECT 95 / + COUNT ( DISTINCT 12 ) + - 9 AS col2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2469
SELECT ALL 21 + - COUNT( * ) + - 38 DIV + + 28
----
19

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL 21 + - COUNT ( * ) + - 38 / + + 28
----
19

query I rowsort
SELECT ALL - 56 * + - 0 * - 19
----
0

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

skipif mysql # not compatible
query I rowsort label-2471
SELECT ( + - 95 ) + + 37 * + COUNT ( * ) AS col1
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2472
SELECT 7 DIV + COALESCE ( + 47, COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2472
SELECT 7 / + COALESCE ( + 47, COUNT ( * ) ) AS col2
----
0

query I rowsort
SELECT ALL 81 + + 64 AS col1
----
145

query I rowsort
SELECT ALL 98 * 13 * + + 98
----
124852

query I rowsort
SELECT ( - - 53 ) - + - 63 AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT MAX( DISTINCT 31 ) - - MIN( ALL - 20 ) * + - 23 + + 60 AS col1
----
551

skipif mysql # not compatible
query I rowsort label-2476
SELECT MAX ( DISTINCT 31 ) - - MIN ( ALL - 20 ) * + - 23 + + 60 AS col1
----
551

query I rowsort
SELECT ALL 45 * + 66 AS col1
----
2970

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

skipif mysql # not compatible
query I rowsort label-2478
SELECT CAST ( NULL AS INTEGER ) * 22 * + 58
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2479
SELECT ALL 39 * + + NULLIF ( - 9, COUNT( * ) / 53 + + CAST( + - 80 AS DECIMAL ) * 64 ) AS col1
----
-351

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL 39 * + + NULLIF ( - 9, COUNT ( * ) / 53 + + CAST ( + - 80 AS REAL ) * 64 ) AS col1
----
-351

query I rowsort
SELECT ALL 97 - 24 AS col1
----
73

query I rowsort
SELECT 28 + + ( 22 ) + - 99 AS col0
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2482
SELECT DISTINCT COUNT( * ) - + ( - 47 ) DIV 71
----
1

skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT COUNT ( * ) - + ( - 47 ) / 71
----
1

query I rowsort
SELECT 38 + - + 30 AS col1
----
8

query I rowsort
SELECT DISTINCT 26 * 79 * ( - - NULLIF ( - 48, + 66 ) )
----
-98592

query I rowsort
SELECT 21 * + 63 AS col2
----
1323

query I rowsort
SELECT 57 * - 30 * + 60 AS col1
----
-102600

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL - NULLIF ( - - 10, - COUNT( * ) ) * + 69 + - 65 - + 95
----
-850

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL - NULLIF ( - - 10, - COUNT ( * ) ) * + 69 + - 65 - + 95
----
-850

query I rowsort
SELECT DISTINCT 90 * ( + 87 ) AS col0
----
7830

query I rowsort
SELECT 69 * + 27
----
1863

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT ALL - CASE WHEN NOT NULL BETWEEN ( NULL ) AND 19 THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL - CASE WHEN NOT NULL BETWEEN ( NULL ) AND 19 THEN + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT COALESCE ( - 68, + + AVG ( - + 63 ) ) DIV + 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2492
SELECT COALESCE ( - 68, + + AVG ( - + 63 ) ) / + 85 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2493
SELECT CAST( - - 60 AS SIGNED ) * + ( + - 89 ) AS col1, + 85 * - 29 * + - 24 AS col0, - 40 * CAST( NULL AS SIGNED )
----
-5340
59160
NULL

skipif mysql # not compatible
query III rowsort label-2493
SELECT CAST ( - - 60 AS INTEGER ) * + ( + - 89 ) AS col1, + 85 * - 29 * + - 24 AS col0, - 40 * CAST ( NULL AS INTEGER )
----
-5340
59160
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT + 86 * - MAX( + 9 ) AS col0
----
-774

skipif mysql # not compatible
query I rowsort label-2494
SELECT + 86 * - MAX ( + 9 ) AS col0
----
-774

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

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

query I rowsort
SELECT - 95 - 13 AS col0
----
-108

query I rowsort
SELECT ALL 42 * + - NULLIF ( - ( 0 ), - 11 ) + + 65
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL + 51 * COUNT( * ) + - 8
----
43

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL + 51 * COUNT ( * ) + - 8
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT DISTINCT COUNT( * ) * - 44 + COUNT( * ) + + 21 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-2499
SELECT DISTINCT COUNT ( * ) * - 44 + COUNT ( * ) + + 21 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT DISTINCT COUNT( * ) * + 67 + - 34 + ( - - COUNT( * ) )
----
34

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT COUNT ( * ) * + 67 + - 34 + ( - - COUNT ( * ) )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT DISTINCT + + CASE - SUM( ALL + 10 ) WHEN - - 43 THEN - - 54 / - 72 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT + + CASE - SUM ( ALL + 10 ) WHEN - - 43 THEN - - 54 / - 72 ELSE NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2502
SELECT + 55 * + + 46 + - 68 DIV + - 69 + - + 51 AS col2
----
2479

skipif mysql # not compatible
query I rowsort label-2502
SELECT + 55 * + + 46 + - 68 / + - 69 + - + 51 AS col2
----
2479

query I rowsort
SELECT - + 21 - - 80 AS col2
----
59

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2506
SELECT - CAST( NULL AS SIGNED ) + + + 80 * 11 * - + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2506
SELECT - CAST ( NULL AS INTEGER ) + + + 80 * 11 * - + 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2507
SELECT + 33 * + CAST( NULL AS SIGNED ) * + + 78 * - + 99 / - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2507
SELECT + 33 * + CAST ( NULL AS INTEGER ) * + + 78 * - + 99 / - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2508
SELECT DISTINCT COUNT( * ) * - ( - 84 ) AS col0, COALESCE ( + - 89, - - 86, + + 21 DIV + MAX( DISTINCT 17 ) ) col0
----
84
-89

skipif mysql # not compatible
query II rowsort label-2508
SELECT DISTINCT COUNT ( * ) * - ( - 84 ) AS col0, COALESCE ( + - 89, - - 86, + + 21 / + MAX ( DISTINCT 17 ) ) col0
----
84
-89

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

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

query I rowsort
SELECT - 97 * - + 19
----
1843

query I rowsort
SELECT + 3 * ( 35 ) * ( + 82 )
----
8610

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT ALL 85 * COUNT( DISTINCT - 34 ) * + + 51 - - + 41
----
4376

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL 85 * COUNT ( DISTINCT - 34 ) * + + 51 - - + 41
----
4376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2513
SELECT + 50 DIV + COUNT( * ) AS col2
----
50

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

query I rowsort
SELECT ALL 49 * + 7 col1
----
343

query I rowsort
SELECT ALL + 38 + 45
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-2516
SELECT + COUNT( * ) - 61 - + COUNT( * ) * 34 + - 34 AS col2, COUNT( * )
----
-128
1

skipif mysql # not compatible
query II rowsort label-2516
SELECT + COUNT ( * ) - 61 - + COUNT ( * ) * 34 + - 34 AS col2, COUNT ( * )
----
-128
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2517
SELECT - ( + - MIN( + 40 ) ), - 19 AS col1
----
40
-19

skipif mysql # not compatible
query II rowsort label-2517
SELECT - ( + - MIN ( + 40 ) ), - 19 AS col1
----
40
-19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2518
SELECT + 7 + 36 DIV CAST( 49 + 59 DIV - 85 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-2518
SELECT + 7 + 36 / CAST ( 49 + 59 / - 85 AS INTEGER )
----
7

query I rowsort
SELECT + 13 + - 74 AS col0
----
-61

query I rowsort
SELECT DISTINCT 36 + - 80 * 79
----
-6284

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT + COUNT( * ) + - 70 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-2521
SELECT + COUNT ( * ) + - 70 AS col2
----
-69

query I rowsort
SELECT - NULLIF ( + 37, 47 )
----
-37

query I rowsort
SELECT ALL 71 + 71 AS col0
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2524
SELECT + 77 + CAST( 76 AS SIGNED )
----
153

skipif mysql # not compatible
query I rowsort label-2524
SELECT + 77 + CAST ( 76 AS INTEGER )
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2525
SELECT CAST( 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-2525
SELECT CAST ( 8 AS INTEGER )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2526
SELECT + SUM( - COALESCE ( + 96, 8 ) ) DIV - 83 + - 83 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-2526
SELECT + SUM ( - COALESCE ( + 96, 8 ) ) / - 83 + - 83 AS col0
----
-82

query I rowsort
SELECT ALL + 48 * 36
----
1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2528
SELECT ALL 71 DIV 11 + - 59 DIV + MIN( DISTINCT + 33 + 29 * 79 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL 71 / 11 + - 59 / + MIN ( DISTINCT + 33 + 29 * 79 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT ALL - ( SUM( ALL 18 ) ) * 26 + + 66
----
-402

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL - ( SUM ( ALL 18 ) ) * 26 + + 66
----
-402

query I rowsort
SELECT - 23 + + 94 AS col0
----
71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT + NULLIF ( - 48, 37 / 9 ) * + COUNT( DISTINCT 28 )
----
-48

skipif mysql # not compatible
query I rowsort label-2532
SELECT + NULLIF ( - 48, 37 / 9 ) * + COUNT ( DISTINCT 28 )
----
-48

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

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

query I rowsort
SELECT - 52 + 0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT ALL + 60 * COUNT( * ) - NULLIF ( MAX( - 10 ), - CASE + 28 WHEN - 28 THEN + 44 * MAX( DISTINCT + 38 ) ELSE NULL END ) * - 9 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL + 60 * COUNT ( * ) - NULLIF ( MAX ( - 10 ), - CASE + 28 WHEN - 28 THEN + 44 * MAX ( DISTINCT + 38 ) ELSE NULL END ) * - 9 AS col2
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT - ( 20 ) DIV + 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2536
SELECT - ( 20 ) / + 58 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT - 69 * COALESCE ( 93, - COUNT( * ) )
----
-6417

skipif mysql # not compatible
query I rowsort label-2537
SELECT - 69 * COALESCE ( 93, - COUNT ( * ) )
----
-6417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2538
SELECT DISTINCT + 28 * MAX( - 80 * 32 ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT DISTINCT + 28 * MAX ( - 80 * 32 ) - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 86 * 66
----
5676

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT COALESCE ( - 6, + NULLIF ( 96, COUNT( * ) ) )
----
-6

skipif mysql # not compatible
query I rowsort label-2540
SELECT COALESCE ( - 6, + NULLIF ( 96, COUNT ( * ) ) )
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2541
SELECT ALL + 13 DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL + 13 / + 34
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2542
SELECT COALESCE ( 14, - 68 * - CAST( 51 AS SIGNED ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-2542
SELECT COALESCE ( 14, - 68 * - CAST ( 51 AS INTEGER ) ) AS col1
----
14

query I rowsort
SELECT ALL - 13 * - 54
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT - 10 * - MIN( + 99 * - 28 ) AS col0
----
-27720

skipif mysql # not compatible
query I rowsort label-2544
SELECT - 10 * - MIN ( + 99 * - 28 ) AS col0
----
-27720

query I rowsort
SELECT ALL - 41 * 28
----
-1148

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

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

query I rowsort
SELECT + 80 * CASE WHEN NULL <= ( - ( 95 ) ) THEN - 68 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 23 * 12
----
276

query I rowsort
SELECT - 26 - - 60 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT DISTINCT 73 * - COALESCE ( + 73, - COUNT( * ) )
----
-5329

skipif mysql # not compatible
query I rowsort label-2550
SELECT DISTINCT 73 * - COALESCE ( + 73, - COUNT ( * ) )
----
-5329

query I rowsort
SELECT ALL 31 + + 30 AS col0
----
61

query I rowsort
SELECT ALL 90 * + 18 AS col2
----
1620

onlyif mysql # DIV for integer division: 
query I rowsort label-2553
SELECT ALL + 79 DIV 57 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL + 79 / 57 AS col2
----
1

query I rowsort
SELECT - 8 * 40
----
-320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2555
SELECT + NULLIF ( 27, - 69 ) + + 33 * + COALESCE ( 17 DIV + 8, CASE - COUNT( ALL 88 ) WHEN + 34 - 63 THEN NULL ELSE - 29 - - 76 * + 53 END )
----
93

skipif mysql # not compatible
query I rowsort label-2555
SELECT + NULLIF ( 27, - 69 ) + + 33 * + COALESCE ( 17 / + 8, CASE - COUNT ( ALL 88 ) WHEN + 34 - 63 THEN NULL ELSE - 29 - - 76 * + 53 END )
----
93

query I rowsort
SELECT + 72 - + 72 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2557
SELECT - CAST( NULL AS SIGNED ) * + CASE - COUNT( * ) * - 29 WHEN - 10 * + 11 THEN 59 + MIN( 0 ) WHEN - COUNT( * ) THEN - COALESCE ( 63, ( NULLIF ( + SUM( 87 ), - 67 * 55 ) ) * - 33 ) ELSE - 46 - + 36 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT - CAST ( NULL AS INTEGER ) * + CASE - COUNT ( * ) * - 29 WHEN - 10 * + 11 THEN 59 + MIN ( 0 ) WHEN - COUNT ( * ) THEN - COALESCE ( 63, ( NULLIF ( + SUM ( 87 ), - 67 * 55 ) ) * - 33 ) ELSE - 46 - + 36 END AS col1
----
NULL

query I rowsort
SELECT ALL - ( 60 ) + + 33
----
-27

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

query I rowsort
SELECT DISTINCT 25 + 83 AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT ALL COUNT( * ) + COUNT( * ) * + ( - 14 ) col1
----
-13

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL COUNT ( * ) + COUNT ( * ) * + ( - 14 ) col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT 32 * COUNT( * ) col2
----
32

skipif mysql # not compatible
query I rowsort label-2562
SELECT 32 * COUNT ( * ) col2
----
32

query I rowsort
SELECT DISTINCT - - CASE 53 WHEN 52 THEN NULL ELSE - 2 + 22 END
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT - CASE + NULLIF ( + 54, 70 ) WHEN - COUNT( * ) THEN COUNT( * ) WHEN - 36 THEN 62 + - 81 END * CASE 84 + - 85 / - MAX( 44 ) WHEN + 99 THEN NULL WHEN COALESCE ( 47, 83 * + 20, 37 ) THEN NULL ELSE 48 END + - ( + 15 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2564
SELECT - CASE + NULLIF ( + 54, 70 ) WHEN - COUNT ( * ) THEN COUNT ( * ) WHEN - 36 THEN 62 + - 81 END * CASE 84 + - 85 / - MAX ( 44 ) WHEN + 99 THEN NULL WHEN COALESCE ( 47, 83 * + 20, 37 ) THEN NULL ELSE 48 END + - ( + 15 ) col2
----
NULL

query I rowsort
SELECT ALL + 99 - + ( - 23 + 23 )
----
99

query I rowsort
SELECT 57 - + 9
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT + 87 * + COUNT( DISTINCT + 97 * - ( 19 ) + + 23 ) + - 25 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2567
SELECT + 87 * + COUNT ( DISTINCT + 97 * - ( 19 ) + + 23 ) + - 25 AS col2
----
62

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

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL + COUNT ( * ) * - SUM ( ( 57 ) ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT 69 * COUNT( * ) + - COALESCE ( 97, 72 * 50 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-2569
SELECT 69 * COUNT ( * ) + - COALESCE ( 97, 72 * 50 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT ALL - + SUM( DISTINCT + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL - + SUM ( DISTINCT + 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT DISTINCT MAX( DISTINCT - 81 ) * - 41 AS col1
----
3321

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT MAX ( DISTINCT - 81 ) * - 41 AS col1
----
3321

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2572
SELECT CAST( NULL AS DECIMAL ) * + COUNT( 7 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2572
SELECT CAST ( NULL AS REAL ) * + COUNT ( 7 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2573
SELECT ALL NULLIF ( - - 56, CAST( NULL AS SIGNED ) ) * + 28 AS col2
----
1568

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL NULLIF ( - - 56, CAST ( NULL AS INTEGER ) ) * + 28 AS col2
----
1568

query I rowsort
SELECT ( 86 ) * - 41 AS col1
----
-3526

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2576
SELECT 32 - + 3 DIV 54 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-2576
SELECT 32 - + 3 / 54 AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2577
SELECT - 40 * + 90 + CAST( NULL AS SIGNED ) / 41
----
NULL

skipif mysql # not compatible
query I rowsort label-2577
SELECT - 40 * + 90 + CAST ( NULL AS INTEGER ) / 41
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2578
SELECT 47 DIV - - 91 * + 91
----
0

skipif mysql # not compatible
query I rowsort label-2578
SELECT 47 / - - 91 * + 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT DISTINCT MAX( 68 ) + 86
----
154

skipif mysql # not compatible
query I rowsort label-2579
SELECT DISTINCT MAX ( 68 ) + 86
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT - 83 * - COUNT( * ) + 11 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-2580
SELECT - 83 * - COUNT ( * ) + 11 AS col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2581
SELECT ALL + 74 + + - 58 + - 46 DIV + 18 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL + 74 + + - 58 + - 46 / + 18 AS col2
----
14

query I rowsort
SELECT ALL - 19 + - 19
----
-38

query I rowsort
SELECT 66 + 7
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT COUNT( - 48 ) * 68
----
68

skipif mysql # not compatible
query I rowsort label-2584
SELECT COUNT ( - 48 ) * 68
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT ALL + 74 + NULLIF ( 66, COUNT( * ) ) * 82
----
5486

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL + 74 + NULLIF ( 66, COUNT ( * ) ) * 82
----
5486

query I rowsort
SELECT ALL - 20 + 4 * + 70
----
260

query I rowsort
SELECT - 47 + 87 AS col0
----
40

query I rowsort
SELECT - ( - 95 ) col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2589
SELECT ALL CASE + - CAST( NULL AS DECIMAL ) WHEN CASE 1 WHEN + 37 * + 51 THEN 78 + + 58 WHEN + CASE 68 WHEN + COUNT( * ) * - 8 THEN 96 + + 81 ELSE NULL END * - COUNT( * ) THEN 53 + 47 ELSE + COUNT( * ) END * + COUNT( * ) THEN - 72 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL CASE + - CAST ( NULL AS REAL ) WHEN CASE 1 WHEN + 37 * + 51 THEN 78 + + 58 WHEN + CASE 68 WHEN + COUNT ( * ) * - 8 THEN 96 + + 81 ELSE NULL END * - COUNT ( * ) THEN 53 + 47 ELSE + COUNT ( * ) END * + COUNT ( * ) THEN - 72 ELSE NULL END
----
NULL

query I rowsort
SELECT 77 + - 67 col2
----
10

query I rowsort
SELECT ALL + - 7 + + ( 0 ) + 51 * 31
----
1574

query I rowsort
SELECT 24 + + 99 * - 18 AS col2
----
-1758

query I rowsort
SELECT ALL 14 + 6
----
20

query I rowsort
SELECT ALL ( + - 91 ) * + 84 AS col1
----
-7644

query I rowsort
SELECT + 97 + 16 col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT DISTINCT - + CASE - 99 WHEN + NULLIF ( 80, 54 / 89 + 96 ) THEN COUNT( ALL 2 ) * - 99 + + 3 END / + 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT - + CASE - 99 WHEN + NULLIF ( 80, 54 / 89 + 96 ) THEN COUNT ( ALL 2 ) * - 99 + + 3 END / + 30 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2597
SELECT + NULLIF ( - 54, - CAST( 11 AS SIGNED ) * 72 + 59 * 91 )
----
-54

skipif mysql # not compatible
query I rowsort label-2597
SELECT + NULLIF ( - 54, - CAST ( 11 AS INTEGER ) * 72 + 59 * 91 )
----
-54

query I rowsort
SELECT 93 + + 77 col0
----
170

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

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

query I rowsort
SELECT + 64 + 35
----
99

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

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

query I rowsort
SELECT - ( - ( + 82 ) ) - NULLIF ( 90, + 9 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT DISTINCT 16 * 73 * - COUNT( * )
----
-1168

skipif mysql # not compatible
query I rowsort label-2603
SELECT DISTINCT 16 * 73 * - COUNT ( * )
----
-1168

onlyif mysql # DIV for integer division: 
query I rowsort label-2604
SELECT ( + - 46 ) DIV ( - 95 ) + 37
----
37

skipif mysql # not compatible
query I rowsort label-2604
SELECT ( + - 46 ) / ( - 95 ) + 37
----
37

query I rowsort
SELECT ALL - 67 * - 73 + - 72
----
4819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2606
SELECT ALL - CAST( - COALESCE ( + 28, + 1 + 20 ) AS SIGNED ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL - CAST ( - COALESCE ( + 28, + 1 + 20 ) AS INTEGER ) AS col2
----
28

query I rowsort
SELECT DISTINCT - ( + - 33 ) - - 80 AS col2
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-2608
SELECT 13 * + 45 + - 17 DIV - 2
----
593

skipif mysql # not compatible
query I rowsort label-2608
SELECT 13 * + 45 + - 17 / - 2
----
593

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT COALESCE ( - COUNT( * ), - 44 + 74, 23 ) * 96 col2
----
-96

skipif mysql # not compatible
query I rowsort label-2609
SELECT COALESCE ( - COUNT ( * ), - 44 + 74, 23 ) * 96 col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT MIN( - + 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-2610
SELECT MIN ( - + 28 ) AS col1
----
-28

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2612
SELECT ALL NULLIF ( - - CAST( NULL AS SIGNED ), - ( + COUNT( DISTINCT - 1 ) ) * - 4 ) + 4 * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL NULLIF ( - - CAST ( NULL AS INTEGER ), - ( + COUNT ( DISTINCT - 1 ) ) * - 4 ) + 4 * + 47
----
NULL

query I rowsort
SELECT 41 * 67 AS col1
----
2747

query I rowsort
SELECT ALL - 51 + 52
----
1

query I rowsort
SELECT ALL 26 * + - 52 AS col1
----
-1352

query I rowsort
SELECT ALL + 88 + 5 col1
----
93

query I rowsort
SELECT 31 + 57 + - 97
----
-9

query I rowsort
SELECT 66 * + + 86 AS col2
----
5676

onlyif mysql # DIV for integer division: 
query I rowsort label-2619
SELECT 72 + + + 51 DIV - - 17 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-2619
SELECT 72 + + + 51 / - - 17 AS col2
----
75

query II rowsort
SELECT 82 AS col1, 14 + - 92 * 53 AS col1
----
82
-4862

query I rowsort
SELECT 56 - + - 64 AS col2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-2622
SELECT ALL - 16 DIV + COALESCE ( + 39, + 48 * 82 + 13 ) * 8
----
0

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL - 16 / + COALESCE ( + 39, + 48 * 82 + 13 ) * 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT DISTINCT COUNT( * ) + - + 7 * + COUNT( * ) * 51
----
-356

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT COUNT ( * ) + - + 7 * + COUNT ( * ) * 51
----
-356

query II rowsort
SELECT - 82 AS col2, 3 AS col1
----
-82
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT DISTINCT + CAST( - 11 AS SIGNED ) - - 47 col2
----
36

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT + CAST ( - 11 AS INTEGER ) - - 47 col2
----
36

query I rowsort
SELECT - 72 * + 16
----
-1152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2627
SELECT ALL - COUNT( * ) DIV - + 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL - COUNT ( * ) / - + 50 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2628
SELECT - + COALESCE ( 80, - 6, + 45 * ( 65 DIV 92 ), 86 + 64 ) + 25
----
-55

skipif mysql # not compatible
query I rowsort label-2628
SELECT - + COALESCE ( 80, - 6, + 45 * ( 65 / 92 ), 86 + 64 ) + 25
----
-55

query II rowsort
SELECT - - 72, 18 col0
----
72
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2630
SELECT - - 37 + - COUNT( * ) + - + COUNT( * ) + 22 DIV - 83
----
35

skipif mysql # not compatible
query I rowsort label-2630
SELECT - - 37 + - COUNT ( * ) + - + COUNT ( * ) + 22 / - 83
----
35

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

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

query I rowsort
SELECT - + NULLIF ( 81, + + 23 )
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-2633
SELECT - - 49, 5 * 60 DIV 73 AS col2
----
49
4

skipif mysql # not compatible
query II rowsort label-2633
SELECT - - 49, 5 * 60 / 73 AS col2
----
49
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT - - MAX( - 18 ) * - + 99 * 80
----
142560

skipif mysql # not compatible
query I rowsort label-2634
SELECT - - MAX ( - 18 ) * - + 99 * 80
----
142560

query I rowsort
SELECT - 31 + - 1 * + 32
----
-63

query I rowsort
SELECT ALL - 38 * 83
----
-3154

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT - MAX( + - 54 ) * - 28 + + COALESCE ( + 69, CASE - SUM( - 54 ) WHEN 40 THEN 94 * - 6 ELSE NULL END * 38 )
----
-1443

skipif mysql # not compatible
query I rowsort label-2637
SELECT - MAX ( + - 54 ) * - 28 + + COALESCE ( + 69, CASE - SUM ( - 54 ) WHEN 40 THEN 94 * - 6 ELSE NULL END * 38 )
----
-1443

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT ALL CASE CASE + 49 WHEN COALESCE ( - 39, - 30 ) THEN COUNT( * ) + CASE - 81 WHEN - 80 THEN - SUM( + ( 75 ) ) * - ( - 99 ) WHEN + 85 THEN NULL END * 1 WHEN 16 + + 46 THEN 96 + - 52 WHEN 76 THEN NULL END WHEN 91 THEN + 2 WHEN SUM( + 75 ) / 26 THEN NULL ELSE - COUNT( * ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL CASE CASE + 49 WHEN COALESCE ( - 39, - 30 ) THEN COUNT ( * ) + CASE - 81 WHEN - 80 THEN - SUM ( + ( 75 ) ) * - ( - 99 ) WHEN + 85 THEN NULL END * 1 WHEN 16 + + 46 THEN 96 + - 52 WHEN 76 THEN NULL END WHEN 91 THEN + 2 WHEN SUM ( + 75 ) / 26 THEN NULL ELSE - COUNT ( * ) END AS col0
----
-1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2640
SELECT - - 78 DIV MAX( DISTINCT + 41 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2640
SELECT - - 78 / MAX ( DISTINCT + 41 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2641
SELECT ALL - ( - CAST( + 85 AS SIGNED ) ) DIV MIN( DISTINCT + 11 )
----
7

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL - ( - CAST ( + 85 AS INTEGER ) ) / MIN ( DISTINCT + 11 )
----
7

query I rowsort
SELECT ( COALESCE ( - - ( + + 55 ), + ( 3 ) ) )
----
55

query I rowsort
SELECT - 51 - + - 1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT - 31 * COUNT( * ) + - - 50
----
19

skipif mysql # not compatible
query I rowsort label-2644
SELECT - 31 * COUNT ( * ) + - - 50
----
19

query I rowsort
SELECT 92 * - COALESCE ( - - ( 67 ), 23 ) + - 8 AS col2
----
-6172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2646
SELECT ALL 62 * + CAST( - 16 AS SIGNED ) + - 27 * + 27 AS col2
----
-1721

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL 62 * + CAST ( - 16 AS INTEGER ) + - 27 * + 27 AS col2
----
-1721

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT + MIN( 16 ) col1
----
16

skipif mysql # not compatible
query I rowsort label-2647
SELECT + MIN ( 16 ) col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT ALL + CASE COUNT( * ) WHEN - ( + 88 ) * + 68 THEN MAX( + 82 ) WHEN 22 * + 64 THEN NULL WHEN 81 * + 10 THEN 41 END * MAX( - 7 ) + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL + CASE COUNT ( * ) WHEN - ( + 88 ) * + 68 THEN MAX ( + 82 ) WHEN 22 * + 64 THEN NULL WHEN 81 * + 10 THEN 41 END * MAX ( - 7 ) + + 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2649
SELECT COALESCE ( SUM( ALL + + ( - 41 ) ), SUM( ALL 23 ) + ( SUM( ALL CAST( - 84 AS SIGNED ) ) + COUNT( * ) ) * 20 ) / + CASE WHEN NOT 97 <= + 73 * + 43 + 8 THEN NULLIF ( 27, 2 ) END - 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2649
SELECT COALESCE ( SUM ( ALL + + ( - 41 ) ), SUM ( ALL 23 ) + ( SUM ( ALL CAST ( - 84 AS INTEGER ) ) + COUNT ( * ) ) * 20 ) / + CASE WHEN NOT 97 <= + 73 * + 43 + 8 THEN NULLIF ( 27, 2 ) END - 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT NULLIF ( NULLIF ( + + 26, - + COUNT( * ) ), 17 + - 12 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-2650
SELECT NULLIF ( NULLIF ( + + 26, - + COUNT ( * ) ), 17 + - 12 ) AS col1
----
26

query I rowsort
SELECT - ( + 15 ) * - - 86 + - NULLIF ( + ( 35 ), 69 * + COALESCE ( + 41, + 61 ) ) * 6 AS col1
----
-1500

query I rowsort
SELECT CASE + + 81 WHEN - + 36 THEN NULL WHEN - + 91 THEN 4 - 55 * COALESCE ( + 91, 60 ) ELSE 3 END
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT COUNT( DISTINCT + 15 ) * + 42 + 9 + 92 col0
----
143

skipif mysql # not compatible
query I rowsort label-2653
SELECT COUNT ( DISTINCT + 15 ) * + 42 + 9 + 92 col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT SUM( DISTINCT 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-2654
SELECT SUM ( DISTINCT 78 ) AS col1
----
78

query I rowsort
SELECT + 13 + - 19
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2656
SELECT ALL 43 * 29 - - - NULLIF ( + 97, + 95 - COUNT( * ) * - ( - ( - NULLIF ( 85, COUNT( * ) ) ) ) ) + + SUM( CAST( - 2 AS SIGNED ) + 82 ) * ( + 8 / + CASE - COALESCE ( + 59, - 2, 20 + 90, - COUNT( * ) * CAST( NULL AS SIGNED ) + + 91, 45 ) WHEN 13 * ( 30 ) THEN 49 * 89 WHEN 8 THEN NULL END + - 69 * 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL 43 * 29 - - - NULLIF ( + 97, + 95 - COUNT ( * ) * - ( - ( - NULLIF ( 85, COUNT ( * ) ) ) ) ) + + SUM ( CAST ( - 2 AS INTEGER ) + 82 ) * ( + 8 / + CASE - COALESCE ( + 59, - 2, 20 + 90, - COUNT ( * ) * CAST ( NULL AS INTEGER ) + + 91, 45 ) WHEN 13 * ( 30 ) THEN 49 * 89 WHEN 8 THEN NULL END + - 69 * 65 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT MAX( ALL - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-2657
SELECT MAX ( ALL - 65 )
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-2658
SELECT ALL SUM( DISTINCT - 16 ), - 46 AS col1
----
-16
-46

skipif mysql # not compatible
query II rowsort label-2658
SELECT ALL SUM ( DISTINCT - 16 ), - 46 AS col1
----
-16
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2659
SELECT DISTINCT CAST( - MAX( ALL 22 ) AS SIGNED ) * + 90
----
-1980

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT CAST ( - MAX ( ALL 22 ) AS INTEGER ) * + 90
----
-1980

query I rowsort
SELECT + 9 + - + 26 * + 7 AS col1
----
-173

query I rowsort
SELECT DISTINCT 49 * - - 9 + - 12
----
429

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2663
SELECT + 37 DIV 11 + + + 41
----
44

skipif mysql # not compatible
query I rowsort label-2663
SELECT + 37 / 11 + + + 41
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT - NULLIF ( 46, + 76 * - COUNT( * ) - - ( + NULLIF ( + 61, 27 ) ) ) * + 4
----
-184

skipif mysql # not compatible
query I rowsort label-2664
SELECT - NULLIF ( 46, + 76 * - COUNT ( * ) - - ( + NULLIF ( + 61, 27 ) ) ) * + 4
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT + + COUNT( * ) + + 29 + + 27 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-2665
SELECT + + COUNT ( * ) + + 29 + + 27 AS col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2666
SELECT + - 31 + + 29 + - - 21 * - - CAST( 59 AS SIGNED ) * - 10
----
-12392

skipif mysql # not compatible
query I rowsort label-2666
SELECT + - 31 + + 29 + - - 21 * - - CAST ( 59 AS INTEGER ) * - 10
----
-12392

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT - - 82 * + 98 + COUNT( * )
----
8037

skipif mysql # not compatible
query I rowsort label-2668
SELECT - - 82 * + 98 + COUNT ( * )
----
8037

query I rowsort
SELECT ALL - COALESCE ( + NULLIF ( + 96, - 71 ), 33 ) AS col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2670
SELECT DISTINCT + COUNT( * ) / - COALESCE ( + 80, - 35 ) * - CAST( NULL AS SIGNED ) + - COALESCE ( COUNT( * ) + - 68, 90 ) / - 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT + COUNT ( * ) / - COALESCE ( + 80, - 35 ) * - CAST ( NULL AS INTEGER ) + - COALESCE ( COUNT ( * ) + - 68, 90 ) / - 25 AS col0
----
NULL

query I rowsort
SELECT ALL - - 9 * 67 * - 50 AS col2
----
-30150

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT + CASE 68 WHEN + 10 THEN 30 + + MIN( - 48 + 10 ) WHEN 68 THEN - 31 END * + 41
----
-1271

skipif mysql # not compatible
query I rowsort label-2672
SELECT + CASE 68 WHEN + 10 THEN 30 + + MIN ( - 48 + 10 ) WHEN 68 THEN - 31 END * + 41
----
-1271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2673
SELECT DISTINCT - CAST( + 4 AS SIGNED ) * + 6 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT - CAST ( + 4 AS INTEGER ) * + 6 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT ALL + COUNT( * ) + 51
----
52

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL + COUNT ( * ) + 51
----
52

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2676
SELECT DISTINCT - 32 DIV + 41 + + 98 * 72 * - 76 AS col0
----
-536256

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT - 32 / + 41 + + 98 * 72 * - 76 AS col0
----
-536256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2677
SELECT NULLIF ( + + MIN( + + 82 ), + 76 ) / + 61 * CAST( NULL AS SIGNED ) + 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT NULLIF ( + + MIN ( + + 82 ), + 76 ) / + 61 * CAST ( NULL AS INTEGER ) + 80 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2678
SELECT DISTINCT + 33 DIV - + 15 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT + 33 / - + 15 AS col1
----
-2

query I rowsort
SELECT + CASE + - 5 WHEN 32 THEN - 11 ELSE NULL END + + 48 AS col0
----
NULL

query I rowsort
SELECT - 61 * - 81
----
4941

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2681
SELECT + CASE - 18 WHEN + 45 THEN + - COALESCE ( - ( 62 ), 78 * 1, + COUNT( * ) ) + - 14 ELSE - 43 DIV 61 END * 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2681
SELECT + CASE - 18 WHEN + 45 THEN + - COALESCE ( - ( 62 ), 78 * 1, + COUNT ( * ) ) + - 14 ELSE - 43 / 61 END * 88 AS col2
----
0

query I rowsort
SELECT ALL + 15 * + 79
----
1185

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2685
SELECT ALL + 16 * 25 * + COUNT( * ) AS col2, + MAX( DISTINCT + 35 ) * 28
----
400
980

skipif mysql # not compatible
query II rowsort label-2685
SELECT ALL + 16 * 25 * + COUNT ( * ) AS col2, + MAX ( DISTINCT + 35 ) * 28
----
400
980

query II rowsort
SELECT + + 7 * - 58 - + - 26 AS col2, 77 + - 60
----
-380
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2687
SELECT 22 DIV - - 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2687
SELECT 22 / - - 60 AS col0
----
0

query I rowsort
SELECT 52 + - CASE - 10 WHEN - 89 * 4 * + 1 + 17 THEN 83 ELSE 89 END * 76 AS col0
----
-6712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2689
SELECT + 20 * + + COUNT( * ) DIV - + 78 + + COUNT( * ) * 51 + - 24 DIV COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-2689
SELECT + 20 * + + COUNT ( * ) / - + 78 + + COUNT ( * ) * 51 + - 24 / COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT CASE - COUNT( * ) WHEN + COUNT( * ) * + - MIN( DISTINCT - 78 ) THEN 43 ELSE NULLIF ( COUNT( 76 ), - COALESCE ( COUNT( * ), ( + COUNT( 53 ) ), 30 ) - 81 ) * - 30 END AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-2690
SELECT CASE - COUNT ( * ) WHEN + COUNT ( * ) * + - MIN ( DISTINCT - 78 ) THEN 43 ELSE NULLIF ( COUNT ( 76 ), - COALESCE ( COUNT ( * ), ( + COUNT ( 53 ) ), 30 ) - 81 ) * - 30 END AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2691
SELECT ALL + 88 AS col0, 60 * + + CAST( NULL AS SIGNED ) * 60
----
88
NULL

skipif mysql # not compatible
query II rowsort label-2691
SELECT ALL + 88 AS col0, 60 * + + CAST ( NULL AS INTEGER ) * 60
----
88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT + COUNT( * ) - 53 + - 36 * - + 50 * - - 68
----
122348

skipif mysql # not compatible
query I rowsort label-2692
SELECT + COUNT ( * ) - 53 + - 36 * - + 50 * - - 68
----
122348

query II rowsort
SELECT ALL 79 AS col1, 78 * + 38 AS col2
----
79
2964

query I rowsort
SELECT + 43 * - + 70 AS col0
----
-3010

query I rowsort
SELECT + 48 - 63
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2696
SELECT ALL 41 col1, - 12 * + MAX( - - 72 ) AS col1
----
41
-864

skipif mysql # not compatible
query II rowsort label-2696
SELECT ALL 41 col1, - 12 * + MAX ( - - 72 ) AS col1
----
41
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT ALL COALESCE ( + 72, 62 ) + - ( - - COALESCE ( - ( + MAX( 80 ) ), 55 + - SUM( - 96 ) * - 88 ) ) * + 34 col1
----
2792

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL COALESCE ( + 72, 62 ) + - ( - - COALESCE ( - ( + MAX ( 80 ) ), 55 + - SUM ( - 96 ) * - 88 ) ) * + 34 col1
----
2792

query I rowsort
SELECT ALL 10 + 46 + + 52 AS col1
----
108

query I rowsort
SELECT 62 - + 45 * + + 43 AS col1
----
-1873

query I rowsort
SELECT DISTINCT - 97 + - - 51 AS col2
----
-46

query II rowsort
SELECT 43 AS col2, 65 AS col1
----
43
65

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

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL + CAST ( + - 32 AS INTEGER ) + + 4 col0
----
-28

query I rowsort
SELECT DISTINCT 94 + - 72
----
22

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

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

query I rowsort
SELECT ALL + 19 + - 25
----
-6

query I rowsort
SELECT ALL 10 + - 83 + - + 73
----
-146

query II rowsort
SELECT 99 AS col1, 52
----
99
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT ( - - 67 ) + - ( 65 ) + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-2708
SELECT ( - - 67 ) + - ( 65 ) + + COUNT ( * )
----
3

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

skipif mysql # not compatible
query I rowsort label-2709
SELECT 57 / + 93
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2710
SELECT 29 DIV + 33 + + 2 - - - ( - 35 )
----
37

skipif mysql # not compatible
query I rowsort label-2710
SELECT 29 / + 33 + + 2 - - - ( - 35 )
----
37

query I rowsort
SELECT 66 * + 94
----
6204

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT DISTINCT - NULLIF ( - COUNT( * ), 39 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT - NULLIF ( - COUNT ( * ), 39 ) AS col0
----
1

query II rowsort
SELECT + 1 AS col1, 11 AS col1
----
1
11

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2715
SELECT 29 * - + COALESCE ( - COUNT( * ), 86 ) + - 92 DIV MIN( ALL + 98 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-2715
SELECT 29 * - + COALESCE ( - COUNT ( * ), 86 ) + - 92 / MIN ( ALL + 98 ) AS col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-2716
SELECT + ( - 7 ) DIV + 89 * + + 74 + - 86
----
-86

skipif mysql # not compatible
query I rowsort label-2716
SELECT + ( - 7 ) / + 89 * + + 74 + - 86
----
-86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2717
SELECT ALL - COUNT( * ) AS col2, + 29 * + - CASE COUNT( * ) WHEN + 40 / + - 49 THEN 71 + - 45 WHEN ( + MIN( ALL + 82 ) ) THEN - 26 + - COUNT( * ) WHEN ( ( 61 ) ) - 50 THEN ( - CAST( NULL AS DECIMAL ) ) * 32 END AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2717
SELECT ALL - COUNT ( * ) AS col2, + 29 * + - CASE COUNT ( * ) WHEN + 40 / + - 49 THEN 71 + - 45 WHEN ( + MIN ( ALL + 82 ) ) THEN - 26 + - COUNT ( * ) WHEN ( ( 61 ) ) - 50 THEN ( - CAST ( NULL AS REAL ) ) * 32 END AS col2
----
-1
NULL

query I rowsort
SELECT 82 * 4
----
328

onlyif mysql # DIV for integer division: 
query I rowsort label-2719
SELECT DISTINCT + 84 DIV - - 81
----
1

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT + 84 / - - 81
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2720
SELECT DISTINCT - NULLIF ( - + 10, - NULLIF ( + MIN( ALL + 85 ), - 48 * CAST( NULL AS SIGNED ) ) ) col0
----
10

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT - NULLIF ( - + 10, - NULLIF ( + MIN ( ALL + 85 ), - 48 * CAST ( NULL AS INTEGER ) ) ) col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT + + 46 * - + COUNT( * ) - - 0 + 0 + - - NULLIF ( - 30, 78 + 21 * + AVG ( ( 84 ) / + 96 + 49 ) ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-2721
SELECT + + 46 * - + COUNT ( * ) - - 0 + 0 + - - NULLIF ( - 30, 78 + 21 * + AVG ( ( 84 ) / + 96 + 49 ) ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT 36 + COUNT( * ) * - 86
----
-50

skipif mysql # not compatible
query I rowsort label-2722
SELECT 36 + COUNT ( * ) * - 86
----
-50

query I rowsort
SELECT + 92 * + + 13
----
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT DISTINCT + 45 / + CASE + COALESCE ( + - 63, COUNT( * ) ) WHEN + - 59 THEN ( 95 ) END * 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT + 45 / + CASE + COALESCE ( + - 63, COUNT ( * ) ) WHEN + - 59 THEN ( 95 ) END * 19 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2725
SELECT ALL + COUNT( * ) * + COALESCE ( + 62, + COUNT( * ) DIV - AVG ( + + 44 ), + 8 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL + COUNT ( * ) * + COALESCE ( + 62, + COUNT ( * ) / - AVG ( + + 44 ), + 8 ) AS col0
----
62

query I rowsort
SELECT 16 + - 74 AS col2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2727
SELECT ALL + NULLIF ( - COALESCE ( - CAST( NULL AS SIGNED ), + 50, + + NULLIF ( 47, 46 ), 62 - + 39 ), + COUNT( * ) * COUNT( * ) + + 14 ) DIV + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL + NULLIF ( - COALESCE ( - CAST ( NULL AS INTEGER ), + 50, + + NULLIF ( 47, 46 ), 62 - + 39 ), + COUNT ( * ) * COUNT ( * ) + + 14 ) / + COUNT ( * )
----
-50

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

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

query I rowsort
SELECT + NULLIF ( + 7, + 40 * - - 18 - 38 ) + + 18 AS col1
----
25

query I rowsort
SELECT ALL - - CASE 32 WHEN 70 THEN 17 * + 12 * - 78 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT DISTINCT - CASE - 91 WHEN + + COUNT( * ) THEN + - 72 WHEN - - CASE ( 39 ) WHEN COUNT( * ) * 0 THEN NULL WHEN + COUNT( * ) + 85 THEN 91 - + 95 END THEN NULL ELSE NULL END + + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT - CASE - 91 WHEN + + COUNT ( * ) THEN + - 72 WHEN - - CASE ( 39 ) WHEN COUNT ( * ) * 0 THEN NULL WHEN + COUNT ( * ) + 85 THEN 91 - + 95 END THEN NULL ELSE NULL END + + 11 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2732
SELECT ALL + 29 + + 29 + + 82 * + 39 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL + 29 + + 29 + + 82 * + 39 * + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 97, + 11 * - + 24 AS col2
----
97
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT + 8 + + - COUNT( * ) + + 77 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2734
SELECT + 8 + + - COUNT ( * ) + + 77 AS col0
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT - 82 + + NULLIF ( + COUNT( * ), - - 42 + 46 ) * + NULLIF ( 18, + 38 - - 19 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-2736
SELECT - 82 + + NULLIF ( + COUNT ( * ), - - 42 + 46 ) * + NULLIF ( 18, + 38 - - 19 ) AS col0
----
-64

query I rowsort
SELECT - + NULLIF ( 23, + 22 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT COUNT( DISTINCT - 95 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2738
SELECT COUNT ( DISTINCT - 95 ) AS col1
----
1

query II rowsort
SELECT - 31 AS col1, 10 col1
----
-31
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2740
SELECT - CAST( NULL AS SIGNED ) AS col2, - 12 + 29 AS col0
----
NULL
17

skipif mysql # not compatible
query II rowsort label-2740
SELECT - CAST ( NULL AS INTEGER ) AS col2, - 12 + 29 AS col0
----
NULL
17

query I rowsort
SELECT 95 + - 70 * 71 AS col1
----
-4875

query II rowsort
SELECT DISTINCT + 69, - 98 AS col1
----
69
-98

query I rowsort
SELECT NULLIF ( + 99, - 92 ) + - 90
----
9

query I rowsort
SELECT 57 + - + 49 + + - 84
----
-76

query I rowsort
SELECT ( + + ( + 21 ) ) * - - NULLIF ( 12, 97 ) - + 87
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2746
SELECT ALL CAST( + + CASE - CASE COUNT( * ) WHEN ( + 32 ) / + 90 * 67 + - MIN( ALL - ( - 43 ) + + 43 * 44 ) * 60 THEN 66 END WHEN 89 * 50 THEN NULL WHEN + 67 + + 80 THEN NULL WHEN ( COUNT( * ) ) + - AVG ( DISTINCT - 29 ) THEN ( 72 ) ELSE NULL END AS SIGNED ) * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL CAST ( + + CASE - CASE COUNT ( * ) WHEN ( + 32 ) / + 90 * 67 + - MIN ( ALL - ( - 43 ) + + 43 * 44 ) * 60 THEN 66 END WHEN 89 * 50 THEN NULL WHEN + 67 + + 80 THEN NULL WHEN ( COUNT ( * ) ) + - AVG ( DISTINCT - 29 ) THEN ( 72 ) ELSE NULL END AS INTEGER ) * - 85
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2747
SELECT CAST( AVG ( + - 31 ) AS SIGNED ) + + - 52 + - - 95 * - 20
----
-1983

skipif mysql # not compatible
query I rowsort label-2747
SELECT CAST ( AVG ( + - 31 ) AS INTEGER ) + + - 52 + - - 95 * - 20
----
-1983

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT DISTINCT 91 - - COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT 91 - - COUNT ( * ) AS col0
----
92

query I rowsort
SELECT + CASE - 57 WHEN - 22 THEN + - 3 + + 90 ELSE - - 93 END
----
93

query II rowsort
SELECT + 90 * + 50 col2, + 47 AS col2
----
4500
47

onlyif mysql # DIV for integer division: 
query II rowsort label-2751
SELECT + 8 DIV 67 AS col2, - ( - - 43 ) * 93 DIV - - 91 - 38
----
0
-81

skipif mysql # not compatible
query II rowsort label-2751
SELECT + 8 / 67 AS col2, - ( - - 43 ) * 93 / - - 91 - 38
----
0
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT + CASE - + ( + 37 ) WHEN + + COUNT( DISTINCT - 25 ) + - SUM( - 41 ) * - 55 THEN 85 ELSE NULL END * + 99 + 44 / - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2752
SELECT + CASE - + ( + 37 ) WHEN + + COUNT ( DISTINCT - 25 ) + - SUM ( - 41 ) * - 55 THEN 85 ELSE NULL END * + 99 + 44 / - 52 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2753
SELECT + 55 * + CAST( + 55 AS SIGNED ) * 10 AS col1
----
30250

skipif mysql # not compatible
query I rowsort label-2753
SELECT + 55 * + CAST ( + 55 AS INTEGER ) * 10 AS col1
----
30250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2754
SELECT CASE + + 41 WHEN 21 - + CAST( NULL AS SIGNED ) + - + CASE - 50 WHEN - - 18 + 68 THEN 30 - NULLIF ( 79, COALESCE ( CASE COUNT( * ) WHEN - NULLIF ( ( + MIN( - 61 ) ), 77 ) + COUNT( * ) THEN COUNT( * ) + 94 ELSE + 33 * NULLIF ( - 45 * + COUNT( * ), AVG ( DISTINCT - 3 ) ) END, + 33 ) + - 98 / - 77 ) WHEN - MIN( + 14 ) - + 5 * - 51 THEN - 82 WHEN - 39 - 0 / 27 THEN NULL ELSE - 67 + + 36 * - 6 END THEN NULL WHEN + 68 THEN 51 / NULLIF ( 49, AVG ( DISTINCT + 55 ) ) + - ( NULLIF ( COALESCE ( + NULLIF ( - 64, - ( + ( ( 27 ) ) ) * 7 ), + 43 * 90 ), + COALESCE ( SUM( ALL - 78 ), 28 / - 21 + COUNT( * ) ) ) ) ELSE ( 49 ) END AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2754
SELECT CASE + + 41 WHEN 21 - + CAST ( NULL AS INTEGER ) + - + CASE - 50 WHEN - - 18 + 68 THEN 30 - NULLIF ( 79, COALESCE ( CASE COUNT ( * ) WHEN - NULLIF ( ( + MIN ( - 61 ) ), 77 ) + COUNT ( * ) THEN COUNT ( * ) + 94 ELSE + 33 * NULLIF ( - 45 * + COUNT ( * ), AVG ( DISTINCT - 3 ) ) END, + 33 ) + - 98 / - 77 ) WHEN - MIN ( + 14 ) - + 5 * - 51 THEN - 82 WHEN - 39 - 0 / 27 THEN NULL ELSE - 67 + + 36 * - 6 END THEN NULL WHEN + 68 THEN 51 / NULLIF ( 49, AVG ( DISTINCT + 55 ) ) + - ( NULLIF ( COALESCE ( + NULLIF ( - 64, - ( + ( ( 27 ) ) ) * 7 ), + 43 * 90 ), + COALESCE ( SUM ( ALL - 78 ), 28 / - 21 + COUNT ( * ) ) ) ) ELSE ( 49 ) END AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT + COALESCE ( + 98, - - 71 + - + 58 ) * ( + COUNT( * ) ) + - ( ( - 27 ) ) AS col1
----
125

skipif mysql # not compatible
query I rowsort label-2755
SELECT + COALESCE ( + 98, - - 71 + - + 58 ) * ( + COUNT ( * ) ) + - ( ( - 27 ) ) AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT COALESCE ( + - COUNT( - 84 ), - 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-2756
SELECT COALESCE ( + - COUNT ( - 84 ), - 17 )
----
-1

query II rowsort
SELECT ALL - 15 * + + 39 AS col2, 46 - - NULLIF ( 59, - 13 + + - 13 )
----
-585
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT ALL + COUNT( * ) * + 42 - - 8 + + 47 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL + COUNT ( * ) * + 42 - - 8 + + 47 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT DISTINCT + + 62 * 19 * ( 18 ) - COUNT( * ) + 62 AS col0
----
21265

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT + + 62 * 19 * ( 18 ) - COUNT ( * ) + 62 AS col0
----
21265

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT + - MIN( DISTINCT NULLIF ( + 70, 75 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-2760
SELECT + - MIN ( DISTINCT NULLIF ( + 70, 75 ) )
----
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2761
SELECT + - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT + - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT MAX( ALL 49 )
----
49

skipif mysql # not compatible
query I rowsort label-2762
SELECT MAX ( ALL 49 )
----
49

query I rowsort
SELECT ALL + + CASE WHEN 52 IS NULL THEN NULL ELSE - + COALESCE ( + 95, - 48 + - 64 ) END + - ( 85 ) * 52
----
-4515

query II rowsort
SELECT ALL - + 3 + + + 11 AS col0, 6
----
8
6

query I rowsort
SELECT - + 34 * + + 45
----
-1530

query I rowsort
SELECT ALL - + 11 + - 18
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT ALL - SUM( ALL - - 91 ) - + 5 + 38 + + - 95 * - 48 + 30 AS col2
----
4532

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL - SUM ( ALL - - 91 ) - + 5 + 38 + + - 95 * - 48 + 30 AS col2
----
4532

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT DISTINCT - - 61 * - - COUNT( ALL - 31 ) * - 43
----
-2623

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT - - 61 * - - COUNT ( ALL - 31 ) * - 43
----
-2623

query II rowsort
SELECT 24 AS col0, 50
----
24
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT - CASE 27 WHEN 6 THEN NULL ELSE - + CASE - - 94 WHEN + 48 * - NULLIF ( - - 13, - 13 * CASE - ( 7 ) WHEN 17 THEN + 1 - 1 WHEN + MAX( 21 ) THEN + COUNT( * ) END + 54 ) + 70 * 93 THEN 83 - - COUNT( * ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-2770
SELECT - CASE 27 WHEN 6 THEN NULL ELSE - + CASE - - 94 WHEN + 48 * - NULLIF ( - - 13, - 13 * CASE - ( 7 ) WHEN 17 THEN + 1 - 1 WHEN + MAX ( 21 ) THEN + COUNT ( * ) END + 54 ) + 70 * 93 THEN 83 - - COUNT ( * ) END END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2771
SELECT - COUNT( - + 21 ) - + - 37, ( COUNT( * ) ) AS col2
----
36
1

skipif mysql # not compatible
query II rowsort label-2771
SELECT - COUNT ( - + 21 ) - + - 37, ( COUNT ( * ) ) AS col2
----
36
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2773
SELECT - 79 + + 64 * - ( COUNT( * ) ) col0, - AVG ( + CAST( NULL AS SIGNED ) ) col1, + ( - 81 )
----
-143
NULL
-81

skipif mysql # not compatible
query III rowsort label-2773
SELECT - 79 + + 64 * - ( COUNT ( * ) ) col0, - AVG ( + CAST ( NULL AS INTEGER ) ) col1, + ( - 81 )
----
-143
NULL
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2774
SELECT + 83 DIV 76 + + COUNT( * ) col1, 63
----
2
63

skipif mysql # not compatible
query II rowsort label-2774
SELECT + 83 / 76 + + COUNT ( * ) col1, 63
----
2
63

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

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

query I rowsort
SELECT + 37 * - ( 68 ) AS col1
----
-2516

query I rowsort
SELECT + 49 + - + 85 AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2778
SELECT ALL 7 / CAST( NULL AS SIGNED ) * + 32 / 97 + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL 7 / CAST ( NULL AS INTEGER ) * + 32 / 97 + + 64
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2779
SELECT DISTINCT + 30 DIV + 66 + + 97 + - 15
----
82

skipif mysql # not compatible
query I rowsort label-2779
SELECT DISTINCT + 30 / + 66 + + 97 + - 15
----
82

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

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

query II rowsort
SELECT DISTINCT + 58 AS col1, 27 - + 54
----
58
-27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2782
SELECT ALL + - 52 DIV ( + CAST( 36 AS SIGNED ) ) + + + 30 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL + - 52 / ( + CAST ( 36 AS INTEGER ) ) + + + 30 AS col2
----
29

query I rowsort
SELECT + ( + 2 ) * + 46
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT COALESCE ( + 37, + 33 ) * + 46 + - - MAX( ( - 23 ) ) - - - 23
----
1656

skipif mysql # not compatible
query I rowsort label-2784
SELECT COALESCE ( + 37, + 33 ) * + 46 + - - MAX ( ( - 23 ) ) - - - 23
----
1656

onlyif mysql # aggregate syntax: 
query II rowsort label-2785
SELECT + - 23 + - COUNT( * ) - 85 AS col2, + 49 * - 8 * + 78 AS col2
----
-109
-30576

skipif mysql # not compatible
query II rowsort label-2785
SELECT + - 23 + - COUNT ( * ) - 85 AS col2, + 49 * - 8 * + 78 AS col2
----
-109
-30576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2786
SELECT + COUNT( * ) DIV + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2786
SELECT + COUNT ( * ) / + 94 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2787
SELECT ALL - CASE + + 65 WHEN + ( - 80 ) + COUNT( ALL CAST( + + 80 AS DECIMAL ) ) THEN - - 15 ELSE NULL END * - ( 57 ) + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL - CASE + + 65 WHEN + ( - 80 ) + COUNT ( ALL CAST ( + + 80 AS REAL ) ) THEN - - 15 ELSE NULL END * - ( 57 ) + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT DISTINCT - 10 * COUNT( * ) + 44 + 22 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT - 10 * COUNT ( * ) + 44 + 22 AS col0
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-2789
SELECT ALL + 57 * - COUNT( * ) - + - 60 AS col2, 52
----
3
52

skipif mysql # not compatible
query II rowsort label-2789
SELECT ALL + 57 * - COUNT ( * ) - + - 60 AS col2, 52
----
3
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT DISTINCT COUNT( * ) * 69 col2
----
69

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT COUNT ( * ) * 69 col2
----
69

query I rowsort
SELECT ALL 75 * - - 1 - - + ( - 23 ) col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT - - COUNT( * ) * - + 74 * SUM( + + 71 ) + + COUNT( ( + + 32 ) ) AS col2
----
-5253

skipif mysql # not compatible
query I rowsort label-2792
SELECT - - COUNT ( * ) * - + 74 * SUM ( + + 71 ) + + COUNT ( ( + + 32 ) ) AS col2
----
-5253

query II rowsort
SELECT 74 col1, ( + + 76 )
----
74
76

query I rowsort
SELECT + 69 + ( - + 45 )
----
24

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2796
SELECT - 51 * COUNT( * ) DIV 19 * 91
----
-182

skipif mysql # not compatible
query I rowsort label-2796
SELECT - 51 * COUNT ( * ) / 19 * 91
----
-182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2797
SELECT COUNT( * ) + - + COUNT( * ) * - 1 * - NULLIF ( COUNT( ALL + 4 ), - - CAST( NULL AS SIGNED ) * + + 9 * + 9 * + 47 ) + 67
----
67

skipif mysql # not compatible
query I rowsort label-2797
SELECT COUNT ( * ) + - + COUNT ( * ) * - 1 * - NULLIF ( COUNT ( ALL + 4 ), - - CAST ( NULL AS INTEGER ) * + + 9 * + 9 * + 47 ) + 67
----
67

query I rowsort
SELECT DISTINCT - 88 * - 40
----
3520

query I rowsort
SELECT 56 + ( + + 53 ) * - 50 col1
----
-2594

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2801
SELECT 66 + + 46 + - COALESCE ( + COALESCE ( 74, 37, 72 + 92 + + 57 * COUNT( * ) ), + 72 + 80 DIV 50, 65 ) * 77
----
-5586

skipif mysql # not compatible
query I rowsort label-2801
SELECT 66 + + 46 + - COALESCE ( + COALESCE ( 74, 37, 72 + 92 + + 57 * COUNT ( * ) ), + 72 + 80 / 50, 65 ) * 77
----
-5586

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT ALL 21 DIV + + 81
----
0

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL 21 / + + 81
----
0

query I rowsort
SELECT DISTINCT - 88 * 73 AS col1
----
-6424

query I rowsort
SELECT ALL + 71 * + + 97 * ( + 54 ) AS col1
----
371898

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT 65 * + - COUNT( ALL - 49 ) * - - 1 + + MAX( ALL - 66 )
----
-131

skipif mysql # not compatible
query I rowsort label-2806
SELECT 65 * + - COUNT ( ALL - 49 ) * - - 1 + + MAX ( ALL - 66 )
----
-131

query I rowsort
SELECT 1 + - 97 AS col2
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2808
SELECT 75 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-2808
SELECT 75 / 76
----
0

query I rowsort
SELECT ALL - 8 + 98
----
90

query I rowsort
SELECT ( + 98 ) * - - 40
----
3920

query I rowsort
SELECT ALL - 33 + - + 3
----
-36

query I rowsort
SELECT ALL - ( 20 ) * + - 72 * + ( 12 )
----
17280

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL - COALESCE ( 82, + 31 + + COUNT( * ) )
----
-82

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL - COALESCE ( 82, + 31 + + COUNT ( * ) )
----
-82

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

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

query I rowsort
SELECT 24 * + 36 AS col2
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT + + MIN( DISTINCT + 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-2816
SELECT + + MIN ( DISTINCT + 38 ) AS col2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-2817
SELECT - + 75 * + 2 - + - 77 DIV - ( + 91 ) + - 49 col1
----
-199

skipif mysql # not compatible
query I rowsort label-2817
SELECT - + 75 * + 2 - + - 77 / - ( + 91 ) + - 49 col1
----
-199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2818
SELECT DISTINCT - COUNT( - 71 ) - - 50 DIV - 93
----
-1

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT - COUNT ( - 71 ) - - 50 / - 93
----
-1

query I rowsort
SELECT ALL + + 19 * ( ( - 21 ) ) AS col1
----
-399

query II rowsort
SELECT + ( - 53 ) AS col1, - 29
----
-53
-29

query I rowsort
SELECT 39 * 7
----
273

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2822
SELECT ALL CAST( NULL AS SIGNED ) / + NULLIF ( - 85, 3 ), - 25 + + 70 AS col0
----
NULL
45

skipif mysql # not compatible
query II rowsort label-2822
SELECT ALL CAST ( NULL AS INTEGER ) / + NULLIF ( - 85, 3 ), - 25 + + 70 AS col0
----
NULL
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT - 76 * 82 * - 69 * - COUNT( * )
----
-430008

skipif mysql # not compatible
query I rowsort label-2823
SELECT - 76 * 82 * - 69 * - COUNT ( * )
----
-430008

onlyif mysql # DIV for integer division: 
query I rowsort label-2824
SELECT 42 + - 42 DIV - 83 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2824
SELECT 42 + - 42 / - 83 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT - SUM( - - 46 ) * 89 * + 23
----
-94162

skipif mysql # not compatible
query I rowsort label-2825
SELECT - SUM ( - - 46 ) * 89 * + 23
----
-94162

query I rowsort
SELECT + 60 + + 56 col1
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2827
SELECT ALL CAST( NULL AS SIGNED ) * COALESCE ( - 17, - 42 / - MIN( + + 84 ) * + COALESCE ( 69, - COALESCE ( + 67, - 48, + 18 ) + COUNT( * ), 27 ) + 43 + 77, 71 * - 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL CAST ( NULL AS INTEGER ) * COALESCE ( - 17, - 42 / - MIN ( + + 84 ) * + COALESCE ( 69, - COALESCE ( + 67, - 48, + 18 ) + COUNT ( * ), 27 ) + 43 + 77, 71 * - 70 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2828
SELECT 19 DIV 75 * ( + + 49 ) * - - 13 + 81
----
81

skipif mysql # not compatible
query I rowsort label-2828
SELECT 19 / 75 * ( + + 49 ) * - - 13 + 81
----
81

query I rowsort
SELECT 50 * CASE WHEN 24 <> - - CASE 64 WHEN + - ( + COALESCE ( + 87, + 87 ) ) + 44 * + 12 THEN 67 + 9 * 82 END * + 14 + AVG ( 45 ) THEN + 53 / 91 END * 53
----
NULL

query I rowsort
SELECT ALL 33 * 76
----
2508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2831
SELECT + 57 * CAST( + 7 AS SIGNED ) + - COUNT( * ) * + - CAST( - 65 AS SIGNED ) * COALESCE ( + - 27, 91 )
----
2154

skipif mysql # not compatible
query I rowsort label-2831
SELECT + 57 * CAST ( + 7 AS INTEGER ) + - COUNT ( * ) * + - CAST ( - 65 AS INTEGER ) * COALESCE ( + - 27, 91 )
----
2154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2832
SELECT DISTINCT 37, 40 * - + CASE - - CAST( + COUNT( 59 ) AS DECIMAL ) WHEN - - 96 * - 48 / - 89 * + 32 THEN - ( 32 ) WHEN + 92 / + 93 THEN + ( 7 ) ELSE 8 * - ( - CAST( NULL AS SIGNED ) * 89 ) - ( + 28 ) END AS col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-2832
SELECT DISTINCT 37, 40 * - + CASE - - CAST ( + COUNT ( 59 ) AS REAL ) WHEN - - 96 * - 48 / - 89 * + 32 THEN - ( 32 ) WHEN + 92 / + 93 THEN + ( 7 ) ELSE 8 * - ( - CAST ( NULL AS INTEGER ) * 89 ) - ( + 28 ) END AS col1
----
37
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2833
SELECT ALL 80 * + ( COUNT( * ) ) col2, CAST( + - 16 AS SIGNED ) AS col2
----
80
-16

skipif mysql # not compatible
query II rowsort label-2833
SELECT ALL 80 * + ( COUNT ( * ) ) col2, CAST ( + - 16 AS INTEGER ) AS col2
----
80
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2834
SELECT - 50 AS col0, COUNT( * ) * - COUNT( * ) col1
----
-50
-1

skipif mysql # not compatible
query II rowsort label-2834
SELECT - 50 AS col0, COUNT ( * ) * - COUNT ( * ) col1
----
-50
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2835
SELECT MIN( - - CAST( - + 17 AS SIGNED ) ) * + COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-2835
SELECT MIN ( - - CAST ( - + 17 AS INTEGER ) ) * + COUNT ( * ) AS col2
----
-17

query I rowsort
SELECT 1 * - - 95 AS col1
----
95

query I rowsort
SELECT CASE - 78 WHEN 86 * - 86 * - 95 + - ( - 0 ) THEN + 60 / 98 + - 99 END - 36 AS col2
----
NULL

query I rowsort
SELECT 81 - + - 50
----
131

query II rowsort
SELECT ALL + 39 + ( 71 ) AS col1, - 46 + 71
----
110
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT 91 * - 18 * COUNT( * ) * + 32
----
-52416

skipif mysql # not compatible
query I rowsort label-2840
SELECT 91 * - 18 * COUNT ( * ) * + 32
----
-52416

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2841
SELECT ALL 31 + 48 DIV - 61 - COALESCE ( 34, 47 ) - + 87 * - CAST( - 28 AS SIGNED ) AS col1
----
-2439

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL 31 + 48 / - 61 - COALESCE ( 34, 47 ) - + 87 * - CAST ( - 28 AS INTEGER ) AS col1
----
-2439

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT DISTINCT + COUNT( * ) + + 92 col1
----
93

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT + COUNT ( * ) + + 92 col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL - 67 + + MIN( + - 85 )
----
-152

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL - 67 + + MIN ( + - 85 )
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT ALL + COUNT( * ) + 76 + + 93
----
170

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL + COUNT ( * ) + 76 + + 93
----
170

query I rowsort
SELECT - 92 - + - 37 + - - 45 AS col2
----
-10

query I rowsort
SELECT 16 + - - 17 - 94
----
-61

query II rowsort
SELECT 59 - + 10 + + 97 AS col2, 57 AS col2
----
146
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2848
SELECT COUNT( * ) DIV MIN( ALL + 81 ) * + 10 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2848
SELECT COUNT ( * ) / MIN ( ALL + 81 ) * + 10 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT ALL + - ( - + MIN( - 95 ) ) * 79 * - COALESCE ( - 39, 29 + COUNT( * ) * + - 60 * + 0 + 32 ) - - 98
----
-292597

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL + - ( - + MIN ( - 95 ) ) * 79 * - COALESCE ( - 39, 29 + COUNT ( * ) * + - 60 * + 0 + 32 ) - - 98
----
-292597

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT COALESCE ( + - 39, COUNT( * ), COUNT( * ) ) + - ( + 98 )
----
-137

skipif mysql # not compatible
query I rowsort label-2850
SELECT COALESCE ( + - 39, COUNT ( * ), COUNT ( * ) ) + - ( + 98 )
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2851
SELECT - + COUNT( * ) * + + 2 + + 69 DIV + 77 * - CAST( 21 AS SIGNED ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2851
SELECT - + COUNT ( * ) * + + 2 + + 69 / + 77 * - CAST ( 21 AS INTEGER ) AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2852
SELECT - ( - SUM( DISTINCT - - 68 ) ) * + NULLIF ( + 97, + CAST( + 5 AS SIGNED ) ) + - NULLIF ( SUM( 34 ), + MIN( ALL + 68 ) + + 17 ) + - 13 * SUM( + 67 ) * 71
----
-55279

skipif mysql # not compatible
query I rowsort label-2852
SELECT - ( - SUM ( DISTINCT - - 68 ) ) * + NULLIF ( + 97, + CAST ( + 5 AS INTEGER ) ) + - NULLIF ( SUM ( 34 ), + MIN ( ALL + 68 ) + + 17 ) + - 13 * SUM ( + 67 ) * 71
----
-55279

query I rowsort
SELECT ALL 38 * + 86 + - ( 94 )
----
3174

query II rowsort
SELECT ALL - - 82 AS col1, - 82 + 45 AS col0
----
82
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT SUM( DISTINCT - 62 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-2855
SELECT SUM ( DISTINCT - 62 ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT DISTINCT - + ( + NULLIF ( ( + 43 ), - COUNT( * ) * MIN( 83 ) * + - 97 + 74 * + 37 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT - + ( + NULLIF ( ( + 43 ), - COUNT ( * ) * MIN ( 83 ) * + - 97 + 74 * + 37 ) )
----
-43

query I rowsort
SELECT 85 * - 83 - 20 col2
----
-7075

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT - NULLIF ( - - 26, - - 87 * + 64 * - 25 * + 58 + 65 ) * - SUM( - 98 )
----
-2548

skipif mysql # not compatible
query I rowsort label-2858
SELECT - NULLIF ( - - 26, - - 87 * + 64 * - 25 * + 58 + 65 ) * - SUM ( - 98 )
----
-2548

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT DISTINCT + MAX( ALL - 11 ) * 77 AS col1
----
-847

skipif mysql # not compatible
query I rowsort label-2859
SELECT DISTINCT + MAX ( ALL - 11 ) * 77 AS col1
----
-847

query II rowsort
SELECT ALL + 95, - 89 + 77 AS col2
----
95
-12

query I rowsort
SELECT DISTINCT + ( + 17 ) * - 4 + 45 AS col0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2862
SELECT DISTINCT + 37, - 63 DIV + COUNT( * ) AS col0
----
37
-63

skipif mysql # not compatible
query II rowsort label-2862
SELECT DISTINCT + 37, - 63 / + COUNT ( * ) AS col0
----
37
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2863
SELECT + ( - NULLIF ( + + NULLIF ( + 4, - COUNT( * ) * - 63 * + COUNT( * ) * + 28 + - 31 ), + + 36 DIV + + 97 + - ( + 72 ) ) ) DIV COALESCE ( + 68 * COUNT( 96 * - 27 ), + 20 + 91, + 18 )
----
0

skipif mysql # not compatible
query I rowsort label-2863
SELECT + ( - NULLIF ( + + NULLIF ( + 4, - COUNT ( * ) * - 63 * + COUNT ( * ) * + 28 + - 31 ), + + 36 / + + 97 + - ( + 72 ) ) ) / COALESCE ( + 68 * COUNT ( 96 * - 27 ), + 20 + 91, + 18 )
----
0

query I rowsort
SELECT DISTINCT - 16 + 44
----
28

query I rowsort
SELECT - 80 + + - 27 * - 71
----
1837

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2866
SELECT CAST( NULL AS SIGNED ) * + COALESCE ( + 60, 87 / - 60 / 81 + + CAST( NULL AS SIGNED ) + + 37 * + CASE WHEN ( NULL ) NOT BETWEEN NULL AND ( - 27 ) THEN 88 + 31 END ) - + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2866
SELECT CAST ( NULL AS INTEGER ) * + COALESCE ( + 60, 87 / - 60 / 81 + + CAST ( NULL AS INTEGER ) + + 37 * + CASE WHEN ( NULL ) NOT BETWEEN NULL AND ( - 27 ) THEN 88 + 31 END ) - + 55 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2867
SELECT DISTINCT 91 + ( + 75 ) - 89 DIV + CAST( + - 38 AS SIGNED ) + + 16 * - - 65 * + 42 * + 72 col1
----
3145128

skipif mysql # not compatible
query I rowsort label-2867
SELECT DISTINCT 91 + ( + 75 ) - 89 / + CAST ( + - 38 AS INTEGER ) + + 16 * - - 65 * + 42 * + 72 col1
----
3145128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2868
SELECT ALL MIN( DISTINCT - + 59 ) DIV - + 81
----
0

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL MIN ( DISTINCT - + 59 ) / - + 81
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2869
SELECT - ( COALESCE ( - - 84, + CAST( - 68 AS SIGNED ) - + 8 DIV COUNT( * ) * - ( 3 ) ) ) DIV 11
----
-7

skipif mysql # not compatible
query I rowsort label-2869
SELECT - ( COALESCE ( - - 84, + CAST ( - 68 AS INTEGER ) - + 8 / COUNT ( * ) * - ( 3 ) ) ) / 11
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-2870
SELECT + 62 DIV + 74 col0
----
0

skipif mysql # not compatible
query I rowsort label-2870
SELECT + 62 / + 74 col0
----
0

query I rowsort
SELECT + 38 * 61 AS col1
----
2318

query I rowsort
SELECT + 26 + - 5 AS col0
----
21

query I rowsort
SELECT ALL 31 + 38
----
69

query I rowsort
SELECT ALL 90 * + ( + 12 ) col0
----
1080

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

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT COUNT ( * ) + + 61 AS col0
----
62

query II rowsort
SELECT - ( + 63 ) col2, 58 AS col0
----
-63
58

query II rowsort
SELECT 63 col0, - ( 27 )
----
63
-27

query I rowsort
SELECT + 72 + - + 32 * + - 31
----
1064

query I rowsort
SELECT - - 36 + 38 * + 58 AS col0
----
2240

onlyif mysql # aggregate syntax: 
query II rowsort label-2880
SELECT DISTINCT 66, + 9 * + 79 * - + 19 * SUM( ALL 3 ) AS col1
----
66
-40527

skipif mysql # not compatible
query II rowsort label-2880
SELECT DISTINCT 66, + 9 * + 79 * - + 19 * SUM ( ALL 3 ) AS col1
----
66
-40527

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT - + 61 + 25 * + + 94 + - 44 * 46 + + - COUNT( * ) + + - 16 * - 5 * 21 AS col0
----
1944

skipif mysql # not compatible
query I rowsort label-2881
SELECT - + 61 + 25 * + + 94 + - 44 * 46 + + - COUNT ( * ) + + - 16 * - 5 * 21 AS col0
----
1944

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

skipif mysql # not compatible
query I rowsort label-2882
SELECT + 56 / - 85 + COUNT ( * )
----
1

query II rowsort
SELECT - 61 col1, + 11 col1
----
-61
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2884
SELECT DISTINCT + + 48 AS col1, - 58 + 23 + - CAST( - 31 AS SIGNED ) * + 72 AS col2
----
48
2197

skipif mysql # not compatible
query II rowsort label-2884
SELECT DISTINCT + + 48 AS col1, - 58 + 23 + - CAST ( - 31 AS INTEGER ) * + 72 AS col2
----
48
2197

query II rowsort
SELECT ALL + 89 AS col2, 23 * 10
----
89
230

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT DISTINCT 71 * - 46 * + 46 * - + COUNT( * )
----
150236

skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT 71 * - 46 * + 46 * - + COUNT ( * )
----
150236

query II rowsort
SELECT 56, - 58 AS col2
----
56
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-2888
SELECT ALL + + MAX( ALL 49 ) AS col1, 52
----
49
52

skipif mysql # not compatible
query II rowsort label-2888
SELECT ALL + + MAX ( ALL 49 ) AS col1, 52
----
49
52

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2890
SELECT DISTINCT 51 * 42 DIV - 23 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT 51 * 42 / - 23 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT MIN( ALL + - 71 ) * - - 79 * + 35 + - ( + 8 ) * - - 92 * + - 86
----
-133019

skipif mysql # not compatible
query I rowsort label-2891
SELECT MIN ( ALL + - 71 ) * - - 79 * + 35 + - ( + 8 ) * - - 92 * + - 86
----
-133019

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

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

query I rowsort
SELECT ALL 61 * - 43 + + 53 * 5 + - + 22 AS col2
----
-2380

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT - CASE CASE WHEN NULL IS NOT NULL THEN - CASE - MAX( - 70 ) WHEN - + AVG ( ALL + 55 ) / - 65 THEN + 16 WHEN + - 55 / 37 THEN NULL END WHEN - 78 * 48 + AVG ( DISTINCT + 39 ) IS NULL THEN 33 END WHEN COUNT( * ) THEN - 8 * 46 WHEN 26 * 46 THEN 35 + 98 END * 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2894
SELECT - CASE CASE WHEN NULL IS NOT NULL THEN - CASE - MAX ( - 70 ) WHEN - + AVG ( ALL + 55 ) / - 65 THEN + 16 WHEN + - 55 / 37 THEN NULL END WHEN - 78 * 48 + AVG ( DISTINCT + 39 ) IS NULL THEN 33 END WHEN COUNT ( * ) THEN - 8 * 46 WHEN 26 * 46 THEN 35 + 98 END * 15 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2895
SELECT - CAST( - 77 AS SIGNED ) + + 29
----
106

skipif mysql # not compatible
query I rowsort label-2895
SELECT - CAST ( - 77 AS INTEGER ) + + 29
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT DISTINCT ( - MIN( + 51 ) ) * - 25 * + 20 * - + 43 - - 56 + - + 51 + + 22 + + 28 + - + 20 * - 27 * 53 AS col1
----
-1067825

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT ( - MIN ( + 51 ) ) * - 25 * + 20 * - + 43 - - 56 + - + 51 + + 22 + + 28 + - + 20 * - 27 * 53 AS col1
----
-1067825

query I rowsort
SELECT DISTINCT 48 * 3 + 46 AS col0
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT COALESCE ( - - COUNT( * ), - - 29 * - 46 * COALESCE ( + - 60, + COUNT( * ) + - CASE 22 WHEN - 22 THEN 88 WHEN + NULLIF ( - 30, 38 ) * 55 THEN NULL ELSE NULL END ) * 55 + 16 * + 6 )
----
1

skipif mysql # not compatible
query I rowsort label-2898
SELECT COALESCE ( - - COUNT ( * ), - - 29 * - 46 * COALESCE ( + - 60, + COUNT ( * ) + - CASE 22 WHEN - 22 THEN 88 WHEN + NULLIF ( - 30, 38 ) * 55 THEN NULL ELSE NULL END ) * 55 + 16 * + 6 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2899
SELECT DISTINCT COUNT( * ) * + 56 + + 30 + + 68 + - 96 DIV - 80
----
155

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT COUNT ( * ) * + 56 + + 30 + + 68 + - 96 / - 80
----
155

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2901
SELECT CAST( - COUNT( * ) AS SIGNED ) * + - CAST( - - ( - 3 ) AS SIGNED ) * NULLIF ( - NULLIF ( 69, - - 33 ), - + 23 ) + + 79
----
286

skipif mysql # not compatible
query I rowsort label-2901
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + - CAST ( - - ( - 3 ) AS INTEGER ) * NULLIF ( - NULLIF ( 69, - - 33 ), - + 23 ) + + 79
----
286

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL - 49 * MAX( DISTINCT + + 99 ) col2
----
-4851

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL - 49 * MAX ( DISTINCT + + 99 ) col2
----
-4851

query II rowsort
SELECT DISTINCT ( 19 ), 2 AS col0
----
19
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2904
SELECT ALL CAST( - + 92 AS SIGNED ), + 11 + - 80 AS col0
----
-92
-69

skipif mysql # not compatible
query II rowsort label-2904
SELECT ALL CAST ( - + 92 AS INTEGER ), + 11 + - 80 AS col0
----
-92
-69

query I rowsort
SELECT DISTINCT - 22 - - + 79 AS col2
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-2906
SELECT + 72 DIV 44 DIV - + ( 54 ) * + 28 AS col1, 1 - - - 96 * - ( - - 9 ) AS col2
----
0
865

skipif mysql # not compatible
query II rowsort label-2906
SELECT + 72 / 44 / - + ( 54 ) * + 28 AS col1, 1 - - - 96 * - ( - - 9 ) AS col2
----
0
865

query I rowsort
SELECT ALL 78 - - ( - 1 ) AS col1
----
77

query II rowsort
SELECT - ( - 20 ) AS col0, 7
----
20
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2909
SELECT - 27 - + MAX( ALL + 63 ) * 83 + 11 * + - ( + - 70 ) * - + CAST( 68 AS SIGNED ) * - NULLIF ( + CAST( + 39 AS SIGNED ), - 90 * 63 ) + COUNT( * ) * ( ( 42 ) ) + - 57 AS col1
----
2036769

skipif mysql # not compatible
query I rowsort label-2909
SELECT - 27 - + MAX ( ALL + 63 ) * 83 + 11 * + - ( + - 70 ) * - + CAST ( 68 AS INTEGER ) * - NULLIF ( + CAST ( + 39 AS INTEGER ), - 90 * 63 ) + COUNT ( * ) * ( ( 42 ) ) + - 57 AS col1
----
2036769

onlyif mysql # aggregate syntax: 
query II rowsort label-2910
SELECT + COUNT( * ) * - + 11 AS col0, 97 AS col1
----
-11
97

skipif mysql # not compatible
query II rowsort label-2910
SELECT + COUNT ( * ) * - + 11 AS col0, 97 AS col1
----
-11
97

query I rowsort
SELECT ALL 71 * - 36 * - 23
----
58788

query I rowsort
SELECT ALL + NULLIF ( + + 36, - 12 ) AS col2
----
36

query I rowsort
SELECT + - 55 * 11
----
-605

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT ALL - COUNT( * ) * NULLIF ( 54, - 75 )
----
-54

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL - COUNT ( * ) * NULLIF ( 54, - 75 )
----
-54

query I rowsort
SELECT - - 44 + + 38
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT + + COUNT( * ) - + + 54 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-2916
SELECT + + COUNT ( * ) - + + 54 AS col1
----
-53

query I rowsort
SELECT + + 69 + - 22 + - + 17 * + 46 AS col2
----
-735

query I rowsort
SELECT + - 63 - + 2
----
-65

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2920
SELECT 48 DIV - 84 col0, 70 + 80 + - - MIN( + - ( 73 ) )
----
0
77

skipif mysql # not compatible
query II rowsort label-2920
SELECT 48 / - 84 col0, 70 + 80 + - - MIN ( + - ( 73 ) )
----
0
77

query I rowsort
SELECT ALL - 48 + + + 37 + - 23 + 60 AS col1
----
26

query I rowsort
SELECT 50 * - 53 * + 10 * NULLIF ( 37, + 54 + + 22 )
----
-980500

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2923
SELECT ALL 74 * 13 DIV - - 36 AS col1, + COUNT( * ) DIV + 7 * - + 78 AS col0
----
26
0

skipif mysql # not compatible
query II rowsort label-2923
SELECT ALL 74 * 13 / - - 36 AS col1, + COUNT ( * ) / + 7 * - + 78 AS col0
----
26
0

query I rowsort
SELECT 95 + + - 3
----
92

query I rowsort
SELECT ALL + 80 * 96 AS col2
----
7680

query II rowsort
SELECT + 83 AS col0, 12 col1
----
83
12

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

query I rowsort
SELECT ALL + 53 + 9
----
62

query I rowsort
SELECT ALL 15 * - + 29
----
-435

query II rowsort
SELECT 10, - 84 col0
----
10
-84

query I rowsort
SELECT DISTINCT - COALESCE ( - 65, - 71 ) AS col0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2932
SELECT ALL - 53 - + 20 * + CAST( NULL AS SIGNED ) * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL - 53 - + 20 * + CAST ( NULL AS INTEGER ) * + 11
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2933
SELECT CAST( NULL AS SIGNED ) * + MAX( ALL + - ( 55 ) ) * - - COUNT( * ) + + 24 * - - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2933
SELECT CAST ( NULL AS INTEGER ) * + MAX ( ALL + - ( 55 ) ) * - - COUNT ( * ) + + 24 * - - 29 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 7 AS col0, - 29 AS col0
----
7
-29

query I rowsort
SELECT 90 + - 5 AS col2
----
85

query I rowsort
SELECT - 24 * - ( - 44 ) * + COALESCE ( + 7, - 13 + + 81, 36 * 25 ) * + 42 + - 2 - - 72
----
-310394

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT 29 * - CASE NULLIF ( + - 12, + - 92 ) WHEN 24 THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT 29 * - CASE NULLIF ( + - 12, + - 92 ) WHEN 24 THEN - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2938
SELECT ALL - 18 * + CASE + 34 WHEN + CAST( NULL AS DECIMAL ) * - 83 + + + 18 + + COALESCE ( + + 34, + 43 * - COUNT( * ), + - 16 ) THEN - - NULLIF ( + 86, + 67 + + 44 ) * ( - 5 + - 27 / COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL - 18 * + CASE + 34 WHEN + CAST ( NULL AS REAL ) * - 83 + + + 18 + + COALESCE ( + + 34, + 43 * - COUNT ( * ), + - 16 ) THEN - - NULLIF ( + 86, + 67 + + 44 ) * ( - 5 + - 27 / COUNT ( * ) ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT 6 + - COALESCE ( 18, - NULLIF ( + 55, + - COUNT( * ) * + 52 ) * + - ( + 37 ) + - 93 + - 19, + ( 35 ) + 49 ) + + ( 5 ) * - 43 AS col0
----
-227

skipif mysql # not compatible
query I rowsort label-2940
SELECT 6 + - COALESCE ( 18, - NULLIF ( + 55, + - COUNT ( * ) * + 52 ) * + - ( + 37 ) + - 93 + - 19, + ( 35 ) + 49 ) + + ( 5 ) * - 43 AS col0
----
-227

query I rowsort
SELECT 16 + - - 76 AS col1
----
92

query I rowsort
SELECT ALL + 73 - + + 51
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2943
SELECT ALL - - CASE 93 WHEN 95 * - 69 + + + 78 * - 92 THEN NULL WHEN - COUNT( * ) THEN + 72 ELSE NULL END * - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) + NULLIF ( COUNT( * ), - - 94 ) + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL - - CASE 93 WHEN 95 * - 69 + + + 78 * - 92 THEN NULL WHEN - COUNT ( * ) THEN + 72 ELSE NULL END * - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) + NULLIF ( COUNT ( * ), - - 94 ) + 32 AS col2
----
NULL

query I rowsort
SELECT ALL ( - 9 ) col2
----
-9

query II rowsort
SELECT ALL - 93 col0, + ( + - 15 ) * + 52 + - NULLIF ( 40, - 73 * - 83 * - 48 * + - 31 * - 74 + + AVG ( ALL - - 79 ) ) * + 97 col2
----
-93
-4660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2946
SELECT + 52 + - 69 * COALESCE ( - - COALESCE ( - + 13, + - NULLIF ( 82, - COUNT( * ) ), - 80 ), - ( + COUNT( * ) ) ) DIV - 20 * + + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-2946
SELECT + 52 + - 69 * COALESCE ( - - COALESCE ( - + 13, + - NULLIF ( 82, - COUNT ( * ) ), - 80 ), - ( + COUNT ( * ) ) ) / - 20 * + + COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT ALL - MAX( DISTINCT + - 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL - MAX ( DISTINCT + - 3 ) AS col0
----
3

query II rowsort
SELECT 11 AS col1, 23 AS col2
----
11
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2949
SELECT 14 + + COALESCE ( - COUNT( * ), 78 ) * COUNT( * ) * - + CASE COUNT( * ) WHEN + 13 THEN - ( - - 59 ) * + COUNT( * ) WHEN + + ( - 41 ) THEN - 76 - + CAST( - 28 AS SIGNED ) * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT 14 + + COALESCE ( - COUNT ( * ), 78 ) * COUNT ( * ) * - + CASE COUNT ( * ) WHEN + 13 THEN - ( - - 59 ) * + COUNT ( * ) WHEN + + ( - 41 ) THEN - 76 - + CAST ( - 28 AS INTEGER ) * COUNT ( * ) ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 57, 44 col0
----
57
44

query I rowsort
SELECT NULLIF ( 56, + + 52 + - 43 - 58 * - 21 ) AS col1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2952
SELECT 62 DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-2952
SELECT 62 / + 75
----
0

query I rowsort
SELECT - 1 + - - 14 + 86 col1
----
99

query I rowsort
SELECT - 45 * 35
----
-1575

query I rowsort
SELECT 52 + + 31
----
83

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2957
SELECT ALL 91 AS col2, COUNT( * ) + 2
----
91
3

skipif mysql # not compatible
query II rowsort label-2957
SELECT ALL 91 AS col2, COUNT ( * ) + 2
----
91
3

query I rowsort
SELECT ALL + 68 + 89 AS col0
----
157

query I rowsort
SELECT DISTINCT - 10 + 17 AS col1
----
7

query I rowsort
SELECT ALL + 88 * + 21 AS col2
----
1848

query I rowsort
SELECT ( + 76 ) * + 95 col1
----
7220

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT ALL - + COUNT( * ) + 80 * 74
----
5919

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL - + COUNT ( * ) + 80 * 74
----
5919

query II rowsort
SELECT ALL - 52 col2, - 7 + 87 AS col2
----
-52
80

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

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

query I rowsort
SELECT 59 * 85 AS col0
----
5015

query I rowsort
SELECT 95 * 28 AS col0
----
2660

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT MAX( DISTINCT 70 )
----
70

skipif mysql # not compatible
query I rowsort label-2967
SELECT MAX ( DISTINCT 70 )
----
70

query I rowsort
SELECT DISTINCT 68 + - - 39 - + 9
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2969
SELECT ALL COUNT( * ) + + 6 * - COALESCE ( + - 49, 64 + + 56 DIV + - 73 ) col2
----
295

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL COUNT ( * ) + + 6 * - COALESCE ( + - 49, 64 + + 56 / + - 73 ) col2
----
295

query I rowsort
SELECT ALL 3 - + COALESCE ( + 66, - 23 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT 85 * - - COALESCE ( 41, + 66 + 88 ) - - 22 + + + 95 * - ( - + COUNT( * ) ) + + - 90
----
3512

skipif mysql # not compatible
query I rowsort label-2971
SELECT 85 * - - COALESCE ( 41, + 66 + 88 ) - - 22 + + + 95 * - ( - + COUNT ( * ) ) + + - 90
----
3512

query I rowsort
SELECT DISTINCT 32 - - - 3 AS col1
----
29

query I rowsort
SELECT ALL 67 - + 18 AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2974
SELECT COUNT( * ) * 95 + CAST( - 50 AS SIGNED ) col0, + COUNT( * ) * 34 DIV + + 27 - - 11 AS col1
----
45
12

skipif mysql # not compatible
query II rowsort label-2974
SELECT COUNT ( * ) * 95 + CAST ( - 50 AS INTEGER ) col0, + COUNT ( * ) * 34 / + + 27 - - 11 AS col1
----
45
12

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2976
SELECT NULLIF ( - COUNT( DISTINCT + CAST( - - 16 AS SIGNED ) ), ( + CAST( NULL AS DECIMAL ) ) * 94 ) * + 93
----
-93

skipif mysql # not compatible
query I rowsort label-2976
SELECT NULLIF ( - COUNT ( DISTINCT + CAST ( - - 16 AS INTEGER ) ), ( + CAST ( NULL AS REAL ) ) * 94 ) * + 93
----
-93

query I rowsort
SELECT ALL - 22 - 77 AS col1
----
-99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2979
SELECT ( - 11 ) DIV + 7 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2979
SELECT ( - 11 ) / + 7 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2980
SELECT ALL + 50 DIV - + 31
----
-1

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL + 50 / - + 31
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2981
SELECT 25 * 97 AS col0, + COUNT( * ) + - 57 + + ( - + 87 )
----
2425
-143

skipif mysql # not compatible
query II rowsort label-2981
SELECT 25 * 97 AS col0, + COUNT ( * ) + - 57 + + ( - + 87 )
----
2425
-143

query I rowsort
SELECT 39 + 10 AS col2
----
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT ALL + - 45 + - - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL + - 45 + - - COUNT ( * )
----
-44

query I rowsort
SELECT - + 36 - 29 AS col0
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2986
SELECT DISTINCT - + COUNT( * ) * + 0 DIV - 28 * + + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT - + COUNT ( * ) * + 0 / - 28 * + + 73 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2987
SELECT ALL - - CAST( - + 57 AS SIGNED ) + + + 50
----
-7

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL - - CAST ( - + 57 AS INTEGER ) + + + 50
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2988
SELECT ALL - + 53 + CAST( - + 52 AS SIGNED )
----
-105

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL - + 53 + CAST ( - + 52 AS INTEGER )
----
-105

query I rowsort
SELECT ALL + 6 + ( - - 19 ) col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2990
SELECT DISTINCT CAST( - ( - ( 37 ) ) AS SIGNED ) AS col0, 0
----
37
0

skipif mysql # not compatible
query II rowsort label-2990
SELECT DISTINCT CAST ( - ( - ( 37 ) ) AS INTEGER ) AS col0, 0
----
37
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2991
SELECT ALL - MIN( ALL + + 22 ) AS col2, + 45 - + 61 AS col0
----
-22
-16

skipif mysql # not compatible
query II rowsort label-2991
SELECT ALL - MIN ( ALL + + 22 ) AS col2, + 45 - + 61 AS col0
----
-22
-16

query I rowsort
SELECT - 88 - + 69 + + + 67 * 42 * - 92 + - 25 + - - 87
----
-258983

onlyif mysql # aggregate syntax: 
query II rowsort label-2993
SELECT - COALESCE ( 36, - 76 + - + COUNT( * ), + 72 * - + 66 * - ( + 16 ) ) + - 37 AS col2, + 46 AS col1
----
-73
46

skipif mysql # not compatible
query II rowsort label-2993
SELECT - COALESCE ( 36, - 76 + - + COUNT ( * ), + 72 * - + 66 * - ( + 16 ) ) + - 37 AS col2, + 46 AS col1
----
-73
46

query I rowsort
SELECT - + 34 * + - 68
----
2312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2995
SELECT - 45 + - COUNT( * ) DIV + NULLIF ( + 60, - 37 DIV - 71 DIV + + CASE WHEN NOT ( + COUNT( * ) ) IN ( - 70 DIV + - 42 ) THEN + 86 * + 83 DIV 29 END * - 98 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-2995
SELECT - 45 + - COUNT ( * ) / + NULLIF ( + 60, - 37 / - 71 / + + CASE WHEN NOT ( + COUNT ( * ) ) IN ( - 70 / + - 42 ) THEN + 86 * + 83 / 29 END * - 98 ) AS col2
----
-45

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2998
SELECT COALESCE ( 17, - 18 - + CAST( NULL AS SIGNED ) ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2998
SELECT COALESCE ( 17, - 18 - + CAST ( NULL AS INTEGER ) ) AS col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2999
SELECT DISTINCT + 8 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT + 8 / 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3000
SELECT ALL COALESCE ( + - 42, + 43, - CAST( NULL AS SIGNED ) ) * - SUM( DISTINCT 63 ) - + NULLIF ( - COUNT( * ), - 51 * + - 95 ) + - 33 * + 38 * + 51 + COUNT( * ) + - - 35 AS col1
----
-61271

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL COALESCE ( + - 42, + 43, - CAST ( NULL AS INTEGER ) ) * - SUM ( DISTINCT 63 ) - + NULLIF ( - COUNT ( * ), - 51 * + - 95 ) + - 33 * + 38 * + 51 + COUNT ( * ) + - - 35 AS col1
----
-61271

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3001
SELECT - 98 DIV + - 72 + 12 * - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-3001
SELECT - 98 / + - 72 + 12 * - COUNT ( * )
----
-11

query I rowsort
SELECT DISTINCT - 35 * - 75 AS col0
----
2625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3003
SELECT + MIN( - 62 ) DIV + 14 + - + 9 + - 80 * 48 + - - CASE - 85 WHEN - - ( - + 5 ) * + - ( - 16 ) - + + 87 DIV - 12 * + 6 + - 51 THEN 92 + 87 WHEN - COUNT( DISTINCT + 14 ) * 24 THEN SUM( 33 ) + COUNT( * ) ELSE 81 END + COUNT( * ) * + 5
----
-3767

skipif mysql # not compatible
query I rowsort label-3003
SELECT + MIN ( - 62 ) / + 14 + - + 9 + - 80 * 48 + - - CASE - 85 WHEN - - ( - + 5 ) * + - ( - 16 ) - + + 87 / - 12 * + 6 + - 51 THEN 92 + 87 WHEN - COUNT ( DISTINCT + 14 ) * 24 THEN SUM ( 33 ) + COUNT ( * ) ELSE 81 END + COUNT ( * ) * + 5
----
-3767

query I rowsort
SELECT NULLIF ( ( + + 22 ), - ( - + 86 ) + - - 55 )
----
22

query I rowsort
SELECT + 55 * - + 25 AS col0
----
-1375

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT + NULLIF ( 12, + 85 / - 48 + - ( - COALESCE ( - 63, + 90 + + 36 ) ) * 92 - - - NULLIF ( + COUNT( ALL - - 63 ), 92 / 77 + + 32 * - 16 ) )
----
12

skipif mysql # not compatible
query I rowsort label-3006
SELECT + NULLIF ( 12, + 85 / - 48 + - ( - COALESCE ( - 63, + 90 + + 36 ) ) * 92 - - - NULLIF ( + COUNT ( ALL - - 63 ), 92 / 77 + + 32 * - 16 ) )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT + 32 + 4 * + - COUNT( ALL - 72 )
----
28

skipif mysql # not compatible
query I rowsort label-3007
SELECT + 32 + 4 * + - COUNT ( ALL - 72 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT CASE 87 WHEN 93 + 19 THEN + - 59 WHEN + SUM( + 42 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT CASE 87 WHEN 93 + 19 THEN + - 59 WHEN + SUM ( + 42 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT - 54 * + CASE - 7 WHEN + ( 42 ) THEN NULL WHEN MIN( 60 ) THEN + 44 - + + 94 ELSE + + 69 - + - CASE + 67 WHEN + 60 * + 6 THEN + - 86 END END + - ( + 84 + 82 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3009
SELECT - 54 * + CASE - 7 WHEN + ( 42 ) THEN NULL WHEN MIN ( 60 ) THEN + 44 - + + 94 ELSE + + 69 - + - CASE + 67 WHEN + 60 * + 6 THEN + - 86 END END + - ( + 84 + 82 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3010
SELECT - 16 * - ( 6 ) * 74 + - 27 DIV + 20 AS col0
----
7103

skipif mysql # not compatible
query I rowsort label-3010
SELECT - 16 * - ( 6 ) * 74 + - 27 / + 20 AS col0
----
7103

query I rowsort
SELECT + 13 + - + 58
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3012
SELECT + CASE SUM( + + 64 ) WHEN 22 DIV 54 THEN AVG ( - 6 ) ELSE + COUNT( * ) DIV - 30 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3012
SELECT + CASE SUM ( + + 64 ) WHEN 22 / 54 THEN AVG ( - 6 ) ELSE + COUNT ( * ) / - 30 END AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3013
SELECT ALL + 64 AS col0, COUNT( * ) * 70 * - ( - 90 )
----
64
6300

skipif mysql # not compatible
query II rowsort label-3013
SELECT ALL + 64 AS col0, COUNT ( * ) * 70 * - ( - 90 )
----
64
6300

query I rowsort
SELECT + 89 * 84 AS col0
----
7476

query I rowsort
SELECT ALL 1 * 77 * + 13 * 50
----
50050

onlyif mysql # DIV for integer division: 
query I rowsort label-3016
SELECT DISTINCT + CASE + - COALESCE ( 2, - 16 + + 71 + 40 ) WHEN 16 THEN - 89 ELSE + - 27 END DIV 23
----
-1

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT + CASE + - COALESCE ( 2, - 16 + + 71 + 40 ) WHEN 16 THEN - 89 ELSE + - 27 END / 23
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT 31 * - COUNT( * ) + 65 + 6
----
40

skipif mysql # not compatible
query I rowsort label-3017
SELECT 31 * - COUNT ( * ) + 65 + 6
----
40

query I rowsort
SELECT + + 49 * - 22 - + + 74 + 48
----
-1104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3019
SELECT ALL + MIN( ALL + 7 ) * - 38 + + + 11 + - 11 * + 67 + CAST( - 92 AS SIGNED ) + COUNT( * )
----
-1083

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL + MIN ( ALL + 7 ) * - 38 + + + 11 + - 11 * + 67 + CAST ( - 92 AS INTEGER ) + COUNT ( * )
----
-1083

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3020
SELECT - - AVG ( CAST( NULL AS SIGNED ) ) + + 0 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3020
SELECT - - AVG ( CAST ( NULL AS INTEGER ) ) + + 0 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3021
SELECT + 9 + + 23 * - 1 + - - 33 / - 33 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3021
SELECT + 9 + + 23 * - 1 + - - 33 / - 33 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 43 + 56 * 55 * - 24 AS col1
----
-73877

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3023
SELECT DISTINCT - 68 + + 1 DIV + 18 col1, COUNT( * ) + - 90 AS col1
----
-68
-89

skipif mysql # not compatible
query II rowsort label-3023
SELECT DISTINCT - 68 + + 1 / + 18 col1, COUNT ( * ) + - 90 AS col1
----
-68
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3024
SELECT DISTINCT + ( - - COALESCE ( - ( NULLIF ( + + 11, SUM( - 24 ) - - NULLIF ( + ( + + CAST( NULL AS SIGNED ) ), - 12 * + 23 * + + 34 * + + 38 + + COUNT( * ) * 57 ) - + 90 * + 87 ) ), 66 + - 90 ) ) + 92 DIV 66 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT + ( - - COALESCE ( - ( NULLIF ( + + 11, SUM ( - 24 ) - - NULLIF ( + ( + + CAST ( NULL AS INTEGER ) ), - 12 * + 23 * + + 34 * + + 38 + + COUNT ( * ) * 57 ) - + 90 * + 87 ) ), 66 + - 90 ) ) + 92 / 66 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT - ( + 84 ) + - + 34 + + CASE - COUNT( * ) WHEN - MAX( DISTINCT + 54 ) + + 92 + + ( + - 93 ) * - 98 * - - NULLIF ( 9, 18 ) THEN - COALESCE ( - ( - 58 ), - 49 ) - + 83 / + COUNT( * ) WHEN + 42 + 77 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE NULL END + - 61 * - 64 * + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3025
SELECT - ( + 84 ) + - + 34 + + CASE - COUNT ( * ) WHEN - MAX ( DISTINCT + 54 ) + + 92 + + ( + - 93 ) * - 98 * - - NULLIF ( 9, 18 ) THEN - COALESCE ( - ( - 58 ), - 49 ) - + 83 / + COUNT ( * ) WHEN + 42 + 77 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE NULL END + - 61 * - 64 * + 99 AS col0
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 67, - 42 ) + ( - CASE - 87 WHEN 69 THEN - 39 ELSE NULL END ) col2
----
NULL

query I rowsort
SELECT + + 55 * + 71 col0
----
3905

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT - + COUNT( * ) + - 22 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-3028
SELECT - + COUNT ( * ) + - 22 AS col0
----
-23

query I rowsort
SELECT ALL NULLIF ( - 66, - 30 )
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-3030
SELECT DISTINCT + 27 + + 60 + + 36 DIV - + 94 * 30
----
87

skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT + 27 + + 60 + + 36 / - + 94 * 30
----
87

query I rowsort
SELECT ALL - 69 - - 85 AS col2
----
16

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3034
SELECT ALL + + ( + + 61 ) - COUNT( * ) AS col2, 88 AS col0
----
60
88

skipif mysql # not compatible
query II rowsort label-3034
SELECT ALL + + ( + + 61 ) - COUNT ( * ) AS col2, 88 AS col0
----
60
88

query II rowsort
SELECT ALL ( + - 9 ) AS col1, + 95 + - 82 + CASE WHEN NOT ( 24 ) <= - 51 THEN - - 61 * ( + 99 ) END * 45 * - 74 + 53 AS col0
----
-9
-20109804

query I rowsort
SELECT DISTINCT NULLIF ( + 3, + 3 )
----
NULL

query I rowsort
SELECT ALL + 21 - - + 90
----
111

query I rowsort
SELECT DISTINCT NULLIF ( + 76, + 48 )
----
76

query I rowsort
SELECT ALL + ( + + COALESCE ( - - 13, + + 80 ) )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3040
SELECT + MAX( ALL + + 65 ) DIV 91 - + 65
----
-65

skipif mysql # not compatible
query I rowsort label-3040
SELECT + MAX ( ALL + + 65 ) / 91 - + 65
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3041
SELECT - 56 DIV + NULLIF ( - + 29, + 42 DIV - COUNT( * ) + - - ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3041
SELECT - 56 / + NULLIF ( - + 29, + 42 / - COUNT ( * ) + - - ( COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3042
SELECT - CAST( - - 87 AS SIGNED ) * - COUNT( * ) col1
----
87

skipif mysql # not compatible
query I rowsort label-3042
SELECT - CAST ( - - 87 AS INTEGER ) * - COUNT ( * ) col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3043
SELECT CAST( NULL AS SIGNED ), - 95 * + + 15 AS col1
----
NULL
-1425

skipif mysql # not compatible
query II rowsort label-3043
SELECT CAST ( NULL AS INTEGER ), - 95 * + + 15 AS col1
----
NULL
-1425

query I rowsort
SELECT + NULLIF ( 68, 14 ) AS col0
----
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT 49 * 26 + + - CASE 40 WHEN COUNT( * ) * 30 THEN - 22 END - + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT 49 * 26 + + - CASE 40 WHEN COUNT ( * ) * 30 THEN - 22 END - + 75
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3048
SELECT DISTINCT - 77 DIV - COUNT( - - 66 )
----
77

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT - 77 / - COUNT ( - - 66 )
----
77

query I rowsort
SELECT ALL COALESCE ( - - CASE + 4 WHEN - 0 + + 88 + + - 79 * + 19 THEN NULL WHEN + - 74 THEN NULL ELSE - 84 END, - 55 * + + 55 - - - 33, + 39 ) * - ( - + 11 )
----
-924

onlyif mysql # aggregate syntax: 
query II rowsort label-3050
SELECT + MAX( 60 ) AS col1, + 61 * + 66 + - 26 * + COALESCE ( 71, - MAX( DISTINCT + 22 ) ) AS col1
----
60
2180

skipif mysql # not compatible
query II rowsort label-3050
SELECT + MAX ( 60 ) AS col1, + 61 * + 66 + - 26 * + COALESCE ( 71, - MAX ( DISTINCT + 22 ) ) AS col1
----
60
2180

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3052
SELECT ALL 80 DIV + 91 + + - 2 - + 46 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL 80 / + 91 + + - 2 - + 46 AS col0
----
-48

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3054
SELECT + 20 AS col2, CASE - - 66 WHEN + 56 * + 44 THEN - 22 ELSE NULL END / - - 54 + + + 20 + - 91 * CAST( NULL AS DECIMAL ) AS col0
----
20
NULL

skipif mysql # not compatible
query II rowsort label-3054
SELECT + 20 AS col2, CASE - - 66 WHEN + 56 * + 44 THEN - 22 ELSE NULL END / - - 54 + + + 20 + - 91 * CAST ( NULL AS REAL ) AS col0
----
20
NULL

query I rowsort
SELECT DISTINCT 6 + - + 61 AS col2
----
-55

query I rowsort
SELECT ALL 10 + + + 4 - + 53 * - + 43 + + - 99 AS col1
----
2194

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

skipif mysql # not compatible
query I rowsort label-3057
SELECT - 54 * COUNT ( * ) + 76 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT COUNT( DISTINCT + 64 ) * 91 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-3058
SELECT COUNT ( DISTINCT + 64 ) * 91 AS col2
----
91

query I rowsort
SELECT ALL 37 + - 28 + - - 97 col0
----
106

query I rowsort
SELECT ALL - + 61 + - + 61 AS col1
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT ALL - COALESCE ( + 82, 73 * - + COUNT( * ) ) + 97
----
15

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL - COALESCE ( + 82, 73 * - + COUNT ( * ) ) + 97
----
15

query III rowsort
SELECT - - 37, 48 AS col2, - 49 AS col0
----
37
48
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3063
SELECT - - CAST( - 35 AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-3063
SELECT - - CAST ( - 35 AS INTEGER )
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-3064
SELECT + 87 + - - 44 DIV 14
----
90

skipif mysql # not compatible
query I rowsort label-3064
SELECT + 87 + - - 44 / 14
----
90

query I rowsort
SELECT + 56 * + - 92 AS col1
----
-5152

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

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

query I rowsort
SELECT + 14 * + 23
----
322

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT DISTINCT CASE WHEN ( MAX( DISTINCT + 27 ) ) <= NULL THEN NULL ELSE 43 END
----
43

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT CASE WHEN ( MAX ( DISTINCT + 27 ) ) <= NULL THEN NULL ELSE 43 END
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT DISTINCT - 96 * - - 45 + - COUNT( * ) AS col0
----
-4321

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT - 96 * - - 45 + - COUNT ( * ) AS col0
----
-4321

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT ALL - 37 - - - 69 DIV + - 41 col1
----
-36

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL - 37 - - - 69 / + - 41 col1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3071
SELECT ALL - MAX( ALL - 42 ) DIV + 34 + 27, 35 col1
----
28
35

skipif mysql # not compatible
query II rowsort label-3071
SELECT ALL - MAX ( ALL - 42 ) / + 34 + 27, 35 col1
----
28
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT 1 / + CASE COUNT( + 20 ) WHEN ( + - 96 ) THEN + - 83 WHEN + ( - AVG ( + 2 ) ) THEN NULL WHEN + - ( 19 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT 1 / + CASE COUNT ( + 20 ) WHEN ( + - 96 ) THEN + - 83 WHEN + ( - AVG ( + 2 ) ) THEN NULL WHEN + - ( 19 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 10 * + + 27 * + - 71
----
-19170

query I rowsort
SELECT 20 - + 57 * + ( 94 ) AS col2
----
-5338

query I rowsort
SELECT ( - 70 ) + - + 81 AS col2
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT 29 - COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3076
SELECT 29 - COUNT ( * ) AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3077
SELECT CAST( NULL AS SIGNED ) * 37 AS col0, - 40
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-3077
SELECT CAST ( NULL AS INTEGER ) * 37 AS col0, - 40
----
NULL
-40

query II rowsort
SELECT 35 * - 48, - 6 AS col1
----
-1680
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3079
SELECT 63 / 6 + 4 + - COUNT( * ) + + CASE 7 WHEN - + COUNT( * ) THEN - 81 + + - ( 82 ) ELSE NULLIF ( + 94, 74 ) * + 94 - + MIN( ALL - 69 ) + COUNT( * ) END * 95 * + CASE ( + ( - MIN( 68 ) ) ) WHEN 81 + 37 THEN - CAST( + ( CAST( NULL AS SIGNED ) ) AS SIGNED ) * COALESCE ( 89, 87, - 30 ) + 17 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3079
SELECT 63 / 6 + 4 + - COUNT ( * ) + + CASE 7 WHEN - + COUNT ( * ) THEN - 81 + + - ( 82 ) ELSE NULLIF ( + 94, 74 ) * + 94 - + MIN ( ALL - 69 ) + COUNT ( * ) END * 95 * + CASE ( + ( - MIN ( 68 ) ) ) WHEN 81 + 37 THEN - CAST ( + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) * COALESCE ( 89, 87, - 30 ) + 17 ELSE NULL END
----
NULL

query I rowsort
SELECT 19 + 45
----
64

query II rowsort
SELECT 15 + 90, 21 AS col2
----
105
21

query I rowsort
SELECT 25 + 99 + - - 77
----
201

onlyif mysql # DIV for integer division: 
query I rowsort label-3083
SELECT DISTINCT - + 1 DIV - 93 * 38
----
0

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT - + 1 / - 93 * 38
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3085
SELECT + NULLIF ( - 82, 87 ) * + 99 * - COUNT( * ) + - ( - 22 ) AS col2, + 15 AS col1
----
8140
15

skipif mysql # not compatible
query II rowsort label-3085
SELECT + NULLIF ( - 82, 87 ) * + 99 * - COUNT ( * ) + - ( - 22 ) AS col2, + 15 AS col1
----
8140
15

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3087
SELECT ALL - CASE + + 30 WHEN - 59 THEN NULL WHEN + 84 DIV + + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) THEN 58 + + - 21 * + ( + + COUNT( * ) ) ELSE COALESCE ( - 67, + CASE + 46 WHEN - 82 + 46 THEN NULL WHEN 90 + - 85 * 7 THEN NULL ELSE 39 * 0 + - ( 16 + 47 ) END, COALESCE ( - ( + 67 ), 64 ) * 31 ) END DIV + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL - CASE + + 30 WHEN - 59 THEN NULL WHEN + 84 / + + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN 58 + + - 21 * + ( + + COUNT ( * ) ) ELSE COALESCE ( - 67, + CASE + 46 WHEN - 82 + 46 THEN NULL WHEN 90 + - 85 * 7 THEN NULL ELSE 39 * 0 + - ( 16 + 47 ) END, COALESCE ( - ( + 67 ), 64 ) * 31 ) END / + COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-3088
SELECT DISTINCT COUNT( * ) + + 70, 29 * 71 AS col2
----
71
2059

skipif mysql # not compatible
query II rowsort label-3088
SELECT DISTINCT COUNT ( * ) + + 70, 29 * 71 AS col2
----
71
2059

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3089
SELECT ALL + COUNT( * ) * + + NULLIF ( 50, - SUM( + 74 ) * - SUM( 69 ) ) + + - CAST( NULL AS SIGNED ) + + CAST( AVG ( 99 ) AS SIGNED ) / + MIN( - 16 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL + COUNT ( * ) * + + NULLIF ( 50, - SUM ( + 74 ) * - SUM ( 69 ) ) + + - CAST ( NULL AS INTEGER ) + + CAST ( AVG ( 99 ) AS INTEGER ) / + MIN ( - 16 ) AS col1
----
NULL

query I rowsort
SELECT + 18 + - 37 * - 22 + 66 * + 37
----
3274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3091
SELECT + - CASE + 10 WHEN + 23 + + 79 + + CASE - 29 WHEN + - MIN( DISTINCT - 7 ) * + COUNT( * ) * + + CAST( 26 AS SIGNED ) + - 86 THEN NULL WHEN - 45 THEN - NULLIF ( 15, 14 ) ELSE NULL END / + + 18 + COUNT( * ) THEN - CASE CAST( + 37 AS SIGNED ) WHEN + 61 * + MIN( ALL 22 ) + 96 THEN 48 * 50 WHEN 96 THEN - 47 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT + - CASE + 10 WHEN + 23 + + 79 + + CASE - 29 WHEN + - MIN ( DISTINCT - 7 ) * + COUNT ( * ) * + + CAST ( 26 AS INTEGER ) + - 86 THEN NULL WHEN - 45 THEN - NULLIF ( 15, 14 ) ELSE NULL END / + + 18 + COUNT ( * ) THEN - CASE CAST ( + 37 AS INTEGER ) WHEN + 61 * + MIN ( ALL 22 ) + 96 THEN 48 * 50 WHEN 96 THEN - 47 END END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3093
SELECT 83 + + 83, + CAST( NULL AS SIGNED ) AS col0
----
166
NULL

skipif mysql # not compatible
query II rowsort label-3093
SELECT 83 + + 83, + CAST ( NULL AS INTEGER ) AS col0
----
166
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3094
SELECT DISTINCT - 2 - 57 + - COALESCE ( - 17, + + 95, 57 - - 49 ) * CAST( NULL AS SIGNED ) * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT - 2 - 57 + - COALESCE ( - 17, + + 95, 57 - - 49 ) * CAST ( NULL AS INTEGER ) * + 39
----
NULL

query II rowsort
SELECT ALL - + 46 - + + 28, 88 AS col0
----
-74
88

onlyif mysql # aggregate syntax: 
query II rowsort label-3096
SELECT DISTINCT - ( + COUNT( * ) ) AS col0, ( + 94 )
----
-1
94

skipif mysql # not compatible
query II rowsort label-3096
SELECT DISTINCT - ( + COUNT ( * ) ) AS col0, ( + 94 )
----
-1
94

query I rowsort
SELECT 62 + + 2 AS col2
----
64

query I rowsort
SELECT ALL + CASE + 73 WHEN + - 62 THEN - 7 ELSE NULL END AS col0
----
NULL

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

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

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

query I rowsort
SELECT ALL 38 * - - NULLIF ( - - 30, - 72 ) AS col1
----
1140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3102
SELECT ALL 2 * + + ( + CAST( ( 82 ) AS SIGNED ) ) AS col2
----
164

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL 2 * + + ( + CAST ( ( 82 ) AS INTEGER ) ) AS col2
----
164

onlyif mysql # aggregate syntax: 
query II rowsort label-3103
SELECT 81 AS col0, - MIN( DISTINCT + + CASE + 78 WHEN - 30 THEN - - ( 42 ) / 62 + - ( 80 ) ELSE NULL END ) * + + 36 AS col0
----
81
NULL

skipif mysql # not compatible
query II rowsort label-3103
SELECT 81 AS col0, - MIN ( DISTINCT + + CASE + 78 WHEN - 30 THEN - - ( 42 ) / 62 + - ( 80 ) ELSE NULL END ) * + + 36 AS col0
----
81
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3106
SELECT - ( 78 ) DIV 25 DIV - CASE 71 WHEN + 50 THEN NULL WHEN - - COUNT( * ) THEN - - ( - 27 ) ELSE + 29 END * - 70 - + COUNT( * ) - - 61 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-3106
SELECT - ( 78 ) / 25 / - CASE 71 WHEN + 50 THEN NULL WHEN - - COUNT ( * ) THEN - - ( - 27 ) ELSE + 29 END * - 70 - + COUNT ( * ) - - 61 AS col0
----
60

query I rowsort
SELECT + 37 - - + 11
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3108
SELECT + 66 DIV - 88 DIV - COUNT( * ) + - 91 * + 57 + - 27 col1
----
-5214

skipif mysql # not compatible
query I rowsort label-3108
SELECT + 66 / - 88 / - COUNT ( * ) + - 91 * + 57 + - 27 col1
----
-5214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3109
SELECT ALL COUNT( DISTINCT + + CAST( + 44 AS SIGNED ) ) * - CAST( - - 11 AS SIGNED ) + MAX( + 34 ) - ( + 14 ) + + ( - 15 )
----
-6

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL COUNT ( DISTINCT + + CAST ( + 44 AS INTEGER ) ) * - CAST ( - - 11 AS INTEGER ) + MAX ( + 34 ) - ( + 14 ) + + ( - 15 )
----
-6

query I rowsort
SELECT DISTINCT + 21 * - 13 + - - 99 + - 14 * + 5 + + 76 * - + 18
----
-1612

query I rowsort
SELECT ALL - 83 * - + 68 AS col0
----
5644

query I rowsort
SELECT + + 22 * + 47 * + 46 + 31 - - 17
----
47612

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT DISTINCT 54 * + - ( 22 ) * - COUNT( * )
----
1188

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT 54 * + - ( 22 ) * - COUNT ( * )
----
1188

query II rowsort
SELECT DISTINCT + + 68 AS col1, - 68 + 68 AS col1
----
68
0

query I rowsort
SELECT DISTINCT + NULLIF ( + 65, 75 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT ALL COALESCE ( MIN( + 63 ), + 75 ) * - 51 - + 38
----
-3251

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL COALESCE ( MIN ( + 63 ), + 75 ) * - 51 - + 38
----
-3251

onlyif mysql # aggregate syntax: 
query II rowsort label-3117
SELECT - - 93 * - COUNT( * ) * + 45 + - 72 + - COUNT( * ) * - - ( 58 ) * - 34 AS col1, 87
----
-2285
87

skipif mysql # not compatible
query II rowsort label-3117
SELECT - - 93 * - COUNT ( * ) * + 45 + - 72 + - COUNT ( * ) * - - ( 58 ) * - 34 AS col1, 87
----
-2285
87

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3119
SELECT - COALESCE ( 41, + 60 - + 60 ) * 12 + + SUM( ALL - 55 ) + + 63 * - 58 + - CASE 21 WHEN - 67 + CAST( NULL AS SIGNED ) THEN NULL ELSE + 41 END
----
-4242

skipif mysql # not compatible
query I rowsort label-3119
SELECT - COALESCE ( 41, + 60 - + 60 ) * 12 + + SUM ( ALL - 55 ) + + 63 * - 58 + - CASE 21 WHEN - 67 + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 41 END
----
-4242

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT - COUNT( * ) * - 65 col1
----
65

skipif mysql # not compatible
query I rowsort label-3120
SELECT - COUNT ( * ) * - 65 col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT + CASE + ( - - 32 ) WHEN - 25 - - + 61 / - 6 - - 73 THEN + 39 + + - COUNT( * ) + + 86 ELSE NULL END * COUNT( * ) / + 99 * + 27 / 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3121
SELECT + CASE + ( - - 32 ) WHEN - 25 - - + 61 / - 6 - - 73 THEN + 39 + + - COUNT ( * ) + + 86 ELSE NULL END * COUNT ( * ) / + 99 * + 27 / 61
----
NULL

query II rowsort
SELECT - 95 AS col0, - 72 AS col1
----
-95
-72

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

skipif mysql # not compatible
query I rowsort label-3123
SELECT - NULLIF ( - COUNT ( * ), + 41 )
----
1

query I rowsort
SELECT ALL + CASE - + 34 WHEN + + 76 + 52 THEN + 47 * - 22 / - 73 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3125
SELECT - CAST( - CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) AS col0, 9 * 3 + 79 + + - COUNT( ALL + 76 ) * - COUNT( * )
----
1
107

skipif mysql # not compatible
query II rowsort label-3125
SELECT - CAST ( - CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col0, 9 * 3 + 79 + + - COUNT ( ALL + 76 ) * - COUNT ( * )
----
1
107

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT ALL + 7 * - COUNT( * ) + - 37 + 91 + 13 * + - 6 - - 95 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL + 7 * - COUNT ( * ) + - 37 + 91 + 13 * + - 6 - - 95 AS col0
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-3128
SELECT ALL - - 18 * 78 DIV - 32 AS col1, + 15
----
-43
15

skipif mysql # not compatible
query II rowsort label-3128
SELECT ALL - - 18 * 78 / - 32 AS col1, + 15
----
-43
15

query I rowsort
SELECT - 32 * - 87
----
2784

query I rowsort
SELECT ALL + 46 * 5 AS col1
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT - 71 + - - SUM( - - 7 ) + - 14 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-3131
SELECT - 71 + - - SUM ( - - 7 ) + - 14 AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3132
SELECT - 46 * + + 77 * 36 AS col1, - CAST( 30 AS SIGNED ) AS col2
----
-127512
-30

skipif mysql # not compatible
query II rowsort label-3132
SELECT - 46 * + + 77 * 36 AS col1, - CAST ( 30 AS INTEGER ) AS col2
----
-127512
-30

query I rowsort
SELECT - 85 + - + 58 + - 10 + - NULLIF ( 22, + 49 * - + 20 ) AS col0
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL - SUM( - 5 ) * COALESCE ( + - 34, - 31 * - 44 )
----
-170

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL - SUM ( - 5 ) * COALESCE ( + - 34, - 31 * - 44 )
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT - ( + COUNT( DISTINCT + - 98 ) ) + + COALESCE ( + CASE 16 WHEN - 41 THEN NULL ELSE + NULLIF ( 78, + + 17 * - - 19 ) - - MIN( ( + - ( + 26 ) ) ) - - 93 + - 65 END, 3 * + 41 * - 66, + 7 )
----
79

skipif mysql # not compatible
query I rowsort label-3135
SELECT - ( + COUNT ( DISTINCT + - 98 ) ) + + COALESCE ( + CASE 16 WHEN - 41 THEN NULL ELSE + NULLIF ( 78, + + 17 * - - 19 ) - - MIN ( ( + - ( + 26 ) ) ) - - 93 + - 65 END, 3 * + 41 * - 66, + 7 )
----
79

query I rowsort
SELECT + 9 * + - 57 AS col2
----
-513

query I rowsort
SELECT - 21 - 17 AS col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3138
SELECT ALL - 90 * + NULLIF ( + - 80, 93 ) DIV - + COUNT( * )
----
-7200

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL - 90 * + NULLIF ( + - 80, 93 ) / - + COUNT ( * )
----
-7200

query I rowsort
SELECT ALL ( - - 90 ) + + 67 AS col2
----
157

query I rowsort
SELECT - 97 + 30 * - 12
----
-457

query I rowsort
SELECT DISTINCT ( 28 ) col1
----
28

query I rowsort
SELECT DISTINCT + 18 + + 74 AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3143
SELECT ALL 85 * MIN( CAST( 97 AS SIGNED ) ) AS col0
----
8245

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL 85 * MIN ( CAST ( 97 AS INTEGER ) ) AS col0
----
8245

query I rowsort
SELECT DISTINCT 2 + - - 9
----
11

query I rowsort
SELECT - 61 + + - 1
----
-62

query I rowsort
SELECT - CASE + + 50 WHEN + - 36 THEN - + 81 - + + 53 * - - 97 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 37 + + 3 col0
----
-34

query I rowsort
SELECT + 43 - - 13 - + - 98
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-3149
SELECT ALL NULLIF ( - - 82, - 21 ) * 35 + - - 39 + - + 74 DIV - + 76 + - 84 AS col2
----
2825

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL NULLIF ( - - 82, - 21 ) * 35 + - - 39 + - + 74 / - + 76 + - 84 AS col2
----
2825

query II rowsort
SELECT - 13 + - + 50, 88 + + - 86 AS col2
----
-63
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3151
SELECT + 19 + 11 - + NULLIF ( - + 60, + 61 - + 49 * + + 74 * + 82 * + + COUNT( * ) ) + - ( - COUNT( * ) ) DIV - COUNT( * ) - - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-3151
SELECT + 19 + 11 - + NULLIF ( - + 60, + 61 - + 49 * + + 74 * + 82 * + + COUNT ( * ) ) + - ( - COUNT ( * ) ) / - COUNT ( * ) - - COUNT ( * )
----
90

query I rowsort
SELECT DISTINCT 84 * 59 * + 24
----
118944

query I rowsort
SELECT ALL + 28 * + 9
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT + 83 + + COALESCE ( + 31, - 58 + + - 58 ) + COUNT( * ) AS col0
----
115

skipif mysql # not compatible
query I rowsort label-3154
SELECT + 83 + + COALESCE ( + 31, - 58 + + - 58 ) + COUNT ( * ) AS col0
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3155
SELECT + ( - 87 ) * - 48 + 35 AS col0, - CAST( - 31 AS SIGNED ) AS col1
----
4211
31

skipif mysql # not compatible
query II rowsort label-3155
SELECT + ( - 87 ) * - 48 + 35 AS col0, - CAST ( - 31 AS INTEGER ) AS col1
----
4211
31

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3159
SELECT + 31 * + + 49 AS col2, 36 * - - 94 - - COUNT( * ) AS col1
----
1519
3385

skipif mysql # not compatible
query II rowsort label-3159
SELECT + 31 * + + 49 AS col2, 36 * - - 94 - - COUNT ( * ) AS col1
----
1519
3385

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT + ( - - ( - - MAX( ALL - 50 ) ) ) * + 32 AS col1
----
-1600

skipif mysql # not compatible
query I rowsort label-3160
SELECT + ( - - ( - - MAX ( ALL - 50 ) ) ) * + 32 AS col1
----
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT + + SUM( ALL - 60 ) + + 4
----
-56

skipif mysql # not compatible
query I rowsort label-3161
SELECT + + SUM ( ALL - 60 ) + + 4
----
-56

query I rowsort
SELECT + - 96 + - - 63 * - 98
----
-6270

query I rowsort
SELECT + + COALESCE ( - + 49, + 25 * CASE + - 17 WHEN 28 THEN + + 77 * - - 95 WHEN - - ( 75 ) THEN NULL WHEN + - 16 * 97 THEN NULL ELSE NULL END ) * - - 8 AS col2
----
-392

query I rowsort
SELECT ALL 6 * 56 * 26
----
8736

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT ALL + 61 * - 41 * + 27 * + ( + COUNT( * ) ) * 91 - - 14 * ( + ( + 59 ) ) AS col0
----
-6144131

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL + 61 * - 41 * + 27 * + ( + COUNT ( * ) ) * 91 - - 14 * ( + ( + 59 ) ) AS col0
----
-6144131

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT - COUNT( * ) + + - 5 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-3167
SELECT - COUNT ( * ) + + - 5 AS col1
----
-6

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3169
SELECT - - 64 + - ( 13 ) DIV COUNT( * ) * - + ( - - 36 ) DIV - 12 - + COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-3169
SELECT - - 64 + - ( 13 ) / COUNT ( * ) * - + ( - - 36 ) / - 12 - + COUNT ( * ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT - COUNT( + 78 ) * - SUM( + 58 ) + - ( + 36 ) * + 49 AS col2
----
-1706

skipif mysql # not compatible
query I rowsort label-3170
SELECT - COUNT ( + 78 ) * - SUM ( + 58 ) + - ( + 36 ) * + 49 AS col2
----
-1706

onlyif mysql # aggregate syntax: 
query II rowsort label-3171
SELECT CASE - 98 WHEN COUNT( * ) THEN NULL ELSE + ( + + 4 ) END AS col1, - 18
----
4
-18

skipif mysql # not compatible
query II rowsort label-3171
SELECT CASE - 98 WHEN COUNT ( * ) THEN NULL ELSE + ( + + 4 ) END AS col1, - 18
----
4
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3172
SELECT DISTINCT + MAX( - 17 ) * 53 * 25 * + + NULLIF ( 67, COALESCE ( - 20, + 31, + 38 ) ) + + COALESCE ( - CAST( NULL AS SIGNED ), + 43, + 30 ) + + NULLIF ( - 89, + 44 ) + + + 2 col2
----
-1509219

skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT + MAX ( - 17 ) * 53 * 25 * + + NULLIF ( 67, COALESCE ( - 20, + 31, + 38 ) ) + + COALESCE ( - CAST ( NULL AS INTEGER ), + 43, + 30 ) + + NULLIF ( - 89, + 44 ) + + + 2 col2
----
-1509219

query I rowsort
SELECT DISTINCT + CASE - + 65 WHEN 66 * - 84 + - 61 THEN 85 END * + - 98 * - 62 + 93 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT 31 * 80 + - COUNT( * ) * + 1 col2
----
2479

skipif mysql # not compatible
query I rowsort label-3174
SELECT 31 * 80 + - COUNT ( * ) * + 1 col2
----
2479

query I rowsort
SELECT ALL + ( - - 45 ) * 18 AS col0
----
810

onlyif mysql # DIV for integer division: 
query I rowsort label-3176
SELECT - 73 DIV - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3176
SELECT - 73 / - 84 AS col2
----
0

query I rowsort
SELECT ALL + NULLIF ( - 97, - 38 ) + - 15
----
-112

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3179
SELECT DISTINCT + 86 + + 37 + - MAX( DISTINCT - + 67 ) * + + 7 AS col2, - 30
----
592
-30

skipif mysql # not compatible
query II rowsort label-3179
SELECT DISTINCT + 86 + + 37 + - MAX ( DISTINCT - + 67 ) * + + 7 AS col2, - 30
----
592
-30

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

skipif mysql # not compatible
query I rowsort label-3180
SELECT COUNT ( * ) * - - 23
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3181
SELECT 19 DIV - 11
----
-1

skipif mysql # not compatible
query I rowsort label-3181
SELECT 19 / - 11
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3182
SELECT MIN( 41 ) + 26 AS col1, 2
----
67
2

skipif mysql # not compatible
query II rowsort label-3182
SELECT MIN ( 41 ) + 26 AS col1, 2
----
67
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3183
SELECT ALL - 41 * - - MIN( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL - 41 * - - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT DISTINCT 99 col0, 38 * - 5 * + 87
----
99
-16530

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

skipif mysql # not compatible
query II rowsort label-3185
SELECT - 52 AS col0, COUNT ( * ) col2
----
-52
1

query I rowsort
SELECT ALL - 69 - 15 + + + 75 AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3187
SELECT DISTINCT + ( + - CASE + 22 WHEN - ( - + 8 ) THEN NULL ELSE 6 + 93 - - CASE + CAST( + NULLIF ( + MAX( ALL - 65 ), 24 ) AS SIGNED ) WHEN 20 THEN - 65 END + + CASE + 44 WHEN + 80 - 34 THEN NULL ELSE + + 86 / - 54 END END ) * - AVG ( + 33 * + 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT + ( + - CASE + 22 WHEN - ( - + 8 ) THEN NULL ELSE 6 + 93 - - CASE + CAST ( + NULLIF ( + MAX ( ALL - 65 ), 24 ) AS INTEGER ) WHEN 20 THEN - 65 END + + CASE + 44 WHEN + 80 - 34 THEN NULL ELSE + + 86 / - 54 END END ) * - AVG ( + 33 * + 51 )
----
NULL

query I rowsort
SELECT 54 * + - 40 AS col2
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT ALL - ( + ( + + 14 ) ) - + 4 * - CASE 46 WHEN 70 THEN NULL WHEN + 33 THEN + 96 + - MIN( - 33 ) WHEN + 88 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL - ( + ( + + 14 ) ) - + 4 * - CASE 46 WHEN 70 THEN NULL WHEN + 33 THEN + 96 + - MIN ( - 33 ) WHEN + 88 THEN NULL END col1
----
NULL

query II rowsort
SELECT 49, - 3 * 55 AS col0
----
49
-165

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

skipif mysql # not compatible
query I rowsort label-3191
SELECT + 24 * + MAX ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3192
SELECT MAX( + ( 44 ) ) + - + 15 * MIN( 6 ) * - - ( - ( - - MAX( DISTINCT + - 9 ) ) ) - + 79 + 3 * + 42 col0, - MIN( DISTINCT + 82 ) + + 49 * - + 28 AS col2
----
-719
-1454

skipif mysql # not compatible
query II rowsort label-3192
SELECT MAX ( + ( 44 ) ) + - + 15 * MIN ( 6 ) * - - ( - ( - - MAX ( DISTINCT + - 9 ) ) ) - + 79 + 3 * + 42 col0, - MIN ( DISTINCT + 82 ) + + 49 * - + 28 AS col2
----
-719
-1454

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3193
SELECT 37 / + 49 * - 14 * + + 36 / CAST( NULL AS SIGNED ) + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3193
SELECT 37 / + 49 * - 14 * + + 36 / CAST ( NULL AS INTEGER ) + 59 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL + 79 + + + 0
----
79

query I rowsort
SELECT ALL 61 * 65
----
3965

query I rowsort
SELECT + CASE - + ( - 11 ) WHEN - 94 THEN 88 / + 60 * - 27 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3198
SELECT ALL + CAST( NULL AS SIGNED ) + + - ( + NULLIF ( - 85, - + CAST( NULL AS SIGNED ) + + 49 - + 53 * + - 73 * ( - 41 ) ) ) / - ( - - 53 ) * - - ( + 83 ) + 24 - - + 22 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL + CAST ( NULL AS INTEGER ) + + - ( + NULLIF ( - 85, - + CAST ( NULL AS INTEGER ) + + 49 - + 53 * + - 73 * ( - 41 ) ) ) / - ( - - 53 ) * - - ( + 83 ) + 24 - - + 22 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3199
SELECT + 53 DIV + MAX( DISTINCT + 67 ) * + COUNT( * ) + + COUNT( * ) + + 8 + + + COUNT( * ) * + 40 + + 64 - ( 90 )
----
23

skipif mysql # not compatible
query I rowsort label-3199
SELECT + 53 / + MAX ( DISTINCT + 67 ) * + COUNT ( * ) + + COUNT ( * ) + + 8 + + + COUNT ( * ) * + 40 + + 64 - ( 90 )
----
23

query I rowsort
SELECT - 23 * + 86 AS col2
----
-1978

query II rowsort
SELECT ALL - + 97 AS col2, 37 AS col0
----
-97
37

query I rowsort
SELECT - 37 * - 68 AS col2
----
2516

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT ALL 20 + + + ( - - COUNT( * ) ) * + 31 * - 49
----
-1499

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL 20 + + + ( - - COUNT ( * ) ) * + 31 * - 49
----
-1499

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT DISTINCT + 27 * - - COUNT( * ) * 47 * - 27
----
-34263

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT + 27 * - - COUNT ( * ) * 47 * - 27
----
-34263

onlyif mysql # aggregate syntax: 
query II rowsort label-3206
SELECT ALL 80 + 93 - COUNT( * ) + - 9 + - - 56 * 86 AS col2, - 66
----
4979
-66

skipif mysql # not compatible
query II rowsort label-3206
SELECT ALL 80 + 93 - COUNT ( * ) + - 9 + - - 56 * 86 AS col2, - 66
----
4979
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3207
SELECT DISTINCT NULLIF ( + CASE + 45 WHEN ( + 78 ) THEN 30 * 45 * - - CASE - 59 WHEN - + 39 THEN NULL ELSE + 29 * - COUNT( * ) + - - 0 - + + COUNT( * ) + ( - 40 ) END DIV 21 - - ( + 33 ) * - NULLIF ( + 98, COUNT( * ) ) DIV + COUNT( * ) + 92 * - COUNT( * ) ELSE 87 END, 47 ) * 82 AS col0
----
7134

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT NULLIF ( + CASE + 45 WHEN ( + 78 ) THEN 30 * 45 * - - CASE - 59 WHEN - + 39 THEN NULL ELSE + 29 * - COUNT ( * ) + - - 0 - + + COUNT ( * ) + ( - 40 ) END / 21 - - ( + 33 ) * - NULLIF ( + 98, COUNT ( * ) ) / + COUNT ( * ) + 92 * - COUNT ( * ) ELSE 87 END, 47 ) * 82 AS col0
----
7134

onlyif mysql # aggregate syntax: 
query II rowsort label-3208
SELECT 97 AS col2, - COUNT( * ) * 12
----
97
-12

skipif mysql # not compatible
query II rowsort label-3208
SELECT 97 AS col2, - COUNT ( * ) * 12
----
97
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3209
SELECT COALESCE ( 44, 56 + - 32 + + CAST( NULL AS SIGNED ) ) + + - 35
----
9

skipif mysql # not compatible
query I rowsort label-3209
SELECT COALESCE ( 44, 56 + - 32 + + CAST ( NULL AS INTEGER ) ) + + - 35
----
9

query II rowsort
SELECT 45 * + 22 AS col2, - 28 AS col0
----
990
-28

query I rowsort
SELECT DISTINCT ( CASE - 12 WHEN 96 THEN - - 6 + + AVG ( ALL - 86 ) ELSE NULL END ) * - 14
----
NULL

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

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

query II rowsort
SELECT ALL 91 AS col2, + 18
----
91
18

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

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

query I rowsort
SELECT 70 * + 91 AS col0
----
6370

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT NULLIF ( + MAX( + 99 ), COUNT( * ) ) + MIN( + - 77 ) + - 42 * - 66 * - COUNT( * ) AS col1
----
-2750

skipif mysql # not compatible
query I rowsort label-3216
SELECT NULLIF ( + MAX ( + 99 ), COUNT ( * ) ) + MIN ( + - 77 ) + - 42 * - 66 * - COUNT ( * ) AS col1
----
-2750

query I rowsort
SELECT 54 + 19
----
73

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

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

query I rowsort
SELECT 63 + - 83 * + 73 + - 61 AS col1
----
-6057

onlyif mysql # DIV for integer division: 
query I rowsort label-3220
SELECT DISTINCT - 83 DIV + 56 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT - 83 / + 56 AS col2
----
-1

query I rowsort
SELECT 73 + - 58 + + - NULLIF ( ( + 49 ), + - 77 ) AS col2
----
-34

query I rowsort
SELECT 44 + + + ( 75 ) - - 21 - - 32 AS col2
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-3223
SELECT 79 DIV - 74
----
-1

skipif mysql # not compatible
query I rowsort label-3223
SELECT 79 / - 74
----
-1

query I rowsort
SELECT ALL - 65 * 96
----
-6240

query I rowsort
SELECT + 13 + 6 + - - 24
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT - COUNT( * ) * - + 77 * 17 col2
----
1309

skipif mysql # not compatible
query I rowsort label-3226
SELECT - COUNT ( * ) * - + 77 * 17 col2
----
1309

query I rowsort
SELECT DISTINCT + - 87 * - 29 AS col1
----
2523

query II rowsort
SELECT ALL - - 79, 33 AS col1
----
79
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT ALL - + COUNT( 72 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL - + COUNT ( 72 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT ( - MAX( DISTINCT 43 ) ) * + 64 * - 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3231
SELECT ( - MAX ( DISTINCT 43 ) ) * + 64 * - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT DISTINCT 95 * 77 + + COUNT( * ) - + - 88 + 92 AS col1
----
7496

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT 95 * 77 + + COUNT ( * ) - + - 88 + 92 AS col1
----
7496

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

skipif mysql # not compatible
query I rowsort label-3233
SELECT + NULLIF ( + COUNT ( * ), + 48 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3234
SELECT + MAX( DISTINCT + 11 ) * + 99 + COUNT( * ) AS col0, 86 AS col0
----
1090
86

skipif mysql # not compatible
query II rowsort label-3234
SELECT + MAX ( DISTINCT + 11 ) * + 99 + COUNT ( * ) AS col0, 86 AS col0
----
1090
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT ALL - 65 * + COALESCE ( - 21, COUNT( * ) ) * + - 1 + + 36 + - 32 AS col2
----
-1361

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL - 65 * + COALESCE ( - 21, COUNT ( * ) ) * + - 1 + + 36 + - 32 AS col2
----
-1361

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3236
SELECT DISTINCT - 3 col0, COALESCE ( - CAST( NULL AS SIGNED ), - + 77, - 19 )
----
-3
-77

skipif mysql # not compatible
query II rowsort label-3236
SELECT DISTINCT - 3 col0, COALESCE ( - CAST ( NULL AS INTEGER ), - + 77, - 19 )
----
-3
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3237
SELECT + - 37 DIV 14 + + 23
----
21

skipif mysql # not compatible
query I rowsort label-3237
SELECT + - 37 / 14 + + 23
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3238
SELECT + COUNT( * ), + 92 * + 10 AS col1
----
1
920

skipif mysql # not compatible
query II rowsort label-3238
SELECT + COUNT ( * ), + 92 * + 10 AS col1
----
1
920

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3239
SELECT - 38 + CAST( NULL AS DECIMAL ), - ( 21 ) AS col0
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-3239
SELECT - 38 + CAST ( NULL AS REAL ), - ( 21 ) AS col0
----
NULL
-21

query I rowsort
SELECT - ( + - ( - 8 ) ) + + ( + 75 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT ALL - + 84 * + + 13 + + + COALESCE ( 32, - COUNT( * ) * - 13 )
----
-1060

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL - + 84 * + + 13 + + + COALESCE ( 32, - COUNT ( * ) * - 13 )
----
-1060

query II rowsort
SELECT ALL - - 95, - 98 * - 13 * + 43 - 63 * - 54 AS col1
----
95
58184

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

skipif mysql # not compatible
query II rowsort label-3243
SELECT ALL - COUNT ( * ), COUNT ( * ) col0
----
-1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3244
SELECT - ( 69 ) * + 30 + - - 3 * + - 19 * COALESCE ( - + 43, - 80 - + 91 DIV + - 46 ) AS col1
----
381

skipif mysql # not compatible
query I rowsort label-3244
SELECT - ( 69 ) * + 30 + - - 3 * + - 19 * COALESCE ( - + 43, - 80 - + 91 / + - 46 ) AS col1
----
381

query I rowsort
SELECT - 78 * + 46 AS col2
----
-3588

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL 86 + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL 86 + COUNT ( * )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3247
SELECT DISTINCT + CAST( - - SUM( - 16 ) AS SIGNED ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT + CAST ( - - SUM ( - 16 ) AS INTEGER ) AS col2
----
-16

query I rowsort
SELECT + 68 + - 60 AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3249
SELECT + 20 + + 46 + + 52 + + 32 / - AVG ( ALL 60 ) + + 85 * + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3249
SELECT + 20 + + 46 + + 52 + + 32 / - AVG ( ALL 60 ) + + 85 * + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT - MIN( - NULLIF ( + 56, - - 43 ) )
----
56

skipif mysql # not compatible
query I rowsort label-3250
SELECT - MIN ( - NULLIF ( + 56, - - 43 ) )
----
56

query I rowsort
SELECT DISTINCT 20 * + 28
----
560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL - 70 * COUNT( * ) * - - COUNT( * ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL - 70 * COUNT ( * ) * - - COUNT ( * ) AS col2
----
-70

query I rowsort
SELECT + 78 * 96
----
7488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3255
SELECT DISTINCT 84 * - ( 67 ) AS col0, CASE - 80 WHEN - - COUNT( * ) - 43 + + CAST( + CASE + - 90 WHEN 32 THEN NULL ELSE + 50 END AS SIGNED ) THEN NULL WHEN + COUNT( CAST( NULL AS SIGNED ) ) THEN - - 14 / + - ( 37 ) ELSE NULL END + - 38 + 4 col2
----
-5628
NULL

skipif mysql # not compatible
query II rowsort label-3255
SELECT DISTINCT 84 * - ( 67 ) AS col0, CASE - 80 WHEN - - COUNT ( * ) - 43 + + CAST ( + CASE + - 90 WHEN 32 THEN NULL ELSE + 50 END AS INTEGER ) THEN NULL WHEN + COUNT ( CAST ( NULL AS INTEGER ) ) THEN - - 14 / + - ( 37 ) ELSE NULL END + - 38 + 4 col2
----
-5628
NULL

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

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

query I rowsort
SELECT ALL 19 * - - 22
----
418

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT - MAX( ALL 65 ) + 74
----
9

skipif mysql # not compatible
query I rowsort label-3259
SELECT - MAX ( ALL 65 ) + 74
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3260
SELECT ALL MIN( 8 ) + - 31 - - CAST( 71 AS SIGNED ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL MIN ( 8 ) + - 31 - - CAST ( 71 AS INTEGER ) AS col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3261
SELECT ALL - 23 DIV + 36 * + 17 + 34 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL - 23 / + 36 * + 17 + 34 AS col1
----
34

query I rowsort
SELECT ALL + 65 + + + 77 + - 33 + + 17 AS col2
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3263
SELECT - - 85 * 7 * - 17 + - + ( 75 ) * + - CAST( NULL AS SIGNED ) - + 78 + + 7 - - 76 / - + 39 + 85 * - + 42 AS col2, + ( 26 ) - - + 23
----
NULL
49

skipif mysql # not compatible
query II rowsort label-3263
SELECT - - 85 * 7 * - 17 + - + ( 75 ) * + - CAST ( NULL AS INTEGER ) - + 78 + + 7 - - 76 / - + 39 + 85 * - + 42 AS col2, + ( 26 ) - - + 23
----
NULL
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT NULLIF ( 79, COUNT( * ) )
----
79

skipif mysql # not compatible
query I rowsort label-3264
SELECT NULLIF ( 79, COUNT ( * ) )
----
79

query I rowsort
SELECT ALL COALESCE ( + 96, - + 15 ) + - + 83 * 0 * - - 77 AS col2
----
96

query I rowsort
SELECT + 22 * + + 39
----
858

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT - 96 * MIN( + - 26 ) * - 20 - - - 92 + COUNT( * )
----
-50011

skipif mysql # not compatible
query I rowsort label-3267
SELECT - 96 * MIN ( + - 26 ) * - 20 - - - 92 + COUNT ( * )
----
-50011

onlyif mysql # aggregate syntax: 
query III rowsort label-3268
SELECT - MAX( 22 ) AS col1, 65 AS col1, + 76 * + SUM( DISTINCT - 17 ) AS col2
----
-22
65
-1292

skipif mysql # not compatible
query III rowsort label-3268
SELECT - MAX ( 22 ) AS col1, 65 AS col1, + 76 * + SUM ( DISTINCT - 17 ) AS col2
----
-22
65
-1292

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT + 88 * 48 + COALESCE ( 10, 23 * + 47 * + SUM( - 97 ), - 12 ) AS col1
----
4234

skipif mysql # not compatible
query I rowsort label-3269
SELECT + 88 * 48 + COALESCE ( 10, 23 * + 47 * + SUM ( - 97 ), - 12 ) AS col1
----
4234

query I rowsort
SELECT ALL + - 40 * + 1 + - 2
----
-42

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

skipif mysql # not compatible
query II rowsort label-3271
SELECT ALL - 27 * CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) * + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL
NULL

query II rowsort
SELECT DISTINCT 38 * + 80 * 5 + - - 9 + + 11 + - 65 * - - 74 AS col1, 6
----
10410
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3273
SELECT ALL - 78 * ( + ( - COUNT( * ) ) ) DIV 66
----
1

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL - 78 * ( + ( - COUNT ( * ) ) ) / 66
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3274
SELECT ALL - CASE + 68 WHEN + + 94 + - 98 THEN - 7 WHEN - NULLIF ( + COALESCE ( + NULLIF ( + 45, - 33 / - + COUNT( * ) + - 58 ), - 0 ), - CAST( + COALESCE ( + 84, - 96 * COALESCE ( 11, + 49 / 12 + 25, + 45 + - MAX( + 12 + + 69 ) * 36 ) / CAST( 11 / 8 AS SIGNED ), + ( 42 ) / + ( 14 * - 95 + + 38 ) + - COUNT( * ) ) AS SIGNED ) ) THEN NULL ELSE NULL END * - CAST( NULL AS DECIMAL ) - + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL - CASE + 68 WHEN + + 94 + - 98 THEN - 7 WHEN - NULLIF ( + COALESCE ( + NULLIF ( + 45, - 33 / - + COUNT ( * ) + - 58 ), - 0 ), - CAST ( + COALESCE ( + 84, - 96 * COALESCE ( 11, + 49 / 12 + 25, + 45 + - MAX ( + 12 + + 69 ) * 36 ) / CAST ( 11 / 8 AS INTEGER ), + ( 42 ) / + ( 14 * - 95 + + 38 ) + - COUNT ( * ) ) AS INTEGER ) ) THEN NULL ELSE NULL END * - CAST ( NULL AS REAL ) - + 49
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3275
SELECT DISTINCT + 71 AS col2, CASE + 26 WHEN - COUNT( * ) THEN + + COUNT( * ) - + 78 * - ( + + 55 ) - COUNT( * ) END * 42
----
71
NULL

skipif mysql # not compatible
query II rowsort label-3275
SELECT DISTINCT + 71 AS col2, CASE + 26 WHEN - COUNT ( * ) THEN + + COUNT ( * ) - + 78 * - ( + + 55 ) - COUNT ( * ) END * 42
----
71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT ALL + CASE + 57 WHEN - 71 - + - 89 + + MAX( 28 ) THEN - MIN( 2 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL + CASE + 57 WHEN - 71 - + - 89 + + MAX ( 28 ) THEN - MIN ( 2 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3277
SELECT COALESCE ( + ( + 46 ), + 26 DIV + 16 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-3277
SELECT COALESCE ( + ( + 46 ), + 26 / + 16 ) AS col2
----
46

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

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

query I rowsort
SELECT - 27 * 1
----
-27

query I rowsort
SELECT ALL + 94 * + - 68 - + 29 AS col0
----
-6421

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT ALL + CAST( 27 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL + CAST ( 27 AS INTEGER )
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3282
SELECT ALL - CAST( NULL AS DECIMAL ) / - 40 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL - CAST ( NULL AS REAL ) / - 40 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT DISTINCT + ( MAX( ALL 13 ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT + ( MAX ( ALL 13 ) ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT + MIN( DISTINCT - + 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3284
SELECT + MIN ( DISTINCT - + 1 ) AS col1
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3286
SELECT + AVG ( 76 ) * - 64 / + 54 * - 25 * + SUM( - 20 ) * - CASE + - SUM( 97 ) WHEN + 63 + + - CAST( NULL AS DECIMAL ) THEN + COALESCE ( 51, - - 36 ) - CASE CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN 22 + - 50 * - + 94 * 98 ELSE NULL END + - 78 WHEN + 18 THEN 80 / COUNT( * ) + + 67 END + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-3286
SELECT + AVG ( 76 ) * - 64 / + 54 * - 25 * + SUM ( - 20 ) * - CASE + - SUM ( 97 ) WHEN + 63 + + - CAST ( NULL AS REAL ) THEN + COALESCE ( 51, - - 36 ) - CASE CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN 22 + - 50 * - + 94 * 98 ELSE NULL END + - 78 WHEN + 18 THEN 80 / COUNT ( * ) + + 67 END + 83
----
NULL

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

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

query I rowsort
SELECT - 49 + - 80
----
-129

query I rowsort
SELECT + 54 - + + NULLIF ( - 41, - + 4 * - 32 + + 4 ) + - - 86
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3290
SELECT - COUNT( * ) + 82 + + + 94 + 83 - + ( CAST( 62 AS SIGNED ) ) * + 66 / CASE - + AVG ( ALL - - 83 ) WHEN - CAST( - 81 AS SIGNED ) + - 46 THEN + 28 + + NULLIF ( - - 41, 46 * 63 * + 29 ) END + + NULLIF ( 1, - ( + 75 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT - COUNT ( * ) + 82 + + + 94 + 83 - + ( CAST ( 62 AS INTEGER ) ) * + 66 / CASE - + AVG ( ALL - - 83 ) WHEN - CAST ( - 81 AS INTEGER ) + - 46 THEN + 28 + + NULLIF ( - - 41, 46 * 63 * + 29 ) END + + NULLIF ( 1, - ( + 75 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3291
SELECT ALL 36 DIV 10 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL 36 / 10 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT - SUM( 74 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-3292
SELECT - SUM ( 74 ) AS col1
----
-74

query I rowsort
SELECT DISTINCT - - 3 + - - 57 - - 82
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3294
SELECT ALL 0 + COUNT( * ) * - - CAST( NULL AS SIGNED ) + - 95 AS col1, 3
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3294
SELECT ALL 0 + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + - 95 AS col1, 3
----
NULL
3

query II rowsort
SELECT + 47 AS col1, 13 - 64 AS col0
----
47
-51

query I rowsort
SELECT + NULLIF ( + 31, + ( 9 ) ) + 36 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT ALL ( - - CASE ( + - 60 ) WHEN - + 89 THEN NULL ELSE - 27 END ) + + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL ( - - CASE ( + - 60 ) WHEN - + 89 THEN NULL ELSE - 27 END ) + + COUNT ( * )
----
-26

query II rowsort
SELECT ALL - 56, 0 col2
----
-56
0

query I rowsort
SELECT ALL 28 + + + 35
----
63

query II rowsort
SELECT + 97 * - 12 + + - 21 * + 57, 83 * + 62 AS col0
----
-2361
5146

onlyif mysql # DIV for integer division: 
query II rowsort label-3301
SELECT - 87 AS col2, - 69 DIV - + ( 84 )
----
-87
0

skipif mysql # not compatible
query II rowsort label-3301
SELECT - 87 AS col2, - 69 / - + ( 84 )
----
-87
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT DISTINCT 36 / - 69 + + CASE - 15 WHEN + - 40 THEN COUNT( * ) WHEN + 40 / - 75 THEN NULL ELSE NULL END - - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT 36 / - 69 + + CASE - 15 WHEN + - 40 THEN COUNT ( * ) WHEN + 40 / - 75 THEN NULL ELSE NULL END - - 81
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3303
SELECT DISTINCT + + 2 DIV - 13
----
0

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT + + 2 / - 13
----
0

query I rowsort
SELECT DISTINCT + 85 - + 73 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT ALL - MIN( + 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL - MIN ( + 83 ) AS col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3306
SELECT - 27 DIV - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3306
SELECT - 27 / - 91 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3307
SELECT ( COUNT( * ) ) + + - COUNT( * ) DIV - 18
----
1

skipif mysql # not compatible
query I rowsort label-3307
SELECT ( COUNT ( * ) ) + + - COUNT ( * ) / - 18
----
1

query I rowsort
SELECT ALL - 14 * + - 13 * + 6
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL - NULLIF ( + COUNT( * ), - 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL - NULLIF ( + COUNT ( * ), - 53 )
----
-1

query I rowsort
SELECT 54 + 30 - ( + + 64 ) * - 48 * + - 46
----
-141228

query I rowsort
SELECT 63 + + - 90 * - 59 + + 83 AS col1
----
5456

query I rowsort
SELECT 73 * 83 col2
----
6059

query II rowsort
SELECT ALL - 79 + - 10 AS col1, 7
----
-89
7

query II rowsort
SELECT DISTINCT - ( + 2 ) AS col2, - NULLIF ( 29, - + 65 ) AS col2
----
-2
-29

query I rowsort
SELECT ALL + 52 * - 88 col2
----
-4576

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT 98 + - - COUNT( - - ( + ( - 13 ) ) )
----
99

skipif mysql # not compatible
query I rowsort label-3316
SELECT 98 + - - COUNT ( - - ( + ( - 13 ) ) )
----
99

query I rowsort
SELECT - 15 * + 35
----
-525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3318
SELECT DISTINCT + CAST( + 11 AS SIGNED ) * - 16
----
-176

skipif mysql # not compatible
query I rowsort label-3318
SELECT DISTINCT + CAST ( + 11 AS INTEGER ) * - 16
----
-176

query II rowsort
SELECT 27 * + 5 AS col2, - 2 AS col0
----
135
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3320
SELECT ALL CASE + COUNT( * ) WHEN + 29 THEN + - COUNT( * ) WHEN 62 THEN + - CAST( NULL AS SIGNED ) * - 19 - NULLIF ( 78, 98 ) * - + 4 * - 7 / - 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL CASE + COUNT ( * ) WHEN + 29 THEN + - COUNT ( * ) WHEN 62 THEN + - CAST ( NULL AS INTEGER ) * - 19 - NULLIF ( 78, 98 ) * - + 4 * - 7 / - 58 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3321
SELECT DISTINCT + 13 DIV + ( + + 28 ) AS col2
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3323
SELECT 19 DIV - 25
----
0

skipif mysql # not compatible
query I rowsort label-3323
SELECT 19 / - 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT 7 * COUNT( ALL + + 58 ) * 92 AS col1
----
644

skipif mysql # not compatible
query I rowsort label-3324
SELECT 7 * COUNT ( ALL + + 58 ) * 92 AS col1
----
644

query II rowsort
SELECT ALL 61 - - 65 AS col2, 10 * - - 36 AS col2
----
126
360

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT - COUNT( * ) * 63 * - - 57
----
-3591

skipif mysql # not compatible
query I rowsort label-3326
SELECT - COUNT ( * ) * 63 * - - 57
----
-3591

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT ALL + CASE + ( COUNT( * ) ) WHEN + 82 THEN + 2 + 42 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL + CASE + ( COUNT ( * ) ) WHEN + 82 THEN + 2 + 42 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3328
SELECT + 98 * + - 82 AS col2, + ( 93 ) * + - SUM( ALL + 51 )
----
-8036
-4743

skipif mysql # not compatible
query II rowsort label-3328
SELECT + 98 * + - 82 AS col2, + ( 93 ) * + - SUM ( ALL + 51 )
----
-8036
-4743

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT 76 * + - 71 * + 81 * + MIN( DISTINCT - 97 )
----
42396372

skipif mysql # not compatible
query I rowsort label-3329
SELECT 76 * + - 71 * + 81 * + MIN ( DISTINCT - 97 )
----
42396372

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT + ( - - NULLIF ( - - COUNT( * ), COUNT( * ) * - - COALESCE ( + 33, COALESCE ( - 9, + - 62 - + 88 * + COUNT( * ) - + ( + 39 ) ) ) ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3330
SELECT + ( - - NULLIF ( - - COUNT ( * ), COUNT ( * ) * - - COALESCE ( + 33, COALESCE ( - 9, + - 62 - + 88 * + COUNT ( * ) - + ( + 39 ) ) ) ) ) col0
----
1

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

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

query I rowsort
SELECT DISTINCT 61 * 98 * + - 70
----
-418460

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT MAX( - 78 ) * + 63
----
-4914

skipif mysql # not compatible
query I rowsort label-3333
SELECT MAX ( - 78 ) * + 63
----
-4914

onlyif mysql # DIV for integer division: 
query I rowsort label-3334
SELECT 98 DIV 43 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3334
SELECT 98 / 43 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT ALL + COUNT( * ) + - 80 col2
----
-79

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL + COUNT ( * ) + - 80 col2
----
-79

query I rowsort
SELECT ALL 1 + - 55 + 4 * - 50 * + 21 - 82 * - ( + + 67 ) AS col1
----
1240

query II rowsort
SELECT ALL - 17 AS col0, + 48 AS col1
----
-17
48

query I rowsort
SELECT DISTINCT + 30 + - 46
----
-16

query I rowsort
SELECT 42 * 22
----
924

query I rowsort
SELECT - 88 * + - 93
----
8184

query I rowsort
SELECT - + 70 + + 57 AS col0
----
-13

query I rowsort
SELECT - - 96 + 51 AS col0
----
147

query I rowsort
SELECT ALL + 90 * - 44
----
-3960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT + 79 + + + 32 + COUNT( DISTINCT + 92 ) + + + 9 - - 81 AS col1
----
202

skipif mysql # not compatible
query I rowsort label-3345
SELECT + 79 + + + 32 + COUNT ( DISTINCT + 92 ) + + + 9 - - 81 AS col1
----
202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3346
SELECT - 18 DIV CAST( + COUNT( * ) AS SIGNED ) AS col2, 29 AS col0
----
-18
29

skipif mysql # not compatible
query II rowsort label-3346
SELECT - 18 / CAST ( + COUNT ( * ) AS INTEGER ) AS col2, 29 AS col0
----
-18
29

query I rowsort
SELECT + 88 * + COALESCE ( + 98, 36 + - + 50 ) AS col0
----
8624

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT + MIN( - 38 ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-3348
SELECT + MIN ( - 38 ) col0
----
-38

query I rowsort
SELECT ALL + 86 * 35 + - 38 AS col2
----
2972

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT - COUNT( * ) * + + 24 + 93 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-3350
SELECT - COUNT ( * ) * + + 24 + 93 AS col1
----
69

query I rowsort
SELECT NULLIF ( - - 41, - + 76 )
----
41

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

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

query I rowsort
SELECT ALL 20 * - 90 AS col1
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT - NULLIF ( CASE WHEN NULL > ( NULL ) THEN NULL ELSE - - COUNT( 84 ) END, - 38 ) + - 90 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-3354
SELECT - NULLIF ( CASE WHEN NULL > ( NULL ) THEN NULL ELSE - - COUNT ( 84 ) END, - 38 ) + - 90 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT CASE COUNT( * ) WHEN 94 * + 37 * + - ( - 20 ) + - AVG ( + + 19 ) THEN + 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT CASE COUNT ( * ) WHEN 94 * + 37 * + - ( - 20 ) + - AVG ( + + 19 ) THEN + 16 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3356
SELECT DISTINCT + 31 AS col1, + 63 * + - MIN( 89 ) * - 28 * + 94
----
31
14757624

skipif mysql # not compatible
query II rowsort label-3356
SELECT DISTINCT + 31 AS col1, + 63 * + - MIN ( 89 ) * - 28 * + 94
----
31
14757624

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT ALL 58 * - + CASE 25 WHEN + - 33 + + 92 THEN NULL ELSE - 37 END + - 76 * + COUNT( * ) AS col1
----
2070

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL 58 * - + CASE 25 WHEN + - 33 + + 92 THEN NULL ELSE - 37 END + - 76 * + COUNT ( * ) AS col1
----
2070

query I rowsort
SELECT ALL + 4 * 1 + 44
----
48

query I rowsort
SELECT ALL 42 * + - 14 col1
----
-588

onlyif mysql # aggregate syntax: 
query II rowsort label-3360
SELECT ALL 1 * COUNT( * ) * 7 + 54 AS col1, + 23 AS col0
----
61
23

skipif mysql # not compatible
query II rowsort label-3360
SELECT ALL 1 * COUNT ( * ) * 7 + 54 AS col1, + 23 AS col0
----
61
23

query I rowsort
SELECT + 60 * - - 76 * 90 AS col0
----
410400

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT + 65 * - MAX( ALL 54 ) AS col0
----
-3510

skipif mysql # not compatible
query I rowsort label-3362
SELECT + 65 * - MAX ( ALL 54 ) AS col0
----
-3510

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT + NULLIF ( - + 18, + - 85 * - - MAX( - + 65 ) ) * + 75 AS col2
----
-1350

skipif mysql # not compatible
query I rowsort label-3364
SELECT + NULLIF ( - + 18, + - 85 * - - MAX ( - + 65 ) ) * + 75 AS col2
----
-1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3365
SELECT + 24 * + - 39, 9 + - 92 * 42 * CASE 30 WHEN + + 31 * - + 15 * + COUNT( * ) / + CAST( - 52 AS SIGNED ) * + 39 THEN NULL WHEN + 52 - + COALESCE ( + + 80, - MIN( - + 55 ), + + 26 * - 0 + + 73 ) * + - 88 THEN - CAST( NULL AS SIGNED ) * + 98 END * + 69 / + 91 AS col0
----
-936
NULL

skipif mysql # not compatible
query II rowsort label-3365
SELECT + 24 * + - 39, 9 + - 92 * 42 * CASE 30 WHEN + + 31 * - + 15 * + COUNT ( * ) / + CAST ( - 52 AS INTEGER ) * + 39 THEN NULL WHEN + 52 - + COALESCE ( + + 80, - MIN ( - + 55 ), + + 26 * - 0 + + 73 ) * + - 88 THEN - CAST ( NULL AS INTEGER ) * + 98 END * + 69 / + 91 AS col0
----
-936
NULL

query I rowsort
SELECT ALL 94 * - NULLIF ( + 90, 38 + - + 58 ) + - NULLIF ( - - 85, 45 * 60 + 5 + + 12 )
----
-8545

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3367
SELECT + + CAST( NULL AS SIGNED ) * SUM( ( - + 56 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT + + CAST ( NULL AS INTEGER ) * SUM ( ( - + 56 ) )
----
NULL

query I rowsort
SELECT DISTINCT - 13 * + 86 + - 74 * 10
----
-1858

query I rowsort
SELECT ALL - 55 * - ( 6 )
----
330

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3371
SELECT + COUNT( ALL - - ( + - 52 ) ) * COUNT( * ) DIV + 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3371
SELECT + COUNT ( ALL - - ( + - 52 ) ) * COUNT ( * ) / + 39 AS col2
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3373
SELECT ALL - 77, - 11 * + CAST( - 82 AS SIGNED ) * 21 + + + 6 + + + 35 * - + 68 * + 1 * - + 99 * + CAST( NULL AS SIGNED ) AS col0
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-3373
SELECT ALL - 77, - 11 * + CAST ( - 82 AS INTEGER ) * 21 + + + 6 + + + 35 * - + 68 * + 1 * - + 99 * + CAST ( NULL AS INTEGER ) AS col0
----
-77
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3374
SELECT - COALESCE ( + 71, - 10 + COUNT( * ) DIV 24 ) * + + 56 col2, - ( + - COUNT( * ) ) + - ( + + 35 ) * COUNT( * )
----
-3976
-34

skipif mysql # not compatible
query II rowsort label-3374
SELECT - COALESCE ( + 71, - 10 + COUNT ( * ) / 24 ) * + + 56 col2, - ( + - COUNT ( * ) ) + - ( + + 35 ) * COUNT ( * )
----
-3976
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3375
SELECT COUNT( ALL CAST( - ( 1 ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-3375
SELECT COUNT ( ALL CAST ( - ( 1 ) AS INTEGER ) )
----
1

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

query II rowsort
SELECT - 73 AS col2, - ( + 86 ) AS col2
----
-73
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT ALL - + SUM( ALL + + NULLIF ( + + NULLIF ( 50, - - 67 ), + 93 - + + 1 ) ) * - MAX( DISTINCT + 58 ) + - - 34 AS col0
----
2934

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL - + SUM ( ALL + + NULLIF ( + + NULLIF ( 50, - - 67 ), + 93 - + + 1 ) ) * - MAX ( DISTINCT + 58 ) + - - 34 AS col0
----
2934

query II rowsort
SELECT ALL + 82 col1, - 54 - 3 * 50
----
82
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT - - 98 - + 79 - + 22 + - MIN( DISTINCT - 3 ) + 33 * - ( - 76 ) AS col2
----
2508

skipif mysql # not compatible
query I rowsort label-3380
SELECT - - 98 - + 79 - + 22 + - MIN ( DISTINCT - 3 ) + 33 * - ( - 76 ) AS col2
----
2508

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT DISTINCT - MIN( ALL - + 59 ) + - 47 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT - MIN ( ALL - + 59 ) + - 47 AS col1
----
12

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3383
SELECT - 32 + + CAST( - 84 AS SIGNED ) + 84 + + 45 * + 64 AS col2
----
2848

skipif mysql # not compatible
query I rowsort label-3383
SELECT - 32 + + CAST ( - 84 AS INTEGER ) + 84 + + 45 * + 64 AS col2
----
2848

query I rowsort
SELECT - 8 + + 42 AS col2
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3385
SELECT DISTINCT COALESCE ( + 90, + 67 ) DIV + 86 + + NULLIF ( - 3, - + COUNT( * ) - AVG ( + 6 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT COALESCE ( + 90, + 67 ) / + 86 + + NULLIF ( - 3, - + COUNT ( * ) - AVG ( + 6 ) )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3386
SELECT + 73 DIV 72 * - 19 * + + 8 + + MIN( ALL 58 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-3386
SELECT + 73 / 72 * - 19 * + + 8 + + MIN ( ALL 58 ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT - MIN( DISTINCT + 25 ) * - 94 AS col2
----
2350

skipif mysql # not compatible
query I rowsort label-3387
SELECT - MIN ( DISTINCT + 25 ) * - 94 AS col2
----
2350

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3388
SELECT - MIN( - 35 ) DIV + + 22, - 34 AS col0
----
1
-34

skipif mysql # not compatible
query II rowsort label-3388
SELECT - MIN ( - 35 ) / + + 22, - 34 AS col0
----
1
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3389
SELECT ALL COUNT( * ) DIV 80 + + 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL COUNT ( * ) / 80 + + 57 AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3390
SELECT + CASE 45 WHEN - 53 * - + 20 / ( - CAST( NULL AS SIGNED ) ) + 65 + - COUNT( * ) + + MIN( ALL + 18 ) * - + ( + 34 ) + + 32 THEN - - 40 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT + CASE 45 WHEN - 53 * - + 20 / ( - CAST ( NULL AS INTEGER ) ) + 65 + - COUNT ( * ) + + MIN ( ALL + 18 ) * - + ( + 34 ) + + 32 THEN - - 40 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT - MIN( + - 22 ) - + COALESCE ( 59, + 24 + - 40, - 63 * + - 47, + COUNT( * ) ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3391
SELECT - MIN ( + - 22 ) - + COALESCE ( 59, + 24 + - 40, - 63 * + - 47, + COUNT ( * ) ) AS col0
----
-37

query I rowsort
SELECT - 19 * - 90 AS col2
----
1710

query II rowsort
SELECT + 42 * 63 AS col2, - 76 + + - 1 - - COALESCE ( 56, 21 ) + - - 53 AS col2
----
2646
32

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT ( - SUM( ALL - 42 ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3396
SELECT ( - SUM ( ALL - 42 ) ) AS col2
----
42

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

query I rowsort
SELECT + + 78 - 73
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3399
SELECT DISTINCT - 73 * + CASE + - 32 WHEN - + NULLIF ( + - ( - 83 ), + + 79 / + + 64 ) * + ( - - COUNT( * ) ) * - 99 THEN + 99 + + + 20 / 13 WHEN + 61 THEN + + AVG ( DISTINCT - 11 ) + - 51 ELSE - CAST( NULL AS SIGNED ) * - + 77 + 6 + 6 - - 57 + + 71 - + 24 / - 47 + + 18 - + 58 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT - 73 * + CASE + - 32 WHEN - + NULLIF ( + - ( - 83 ), + + 79 / + + 64 ) * + ( - - COUNT ( * ) ) * - 99 THEN + 99 + + + 20 / 13 WHEN + 61 THEN + + AVG ( DISTINCT - 11 ) + - 51 ELSE - CAST ( NULL AS INTEGER ) * - + 77 + 6 + 6 - - 57 + + 71 - + 24 / - 47 + + 18 - + 58 END * COUNT ( * )
----
NULL

query I rowsort
SELECT + 84 - - 56
----
140

query I rowsort
SELECT ALL - + NULLIF ( + 7, - - 79 ) col0
----
-7

query I rowsort
SELECT 35 * 78
----
2730

onlyif mysql # aggregate syntax: 
query II rowsort label-3403
SELECT - 50 + - - NULLIF ( + 47, ( + + 51 ) * - - COUNT( * ) * + 95 ) AS col0, - 57 * + + 15 + + 22
----
-3
-833

skipif mysql # not compatible
query II rowsort label-3403
SELECT - 50 + - - NULLIF ( + 47, ( + + 51 ) * - - COUNT ( * ) * + 95 ) AS col0, - 57 * + + 15 + + 22
----
-3
-833

query I rowsort
SELECT 84 + 74 * - - 31 AS col1
----
2378

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT - COALESCE ( - 17, + 60 + + - 60, COUNT( * ) )
----
17

skipif mysql # not compatible
query I rowsort label-3405
SELECT - COALESCE ( - 17, + 60 + + - 60, COUNT ( * ) )
----
17

query I rowsort
SELECT 4 * + ( 75 ) AS col2
----
300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3407
SELECT ALL - 7 + - CAST( - + 9 AS SIGNED ) - + + SUM( - + 77 ) + + - 20 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL - 7 + - CAST ( - + 9 AS INTEGER ) - + + SUM ( - + 77 ) + + - 20 AS col1
----
59

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3409
SELECT ALL COUNT( + 15 ) * + - COUNT( * ) - - - 62 + + CASE - + 77 WHEN + 26 - - 84 + - MAX( ALL - + 72 ) THEN - 89 + + 42 * + 26 WHEN - ( + 57 ) THEN NULL ELSE + - 89 END DIV - + 56 AS col1, CAST( - 15 AS SIGNED )
----
-62
-15

skipif mysql # not compatible
query II rowsort label-3409
SELECT ALL COUNT ( + 15 ) * + - COUNT ( * ) - - - 62 + + CASE - + 77 WHEN + 26 - - 84 + - MAX ( ALL - + 72 ) THEN - 89 + + 42 * + 26 WHEN - ( + 57 ) THEN NULL ELSE + - 89 END / - + 56 AS col1, CAST ( - 15 AS INTEGER )
----
-62
-15

query I rowsort
SELECT DISTINCT - 5 + - + 24 AS col0
----
-29

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

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

query I rowsort
SELECT 83 + + + 46 AS col2
----
129

query I rowsort
SELECT 57 * + 79
----
4503

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

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

query I rowsort
SELECT DISTINCT - 7 * - + 2 AS col2
----
14

query I rowsort
SELECT 79 + + 55 AS col2
----
134

query I rowsort
SELECT 82 * + + 26 AS col2
----
2132

query II rowsort
SELECT 14, 6 - + 11 col1
----
14
-5

query I rowsort
SELECT ALL 78 * COALESCE ( 67, + + 0 * + 30 )
----
5226

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

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

query I rowsort
SELECT CASE + - 33 WHEN - 88 * + 77 THEN - - 5 + 8 + - 53 END * 4 * - - 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL + 89 * - 17 * - - MAX( + 82 )
----
-124066

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL + 89 * - 17 * - - MAX ( + 82 )
----
-124066

onlyif mysql # DIV for integer division: 
query II rowsort label-3423
SELECT 78 + - ( + 29 ), 29 DIV + + NULLIF ( + + 58, ( 81 ) ) AS col1
----
49
0

skipif mysql # not compatible
query II rowsort label-3423
SELECT 78 + - ( + 29 ), 29 / + + NULLIF ( + + 58, ( 81 ) ) AS col1
----
49
0

query I rowsort
SELECT - 87 * 39 * - 6 - + 64
----
20294

query I rowsort
SELECT 97 * - 98 AS col0
----
-9506

query I rowsort
SELECT - 24 * + + 10 + + 69
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT DISTINCT - + COALESCE ( 14, - - 47 + 12 + MAX( + 94 ) - + NULLIF ( - NULLIF ( 44, + 33 + - - ( + COUNT( * ) ) ), COUNT( + 51 ) ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3427
SELECT DISTINCT - + COALESCE ( 14, - - 47 + 12 + MAX ( + 94 ) - + NULLIF ( - NULLIF ( 44, + 33 + - - ( + COUNT ( * ) ) ), COUNT ( + 51 ) ) ) AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3428
SELECT - MIN( ALL 2 ) + + - COALESCE ( + 25, - 48 * - + 35 + - CAST( 38 AS SIGNED ), + 93 ) - ( + 40 ) + + COUNT( * ) * - 51 AS col0, 73 - + COUNT( 43 ) AS col2
----
-118
72

skipif mysql # not compatible
query II rowsort label-3428
SELECT - MIN ( ALL 2 ) + + - COALESCE ( + 25, - 48 * - + 35 + - CAST ( 38 AS INTEGER ), + 93 ) - ( + 40 ) + + COUNT ( * ) * - 51 AS col0, 73 - + COUNT ( 43 ) AS col2
----
-118
72

query I rowsort
SELECT ALL - - 51 col1
----
51

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

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

query I rowsort
SELECT 99 * - 53
----
-5247

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT 17 * + COUNT( * ) + - 67 * - 6
----
419

skipif mysql # not compatible
query I rowsort label-3432
SELECT 17 * + COUNT ( * ) + - 67 * - 6
----
419

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT ALL COUNT( * ) * + 35 * 4 - 69
----
71

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL COUNT ( * ) * + 35 * 4 - 69
----
71

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT DISTINCT - + 70 + + COUNT( * ) * - 54 + 56 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT - + 70 + + COUNT ( * ) * - 54 + 56 AS col2
----
-68

query I rowsort
SELECT ALL 42 + + 10
----
52

query I rowsort
SELECT DISTINCT - 29 + + 61 AS col0
----
32

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3441
SELECT 47 - - + MAX( ALL - CAST( 38 AS SIGNED ) ) + + + MAX( ALL 5 )
----
14

skipif mysql # not compatible
query I rowsort label-3441
SELECT 47 - - + MAX ( ALL - CAST ( 38 AS INTEGER ) ) + + + MAX ( ALL 5 )
----
14

onlyif mysql # DIV for integer division: 
query II rowsort label-3442
SELECT ALL 97 + 40, 90 DIV + ( - NULLIF ( - 5, - - 28 ) ) col0
----
137
18

skipif mysql # not compatible
query II rowsort label-3442
SELECT ALL 97 + 40, 90 / + ( - NULLIF ( - 5, - - 28 ) ) col0
----
137
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3443
SELECT ALL + 20 DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL + 20 / 64
----
0

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

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

query I rowsort
SELECT ALL 91 * 48
----
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT DISTINCT 2 - - + COUNT( * ) * 25
----
27

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT 2 - - + COUNT ( * ) * 25
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3447
SELECT - COUNT( ALL 89 ) col0, CAST( NULL AS SIGNED ) col1
----
-1
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT DISTINCT + COALESCE ( - 58, - - NULLIF ( - - 77, - - 12 - - 71 ) ) - - - SUM( ALL + + 14 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT + COALESCE ( - 58, - - NULLIF ( - - 77, - - 12 - - 71 ) ) - - - SUM ( ALL + + 14 ) AS col0
----
-72

query I rowsort
SELECT 14 + + 3 * - - 79
----
251

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT 17 * - NULLIF ( - NULLIF ( - 26, - - 38 ), MIN( - - 87 ) + - COUNT( * ) * + 86 * - - NULLIF ( 69, - AVG ( DISTINCT + 66 ) ) )
----
-442

skipif mysql # not compatible
query I rowsort label-3450
SELECT 17 * - NULLIF ( - NULLIF ( - 26, - - 38 ), MIN ( - - 87 ) + - COUNT ( * ) * + 86 * - - NULLIF ( 69, - AVG ( DISTINCT + 66 ) ) )
----
-442

onlyif mysql # aggregate syntax: 
query II rowsort label-3451
SELECT + COUNT( 29 ) AS col0, - ( + 17 ) AS col1
----
1
-17

skipif mysql # not compatible
query II rowsort label-3451
SELECT + COUNT ( 29 ) AS col0, - ( + 17 ) AS col1
----
1
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-3452
SELECT 67 DIV + 69 * - 15 - - + COALESCE ( + 85, + + ( - + 61 ), - - 96 ) + 26 AS col2, 59
----
111
59

skipif mysql # not compatible
query II rowsort label-3452
SELECT 67 / + 69 * - 15 - - + COALESCE ( + 85, + + ( - + 61 ), - - 96 ) + 26 AS col2, 59
----
111
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3453
SELECT ALL + ( + + CAST( - 10 AS SIGNED ) ) * CAST( + 6 AS SIGNED ) + - - 30 + + ( + + 96 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL + ( + + CAST ( - 10 AS INTEGER ) ) * CAST ( + 6 AS INTEGER ) + - - 30 + + ( + + 96 ) AS col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3454
SELECT 67 DIV - 2 + 42
----
9

skipif mysql # not compatible
query I rowsort label-3454
SELECT 67 / - 2 + 42
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT DISTINCT + 34 * + MIN( ALL 35 ) AS col2
----
1190

skipif mysql # not compatible
query I rowsort label-3455
SELECT DISTINCT + 34 * + MIN ( ALL 35 ) AS col2
----
1190

query I rowsort
SELECT ALL 40 * + 21 + 45 * + - 29 * + 20 AS col2
----
-25260

onlyif mysql # DIV for integer division: 
query I rowsort label-3457
SELECT + - 18 DIV - 43 * - 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3457
SELECT + - 18 / - 43 * - 19 AS col1
----
0

query I rowsort
SELECT + + 1 - - - 71 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-3459
SELECT ALL - - ( - 86 ) * - 80 - + - COUNT( * ) + MAX( + + 39 ) + COUNT( * ) + + 20 + - + 38 * 87 AS col2, + 91 AS col1
----
3635
91

skipif mysql # not compatible
query II rowsort label-3459
SELECT ALL - - ( - 86 ) * - 80 - + - COUNT ( * ) + MAX ( + + 39 ) + COUNT ( * ) + + 20 + - + 38 * 87 AS col2, + 91 AS col1
----
3635
91

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

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

query I rowsort
SELECT DISTINCT - 30 * - 15 AS col1
----
450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3462
SELECT DISTINCT - 30 * + 27 DIV + COUNT( * ) + 5 + - 43 - + ( COUNT( * ) ) * - SUM( + 78 ) AS col0
----
-770

skipif mysql # not compatible
query I rowsort label-3462
SELECT DISTINCT - 30 * + 27 / + COUNT ( * ) + 5 + - 43 - + ( COUNT ( * ) ) * - SUM ( + 78 ) AS col0
----
-770

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3464
SELECT - 88 * + 30 + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT - 88 * + 30 + + CAST ( NULL AS REAL ) AS col2
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-3466
SELECT - - COUNT ( * ) + + 98 + - - COUNT ( * ) AS col0
----
100

query I rowsort
SELECT ALL + + COALESCE ( 0, 92 + - 65 ) * - 34 + + - 46 col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT - + 50 + COUNT( * ) + - 77
----
-126

skipif mysql # not compatible
query I rowsort label-3468
SELECT - + 50 + COUNT ( * ) + - 77
----
-126

query I rowsort
SELECT + ( + 29 ) - - - 58
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3470
SELECT NULLIF ( COUNT( * ), - - SUM( - 96 ) ) * - 2 DIV + 8 + + 31 col2
----
31

skipif mysql # not compatible
query I rowsort label-3470
SELECT NULLIF ( COUNT ( * ), - - SUM ( - 96 ) ) * - 2 / + 8 + + 31 col2
----
31

query I rowsort
SELECT + 91 - 0
----
91

query I rowsort
SELECT ALL - 61 - 5
----
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-3473
SELECT - 16 AS col1, 15 DIV 89 AS col2
----
-16
0

skipif mysql # not compatible
query II rowsort label-3473
SELECT - 16 AS col1, 15 / 89 AS col2
----
-16
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3474
SELECT ALL COALESCE ( + - ( - + ( + COALESCE ( - CAST( NULL AS SIGNED ), + 60, + + 35 * + - 45 * + 69 * 96 * 20 ) ) ), - 19 * + - COUNT( * ) - + 55, - - COUNT( * ) ) AS col2, 40 DIV 65 + - 94 + - 64
----
60
-158

skipif mysql # not compatible
query II rowsort label-3474
SELECT ALL COALESCE ( + - ( - + ( + COALESCE ( - CAST ( NULL AS INTEGER ), + 60, + + 35 * + - 45 * + 69 * 96 * 20 ) ) ), - 19 * + - COUNT ( * ) - + 55, - - COUNT ( * ) ) AS col2, 40 / 65 + - 94 + - 64
----
60
-158

query I rowsort
SELECT DISTINCT - 79 - + 47 AS col1
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT DISTINCT + 16 * + COUNT( * ) * - 55
----
-880

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT + 16 * + COUNT ( * ) * - 55
----
-880

query I rowsort
SELECT ALL NULLIF ( - - 83, - 1 + 49 )
----
83

query II rowsort
SELECT 52, - NULLIF ( - 64, + - 57 ) AS col0
----
52
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3479
SELECT ALL COALESCE ( - CAST( NULL AS SIGNED ), - 4 ) / CAST( NULL AS DECIMAL ) / AVG ( DISTINCT + + 61 ) + - COUNT( DISTINCT + 80 ) - - - 80 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL COALESCE ( - CAST ( NULL AS INTEGER ), - 4 ) / CAST ( NULL AS REAL ) / AVG ( DISTINCT + + 61 ) + - COUNT ( DISTINCT + 80 ) - - - 80 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3480
SELECT + CAST( NULL AS SIGNED ) * + 18 * - ( + CASE + 84 WHEN + COUNT( * ) THEN 5 WHEN MAX( ALL 67 ) * + CAST( NULL AS SIGNED ) + + + 69 + - - NULLIF ( 64, + 98 ) + SUM( ALL + CAST( NULL AS SIGNED ) ) + + + CASE - - 7 WHEN + + 56 THEN NULL WHEN - - 85 THEN 49 + - 43 - - COUNT( * ) * - + 34 ELSE NULL END THEN NULL ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3480
SELECT + CAST ( NULL AS INTEGER ) * + 18 * - ( + CASE + 84 WHEN + COUNT ( * ) THEN 5 WHEN MAX ( ALL 67 ) * + CAST ( NULL AS INTEGER ) + + + 69 + - - NULLIF ( 64, + 98 ) + SUM ( ALL + CAST ( NULL AS INTEGER ) ) + + + CASE - - 7 WHEN + + 56 THEN NULL WHEN - - 85 THEN 49 + - 43 - - COUNT ( * ) * - + 34 ELSE NULL END THEN NULL ELSE NULL END ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT - NULLIF ( + 78, - MIN( ALL - + 20 ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-3482
SELECT - NULLIF ( + 78, - MIN ( ALL - + 20 ) ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT - COUNT( * ) + 6 - + 73
----
-68

skipif mysql # not compatible
query I rowsort label-3483
SELECT - COUNT ( * ) + 6 - + 73
----
-68

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

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

query I rowsort
SELECT + 2 + + + 67 + + 5 - + 33 + 3 + + 64 * + 48 + 10 col0
----
3126

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

skipif mysql # not compatible
query I rowsort label-3486
SELECT - CAST ( NULL AS INTEGER ) * - 71 AS col1
----
NULL

query I rowsort
SELECT + 19 * - ( - 5 ) * + 67
----
6365

query I rowsort
SELECT + 78 + 62
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-3489
SELECT DISTINCT - 72 DIV 4
----
-18

skipif mysql # not compatible
query I rowsort label-3489
SELECT DISTINCT - 72 / 4
----
-18

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3491
SELECT + 83 + CAST( NULL AS SIGNED ) / 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3491
SELECT + 83 + CAST ( NULL AS INTEGER ) / 40 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 89 * + + 27 AS col1
----
2403

query II rowsort
SELECT ALL + 52, 29 col1
----
52
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT DISTINCT + SUM( ALL + - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT + SUM ( ALL + - 42 )
----
-42

query I rowsort
SELECT DISTINCT 29 * + 84 + 36 AS col2
----
2472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3496
SELECT + CAST( NULL AS SIGNED ) + + NULLIF ( + 42, - NULLIF ( - 69, CAST( - + 15 AS SIGNED ) ) ) / 22 - 59 / + - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3496
SELECT + CAST ( NULL AS INTEGER ) + + NULLIF ( + 42, - NULLIF ( - 69, CAST ( - + 15 AS INTEGER ) ) ) / 22 - 59 / + - 71 AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( - 83, + 69 * - + 98 ) * - 16 + - 77 + + 90
----
-1315

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT - COUNT( * ) + 18 + + + 93 col0
----
110

skipif mysql # not compatible
query I rowsort label-3498
SELECT - COUNT ( * ) + 18 + + + 93 col0
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3499
SELECT ALL 45 * COUNT( * ) + 72 - - + COUNT( ALL - 54 ) DIV - COALESCE ( - + 79, 40 * - ( + ( + CASE - 33 WHEN + + COUNT( * ) + - + 82 * - - CAST( NULL AS SIGNED ) THEN NULL ELSE 37 END ) ) )
----
117

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL 45 * COUNT ( * ) + 72 - - + COUNT ( ALL - 54 ) / - COALESCE ( - + 79, 40 * - ( + ( + CASE - 33 WHEN + + COUNT ( * ) + - + 82 * - - CAST ( NULL AS INTEGER ) THEN NULL ELSE 37 END ) ) )
----
117

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3500
SELECT + 36 / + MAX( - + 95 ) * 48 - - + 44 + 26 * 77 + + + CAST( NULL AS DECIMAL ) * + 73 + - 1 + COUNT( - - 37 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3500
SELECT + 36 / + MAX ( - + 95 ) * 48 - - + 44 + 26 * 77 + + + CAST ( NULL AS REAL ) * + 73 + - 1 + COUNT ( - - 37 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3501
SELECT ALL + 33 * + - 34 - - 93 + - + COALESCE ( - - NULLIF ( - + 97, AVG ( ALL + 44 ) * + + ( + 91 ) ), + CAST( NULL AS SIGNED ) ) AS col0
----
-932

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL + 33 * + - 34 - - 93 + - + COALESCE ( - - NULLIF ( - + 97, AVG ( ALL + 44 ) * + + ( + 91 ) ), + CAST ( NULL AS INTEGER ) ) AS col0
----
-932

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT - - 40 + COUNT( DISTINCT - 55 ) * + + ( + 79 )
----
119

skipif mysql # not compatible
query I rowsort label-3502
SELECT - - 40 + COUNT ( DISTINCT - 55 ) * + + ( + 79 )
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-3503
SELECT + 71 col1, - 32 * + COUNT( * )
----
71
-32

skipif mysql # not compatible
query II rowsort label-3503
SELECT + 71 col1, - 32 * + COUNT ( * )
----
71
-32

query I rowsort
SELECT - 2 + + 3
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT - 29 + - COUNT( * ) * + 11 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-3506
SELECT - 29 + - COUNT ( * ) * + 11 AS col0
----
-40

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT + 44 DIV 66 * - - 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3509
SELECT + 44 / 66 * - - 95 AS col0
----
0

query II rowsort
SELECT ALL ( - 19 ), 84 * + 20 col0
----
-19
1680

query I rowsort
SELECT - 26 * + ( + 27 )
----
-702

query II rowsort
SELECT - 83 AS col1, 85 col1
----
-83
85

query I rowsort
SELECT - NULLIF ( + 96, + 74 )
----
-96

query I rowsort
SELECT ALL + 58 * - 72
----
-4176

onlyif mysql # DIV for integer division: 
query I rowsort label-3515
SELECT DISTINCT + 85 * 28 DIV - - 65 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT + 85 * 28 / - - 65 AS col0
----
36

query I rowsort
SELECT ALL 36 + - - 64 + + 82
----
182

query I rowsort
SELECT 17 - + 83
----
-66

query I rowsort
SELECT ALL - 67 * + - 49 * - 84 AS col1
----
-275772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3519
SELECT 23 * + NULLIF ( + + CAST( 78 AS SIGNED ), - - 24 )
----
1794

skipif mysql # not compatible
query I rowsort label-3519
SELECT 23 * + NULLIF ( + + CAST ( 78 AS INTEGER ), - - 24 )
----
1794

query I rowsort
SELECT 26 - - ( + + 26 ) + + 48 * - 22
----
-1004

onlyif mysql # aggregate syntax: 
query II rowsort label-3521
SELECT 24 AS col1, - 21 + + COUNT( * )
----
24
-20

skipif mysql # not compatible
query II rowsort label-3521
SELECT 24 AS col1, - 21 + + COUNT ( * )
----
24
-20

query I rowsort
SELECT 7 + 64
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-3523
SELECT + 1 DIV + 38
----
0

skipif mysql # not compatible
query I rowsort label-3523
SELECT + 1 / + 38
----
0

query I rowsort
SELECT + 71 + - 19 * - 82 AS col1
----
1629

query I rowsort
SELECT DISTINCT + 74 + - + 28 AS col1
----
46

query I rowsort
SELECT ALL - - NULLIF ( - ( - + 30 ), + 86 * - + 43 )
----
30

query I rowsort
SELECT ALL + 24 + - 16
----
8

query II rowsort
SELECT ALL - + 11 AS col0, + 99 * - 36
----
-11
-3564

query I rowsort
SELECT - 51 * 80 * + 1 + - - ( + ( 64 ) )
----
-4016

query I rowsort
SELECT ALL - + 26 * + 67 * 91 AS col1
----
-158522

query I rowsort
SELECT DISTINCT + 22 * - - 58
----
1276

query I rowsort
SELECT - ( + 0 ) - 19 AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3533
SELECT + 17 * 13 * - + 57 * + ( - ( 28 ) ) + + 3 * - 95 + COUNT( * ) + + 6 * 22 + CASE CAST( NULL AS SIGNED ) WHEN + - 75 * + COALESCE ( - 10, + 22 ) * + NULLIF ( - ( - 91 ), - ( COALESCE ( + ( 23 ), 77, + 53 ) ) ) THEN 87 * + - 42 * - + 20 WHEN - + 53 * - 24 / COUNT( + 45 ) THEN NULL WHEN - 65 THEN NULLIF ( - 58, 93 + + 45 / 38 ) * - 46 ELSE NULL END - 79 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3533
SELECT + 17 * 13 * - + 57 * + ( - ( 28 ) ) + + 3 * - 95 + COUNT ( * ) + + 6 * 22 + CASE CAST ( NULL AS INTEGER ) WHEN + - 75 * + COALESCE ( - 10, + 22 ) * + NULLIF ( - ( - 91 ), - ( COALESCE ( + ( 23 ), 77, + 53 ) ) ) THEN 87 * + - 42 * - + 20 WHEN - + 53 * - 24 / COUNT ( + 45 ) THEN NULL WHEN - 65 THEN NULLIF ( - 58, 93 + + 45 / 38 ) * - 46 ELSE NULL END - 79 col0
----
NULL

query II rowsort
SELECT ALL - 56 AS col1, - 88 - - 42 AS col2
----
-56
-46

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

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

query II rowsort
SELECT + 0, ( 82 ) AS col2
----
0
82

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

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

query I rowsort
SELECT - 67 - 78 col1
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT ALL - NULLIF ( - + 84, + COALESCE ( + 1, 20 * - + 52 - + 56 ) * COUNT( * ) * 21 + + - ( ( 39 ) ) ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL - NULLIF ( - + 84, + COALESCE ( + 1, 20 * - + 52 - + 56 ) * COUNT ( * ) * 21 + + - ( ( 39 ) ) ) AS col1
----
84

query I rowsort
SELECT 82 + 40
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3541
SELECT ALL - MAX( 8 ) * - 75 + + 70 * - - 80 * - 17 * + - 9 - - 83 * 11 - - - 87 DIV - + 4
----
858334

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL - MAX ( 8 ) * - 75 + + 70 * - - 80 * - 17 * + - 9 - - 83 * 11 - - - 87 / - + 4
----
858334

onlyif mysql # DIV for integer division: 
query I rowsort label-3542
SELECT DISTINCT 79 DIV + + 32
----
2

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT 79 / + + 32
----
2

query II rowsort
SELECT 1 * 92, 22 AS col1
----
92
22

query I rowsort
SELECT ALL 14 * - 15
----
-210

query I rowsort
SELECT 72 + 82
----
154

query II rowsort
SELECT 17 - + 57 AS col0, - 85
----
-40
-85

query I rowsort
SELECT 27 - 28 * - 97
----
2743

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3548
SELECT 7 + + CAST( - 21 AS SIGNED ) + 45 col0
----
31

skipif mysql # not compatible
query I rowsort label-3548
SELECT 7 + + CAST ( - 21 AS INTEGER ) + 45 col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT ALL - CASE - - 39 WHEN - 81 THEN + - 76 END / - 34 * - MAX( ALL 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL - CASE - - 39 WHEN - 81 THEN + - 76 END / - 34 * - MAX ( ALL 33 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3550
SELECT 23 DIV + - 2 AS col1, 40
----
-11
40

skipif mysql # not compatible
query II rowsort label-3550
SELECT 23 / + - 2 AS col1, 40
----
-11
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3551
SELECT DISTINCT - COUNT( * ) + - ( 67 ) * - 83 * - CAST( + - CAST( + NULLIF ( - - 29, - CAST( + + 39 AS SIGNED ) ) AS SIGNED ) AS SIGNED ) AS col1, + 54 AS col0
----
161268
54

skipif mysql # not compatible
query II rowsort label-3551
SELECT DISTINCT - COUNT ( * ) + - ( 67 ) * - 83 * - CAST ( + - CAST ( + NULLIF ( - - 29, - CAST ( + + 39 AS INTEGER ) ) AS INTEGER ) AS INTEGER ) AS col1, + 54 AS col0
----
161268
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3552
SELECT 3 + - 10 + - ( 6 ) + + - 52 * COALESCE ( + CAST( NULL AS SIGNED ), 73 * 86 DIV - 65 )
----
4979

skipif mysql # not compatible
query I rowsort label-3552
SELECT 3 + - 10 + - ( 6 ) + + - 52 * COALESCE ( + CAST ( NULL AS INTEGER ), 73 * 86 / - 65 )
----
4979

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

skipif mysql # not compatible
query I rowsort label-3553
SELECT 13 + + - COUNT ( * ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT 16 * - COUNT( ALL 40 ) * + 75 AS col0
----
-1200

skipif mysql # not compatible
query I rowsort label-3554
SELECT 16 * - COUNT ( ALL 40 ) * + 75 AS col0
----
-1200

query I rowsort
SELECT 52 + + - 15 + 1 * 25 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT CASE + 42 WHEN - - 84 THEN + + 95 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3556
SELECT CASE + 42 WHEN - - 84 THEN + + 95 END + + COUNT ( * )
----
NULL

query II rowsort
SELECT - 68 * 8 AS col2, - 73 AS col2
----
-544
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT ALL + 75 + - 72 * + + COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL + 75 + - 72 * + + COUNT ( * ) AS col1
----
3

query I rowsort
SELECT 50 + 89
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3560
SELECT ALL - - CAST( - 96 AS SIGNED ) * + 54 col0
----
-5184

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL - - CAST ( - 96 AS INTEGER ) * + 54 col0
----
-5184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3561
SELECT DISTINCT ( + COUNT( * ) ), - ( + 53 ) - 65 + CAST( AVG ( DISTINCT - 94 ) AS SIGNED ) * - COUNT( * ) * + 70 col2
----
1
6462

skipif mysql # not compatible
query II rowsort label-3561
SELECT DISTINCT ( + COUNT ( * ) ), - ( + 53 ) - 65 + CAST ( AVG ( DISTINCT - 94 ) AS INTEGER ) * - COUNT ( * ) * + 70 col2
----
1
6462

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT DISTINCT - 51 * - COUNT( * ) + + MAX( ALL + 10 ) * - 65 + 85 AS col2
----
-514

skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT - 51 * - COUNT ( * ) + + MAX ( ALL + 10 ) * - 65 + 85 AS col2
----
-514

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3563
SELECT 12 DIV + - MIN( + 45 ) + - - 2 + 24
----
26

skipif mysql # not compatible
query I rowsort label-3563
SELECT 12 / + - MIN ( + 45 ) + - - 2 + 24
----
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT 68 * 38 + + COUNT( * ) AS col0
----
2585

skipif mysql # not compatible
query I rowsort label-3565
SELECT 68 * 38 + + COUNT ( * ) AS col0
----
2585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3566
SELECT DISTINCT + 45 * 75 * + 72 + - ( CAST( NULL AS SIGNED ) ) - + + 4 + 62 * + + 22 * 76 * + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT + 45 * 75 * + 72 + - ( CAST ( NULL AS INTEGER ) ) - + + 4 + 62 * + + 22 * 76 * + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT - SUM( ALL + + 25 ) * + 69 - + 22 + 75
----
-1672

skipif mysql # not compatible
query I rowsort label-3567
SELECT - SUM ( ALL + + 25 ) * + 69 - + 22 + 75
----
-1672

onlyif mysql # DIV for integer division: 
query I rowsort label-3568
SELECT 60 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-3568
SELECT 60 / - 85
----
0

query I rowsort
SELECT 91 + - + 86 * - 42 + 36 AS col0
----
3739

query I rowsort
SELECT ALL - 2 * - + 72 AS col1
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3571
SELECT 98 * - - 73 * CAST( - 51 AS SIGNED )
----
-364854

skipif mysql # not compatible
query I rowsort label-3571
SELECT 98 * - - 73 * CAST ( - 51 AS INTEGER )
----
-364854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3572
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + ( + + 77 ) * + 85 + 77 + - 42 + 19 * + 98 ) / - + 8 + + ( + + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3572
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + ( + + 77 ) * + 85 + 77 + - 42 + 19 * + 98 ) / - + 8 + + ( + + 26 )
----
NULL

query II rowsort
SELECT + 67 AS col2, 27 AS col1
----
67
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT NULLIF ( - COUNT( ALL + 68 ), - + 99 ) + - 10 col1
----
-11

skipif mysql # not compatible
query I rowsort label-3574
SELECT NULLIF ( - COUNT ( ALL + 68 ), - + 99 ) + - 10 col1
----
-11

query I rowsort
SELECT 11 * - - 29 col1
----
319

query II rowsort
SELECT 3 * - - 78 + + 88, - 37 * - 4 AS col1
----
322
148

query I rowsort
SELECT DISTINCT - 85 * + 28 AS col2
----
-2380

query I rowsort
SELECT ALL 61 + - 84 AS col2
----
-23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT DISTINCT 90 + + + NULLIF ( + COUNT( * ), - 88 * + 34 + 24 ) * - + 70 col1
----
20

skipif mysql # not compatible
query I rowsort label-3580
SELECT DISTINCT 90 + + + NULLIF ( + COUNT ( * ), - 88 * + 34 + 24 ) * - + 70 col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3581
SELECT - CASE - 99 WHEN + MAX( ALL + 77 ) + MIN( DISTINCT - 66 ) THEN - COUNT( * ) / + COUNT( * ) + 40 + + CASE + - 50 WHEN + - 20 * + MAX( DISTINCT 32 ) + + - 59 THEN NULLIF ( - 75, + 68 ) + - CAST( NULL AS SIGNED ) ELSE NULL END / - - 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3581
SELECT - CASE - 99 WHEN + MAX ( ALL + 77 ) + MIN ( DISTINCT - 66 ) THEN - COUNT ( * ) / + COUNT ( * ) + 40 + + CASE + - 50 WHEN + - 20 * + MAX ( DISTINCT 32 ) + + - 59 THEN NULLIF ( - 75, + 68 ) + - CAST ( NULL AS INTEGER ) ELSE NULL END / - - 19 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3582
SELECT ALL 25 + + MAX( CASE 7 WHEN + + 55 THEN + + 4 ELSE NULL END ), + 86 DIV - 93 col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3582
SELECT ALL 25 + + MAX ( CASE 7 WHEN + + 55 THEN + + 4 ELSE NULL END ), + 86 / - 93 col1
----
NULL
0

query II rowsort
SELECT DISTINCT 95 col0, - 72 col0
----
95
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3584
SELECT + 7 - AVG ( ( - 10 ) ) + CAST( NULL AS SIGNED ) * + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3584
SELECT + 7 - AVG ( ( - 10 ) ) + CAST ( NULL AS INTEGER ) * + 91 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT + 83 + + 78 + + 43 + - ( - 76 ) - + 30 * - COALESCE ( - - COUNT( * ), 59 ) * COUNT( * ) - 28 * - - ( 99 ) * 57 AS col1
----
-157694

skipif mysql # not compatible
query I rowsort label-3585
SELECT + 83 + + 78 + + 43 + - ( - 76 ) - + 30 * - COALESCE ( - - COUNT ( * ), 59 ) * COUNT ( * ) - 28 * - - ( 99 ) * 57 AS col1
----
-157694

query I rowsort
SELECT - 89 * - 92
----
8188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3587
SELECT - COUNT( * ) + - CAST( 23 AS SIGNED ) + 36 - - + ( 88 ) * + 3 * 89 AS col0
----
23508

skipif mysql # not compatible
query I rowsort label-3587
SELECT - COUNT ( * ) + - CAST ( 23 AS INTEGER ) + 36 - - + ( 88 ) * + 3 * 89 AS col0
----
23508

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3589
SELECT ALL + 32 AS col1, CAST( NULL AS SIGNED ) * - 30 * + 13 col1
----
32
NULL

skipif mysql # not compatible
query II rowsort label-3589
SELECT ALL + 32 AS col1, CAST ( NULL AS INTEGER ) * - 30 * + 13 col1
----
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT ALL + + 50 - 64 * COALESCE ( + COUNT( * ), COUNT( * ) * + + 3 )
----
-14

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL + + 50 - 64 * COALESCE ( + COUNT ( * ), COUNT ( * ) * + + 3 )
----
-14

query I rowsort
SELECT + 10 * 61
----
610

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT DISTINCT - 96 - - COUNT( * ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT - 96 - - COUNT ( * ) AS col1
----
-95

query II rowsort
SELECT ALL 77 AS col1, 37 * 27 + 47 AS col0
----
77
1046

query I rowsort
SELECT - CASE + 95 WHEN 70 + + - 62 THEN 71 * + + 93 - + - 42 + + + 80 * + 48 END
----
NULL

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

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

query I rowsort
SELECT ALL - 63 - - 47
----
-16

query I rowsort
SELECT - - 52 * 67 AS col0
----
3484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3598
SELECT + + CASE - AVG ( - 69 ) WHEN + + CAST( - NULLIF ( CAST( + - COUNT( * ) AS SIGNED ), + SUM( 22 ) ) AS SIGNED ) THEN - - 28 END + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3598
SELECT + + CASE - AVG ( - 69 ) WHEN + + CAST ( - NULLIF ( CAST ( + - COUNT ( * ) AS INTEGER ), + SUM ( 22 ) ) AS INTEGER ) THEN - - 28 END + + - COUNT ( * )
----
NULL

query I rowsort
SELECT - + 78 * - + 10 * 85 AS col2
----
66300

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT DISTINCT - - 96 * + 68 * - ( 74 ) * + - COUNT( * )
----
483072

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT - - 96 * + 68 * - ( 74 ) * + - COUNT ( * )
----
483072

query I rowsort
SELECT ALL 96 * 7 AS col1
----
672

query I rowsort
SELECT ALL + AVG ( CASE 37 WHEN - 7 + + 81 THEN NULL WHEN - 82 THEN + + 34 END ) AS col1
----
NULL

query I rowsort
SELECT ALL + - 54 * + 8 + + 30 AS col1
----
-402

query II rowsort
SELECT 76 AS col2, - ( + ( + - 13 ) ) AS col2
----
76
13

query I rowsort
SELECT NULLIF ( + 39, ( 2 ) )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT COALESCE ( + COUNT( * ), 73 + 27 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3606
SELECT COALESCE ( + COUNT ( * ), 73 + 27 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT ALL MIN( + 82 ) * + + ( - - 61 ) * 85 + 33 + - 65
----
425138

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL MIN ( + 82 ) * + + ( - - 61 ) * 85 + 33 + - 65
----
425138

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT + 7 * + COUNT( * ) * - - SUM( DISTINCT + 37 ) * - 90 * - 91 + + 56 AS col1
----
2121266

skipif mysql # not compatible
query I rowsort label-3608
SELECT + 7 * + COUNT ( * ) * - - SUM ( DISTINCT + 37 ) * - 90 * - 91 + + 56 AS col1
----
2121266

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3609
SELECT - 67 - - - CAST( NULL AS DECIMAL ) + + 23 * - 86, + 11 - CAST( - 6 AS SIGNED ) col1, - ( + 65 ) * + ( MIN( - 25 ) ) AS col0
----
NULL
17
1625

skipif mysql # not compatible
query III rowsort label-3609
SELECT - 67 - - - CAST ( NULL AS REAL ) + + 23 * - 86, + 11 - CAST ( - 6 AS INTEGER ) col1, - ( + 65 ) * + ( MIN ( - 25 ) ) AS col0
----
NULL
17
1625

query I rowsort
SELECT DISTINCT 7 * 89 + 56
----
679

query I rowsort
SELECT CASE - 71 WHEN 75 THEN + - 78 - - + 47 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT ALL - 15 * 93 + + 39 + 10 DIV + + 3 AS col1
----
-1353

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL - 15 * 93 + + 39 + 10 / + + 3 AS col1
----
-1353

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT - 7 + - - 76 + 57 * - CASE - ( - - 62 ) WHEN + COUNT( * ) / + + 53 THEN + 92 + 76 / 1 * + + COUNT( * ) * ( + 47 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT - 7 + - - 76 + 57 * - CASE - ( - - 62 ) WHEN + COUNT ( * ) / + + 53 THEN + 92 + 76 / 1 * + + COUNT ( * ) * ( + 47 ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT - 83 + ( - ( + - MAX( 4 ) ) ) + SUM( ALL + - 31 )
----
-110

skipif mysql # not compatible
query I rowsort label-3616
SELECT - 83 + ( - ( + - MAX ( 4 ) ) ) + SUM ( ALL + - 31 )
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT ALL CASE 7 WHEN + CASE 0 WHEN + 18 THEN 56 - + COUNT( * ) + - - 74 * 20 WHEN + - 12 THEN NULL ELSE NULL END THEN COUNT( 74 ) ELSE + 1 END - + COUNT( * ) + - - 39 + + - 39
----
0

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL CASE 7 WHEN + CASE 0 WHEN + 18 THEN 56 - + COUNT ( * ) + - - 74 * 20 WHEN + - 12 THEN NULL ELSE NULL END THEN COUNT ( 74 ) ELSE + 1 END - + COUNT ( * ) + - - 39 + + - 39
----
0

query I rowsort
SELECT + 77 * - + 45 AS col2
----
-3465

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT + 53 + - 19 + - 10 + + COALESCE ( - 73, 13 ) + + CASE - 50 WHEN + 57 THEN NULL WHEN - 25 * - 88 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT + 53 + - 19 + - 10 + + COALESCE ( - 73, 13 ) + + CASE - 50 WHEN + 57 THEN NULL WHEN - 25 * - 88 THEN + COUNT ( * ) END
----
NULL

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

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

query I rowsort
SELECT + - 73 + - + 38 col0
----
-111

query I rowsort
SELECT + + 98 + - 24
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT + 70 + + 66 * - - 60 + - COALESCE ( 82, - COUNT( * ) ) * - 34 * - - 72
----
204766

skipif mysql # not compatible
query I rowsort label-3623
SELECT + 70 + + 66 * - - 60 + - COALESCE ( 82, - COUNT ( * ) ) * - 34 * - - 72
----
204766

onlyif mysql # aggregate syntax: 
query II rowsort label-3624
SELECT CASE - COUNT( * ) WHEN + COUNT( * ) THEN - + COUNT( ALL + - 24 ) * + + 96 WHEN 31 THEN NULL ELSE NULL END AS col1, 58 * - 35
----
NULL
-2030

skipif mysql # not compatible
query II rowsort label-3624
SELECT CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN - + COUNT ( ALL + - 24 ) * + + 96 WHEN 31 THEN NULL ELSE NULL END AS col1, 58 * - 35
----
NULL
-2030

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

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

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

skipif mysql # not compatible
query I rowsort label-3626
SELECT + COUNT ( ALL - 13 ) + 1 AS col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3627
SELECT - 57 + 26 AS col0, MAX( 36 )
----
-31
36

skipif mysql # not compatible
query II rowsort label-3627
SELECT - 57 + 26 AS col0, MAX ( 36 )
----
-31
36

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

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

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

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT 85 * + COUNT ( * ) AS col2
----
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ALL COUNT( + 89 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL COUNT ( + 89 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT + - 37 * 26 + - COUNT( * ) + + + 97 + 2 AS col2
----
-864

skipif mysql # not compatible
query I rowsort label-3632
SELECT + - 37 * 26 + - COUNT ( * ) + + + 97 + 2 AS col2
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT + 86 * - + COUNT( - - 69 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-3633
SELECT + 86 * - + COUNT ( - - 69 ) AS col2
----
-86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3634
SELECT - COALESCE ( + 4, - - ( - + 74 ) DIV - NULLIF ( - + MAX( ALL + CASE + + 12 WHEN + 79 THEN + 84 ELSE NULL END ), - CAST( NULL AS DECIMAL ) ) + + 55, + 32 )
----
-4

skipif mysql # not compatible
query I rowsort label-3634
SELECT - COALESCE ( + 4, - - ( - + 74 ) / - NULLIF ( - + MAX ( ALL + CASE + + 12 WHEN + 79 THEN + 84 ELSE NULL END ), - CAST ( NULL AS REAL ) ) + + 55, + 32 )
----
-4

query I rowsort
SELECT - 60 * - 84 AS col0
----
5040

onlyif mysql # DIV for integer division: 
query I rowsort label-3636
SELECT ALL - 72 DIV + 76 + + 22
----
22

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL - 72 / + 76 + + 22
----
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3637
SELECT DISTINCT + NULLIF ( + 74, - + 46 + - CAST( - + 39 AS DECIMAL ) + + 57 ) DIV - SUM( + ( - + 6 ) ) + + + COALESCE ( + - 99, COUNT( * ) ) + + 32 + 54 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT + NULLIF ( + 74, - + 46 + - CAST ( - + 39 AS REAL ) + + 57 ) / - SUM ( + ( - + 6 ) ) + + + COALESCE ( + - 99, COUNT ( * ) ) + + 32 + 54 AS col0
----
-1

query II rowsort
SELECT DISTINCT - 78 AS col2, + 38 AS col2
----
-78
38

query I rowsort
SELECT 7 * 85
----
595

query I rowsort
SELECT - 40 * 5 + 91
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-3641
SELECT DISTINCT + COUNT( ALL - 33 ) - - 79, COUNT( * ) + - - ( 5 ) + - 44 AS col0
----
80
-38

skipif mysql # not compatible
query II rowsort label-3641
SELECT DISTINCT + COUNT ( ALL - 33 ) - - 79, COUNT ( * ) + - - ( 5 ) + - 44 AS col0
----
80
-38

query II rowsort
SELECT DISTINCT - 58, + 12 AS col0
----
-58
12

query I rowsort
SELECT 32 * - + 88
----
-2816

query I rowsort
SELECT ALL - ( - + NULLIF ( + 52, - 17 / - - 63 + 42 ) ) col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT DISTINCT - 96 - - + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT - 96 - - + COUNT ( * )
----
-95

query I rowsort
SELECT ALL 24 * + - 76 AS col2
----
-1824

query II rowsort
SELECT DISTINCT 59 AS col2, 48
----
59
48

query I rowsort
SELECT - 45 - + 38 AS col1
----
-83

query I rowsort
SELECT 94 * 31 AS col0
----
2914

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3650
SELECT ALL + - 54 * CAST( NULL AS DECIMAL ) / + 6 + - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL + - 54 * CAST ( NULL AS REAL ) / + 6 + - 33 AS col0
----
NULL

query I rowsort
SELECT + 37 + - 61
----
-24

query II rowsort
SELECT - - 87, + 42 AS col1
----
87
42

query I rowsort
SELECT ALL + - 62 * + 44
----
-2728

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3655
SELECT ALL - SUM( DISTINCT ( + 92 ) ) AS col1, 39 * 46 * - 75 * 90 + - - CAST( NULL AS SIGNED ) + - CASE - ( + 35 ) WHEN 6 THEN NULL ELSE - 67 END - + - SUM( + 34 ) * 58 AS col0
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-3655
SELECT ALL - SUM ( DISTINCT ( + 92 ) ) AS col1, 39 * 46 * - 75 * 90 + - - CAST ( NULL AS INTEGER ) + - CASE - ( + 35 ) WHEN 6 THEN NULL ELSE - 67 END - + - SUM ( + 34 ) * 58 AS col0
----
-92
NULL

query I rowsort
SELECT ( + - 41 ) - - 57 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT ALL + SUM( + ( - 84 ) ) + 30 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL + SUM ( + ( - 84 ) ) + 30 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-3658
SELECT ALL 35 AS col2, 85 * COUNT( * ) - + - ( - 89 )
----
35
-4

skipif mysql # not compatible
query II rowsort label-3658
SELECT ALL 35 AS col2, 85 * COUNT ( * ) - + - ( - 89 )
----
35
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT DISTINCT + COUNT( ALL - - 27 )
----
1

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT + COUNT ( ALL - - 27 )
----
1

query I rowsort
SELECT ALL 14 + 14
----
28

query I rowsort
SELECT 76 * - 43 + + 84 AS col2
----
-3184

query I rowsort
SELECT + 53 * 24 col0
----
1272

query I rowsort
SELECT - - COALESCE ( + + 46, + - 91 - - 62, - 7 ) AS col2
----
46

query II rowsort
SELECT 75 AS col1, - 59 * + 10 * - 35 col1
----
75
20650

query I rowsort
SELECT ALL - 37 + - + 71 + + - 98 + - 5
----
-211

onlyif mysql # DIV for integer division: 
query I rowsort label-3666
SELECT ALL - 68 + 38 DIV - 86 * + + 81 * + 9 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL - 68 + 38 / - 86 * + + 81 * + 9 AS col0
----
-68

query II rowsort
SELECT 73 AS col0, COALESCE ( 10, - + 37 * + 98 ) AS col1
----
73
10

onlyif mysql # DIV for integer division: 
query II rowsort label-3668
SELECT ALL - 36 col2, 47 DIV 24
----
-36
1

skipif mysql # not compatible
query II rowsort label-3668
SELECT ALL - 36 col2, 47 / 24
----
-36
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3669
SELECT DISTINCT 15 + + MIN( + 94 ) - NULLIF ( 51, 21 ) + - 49 * + ( + COUNT( * ) ), 47 * 69 * + 8 + + 87 + + 86 AS col2
----
9
26117

skipif mysql # not compatible
query II rowsort label-3669
SELECT DISTINCT 15 + + MIN ( + 94 ) - NULLIF ( 51, 21 ) + - 49 * + ( + COUNT ( * ) ), 47 * 69 * + 8 + + 87 + + 86 AS col2
----
9
26117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3670
SELECT ALL 73 + CASE WHEN NOT 80 = - - 35 * - 20 * 39 + + 93 THEN + NULLIF ( + - 2, 78 DIV - - 68 * 31 ) DIV + + COUNT( * ) - 90 ELSE NULL END
----
-19

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL 73 + CASE WHEN NOT 80 = - - 35 * - 20 * 39 + + 93 THEN + NULLIF ( + - 2, 78 / - - 68 * 31 ) / + + COUNT ( * ) - 90 ELSE NULL END
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-3671
SELECT 17 DIV NULLIF ( - 96, + - 77 ) * - 96
----
0

skipif mysql # not compatible
query I rowsort label-3671
SELECT 17 / NULLIF ( - 96, + - 77 ) * - 96
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT + MAX( ( NULLIF ( 47, - 54 ) ) ) col1
----
47

skipif mysql # not compatible
query I rowsort label-3673
SELECT + MAX ( ( NULLIF ( 47, - 54 ) ) ) col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3674
SELECT ALL 2 DIV - ( 89 )
----
0

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL 2 / - ( 89 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3675
SELECT 45 * + MIN( DISTINCT + 67 ) + 27 AS col2, - CAST( NULL AS SIGNED ) + 51 AS col1
----
3042
NULL

skipif mysql # not compatible
query II rowsort label-3675
SELECT 45 * + MIN ( DISTINCT + 67 ) + 27 AS col2, - CAST ( NULL AS INTEGER ) + 51 AS col1
----
3042
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3676
SELECT - ( 20 ) * - - 98 + + + 87 + - 39 + + - 2 + + CASE + 47 WHEN + 8 * - CAST( - 38 AS SIGNED ) - + COALESCE ( + 43, - + 84 ) + - + 51 THEN + 76 * - + 60 WHEN - + 78 + ( - + 3 ) * 98 THEN 88 WHEN 10 THEN 14 + 15 - + COUNT( * ) * 26 ELSE NULL END * - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3676
SELECT - ( 20 ) * - - 98 + + + 87 + - 39 + + - 2 + + CASE + 47 WHEN + 8 * - CAST ( - 38 AS INTEGER ) - + COALESCE ( + 43, - + 84 ) + - + 51 THEN + 76 * - + 60 WHEN - + 78 + ( - + 3 ) * 98 THEN 88 WHEN 10 THEN 14 + 15 - + COUNT ( * ) * 26 ELSE NULL END * - + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT 52 * - + 5 * + SUM( ALL - - ( 52 ) )
----
-13520

skipif mysql # not compatible
query I rowsort label-3677
SELECT 52 * - + 5 * + SUM ( ALL - - ( 52 ) )
----
-13520

query I rowsort
SELECT DISTINCT + 91 * - + 9
----
-819

query III rowsort
SELECT 97 AS col1, - 61 AS col0, + ( + + 74 ) AS col2
----
97
-61
74

query II rowsort
SELECT DISTINCT - 74, - 33 AS col2
----
-74
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3681
SELECT ALL CAST( 59 AS SIGNED ) * - 42 AS col0
----
-2478

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL CAST ( 59 AS INTEGER ) * - 42 AS col0
----
-2478

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT + 16 * 97 + - COUNT( * )
----
1551

skipif mysql # not compatible
query I rowsort label-3682
SELECT + 16 * 97 + - COUNT ( * )
----
1551

query I rowsort
SELECT 67 * - 3 AS col2
----
-201

query II rowsort
SELECT ALL - 3, - 56 col1
----
-3
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3685
SELECT + COUNT( * ) + 99 AS col1, + 5 + + COUNT( * ) DIV - 20 AS col0
----
100
5

skipif mysql # not compatible
query II rowsort label-3685
SELECT + COUNT ( * ) + 99 AS col1, + 5 + + COUNT ( * ) / - 20 AS col0
----
100
5

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

skipif mysql # not compatible
query II rowsort label-3686
SELECT COUNT ( * ) - + COUNT ( * ), 70 / 70 col2
----
0
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3687
SELECT - CASE 37 WHEN - + 24 + 50 THEN NULL ELSE 43 + + 75 + 73 END * + - CAST( NULL AS SIGNED ) + - 53 + + 30 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT - CASE 37 WHEN - + 24 + 50 THEN NULL ELSE 43 + + 75 + 73 END * + - CAST ( NULL AS INTEGER ) + - 53 + + 30 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3688
SELECT ALL - 99 AS col2, SUM( 10 ) AS col0
----
-99
10

skipif mysql # not compatible
query II rowsort label-3688
SELECT ALL - 99 AS col2, SUM ( 10 ) AS col0
----
-99
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3689
SELECT COUNT( * ) DIV + 96 col2, - 86 AS col0
----
0
-86

skipif mysql # not compatible
query II rowsort label-3689
SELECT COUNT ( * ) / + 96 col2, - 86 AS col0
----
0
-86

query I rowsort
SELECT DISTINCT - + 89 * - 19 AS col1
----
1691

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT ALL + 93 + + 26 + COUNT( * ) AS col1
----
120

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL + 93 + + 26 + COUNT ( * ) AS col1
----
120

query II rowsort
SELECT DISTINCT - 63 AS col2, 7 + - 8 + + 37
----
-63
36

query I rowsort
SELECT 81 + - + 42
----
39

onlyif mysql # DIV for integer division: 
query II rowsort label-3694
SELECT ALL 91, 67 DIV + - 78 AS col2
----
91
0

skipif mysql # not compatible
query II rowsort label-3694
SELECT ALL 91, 67 / + - 78 AS col2
----
91
0

query II rowsort
SELECT - 2 AS col1, - 53 col2
----
-2
-53

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

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

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

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

query I rowsort
SELECT ALL - - ( - 63 ) + - + 87
----
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-3699
SELECT + MIN( + + 64 ) + - 85 + - + 45 AS col0, - 77 AS col1
----
-66
-77

skipif mysql # not compatible
query II rowsort label-3699
SELECT + MIN ( + + 64 ) + - 85 + - + 45 AS col0, - 77 AS col1
----
-66
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3700
SELECT + 3 col2, MIN( 72 ) + + 94 + - + 61 DIV + 30 + 33 * 74 * - 15 AS col2
----
3
-36466

skipif mysql # not compatible
query II rowsort label-3700
SELECT + 3 col2, MIN ( 72 ) + + 94 + - + 61 / + 30 + 33 * 74 * - 15 AS col2
----
3
-36466

query I rowsort
SELECT DISTINCT + + 34 + 40 + + 83 + - - 92 * - + 96 * 79 * - + 29
----
20234269

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT DISTINCT - ( + 99 ) + - COALESCE ( - 68, + + COUNT( * ), 42 ) + - - ( + 11 )
----
-20

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT - ( + 99 ) + - COALESCE ( - 68, + + COUNT ( * ), 42 ) + - - ( + 11 )
----
-20

query II rowsort
SELECT + 44 + 25, + 28 + + - 57 * + 41 * - 35 * - 67 AS col0
----
69
-5480237

query I rowsort
SELECT DISTINCT ( - - 4 ) - 69 AS col0
----
-65

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

query I rowsort
SELECT - 32 * + - 46 * + - 27
----
-39744

query I rowsort
SELECT COALESCE ( 53, - + ( ( - 58 ) ) )
----
53

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

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

query I rowsort
SELECT CASE 95 WHEN - 13 THEN - 77 ELSE ( + 47 ) END AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3711
SELECT NULLIF ( - COALESCE ( + 73, - - CAST( 84 AS SIGNED ) * - + COALESCE ( + 66, + 9 + - + 38 + 81 ) * - + COUNT( * ) * - + CAST( NULL AS SIGNED ) + - 12, 36 ), + 12 + + 3 + CASE 90 WHEN + 19 THEN - + 50 * - + 82 - - 40 + + 32 * + 59 ELSE - ( + MAX( ALL + - 96 ) ) END + - - COUNT( - COALESCE ( + 90, - - 37 DIV + 63 * + 88 ) ) + - 72 ) DIV - + 72 + - NULLIF ( - 67, 90 ) DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-3711
SELECT NULLIF ( - COALESCE ( + 73, - - CAST ( 84 AS INTEGER ) * - + COALESCE ( + 66, + 9 + - + 38 + 81 ) * - + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + - 12, 36 ), + 12 + + 3 + CASE 90 WHEN + 19 THEN - + 50 * - + 82 - - 40 + + 32 * + 59 ELSE - ( + MAX ( ALL + - 96 ) ) END + - - COUNT ( - COALESCE ( + 90, - - 37 / + 63 * + 88 ) ) + - 72 ) / - + 72 + - NULLIF ( - 67, 90 ) / - 59
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3712
SELECT ALL + 16 * + 88 * 71 * + - 62 DIV + COUNT( * ) - + 99
----
-6198115

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL + 16 * + 88 * 71 * + - 62 / + COUNT ( * ) - + 99
----
-6198115

query II rowsort
SELECT DISTINCT - 95 * + - 11, + 88 AS col1
----
1045
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT + 37 * - NULLIF ( 9, + - 21 * SUM( - + 37 ) )
----
-333

skipif mysql # not compatible
query I rowsort label-3714
SELECT + 37 * - NULLIF ( 9, + - 21 * SUM ( - + 37 ) )
----
-333

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3715
SELECT ALL SUM( ALL 58 ) * - 82 * 54 - CAST( + ( COUNT( * ) ) AS SIGNED ) + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL SUM ( ALL 58 ) * - 82 * 54 - CAST ( + ( COUNT ( * ) ) AS INTEGER ) + + - CAST ( NULL AS REAL )
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-3717
SELECT + COUNT ( * ) * + + 76 * 19 AS col1
----
1444

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

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

query I rowsort
SELECT + 8 * - 59 + + 49
----
-423

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

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

query I rowsort
SELECT + - 50 * - 52 col0
----
2600

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3723
SELECT - ( + CAST( NULL AS SIGNED ) ) col0, 33 + + 65
----
NULL
98

skipif mysql # not compatible
query II rowsort label-3723
SELECT - ( + CAST ( NULL AS INTEGER ) ) col0, 33 + + 65
----
NULL
98

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

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL - CAST ( NULL AS INTEGER ) + 67 + - 28
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3725
SELECT + + 23 + + COALESCE ( + 21, 69 - + + 26 DIV - + 78 + - - CAST( SUM( - ( - 65 ) ) AS SIGNED ), + COUNT( * ) ) - + - 89 AS col2
----
133

skipif mysql # not compatible
query I rowsort label-3725
SELECT + + 23 + + COALESCE ( + 21, 69 - + + 26 / - + 78 + - - CAST ( SUM ( - ( - 65 ) ) AS INTEGER ), + COUNT ( * ) ) - + - 89 AS col2
----
133

query II rowsort
SELECT ALL + + 7 + - 99, - 53 AS col0
----
-92
-53

query I rowsort
SELECT DISTINCT + 35 - - ( + 0 ) AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3728
SELECT DISTINCT + + 78 DIV + ( 86 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT + + 78 / + ( 86 ) AS col2
----
0

query I rowsort
SELECT ALL + 81 * - - 4
----
324

query I rowsort
SELECT - ( + - 17 ) - + 39
----
-22

query II rowsort
SELECT 42, 78 AS col1
----
42
78

query I rowsort
SELECT DISTINCT + CASE - 37 WHEN + 30 THEN + COALESCE ( 62, - 47 ) WHEN - - NULLIF ( 4, + 95 ) THEN + - 74 END * + 33 col1
----
NULL

query I rowsort
SELECT DISTINCT - 8 * 48
----
-384

query I rowsort
SELECT - 84 * 31 * + 19 AS col2
----
-49476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3735
SELECT ALL + 97 AS col0, - CASE + ( + 61 ) WHEN + 36 + + 16 THEN - AVG ( + 74 ) * - - 0 + + 91 ELSE NULL END * - SUM( ALL + CAST( NULL AS SIGNED ) ) - + + 73 AS col2
----
97
NULL

skipif mysql # not compatible
query II rowsort label-3735
SELECT ALL + 97 AS col0, - CASE + ( + 61 ) WHEN + 36 + + 16 THEN - AVG ( + 74 ) * - - 0 + + 91 ELSE NULL END * - SUM ( ALL + CAST ( NULL AS INTEGER ) ) - + + 73 AS col2
----
97
NULL

query I rowsort
SELECT - 78 - 7 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT DISTINCT - ( NULLIF ( NULLIF ( - 7, - COALESCE ( - 56, COUNT( ALL + ( - - 67 ) ) * - 8 * - 53 / 29 ) ), 35 + - - 41 ) ) * 94 col0
----
658

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT - ( NULLIF ( NULLIF ( - 7, - COALESCE ( - 56, COUNT ( ALL + ( - - 67 ) ) * - 8 * - 53 / 29 ) ), 35 + - - 41 ) ) * 94 col0
----
658

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3738
SELECT 46 DIV + COUNT( * ) + COUNT( * ) + - - ( - 39 ) * - 92
----
3635

skipif mysql # not compatible
query I rowsort label-3738
SELECT 46 / + COUNT ( * ) + COUNT ( * ) + - - ( - 39 ) * - 92
----
3635

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3739
SELECT CAST( NULL AS SIGNED ), 45 * + 31 col1
----
NULL
1395

skipif mysql # not compatible
query II rowsort label-3739
SELECT CAST ( NULL AS INTEGER ), 45 * + 31 col1
----
NULL
1395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3740
SELECT CAST( + - 40 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-3740
SELECT CAST ( + - 40 AS INTEGER )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT COUNT( * ) * + COALESCE ( - 30, + 63 ) + - - 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3741
SELECT COUNT ( * ) * + COALESCE ( - 30, + 63 ) + - - 30 AS col1
----
0

query I rowsort
SELECT + COALESCE ( + 12, - - 87, 52 )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3743
SELECT + COUNT( * ) + + + ( - 0 ) AS col2, 84
----
1
84

skipif mysql # not compatible
query II rowsort label-3743
SELECT + COUNT ( * ) + + + ( - 0 ) AS col2, 84
----
1
84

query I rowsort
SELECT ALL + ( - 88 ) * + 30 + - 35 AS col1
----
-2675

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT + + 63 + COUNT( * ) + - ( + 53 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-3745
SELECT + + 63 + COUNT ( * ) + - ( + 53 ) AS col0
----
11

query II rowsort
SELECT ALL + + 31 AS col0, 84
----
31
84

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3748
SELECT DISTINCT 43 * + 53 + + - ( - + 88 ) + + - CASE + 84 WHEN + NULLIF ( + + 82, - 44 ) * + + 21 + - ( + - CASE WHEN NOT 13 <> - 71 THEN NULL ELSE - COUNT( * ) + - 78 - - - 63 * 30 END ) THEN NULL ELSE + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT 43 * + 53 + + - ( - + 88 ) + + - CASE + 84 WHEN + NULLIF ( + + 82, - 44 ) * + + 21 + - ( + - CASE WHEN NOT 13 <> - 71 THEN NULL ELSE - COUNT ( * ) + - 78 - - - 63 * 30 END ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 92 col1, 40 + ( - 58 )
----
92
-18

query I rowsort
SELECT ALL 93 * + 80 + + 34 AS col2
----
7474

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

skipif mysql # not compatible
query II rowsort label-3751
SELECT DISTINCT + COUNT ( * ) AS col2, + 76 / + 74
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3752
SELECT + 41 DIV + + NULLIF ( - - 79, COUNT( * ) DIV - - SUM( CAST( NULL AS SIGNED ) ) * - 37 + - + 48 * 74 ) AS col2, + ( 10 ) AS col2
----
0
10

skipif mysql # not compatible
query II rowsort label-3752
SELECT + 41 / + + NULLIF ( - - 79, COUNT ( * ) / - - SUM ( CAST ( NULL AS INTEGER ) ) * - 37 + - + 48 * 74 ) AS col2, + ( 10 ) AS col2
----
0
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT - SUM( - - 14 ) * + MIN( - ( - 93 ) ) * + 98
----
-127596

skipif mysql # not compatible
query I rowsort label-3753
SELECT - SUM ( - - 14 ) * + MIN ( - ( - 93 ) ) * + 98
----
-127596

query I rowsort
SELECT - + CASE + 60 WHEN 18 THEN 53 WHEN ( 69 ) THEN + 60 END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL COUNT( * ) - - 87 - 81
----
7

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL COUNT ( * ) - - 87 - 81
----
7

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3758
SELECT - - CAST( 60 AS SIGNED ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3758
SELECT - - CAST ( 60 AS INTEGER ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT + ( - CASE 79 WHEN - - 30 * - - SUM( 2 ) THEN + - AVG ( - 54 ) END ) + - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT + ( - CASE 79 WHEN - - 30 * - - SUM ( 2 ) THEN + - AVG ( - 54 ) END ) + - + 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3760
SELECT ALL - 6 * + MAX( DISTINCT + CAST( 41 AS SIGNED ) ) AS col0
----
-246

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL - 6 * + MAX ( DISTINCT + CAST ( 41 AS INTEGER ) ) AS col0
----
-246

query I rowsort
SELECT ALL 69 * + - 55 AS col2
----
-3795

query I rowsort
SELECT 36 * - 53 AS col0
----
-1908

query I rowsort
SELECT 42 - - 67 AS col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT ALL COUNT( * ) * - + MAX( ALL - + 32 ) * - ( - + 70 ) AS col2
----
2240

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL COUNT ( * ) * - + MAX ( ALL - + 32 ) * - ( - + 70 ) AS col2
----
2240

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3766
SELECT 32 + + - 67 AS col2, - 42 * + COUNT( * ) * - 48 - + + 45
----
-35
1971

skipif mysql # not compatible
query II rowsort label-3766
SELECT 32 + + - 67 AS col2, - 42 * + COUNT ( * ) * - 48 - + + 45
----
-35
1971

query II rowsort
SELECT 42 + - - 19 AS col2, 6 AS col2
----
61
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3768
SELECT ALL ( - 19 ) DIV + ( 30 ) * - 18 * MIN( ALL - COALESCE ( 93, 97 + - CAST( NULL AS SIGNED ), + + 69 + - 91 + + - 60 + + ( + 51 ) ) ) * + - 64 + - 9 + - 41 + 6 + 85 + + - 89 DIV 15, - 23 * - 47 - - 14 + - 85 col2
----
36
1010

skipif mysql # not compatible
query II rowsort label-3768
SELECT ALL ( - 19 ) / + ( 30 ) * - 18 * MIN ( ALL - COALESCE ( 93, 97 + - CAST ( NULL AS INTEGER ), + + 69 + - 91 + + - 60 + + ( + 51 ) ) ) * + - 64 + - 9 + - 41 + 6 + 85 + + - 89 / 15, - 23 * - 47 - - 14 + - 85 col2
----
36
1010

query I rowsort
SELECT 51 + + - 72
----
-21

query I rowsort
SELECT 23 * 13 + + 1 col2
----
300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3771
SELECT COUNT( ALL - + 2 ) DIV 25 * + - 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3771
SELECT COUNT ( ALL - + 2 ) / 25 * + - 42 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT 41 * + CASE - - 55 WHEN + 45 + - + 49 THEN NULL WHEN 15 THEN - 11 END / + - 61 * + + 3 * - + COUNT( * ) * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT 41 * + CASE - - 55 WHEN + 45 + - + 49 THEN NULL WHEN 15 THEN - 11 END / + - 61 * + + 3 * - + COUNT ( * ) * + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT ALL - 60 * + 13 * + COUNT( * )
----
-780

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL - 60 * + 13 * + COUNT ( * )
----
-780

query II rowsort
SELECT 51 * - - 55 AS col2, + 3
----
2805
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3775
SELECT 86 + + 35 DIV - 89 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-3775
SELECT 86 + + 35 / - 89 AS col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3776
SELECT DISTINCT + COUNT( * ) + + 27, 63 AS col2
----
28
63

skipif mysql # not compatible
query II rowsort label-3776
SELECT DISTINCT + COUNT ( * ) + + 27, 63 AS col2
----
28
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3777
SELECT 60 DIV 24 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3777
SELECT 60 / 24 AS col2
----
2

query I rowsort
SELECT ALL - 88 + + - ( + 19 )
----
-107

query I rowsort
SELECT DISTINCT - NULLIF ( 91, - 93 ) AS col1
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3780
SELECT ALL + 61 * + + 36 AS col1, - CAST( NULL AS DECIMAL ) col2
----
2196
NULL

skipif mysql # not compatible
query II rowsort label-3780
SELECT ALL + 61 * + + 36 AS col1, - CAST ( NULL AS REAL ) col2
----
2196
NULL

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

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

query I rowsort
SELECT DISTINCT + 95 + + 34 AS col1
----
129

query I rowsort
SELECT ALL - - 40 + - - 81 * + - 42
----
-3362

query II rowsort
SELECT + 45 * + 0 - 4 + - 20 col1, + 6 * - 45
----
-24
-270

query I rowsort
SELECT DISTINCT - ( 65 ) - ( + 1 ) + + 12
----
-54

query I rowsort
SELECT + 48 * - - 69
----
3312

query I rowsort
SELECT DISTINCT 87 * - 90 * - 3
----
23490

query I rowsort
SELECT DISTINCT + 52 * - 72
----
-3744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3789
SELECT COALESCE ( 9, NULLIF ( 81, + 90 ) ) DIV + NULLIF ( ( - 26 ), + - NULLIF ( - - SUM( ALL + + 16 ), 55 * - 1 + - - 31 * - - 40 * + COUNT( 18 ) * - + COUNT( * ) * + + 81 + + 43 - 7 * + - 48 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3789
SELECT COALESCE ( 9, NULLIF ( 81, + 90 ) ) / + NULLIF ( ( - 26 ), + - NULLIF ( - - SUM ( ALL + + 16 ), 55 * - 1 + - - 31 * - - 40 * + COUNT ( 18 ) * - + COUNT ( * ) * + + 81 + + 43 - 7 * + - 48 ) )
----
0

query I rowsort
SELECT DISTINCT - ( + COALESCE ( 1, + 12 ) )
----
-1

query I rowsort
SELECT DISTINCT + 18 * + 58 + - ( + - 79 ) AS col0
----
1123

query I rowsort
SELECT 14 + + 56 * + + 99 col2
----
5558

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3793
SELECT - COALESCE ( + 9, + 4 + NULLIF ( - - 0, - + CAST( 4 AS DECIMAL ) + - ( - 97 ) ) ) DIV 94 - - 18 + + 54 * - 99
----
-5328

skipif mysql # not compatible
query I rowsort label-3793
SELECT - COALESCE ( + 9, + 4 + NULLIF ( - - 0, - + CAST ( 4 AS REAL ) + - ( - 97 ) ) ) / 94 - - 18 + + 54 * - 99
----
-5328

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT 45 * + 36 * - + COUNT( * )
----
-1620

skipif mysql # not compatible
query I rowsort label-3794
SELECT 45 * + 36 * - + COUNT ( * )
----
-1620

query I rowsort
SELECT - 55 + + + 63 AS col2
----
8

query I rowsort
SELECT 4 * 64
----
256

onlyif mysql # DIV for integer division: 
query I rowsort label-3797
SELECT DISTINCT 38 DIV 77 * - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT 38 / 77 * - 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-3798
SELECT DISTINCT 61 col2, 75 + - 25 AS col0, COUNT( + 35 ) AS col1
----
61
50
1

skipif mysql # not compatible
query III rowsort label-3798
SELECT DISTINCT 61 col2, 75 + - 25 AS col0, COUNT ( + 35 ) AS col1
----
61
50
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3799
SELECT 26 DIV + 56 col1
----
0

skipif mysql # not compatible
query I rowsort label-3799
SELECT 26 / + 56 col1
----
0

query I rowsort
SELECT ALL 73 * NULLIF ( - + 36, - - 41 )
----
-2628

query I rowsort
SELECT ALL 32 * + + 53
----
1696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3802
SELECT 45 + - + ( + CASE - + 18 WHEN + 72 THEN NULL WHEN ( 79 ) * - 10 * - 77 + + CAST( + + 33 AS SIGNED ) + - 77 - + + 77 * ( - - 88 ) + - 92 THEN 44 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3802
SELECT 45 + - + ( + CASE - + 18 WHEN + 72 THEN NULL WHEN ( 79 ) * - 10 * - 77 + + CAST ( + + 33 AS INTEGER ) + - 77 - + + 77 * ( - - 88 ) + - 92 THEN 44 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3803
SELECT ALL 37 + - + 64 + - - 66 * COALESCE ( - 62, - CAST( NULL AS SIGNED ) )
----
-4119

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL 37 + - + 64 + - - 66 * COALESCE ( - 62, - CAST ( NULL AS INTEGER ) )
----
-4119

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3805
SELECT CAST( - 85 AS SIGNED ) * + 34 col0, 68 AS col1
----
-2890
68

skipif mysql # not compatible
query II rowsort label-3805
SELECT CAST ( - 85 AS INTEGER ) * + 34 col0, 68 AS col1
----
-2890
68

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

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

query II rowsort
SELECT 4, 80 * ( + - 41 ) AS col1
----
4
-3280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3808
SELECT ALL 89 + - 35 - + - CAST( NULL AS DECIMAL ) * - COALESCE ( + CASE 82 WHEN 6 - + CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) THEN NULL WHEN - CASE - - 87 WHEN - - 52 THEN 58 * + 84 + + COUNT( * ) END * - - 92 THEN + COUNT( * ) * - 72 + + - COUNT( * ) + COUNT( ALL + ( - - 67 ) ) * 69 / + CAST( NULL AS SIGNED ) + - - ( - 40 ) END, + + 23 ) + + 23 + - + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL 89 + - 35 - + - CAST ( NULL AS REAL ) * - COALESCE ( + CASE 82 WHEN 6 - + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) THEN NULL WHEN - CASE - - 87 WHEN - - 52 THEN 58 * + 84 + + COUNT ( * ) END * - - 92 THEN + COUNT ( * ) * - 72 + + - COUNT ( * ) + COUNT ( ALL + ( - - 67 ) ) * 69 / + CAST ( NULL AS INTEGER ) + - - ( - 40 ) END, + + 23 ) + + 23 + - + 68
----
NULL

query II rowsort
SELECT - 88 AS col1, 5 AS col1
----
-88
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3810
SELECT CAST( - - 30 AS SIGNED ) * + + 57 + - ( + 42 ) AS col2, + 81
----
1668
81

skipif mysql # not compatible
query II rowsort label-3810
SELECT CAST ( - - 30 AS INTEGER ) * + + 57 + - ( + 42 ) AS col2, + 81
----
1668
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3811
SELECT ALL CAST( MIN( DISTINCT + 79 ) AS SIGNED ) + - 32 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL CAST ( MIN ( DISTINCT + 79 ) AS INTEGER ) + - 32 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT ALL + 19 + - 50 + + + 37 * 67 + - 6 * + - SUM( - 18 )
----
2340

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL + 19 + - 50 + + + 37 * 67 + - 6 * + - SUM ( - 18 )
----
2340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3813
SELECT 42 + + + CAST( NULL AS SIGNED ) - - + SUM( 40 ) * - 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3813
SELECT 42 + + + CAST ( NULL AS INTEGER ) - - + SUM ( 40 ) * - 73 AS col1
----
NULL

query I rowsort
SELECT + ( + 63 ) + - 60 * + + 35
----
-2037

query I rowsort
SELECT ALL - + 88 * + ( - 38 ) AS col2
----
3344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3816
SELECT - - ( + 16 ) - - COUNT( * ) * + 69 DIV - + 75 * + COUNT( DISTINCT - 0 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-3816
SELECT - - ( + 16 ) - - COUNT ( * ) * + 69 / - + 75 * + COUNT ( DISTINCT - 0 ) AS col0
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3817
SELECT + 30 DIV 80 + + COUNT( - 68 ) - + + 80 + - 59 AS col0
----
-138

skipif mysql # not compatible
query I rowsort label-3817
SELECT + 30 / 80 + + COUNT ( - 68 ) - + + 80 + - 59 AS col0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT - 32 * COUNT( * ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-3818
SELECT - 32 * COUNT ( * ) AS col1
----
-32

query I rowsort
SELECT ALL 2 * + 89 AS col2
----
178

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

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

query I rowsort
SELECT ALL + - 9 * ( + 21 )
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ALL + - MAX( - - 62 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL + - MAX ( - - 62 ) AS col2
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3823
SELECT DISTINCT + 22 * - + CAST( NULL AS SIGNED ) * 9 + - 52 - - 13 + - + ( - COUNT( * ) ) - - 59, 5 / + + COUNT( * ) - + + CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3823
SELECT DISTINCT + 22 * - + CAST ( NULL AS INTEGER ) * 9 + - 52 - - 13 + - + ( - COUNT ( * ) ) - - 59, 5 / + + COUNT ( * ) - + + CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT MIN( - 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-3824
SELECT MIN ( - 60 ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT DISTINCT + MAX( + + NULLIF ( + + 62, 34 ) )
----
62

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT + MAX ( + + NULLIF ( + + 62, 34 ) )
----
62

query I rowsort
SELECT - 86 + - 86 AS col1
----
-172

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3828
SELECT + - NULLIF ( COUNT( * ), 45 * CASE - 75 WHEN + + 34 * + 99 + - 12 + + 15 + - 32 / - - 71 * 0 * + ( - COUNT( * ) ) / + COUNT( * ) * CAST( NULL AS SIGNED ) / 63 THEN NULL ELSE 19 END * + + 74 * + 41 + - ( 30 ) * + 92 + - - 73 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3828
SELECT + - NULLIF ( COUNT ( * ), 45 * CASE - 75 WHEN + + 34 * + 99 + - 12 + + 15 + - 32 / - - 71 * 0 * + ( - COUNT ( * ) ) / + COUNT ( * ) * CAST ( NULL AS INTEGER ) / 63 THEN NULL ELSE 19 END * + + 74 * + 41 + - ( 30 ) * + 92 + - - 73 ) AS col1
----
-1

query I rowsort
SELECT + + 29 + - 54
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT - - COUNT( * ) * 94 + 53
----
147

skipif mysql # not compatible
query I rowsort label-3830
SELECT - - COUNT ( * ) * 94 + 53
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT - COALESCE ( + 0, - 84, - + 79 + COUNT( * ), 3 * - 78 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3831
SELECT - COALESCE ( + 0, - 84, - + 79 + COUNT ( * ), 3 * - 78 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3832
SELECT ALL CASE ( - CAST( + + 58 AS SIGNED ) ) WHEN + - 93 * + MAX( DISTINCT - 36 ) - - + 80 THEN 27 END, 46 AS col1
----
NULL
46

skipif mysql # not compatible
query II rowsort label-3832
SELECT ALL CASE ( - CAST ( + + 58 AS INTEGER ) ) WHEN + - 93 * + MAX ( DISTINCT - 36 ) - - + 80 THEN 27 END, 46 AS col1
----
NULL
46

query I rowsort
SELECT - 55 + + - 95 * - 81 AS col0
----
7640

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT ALL + SUM( ( - - 96 ) ) + - ( 24 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL + SUM ( ( - - 96 ) ) + - ( 24 ) AS col1
----
72

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3836
SELECT - 19 + + - CASE - - 47 WHEN + CAST( - - 11 AS SIGNED ) THEN NULL ELSE + COUNT( * ) * - 6 + + - COUNT( * ) END DIV CAST( - 77 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-3836
SELECT - 19 + + - CASE - - 47 WHEN + CAST ( - - 11 AS INTEGER ) THEN NULL ELSE + COUNT ( * ) * - 6 + + - COUNT ( * ) END / CAST ( - 77 AS INTEGER )
----
-19

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

skipif mysql # not compatible
query I rowsort label-3837
SELECT - 78 - + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3838
SELECT ALL 79, + 27 * 7 + - 74 * MAX( 14 ) * - COUNT( * ) * + 30 * + 51 AS col0
----
79
1585269

skipif mysql # not compatible
query II rowsort label-3838
SELECT ALL 79, + 27 * 7 + - 74 * MAX ( 14 ) * - COUNT ( * ) * + 30 * + 51 AS col0
----
79
1585269

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3840
SELECT + ( - CAST( + 8 AS SIGNED ) ) - + + COUNT( * ) - - - CAST( 39 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-3840
SELECT + ( - CAST ( + 8 AS INTEGER ) ) - + + COUNT ( * ) - - - CAST ( 39 AS INTEGER )
----
-48

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

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

query I rowsort
SELECT + 18 + - 96
----
-78

query II rowsort
SELECT DISTINCT 41 * - 96, 76 + - + 41 - 23 * - + 8 AS col2
----
-3936
219

query I rowsort
SELECT ALL + 45 * + 55 AS col2
----
2475

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3848
SELECT DISTINCT - 63 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT - 63 / - 90
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3849
SELECT ALL 81 * - COUNT( * ) - - CAST( + 21 AS SIGNED ) + - ( - - 99 ) * 93 AS col1, ( + ( 20 ) )
----
-9267
20

skipif mysql # not compatible
query II rowsort label-3849
SELECT ALL 81 * - COUNT ( * ) - - CAST ( + 21 AS INTEGER ) + - ( - - 99 ) * 93 AS col1, ( + ( 20 ) )
----
-9267
20

query I rowsort
SELECT + 87 * 22
----
1914

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

skipif mysql # not compatible
query I rowsort label-3851
SELECT - + COUNT ( * ) / - 80 col2
----
0

query II rowsort
SELECT ALL + - 49, - 93 + + 75 AS col0
----
-49
-18

query I rowsort
SELECT + - 63 * 51
----
-3213

onlyif mysql # DIV for integer division: 
query I rowsort label-3854
SELECT + 32 DIV 99 - + + 99
----
-99

skipif mysql # not compatible
query I rowsort label-3854
SELECT + 32 / 99 - + + 99
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3855
SELECT DISTINCT + - ( + CAST( NULL AS SIGNED ) ) * 64 - 8 + CASE + 71 WHEN + 29 + + 67 THEN + 98 + + 86 + + + COUNT( * ) + MIN( DISTINCT - 87 ) + + ( - 93 ) * + COUNT( * ) ELSE 59 - - 93 END - 9 / + - 73 + + - 55, 23 + 36 AS col1
----
NULL
59

skipif mysql # not compatible
query II rowsort label-3855
SELECT DISTINCT + - ( + CAST ( NULL AS INTEGER ) ) * 64 - 8 + CASE + 71 WHEN + 29 + + 67 THEN + 98 + + 86 + + + COUNT ( * ) + MIN ( DISTINCT - 87 ) + + ( - 93 ) * + COUNT ( * ) ELSE 59 - - 93 END - 9 / + - 73 + + - 55, 23 + 36 AS col1
----
NULL
59

query II rowsort
SELECT ALL + - 76 AS col0, - 13 AS col1
----
-76
-13

query I rowsort
SELECT ALL 15 * + - 9 AS col1
----
-135

query I rowsort
SELECT ALL - 99 * - 1 + - 99 + - - 90 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT DISTINCT + 19 * - 7 + - MIN( 24 )
----
-157

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT + 19 * - 7 + - MIN ( 24 )
----
-157

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

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

query I rowsort
SELECT ALL + 86 * + 73 + - 67 AS col2
----
6211

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT 1 * - CAST( + 29 AS SIGNED ) + NULLIF ( - ( + 70 ), - + 37 )
----
-99

skipif mysql # not compatible
query I rowsort label-3862
SELECT 1 * - CAST ( + 29 AS INTEGER ) + NULLIF ( - ( + 70 ), - + 37 )
----
-99

query II rowsort
SELECT - 2 + - 87 AS col2, 97 AS col0
----
-89
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3864
SELECT DISTINCT 42 * - 88 + 14 AS col0, + 87 * - COUNT( * ) - + + 35 * + + 78 * 36 + - CAST( - 75 AS SIGNED ) AS col1
----
-3682
-98292

skipif mysql # not compatible
query II rowsort label-3864
SELECT DISTINCT 42 * - 88 + 14 AS col0, + 87 * - COUNT ( * ) - + + 35 * + + 78 * 36 + - CAST ( - 75 AS INTEGER ) AS col1
----
-3682
-98292

query I rowsort
SELECT ALL + 56 + 40 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT DISTINCT + 74 + + MIN( + + 96 )
----
170

skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT + 74 + + MIN ( + + 96 )
----
170

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3867
SELECT DISTINCT - 11 * + CASE + 74 WHEN - 86 THEN + 77 ELSE NULL END * ( + - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT - 11 * + CASE + 74 WHEN - 86 THEN + 77 ELSE NULL END * ( + - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3868
SELECT DISTINCT 95 - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT 95 - - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3869
SELECT - COUNT( * ) + + - 89, + COUNT( * ) AS col0
----
-90
1

skipif mysql # not compatible
query II rowsort label-3869
SELECT - COUNT ( * ) + + - 89, + COUNT ( * ) AS col0
----
-90
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT ALL - 2 * + - MIN( DISTINCT 48 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL - 2 * + - MIN ( DISTINCT 48 ) AS col1
----
96

query I rowsort
SELECT - COALESCE ( 72, + - ( - + 76 ) )
----
-72

query I rowsort
SELECT - 30 - 94 + - 7
----
-131

query II rowsort
SELECT 66 - 43, 27 col0
----
23
27

query I rowsort
SELECT 69 * - + 44
----
-3036

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL COUNT( * ) - 56 - - 25 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL COUNT ( * ) - 56 - - 25 AS col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3877
SELECT DISTINCT CASE - 64 WHEN - 81 * CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * + - COUNT( + + 76 ) THEN - MIN( + 96 ) + - 76 + + + 18 WHEN + 75 THEN - - 59 WHEN - - 59 THEN + 36 ELSE + NULLIF ( - CAST( NULL AS SIGNED ), + 48 * 11 ) * + 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT CASE - 64 WHEN - 81 * CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * + - COUNT ( + + 76 ) THEN - MIN ( + 96 ) + - 76 + + + 18 WHEN + 75 THEN - - 59 WHEN - - 59 THEN + 36 ELSE + NULLIF ( - CAST ( NULL AS INTEGER ), + 48 * 11 ) * + 42 END
----
NULL

query I rowsort
SELECT 64 * - 11 AS col1
----
-704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3879
SELECT ALL + - 54 DIV + NULLIF ( - COUNT( * ), + 72 * - + 67 DIV + CAST( - 75 AS SIGNED ) ), 39 AS col0
----
54
39

skipif mysql # not compatible
query II rowsort label-3879
SELECT ALL + - 54 / + NULLIF ( - COUNT ( * ), + 72 * - + 67 / + CAST ( - 75 AS INTEGER ) ), 39 AS col0
----
54
39

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3881
SELECT - CAST( 92 AS SIGNED ) + + 80
----
-12

skipif mysql # not compatible
query I rowsort label-3881
SELECT - CAST ( 92 AS INTEGER ) + + 80
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT 90 * + 36 - + 39 * + SUM( - 37 ) AS col2
----
4683

skipif mysql # not compatible
query I rowsort label-3882
SELECT 90 * + 36 - + 39 * + SUM ( - 37 ) AS col2
----
4683

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT 33 * + + MIN( DISTINCT + + 72 ) * - - 86 AS col1
----
204336

skipif mysql # not compatible
query I rowsort label-3883
SELECT 33 * + + MIN ( DISTINCT + + 72 ) * - - 86 AS col1
----
204336

query I rowsort
SELECT ALL - 73 * + + 70 * - + ( - 12 ) AS col2
----
-61320

onlyif mysql # aggregate syntax: 
query II rowsort label-3885
SELECT 67 * - 23 + + 48 + + CASE CASE - 89 WHEN 11 * - - 84 THEN + + 98 WHEN - 37 / - 1 * - - 75 + - MAX( + 16 ) + - 89 + - - 9 + - + ( + 7 ) THEN NULL WHEN - 54 + 14 THEN COUNT( * ) WHEN + COUNT( * ) + 99 + 65 * - 13 THEN - 51 END WHEN 48 THEN - 76 + 54 END * + 75, 0 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3885
SELECT 67 * - 23 + + 48 + + CASE CASE - 89 WHEN 11 * - - 84 THEN + + 98 WHEN - 37 / - 1 * - - 75 + - MAX ( + 16 ) + - 89 + - - 9 + - + ( + 7 ) THEN NULL WHEN - 54 + 14 THEN COUNT ( * ) WHEN + COUNT ( * ) + 99 + 65 * - 13 THEN - 51 END WHEN 48 THEN - 76 + 54 END * + 75, 0 AS col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT - - ( + - 47 ) * - 14 + - - ( - COUNT( * ) ) + - - 17
----
674

skipif mysql # not compatible
query I rowsort label-3886
SELECT - - ( + - 47 ) * - 14 + - - ( - COUNT ( * ) ) + - - 17
----
674

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3887
SELECT 10 - - COUNT( * ) DIV - 13 * + 31 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-3887
SELECT 10 - - COUNT ( * ) / - 13 * + 31 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL 4 + + 48 + - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL 4 + + 48 + - COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT - MAX( - 7 ) * 98 + 30
----
716

skipif mysql # not compatible
query I rowsort label-3889
SELECT - MAX ( - 7 ) * 98 + 30
----
716

query I rowsort
SELECT COALESCE ( + 95, - 41 ) * - 39 + + 97 + + 41
----
-3567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3891
SELECT DISTINCT CASE 35 WHEN + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) THEN NULL ELSE - + 57 END DIV 71, 8 - - + 84 col2
----
0
92

skipif mysql # not compatible
query II rowsort label-3891
SELECT DISTINCT CASE 35 WHEN + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE - + 57 END / 71, 8 - - + 84 col2
----
0
92

query I rowsort
SELECT ALL 73 + + 69 + - + ( + 14 )
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3893
SELECT COALESCE ( + + CAST( - + 3 AS SIGNED ), - 66 ) * - - 3 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-3893
SELECT COALESCE ( + + CAST ( - + 3 AS INTEGER ), - 66 ) * - - 3 AS col2
----
-9

query I rowsort
SELECT ALL - 33 * + 15
----
-495

onlyif mysql # aggregate syntax: 
query II rowsort label-3895
SELECT - 21 col1, 19 * + COUNT( * ) * - 78
----
-21
-1482

skipif mysql # not compatible
query II rowsort label-3895
SELECT - 21 col1, 19 * + COUNT ( * ) * - 78
----
-21
-1482

query I rowsort
SELECT ALL + 69 + + 43 col2
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3897
SELECT CAST( - 87 AS SIGNED ) * + + 39 AS col1
----
-3393

skipif mysql # not compatible
query I rowsort label-3897
SELECT CAST ( - 87 AS INTEGER ) * + + 39 AS col1
----
-3393

query I rowsort
SELECT DISTINCT 72 - - 97
----
169

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

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

query I rowsort
SELECT DISTINCT - 88 - 50 col0
----
-138

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3902
SELECT 76 + 49 + + COUNT( * ) DIV - COUNT( * ) AS col2
----
124

skipif mysql # not compatible
query I rowsort label-3902
SELECT 76 + 49 + + COUNT ( * ) / - COUNT ( * ) AS col2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT COUNT( * ) + - COALESCE ( - 70, + COUNT( * ), 26 ) - - 85 * + COUNT( * )
----
156

skipif mysql # not compatible
query I rowsort label-3903
SELECT COUNT ( * ) + - COALESCE ( - 70, + COUNT ( * ), 26 ) - - 85 * + COUNT ( * )
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3904
SELECT DISTINCT - COALESCE ( - + 91, - 17 * - CAST( NULL AS SIGNED ) ) - - - 63 + - NULLIF ( + - COALESCE ( - COUNT( * ), 6 - + COUNT( * ) + + - 68 ), + 48 * - - 72 + - - 23 - + 16 * CAST( 23 AS SIGNED ) ) * + + 68 DIV - 7
----
37

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT - COALESCE ( - + 91, - 17 * - CAST ( NULL AS INTEGER ) ) - - - 63 + - NULLIF ( + - COALESCE ( - COUNT ( * ), 6 - + COUNT ( * ) + + - 68 ), + 48 * - - 72 + - - 23 - + 16 * CAST ( 23 AS INTEGER ) ) * + + 68 / - 7
----
37

query I rowsort
SELECT ALL + 71 * 62 AS col2
----
4402

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT 85 * - - 60 * - CASE 38 WHEN COUNT( * ) - 46 THEN NULL ELSE - ( - COUNT( * ) ) * 51 + + 33 + - + 37 * + ( + 16 ) * - - COUNT( * ) * 41 END
----
123358800

skipif mysql # not compatible
query I rowsort label-3906
SELECT 85 * - - 60 * - CASE 38 WHEN COUNT ( * ) - 46 THEN NULL ELSE - ( - COUNT ( * ) ) * 51 + + 33 + - + 37 * + ( + 16 ) * - - COUNT ( * ) * 41 END
----
123358800

query II rowsort
SELECT ALL 54, 37 AS col0
----
54
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT - MAX( ALL + 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-3908
SELECT - MAX ( ALL + 7 )
----
-7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3910
SELECT 79 DIV NULLIF ( 57, 21 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3910
SELECT 79 / NULLIF ( 57, 21 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT ALL SUM( - 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL SUM ( - 7 ) AS col2
----
-7

query II rowsort
SELECT ALL 1 AS col2, - 25 * 83 AS col2
----
1
-2075

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3913
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - + COUNT( DISTINCT - 34 ) + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT + CAST ( NULL AS REAL ) * - + COUNT ( DISTINCT - 34 ) + + 85
----
NULL

query II rowsort
SELECT - 51, 87 + - COALESCE ( - 69, + 29 ) AS col0
----
-51
156

query I rowsort
SELECT ALL + 27 * - - 27 + + 46 + 50
----
825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3916
SELECT - 78 * - ( - - COALESCE ( + 8, 37 ) ) * 71 + + 77 * + + CAST( - + 82 AS SIGNED ) * + - 60 + - + 94 * - 77 - - + 31 + + + 29 AS col2
----
430442

skipif mysql # not compatible
query I rowsort label-3916
SELECT - 78 * - ( - - COALESCE ( + 8, 37 ) ) * 71 + + 77 * + + CAST ( - + 82 AS INTEGER ) * + - 60 + - + 94 * - 77 - - + 31 + + + 29 AS col2
----
430442

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3917
SELECT ALL + 41 + + COALESCE ( + 28, - COUNT( * ) + - 44 * - 90 + - 99, - 66 DIV 56 * - 11 ) * - - 21
----
629

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL + 41 + + COALESCE ( + 28, - COUNT ( * ) + - 44 * - 90 + - 99, - 66 / 56 * - 11 ) * - - 21
----
629

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT MAX( + + 13 ) col0
----
13

skipif mysql # not compatible
query I rowsort label-3918
SELECT MAX ( + + 13 ) col0
----
13

query I rowsort
SELECT ALL + 61 + - 27 AS col2
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-3920
SELECT ALL - - 98 AS col1, + 20 * + + COUNT( ALL + - 56 ) * 77 + + 0 * + 55 AS col2
----
98
1540

skipif mysql # not compatible
query II rowsort label-3920
SELECT ALL - - 98 AS col1, + 20 * + + COUNT ( ALL + - 56 ) * 77 + + 0 * + 55 AS col2
----
98
1540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3921
SELECT ALL - CASE + COALESCE ( 91, 17 + + CAST( NULL AS SIGNED ) + - COUNT( * ) * 28 * + + 81 * + - NULLIF ( + + 69, + 61 ) * - - 36 - ( + 51 ) + 56 ) WHEN - 29 THEN NULL WHEN - 50 + - 73 - + 51 THEN - COUNT( * ) + 59 END + + - ( MIN( 45 ) ) - - - 80 * + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL - CASE + COALESCE ( 91, 17 + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * 28 * + + 81 * + - NULLIF ( + + 69, + 61 ) * - - 36 - ( + 51 ) + 56 ) WHEN - 29 THEN NULL WHEN - 50 + - 73 - + 51 THEN - COUNT ( * ) + 59 END + + - ( MIN ( 45 ) ) - - - 80 * + - 64
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3922
SELECT COUNT( * ) DIV + 24 + 90 * - 90
----
-8100

skipif mysql # not compatible
query I rowsort label-3922
SELECT COUNT ( * ) / + 24 + 90 * - 90
----
-8100

onlyif mysql # aggregate syntax: 
query II rowsort label-3923
SELECT ALL + 75 + - COUNT( * ) + + 35, - 74 AS col0
----
109
-74

skipif mysql # not compatible
query II rowsort label-3923
SELECT ALL + 75 + - COUNT ( * ) + + 35, - 74 AS col0
----
109
-74

query I rowsort
SELECT + - ( - + 56 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3925
SELECT - CASE + 6 WHEN - CASE + MAX( DISTINCT + 23 ) WHEN - 0 + + + COALESCE ( + 66, + - 12 - + - 36 ) + 27 * - + ( 84 ) THEN NULL WHEN + - 71 THEN + - 59 ELSE + 78 END - 12 THEN MIN( ALL + 37 ) + 64 * + - 32 WHEN + CAST( NULL AS SIGNED ) * - 53 THEN + 91 / + 90 * + 45 * COUNT( * ) END * + 22 * - + 38 + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT - CASE + 6 WHEN - CASE + MAX ( DISTINCT + 23 ) WHEN - 0 + + + COALESCE ( + 66, + - 12 - + - 36 ) + 27 * - + ( 84 ) THEN NULL WHEN + - 71 THEN + - 59 ELSE + 78 END - 12 THEN MIN ( ALL + 37 ) + 64 * + - 32 WHEN + CAST ( NULL AS INTEGER ) * - 53 THEN + 91 / + 90 * + 45 * COUNT ( * ) END * + 22 * - + 38 + + 35
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3926
SELECT ALL - 84 * MAX( ALL + + ( - + 56 ) ), - 0 AS col2
----
4704
0

skipif mysql # not compatible
query II rowsort label-3926
SELECT ALL - 84 * MAX ( ALL + + ( - + 56 ) ), - 0 AS col2
----
4704
0

query II rowsort
SELECT ALL 73 + - 90 AS col0, + ( 26 ) AS col1
----
-17
26

query I rowsort
SELECT 37 * - 60 - - 82 + + + ( - 5 )
----
-2143

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT COUNT( * ) - 43 * 97
----
-4170

skipif mysql # not compatible
query I rowsort label-3929
SELECT COUNT ( * ) - 43 * 97
----
-4170

query I rowsort
SELECT CASE + - 50 WHEN - 12 THEN - 70 * + - ( 87 ) + + + NULLIF ( + 39, 81 * + + 86 + - 15 * + - 11 ) ELSE ( + 15 ) END * + + 60 AS col2
----
900

query I rowsort
SELECT + 90 * - 5 * 18 - - + 14
----
-8086

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT + SUM( - - ( + - ( + 73 ) ) ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-3932
SELECT + SUM ( - - ( + - ( + 73 ) ) ) AS col2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3933
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * 86 * - MAX( - 78 ) * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 86 * - MAX ( - 78 ) * COUNT ( * ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3934
SELECT ALL 1 DIV + - 97 AS col1, 58 AS col1
----
0
58

skipif mysql # not compatible
query II rowsort label-3934
SELECT ALL 1 / + - 97 AS col1, 58 AS col1
----
0
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT + CAST( + - 38 AS SIGNED ) * + 52 AS col1
----
-1976

skipif mysql # not compatible
query I rowsort label-3935
SELECT + CAST ( + - 38 AS INTEGER ) * + 52 AS col1
----
-1976

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL 65 * + + COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL 65 * + + COUNT ( * ) AS col1
----
65

query I rowsort
SELECT + NULLIF ( - 19, 22 / - 31 ) * + 25
----
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT - 96 * + + SUM( - - 49 ) AS col1
----
-4704

skipif mysql # not compatible
query I rowsort label-3938
SELECT - 96 * + + SUM ( - - 49 ) AS col1
----
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT + ( - COUNT( * ) ) * 11 * + 30
----
-330

skipif mysql # not compatible
query I rowsort label-3939
SELECT + ( - COUNT ( * ) ) * 11 * + 30
----
-330

query I rowsort
SELECT - 10 * 19
----
-190

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT ALL ( + - 91 ) + + 7 + - 22 DIV + + 63
----
-84

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL ( + - 91 ) + + 7 + - 22 / + + 63
----
-84

query I rowsort
SELECT + - 0 - + - 44 col2
----
44

query I rowsort
SELECT ALL - 31 + + 55 * 15 + + 99 AS col2
----
893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3944
SELECT + + COUNT( * ) + 31 + - - CAST( - + COUNT( * ) AS SIGNED ) + COALESCE ( - - CAST( - 46 AS SIGNED ), + CAST( NULL AS SIGNED ) * + 41 - 74 )
----
-15

skipif mysql # not compatible
query I rowsort label-3944
SELECT + + COUNT ( * ) + 31 + - - CAST ( - + COUNT ( * ) AS INTEGER ) + COALESCE ( - - CAST ( - 46 AS INTEGER ), + CAST ( NULL AS INTEGER ) * + 41 - 74 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT SUM( - ( + 23 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-3945
SELECT SUM ( - ( + 23 ) )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3946
SELECT - - 51 + + 10 + CASE + 70 WHEN + + 96 THEN - 31 * + 72 * - 9 WHEN + 93 * - - 84 / - COUNT( * ) * + 90 * - 48 * - 66 + + 20 + 68 / MIN( ALL + CAST( - - 42 AS SIGNED ) ) * + 56 * + 41 * - + 63 * + - 25 THEN ( - 0 ) * - 38 ELSE NULL END + + 24 - + 23 * 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT - - 51 + + 10 + CASE + 70 WHEN + + 96 THEN - 31 * + 72 * - 9 WHEN + 93 * - - 84 / - COUNT ( * ) * + 90 * - 48 * - 66 + + 20 + 68 / MIN ( ALL + CAST ( - - 42 AS INTEGER ) ) * + 56 * + 41 * - + 63 * + - 25 THEN ( - 0 ) * - 38 ELSE NULL END + + 24 - + 23 * 20 AS col2
----
NULL

query I rowsort
SELECT - - 45 * + - 64 AS col2
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT ALL NULLIF ( COUNT( ALL 67 ), + CASE + - 60 WHEN + 4 THEN 68 * + 49 WHEN - COUNT( * ) THEN NULL END + - 68 + + + 90 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL NULLIF ( COUNT ( ALL 67 ), + CASE + - 60 WHEN + 4 THEN 68 * + 49 WHEN - COUNT ( * ) THEN NULL END + - 68 + + + 90 ) AS col2
----
1

query II rowsort
SELECT DISTINCT + - 49 + 19 AS col1, 73
----
-30
73

query I rowsort
SELECT DISTINCT + 12 + + ( + 38 )
----
50

query I rowsort
SELECT ALL + + ( + 45 ) * 82
----
3690

query I rowsort
SELECT ALL + - ( 11 ) col1
----
-11

query I rowsort
SELECT + 3 * 25 + - + 9 + + 45 * ( + 28 ) col1
----
1326

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3954
SELECT - 39 DIV 95 * - COUNT( * ) * - - 61 AS col2, - 14 * + + 6 * - COUNT( * ) * + COUNT( ALL + 80 ) + - 91 AS col2
----
0
-7

skipif mysql # not compatible
query II rowsort label-3954
SELECT - 39 / 95 * - COUNT ( * ) * - - 61 AS col2, - 14 * + + 6 * - COUNT ( * ) * + COUNT ( ALL + 80 ) + - 91 AS col2
----
0
-7

query I rowsort
SELECT ALL + 50 * - 88 + + - 7 AS col2
----
-4407

query II rowsort
SELECT - + 18 * - 16 * - 13 + + + 36 AS col1, - 3 AS col1
----
-3708
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT + SUM( DISTINCT + 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3957
SELECT + SUM ( DISTINCT + 2 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT 42 * + + 46 + + ( COUNT( * ) ) + - + ( - + 85 ) * 52 * 39 * - 48
----
-8272307

skipif mysql # not compatible
query I rowsort label-3958
SELECT 42 * + + 46 + + ( COUNT ( * ) ) + - + ( - + 85 ) * 52 * 39 * - 48
----
-8272307

query I rowsort
SELECT - 73 * + 26
----
-1898

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT ALL + MAX( - 24 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL + MAX ( - 24 ) AS col0
----
-24

query I rowsort
SELECT ALL 20 * 66 * - + 34
----
-44880

onlyif mysql # DIV for integer division: 
query I rowsort label-3962
SELECT ALL - 69 DIV 1
----
-69

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL - 69 / 1
----
-69

query I rowsort
SELECT DISTINCT + ( - 58 ) col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3964
SELECT + 24 * + COUNT( * ) + CAST( + 72 AS SIGNED ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3964
SELECT + 24 * + COUNT ( * ) + CAST ( + 72 AS INTEGER ) AS col2
----
96

query II rowsort
SELECT NULLIF ( 59, + - 1 * + - 4 / - 10 ) col1, + ( - 52 ) * ( + - 12 ) + + + 29
----
59
653

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3966
SELECT - 7 + - COUNT( * ) DIV + 81 * - + 22 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-3966
SELECT - 7 + - COUNT ( * ) / + 81 * - + 22 AS col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3967
SELECT ALL SUM( DISTINCT - - 74 ) * 69 + ( + + CAST( NULL AS DECIMAL ) ), + NULLIF ( + 91, + 82 - 55 ) AS col2
----
NULL
91

skipif mysql # not compatible
query II rowsort label-3967
SELECT ALL SUM ( DISTINCT - - 74 ) * 69 + ( + + CAST ( NULL AS REAL ) ), + NULLIF ( + 91, + 82 - 55 ) AS col2
----
NULL
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3968
SELECT - ( - 64 ) + - + COUNT( * ) + - + COUNT( * ) * - + 81 col2, 69 * - - 79 AS col0
----
144
5451

skipif mysql # not compatible
query II rowsort label-3968
SELECT - ( - 64 ) + - + COUNT ( * ) + - + COUNT ( * ) * - + 81 col2, 69 * - - 79 AS col0
----
144
5451

query II rowsort
SELECT ALL + 50 AS col1, - 1 col2
----
50
-1

query II rowsort
SELECT DISTINCT 91 AS col1, ( - 86 ) - + 48
----
91
-134

query I rowsort
SELECT ALL + 80 * + + 17 AS col1
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT MIN( - + 35 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-3972
SELECT MIN ( - + 35 ) AS col1
----
-35

query II rowsort
SELECT DISTINCT 76 + 81 + - + 18 + + 20 * 59, + 11 AS col2
----
1319
11

query I rowsort
SELECT - ( + NULLIF ( 91, 66 ) ) AS col0
----
-91

query I rowsort
SELECT ALL + 35 + + ( 27 ) + - 78
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-3976
SELECT + + 29 + 71 + - COUNT( * ), - 19 AS col1
----
99
-19

skipif mysql # not compatible
query II rowsort label-3976
SELECT + + 29 + 71 + - COUNT ( * ), - 19 AS col1
----
99
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT + - 55 + + MIN( ALL + 5 )
----
-50

skipif mysql # not compatible
query I rowsort label-3977
SELECT + - 55 + + MIN ( ALL + 5 )
----
-50

query I rowsort
SELECT + 16 - - 17
----
33

query I rowsort
SELECT ALL + 85 * - 48
----
-4080

query I rowsort
SELECT - 30 + - + 26 AS col0
----
-56

query I rowsort
SELECT DISTINCT - 52 + + - 86
----
-138

onlyif mysql # aggregate syntax: 
query II rowsort label-3982
SELECT ALL 13 + - - CASE ( + ( + 98 ) ) WHEN 15 THEN NULL ELSE - - 40 * 62 END - - - 64 * - NULLIF ( + COUNT( * ), - 26 ) - + 85 AS col2, COUNT( * )
----
2472
1

skipif mysql # not compatible
query II rowsort label-3982
SELECT ALL 13 + - - CASE ( + ( + 98 ) ) WHEN 15 THEN NULL ELSE - - 40 * 62 END - - - 64 * - NULLIF ( + COUNT ( * ), - 26 ) - + 85 AS col2, COUNT ( * )
----
2472
1

query I rowsort
SELECT ALL 71 * + + 48
----
3408

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT - + 64 + - 88 + - 31 * - MAX( + 78 ) + + - 13 - + 65 - - 44 + + ( CASE - 20 WHEN + 27 + COUNT( * ) THEN - 83 ELSE 12 END ) * + + 47 AS col1
----
2796

skipif mysql # not compatible
query I rowsort label-3984
SELECT - + 64 + - 88 + - 31 * - MAX ( + 78 ) + + - 13 - + 65 - - 44 + + ( CASE - 20 WHEN + 27 + COUNT ( * ) THEN - 83 ELSE 12 END ) * + + 47 AS col1
----
2796

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT ALL - SUM( DISTINCT - ( - 63 ) ) + - + 11
----
-74

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL - SUM ( DISTINCT - ( - 63 ) ) + - + 11
----
-74

query I rowsort
SELECT DISTINCT 98 + - - 58 AS col2
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-3987
SELECT - - COUNT( * ), + 40 + - 83 + 62 * 82 col1
----
1
5041

skipif mysql # not compatible
query II rowsort label-3987
SELECT - - COUNT ( * ), + 40 + - 83 + 62 * 82 col1
----
1
5041

query I rowsort
SELECT - ( 48 ) col0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-3989
SELECT DISTINCT + COUNT( * ) AS col2, - 51 AS col1
----
1
-51

skipif mysql # not compatible
query II rowsort label-3989
SELECT DISTINCT + COUNT ( * ) AS col2, - 51 AS col1
----
1
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3990
SELECT ALL COUNT( * ) DIV - - 34 - - 70
----
70

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL COUNT ( * ) / - - 34 - - 70
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT - 49 * COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-3991
SELECT - 49 * COUNT ( * )
----
-49

query II rowsort
SELECT + 61 AS col1, + 80 AS col0
----
61
80

query I rowsort
SELECT + 14 * + 51
----
714

onlyif mysql # aggregate syntax: 
query II rowsort label-3994
SELECT 31 col1, COUNT( * )
----
31
1

skipif mysql # not compatible
query II rowsort label-3994
SELECT 31 col1, COUNT ( * )
----
31
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT ALL - COALESCE ( - + COUNT( * ), - 25 * + 51, + 78 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL - COALESCE ( - + COUNT ( * ), - 25 * + 51, + 78 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3996
SELECT + ( - CAST( + 87 AS SIGNED ) ) * - 37 - - ( - CAST( NULL AS SIGNED ) ) / - 85 * + + CASE + + NULLIF ( NULLIF ( - - 71, - 24 * + 16 ), + + 70 ) WHEN - CASE + 25 WHEN + COUNT( * ) THEN 19 WHEN - + ( + 30 ) THEN + - CAST( NULL AS SIGNED ) + - - 80 ELSE + 96 END THEN + 78 * 76 + + 18 + + - 46 + + NULLIF ( + + 38, - 26 ) ELSE - + SUM( ALL 17 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3996
SELECT + ( - CAST ( + 87 AS INTEGER ) ) * - 37 - - ( - CAST ( NULL AS INTEGER ) ) / - 85 * + + CASE + + NULLIF ( NULLIF ( - - 71, - 24 * + 16 ), + + 70 ) WHEN - CASE + 25 WHEN + COUNT ( * ) THEN 19 WHEN - + ( + 30 ) THEN + - CAST ( NULL AS INTEGER ) + - - 80 ELSE + 96 END THEN + 78 * 76 + + 18 + + - 46 + + NULLIF ( + + 38, - 26 ) ELSE - + SUM ( ALL 17 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3997
SELECT 36 col1, - 2 + - NULLIF ( CAST( NULL AS SIGNED ), + - ( - COUNT( * ) ) + COUNT( * ) ) * - - ( - - 58 ) - + + ( - 92 ) - 34 / + 63 * MIN( + 96 ) AS col0
----
36
NULL

skipif mysql # not compatible
query II rowsort label-3997
SELECT 36 col1, - 2 + - NULLIF ( CAST ( NULL AS INTEGER ), + - ( - COUNT ( * ) ) + COUNT ( * ) ) * - - ( - - 58 ) - + + ( - 92 ) - 34 / + 63 * MIN ( + 96 ) AS col0
----
36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT 76 * - + COUNT( - - 69 )
----
-76

skipif mysql # not compatible
query I rowsort label-3998
SELECT 76 * - + COUNT ( - - 69 )
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-3999
SELECT ALL - NULLIF ( COUNT( * ), + - COUNT( ALL 95 ) * + 26 + + COUNT( * ) ), + 67 AS col1
----
-1
67

skipif mysql # not compatible
query II rowsort label-3999
SELECT ALL - NULLIF ( COUNT ( * ), + - COUNT ( ALL 95 ) * + 26 + + COUNT ( * ) ), + 67 AS col1
----
-1
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4000
SELECT DISTINCT - 20 DIV - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-4000
SELECT DISTINCT - 20 / - COUNT ( * )
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4001
SELECT ALL - 12 DIV 1
----
-12

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL - 12 / 1
----
-12

query II rowsort
SELECT 30, 68 AS col1
----
30
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT DISTINCT + 67 + + COUNT( * ) + - ( - 82 ) * + 78
----
6464

skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT + 67 + + COUNT ( * ) + - ( - 82 ) * + 78
----
6464

onlyif mysql # DIV for integer division: 
query I rowsort label-4004
SELECT 20 DIV 78 * - ( 26 )
----
0

skipif mysql # not compatible
query I rowsort label-4004
SELECT 20 / 78 * - ( 26 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT - - MAX( + 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4005
SELECT - - MAX ( + 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT - 37 * + MAX( - 7 ) + COUNT( * ) AS col1
----
260

skipif mysql # not compatible
query I rowsort label-4006
SELECT - 37 * + MAX ( - 7 ) + COUNT ( * ) AS col1
----
260

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT - 56 + + MAX( DISTINCT - + 82 )
----
-138

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT - 56 + + MAX ( DISTINCT - + 82 )
----
-138

query I rowsort
SELECT DISTINCT + ( + - ( + + 9 ) )
----
-9

query II rowsort
SELECT ALL 9 AS col1, - 94 * 23 * + 43
----
9
-92966

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT DISTINCT 15 + + - 81 * 17 + 3 + - COUNT( * ) * 74 + ( COUNT( * ) ) col0
----
-1432

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT 15 + + - 81 * 17 + 3 + - COUNT ( * ) * 74 + ( COUNT ( * ) ) col0
----
-1432

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL CASE + - 47 WHEN + COUNT( * ) THEN + 44 + + + 62 * - COUNT( DISTINCT - - 62 ) * + 1 * - 24 * 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL CASE + - 47 WHEN + COUNT ( * ) THEN + 44 + + + 62 * - COUNT ( DISTINCT - - 62 ) * + 1 * - 24 * 94 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4012
SELECT - COUNT( * ), + 53 AS col1
----
-1
53

skipif mysql # not compatible
query II rowsort label-4012
SELECT - COUNT ( * ), + 53 AS col1
----
-1
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4013
SELECT 33 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-4013
SELECT 33 / 88
----
0

query II rowsort
SELECT - 74 + + + ( ( - - 82 ) ), COALESCE ( + 35, 94 + + - CASE + - 70 WHEN + 4 * + 22 THEN + 64 ELSE 26 END ) AS col2
----
8
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT ALL - MIN( + - 81 )
----
81

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL - MIN ( + - 81 )
----
81

query I rowsort
SELECT 82 * + - ( - + 31 ) + + 23
----
2565

query I rowsort
SELECT ALL + 47 * - 47 + 82 + + 33 AS col1
----
-2094

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT COUNT( * ) - + 4 * 91
----
-363

skipif mysql # not compatible
query I rowsort label-4018
SELECT COUNT ( * ) - + 4 * 91
----
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL + COUNT( * ) * 47 col1
----
47

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL + COUNT ( * ) * 47 col1
----
47

query II rowsort
SELECT ALL 89 col1, - 43 AS col1
----
89
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4021
SELECT 42 * - + ( - SUM( + 79 ) ) - + ( - COUNT( * ) ) DIV - 85 DIV 34
----
3318

skipif mysql # not compatible
query I rowsort label-4021
SELECT 42 * - + ( - SUM ( + 79 ) ) - + ( - COUNT ( * ) ) / - 85 / 34
----
3318

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT DISTINCT 49 * - ( COUNT( * ) ) * + + 26 AS col2
----
-1274

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT 49 * - ( COUNT ( * ) ) * + + 26 AS col2
----
-1274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4023
SELECT AVG ( 30 ) / - 99 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT AVG ( 30 ) / - 99 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4024
SELECT ( COALESCE ( - 12, - - 61, + ( + 87 ) ) ) DIV + - 26 + - - 90 * + + 89 + - COUNT( * ) + + 76 + - COUNT( * ) DIV ( + 84 )
----
8085

skipif mysql # not compatible
query I rowsort label-4024
SELECT ( COALESCE ( - 12, - - 61, + ( + 87 ) ) ) / + - 26 + - - 90 * + + 89 + - COUNT ( * ) + + 76 + - COUNT ( * ) / ( + 84 )
----
8085

query I rowsort
SELECT 60 + 65 * 43
----
2855

query I rowsort
SELECT 96 * - - 65 * + 2 AS col0
----
12480

query I rowsort
SELECT 5 - + 23
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4028
SELECT COUNT( * ) DIV - 78 + COUNT( * ) + + 88 * + 33 * + - ( - COUNT( * ) )
----
2905

skipif mysql # not compatible
query I rowsort label-4028
SELECT COUNT ( * ) / - 78 + COUNT ( * ) + + 88 * + 33 * + - ( - COUNT ( * ) )
----
2905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4029
SELECT CAST( 28 AS SIGNED ) + + - COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4029
SELECT CAST ( 28 AS INTEGER ) + + - COUNT ( * ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT ALL - CASE - + ( + 54 ) WHEN - 94 + - 2 THEN NULL WHEN + + 48 THEN + CASE - 0 WHEN COUNT( * ) THEN + COUNT( * ) END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL - CASE - + ( + 54 ) WHEN - 94 + - 2 THEN NULL WHEN + + 48 THEN + CASE - 0 WHEN COUNT ( * ) THEN + COUNT ( * ) END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT DISTINCT - NULLIF ( + - COUNT( * ), - + ( - ( + 36 ) ) ) * - + 84
----
-84

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT - NULLIF ( + - COUNT ( * ), - + ( - ( + 36 ) ) ) * - + 84
----
-84

query I rowsort
SELECT ALL 1 + - 75 AS col0
----
-74

query I rowsort
SELECT 5 + + - 77 col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT ALL - 7 * + + 8 * - COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL - 7 * + + 8 * - COUNT ( * ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT 11 * COUNT( ALL - ( - 98 ) )
----
11

skipif mysql # not compatible
query I rowsort label-4035
SELECT 11 * COUNT ( ALL - ( - 98 ) )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4036
SELECT DISTINCT 36 + 59 AS col2, CAST( + 3 AS SIGNED )
----
95
3

skipif mysql # not compatible
query II rowsort label-4036
SELECT DISTINCT 36 + 59 AS col2, CAST ( + 3 AS INTEGER )
----
95
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4037
SELECT ALL + CASE CAST( - + 98 AS SIGNED ) WHEN - 43 THEN - + 72 END + - 0 + 79 + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL + CASE CAST ( - + 98 AS INTEGER ) WHEN - 43 THEN - + 72 END + - 0 + 79 + 71
----
NULL

query I rowsort
SELECT 53 * + 10 + + - 7 AS col1
----
523

query II rowsort
SELECT DISTINCT - ( 33 ) AS col1, ( + + 69 ) AS col1
----
-33
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4040
SELECT ALL - ( ( 28 ) ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL - ( ( 28 ) ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4041
SELECT 1 + - + COUNT( * ) DIV + - 31
----
1

skipif mysql # not compatible
query I rowsort label-4041
SELECT 1 + - + COUNT ( * ) / + - 31
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT COUNT( * ) + - COALESCE ( + 38, + - COUNT( * ) - + 43 * ( + + 48 ), 73 ) - - 78 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4042
SELECT COUNT ( * ) + - COALESCE ( + 38, + - COUNT ( * ) - + 43 * ( + + 48 ), 73 ) - - 78 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT ALL + SUM( + - 89 ) + + 61 + 12 + - + 24 * - 47 + + MIN( ALL + ( + 51 ) ) + - 20 AS col1
----
1143

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL + SUM ( + - 89 ) + + 61 + 12 + - + 24 * - 47 + + MIN ( ALL + ( + 51 ) ) + - 20 AS col1
----
1143

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4044
SELECT ALL - + CAST( NULL AS DECIMAL ) + + + COALESCE ( COALESCE ( + - 58, 10, - NULLIF ( + 40, 68 ) * + + 86 ), + MAX( - + 2 ), - 4 ) + 82 + - - 50 * - 61 + 33 * - + 46 - - + COALESCE ( 52, - 83 + ( 1 ) + + 48 ) * + - SUM( ALL 18 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL - + CAST ( NULL AS REAL ) + + + COALESCE ( COALESCE ( + - 58, 10, - NULLIF ( + 40, 68 ) * + + 86 ), + MAX ( - + 2 ), - 4 ) + 82 + - - 50 * - 61 + 33 * - + 46 - - + COALESCE ( 52, - 83 + ( 1 ) + + 48 ) * + - SUM ( ALL 18 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT 72 * + COUNT( * ) + - 90
----
-18

skipif mysql # not compatible
query I rowsort label-4045
SELECT 72 * + COUNT ( * ) + - 90
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-4046
SELECT ALL + - CASE - + COUNT( * ) WHEN 37 - - 13 THEN - 82 * + - 95 / - 84 + - COUNT( * ) ELSE NULL END - + 3 + - 64 AS col0, ( - 3 ) AS col1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-4046
SELECT ALL + - CASE - + COUNT ( * ) WHEN 37 - - 13 THEN - 82 * + - 95 / - 84 + - COUNT ( * ) ELSE NULL END - + 3 + - 64 AS col0, ( - 3 ) AS col1
----
NULL
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT 27 DIV 85 * 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4047
SELECT 27 / 85 * 80 AS col1
----
0

query II rowsort
SELECT + 15 + - 8, - 92 AS col0
----
7
-92

query I rowsort
SELECT 17 * 43 AS col1
----
731

query I rowsort
SELECT DISTINCT - + 71 * + 46 AS col2
----
-3266

query I rowsort
SELECT + 81 + + - 99 * + 60 AS col2
----
-5859

query I rowsort
SELECT ALL - 7 * + 78 AS col2
----
-546

query II rowsort
SELECT + 2 + ( 3 ) AS col1, 71
----
5
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4054
SELECT - MAX( DISTINCT ( - 13 ) ) * NULLIF ( 26, + COUNT( * ) + + CAST( 26 AS SIGNED ) + + - 9 + - NULLIF ( ( - 29 ), + 13 + + 16 + 11 ) * COUNT( * ) + + 66 ) * - 1
----
-338

skipif mysql # not compatible
query I rowsort label-4054
SELECT - MAX ( DISTINCT ( - 13 ) ) * NULLIF ( 26, + COUNT ( * ) + + CAST ( 26 AS INTEGER ) + + - 9 + - NULLIF ( ( - 29 ), + 13 + + 16 + 11 ) * COUNT ( * ) + + 66 ) * - 1
----
-338

query I rowsort
SELECT ALL 61 + + 20 AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4056
SELECT 11 DIV + NULLIF ( 38, CAST( + 16 AS SIGNED ) ) + 32 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4056
SELECT 11 / + NULLIF ( 38, CAST ( + 16 AS INTEGER ) ) + 32 AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4057
SELECT DISTINCT + 39 DIV - - CAST( + 18 AS SIGNED ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT + 39 / - - CAST ( + 18 AS INTEGER ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4058
SELECT + COUNT( * ) AS col2, 57
----
1
57

skipif mysql # not compatible
query II rowsort label-4058
SELECT + COUNT ( * ) AS col2, 57
----
1
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ALL + MAX( ALL - + 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL + MAX ( ALL - + 82 )
----
-82

query II rowsort
SELECT ALL + 86 * 33 + + 21 AS col2, 15
----
2859
15

query I rowsort
SELECT + 83 * - 39 col0
----
-3237

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT ALL + COUNT( DISTINCT - 52 )
----
1

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL + COUNT ( DISTINCT - 52 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4063
SELECT + 53 - COALESCE ( - 19, + CAST( + + 60 AS SIGNED ) * 71 + 50 * COUNT( * ) + COALESCE ( 85, 4 + - CASE + - 74 WHEN - ( + - ( - - 82 ) ) THEN NULL WHEN + 56 * - 18 THEN + 93 END, 69 * + 96 DIV 95 ) + - 51 * - 12 * - 41 + + 50 * 4 - - 78 ) + 85 * - - 39 * + + COUNT( * ) * - + COALESCE ( + - 45, - COUNT( * ) + - - 67 )
----
149247

skipif mysql # not compatible
query I rowsort label-4063
SELECT + 53 - COALESCE ( - 19, + CAST ( + + 60 AS INTEGER ) * 71 + 50 * COUNT ( * ) + COALESCE ( 85, 4 + - CASE + - 74 WHEN - ( + - ( - - 82 ) ) THEN NULL WHEN + 56 * - 18 THEN + 93 END, 69 * + 96 / 95 ) + - 51 * - 12 * - 41 + + 50 * 4 - - 78 ) + 85 * - - 39 * + + COUNT ( * ) * - + COALESCE ( + - 45, - COUNT ( * ) + - - 67 )
----
149247

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT + NULLIF ( - COUNT( * ), - - 16 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4064
SELECT + NULLIF ( - COUNT ( * ), - - 16 ) AS col1
----
-1

query I rowsort
SELECT + 29 + - 91 AS col1
----
-62

query II rowsort
SELECT 85 AS col2, 18 * + 78 AS col2
----
85
1404

query I rowsort
SELECT ALL - - 5 * 90 + 73 - 10 + + 95 * + 38 + 51 - + 80 AS col0
----
4094

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4068
SELECT + - COUNT( * ) * + 85 - COUNT( * ) DIV + COUNT( * ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-4068
SELECT + - COUNT ( * ) * + 85 - COUNT ( * ) / + COUNT ( * ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-4069
SELECT DISTINCT - 48 * + 12 - + - 5 AS col1, COUNT( * )
----
-571
1

skipif mysql # not compatible
query II rowsort label-4069
SELECT DISTINCT - 48 * + 12 - + - 5 AS col1, COUNT ( * )
----
-571
1

query II rowsort
SELECT + 66 AS col1, - ( - 49 )
----
66
49

query II rowsort
SELECT - + 96, - 18 AS col1
----
-96
-18

query II rowsort
SELECT ALL - 83 AS col0, - 34 * + - 27 * 40
----
-83
36720

query II rowsort
SELECT - + 27, ( 43 ) AS col1
----
-27
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT + SUM( DISTINCT 24 ) col0
----
24

skipif mysql # not compatible
query I rowsort label-4074
SELECT + SUM ( DISTINCT 24 ) col0
----
24

query I rowsort
SELECT - + 2 * + 22 col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT - + SUM( ALL + ( - 49 ) ) * 76
----
3724

skipif mysql # not compatible
query I rowsort label-4076
SELECT - + SUM ( ALL + ( - 49 ) ) * 76
----
3724

query I rowsort
SELECT DISTINCT 21 * - + 96 AS col1
----
-2016

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4078
SELECT ALL + - 98 DIV 51 + + COUNT( * ) AS col2, 34
----
0
34

skipif mysql # not compatible
query II rowsort label-4078
SELECT ALL + - 98 / 51 + + COUNT ( * ) AS col2, 34
----
0
34

onlyif mysql # DIV for integer division: 
query I rowsort label-4079
SELECT - + COALESCE ( - - 39, 18 - - 38 + - - 71 * + - 32 ) DIV + 37
----
-1

skipif mysql # not compatible
query I rowsort label-4079
SELECT - + COALESCE ( - - 39, 18 - - 38 + - - 71 * + - 32 ) / + 37
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4080
SELECT ALL + 30 DIV - SUM( - 89 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL + 30 / - SUM ( - 89 ) AS col2
----
0

query I rowsort
SELECT - + 39 + + + 89
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4082
SELECT - 6 DIV + - 89
----
0

skipif mysql # not compatible
query I rowsort label-4082
SELECT - 6 / + - 89
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4083
SELECT - 91 + - COALESCE ( CASE 11 WHEN - - 93 + - CAST( + 47 AS SIGNED ) + ( - SUM( ALL 97 ) ) THEN + NULLIF ( + 47, + CASE 55 WHEN - + 51 THEN NULL WHEN - 85 THEN + SUM( + 89 ) - + - 35 ELSE NULL END + 44 * + 11 * - 22 ) + + 41 WHEN + 26 THEN NULL END, - 2, - - 10 * 55 - + 56 - - - NULLIF ( + + 60, - ( + 37 ) ) ) + - 5 * - - 72
----
-449

skipif mysql # not compatible
query I rowsort label-4083
SELECT - 91 + - COALESCE ( CASE 11 WHEN - - 93 + - CAST ( + 47 AS INTEGER ) + ( - SUM ( ALL 97 ) ) THEN + NULLIF ( + 47, + CASE 55 WHEN - + 51 THEN NULL WHEN - 85 THEN + SUM ( + 89 ) - + - 35 ELSE NULL END + 44 * + 11 * - 22 ) + + 41 WHEN + 26 THEN NULL END, - 2, - - 10 * 55 - + 56 - - - NULLIF ( + + 60, - ( + 37 ) ) ) + - 5 * - - 72
----
-449

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT - CASE - - 98 WHEN - 12 THEN 7 WHEN - COUNT( * ) * 24 THEN 39 + + - ( + + 40 ) ELSE NULL END * + 30 / 59 + 40 + - 48 + 69 * - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4084
SELECT - CASE - - 98 WHEN - 12 THEN 7 WHEN - COUNT ( * ) * 24 THEN 39 + + - ( + + 40 ) ELSE NULL END * + 30 / 59 + 40 + - 48 + 69 * - 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT ALL + 52 + + COALESCE ( - 19, 10, - - COUNT( ALL NULLIF ( 23, 23 ) ) ) * - - 68 + + 8
----
-1232

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL + 52 + + COALESCE ( - 19, 10, - - COUNT ( ALL NULLIF ( 23, 23 ) ) ) * - - 68 + + 8
----
-1232

query I rowsort
SELECT - 43 + - + ( 20 ) * + 9 AS col0
----
-223

query II rowsort
SELECT ALL - 79 + - 3, ( - 98 ) AS col2
----
-82
-98

query II rowsort
SELECT ALL + 25 * + - 28 AS col1, + 80 * 9
----
-700
720

query I rowsort
SELECT - ( - 42 ) + 83
----
125

query I rowsort
SELECT ALL + 52 + + + 66
----
118

query I rowsort
SELECT - ( - 15 ) - + - ( - 76 ) * + 16 AS col0
----
-1201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4092
SELECT ALL 7 + - - CAST( + 56 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL 7 + - - CAST ( + 56 AS INTEGER )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4093
SELECT 16 * - 20 + + - 7 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4093
SELECT 16 * - 20 + + - 7 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4094
SELECT - NULLIF ( - 8, - - 45 ) DIV MAX( - 33 ) + + MAX( ALL - - 76 ) + 33 * - 84 col2, 97
----
-2696
97

skipif mysql # not compatible
query II rowsort label-4094
SELECT - NULLIF ( - 8, - - 45 ) / MAX ( - 33 ) + + MAX ( ALL - - 76 ) + 33 * - 84 col2, 97
----
-2696
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4095
SELECT + 65 + CAST( 28 AS SIGNED ) * + - 38
----
-999

skipif mysql # not compatible
query I rowsort label-4095
SELECT + 65 + CAST ( 28 AS INTEGER ) * + - 38
----
-999

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4096
SELECT ALL ( - MAX( - 91 ) ) DIV - ( 4 ) AS col2, - COUNT( * ) col0
----
-22
-1

skipif mysql # not compatible
query II rowsort label-4096
SELECT ALL ( - MAX ( - 91 ) ) / - ( 4 ) AS col2, - COUNT ( * ) col0
----
-22
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT 90 DIV - 21 + - - 26
----
22

skipif mysql # not compatible
query I rowsort label-4097
SELECT 90 / - 21 + - - 26
----
22

query I rowsort
SELECT + NULLIF ( - 36, + + 96 )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4099
SELECT ALL + CASE + + COALESCE ( ( - - COUNT( * ) ), - 91 + - 59, 6 ) WHEN ( - + 35 ) THEN + CAST( 88 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL + CASE + + COALESCE ( ( - - COUNT ( * ) ), - 91 + - 59, 6 ) WHEN ( - + 35 ) THEN + CAST ( 88 AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4100
SELECT ALL + 90 DIV + 36
----
2

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL + 90 / + 36
----
2

query II rowsort
SELECT + 23 * 17 AS col2, + 49 AS col1
----
391
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4102
SELECT DISTINCT - 94 * - 47 - + + 81 + CAST( - 18 AS SIGNED ) * + COUNT( * )
----
4319

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT - 94 * - 47 - + + 81 + CAST ( - 18 AS INTEGER ) * + COUNT ( * )
----
4319

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT + SUM( DISTINCT - 5 ) col2
----
-5

skipif mysql # not compatible
query I rowsort label-4103
SELECT + SUM ( DISTINCT - 5 ) col2
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT - - 86 / 15 * + 20 * - - 97 * + 62 * - CAST( NULL AS SIGNED ) - - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4104
SELECT - - 86 / 15 * + 20 * - - 97 * + 62 * - CAST ( NULL AS INTEGER ) - - 48 AS col0
----
NULL

query I rowsort
SELECT + + 11 * 38 - - + 52
----
470

query I rowsort
SELECT + + 6 * 23 * 54 AS col1
----
7452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4107
SELECT + + 95 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT + + 95 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + ( - - 58 ) AS col0
----
58

query I rowsort
SELECT DISTINCT 92 * + ( + 30 ) AS col1
----
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT ALL + + MIN( + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL + + MIN ( + 63 )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4111
SELECT DISTINCT + - 96 * - CASE 25 WHEN + - AVG ( DISTINCT + 47 ) + - 26 THEN NULL WHEN COUNT( * ) / + COALESCE ( - COUNT( * ), - CAST( CAST( NULL AS SIGNED ) AS SIGNED ), - + 81 ) THEN + COUNT( * ) + - 46 * + - ( - - 65 ) WHEN + 72 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT + - 96 * - CASE 25 WHEN + - AVG ( DISTINCT + 47 ) + - 26 THEN NULL WHEN COUNT ( * ) / + COALESCE ( - COUNT ( * ), - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), - + 81 ) THEN + COUNT ( * ) + - 46 * + - ( - - 65 ) WHEN + 72 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL MAX( DISTINCT + - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL MAX ( DISTINCT + - 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT + COUNT( * ) * 19 + - 80 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-4113
SELECT + COUNT ( * ) * 19 + - 80 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT 67 * SUM( DISTINCT - 82 ) + - 32
----
-5526

skipif mysql # not compatible
query I rowsort label-4114
SELECT 67 * SUM ( DISTINCT - 82 ) + - 32
----
-5526

query I rowsort
SELECT DISTINCT ( - 32 ) * + 45
----
-1440

query I rowsort
SELECT ALL + 99 + + 83 AS col0
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT + COALESCE ( + CASE - 90 WHEN + + 20 THEN 45 + + COUNT( * ) ELSE + + 86 END, - + 7 * - COUNT( * ) + - + 56, - 19 )
----
86

skipif mysql # not compatible
query I rowsort label-4117
SELECT + COALESCE ( + CASE - 90 WHEN + + 20 THEN 45 + + COUNT ( * ) ELSE + + 86 END, - + 7 * - COUNT ( * ) + - + 56, - 19 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT 5 + COUNT( * ) * COUNT( * ) * - - 8 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4118
SELECT 5 + COUNT ( * ) * COUNT ( * ) * - - 8 AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4119
SELECT 24 AS col2, - 39 * + - 71 * - - CASE MIN( DISTINCT - - 30 ) WHEN - - COUNT( DISTINCT - 99 ) THEN - 57 * + + 43 - COALESCE ( + 65, - 29 + + ( + + 67 ) DIV - - 57 + 57 - - + 45 ) - - COALESCE ( + 87, - CAST( 39 AS SIGNED ), COUNT( ALL - 18 ) ) DIV 28 DIV + COUNT( * ) ELSE 17 END + - ( - - NULLIF ( + - 56, 12 ) ) + + 17 DIV + + 12
----
24
47130

skipif mysql # not compatible
query II rowsort label-4119
SELECT 24 AS col2, - 39 * + - 71 * - - CASE MIN ( DISTINCT - - 30 ) WHEN - - COUNT ( DISTINCT - 99 ) THEN - 57 * + + 43 - COALESCE ( + 65, - 29 + + ( + + 67 ) / - - 57 + 57 - - + 45 ) - - COALESCE ( + 87, - CAST ( 39 AS INTEGER ), COUNT ( ALL - 18 ) ) / 28 / + COUNT ( * ) ELSE 17 END + - ( - - NULLIF ( + - 56, 12 ) ) + + 17 / + + 12
----
24
47130

query I rowsort
SELECT DISTINCT 90 + + - 14 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT DISTINCT + COUNT( * ) + SUM( + - 99 ) * + 71
----
-7028

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT + COUNT ( * ) + SUM ( + - 99 ) * + 71
----
-7028

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4122
SELECT DISTINCT - SUM( - 44 ) DIV + 21 col1, 60 AS col0
----
2
60

skipif mysql # not compatible
query II rowsort label-4122
SELECT DISTINCT - SUM ( - 44 ) / + 21 col1, 60 AS col0
----
2
60

query I rowsort
SELECT ALL + 21 + - ( + + 35 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT 5 + - - ( + + 48 ) + + COUNT( + + 20 )
----
54

skipif mysql # not compatible
query I rowsort label-4124
SELECT 5 + - - ( + + 48 ) + + COUNT ( + + 20 )
----
54

onlyif mysql # DIV for integer division: 
query II rowsort label-4125
SELECT 14 DIV - ( + 84 ) AS col0, - 51 * + + 50
----
0
-2550

skipif mysql # not compatible
query II rowsort label-4125
SELECT 14 / - ( + 84 ) AS col0, - 51 * + + 50
----
0
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT 85 * CASE + - COUNT( * ) WHEN 45 / 7 + 59 - + - 65 + - - 70 THEN NULL WHEN COUNT( * ) THEN + + 18 + 90 - - - 85 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT 85 * CASE + - COUNT ( * ) WHEN 45 / 7 + 59 - + - 65 + - - 70 THEN NULL WHEN COUNT ( * ) THEN + + 18 + 90 - - - 85 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT 21 * COUNT( * ) col1
----
21

skipif mysql # not compatible
query I rowsort label-4127
SELECT 21 * COUNT ( * ) col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT 95 * + MAX( + - 54 )
----
-5130

skipif mysql # not compatible
query I rowsort label-4128
SELECT 95 * + MAX ( + - 54 )
----
-5130

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4129
SELECT 4 DIV - + 44 * + COUNT( * ) col2, - COUNT( * ) - - 67 AS col1
----
0
66

skipif mysql # not compatible
query II rowsort label-4129
SELECT 4 / - + 44 * + COUNT ( * ) col2, - COUNT ( * ) - - 67 AS col1
----
0
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4130
SELECT 85 DIV + 56 + - 83 * + 75
----
-6224

skipif mysql # not compatible
query I rowsort label-4130
SELECT 85 / + 56 + - 83 * + 75
----
-6224

query I rowsort
SELECT 20 * + 2 * + ( + 86 )
----
3440

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4132
SELECT DISTINCT + COALESCE ( CAST( NULL AS SIGNED ), + COALESCE ( + 57, + 15, + 2 DIV - - 31 ), + - ( - 69 ) + + + 68 ) - 77 - - 98
----
78

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT + COALESCE ( CAST ( NULL AS INTEGER ), + COALESCE ( + 57, + 15, + 2 / - - 31 ), + - ( - 69 ) + + + 68 ) - 77 - - 98
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4133
SELECT DISTINCT 52 - + MIN( DISTINCT + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT 52 - + MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - ( 82 ) * 49 + 89
----
-3929

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT ALL - CASE - 78 WHEN - ( 89 ) * 84 THEN 90 + 66 * CASE - 20 WHEN 0 - AVG ( 71 ) THEN NULL WHEN 2 THEN COUNT( * ) ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL - CASE - 78 WHEN - ( 89 ) * 84 THEN 90 + 66 * CASE - 20 WHEN 0 - AVG ( 71 ) THEN NULL WHEN 2 THEN COUNT ( * ) ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT 23 * - COUNT( * ) - 9 col2
----
-32

skipif mysql # not compatible
query I rowsort label-4136
SELECT 23 * - COUNT ( * ) - 9 col2
----
-32

query I rowsort
SELECT 35 * - 64 AS col1
----
-2240

query I rowsort
SELECT 39 + + 66
----
105

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4139
SELECT 55 / MIN( CAST( NULL AS DECIMAL ) / 38 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT 55 / MIN ( CAST ( NULL AS REAL ) / 38 ) col1
----
NULL

query I rowsort
SELECT ALL 21 + + 70 * 27 AS col1
----
1911

query I rowsort
SELECT DISTINCT 80 + - 4 * 19 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ( 93 ) * 80 - - MIN( ALL + ( - 55 ) + 62 ) * COUNT( * ) AS col2
----
7447

skipif mysql # not compatible
query I rowsort label-4142
SELECT ( 93 ) * 80 - - MIN ( ALL + ( - 55 ) + 62 ) * COUNT ( * ) AS col2
----
7447

query I rowsort
SELECT ALL - 24 * + 19
----
-456

query I rowsort
SELECT 80 / CASE 69 WHEN 28 THEN 98 WHEN 46 + 99 THEN NULL END
----
NULL

query I rowsort
SELECT ( 10 ) * + 75
----
750

onlyif mysql # DIV for integer division: 
query I rowsort label-4146
SELECT DISTINCT 44 + 60 DIV + 90
----
44

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT 44 + 60 / + 90
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4147
SELECT 70 DIV + 59
----
1

skipif mysql # not compatible
query I rowsort label-4147
SELECT 70 / + 59
----
1

query I rowsort
SELECT DISTINCT 79 + - 19 * - 86 AS col2
----
1713

query I rowsort
SELECT ALL - 52 + 9 AS col2
----
-43

query I rowsort
SELECT ALL - 89 * + 12
----
-1068

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT 5 * MAX( ALL - 39 ) AS col0
----
-195

skipif mysql # not compatible
query I rowsort label-4151
SELECT 5 * MAX ( ALL - 39 ) AS col0
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4152
SELECT COUNT( 1 ) + - CAST( - 20 - 88 AS SIGNED )
----
109

skipif mysql # not compatible
query I rowsort label-4152
SELECT COUNT ( 1 ) + - CAST ( - 20 - 88 AS INTEGER )
----
109

query I rowsort
SELECT CASE 3 WHEN - ( - 23 ) + - ( - COALESCE ( 36, 40 ) ) THEN NULL ELSE + ( - 92 ) END + + 72 * + ( - 28 ) col1
----
-2108

query I rowsort
SELECT ALL 72 * - 74 AS col0
----
-5328

query I rowsort
SELECT 95 + 26 * 31 AS col0
----
901

query I rowsort
SELECT 30 * - 51
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ( + 1 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4157
SELECT ( + 1 ) + COUNT ( * )
----
2

query I rowsort
SELECT 14 + 70 AS col2
----
84

query I rowsort
SELECT ALL 36 * - 40 AS col2
----
-1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4160
SELECT CAST( NULL AS SIGNED ) + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4160
SELECT CAST ( NULL AS INTEGER ) + 63 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4161
SELECT 30 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4161
SELECT 30 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4162
SELECT ALL - 27 DIV - COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL - 27 / - COUNT ( * ) AS col1
----
27

query I rowsort
SELECT 39 + + 30 AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4164
SELECT DISTINCT - CASE - CAST( + 82 AS SIGNED ) WHEN COUNT( * ) THEN 51 - + 34 WHEN + 96 * COUNT( * ) THEN + 82 ELSE 95 END
----
-95

skipif mysql # not compatible
query I rowsort label-4164
SELECT DISTINCT - CASE - CAST ( + 82 AS INTEGER ) WHEN COUNT ( * ) THEN 51 - + 34 WHEN + 96 * COUNT ( * ) THEN + 82 ELSE 95 END
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-4165
SELECT - 85 DIV 55 + - 66
----
-67

skipif mysql # not compatible
query I rowsort label-4165
SELECT - 85 / 55 + - 66
----
-67

query I rowsort
SELECT + 34 + 41 * + 7
----
321

onlyif mysql # DIV for integer division: 
query I rowsort label-4167
SELECT ALL + + 67 DIV 63
----
1

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL + + 67 / 63
----
1

query I rowsort
SELECT - 73 + + 40 * 21 col0
----
767

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4169
SELECT - COUNT( * ) DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-4169
SELECT - COUNT ( * ) / + 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT SUM( ALL + 41 ) * 27 + MIN( ALL 43 )
----
1150

skipif mysql # not compatible
query I rowsort label-4170
SELECT SUM ( ALL + 41 ) * 27 + MIN ( ALL 43 )
----
1150

query I rowsort
SELECT ALL - 84 * + 38 AS col0
----
-3192

query I rowsort
SELECT ALL 79 * 9 + + 54
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT - ( - SUM( ALL - 87 ) ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-4173
SELECT - ( - SUM ( ALL - 87 ) ) AS col1
----
-87

query I rowsort
SELECT ALL - - 62 * 69 AS col0
----
4278

query I rowsort
SELECT - 32 * 82 AS col1
----
-2624

query I rowsort
SELECT + 83 * - 24 + + 27 AS col2
----
-1965

query I rowsort
SELECT DISTINCT - 84 * 75 + 75 * + 52
----
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT ALL - 49 * + 88 + COUNT( * ) * 44 AS col1
----
-4268

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL - 49 * + 88 + COUNT ( * ) * 44 AS col1
----
-4268

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4179
SELECT ALL - 7 DIV - COALESCE ( + COUNT( * ) * + ( - 70 * - 1 ), + 35 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL - 7 / - COALESCE ( + COUNT ( * ) * + ( - 70 * - 1 ), + 35 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT - - 2 + ( COUNT( * ) ) * ( 79 + + COUNT( * ) )
----
82

skipif mysql # not compatible
query I rowsort label-4180
SELECT - - 2 + ( COUNT ( * ) ) * ( 79 + + COUNT ( * ) )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ALL - 96 + - COALESCE ( 33, MAX( DISTINCT + 23 ), + COALESCE ( + 37, + 92 ) ) AS col2
----
-129

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL - 96 + - COALESCE ( 33, MAX ( DISTINCT + 23 ), + COALESCE ( + 37, + 92 ) ) AS col2
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT ALL + COUNT( * ) + - 25 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL + COUNT ( * ) + - 25 AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4183
SELECT ALL + 16 + - CASE - 17 WHEN 85 THEN + COALESCE ( 24, 7 + 69 ) ELSE NULL END * ( CASE COUNT( - 36 ) WHEN - 69 * + ( 27 ) THEN - 88 WHEN 76 THEN NULL WHEN - COUNT( * ) * COALESCE ( - 48 * - CAST( 82 AS SIGNED ), + 60 / + 96 ) THEN 8 * 79 ELSE + 69 + + COUNT( * ) * - 19 END + COUNT( * ) * + 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL + 16 + - CASE - 17 WHEN 85 THEN + COALESCE ( 24, 7 + 69 ) ELSE NULL END * ( CASE COUNT ( - 36 ) WHEN - 69 * + ( 27 ) THEN - 88 WHEN 76 THEN NULL WHEN - COUNT ( * ) * COALESCE ( - 48 * - CAST ( 82 AS INTEGER ), + 60 / + 96 ) THEN 8 * 79 ELSE + 69 + + COUNT ( * ) * - 19 END + COUNT ( * ) * + 34 )
----
NULL

query I rowsort
SELECT + 65 * - 38 + - 41 AS col0
----
-2511

query I rowsort
SELECT DISTINCT NULLIF ( 91, 44 * - 38 - + 20 )
----
91

query I rowsort
SELECT ALL + 93 * - 82 * - 91
----
693966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4187
SELECT + 14 + CAST( NULL AS SIGNED ) + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT + 14 + CAST ( NULL AS INTEGER ) + 35
----
NULL

query I rowsort
SELECT DISTINCT + 75 * + + 93
----
6975

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT - CASE - ( + ( 82 ) ) WHEN - 44 THEN 19 + COUNT( - 48 ) / - 69 WHEN SUM( ALL - 22 ) * 31 THEN 64 ELSE NULL END * + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4189
SELECT - CASE - ( + ( 82 ) ) WHEN - 44 THEN 19 + COUNT ( - 48 ) / - 69 WHEN SUM ( ALL - 22 ) * 31 THEN 64 ELSE NULL END * + 29 AS col1
----
NULL

query I rowsort
SELECT + 66 + + CASE + 36 WHEN 78 THEN - 2 * + 10 WHEN - 68 * - 68 THEN NULL END - 48 * 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT DISTINCT 31 - - - COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT 31 - - - COUNT ( * ) AS col1
----
30

query I rowsort
SELECT - NULLIF ( - 28, 18 ) AS col2
----
28

query I rowsort
SELECT + 60 + - 50
----
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4194
SELECT ALL ( - - 0 ) DIV - CAST( + 37 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL ( - - 0 ) / - CAST ( + 37 AS INTEGER )
----
0

query I rowsort
SELECT + 30 * + 93 AS col1
----
2790

query I rowsort
SELECT + 71 * - 39
----
-2769

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ALL MIN( + 76 ) * + 59 AS col2
----
4484

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL MIN ( + 76 ) * + 59 AS col2
----
4484

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT + 88 - - - ( COUNT( * ) )
----
87

skipif mysql # not compatible
query I rowsort label-4198
SELECT + 88 - - - ( COUNT ( * ) )
----
87

query I rowsort
SELECT + 94 * + + 28 AS col2
----
2632

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT + 71 * 58 * MAX( DISTINCT + 21 )
----
86478

skipif mysql # not compatible
query I rowsort label-4200
SELECT + 71 * 58 * MAX ( DISTINCT + 21 )
----
86478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4201
SELECT ALL + 18 * - 57 * CAST( NULL AS SIGNED ) + + COALESCE ( COUNT( * ), MAX( - 96 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL + 18 * - 57 * CAST ( NULL AS INTEGER ) + + COALESCE ( COUNT ( * ), MAX ( - 96 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4202
SELECT + - COUNT( * ) DIV + 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4202
SELECT + - COUNT ( * ) / + 45 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4203
SELECT DISTINCT 89 DIV 3 + 11
----
40

skipif mysql # not compatible
query I rowsort label-4203
SELECT DISTINCT 89 / 3 + 11
----
40

query I rowsort
SELECT DISTINCT 58 * + - 61
----
-3538

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4205
SELECT ALL - 88 / + CASE 47 WHEN + 66 THEN - 82 * COUNT( * ) END - + 84 + COUNT( DISTINCT + CAST( 53 AS DECIMAL ) + 21 ) * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - 88 / + CASE 47 WHEN + 66 THEN - 82 * COUNT ( * ) END - + 84 + COUNT ( DISTINCT + CAST ( 53 AS REAL ) + 21 ) * 40
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT + 31 * 6 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT + 31 * 6 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT DISTINCT + COALESCE ( - 60, + 84 ) * - 5 + - COUNT( * )
----
299

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT + COALESCE ( - 60, + 84 ) * - 5 + - COUNT ( * )
----
299

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT ALL - 59 * + 87 * 74 + - MIN( - 67 ) * + 15
----
-378837

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL - 59 * + 87 * 74 + - MIN ( - 67 ) * + 15
----
-378837

query I rowsort
SELECT + 73 * - - 25 AS col2
----
1825

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4210
SELECT + 51 DIV - - 78 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4210
SELECT + 51 / - - 78 + + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + + COALESCE ( - - 89, ( 27 ) ) col1
----
89

query I rowsort
SELECT + 0 + - 47 AS col0
----
-47

query I rowsort
SELECT ALL + 30 * 39 + - 85 * 9 + + ( COALESCE ( 6, 89 + - 38 ) ) * 98 AS col0
----
993

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT DISTINCT - - MAX( - + 90 ) * + 18 AS col0
----
-1620

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT - - MAX ( - + 90 ) * + 18 AS col0
----
-1620

query I rowsort
SELECT DISTINCT + 1 * - + CASE 37 WHEN + 60 * + 43 THEN - 93 END - - 63 + + 38 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4216
SELECT - COALESCE ( CASE + CAST( NULL AS SIGNED ) WHEN 49 THEN NULL ELSE 67 DIV AVG ( ALL CAST( NULL AS SIGNED ) ) END, 37, CASE 37 WHEN - 79 THEN 96 + - 28 * 16 END + 38 * - CASE + COALESCE ( MIN( + 19 ), - MAX( + 10 ) + - MIN( DISTINCT - 96 ) ) + COUNT( * ) * - 89 WHEN + 57 * 41 THEN NULL WHEN 81 + + ( - COUNT( * ) ) THEN - ( + 9 ) - + 22 ELSE 49 + CASE - ( - 36 ) + + 9 * + 30 WHEN MAX( ( 20 ) ) * + 88 THEN 38 * + 73 + - 8 WHEN - 26 THEN MAX( + 62 ) * 86 WHEN + 71 * + COUNT( * ) THEN NULL END * NULLIF ( 2 * 19 + - 52, 11 ) END )
----
-37

skipif mysql # not compatible
query I rowsort label-4216
SELECT - COALESCE ( CASE + CAST ( NULL AS INTEGER ) WHEN 49 THEN NULL ELSE 67 / AVG ( ALL CAST ( NULL AS INTEGER ) ) END, 37, CASE 37 WHEN - 79 THEN 96 + - 28 * 16 END + 38 * - CASE + COALESCE ( MIN ( + 19 ), - MAX ( + 10 ) + - MIN ( DISTINCT - 96 ) ) + COUNT ( * ) * - 89 WHEN + 57 * 41 THEN NULL WHEN 81 + + ( - COUNT ( * ) ) THEN - ( + 9 ) - + 22 ELSE 49 + CASE - ( - 36 ) + + 9 * + 30 WHEN MAX ( ( 20 ) ) * + 88 THEN 38 * + 73 + - 8 WHEN - 26 THEN MAX ( + 62 ) * 86 WHEN + 71 * + COUNT ( * ) THEN NULL END * NULLIF ( 2 * 19 + - 52, 11 ) END )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ALL + + COUNT( * ) * + 21 - + 59
----
-38

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL + + COUNT ( * ) * + 21 - + 59
----
-38

query I rowsort
SELECT ALL + - ( - + 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT DISTINCT - + 92 * COUNT( ALL 10 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT - + 92 * COUNT ( ALL 10 ) AS col2
----
-92

query I rowsort
SELECT - 50 - + - 75
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ALL + COUNT( DISTINCT - + 3 )
----
1

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL + COUNT ( DISTINCT - + 3 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4222
SELECT NULLIF ( + NULLIF ( - 91, CAST( NULL AS SIGNED ) * + 12 ), 5 * + 15 ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-4222
SELECT NULLIF ( + NULLIF ( - 91, CAST ( NULL AS INTEGER ) * + 12 ), 5 * + 15 ) col1
----
-91

query I rowsort
SELECT - ( - 61 ) * + 40 AS col2
----
2440

query I rowsort
SELECT - 43 * + - 91 * - + 95 AS col2
----
-371735

query I rowsort
SELECT ALL NULLIF ( 66, 26 * - 77 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT DISTINCT + ( 56 ) * + + 97 + NULLIF ( SUM( + 46 ), + 75 )
----
5478

skipif mysql # not compatible
query I rowsort label-4226
SELECT DISTINCT + ( 56 ) * + + 97 + NULLIF ( SUM ( + 46 ), + 75 )
----
5478

query I rowsort
SELECT DISTINCT ( - - 32 ) AS col1
----
32

query I rowsort
SELECT - 24 - 58 AS col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4229
SELECT ALL CAST( NULL AS DECIMAL ) AS col2, - MIN( + 30 ) AS col1
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-4229
SELECT ALL CAST ( NULL AS REAL ) AS col2, - MIN ( + 30 ) AS col1
----
NULL
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT DISTINCT + COUNT( * ) * + + COUNT( - 79 )
----
1

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( - 79 )
----
1

query I rowsort
SELECT - 71 + 98 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT + SUM( - 26 ) * - 54 - + 43 AS col1
----
1361

skipif mysql # not compatible
query I rowsort label-4232
SELECT + SUM ( - 26 ) * - 54 - + 43 AS col1
----
1361

query I rowsort
SELECT - 88 + ( - - 73 ) * + 10
----
642

query I rowsort
SELECT - ( ( 27 ) )
----
-27

query I rowsort
SELECT - 65 + - - 90 AS col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4236
SELECT + 70 - - 80 DIV + + 9
----
78

skipif mysql # not compatible
query I rowsort label-4236
SELECT + 70 - - 80 / + + 9
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4237
SELECT ALL 35 + - 91 + - - CAST( 35 AS SIGNED ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL 35 + - 91 + - - CAST ( 35 AS INTEGER ) AS col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4238
SELECT - COUNT( * ) + + - 62 + - - 41 + 15 DIV + 31 * + 19 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-4238
SELECT - COUNT ( * ) + + - 62 + - - 41 + 15 / + 31 * + 19 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT ALL + COUNT( * ) + + 71 * - - 85
----
6036

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL + COUNT ( * ) + + 71 * - - 85
----
6036

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4240
SELECT DISTINCT - 73 * + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT - 73 * + - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT + + 78 + - 2 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ALL 8 + - - 48 * - MIN( DISTINCT + 8 ) AS col0
----
-376

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL 8 + - - 48 * - MIN ( DISTINCT + 8 ) AS col0
----
-376

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT + - ( 68 ) + - 81 + - ( COUNT( * ) ) * 59 AS col0
----
-208

skipif mysql # not compatible
query I rowsort label-4243
SELECT + - ( 68 ) + - 81 + - ( COUNT ( * ) ) * 59 AS col0
----
-208

onlyif mysql # DIV for integer division: 
query I rowsort label-4244
SELECT 8 + - + ( - 60 ) DIV + 27
----
10

skipif mysql # not compatible
query I rowsort label-4244
SELECT 8 + - + ( - 60 ) / + 27
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT ALL COUNT( + + 93 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL COUNT ( + + 93 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT DISTINCT - ( 26 ) + NULLIF ( COUNT( * ), - 38 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT - ( 26 ) + NULLIF ( COUNT ( * ), - 38 ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT - COUNT( - 43 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4247
SELECT - COUNT ( - 43 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT ALL + COUNT( * ) + - + 75
----
-74

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL + COUNT ( * ) + - + 75
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4249
SELECT DISTINCT ( + NULLIF ( + 40, 72 + 27 ) ) * CASE + COALESCE ( + 30, + 22 * - 99 ) WHEN - 26 + 73 * + 11 THEN NULL WHEN 1 - COUNT( * ) THEN NULL WHEN 24 * - 48 + CAST( + 46 + - 13 AS SIGNED ) * + 97 THEN NULL WHEN 75 THEN + 86 + 76 / + 33 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT ( + NULLIF ( + 40, 72 + 27 ) ) * CASE + COALESCE ( + 30, + 22 * - 99 ) WHEN - 26 + 73 * + 11 THEN NULL WHEN 1 - COUNT ( * ) THEN NULL WHEN 24 * - 48 + CAST ( + 46 + - 13 AS INTEGER ) * + 97 THEN NULL WHEN 75 THEN + 86 + 76 / + 33 END AS col1
----
NULL

query I rowsort
SELECT + 71 * - 56 AS col2
----
-3976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4251
SELECT CASE + CASE - - NULLIF ( CASE - 31 WHEN 13 + CASE AVG ( + COALESCE ( - 19, 3 + - ( 72 ) ) ) + + 37 WHEN ( + 87 ) THEN - 57 + - COUNT( * ) WHEN 55 THEN NULL END / 89 THEN NULL ELSE + 66 + + 74 END, - COUNT( * ) * - 89 ) WHEN - COUNT( * ) THEN NULL WHEN COALESCE ( + 95, + 89 + 74 ) THEN 75 * + CAST( NULL AS SIGNED ) ELSE CAST( - ( - COUNT( * ) ) AS DECIMAL ) END WHEN 88 THEN + 52 * + SUM( ALL - 12 ) END * - 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT CASE + CASE - - NULLIF ( CASE - 31 WHEN 13 + CASE AVG ( + COALESCE ( - 19, 3 + - ( 72 ) ) ) + + 37 WHEN ( + 87 ) THEN - 57 + - COUNT ( * ) WHEN 55 THEN NULL END / 89 THEN NULL ELSE + 66 + + 74 END, - COUNT ( * ) * - 89 ) WHEN - COUNT ( * ) THEN NULL WHEN COALESCE ( + 95, + 89 + 74 ) THEN 75 * + CAST ( NULL AS INTEGER ) ELSE CAST ( - ( - COUNT ( * ) ) AS REAL ) END WHEN 88 THEN + 52 * + SUM ( ALL - 12 ) END * - 90 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4252
SELECT ALL - NULLIF ( + + 6, + + NULLIF ( - COALESCE ( + 18, 17 ), + CAST( NULL AS DECIMAL ) + + CAST( 37 AS SIGNED ) ) + + 79 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL - NULLIF ( + + 6, + + NULLIF ( - COALESCE ( + 18, 17 ), + CAST ( NULL AS REAL ) + + CAST ( 37 AS INTEGER ) ) + + 79 ) AS col0
----
-6

query I rowsort
SELECT ALL - 71 + 68 AS col0
----
-3

query I rowsort
SELECT DISTINCT - 13 * - - 28 + + + 98 AS col1
----
-266

query I rowsort
SELECT DISTINCT NULLIF ( - 81, 17 ) - + ( - 70 + ( 80 ) * 23 )
----
-1851

query I rowsort
SELECT ALL 37 - 16
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT 57 * + COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4257
SELECT 57 * + COUNT ( * ) AS col2
----
57

query I rowsort
SELECT ALL 77 * - 94 AS col2
----
-7238

query II rowsort
SELECT 62 AS col2, + 7 - + 10 + 50
----
62
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4260
SELECT 36 * - CAST( + 43 AS SIGNED ) * + 50
----
-77400

skipif mysql # not compatible
query I rowsort label-4260
SELECT 36 * - CAST ( + 43 AS INTEGER ) * + 50
----
-77400

query I rowsort
SELECT + 43 * - 96 AS col2
----
-4128

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL - 55 - COUNT( * ) + 13 * + COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL - 55 - COUNT ( * ) + 13 * + COUNT ( * ) AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT DISTINCT 14 DIV + 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT 14 / + 74 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4264
SELECT + CASE COUNT( * ) WHEN + 41 * NULLIF ( 30, 9 ) THEN - 54 + + MIN( 16 ) END * + MAX( + CAST( 68 AS SIGNED ) + 45 ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT + CASE COUNT ( * ) WHEN + 41 * NULLIF ( 30, 9 ) THEN - 54 + + MIN ( 16 ) END * + MAX ( + CAST ( 68 AS INTEGER ) + 45 ) + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4265
SELECT 98 DIV COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4265
SELECT 98 / COUNT ( * ) AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4266
SELECT 34 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-4266
SELECT 34 / + 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4267
SELECT ALL - COUNT( * ) * - + CASE - 92 WHEN + 15 * + 13 THEN - CAST( NULL AS SIGNED ) WHEN COUNT( DISTINCT 24 ) + 51 THEN 45 + + 96 WHEN 28 * 52 + - 17 THEN NULL ELSE 7 * - 78 - - COUNT( * ) END AS col0
----
-545

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL - COUNT ( * ) * - + CASE - 92 WHEN + 15 * + 13 THEN - CAST ( NULL AS INTEGER ) WHEN COUNT ( DISTINCT 24 ) + 51 THEN 45 + + 96 WHEN 28 * 52 + - 17 THEN NULL ELSE 7 * - 78 - - COUNT ( * ) END AS col0
----
-545

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL + MAX( 29 ) * 99 * + 24
----
68904

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL + MAX ( 29 ) * 99 * + 24
----
68904

query I rowsort
SELECT 58 * + - 62 + ( 71 ) + - 44 * + 39 AS col2
----
-5241

query II rowsort
SELECT 39 + - 34, 46 - 53 col1
----
5
-7

query I rowsort
SELECT ALL + 58 * - - 15
----
870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4272
SELECT 49 + + - COUNT( * ) + - COALESCE ( - 71, + 94, 35 DIV + 75 + 7 )
----
119

skipif mysql # not compatible
query I rowsort label-4272
SELECT 49 + + - COUNT ( * ) + - COALESCE ( - 71, + 94, 35 / + 75 + 7 )
----
119

query I rowsort
SELECT 58 * + + 68
----
3944

query I rowsort
SELECT 29 * + - 3 AS col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4275
SELECT SUM( ALL - 99 ) + + + COUNT( * ) * COUNT( ( - CAST( NULL AS DECIMAL ) ) )
----
-99

skipif mysql # not compatible
query I rowsort label-4275
SELECT SUM ( ALL - 99 ) + + + COUNT ( * ) * COUNT ( ( - CAST ( NULL AS REAL ) ) )
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4276
SELECT ALL - 68 + + + COUNT( * ) DIV 77 * + 57
----
-68

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL - 68 + + + COUNT ( * ) / 77 * + 57
----
-68

query I rowsort
SELECT DISTINCT + 14 + 36 * - 2
----
-58

query I rowsort
SELECT 48 * - 14
----
-672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4279
SELECT ALL + 96 + + 3 + + 36 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL + 96 + + 3 + + 36 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( 14, - 75 - - 24 )
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-4281
SELECT - NULLIF ( ( - 94 ), - 67 ) DIV - 50
----
-1

skipif mysql # not compatible
query I rowsort label-4281
SELECT - NULLIF ( ( - 94 ), - 67 ) / - 50
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT COALESCE ( - 3, + 34 ) * - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-4282
SELECT COALESCE ( - 3, + 34 ) * - COUNT ( * )
----
3

query I rowsort
SELECT + 28 * + 70 * + 46
----
90160

query I rowsort
SELECT + 2 * + - ( - - 5 )
----
-10

query I rowsort
SELECT + 42 - - 9 * + - 43 - + 73
----
-418

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT DISTINCT + - COUNT( * ) * - - 35 * CASE + + COUNT( * ) WHEN ( 38 ) THEN NULL WHEN COUNT( - 99 ) THEN NULL WHEN 32 THEN - 48 WHEN 30 + + COUNT( * ) THEN NULL END * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT + - COUNT ( * ) * - - 35 * CASE + + COUNT ( * ) WHEN ( 38 ) THEN NULL WHEN COUNT ( - 99 ) THEN NULL WHEN 32 THEN - 48 WHEN 30 + + COUNT ( * ) THEN NULL END * 40
----
NULL

query I rowsort
SELECT - 25 * + 6
----
-150

query I rowsort
SELECT DISTINCT + 53 - 60
----
-7

query I rowsort
SELECT ALL 22 - - + 74 AS col2
----
96

query I rowsort
SELECT - 59 * - 93 + + 94
----
5581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4291
SELECT + CAST( - CASE + 28 WHEN - 0 THEN + COALESCE ( + 71, - ( 75 ) * + CAST( - 14 * 46 AS SIGNED ), 37 * COUNT( * ) ) WHEN 34 THEN - 82 ELSE 21 END AS SIGNED ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4291
SELECT + CAST ( - CASE + 28 WHEN - 0 THEN + COALESCE ( + 71, - ( 75 ) * + CAST ( - 14 * 46 AS INTEGER ), 37 * COUNT ( * ) ) WHEN 34 THEN - 82 ELSE 21 END AS INTEGER ) AS col2
----
-21

query I rowsort
SELECT - 41 * + 9 AS col2
----
-369

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4293
SELECT + 4 DIV - + 70 + - 30 * + + CAST( 62 AS SIGNED ) AS col2
----
-1860

skipif mysql # not compatible
query I rowsort label-4293
SELECT + 4 / - + 70 + - 30 * + + CAST ( 62 AS INTEGER ) AS col2
----
-1860

query I rowsort
SELECT DISTINCT 8 * 28 AS col2
----
224

query I rowsort
SELECT 8 + 26 AS col1
----
34

query I rowsort
SELECT ALL - 71 * 94
----
-6674

onlyif mysql # DIV for integer division: 
query I rowsort label-4297
SELECT DISTINCT - COALESCE ( - + 19, 20 + - 45 + 63 + 94 DIV 79 )
----
19

skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT - COALESCE ( - + 19, 20 + - 45 + 63 + 94 / 79 )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4298
SELECT ALL 37 * + - CAST( - - CASE 0 WHEN + 95 - + 63 THEN + SUM( DISTINCT 70 ) * COUNT( * ) END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL 37 * + - CAST ( - - CASE 0 WHEN + 95 - + 63 THEN + SUM ( DISTINCT 70 ) * COUNT ( * ) END AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 91 AS col2, 2
----
-91
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4300
SELECT DISTINCT 72 * - 15 DIV 19 DIV - - COALESCE ( - 88, NULLIF ( NULLIF ( 57, 68 * ( + 96 DIV 39 ) ), - 22 ) + - 84 ) * 28
----
0

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT 72 * - 15 / 19 / - - COALESCE ( - 88, NULLIF ( NULLIF ( 57, 68 * ( + 96 / 39 ) ), - 22 ) + - 84 ) * 28
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4301
SELECT + COUNT( * ), + 16 AS col1
----
1
16

skipif mysql # not compatible
query II rowsort label-4301
SELECT + COUNT ( * ), + 16 AS col1
----
1
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4302
SELECT 4 * + CASE - 61 WHEN + - 76 THEN NULL ELSE 75 END * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT 4 * + CASE - 61 WHEN + - 76 THEN NULL ELSE 75 END * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 7 + - 18
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4304
SELECT COALESCE ( + - 71, - COALESCE ( COUNT( + 41 ), 65 + + COUNT( * ) * - 39 ) / 45 + COUNT( * ), COUNT( * ) ) - + 71 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4304
SELECT COALESCE ( + - 71, - COALESCE ( COUNT ( + 41 ), 65 + + COUNT ( * ) * - 39 ) / 45 + COUNT ( * ), COUNT ( * ) ) - + 71 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL 59 + - 47 + - COALESCE ( + COUNT( * ), + - 73 * COALESCE ( - ( 25 ) * 75, COUNT( ALL NULLIF ( 38, - 97 ) ) - + 93 ), + CASE 60 WHEN - 71 THEN - 92 * + 62 + 64 * COUNT( * ) WHEN + 34 THEN NULL END + - ( 12 ) ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL 59 + - 47 + - COALESCE ( + COUNT ( * ), + - 73 * COALESCE ( - ( 25 ) * 75, COUNT ( ALL NULLIF ( 38, - 97 ) ) - + 93 ), + CASE 60 WHEN - 71 THEN - 92 * + 62 + 64 * COUNT ( * ) WHEN + 34 THEN NULL END + - ( 12 ) ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT 29 - - 32 - + SUM( - COALESCE ( 85, - 43 * 45 ) ) * - 63 AS col1
----
-5294

skipif mysql # not compatible
query I rowsort label-4306
SELECT 29 - - 32 - + SUM ( - COALESCE ( 85, - 43 * 45 ) ) * - 63 AS col1
----
-5294

query I rowsort
SELECT 65 * - + 49 AS col2
----
-3185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4308
SELECT ( COUNT( + 57 ) ) * 10 DIV - ( ( + 66 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4308
SELECT ( COUNT ( + 57 ) ) * 10 / - ( ( + 66 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4309
SELECT DISTINCT 86 AS col2, 48 * + 28 AS col0, - 83 + + CAST( NULL AS SIGNED ) + 99
----
86
1344
NULL

skipif mysql # not compatible
query III rowsort label-4309
SELECT DISTINCT 86 AS col2, 48 * + 28 AS col0, - 83 + + CAST ( NULL AS INTEGER ) + 99
----
86
1344
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4310
SELECT + 35 - - 64 + - 92 - MIN( - + CAST( 70 AS SIGNED ) ) * - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-4310
SELECT + 35 - - 64 + - 92 - MIN ( - + CAST ( 70 AS INTEGER ) ) * - COUNT ( * )
----
-63

query I rowsort
SELECT ALL 17 * 95 AS col2
----
1615

query I rowsort
SELECT + 82 + 56
----
138

query I rowsort
SELECT ALL 43 + 11 + 70
----
124

query I rowsort
SELECT - 9 - + - 38
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4315
SELECT DISTINCT - 76, + ( + 30 ) * + COALESCE ( 54, NULLIF ( - ( 33 ), COUNT( * ) ) ) AS col0
----
-76
1620

skipif mysql # not compatible
query II rowsort label-4315
SELECT DISTINCT - 76, + ( + 30 ) * + COALESCE ( 54, NULLIF ( - ( 33 ), COUNT ( * ) ) ) AS col0
----
-76
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT - - MIN( 41 ) + 47
----
88

skipif mysql # not compatible
query I rowsort label-4316
SELECT - - MIN ( 41 ) + 47
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4317
SELECT ALL - + COUNT( * ) DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL - + COUNT ( * ) / - 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT + CASE + 89 WHEN COUNT( * ) - - - 15 + + - 34 + 80 / + 76 * 17 THEN - 79 / - 71 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4318
SELECT + CASE + 89 WHEN COUNT ( * ) - - - 15 + + - 34 + 80 / + 76 * 17 THEN - 79 / - 71 END AS col2
----
NULL

query I rowsort
SELECT ALL + 88 - + 73 * 50
----
-3562

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4320
SELECT 19 DIV - + MIN( DISTINCT + 32 ) + + 55 + - 49 * 34 AS col1
----
-1611

skipif mysql # not compatible
query I rowsort label-4320
SELECT 19 / - + MIN ( DISTINCT + 32 ) + + 55 + - 49 * 34 AS col1
----
-1611

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4321
SELECT - NULLIF ( + 91, + + 56 + + 19 - - CASE 67 WHEN 62 THEN NULL ELSE COUNT( * ) END + 90 ) DIV + 31 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4321
SELECT - NULLIF ( + 91, + + 56 + + 19 - - CASE 67 WHEN 62 THEN NULL ELSE COUNT ( * ) END + 90 ) / + 31 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4322
SELECT - 83 * + + ( - 91 ) + 0 DIV + 43 + - 26 * - 10
----
7813

skipif mysql # not compatible
query I rowsort label-4322
SELECT - 83 * + + ( - 91 ) + 0 / + 43 + - 26 * - 10
----
7813

query I rowsort
SELECT NULLIF ( - 53, + - 81 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT ALL - SUM( + - 11 ) * + 33 + + 80
----
443

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL - SUM ( + - 11 ) * + 33 + + 80
----
443

query I rowsort
SELECT + 1 + 14
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4326
SELECT + COUNT( * ), 9 AS col2
----
1
9

skipif mysql # not compatible
query II rowsort label-4326
SELECT + COUNT ( * ), 9 AS col2
----
1
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4327
SELECT DISTINCT + ( COUNT( * ) ) AS col1, NULLIF ( 41, - 2 ) AS col2
----
1
41

skipif mysql # not compatible
query II rowsort label-4327
SELECT DISTINCT + ( COUNT ( * ) ) AS col1, NULLIF ( 41, - 2 ) AS col2
----
1
41

query I rowsort
SELECT COALESCE ( + 99, CASE - 84 WHEN + 42 THEN 45 + + 3 ELSE NULL END * 32 ) AS col0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4329
SELECT ALL + 42 * 5 * - CAST( - 80 AS SIGNED ) + - 72 col1
----
16728

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL + 42 * 5 * - CAST ( - 80 AS INTEGER ) + - 72 col1
----
16728

query I rowsort
SELECT - 65 + - + 82
----
-147

query I rowsort
SELECT CASE + + 9 WHEN + - 56 * + 4 * + 79 + AVG ( ALL 60 ) * 6 THEN NULL WHEN 30 THEN 27 * 85 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4332
SELECT DISTINCT - NULLIF ( - - 27, - - 36 * + CAST( NULL AS SIGNED ) * - 38 * + 63 ) * 56 AS col1
----
-1512

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT - NULLIF ( - - 27, - - 36 * + CAST ( NULL AS INTEGER ) * - 38 * + 63 ) * 56 AS col1
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT DISTINCT + 81 * + SUM( ALL 58 ) + - COALESCE ( 8, - 55, + 37 * 20 )
----
4690

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT + 81 * + SUM ( ALL 58 ) + - COALESCE ( 8, - 55, + 37 * 20 )
----
4690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4334
SELECT ALL 21 * 49 * - 96 + CASE COUNT( + 14 ) WHEN CASE + 14 WHEN 12 THEN NULL WHEN + 82 * + 32 THEN - NULLIF ( + AVG ( ALL + CAST( 87 AS SIGNED ) ), + NULLIF ( - ( COUNT( * ) ), - COUNT( * ) * 20 - + 43 ) * - 77 + CAST( NULL AS DECIMAL ) / CAST( 73 - 67 AS SIGNED ) ) ELSE NULL END - - 70 * 57 THEN NULL ELSE - 45 * 1 - + 6 END
----
-98835

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL 21 * 49 * - 96 + CASE COUNT ( + 14 ) WHEN CASE + 14 WHEN 12 THEN NULL WHEN + 82 * + 32 THEN - NULLIF ( + AVG ( ALL + CAST ( 87 AS INTEGER ) ), + NULLIF ( - ( COUNT ( * ) ), - COUNT ( * ) * 20 - + 43 ) * - 77 + CAST ( NULL AS REAL ) / CAST ( 73 - 67 AS INTEGER ) ) ELSE NULL END - - 70 * 57 THEN NULL ELSE - 45 * 1 - + 6 END
----
-98835

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT - MAX( ALL + 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4335
SELECT - MAX ( ALL + 23 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT + ( + - 48 ) + + 4 + + COALESCE ( + + 28, 83 + - ( MIN( ( ( 31 ) ) ) ) ) * - 56 AS col0
----
-1612

skipif mysql # not compatible
query I rowsort label-4336
SELECT + ( + - 48 ) + + 4 + + COALESCE ( + + 28, 83 + - ( MIN ( ( ( 31 ) ) ) ) ) * - 56 AS col0
----
-1612

onlyif mysql # DIV for integer division: 
query I rowsort label-4337
SELECT + NULLIF ( + 63, - - 23 + - 58 ) DIV - 32 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4337
SELECT + NULLIF ( + 63, - - 23 + - 58 ) / - 32 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT + + COUNT( * ) * - - 71 - - 38
----
109

skipif mysql # not compatible
query I rowsort label-4338
SELECT + + COUNT ( * ) * - - 71 - - 38
----
109

query III rowsort
SELECT - 88 AS col0, 33, + - 56 AS col0
----
-88
33
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-4340
SELECT ALL 38 col0, 50 - - COUNT( * ) + 44 + + COALESCE ( - 62, - 30 * - 79 ) * NULLIF ( + 14 + 74, 44 + 9 ) col1
----
38
-5361

skipif mysql # not compatible
query II rowsort label-4340
SELECT ALL 38 col0, 50 - - COUNT ( * ) + 44 + + COALESCE ( - 62, - 30 * - 79 ) * NULLIF ( + 14 + 74, 44 + 9 ) col1
----
38
-5361

onlyif mysql # DIV for integer division: 
query I rowsort label-4341
SELECT DISTINCT 16 DIV + 28 * + + 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT 16 / + 28 * + + 29 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT DISTINCT COUNT( * ) - - MAX( DISTINCT 68 )
----
69

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT COUNT ( * ) - - MAX ( DISTINCT 68 )
----
69

query I rowsort
SELECT + + NULLIF ( + ( + 39 ), 2 ) * + - ( + + COALESCE ( 87, - 76 + 31 ) ) + - 92 * - 27 AS col1
----
-909

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4344
SELECT ALL - CAST( - - 61 AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL - CAST ( - - 61 AS INTEGER )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-4345
SELECT - + 9 AS col2, 32 * - + CASE + 99 WHEN COUNT( * ) THEN NULL ELSE + - COUNT( * ) + - NULLIF ( - 66, - COUNT( * ) ) * 4 END AS col1
----
-9
-8416

skipif mysql # not compatible
query II rowsort label-4345
SELECT - + 9 AS col2, 32 * - + CASE + 99 WHEN COUNT ( * ) THEN NULL ELSE + - COUNT ( * ) + - NULLIF ( - 66, - COUNT ( * ) ) * 4 END AS col1
----
-9
-8416

onlyif mysql # aggregate syntax: 
query II rowsort label-4346
SELECT - COUNT( * ) AS col2, + 37 AS col0
----
-1
37

skipif mysql # not compatible
query II rowsort label-4346
SELECT - COUNT ( * ) AS col2, + 37 AS col0
----
-1
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4347
SELECT - + CAST( NULL AS SIGNED ) * - MAX( DISTINCT - 80 ) * + + 28 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4347
SELECT - + CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT - 80 ) * + + 28 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT - 14 * - 96 * - COUNT( * ) + 33 AS col1
----
-1311

skipif mysql # not compatible
query I rowsort label-4348
SELECT - 14 * - 96 * - COUNT ( * ) + 33 AS col1
----
-1311

query I rowsort
SELECT + + 62 - + 28 + + + 28 AS col2
----
62

query II rowsort
SELECT DISTINCT 96 AS col1, 83
----
96
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4351
SELECT DISTINCT 32 + + COALESCE ( 43, + - 12 DIV - NULLIF ( + COUNT( * ), AVG ( DISTINCT + 83 ) * - 25 + + 14 * 68 ) * 58 + CAST( NULL AS SIGNED ) ) * + 66 AS col2
----
2870

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT 32 + + COALESCE ( 43, + - 12 / - NULLIF ( + COUNT ( * ), AVG ( DISTINCT + 83 ) * - 25 + + 14 * 68 ) * 58 + CAST ( NULL AS INTEGER ) ) * + 66 AS col2
----
2870

query II rowsort
SELECT ALL ( - 79 ) AS col0, 48 col0
----
-79
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT - + 13 * - CASE + + 43 WHEN 13 * 43 THEN + 70 + - 98 WHEN + 72 THEN + 76 END + + ( + MAX( - 24 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4353
SELECT - + 13 * - CASE + + 43 WHEN 13 * 43 THEN + 70 + - 98 WHEN + 72 THEN + 76 END + + ( + MAX ( - 24 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4354
SELECT ALL + - MIN( DISTINCT - 87 ) DIV - + 91 * - + 28 + 7 + + 70 * - ( 10 DIV + ( - 59 ) + - 48 ) + + MIN( DISTINCT 12 ) AS col1
----
3379

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL + - MIN ( DISTINCT - 87 ) / - + 91 * - + 28 + 7 + + 70 * - ( 10 / + ( - 59 ) + - 48 ) + + MIN ( DISTINCT 12 ) AS col1
----
3379

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4355
SELECT ALL - 24 DIV 70 + - + SUM( DISTINCT + 13 ) col2
----
-13

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL - 24 / 70 + - + SUM ( DISTINCT + 13 ) col2
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4356
SELECT ALL + COUNT( * ) DIV - 31 + - 91 + 62 * + - 87 + + + 25 AS col1
----
-5460

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL + COUNT ( * ) / - 31 + - 91 + 62 * + - 87 + + + 25 AS col1
----
-5460

onlyif mysql # DIV for integer division: 
query I rowsort label-4357
SELECT 8 DIV 93 - - + 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-4357
SELECT 8 / 93 - - + 57 AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4358
SELECT CAST( + 23 AS SIGNED ) col1
----
23

skipif mysql # not compatible
query I rowsort label-4358
SELECT CAST ( + 23 AS INTEGER ) col1
----
23

query I rowsort
SELECT - 60 * 34 AS col1
----
-2040

onlyif mysql # DIV for integer division: 
query I rowsort label-4360
SELECT ALL + ( 24 ) DIV + - 70 + 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL + ( 24 ) / + - 70 + 57 AS col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4361
SELECT DISTINCT - COUNT( * ) DIV - - ( + - ( + + 32 ) ) + - - 20 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT - COUNT ( * ) / - - ( + - ( + + 32 ) ) + - - 20 AS col2
----
20

query I rowsort
SELECT - 24 + 31 AS col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4363
SELECT ALL - 70 DIV - SUM( ALL - 16 ) + + + COUNT( * ) + + 19 + + 83 DIV 16 * ( - 20 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL - 70 / - SUM ( ALL - 16 ) + + + COUNT ( * ) + + 19 + + 83 / 16 * ( - 20 ) AS col0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4364
SELECT DISTINCT + CAST( - 17 AS SIGNED ) + + 38 * - 91 + + + 72
----
-3403

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT + CAST ( - 17 AS INTEGER ) + + 38 * - 91 + + + 72
----
-3403

query II rowsort
SELECT 58 * - 84, + 25 AS col0
----
-4872
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4366
SELECT ALL 6 DIV 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL 6 / 62 AS col2
----
0

query I rowsort
SELECT DISTINCT + 64 - 64 - 12 AS col2
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4368
SELECT 54 - - - 8 + + - 10 + - + MIN( ALL 3 ) DIV 27 DIV - 44
----
36

skipif mysql # not compatible
query I rowsort label-4368
SELECT 54 - - - 8 + + - 10 + - + MIN ( ALL 3 ) / 27 / - 44
----
36

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4369
SELECT 57 * + CAST( ( CAST( NULL AS SIGNED ) ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4369
SELECT 57 * + CAST ( ( CAST ( NULL AS INTEGER ) ) AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4370
SELECT CAST( - - 15 AS SIGNED ) * + 39 * 19 * 6 AS col0
----
66690

skipif mysql # not compatible
query I rowsort label-4370
SELECT CAST ( - - 15 AS INTEGER ) * + 39 * 19 * 6 AS col0
----
66690

query I rowsort
SELECT - ( - 23 ) col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL + COUNT( * ) * + + 21
----
21

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL + COUNT ( * ) * + + 21
----
21

query I rowsort
SELECT ( - 63 ) * + - 93
----
5859

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT ALL + - 69 * - + 42 - ( COUNT( * ) ) + COUNT( * ) + 97 AS col1
----
2995

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL + - 69 * - + 42 - ( COUNT ( * ) ) + COUNT ( * ) + 97 AS col1
----
2995

query I rowsort
SELECT DISTINCT - ( + - 20 )
----
20

query I rowsort
SELECT 77 - - 91
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT ALL COUNT( * ) * + 56 * + 39
----
2184

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL COUNT ( * ) * + 56 * + 39
----
2184

query II rowsort
SELECT 80 + + 42, + NULLIF ( - 34, - - 10 * COALESCE ( - NULLIF ( + NULLIF ( + 40, + 56 * 17 + 65 * - 57 ), 0 + - 44 ), ( 86 ) ) * + 82 - + 97 * - 7 ) col2
----
122
-34

query I rowsort
SELECT - 71 - + 48 * + + COALESCE ( - 66, 99 ) AS col2
----
3097

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT DISTINCT - MIN( - + 33 )
----
33

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT - MIN ( - + 33 )
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-4381
SELECT 16 * - + 29, 26 DIV + 83 + - 34 DIV 20 AS col0
----
-464
-1

skipif mysql # not compatible
query II rowsort label-4381
SELECT 16 * - + 29, 26 / + 83 + - 34 / 20 AS col0
----
-464
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT COUNT( * ) - - ( 54 ) col2
----
55

skipif mysql # not compatible
query I rowsort label-4382
SELECT COUNT ( * ) - - ( 54 ) col2
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4383
SELECT ALL COUNT( DISTINCT - 93 ) DIV + + 85
----
0

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL COUNT ( DISTINCT - 93 ) / + + 85
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4384
SELECT DISTINCT COALESCE ( + 57, + SUM( ALL - 83 ) * - + 98 DIV + + 12, 15 * + SUM( ALL + 75 ) ) + 7
----
64

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT COALESCE ( + 57, + SUM ( ALL - 83 ) * - + 98 / + + 12, 15 * + SUM ( ALL + 75 ) ) + 7
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4385
SELECT DISTINCT - NULLIF ( 7, + 39 ) * + CASE - 87 WHEN 56 * + - ( + CAST( + 50 AS SIGNED ) ) + + CAST( NULL AS SIGNED ) THEN - 32 + 24 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT - NULLIF ( 7, + 39 ) * + CASE - 87 WHEN 56 * + - ( + CAST ( + 50 AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) THEN - 32 + 24 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT ALL - - 6 + 12 - + 59 + - 45 + + - ( - 32 ) * - COUNT( 2 ) * + 62 * 5 AS col2
----
-10006

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL - - 6 + 12 - + 59 + - 45 + + - ( - 32 ) * - COUNT ( 2 ) * + 62 * 5 AS col2
----
-10006

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4387
SELECT - 87 + - COUNT( * ) * - 57 DIV - - ( + + 92 ), ( 66 ) + + 79 DIV 19 AS col2
----
-87
70

skipif mysql # not compatible
query II rowsort label-4387
SELECT - 87 + - COUNT ( * ) * - 57 / - - ( + + 92 ), ( 66 ) + + 79 / 19 AS col2
----
-87
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT NULLIF ( - COUNT( * ), - + ( 67 ) ) * + 51 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4388
SELECT NULLIF ( - COUNT ( * ), - + ( 67 ) ) * + 51 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT DISTINCT COUNT( * ) + - 27 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-4389
SELECT DISTINCT COUNT ( * ) + - 27 AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4390
SELECT ALL 84 + + + 87 + + 9 * - 39 * CAST( NULL AS SIGNED ) * 7 + + 47 + + 5 + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL 84 + + + 87 + + 9 * - 39 * CAST ( NULL AS INTEGER ) * 7 + + 47 + + 5 + 6 AS col0
----
NULL

query I rowsort
SELECT ( 36 ) * + + ( - 54 ) * - 21 + + 15 + + 52
----
40891

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT ALL NULLIF ( 53, - - 84 * - 61 ) + + COUNT( * ) + - + MIN( DISTINCT - - 8 )
----
46

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL NULLIF ( 53, - - 84 * - 61 ) + + COUNT ( * ) + - + MIN ( DISTINCT - - 8 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL - NULLIF ( - 26, + 13 - + CASE 81 WHEN + - 97 / + COALESCE ( + + COUNT( * ), - 42, 1 ) THEN NULLIF ( - 64, 34 * NULLIF ( - 45, + 90 * - 79 ) ) / - 15 END ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL - NULLIF ( - 26, + 13 - + CASE 81 WHEN + - 97 / + COALESCE ( + + COUNT ( * ), - 42, 1 ) THEN NULLIF ( - 64, 34 * NULLIF ( - 45, + 90 * - 79 ) ) / - 15 END ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4394
SELECT DISTINCT - 90, 62 * - + COUNT( ( + 35 ) ) AS col2
----
-90
-62

skipif mysql # not compatible
query II rowsort label-4394
SELECT DISTINCT - 90, 62 * - + COUNT ( ( + 35 ) ) AS col2
----
-90
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-4395
SELECT 69 DIV - 72 + - + 62, + 46 AS col1
----
-62
46

skipif mysql # not compatible
query II rowsort label-4395
SELECT 69 / - 72 + - + 62, + 46 AS col1
----
-62
46

query I rowsort
SELECT 68 * - - 32 AS col2
----
2176

query I rowsort
SELECT 74 + + + 44 AS col1
----
118

query II rowsort
SELECT + 33, ( - 98 ) AS col1
----
33
-98

query I rowsort
SELECT DISTINCT - ( - 83 ) AS col1
----
83

query II rowsort
SELECT DISTINCT 76 * + 52 * 41 AS col1, + 38 AS col1
----
162032
38

query I rowsort
SELECT ALL + ( + + 78 ) * 21
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT - 19 * COUNT( * ) * - 86
----
1634

skipif mysql # not compatible
query I rowsort label-4402
SELECT - 19 * COUNT ( * ) * - 86
----
1634

query I rowsort
SELECT DISTINCT - COALESCE ( + - 54, 47, + - 28 - + - 52 )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4404
SELECT ALL - - COALESCE ( COALESCE ( 38, - 45 ), - ( + 65 ) * - ( + ( + COUNT( * ) ) ), 60 + MIN( 75 ) DIV 18 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL - - COALESCE ( COALESCE ( 38, - 45 ), - ( + 65 ) * - ( + ( + COUNT ( * ) ) ), 60 + MIN ( 75 ) / 18 ) AS col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT + 25 * - - ( - CAST( 68 AS SIGNED ) ) + - 45 + - CAST( 30 AS SIGNED ) * - 34
----
-725

skipif mysql # not compatible
query I rowsort label-4405
SELECT + 25 * - - ( - CAST ( 68 AS INTEGER ) ) + - 45 + - CAST ( 30 AS INTEGER ) * - 34
----
-725

onlyif mysql # DIV for integer division: 
query I rowsort label-4406
SELECT + 86 DIV - + 33 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4406
SELECT + 86 / - + 33 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT ( + 30 ) * + 20 - COUNT( * ) AS col1
----
599

skipif mysql # not compatible
query I rowsort label-4407
SELECT ( + 30 ) * + 20 - COUNT ( * ) AS col1
----
599

query I rowsort
SELECT + 69 + - + 87 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-4409
SELECT ALL + COUNT( * ) + ( + 54 ), - 42 AS col1
----
55
-42

skipif mysql # not compatible
query II rowsort label-4409
SELECT ALL + COUNT ( * ) + ( + 54 ), - 42 AS col1
----
55
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT DISTINCT COALESCE ( - + 33, + - 14 * - + ( ( + 64 ) ) * CASE + 88 WHEN + MAX( - ( 25 ) ) THEN - COALESCE ( 44, 84, 77 ) + - 35 WHEN CASE 74 WHEN - 84 * - 20 + 72 THEN NULL WHEN 91 THEN 11 WHEN - COUNT( * ) * COUNT( * ) THEN 28 ELSE NULL END - - 0 / 23 THEN - COUNT( * ) END ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT COALESCE ( - + 33, + - 14 * - + ( ( + 64 ) ) * CASE + 88 WHEN + MAX ( - ( 25 ) ) THEN - COALESCE ( 44, 84, 77 ) + - 35 WHEN CASE 74 WHEN - 84 * - 20 + 72 THEN NULL WHEN 91 THEN 11 WHEN - COUNT ( * ) * COUNT ( * ) THEN 28 ELSE NULL END - - 0 / 23 THEN - COUNT ( * ) END ) AS col0
----
-33

query II rowsort
SELECT ALL + 58 AS col0, - ( - - 88 ) col1
----
58
-88

query I rowsort
SELECT - 35 * 67 col0
----
-2345

query II rowsort
SELECT - 14 AS col1, + 11 + 91 col0
----
-14
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL NULLIF ( 48, + 74 + + COUNT( * ) + 42 ) col2
----
48

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL NULLIF ( 48, + 74 + + COUNT ( * ) + 42 ) col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT ALL + 91 + - SUM( + 15 ) * + 95
----
-1334

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL + 91 + - SUM ( + 15 ) * + 95
----
-1334

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT COUNT( * ) * + ( + - 47 ) * + + 53 AS col0
----
-2491

skipif mysql # not compatible
query I rowsort label-4416
SELECT COUNT ( * ) * + ( + - 47 ) * + + 53 AS col0
----
-2491

query I rowsort
SELECT DISTINCT + 58 + + 25 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT ( + MAX( DISTINCT - - 77 ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-4418
SELECT ( + MAX ( DISTINCT - - 77 ) ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT COUNT( * ) - - ( + COUNT( * ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4419
SELECT COUNT ( * ) - - ( + COUNT ( * ) ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT DISTINCT CASE 87 WHEN - + 87 + + - CASE + 37 WHEN + + 65 THEN SUM( ALL - - 5 ) ELSE NULL END THEN + MAX( 17 ) WHEN 43 - 46 THEN NULL ELSE - ( - ( + 30 ) ) * 40 END AS col1
----
1200

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT CASE 87 WHEN - + 87 + + - CASE + 37 WHEN + + 65 THEN SUM ( ALL - - 5 ) ELSE NULL END THEN + MAX ( 17 ) WHEN 43 - 46 THEN NULL ELSE - ( - ( + 30 ) ) * 40 END AS col1
----
1200

query I rowsort
SELECT DISTINCT 30 * 6
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4422
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) - - 87 * 48 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) - - 87 * 48 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT + MIN( ALL - + 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-4423
SELECT + MIN ( ALL - + 38 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT CASE COUNT( * ) WHEN + 9 THEN 16 END / 34 - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT CASE COUNT ( * ) WHEN + 9 THEN 16 END / 34 - 6
----
NULL

query I rowsort
SELECT + 89 * + - 47
----
-4183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4426
SELECT DISTINCT 94 * + CAST( + - 89 AS SIGNED )
----
-8366

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT 94 * + CAST ( + - 89 AS INTEGER )
----
-8366

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT + MIN( DISTINCT - ( - 88 ) ) * + COUNT( ALL + - ( 61 ) )
----
88

skipif mysql # not compatible
query I rowsort label-4427
SELECT + MIN ( DISTINCT - ( - 88 ) ) * + COUNT ( ALL + - ( 61 ) )
----
88

query I rowsort
SELECT DISTINCT 88 * + 86 AS col2
----
7568

query I rowsort
SELECT + ( + - 69 ) + + + 73 - - 97 col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT + ( + - NULLIF ( 81, 78 * - 95 * 59 ) ) * + 13 - CASE + ( 48 ) WHEN 40 THEN + 5 + 9 WHEN COUNT( * ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4430
SELECT + ( + - NULLIF ( 81, 78 * - 95 * 59 ) ) * + 13 - CASE + ( 48 ) WHEN 40 THEN + 5 + 9 WHEN COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4431
SELECT MIN( ALL + + 6 ) AS col0, 32 col1
----
6
32

skipif mysql # not compatible
query II rowsort label-4431
SELECT MIN ( ALL + + 6 ) AS col0, 32 col1
----
6
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT ALL + 7 * COUNT( DISTINCT - 54 ) + 78 + 80
----
165

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL + 7 * COUNT ( DISTINCT - 54 ) + 78 + 80
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4433
SELECT + - 2 * + COALESCE ( 67, - 51 + 32 DIV + 87, - + 46 + + - COUNT( - 1 ) ) - - 0
----
-134

skipif mysql # not compatible
query I rowsort label-4433
SELECT + - 2 * + COALESCE ( 67, - 51 + 32 / + 87, - + 46 + + - COUNT ( - 1 ) ) - - 0
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT DISTINCT COUNT( * ) * 30 * + NULLIF ( 1, + + 79 * + - 32 / + 20 - + 74 ) + - 74 * - 94
----
6986

skipif mysql # not compatible
query I rowsort label-4434
SELECT DISTINCT COUNT ( * ) * 30 * + NULLIF ( 1, + + 79 * + - 32 / + 20 - + 74 ) + - 74 * - 94
----
6986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4435
SELECT - CAST( - - ( + 55 ) AS SIGNED ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-4435
SELECT - CAST ( - - ( + 55 ) AS INTEGER ) AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4436
SELECT + CAST( - 73 AS SIGNED ) - - 43 * COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-4436
SELECT + CAST ( - 73 AS INTEGER ) - - 43 * COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4437
SELECT ALL - 43 * 47 + NULLIF ( - 82, - - 64 * - 43 * COUNT( * ) ) DIV 72 AS col0
----
-2022

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL - 43 * 47 + NULLIF ( - 82, - - 64 * - 43 * COUNT ( * ) ) / 72 AS col0
----
-2022

query I rowsort
SELECT + 6 + - - 42 AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4439
SELECT ALL MIN( ALL - CAST( NULL AS SIGNED ) ) + CAST( - + COUNT( * ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL MIN ( ALL - CAST ( NULL AS INTEGER ) ) + CAST ( - + COUNT ( * ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 70 + - 92 + + ( + 91 ) - + + 87 col1
----
-18

query I rowsort
SELECT DISTINCT - ( + 68 ) * - CASE + 35 WHEN - 26 THEN NULL ELSE + 66 END
----
4488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4442
SELECT ALL + - ( - + 18 ) + + + ( - CASE - + 45 WHEN - 31 THEN - + 25 WHEN - - 58 THEN - 15 ELSE 76 + - CASE + CASE 20 WHEN - ( 63 ) * 0 THEN NULL WHEN 55 - 13 * + 35 THEN 91 ELSE NULL END WHEN COUNT( DISTINCT + 20 ) - 90 / 58 THEN 30 / 43 WHEN - CAST( NULL AS SIGNED ) * + 40 + CAST( COUNT( * ) + - 52 AS DECIMAL ) THEN 25 WHEN 43 THEN NULL END END ) + ( - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL + - ( - + 18 ) + + + ( - CASE - + 45 WHEN - 31 THEN - + 25 WHEN - - 58 THEN - 15 ELSE 76 + - CASE + CASE 20 WHEN - ( 63 ) * 0 THEN NULL WHEN 55 - 13 * + 35 THEN 91 ELSE NULL END WHEN COUNT ( DISTINCT + 20 ) - 90 / 58 THEN 30 / 43 WHEN - CAST ( NULL AS INTEGER ) * + 40 + CAST ( COUNT ( * ) + - 52 AS REAL ) THEN 25 WHEN 43 THEN NULL END END ) + ( - 70 )
----
NULL

query I rowsort
SELECT - + 84 - - 25 AS col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4444
SELECT ALL + - 97 * CAST( NULL AS SIGNED ) * - - ( + + 25 ) - - - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL + - 97 * CAST ( NULL AS INTEGER ) * - - ( + + 25 ) - - - 49
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4445
SELECT DISTINCT + 62 + - 36 + + 23 * - 30 * + COALESCE ( 51, + 76, - CAST( - + 91 AS SIGNED ) ) AS col1
----
-35164

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT + 62 + - 36 + + 23 * - 30 * + COALESCE ( 51, + 76, - CAST ( - + 91 AS INTEGER ) ) AS col1
----
-35164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4446
SELECT + COUNT( CAST( NULL AS SIGNED ) ) * 4
----
0

skipif mysql # not compatible
query I rowsort label-4446
SELECT + COUNT ( CAST ( NULL AS INTEGER ) ) * 4
----
0

query II rowsort
SELECT - + 40 + + 81 AS col2, 80 * + + 10 * - + 75 AS col0
----
41
-60000

query II rowsort
SELECT ALL + + 22 + 95 AS col1, 76 AS col0
----
117
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT - COUNT( * ) + + - 59 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-4449
SELECT - COUNT ( * ) + + - 59 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT ALL - SUM( ( + - 13 ) ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL - SUM ( ( + - 13 ) ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT - COUNT( * ) + - + 28
----
-29

skipif mysql # not compatible
query I rowsort label-4451
SELECT - COUNT ( * ) + - + 28
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4452
SELECT - 2 + + 7 + - 25 DIV + - 56
----
5

skipif mysql # not compatible
query I rowsort label-4452
SELECT - 2 + + 7 + - 25 / + - 56
----
5

query I rowsort
SELECT ALL + 50 - - 64
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4454
SELECT ALL CASE - 70 WHEN + 25 / ( - + 1 ) * - ( - + CAST( NULL AS SIGNED ) ) THEN - 2 WHEN + - 71 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL CASE - 70 WHEN + 25 / ( - + 1 ) * - ( - + CAST ( NULL AS INTEGER ) ) THEN - 2 WHEN + - 71 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 78 * - 92 AS col1
----
7176

query I rowsort
SELECT + CASE + 56 WHEN - 74 + + 85 THEN - 97 END + 62 + + 55 + + 79 + 82
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4457
SELECT DISTINCT CAST( + + COUNT( + 81 ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT CAST ( + + COUNT ( + 81 ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT - 59 * 32
----
-1888

query I rowsort
SELECT + 65 * - 95
----
-6175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4460
SELECT - CASE - 46 WHEN 88 THEN + ( + 94 ) * 24 - + 70 + + + CAST( NULL AS SIGNED ) * + 92 + 38 END + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-4460
SELECT - CASE - 46 WHEN 88 THEN + ( + 94 ) * 24 - + 70 + + + CAST ( NULL AS INTEGER ) * + 92 + 38 END + + 32
----
NULL

query I rowsort
SELECT ALL 76 * + + 94
----
7144

query I rowsort
SELECT DISTINCT NULLIF ( - 42, 84 * + 10 + - 26 ) * + 39
----
-1638

query I rowsort
SELECT DISTINCT 5 * 60
----
300

query I rowsort
SELECT + 24 + + + 49
----
73

query I rowsort
SELECT DISTINCT - 18 * - 61 AS col0
----
1098

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT + + COUNT( * ) * + + 7 * + 51 + 87 * - 99 + - - 74 AS col1
----
-8182

skipif mysql # not compatible
query I rowsort label-4466
SELECT + + COUNT ( * ) * + + 7 * + 51 + 87 * - 99 + - - 74 AS col1
----
-8182

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT ALL - ( + COUNT( * ) ) * - 93 + 41 col2
----
134

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL - ( + COUNT ( * ) ) * - 93 + 41 col2
----
134

query I rowsort
SELECT + + 79 + + + COALESCE ( - - 80, - 89 * + + 80 ) col0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT DISTINCT + 46 * - + 26 + - 57 + 16 + - 97 + 89 * 29 * - 33 * + - NULLIF ( - + 18, 37 * COUNT( * ) ) * NULLIF ( + 41, 73 / - 73 ) - - 69
----
-62858939

skipif mysql # not compatible
query I rowsort label-4469
SELECT DISTINCT + 46 * - + 26 + - 57 + 16 + - 97 + 89 * 29 * - 33 * + - NULLIF ( - + 18, 37 * COUNT ( * ) ) * NULLIF ( + 41, 73 / - 73 ) - - 69
----
-62858939

query I rowsort
SELECT + + ( - 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4471
SELECT 13 * - - COALESCE ( 17, 21 + + 79, - COUNT( * ) ) DIV - + COUNT( * ) + - 69 + + + NULLIF ( - 52, + 4 ) DIV + 59 * COUNT( * ) col1
----
-290

skipif mysql # not compatible
query I rowsort label-4471
SELECT 13 * - - COALESCE ( 17, 21 + + 79, - COUNT ( * ) ) / - + COUNT ( * ) + - 69 + + + NULLIF ( - 52, + 4 ) / + 59 * COUNT ( * ) col1
----
-290

query I rowsort
SELECT DISTINCT - 2 * + 70 AS col1
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT DISTINCT - COUNT( * ) * + - 49 + - ( - MAX( DISTINCT 59 ) )
----
108

skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT - COUNT ( * ) * + - 49 + - ( - MAX ( DISTINCT 59 ) )
----
108

query I rowsort
SELECT ALL + 81 * 55 + + 44 + - - 5 AS col2
----
4504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4475
SELECT + 93 * + - ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT + 93 * + - ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4476
SELECT DISTINCT + COUNT( * ) * - CAST( NULL AS SIGNED ) + + ( - 6 ) * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + ( - 6 ) * 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT - CASE 94 WHEN - + 46 THEN + + 72 WHEN + CASE + + 79 WHEN COUNT( * ) THEN COUNT( * ) END + + + ( - - 37 ) * 23 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4477
SELECT - CASE 94 WHEN - + 46 THEN + + 72 WHEN + CASE + + 79 WHEN COUNT ( * ) THEN COUNT ( * ) END + + + ( - - 37 ) * 23 THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT ALL - COUNT( * ) * - 42 * - - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL - COUNT ( * ) * - 42 * - - COUNT ( * )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4479
SELECT DISTINCT + 23 * + + 35 - + 27 + - 8 + CAST( + - 93 AS SIGNED )
----
677

skipif mysql # not compatible
query I rowsort label-4479
SELECT DISTINCT + 23 * + + 35 - + 27 + - 8 + CAST ( + - 93 AS INTEGER )
----
677

query I rowsort
SELECT ALL + 82 - + 88
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT 52 * + - MIN( 46 ) * - 42 + - 73
----
100391

skipif mysql # not compatible
query I rowsort label-4481
SELECT 52 * + - MIN ( 46 ) * - 42 + - 73
----
100391

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4482
SELECT ALL CASE 83 WHEN + 15 * - ( - MIN( 33 ) ) + + 28 + 19 + - COALESCE ( 35, 42 ) + + 36 * 50 * 66 THEN - COALESCE ( ( COALESCE ( - 21, COUNT( * ), 76 ) ), 8 * - CASE - 56 WHEN 57 THEN + 47 * ( 39 ) + 19 ELSE 61 END, - 50 * - COUNT( * ), - 66 * 36 ) DIV + 18 + 53 ELSE 17 * + 61 END * - 18
----
-18666

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL CASE 83 WHEN + 15 * - ( - MIN ( 33 ) ) + + 28 + 19 + - COALESCE ( 35, 42 ) + + 36 * 50 * 66 THEN - COALESCE ( ( COALESCE ( - 21, COUNT ( * ), 76 ) ), 8 * - CASE - 56 WHEN 57 THEN + 47 * ( 39 ) + 19 ELSE 61 END, - 50 * - COUNT ( * ), - 66 * 36 ) / + 18 + 53 ELSE 17 * + 61 END * - 18
----
-18666

query II rowsort
SELECT ALL 9, + 52 col1
----
9
52

query I rowsort
SELECT 39 * - + COALESCE ( - + 4, 62, - 24 ) col2
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-4485
SELECT ALL + 19 DIV - 34 * - 69 col2
----
0

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL + 19 / - 34 * - 69 col2
----
0

query I rowsort
SELECT 58 - + + 57 AS col1
----
1

query I rowsort
SELECT 93 * 77 * + + 51 * 9 AS col0
----
3286899

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT 64 * - 59 * + + COUNT( * )
----
-3776

skipif mysql # not compatible
query I rowsort label-4488
SELECT 64 * - 59 * + + COUNT ( * )
----
-3776

query I rowsort
SELECT 67 - - 44 + - 18
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4490
SELECT 77 + - 18 DIV 11 col2
----
76

skipif mysql # not compatible
query I rowsort label-4490
SELECT 77 + - 18 / 11 col2
----
76

query I rowsort
SELECT ALL - 47 * 87 AS col1
----
-4089

query I rowsort
SELECT ALL + 93 + - 14 + - 57 - + CASE - 63 WHEN - + AVG ( - - 71 ) THEN NULL ELSE - 28 END
----
50

query II rowsort
SELECT + 88 AS col1, 52
----
88
52

query I rowsort
SELECT DISTINCT + 75 + 85 + - - 62 + + 99 * - + 62 * ( + 5 ) AS col2
----
-30468

query II rowsort
SELECT 15, 62 col2
----
15
62

query I rowsort
SELECT 8 * - - 30 AS col0
----
240

query I rowsort
SELECT ALL + 57 + + - 23
----
34

query II rowsort
SELECT + 64, 88 AS col2
----
64
88

onlyif mysql # aggregate syntax: 
query II rowsort label-4499
SELECT + 97, 4 + - + SUM( ALL - + 17 ) + + COUNT( ALL + + ( - 8 ) ) col0
----
97
22

skipif mysql # not compatible
query II rowsort label-4499
SELECT + 97, 4 + - + SUM ( ALL - + 17 ) + + COUNT ( ALL + + ( - 8 ) ) col0
----
97
22

query I rowsort
SELECT - 66 * 7
----
-462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4501
SELECT SUM( - 49 ) DIV - 51 + 9 * - 99
----
-891

skipif mysql # not compatible
query I rowsort label-4501
SELECT SUM ( - 49 ) / - 51 + 9 * - 99
----
-891

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT DISTINCT COALESCE ( - CASE + 75 WHEN + 56 * + - 78 + - + 70 - + 34 * - + 53 * 33 THEN + + 59 END, + ( 39 ) ) + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT COALESCE ( - CASE + 75 WHEN + 56 * + - 78 + - + 70 - + 34 * - + 53 * 33 THEN + + 59 END, + ( 39 ) ) + COUNT ( * )
----
40

query I rowsort
SELECT ALL 28 + + - NULLIF ( 71, - 0 + 4 ) AS col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4504
SELECT ALL + - COUNT( * ) DIV 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL + - COUNT ( * ) / 46 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4505
SELECT DISTINCT - - CAST( 94 AS SIGNED ) + + 14
----
108

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT - - CAST ( 94 AS INTEGER ) + + 14
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4506
SELECT 73 * 73 + CASE + CAST( NULL AS SIGNED ) WHEN - + 56 + - 5 THEN CAST( COUNT( * ) AS SIGNED ) + - - 23 * + 15 * + - 49 - MAX( DISTINCT + 10 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4506
SELECT 73 * 73 + CASE + CAST ( NULL AS INTEGER ) WHEN - + 56 + - 5 THEN CAST ( COUNT ( * ) AS INTEGER ) + - - 23 * + 15 * + - 49 - MAX ( DISTINCT + 10 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT 46 * 92 * - COALESCE ( + + ( - COUNT( * ) ), - 80, 30 ) * + COUNT( ALL - - 61 )
----
4232

skipif mysql # not compatible
query I rowsort label-4507
SELECT 46 * 92 * - COALESCE ( + + ( - COUNT ( * ) ), - 80, 30 ) * + COUNT ( ALL - - 61 )
----
4232

onlyif mysql # DIV for integer division: 
query I rowsort label-4508
SELECT ALL 98 * 93 DIV 96 + + - 78
----
16

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL 98 * 93 / 96 + + - 78
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT + + MAX( DISTINCT + 35 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4509
SELECT + + MAX ( DISTINCT + 35 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT 80 - 58 * COUNT( * ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4510
SELECT 80 - 58 * COUNT ( * ) AS col0
----
22

query I rowsort
SELECT DISTINCT - 70 * - 35 * - 9 AS col2
----
-22050

query I rowsort
SELECT ALL - 12 * - ( + 69 ) col0
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT - COUNT( ALL - ( - - 42 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4513
SELECT - COUNT ( ALL - ( - - 42 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4514
SELECT - - 47 * - 50 * + COUNT( * ) + - 6 DIV + 67 * - + SUM( DISTINCT + 81 ) + 3 + - - NULLIF ( 59, - NULLIF ( + COUNT( * ), 29 ) ) * - 95
----
-7952

skipif mysql # not compatible
query I rowsort label-4514
SELECT - - 47 * - 50 * + COUNT ( * ) + - 6 / + 67 * - + SUM ( DISTINCT + 81 ) + 3 + - - NULLIF ( 59, - NULLIF ( + COUNT ( * ), 29 ) ) * - 95
----
-7952

query I rowsort
SELECT ALL NULLIF ( - 15, + 28 ) AS col0
----
-15

query I rowsort
SELECT ALL - 68 * + 6
----
-408

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4517
SELECT NULLIF ( - COUNT( * ), - 49 ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4517
SELECT NULLIF ( - COUNT ( * ), - 49 ) + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4518
SELECT - 29 * + CAST( + 36 AS SIGNED ) + - SUM( - + 15 ) AS col2
----
-1029

skipif mysql # not compatible
query I rowsort label-4518
SELECT - 29 * + CAST ( + 36 AS INTEGER ) + - SUM ( - + 15 ) AS col2
----
-1029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4519
SELECT COUNT( * ) * - + COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4519
SELECT COUNT ( * ) * - + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT 77 + - 37 + - 11 + + + COUNT( * ) - + 73 * + 60 * 82 * + 14 * 47 AS col0
----
-236327250

skipif mysql # not compatible
query I rowsort label-4520
SELECT 77 + - 37 + - 11 + + + COUNT ( * ) - + 73 * + 60 * 82 * + 14 * 47 AS col0
----
-236327250

query II rowsort
SELECT DISTINCT 13 * - 18, - 57 col0
----
-234
-57

query II rowsort
SELECT 87 + + 99 AS col1, + 78
----
186
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT CASE - ( + - MIN( DISTINCT - + 20 ) ) WHEN + - ( 92 ) * + ( + 56 ) - - 8 THEN NULL WHEN + - 78 THEN + 15 END + - + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT CASE - ( + - MIN ( DISTINCT - + 20 ) ) WHEN + - ( 92 ) * + ( + 56 ) - - 8 THEN NULL WHEN + - 78 THEN + 15 END + - + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL 7 + + 19 * - 96 * - 42 + - - CASE - ( - COALESCE ( - + 24, 44 - + + 46, - 87 - - COUNT( * ) + COUNT( * ) * + 38 * 6 ) ) WHEN 91 THEN 65 WHEN 23 THEN - 82 - + MAX( - 49 + 64 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL 7 + + 19 * - 96 * - 42 + - - CASE - ( - COALESCE ( - + 24, 44 - + + 46, - 87 - - COUNT ( * ) + COUNT ( * ) * + 38 * 6 ) ) WHEN 91 THEN 65 WHEN 23 THEN - 82 - + MAX ( - 49 + 64 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4525
SELECT 67 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4525
SELECT 67 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 77 * - 61 AS col1
----
-4697

onlyif mysql # aggregate syntax: 
query II rowsort label-4527
SELECT DISTINCT 36 + - COUNT( * ) AS col0, 76
----
35
76

skipif mysql # not compatible
query II rowsort label-4527
SELECT DISTINCT 36 + - COUNT ( * ) AS col0, 76
----
35
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT ALL 12 * + MIN( ALL - + 54 )
----
-648

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL 12 * + MIN ( ALL - + 54 )
----
-648

query I rowsort
SELECT ALL 71 + - + 17 AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4530
SELECT 2 + 6 AS col2, - CASE - + 43 WHEN COUNT( * ) THEN + 50 / - - 54 - + ( + - CAST( NULL AS SIGNED ) ) END AS col2
----
8
NULL

skipif mysql # not compatible
query II rowsort label-4530
SELECT 2 + 6 AS col2, - CASE - + 43 WHEN COUNT ( * ) THEN + 50 / - - 54 - + ( + - CAST ( NULL AS INTEGER ) ) END AS col2
----
8
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4531
SELECT - SUM( DISTINCT - 99 ), + 28 AS col1
----
99
28

skipif mysql # not compatible
query II rowsort label-4531
SELECT - SUM ( DISTINCT - 99 ), + 28 AS col1
----
99
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4532
SELECT 9 DIV - - 74 * + - NULLIF ( + MIN( + 97 ), + COUNT( * ) * - - 63 + COUNT( ALL - 65 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4532
SELECT 9 / - - 74 * + - NULLIF ( + MIN ( + 97 ), + COUNT ( * ) * - - 63 + COUNT ( ALL - 65 ) )
----
0

query I rowsort
SELECT 12 + - 88 - ( + + 48 ) AS col0
----
-124

query I rowsort
SELECT 46 + - 45 + 84 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL + 68 * + MIN( + - ( + + 86 ) ) * + 50 col1
----
-292400

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL + 68 * + MIN ( + - ( + + 86 ) ) * + 50 col1
----
-292400

query I rowsort
SELECT DISTINCT + 35 * - + 99 + - 74 * 63
----
-8127

onlyif mysql # aggregate syntax: 
query II rowsort label-4537
SELECT DISTINCT + - 23 * 52 * - 44 - 31 + 51 + - 33 + MIN( ALL - + 43 ) + 18 * + COUNT( * ), - NULLIF ( + - NULLIF ( 74, COUNT( * ) ), 55 ) AS col0
----
52586
74

skipif mysql # not compatible
query II rowsort label-4537
SELECT DISTINCT + - 23 * 52 * - 44 - 31 + 51 + - 33 + MIN ( ALL - + 43 ) + 18 * + COUNT ( * ), - NULLIF ( + - NULLIF ( 74, COUNT ( * ) ), 55 ) AS col0
----
52586
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT DISTINCT - + ( + ( + - 71 ) ) * - 78 * + + COUNT( 38 ) - ( - COUNT( * ) ) + - 14 AS col2
----
-5551

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT - + ( + ( + - 71 ) ) * - 78 * + + COUNT ( 38 ) - ( - COUNT ( * ) ) + - 14 AS col2
----
-5551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT DISTINCT + CAST( + ( - 34 ) AS SIGNED ) * + 90
----
-3060

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT + CAST ( + ( - 34 ) AS INTEGER ) * + 90
----
-3060

query I rowsort
SELECT + 23 * - 30 + 84 + - - ( + 47 ) + + - 91
----
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT + 98 * COUNT( * ) + - + ( 38 ) + + - 33
----
27

skipif mysql # not compatible
query I rowsort label-4541
SELECT + 98 * COUNT ( * ) + - + ( 38 ) + + - 33
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT DISTINCT + NULLIF ( 88, ( - COUNT( * ) ) + - 4 * + - 15 + 91 + - 16 - ( - + 0 ) * + - 16 + + COUNT( * ) * + 97 * - 19 )
----
88

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT + NULLIF ( 88, ( - COUNT ( * ) ) + - 4 * + - 15 + 91 + - 16 - ( - + 0 ) * + - 16 + + COUNT ( * ) * + 97 * - 19 )
----
88

query III rowsort
SELECT ALL 28 - - - 82 AS col0, + 68 + - 39 * - - 66 col2, 38 AS col0
----
-54
-2506
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4544
SELECT - - 70 DIV + 43 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4544
SELECT - - 70 / + 43 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4545
SELECT DISTINCT + 58 * - - AVG ( ALL 4 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT + 58 * - - AVG ( ALL 4 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4546
SELECT + 29 DIV 17 + + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4546
SELECT + 29 / 17 + + - COUNT ( * )
----
0

query I rowsort
SELECT ALL + 19 * + 49 col0
----
931

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4548
SELECT - COUNT( DISTINCT + 72 ) DIV 93 * - 55
----
0

skipif mysql # not compatible
query I rowsort label-4548
SELECT - COUNT ( DISTINCT + 72 ) / 93 * - 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT DISTINCT 96 * + CASE + - 78 WHEN + 66 THEN NULL WHEN + 57 THEN NULL ELSE - - CASE + 35 WHEN + 77 * 52 + + 0 * + ( + 95 ) * - CASE - NULLIF ( - 90, 74 * ( 40 * 71 ) ) WHEN 26 * - 53 THEN - 73 * - CASE - 30 WHEN - COUNT( * ) * 14 + 32 / + 30 THEN 7 WHEN 0 + 69 THEN NULL END END THEN + ( 68 ) ELSE NULL END + 40 * - 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT 96 * + CASE + - 78 WHEN + 66 THEN NULL WHEN + 57 THEN NULL ELSE - - CASE + 35 WHEN + 77 * 52 + + 0 * + ( + 95 ) * - CASE - NULLIF ( - 90, 74 * ( 40 * 71 ) ) WHEN 26 * - 53 THEN - 73 * - CASE - 30 WHEN - COUNT ( * ) * 14 + 32 / + 30 THEN 7 WHEN 0 + 69 THEN NULL END END THEN + ( 68 ) ELSE NULL END + 40 * - 58 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4550
SELECT + 25 DIV + 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4550
SELECT + 25 / + 32 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4551
SELECT ALL 31 + - 17 DIV + + 89 AS col0, + 53 + - - CASE 38 WHEN + 49 THEN - 1 ELSE - 93 END
----
31
-40

skipif mysql # not compatible
query II rowsort label-4551
SELECT ALL 31 + - 17 / + + 89 AS col0, + 53 + - - CASE 38 WHEN + 49 THEN - 1 ELSE - 93 END
----
31
-40

query I rowsort
SELECT - 36 * - 67
----
2412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4553
SELECT - COALESCE ( + + COUNT( * ), - CAST( NULL AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4553
SELECT - COALESCE ( + + COUNT ( * ), - CAST ( NULL AS INTEGER ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT DISTINCT 66 + - 68 - - + COUNT( * ) * + 40 * 0 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT 66 + - 68 - - + COUNT ( * ) * + 40 * 0 AS col1
----
-2

query I rowsort
SELECT ALL 83 + - 67 AS col1
----
16

query I rowsort
SELECT + ( - 21 ) * + - 6 * + NULLIF ( 61, - 5 )
----
7686

query I rowsort
SELECT ALL 71 + + 21 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT ALL COUNT( ( - 74 ) ) + - 88 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL COUNT ( ( - 74 ) ) + - 88 AS col0
----
-87

query II rowsort
SELECT 46 col2, 25
----
46
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT - 53 + + + 77 + + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-4560
SELECT - 53 + + + 77 + + COUNT ( * )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4561
SELECT ALL 28, COUNT( * ) AS col0
----
28
1

skipif mysql # not compatible
query II rowsort label-4561
SELECT ALL 28, COUNT ( * ) AS col0
----
28
1

query I rowsort
SELECT + 76 + - ( 62 ) AS col2
----
14

query I rowsort
SELECT DISTINCT 82 + - 52 + 57 AS col0
----
87

query I rowsort
SELECT + ( 74 ) * - 74
----
-5476

query I rowsort
SELECT ALL CASE - 5 WHEN 6 THEN - - 45 END * - 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT + COUNT( * ) - 11 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-4566
SELECT + COUNT ( * ) - 11 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT - COALESCE ( 32, - + 0 + + 50 + + ( - 0 ) + 20, + + COALESCE ( - 39, + ( 87 ) ) + + 20 * 46 + 77 * COUNT( * ) ) col2
----
-32

skipif mysql # not compatible
query I rowsort label-4567
SELECT - COALESCE ( 32, - + 0 + + 50 + + ( - 0 ) + 20, + + COALESCE ( - 39, + ( 87 ) ) + + 20 * 46 + 77 * COUNT ( * ) ) col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT + 99 - - - COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-4568
SELECT + 99 - - - COUNT ( * ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ALL 87 * + 70 * + 56 * COUNT( ALL + 43 ) col2
----
341040

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL 87 * + 70 * + 56 * COUNT ( ALL + 43 ) col2
----
341040

query I rowsort
SELECT ALL - 86 * - + 40
----
3440

query I rowsort
SELECT ALL 31 - - + 78 AS col1
----
109

query I rowsort
SELECT DISTINCT ( - COALESCE ( - 84, + 51 ) ) * 95
----
7980

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT COUNT( ALL 61 )
----
1

skipif mysql # not compatible
query I rowsort label-4573
SELECT COUNT ( ALL 61 )
----
1

query II rowsort
SELECT + - 30, 58 AS col2
----
-30
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4575
SELECT + - 81 / - NULLIF ( - CASE + - 50 WHEN + - 59 THEN - 83 + + - ( + + 92 ) WHEN + - 30 + - 12 * MAX( DISTINCT + 69 ) * 30 / 58 + - 90 THEN NULL WHEN COUNT( * ) THEN NULL END, - ( 21 ) ) * + CAST( - ( 86 ) - 55 * 98 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT + - 81 / - NULLIF ( - CASE + - 50 WHEN + - 59 THEN - 83 + + - ( + + 92 ) WHEN + - 30 + - 12 * MAX ( DISTINCT + 69 ) * 30 / 58 + - 90 THEN NULL WHEN COUNT ( * ) THEN NULL END, - ( 21 ) ) * + CAST ( - ( 86 ) - 55 * 98 AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4576
SELECT ALL - - ( 67 ) DIV + 4 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL - - ( 67 ) / + 4 AS col2
----
16

query I rowsort
SELECT COALESCE ( + + 73, 34 ) AS col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4578
SELECT - + 11 DIV - 46 + + - 2 + 4 DIV + COUNT( * ) + ( - 81 ) DIV + + 43, + 21 + ( + + ( 91 ) ) * - 79 + + 37 AS col0
----
1
-7131

skipif mysql # not compatible
query II rowsort label-4578
SELECT - + 11 / - 46 + + - 2 + 4 / + COUNT ( * ) + ( - 81 ) / + + 43, + 21 + ( + + ( 91 ) ) * - 79 + + 37 AS col0
----
1
-7131

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4579
SELECT + 17, - 22 * SUM( ALL - 18 ) + + MAX( + 17 ) + + CAST( NULL AS DECIMAL ) AS col1
----
17
NULL

skipif mysql # not compatible
query II rowsort label-4579
SELECT + 17, - 22 * SUM ( ALL - 18 ) + + MAX ( + 17 ) + + CAST ( NULL AS REAL ) AS col1
----
17
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4580
SELECT DISTINCT + + CASE CAST( - COALESCE ( 29, + 81, + 55 ) AS SIGNED ) WHEN + 69 THEN - - 71 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4580
SELECT DISTINCT + + CASE CAST ( - COALESCE ( 29, + 81, + 55 ) AS INTEGER ) WHEN + 69 THEN - - 71 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + - 38 * - 19 AS col2
----
722

query II rowsort
SELECT DISTINCT + - 60 AS col2, - 62 * + 90 AS col0
----
-60
-5580

query II rowsort
SELECT DISTINCT + 60 AS col0, - 66 AS col2
----
60
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4584
SELECT ALL + + CAST( 29 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL + + CAST ( 29 AS INTEGER )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT ALL + MAX( DISTINCT - - 49 ) * + - 87
----
-4263

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL + MAX ( DISTINCT - - 49 ) * + - 87
----
-4263

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT - 36 * - ( + - NULLIF ( + 11, - - COUNT( * ) * - 30 ) )
----
-396

skipif mysql # not compatible
query I rowsort label-4586
SELECT - 36 * - ( + - NULLIF ( + 11, - - COUNT ( * ) * - 30 ) )
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT - CASE - 49 WHEN 40 THEN + 57 WHEN + 69 * 47 + - - COUNT( * ) * 30 + + COUNT( * ) + + - 20 * + 87 * + - 29 / 67 / - ( + 68 ) THEN + 95 END + ( 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT - CASE - 49 WHEN 40 THEN + 57 WHEN + 69 * 47 + - - COUNT ( * ) * 30 + + COUNT ( * ) + + - 20 * + 87 * + - 29 / 67 / - ( + 68 ) THEN + 95 END + ( 31 )
----
NULL

query I rowsort
SELECT ALL 20 * - 65 + 11 + 21 - - 25 - - 50 * + 39 AS col0
----
707

query I rowsort
SELECT DISTINCT 26 * - 22 + + ( + 90 )
----
-482

onlyif mysql # DIV for integer division: 
query I rowsort label-4590
SELECT ALL - 88 DIV NULLIF ( - 54, 99 DIV ( - - 19 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL - 88 / NULLIF ( - 54, 99 / ( - - 19 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT + 59 + + + 26 * COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-4591
SELECT + 59 + + + 26 * COUNT ( * ) AS col2
----
85

query I rowsort
SELECT DISTINCT - 70 * + 96
----
-6720

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4593
SELECT DISTINCT CAST( - CAST( + 88 AS DECIMAL ) AS SIGNED ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT CAST ( - CAST ( + 88 AS REAL ) AS INTEGER ) AS col0
----
-88

query I rowsort
SELECT ALL - 61 + - 77 AS col2
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT - 47 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT - 47 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 13, - - 85 ) + - 61 * - 0 * 23
----
13

query I rowsort
SELECT + 75 + - - ( + + 3 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT ALL + MIN( DISTINCT - 81 ) - 0 - 15 - + 28 * 62 AS col1
----
-1832

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL + MIN ( DISTINCT - 81 ) - 0 - 15 - + 28 * 62 AS col1
----
-1832

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT ALL + COUNT( DISTINCT - - ( + - 20 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL + COUNT ( DISTINCT - - ( + - 20 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT + - CASE - - 11 WHEN + + 55 THEN + 75 / - 6 + 38 WHEN + CASE - - MAX( - 90 ) WHEN 5 THEN + + 62 ELSE NULL END THEN NULL END + - ( 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4600
SELECT + - CASE - - 11 WHEN + + 55 THEN + 75 / - 6 + 38 WHEN + CASE - - MAX ( - 90 ) WHEN 5 THEN + + 62 ELSE NULL END THEN NULL END + - ( 92 )
----
NULL

query I rowsort
SELECT - 21 * - 8 * + 79 AS col1
----
13272

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT ( + COALESCE ( 66, - ( + COUNT( * ) ) + + 82 ) ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-4602
SELECT ( + COALESCE ( 66, - ( + COUNT ( * ) ) + + 82 ) ) AS col2
----
66

query I rowsort
SELECT + + 21 + 58 * 57
----
3327

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT + 43 + + - MIN( DISTINCT - - ( 95 ) ) + + + 47 * + 27
----
1217

skipif mysql # not compatible
query I rowsort label-4604
SELECT + 43 + + - MIN ( DISTINCT - - ( 95 ) ) + + + 47 * + 27
----
1217

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT + - SUM( DISTINCT - 52 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4605
SELECT + - SUM ( DISTINCT - 52 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT ALL + COUNT( ALL + - 31 ) * - - 0
----
0

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL + COUNT ( ALL + - 31 ) * - - 0
----
0

query I rowsort
SELECT DISTINCT - - ( 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT 53 / 49 + + MAX( DISTINCT + 45 ) + - - 4 + + + 75 + + + 93 - + + 6 + 82 * COUNT( * ) * CASE + 23 WHEN + 23 - - 30 + + 39 / - 72 THEN + SUM( ALL 58 ) WHEN 30 * 12 THEN NULL WHEN COUNT( * ) - - 63 THEN NULL ELSE NULL END * - COUNT( + 82 * 68 ) / 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT 53 / 49 + + MAX ( DISTINCT + 45 ) + - - 4 + + + 75 + + + 93 - + + 6 + 82 * COUNT ( * ) * CASE + 23 WHEN + 23 - - 30 + + 39 / - 72 THEN + SUM ( ALL 58 ) WHEN 30 * 12 THEN NULL WHEN COUNT ( * ) - - 63 THEN NULL ELSE NULL END * - COUNT ( + 82 * 68 ) / 54
----
NULL

query I rowsort
SELECT DISTINCT 63 * 53
----
3339

query I rowsort
SELECT DISTINCT + NULLIF ( 9, 23 + - 47 ) + 83 * - 59
----
-4888

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT + SUM( - + 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-4611
SELECT + SUM ( - + 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT ALL 90 + - + ( - + MAX( DISTINCT - 57 ) ) * COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL 90 + - + ( - + MAX ( DISTINCT - 57 ) ) * COUNT ( * ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT + 60 * - CASE + COUNT( * ) WHEN 48 THEN NULL WHEN - - 18 * - 90 * + COUNT( * ) + 6 THEN 60 WHEN + 67 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4613
SELECT + 60 * - CASE + COUNT ( * ) WHEN 48 THEN NULL WHEN - - 18 * - 90 * + COUNT ( * ) + 6 THEN 60 WHEN + 67 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT + 77 * + COUNT( * ) + - 18 + COALESCE ( - 33, - 42 * + 59 + 66 + - + 91 ) * - ( 25 ) + + + 87 AS col1
----
971

skipif mysql # not compatible
query I rowsort label-4614
SELECT + 77 * + COUNT ( * ) + - 18 + COALESCE ( - 33, - 42 * + 59 + 66 + - + 91 ) * - ( 25 ) + + + 87 AS col1
----
971

query I rowsort
SELECT DISTINCT - 74 + - + 19 AS col0
----
-93

query I rowsort
SELECT ALL - 65 + + 38 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ALL 19 + - - 35 + - + CASE MAX( + 64 ) WHEN - NULLIF ( + 0, - COUNT( * ) + + - 57 ) THEN + + 89 WHEN 39 * - - 76 THEN NULL ELSE NULL END + + 35 / - 87 + 24 * + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL 19 + - - 35 + - + CASE MAX ( + 64 ) WHEN - NULLIF ( + 0, - COUNT ( * ) + + - 57 ) THEN + + 89 WHEN 39 * - - 76 THEN NULL ELSE NULL END + + 35 / - 87 + 24 * + 6 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 47 + - + 39
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT ALL + NULLIF ( + 85, 31 ) + + 48 + + COUNT( * ) * - + 6 - - 74
----
201

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL + NULLIF ( + 85, 31 ) + + 48 + + COUNT ( * ) * - + 6 - - 74
----
201

query II rowsort
SELECT + 59 col0, 34 + 39
----
59
73

query I rowsort
SELECT ALL - 2 * + - 79 AS col1
----
158

onlyif mysql # DIV for integer division: 
query II rowsort label-4622
SELECT 92, + 27 DIV + 30 AS col1
----
92
0

skipif mysql # not compatible
query II rowsort label-4622
SELECT 92, + 27 / + 30 AS col1
----
92
0

query I rowsort
SELECT ALL + 29 - 34
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT DISTINCT + NULLIF ( - ( 57 ), - COUNT( * ) ) - + - COUNT( * ) * 91 * + 14
----
1217

skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT + NULLIF ( - ( 57 ), - COUNT ( * ) ) - + - COUNT ( * ) * 91 * + 14
----
1217

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT DISTINCT 47 * - - COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT 47 * - - COUNT ( * ) AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4626
SELECT ALL + 30 - + 56 + COUNT( * ) DIV + 47 * + 39, 50 DIV - 78 + + + 14 AS col0
----
-26
14

skipif mysql # not compatible
query II rowsort label-4626
SELECT ALL + 30 - + 56 + COUNT ( * ) / + 47 * + 39, 50 / - 78 + + + 14 AS col0
----
-26
14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4627
SELECT ALL - CAST( NULL AS DECIMAL ) - - - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL - CAST ( NULL AS REAL ) - - - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT 18 * + + MIN( ALL 59 )
----
1062

skipif mysql # not compatible
query I rowsort label-4628
SELECT 18 * + + MIN ( ALL 59 )
----
1062

onlyif mysql # aggregate syntax: 
query II rowsort label-4629
SELECT ALL 38 col0, - 32 / - - 38 / 1 * 74 / + CASE - MIN( + 33 ) WHEN + 59 THEN - 73 ELSE NULL END * - 42 * - + 26 - - - NULLIF ( + - 93, - 31 ) * 68 col1
----
38
NULL

skipif mysql # not compatible
query II rowsort label-4629
SELECT ALL 38 col0, - 32 / - - 38 / 1 * 74 / + CASE - MIN ( + 33 ) WHEN + 59 THEN - 73 ELSE NULL END * - 42 * - + 26 - - - NULLIF ( + - 93, - 31 ) * 68 col1
----
38
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4630
SELECT DISTINCT - - 34 DIV 59 + + - 66 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT - - 34 / 59 + + - 66 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-4631
SELECT 93 + 88 - + 47 AS col2, COUNT( * )
----
134
1

skipif mysql # not compatible
query II rowsort label-4631
SELECT 93 + 88 - + 47 AS col2, COUNT ( * )
----
134
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4632
SELECT - 5 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-4632
SELECT - 5 / - 79
----
0

query I rowsort
SELECT DISTINCT - 3 * - 59
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT 69 * SUM( DISTINCT + - 67 )
----
-4623

skipif mysql # not compatible
query I rowsort label-4634
SELECT 69 * SUM ( DISTINCT + - 67 )
----
-4623

query I rowsort
SELECT + 32 - 62
----
-30

query I rowsort
SELECT + 41 * 93 AS col2
----
3813

query I rowsort
SELECT DISTINCT + 43 * + - 49
----
-2107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4638
SELECT - CAST( COUNT( * ) AS SIGNED ) * + + 53 col0
----
-53

skipif mysql # not compatible
query I rowsort label-4638
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * + + 53 col0
----
-53

query I rowsort
SELECT DISTINCT 94 + + - 42 * + 73 AS col1
----
-2972

query I rowsort
SELECT DISTINCT - 51 * + 46 AS col0
----
-2346

query I rowsort
SELECT - 21 * + 83
----
-1743

query I rowsort
SELECT + 91 * 78 * + 41
----
291018

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT DISTINCT - COUNT( * ) + - 18
----
-19

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT - COUNT ( * ) + - 18
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT COUNT( * ) + 30 * + 43 AS col2
----
1291

skipif mysql # not compatible
query I rowsort label-4644
SELECT COUNT ( * ) + 30 * + 43 AS col2
----
1291

query I rowsort
SELECT ALL - ( - - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-4646
SELECT ALL + + 24 + - MAX( + 6 ) AS col0, + MAX( - ( - 88 ) ) + + 70 col0
----
18
158

skipif mysql # not compatible
query II rowsort label-4646
SELECT ALL + + 24 + - MAX ( + 6 ) AS col0, + MAX ( - ( - 88 ) ) + + 70 col0
----
18
158

onlyif mysql # DIV for integer division: 
query I rowsort label-4647
SELECT ALL 78 DIV 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL 78 / 94 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4648
SELECT 70, - ( - 85 ) DIV 35 DIV - 82 + 26 AS col0
----
70
26

skipif mysql # not compatible
query II rowsort label-4648
SELECT 70, - ( - 85 ) / 35 / - 82 + 26 AS col0
----
70
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT ALL 1 + + - COUNT( - 64 )
----
0

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL 1 + + - COUNT ( - 64 )
----
0

query I rowsort
SELECT DISTINCT 13 * - 79 * - + 92
----
94484

query II rowsort
SELECT ALL - 22 AS col2, 69 AS col1
----
-22
69

query II rowsort
SELECT 83, 16 AS col2
----
83
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4653
SELECT ALL 48 * - + CAST( NULL AS SIGNED ) * - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL 48 * - + CAST ( NULL AS INTEGER ) * - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 65 - - + 6 * 52 * - 32 * + 94 AS col1
----
-938431

query II rowsort
SELECT ALL - 47, ( - + 16 ) AS col0
----
-47
-16

query I rowsort
SELECT 83 + - - ( 10 )
----
93

query I rowsort
SELECT 21 * ( - 20 ) col2
----
-420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4658
SELECT ALL NULLIF ( + 83, + 48 * - 43 ) DIV 80 DIV - + 49 * 68 + - COUNT( * ) * 80 * - 13
----
1040

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL NULLIF ( + 83, + 48 * - 43 ) / 80 / - + 49 * 68 + - COUNT ( * ) * 80 * - 13
----
1040

onlyif mysql # aggregate syntax: 
query II rowsort label-4659
SELECT ALL - 66 col0, COUNT( * ) * - + COUNT( * )
----
-66
-1

skipif mysql # not compatible
query II rowsort label-4659
SELECT ALL - 66 col0, COUNT ( * ) * - + COUNT ( * )
----
-66
-1

query I rowsort
SELECT 34 * - + 56 * - + 64 + + ( - + 78 )
----
121778

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT ALL COUNT( DISTINCT - ( - 55 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL COUNT ( DISTINCT - ( - 55 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT 21 * - COALESCE ( + 18, + 19 * + COUNT( * ) ) AS col0
----
-378

skipif mysql # not compatible
query I rowsort label-4662
SELECT 21 * - COALESCE ( + 18, + 19 * + COUNT ( * ) ) AS col0
----
-378

query II rowsort
SELECT ALL 33 AS col0, 96 - + ( + - 11 ) * 29
----
33
415

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT COUNT( + 12 ) * - + 47 * - - 76 + - COUNT( * ) * - COUNT( ALL + + 19 ) AS col0
----
-3571

skipif mysql # not compatible
query I rowsort label-4664
SELECT COUNT ( + 12 ) * - + 47 * - - 76 + - COUNT ( * ) * - COUNT ( ALL + + 19 ) AS col0
----
-3571

query I rowsort
SELECT DISTINCT 93 * + 46
----
4278

query I rowsort
SELECT - - COALESCE ( NULLIF ( + - 64, 27 * - ( 14 ) * 7 ), + 71, + 41 ) AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4667
SELECT + COUNT( DISTINCT + 35 ) + ( - 6 ) * + 25 DIV COUNT( * ) + + CAST( COUNT( * ) AS SIGNED ) DIV - + 58 * + 46 + 87 - + + 94 AS col2
----
-156

skipif mysql # not compatible
query I rowsort label-4667
SELECT + COUNT ( DISTINCT + 35 ) + ( - 6 ) * + 25 / COUNT ( * ) + + CAST ( COUNT ( * ) AS INTEGER ) / - + 58 * + 46 + 87 - + + 94 AS col2
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT - - ( + COUNT( ALL + 56 ) ) * - + 37
----
-37

skipif mysql # not compatible
query I rowsort label-4668
SELECT - - ( + COUNT ( ALL + 56 ) ) * - + 37
----
-37

query I rowsort
SELECT ALL - 58 * - 31
----
1798

query I rowsort
SELECT DISTINCT 82 * + 66 AS col1
----
5412

query II rowsort
SELECT 22 AS col2, - 79 * - 42 AS col0
----
22
3318

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4672
SELECT ALL 0 * + 10 * + 29 - ( - - CAST( + 64 AS SIGNED ) ) DIV 18
----
-3

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL 0 * + 10 * + 29 - ( - - CAST ( + 64 AS INTEGER ) ) / 18
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT - 39 / 21 + + CASE 20 WHEN - 64 THEN + - MIN( ALL ( 71 ) ) * + 62 + - 41 + - COALESCE ( - - COUNT( DISTINCT + 52 ), - NULLIF ( 21, - COUNT( * ) * - 40 ) * - 93, 74 * 39 ) + 81 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4673
SELECT - 39 / 21 + + CASE 20 WHEN - 64 THEN + - MIN ( ALL ( 71 ) ) * + 62 + - 41 + - COALESCE ( - - COUNT ( DISTINCT + 52 ), - NULLIF ( 21, - COUNT ( * ) * - 40 ) * - 93, 74 * 39 ) + 81 END + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4674
SELECT DISTINCT + - CAST( + CASE + + COUNT( * ) WHEN 6 + + 58 THEN 84 + + 43 WHEN + 32 THEN NULL END AS SIGNED ) + - - ( + 52 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT + - CAST ( + CASE + + COUNT ( * ) WHEN 6 + + 58 THEN 84 + + 43 WHEN + 32 THEN NULL END AS INTEGER ) + - - ( + 52 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 64 + - 10 AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4676
SELECT - 66 + 21 + - + 7 + + 35 * - + CAST( NULL AS SIGNED ) / + 38 + - 57 - + 56 / + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-4676
SELECT - 66 + 21 + - + 7 + + 35 * - + CAST ( NULL AS INTEGER ) / + 38 + - 57 - + 56 / + + 10
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4677
SELECT - + ( + 97 ) DIV + + 37
----
-2

skipif mysql # not compatible
query I rowsort label-4677
SELECT - + ( + 97 ) / + + 37
----
-2

query I rowsort
SELECT DISTINCT + - 64 + + COALESCE ( - 45, - 36 + 94 )
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4679
SELECT - + 92 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT - + 92 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + - ( + - 22 ) * 29 * - 0 + - 41 AS col1
----
-41

query I rowsort
SELECT - ( - - 8 ) + - 72 AS col1
----
-80

query I rowsort
SELECT 1 * - 29 - + 29 + + 42 + - 44 + + ( ( - - 99 ) ) * - 30 + 44 AS col1
----
-2986

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT DISTINCT + ( 6 ) * - 2 + + - COUNT( * ) + + - 19
----
-32

skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT + ( 6 ) * - 2 + + - COUNT ( * ) + + - 19
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4684
SELECT DISTINCT - + 59 * - CAST( + 58 AS SIGNED ) AS col1
----
3422

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT - + 59 * - CAST ( + 58 AS INTEGER ) AS col1
----
3422

onlyif mysql # aggregate syntax: 
query II rowsort label-4685
SELECT ALL 88 * 49 * 10 + - COUNT( * ) + + - 58 * - 53 + + 53 + + 35 * - + 34, + 89 + - 15 AS col2
----
45056
74

skipif mysql # not compatible
query II rowsort label-4685
SELECT ALL 88 * 49 * 10 + - COUNT ( * ) + + - 58 * - 53 + + 53 + + 35 * - + 34, + 89 + - 15 AS col2
----
45056
74

query I rowsort
SELECT NULLIF ( + 75, - + 75 * 66 )
----
75

query I rowsort
SELECT ALL - 1 * ( + 10 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-4688
SELECT DISTINCT + NULLIF ( - 9, - + COUNT( * ) ), + 14 AS col0
----
-9
14

skipif mysql # not compatible
query II rowsort label-4688
SELECT DISTINCT + NULLIF ( - 9, - + COUNT ( * ) ), + 14 AS col0
----
-9
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4689
SELECT ALL 89 * + CAST( NULL AS SIGNED ) * 59 - - - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL 89 * + CAST ( NULL AS INTEGER ) * 59 - - - 36 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4690
SELECT ALL + NULLIF ( - CAST( - 67 AS SIGNED ), COUNT( * ) / 17 ) AS col2, COALESCE ( + MIN( 16 ), + - 28 ) col2
----
67
16

skipif mysql # not compatible
query II rowsort label-4690
SELECT ALL + NULLIF ( - CAST ( - 67 AS INTEGER ), COUNT ( * ) / 17 ) AS col2, COALESCE ( + MIN ( 16 ), + - 28 ) col2
----
67
16

query II rowsort
SELECT - 83 * - - 7 + - 41 col1, 71 AS col0
----
-622
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT - NULLIF ( 38, NULLIF ( - + COUNT( * ), + ( - 15 ) * 55 + - 28 * + 51 ) / 24 ) * - 56
----
2128

skipif mysql # not compatible
query I rowsort label-4692
SELECT - NULLIF ( 38, NULLIF ( - + COUNT ( * ), + ( - 15 ) * 55 + - 28 * + 51 ) / 24 ) * - 56
----
2128

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4693
SELECT NULLIF ( - CAST( NULL AS DECIMAL ), - 30 * - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT NULLIF ( - CAST ( NULL AS REAL ), - 30 * - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + NULLIF ( 82, 70 * + + ( + - 61 ) + 78 ) AS col0
----
82

query I rowsort
SELECT DISTINCT + COALESCE ( + ( - 27 ), + - 20, - + ( - 76 ) )
----
-27

query I rowsort
SELECT ALL 26 * - 93 - + 55 * - 96 AS col0
----
2862

query I rowsort
SELECT ALL - 22 * - - 63 - 31 + 75 AS col2
----
-1342

onlyif mysql # DIV for integer division: 
query I rowsort label-4698
SELECT DISTINCT + 57 DIV - - 47
----
1

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT + 57 / - - 47
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4699
SELECT + NULLIF ( - COUNT( * ), + 34 * + 8 + 49 * + MIN( ALL 35 ) + + CAST( COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4699
SELECT + NULLIF ( - COUNT ( * ), + 34 * + 8 + 49 * + MIN ( ALL 35 ) + + CAST ( COUNT ( * ) AS INTEGER ) )
----
-1

query I rowsort
SELECT + 53 * - - 29 AS col2
----
1537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4701
SELECT ALL CASE + CAST( + - 50 AS SIGNED ) WHEN - 14 THEN + 11 / + 44 * + 33 WHEN 18 THEN - 7 * NULLIF ( + COUNT( * ), - 23 ) - - ( - MIN( - + 75 ) ) END * - 53 / + 55 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL CASE + CAST ( + - 50 AS INTEGER ) WHEN - 14 THEN + 11 / + 44 * + 33 WHEN 18 THEN - 7 * NULLIF ( + COUNT ( * ), - 23 ) - - ( - MIN ( - + 75 ) ) END * - 53 / + 55 * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT MAX( + - 41 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-4702
SELECT MAX ( + - 41 ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT + COUNT( * ) * 17 col1
----
17

skipif mysql # not compatible
query I rowsort label-4703
SELECT + COUNT ( * ) * 17 col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4704
SELECT COUNT( ALL - - 93 ) AS col0, 0 * + + 81 + - 22
----
1
-22

skipif mysql # not compatible
query II rowsort label-4704
SELECT COUNT ( ALL - - 93 ) AS col0, 0 * + + 81 + - 22
----
1
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4705
SELECT - + CAST( + - 7 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-4705
SELECT - + CAST ( + - 7 AS INTEGER )
----
7

query II rowsort
SELECT ALL 31 + - 94, - 60 AS col0
----
-63
-60

query I rowsort
SELECT + - 7 * 61
----
-427

query I rowsort
SELECT ALL - ( 61 ) + + 30
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4709
SELECT ALL + + COUNT( * ) + + NULLIF ( + 71, - COUNT( DISTINCT - 83 ) ) * - + CAST( NULL AS SIGNED ) * - COALESCE ( + + 1, + COUNT( + - 48 ) * + - 96 * 22, 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL + + COUNT ( * ) + + NULLIF ( + 71, - COUNT ( DISTINCT - 83 ) ) * - + CAST ( NULL AS INTEGER ) * - COALESCE ( + + 1, + COUNT ( + - 48 ) * + - 96 * 22, 38 )
----
NULL

query I rowsort
SELECT + + ( + - 22 ) + - 33 * + ( ( - 53 ) ) + - 13 * - 11 - + + 17
----
1853

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT DISTINCT COUNT( * ) + - + 87 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT COUNT ( * ) + - + 87 AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT ALL + 2 + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL + 2 + + COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT SUM( ALL 30 )
----
30

skipif mysql # not compatible
query I rowsort label-4713
SELECT SUM ( ALL 30 )
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-4714
SELECT - ( + 47 ) AS col1, + 89 - + COUNT( * )
----
-47
88

skipif mysql # not compatible
query II rowsort label-4714
SELECT - ( + 47 ) AS col1, + 89 - + COUNT ( * )
----
-47
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT ALL + - MAX( DISTINCT 45 ) + - 13 * + + 97 * 99
----
-124884

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL + - MAX ( DISTINCT 45 ) + - 13 * + + 97 * 99
----
-124884

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT + COUNT( * ) + + - 32 * - 22 col2
----
705

skipif mysql # not compatible
query I rowsort label-4716
SELECT + COUNT ( * ) + + - 32 * - 22 col2
----
705

query I rowsort
SELECT ALL ( 49 ) * + 95 AS col0
----
4655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4718
SELECT - 44 + + + CAST( + 70 AS SIGNED ) - CAST( NULL AS DECIMAL ) * - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT - 44 + + + CAST ( + 70 AS INTEGER ) - CAST ( NULL AS REAL ) * - COUNT ( * ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4719
SELECT ALL + - CAST( + - 60 AS SIGNED ) - - 79
----
139

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL + - CAST ( + - 60 AS INTEGER ) - - 79
----
139

query I rowsort
SELECT + - 11 + NULLIF ( - 52, 6 )
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4721
SELECT ALL + 43 DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL + 43 / - 58
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT - CAST( NULL AS SIGNED ) * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT - CAST ( NULL AS INTEGER ) * 88
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4723
SELECT - 36 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT - 36 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4724
SELECT - 48 - MIN( ALL + - 47 ) * + 25 * + 77 / - CAST( NULL AS SIGNED ) AS col0, + 59 + + 24 - - - MAX( DISTINCT - - 85 ) * - 51 * 98 * 31 AS col0
----
NULL
13169813

skipif mysql # not compatible
query II rowsort label-4724
SELECT - 48 - MIN ( ALL + - 47 ) * + 25 * + 77 / - CAST ( NULL AS INTEGER ) AS col0, + 59 + + 24 - - - MAX ( DISTINCT - - 85 ) * - 51 * 98 * 31 AS col0
----
NULL
13169813

onlyif mysql # DIV for integer division: 
query II rowsort label-4725
SELECT + 53 AS col0, - 80 DIV 8 + 98 AS col1
----
53
88

skipif mysql # not compatible
query II rowsort label-4725
SELECT + 53 AS col0, - 80 / 8 + 98 AS col1
----
53
88

query I rowsort
SELECT - 83 + 58
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT ALL - 43 * ( - ( COUNT( * ) ) )
----
43

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL - 43 * ( - ( COUNT ( * ) ) )
----
43

query I rowsort
SELECT ALL + ( - - 7 ) AS col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4729
SELECT - 94 - + - COUNT( * ) + + - 93 DIV + 63 * + COUNT( * ) + + - 59
----
-153

skipif mysql # not compatible
query I rowsort label-4729
SELECT - 94 - + - COUNT ( * ) + + - 93 / + 63 * + COUNT ( * ) + + - 59
----
-153

query I rowsort
SELECT ( + - 7 ) * - 20 + 7 + + + 90
----
237

onlyif mysql # aggregate syntax: 
query II rowsort label-4731
SELECT - 41 + + 0 + - + 74 AS col1, + COALESCE ( 85, + MAX( + 66 ), + - COUNT( * ) ) - + + 32 * COUNT( * )
----
-115
53

skipif mysql # not compatible
query II rowsort label-4731
SELECT - 41 + + 0 + - + 74 AS col1, + COALESCE ( 85, + MAX ( + 66 ), + - COUNT ( * ) ) - + + 32 * COUNT ( * )
----
-115
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4732
SELECT DISTINCT + 75, 35 + + 21 + + 14 * + SUM( DISTINCT + 26 ) * + 27 * 28 + - - COUNT( * ) DIV - + 65 * - 2 AS col0
----
75
275240

skipif mysql # not compatible
query II rowsort label-4732
SELECT DISTINCT + 75, 35 + + 21 + + 14 * + SUM ( DISTINCT + 26 ) * + 27 * 28 + - - COUNT ( * ) / - + 65 * - 2 AS col0
----
75
275240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4733
SELECT DISTINCT - CAST( + 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT - CAST ( + 22 AS INTEGER )
----
-22

query I rowsort
SELECT 17 + - 40 AS col1
----
-23

query II rowsort
SELECT DISTINCT - 88, - 67 AS col0
----
-88
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4736
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) * SUM( + + 31 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) * SUM ( + + 31 ) AS col2
----
NULL

query I rowsort
SELECT - 40 * - 13 + 99
----
619

query I rowsort
SELECT ( 54 ) * + 48 * + - 98 * - + 59 * + 93 + - 66
----
1393785726

query II rowsort
SELECT - 47 AS col2, + 67 + 29
----
-47
96

query I rowsort
SELECT DISTINCT ( NULLIF ( 20, 1 + 61 ) )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4741
SELECT ALL + + CAST( NULL AS SIGNED ) + + 39 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL + + CAST ( NULL AS INTEGER ) + + 39 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT + MIN( - ( + 56 ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4742
SELECT + MIN ( - ( + 56 ) ) AS col2
----
-56

query I rowsort
SELECT DISTINCT 0 + - 99 * - + NULLIF ( 84, 80 ) + - 63 + + 32
----
8285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4744
SELECT CAST( 42 AS SIGNED ) DIV - 78 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4744
SELECT CAST ( 42 AS INTEGER ) / - 78 * COUNT ( * ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4745
SELECT ALL 18 + + + 49 + + + 79 DIV 32 DIV 39 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL 18 + + + 49 + + + 79 / 32 / 39 AS col2
----
67

query I rowsort
SELECT 24 * - 55 AS col0
----
-1320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4747
SELECT - - 67 AS col2, MIN( + 16 ) * - 27 + ( + CAST( NULL AS SIGNED ) )
----
67
NULL

skipif mysql # not compatible
query II rowsort label-4747
SELECT - - 67 AS col2, MIN ( + 16 ) * - 27 + ( + CAST ( NULL AS INTEGER ) )
----
67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT ALL 45 + + COUNT( * ) * - 0
----
45

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL 45 + + COUNT ( * ) * - 0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4749
SELECT 16 DIV 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4749
SELECT 16 / 71 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT - - MAX( - 71 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-4750
SELECT - - MAX ( - 71 ) AS col2
----
-71

query I rowsort
SELECT DISTINCT 72 * + ( - 83 ) + 73 col0
----
-5903

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT - MIN( ALL - - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-4752
SELECT - MIN ( ALL - - 7 )
----
-7

query I rowsort
SELECT 85 * - ( 19 ) AS col1
----
-1615

query I rowsort
SELECT 31 + - 23 * 30 - + 78 AS col2
----
-737

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT DISTINCT MIN( DISTINCT - + 73 ) * - - COUNT( * ) + + 88 + COUNT( * ) * - 17 - COUNT( * ) * - 53 + - MIN( DISTINCT - 72 ) * - + 69
----
-4917

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT MIN ( DISTINCT - + 73 ) * - - COUNT ( * ) + + 88 + COUNT ( * ) * - 17 - COUNT ( * ) * - 53 + - MIN ( DISTINCT - 72 ) * - + 69
----
-4917

onlyif mysql # aggregate syntax: 
query II rowsort label-4756
SELECT 22 * COUNT( * ), 72 col1
----
22
72

skipif mysql # not compatible
query II rowsort label-4756
SELECT 22 * COUNT ( * ), 72 col1
----
22
72

query I rowsort
SELECT ALL + 38 * + - 98 AS col2
----
-3724

query I rowsort
SELECT 11 * + 24 * - 10
----
-2640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4759
SELECT 66 * - 63 / - MIN( ALL + CAST( NULL AS SIGNED ) ) + + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4759
SELECT 66 * - 63 / - MIN ( ALL + CAST ( NULL AS INTEGER ) ) + + - 53
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4760
SELECT DISTINCT - 94 DIV 43 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT - 94 / 43 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT ALL - SUM( ALL + 17 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL - SUM ( ALL + 17 ) AS col0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4762
SELECT ALL - CASE - + 27 WHEN - 50 THEN - COALESCE ( COUNT( * ), - - 63 ) * - 68 DIV + - 73 - - 18 ELSE + - 87 END AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL - CASE - + 27 WHEN - 50 THEN - COALESCE ( COUNT ( * ), - - 63 ) * - 68 / + - 73 - - 18 ELSE + - 87 END AS col0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT CAST( NULL AS SIGNED ) * + 25 * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT CAST ( NULL AS INTEGER ) * + 25 * - 31
----
NULL

query I rowsort
SELECT 27 * + ( + + 50 ) col1
----
1350

query I rowsort
SELECT ALL - 67 * - + 0 * 96 col0
----
0

query I rowsort
SELECT DISTINCT - 95 + - 27
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT DISTINCT + 79 + + - 18 * + COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT + 79 + + - 18 * + COUNT ( * ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT - CASE + + MIN( + + 1 ) WHEN 46 THEN NULL ELSE - - MIN( ALL + 51 ) * + - 55 END AS col1
----
2805

skipif mysql # not compatible
query I rowsort label-4768
SELECT - CASE + + MIN ( + + 1 ) WHEN 46 THEN NULL ELSE - - MIN ( ALL + 51 ) * + - 55 END AS col1
----
2805

query I rowsort
SELECT 59 * + ( - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT NULLIF ( - 41, + COUNT( * ) * 66 * - COALESCE ( 40, - + 64 * - 87 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-4770
SELECT NULLIF ( - 41, + COUNT ( * ) * 66 * - COALESCE ( 40, - + 64 * - 87 ) )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4771
SELECT DISTINCT - CAST( COUNT( ALL - + 53 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT - CAST ( COUNT ( ALL - + 53 ) AS INTEGER )
----
-1

query II rowsort
SELECT ALL - 85 - 3 AS col0, - 71
----
-88
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT COUNT( DISTINCT + 65 ) * - - 64 * + 27 * + + 20 * - + 40 * 57 - + 76 AS col1
----
-78796876

skipif mysql # not compatible
query I rowsort label-4773
SELECT COUNT ( DISTINCT + 65 ) * - - 64 * + 27 * + + 20 * - + 40 * 57 - + 76 AS col1
----
-78796876

query I rowsort
SELECT ALL - 19 * - + 60 + + 65 * 30 AS col0
----
3090

query I rowsort
SELECT 61 * + ( - 29 ) * + 45 + + 15 AS col0
----
-79590

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT DISTINCT - 92 - COUNT( * ) - + - 25 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT - 92 - COUNT ( * ) - + - 25 AS col1
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4777
SELECT 10 + + + 95 - 22 + + - COUNT( * ) DIV 34 * + + 47 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-4777
SELECT 10 + + + 95 - 22 + + - COUNT ( * ) / 34 * + + 47 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT - COUNT( * ) - + + ( - + 27 )
----
26

skipif mysql # not compatible
query I rowsort label-4778
SELECT - COUNT ( * ) - + + ( - + 27 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT ALL - + 2 * - 50 + - COALESCE ( - - CASE - COALESCE ( - COUNT( * ), 26, - 49 ) WHEN - 2 * + + COUNT( * ) + + 86 + - 28 + + ( - COUNT( * ) ) * 31 + ( 74 ) THEN + 28 ELSE NULL END, + - COUNT( * ) ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL - + 2 * - 50 + - COALESCE ( - - CASE - COALESCE ( - COUNT ( * ), 26, - 49 ) WHEN - 2 * + + COUNT ( * ) + + 86 + - 28 + + ( - COUNT ( * ) ) * 31 + ( 74 ) THEN + 28 ELSE NULL END, + - COUNT ( * ) ) AS col1
----
101

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4780
SELECT + CAST( - 47 AS SIGNED ) + + 79 DIV - - 25 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-4780
SELECT + CAST ( - 47 AS INTEGER ) + + 79 / - - 25 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT ALL - 43 * + - COUNT( * ) col0
----
43

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL - 43 * + - COUNT ( * ) col0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4782
SELECT ALL COUNT( ALL 44 ) DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL COUNT ( ALL 44 ) / 78
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4783
SELECT COUNT( * ) DIV - 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4783
SELECT COUNT ( * ) / - 15 AS col1
----
0

query I rowsort
SELECT 92 * - - 22 AS col1
----
2024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4785
SELECT + COUNT( * ), + CAST( 56 AS SIGNED ) col1
----
1
56

skipif mysql # not compatible
query II rowsort label-4785
SELECT + COUNT ( * ), + CAST ( 56 AS INTEGER ) col1
----
1
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT + CASE - COUNT( + 12 ) WHEN - 49 * COUNT( * ) THEN NULL WHEN 13 THEN + CASE WHEN 1 IS NOT NULL THEN - 12 ELSE NULL END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT + CASE - COUNT ( + 12 ) WHEN - 49 * COUNT ( * ) THEN NULL WHEN 13 THEN + CASE WHEN 1 IS NOT NULL THEN - 12 ELSE NULL END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4787
SELECT 72 * - 21 - 9 * + 66 - - 70 AS col2, - ( 27 ) * + NULLIF ( 63, - 76 ) + - + 97 DIV 23 * - - 81 * - 16 - + 72 + + 67 DIV 17 + 24 * - COUNT( * ) AS col0
----
-2036
3390

skipif mysql # not compatible
query II rowsort label-4787
SELECT 72 * - 21 - 9 * + 66 - - 70 AS col2, - ( 27 ) * + NULLIF ( 63, - 76 ) + - + 97 / 23 * - - 81 * - 16 - + 72 + + 67 / 17 + 24 * - COUNT ( * ) AS col0
----
-2036
3390

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT + MAX( ALL - - 30 )
----
30

skipif mysql # not compatible
query I rowsort label-4788
SELECT + MAX ( ALL - - 30 )
----
30

query II rowsort
SELECT ALL + 56, - 25 AS col0
----
56
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT + MAX( 9 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4790
SELECT + MAX ( 9 ) AS col2
----
9

query II rowsort
SELECT ALL + 1 col0, + 71 * + 41 * - 86 * ( + - ( 8 ) ) + + 32 * - 32 AS col1
----
1
2001744

query I rowsort
SELECT + 87 * 66
----
5742

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4793
SELECT ALL + COALESCE ( + 45, + + 18 DIV ( - 58 ) * COUNT( * ) DIV - 34 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL + COALESCE ( + 45, + + 18 / ( - 58 ) * COUNT ( * ) / - 34 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT ALL 31 * - COUNT( * ) + 89 col2
----
58

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL 31 * - COUNT ( * ) + 89 col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT - CASE - 5 WHEN + - COUNT( DISTINCT 81 ) THEN NULLIF ( - - 46, - 78 + + - 91 ) END - + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT - CASE - 5 WHEN + - COUNT ( DISTINCT 81 ) THEN NULLIF ( - - 46, - 78 + + - 91 ) END - + 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT DISTINCT + COUNT( 37 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4796
SELECT DISTINCT + COUNT ( 37 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT MIN( ALL - - 33 ) * + ( 61 ) + - 96 * - 91 * - 26 AS col1
----
-225123

skipif mysql # not compatible
query I rowsort label-4797
SELECT MIN ( ALL - - 33 ) * + ( 61 ) + - 96 * - 91 * - 26 AS col1
----
-225123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4798
SELECT + COUNT( * ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4798
SELECT + COUNT ( * ) + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4799
SELECT ALL + + 55 * - 88 * - + 9, ( ( 92 ) ) * + + 75 + + 77 * + COUNT( * ) AS col2
----
43560
6977

skipif mysql # not compatible
query II rowsort label-4799
SELECT ALL + + 55 * - 88 * - + 9, ( ( 92 ) ) * + + 75 + + 77 * + COUNT ( * ) AS col2
----
43560
6977

query I rowsort
SELECT - + 3 * + 95
----
-285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4801
SELECT COALESCE ( + - CAST( + ( 35 ) AS SIGNED ), + + 35 * 99 DIV 88 ) * - + ( + 52 ) + - + 77 + - - 85 - - + COUNT( * ) * 97 + - 84 DIV + 90 + - 37 + 2 DIV + 40 AS col2
----
1888

skipif mysql # not compatible
query I rowsort label-4801
SELECT COALESCE ( + - CAST ( + ( 35 ) AS INTEGER ), + + 35 * 99 / 88 ) * - + ( + 52 ) + - + 77 + - - 85 - - + COUNT ( * ) * 97 + - 84 / + 90 + - 37 + 2 / + 40 AS col2
----
1888

query I rowsort
SELECT ALL - - 42 * + 76
----
3192

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL + + 80 * - NULLIF ( - ( - - 51 ), + SUM( ALL + - 11 ) ) AS col2
----
4080

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL + + 80 * - NULLIF ( - ( - - 51 ), + SUM ( ALL + - 11 ) ) AS col2
----
4080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4804
SELECT ALL MIN( ALL + + 23 ) * + 14 * + CAST( + COUNT( * ) AS SIGNED ) * - COUNT( DISTINCT 49 ) - + 89 col2, COUNT( * ) * 66 AS col1
----
-411
66

skipif mysql # not compatible
query II rowsort label-4804
SELECT ALL MIN ( ALL + + 23 ) * + 14 * + CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( DISTINCT 49 ) - + 89 col2, COUNT ( * ) * 66 AS col1
----
-411
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4805
SELECT - 6 DIV NULLIF ( - 46, - COUNT( * ) * - + 68 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4805
SELECT - 6 / NULLIF ( - 46, - COUNT ( * ) * - + 68 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4806
SELECT - 10 + - 57 DIV + + COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-4806
SELECT - 10 + - 57 / + + COUNT ( * ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT DISTINCT + - 13 - - 30 * + - 31 + + 87 - - 33 + 20 + + 95 + 53 * COUNT( * ) * 91 col2
----
4115

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT + - 13 - - 30 * + - 31 + + 87 - - 33 + 20 + + 95 + 53 * COUNT ( * ) * 91 col2
----
4115

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT ALL - - CASE COUNT( * ) WHEN - + AVG ( 57 ) THEN NULL WHEN + 87 THEN 63 END * 17 + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - - CASE COUNT ( * ) WHEN - + AVG ( 57 ) THEN NULL WHEN + 87 THEN 63 END * 17 + 68
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4809
SELECT - COUNT( * ) col2, 81 + + - COUNT( * ) + + 5 AS col2
----
-1
85

skipif mysql # not compatible
query II rowsort label-4809
SELECT - COUNT ( * ) col2, 81 + + - COUNT ( * ) + + 5 AS col2
----
-1
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT DISTINCT - ( NULLIF ( - + 71, COUNT( * ) ) )
----
71

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT - ( NULLIF ( - + 71, COUNT ( * ) ) )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-4811
SELECT - - 44 + - 25 + + 60 DIV - 93
----
19

skipif mysql # not compatible
query I rowsort label-4811
SELECT - - 44 + - 25 + + 60 / - 93
----
19

query I rowsort
SELECT ALL ( ( ( - + 80 ) ) ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT DISTINCT MAX( - + 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT MAX ( - + 94 )
----
-94

query II rowsort
SELECT - 1 * - - 20 AS col0, ( + + 56 ) AS col2
----
-20
56

query I rowsort
SELECT ALL - 39 + 57 AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4816
SELECT ALL CAST( + 45 AS SIGNED ) + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL CAST ( + 45 AS INTEGER ) + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4817
SELECT ALL COUNT( * ) * - + COUNT( * ) DIV 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL COUNT ( * ) * - + COUNT ( * ) / 86 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4818
SELECT ALL + COUNT( * ) * - 43 DIV - + 99
----
0

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL + COUNT ( * ) * - 43 / - + 99
----
0

query I rowsort
SELECT + 71 + - + 46 + + 59 + - + 44
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT DISTINCT + ( - - 26 ) + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT + ( - - 26 ) + COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT ALL - COUNT( * ) + - 47 - 91 AS col2
----
-139

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL - COUNT ( * ) + - 47 - 91 AS col2
----
-139

query II rowsort
SELECT 35 AS col1, 53
----
35
53

query I rowsort
SELECT - 35 + + - 36
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT ALL - 49 * - - COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL - 49 * - - COUNT ( * ) AS col1
----
-49

query I rowsort
SELECT + 70 * - 16 AS col1
----
-1120

onlyif mysql # DIV for integer division: 
query II rowsort label-4826
SELECT ALL 82 DIV - 51 AS col0, 86
----
-1
86

skipif mysql # not compatible
query II rowsort label-4826
SELECT ALL 82 / - 51 AS col0, 86
----
-1
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4827
SELECT ALL + 9 DIV 26 + - + 98
----
-98

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL + 9 / 26 + - + 98
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT ALL ( - - 55 ) / CASE + COUNT( * ) WHEN + + 19 THEN NULL WHEN + 76 THEN NULL WHEN COUNT( * ) + - - 65 THEN - ( + 8 ) / + 9 WHEN - 34 THEN NULL ELSE NULL END + + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL ( - - 55 ) / CASE + COUNT ( * ) WHEN + + 19 THEN NULL WHEN + 76 THEN NULL WHEN COUNT ( * ) + - - 65 THEN - ( + 8 ) / + 9 WHEN - 34 THEN NULL ELSE NULL END + + 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT COALESCE ( + - 90, + 90, + MIN( - ( - - 87 ) ) ) * - 89 + + ( + - COUNT( * ) ) - + SUM( DISTINCT + 94 ) * + NULLIF ( + 59, - + 81 ) * + 16 + - 23 + 46 + + 15
----
-80689

skipif mysql # not compatible
query I rowsort label-4829
SELECT COALESCE ( + - 90, + 90, + MIN ( - ( - - 87 ) ) ) * - 89 + + ( + - COUNT ( * ) ) - + SUM ( DISTINCT + 94 ) * + NULLIF ( + 59, - + 81 ) * + 16 + - 23 + 46 + + 15
----
-80689

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT ALL CAST( NULL AS SIGNED ) / - + ( - + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL CAST ( NULL AS INTEGER ) / - + ( - + 6 )
----
NULL

query I rowsort
SELECT + 16 * 92
----
1472

query I rowsort
SELECT + NULLIF ( + 55, - - 59 ) col0
----
55

query I rowsort
SELECT + 34 + - - 91 AS col0
----
125

query I rowsort
SELECT + 40 * 77 + 0 col1
----
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT + - 70 * - + 6 + COUNT( * ) AS col2
----
421

skipif mysql # not compatible
query I rowsort label-4835
SELECT + - 70 * - + 6 + COUNT ( * ) AS col2
----
421

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4836
SELECT DISTINCT CAST( 22 AS SIGNED ) * + 90 - - 30
----
2010

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT CAST ( 22 AS INTEGER ) * + 90 - - 30
----
2010

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4837
SELECT ALL + 74 * + ( - + COALESCE ( - + COUNT( * ), + 29 - NULLIF ( 91, - 67 + 21 - 90 * - 11 * - 21 * 63 + + CASE + 6 WHEN - + 79 THEN - 42 END * + 37 DIV + AVG ( - - 38 ) * 97 - 99 ) DIV 44 ) ) + + 85
----
159

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL + 74 * + ( - + COALESCE ( - + COUNT ( * ), + 29 - NULLIF ( 91, - 67 + 21 - 90 * - 11 * - 21 * 63 + + CASE + 6 WHEN - + 79 THEN - 42 END * + 37 / + AVG ( - - 38 ) * 97 - 99 ) / 44 ) ) + + 85
----
159

onlyif mysql # aggregate syntax: 
query II rowsort label-4838
SELECT + + 68 AS col1, COUNT( * )
----
68
1

skipif mysql # not compatible
query II rowsort label-4838
SELECT + + 68 AS col1, COUNT ( * )
----
68
1

query I rowsort
SELECT DISTINCT 55 * - 44
----
-2420

query II rowsort
SELECT ALL + 88 AS col0, 72 + 99 * 64 + - 80
----
88
6328

query II rowsort
SELECT + 95 AS col0, 11
----
95
11

onlyif mysql # DIV for integer division: 
query II rowsort label-4842
SELECT ALL - 42 DIV - 76, 52 AS col2
----
0
52

skipif mysql # not compatible
query II rowsort label-4842
SELECT ALL - 42 / - 76, 52 AS col2
----
0
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4843
SELECT - COUNT( * ) DIV 34 DIV + - 82 DIV - 53, + ( 84 ) AS col0
----
0
84

skipif mysql # not compatible
query II rowsort label-4843
SELECT - COUNT ( * ) / 34 / + - 82 / - 53, + ( 84 ) AS col0
----
0
84

query I rowsort
SELECT - + ( 9 )
----
-9

query I rowsort
SELECT DISTINCT 6 * - + 74 + - 75 + 92 AS col0
----
-427

query I rowsort
SELECT ALL + - 35 * 66 + - 89
----
-2399

onlyif mysql # DIV for integer division: 
query I rowsort label-4847
SELECT - + 70 DIV + 53
----
-1

skipif mysql # not compatible
query I rowsort label-4847
SELECT - + 70 / + 53
----
-1

query I rowsort
SELECT DISTINCT 85 * 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4849
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - ( + + COUNT( * ) ) * ( ( + CAST( + COALESCE ( 92, + - 1 + + + 53 * + ( - + COUNT( * ) ) ) AS SIGNED ) ) ), - 28 col2
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-4849
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - ( + + COUNT ( * ) ) * ( ( + CAST ( + COALESCE ( 92, + - 1 + + + 53 * + ( - + COUNT ( * ) ) ) AS INTEGER ) ) ), - 28 col2
----
NULL
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4850
SELECT ALL + MIN( DISTINCT + + NULLIF ( - ( + + CAST( + 82 AS SIGNED ) ), + 18 - + - 15 + - 31 ) ) + - 47 * + - CASE + - 0 WHEN - - 14 THEN NULL WHEN - 84 * + 56 + + 83 / - 26 THEN 69 ELSE + + 27 END col2
----
1187

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL + MIN ( DISTINCT + + NULLIF ( - ( + + CAST ( + 82 AS INTEGER ) ), + 18 - + - 15 + - 31 ) ) + - 47 * + - CASE + - 0 WHEN - - 14 THEN NULL WHEN - 84 * + 56 + + 83 / - 26 THEN 69 ELSE + + 27 END col2
----
1187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4851
SELECT 31 - - 20 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4851
SELECT 31 - - 20 + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 37 * - 30 AS col0, + 54
----
-1110
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4853
SELECT DISTINCT + COUNT( * ) + - 64 AS col0, - 97 * - 84 + - 75 * 5
----
-63
7773

skipif mysql # not compatible
query II rowsort label-4853
SELECT DISTINCT + COUNT ( * ) + - 64 AS col0, - 97 * - 84 + - 75 * 5
----
-63
7773

onlyif mysql # DIV for integer division: 
query I rowsort label-4854
SELECT ALL - 53 + + + 4 DIV - 13 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL - 53 + + + 4 / - 13 AS col1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4855
SELECT DISTINCT + 8 + - 79 * + NULLIF ( - - COUNT( * ), - 41 ) * - - 43 + ( - 11 ) + CAST( + 3 AS SIGNED ) DIV + 88 * 2 - - 22
----
-3378

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT + 8 + - 79 * + NULLIF ( - - COUNT ( * ), - 41 ) * - - 43 + ( - 11 ) + CAST ( + 3 AS INTEGER ) / + 88 * 2 - - 22
----
-3378

query I rowsort
SELECT DISTINCT + 63 * 31
----
1953

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4857
SELECT ALL 76 * + 31 / + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL 76 * + 31 / + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4858
SELECT DISTINCT + 63 * 73 AS col0, COUNT( * ) col1
----
4599
1

skipif mysql # not compatible
query II rowsort label-4858
SELECT DISTINCT + 63 * 73 AS col0, COUNT ( * ) col1
----
4599
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4859
SELECT - 67 * - NULLIF ( 63, 68 ) * - + CAST( NULL AS SIGNED ) - + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-4859
SELECT - 67 * - NULLIF ( 63, 68 ) * - + CAST ( NULL AS INTEGER ) - + - 87
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4860
SELECT DISTINCT - 45 * + 65, COUNT( * ) AS col1
----
-2925
1

skipif mysql # not compatible
query II rowsort label-4860
SELECT DISTINCT - 45 * + 65, COUNT ( * ) AS col1
----
-2925
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4861
SELECT ALL - - CAST( + 84 AS SIGNED ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL - - CAST ( + 84 AS INTEGER ) AS col1
----
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4862
SELECT 67 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT 67 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4863
SELECT CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ), - 14 + + 99 * + COUNT( * ) AS col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-4863
SELECT CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ), - 14 + + 99 * + COUNT ( * ) AS col1
----
NULL
85

query I rowsort
SELECT + 92 * - + 83 + - 98
----
-7734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4865
SELECT + - NULLIF ( + 42, MIN( - 24 ) * 52 * SUM( + ( + - 27 ) ) ) * - 8 / + 76 - + CAST( NULL AS SIGNED ) + + NULLIF ( - MAX( DISTINCT + + CASE + 68 WHEN - - 74 THEN 76 - + + 89 ELSE NULL END ), - - 99 * + + 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4865
SELECT + - NULLIF ( + 42, MIN ( - 24 ) * 52 * SUM ( + ( + - 27 ) ) ) * - 8 / + 76 - + CAST ( NULL AS INTEGER ) + + NULLIF ( - MAX ( DISTINCT + + CASE + 68 WHEN - - 74 THEN 76 - + + 89 ELSE NULL END ), - - 99 * + + 68 )
----
NULL

query I rowsort
SELECT 47 * 54
----
2538

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT + COUNT( * ) + - - 3
----
4

skipif mysql # not compatible
query I rowsort label-4867
SELECT + COUNT ( * ) + - - 3
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT DISTINCT - ( + COUNT( * ) ) * - 27
----
27

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT - ( + COUNT ( * ) ) * - 27
----
27

query I rowsort
SELECT - 59 * 54 col0
----
-3186

query I rowsort
SELECT - 28 * - ( - 24 )
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT - 68 + - COUNT( * ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-4871
SELECT - 68 + - COUNT ( * ) AS col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT ALL + 80 * + - CAST( NULL AS SIGNED ) + 47 * + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL + 80 * + - CAST ( NULL AS INTEGER ) + 47 * + 17 AS col0
----
NULL

query I rowsort
SELECT ALL - 10 + CASE ( - 36 ) WHEN - 89 THEN NULL ELSE + NULLIF ( + 52, - 34 + - - 20 + 8 + 12 * 5 ) END AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL COUNT( * ) + - 94
----
-93

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL COUNT ( * ) + - 94
----
-93

query I rowsort
SELECT + 95 + - 79 AS col0
----
16

query I rowsort
SELECT ALL 74 * - NULLIF ( + - 62, - - ( + + 62 ) ) * - 43 AS col0
----
-197284

onlyif mysql # aggregate syntax: 
query II rowsort label-4877
SELECT 92 + + 32 + + MIN( + 88 ) AS col0, 22 + 67
----
212
89

skipif mysql # not compatible
query II rowsort label-4877
SELECT 92 + + 32 + + MIN ( + 88 ) AS col0, 22 + 67
----
212
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4878
SELECT ALL COUNT( * ) + CAST( - - 80 AS SIGNED ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL COUNT ( * ) + CAST ( - - 80 AS INTEGER ) AS col1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4879
SELECT 50 + - 33 DIV - + 41 * + 26
----
50

skipif mysql # not compatible
query I rowsort label-4879
SELECT 50 + - 33 / - + 41 * + 26
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT 21 * - CASE - - COUNT( * ) WHEN - 11 THEN + + 72 ELSE NULL END * 12 + ( - + 72 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT 21 * - CASE - - COUNT ( * ) WHEN - 11 THEN + + 72 ELSE NULL END * 12 + ( - + 72 ) col1
----
NULL

query I rowsort
SELECT ALL - 49 * - 47
----
2303

query I rowsort
SELECT 27 + - - NULLIF ( - + 80, 93 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT ALL MAX( DISTINCT - 67 ) + - + ( + 11 ) * + - 61 AS col1
----
604

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL MAX ( DISTINCT - 67 ) + - + ( + 11 ) * + - 61 AS col1
----
604

query I rowsort
SELECT DISTINCT + 77 - + 34 AS col1
----
43

query I rowsort
SELECT 46 * + 35 AS col2
----
1610

query I rowsort
SELECT ALL 70 * 24
----
1680

query I rowsort
SELECT NULLIF ( + - 5, - 40 ) - - 54 * - + 52 * + 2 * - 88 * + + 80
----
39536635

query I rowsort
SELECT 62 + 85
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT DISTINCT + ( - - 50 ) - + + COUNT( * ) + - 55 + - + 48
----
-54

skipif mysql # not compatible
query I rowsort label-4889
SELECT DISTINCT + ( - - 50 ) - + + COUNT ( * ) + - 55 + - + 48
----
-54

query I rowsort
SELECT ALL + 59 - 91 AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4891
SELECT CAST( NULL AS SIGNED ) * - 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT CAST ( NULL AS INTEGER ) * - 63 AS col1
----
NULL

query I rowsort
SELECT 52 + + 54 AS col2
----
106

query I rowsort
SELECT 61 + - 90 * + + 65 * - 28 AS col1
----
163861

query I rowsort
SELECT + 49 * ( + 36 ) col1
----
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL + + COUNT( * ) * - ( MIN( DISTINCT 59 ) ) * - + 66 + - 56 * - 88
----
8822

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + + COUNT ( * ) * - ( MIN ( DISTINCT 59 ) ) * - + 66 + - 56 * - 88
----
8822

query II rowsort
SELECT ALL - + 93 col2, - 81 * + - 46 * + - 51
----
-93
-190026

query I rowsort
SELECT - ( + 39 ) * 71
----
-2769

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT - 86 + - 48 * COUNT( * ) AS col0
----
-134

skipif mysql # not compatible
query I rowsort label-4898
SELECT - 86 + - 48 * COUNT ( * ) AS col0
----
-134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4899
SELECT ALL - + COUNT( * ) * - CAST( - - 52 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL - + COUNT ( * ) * - CAST ( - - 52 AS INTEGER )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4900
SELECT - + 39 * - + 7 + - + CAST( 10 AS SIGNED ) + + 96
----
359

skipif mysql # not compatible
query I rowsort label-4900
SELECT - + 39 * - + 7 + - + CAST ( 10 AS INTEGER ) + + 96
----
359

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT DISTINCT - - MIN( ALL - 96 ) * + 74 + - 87
----
-7191

skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT - - MIN ( ALL - 96 ) * + 74 + - 87
----
-7191

query II rowsort
SELECT + 74 AS col2, + 51 AS col2
----
74
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4903
SELECT COUNT( * ) DIV + 36
----
0

skipif mysql # not compatible
query I rowsort label-4903
SELECT COUNT ( * ) / + 36
----
0

query I rowsort
SELECT DISTINCT 14 * + 7 + + 66
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT ALL + + NULLIF ( COUNT( * ), 97 ) * COUNT( * ) + + - 23 + - + 92 + - 44 AS col1
----
-158

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL + + NULLIF ( COUNT ( * ), 97 ) * COUNT ( * ) + + - 23 + - + 92 + - 44 AS col1
----
-158

query I rowsort
SELECT DISTINCT 0 + - 75
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4907
SELECT 0 DIV + 29 * 30
----
0

skipif mysql # not compatible
query I rowsort label-4907
SELECT 0 / + 29 * 30
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT DISTINCT - - MIN( DISTINCT 50 )
----
50

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT - - MIN ( DISTINCT 50 )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4909
SELECT - 32 - + COUNT( * ) DIV + 57 + - 16 + + 1
----
-47

skipif mysql # not compatible
query I rowsort label-4909
SELECT - 32 - + COUNT ( * ) / + 57 + - 16 + + 1
----
-47

query II rowsort
SELECT + + 77, + 93 * - - 75 col1
----
77
6975

onlyif mysql # DIV for integer division: 
query I rowsort label-4911
SELECT + 15 DIV 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4911
SELECT + 15 / 98 AS col0
----
0

query II rowsort
SELECT - + 93 * - 25 + + 21 AS col1, + 97
----
2346
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4913
SELECT 80 * + 31 * - ( CAST( - 58 AS SIGNED ) ) + + - 99 AS col0
----
143741

skipif mysql # not compatible
query I rowsort label-4913
SELECT 80 * + 31 * - ( CAST ( - 58 AS INTEGER ) ) + + - 99 AS col0
----
143741

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4914
SELECT ALL CAST( NULL AS DECIMAL ) * + SUM( ALL - 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL CAST ( NULL AS REAL ) * + SUM ( ALL - 89 )
----
NULL

query I rowsort
SELECT ALL 65 * + 84
----
5460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT + 71 - + CAST( NULL AS SIGNED ) + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT + 71 - + CAST ( NULL AS INTEGER ) + - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - CASE - - 96 WHEN + 92 / 78 THEN NULL WHEN - - 80 THEN 91 * - 19 END - 20 * - - 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT ALL 59 - + COUNT( * ) + MIN( DISTINCT - + 62 ) + + - ( - 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL 59 - + COUNT ( * ) + MIN ( DISTINCT - + 62 ) + + - ( - 3 )
----
-1

query I rowsort
SELECT ALL 29 * + 26 AS col2
----
754

query I rowsort
SELECT - COALESCE ( - 92, - - 97 ) col1
----
92

query I rowsort
SELECT + 5 * + 94 * + - 31
----
-14570

onlyif mysql # aggregate syntax: 
query II rowsort label-4922
SELECT - 11 * + 71 col0, + COUNT( * ) col1
----
-781
1

skipif mysql # not compatible
query II rowsort label-4922
SELECT - 11 * + 71 col0, + COUNT ( * ) col1
----
-781
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4923
SELECT ALL 17 DIV NULLIF ( - SUM( + 41 ), 4 )
----
0

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL 17 / NULLIF ( - SUM ( + 41 ), 4 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4924
SELECT + 58 + - 5 + - 69 - + 35 - 15 + + + 98 * + ( + 34 ) * ( + - ( - COUNT( * ) ) ) * COUNT( * ) * + - 23 * + + 71 + + 99 * 77 + 0 * - 68 DIV + 87 + 85 + - 3 * 56 * - ( + ( + 74 ) ) * 38 * + 86
----
35194262

skipif mysql # not compatible
query I rowsort label-4924
SELECT + 58 + - 5 + - 69 - + 35 - 15 + + + 98 * + ( + 34 ) * ( + - ( - COUNT ( * ) ) ) * COUNT ( * ) * + - 23 * + + 71 + + 99 * 77 + 0 * - 68 / + 87 + 85 + - 3 * 56 * - ( + ( + 74 ) ) * 38 * + 86
----
35194262

query I rowsort
SELECT + 75 * - 14
----
-1050

query I rowsort
SELECT ALL + ( + NULLIF ( + - 3, + - 2 * + 86 ) ) * 28 + + + 36 AS col1
----
-48

query I rowsort
SELECT + 47 * 41 AS col1
----
1927

query I rowsort
SELECT + 87 + + - 59 col2
----
28

query I rowsort
SELECT - - ( - 51 ) * 27
----
-1377

query I rowsort
SELECT - 74 + - - 58
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT + + 40 * - COUNT( * ) * - 27 * + 40 + 80 + MIN( ALL + - 96 ) * + ( + 72 )
----
36368

skipif mysql # not compatible
query I rowsort label-4931
SELECT + + 40 * - COUNT ( * ) * - 27 * + 40 + 80 + MIN ( ALL + - 96 ) * + ( + 72 )
----
36368

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT - + COUNT( * ) * 32 - 68
----
-100

skipif mysql # not compatible
query I rowsort label-4932
SELECT - + COUNT ( * ) * 32 - 68
----
-100

query I rowsort
SELECT + - 24 - + 43 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL - + 70 * + 56 + + COALESCE ( + MIN( DISTINCT + - 40 ), - 10, + COUNT( * ) ) * 53 AS col1
----
-6040

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL - + 70 * + 56 + + COALESCE ( + MIN ( DISTINCT + - 40 ), - 10, + COUNT ( * ) ) * 53 AS col1
----
-6040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4935
SELECT + - 63 * + COALESCE ( + + 90, + + 91 * + CAST( NULL AS SIGNED ) ) + - - SUM( DISTINCT + 84 ) AS col2
----
-5586

skipif mysql # not compatible
query I rowsort label-4935
SELECT + - 63 * + COALESCE ( + + 90, + + 91 * + CAST ( NULL AS INTEGER ) ) + - - SUM ( DISTINCT + 84 ) AS col2
----
-5586

query I rowsort
SELECT ALL 12 * + 70 + + + 76 AS col1
----
916

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT DISTINCT - 30 * + + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT - 30 * + + COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT 14 * + ( + MIN( + 81 ) ) + - ( - 63 )
----
1197

skipif mysql # not compatible
query I rowsort label-4938
SELECT 14 * + ( + MIN ( + 81 ) ) + - ( - 63 )
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT - - COUNT( * ) - + 29 + + + ( 55 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-4939
SELECT - - COUNT ( * ) - + 29 + + + ( 55 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT + COUNT( * ) + - COUNT( - 62 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4940
SELECT + COUNT ( * ) + - COUNT ( - 62 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT ALL - - 20 * + + 85 + - - 96 * + ( COUNT( * ) ) + + - 96 AS col0
----
1700

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL - - 20 * + + 85 + - - 96 * + ( COUNT ( * ) ) + + - 96 AS col0
----
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT DISTINCT - SUM( DISTINCT + 57 ) * - 65 + + SUM( - 61 )
----
3644

skipif mysql # not compatible
query I rowsort label-4942
SELECT DISTINCT - SUM ( DISTINCT + 57 ) * - 65 + + SUM ( - 61 )
----
3644

query I rowsort
SELECT - + 47 + - 66
----
-113

query I rowsort
SELECT - NULLIF ( + 32, - 12 ) * - - 27 + - 93
----
-957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4945
SELECT ALL + CAST( + 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL + CAST ( + 0 AS INTEGER )
----
0

query I rowsort
SELECT - 95 + + - 98 * - 35 col2
----
3335

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4947
SELECT ALL + COALESCE ( - + 26, + + 4 * + ( - CASE + - COUNT( * ) WHEN - 70 THEN - + 56 * - - 46 + + 89 + + COALESCE ( - - COUNT( * ), - 33 ) + - 79 DIV + 43 + - 68 ELSE + 5 END ) )
----
-26

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL + COALESCE ( - + 26, + + 4 * + ( - CASE + - COUNT ( * ) WHEN - 70 THEN - + 56 * - - 46 + + 89 + + COALESCE ( - - COUNT ( * ), - 33 ) + - 79 / + 43 + - 68 ELSE + 5 END ) )
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-4948
SELECT DISTINCT 18 DIV + 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT 18 / + 70 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT + COUNT( * ) + COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-4949
SELECT + COUNT ( * ) + COUNT ( * ) col0
----
2

query I rowsort
SELECT - 53 + - + 37 * + - 92
----
3351

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4951
SELECT ALL CAST( NULL AS SIGNED ) AS col0, 26 AS col0
----
NULL
26

skipif mysql # not compatible
query II rowsort label-4951
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 26 AS col0
----
NULL
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT - COALESCE ( COUNT( * ), - 32, - - 19 )
----
-1

skipif mysql # not compatible
query I rowsort label-4952
SELECT - COALESCE ( COUNT ( * ), - 32, - - 19 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT - ( + MAX( ALL ( 5 ) ) ) col2
----
-5

skipif mysql # not compatible
query I rowsort label-4953
SELECT - ( + MAX ( ALL ( 5 ) ) ) col2
----
-5

query I rowsort
SELECT ALL 76 * ( + + 33 ) AS col1
----
2508

query I rowsort
SELECT + 99 + 20 AS col1
----
119

query I rowsort
SELECT DISTINCT - 42 * + COALESCE ( - - 56, - 76 * + 58 + 30 * + - 65 ) AS col1
----
-2352

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT ALL + 87 + + COUNT( * ) * - 30 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL + 87 + + COUNT ( * ) * - 30 AS col0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-4958
SELECT DISTINCT MIN( - ( 74 ) ) AS col0, 11 * - SUM( + 12 ) + + 53 AS col1
----
-74
-79

skipif mysql # not compatible
query II rowsort label-4958
SELECT DISTINCT MIN ( - ( 74 ) ) AS col0, 11 * - SUM ( + 12 ) + + 53 AS col1
----
-74
-79

query I rowsort
SELECT - 63 * + - 50 AS col1
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT + + COUNT( * ) + 84 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4960
SELECT + + COUNT ( * ) + 84 AS col0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4961
SELECT ALL ( - CASE + ( 42 ) WHEN + - 89 THEN NULL WHEN MIN( - 32 ) THEN NULL WHEN - 59 * 31 THEN NULL ELSE + + 22 * 4 DIV - 64 END )
----
1

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL ( - CASE + ( 42 ) WHEN + - 89 THEN NULL WHEN MIN ( - 32 ) THEN NULL WHEN - 59 * 31 THEN NULL ELSE + + 22 * 4 / - 64 END )
----
1

query I rowsort
SELECT - COALESCE ( ( + 30 ), ( + + 7 ) + 9 ) col1
----
-30

query I rowsort
SELECT + - 64 + - 63 AS col0
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT + ( + COUNT( * ) ) + - - 2 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4964
SELECT + ( + COUNT ( * ) ) + - - 2 AS col1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4965
SELECT ALL 51 + + 83 DIV 65, - 22 col1
----
52
-22

skipif mysql # not compatible
query II rowsort label-4965
SELECT ALL 51 + + 83 / 65, - 22 col1
----
52
-22

query I rowsort
SELECT + 21 + 83 * + 91 * + + 79
----
596708

query I rowsort
SELECT ALL 90 + + 99 * + 76 AS col2
----
7614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4968
SELECT + ( 90 ) + - + 31 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4968
SELECT + ( 90 ) + - + 31 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4969
SELECT ALL + + ( - COUNT( * ) ) DIV COALESCE ( 9, 20, + - 3 ) + - 95 + 36 + - 41 + + 55 * NULLIF ( + 24, + - 93 DIV 53 )
----
1220

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL + + ( - COUNT ( * ) ) / COALESCE ( 9, 20, + - 3 ) + - 95 + 36 + - 41 + + 55 * NULLIF ( + 24, + - 93 / 53 )
----
1220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4970
SELECT ALL - 37 DIV - SUM( - 18 ) + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL - 37 / - SUM ( - 18 ) + + COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4971
SELECT ( + 16 ) DIV + 19
----
0

skipif mysql # not compatible
query I rowsort label-4971
SELECT ( + 16 ) / + 19
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4972
SELECT CASE WHEN 77 IS NOT NULL THEN NULL ELSE + CAST( NULL AS SIGNED ) END + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT CASE WHEN 77 IS NOT NULL THEN NULL ELSE + CAST ( NULL AS INTEGER ) END + 21 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4973
SELECT 9 AS col1, + 48 * + - SUM( ALL + 51 )
----
9
-2448

skipif mysql # not compatible
query II rowsort label-4973
SELECT 9 AS col1, + 48 * + - SUM ( ALL + 51 )
----
9
-2448

onlyif mysql # aggregate syntax: 
query II rowsort label-4974
SELECT DISTINCT MIN( DISTINCT + 49 ) * 89, 44 AS col1
----
4361
44

skipif mysql # not compatible
query II rowsort label-4974
SELECT DISTINCT MIN ( DISTINCT + 49 ) * 89, 44 AS col1
----
4361
44

query I rowsort
SELECT ALL - - ( 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT 39 * - - COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4976
SELECT 39 * - - COUNT ( * ) AS col1
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4977
SELECT ALL CAST( NULL AS SIGNED ) - + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL CAST ( NULL AS INTEGER ) - + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT DISTINCT - COUNT( - - ( 55 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT - COUNT ( - - ( 55 ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4979
SELECT ALL - 75 AS col2, 91 * - - COUNT( * ) AS col1
----
-75
91

skipif mysql # not compatible
query II rowsort label-4979
SELECT ALL - 75 AS col2, 91 * - - COUNT ( * ) AS col1
----
-75
91

query I rowsort
SELECT 46 * + - 41 * + 93 * + 86
----
-15084228

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT NULLIF ( - 50, - - COUNT( * ) ) * SUM( DISTINCT + 37 )
----
-1850

skipif mysql # not compatible
query I rowsort label-4981
SELECT NULLIF ( - 50, - - COUNT ( * ) ) * SUM ( DISTINCT + 37 )
----
-1850

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT 72 * 25 * - - 15 * - COUNT( * )
----
-27000

skipif mysql # not compatible
query I rowsort label-4982
SELECT 72 * 25 * - - 15 * - COUNT ( * )
----
-27000

query I rowsort
SELECT DISTINCT + 18 * + 71 * + 43
----
54954

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT 55 - + 98 * - + COUNT( DISTINCT 71 )
----
153

skipif mysql # not compatible
query I rowsort label-4984
SELECT 55 - + 98 * - + COUNT ( DISTINCT 71 )
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL ( 59 ) * - + CASE WHEN NULL < - MIN( - 84 ) THEN + 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL ( 59 ) * - + CASE WHEN NULL < - MIN ( - 84 ) THEN + 41 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT 17 AS col0, + 74 + + 10
----
17
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT 65 - + 72 - - + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-4987
SELECT 65 - + 72 - - + COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4988
SELECT 27, COUNT( 29 ) col1
----
27
1

skipif mysql # not compatible
query II rowsort label-4988
SELECT 27, COUNT ( 29 ) col1
----
27
1

query I rowsort
SELECT ALL - 55 + + 16
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT ALL + 1 + + - 98 + - SUM( + 13 ) AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL + 1 + + - 98 + - SUM ( + 13 ) AS col2
----
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-4991
SELECT 52 DIV + 34
----
1

skipif mysql # not compatible
query I rowsort label-4991
SELECT 52 / + 34
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4992
SELECT 55 + - 43 + + 46 DIV - 10 + - 72 - - MIN( - 47 ) + + 27 * - 13 AS col1, 69 * - ( - 35 )
----
-462
2415

skipif mysql # not compatible
query II rowsort label-4992
SELECT 55 + - 43 + + 46 / - 10 + - 72 - - MIN ( - 47 ) + + 27 * - 13 AS col1, 69 * - ( - 35 )
----
-462
2415

query I rowsort
SELECT 97 * 84
----
8148

query I rowsort
SELECT 29 + - - 82 AS col1
----
111

query II rowsort
SELECT ALL + 72 AS col1, - 77
----
72
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT ALL SUM( DISTINCT - - 16 ) * 97
----
1552

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL SUM ( DISTINCT - - 16 ) * 97
----
1552

query II rowsort
SELECT 62 AS col1, 30 AS col2
----
62
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT ALL + - 57 * + 99 - 21 + + ( + + 42 ) * - MAX( - + 17 ) * + + NULLIF ( - - COUNT( * ), - COUNT( * ) )
----
-4950

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL + - 57 * + 99 - 21 + + ( + + 42 ) * - MAX ( - + 17 ) * + + NULLIF ( - - COUNT ( * ), - COUNT ( * ) )
----
-4950

onlyif mysql # aggregate syntax: 
query II rowsort label-4999
SELECT COUNT( * ) AS col2, + 3
----
1
3

skipif mysql # not compatible
query II rowsort label-4999
SELECT COUNT ( * ) AS col2, + 3
----
1
3

query II rowsort
SELECT 17 col0, 21 AS col2
----
17
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT - NULLIF ( - 90, - + 82 + - + 23 * 64 ) - 39 * COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-5001
SELECT - NULLIF ( - 90, - + 82 + - + 23 * 64 ) - 39 * COUNT ( * )
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-5002
SELECT ALL - - 95, 92 DIV 81 col2
----
95
1

skipif mysql # not compatible
query II rowsort label-5002
SELECT ALL - - 95, 92 / 81 col2
----
95
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5003
SELECT DISTINCT - CAST( + - 44 AS SIGNED ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-5003
SELECT DISTINCT - CAST ( + - 44 AS INTEGER ) AS col0
----
44

query I rowsort
SELECT ( + 59 ) + + 33
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5005
SELECT ALL ( - 84 ) DIV + MAX( + ( 35 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL ( - 84 ) / + MAX ( + ( 35 ) )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5006
SELECT CAST( NULL AS SIGNED ) / + - 33 * - 54 * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT CAST ( NULL AS INTEGER ) / + - 33 * - 54 * + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT MIN( ALL ( + 95 ) ) - - 77
----
172

skipif mysql # not compatible
query I rowsort label-5007
SELECT MIN ( ALL ( + 95 ) ) - - 77
----
172

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5008
SELECT 72 DIV CAST( + 56 AS SIGNED ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5008
SELECT 72 / CAST ( + 56 AS INTEGER ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5009
SELECT 75 + - 65 * COALESCE ( - ( - 5 ), - + 35 + + + ( + 58 ), - COALESCE ( - 78, + 63 * - COALESCE ( - 65, + 84, COUNT( * ) + + 97 + - 95 ) + - 67 ) * + 29 + CASE - + 10 WHEN - 25 THEN NULL WHEN - 69 THEN 75 * + 65 * + COALESCE ( - - 22, 83 * + 74, + CASE NULLIF ( - ( - CASE 94 WHEN MAX( + NULLIF ( 17, + 76 ) ) + + 64 THEN - 16 * - COALESCE ( COALESCE ( - 60, + COALESCE ( 25, COUNT( * ) ), 34 + + 92 ), COUNT( * ) ) END ), - MAX( + 74 ) ) WHEN + 67 THEN + 87 WHEN COUNT( DISTINCT 44 ) THEN 11 * + 29 + - 29 DIV AVG ( ALL 1 + - 22 ) ELSE NULL END - + 45 * ( + 71 ) ) * 97 ELSE 69 * - 36 END ) AS col2
----
-250

skipif mysql # not compatible
query I rowsort label-5009
SELECT 75 + - 65 * COALESCE ( - ( - 5 ), - + 35 + + + ( + 58 ), - COALESCE ( - 78, + 63 * - COALESCE ( - 65, + 84, COUNT ( * ) + + 97 + - 95 ) + - 67 ) * + 29 + CASE - + 10 WHEN - 25 THEN NULL WHEN - 69 THEN 75 * + 65 * + COALESCE ( - - 22, 83 * + 74, + CASE NULLIF ( - ( - CASE 94 WHEN MAX ( + NULLIF ( 17, + 76 ) ) + + 64 THEN - 16 * - COALESCE ( COALESCE ( - 60, + COALESCE ( 25, COUNT ( * ) ), 34 + + 92 ), COUNT ( * ) ) END ), - MAX ( + 74 ) ) WHEN + 67 THEN + 87 WHEN COUNT ( DISTINCT 44 ) THEN 11 * + 29 + - 29 / AVG ( ALL 1 + - 22 ) ELSE NULL END - + 45 * ( + 71 ) ) * 97 ELSE 69 * - 36 END ) AS col2
----
-250

onlyif mysql # aggregate syntax: 
query II rowsort label-5010
SELECT COUNT( * ) + - 25, - COUNT( * ) AS col2
----
-24
-1

skipif mysql # not compatible
query II rowsort label-5010
SELECT COUNT ( * ) + - 25, - COUNT ( * ) AS col2
----
-24
-1

query I rowsort
SELECT ALL 71 + - 54
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT DISTINCT ( 14 ) * CAST( + 16 AS SIGNED ) AS col2
----
224

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT ( 14 ) * CAST ( + 16 AS INTEGER ) AS col2
----
224

onlyif mysql # DIV for integer division: 
query I rowsort label-5013
SELECT DISTINCT 6 + 6 DIV - 96 * + 96 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT 6 + 6 / - 96 * + 96 AS col0
----
6

query I rowsort
SELECT 74 + + + 41 - + ( - CASE WHEN - COALESCE ( + + 56, 39 ) > 12 * + - 78 THEN - 89 END )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT ALL 40 + + CASE 18 WHEN + 49 * COUNT( * ) THEN NULL WHEN - ( COUNT( * ) ) - - 54 THEN NULL ELSE + 68 END * - + ( 92 )
----
-6216

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL 40 + + CASE 18 WHEN + 49 * COUNT ( * ) THEN NULL WHEN - ( COUNT ( * ) ) - - 54 THEN NULL ELSE + 68 END * - + ( 92 )
----
-6216

onlyif mysql # DIV for integer division: 
query I rowsort label-5016
SELECT 52 + + COALESCE ( + - 46, - - 72 DIV - ( - + 7 ) )
----
6

skipif mysql # not compatible
query I rowsort label-5016
SELECT 52 + + COALESCE ( + - 46, - - 72 / - ( - + 7 ) )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5017
SELECT 90 + + 68 + - 89 + + 26 DIV 50 * COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-5017
SELECT 90 + + 68 + - 89 + + 26 / 50 * COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5018
SELECT - SUM( 23 ) col2, + 24 AS col2
----
-23
24

skipif mysql # not compatible
query II rowsort label-5018
SELECT - SUM ( 23 ) col2, + 24 AS col2
----
-23
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5019
SELECT 0 + CAST( 58 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-5019
SELECT 0 + CAST ( 58 AS INTEGER )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT ALL - 24 + - 22 + + - 3 - 64 * COUNT( * ) * 83 AS col2
----
-5361

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL - 24 + - 22 + + - 3 - 64 * COUNT ( * ) * 83 AS col2
----
-5361

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT ALL + MAX( ALL 24 ) + + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL + MAX ( ALL 24 ) + + COUNT ( * ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT ALL + CASE - 75 WHEN 9 * - 19 THEN NULL WHEN - - COUNT( * ) * - 38 THEN - 54 * 0 + - 5 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL + CASE - 75 WHEN 9 * - 19 THEN NULL WHEN - - COUNT ( * ) * - 38 THEN - 54 * 0 + - 5 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5023
SELECT ALL - + COUNT( * ) - 79, COUNT( * ) AS col2
----
-80
1

skipif mysql # not compatible
query II rowsort label-5023
SELECT ALL - + COUNT ( * ) - 79, COUNT ( * ) AS col2
----
-80
1

query I rowsort
SELECT - 39 + 62 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT - 43 * 56 + - - SUM( DISTINCT ( 75 ) )
----
-2333

skipif mysql # not compatible
query I rowsort label-5025
SELECT - 43 * 56 + - - SUM ( DISTINCT ( 75 ) )
----
-2333

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5026
SELECT - MAX( - 99 ) * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT - MAX ( - 99 ) * + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT - ( - COUNT( * ) ) + - - 67 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-5027
SELECT - ( - COUNT ( * ) ) + - - 67 AS col1
----
68

query I rowsort
SELECT - - 35 + + 49 + + 38 AS col2
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5029
SELECT DISTINCT CAST( - 26 AS SIGNED ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT CAST ( - 26 AS INTEGER ) AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5030
SELECT ( CAST( - 16 AS SIGNED ) ) col0, 90
----
-16
90

skipif mysql # not compatible
query II rowsort label-5030
SELECT ( CAST ( - 16 AS INTEGER ) ) col0, 90
----
-16
90

query I rowsort
SELECT - 23 - + 39
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT DISTINCT + 47 * + MIN( - - 5 ) * 73 * SUM( + 1 )
----
17155

skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT + 47 * + MIN ( - - 5 ) * 73 * SUM ( + 1 )
----
17155

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT COALESCE ( - NULLIF ( - - 10, - ( - COUNT( * ) ) ), 36, 46 )
----
-10

skipif mysql # not compatible
query I rowsort label-5033
SELECT COALESCE ( - NULLIF ( - - 10, - ( - COUNT ( * ) ) ), 36, 46 )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5034
SELECT - SUM( - 94 ) * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5034
SELECT - SUM ( - 94 ) * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5035
SELECT ALL + COUNT( * ) * - - 30 + + CAST( NULL AS SIGNED ) + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL + COUNT ( * ) * - - 30 + + CAST ( NULL AS INTEGER ) + + 68
----
NULL

query I rowsort
SELECT DISTINCT - 41 * + 95 + 80
----
-3815

query II rowsort
SELECT ALL + 26 AS col2, 2 * - 67
----
26
-134

query I rowsort
SELECT + 59 * 33
----
1947

query I rowsort
SELECT - 23 + 16
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT + 29 * 47 * NULLIF ( + NULLIF ( - - COUNT( * ), + 31 ), + 38 * NULLIF ( - - 55, - 40 + - + COUNT( * ) ) ) AS col2
----
1363

skipif mysql # not compatible
query I rowsort label-5040
SELECT + 29 * 47 * NULLIF ( + NULLIF ( - - COUNT ( * ), + 31 ), + 38 * NULLIF ( - - 55, - 40 + - + COUNT ( * ) ) ) AS col2
----
1363

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT MAX( ALL 80 )
----
80

skipif mysql # not compatible
query I rowsort label-5041
SELECT MAX ( ALL 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT SUM( 6 ) col0
----
6

skipif mysql # not compatible
query I rowsort label-5042
SELECT SUM ( 6 ) col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT SUM( 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-5043
SELECT SUM ( 89 ) AS col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5044
SELECT + 81 DIV - 43
----
-1

skipif mysql # not compatible
query I rowsort label-5044
SELECT + 81 / - 43
----
-1

query I rowsort
SELECT + 93 * + 78 AS col0
----
7254

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT ALL 99 * + + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL 99 * + + COUNT ( * )
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-5047
SELECT ALL + 53, - 79 DIV - - 91 AS col0
----
53
0

skipif mysql # not compatible
query II rowsort label-5047
SELECT ALL + 53, - 79 / - - 91 AS col0
----
53
0

query II rowsort
SELECT DISTINCT 43 AS col0, + 67 AS col1
----
43
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT + + 32 + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-5049
SELECT + + 32 + + COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT ALL + COUNT( * ) - + - 27 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL + COUNT ( * ) - + - 27 AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5051
SELECT + CAST( - + 30 AS SIGNED ) + - 89 AS col1, 97 AS col2
----
-119
97

skipif mysql # not compatible
query II rowsort label-5051
SELECT + CAST ( - + 30 AS INTEGER ) + - 89 AS col1, 97 AS col2
----
-119
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT - COUNT( * ) - - 18 + CASE - COUNT( * ) WHEN + 37 - - 42 + - + 65 THEN COUNT( - - 46 ) END + + + 29 * + 27 * + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5052
SELECT - COUNT ( * ) - - 18 + CASE - COUNT ( * ) WHEN + 37 - - 42 + - + 65 THEN COUNT ( - - 46 ) END + + + 29 * + 27 * + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT + + CASE 66 WHEN - 80 * + 84 / - + COUNT( - 95 ) * - 1 + + 79 + + 94 + + + 58 - - - 88 THEN NULL WHEN - - COUNT( * ) THEN MIN( DISTINCT - 10 ) END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5053
SELECT + + CASE 66 WHEN - 80 * + 84 / - + COUNT ( - 95 ) * - 1 + + 79 + + 94 + + + 58 - - - 88 THEN NULL WHEN - - COUNT ( * ) THEN MIN ( DISTINCT - 10 ) END * - COUNT ( * )
----
NULL

query II rowsort
SELECT ALL 56 col2, - 76 + 1
----
56
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5055
SELECT ALL 86 * 73 * + 28 + - - 80 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL 86 * 73 * + 28 + - - 80 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5056
SELECT DISTINCT - ( + 80 ) * COUNT( * ), 97 * - COUNT( * ) AS col1
----
-80
-97

skipif mysql # not compatible
query II rowsort label-5056
SELECT DISTINCT - ( + 80 ) * COUNT ( * ), 97 * - COUNT ( * ) AS col1
----
-80
-97

query II rowsort
SELECT ALL - 25 AS col2, - 56
----
-25
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5058
SELECT - + 23 - + + 69 + CAST( NULL AS SIGNED ) + - 85 + - MIN( DISTINCT + 42 ) + + 14 * + COUNT( * ) AS col2, + 94 * + COUNT( * ) * + - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5058
SELECT - + 23 - + + 69 + CAST ( NULL AS INTEGER ) + - 85 + - MIN ( DISTINCT + 42 ) + + 14 * + COUNT ( * ) AS col2, + 94 * + COUNT ( * ) * + - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5059
SELECT - CAST( NULL AS SIGNED ) / - + 39 + MIN( + 83 ) + - + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5059
SELECT - CAST ( NULL AS INTEGER ) / - + 39 + MIN ( + 83 ) + - + 6
----
NULL

query I rowsort
SELECT + 83 + + + 23 + - 85
----
21

query I rowsort
SELECT - + 79 + + - 97 AS col0
----
-176

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT - 89 DIV 86 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5062
SELECT - 89 / 86 AS col0
----
-1

query I rowsort
SELECT 32 * + + 9 + COALESCE ( + ( - 51 ), - 52 ) AS col1
----
237

query I rowsort
SELECT DISTINCT - 59 * 10 * 89 col2
----
-52510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5065
SELECT ALL + 14 DIV - - MAX( 27 ) + 9 DIV CAST( + 64 AS SIGNED ) * 17 * 39 + + - 61
----
-61

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL + 14 / - - MAX ( 27 ) + 9 / CAST ( + 64 AS INTEGER ) * 17 * 39 + + - 61
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5066
SELECT ALL + COALESCE ( 72, 78 * + MIN( ALL CAST( ( + 43 ) AS SIGNED ) ) + 19 )
----
72

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL + COALESCE ( 72, 78 * + MIN ( ALL CAST ( ( + 43 ) AS INTEGER ) ) + 19 )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5067
SELECT + 8 DIV + - 64 + 83 + - + 47 * 17 DIV - ( - + 26 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5067
SELECT + 8 / + - 64 + 83 + - + 47 * 17 / - ( - + 26 ) AS col2
----
53

query II rowsort
SELECT - 35 + + 66, 14 AS col1
----
31
14

query II rowsort
SELECT ALL - 96 * - 82 AS col1, + 61 - + 83 col1
----
7872
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT ALL + NULLIF ( + MIN( - - 42 ), COUNT( * ) )
----
42

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL + NULLIF ( + MIN ( - - 42 ), COUNT ( * ) )
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-5071
SELECT + 57 * - 89 * - 24 + - ( + - 3 ) * - 79 * - 57 + - - 81 + - + COUNT( * ) AS col2, + NULLIF ( + 7, + 70 )
----
135341
7

skipif mysql # not compatible
query II rowsort label-5071
SELECT + 57 * - 89 * - 24 + - ( + - 3 ) * - 79 * - 57 + - - 81 + - + COUNT ( * ) AS col2, + NULLIF ( + 7, + 70 )
----
135341
7

query II rowsort
SELECT ( - 92 ) AS col2, 95 AS col0
----
-92
95

query I rowsort
SELECT - 17 * - 52 col2
----
884

query I rowsort
SELECT + 81 + - 25
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT - ( + 58 ) + 37 + + - COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-5075
SELECT - ( + 58 ) + 37 + + - COUNT ( * )
----
-22

query I rowsort
SELECT + COALESCE ( - 91, - 99 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT + 6 * - 78 * + - 7 * 78 + MAX( + + 71 )
----
255599

skipif mysql # not compatible
query I rowsort label-5077
SELECT + 6 * - 78 * + - 7 * 78 + MAX ( + + 71 )
----
255599

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT ALL - + MIN( + + 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL - + MIN ( + + 94 )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5079
SELECT COUNT( * ) / - CAST( NULL AS SIGNED ) + + - COUNT( * ) + + 4 + - CASE 49 WHEN + 51 THEN - 50 ELSE NULL END - 45 + + 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5079
SELECT COUNT ( * ) / - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + + 4 + - CASE 49 WHEN + 51 THEN - 50 ELSE NULL END - 45 + + 36 AS col1
----
NULL

query I rowsort
SELECT + 38 + + + 54 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT 4 + + - COUNT( * ) + 12
----
15

skipif mysql # not compatible
query I rowsort label-5081
SELECT 4 + + - COUNT ( * ) + 12
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-5082
SELECT SUM( + 69 ) AS col0, - NULLIF ( - + 23, - 69 + - + 99 ) AS col0
----
69
23

skipif mysql # not compatible
query II rowsort label-5082
SELECT SUM ( + 69 ) AS col0, - NULLIF ( - + 23, - 69 + - + 99 ) AS col0
----
69
23

query I rowsort
SELECT DISTINCT ( + 77 ) * + - 23
----
-1771

query I rowsort
SELECT 81 * - 6 * 76
----
-36936

query I rowsort
SELECT ( - + 35 ) * - 73
----
2555

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT DISTINCT + - COUNT( * ) * 88 * - + 82 - ( - + 79 ) AS col2
----
7295

skipif mysql # not compatible
query I rowsort label-5086
SELECT DISTINCT + - COUNT ( * ) * 88 * - + 82 - ( - + 79 ) AS col2
----
7295

query I rowsort
SELECT DISTINCT 57 * - 71 AS col2
----
-4047

query I rowsort
SELECT 60 + + + 64 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT DISTINCT + NULLIF ( - COUNT( * ), - - 29 )
----
-1

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT + NULLIF ( - COUNT ( * ), - - 29 )
----
-1

query I rowsort
SELECT - 14 * + + 5
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT ALL - SUM( ALL 88 ) + + NULLIF ( - 74, 72 ) + + - 38 * - 56 col0
----
1966

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL - SUM ( ALL 88 ) + + NULLIF ( - 74, 72 ) + + - 38 * - 56 col0
----
1966

query I rowsort
SELECT 9 - + 6 * 14 * 82 + - ( - + 31 ) * - - 75
----
-4554

query I rowsort
SELECT + 81 * 1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT COUNT( * ) + + COUNT( * ) + - + 66
----
-64

skipif mysql # not compatible
query I rowsort label-5094
SELECT COUNT ( * ) + + COUNT ( * ) + - + 66
----
-64

query I rowsort
SELECT + ( 47 ) + 51 AS col0
----
98

query I rowsort
SELECT DISTINCT 54 + 48 + + 10 * 42 * 59 AS col1
----
24882

query I rowsort
SELECT ALL - 73 + - + 44 + + 44 AS col2
----
-73

query II rowsort
SELECT ALL 92 AS col0, 5 AS col1
----
92
5

query I rowsort
SELECT DISTINCT - 55 + 67 AS col0
----
12

query I rowsort
SELECT ALL + 0 + 3 + + + NULLIF ( 61, + 47 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT ALL 41 + + NULLIF ( + MIN( 44 ), - 44 * + - 87 + - 33 ) * 32
----
1449

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL 41 + + NULLIF ( + MIN ( 44 ), - 44 * + - 87 + - 33 ) * 32
----
1449

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5102
SELECT COUNT( * ) * - 12 DIV - COUNT( * ) * + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-5102
SELECT COUNT ( * ) * - 12 / - COUNT ( * ) * + COUNT ( * )
----
12

query I rowsort
SELECT 81 * - + 89
----
-7209

query I rowsort
SELECT 55 * - 59
----
-3245

onlyif mysql # aggregate syntax: 
query II rowsort label-5105
SELECT + 59 AS col2, + ( + + MAX( DISTINCT + 79 ) ) AS col0
----
59
79

skipif mysql # not compatible
query II rowsort label-5105
SELECT + 59 AS col2, + ( + + MAX ( DISTINCT + 79 ) ) AS col0
----
59
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5106
SELECT 0 DIV - 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5106
SELECT 0 / - 49 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5107
SELECT ALL + 38 - + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL + 38 - + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5108
SELECT 1, COALESCE ( - + COUNT( 57 ), + COUNT( * ) DIV - 49 ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-5108
SELECT 1, COALESCE ( - + COUNT ( 57 ), + COUNT ( * ) / - 49 ) AS col0
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT ALL + COUNT( * ) * 81 * ( 84 ) AS col2
----
6804

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL + COUNT ( * ) * 81 * ( 84 ) AS col2
----
6804

query I rowsort
SELECT ALL + 38 - 82 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ALL - COUNT( * ) - - 44 * + COUNT( - - 10 )
----
43

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL - COUNT ( * ) - - 44 * + COUNT ( - - 10 )
----
43

query I rowsort
SELECT ALL - NULLIF ( 20, + 14 - + 48 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT 80 + - - ( - ( - COUNT( * ) ) )
----
81

skipif mysql # not compatible
query I rowsort label-5113
SELECT 80 + - - ( - ( - COUNT ( * ) ) )
----
81

query I rowsort
SELECT ( 41 ) + 29 AS col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5115
SELECT 60 * 64 DIV + - 39 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5115
SELECT 60 * 64 / + - 39 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT 8 * 81 * + - COUNT( * ) + + + 19 AS col0
----
-629

skipif mysql # not compatible
query I rowsort label-5116
SELECT 8 * 81 * + - COUNT ( * ) + + + 19 AS col0
----
-629

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT ALL - - MIN( ( 52 ) ) col2
----
52

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL - - MIN ( ( 52 ) ) col2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-5118
SELECT 98 + + 14 DIV 16 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-5118
SELECT 98 + + 14 / 16 AS col0
----
98

query I rowsort
SELECT ALL - 3 * + 68 AS col1
----
-204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5120
SELECT COUNT( ALL + 26 ) DIV - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5120
SELECT COUNT ( ALL + 26 ) / - COUNT ( * ) col2
----
-1

query I rowsort
SELECT ALL + - ( + 15 ) + ( - 9 )
----
-24

query I rowsort
SELECT + COALESCE ( - 28, - 66 ) * 2 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT ( - COUNT( * ) ) + - 54
----
-55

skipif mysql # not compatible
query I rowsort label-5123
SELECT ( - COUNT ( * ) ) + - 54
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT - ( + - CASE - - ( - 18 ) WHEN 28 * 11 - - + NULLIF ( + - COUNT( * ), 68 ) - COUNT( * ) * + - 60 * + MIN( DISTINCT + - 86 ) / - + 27 THEN + + ( + 29 ) ELSE + - SUM( - - 84 ) END )
----
-84

skipif mysql # not compatible
query I rowsort label-5124
SELECT - ( + - CASE - - ( - 18 ) WHEN 28 * 11 - - + NULLIF ( + - COUNT ( * ), 68 ) - COUNT ( * ) * + - 60 * + MIN ( DISTINCT + - 86 ) / - + 27 THEN + + ( + 29 ) ELSE + - SUM ( - - 84 ) END )
----
-84

query I rowsort
SELECT DISTINCT + ( + + 91 ) + 20
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-5126
SELECT 98 DIV 46 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5126
SELECT 98 / 46 AS col0
----
2

query I rowsort
SELECT + 39 - - 20 * ( - + ( 2 ) ) + + 88 * 26 AS col1
----
2287

query II rowsort
SELECT ALL 9 * + - 67 * - 53 AS col1, - 60 AS col2
----
31959
-60

query I rowsort
SELECT DISTINCT - 10 * - 18 * + NULLIF ( - 93, 82 + - + 50 - + 62 ) + - 32
----
-16772

query I rowsort
SELECT DISTINCT - + 26 + 52 AS col1
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5131
SELECT ALL + CAST( + ( - ( 77 ) ) AS SIGNED ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL + CAST ( + ( - ( 77 ) ) AS INTEGER ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT ALL - NULLIF ( - - CASE + ( 26 ) WHEN - + 95 THEN + COUNT( * ) END, 87 ) * + 27 + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL - NULLIF ( - - CASE + ( 26 ) WHEN - + 95 THEN + COUNT ( * ) END, 87 ) * + 27 + + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5133
SELECT DISTINCT 87 AS col0, + COUNT( * ) AS col2
----
87
1

skipif mysql # not compatible
query II rowsort label-5133
SELECT DISTINCT 87 AS col0, + COUNT ( * ) AS col2
----
87
1

query I rowsort
SELECT ALL 71 + + 61 * - + 70 AS col0
----
-4199

onlyif mysql # aggregate syntax: 
query II rowsort label-5135
SELECT DISTINCT 42, 35 - + + ( COUNT( * ) ) col0
----
42
34

skipif mysql # not compatible
query II rowsort label-5135
SELECT DISTINCT 42, 35 - + + ( COUNT ( * ) ) col0
----
42
34

query I rowsort
SELECT ALL 35 - 48
----
-13

query I rowsort
SELECT 64 + - 73 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT + SUM( ALL - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-5138
SELECT + SUM ( ALL - 25 )
----
-25

query I rowsort
SELECT COALESCE ( + 72, 1 ) AS col2
----
72

query I rowsort
SELECT + 49 * 94 * + 13 + 20
----
59898

query II rowsort
SELECT ALL - 16 AS col0, + 75 + 46 AS col1
----
-16
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5142
SELECT ALL 67 * - + 74 * 46 - + COUNT( * ) * + COUNT( * ) / - 92 * CAST( NULL AS SIGNED ) * - 34 * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL 67 * - + 74 * 46 - + COUNT ( * ) * + COUNT ( * ) / - 92 * CAST ( NULL AS INTEGER ) * - 34 * + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT DISTINCT 34 * - MIN( 52 )
----
-1768

skipif mysql # not compatible
query I rowsort label-5143
SELECT DISTINCT 34 * - MIN ( 52 )
----
-1768

query I rowsort
SELECT + 63 * + + 9
----
567

onlyif mysql # aggregate syntax: 
query II rowsort label-5145
SELECT + COUNT( * ) AS col2, + 57
----
1
57

skipif mysql # not compatible
query II rowsort label-5145
SELECT + COUNT ( * ) AS col2, + 57
----
1
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5146
SELECT + COUNT( - 40 ) AS col2, 56 DIV + - 61
----
1
0

skipif mysql # not compatible
query II rowsort label-5146
SELECT + COUNT ( - 40 ) AS col2, 56 / + - 61
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT - 10 * - - ( - - COUNT( * ) ) * 86 + + COUNT( * )
----
-859

skipif mysql # not compatible
query I rowsort label-5147
SELECT - 10 * - - ( - - COUNT ( * ) ) * 86 + + COUNT ( * )
----
-859

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT ALL + MAX( + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL + MAX ( + 50 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5149
SELECT + CAST( NULL AS SIGNED ) / - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5149
SELECT + CAST ( NULL AS INTEGER ) / - 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT DISTINCT + SUM( DISTINCT - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT + SUM ( DISTINCT - 6 )
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-5151
SELECT DISTINCT 34 DIV - + 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT 34 / - + 43 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5152
SELECT DISTINCT + CAST( 25 AS SIGNED ) * - COUNT( * ) + - - 97 + + + CASE - + 92 WHEN 19 THEN + ( + - MAX( ALL + 16 ) ) * + + 66 + - 79 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT + CAST ( 25 AS INTEGER ) * - COUNT ( * ) + - - 97 + + + CASE - + 92 WHEN 19 THEN + ( + - MAX ( ALL + 16 ) ) * + + 66 + - 79 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT + - 43 AS col1, + 42 + - ( - - 39 ) AS col0
----
-43
3

query I rowsort
SELECT ALL + 63 + + 18 AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5155
SELECT + CAST( - 75 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-5155
SELECT + CAST ( - 75 AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT - ( - MAX( DISTINCT 2 ) ) + + ( + 42 ) * COALESCE ( - - 59, - 60, + 79 ) AS col2
----
2480

skipif mysql # not compatible
query I rowsort label-5156
SELECT - ( - MAX ( DISTINCT 2 ) ) + + ( + 42 ) * COALESCE ( - - 59, - 60, + 79 ) AS col2
----
2480

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT - 10 + COUNT( * ) - 92 + 99
----
-2

skipif mysql # not compatible
query I rowsort label-5157
SELECT - 10 + COUNT ( * ) - 92 + 99
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-5158
SELECT ALL 25 col0, 22 * 95 + 78 + - - 31 + + + ( - 20 ) - + 50 * 78 DIV + 24 AS col0
----
25
2017

skipif mysql # not compatible
query II rowsort label-5158
SELECT ALL 25 col0, 22 * 95 + 78 + - - 31 + + + ( - 20 ) - + 50 * 78 / + 24 AS col0
----
25
2017

query II rowsort
SELECT - 36, 7 AS col2
----
-36
7

query I rowsort
SELECT + - 18 * + 45 + - 95 * - 70 AS col1
----
5840

onlyif mysql # aggregate syntax: 
query II rowsort label-5161
SELECT DISTINCT 92, + COUNT( * ) + 38 * - 48 + - - 52 AS col0
----
92
-1771

skipif mysql # not compatible
query II rowsort label-5161
SELECT DISTINCT 92, + COUNT ( * ) + 38 * - 48 + - - 52 AS col0
----
92
-1771

query I rowsort
SELECT ALL + 80 + 5 AS col0
----
85

query I rowsort
SELECT DISTINCT + 69 + ( 38 ) * + 53 + - + 91 col2
----
1992

query I rowsort
SELECT ALL + 20 + - 99 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT DISTINCT MAX( DISTINCT + + 3 ) * - 30 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT MAX ( DISTINCT + + 3 ) * - 30 AS col2
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5166
SELECT DISTINCT + 55 - + COUNT( * ) DIV 68 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT + 55 - + COUNT ( * ) / 68 AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5167
SELECT + CAST( NULL AS SIGNED ) * 4 * - - MIN( - 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT + CAST ( NULL AS INTEGER ) * 4 * - - MIN ( - 97 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5168
SELECT + CAST( NULL AS SIGNED ) + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT + CAST ( NULL AS INTEGER ) + 87 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 28 * + 28
----
784

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5170
SELECT - 76 * - + 49, COUNT( * ) DIV + 16 + - 31 AS col0
----
3724
-31

skipif mysql # not compatible
query II rowsort label-5170
SELECT - 76 * - + 49, COUNT ( * ) / + 16 + - 31 AS col0
----
3724
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT ALL - 38 * + MAX( + + 15 )
----
-570

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL - 38 * + MAX ( + + 15 )
----
-570

query I rowsort
SELECT ALL ( ( - 73 ) ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ALL - 20 * + - COUNT( * ) * 49
----
980

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL - 20 * + - COUNT ( * ) * 49
----
980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5174
SELECT CAST( + - SUM( - 56 ) AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-5174
SELECT CAST ( + - SUM ( - 56 ) AS INTEGER )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5175
SELECT CAST( 70 AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-5175
SELECT CAST ( 70 AS INTEGER )
----
70

query II rowsort
SELECT ( - - 48 ) AS col2, + 45 AS col1
----
48
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5177
SELECT + CAST( CASE - 72 WHEN - + SUM( ALL ( + 22 ) ) THEN + - CASE - + 23 WHEN + 1 THEN - 17 + - - 16 WHEN - COUNT( * ) * + - CAST( + 49 AS SIGNED ) + ( - - 75 ) + 57 THEN - + 1 + - 61 WHEN + 90 * 27 * - + ( + 85 ) + + 93 + + - 50 THEN NULL END + - 95 WHEN - - 8 * - 84 THEN NULL WHEN - 5 THEN + 27 * - 66 * - ( 28 ) * + MIN( + 90 ) END AS SIGNED ) * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT + CAST ( CASE - 72 WHEN - + SUM ( ALL ( + 22 ) ) THEN + - CASE - + 23 WHEN + 1 THEN - 17 + - - 16 WHEN - COUNT ( * ) * + - CAST ( + 49 AS INTEGER ) + ( - - 75 ) + 57 THEN - + 1 + - 61 WHEN + 90 * 27 * - + ( + 85 ) + + 93 + + - 50 THEN NULL END + - 95 WHEN - - 8 * - 84 THEN NULL WHEN - 5 THEN + 27 * - 66 * - ( 28 ) * + MIN ( + 90 ) END AS INTEGER ) * 33
----
NULL

query II rowsort
SELECT ( + 55 ) AS col2, 33 * + 27 * 6 col1
----
55
5346

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5179
SELECT + COUNT( * ) * 45 DIV 45 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5179
SELECT + COUNT ( * ) * 45 / 45 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5180
SELECT ALL + - 37 DIV + 11 * - ( + COUNT( * ) ) + + 32
----
35

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL + - 37 / + 11 * - ( + COUNT ( * ) ) + + 32
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5181
SELECT 22 DIV + 31 - 6 col0
----
-6

skipif mysql # not compatible
query I rowsort label-5181
SELECT 22 / + 31 - 6 col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5182
SELECT DISTINCT + 36 * - 10 + + 70 AS col0, 49 DIV + COUNT( * )
----
-290
49

skipif mysql # not compatible
query II rowsort label-5182
SELECT DISTINCT + 36 * - 10 + + 70 AS col0, 49 / + COUNT ( * )
----
-290
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5183
SELECT + + 98 DIV + COUNT( DISTINCT + 6 )
----
98

skipif mysql # not compatible
query I rowsort label-5183
SELECT + + 98 / + COUNT ( DISTINCT + 6 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5184
SELECT ALL - CAST( - 53 AS SIGNED ) * 30 * - - 92 * - ( + + SUM( - 98 ) ) + - + 94 * MIN( ALL 56 ) col1
----
14330176

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL - CAST ( - 53 AS INTEGER ) * 30 * - - 92 * - ( + + SUM ( - 98 ) ) + - + 94 * MIN ( ALL 56 ) col1
----
14330176

onlyif mysql # DIV for integer division: 
query I rowsort label-5185
SELECT + 11 + - 91 DIV - 63 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5185
SELECT + 11 + - 91 / - 63 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT + COUNT( * ) + 11
----
12

skipif mysql # not compatible
query I rowsort label-5186
SELECT + COUNT ( * ) + 11
----
12

query I rowsort
SELECT DISTINCT + - ( 65 ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT DISTINCT + COALESCE ( COUNT( * ), - 23 * + 29 - 52, + - 35 ) * - NULLIF ( 13, + 86 / + - 46 - + COUNT( DISTINCT 68 ) ) + - 93 AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT + COALESCE ( COUNT ( * ), - 23 * + 29 - 52, + - 35 ) * - NULLIF ( 13, + 86 / + - 46 - + COUNT ( DISTINCT 68 ) ) + - 93 AS col0
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5189
SELECT + - 21 * - - CAST( - 13 AS SIGNED )
----
273

skipif mysql # not compatible
query I rowsort label-5189
SELECT + - 21 * - - CAST ( - 13 AS INTEGER )
----
273

onlyif mysql # DIV for integer division: 
query I rowsort label-5190
SELECT ALL - - 64 DIV 37
----
1

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL - - 64 / 37
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5191
SELECT ALL 53 DIV - COUNT( * ) AS col2, - 25 * + + 19
----
-53
-475

skipif mysql # not compatible
query II rowsort label-5191
SELECT ALL 53 / - COUNT ( * ) AS col2, - 25 * + + 19
----
-53
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL COALESCE ( + 22, - CASE 0 WHEN + CASE - 62 WHEN - 28 THEN NULL ELSE MIN( - + 89 ) END / 22 THEN NULL ELSE - + MAX( + 4 ) END, + - SUM( ALL + 43 ) + - - COUNT( * ) ) * - 6 * + - COUNT( * ) * - 2 + - 3 - 62 * + 51 - + 13 col0
----
-3442

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL COALESCE ( + 22, - CASE 0 WHEN + CASE - 62 WHEN - 28 THEN NULL ELSE MIN ( - + 89 ) END / 22 THEN NULL ELSE - + MAX ( + 4 ) END, + - SUM ( ALL + 43 ) + - - COUNT ( * ) ) * - 6 * + - COUNT ( * ) * - 2 + - 3 - 62 * + 51 - + 13 col0
----
-3442

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT DISTINCT + 69 * + - SUM( 31 ) * + 2 * - 99
----
423522

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT + 69 * + - SUM ( 31 ) * + 2 * - 99
----
423522

query II rowsort
SELECT ALL NULLIF ( + 71, - 74 ) col1, 81
----
71
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT ALL + 51 * MAX( ALL + + 91 )
----
4641

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL + 51 * MAX ( ALL + + 91 )
----
4641

query I rowsort
SELECT DISTINCT ( + + 95 )
----
95

query I rowsort
SELECT ALL + 42 * + 14 AS col1
----
588

query I rowsort
SELECT DISTINCT - 6 - - 83
----
77

query I rowsort
SELECT ALL - 51 * + - 89 AS col0
----
4539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5200
SELECT DISTINCT CASE 87 WHEN + AVG ( - 76 ) * + - COUNT( * ) - + 32 THEN 83 * - CAST( - + AVG ( + - 26 ) AS SIGNED ) + - 40 + - NULLIF ( + 13, - COUNT( * ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT CASE 87 WHEN + AVG ( - 76 ) * + - COUNT ( * ) - + 32 THEN 83 * - CAST ( - + AVG ( + - 26 ) AS INTEGER ) + - 40 + - NULLIF ( + 13, - COUNT ( * ) ) END AS col1
----
NULL

query I rowsort
SELECT 9 * 26
----
234

query I rowsort
SELECT 80 + 16
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT 15 - - + ( COUNT( * ) ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-5203
SELECT 15 - - + ( COUNT ( * ) ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-5204
SELECT ALL 66 AS col1, + SUM( + 73 ) * - - 67 col1
----
66
4891

skipif mysql # not compatible
query II rowsort label-5204
SELECT ALL 66 AS col1, + SUM ( + 73 ) * - - 67 col1
----
66
4891

query I rowsort
SELECT 89 + + 30
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5206
SELECT ALL - CASE + - COUNT( * ) WHEN - NULLIF ( + - 55, 39 ) / 35 THEN 98 WHEN - 11 - 28 THEN NULL WHEN + 47 THEN - + CAST( NULL AS SIGNED ) ELSE + 48 END * + 94 - - COALESCE ( + COUNT( * ), - 35 ) AS col2, + 66 - 32 - + COALESCE ( CAST( AVG ( DISTINCT + CAST( + 8 AS DECIMAL ) ) AS SIGNED ), - - 75 ) * + 43 * - CAST( NULL AS SIGNED ) + - 2
----
-4511
NULL

skipif mysql # not compatible
query II rowsort label-5206
SELECT ALL - CASE + - COUNT ( * ) WHEN - NULLIF ( + - 55, 39 ) / 35 THEN 98 WHEN - 11 - 28 THEN NULL WHEN + 47 THEN - + CAST ( NULL AS INTEGER ) ELSE + 48 END * + 94 - - COALESCE ( + COUNT ( * ), - 35 ) AS col2, + 66 - 32 - + COALESCE ( CAST ( AVG ( DISTINCT + CAST ( + 8 AS REAL ) ) AS INTEGER ), - - 75 ) * + 43 * - CAST ( NULL AS INTEGER ) + - 2
----
-4511
NULL

query I rowsort
SELECT 34 * - 69 AS col2
----
-2346

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT ALL - ( - COUNT( * ) ) + - NULLIF ( COUNT( * ), + 11 ) + + + 60
----
60

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL - ( - COUNT ( * ) ) + - NULLIF ( COUNT ( * ), + 11 ) + + + 60
----
60

query I rowsort
SELECT 5 + - 6
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5210
SELECT 8 * + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5210
SELECT 8 * + - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL - 89 * - - 81 * - 57
----
410913

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5212
SELECT DISTINCT + COUNT( * ) + 73 DIV ( ( + MIN( + ( - + 84 ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT + COUNT ( * ) + 73 / ( ( + MIN ( + ( - + 84 ) ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT DISTINCT - + 0 + - COUNT( - - 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT - + 0 + - COUNT ( - - 5 )
----
-1

query I rowsort
SELECT ALL + 96 + 17 AS col1
----
113

query II rowsort
SELECT 52, - 71 AS col1
----
52
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5216
SELECT COALESCE ( + COUNT( * ), - 16 ) * 72 * + CAST( NULL AS SIGNED ) * + 48 + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5216
SELECT COALESCE ( + COUNT ( * ), - 16 ) * 72 * + CAST ( NULL AS INTEGER ) * + 48 + 41 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT ALL - ( MIN( + 75 ) ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL - ( MIN ( + 75 ) ) AS col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5218
SELECT + 9 * - COUNT( * ) * + ( 43 ) + - - ( + + 36 ) AS col0, COUNT( * ) + + 61 + 42 DIV + 51 AS col1
----
-351
62

skipif mysql # not compatible
query II rowsort label-5218
SELECT + 9 * - COUNT ( * ) * + ( 43 ) + - - ( + + 36 ) AS col0, COUNT ( * ) + + 61 + 42 / + 51 AS col1
----
-351
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT ( 13 ) * + + SUM( + 1 ) * + 69 + + ( - + 67 ) + - 81 * - - COUNT( * ) + + + 41 + + 49 AS col2
----
839

skipif mysql # not compatible
query I rowsort label-5219
SELECT ( 13 ) * + + SUM ( + 1 ) * + 69 + + ( - + 67 ) + - 81 * - - COUNT ( * ) + + + 41 + + 49 AS col2
----
839

query I rowsort
SELECT ( + - ( - 34 ) )
----
34

query I rowsort
SELECT ALL - 80 - 3 AS col2
----
-83

query I rowsort
SELECT ALL - - ( + + 86 )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-5223
SELECT DISTINCT + 53 DIV - 62 * - - 62 * 94 + - 61 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT + 53 / - 62 * - - 62 * 94 + - 61 AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5224
SELECT ALL NULLIF ( - 36, + COUNT( * ) ) - + - COUNT( * ) * - - CASE + SUM( DISTINCT - + 26 ) WHEN 45 * - + 58 * + 30 - + 51 * - - 8 THEN NULL ELSE + COUNT( * ) END + 67 * - 43 * + ( 95 ) * + 36 + CAST( - 90 AS SIGNED ) AS col0
----
-9853145

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL NULLIF ( - 36, + COUNT ( * ) ) - + - COUNT ( * ) * - - CASE + SUM ( DISTINCT - + 26 ) WHEN 45 * - + 58 * + 30 - + 51 * - - 8 THEN NULL ELSE + COUNT ( * ) END + 67 * - 43 * + ( 95 ) * + 36 + CAST ( - 90 AS INTEGER ) AS col0
----
-9853145

query I rowsort
SELECT + ( 17 ) * 10 + + 37
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT 62 + + NULLIF ( 24, + COUNT( * ) ) + - COUNT( * ) + - MIN( DISTINCT + - ( - + 2 ) ) + 29 * - 29 AS col2
----
-758

skipif mysql # not compatible
query I rowsort label-5226
SELECT 62 + + NULLIF ( 24, + COUNT ( * ) ) + - COUNT ( * ) + - MIN ( DISTINCT + - ( - + 2 ) ) + 29 * - 29 AS col2
----
-758

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT ALL - + MAX( ALL + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL - + MAX ( ALL + 73 )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-5228
SELECT 94 DIV + + ( + - 77 )
----
-1

skipif mysql # not compatible
query I rowsort label-5228
SELECT 94 / + + ( + - 77 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT 65 * MIN( + 67 ) AS col2
----
4355

skipif mysql # not compatible
query I rowsort label-5229
SELECT 65 * MIN ( + 67 ) AS col2
----
4355

onlyif mysql # DIV for integer division: 
query I rowsort label-5230
SELECT ALL 77 DIV + 20
----
3

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL 77 / + 20
----
3

query I rowsort
SELECT 0 + NULLIF ( + + 73, - 14 ) * + ( + - 80 )
----
-5840

query I rowsort
SELECT ALL - 20 * - NULLIF ( - - 94, + 38 / ( - + 1 ) ) * + 33 AS col2
----
62040

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT - COUNT( ALL - + 64 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5233
SELECT - COUNT ( ALL - + 64 ) AS col0
----
-1

query I rowsort
SELECT ALL + ( + 52 ) + + ( 17 )
----
69

query I rowsort
SELECT ALL 69 + + 58
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-5236
SELECT DISTINCT 4 + - NULLIF ( MIN( DISTINCT + 47 ), + 8 * - SUM( ALL - - ( - 96 ) ) ) + + + 65 + 91 AS col1, COUNT( * )
----
113
1

skipif mysql # not compatible
query II rowsort label-5236
SELECT DISTINCT 4 + - NULLIF ( MIN ( DISTINCT + 47 ), + 8 * - SUM ( ALL - - ( - 96 ) ) ) + + + 65 + 91 AS col1, COUNT ( * )
----
113
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL + COUNT( * ) + + 73
----
74

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL + COUNT ( * ) + + 73
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5238
SELECT 18 DIV + 75 * + - 52
----
0

skipif mysql # not compatible
query I rowsort label-5238
SELECT 18 / + 75 * + - 52
----
0

query I rowsort
SELECT DISTINCT + + 35 + + 39 * 13 AS col2
----
542

onlyif mysql # DIV for integer division: 
query I rowsort label-5240
SELECT ALL - + 22 DIV + - 36 + + 99 - + 49 * - 18 * + 1 * 59 AS col0
----
52137

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL - + 22 / + - 36 + + 99 - + 49 * - 18 * + 1 * 59 AS col0
----
52137

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT DISTINCT - 43 * - 69 - + 76 * - - 43 + - 62 * - - 11 * - 11 * SUM( + 74 ) * + - 42 * - 13 col1
----
303110507

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT - 43 * - 69 - + 76 * - - 43 + - 62 * - - 11 * - 11 * SUM ( + 74 ) * + - 42 * - 13 col1
----
303110507

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT ALL + - 30 / CASE 15 WHEN 14 / - - 52 + + COUNT( * ) THEN NULL WHEN - + 74 THEN + 68 END * + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL + - 30 / CASE 15 WHEN 14 / - - 52 + + COUNT ( * ) THEN NULL WHEN - + 74 THEN + 68 END * + 92 AS col0
----
NULL

query I rowsort
SELECT - 29 - - 23 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT ALL - - 17 - NULLIF ( - + COUNT( * ), 48 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL - - 17 - NULLIF ( - + COUNT ( * ), 48 ) AS col0
----
18

query I rowsort
SELECT DISTINCT - - ( + 95 ) AS col1
----
95

query I rowsort
SELECT DISTINCT - 91 * - - 1 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5247
SELECT ALL - CASE + 60 WHEN ( 19 ) * 31 + - + NULLIF ( COUNT( * ), + 6 ) THEN NULL WHEN - - 89 + - 6 THEN + + 84 WHEN - SUM( + + 23 ) * + COALESCE ( 84, ( + - 60 ), - 61 ) + - COUNT( * ) THEN NULL END, + COALESCE ( - ( CASE 8 WHEN COUNT( * ) / + 82 - - MAX( - 24 ) / + + 81 * - 75 - + 83 THEN - 89 * + 12 + 51 - + 93 END ), - 71 ) + + COUNT( * ) col0
----
NULL
-70

skipif mysql # not compatible
query II rowsort label-5247
SELECT ALL - CASE + 60 WHEN ( 19 ) * 31 + - + NULLIF ( COUNT ( * ), + 6 ) THEN NULL WHEN - - 89 + - 6 THEN + + 84 WHEN - SUM ( + + 23 ) * + COALESCE ( 84, ( + - 60 ), - 61 ) + - COUNT ( * ) THEN NULL END, + COALESCE ( - ( CASE 8 WHEN COUNT ( * ) / + 82 - - MAX ( - 24 ) / + + 81 * - 75 - + 83 THEN - 89 * + 12 + 51 - + 93 END ), - 71 ) + + COUNT ( * ) col0
----
NULL
-70

query I rowsort
SELECT NULLIF ( - 5, 25 ) + + ( + 15 ) AS col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5249
SELECT + CAST( - 97 AS SIGNED ) * + - 64 AS col1
----
6208

skipif mysql # not compatible
query I rowsort label-5249
SELECT + CAST ( - 97 AS INTEGER ) * + - 64 AS col1
----
6208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5250
SELECT COUNT( * ) - + 61 + - 83 + + 87 DIV 65
----
-142

skipif mysql # not compatible
query I rowsort label-5250
SELECT COUNT ( * ) - + 61 + - 83 + + 87 / 65
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT DISTINCT - ( - + MAX( - 40 ) )
----
-40

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT - ( - + MAX ( - 40 ) )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT CASE - 70 WHEN + 10 - 53 * + - 30 THEN + - 24 WHEN - 72 THEN NULL END + - 1 + - + 25 * MIN( + 35 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT CASE - 70 WHEN + 10 - 53 * + - 30 THEN + - 24 WHEN - 72 THEN NULL END + - 1 + - + 25 * MIN ( + 35 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5253
SELECT DISTINCT CASE CAST( NULLIF ( - 46, + 26 - - + 17 ) AS DECIMAL ) WHEN - + 43 + COUNT( ALL + 71 ) THEN + COUNT( * ) - - - COUNT( * ) + - - ( + + 3 ) + - + AVG ( ALL - 16 ) * + CASE - - 50 WHEN 40 THEN - MAX( DISTINCT 57 ) + - + 79 * - 43 + + 98 + ( - - ( - COUNT( * ) ) ) + COUNT( * ) * COALESCE ( + - 25, 45 * + 16 + - ( - MAX( + 90 ) ), - 27 ) + + 88 / - 60 END WHEN - 71 * + 16 THEN NULL WHEN - 72 THEN 3 + 41 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT CASE CAST ( NULLIF ( - 46, + 26 - - + 17 ) AS REAL ) WHEN - + 43 + COUNT ( ALL + 71 ) THEN + COUNT ( * ) - - - COUNT ( * ) + - - ( + + 3 ) + - + AVG ( ALL - 16 ) * + CASE - - 50 WHEN 40 THEN - MAX ( DISTINCT 57 ) + - + 79 * - 43 + + 98 + ( - - ( - COUNT ( * ) ) ) + COUNT ( * ) * COALESCE ( + - 25, 45 * + 16 + - ( - MAX ( + 90 ) ), - 27 ) + + 88 / - 60 END WHEN - 71 * + 16 THEN NULL WHEN - 72 THEN 3 + 41 END AS col2
----
NULL

query I rowsort
SELECT ALL - 24 * - 20
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT DISTINCT ( - SUM( 34 ) ) + + COUNT( ALL 93 ) + 7 * + + MAX( DISTINCT - 52 ) AS col1
----
-397

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT ( - SUM ( 34 ) ) + + COUNT ( ALL 93 ) + 7 * + + MAX ( DISTINCT - 52 ) AS col1
----
-397

query II rowsort
SELECT - 97 AS col1, 89 + + + 45
----
-97
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5257
SELECT ALL COALESCE ( 63, + COUNT( * ) * + 61 - - CAST( - ( + + 78 ) AS SIGNED ), 2 * - 80 ) + - 58 + + 12 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL COALESCE ( 63, + COUNT ( * ) * + 61 - - CAST ( - ( + + 78 ) AS INTEGER ), 2 * - 80 ) + - 58 + + 12 AS col0
----
17

query I rowsort
SELECT - 35 + 26
----
-9

query I rowsort
SELECT - CASE + - 99 WHEN + 2 THEN + 41 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL COUNT( * ) * + 54 * 18 AS col1
----
972

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL COUNT ( * ) * + 54 * 18 AS col1
----
972

query I rowsort
SELECT + 17 * - 45
----
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT ALL COUNT( * ) + + + COUNT( * ) + + 81 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL COUNT ( * ) + + + COUNT ( * ) + + 81 AS col2
----
83

query I rowsort
SELECT ALL 99 + - 9 AS col2
----
90

query II rowsort
SELECT ALL 65, 12 AS col1
----
65
12

query I rowsort
SELECT DISTINCT 28 + - 11 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT DISTINCT COUNT( * ) + + MIN( 59 ) + + + 47 * 70 * - + ( 65 ) AS col2
----
-213790

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT COUNT ( * ) + + MIN ( 59 ) + + + 47 * 70 * - + ( 65 ) AS col2
----
-213790

query I rowsort
SELECT DISTINCT + 35 + 65
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5268
SELECT ALL COALESCE ( - 8, 64 + + 22 + - 49 + - 83 ) DIV - - 85 * COUNT( ALL + - ( + 81 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL COALESCE ( - 8, 64 + + 22 + - 49 + - 83 ) / - - 85 * COUNT ( ALL + - ( + 81 ) )
----
0

query I rowsort
SELECT DISTINCT - 71 + - 80 AS col1
----
-151

query I rowsort
SELECT ALL + 17 + + 72 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT + COUNT( 53 ) * + 42 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5271
SELECT + COUNT ( 53 ) * + 42 AS col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5272
SELECT DISTINCT ( - + 21 ) DIV - - 45
----
0

skipif mysql # not compatible
query I rowsort label-5272
SELECT DISTINCT ( - + 21 ) / - - 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT + 64 + - 70 * - MAX( 81 ) + + MIN( ALL 97 ) + - - 76 * 50
----
9631

skipif mysql # not compatible
query I rowsort label-5273
SELECT + 64 + - 70 * - MAX ( 81 ) + + MIN ( ALL 97 ) + - - 76 * 50
----
9631

query I rowsort
SELECT ALL + 88 - + - 74
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT - COUNT( DISTINCT - + 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-5275
SELECT - COUNT ( DISTINCT - + 0 )
----
-1

query II rowsort
SELECT 12 AS col0, 25
----
12
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5277
SELECT ALL - ( - + CAST( NULL AS SIGNED ) ) * + ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL - ( - + CAST ( NULL AS INTEGER ) ) * + ( + COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT + 86 * 60 AS col0
----
5160

query I rowsort
SELECT ALL + + ( + - 50 )
----
-50

query II rowsort
SELECT ALL + CASE + 26 WHEN + NULLIF ( + 17, + 71 ) THEN + 13 END, + 56 AS col1
----
NULL
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5281
SELECT + 86 DIV - 41 + COALESCE ( 22, + 20 + + + COUNT( * ) + + + ( + 3 ) * - 27, + 53 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-5281
SELECT + 86 / - 41 + COALESCE ( 22, + 20 + + + COUNT ( * ) + + + ( + 3 ) * - 27, + 53 ) AS col0
----
20

query I rowsort
SELECT - - 42 * - 1 col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT - + COUNT( ALL + 91 ) + - 0 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5283
SELECT - + COUNT ( ALL + 91 ) + - 0 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT - - 9 * 6 * - COUNT( * ) * 87
----
-4698

skipif mysql # not compatible
query I rowsort label-5284
SELECT - - 9 * 6 * - COUNT ( * ) * 87
----
-4698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5285
SELECT DISTINCT + - MIN( ALL - - 28 ) DIV - - ( 73 )
----
0

skipif mysql # not compatible
query I rowsort label-5285
SELECT DISTINCT + - MIN ( ALL - - 28 ) / - - ( 73 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5286
SELECT + 17 AS col2, SUM( + 3 ) + + + COALESCE ( + 46, - 94 + + CASE - + 71 WHEN + + CAST( 53 AS SIGNED ) + - 74 THEN 91 + - 66 ELSE NULL END ) + + 92 * - 50
----
17
-4551

skipif mysql # not compatible
query II rowsort label-5286
SELECT + 17 AS col2, SUM ( + 3 ) + + + COALESCE ( + 46, - 94 + + CASE - + 71 WHEN + + CAST ( 53 AS INTEGER ) + - 74 THEN 91 + - 66 ELSE NULL END ) + + 92 * - 50
----
17
-4551

query I rowsort
SELECT + NULLIF ( + ( 52 ), 80 )
----
52

query I rowsort
SELECT - 90 + - 15 + + 3
----
-102

query I rowsort
SELECT ALL + - 77 * - 67
----
5159

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT DISTINCT + 10 * - COUNT( * ) * + + 81 * - COUNT( DISTINCT + 61 ) + ( - 35 )
----
775

skipif mysql # not compatible
query I rowsort label-5290
SELECT DISTINCT + 10 * - COUNT ( * ) * + + 81 * - COUNT ( DISTINCT + 61 ) + ( - 35 )
----
775

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT DISTINCT COUNT( * ) * + + 48 + - + COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT COUNT ( * ) * + + 48 + - + COUNT ( * ) AS col1
----
47

query I rowsort
SELECT ALL + 92 * + + 51
----
4692

onlyif mysql # aggregate syntax: 
query II rowsort label-5293
SELECT DISTINCT + 24 * NULLIF ( + 6, - 90 ) * - 35 + - COUNT( * ) AS col2, + 49
----
-5041
49

skipif mysql # not compatible
query II rowsort label-5293
SELECT DISTINCT + 24 * NULLIF ( + 6, - 90 ) * - 35 + - COUNT ( * ) AS col2, + 49
----
-5041
49

query I rowsort
SELECT NULLIF ( - 36, 8 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT ALL 16 * + + 97 + - + 86 * COUNT( * ) + + 7 + + 5 AS col1
----
1478

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL 16 * + + 97 + - + 86 * COUNT ( * ) + + 7 + + 5 AS col1
----
1478

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT - COUNT( * ) + + 5 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5296
SELECT - COUNT ( * ) + + 5 AS col2
----
4

query I rowsort
SELECT + 97 * - + 50 - + 74 + + 96 - - + 47
----
-4781

query I rowsort
SELECT DISTINCT + 30 * + 63 + 5 AS col1
----
1895

query II rowsort
SELECT - 53 col1, - 77
----
-53
-77

query I rowsort
SELECT + 94 * 37
----
3478

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT ALL + 14 * + - 80 * 30 + + - COUNT( * ) * - 7 AS col0
----
-33593

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL + 14 * + - 80 * 30 + + - COUNT ( * ) * - 7 AS col0
----
-33593

query II rowsort
SELECT ALL ( - 63 ), 20 AS col0
----
-63
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5303
SELECT - 81 + - + COUNT( * ) DIV + 58 * - 46 * + + 37 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-5303
SELECT - 81 + - + COUNT ( * ) / + 58 * - 46 * + + 37 AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL ( 78 ) * + - COUNT( * ) + - + SUM( ALL - 96 )
----
18

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL ( 78 ) * + - COUNT ( * ) + - + SUM ( ALL - 96 )
----
18

query I rowsort
SELECT + 58 + 47
----
105

query I rowsort
SELECT DISTINCT ( 61 ) + 97 AS col0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT DISTINCT + CASE - + COALESCE ( 89, + NULLIF ( - ( COUNT( * ) ), 29 + - 73 + + NULLIF ( + 45, 57 ) + - COUNT( * ) + 21 + - 12 * - 42 + + - 25 + + 61 - - ( - ( 81 ) ) * + + 75 ) ) WHEN 34 THEN NULL WHEN 36 * 85 * + ( - AVG ( + 59 ) ) THEN NULL ELSE 95 END * - COUNT( * ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT + CASE - + COALESCE ( 89, + NULLIF ( - ( COUNT ( * ) ), 29 + - 73 + + NULLIF ( + 45, 57 ) + - COUNT ( * ) + 21 + - 12 * - 42 + + - 25 + + 61 - - ( - ( 81 ) ) * + + 75 ) ) WHEN 34 THEN NULL WHEN 36 * 85 * + ( - AVG ( + 59 ) ) THEN NULL ELSE 95 END * - COUNT ( * ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-5308
SELECT - COUNT( * ), 93 AS col0
----
-1
93

skipif mysql # not compatible
query II rowsort label-5308
SELECT - COUNT ( * ), 93 AS col0
----
-1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT - 4 * NULLIF ( 28, SUM( DISTINCT 76 ) * - 32 * + + 35 + - 15 )
----
-112

skipif mysql # not compatible
query I rowsort label-5309
SELECT - 4 * NULLIF ( 28, SUM ( DISTINCT 76 ) * - 32 * + + 35 + - 15 )
----
-112

query I rowsort
SELECT ALL ( - 48 ) * + 67 * - 69
----
221904

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT DISTINCT 75 - COUNT( * ) + - 29
----
45

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT 75 - COUNT ( * ) + - 29
----
45

query II rowsort
SELECT 79, - 3 col1
----
79
-3

query I rowsort
SELECT - NULLIF ( - + 80, - - 17 + - 18 * - 93 - - + 98 ) AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5314
SELECT + CAST( NULL AS SIGNED ) + - - 96 + - 0 * + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5314
SELECT + CAST ( NULL AS INTEGER ) + - - 96 + - 0 * + 49 AS col0
----
NULL

query I rowsort
SELECT ALL - 17 - + 67
----
-84

query II rowsort
SELECT ALL - 38, - 2 AS col0
----
-38
-2

query I rowsort
SELECT + - 48 + + + 79 AS col0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5318
SELECT + + 37 DIV 18
----
2

skipif mysql # not compatible
query I rowsort label-5318
SELECT + + 37 / 18
----
2

query II rowsort
SELECT 46 AS col2, 66 AS col2
----
46
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT ALL + CASE + 43 WHEN COUNT( * ) + COALESCE ( MAX( DISTINCT - 88 ), + 58 * - + 91 ) THEN 82 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL + CASE + 43 WHEN COUNT ( * ) + COALESCE ( MAX ( DISTINCT - 88 ), + 58 * - + 91 ) THEN 82 END AS col2
----
NULL

query II rowsort
SELECT 83, - 25 AS col0
----
83
-25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5322
SELECT ALL + 93 DIV + + CAST( 73 AS SIGNED ) + 66 col1
----
67

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL + 93 / + + CAST ( 73 AS INTEGER ) + 66 col1
----
67

query II rowsort
SELECT ALL - 48 AS col1, - NULLIF ( + + 51, + ( + + 4 ) ) col2
----
-48
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5324
SELECT ALL CAST( - CASE - 7 WHEN ( - - 83 ) THEN - 43 + + 49 ELSE NULL END AS DECIMAL ) * 51 * + ( - 20 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL CAST ( - CASE - 7 WHEN ( - - 83 ) THEN - 43 + + 49 ELSE NULL END AS REAL ) * 51 * + ( - 20 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5325
SELECT DISTINCT 90 DIV - MAX( - 69 )
----
1

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT 90 / - MAX ( - 69 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT + 64 - - 73 + - - COUNT( * )
----
138

skipif mysql # not compatible
query I rowsort label-5326
SELECT + 64 - - 73 + - - COUNT ( * )
----
138

query II rowsort
SELECT + + 30 AS col2, + 19
----
30
19

query I rowsort
SELECT + + 36 * - 92
----
-3312

query I rowsort
SELECT - + 30 * + 21
----
-630

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5330
SELECT + 19 DIV - 75 * + 71 + - - 54 + 71 AS col2, - COUNT( * ) * + 54
----
125
-54

skipif mysql # not compatible
query II rowsort label-5330
SELECT + 19 / - 75 * + 71 + - - 54 + 71 AS col2, - COUNT ( * ) * + 54
----
125
-54

query I rowsort
SELECT ALL - NULLIF ( - 24, 13 ) AS col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5332
SELECT CAST( 22 AS SIGNED ) * - 28 / + - 29 + + CAST( NULL AS SIGNED ) * + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT CAST ( 22 AS INTEGER ) * - 28 / + - 29 + + CAST ( NULL AS INTEGER ) * + - 57
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5333
SELECT 61 * + 75 * + CAST( NULLIF ( - 81, - + COUNT( * ) ) AS SIGNED ) - - + 83 - - 80 AS col0
----
-370412

skipif mysql # not compatible
query I rowsort label-5333
SELECT 61 * + 75 * + CAST ( NULLIF ( - 81, - + COUNT ( * ) ) AS INTEGER ) - - + 83 - - 80 AS col0
----
-370412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5334
SELECT DISTINCT - 16 + + + 57 col2, + ( - + 98 ) - - CAST( - CASE 90 WHEN - MIN( DISTINCT + 52 ) + - 31 + 16 THEN NULL ELSE 56 END AS SIGNED )
----
41
-154

skipif mysql # not compatible
query II rowsort label-5334
SELECT DISTINCT - 16 + + + 57 col2, + ( - + 98 ) - - CAST ( - CASE 90 WHEN - MIN ( DISTINCT + 52 ) + - 31 + 16 THEN NULL ELSE 56 END AS INTEGER )
----
41
-154

query I rowsort
SELECT ALL 53 + - - 23 AS col2
----
76

query I rowsort
SELECT DISTINCT - 43 * 75
----
-3225

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT ALL - COUNT( * ) + + 59 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL - COUNT ( * ) + + 59 AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5338
SELECT 18 + - 20 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT 18 + - 20 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 62 * - 78
----
4836

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5340
SELECT DISTINCT - CASE - 33 WHEN - 62 DIV + + 66 DIV + AVG ( + 28 ) THEN - - 9 + 76 DIV - CAST( NULL AS SIGNED ) * - 61 ELSE 82 END
----
-82

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT - CASE - 33 WHEN - 62 / + + 66 / + AVG ( + 28 ) THEN - - 9 + 76 / - CAST ( NULL AS INTEGER ) * - 61 ELSE 82 END
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5341
SELECT ALL + 98 + + COUNT( 80 ) DIV - + 59 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL + 98 + + COUNT ( 80 ) / - + 59 AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5342
SELECT DISTINCT - COALESCE ( + - 82, - 32 + + 63, + CAST( - 77 AS SIGNED ), - CASE - COUNT( * ) WHEN + - 84 - + 7 * - COUNT( * ) - + COUNT( * ) * - NULLIF ( 2, - 5 ) DIV COUNT( * ) THEN - + 71 ELSE + 12 END + 81 + - - 19 + + COALESCE ( - - COALESCE ( 26, + CAST( - CAST( + ( 34 ) AS DECIMAL ) AS SIGNED ) ), + 11 * + 99 ) + 0 - + 86 * - ( 8 ) + + 49 DIV - 91 * - 39 ) * - + 13 AS col2
----
-1066

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT - COALESCE ( + - 82, - 32 + + 63, + CAST ( - 77 AS INTEGER ), - CASE - COUNT ( * ) WHEN + - 84 - + 7 * - COUNT ( * ) - + COUNT ( * ) * - NULLIF ( 2, - 5 ) / COUNT ( * ) THEN - + 71 ELSE + 12 END + 81 + - - 19 + + COALESCE ( - - COALESCE ( 26, + CAST ( - CAST ( + ( 34 ) AS REAL ) AS INTEGER ) ), + 11 * + 99 ) + 0 - + 86 * - ( 8 ) + + 49 / - 91 * - 39 ) * - + 13 AS col2
----
-1066

query II rowsort
SELECT ALL + 89 * - 53 AS col0, + 54 AS col0
----
-4717
54

query I rowsort
SELECT 5 + + 83 col1
----
88

query I rowsort
SELECT 44 * + 8 * + 22 AS col1
----
7744

query I rowsort
SELECT 90 * + - ( + 37 ) + - 70
----
-3400

onlyif mysql # aggregate syntax: 
query II rowsort label-5347
SELECT DISTINCT - COUNT( * ) - - 96 AS col2, 39 AS col0
----
95
39

skipif mysql # not compatible
query II rowsort label-5347
SELECT DISTINCT - COUNT ( * ) - - 96 AS col2, 39 AS col0
----
95
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5348
SELECT 73 + 11 + 44 + 89 DIV + COALESCE ( COUNT( DISTINCT - - 33 ), - COUNT( * ), - 82 * + 96 + + - MIN( - 25 ) ) - - - 57 + 24 AS col2
----
184

skipif mysql # not compatible
query I rowsort label-5348
SELECT 73 + 11 + 44 + 89 / + COALESCE ( COUNT ( DISTINCT - - 33 ), - COUNT ( * ), - 82 * + 96 + + - MIN ( - 25 ) ) - - - 57 + 24 AS col2
----
184

query I rowsort
SELECT - 48 + 98 + - - 44 * - - 79
----
3526

query I rowsort
SELECT 52 + + 4 * - 68 * 75
----
-20348

query I rowsort
SELECT ALL CASE - 97 WHEN - - 17 + - 79 THEN + 97 ELSE - + 88 END AS col1
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5352
SELECT - NULLIF ( - + CAST( 13 AS SIGNED ), - 37 * + 9 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-5352
SELECT - NULLIF ( - + CAST ( 13 AS INTEGER ), - 37 * + 9 ) AS col0
----
13

query I rowsort
SELECT DISTINCT 24 + + NULLIF ( - 49, 38 ) * - 6 AS col1
----
318

query I rowsort
SELECT DISTINCT - - 69 * 99
----
6831

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL - COUNT( * ) + 63 * - SUM( DISTINCT + 42 )
----
-2647

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL - COUNT ( * ) + 63 * - SUM ( DISTINCT + 42 )
----
-2647

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5356
SELECT 15 * - 94 * + 56 + + 52 * 95, - CASE - NULLIF ( - 87, + 41 + - 92 ) WHEN + 8 THEN NULL WHEN - 80 * - 51 - - ( + - MIN( ALL 92 ) ) + + CASE + + ( - 72 ) WHEN - - 8 THEN NULL ELSE + + SUM( - + 68 ) END / + AVG ( + + 78 ) * 32 / + ( 16 ) + - 26 THEN - + 17 * + 90 + + + COALESCE ( - + 84, + + 47 + + - 37 * MAX( DISTINCT + CAST( - + CAST( - 31 AS SIGNED ) AS SIGNED ) ), 66 ) * 24 ELSE - 70 + + 49 END - - 54 AS col2
----
-74020
75

skipif mysql # not compatible
query II rowsort label-5356
SELECT 15 * - 94 * + 56 + + 52 * 95, - CASE - NULLIF ( - 87, + 41 + - 92 ) WHEN + 8 THEN NULL WHEN - 80 * - 51 - - ( + - MIN ( ALL 92 ) ) + + CASE + + ( - 72 ) WHEN - - 8 THEN NULL ELSE + + SUM ( - + 68 ) END / + AVG ( + + 78 ) * 32 / + ( 16 ) + - 26 THEN - + 17 * + 90 + + + COALESCE ( - + 84, + + 47 + + - 37 * MAX ( DISTINCT + CAST ( - + CAST ( - 31 AS INTEGER ) AS INTEGER ) ), 66 ) * 24 ELSE - 70 + + 49 END - - 54 AS col2
----
-74020
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5357
SELECT + - 34 DIV 59 + + - 73 + + 27 * + 14 * 20 AS col0
----
7487

skipif mysql # not compatible
query I rowsort label-5357
SELECT + - 34 / 59 + + - 73 + + 27 * + 14 * 20 AS col0
----
7487

query I rowsort
SELECT DISTINCT 69 * + + 50 + + 87
----
3537

query I rowsort
SELECT ALL 8 + - 0 col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT - 65 * 22 + - COALESCE ( + 99, NULLIF ( 23, + 66 * + COUNT( * ) / + 58 ), - 50 )
----
-1529

skipif mysql # not compatible
query I rowsort label-5360
SELECT - 65 * 22 + - COALESCE ( + 99, NULLIF ( 23, + 66 * + COUNT ( * ) / + 58 ), - 50 )
----
-1529

query II rowsort
SELECT ALL - 54, 63 AS col0
----
-54
63

onlyif mysql # DIV for integer division: 
query II rowsort label-5362
SELECT 93 DIV - ( + 1 ) AS col1, 6 AS col2
----
-93
6

skipif mysql # not compatible
query II rowsort label-5362
SELECT 93 / - ( + 1 ) AS col1, 6 AS col2
----
-93
6

query I rowsort
SELECT 66 * + - 77 * - 19 * + 97 + + - 87
----
9366039

query II rowsort
SELECT 72, 16 AS col0
----
72
16

query I rowsort
SELECT DISTINCT 5 * + - 63 AS col1
----
-315

query I rowsort
SELECT 28 * + 97
----
2716

onlyif mysql # aggregate syntax: 
query II rowsort label-5367
SELECT DISTINCT - COUNT( * ) AS col2, 51 * - - 95 AS col0
----
-1
4845

skipif mysql # not compatible
query II rowsort label-5367
SELECT DISTINCT - COUNT ( * ) AS col2, 51 * - - 95 AS col0
----
-1
4845

onlyif mysql # aggregate syntax: 
query II rowsort label-5368
SELECT NULLIF ( + 5, + - SUM( - - 19 ) ) - ( + 58 ) AS col2, - NULLIF ( - + 7, 23 )
----
-53
7

skipif mysql # not compatible
query II rowsort label-5368
SELECT NULLIF ( + 5, + - SUM ( - - 19 ) ) - ( + 58 ) AS col2, - NULLIF ( - + 7, 23 )
----
-53
7

query II rowsort
SELECT 80 AS col1, + 88 AS col0
----
80
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5370
SELECT 50 + + 99 + + 46 + - CAST( - 88 AS SIGNED )
----
283

skipif mysql # not compatible
query I rowsort label-5370
SELECT 50 + + 99 + + 46 + - CAST ( - 88 AS INTEGER )
----
283

query I rowsort
SELECT 24 * + + 73
----
1752

query I rowsort
SELECT 60 + 40 col2
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5373
SELECT 96 AS col0, 25 * CAST( NULL AS SIGNED ) AS col0
----
96
NULL

skipif mysql # not compatible
query II rowsort label-5373
SELECT 96 AS col0, 25 * CAST ( NULL AS INTEGER ) AS col0
----
96
NULL

query II rowsort
SELECT - 73 col0, - 43 AS col0
----
-73
-43

query I rowsort
SELECT - 32 * - 36 + + + 54 * + 52 col0
----
3960

query II rowsort
SELECT DISTINCT 76 col1, - 98 AS col1
----
76
-98

query I rowsort
SELECT ALL - 95 * + 75 AS col1
----
-7125

query I rowsort
SELECT - 66 + 7 AS col2
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5379
SELECT ALL - 15 DIV - NULLIF ( + COUNT( * ), - 77 )
----
15

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL - 15 / - NULLIF ( + COUNT ( * ), - 77 )
----
15

query I rowsort
SELECT ALL - 65 * - + COALESCE ( - ( - 17 ), + + 88 )
----
1105

query II rowsort
SELECT 75 AS col1, - 77 + 78 * - 52 * + 19
----
75
-77141

query I rowsort
SELECT NULLIF ( + + 90, - - 5 ) + - + 0
----
90

query I rowsort
SELECT + 7 * + 12 * + 95
----
7980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5384
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 46
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5385
SELECT ALL 24, + 29 + + CAST( NULL AS DECIMAL ) AS col2
----
24
NULL

skipif mysql # not compatible
query II rowsort label-5385
SELECT ALL 24, + 29 + + CAST ( NULL AS REAL ) AS col2
----
24
NULL

query I rowsort
SELECT + 29 + 16
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5387
SELECT ALL - CAST( + ( - 46 ) AS SIGNED ) AS col1, 66 col2
----
46
66

skipif mysql # not compatible
query II rowsort label-5387
SELECT ALL - CAST ( + ( - 46 ) AS INTEGER ) AS col1, 66 col2
----
46
66

query II rowsort
SELECT ALL - 25 + + 61 * - 16 AS col0, 34 + - + 99 AS col2
----
-1001
-65

query II rowsort
SELECT - 52 col0, + 46 * - 48
----
-52
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT + COUNT( ALL - 41 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5390
SELECT + COUNT ( ALL - 41 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT ALL + 58 + 23 + SUM( + 65 ) - + + 89 * - 46 * + - 42
----
-171802

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL + 58 + 23 + SUM ( + 65 ) - + + 89 * - 46 * + - 42
----
-171802

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT DISTINCT - - MIN( 21 ) * 41 - + + COALESCE ( + - COUNT( * ), - COUNT( * ) + 20 + - 68 * + - 86 * - 44, - 41 )
----
862

skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT - - MIN ( 21 ) * 41 - + + COALESCE ( + - COUNT ( * ), - COUNT ( * ) + 20 + - 68 * + - 86 * - 44, - 41 )
----
862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5393
SELECT ALL + - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL + - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( - - 19, + 62 ) col0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-5395
SELECT + + 3 * + COUNT( - + 43 ) AS col0, - COUNT( * ) - 6 col2
----
3
-7

skipif mysql # not compatible
query II rowsort label-5395
SELECT + + 3 * + COUNT ( - + 43 ) AS col0, - COUNT ( * ) - 6 col2
----
3
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT NULLIF ( ( - COUNT( * ) ), - ( - - 22 ) * - 31 + 48 + + 19 )
----
-1

skipif mysql # not compatible
query I rowsort label-5396
SELECT NULLIF ( ( - COUNT ( * ) ), - ( - - 22 ) * - 31 + 48 + + 19 )
----
-1

query I rowsort
SELECT ALL + 82 * - 12 - - NULLIF ( 47, - 75 ) + + - 49 + 68 * 23 + + 21 * 11
----
809

query I rowsort
SELECT + 41 - - 24
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5399
SELECT 71 * 77 * COALESCE ( 62, - - COUNT( * ) ) * + - MAX( - + 87 ) * + 35 - - 72 + - 72 + CAST( - - 94 AS SIGNED ) * - - 7 col0
----
1032115588

skipif mysql # not compatible
query I rowsort label-5399
SELECT 71 * 77 * COALESCE ( 62, - - COUNT ( * ) ) * + - MAX ( - + 87 ) * + 35 - - 72 + - 72 + CAST ( - - 94 AS INTEGER ) * - - 7 col0
----
1032115588

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT + 35 * + - 5 * + MIN( + 13 )
----
-2275

skipif mysql # not compatible
query I rowsort label-5400
SELECT + 35 * + - 5 * + MIN ( + 13 )
----
-2275

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5401
SELECT ALL COUNT( * ) DIV + 76, - 1 DIV 79 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-5401
SELECT ALL COUNT ( * ) / + 76, - 1 / 79 AS col1
----
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5402
SELECT - 5 + + - 18 AS col1, COALESCE ( 53, - - COUNT( * ) ) * + 39 + - - 16 - 67 AS col0
----
-23
2016

skipif mysql # not compatible
query II rowsort label-5402
SELECT - 5 + + - 18 AS col1, COALESCE ( 53, - - COUNT ( * ) ) * + 39 + - - 16 - 67 AS col0
----
-23
2016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5403
SELECT + NULLIF ( - - CAST( + + 75 AS SIGNED ), - - 66 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-5403
SELECT + NULLIF ( - - CAST ( + + 75 AS INTEGER ), - - 66 ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5404
SELECT + 81 + MAX( 19 ) * - - MIN( DISTINCT - 43 ) AS col2, NULLIF ( + - 73, + MIN( + 51 ) )
----
-736
-73

skipif mysql # not compatible
query II rowsort label-5404
SELECT + 81 + MAX ( 19 ) * - - MIN ( DISTINCT - 43 ) AS col2, NULLIF ( + - 73, + MIN ( + 51 ) )
----
-736
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT + MAX( DISTINCT + 24 ) / - - 56 - - - 43 * + 82 + - 54 + - CASE + 60 WHEN - 73 THEN - 78 - + 71 * + 59 + + 94 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT + MAX ( DISTINCT + 24 ) / - - 56 - - - 43 * + 82 + - 54 + - CASE + 60 WHEN - 73 THEN - 78 - + 71 * + 59 + + 94 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT + 99 * - MAX( DISTINCT - - 65 ) AS col2
----
-6435

skipif mysql # not compatible
query I rowsort label-5406
SELECT + 99 * - MAX ( DISTINCT - - 65 ) AS col2
----
-6435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5407
SELECT + 63 - + - 19 DIV + ( COUNT( * ) )
----
82

skipif mysql # not compatible
query I rowsort label-5407
SELECT + 63 - + - 19 / + ( COUNT ( * ) )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT + 75 * - MAX( + 85 )
----
-6375

skipif mysql # not compatible
query I rowsort label-5408
SELECT + 75 * - MAX ( + 85 )
----
-6375

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL 87 * MAX( ALL + 12 ) * + ( + 24 )
----
25056

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL 87 * MAX ( ALL + 12 ) * + ( + 24 )
----
25056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5410
SELECT + 27 + + MAX( ALL - 79 ) + + - ( 58 ) DIV - MIN( - 3 )
----
-71

skipif mysql # not compatible
query I rowsort label-5410
SELECT + 27 + + MAX ( ALL - 79 ) + + - ( 58 ) / - MIN ( - 3 )
----
-71

query I rowsort
SELECT ALL 51 * - 32
----
-1632

query I rowsort
SELECT + 17 + + 34 AS col1
----
51

query I rowsort
SELECT ( + + 62 )
----
62

query II rowsort
SELECT - 0 * 51 AS col0, 6
----
0
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT DISTINCT - 87 + + COALESCE ( + 16, - 93 ) * COUNT( * ) * - COUNT( * )
----
-103

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT - 87 + + COALESCE ( + 16, - 93 ) * COUNT ( * ) * - COUNT ( * )
----
-103

query I rowsort
SELECT DISTINCT + + 6 + - 67
----
-61

query I rowsort
SELECT ALL - + COALESCE ( + + 82, + 40 - - 50 + + - 25 ) + + 71 AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5418
SELECT DISTINCT + ( + CAST( - 95 AS SIGNED ) ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT + ( + CAST ( - 95 AS INTEGER ) ) AS col1
----
-95

query I rowsort
SELECT ALL + + 68 * - - 24 * + + 41
----
66912

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT ALL NULLIF ( + - 88, MIN( 26 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL NULLIF ( + - 88, MIN ( 26 ) )
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5421
SELECT ALL - + 64 + - 52 * COALESCE ( + COUNT( * ), - 25, + 22 DIV - 97 + + 41 * + + 1 DIV + 35 + - - 33 ) col0
----
-116

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL - + 64 + - 52 * COALESCE ( + COUNT ( * ), - 25, + 22 / - 97 + + 41 * + + 1 / + 35 + - - 33 ) col0
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT - ( + 23 ) - COUNT( * ) * - + 33 + + 47 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-5422
SELECT - ( + 23 ) - COUNT ( * ) * - + 33 + + 47 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT + 60 + + COUNT( * ) + + - COALESCE ( 99, - ( - - 14 ) ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-5423
SELECT + 60 + + COUNT ( * ) + + - COALESCE ( 99, - ( - - 14 ) ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-5424
SELECT - 30 - - COALESCE ( + + 61, - - 82 ), + COUNT( * ) AS col0
----
31
1

skipif mysql # not compatible
query II rowsort label-5424
SELECT - 30 - - COALESCE ( + + 61, - - 82 ), + COUNT ( * ) AS col0
----
31
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5425
SELECT - 69 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5425
SELECT - 69 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT - COALESCE ( ( + 81 ), CASE + 85 WHEN + 40 + + 29 THEN + 13 * - ( - - ( 9 ) ) + - 90 * + 26 + + 62 WHEN 40 THEN NULL END * + CASE 4 WHEN 95 THEN NULL ELSE - - 87 END, - 81 * + 32 ) + 23 * - 74 * - 54 - COUNT( * ) * 73 * + + 50 col1
----
88177

skipif mysql # not compatible
query I rowsort label-5426
SELECT - COALESCE ( ( + 81 ), CASE + 85 WHEN + 40 + + 29 THEN + 13 * - ( - - ( 9 ) ) + - 90 * + 26 + + 62 WHEN 40 THEN NULL END * + CASE 4 WHEN 95 THEN NULL ELSE - - 87 END, - 81 * + 32 ) + 23 * - 74 * - 54 - COUNT ( * ) * 73 * + + 50 col1
----
88177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5427
SELECT ALL + NULLIF ( + + COUNT( * ), - 87 ) - + 81 + + - CASE + 10 WHEN + ( + 23 ) * + 1 * COUNT( * ) THEN - + CAST( NULL AS SIGNED ) WHEN + 20 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL + NULLIF ( + + COUNT ( * ), - 87 ) - + 81 + + - CASE + 10 WHEN + ( + 23 ) * + 1 * COUNT ( * ) THEN - + CAST ( NULL AS INTEGER ) WHEN + 20 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - 11, + 27 * + 23, + 4 + - - 93 * - 2 ) * - - 63 AS col1
----
693

query I rowsort
SELECT - 18 + - 79 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT + MAX( + ( + 68 ) ) col0
----
68

skipif mysql # not compatible
query I rowsort label-5430
SELECT + MAX ( + ( + 68 ) ) col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT - 94 + + 81 * COUNT( * ) * 36 AS col2
----
2822

skipif mysql # not compatible
query I rowsort label-5431
SELECT - 94 + + 81 * COUNT ( * ) * 36 AS col2
----
2822

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT ALL - 39 * - - 5 * + COUNT( * ) * MIN( ALL 39 ) AS col0
----
-7605

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL - 39 * - - 5 * + COUNT ( * ) * MIN ( ALL 39 ) AS col0
----
-7605

query I rowsort
SELECT ALL - 30 * + 10
----
-300

query I rowsort
SELECT - 37 * + - 65 + - 18
----
2387

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5435
SELECT NULLIF ( 84, - - ( 45 ) + - 10 - - 32 + + AVG ( + - 25 ) + 30 - - 67 ) * + COUNT( * ) + - 36 DIV + 17 * COUNT( * ) + 8 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-5435
SELECT NULLIF ( 84, - - ( 45 ) + - 10 - - 32 + + AVG ( + - 25 ) + 30 - - 67 ) * + COUNT ( * ) + - 36 / + 17 * COUNT ( * ) + 8 AS col0
----
90

query I rowsort
SELECT DISTINCT + COALESCE ( - 56, + - 95 * + + 21 - - ( + + 97 ), - ( - 16 ) ) * + 86
----
-4816

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT + 24 * 50 + - NULLIF ( + 37, + - MIN( 33 ) ) + - + 16 * + 5 + + 19
----
1102

skipif mysql # not compatible
query I rowsort label-5437
SELECT + 24 * 50 + - NULLIF ( + 37, + - MIN ( 33 ) ) + - + 16 * + 5 + + 19
----
1102

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT - 75 * - + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-5438
SELECT - 75 * - + COUNT ( * )
----
75

query I rowsort
SELECT DISTINCT + 13 * 6
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5440
SELECT ALL 39 DIV + + NULLIF ( - 81, COUNT( * ) * - ( + 73 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL 39 / + + NULLIF ( - 81, COUNT ( * ) * - ( + 73 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT + 98 * + - COUNT( * ) + - - 4 + + - 45 AS col1
----
-139

skipif mysql # not compatible
query I rowsort label-5441
SELECT + 98 * + - COUNT ( * ) + - - 4 + + - 45 AS col1
----
-139

query I rowsort
SELECT + 21 * - ( + 25 ) col1
----
-525

query I rowsort
SELECT - 33 + - 0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-5444
SELECT + 91 AS col0, - COUNT( * ) + + CASE - 92 WHEN + 32 THEN 75 ELSE + MAX( - - 49 ) END * 48 - 53 + 83 AS col2
----
91
2381

skipif mysql # not compatible
query II rowsort label-5444
SELECT + 91 AS col0, - COUNT ( * ) + + CASE - 92 WHEN + 32 THEN 75 ELSE + MAX ( - - 49 ) END * 48 - 53 + 83 AS col2
----
91
2381

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5445
SELECT ALL 45 DIV + SUM( DISTINCT - 59 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL 45 / + SUM ( DISTINCT - 59 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5446
SELECT - 15 DIV 90 - - - 97, 33 col1
----
-97
33

skipif mysql # not compatible
query II rowsort label-5446
SELECT - 15 / 90 - - - 97, 33 col1
----
-97
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5447
SELECT + + CAST( - 40 AS SIGNED ) * - - 52 + COUNT( * ) + + 38 * - - 16 * 32 + SUM( ALL 28 ) * 71
----
19365

skipif mysql # not compatible
query I rowsort label-5447
SELECT + + CAST ( - 40 AS INTEGER ) * - - 52 + COUNT ( * ) + + 38 * - - 16 * 32 + SUM ( ALL 28 ) * 71
----
19365

query I rowsort
SELECT + 69 - 12 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT DISTINCT + 75 + - + CASE - - 75 WHEN + 24 + - - 15 + 25 * + + 5 * + 26 * + 71 * - - 19 + - + 82 THEN NULL WHEN 98 THEN 13 * 56 WHEN + 60 + MIN( ALL + - 74 ) + + NULLIF ( + + 98, - ( + + COUNT( * ) ) * ( + 50 ) ) THEN NULL END * + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT + 75 + - + CASE - - 75 WHEN + 24 + - - 15 + 25 * + + 5 * + 26 * + 71 * - - 19 + - + 82 THEN NULL WHEN 98 THEN 13 * 56 WHEN + 60 + MIN ( ALL + - 74 ) + + NULLIF ( + + 98, - ( + + COUNT ( * ) ) * ( + 50 ) ) THEN NULL END * + + 47
----
NULL

query I rowsort
SELECT DISTINCT + 64 + - + 0 * + 51 * + + 32 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT - SUM( - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-5451
SELECT - SUM ( - 24 )
----
24

query I rowsort
SELECT - 0 + + 75 AS col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5453
SELECT ALL - CAST( 11 AS SIGNED ) - - + 25
----
14

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL - CAST ( 11 AS INTEGER ) - - + 25
----
14

query I rowsort
SELECT + 67 * - - 7 + 40 AS col2
----
509

query I rowsort
SELECT ALL + ( + - 18 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-5456
SELECT DISTINCT 29 col1, COUNT( ALL - 27 )
----
29
1

skipif mysql # not compatible
query II rowsort label-5456
SELECT DISTINCT 29 col1, COUNT ( ALL - 27 )
----
29
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT DISTINCT ( + 90 ) * 75 + + 82 + + 35 + - 99 + CASE + 4 WHEN + + 8 THEN 44 ELSE - COUNT( * ) END * NULLIF ( + 12, - 68 ) AS col2
----
6756

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT ( + 90 ) * 75 + + 82 + + 35 + - 99 + CASE + 4 WHEN + + 8 THEN 44 ELSE - COUNT ( * ) END * NULLIF ( + 12, - 68 ) AS col2
----
6756

query I rowsort
SELECT 37 * - + 67 AS col1
----
-2479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5459
SELECT CAST( NULL AS SIGNED ) - 88 + + MIN( + 27 ) * MAX( + 47 ) * + - 92 * MIN( DISTINCT 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5459
SELECT CAST ( NULL AS INTEGER ) - 88 + + MIN ( + 27 ) * MAX ( + 47 ) * + - 92 * MIN ( DISTINCT 78 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5460
SELECT 44 DIV 69 * - - 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5460
SELECT 44 / 69 * - - 64 AS col1
----
0

query I rowsort
SELECT ALL + 99 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT ALL - ( + + 17 ) * - 99 * + - NULLIF ( 0, - - COUNT( * ) + - 96 ) - + 41
----
-41

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL - ( + + 17 ) * - 99 * + - NULLIF ( 0, - - COUNT ( * ) + - 96 ) - + 41
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-5463
SELECT 8 * 89 DIV 93 * - 61 + - 58
----
-485

skipif mysql # not compatible
query I rowsort label-5463
SELECT 8 * 89 / 93 * - 61 + - 58
----
-485

onlyif mysql # aggregate syntax: 
query III rowsort label-5464
SELECT COALESCE ( - - 33, + 42 + - 74 + COUNT( * ) ) * + 27 * 88 AS col2, MIN( + - 13 ) col2, - + 68 * + 34 + - COUNT( * ) + + MIN( ALL 8 )
----
78408
-13
-2305

skipif mysql # not compatible
query III rowsort label-5464
SELECT COALESCE ( - - 33, + 42 + - 74 + COUNT ( * ) ) * + 27 * 88 AS col2, MIN ( + - 13 ) col2, - + 68 * + 34 + - COUNT ( * ) + + MIN ( ALL 8 )
----
78408
-13
-2305

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5465
SELECT 44 DIV - 10 + 23 + + + 96 - + + COALESCE ( + 26, + COUNT( * ) + + - 25 + COUNT( * ) * - + ( - + 9 ) ) * - 23
----
713

skipif mysql # not compatible
query I rowsort label-5465
SELECT 44 / - 10 + 23 + + + 96 - + + COALESCE ( + 26, + COUNT ( * ) + + - 25 + COUNT ( * ) * - + ( - + 9 ) ) * - 23
----
713

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT 63 * - COUNT( * ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-5466
SELECT 63 * - COUNT ( * ) AS col1
----
-63

query II rowsort
SELECT ALL - 69 col0, 36
----
-69
36

query I rowsort
SELECT ALL - NULLIF ( + 81, - 33 )
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-5469
SELECT 25, COUNT( * ) AS col2
----
25
1

skipif mysql # not compatible
query II rowsort label-5469
SELECT 25, COUNT ( * ) AS col2
----
25
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5470
SELECT + 94 * + 0 + + + 17 + 23 DIV 31 + 15 + - NULLIF ( - 35, - 29 ) * + 26 col1
----
942

skipif mysql # not compatible
query I rowsort label-5470
SELECT + 94 * + 0 + + + 17 + 23 / 31 + 15 + - NULLIF ( - 35, - 29 ) * + 26 col1
----
942

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5471
SELECT ALL + 9 + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL + 9 + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5472
SELECT 33 AS col1, COUNT( * ) + - 73
----
33
-72

skipif mysql # not compatible
query II rowsort label-5472
SELECT 33 AS col1, COUNT ( * ) + - 73
----
33
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT 43 + + 98 + + COUNT( * ) + 71 * + COUNT( * )
----
213

skipif mysql # not compatible
query I rowsort label-5473
SELECT 43 + + 98 + + COUNT ( * ) + 71 * + COUNT ( * )
----
213

query I rowsort
SELECT DISTINCT + 82 + - + 5
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT + + NULLIF ( + + NULLIF ( COUNT( * ), - 4 ), + + 24 - - 55 + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5475
SELECT + + NULLIF ( + + NULLIF ( COUNT ( * ), - 4 ), + + 24 - - 55 + + COUNT ( * ) )
----
1

query I rowsort
SELECT ALL - ( - 11 ) AS col0
----
11

query I rowsort
SELECT ALL - 54 + - + 44 AS col2
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-5478
SELECT 96 DIV - 95
----
-1

skipif mysql # not compatible
query I rowsort label-5478
SELECT 96 / - 95
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT ALL + - 60 + - ( + ( MIN( - + 60 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL + - 60 + - ( + ( MIN ( - + 60 ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT ALL 1 - - COUNT( * ) col2
----
2

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL 1 - - COUNT ( * ) col2
----
2

query I rowsort
SELECT 45 * 75 AS col2
----
3375

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT CASE COUNT( * ) WHEN - 32 THEN CASE + 15 WHEN - 94 THEN MIN( 59 ) + - 90 ELSE NULL END END + - 10 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5482
SELECT CASE COUNT ( * ) WHEN - 32 THEN CASE + 15 WHEN - 94 THEN MIN ( 59 ) + - 90 ELSE NULL END END + - 10 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5483
SELECT DISTINCT - + COUNT( DISTINCT + + 58 ) DIV + - 53 + + ( - 54 ) + + 40 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-5483
SELECT DISTINCT - + COUNT ( DISTINCT + + 58 ) / + - 53 + + ( - 54 ) + + 40 AS col2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5484
SELECT + NULLIF ( + 49, + 35 / + + 28 ) + + - CAST( ( - 29 ) AS SIGNED ) + - - 59 AS col2
----
137

skipif mysql # not compatible
query I rowsort label-5484
SELECT + NULLIF ( + 49, + 35 / + + 28 ) + + - CAST ( ( - 29 ) AS INTEGER ) + - - 59 AS col2
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT - 51 - + NULLIF ( + COUNT( ALL 47 ), - - 47 )
----
-52

skipif mysql # not compatible
query I rowsort label-5485
SELECT - 51 - + NULLIF ( + COUNT ( ALL 47 ), - - 47 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT ALL + MAX( - 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL + MAX ( - 18 ) AS col1
----
-18

query I rowsort
SELECT 44 + - - 28
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT - SUM( DISTINCT + 62 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-5488
SELECT - SUM ( DISTINCT + 62 ) AS col1
----
-62

query I rowsort
SELECT DISTINCT + 8 * + 73 col2
----
584

onlyif mysql # aggregate syntax: 
query II rowsort label-5490
SELECT ALL 50 AS col0, 44 + + + 81 * + 0 + + - MIN( ALL - 33 )
----
50
77

skipif mysql # not compatible
query II rowsort label-5490
SELECT ALL 50 AS col0, 44 + + + 81 * + 0 + + - MIN ( ALL - 33 )
----
50
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5491
SELECT ( - ( CAST( + 91 AS SIGNED ) ) ) * 85 + - 36 * COUNT( * ) * - + 8 + - COALESCE ( + 36, 79 ) - - COUNT( * ) * + COUNT( * ) DIV - 71 + + - COUNT( * ) * + + COUNT( * ) AS col1
----
-7484

skipif mysql # not compatible
query I rowsort label-5491
SELECT ( - ( CAST ( + 91 AS INTEGER ) ) ) * 85 + - 36 * COUNT ( * ) * - + 8 + - COALESCE ( + 36, 79 ) - - COUNT ( * ) * + COUNT ( * ) / - 71 + + - COUNT ( * ) * + + COUNT ( * ) AS col1
----
-7484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5492
SELECT DISTINCT ( + COALESCE ( COUNT( * ), CAST( NULL AS SIGNED ) ) ) * - 53 - - 72 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-5492
SELECT DISTINCT ( + COALESCE ( COUNT ( * ), CAST ( NULL AS INTEGER ) ) ) * - 53 - - 72 AS col2
----
19

query I rowsort
SELECT 8 + - + 39
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-5494
SELECT COUNT( * ) - - 60, - 72 AS col0
----
61
-72

skipif mysql # not compatible
query II rowsort label-5494
SELECT COUNT ( * ) - - 60, - 72 AS col0
----
61
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5495
SELECT CAST( NULL AS SIGNED ) * ( + + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5495
SELECT CAST ( NULL AS INTEGER ) * ( + + 64 )
----
NULL

query I rowsort
SELECT ( 93 ) * + 81 * 65 AS col1
----
489645

onlyif mysql # DIV for integer division: 
query I rowsort label-5497
SELECT DISTINCT 29 DIV + - 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT 29 / + - 56 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5498
SELECT CAST( NULL AS SIGNED ) * + ( + + 54 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5498
SELECT CAST ( NULL AS INTEGER ) * + ( + + 54 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5499
SELECT ALL CAST( NULL AS SIGNED ) + 79 + - + COUNT( * ) * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL CAST ( NULL AS INTEGER ) + 79 + - + COUNT ( * ) * - COUNT ( * ) col2
----
NULL

query II rowsort
SELECT 43 + 94 AS col2, + ( + 51 )
----
137
51

query II rowsort
SELECT ALL - 68 * 29, 25 col2
----
-1972
25

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5502
SELECT ALL 3 * - - 30 + - CASE - ( - + ( - CASE 21 WHEN CAST( NULL AS DECIMAL ) THEN - CAST( NULL AS SIGNED ) ELSE NULL END ) ) WHEN 17 * 58 THEN + + 77 WHEN - 3 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL 3 * - - 30 + - CASE - ( - + ( - CASE 21 WHEN CAST ( NULL AS REAL ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END ) ) WHEN 17 * 58 THEN + + 77 WHEN - 3 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5503
SELECT + 16 DIV + ( 70 ) + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5503
SELECT + 16 / + ( 70 ) + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5504
SELECT + CASE - + 53 WHEN + 82 * - COUNT( * ) + - COUNT( * ) THEN NULL WHEN - COUNT( * ) / - CASE - 16 WHEN + COUNT( ALL - - 62 ) THEN NULL WHEN - AVG ( 13 ) THEN COUNT( * ) ELSE NULL END THEN + - 99 ELSE - 75 END, + COUNT( * ) AS col2
----
-75
1

skipif mysql # not compatible
query II rowsort label-5504
SELECT + CASE - + 53 WHEN + 82 * - COUNT ( * ) + - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) / - CASE - 16 WHEN + COUNT ( ALL - - 62 ) THEN NULL WHEN - AVG ( 13 ) THEN COUNT ( * ) ELSE NULL END THEN + - 99 ELSE - 75 END, + COUNT ( * ) AS col2
----
-75
1

query I rowsort
SELECT 62 + 2
----
64

query II rowsort
SELECT ALL 28 * + 72 AS col0, 8 AS col2
----
2016
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT + MIN( DISTINCT + 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-5507
SELECT + MIN ( DISTINCT + 85 ) AS col0
----
85

query II rowsort
SELECT ALL 4 * 98 AS col2, 5 AS col0
----
392
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5509
SELECT 52 DIV - 20
----
-2

skipif mysql # not compatible
query I rowsort label-5509
SELECT 52 / - 20
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT ( 11 ) * + COUNT( * ) + ( - 88 ) + - - 46 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-5510
SELECT ( 11 ) * + COUNT ( * ) + ( - 88 ) + - - 46 AS col1
----
-31

query I rowsort
SELECT + COALESCE ( - - 52, 33 ) col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5512
SELECT DISTINCT COUNT( * ) * - + 41 + + COUNT( * ) - + 49 + - 42 DIV - - 2
----
-110

skipif mysql # not compatible
query I rowsort label-5512
SELECT DISTINCT COUNT ( * ) * - + 41 + + COUNT ( * ) - + 49 + - 42 / - - 2
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5513
SELECT DISTINCT - 99 DIV + MAX( ALL + 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT - 99 / + MAX ( ALL + 78 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5514
SELECT - 24 * + - 95 + - - ( 21 ) DIV 12
----
2281

skipif mysql # not compatible
query I rowsort label-5514
SELECT - 24 * + - 95 + - - ( 21 ) / 12
----
2281

onlyif mysql # aggregate syntax: 
query II rowsort label-5515
SELECT DISTINCT 20 * ( - 55 ) - - + COUNT( * ) * + SUM( - 27 ) * + 31 * + COUNT( * ), + 21 - + 52 AS col1
----
-1937
-31

skipif mysql # not compatible
query II rowsort label-5515
SELECT DISTINCT 20 * ( - 55 ) - - + COUNT ( * ) * + SUM ( - 27 ) * + 31 * + COUNT ( * ), + 21 - + 52 AS col1
----
-1937
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-5516
SELECT DISTINCT - + 37 * + - 4 + + - 0 - - - CASE WHEN SUM( - 19 ) = + MIN( ALL - 17 ) THEN + + 82 END AS col1, + 76
----
NULL
76

skipif mysql # not compatible
query II rowsort label-5516
SELECT DISTINCT - + 37 * + - 4 + + - 0 - - - CASE WHEN SUM ( - 19 ) = + MIN ( ALL - 17 ) THEN + + 82 END AS col1, + 76
----
NULL
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT + - COUNT( * ) * - - COUNT( * ) + + SUM( ALL - ( 8 ) ) - + - 67
----
58

skipif mysql # not compatible
query I rowsort label-5517
SELECT + - COUNT ( * ) * - - COUNT ( * ) + + SUM ( ALL - ( 8 ) ) - + - 67
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT - + 36 * - SUM( DISTINCT + 2 ) + + 27 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-5518
SELECT - + 36 * - SUM ( DISTINCT + 2 ) + + 27 AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5519
SELECT + - CAST( - CASE - + ( + ( - 85 ) ) WHEN - MAX( DISTINCT - 9 ) THEN + MAX( 62 ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5519
SELECT + - CAST ( - CASE - + ( + ( - 85 ) ) WHEN - MAX ( DISTINCT - 9 ) THEN + MAX ( 62 ) END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT - MIN( DISTINCT + - 62 ) + - - 33 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-5520
SELECT - MIN ( DISTINCT + - 62 ) + - - 33 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT ALL - - ( + - NULLIF ( + SUM( DISTINCT + + 26 ), 5 ) ) * 10 * + 60 AS col0
----
-15600

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL - - ( + - NULLIF ( + SUM ( DISTINCT + + 26 ), 5 ) ) * 10 * + 60 AS col0
----
-15600

query I rowsort
SELECT - ( 12 ) * + - 50 AS col0
----
600

query I rowsort
SELECT - COALESCE ( - + 49, + 10 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT - + COUNT( 29 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5524
SELECT - + COUNT ( 29 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5525
SELECT 21 AS col0, - COUNT( * ) AS col0
----
21
-1

skipif mysql # not compatible
query II rowsort label-5525
SELECT 21 AS col0, - COUNT ( * ) AS col0
----
21
-1

query I rowsort
SELECT - 83 * ( - 76 ) * + + 70 + - 76 - - - 11 * 94
----
440450

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT + 88 + - - COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-5527
SELECT + 88 + - - COUNT ( * ) AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5528
SELECT ALL - CAST( + - ( - 32 ) AS SIGNED ) DIV - + 12
----
2

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL - CAST ( + - ( - 32 ) AS INTEGER ) / - + 12
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5529
SELECT + CASE - 32 WHEN + AVG ( 41 ) + - 44 + - ( - 96 ) THEN CAST( + ( - - 3 ) AS SIGNED ) END + - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5529
SELECT + CASE - 32 WHEN + AVG ( 41 ) + - 44 + - ( - 96 ) THEN CAST ( + ( - - 3 ) AS INTEGER ) END + - 10 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5530
SELECT - MAX( DISTINCT - CAST( + 31 AS SIGNED ) )
----
31

skipif mysql # not compatible
query I rowsort label-5530
SELECT - MAX ( DISTINCT - CAST ( + 31 AS INTEGER ) )
----
31

query I rowsort
SELECT ALL 23 + + 53 AS col0
----
76

query I rowsort
SELECT - 17 - + 7 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT - COALESCE ( - 36, + - COUNT( * ), - + ( COUNT( * ) ) * + 84 )
----
36

skipif mysql # not compatible
query I rowsort label-5533
SELECT - COALESCE ( - 36, + - COUNT ( * ), - + ( COUNT ( * ) ) * + 84 )
----
36

query I rowsort
SELECT - 93 + - + 45 * - 36
----
1527

query I rowsort
SELECT + ( 28 ) * + ( + 78 ) + - 58 AS col1
----
2126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5536
SELECT CAST( AVG ( DISTINCT 67 ) AS SIGNED ) AS col0, - NULLIF ( 18, - - 96 )
----
67
-18

skipif mysql # not compatible
query II rowsort label-5536
SELECT CAST ( AVG ( DISTINCT 67 ) AS INTEGER ) AS col0, - NULLIF ( 18, - - 96 )
----
67
-18

query I rowsort
SELECT + ( + - 1 ) + - 76 AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT ALL 17 / - 66 + 81 * - + 94 / + CASE - 57 WHEN - 10 THEN NULL WHEN - + 53 * + + COUNT( * ) * - 40 + - 14 THEN - 52 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL 17 / - 66 + 81 * - + 94 / + CASE - 57 WHEN - 10 THEN NULL WHEN - + 53 * + + COUNT ( * ) * - 40 + - 14 THEN - 52 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5539
SELECT ALL 74 DIV + CAST( + - 79 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL 74 / + CAST ( + - 79 AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT ALL + + COALESCE ( - 57, COUNT( * ) * MAX( - ( - - 55 ) ), 34 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL + + COALESCE ( - 57, COUNT ( * ) * MAX ( - ( - - 55 ) ), 34 ) AS col0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5541
SELECT + COUNT( * ) - - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5541
SELECT + COUNT ( * ) - - - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL + 24 * ( - ( - + 4 ) ) * + + 64 - + + 86 * - + 42 AS col1
----
9756

query II rowsort
SELECT - ( + ( + 18 ) ) AS col0, 86
----
-18
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT + COUNT( ALL COALESCE ( + ( + 95 ), + + 23 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5544
SELECT + COUNT ( ALL COALESCE ( + ( + 95 ), + + 23 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5545
SELECT + 97 * - + 71 * - - NULLIF ( 64, COUNT( * ) * - + 88 + COUNT( * ) + 85 ) + - 38, + 59 col0
----
-440806
59

skipif mysql # not compatible
query II rowsort label-5545
SELECT + 97 * - + 71 * - - NULLIF ( 64, COUNT ( * ) * - + 88 + COUNT ( * ) + 85 ) + - 38, + 59 col0
----
-440806
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5546
SELECT + - COALESCE ( + COALESCE ( CAST( NULL AS SIGNED ), + 35 ), - 67, - 85 ) * + 56 + - MAX( ALL + + NULLIF ( - - 15, + + 61 ) )
----
-1975

skipif mysql # not compatible
query I rowsort label-5546
SELECT + - COALESCE ( + COALESCE ( CAST ( NULL AS INTEGER ), + 35 ), - 67, - 85 ) * + 56 + - MAX ( ALL + + NULLIF ( - - 15, + + 61 ) )
----
-1975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5547
SELECT - + 91 - - - MIN( ALL - 1 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5547
SELECT - + 91 - - - MIN ( ALL - 1 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT ALL - - 75 * + 64 + CASE + COUNT( * ) WHEN - COUNT( * ) THEN - - 64 + 11 + COUNT( * ) ELSE NULL END - + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL - - 75 * + 64 + CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN - - 64 + 11 + COUNT ( * ) ELSE NULL END - + 39 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5549
SELECT + 24 DIV MIN( - + 35 ) * + 70 AS col0, + CAST( + - 61 AS SIGNED )
----
0
-61

skipif mysql # not compatible
query II rowsort label-5549
SELECT + 24 / MIN ( - + 35 ) * + 70 AS col0, + CAST ( + - 61 AS INTEGER )
----
0
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5550
SELECT + - CASE + 15 WHEN 96 * + 90 - + 88 + 32 * - 23 / - 1 + - 79 * COALESCE ( - 98, + 53 + + 1, - + 18, + COUNT( - 41 ) ) * - 47 + ( - + 62 ) + + + ( - COALESCE ( MAX( DISTINCT + 20 ), - + 3, + + 10 ) ) + 93 * + 75 * + COUNT( * ) + - CAST( - - 63 AS SIGNED ) THEN NULL ELSE + + 61 END col1, 8 * + 79
----
-61
632

skipif mysql # not compatible
query II rowsort label-5550
SELECT + - CASE + 15 WHEN 96 * + 90 - + 88 + 32 * - 23 / - 1 + - 79 * COALESCE ( - 98, + 53 + + 1, - + 18, + COUNT ( - 41 ) ) * - 47 + ( - + 62 ) + + + ( - COALESCE ( MAX ( DISTINCT + 20 ), - + 3, + + 10 ) ) + 93 * + 75 * + COUNT ( * ) + - CAST ( - - 63 AS INTEGER ) THEN NULL ELSE + + 61 END col1, 8 * + 79
----
-61
632

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT DISTINCT + ( - ( + - COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT + ( - ( + - COUNT ( * ) ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5552
SELECT ALL + + COALESCE ( - 2, - + SUM( + 52 ), COALESCE ( + + 31, + + 55 * CAST( - 13 AS SIGNED ), 16, - 48 ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL + + COALESCE ( - 2, - + SUM ( + 52 ), COALESCE ( + + 31, + + 55 * CAST ( - 13 AS INTEGER ), 16, - 48 ) ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5553
SELECT + ( 44 ) + - 37 / CASE - - 66 WHEN - ( + 23 ) THEN + COUNT( * ) END AS col2, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5553
SELECT + ( 44 ) + - 37 / CASE - - 66 WHEN - ( + 23 ) THEN + COUNT ( * ) END AS col2, + COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT - - 64 * 53 AS col2
----
3392

query I rowsort
SELECT - + ( - 42 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-5556
SELECT ALL ( ( + + MAX( DISTINCT - 49 ) ) ) col0, + 68 AS col0
----
-49
68

skipif mysql # not compatible
query II rowsort label-5556
SELECT ALL ( ( + + MAX ( DISTINCT - 49 ) ) ) col0, + 68 AS col0
----
-49
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT ALL - CASE - ( 49 ) WHEN + 23 THEN NULL WHEN + + 47 THEN COUNT( * ) END * + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL - CASE - ( 49 ) WHEN + 23 THEN NULL WHEN + + 47 THEN COUNT ( * ) END * + - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT - 59 + COUNT( ALL - + 9 ) + 33 + ( - 71 )
----
-96

skipif mysql # not compatible
query I rowsort label-5558
SELECT - 59 + COUNT ( ALL - + 9 ) + 33 + ( - 71 )
----
-96

query I rowsort
SELECT - 65 * - 12
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT - 77 + - + COUNT( * ) + - 28 + + - 92 AS col2
----
-198

skipif mysql # not compatible
query I rowsort label-5560
SELECT - 77 + - + COUNT ( * ) + - 28 + + - 92 AS col2
----
-198

query I rowsort
SELECT DISTINCT - 67 * - + 52 AS col1
----
3484

query II rowsort
SELECT ALL + 13 + + 83 AS col1, + 85 AS col0
----
96
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT - SUM( ALL + + 69 ) + 38 + + 83 - 17 + + 10 * - 93 + - - 89 * + COUNT( * ) AS col2
----
-806

skipif mysql # not compatible
query I rowsort label-5563
SELECT - SUM ( ALL + + 69 ) + 38 + + 83 - 17 + + 10 * - 93 + - - 89 * + COUNT ( * ) AS col2
----
-806

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT ALL - 49 + COUNT( * ) * - 59 * - - 15 AS col0
----
-934

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL - 49 + COUNT ( * ) * - 59 * - - 15 AS col0
----
-934

query I rowsort
SELECT - 29 + - + 18 AS col0
----
-47

query I rowsort
SELECT DISTINCT ( 62 ) AS col1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5567
SELECT - COUNT( * ) + + + 14 col1, - 67 DIV 63 * - + 33
----
13
33

skipif mysql # not compatible
query II rowsort label-5567
SELECT - COUNT ( * ) + + + 14 col1, - 67 / 63 * - + 33
----
13
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5568
SELECT - COUNT( DISTINCT + 59 ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT - COUNT ( DISTINCT + 59 ) + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 69 * - - 58
----
-4002

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT DISTINCT + 23 * + COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT + 23 * + COUNT ( * ) AS col0
----
23

query I rowsort
SELECT DISTINCT 75 * - 42 AS col2
----
-3150

query I rowsort
SELECT ALL 33 * + + 89
----
2937

onlyif mysql # DIV for integer division: 
query I rowsort label-5573
SELECT 78 + + 95 + - + 82 DIV 50 + + 14 DIV - - 99 AS col0
----
172

skipif mysql # not compatible
query I rowsort label-5573
SELECT 78 + + 95 + - + 82 / 50 + + 14 / - - 99 AS col0
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5574
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - - NULLIF ( + MAX( DISTINCT - + ( - 63 ) ), - 54 + + 48 - 42 + 81 * + 41 * + 93 + - + 46 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - - NULLIF ( + MAX ( DISTINCT - + ( - 63 ) ), - 54 + + 48 - 42 + 81 * + 41 * + 93 + - + 46 ) AS col1
----
NULL

query I rowsort
SELECT 50 * + 64 AS col2
----
3200

query I rowsort
SELECT - 28 * + 98
----
-2744

query I rowsort
SELECT DISTINCT + 47 - + + 63
----
-16

query I rowsort
SELECT + ( - - 38 ) * + 14 * + + 65 + - 6 AS col2
----
34574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5579
SELECT COALESCE ( - CAST( NULL AS SIGNED ), - COUNT( * ) ) * 63 + - 58 + 86 * NULLIF ( 47, - - 24 ) * - + 4 * + + 83 AS col0
----
-1342065

skipif mysql # not compatible
query I rowsort label-5579
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) ) * 63 + - 58 + 86 * NULLIF ( 47, - - 24 ) * - + 4 * + + 83 AS col0
----
-1342065

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT COUNT( * ) * - + 81 + - + 47
----
-128

skipif mysql # not compatible
query I rowsort label-5580
SELECT COUNT ( * ) * - + 81 + - + 47
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT 50 + - 51 + - 11 + - MIN( + 93 )
----
-105

skipif mysql # not compatible
query I rowsort label-5581
SELECT 50 + - 51 + - 11 + - MIN ( + 93 )
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5582
SELECT CAST( + 19 AS SIGNED ) + + + 87 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-5582
SELECT CAST ( + 19 AS INTEGER ) + + + 87 AS col1
----
106

query I rowsort
SELECT + ( + 44 ) col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5584
SELECT DISTINCT 10 DIV - MAX( DISTINCT ( + 72 ) ), 29 + + - MAX( DISTINCT - ( ( + - 62 ) ) ) - - 89 AS col1
----
0
56

skipif mysql # not compatible
query II rowsort label-5584
SELECT DISTINCT 10 / - MAX ( DISTINCT ( + 72 ) ), 29 + + - MAX ( DISTINCT - ( ( + - 62 ) ) ) - - 89 AS col1
----
0
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT ALL COUNT( * ) + - 26 - + 99 + + + ( 59 ) * + 21 - - 18 * 76 AS col2
----
2483

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL COUNT ( * ) + - 26 - + 99 + + + ( 59 ) * + 21 - - 18 * 76 AS col2
----
2483

query I rowsort
SELECT CASE - 85 WHEN 34 THEN 51 END
----
NULL

query I rowsort
SELECT ALL - 81 + 47 * + 42 AS col1
----
1893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5588
SELECT CAST( NULL AS SIGNED ) * - - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5588
SELECT CAST ( NULL AS INTEGER ) * - - 58 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5589
SELECT CAST( + NULLIF ( + + 71, + + 24 + - 35 + - - 31 * - 88 ) AS SIGNED ) DIV + MIN( DISTINCT + 28 )
----
2

skipif mysql # not compatible
query I rowsort label-5589
SELECT CAST ( + NULLIF ( + + 71, + + 24 + - 35 + - - 31 * - 88 ) AS INTEGER ) / + MIN ( DISTINCT + 28 )
----
2

query II rowsort
SELECT DISTINCT 90 AS col1, 56 + - 76 AS col0
----
90
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT ALL COUNT( * ) + + 16 + 87 + + 93 * - 46
----
-4174

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL COUNT ( * ) + + 16 + 87 + + 93 * - 46
----
-4174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5592
SELECT DISTINCT - 64 + + NULLIF ( 51, + + 60 + - 68 ) * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - ( ( - - 98 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5592
SELECT DISTINCT - 64 + + NULLIF ( 51, + + 60 + - 68 ) * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - ( ( - - 98 ) ) col1
----
NULL

query I rowsort
SELECT 88 * + 78
----
6864

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT DISTINCT + COUNT( * ) * + 99
----
99

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT + COUNT ( * ) * + 99
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT DISTINCT 10 - - COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5595
SELECT DISTINCT 10 - - COUNT ( * ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT 71 * + COUNT( 11 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-5596
SELECT 71 * + COUNT ( 11 ) AS col1
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5597
SELECT 78 DIV + 58 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5597
SELECT 78 / + 58 AS col1
----
1

query I rowsort
SELECT ALL 45 * 39 * + ( - 75 )
----
-131625

onlyif mysql # DIV for integer division: 
query II rowsort label-5599
SELECT DISTINCT 68 AS col1, + 1 - - 52 DIV - 99
----
68
1

skipif mysql # not compatible
query II rowsort label-5599
SELECT DISTINCT 68 AS col1, + 1 - - 52 / - 99
----
68
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT ALL SUM( DISTINCT - 20 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL SUM ( DISTINCT - 20 ) AS col0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5601
SELECT CAST( 30 AS SIGNED ) + + 11 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-5601
SELECT CAST ( 30 AS INTEGER ) + + 11 AS col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5602
SELECT 42 DIV - 15
----
-2

skipif mysql # not compatible
query I rowsort label-5602
SELECT 42 / - 15
----
-2

query I rowsort
SELECT DISTINCT + 27 * + 22 + - 27 + 14 + + 52 * 99 * + 60
----
309461

onlyif mysql # DIV for integer division: 
query I rowsort label-5604
SELECT DISTINCT + 16 DIV 4 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5604
SELECT DISTINCT + 16 / 4 AS col2
----
4

query I rowsort
SELECT DISTINCT 41 * 80 * + 30
----
98400

onlyif mysql # DIV for integer division: 
query II rowsort label-5606
SELECT 65 DIV 50 * 88, + 44 - 16 * + - 73 AS col0
----
88
1212

skipif mysql # not compatible
query II rowsort label-5606
SELECT 65 / 50 * 88, + 44 - 16 * + - 73 AS col0
----
88
1212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5607
SELECT + COUNT( * ) + + CAST( COALESCE ( 38, + - CAST( NULL AS SIGNED ), + + CAST( NULL AS SIGNED ) * + + 27 / - 24 * 69 ) AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-5607
SELECT + COUNT ( * ) + + CAST ( COALESCE ( 38, + - CAST ( NULL AS INTEGER ), + + CAST ( NULL AS INTEGER ) * + + 27 / - 24 * 69 ) AS INTEGER )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT 11 * + 83 + + COUNT( * ) + - 91 * - 23
----
3007

skipif mysql # not compatible
query I rowsort label-5608
SELECT 11 * + 83 + + COUNT ( * ) + - 91 * - 23
----
3007

query II rowsort
SELECT + - 14 AS col0, 75 * - 29
----
-14
-2175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5610
SELECT - CASE + - COALESCE ( - 79, 54 / - 20 * - 38 ) WHEN - 67 THEN 7 ELSE NULL END + - 10 * + 65 + - + 59 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5610
SELECT - CASE + - COALESCE ( - 79, 54 / - 20 * - 38 ) WHEN - 67 THEN 7 ELSE NULL END + - 10 * + 65 + - + 59 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5611
SELECT + - COUNT( * ) AS col1, 34 * ( 75 )
----
-1
2550

skipif mysql # not compatible
query II rowsort label-5611
SELECT + - COUNT ( * ) AS col1, 34 * ( 75 )
----
-1
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT ALL - + NULLIF ( + 24, + - COALESCE ( - - COUNT( * ), + COUNT( * ) ) + 19 - COUNT( * ) )
----
-24

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL - + NULLIF ( + 24, + - COALESCE ( - - COUNT ( * ), + COUNT ( * ) ) + 19 - COUNT ( * ) )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5613
SELECT 34 * - COUNT( * ) + + + 84 * + COUNT( * ) / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5613
SELECT 34 * - COUNT ( * ) + + + 84 * + COUNT ( * ) / CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5614
SELECT + 69 - - ( 84 ) + - 72 * - 18 + 69 * 70 + - 62 + - 15 + - + CAST( NULL AS SIGNED ) + - 47 * NULLIF ( - + 89, + 66 + - AVG ( - + 26 ) + + - 11 ) / + - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5614
SELECT + 69 - - ( 84 ) + - 72 * - 18 + 69 * 70 + - 62 + - 15 + - + CAST ( NULL AS INTEGER ) + - 47 * NULLIF ( - + 89, + 66 + - AVG ( - + 26 ) + + - 11 ) / + - 12 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5615
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - 94 * 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - 94 * 58 AS col0
----
NULL

query I rowsort
SELECT ALL 61 + 52 * 63 * + 85 * 79 - + 35 AS col1
----
21998366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5617
SELECT COALESCE ( + 54, 80, - 52 DIV + - COUNT( ALL - 67 ) ) * + - 36 * - 98
----
190512

skipif mysql # not compatible
query I rowsort label-5617
SELECT COALESCE ( + 54, 80, - 52 / + - COUNT ( ALL - 67 ) ) * + - 36 * - 98
----
190512

query I rowsort
SELECT DISTINCT 65 * - 43 AS col2
----
-2795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5619
SELECT DISTINCT - CAST( + 27 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT - CAST ( + 27 AS INTEGER )
----
-27

query I rowsort
SELECT DISTINCT 41 + + + 73 * - 47
----
-3390

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT ALL 0 * - COUNT( * ) * - + 39 * - 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL 0 * - COUNT ( * ) * - + 39 * - 76 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5622
SELECT ALL CAST( NULL AS SIGNED ) / - 73 * 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL CAST ( NULL AS INTEGER ) / - 73 * 13 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT COUNT( * ) + + + 98 - 94 * 84 * - 64 AS col2
----
505443

skipif mysql # not compatible
query I rowsort label-5623
SELECT COUNT ( * ) + + + 98 - 94 * 84 * - 64 AS col2
----
505443

onlyif mysql # aggregate syntax: 
query II rowsort label-5624
SELECT - COUNT( * ) AS col1, COUNT( * ) * + 35 + NULLIF ( - 2, COUNT( * ) * - + 94 * 97 + CASE 63 WHEN + - 8 + - 73 * - 4 THEN 7 * - 26 + 11 ELSE NULL END ) AS col1
----
-1
33

skipif mysql # not compatible
query II rowsort label-5624
SELECT - COUNT ( * ) AS col1, COUNT ( * ) * + 35 + NULLIF ( - 2, COUNT ( * ) * - + 94 * 97 + CASE 63 WHEN + - 8 + - 73 * - 4 THEN 7 * - 26 + 11 ELSE NULL END ) AS col1
----
-1
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT SUM( - 42 ) * + + 58 - + 54 - + ( + NULLIF ( - 79, - MIN( ALL + 74 ) + 69 ) ) + - + 45
----
-2456

skipif mysql # not compatible
query I rowsort label-5625
SELECT SUM ( - 42 ) * + + 58 - + 54 - + ( + NULLIF ( - 79, - MIN ( ALL + 74 ) + 69 ) ) + - + 45
----
-2456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5626
SELECT CAST( + - CASE + 73 WHEN - - COUNT( * ) THEN - COUNT( * ) * + + 49 + + 75 WHEN 37 THEN NULL ELSE + 59 END AS SIGNED ) * - - 88 AS col0
----
-5192

skipif mysql # not compatible
query I rowsort label-5626
SELECT CAST ( + - CASE + 73 WHEN - - COUNT ( * ) THEN - COUNT ( * ) * + + 49 + + 75 WHEN 37 THEN NULL ELSE + 59 END AS INTEGER ) * - - 88 AS col0
----
-5192

query I rowsort
SELECT ALL 64 * - 91
----
-5824

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT + COUNT( * ) + 24 col0
----
25

skipif mysql # not compatible
query I rowsort label-5628
SELECT + COUNT ( * ) + 24 col0
----
25

query I rowsort
SELECT DISTINCT 69 * - + 44 AS col2
----
-3036

query I rowsort
SELECT + 40 + NULLIF ( 37, - - 23 ) col0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5631
SELECT ALL - 78 DIV - 60
----
1

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL - 78 / - 60
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5632
SELECT ALL MIN( 19 ) AS col1, 82 AS col2
----
19
82

skipif mysql # not compatible
query II rowsort label-5632
SELECT ALL MIN ( 19 ) AS col1, 82 AS col2
----
19
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT + ( - + MIN( 87 ) ) * 38 AS col1
----
-3306

skipif mysql # not compatible
query I rowsort label-5633
SELECT + ( - + MIN ( 87 ) ) * 38 AS col1
----
-3306

query I rowsort
SELECT + 92 + ( 62 ) AS col0
----
154

onlyif mysql # aggregate syntax: 
query II rowsort label-5635
SELECT + 23 AS col0, - MIN( + + 2 ) AS col1
----
23
-2

skipif mysql # not compatible
query II rowsort label-5635
SELECT + 23 AS col0, - MIN ( + + 2 ) AS col1
----
23
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT + + 9 * + MAX( + - ( - + 82 ) ) + - + 62
----
676

skipif mysql # not compatible
query I rowsort label-5636
SELECT + + 9 * + MAX ( + - ( - + 82 ) ) + - + 62
----
676

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT ALL 46 * - + MAX( 4 )
----
-184

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL 46 * - + MAX ( 4 )
----
-184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5638
SELECT DISTINCT - + ( - COUNT( * ) ) * - NULLIF ( + 8, 22 + - 81 ) + + 53 + + - 32 + + NULLIF ( - ( 71 ), - 9 ) DIV 45 * - - 46 - 6 * + 85 AS col2
----
-543

skipif mysql # not compatible
query I rowsort label-5638
SELECT DISTINCT - + ( - COUNT ( * ) ) * - NULLIF ( + 8, 22 + - 81 ) + + 53 + + - 32 + + NULLIF ( - ( 71 ), - 9 ) / 45 * - - 46 - 6 * + 85 AS col2
----
-543

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5639
SELECT ALL + + 24 * CAST( NULL AS SIGNED ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL + + 24 * CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5640
SELECT + - 40 + + SUM( 25 ) + + 83 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5640
SELECT + - 40 + + SUM ( 25 ) + + 83 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT - - 82 * 50 * - + COUNT( * )
----
-4100

skipif mysql # not compatible
query I rowsort label-5641
SELECT - - 82 * 50 * - + COUNT ( * )
----
-4100

query I rowsort
SELECT + - ( + + 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT + 52 * - 20 + + COUNT( * ) + + 98 + - 94 col0
----
-1035

skipif mysql # not compatible
query I rowsort label-5643
SELECT + 52 * - 20 + + COUNT ( * ) + + 98 + - 94 col0
----
-1035

onlyif mysql # aggregate syntax: 
query II rowsort label-5644
SELECT ALL 56 * + 85 + - + COUNT( * ) + + 84 AS col0, - NULLIF ( - + 54, + + 53 * - 44 )
----
4843
54

skipif mysql # not compatible
query II rowsort label-5644
SELECT ALL 56 * + 85 + - + COUNT ( * ) + + 84 AS col0, - NULLIF ( - + 54, + + 53 * - 44 )
----
4843
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT - COUNT( * ) * - 70 + 61
----
131

skipif mysql # not compatible
query I rowsort label-5645
SELECT - COUNT ( * ) * - 70 + 61
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-5646
SELECT ALL - + 39 DIV NULLIF ( 71, - 32 ) + - 50 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL - + 39 / NULLIF ( 71, - 32 ) + - 50 AS col2
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5647
SELECT - CAST( NULL AS SIGNED ) + - 48, - 36 * - 29 AS col1
----
NULL
1044

skipif mysql # not compatible
query II rowsort label-5647
SELECT - CAST ( NULL AS INTEGER ) + - 48, - 36 * - 29 AS col1
----
NULL
1044

onlyif mysql # aggregate syntax: 
query II rowsort label-5648
SELECT + 15 AS col1, COUNT( * )
----
15
1

skipif mysql # not compatible
query II rowsort label-5648
SELECT + 15 AS col1, COUNT ( * )
----
15
1

query I rowsort
SELECT + 35 * + 8 + - + 4 AS col0
----
276

query I rowsort
SELECT - 0 * - - 23 * - + ( + 36 ) AS col0
----
0

query I rowsort
SELECT NULLIF ( + 6, 18 + - 65 * + 10 ) AS col2
----
6

query I rowsort
SELECT COALESCE ( 71, + + 35 ) AS col2
----
71

query I rowsort
SELECT + 2 * + 72 + + + 18
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT - ( 12 ) * COUNT( * ) - + + 71
----
-83

skipif mysql # not compatible
query I rowsort label-5654
SELECT - ( 12 ) * COUNT ( * ) - + + 71
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT MIN( ALL - ( + 33 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-5655
SELECT MIN ( ALL - ( + 33 ) )
----
-33

query I rowsort
SELECT - ( - + 19 ) AS col2
----
19

query I rowsort
SELECT + 69 * + 58
----
4002

onlyif mysql # DIV for integer division: 
query I rowsort label-5658
SELECT + 52 DIV + 20
----
2

skipif mysql # not compatible
query I rowsort label-5658
SELECT + 52 / + 20
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT ALL MAX( ALL + - 33 ) + - 70 + - 18 AS col1
----
-121

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL MAX ( ALL + - 33 ) + - 70 + - 18 AS col1
----
-121

query I rowsort
SELECT + 61 - + 84 AS col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5661
SELECT ALL CAST( NULL AS SIGNED ) + + 51 * - + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL CAST ( NULL AS INTEGER ) + + 51 * - + 93
----
NULL

query I rowsort
SELECT ALL ( + NULLIF ( 21, - + 39 ) ) AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5663
SELECT DISTINCT + 24 + 7 + + + COUNT( * ), + 48 + - COUNT( * ) + + COALESCE ( CAST( NULL AS SIGNED ), + 30 ) + 99 DIV - + CAST( - + 26 AS SIGNED ) AS col2
----
32
80

skipif mysql # not compatible
query II rowsort label-5663
SELECT DISTINCT + 24 + 7 + + + COUNT ( * ), + 48 + - COUNT ( * ) + + COALESCE ( CAST ( NULL AS INTEGER ), + 30 ) + 99 / - + CAST ( - + 26 AS INTEGER ) AS col2
----
32
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT ALL + COUNT( ALL - 39 ) + - 62 * + 75 * + 16 * + - ( 36 ) AS col1
----
2678401

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL + COUNT ( ALL - 39 ) + - 62 * + 75 * + 16 * + - ( 36 ) AS col1
----
2678401

query I rowsort
SELECT + - 97 * + 60
----
-5820

query I rowsort
SELECT + - 86 + 64 + + + 36 AS col1
----
14

query II rowsort
SELECT - - CASE + + 40 WHEN - 81 * + - 8 * - 64 + - 31 THEN + - 81 END, 83 + + 79 col2
----
NULL
162

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT + + NULLIF ( + + 97, - COUNT( * ) ) + + 99
----
196

skipif mysql # not compatible
query I rowsort label-5668
SELECT + + NULLIF ( + + 97, - COUNT ( * ) ) + + 99
----
196

query I rowsort
SELECT DISTINCT NULLIF ( - + 53, + 75 / + 43 + 86 + - + 16 / + 60 * - + 59 + 63 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT + - COUNT( * ) + 68
----
67

skipif mysql # not compatible
query I rowsort label-5670
SELECT + - COUNT ( * ) + 68
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5671
SELECT ALL - 76 DIV 41 - - 43 + - 17 + + 31 * 2
----
87

skipif mysql # not compatible
query I rowsort label-5671
SELECT ALL - 76 / 41 - - 43 + - 17 + + 31 * 2
----
87

query II rowsort
SELECT - ( - 43 ) AS col0, 16
----
43
16

onlyif mysql # DIV for integer division: 
query I rowsort label-5673
SELECT ALL + + 98 DIV 76 - + 78 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL + + 98 / 76 - + 78 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT - CASE + 23 WHEN - 98 * COUNT( - - 95 ) THEN 11 END * 30 * + 42 - - + 75 - + + 18 * 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5674
SELECT - CASE + 23 WHEN - 98 * COUNT ( - - 95 ) THEN 11 END * 30 * + 42 - - + 75 - + + 18 * 81 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5675
SELECT + 77 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5675
SELECT + 77 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 83 * + 76 AS col0
----
-6308

onlyif mysql # aggregate syntax: 
query II rowsort label-5677
SELECT + 28, 44 + + COUNT( * ) AS col0
----
28
45

skipif mysql # not compatible
query II rowsort label-5677
SELECT + 28, 44 + + COUNT ( * ) AS col0
----
28
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5678
SELECT CAST( NULL AS SIGNED ) + 60 * 91 AS col2, - 68
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-5678
SELECT CAST ( NULL AS INTEGER ) + 60 * 91 AS col2, - 68
----
NULL
-68

query II rowsort
SELECT + 83 col1, + 46 * - - 63
----
83
2898

query I rowsort
SELECT 91 + 84
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT DISTINCT - COUNT( DISTINCT - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT - COUNT ( DISTINCT - 1 )
----
-1

query I rowsort
SELECT 68 - + 95 col0
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-5683
SELECT DISTINCT - COUNT( DISTINCT + 67 ) * - 15 AS col2, 11 + + 94 AS col0
----
15
105

skipif mysql # not compatible
query II rowsort label-5683
SELECT DISTINCT - COUNT ( DISTINCT + 67 ) * - 15 AS col2, 11 + + 94 AS col0
----
15
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5684
SELECT DISTINCT - 5 / + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5684
SELECT DISTINCT - 5 / + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 81 + + 75 AS col0
----
156

query I rowsort
SELECT ALL - 60 * + - 85 AS col0
----
5100

query I rowsort
SELECT 87 * 29 * + 33 * 12
----
999108

query I rowsort
SELECT 97 * + 29
----
2813

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT 3 - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5689
SELECT 3 - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT DISTINCT - 15 * ( - COUNT( ( - 92 ) ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5690
SELECT DISTINCT - 15 * ( - COUNT ( ( - 92 ) ) ) AS col2
----
15

query II rowsort
SELECT ALL 59, 66 AS col2
----
59
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5692
SELECT COUNT( * ) - - 57 DIV - + ( - - 66 ) * + 53 + + + 65 - - 77
----
143

skipif mysql # not compatible
query I rowsort label-5692
SELECT COUNT ( * ) - - 57 / - + ( - - 66 ) * + 53 + + + 65 - - 77
----
143

query II rowsort
SELECT 29, 78 AS col2
----
29
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT DISTINCT - 15 * + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-5694
SELECT DISTINCT - 15 * + COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT DISTINCT - COUNT( - 31 )
----
-1

skipif mysql # not compatible
query I rowsort label-5695
SELECT DISTINCT - COUNT ( - 31 )
----
-1

query I rowsort
SELECT DISTINCT + + 2 + + 46
----
48

query I rowsort
SELECT ALL - 6 + - - 79
----
73

query I rowsort
SELECT + 72 + + + ( - 67 ) AS col2
----
5

query I rowsort
SELECT ALL + 95 + + + ( 25 )
----
120

query II rowsort
SELECT - 42 AS col1, 4 AS col2
----
-42
4

query I rowsort
SELECT + 86 + + 67
----
153

query I rowsort
SELECT - 95 * 38 * 38
----
-137180

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT ALL 65 * NULLIF ( 78, - + MIN( + 36 ) )
----
5070

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL 65 * NULLIF ( 78, - + MIN ( + 36 ) )
----
5070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5704
SELECT 9 + + - 86 + - NULLIF ( - 47, 56 + + + MAX( ALL - 41 ) + + 16 + - + 65 ) + + + CAST( - 82 AS SIGNED ), - 54 * - 89 DIV + COUNT( * ) AS col2
----
-112
4806

skipif mysql # not compatible
query II rowsort label-5704
SELECT 9 + + - 86 + - NULLIF ( - 47, 56 + + + MAX ( ALL - 41 ) + + 16 + - + 65 ) + + + CAST ( - 82 AS INTEGER ), - 54 * - 89 / + COUNT ( * ) AS col2
----
-112
4806

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT - + MIN( - 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5705
SELECT - + MIN ( - 94 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT COALESCE ( - + 64, + - COUNT( * ) * - 68 * - 85 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-5706
SELECT COALESCE ( - + 64, + - COUNT ( * ) * - 68 * - 85 ) AS col2
----
-64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5707
SELECT - 22 + - COALESCE ( - 81, COALESCE ( ( + + CAST( - + 58 AS SIGNED ) ), + 26 DIV - + 10, + - 28 - + - 7 ) * - 86 + + 69 * - 39, - + 78 - + 33 ) + - + 98 * - ( + 99 ) * + 17 AS col2
----
164993

skipif mysql # not compatible
query I rowsort label-5707
SELECT - 22 + - COALESCE ( - 81, COALESCE ( ( + + CAST ( - + 58 AS INTEGER ) ), + 26 / - + 10, + - 28 - + - 7 ) * - 86 + + 69 * - 39, - + 78 - + 33 ) + - + 98 * - ( + 99 ) * + 17 AS col2
----
164993

query I rowsort
SELECT ALL + 43 * + 86
----
3698

query II rowsort
SELECT 64 col2, - 76
----
64
-76

query I rowsort
SELECT DISTINCT 54 - 54 AS col2
----
0

query II rowsort
SELECT - 60 col1, 88 AS col2
----
-60
88

query I rowsort
SELECT - 63 * + 13 + + - 82 + - ( 70 ) * + 7
----
-1391

query II rowsort
SELECT 82 * + + 59 AS col1, + 61 * - 74 AS col0
----
4838
-4514

query I rowsort
SELECT DISTINCT 82 * 58
----
4756

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT MAX( DISTINCT 66 ) * + - 98 AS col2
----
-6468

skipif mysql # not compatible
query I rowsort label-5715
SELECT MAX ( DISTINCT 66 ) * + - 98 AS col2
----
-6468

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT MIN( ALL - - 35 ) + CASE + 99 WHEN - AVG ( ALL 85 ) THEN + COALESCE ( + 49, + 94, + + ( + 58 ) + 76 ) / - COUNT( * ) - - + 88 + + 62 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5716
SELECT MIN ( ALL - - 35 ) + CASE + 99 WHEN - AVG ( ALL 85 ) THEN + COALESCE ( + 49, + 94, + + ( + 58 ) + 76 ) / - COUNT ( * ) - - + 88 + + 62 END col0
----
NULL

query I rowsort
SELECT + 6 * + 89 + - - 40 * + 4 AS col2
----
694

onlyif mysql # aggregate syntax: 
query II rowsort label-5718
SELECT ALL 81 * 73 AS col1, COUNT( * ) AS col2
----
5913
1

skipif mysql # not compatible
query II rowsort label-5718
SELECT ALL 81 * 73 AS col1, COUNT ( * ) AS col2
----
5913
1

query I rowsort
SELECT 97 * - 51
----
-4947

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT DISTINCT + 74 + - - 47 + - 99 - - 92 * - - 55 * + + COUNT( * ) AS col1
----
5082

skipif mysql # not compatible
query I rowsort label-5720
SELECT DISTINCT + 74 + - - 47 + - 99 - - 92 * - - 55 * + + COUNT ( * ) AS col1
----
5082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5721
SELECT ALL 39 + + - COUNT( * ) - 89 + - COALESCE ( 6, + - COUNT( * ) + CAST( NULL AS SIGNED ) * + 43, + 61 ) + 73 * - 58 * + 24 + - COALESCE ( - CAST( NULL AS SIGNED ), + - 55, 63 + 36 DIV + + 57 ) - - COUNT( * ) * + - COUNT( * ) * + - 16 * 8 * + + COUNT( * ) AS col0
----
-101490

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL 39 + + - COUNT ( * ) - 89 + - COALESCE ( 6, + - COUNT ( * ) + CAST ( NULL AS INTEGER ) * + 43, + 61 ) + 73 * - 58 * + 24 + - COALESCE ( - CAST ( NULL AS INTEGER ), + - 55, 63 + 36 / + + 57 ) - - COUNT ( * ) * + - COUNT ( * ) * + - 16 * 8 * + + COUNT ( * ) AS col0
----
-101490

query I rowsort
SELECT ALL + 29 + + - 41
----
-12

query I rowsort
SELECT 12 * 34
----
408

onlyif mysql # aggregate syntax: 
query II rowsort label-5724
SELECT ALL COUNT( * ) + + 55, 79 * + 25 * MIN( 98 ) AS col1
----
56
193550

skipif mysql # not compatible
query II rowsort label-5724
SELECT ALL COUNT ( * ) + + 55, 79 * + 25 * MIN ( 98 ) AS col1
----
56
193550

query I rowsort
SELECT 55 * - 25
----
-1375

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5726
SELECT - AVG ( + 63 ) - - ( + CAST( NULL AS SIGNED ) ), 80 - + 23 col0
----
NULL
57

skipif mysql # not compatible
query II rowsort label-5726
SELECT - AVG ( + 63 ) - - ( + CAST ( NULL AS INTEGER ) ), 80 - + 23 col0
----
NULL
57

query I rowsort
SELECT DISTINCT NULLIF ( + NULLIF ( 34, - - 7 ), + 17 ) col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5728
SELECT - COUNT( * ) - 0 AS col2, - COUNT( * ) + NULLIF ( + COUNT( * ), NULLIF ( 88, - - 49 ) ) + - 35 * 94 + 60 AS col0
----
-1
-3230

skipif mysql # not compatible
query II rowsort label-5728
SELECT - COUNT ( * ) - 0 AS col2, - COUNT ( * ) + NULLIF ( + COUNT ( * ), NULLIF ( 88, - - 49 ) ) + - 35 * 94 + 60 AS col0
----
-1
-3230

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT ALL - + COUNT( * ) * + + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL - + COUNT ( * ) * + + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5730
SELECT COUNT( * ) * 3 DIV + 42
----
0

skipif mysql # not compatible
query I rowsort label-5730
SELECT COUNT ( * ) * 3 / + 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT ALL + + ( - 24 ) - 94 + + - COUNT( * ) * + + NULLIF ( - ( + + COUNT( * ) ), - + 88 )
----
-117

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL + + ( - 24 ) - 94 + + - COUNT ( * ) * + + NULLIF ( - ( + + COUNT ( * ) ), - + 88 )
----
-117

query I rowsort
SELECT - + ( - CASE 32 WHEN - ( - + 83 ) / + - 85 * 52 THEN NULL ELSE + - 51 END )
----
-51

query I rowsort
SELECT + 59 - 29 AS col1
----
30

query I rowsort
SELECT ALL ( + ( 45 ) )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5735
SELECT CAST( NULL AS SIGNED ) - - + 49 - + ( + 3 ) * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-5735
SELECT CAST ( NULL AS INTEGER ) - - + 49 - + ( + 3 ) * 38
----
NULL

query I rowsort
SELECT - 26 * 56
----
-1456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5737
SELECT ALL + CAST( + 31 AS SIGNED ) * 69 + - 81
----
2058

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL + CAST ( + 31 AS INTEGER ) * 69 + - 81
----
2058

query I rowsort
SELECT - 53 + - 67 * - 43 + + 88
----
2916

query I rowsort
SELECT + + 87 - 61 col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT - + MAX( ALL + 32 ) * + - 28 AS col0
----
896

skipif mysql # not compatible
query I rowsort label-5740
SELECT - + MAX ( ALL + 32 ) * + - 28 AS col0
----
896

query II rowsort
SELECT + - 71 + - - 0 AS col2, - 77
----
-71
-77

query I rowsort
SELECT DISTINCT 0 * - - 51
----
0

query I rowsort
SELECT ALL + 5 * + - 36 AS col2
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT + SUM( - ( + + 76 ) ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-5744
SELECT + SUM ( - ( + + 76 ) ) AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5745
SELECT ALL - 32 * + CAST( NULL AS SIGNED ) * + ( 93 ) * + COUNT( * ) + - 54 + - 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL - 32 * + CAST ( NULL AS INTEGER ) * + ( 93 ) * + COUNT ( * ) + - 54 + - 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT CASE - NULLIF ( - ( 87 ), - 86 - 97 + - + 33 / - COUNT( * ) ) WHEN + 19 * - 15 THEN NULL WHEN + 81 THEN + 34 + + 63 - + - 33 - - 77 / + SUM( + 83 ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5746
SELECT CASE - NULLIF ( - ( 87 ), - 86 - 97 + - + 33 / - COUNT ( * ) ) WHEN + 19 * - 15 THEN NULL WHEN + 81 THEN + 34 + + 63 - + - 33 - - 77 / + SUM ( + 83 ) ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT ALL ( - + 2 ) * - 90 - + 91 + MAX( - ( - CASE - 70 WHEN - - 85 * - - 86 + + 80 - - 35 THEN NULL WHEN 91 THEN NULL ELSE 17 - + 77 END ) ) * + 29 + + - 19
----
-1670

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL ( - + 2 ) * - 90 - + 91 + MAX ( - ( - CASE - 70 WHEN - - 85 * - - 86 + + 80 - - 35 THEN NULL WHEN 91 THEN NULL ELSE 17 - + 77 END ) ) * + 29 + + - 19
----
-1670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5748
SELECT + 64 * + 45 + + COALESCE ( - COUNT( * ), 11, + 43 + + 89 ) - 91 * 0 * + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5748
SELECT + 64 * + 45 + + COALESCE ( - COUNT ( * ), 11, + 43 + + 89 ) - 91 * 0 * + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5749
SELECT NULLIF ( + CAST( NULL AS DECIMAL ), + - NULLIF ( 49, + 71 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5749
SELECT NULLIF ( + CAST ( NULL AS REAL ), + - NULLIF ( 49, + 71 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5750
SELECT + NULLIF ( - CAST( 11 AS SIGNED ), + 73 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-5750
SELECT + NULLIF ( - CAST ( 11 AS INTEGER ), + 73 ) AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5751
SELECT DISTINCT CAST( - 40 AS SIGNED ) * + COALESCE ( + 67, 7 * - COUNT( * ), + + 74 / - - 20 ) * + ( + 72 ) / + - CAST( NULL AS SIGNED ) - - + 94 - - CAST( NULL AS SIGNED ) * + 99 + + - 20 + - + 84 + - + 26 - - 9 * 16 * ( + COUNT( * ) ) * - + ( - 70 ) * 69 + - 33, 41 * - 10 col0
----
NULL
-410

skipif mysql # not compatible
query II rowsort label-5751
SELECT DISTINCT CAST ( - 40 AS INTEGER ) * + COALESCE ( + 67, 7 * - COUNT ( * ), + + 74 / - - 20 ) * + ( + 72 ) / + - CAST ( NULL AS INTEGER ) - - + 94 - - CAST ( NULL AS INTEGER ) * + 99 + + - 20 + - + 84 + - + 26 - - 9 * 16 * ( + COUNT ( * ) ) * - + ( - 70 ) * 69 + - 33, 41 * - 10 col0
----
NULL
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT CASE - + COUNT( * ) WHEN + COUNT( * ) THEN - - NULLIF ( + - 65, - - 25 * + - 46 ) WHEN + ( - - 34 ) + 40 / 10 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT CASE - + COUNT ( * ) WHEN + COUNT ( * ) THEN - - NULLIF ( + - 65, - - 25 * + - 46 ) WHEN + ( - - 34 ) + 40 / 10 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT ALL COUNT( * ) * + - NULLIF ( - + 42, - 10 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL COUNT ( * ) * + - NULLIF ( - + 42, - 10 ) AS col2
----
42

query II rowsort
SELECT DISTINCT + 38 AS col1, 86
----
38
86

query I rowsort
SELECT ALL - 70 * ( - - 29 ) + + 69
----
-1961

onlyif mysql # aggregate syntax: 
query II rowsort label-5756
SELECT 61 * + 23 - 56 + ( 10 ) col1, COUNT( * ) AS col1
----
1357
1

skipif mysql # not compatible
query II rowsort label-5756
SELECT 61 * + 23 - 56 + ( 10 ) col1, COUNT ( * ) AS col1
----
1357
1

query I rowsort
SELECT ALL 38 * - 58 + + 14 * + - 6
----
-2288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5758
SELECT + ( - - 69 ) + ( + + COUNT( * ) ) + 80 * - - 3 + - COUNT( * ) + + - 55 * - - CAST( - - 81 AS SIGNED ) * + COUNT( * ) + 33
----
-4113

skipif mysql # not compatible
query I rowsort label-5758
SELECT + ( - - 69 ) + ( + + COUNT ( * ) ) + 80 * - - 3 + - COUNT ( * ) + + - 55 * - - CAST ( - - 81 AS INTEGER ) * + COUNT ( * ) + 33
----
-4113

query I rowsort
SELECT + COALESCE ( + + 96, - 74, - - 58 )
----
96

query I rowsort
SELECT - 97 - 68 col1
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT - ( - 39 ) * COUNT( * ) + - 10 * - 4 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-5761
SELECT - ( - 39 ) * COUNT ( * ) + - 10 * - 4 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT ALL COUNT( ALL - 99 )
----
1

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL COUNT ( ALL - 99 )
----
1

query I rowsort
SELECT + 44 + 24
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT + 20 * + NULLIF ( 99, COUNT( * ) )
----
1980

skipif mysql # not compatible
query I rowsort label-5764
SELECT + 20 * + NULLIF ( 99, COUNT ( * ) )
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT DISTINCT 84 - COUNT( * ) * 72 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT 84 - COUNT ( * ) * 72 AS col1
----
12

query I rowsort
SELECT ALL NULLIF ( + 87, 64 + + 35 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT ALL COUNT( * ) - - 92 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL COUNT ( * ) - - 92 AS col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5768
SELECT + 1 DIV + 10 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5768
SELECT + 1 / + 10 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5769
SELECT - 7 DIV 49 col2
----
0

skipif mysql # not compatible
query I rowsort label-5769
SELECT - 7 / 49 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5770
SELECT - SUM( DISTINCT 82 ) * NULLIF ( COALESCE ( - CASE - 82 WHEN - 93 THEN - 49 ELSE NULL END, - 17 * COUNT( * ), - MAX( 7 ) + + 52 DIV 25 ) DIV - 49, 98 )
----
0

skipif mysql # not compatible
query I rowsort label-5770
SELECT - SUM ( DISTINCT 82 ) * NULLIF ( COALESCE ( - CASE - 82 WHEN - 93 THEN - 49 ELSE NULL END, - 17 * COUNT ( * ), - MAX ( 7 ) + + 52 / 25 ) / - 49, 98 )
----
0

query I rowsort
SELECT DISTINCT + 18 * 72 AS col0
----
1296

query I rowsort
SELECT ALL NULLIF ( - 36, + 55 * ( + 0 ) ) AS col1
----
-36

query I rowsort
SELECT ALL ( 49 ) * 87 AS col0
----
4263

query I rowsort
SELECT DISTINCT ( ( 15 ) ) AS col1
----
15

query I rowsort
SELECT DISTINCT + 18 * - 9 AS col0
----
-162

query I rowsort
SELECT ALL NULLIF ( 70, + 90 )
----
70

query I rowsort
SELECT ALL CASE - 29 WHEN - 37 * 26 THEN 65 ELSE 99 + + 52 END AS col0
----
151

query I rowsort
SELECT DISTINCT NULLIF ( - 51, 77 / + 6 ) AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5779
SELECT ALL COUNT( DISTINCT - 78 ) DIV 99 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5779
SELECT ALL COUNT ( DISTINCT - 78 ) / 99 + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5780
SELECT - 5 + 26 DIV - COUNT( * ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-5780
SELECT - 5 + 26 / - COUNT ( * ) col0
----
-31

query I rowsort
SELECT + 97 * + 16 + 87
----
1639

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT + 87 + - COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-5782
SELECT + 87 + - COUNT ( * ) AS col2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5783
SELECT ALL 16 DIV COUNT( * ) + + NULLIF ( ( 77 ), - 70 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL 16 / COUNT ( * ) + + NULLIF ( ( 77 ), - 70 ) AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5784
SELECT ALL 85 DIV MIN( - 36 ) + 39
----
37

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL 85 / MIN ( - 36 ) + 39
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5785
SELECT ALL - 75 DIV - 90 + - CASE - 57 - 74 WHEN CAST( NULL AS SIGNED ) + - 71 * + SUM( + 16 ) THEN NULL ELSE - SUM( - 9 ) END AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-5785
SELECT ALL - 75 / - 90 + - CASE - 57 - 74 WHEN CAST ( NULL AS INTEGER ) + - 71 * + SUM ( + 16 ) THEN NULL ELSE - SUM ( - 9 ) END AS col2
----
-9

query I rowsort
SELECT - 51 + - 46 * 19
----
-925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5787
SELECT DISTINCT COUNT( + 45 ) DIV 77 + - 82
----
-82

skipif mysql # not compatible
query I rowsort label-5787
SELECT DISTINCT COUNT ( + 45 ) / 77 + - 82
----
-82

query I rowsort
SELECT + 28 + 63
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT 75 * COUNT( * ) - + 11 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5789
SELECT 75 * COUNT ( * ) - + 11 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT DISTINCT + ( COUNT( + 12 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT + ( COUNT ( + 12 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5791
SELECT - 15 DIV + 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5791
SELECT - 15 / + 64 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT ( - ( + ( - COUNT( * ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5792
SELECT ( - ( + ( - COUNT ( * ) ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5793
SELECT - 92 * COALESCE ( CASE WHEN NOT - 90 >= ( - 30 - 12 ) THEN 88 + 45 END, + COALESCE ( + COUNT( * ), + 67 ) - 40 * 12, + CASE - 46 WHEN + COUNT( * ) + + COUNT( * ) THEN CAST( NULL AS SIGNED ) ELSE NULL END )
----
-12236

skipif mysql # not compatible
query I rowsort label-5793
SELECT - 92 * COALESCE ( CASE WHEN NOT - 90 >= ( - 30 - 12 ) THEN 88 + 45 END, + COALESCE ( + COUNT ( * ), + 67 ) - 40 * 12, + CASE - 46 WHEN + COUNT ( * ) + + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) ELSE NULL END )
----
-12236

query I rowsort
SELECT + 56 * ( - 17 ) AS col1
----
-952

query I rowsort
SELECT + 61 + 59
----
120

query I rowsort
SELECT ALL + 75 * 20 - + 39 * - 85 AS col2
----
4815

query I rowsort
SELECT ALL + CASE + 15 WHEN 75 + 53 THEN 58 WHEN + 33 * - 34 THEN NULL ELSE + 45 END AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5798
SELECT DISTINCT - + CAST( + 14 AS SIGNED ) * + 2 - - COUNT( * ) * - 75
----
-103

skipif mysql # not compatible
query I rowsort label-5798
SELECT DISTINCT - + CAST ( + 14 AS INTEGER ) * + 2 - - COUNT ( * ) * - 75
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5799
SELECT DISTINCT - 25 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT - 25 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5800
SELECT ALL - 76 * ( CASE + 89 WHEN + COALESCE ( - 84, - CAST( NULL AS SIGNED ) ) - + 77 / - 90 THEN AVG ( DISTINCT + 93 ) * - 18 + + COUNT( * ) WHEN 13 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL - 76 * ( CASE + 89 WHEN + COALESCE ( - 84, - CAST ( NULL AS INTEGER ) ) - + 77 / - 90 THEN AVG ( DISTINCT + 93 ) * - 18 + + COUNT ( * ) WHEN 13 THEN NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT DISTINCT 20 * - COUNT( DISTINCT - 82 * - 94 )
----
-20

skipif mysql # not compatible
query I rowsort label-5801
SELECT DISTINCT 20 * - COUNT ( DISTINCT - 82 * - 94 )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5802
SELECT + CAST( 58 AS SIGNED ) * 28
----
1624

skipif mysql # not compatible
query I rowsort label-5802
SELECT + CAST ( 58 AS INTEGER ) * 28
----
1624

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT ( COUNT( ALL 22 ) ) * - 6
----
-6

skipif mysql # not compatible
query I rowsort label-5803
SELECT ( COUNT ( ALL 22 ) ) * - 6
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5804
SELECT ALL - COUNT( * ) * - CASE 77 + 11 WHEN 10 + - 79 THEN NULL WHEN COUNT( * ) THEN + 15 WHEN + COALESCE ( - COUNT( * ), + 17 ) * + CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL - COUNT ( * ) * - CASE 77 + 11 WHEN 10 + - 79 THEN NULL WHEN COUNT ( * ) THEN + 15 WHEN + COALESCE ( - COUNT ( * ), + 17 ) * + CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

query I rowsort
SELECT + 8 - + 84
----
-76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5806
SELECT - COALESCE ( - 42, - CAST( NULL AS SIGNED ) DIV - 51 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5806
SELECT - COALESCE ( - 42, - CAST ( NULL AS INTEGER ) / - 51 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT ( - COUNT( DISTINCT + 86 ) ) - + 92
----
-93

skipif mysql # not compatible
query I rowsort label-5807
SELECT ( - COUNT ( DISTINCT + 86 ) ) - + 92
----
-93

query I rowsort
SELECT ALL ( ( 98 ) )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5809
SELECT 12 * CAST( - 31 * - 1 AS SIGNED )
----
372

skipif mysql # not compatible
query I rowsort label-5809
SELECT 12 * CAST ( - 31 * - 1 AS INTEGER )
----
372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5810
SELECT ALL + - CAST( + 82 AS SIGNED ) + + 12 * 65 AS col2
----
698

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL + - CAST ( + 82 AS INTEGER ) + + 12 * 65 AS col2
----
698

onlyif mysql # DIV for integer division: 
query I rowsort label-5811
SELECT - 57 - 22 DIV + 67
----
-57

skipif mysql # not compatible
query I rowsort label-5811
SELECT - 57 - 22 / + 67
----
-57

query I rowsort
SELECT DISTINCT 31 + + 95 AS col1
----
126

query I rowsort
SELECT 35 - + 37 AS col1
----
-2

query I rowsort
SELECT DISTINCT 24 + - + 26 + 72 AS col0
----
70

query I rowsort
SELECT ALL - 42 + - - 43 + - 36 * - 51 * ( 11 * + 58 ) AS col1
----
1171369

query I rowsort
SELECT 71 + + 68
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5817
SELECT 7 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5817
SELECT 7 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5818
SELECT COUNT( ALL + - 71 ) DIV 16
----
0

skipif mysql # not compatible
query I rowsort label-5818
SELECT COUNT ( ALL + - 71 ) / 16
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5819
SELECT CAST( + + COUNT( * ) AS SIGNED ) + 50
----
51

skipif mysql # not compatible
query I rowsort label-5819
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) + 50
----
51

query I rowsort
SELECT 16 - 54 AS col2
----
-38

query I rowsort
SELECT ALL + 70 * 55 * - ( + 59 * + 82 )
----
-18626300

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT DISTINCT 81 * + - MIN( ALL - 28 )
----
2268

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT 81 * + - MIN ( ALL - 28 )
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT ALL - MIN( DISTINCT 45 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL - MIN ( DISTINCT 45 ) AS col0
----
-45

query I rowsort
SELECT ALL + 43 + 61
----
104

query I rowsort
SELECT ALL + 70 * + + 62
----
4340

query I rowsort
SELECT 16 + 14 * 49 col2
----
702

query I rowsort
SELECT ALL - CASE WHEN NOT NULL IS NULL THEN - 62 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT 96 * - COUNT( * ) * - 87
----
8352

skipif mysql # not compatible
query I rowsort label-5828
SELECT 96 * - COUNT ( * ) * - 87
----
8352

query I rowsort
SELECT 98 * - 34 + 78 col1
----
-3254

onlyif mysql # DIV for integer division: 
query I rowsort label-5830
SELECT DISTINCT - 25 DIV - 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5830
SELECT DISTINCT - 25 / - 94 AS col1
----
0

query I rowsort
SELECT 12 + 45
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5832
SELECT 51 * COUNT( * ) DIV MIN( DISTINCT + 65 )
----
0

skipif mysql # not compatible
query I rowsort label-5832
SELECT 51 * COUNT ( * ) / MIN ( DISTINCT + 65 )
----
0

query I rowsort
SELECT 22 * + 52
----
1144

query I rowsort
SELECT ALL - NULLIF ( - - NULLIF ( - 38, 65 ), COALESCE ( - 55, 69 * - NULLIF ( 16, 4 * 54 + - 20 ), - 84 + 17 * + 93 ) ) col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT - - 49 * ( - COUNT( * ) ) + + 18 - + 34
----
-65

skipif mysql # not compatible
query I rowsort label-5835
SELECT - - 49 * ( - COUNT ( * ) ) + + 18 - + 34
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-5836
SELECT 78 DIV + 47
----
1

skipif mysql # not compatible
query I rowsort label-5836
SELECT 78 / + 47
----
1

query I rowsort
SELECT ALL - 27 * + COALESCE ( 44, - 73 * - COALESCE ( + 1, 18 ) - ( - 93 + - 23 ) )
----
-1188

query I rowsort
SELECT + ( + COALESCE ( - 19, - 76, - 72 + 72 ) )
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5839
SELECT COALESCE ( COUNT( * ), - ( - 45 ) * + MIN( DISTINCT 40 + - 49 ), - ( + MAX( - 38 ) ) * 21 ) DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-5839
SELECT COALESCE ( COUNT ( * ), - ( - 45 ) * + MIN ( DISTINCT 40 + - 49 ), - ( + MAX ( - 38 ) ) * 21 ) / 93
----
0

query I rowsort
SELECT - 62 - + 84 AS col1
----
-146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5841
SELECT ALL CAST( NULL AS SIGNED ) / + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL CAST ( NULL AS INTEGER ) / + 69
----
NULL

query I rowsort
SELECT - 5 + + 46 * 97 AS col0
----
4457

query I rowsort
SELECT 78 - + 75 * + 25
----
-1797

query I rowsort
SELECT 81 + + 63 AS col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT ALL + - 46 + + - COUNT( * ) * + 27 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL + - 46 + + - COUNT ( * ) * + 27 AS col0
----
-73

query I rowsort
SELECT 27 * 3 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT ALL - 20 + 36 * COUNT( * ) col0
----
16

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL - 20 + 36 * COUNT ( * ) col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT MIN( 6 ) + MIN( ALL NULLIF ( + 50, 89 + 24 ) )
----
56

skipif mysql # not compatible
query I rowsort label-5848
SELECT MIN ( 6 ) + MIN ( ALL NULLIF ( + 50, 89 + 24 ) )
----
56

query I rowsort
SELECT CASE - 64 WHEN COALESCE ( 76, AVG ( - 96 ) * + 8, 87 * 75 + - 80 ) THEN NULL WHEN + COALESCE ( + 56, - 68 * - 82 ) THEN 90 - + 64 END + - 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5850
SELECT ALL + MIN( + CAST( NULL AS SIGNED ) ) + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL + MIN ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ( + 10 ) + + - 88
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT DISTINCT 18 + - COUNT( * ) * + - 53 * - 40
----
-2102

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT 18 + - COUNT ( * ) * + - 53 * - 40
----
-2102

query I rowsort
SELECT 81 * 75 AS col1
----
6075

onlyif mysql # DIV for integer division: 
query I rowsort label-5854
SELECT 16 + - + COALESCE ( - 26, + 68 DIV - 28 ) + - 13 * + 31
----
-361

skipif mysql # not compatible
query I rowsort label-5854
SELECT 16 + - + COALESCE ( - 26, + 68 / - 28 ) + - 13 * + 31
----
-361

query I rowsort
SELECT ALL - 11 - 63 col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT COUNT( * ) * - ( 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-5856
SELECT COUNT ( * ) * - ( 34 )
----
-34

query II rowsort
SELECT DISTINCT 94, - 15 AS col2
----
94
-15

query I rowsort
SELECT DISTINCT 34 - - - 82
----
-48

query I rowsort
SELECT 32 * - + 85 col0
----
-2720

query I rowsort
SELECT 12 * + 20 - + 59 AS col1
----
181

query I rowsort
SELECT ALL - NULLIF ( 17, - 12 ) * + 14 AS col0
----
-238

query I rowsort
SELECT 48 + - 45 + + - 70 + + 75 * 56 * - 65
----
-273067

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5863
SELECT ( + CAST( NULL AS SIGNED ) ) * + 91 * 10 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5863
SELECT ( + CAST ( NULL AS INTEGER ) ) * + 91 * 10 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT ALL - CASE + - COUNT( * ) WHEN + 66 THEN - 75 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL - CASE + - COUNT ( * ) WHEN + 66 THEN - 75 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT 31 * - ( - MAX( ALL 24 ) )
----
744

skipif mysql # not compatible
query I rowsort label-5865
SELECT 31 * - ( - MAX ( ALL 24 ) )
----
744

query I rowsort
SELECT ALL 27 * 65 AS col2
----
1755

query I rowsort
SELECT - 96 + - NULLIF ( + - 24, 46 + 53 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT + - NULLIF ( + MIN( 58 ), CASE COUNT( - 62 ) WHEN + 87 THEN NULL WHEN 48 + - ( 37 ) THEN 96 END ) col0
----
-58

skipif mysql # not compatible
query I rowsort label-5868
SELECT + - NULLIF ( + MIN ( 58 ), CASE COUNT ( - 62 ) WHEN + 87 THEN NULL WHEN 48 + - ( 37 ) THEN 96 END ) col0
----
-58

query I rowsort
SELECT DISTINCT - 98 * 20
----
-1960

query I rowsort
SELECT - 23 * + 82 + 98
----
-1788

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5871
SELECT + 7 AS col0, ( + 29 ) DIV COUNT( * )
----
7
29

skipif mysql # not compatible
query II rowsort label-5871
SELECT + 7 AS col0, ( + 29 ) / COUNT ( * )
----
7
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5872
SELECT 43, COUNT( * ) DIV MAX( DISTINCT 92 ) AS col1
----
43
0

skipif mysql # not compatible
query II rowsort label-5872
SELECT 43, COUNT ( * ) / MAX ( DISTINCT 92 ) AS col1
----
43
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5873
SELECT DISTINCT + COUNT( * ), - 60 * - COUNT( * ) * 86 AS col1
----
1
5160

skipif mysql # not compatible
query II rowsort label-5873
SELECT DISTINCT + COUNT ( * ), - 60 * - COUNT ( * ) * 86 AS col1
----
1
5160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5874
SELECT ALL - + 10 * + COALESCE ( - CAST( NULL AS SIGNED ), 10 * - 1 + - COUNT( * ) DIV 83 )
----
100

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL - + 10 * + COALESCE ( - CAST ( NULL AS INTEGER ), 10 * - 1 + - COUNT ( * ) / 83 )
----
100

query I rowsort
SELECT - 90 * - 13 AS col2
----
1170

onlyif mysql # DIV for integer division: 
query I rowsort label-5876
SELECT - + 4 + 99 + 0 DIV - 86
----
95

skipif mysql # not compatible
query I rowsort label-5876
SELECT - + 4 + 99 + 0 / - 86
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT + NULLIF ( + + COUNT( * ), + 32 )
----
1

skipif mysql # not compatible
query I rowsort label-5877
SELECT + NULLIF ( + + COUNT ( * ), + 32 )
----
1

query I rowsort
SELECT ALL + - 98 + 72 col2
----
-26

query II rowsort
SELECT DISTINCT + 24 AS col0, + ( + + 20 ) * 60
----
24
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT ALL + - COALESCE ( + - 44, - 61 + CASE ( COUNT( * ) ) WHEN CASE MAX( - 4 ) WHEN - 96 THEN + 81 ELSE 75 * + 60 END THEN NULL WHEN MAX( 38 ) * + 70 + 19 THEN 47 * COUNT( * ) END, - 64 - 47 ) + + 56 col2
----
100

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL + - COALESCE ( + - 44, - 61 + CASE ( COUNT ( * ) ) WHEN CASE MAX ( - 4 ) WHEN - 96 THEN + 81 ELSE 75 * + 60 END THEN NULL WHEN MAX ( 38 ) * + 70 + 19 THEN 47 * COUNT ( * ) END, - 64 - 47 ) + + 56 col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT - - 43 * - 36 + COUNT( * ) + 54
----
-1493

skipif mysql # not compatible
query I rowsort label-5881
SELECT - - 43 * - 36 + COUNT ( * ) + 54
----
-1493

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5882
SELECT DISTINCT + - 68 + + - 87 + + CAST( + ( + 86 ) AS SIGNED ) * 94
----
7929

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT + - 68 + + - 87 + + CAST ( + ( + 86 ) AS INTEGER ) * 94
----
7929

query I rowsort
SELECT ALL - - 6 + - 66 AS col0
----
-60

query I rowsort
SELECT ALL + 88 + + 5 AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5885
SELECT + CAST( NULL AS SIGNED ) * + SUM( DISTINCT - 41 ) + + ( 6 ) - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5885
SELECT + CAST ( NULL AS INTEGER ) * + SUM ( DISTINCT - 41 ) + + ( 6 ) - 8
----
NULL

query I rowsort
SELECT + 62 * - + 45 * + + 69 * + 41 + - 14 AS col1
----
-7892924

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT - - CASE 9 WHEN + COUNT( * ) THEN + 17 + - 4 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5887
SELECT - - CASE 9 WHEN + COUNT ( * ) THEN + 17 + - 4 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5888
SELECT ALL + 15 DIV ( + - 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL + 15 / ( + - 10 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT - ( 70 ) + - 72 - + - 66 + - 99 / CASE COUNT( ALL 22 ) / - 18 WHEN 40 + 3 THEN COUNT( 34 ) * 94 WHEN 33 * 88 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5889
SELECT - ( 70 ) + - 72 - + - 66 + - 99 / CASE COUNT ( ALL 22 ) / - 18 WHEN 40 + 3 THEN COUNT ( 34 ) * 94 WHEN 33 * 88 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5890
SELECT + 47 DIV + 61 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5890
SELECT + 47 / + 61 * COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5891
SELECT - ( 53 ) * + - 36 - - 14 DIV + 56
----
1908

skipif mysql # not compatible
query I rowsort label-5891
SELECT - ( 53 ) * + - 36 - - 14 / + 56
----
1908

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT ALL NULLIF ( 88, - - COUNT( * ) + + - COUNT( * ) )
----
88

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL NULLIF ( 88, - - COUNT ( * ) + + - COUNT ( * ) )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT ALL CASE + + 93 WHEN 44 THEN NULL WHEN CASE 38 WHEN 13 THEN COUNT( * ) ELSE NULL END / + 5 + + 57 THEN NULL ELSE + ( MIN( - 83 ) ) * 56 + + 13 * 62 END
----
-3842

skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL CASE + + 93 WHEN 44 THEN NULL WHEN CASE 38 WHEN 13 THEN COUNT ( * ) ELSE NULL END / + 5 + + 57 THEN NULL ELSE + ( MIN ( - 83 ) ) * 56 + + 13 * 62 END
----
-3842

query I rowsort
SELECT + 11 - + + 19 * + 44 AS col1
----
-825

query I rowsort
SELECT DISTINCT ( + - 54 ) AS col2
----
-54

query II rowsort
SELECT DISTINCT ( 15 ) AS col2, - 48 + - + 79 * 34
----
15
-2734

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT - CASE + 38 WHEN - 44 THEN NULL WHEN + MIN( ALL - 51 ) * COALESCE ( 45 + + 45 * - ( + 21 + 66 ), - 10 ) THEN ( - 42 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5897
SELECT - CASE + 38 WHEN - 44 THEN NULL WHEN + MIN ( ALL - 51 ) * COALESCE ( 45 + + 45 * - ( + 21 + 66 ), - 10 ) THEN ( - 42 ) END
----
NULL

query I rowsort
SELECT + 57 * 18 AS col0
----
1026

query I rowsort
SELECT + 69 * + 2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT DISTINCT + NULLIF ( + - SUM( + 13 ), + MAX( + 76 ) * COUNT( * ) ) * + 91
----
-1183

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT + NULLIF ( + - SUM ( + 13 ), + MAX ( + 76 ) * COUNT ( * ) ) * + 91
----
-1183

onlyif mysql # DIV for integer division: 
query I rowsort label-5901
SELECT + 21 DIV 71 * + 84
----
0

skipif mysql # not compatible
query I rowsort label-5901
SELECT + 21 / 71 * + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT + CASE - CASE + 2 WHEN + 31 * 52 THEN + 47 + 54 * 87 END WHEN COUNT( * ) THEN 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5902
SELECT + CASE - CASE + 2 WHEN + 31 * 52 THEN + 47 + 54 * 87 END WHEN COUNT ( * ) THEN 38 END
----
NULL

query II rowsort
SELECT ( - 56 ) AS col0, - 27 * + 17 AS col0
----
-56
-459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5904
SELECT ALL + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col0, MAX( DISTINCT 77 ) + + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5904
SELECT ALL + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col0, MAX ( DISTINCT 77 ) + + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5905
SELECT + 38 DIV + 32 + - 80 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-5905
SELECT + 38 / + 32 + - 80 AS col1
----
-79

query I rowsort
SELECT + 8 * + 42
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT DISTINCT + ( - + 85 ) * + MAX( + 32 ) * 69
----
-187680

skipif mysql # not compatible
query I rowsort label-5907
SELECT DISTINCT + ( - + 85 ) * + MAX ( + 32 ) * 69
----
-187680

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT ALL + 61 * + - 3 + - + 39 + 2 - COUNT( * ) AS col1
----
-221

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL + 61 * + - 3 + - + 39 + 2 - COUNT ( * ) AS col1
----
-221

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT + SUM( 20 )
----
20

skipif mysql # not compatible
query I rowsort label-5909
SELECT + SUM ( 20 )
----
20

query I rowsort
SELECT ALL - 44 * + 29 + - + 65 - - 57 + - 90 * CASE WHEN + 29 + + 64 * + AVG ( 81 * + 21 ) NOT IN ( 85 ) THEN NULL WHEN NOT NULL IS NULL THEN 84 ELSE NULL END / 71
----
NULL

query I rowsort
SELECT - - 33 * - + 7 * + + 3 * - 23
----
15939

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5912
SELECT ALL 58 * - 2 DIV 98 * + 9 DIV + 55 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL 58 * - 2 / 98 * + 9 / + 55 + COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5913
SELECT + 96 - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5913
SELECT + 96 - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 66 * - 99 AS col0
----
-6534

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT DISTINCT 16 * + + 91 + + 3 * - MAX( + 30 )
----
1366

skipif mysql # not compatible
query I rowsort label-5915
SELECT DISTINCT 16 * + + 91 + + 3 * - MAX ( + 30 )
----
1366

query I rowsort
SELECT DISTINCT + 82 * - 98 + + 75 col0
----
-7961

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT - ( + - ( + - 71 ) ) + + COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-5917
SELECT - ( + - ( + - 71 ) ) + + COUNT ( * )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT + SUM( - 15 ) * + 85 + 48 * + 43 AS col1
----
789

skipif mysql # not compatible
query I rowsort label-5918
SELECT + SUM ( - 15 ) * + 85 + 48 * + 43 AS col1
----
789

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT - + COUNT( * ) - + - CASE + 38 WHEN + 47 THEN NULL ELSE 77 * 53 END
----
4080

skipif mysql # not compatible
query I rowsort label-5919
SELECT - + COUNT ( * ) - + - CASE + 38 WHEN + 47 THEN NULL ELSE 77 * 53 END
----
4080

onlyif mysql # DIV for integer division: 
query I rowsort label-5920
SELECT - + 62 + + 17 * - 75 + - - 17 - 89 DIV 63
----
-1321

skipif mysql # not compatible
query I rowsort label-5920
SELECT - + 62 + + 17 * - 75 + - - 17 - 89 / 63
----
-1321

query I rowsort
SELECT ALL - 65 * - 49 * - ( 38 ) * - + CASE 9 WHEN - 3 * 40 THEN + ( + ( 84 ) ) + 77 END + - 88 - - 57
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5922
SELECT - CAST( NULL AS SIGNED ) * - - CAST( - 91 AS SIGNED ) / - - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT - CAST ( NULL AS INTEGER ) * - - CAST ( - 91 AS INTEGER ) / - - 32 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5923
SELECT ALL + 38 DIV + 52 * - 84 * + + 9 col1
----
0

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL + 38 / + 52 * - 84 * + + 9 col1
----
0

query I rowsort
SELECT DISTINCT + 29 * - - 19
----
551

query I rowsort
SELECT - 88 + - - 40 AS col2
----
-48

query I rowsort
SELECT ALL + NULLIF ( 51, - ( - 11 ) / - 5 ) - + 38
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5927
SELECT - 5 * 60 * CASE + 25 WHEN + COALESCE ( CASE COALESCE ( 65, + 15, 54 * COUNT( * ), COALESCE ( NULLIF ( 97, + 73 + + COUNT( * ) ), 47 ) ) WHEN 65 * - ( + CAST( NULL AS SIGNED ) ) THEN - 36 WHEN + 28 THEN NULL ELSE - 81 END, - 41 * 96 - + 87 * ( + ( - 27 ) / 77 ) ) THEN + 90 WHEN 68 * 25 THEN NULL WHEN COUNT( * ) THEN 37 * 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5927
SELECT - 5 * 60 * CASE + 25 WHEN + COALESCE ( CASE COALESCE ( 65, + 15, 54 * COUNT ( * ), COALESCE ( NULLIF ( 97, + 73 + + COUNT ( * ) ), 47 ) ) WHEN 65 * - ( + CAST ( NULL AS INTEGER ) ) THEN - 36 WHEN + 28 THEN NULL ELSE - 81 END, - 41 * 96 - + 87 * ( + ( - 27 ) / 77 ) ) THEN + 90 WHEN 68 * 25 THEN NULL WHEN COUNT ( * ) THEN 37 * 59 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT - 64 + COUNT( * ) + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-5928
SELECT - 64 + COUNT ( * ) + COUNT ( * )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5929
SELECT - 69 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5929
SELECT - 69 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - + 38 )
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-5931
SELECT ALL 16 * 31 DIV 6 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL 16 * 31 / 6 AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5932
SELECT - CASE 20 WHEN - - 91 THEN + COALESCE ( 16, - COUNT( * ) / 29, - 8 + 44 * ( - COUNT( * ) - - COUNT( * ) / 16 ) ) * 45 WHEN + NULLIF ( + 32, 63 + 26 * - 96 ) THEN - CAST( 4 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5932
SELECT - CASE 20 WHEN - - 91 THEN + COALESCE ( 16, - COUNT ( * ) / 29, - 8 + 44 * ( - COUNT ( * ) - - COUNT ( * ) / 16 ) ) * 45 WHEN + NULLIF ( + 32, 63 + 26 * - 96 ) THEN - CAST ( 4 AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL 9 * - 27
----
-243

query I rowsort
SELECT DISTINCT + 3 + - + 86 - - + 62 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT MIN( + 2 ) * + - 92
----
-184

skipif mysql # not compatible
query I rowsort label-5935
SELECT MIN ( + 2 ) * + - 92
----
-184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5936
SELECT - COUNT( * ) DIV - 32 - 65 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-5936
SELECT - COUNT ( * ) / - 32 - 65 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT - MIN( - 28 )
----
28

skipif mysql # not compatible
query I rowsort label-5937
SELECT - MIN ( - 28 )
----
28

query I rowsort
SELECT DISTINCT 98 + 35 + - + 42 * - 26 * + - 5
----
-5327

onlyif mysql # aggregate syntax: 
query II rowsort label-5939
SELECT ALL + - COUNT( * ) + + 27 * + 80 col0, NULLIF ( + 49, - 72 ) + 43 AS col1
----
2159
92

skipif mysql # not compatible
query II rowsort label-5939
SELECT ALL + - COUNT ( * ) + + 27 * + 80 col0, NULLIF ( + 49, - 72 ) + 43 AS col1
----
2159
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5940
SELECT DISTINCT - CASE + 41 WHEN - 36 THEN NULL WHEN 69 THEN - - COUNT( * ) + ( - 66 ) * 85 END + CAST( NULL AS DECIMAL ) * + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5940
SELECT DISTINCT - CASE + 41 WHEN - 36 THEN NULL WHEN 69 THEN - - COUNT ( * ) + ( - 66 ) * 85 END + CAST ( NULL AS REAL ) * + 87 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 96 + 93 AS col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5942
SELECT ALL NULLIF ( 86, + 5 ) DIV - 19
----
-4

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL NULLIF ( 86, + 5 ) / - 19
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5943
SELECT + 35 * + ( - 76 ) + - + 33 + + COUNT( * ) * 73 DIV - 37 AS col0
----
-2694

skipif mysql # not compatible
query I rowsort label-5943
SELECT + 35 * + ( - 76 ) + - + 33 + + COUNT ( * ) * 73 / - 37 AS col0
----
-2694

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT ALL + COUNT( * ) + + 68
----
69

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL + COUNT ( * ) + + 68
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5945
SELECT DISTINCT 87 DIV 72 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT 87 / 72 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT ALL + 72 * + - COALESCE ( + + 65, + + COUNT( * ) * + 51 - 78 )
----
-4680

skipif mysql # not compatible
query I rowsort label-5946
SELECT ALL + 72 * + - COALESCE ( + + 65, + + COUNT ( * ) * + 51 - 78 )
----
-4680

query I rowsort
SELECT 61 * + 94 * + 58 + + + 74 + + 3
----
332649

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5948
SELECT + 49, - NULLIF ( - NULLIF ( + 75, - 44 ), + ( ( - COUNT( ALL + 2 ) ) ) * + CAST( NULL AS DECIMAL ) ) AS col2
----
49
75

skipif mysql # not compatible
query II rowsort label-5948
SELECT + 49, - NULLIF ( - NULLIF ( + 75, - 44 ), + ( ( - COUNT ( ALL + 2 ) ) ) * + CAST ( NULL AS REAL ) ) AS col2
----
49
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT + - COUNT( ALL + 56 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5949
SELECT + - COUNT ( ALL + 56 ) AS col2
----
-1

query I rowsort
SELECT ALL 71 * 88 col0
----
6248

onlyif mysql # aggregate syntax: 
query II rowsort label-5951
SELECT DISTINCT - 39 col2, SUM( ALL 36 ) AS col1
----
-39
36

skipif mysql # not compatible
query II rowsort label-5951
SELECT DISTINCT - 39 col2, SUM ( ALL 36 ) AS col1
----
-39
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5952
SELECT ALL COUNT( * ) * SUM( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL COUNT ( * ) * SUM ( + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL - 80 AS col0, 44 AS col1
----
-80
44

query II rowsort
SELECT DISTINCT 77 AS col0, 18 AS col0
----
77
18

query I rowsort
SELECT ( 77 ) * + 75 AS col0
----
5775

query I rowsort
SELECT ( + 0 ) - + 27 * + - 91 AS col1
----
2457

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT 32 * - 36 * + + 92 * + 28 * - COUNT( * ) AS col2
----
2967552

skipif mysql # not compatible
query I rowsort label-5957
SELECT 32 * - 36 * + + 92 * + 28 * - COUNT ( * ) AS col2
----
2967552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5958
SELECT ALL + MAX( + + CAST( + - 28 AS SIGNED ) ) * + 1 AS col2, 88 * 16 DIV - 36 + - MAX( ALL 53 )
----
-28
-92

skipif mysql # not compatible
query II rowsort label-5958
SELECT ALL + MAX ( + + CAST ( + - 28 AS INTEGER ) ) * + 1 AS col2, 88 * 16 / - 36 + - MAX ( ALL 53 )
----
-28
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT 22 * ( CASE 10 WHEN + COUNT( * ) / + + 8 + 25 THEN + 20 * + 40 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5959
SELECT 22 * ( CASE 10 WHEN + COUNT ( * ) / + + 8 + 25 THEN + 20 * + 40 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT ALL COUNT( * ) + - - SUM( 23 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL COUNT ( * ) + - - SUM ( 23 ) AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5961
SELECT DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - SUM( + 60 ) * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5961
SELECT DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - SUM ( + 60 ) * 93
----
NULL

query I rowsort
SELECT ALL + 8 + + 29 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT DISTINCT + COUNT( * ) + - 57 * - - 28 - 28
----
-1623

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT + COUNT ( * ) + - 57 * - - 28 - 28
----
-1623

query I rowsort
SELECT ALL - 80 * + ( - 43 ) * 76 + + - 51
----
261389

query I rowsort
SELECT 47 * - 27 * + NULLIF ( - - 11, 89 )
----
-13959

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT 50 - + - 38 * + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-5966
SELECT 50 - + - 38 * + COUNT ( * )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5967
SELECT ALL + ( + 67 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL + ( + 67 ) + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 16 col0, + 86
----
-16
86

query I rowsort
SELECT DISTINCT + + ( - + 91 ) + - COALESCE ( - ( + 53 ), + + 2, ( + 0 ) ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT - MIN( ALL 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-5970
SELECT - MIN ( ALL 11 )
----
-11

query II rowsort
SELECT + 48, + 88 AS col1
----
48
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5972
SELECT ( - COUNT( * ) ) * + ( + COUNT( * ) ) DIV + CASE WHEN ( - 98 ) IS NOT NULL THEN 29 + - COALESCE ( COUNT( * ), - 30 ) * + 68 ELSE 30 * 78 + + 83 END * - 10 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5972
SELECT ( - COUNT ( * ) ) * + ( + COUNT ( * ) ) / + CASE WHEN ( - 98 ) IS NOT NULL THEN 29 + - COALESCE ( COUNT ( * ), - 30 ) * + 68 ELSE 30 * 78 + + 83 END * - 10 AS col1
----
0

query I rowsort
SELECT DISTINCT + + 74 + - 58
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-5974
SELECT ALL - 91 AS col0, 35 - - 58 + COUNT( * ) + COUNT( * ) AS col1
----
-91
95

skipif mysql # not compatible
query II rowsort label-5974
SELECT ALL - 91 AS col0, 35 - - 58 + COUNT ( * ) + COUNT ( * ) AS col1
----
-91
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5975
SELECT + COUNT( * ) col2, - 14 AS col0
----
1
-14

skipif mysql # not compatible
query II rowsort label-5975
SELECT + COUNT ( * ) col2, - 14 AS col0
----
1
-14

query I rowsort
SELECT + - ( + - 16 ) col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5977
SELECT + CAST( - + 24 AS SIGNED ) AS col0, - 4 * + ( - + 34 ) col2
----
-24
136

skipif mysql # not compatible
query II rowsort label-5977
SELECT + CAST ( - + 24 AS INTEGER ) AS col0, - 4 * + ( - + 34 ) col2
----
-24
136

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT + SUM( - 80 ) * NULLIF ( 89, + 72 ) + - 18 AS col1
----
-7138

skipif mysql # not compatible
query I rowsort label-5978
SELECT + SUM ( - 80 ) * NULLIF ( 89, + 72 ) + - 18 AS col1
----
-7138

query I rowsort
SELECT + NULLIF ( - 3, - 51 + - 95 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT DISTINCT - COUNT( + + 96 ) * - 92 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT - COUNT ( + + 96 ) * - 92 AS col1
----
92

query I rowsort
SELECT ALL - - ( - - 45 )
----
45

query I rowsort
SELECT - 99 * - + 91 * - 86
----
-774774

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT ALL - + COUNT( * ) - + 8 + - + 32 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL - + COUNT ( * ) - + 8 + - + 32 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT ALL - + ( + SUM( - - 17 ) ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL - + ( + SUM ( - - 17 ) ) col1
----
-17

query II rowsort
SELECT 90 * + 6 * + 96 AS col2, - 43
----
51840
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-5986
SELECT ALL 70 DIV - 64 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL 70 / - 64 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5987
SELECT + MAX( 34 ) AS col2, CAST( NULL AS SIGNED ) + + + 28 - - - 56 + + NULLIF ( COUNT( * ), + 24 * + 8 ) AS col1
----
34
NULL

skipif mysql # not compatible
query II rowsort label-5987
SELECT + MAX ( 34 ) AS col2, CAST ( NULL AS INTEGER ) + + + 28 - - - 56 + + NULLIF ( COUNT ( * ), + 24 * + 8 ) AS col1
----
34
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5988
SELECT CAST( NULL AS SIGNED ) - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5988
SELECT CAST ( NULL AS INTEGER ) - + 99
----
NULL

query I rowsort
SELECT 15 + - ( - 85 ) + 53
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT ALL NULLIF ( + 14, - 85 + + COUNT( ALL - - 99 ) - + + COUNT( * ) - - 58 ) + - 4
----
10

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL NULLIF ( + 14, - 85 + + COUNT ( ALL - - 99 ) - + + COUNT ( * ) - - 58 ) + - 4
----
10

query I rowsort
SELECT DISTINCT 69 * - - 77 AS col0
----
5313

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5992
SELECT DISTINCT 34 + - COUNT( * ) DIV - - MAX( DISTINCT + + 17 ) * + 49 - 37 - + 47 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT 34 + - COUNT ( * ) / - - MAX ( DISTINCT + + 17 ) * + 49 - 37 - + 47 AS col2
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5993
SELECT COUNT( * ) + - 45 DIV + 47 + 98 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-5993
SELECT COUNT ( * ) + - 45 / + 47 + 98 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT COUNT( * ) * - COUNT( * ) + + + 48
----
47

skipif mysql # not compatible
query I rowsort label-5994
SELECT COUNT ( * ) * - COUNT ( * ) + + + 48
----
47

query I rowsort
SELECT DISTINCT 98 + - 48 col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT - MAX( DISTINCT - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-5996
SELECT - MAX ( DISTINCT - 72 )
----
72

query I rowsort
SELECT ALL 33 + - - 29
----
62

query I rowsort
SELECT + 56 + 33 AS col1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5999
SELECT ALL COALESCE ( COALESCE ( 81, - 75, 94 + - COALESCE ( + ( - 16 ), 53 ) + + 39 DIV 58 ), 76, 27 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5999
SELECT ALL COALESCE ( COALESCE ( 81, - 75, 94 + - COALESCE ( + ( - 16 ), 53 ) + + 39 / 58 ), 76, 27 ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT ALL ( - NULLIF ( + 45, COUNT( * ) + 20 ) ) + - ( - + 58 )
----
13

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL ( - NULLIF ( + 45, COUNT ( * ) + 20 ) ) + - ( - + 58 )
----
13

query I rowsort
SELECT - 63 + 87 col2
----
24

query I rowsort
SELECT DISTINCT 32 - + + 30 col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT DISTINCT + COUNT( * ) * - 4
----
-4

skipif mysql # not compatible
query I rowsort label-6003
SELECT DISTINCT + COUNT ( * ) * - 4
----
-4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6004
SELECT - - COALESCE ( + 18, 52, + - 75 * CAST( NULL AS SIGNED ) ) DIV 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6004
SELECT - - COALESCE ( + 18, 52, + - 75 * CAST ( NULL AS INTEGER ) ) / 56 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT + 20 * - 58 - NULLIF ( + COUNT( * ), + + COUNT( * ) ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6005
SELECT + 20 * - 58 - NULLIF ( + COUNT ( * ), + + COUNT ( * ) ) - + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL - 5 * + 43 + + 44 AS col2, 98
----
-171
98

query I rowsort
SELECT COALESCE ( - 92, 64 ) AS col1
----
-92

query I rowsort
SELECT ALL + - 87 col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT ALL + NULLIF ( + COUNT( * ), + 89 )
----
1

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL + NULLIF ( + COUNT ( * ), + 89 )
----
1

query I rowsort
SELECT - NULLIF ( + 28, - - 45 * - ( + 20 ) + - + 76 )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6011
SELECT - + NULLIF ( - 39, + 3 * + + MAX( ALL NULLIF ( - CAST( NULL AS DECIMAL ), + 3 ) ) + 25 ) DIV 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6011
SELECT - + NULLIF ( - 39, + 3 * + + MAX ( ALL NULLIF ( - CAST ( NULL AS REAL ), + 3 ) ) + 25 ) / 77 AS col0
----
0

query I rowsort
SELECT DISTINCT + ( - - 59 ) col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6013
SELECT COALESCE ( + CAST( NULL AS SIGNED ), COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6013
SELECT COALESCE ( + CAST ( NULL AS INTEGER ), COUNT ( * ) )
----
1

query I rowsort
SELECT + 58 + + 38 AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6015
SELECT ALL - COUNT( * ) * CAST( - 92 AS SIGNED ) + - + 64 col2
----
28

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL - COUNT ( * ) * CAST ( - 92 AS INTEGER ) + - + 64 col2
----
28

query I rowsort
SELECT - 5 * - 21
----
105

query II rowsort
SELECT ALL - ( 5 ) * + 67 + - + 68 AS col1, - 86 AS col2
----
-403
-86

query I rowsort
SELECT ALL - 80 * + 95 * + - 14 AS col1
----
106400

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT COUNT( 9 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6019
SELECT COUNT ( 9 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6020
SELECT ALL + CAST( - ( + 0 ) AS SIGNED ), - 71 + - + ( - 56 ) AS col1
----
0
-15

skipif mysql # not compatible
query II rowsort label-6020
SELECT ALL + CAST ( - ( + 0 ) AS INTEGER ), - 71 + - + ( - 56 ) AS col1
----
0
-15

query I rowsort
SELECT DISTINCT - 97 * - - CASE - 91 WHEN - + 72 THEN NULL ELSE - 70 + + ( - + 25 ) * - 75 END + + 16
----
-175069

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6022
SELECT - COALESCE ( 57, - 16 DIV + 29 * + 96 * - - 36 DIV 4 * 56 + COUNT( * ) )
----
-57

skipif mysql # not compatible
query I rowsort label-6022
SELECT - COALESCE ( 57, - 16 / + 29 * + 96 * - - 36 / 4 * 56 + COUNT ( * ) )
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6023
SELECT ALL + 64 * - 18 + 73 + + 93 - + + CAST( 15 AS SIGNED ) / + 16 + + 53 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL + 64 * - 18 + 73 + + 93 - + + CAST ( 15 AS INTEGER ) / + 16 + + 53 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 63 - + 62 + - 60 - - 90 AS col0
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6025
SELECT + 39 + - COUNT( * ) * + COALESCE ( + - CAST( NULL AS SIGNED ), COUNT( * ) ) * 1 * + 28 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6025
SELECT + 39 + - COUNT ( * ) * + COALESCE ( + - CAST ( NULL AS INTEGER ), COUNT ( * ) ) * 1 * + 28 AS col2
----
11

query I rowsort
SELECT ALL 50 * - 9 AS col2
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT MIN( - 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-6027
SELECT MIN ( - 95 ) AS col0
----
-95

query I rowsort
SELECT ALL - 90 + - 5 + - 24 * + + 64 col2
----
-1631

query I rowsort
SELECT DISTINCT 44 * - 10 * 97
----
-42680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6030
SELECT + + 6 * MAX( ALL - - 87 ) DIV + - SUM( - 60 )
----
8

skipif mysql # not compatible
query I rowsort label-6030
SELECT + + 6 * MAX ( ALL - - 87 ) / + - SUM ( - 60 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6031
SELECT + 52 - - - 11 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT + 52 - - - 11 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 21 * 99
----
2079

query I rowsort
SELECT DISTINCT + 9 * 88 col2
----
792

query I rowsort
SELECT + 18 + ( + 60 ) * - - 60 AS col0
----
3618

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT - - 65 * - 26 * - SUM( - 65 ) AS col1
----
-109850

skipif mysql # not compatible
query I rowsort label-6035
SELECT - - 65 * - 26 * - SUM ( - 65 ) AS col1
----
-109850

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT - + CASE SUM( 88 ) WHEN - - 22 THEN NULL WHEN - - 52 THEN + - 61 + 39 + - MIN( - 18 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT - + CASE SUM ( 88 ) WHEN - - 22 THEN NULL WHEN - - 52 THEN + - 61 + 39 + - MIN ( - 18 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT + + NULLIF ( - - MAX( ALL - 23 ), - 62 ) * + 17
----
-391

skipif mysql # not compatible
query I rowsort label-6037
SELECT + + NULLIF ( - - MAX ( ALL - 23 ), - 62 ) * + 17
----
-391

query II rowsort
SELECT + + 33 AS col1, 85 * + - 98 + - 26
----
33
-8356

query I rowsort
SELECT - CASE - NULLIF ( + + 96, - 88 ) WHEN - 62 THEN - ( + 68 ) WHEN - 12 * + 42 THEN NULL END + - ( - 65 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT - 90 * COUNT( * ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-6040
SELECT - 90 * COUNT ( * ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT ALL + + CASE - - 72 WHEN 97 THEN - + 88 WHEN - - MIN( + + 24 ) * 5 + 62 * - 14 THEN 92 + 24 WHEN COUNT( * ) THEN NULL END / + 17 + 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL + + CASE - - 72 WHEN 97 THEN - + 88 WHEN - - MIN ( + + 24 ) * 5 + 62 * - 14 THEN 92 + 24 WHEN COUNT ( * ) THEN NULL END / + 17 + 22 AS col1
----
NULL

query II rowsort
SELECT 40 AS col2, 93
----
40
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6043
SELECT - - 88 / - MAX( ALL 3 ) + + - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT - - 88 / - MAX ( ALL 3 ) + + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6044
SELECT - 77 DIV + 98 * - + 74 + + - 32
----
-32

skipif mysql # not compatible
query I rowsort label-6044
SELECT - 77 / + 98 * - + 74 + + - 32
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-6045
SELECT - COUNT( ALL 37 ) * - 95 * 49 col2, 14 * 99 * + 89 * + COUNT( * ) * - 35 AS col1
----
4655
-4317390

skipif mysql # not compatible
query II rowsort label-6045
SELECT - COUNT ( ALL 37 ) * - 95 * 49 col2, 14 * 99 * + 89 * + COUNT ( * ) * - 35 AS col1
----
4655
-4317390

onlyif mysql # DIV for integer division: 
query I rowsort label-6046
SELECT DISTINCT ( 30 ) DIV 14 - 45 + + 1
----
-42

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT ( 30 ) / 14 - 45 + + 1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-6047
SELECT DISTINCT + 80 DIV - 71 + + - 30 + + 22
----
-9

skipif mysql # not compatible
query I rowsort label-6047
SELECT DISTINCT + 80 / - 71 + + - 30 + + 22
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6048
SELECT DISTINCT + COALESCE ( + COUNT( * ), + 69 ) / - CAST( NULL AS SIGNED ) + - 21, - MIN( ALL 10 ) - + 8 + 83 AS col2
----
NULL
65

skipif mysql # not compatible
query II rowsort label-6048
SELECT DISTINCT + COALESCE ( + COUNT ( * ), + 69 ) / - CAST ( NULL AS INTEGER ) + - 21, - MIN ( ALL 10 ) - + 8 + 83 AS col2
----
NULL
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6049
SELECT ALL - 47 DIV - COALESCE ( - CAST( NULL AS SIGNED ), 73, - 83 + + + 1 * + + ( - CAST( NULL AS SIGNED ) ) * - 78 + + 26 ) + 96
----
96

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL - 47 / - COALESCE ( - CAST ( NULL AS INTEGER ), 73, - 83 + + + 1 * + + ( - CAST ( NULL AS INTEGER ) ) * - 78 + + 26 ) + 96
----
96

query II rowsort
SELECT - 23 + - 47 col1, 62 AS col1
----
-70
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT ALL + CASE 95 WHEN - + 12 THEN - - 12 * CASE + ( - - 45 ) WHEN - 29 / + COUNT( * ) * + 1 + + 85 * 30 THEN NULL ELSE NULLIF ( 65, - 7 / + 21 + - CASE + ( - 88 ) WHEN + 64 + + 72 THEN 23 END * - 48 ) END + - 71 / + COUNT( DISTINCT + ( - 21 ) * + 31 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL + CASE 95 WHEN - + 12 THEN - - 12 * CASE + ( - - 45 ) WHEN - 29 / + COUNT ( * ) * + 1 + + 85 * 30 THEN NULL ELSE NULLIF ( 65, - 7 / + 21 + - CASE + ( - 88 ) WHEN + 64 + + 72 THEN 23 END * - 48 ) END + - 71 / + COUNT ( DISTINCT + ( - 21 ) * + 31 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6052
SELECT COUNT( * ) * - 8 + + 91 DIV 38
----
-6

skipif mysql # not compatible
query I rowsort label-6052
SELECT COUNT ( * ) * - 8 + + 91 / 38
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6053
SELECT DISTINCT - 76 + 49 * + 19 + + 41 AS col2, - CAST( NULL AS SIGNED ) - - - 92 * ( + CAST( NULL AS SIGNED ) ) / - + 60 + + 76 / + 63
----
896
NULL

skipif mysql # not compatible
query II rowsort label-6053
SELECT DISTINCT - 76 + 49 * + 19 + + 41 AS col2, - CAST ( NULL AS INTEGER ) - - - 92 * ( + CAST ( NULL AS INTEGER ) ) / - + 60 + + 76 / + 63
----
896
NULL

query I rowsort
SELECT ALL - 49 * + + 69 * - 30
----
101430

query I rowsort
SELECT 58 * + + 58 + + 67
----
3431

query II rowsort
SELECT 76 + + 54 AS col1, 76 + - 90 AS col1
----
130
-14

query I rowsort
SELECT ALL + 31 * - 79
----
-2449

query I rowsort
SELECT ALL + 59 - 64 * 54 col2
----
-3397

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT 66 + - SUM( DISTINCT - 41 )
----
107

skipif mysql # not compatible
query I rowsort label-6059
SELECT 66 + - SUM ( DISTINCT - 41 )
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6060
SELECT COUNT( ALL 64 ) + - - 92 + 78 * 78 + - + CAST( NULL AS SIGNED ) + 91 * + MIN( 37 ) * 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT COUNT ( ALL 64 ) + - - 92 + 78 * 78 + - + CAST ( NULL AS INTEGER ) + 91 * + MIN ( 37 ) * 34 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6061
SELECT ALL + COUNT( * ) / + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL + COUNT ( * ) / + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6062
SELECT - COUNT( - 23 ), 71 col1
----
-1
71

skipif mysql # not compatible
query II rowsort label-6062
SELECT - COUNT ( - 23 ), 71 col1
----
-1
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT ALL - 80 - - COUNT( * ) + 27 - - - SUM( DISTINCT 66 ) * - + 8 * - + 15 + - COALESCE ( - - 36, - 72 ) AS col1
----
-8008

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL - 80 - - COUNT ( * ) + 27 - - - SUM ( DISTINCT 66 ) * - + 8 * - + 15 + - COALESCE ( - - 36, - 72 ) AS col1
----
-8008

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6064
SELECT ALL + COUNT( * ) DIV 28 AS col2, 54 * - 40 AS col2
----
0
-2160

skipif mysql # not compatible
query II rowsort label-6064
SELECT ALL + COUNT ( * ) / 28 AS col2, 54 * - 40 AS col2
----
0
-2160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6065
SELECT + COUNT( * ) DIV - COUNT( * ) + - - 37 col1
----
36

skipif mysql # not compatible
query I rowsort label-6065
SELECT + COUNT ( * ) / - COUNT ( * ) + - - 37 col1
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6066
SELECT ALL - 88 DIV + COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL - 88 / + COUNT ( * ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT + 85 + SUM( DISTINCT ( + 11 ) )
----
96

skipif mysql # not compatible
query I rowsort label-6067
SELECT + 85 + SUM ( DISTINCT ( + 11 ) )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6068
SELECT CAST( NULL AS SIGNED ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-6068
SELECT CAST ( NULL AS INTEGER ) * 12
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6069
SELECT 56 DIV 27 AS col0, - 70 AS col0
----
2
-70

skipif mysql # not compatible
query II rowsort label-6069
SELECT 56 / 27 AS col0, - 70 AS col0
----
2
-70

query I rowsort
SELECT DISTINCT 26 * + + 86 + 9 AS col2
----
2245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6071
SELECT 35 DIV ( + 69 ) * 94 - 43 + + 0 - - - MIN( - 24 ) + + - 56 DIV CAST( 73 AS SIGNED ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-6071
SELECT 35 / ( + 69 ) * 94 - 43 + + 0 - - - MIN ( - 24 ) + + - 56 / CAST ( 73 AS INTEGER ) AS col1
----
-19

query II rowsort
SELECT ALL + 61 + + 28 AS col0, 37 + + 3 * 10 AS col0
----
89
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT + COUNT( + 36 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6073
SELECT + COUNT ( + 36 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT 25 * + COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-6074
SELECT 25 * + COUNT ( * ) AS col2
----
25

query I rowsort
SELECT ALL + 12 + - + 61 AS col0
----
-49

query II rowsort
SELECT - 11 + + 72 col1, 66 + + - 38 AS col2
----
61
28

query I rowsort
SELECT 4 * - 79 * - + 49 col2
----
15484

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT ALL COUNT( * ) + 68 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL COUNT ( * ) + 68 AS col2
----
69

query I rowsort
SELECT ALL - 89 + 49
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6080
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-6080
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 17
----
NULL

query II rowsort
SELECT DISTINCT - 2, 51 AS col0
----
-2
51

query I rowsort
SELECT DISTINCT 46 + + + 6
----
52

query I rowsort
SELECT DISTINCT + 17 * + - 3 AS col2
----
-51

query I rowsort
SELECT DISTINCT ( - 6 ) * - 40 AS col2
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6085
SELECT ALL COUNT( ALL + 51 ) + - - 63 + 42 + + - 25 * 52 * - - 52 * - 47 * - 88 * + CAST( NULL AS SIGNED ) / - COUNT( ALL 39 ) + 31 * NULLIF ( - 90, - 16 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL COUNT ( ALL + 51 ) + - - 63 + 42 + + - 25 * 52 * - - 52 * - 47 * - 88 * + CAST ( NULL AS INTEGER ) / - COUNT ( ALL 39 ) + 31 * NULLIF ( - 90, - 16 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6086
SELECT 53 * - - 56 - - CAST( + 4 AS SIGNED ) AS col0
----
2972

skipif mysql # not compatible
query I rowsort label-6086
SELECT 53 * - - 56 - - CAST ( + 4 AS INTEGER ) AS col0
----
2972

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6087
SELECT CAST( NULL AS DECIMAL ) / + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6087
SELECT CAST ( NULL AS REAL ) / + - 8
----
NULL

query I rowsort
SELECT 66 * + - 95 AS col0
----
-6270

query I rowsort
SELECT DISTINCT - COALESCE ( - 28, - 51 ) AS col0
----
28

query I rowsort
SELECT ALL - 90 - - + 46 AS col1
----
-44

query I rowsort
SELECT 56 * - 86
----
-4816

query I rowsort
SELECT + 53 * + - NULLIF ( - ( 27 ), + 13 * + + 89 ) - + ( 94 ) + - 46
----
1291

query I rowsort
SELECT DISTINCT - NULLIF ( - - 32, 66 )
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-6094
SELECT 19, + MAX( DISTINCT + + 23 ) AS col1
----
19
23

skipif mysql # not compatible
query II rowsort label-6094
SELECT 19, + MAX ( DISTINCT + + 23 ) AS col1
----
19
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6095
SELECT ALL - CASE + 25 WHEN + ( + 79 ) + 29 + - + 73 DIV + + 76 * - + 80 THEN NULL ELSE + - 43 END * 97 DIV - COUNT( * ) AS col1
----
-4171

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL - CASE + 25 WHEN + ( + 79 ) + 29 + - + 73 / + + 76 * - + 80 THEN NULL ELSE + - 43 END * 97 / - COUNT ( * ) AS col1
----
-4171

query I rowsort
SELECT - 53 * - 72 + - 76
----
3740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6097
SELECT - 43 * - NULLIF ( - + CAST( NULL AS SIGNED ), - 15 ) * + CASE NULLIF ( - COUNT( * ), + - 16 ) WHEN - CASE - 93 WHEN + 21 THEN NULLIF ( + CAST( - 52 AS SIGNED ), - 83 ) WHEN 14 + + ( - 85 + AVG ( DISTINCT 31 ) ) THEN + CASE 50 WHEN 53 / + ( 68 ) THEN - COUNT( * ) WHEN + ( + 9 ) THEN COUNT( * ) / COUNT( * ) ELSE NULL END ELSE - 71 * ( - ( - 27 ) ) + 1 END / - 90 THEN - 67 * COUNT( * ) ELSE NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6097
SELECT - 43 * - NULLIF ( - + CAST ( NULL AS INTEGER ), - 15 ) * + CASE NULLIF ( - COUNT ( * ), + - 16 ) WHEN - CASE - 93 WHEN + 21 THEN NULLIF ( + CAST ( - 52 AS INTEGER ), - 83 ) WHEN 14 + + ( - 85 + AVG ( DISTINCT 31 ) ) THEN + CASE 50 WHEN 53 / + ( 68 ) THEN - COUNT ( * ) WHEN + ( + 9 ) THEN COUNT ( * ) / COUNT ( * ) ELSE NULL END ELSE - 71 * ( - ( - 27 ) ) + 1 END / - 90 THEN - 67 * COUNT ( * ) ELSE NULL END + COUNT ( * )
----
NULL

query I rowsort
SELECT COALESCE ( - 94, - 28 * - 38 - - 0 ) + - 68 col0
----
-162

query I rowsort
SELECT - 9 * 42 * - + 56 * - 35 col2
----
-740880

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6100
SELECT 94 + - 51 - 29 + 59 + - + 94 col2, CAST( NULL AS SIGNED ) AS col2
----
-21
NULL

skipif mysql # not compatible
query II rowsort label-6100
SELECT 94 + - 51 - 29 + 59 + - + 94 col2, CAST ( NULL AS INTEGER ) AS col2
----
-21
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6101
SELECT DISTINCT + + 23 * 1 * 16 + 50 + COUNT( * ) DIV - 25
----
418

skipif mysql # not compatible
query I rowsort label-6101
SELECT DISTINCT + + 23 * 1 * 16 + 50 + COUNT ( * ) / - 25
----
418

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT ALL SUM( DISTINCT + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL SUM ( DISTINCT + 57 )
----
57

query II rowsort
SELECT - - 70, 94 * - 91 AS col2
----
70
-8554

onlyif mysql # DIV for integer division: 
query I rowsort label-6104
SELECT DISTINCT + - 48 + - - 46 DIV - + 92
----
-48

skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT + - 48 + - - 46 / - + 92
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT CASE ( - - COUNT( * ) ) WHEN 98 + - 44 THEN + 1 WHEN 25 + - + COUNT( * ) THEN NULL WHEN + 72 + + 32 THEN NULL ELSE 9 + 55 END AS col0
----
64

skipif mysql # not compatible
query I rowsort label-6105
SELECT CASE ( - - COUNT ( * ) ) WHEN 98 + - 44 THEN + 1 WHEN 25 + - + COUNT ( * ) THEN NULL WHEN + 72 + + 32 THEN NULL ELSE 9 + 55 END AS col0
----
64

query I rowsort
SELECT ALL + 32 + + 47 - + 6 + - 22 * - - 9 + - + 67 * - 0 - + 58
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT - - CASE - + COUNT( * ) WHEN + - 25 THEN NULL ELSE + - 84 END AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-6107
SELECT - - CASE - + COUNT ( * ) WHEN + - 25 THEN NULL ELSE + - 84 END AS col0
----
-84

query I rowsort
SELECT + 16 + - 67 AS col2
----
-51

query II rowsort
SELECT ALL 25 AS col2, - ( + 64 ) AS col0
----
25
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT DISTINCT - ( + 7 ) + + COUNT( * ) + + - 13 * COUNT( ALL - 0 ) * - - 71 + - 28 col2
----
-957

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT - ( + 7 ) + + COUNT ( * ) + + - 13 * COUNT ( ALL - 0 ) * - - 71 + - 28 col2
----
-957

query I rowsort
SELECT 42 + + 83 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT CASE - + 3 WHEN + 68 THEN - 27 - + - 70 WHEN + 19 + 29 THEN NULL WHEN SUM( + + ( 16 ) ) THEN 83 ELSE + 15 * + 9 END AS col2
----
135

skipif mysql # not compatible
query I rowsort label-6112
SELECT CASE - + 3 WHEN + 68 THEN - 27 - + - 70 WHEN + 19 + 29 THEN NULL WHEN SUM ( + + ( 16 ) ) THEN 83 ELSE + 15 * + 9 END AS col2
----
135

query II rowsort
SELECT + 30, + 9 AS col1
----
30
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT CASE + 86 WHEN - MAX( 88 ) THEN NULLIF ( COALESCE ( + 89, 93 * - 10 ), + + ( COUNT( * ) ) ) WHEN + 12 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6114
SELECT CASE + 86 WHEN - MAX ( 88 ) THEN NULLIF ( COALESCE ( + 89, 93 * - 10 ), + + ( COUNT ( * ) ) ) WHEN + 12 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT 58 * + 20 + + MAX( DISTINCT + ( - 66 ) )
----
1094

skipif mysql # not compatible
query I rowsort label-6115
SELECT 58 * + 20 + + MAX ( DISTINCT + ( - 66 ) )
----
1094

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT + 69 - - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-6116
SELECT + 69 - - COUNT ( * )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6117
SELECT DISTINCT + 2 AS col1, CAST( - 87 AS SIGNED )
----
2
-87

skipif mysql # not compatible
query II rowsort label-6117
SELECT DISTINCT + 2 AS col1, CAST ( - 87 AS INTEGER )
----
2
-87

query I rowsort
SELECT + 16 + 20 + - 43 * - 2
----
122

query I rowsort
SELECT ALL 62 * + 17 - + 12 + 51 col0
----
1093

onlyif mysql # aggregate syntax: 
query II rowsort label-6120
SELECT ALL + 95 AS col0, + COUNT( * ) AS col2
----
95
1

skipif mysql # not compatible
query II rowsort label-6120
SELECT ALL + 95 AS col0, + COUNT ( * ) AS col2
----
95
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6121
SELECT ALL + 11 col2, - 3 DIV - - ( - ( - SUM( ALL - 53 ) ) ) AS col1
----
11
0

skipif mysql # not compatible
query II rowsort label-6121
SELECT ALL + 11 col2, - 3 / - - ( - ( - SUM ( ALL - 53 ) ) ) AS col1
----
11
0

query I rowsort
SELECT + 56 * + 59
----
3304

query I rowsort
SELECT + 62 + - 75
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6124
SELECT ALL 68 * - ( + COUNT( * ) ) * - COUNT( * ) col2, 58 * - 67 / + 83 * CAST( NULL AS SIGNED ) - - 85 + + 10 + - 3 * - 26 col0
----
68
NULL

skipif mysql # not compatible
query II rowsort label-6124
SELECT ALL 68 * - ( + COUNT ( * ) ) * - COUNT ( * ) col2, 58 * - 67 / + 83 * CAST ( NULL AS INTEGER ) - - 85 + + 10 + - 3 * - 26 col0
----
68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT - ( 0 ) + - - MAX( ALL 89 ) * + - 84
----
-7476

skipif mysql # not compatible
query I rowsort label-6125
SELECT - ( 0 ) + - - MAX ( ALL 89 ) * + - 84
----
-7476

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT + CASE - 9 WHEN + + COUNT( * ) THEN 26 + + ( 34 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6126
SELECT + CASE - 9 WHEN + + COUNT ( * ) THEN 26 + + ( 34 ) END
----
NULL

query I rowsort
SELECT - 45 * + + 88 AS col0
----
-3960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6128
SELECT + COUNT( * ) * COUNT( * ) DIV + COUNT( * ) + + 35 * - NULLIF ( 6, + COUNT( + 4 ) * 16 * ( 72 ) ) + 18 AS col1
----
-191

skipif mysql # not compatible
query I rowsort label-6128
SELECT + COUNT ( * ) * COUNT ( * ) / + COUNT ( * ) + + 35 * - NULLIF ( 6, + COUNT ( + 4 ) * 16 * ( 72 ) ) + 18 AS col1
----
-191

onlyif mysql # aggregate syntax: 
query II rowsort label-6129
SELECT - 1 AS col1, COUNT( * ) col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-6129
SELECT - 1 AS col1, COUNT ( * ) col0
----
-1
1

query I rowsort
SELECT ALL ( + 17 ) AS col0
----
17

query II rowsort
SELECT ALL 46, 42 AS col0
----
46
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6132
SELECT ALL + COUNT( * ) + + 13 * - 99 + - + 85 * - - COUNT( * ) * - 19 * - 0 DIV - 94 DIV 34 * + COUNT( * ) AS col2
----
-1286

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL + COUNT ( * ) + + 13 * - 99 + - + 85 * - - COUNT ( * ) * - 19 * - 0 / - 94 / 34 * + COUNT ( * ) AS col2
----
-1286

onlyif mysql # DIV for integer division: 
query I rowsort label-6133
SELECT ALL - 6 DIV + 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL - 6 / + 52 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT ALL + 47 + - - ( + SUM( DISTINCT + - 26 ) ) + + 68
----
89

skipif mysql # not compatible
query I rowsort label-6134
SELECT ALL + 47 + - - ( + SUM ( DISTINCT + - 26 ) ) + + 68
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT - - MAX( + 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-6135
SELECT - - MAX ( + 43 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT ALL + NULLIF ( 16, - 39 + 51 + - NULLIF ( + + MIN( ALL 32 ), + 17 * + + MIN( ALL + 11 ) ) )
----
16

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL + NULLIF ( 16, - 39 + 51 + - NULLIF ( + + MIN ( ALL 32 ), + 17 * + + MIN ( ALL + 11 ) ) )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6137
SELECT - + 67 * + + 0 DIV + + 28 + - - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6137
SELECT - + 67 * + + 0 / + + 28 + - - COUNT ( * ) AS col2
----
1

query II rowsort
SELECT - + 62 AS col2, 5 + - + 16 AS col2
----
-62
-11

query I rowsort
SELECT ALL + + 46 * - 72
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT DISTINCT - MAX( DISTINCT - 34 ) + - + SUM( - + 88 )
----
122

skipif mysql # not compatible
query I rowsort label-6140
SELECT DISTINCT - MAX ( DISTINCT - 34 ) + - + SUM ( - + 88 )
----
122

query II rowsort
SELECT DISTINCT + 70 AS col1, + 69 AS col0
----
70
69

query I rowsort
SELECT ALL - - 70 * - 88 * - - 28 * - - 74 AS col1
----
-12763520

query II rowsort
SELECT 72 AS col0, 79 AS col0
----
72
79

query I rowsort
SELECT ALL - 9 * + - 8
----
72

query II rowsort
SELECT ALL + 21 AS col0, - 13
----
21
-13

query I rowsort
SELECT - 0 + + - 64
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6147
SELECT ALL COALESCE ( 16, + - 43 + + 43 - + - 14 + + + 65 + CAST( - COUNT( * ) AS SIGNED ) * + 27 * + 66 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL COALESCE ( 16, + - 43 + + 43 - + - 14 + + + 65 + CAST ( - COUNT ( * ) AS INTEGER ) * + 27 * + 66 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT - 76 + + MAX( ALL - 30 ) col0
----
-106

skipif mysql # not compatible
query I rowsort label-6148
SELECT - 76 + + MAX ( ALL - 30 ) col0
----
-106

query II rowsort
SELECT DISTINCT ( + 63 ) AS col0, 87 AS col0
----
63
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6150
SELECT - 23 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6150
SELECT - 23 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT + 46 + - + 70 AS col1, ( - 19 )
----
-24
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-6152
SELECT + MIN( - 18 ) col2, + 58 AS col0
----
-18
58

skipif mysql # not compatible
query II rowsort label-6152
SELECT + MIN ( - 18 ) col2, + 58 AS col0
----
-18
58

query I rowsort
SELECT ALL 87 * + - 97 * - 47
----
396633

query I rowsort
SELECT - 92 * ( - + 37 ) * 10 AS col0
----
34040

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6155
SELECT DISTINCT + CAST( + 84 AS SIGNED ) AS col2, + 84 * 54 AS col2
----
84
4536

skipif mysql # not compatible
query II rowsort label-6155
SELECT DISTINCT + CAST ( + 84 AS INTEGER ) AS col2, + 84 * 54 AS col2
----
84
4536

onlyif mysql # DIV for integer division: 
query I rowsort label-6156
SELECT + ( + - 83 ) * - 1 DIV 90 DIV - + ( 44 )
----
0

skipif mysql # not compatible
query I rowsort label-6156
SELECT + ( + - 83 ) * - 1 / 90 / - + ( 44 )
----
0

query I rowsort
SELECT DISTINCT - 82 * - ( - + ( + 33 ) )
----
-2706

query I rowsort
SELECT ALL + 27 * + 71
----
1917

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT - CASE MIN( DISTINCT - + 49 ) WHEN - 77 * COUNT( * ) * - + 78 + + 47 THEN + COALESCE ( + 11, - ( + - 85 ) + + 21 * + SUM( ALL 43 ) ) END * + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6159
SELECT - CASE MIN ( DISTINCT - + 49 ) WHEN - 77 * COUNT ( * ) * - + 78 + + 47 THEN + COALESCE ( + 11, - ( + - 85 ) + + 21 * + SUM ( ALL 43 ) ) END * + 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT - 56 * - COUNT( * ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-6160
SELECT - 56 * - COUNT ( * ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT + CASE + 64 WHEN - 71 * + - COUNT( * ) / - 81 + COUNT( * ) THEN + - 17 * ( + - COUNT( * ) ) WHEN + SUM( ALL - + 31 ) THEN NULL END * - 21 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6161
SELECT + CASE + 64 WHEN - 71 * + - COUNT ( * ) / - 81 + COUNT ( * ) THEN + - 17 * ( + - COUNT ( * ) ) WHEN + SUM ( ALL - + 31 ) THEN NULL END * - 21 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6162
SELECT - 33 * - COUNT( * ) AS col0, - 86 + + COUNT( * ) DIV + - COUNT( * ) * - 1 AS col0
----
33
-85

skipif mysql # not compatible
query II rowsort label-6162
SELECT - 33 * - COUNT ( * ) AS col0, - 86 + + COUNT ( * ) / + - COUNT ( * ) * - 1 AS col0
----
33
-85

query I rowsort
SELECT + 39 * - 9
----
-351

query II rowsort
SELECT ( + 72 ), - 66 * 35 * 72 AS col2
----
72
-166320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6165
SELECT + ( + 32 ), - CASE 36 WHEN 85 + + NULLIF ( - - CAST( - 29 AS SIGNED ), - - 41 * - 30 + + + 96 - + 13 * 3 ) THEN 84 WHEN - SUM( 57 ) THEN 48 * 26 ELSE NULL END + 1 AS col1
----
32
NULL

skipif mysql # not compatible
query II rowsort label-6165
SELECT + ( + 32 ), - CASE 36 WHEN 85 + + NULLIF ( - - CAST ( - 29 AS INTEGER ), - - 41 * - 30 + + + 96 - + 13 * 3 ) THEN 84 WHEN - SUM ( 57 ) THEN 48 * 26 ELSE NULL END + 1 AS col1
----
32
NULL

query II rowsort
SELECT ( 13 ) AS col2, - 13 AS col2
----
13
-13

query II rowsort
SELECT ( - 87 ) AS col1, 64 * - 69 AS col1
----
-87
-4416

query II rowsort
SELECT DISTINCT - 10 * 16 AS col1, + 98
----
-160
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT ALL - 84 * + COUNT( * ) + 44 * - 27
----
-1272

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL - 84 * + COUNT ( * ) + 44 * - 27
----
-1272

query I rowsort
SELECT DISTINCT + NULLIF ( + + 22, + 4 + - 99 )
----
22

query I rowsort
SELECT + COALESCE ( - + 57, + 0 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT ALL COUNT( * ) * 83 * COUNT( * ) + - 30
----
53

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL COUNT ( * ) * 83 * COUNT ( * ) + - 30
----
53

query II rowsort
SELECT ALL + - ( + 63 ), + 88 AS col0
----
-63
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6174
SELECT ALL + 55 * - CAST( + 30 AS SIGNED ) + + 36 AS col1
----
-1614

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL + 55 * - CAST ( + 30 AS INTEGER ) + + 36 AS col1
----
-1614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6175
SELECT CAST( + SUM( DISTINCT - 58 ) AS SIGNED ) col1
----
-58

skipif mysql # not compatible
query I rowsort label-6175
SELECT CAST ( + SUM ( DISTINCT - 58 ) AS INTEGER ) col1
----
-58

query II rowsort
SELECT ALL + ( NULLIF ( 60, - 50 + 22 ) ) AS col1, - 46
----
60
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT + 85 + + - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-6177
SELECT + 85 + + - COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-6178
SELECT CASE + 49 WHEN + + SUM( DISTINCT - 1 ) * - - 78 * 8 * + 40 THEN - 2 WHEN - 19 THEN NULL WHEN + 85 THEN NULL ELSE NULL END AS col2, 21
----
NULL
21

skipif mysql # not compatible
query II rowsort label-6178
SELECT CASE + 49 WHEN + + SUM ( DISTINCT - 1 ) * - - 78 * 8 * + 40 THEN - 2 WHEN - 19 THEN NULL WHEN + 85 THEN NULL ELSE NULL END AS col2, 21
----
NULL
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6179
SELECT + + CAST( NULL AS SIGNED ) + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-6179
SELECT + + CAST ( NULL AS INTEGER ) + - 71
----
NULL

query I rowsort
SELECT ALL CASE - + 49 WHEN - 59 THEN ( - 83 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6181
SELECT ALL - + 47 * + 5 + - COUNT( * ) - 49 DIV - CAST( - 21 AS SIGNED ) + + 23 + - 15 + + COUNT( + 67 ) + + 61 * + COUNT( * ) + 16 + COUNT( * ) AS col2
----
-151

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL - + 47 * + 5 + - COUNT ( * ) - 49 / - CAST ( - 21 AS INTEGER ) + + 23 + - 15 + + COUNT ( + 67 ) + + 61 * + COUNT ( * ) + 16 + COUNT ( * ) AS col2
----
-151

onlyif mysql # DIV for integer division: 
query I rowsort label-6182
SELECT ALL + - 6 DIV - - 94 * 22
----
0

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL + - 6 / - - 94 * 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT ALL + 0 * - - ( - - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-6183
SELECT ALL + 0 * - - ( - - COUNT ( * ) )
----
0

query I rowsort
SELECT 48 + - 27 * - - 27
----
-681

query I rowsort
SELECT - 87 * - - 52 AS col0
----
-4524

query I rowsort
SELECT 25 * 60
----
1500

query I rowsort
SELECT 31 + + 98 * + + 46
----
4539

onlyif mysql # aggregate syntax: 
query II rowsort label-6188
SELECT - 72 AS col1, + 43 + - 10 + - 92 + - COUNT( * ) * - ( - COALESCE ( 25, - COUNT( DISTINCT - + 13 ) * 30 ) )
----
-72
-84

skipif mysql # not compatible
query II rowsort label-6188
SELECT - 72 AS col1, + 43 + - 10 + - 92 + - COUNT ( * ) * - ( - COALESCE ( 25, - COUNT ( DISTINCT - + 13 ) * 30 ) )
----
-72
-84

query I rowsort
SELECT DISTINCT - 13 * 20 * 79 * - 72
----
1478880

query I rowsort
SELECT ALL - 4 * - 41
----
164

query II rowsort
SELECT DISTINCT 34, - 25 AS col0
----
34
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT 69 * - + COUNT( * ) * + - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-6192
SELECT 69 * - + COUNT ( * ) * + - COUNT ( * )
----
69

query I rowsort
SELECT ALL - 95 * - 62
----
5890

onlyif mysql # DIV for integer division: 
query I rowsort label-6194
SELECT 59 DIV - 72 * + 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6194
SELECT 59 / - 72 * + 14 AS col2
----
0

query I rowsort
SELECT 95 * 73 AS col1
----
6935

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT ALL + 69 + + - COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL + 69 + + - COUNT ( * ) AS col2
----
68

query I rowsort
SELECT 75 + + - 87
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT ALL + COALESCE ( 80, - COUNT( * ) * + + 18 - 85 ) * - 18 * + 43 - + + 64 * COUNT( * ) * COUNT( * ) AS col2
----
-61984

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL + COALESCE ( 80, - COUNT ( * ) * + + 18 - 85 ) * - 18 * + 43 - + + 64 * COUNT ( * ) * COUNT ( * ) AS col2
----
-61984

query I rowsort
SELECT 85 + - 99 - + 14
----
-28

query I rowsort
SELECT ALL + 69 + ( 9 )
----
78

query I rowsort
SELECT + - ( 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT ALL COUNT( * ) + + + COUNT( * ) - + 60 + + 14 * 2 * 82 + + 29 AS col0
----
2267

skipif mysql # not compatible
query I rowsort label-6202
SELECT ALL COUNT ( * ) + + + COUNT ( * ) - + 60 + + 14 * 2 * 82 + + 29 AS col0
----
2267

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT ALL COUNT( * ) + - 52 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL COUNT ( * ) + - 52 AS col0
----
-51

query I rowsort
SELECT ALL + + ( ( - 65 ) ) + - 20
----
-85

query I rowsort
SELECT ( + + 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT DISTINCT - COUNT( * ) * - 54 col1
----
54

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT - COUNT ( * ) * - 54 col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6207
SELECT ALL + ( + - 40 ) + + CASE 32 WHEN + - CAST( NULL AS SIGNED ) * + COUNT( * ) / - 69 * COUNT( * ) THEN - NULLIF ( - + MAX( DISTINCT + 31 ), + 94 ) WHEN + - 63 THEN 83 ELSE NULLIF ( + 67, + 51 * - 63 ) END
----
27

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL + ( + - 40 ) + + CASE 32 WHEN + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) / - 69 * COUNT ( * ) THEN - NULLIF ( - + MAX ( DISTINCT + 31 ), + 94 ) WHEN + - 63 THEN 83 ELSE NULLIF ( + 67, + 51 * - 63 ) END
----
27

query II rowsort
SELECT 89 AS col1, - 59
----
89
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6209
SELECT 48 * + + 55 DIV - ( + COUNT( - ( + + 39 ) ) ), + 88 * - - 5 + - COALESCE ( + 0, - 71 * + COUNT( * ) * - 12 + CAST( NULL AS SIGNED ) ) AS col1
----
-2640
440

skipif mysql # not compatible
query II rowsort label-6209
SELECT 48 * + + 55 / - ( + COUNT ( - ( + + 39 ) ) ), + 88 * - - 5 + - COALESCE ( + 0, - 71 * + COUNT ( * ) * - 12 + CAST ( NULL AS INTEGER ) ) AS col1
----
-2640
440

query II rowsort
SELECT ALL - 35, 25 AS col1
----
-35
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6211
SELECT ALL + - CASE + 23 WHEN + + 67 THEN 76 + - 5 - 63 + 29 * + + CAST( ( 32 ) AS SIGNED ) ELSE - CAST( NULL AS SIGNED ) / COUNT( * ) * - COUNT( * ) * 46 + + CAST( 41 + + 89 AS DECIMAL ) + - 51 END - + 66 * + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL + - CASE + 23 WHEN + + 67 THEN 76 + - 5 - 63 + 29 * + + CAST ( ( 32 ) AS INTEGER ) ELSE - CAST ( NULL AS INTEGER ) / COUNT ( * ) * - COUNT ( * ) * 46 + + CAST ( 41 + + 89 AS REAL ) + - 51 END - + 66 * + 63 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT ALL 49 - + COUNT( + ( 65 ) ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL 49 - + COUNT ( + ( 65 ) ) AS col1
----
48

query II rowsort
SELECT DISTINCT 6 * - 71 * + - 14 * NULLIF ( - 94, + 56 / - 18 * + + 35 + NULLIF ( + 88, - 38 ) ), 11 AS col0
----
-560616
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ALL + CASE - + 67 WHEN + 92 THEN NULL ELSE + 3 + + COUNT( * ) END
----
4

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL + CASE - + 67 WHEN + 92 THEN NULL ELSE + 3 + + COUNT ( * ) END
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT + MAX( - 76 ) * + ( - 51 ) + - 72 AS col1
----
3804

skipif mysql # not compatible
query I rowsort label-6215
SELECT + MAX ( - 76 ) * + ( - 51 ) + - 72 AS col1
----
3804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6216
SELECT ALL - 27 * + CAST( NULLIF ( + COUNT( * ), + 71 + + - 40 ) AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL - 27 * + CAST ( NULLIF ( + COUNT ( * ), + 71 + + - 40 ) AS INTEGER )
----
-27

query I rowsort
SELECT - 94 + - 66 col1
----
-160

onlyif mysql # aggregate syntax: 
query II rowsort label-6218
SELECT 34 - - ( - 64 ) - + - 88 AS col1, - ( - + COUNT( * ) ) col0
----
58
1

skipif mysql # not compatible
query II rowsort label-6218
SELECT 34 - - ( - 64 ) - + - 88 AS col1, - ( - + COUNT ( * ) ) col0
----
58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT 41 + MAX( DISTINCT - 96 ) * 15 * - - 72
----
-103639

skipif mysql # not compatible
query I rowsort label-6219
SELECT 41 + MAX ( DISTINCT - 96 ) * 15 * - - 72
----
-103639

query II rowsort
SELECT ALL 81 * 32, - ( 50 ) AS col1
----
2592
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6221
SELECT CAST( - 21 AS SIGNED ) + 33
----
12

skipif mysql # not compatible
query I rowsort label-6221
SELECT CAST ( - 21 AS INTEGER ) + 33
----
12

query II rowsort
SELECT 50 * + 91 col1, 0 * - 0 col2
----
4550
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6223
SELECT 95 DIV 66 * - + 19 * 65 col1
----
-1235

skipif mysql # not compatible
query I rowsort label-6223
SELECT 95 / 66 * - + 19 * 65 col1
----
-1235

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT ALL COUNT( * ) + + 65 * - 61 AS col2
----
-3964

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL COUNT ( * ) + + 65 * - 61 AS col2
----
-3964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6225
SELECT CAST( 14 AS SIGNED ) * + 69 * 43 + COUNT( * ) + MAX( 48 ) * - 56
----
38851

skipif mysql # not compatible
query I rowsort label-6225
SELECT CAST ( 14 AS INTEGER ) * + 69 * 43 + COUNT ( * ) + MAX ( 48 ) * - 56
----
38851

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT 1 + - 20 + - 45 + - 16 * 82 * ( - - 73 ) + + + COUNT( * )
----
-95839

skipif mysql # not compatible
query I rowsort label-6226
SELECT 1 + - 20 + - 45 + - 16 * 82 * ( - - 73 ) + + + COUNT ( * )
----
-95839

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT 0 * - 98 * - COUNT( * ) * - 85
----
0

skipif mysql # not compatible
query I rowsort label-6227
SELECT 0 * - 98 * - COUNT ( * ) * - 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT - ( 49 ) * - - 36 - - COUNT( * )
----
-1763

skipif mysql # not compatible
query I rowsort label-6228
SELECT - ( 49 ) * - - 36 - - COUNT ( * )
----
-1763

query I rowsort
SELECT 70 - + 99 * + COALESCE ( + 39, + 95 ) * - - 26 * ( - - 82 )
----
-8231582

onlyif mysql # DIV for integer division: 
query I rowsort label-6230
SELECT ALL + - 39 DIV + - 19 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL + - 39 / + - 19 AS col0
----
2

query I rowsort
SELECT DISTINCT + 66 * + 90 + + 92 AS col2
----
6032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6232
SELECT DISTINCT + ( - CAST( - - 89 AS SIGNED ) ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT + ( - CAST ( - - 89 AS INTEGER ) ) AS col1
----
-89

query II rowsort
SELECT - - 28 - - NULLIF ( + 9, 3 ) * - 86 * 29 - 3 - 20 * - 50 col1, + 38 AS col0
----
-21421
38

query I rowsort
SELECT ALL + ( - - 58 ) * - 12
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT DISTINCT + ( + 78 ) * + COUNT( * ) + COALESCE ( 38, - 74 ) AS col1
----
116

skipif mysql # not compatible
query I rowsort label-6235
SELECT DISTINCT + ( + 78 ) * + COUNT ( * ) + COALESCE ( 38, - 74 ) AS col1
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6236
SELECT ALL - 72 * - + COUNT( - 17 ) * 14 + 35 + + 62 DIV - COUNT( * )
----
981

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL - 72 * - + COUNT ( - 17 ) * 14 + 35 + + 62 / - COUNT ( * )
----
981

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6237
SELECT - - 67 / + CAST( NULL AS SIGNED ) AS col2, COUNT( * ) / CASE WHEN SUM( ALL - - 4 ) <= ( + 46 ) THEN ( - 6 ) + 72 WHEN COUNT( * ) > NULL AND ( + 19 ) + + CAST( 92 AS SIGNED ) NOT IN ( 67 ) THEN NULL END + + CASE + AVG ( CAST( NULL AS DECIMAL ) ) WHEN COUNT( * ) THEN - 61 * + 43 ELSE NULL END / COUNT( * ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6237
SELECT - - 67 / + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) / CASE WHEN SUM ( ALL - - 4 ) <= ( + 46 ) THEN ( - 6 ) + 72 WHEN COUNT ( * ) > NULL AND ( + 19 ) + + CAST ( 92 AS INTEGER ) NOT IN ( 67 ) THEN NULL END + + CASE + AVG ( CAST ( NULL AS REAL ) ) WHEN COUNT ( * ) THEN - 61 * + 43 ELSE NULL END / COUNT ( * ) AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6238
SELECT + 52 * + 48 * - 89 / - + CAST( NULL AS DECIMAL ) + + COALESCE ( - - 27, 29, + + 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6238
SELECT + 52 * + 48 * - 89 / - + CAST ( NULL AS REAL ) + + COALESCE ( - - 27, 29, + + 35 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6239
SELECT DISTINCT + 86 + - 44 + + - 59 * + 89 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6239
SELECT DISTINCT + 86 + - 44 + + - 59 * + 89 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT + ( 98 ) + + MAX( - 33 ) * - 36 * - NULLIF ( - 41, COUNT( * ) )
----
48806

skipif mysql # not compatible
query I rowsort label-6240
SELECT + ( 98 ) + + MAX ( - 33 ) * - 36 * - NULLIF ( - 41, COUNT ( * ) )
----
48806

query I rowsort
SELECT ALL 69 + + - 42 AS col1
----
27

query I rowsort
SELECT ALL 28 + + 38
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT - COALESCE ( + - CASE - SUM( ALL - 31 ) WHEN - 74 THEN NULL WHEN 71 / 64 THEN NULL ELSE + + 53 - - - 2 END, - 42 )
----
51

skipif mysql # not compatible
query I rowsort label-6243
SELECT - COALESCE ( + - CASE - SUM ( ALL - 31 ) WHEN - 74 THEN NULL WHEN 71 / 64 THEN NULL ELSE + + 53 - - - 2 END, - 42 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT + 51 + + COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6244
SELECT + 51 + + COUNT ( * ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-6245
SELECT DISTINCT 41, 0 * + - COUNT( * ) AS col2
----
41
0

skipif mysql # not compatible
query II rowsort label-6245
SELECT DISTINCT 41, 0 * + - COUNT ( * ) AS col2
----
41
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT ALL COUNT( * ) * 94
----
94

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL COUNT ( * ) * 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT DISTINCT CASE - 30 WHEN 77 + - + ( + ( 44 ) ) THEN + 51 WHEN COUNT( * ) THEN NULL ELSE - 53 END + NULLIF ( - 45, + 36 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-6247
SELECT DISTINCT CASE - 30 WHEN 77 + - + ( + ( 44 ) ) THEN + 51 WHEN COUNT ( * ) THEN NULL ELSE - 53 END + NULLIF ( - 45, + 36 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT - COALESCE ( + 27, - COUNT( * ) * 80, NULLIF ( + NULLIF ( + + 95, 29 + + + 51 - + COUNT( * ) / - 55 * + 71 / + + 58 * + - 17 ), 69 ) * + COUNT( * ) - + 30, 79 )
----
-27

skipif mysql # not compatible
query I rowsort label-6248
SELECT - COALESCE ( + 27, - COUNT ( * ) * 80, NULLIF ( + NULLIF ( + + 95, 29 + + + 51 - + COUNT ( * ) / - 55 * + 71 / + + 58 * + - 17 ), 69 ) * + COUNT ( * ) - + 30, 79 )
----
-27

query I rowsort
SELECT ALL 91 + + + 16 + 50
----
157

query I rowsort
SELECT + 97 - - - 25 + 99 * 43 AS col2
----
4329

onlyif mysql # DIV for integer division: 
query I rowsort label-6251
SELECT DISTINCT - 97 DIV - 49
----
1

skipif mysql # not compatible
query I rowsort label-6251
SELECT DISTINCT - 97 / - 49
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6252
SELECT + MIN( - 5 ) * 98 + - + CAST( 67 AS SIGNED ) + - 79 AS col0
----
-636

skipif mysql # not compatible
query I rowsort label-6252
SELECT + MIN ( - 5 ) * 98 + - + CAST ( 67 AS INTEGER ) + - 79 AS col0
----
-636

query I rowsort
SELECT 72 * - + 60 + + 8 - 58 * 13
----
-5066

query I rowsort
SELECT - 94 * + 54
----
-5076

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6255
SELECT - COUNT( * ) DIV 59 + - 76
----
-76

skipif mysql # not compatible
query I rowsort label-6255
SELECT - COUNT ( * ) / 59 + - 76
----
-76

query I rowsort
SELECT + 51 + 39
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT - COUNT( * ) * - 77 * MIN( + 88 ) * 59 * 93 + 15 + + + ( 6 )
----
37179933

skipif mysql # not compatible
query I rowsort label-6257
SELECT - COUNT ( * ) * - 77 * MIN ( + 88 ) * 59 * 93 + 15 + + + ( 6 )
----
37179933

query I rowsort
SELECT ALL + 37 * - 78 col0
----
-2886

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT ALL + MIN( + + 32 ) * - ( 98 ) AS col1
----
-3136

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL + MIN ( + + 32 ) * - ( 98 ) AS col1
----
-3136

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT CASE - MIN( ALL - 59 ) WHEN 56 * - - 17 * 43 - + 82 THEN - COUNT( * ) ELSE - 7 * - NULLIF ( 77, + 46 ) END AS col0
----
539

skipif mysql # not compatible
query I rowsort label-6260
SELECT CASE - MIN ( ALL - 59 ) WHEN 56 * - - 17 * 43 - + 82 THEN - COUNT ( * ) ELSE - 7 * - NULLIF ( 77, + 46 ) END AS col0
----
539

query II rowsort
SELECT - - 20 * 29 + 72, ( - + 28 ) * - - 93 AS col0
----
652
-2604

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT - + 7 + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-6262
SELECT - + 7 + COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT 32 * - + 94 + - - COUNT( * )
----
-3007

skipif mysql # not compatible
query I rowsort label-6263
SELECT 32 * - + 94 + - - COUNT ( * )
----
-3007

query II rowsort
SELECT DISTINCT + + 46 AS col1, + 68
----
46
68

query II rowsort
SELECT ALL + 23 AS col0, 13 col1
----
23
13

onlyif mysql # aggregate syntax: 
query II rowsort label-6266
SELECT - NULLIF ( 34, - + COUNT( * ) ) AS col1, COUNT( * ) - - 96 * - + 10 * COUNT( * ) AS col1
----
-34
-959

skipif mysql # not compatible
query II rowsort label-6266
SELECT - NULLIF ( 34, - + COUNT ( * ) ) AS col1, COUNT ( * ) - - 96 * - + 10 * COUNT ( * ) AS col1
----
-34
-959

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT - 94 * + COUNT( * ) - - - 57 + - 24 AS col1
----
-175

skipif mysql # not compatible
query I rowsort label-6267
SELECT - 94 * + COUNT ( * ) - - - 57 + - 24 AS col1
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT ALL - 45 * + + MIN( ALL + 54 ) col0
----
-2430

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL - 45 * + + MIN ( ALL + 54 ) col0
----
-2430

query I rowsort
SELECT DISTINCT - 27 * - 78 AS col0
----
2106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6270
SELECT - CASE - 22 WHEN + 58 * - - 28 - 60 * + 65 - 30 + - AVG ( DISTINCT + 71 ) THEN + + CASE 73 WHEN + COUNT( * ) * + - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) THEN NULL WHEN CASE + COUNT( * ) WHEN + 42 THEN NULL WHEN - 35 THEN 7 ELSE NULL END THEN NULL ELSE + 81 * 18 END ELSE NULL END + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6270
SELECT - CASE - 22 WHEN + 58 * - - 28 - 60 * + 65 - 30 + - AVG ( DISTINCT + 71 ) THEN + + CASE 73 WHEN + COUNT ( * ) * + - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN CASE + COUNT ( * ) WHEN + 42 THEN NULL WHEN - 35 THEN 7 ELSE NULL END THEN NULL ELSE + 81 * 18 END ELSE NULL END + 30
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6271
SELECT DISTINCT 36 * + 38 + - - ( - 43 ), COUNT( * ) col0
----
1325
1

skipif mysql # not compatible
query II rowsort label-6271
SELECT DISTINCT 36 * + 38 + - - ( - 43 ), COUNT ( * ) col0
----
1325
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6272
SELECT - 64 DIV - 90 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6272
SELECT - 64 / - 90 * COUNT ( * )
----
0

query I rowsort
SELECT ALL + 82 + 41 AS col0
----
123

query II rowsort
SELECT - 80 AS col0, - 2 + 96 AS col0
----
-80
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT COUNT( ALL - 26 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6275
SELECT COUNT ( ALL - 26 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT + 16 * 58 * + COUNT( * ) AS col0
----
928

skipif mysql # not compatible
query I rowsort label-6276
SELECT + 16 * 58 * + COUNT ( * ) AS col0
----
928

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT DISTINCT + MAX( + + 8 ) + + ( - 96 ) * + + 97 AS col2
----
-9304

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT + MAX ( + + 8 ) + + ( - 96 ) * + + 97 AS col2
----
-9304

onlyif mysql # aggregate syntax: 
query II rowsort label-6278
SELECT ALL + 82 + COUNT( + - 86 ) + + 9 AS col2, - 12 + + - 74 * - 25 AS col0
----
92
1838

skipif mysql # not compatible
query II rowsort label-6278
SELECT ALL + 82 + COUNT ( + - 86 ) + + 9 AS col2, - 12 + + - 74 * - 25 AS col0
----
92
1838

query II rowsort
SELECT 38 AS col0, - NULLIF ( 43, - + 72 ) AS col1
----
38
-43

query I rowsort
SELECT ALL 74 + + - 92 * - 61
----
5686

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT DISTINCT ( - COUNT( * ) ) + 38 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-6281
SELECT DISTINCT ( - COUNT ( * ) ) + 38 AS col1
----
37

query I rowsort
SELECT + 56 * + + 74 AS col2
----
4144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6283
SELECT ALL - COUNT( * ) - - + MAX( ALL 29 ) + + 4 + + COALESCE ( - - 90, - 23, + CAST( NULL AS SIGNED ) )
----
122

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL - COUNT ( * ) - - + MAX ( ALL 29 ) + + 4 + + COALESCE ( - - 90, - 23, + CAST ( NULL AS INTEGER ) )
----
122

query I rowsort
SELECT - ( + + 97 ) AS col0
----
-97

query I rowsort
SELECT - 20 * - - 5 AS col2
----
-100

query I rowsort
SELECT + - COALESCE ( - 36, + 1 ) + - + 92 + - 94
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT DISTINCT + ( + COUNT( * ) ) * 18 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-6287
SELECT DISTINCT + ( + COUNT ( * ) ) * 18 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6288
SELECT ALL 77, 17 + - - 32 + + CAST( NULL AS SIGNED ) * - 33 * + - 0 * + SUM( ALL 40 ) - - + 62 AS col2
----
77
NULL

skipif mysql # not compatible
query II rowsort label-6288
SELECT ALL 77, 17 + - - 32 + + CAST ( NULL AS INTEGER ) * - 33 * + - 0 * + SUM ( ALL 40 ) - - + 62 AS col2
----
77
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6289
SELECT + 88 AS col2, NULLIF ( - + 8, - ( - - 18 ) * CASE ( + COUNT( ALL - 29 ) ) WHEN + - COUNT( * ) THEN NULL WHEN 21 THEN 95 END )
----
88
-8

skipif mysql # not compatible
query II rowsort label-6289
SELECT + 88 AS col2, NULLIF ( - + 8, - ( - - 18 ) * CASE ( + COUNT ( ALL - 29 ) ) WHEN + - COUNT ( * ) THEN NULL WHEN 21 THEN 95 END )
----
88
-8

query I rowsort
SELECT 0 * - 11 - + 75 * - ( - - 11 )
----
825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6291
SELECT ALL - + CASE + MIN( ALL - - 5 ) WHEN - CAST( NULL AS SIGNED ) + 45 THEN - COUNT( - 26 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL - + CASE + MIN ( ALL - - 5 ) WHEN - CAST ( NULL AS INTEGER ) + 45 THEN - COUNT ( - 26 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT DISTINCT ( + 37 ) * + COUNT( + 52 )
----
37

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT ( + 37 ) * + COUNT ( + 52 )
----
37

query I rowsort
SELECT 79 * + 75
----
5925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6294
SELECT NULLIF ( + 66, - 17 * - MAX( ALL + 99 ) DIV + 47 * ( COUNT( * ) ) - 27 ) DIV 55
----
1

skipif mysql # not compatible
query I rowsort label-6294
SELECT NULLIF ( + 66, - 17 * - MAX ( ALL + 99 ) / + 47 * ( COUNT ( * ) ) - 27 ) / 55
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6295
SELECT COUNT( * ) * 71 DIV - COUNT( * ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-6295
SELECT COUNT ( * ) * 71 / - COUNT ( * ) AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT + NULLIF ( - COUNT( * ), - - 82 )
----
-1

skipif mysql # not compatible
query I rowsort label-6296
SELECT + NULLIF ( - COUNT ( * ), - - 82 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6297
SELECT ALL - CAST( NULL AS SIGNED ) * - - 9 AS col0, + 97 * + 55 + + 58
----
NULL
5393

skipif mysql # not compatible
query II rowsort label-6297
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 9 AS col0, + 97 * + 55 + + 58
----
NULL
5393

onlyif mysql # aggregate syntax: 
query II rowsort label-6298
SELECT + COUNT( * ), 59 col1
----
1
59

skipif mysql # not compatible
query II rowsort label-6298
SELECT + COUNT ( * ), 59 col1
----
1
59

query II rowsort
SELECT + 79 AS col2, 4
----
79
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6300
SELECT + + ( - 3 ) AS col2, - 29 - CAST( + 64 AS SIGNED ) + - ( CAST( + 58 AS SIGNED ) )
----
-3
-151

skipif mysql # not compatible
query II rowsort label-6300
SELECT + + ( - 3 ) AS col2, - 29 - CAST ( + 64 AS INTEGER ) + - ( CAST ( + 58 AS INTEGER ) )
----
-3
-151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6301
SELECT + + 25 col1, + 81 + + + 81 + CAST( NULL AS SIGNED ) * + - 63 * + COUNT( * ) * + 60 * 63 * - 6 + 71
----
25
NULL

skipif mysql # not compatible
query II rowsort label-6301
SELECT + + 25 col1, + 81 + + + 81 + CAST ( NULL AS INTEGER ) * + - 63 * + COUNT ( * ) * + 60 * 63 * - 6 + 71
----
25
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6302
SELECT ALL + NULLIF ( + CAST( NULL AS SIGNED ), + 93 ) + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-6302
SELECT ALL + NULLIF ( + CAST ( NULL AS INTEGER ), + 93 ) + - 72
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6303
SELECT - COUNT( * ) * + 90 + - ( + 30 ) * 54, + 8 col2
----
-1710
8

skipif mysql # not compatible
query II rowsort label-6303
SELECT - COUNT ( * ) * + 90 + - ( + 30 ) * 54, + 8 col2
----
-1710
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT 79 - COUNT( ALL - - 84 )
----
78

skipif mysql # not compatible
query I rowsort label-6304
SELECT 79 - COUNT ( ALL - - 84 )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6305
SELECT ALL 52 + - CAST( NULL AS SIGNED ) + - ( + + CASE - + 53 WHEN - + 78 THEN - ( + COUNT( ALL 73 ) ) END ) + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL 52 + - CAST ( NULL AS INTEGER ) + - ( + + CASE - + 53 WHEN - + 78 THEN - ( + COUNT ( ALL 73 ) ) END ) + - 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT ALL - 5 + - + COUNT( * ) - + - 42
----
36

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL - 5 + - + COUNT ( * ) - + - 42
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT DISTINCT - 96 * + - COUNT( * ) * - - 75
----
7200

skipif mysql # not compatible
query I rowsort label-6307
SELECT DISTINCT - 96 * + - COUNT ( * ) * - - 75
----
7200

onlyif mysql # DIV for integer division: 
query II rowsort label-6308
SELECT DISTINCT - 24 DIV - 5 AS col2, 8
----
4
8

skipif mysql # not compatible
query II rowsort label-6308
SELECT DISTINCT - 24 / - 5 AS col2, 8
----
4
8

query I rowsort
SELECT 4 + 51 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT ALL - COUNT( * ) - + 97 * + 21 * - 41
----
83516

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL - COUNT ( * ) - + 97 * + 21 * - 41
----
83516

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6311
SELECT 91 + - CAST( NULL AS SIGNED ) col0, - 62 + + 35 * + 45, - - 32 AS col0
----
NULL
1513
32

skipif mysql # not compatible
query III rowsort label-6311
SELECT 91 + - CAST ( NULL AS INTEGER ) col0, - 62 + + 35 * + 45, - - 32 AS col0
----
NULL
1513
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6312
SELECT 94 DIV + COUNT( * ) col2
----
94

skipif mysql # not compatible
query I rowsort label-6312
SELECT 94 / + COUNT ( * ) col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6313
SELECT 29 * 61 * - 77 * - 39 * + CAST( 23 AS SIGNED ) AS col0
----
122183061

skipif mysql # not compatible
query I rowsort label-6313
SELECT 29 * 61 * - 77 * - 39 * + CAST ( 23 AS INTEGER ) AS col0
----
122183061

query I rowsort
SELECT 3 * + + 98 AS col0
----
294

query I rowsort
SELECT 39 * + 3 AS col0
----
117

query I rowsort
SELECT + 19 + 22 AS col1
----
41

query I rowsort
SELECT ALL + + 65 - + 83 + - + 78 AS col1
----
-96

query I rowsort
SELECT DISTINCT - + ( 19 ) * + 42
----
-798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6319
SELECT 99 - - CASE 12 WHEN - + CASE - 91 WHEN + - SUM( DISTINCT + - 95 ) THEN + CAST( NULL AS SIGNED ) * - - COALESCE ( + 70, - COUNT( * ) ) - - - 82 + + 80 WHEN 54 + - 56 THEN NULL ELSE + - 9 END THEN NULL ELSE 24 + 79 END + + 26 * 72 * 95
----
178042

skipif mysql # not compatible
query I rowsort label-6319
SELECT 99 - - CASE 12 WHEN - + CASE - 91 WHEN + - SUM ( DISTINCT + - 95 ) THEN + CAST ( NULL AS INTEGER ) * - - COALESCE ( + 70, - COUNT ( * ) ) - - - 82 + + 80 WHEN 54 + - 56 THEN NULL ELSE + - 9 END THEN NULL ELSE 24 + 79 END + + 26 * 72 * 95
----
178042

query I rowsort
SELECT - 47 * - 61 + + - 91 + + - 37
----
2739

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT - 69 + COUNT( ALL + 7 )
----
-68

skipif mysql # not compatible
query I rowsort label-6321
SELECT - 69 + COUNT ( ALL + 7 )
----
-68

query I rowsort
SELECT COALESCE ( 16, + 67 ) * 45
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT 54 * 84 + - 20 * + SUM( - 27 ) - + ( 8 ) AS col0
----
5068

skipif mysql # not compatible
query I rowsort label-6323
SELECT 54 * 84 + - 20 * + SUM ( - 27 ) - + ( 8 ) AS col0
----
5068

query I rowsort
SELECT DISTINCT 61 * 15
----
915

query I rowsort
SELECT ALL - 85 + 49 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-6326
SELECT + 48 * + 27 * COUNT( * ) - - COUNT( * ) + + 92 col2, 55 AS col1
----
1389
55

skipif mysql # not compatible
query II rowsort label-6326
SELECT + 48 * + 27 * COUNT ( * ) - - COUNT ( * ) + + 92 col2, 55 AS col1
----
1389
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6327
SELECT ALL + ( 98 ) * - 3 * - CAST( NULL AS SIGNED ) * COUNT( * ) * + 99 * + - 66 * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL + ( 98 ) * - 3 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) * + 99 * + - 66 * + 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT ALL COUNT( * ) + - + 40 - + MIN( - 6 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL COUNT ( * ) + - + 40 - + MIN ( - 6 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-6329
SELECT DISTINCT - MAX( DISTINCT - + 41 ) + + 56 AS col0, CASE 66 WHEN - 24 * COUNT( * ) + 47 THEN NULL ELSE 35 + 21 - + + 19 * - NULLIF ( + 29, - 32 ) + - 15 END - + 55 AS col1
----
97
537

skipif mysql # not compatible
query II rowsort label-6329
SELECT DISTINCT - MAX ( DISTINCT - + 41 ) + + 56 AS col0, CASE 66 WHEN - 24 * COUNT ( * ) + 47 THEN NULL ELSE 35 + 21 - + + 19 * - NULLIF ( + 29, - 32 ) + - 15 END - + 55 AS col1
----
97
537

query I rowsort
SELECT ALL + 58 + - - 0 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT MAX( DISTINCT + 73 ) * + COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-6331
SELECT MAX ( DISTINCT + 73 ) * + COUNT ( * ) AS col0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-6332
SELECT ALL 46 DIV + 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL 46 / + 48 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6333
SELECT ALL 5 + - + CAST( NULL AS SIGNED ) * + 95 * 16 * - - 8 - 69 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL 5 + - + CAST ( NULL AS INTEGER ) * + 95 * 16 * - - 8 - 69 col0
----
NULL

query I rowsort
SELECT 9 * - 43 * - 65 + 88 + + - 42 + + - 11 * - - 17 AS col1
----
25014

query II rowsort
SELECT DISTINCT - 17 AS col2, ( 28 )
----
-17
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT ALL 75 - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL 75 - COUNT ( * )
----
74

query I rowsort
SELECT 94 * + ( + COALESCE ( - 0, - NULLIF ( - - 90, ( + 6 ) + 3 ) * - - 38 * ( 9 ) * 37 + - 12, 27 ) ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6338
SELECT - SUM( ALL - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6338
SELECT - SUM ( ALL - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT ALL 39 - - - 55 - MIN( + 1 ) + + ( - ( - + 79 ) ) + + ( 77 ) * ( + + 6 ) AS col2
----
524

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL 39 - - - 55 - MIN ( + 1 ) + + ( - ( - + 79 ) ) + + ( 77 ) * ( + + 6 ) AS col2
----
524

query I rowsort
SELECT 0 + + 76 AS col0
----
76

query I rowsort
SELECT COALESCE ( - 38, + - 29 ) - + - 67 AS col2
----
29

query I rowsort
SELECT ALL 3 * 26
----
78

query I rowsort
SELECT + 15 * COALESCE ( 53, - ( 36 ) ) AS col1
----
795

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT DISTINCT COUNT( + 30 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT COUNT ( + 30 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6345
SELECT ALL COUNT( * ) AS col0, 98 AS col2
----
1
98

skipif mysql # not compatible
query II rowsort label-6345
SELECT ALL COUNT ( * ) AS col0, 98 AS col2
----
1
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT ALL + - COUNT( * ) * - - 98
----
-98

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL + - COUNT ( * ) * - - 98
----
-98

query I rowsort
SELECT - - 44 + + 91 * - 82 AS col0
----
-7418

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT - + COALESCE ( + MAX( + 30 ), + 35 )
----
-30

skipif mysql # not compatible
query I rowsort label-6348
SELECT - + COALESCE ( + MAX ( + 30 ), + 35 )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6349
SELECT - - 94 DIV + 39 + + COUNT( * ), 40 col0
----
3
40

skipif mysql # not compatible
query II rowsort label-6349
SELECT - - 94 / + 39 + + COUNT ( * ), 40 col0
----
3
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT - COALESCE ( + 26, + + MIN( 61 ) + - - 13 ) * 46
----
-1196

skipif mysql # not compatible
query I rowsort label-6350
SELECT - COALESCE ( + 26, + + MIN ( 61 ) + - - 13 ) * 46
----
-1196

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT - + COUNT( * ) * + 3 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6351
SELECT - + COUNT ( * ) * + 3 AS col2
----
-3

query I rowsort
SELECT DISTINCT + 56 + + 38
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT ALL + 7 * - COUNT( * ) + 46 + - 39
----
0

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL + 7 * - COUNT ( * ) + 46 + - 39
----
0

query I rowsort
SELECT + CASE 57 WHEN - COALESCE ( - 7, + - 69 - + + ( + 75 ) ) THEN + + 80 END AS col1
----
NULL

query I rowsort
SELECT - 47 * - - 22
----
-1034

query II rowsort
SELECT DISTINCT + - 91 AS col2, ( - + 48 ) AS col2
----
-91
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6357
SELECT DISTINCT + CASE - + AVG ( - 87 ) WHEN + 47 - CASE 78 WHEN AVG ( DISTINCT + - 11 ) - + 60 THEN NULL ELSE + 69 + - COALESCE ( 97, + 80 + + 45 + 90 * + 59 / - ( + 45 ), - AVG ( DISTINCT - 66 ) ) END * 88 THEN NULL WHEN 20 THEN + CAST( + 31 AS SIGNED ) + 70 / 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT + CASE - + AVG ( - 87 ) WHEN + 47 - CASE 78 WHEN AVG ( DISTINCT + - 11 ) - + 60 THEN NULL ELSE + 69 + - COALESCE ( 97, + 80 + + 45 + 90 * + 59 / - ( + 45 ), - AVG ( DISTINCT - 66 ) ) END * 88 THEN NULL WHEN 20 THEN + CAST ( + 31 AS INTEGER ) + 70 / 25 END
----
NULL

query II rowsort
SELECT ALL - 78 * - 6 + - 75, - 73 * + 45 AS col2
----
393
-3285

query I rowsort
SELECT + - ( 25 ) AS col2
----
-25

query I rowsort
SELECT - 36 - - 8 AS col0
----
-28

query I rowsort
SELECT ALL + 23 * + - 2 AS col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-6362
SELECT - COALESCE ( 83, + 49 DIV 61, + - 89 DIV 69 + 55 + - ( + 87 ) ) - - 54
----
-29

skipif mysql # not compatible
query I rowsort label-6362
SELECT - COALESCE ( 83, + 49 / 61, + - 89 / 69 + 55 + - ( + 87 ) ) - - 54
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6363
SELECT ALL 23 * + + 85 + + CASE + 27 WHEN + 9 THEN NULL WHEN 88 THEN - 57 DIV + - NULLIF ( - + CAST( - COUNT( * ) AS SIGNED ), + 66 DIV + - 21 * - - 38 ) ELSE - 67 END AS col0
----
1888

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL 23 * + + 85 + + CASE + 27 WHEN + 9 THEN NULL WHEN 88 THEN - 57 / + - NULLIF ( - + CAST ( - COUNT ( * ) AS INTEGER ), + 66 / + - 21 * - - 38 ) ELSE - 67 END AS col0
----
1888

onlyif mysql # DIV for integer division: 
query I rowsort label-6364
SELECT COALESCE ( 8, + 63 DIV + + ( 24 ), - 61 )
----
8

skipif mysql # not compatible
query I rowsort label-6364
SELECT COALESCE ( 8, + 63 / + + ( 24 ), - 61 )
----
8

query I rowsort
SELECT ALL + 23 * + 34 * - 1 AS col2
----
-782

query II rowsort
SELECT DISTINCT + 6 * 75 AS col1, - 12 AS col2
----
450
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-6367
SELECT + 60 * - 54 * 81 + 24 - 37 DIV 34 AS col2
----
-262417

skipif mysql # not compatible
query I rowsort label-6367
SELECT + 60 * - 54 * 81 + 24 - 37 / 34 AS col2
----
-262417

onlyif mysql # DIV for integer division: 
query II rowsort label-6368
SELECT + 33 - - - 5 col2, - 82 DIV - + 91 AS col2
----
28
0

skipif mysql # not compatible
query II rowsort label-6368
SELECT + 33 - - - 5 col2, - 82 / - + 91 AS col2
----
28
0

query II rowsort
SELECT + ( + - 79 ), 5 AS col2
----
-79
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT - COUNT( * ) + + + COALESCE ( - 50, COUNT( * ) ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-6370
SELECT - COUNT ( * ) + + + COALESCE ( - 50, COUNT ( * ) ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT + 97 + + COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-6371
SELECT + 97 + + COUNT ( * ) AS col0
----
98

query I rowsort
SELECT DISTINCT ( + - ( - 62 ) ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT + 74 + + COUNT( * ) - - - 85 * 84 + - + 64 * 22
----
-8473

skipif mysql # not compatible
query I rowsort label-6373
SELECT + 74 + + COUNT ( * ) - - - 85 * 84 + - + 64 * 22
----
-8473

query II rowsort
SELECT + 91 * + + 37 AS col0, + 28 - 36 + 53
----
3367
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6375
SELECT + - COUNT( * ) + + 29 + + 30 DIV - 69 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-6375
SELECT + - COUNT ( * ) + + 29 + + 30 / - 69 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT ALL - COUNT( * ) * - 75 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL - COUNT ( * ) * - 75 AS col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6377
SELECT + - ( + - CAST( NULL AS SIGNED ) ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6377
SELECT + - ( + - CAST ( NULL AS INTEGER ) ) * + 88
----
NULL

query I rowsort
SELECT ALL 21 + 30 + 8 - 29 + 56 * - 0 AS col2
----
30

query I rowsort
SELECT + 91 + + - 87 AS col0
----
4

query II rowsort
SELECT + 4 + + 5 AS col2, - 58 col2
----
9
-58

query III rowsort
SELECT DISTINCT - ( - 69 ) * 91 * - - 53 AS col2, 3 AS col1, 75
----
332787
3
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6382
SELECT ALL + + ( - 69 ) DIV + 63
----
-1

skipif mysql # not compatible
query I rowsort label-6382
SELECT ALL + + ( - 69 ) / + 63
----
-1

query I rowsort
SELECT ALL + 83 + + 63 AS col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT ALL - COUNT( * ) + COUNT( + - 37 ) + + 80 * - - 61 * - + COUNT( * ) AS col1
----
-4880

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL - COUNT ( * ) + COUNT ( + - 37 ) + + 80 * - - 61 * - + COUNT ( * ) AS col1
----
-4880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6385
SELECT - - COUNT( ALL + 84 ) + CAST( NULL AS SIGNED ) + 59 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6385
SELECT - - COUNT ( ALL + 84 ) + CAST ( NULL AS INTEGER ) + 59 * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6386
SELECT ALL 23 + - SUM( DISTINCT + + COALESCE ( + 28, - 80 ) ) DIV + + 41 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL 23 + - SUM ( DISTINCT + + COALESCE ( + 28, - 80 ) ) / + + 41 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT COUNT( DISTINCT 36 )
----
1

skipif mysql # not compatible
query I rowsort label-6387
SELECT COUNT ( DISTINCT 36 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT - 67 + - - CASE + + COUNT( * ) WHEN - COUNT( * ) THEN - 26 + - ( + SUM( - 55 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6388
SELECT - 67 + - - CASE + + COUNT ( * ) WHEN - COUNT ( * ) THEN - 26 + - ( + SUM ( - 55 ) ) END
----
NULL

query I rowsort
SELECT 11 * + 19 + - 71
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6390
SELECT ALL 6 DIV MIN( ALL - 82 ) * + 60 + 2 + + + 46 - - + 63 + + 87 AS col2
----
198

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL 6 / MIN ( ALL - 82 ) * + 60 + 2 + + + 46 - - + 63 + + 87 AS col2
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT 61 / 26 / MIN( DISTINCT - + 66 ) * - - CASE + 81 WHEN + 70 THEN NULL WHEN + 35 THEN + 15 / 90 * + 49 * COUNT( * ) END * - - ( + - 81 ) + - - COALESCE ( - 81, 86 ) + - 84 + + 86 + ( - 90 + - 38 / MAX( - 33 * 3 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6391
SELECT 61 / 26 / MIN ( DISTINCT - + 66 ) * - - CASE + 81 WHEN + 70 THEN NULL WHEN + 35 THEN + 15 / 90 * + 49 * COUNT ( * ) END * - - ( + - 81 ) + - - COALESCE ( - 81, 86 ) + - 84 + + 86 + ( - 90 + - 38 / MAX ( - 33 * 3 ) )
----
NULL

query I rowsort
SELECT DISTINCT 35 * 86
----
3010

query I rowsort
SELECT - 64 * 60 * ( - - 80 ) * 73 * - 59 + - - 70 + + ( - 60 ) + - - 19 * 38 + + - 79
----
1323111053

query I rowsort
SELECT - ( ( + 47 ) ) * + 62
----
-2914

query II rowsort
SELECT DISTINCT + 55 AS col0, 72
----
55
72

query I rowsort
SELECT DISTINCT - ( - ( 1 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6397
SELECT COUNT( * ) * - COUNT( * ) * - COUNT( * ), SUM( - 62 ) AS col1
----
1
-62

skipif mysql # not compatible
query II rowsort label-6397
SELECT COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ), SUM ( - 62 ) AS col1
----
1
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6398
SELECT COUNT( * ) DIV - 27 * + CASE - + 31 WHEN - 94 THEN NULL ELSE 62 END * + ( 57 ) + - - 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-6398
SELECT COUNT ( * ) / - 27 * + CASE - + 31 WHEN - 94 THEN NULL ELSE 62 END * + ( 57 ) + - - 44 AS col0
----
44

query I rowsort
SELECT ALL 3 + + ( - 25 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT DISTINCT - 75 * 80 * COUNT( * )
----
-6000

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT - 75 * 80 * COUNT ( * )
----
-6000

query I rowsort
SELECT ALL 79 + 73
----
152

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6402
SELECT COUNT( * ) + - 54 * + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6402
SELECT COUNT ( * ) + - 54 * + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6403
SELECT 9 DIV - 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6403
SELECT 9 / - 31 AS col2
----
0

query I rowsort
SELECT 44 * + 91
----
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT ALL NULLIF ( + 85, 85 * COUNT( * ) + - ( 82 ) * COALESCE ( 38, + 64 ) + 70 * SUM( - 37 ) + 18 * 38 ) + 58 col0
----
143

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL NULLIF ( + 85, 85 * COUNT ( * ) + - ( 82 ) * COALESCE ( 38, + 64 ) + 70 * SUM ( - 37 ) + 18 * 38 ) + 58 col0
----
143

query II rowsort
SELECT - 85, 56 AS col1
----
-85
56

onlyif mysql # DIV for integer division: 
query I rowsort label-6407
SELECT + 88 DIV - - ( + - 9 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-6407
SELECT + 88 / - - ( + - 9 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT 92 - + + SUM( ALL - 76 )
----
168

skipif mysql # not compatible
query I rowsort label-6408
SELECT 92 - + + SUM ( ALL - 76 )
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT ALL + MAX( DISTINCT + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL + MAX ( DISTINCT + 82 )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6410
SELECT 0 + - CAST( - 24 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-6410
SELECT 0 + - CAST ( - 24 AS INTEGER )
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-6411
SELECT DISTINCT 64, - COUNT( * ) + + - 2 AS col0
----
64
-3

skipif mysql # not compatible
query II rowsort label-6411
SELECT DISTINCT 64, - COUNT ( * ) + + - 2 AS col0
----
64
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6412
SELECT ALL 68 * 43 + - 45 + CAST( NULL AS SIGNED ) + + 83 + + 41 * + - 7 + - - CASE - 7 WHEN + 38 + - 12 / - - 22 * - 18 THEN NULL ELSE + - 20 END - + 86 - + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL 68 * 43 + - 45 + CAST ( NULL AS INTEGER ) + + 83 + + 41 * + - 7 + - - CASE - 7 WHEN + 38 + - 12 / - - 22 * - 18 THEN NULL ELSE + - 20 END - + 86 - + + 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT - 38 + MIN( - 9 )
----
-47

skipif mysql # not compatible
query I rowsort label-6413
SELECT - 38 + MIN ( - 9 )
----
-47

query I rowsort
SELECT 61 - + - ( - - 88 ) AS col1
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6415
SELECT DISTINCT - 4 * - CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT - 4 * - CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT - + COUNT( - NULLIF ( + 97, + 99 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6416
SELECT - + COUNT ( - NULLIF ( + 97, + 99 ) ) AS col0
----
-1

query II rowsort
SELECT - 93 col2, + 35 + - 51 col1
----
-93
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT + 4 * + + COUNT( * ) * + 39 + + 1
----
157

skipif mysql # not compatible
query I rowsort label-6418
SELECT + 4 * + + COUNT ( * ) * + 39 + + 1
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT - COUNT( ALL - COALESCE ( + 68, - ( + - 27 ), 33, + 53 * + 94 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6419
SELECT - COUNT ( ALL - COALESCE ( + 68, - ( + - 27 ), 33, + 53 * + 94 ) ) AS col1
----
-1

query II rowsort
SELECT ALL + 74 AS col1, - 0 AS col0
----
74
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT - COUNT( * ) * + - 39 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-6421
SELECT - COUNT ( * ) * + - 39 AS col0
----
39

query II rowsort
SELECT 87 col2, 10 + - 56
----
87
-46

query I rowsort
SELECT 75 * + NULLIF ( - 32, 98 )
----
-2400

query II rowsort
SELECT + 75 AS col1, - 16 + - + ( + - 68 ) + + 42 AS col0
----
75
94

query I rowsort
SELECT 23 * - 25 col0
----
-575

query II rowsort
SELECT ALL - 60 * 73 * + ( - 24 ), + 9 AS col2
----
105120
9

query I rowsort
SELECT 94 - + - 74
----
168

query I rowsort
SELECT - ( 31 ) * - 91 + + + 47 + - 66
----
2802

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT DISTINCT COUNT( * ) + - + 47 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-6429
SELECT DISTINCT COUNT ( * ) + - + 47 AS col0
----
-46

query II rowsort
SELECT + 41, + 81 col2
----
41
81

query I rowsort
SELECT DISTINCT - 16 + + ( + 70 ) col0
----
54

query I rowsort
SELECT ALL + ( - 33 ) + 46 AS col0
----
13

query I rowsort
SELECT 98 * 58 + + 62 * - - 27 + + + 90
----
7448

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6434
SELECT 30 AS col1, + CAST( NULL AS SIGNED ) + 49 AS col1
----
30
NULL

skipif mysql # not compatible
query II rowsort label-6434
SELECT 30 AS col1, + CAST ( NULL AS INTEGER ) + 49 AS col1
----
30
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6435
SELECT DISTINCT + COALESCE ( - 25, - CAST( NULL AS SIGNED ) ) + COUNT( * ) DIV + 14 * - 34
----
-25

skipif mysql # not compatible
query I rowsort label-6435
SELECT DISTINCT + COALESCE ( - 25, - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) / + 14 * - 34
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT + 64 + 91 + - COUNT( * )
----
154

skipif mysql # not compatible
query I rowsort label-6436
SELECT + 64 + 91 + - COUNT ( * )
----
154

query II rowsort
SELECT 94 AS col2, + 40 * + ( - - 84 ) * + - 38
----
94
-127680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6438
SELECT ALL - 27 * CAST( + 88 AS SIGNED ) AS col2
----
-2376

skipif mysql # not compatible
query I rowsort label-6438
SELECT ALL - 27 * CAST ( + 88 AS INTEGER ) AS col2
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT ALL - 16 + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL - 16 + COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT ALL + + COUNT( * ) + 61 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL + + COUNT ( * ) + 61 AS col1
----
62

query I rowsort
SELECT ALL 39 + 54
----
93

query I rowsort
SELECT ALL 44 + 24 * + 32 AS col2
----
812

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT - 13 * - COUNT( * ) * + 23
----
299

skipif mysql # not compatible
query I rowsort label-6443
SELECT - 13 * - COUNT ( * ) * + 23
----
299

query I rowsort
SELECT - 27 + + - ( - 74 ) * 9
----
639

query I rowsort
SELECT - COALESCE ( - 71, - 16 + - 82 + 21 ) AS col0
----
71

query II rowsort
SELECT DISTINCT - 68 col0, 11 + + 34 AS col2
----
-68
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6447
SELECT ALL + 50 DIV + 35 + + 91 * + 6
----
547

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL + 50 / + 35 + + 91 * + 6
----
547

query II rowsort
SELECT - + 32, - 98 AS col0
----
-32
-98

query I rowsort
SELECT ALL 69 * - 77 AS col2
----
-5313

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT - COUNT( * ) + - 16 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-6450
SELECT - COUNT ( * ) + - 16 AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6451
SELECT ALL - NULLIF ( - 10, ( + CAST( NULL AS SIGNED ) ) * 61 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL - NULLIF ( - 10, ( + CAST ( NULL AS INTEGER ) ) * 61 ) AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6452
SELECT ALL CASE + - 34 WHEN + 19 THEN NULL ELSE + - 47 DIV + 76 * - 90 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL CASE + - 34 WHEN + 19 THEN NULL ELSE + - 47 / + 76 * - 90 END AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6453
SELECT COALESCE ( - - CAST( + 66 AS SIGNED ), - 1, COUNT( * ) * - + 69 + + COUNT( * ) - COUNT( * ) * 55 ) + + 50 + - 52 DIV + 54
----
116

skipif mysql # not compatible
query I rowsort label-6453
SELECT COALESCE ( - - CAST ( + 66 AS INTEGER ), - 1, COUNT ( * ) * - + 69 + + COUNT ( * ) - COUNT ( * ) * 55 ) + + 50 + - 52 / + 54
----
116

query I rowsort
SELECT 78 * - ( + 4 ) AS col1
----
-312

onlyif mysql # DIV for integer division: 
query I rowsort label-6455
SELECT 13 + + 96 + + 70 + - 79 + + 0 DIV + + ( - ( - 37 ) ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-6455
SELECT 13 + + 96 + + 70 + - 79 + + 0 / + + ( - ( - 37 ) ) AS col0
----
100

query I rowsort
SELECT ALL 40 * + 24 * + - 60 AS col2
----
-57600

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT SUM( ALL + CASE ( - 79 ) WHEN - 92 + - 43 THEN - 56 WHEN 0 THEN - 99 * + 57 * + 2 + - 3 END ) * + 43 + + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-6457
SELECT SUM ( ALL + CASE ( - 79 ) WHEN - 92 + - 43 THEN - 56 WHEN 0 THEN - 99 * + 57 * + 2 + - 3 END ) * + 43 + + + 35
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT 20 * - - COALESCE ( - 36, 46, - 10 DIV + 1 * + - 47 DIV 15 ) * + 13 + + 27 col0
----
-9333

skipif mysql # not compatible
query I rowsort label-6458
SELECT 20 * - - COALESCE ( - 36, 46, - 10 / + 1 * + - 47 / 15 ) * + 13 + + 27 col0
----
-9333

query I rowsort
SELECT + 16 * 95 AS col1
----
1520

query I rowsort
SELECT + 51 * + 98
----
4998

query I rowsort
SELECT ALL - 52 * 88 + 45
----
-4531

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6462
SELECT - 47 * - - ( - 91 ) + - + 81 + - + 67 DIV COUNT( 14 ) AS col2
----
4129

skipif mysql # not compatible
query I rowsort label-6462
SELECT - 47 * - - ( - 91 ) + - + 81 + - + 67 / COUNT ( 14 ) AS col2
----
4129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6463
SELECT + CASE + + 7 WHEN + AVG ( 17 ) / MAX( ALL - + 10 ) + MAX( ALL + 20 ) - - - COUNT( * ) + + 29 - + 17 THEN NULL WHEN - AVG ( ALL 88 ) + CAST( NULL AS SIGNED ) THEN NULL ELSE + + 3 + - 31 END
----
-28

skipif mysql # not compatible
query I rowsort label-6463
SELECT + CASE + + 7 WHEN + AVG ( 17 ) / MAX ( ALL - + 10 ) + MAX ( ALL + 20 ) - - - COUNT ( * ) + + 29 - + 17 THEN NULL WHEN - AVG ( ALL 88 ) + CAST ( NULL AS INTEGER ) THEN NULL ELSE + + 3 + - 31 END
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6464
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 27 / + + 33 + - CAST( + 4 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 27 / + + 33 + - CAST ( + 4 AS INTEGER )
----
NULL

query I rowsort
SELECT - 97 * - 11
----
1067

query I rowsort
SELECT + NULLIF ( 44, 99 )
----
44

query II rowsort
SELECT 21 * - 99 + - 92 AS col1, - COALESCE ( + 88, - 58, + - 4 * + - 67 - + 23 ) + + 19
----
-2171
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6468
SELECT DISTINCT - COUNT( * ) * - MAX( 98 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6468
SELECT DISTINCT - COUNT ( * ) * - MAX ( 98 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6469
SELECT ALL + COALESCE ( - + 18, + + 59 ) * - 85 + + COUNT( * ) col0, + 22 AS col1
----
1531
22

skipif mysql # not compatible
query II rowsort label-6469
SELECT ALL + COALESCE ( - + 18, + + 59 ) * - 85 + + COUNT ( * ) col0, + 22 AS col1
----
1531
22

query I rowsort
SELECT + + ( - 61 ) * + 39 * 97 + 1 AS col0
----
-230762

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6471
SELECT DISTINCT - 28 * - NULLIF ( 41, - + 20 + - - 65 + + - 35 / - - CAST( NULL AS SIGNED ) * 15 ), - 12 * CAST( NULL AS SIGNED ) * 25 AS col0
----
1148
NULL

skipif mysql # not compatible
query II rowsort label-6471
SELECT DISTINCT - 28 * - NULLIF ( 41, - + 20 + - - 65 + + - 35 / - - CAST ( NULL AS INTEGER ) * 15 ), - 12 * CAST ( NULL AS INTEGER ) * 25 AS col0
----
1148
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6472
SELECT MIN( DISTINCT 15 ), - 0 AS col1
----
15
0

skipif mysql # not compatible
query II rowsort label-6472
SELECT MIN ( DISTINCT 15 ), - 0 AS col1
----
15
0

query I rowsort
SELECT - + 9 + 96 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6474
SELECT ALL - CAST( CASE - 88 WHEN + ( - ( - + 75 ) ) * + - 87 THEN - MIN( DISTINCT - - 19 ) WHEN - CASE 56 WHEN - 87 THEN - + 94 + + 80 + - 33 + - AVG ( DISTINCT 45 ) / - + AVG ( DISTINCT 0 ) * + 45 * - 40 ELSE - 61 END + + 39 * 65 THEN - 15 WHEN 86 THEN - CAST( - COUNT( * ) AS SIGNED ) * - 81 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL - CAST ( CASE - 88 WHEN + ( - ( - + 75 ) ) * + - 87 THEN - MIN ( DISTINCT - - 19 ) WHEN - CASE 56 WHEN - 87 THEN - + 94 + + 80 + - 33 + - AVG ( DISTINCT 45 ) / - + AVG ( DISTINCT 0 ) * + 45 * - 40 ELSE - 61 END + + 39 * 65 THEN - 15 WHEN 86 THEN - CAST ( - COUNT ( * ) AS INTEGER ) * - 81 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT ALL + + NULLIF ( - 49, + + MIN( ( - + 80 ) ) ) - + + COUNT( * ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL + + NULLIF ( - 49, + + MIN ( ( - + 80 ) ) ) - + + COUNT ( * ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT - + ( - - ( 7 ) ) - - NULLIF ( - CASE - + 6 WHEN + AVG ( ALL 98 ) THEN NULL ELSE - COUNT( * ) END, - 16 ) + + - 98 col1
----
-104

skipif mysql # not compatible
query I rowsort label-6476
SELECT - + ( - - ( 7 ) ) - - NULLIF ( - CASE - + 6 WHEN + AVG ( ALL 98 ) THEN NULL ELSE - COUNT ( * ) END, - 16 ) + + - 98 col1
----
-104

query I rowsort
SELECT - + 60 * 70 AS col2
----
-4200

query I rowsort
SELECT ALL - + 99 * ( 49 )
----
-4851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6479
SELECT DISTINCT - - 32 * - - 95 + - + CAST( + 87 AS SIGNED )
----
2953

skipif mysql # not compatible
query I rowsort label-6479
SELECT DISTINCT - - 32 * - - 95 + - + CAST ( + 87 AS INTEGER )
----
2953

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT DISTINCT MAX( DISTINCT + - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT MAX ( DISTINCT + - 53 )
----
-53

query I rowsort
SELECT DISTINCT + COALESCE ( - 38, + 72 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT DISTINCT + - 57 * - COUNT( * ) + - - 25 + + 95
----
177

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT + - 57 * - COUNT ( * ) + - - 25 + + 95
----
177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6483
SELECT - NULLIF ( CAST( - 93 AS SIGNED ), - COUNT( * ) + - CAST( + 54 AS SIGNED ) ) * COUNT( * ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-6483
SELECT - NULLIF ( CAST ( - 93 AS INTEGER ), - COUNT ( * ) + - CAST ( + 54 AS INTEGER ) ) * COUNT ( * ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-6484
SELECT ALL ( NULLIF ( + + 64, - COUNT( * ) * + + 0 + + - 86 / + - COUNT( 31 ) ) ) col1, 84 * + 27
----
64
2268

skipif mysql # not compatible
query II rowsort label-6484
SELECT ALL ( NULLIF ( + + 64, - COUNT ( * ) * + + 0 + + - 86 / + - COUNT ( 31 ) ) ) col1, 84 * + 27
----
64
2268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6485
SELECT - NULLIF ( - + 29, - NULLIF ( + 84, + - 99 * - 24 * - CAST( - COUNT( * ) AS SIGNED ) * 63 / ( - COALESCE ( - 44, - SUM( - CAST( NULL AS DECIMAL ) ) + + + 92 * + + 63 * + 1 + - + 83 ) ) * - 71 + + 7 ) + - 12 )
----
29

skipif mysql # not compatible
query I rowsort label-6485
SELECT - NULLIF ( - + 29, - NULLIF ( + 84, + - 99 * - 24 * - CAST ( - COUNT ( * ) AS INTEGER ) * 63 / ( - COALESCE ( - 44, - SUM ( - CAST ( NULL AS REAL ) ) + + + 92 * + + 63 * + 1 + - + 83 ) ) * - 71 + + 7 ) + - 12 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT ALL + ( - MIN( DISTINCT - 26 ) ) + - - CASE - 68 WHEN - ( 28 ) THEN + 33 END * + + 28 + + 74 + + - AVG ( + 7 ) * + 27 + 58 * 19 / 20 + - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL + ( - MIN ( DISTINCT - 26 ) ) + - - CASE - 68 WHEN - ( 28 ) THEN + 33 END * + + 28 + + 74 + + - AVG ( + 7 ) * + 27 + 58 * 19 / 20 + - 17 AS col0
----
NULL

query I rowsort
SELECT - 99 * - 69
----
6831

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6488
SELECT DISTINCT ( - - 84 ) + CAST( 79 AS SIGNED ) AS col2
----
163

skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT ( - - 84 ) + CAST ( 79 AS INTEGER ) AS col2
----
163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6489
SELECT ALL + COUNT( * ) DIV 86 + 62 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL + COUNT ( * ) / 86 + 62 AS col2
----
62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6490
SELECT CAST( NULL AS SIGNED ) AS col1, + 56 DIV - + 79 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6490
SELECT CAST ( NULL AS INTEGER ) AS col1, + 56 / - + 79 AS col2
----
NULL
0

query I rowsort
SELECT + 68 * + 79 AS col2
----
5372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6492
SELECT 34 DIV - 39 + + - 1 + - 57 DIV + COALESCE ( - - ( + + 70 ), SUM( + - 64 ), - 77 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6492
SELECT 34 / - 39 + + - 1 + - 57 / + COALESCE ( - - ( + + 70 ), SUM ( + - 64 ), - 77 ) col1
----
-1

query I rowsort
SELECT + 45 * + 82 AS col0
----
3690

query I rowsort
SELECT + ( - NULLIF ( - 19, + ( - - 13 ) ) )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT DISTINCT MIN( ALL 50 ) * 71
----
3550

skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT MIN ( ALL 50 ) * 71
----
3550

query I rowsort
SELECT - 9 + + 98
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6497
SELECT ALL + COUNT( * ) * + 44 - 53 DIV - ( + COUNT( * ) )
----
97

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL + COUNT ( * ) * + 44 - 53 / - ( + COUNT ( * ) )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT DISTINCT + COUNT( * ) * - 10
----
-10

skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT + COUNT ( * ) * - 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT + + NULLIF ( COUNT( * ), + 56 - + 4 ) * - 60 + + + 35 - COUNT( * ) * 86 + 47 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-6499
SELECT + + NULLIF ( COUNT ( * ), + 56 - + 4 ) * - 60 + + + 35 - COUNT ( * ) * 86 + 47 AS col1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6500
SELECT ALL + CAST( NULL AS SIGNED ), 60 AS col0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-6500
SELECT ALL + CAST ( NULL AS INTEGER ), 60 AS col0
----
NULL
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT + - 30 - - + NULLIF ( + 94, - 68 - - ( COUNT( * ) ) * - 46 ) col0
----
64

skipif mysql # not compatible
query I rowsort label-6501
SELECT + - 30 - - + NULLIF ( + 94, - 68 - - ( COUNT ( * ) ) * - 46 ) col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT DISTINCT + MIN( DISTINCT + 99 ) col1
----
99

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT + MIN ( DISTINCT + 99 ) col1
----
99

query I rowsort
SELECT - 76 * + + 99 + + 12 AS col2
----
-7512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6504
SELECT + + ( NULLIF ( + + 13, + ( + CAST( - 73 AS SIGNED ) ) ) ) - + + COUNT( * ) - + 59 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-6504
SELECT + + ( NULLIF ( + + 13, + ( + CAST ( - 73 AS INTEGER ) ) ) ) - + + COUNT ( * ) - + 59 AS col2
----
-47

query I rowsort
SELECT + - 44 * - CASE - 4 WHEN + + 85 THEN - 36 END + - 59 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT 80 * - + 94 * + MIN( 9 ) + + 99 + + 81 + - 63 AS col1
----
-67563

skipif mysql # not compatible
query I rowsort label-6506
SELECT 80 * - + 94 * + MIN ( 9 ) + + 99 + + 81 + - 63 AS col1
----
-67563

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6507
SELECT ALL + CASE 96 WHEN + COALESCE ( + 55, + 3, - 52 ) / - + ( ( 47 ) ) * - 95 + 7 THEN NULL WHEN - 7 * - COUNT( ALL - + 86 ) THEN - + 9 + + 80 END * 1 - - + NULLIF ( 80, - - 24 * + 49 ) - + CAST( + 6 AS SIGNED ) - 39 * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL + CASE 96 WHEN + COALESCE ( + 55, + 3, - 52 ) / - + ( ( 47 ) ) * - 95 + 7 THEN NULL WHEN - 7 * - COUNT ( ALL - + 86 ) THEN - + 9 + + 80 END * 1 - - + NULLIF ( 80, - - 24 * + 49 ) - + CAST ( + 6 AS INTEGER ) - 39 * - 64
----
NULL

query II rowsort
SELECT + 61, 77 + 70 AS col2
----
61
147

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT + MAX( DISTINCT + 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-6509
SELECT + MAX ( DISTINCT + 56 ) AS col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6510
SELECT - 31 DIV + 96 * 19 * - 89 DIV ( - MAX( DISTINCT 28 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6510
SELECT - 31 / + 96 * 19 * - 89 / ( - MAX ( DISTINCT 28 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6511
SELECT ALL + 72 * + COUNT( * ) * 68, 26 + + 26 AS col0
----
4896
52

skipif mysql # not compatible
query II rowsort label-6511
SELECT ALL + 72 * + COUNT ( * ) * 68, 26 + + 26 AS col0
----
4896
52

query I rowsort
SELECT ALL + 23 * + + 16
----
368

query II rowsort
SELECT ALL + 90 AS col2, - 33 AS col0
----
90
-33

query II rowsort
SELECT - 68, - 67 AS col1
----
-68
-67

query I rowsort
SELECT + 73 + 13
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6516
SELECT 39 * + 35 - + 9 AS col1, + COUNT( + 3 ) + + CAST( 54 AS SIGNED ) * + + 53 - 29 * + 41 AS col2
----
1356
1674

skipif mysql # not compatible
query II rowsort label-6516
SELECT 39 * + 35 - + 9 AS col1, + COUNT ( + 3 ) + + CAST ( 54 AS INTEGER ) * + + 53 - 29 * + 41 AS col2
----
1356
1674

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6517
SELECT ( - 20 ) + - CAST( - 7 AS SIGNED ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-6517
SELECT ( - 20 ) + - CAST ( - 7 AS INTEGER ) AS col0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-6518
SELECT 4 + - 95 * 28 DIV 77
----
-30

skipif mysql # not compatible
query I rowsort label-6518
SELECT 4 + - 95 * 28 / 77
----
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6519
SELECT ALL + CAST( NULL AS DECIMAL ) + - 40 + + + ( - 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL + CAST ( NULL AS REAL ) + - 40 + + + ( - 85 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6520
SELECT ALL - COUNT( * ) + 80 + + 62 + - 68 * + - CASE - AVG ( + + 56 ) WHEN + 70 THEN + CAST( NULL AS SIGNED ) + - 64 * 60 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL - COUNT ( * ) + 80 + + 62 + - 68 * + - CASE - AVG ( + + 56 ) WHEN + 70 THEN + CAST ( NULL AS INTEGER ) + - 64 * 60 END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6521
SELECT 29 + - + 28 + CASE - - 97 WHEN + CAST( 55 AS SIGNED ) * 48 + - 5 * - + 75 * - + 41 - + 14 THEN - 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT 29 + - + 28 + CASE - - 97 WHEN + CAST ( 55 AS INTEGER ) * 48 + - 5 * - + 75 * - + 41 - + 14 THEN - 30 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6522
SELECT CAST( NULL AS SIGNED ) / + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6522
SELECT CAST ( NULL AS INTEGER ) / + + 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT ALL + COUNT( * ) + - + 32 + + 32
----
1

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL + COUNT ( * ) + - + 32 + + 32
----
1

query I rowsort
SELECT DISTINCT - ( - ( - 99 ) ) AS col1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6525
SELECT DISTINCT - MIN( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6526
SELECT 28 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-6526
SELECT 28 / 75
----
0

query I rowsort
SELECT DISTINCT + 85 - 79 + + 68 AS col2
----
74

query I rowsort
SELECT DISTINCT - ( 5 ) AS col0
----
-5

query I rowsort
SELECT ALL 73 - - 26 * 98
----
2621

query I rowsort
SELECT 54 * - 93
----
-5022

query I rowsort
SELECT + + 82 * - 84 + + + 29 * 53 * - + 80
----
-129848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6532
SELECT MAX( DISTINCT 77 ) DIV - 21 * - - COUNT( * ) + - 86
----
-89

skipif mysql # not compatible
query I rowsort label-6532
SELECT MAX ( DISTINCT 77 ) / - 21 * - - COUNT ( * ) + - 86
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT ALL - + COUNT( * ) - + + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL - + COUNT ( * ) - + + COUNT ( * )
----
-2

query I rowsort
SELECT 82 + 94 + - 71 * + 12
----
-676

query I rowsort
SELECT 13 * - 98 * + 97
----
-123578

query I rowsort
SELECT 7 * 68 + + - 50
----
426

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT ALL + 43 * - COUNT( * ) * MAX( ALL + - 20 ) + + + CASE + 91 WHEN - 76 THEN 14 END - 5 * ( 36 ) / - 13 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL + 43 * - COUNT ( * ) * MAX ( ALL + - 20 ) + + + CASE + 91 WHEN - 76 THEN 14 END - 5 * ( 36 ) / - 13 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6538
SELECT 71 * CASE - 65 WHEN + 8 * COUNT( * ) + + SUM( ALL - ( + 1 ) ) * 31 * + 94 THEN + + 68 ELSE + + 93 - CASE + + 45 WHEN - 16 THEN NULL ELSE + 23 * COUNT( * ) - - SUM( DISTINCT - 76 ) END * - + 55 DIV COUNT( * ) END
----
-200362

skipif mysql # not compatible
query I rowsort label-6538
SELECT 71 * CASE - 65 WHEN + 8 * COUNT ( * ) + + SUM ( ALL - ( + 1 ) ) * 31 * + 94 THEN + + 68 ELSE + + 93 - CASE + + 45 WHEN - 16 THEN NULL ELSE + 23 * COUNT ( * ) - - SUM ( DISTINCT - 76 ) END * - + 55 / COUNT ( * ) END
----
-200362

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT DISTINCT CASE + + 57 WHEN + - 55 + + 13 THEN - 69 + - COUNT( * ) END + + ( 67 ) / - 52 * 68 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6539
SELECT DISTINCT CASE + + 57 WHEN + - 55 + + 13 THEN - 69 + - COUNT ( * ) END + + ( 67 ) / - 52 * 68 + - + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + ( + 13 ) AS col0
----
13

query I rowsort
SELECT ALL + 11 + + 9 + + 16
----
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6542
SELECT + 71 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6542
SELECT + 71 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT 10 - 67 * + CASE COUNT( * ) WHEN 95 THEN - 80 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6543
SELECT 10 - 67 * + CASE COUNT ( * ) WHEN 95 THEN - 80 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT DISTINCT 52 + - COUNT( DISTINCT 40 )
----
51

skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT 52 + - COUNT ( DISTINCT 40 )
----
51

query I rowsort
SELECT ALL 81 + + 91 AS col2
----
172

query II rowsort
SELECT 88 AS col0, 19 + 6
----
88
25

query I rowsort
SELECT DISTINCT 16 + + 95 AS col1
----
111

query I rowsort
SELECT 32 * 22 AS col2
----
704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6549
SELECT 9 * + COUNT( * ) DIV + 80 * + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6549
SELECT 9 * + COUNT ( * ) / + 80 * + - COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6550
SELECT ( CAST( 53 AS SIGNED ) ) - + 8 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-6550
SELECT ( CAST ( 53 AS INTEGER ) ) - + 8 AS col1
----
45

query I rowsort
SELECT 44 * 42
----
1848

query I rowsort
SELECT DISTINCT + 81 * - + 60 col0
----
-4860

query I rowsort
SELECT 57 * 99 AS col1
----
5643

query I rowsort
SELECT ALL 44 * + 61 AS col0
----
2684

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT 34 * + SUM( ALL + 73 ) * - 80 AS col1
----
-198560

skipif mysql # not compatible
query I rowsort label-6555
SELECT 34 * + SUM ( ALL + 73 ) * - 80 AS col1
----
-198560

query I rowsort
SELECT 7 + - 74
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT NULLIF ( + - 90, 68 * - + 92 + - 39 + + - 78 ) + COUNT( ALL 72 )
----
-89

skipif mysql # not compatible
query I rowsort label-6557
SELECT NULLIF ( + - 90, 68 * - + 92 + - 39 + + - 78 ) + COUNT ( ALL 72 )
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-6558
SELECT ( - + 90 ) DIV + 23
----
-3

skipif mysql # not compatible
query I rowsort label-6558
SELECT ( - + 90 ) / + 23
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6559
SELECT 61 DIV + COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-6559
SELECT 61 / + COUNT ( * ) AS col0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-6560
SELECT + + 77 DIV 47 + 85 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-6560
SELECT + + 77 / 47 + 85 AS col1
----
86

onlyif mysql # DIV for integer division: 
query II rowsort label-6561
SELECT DISTINCT + 34 * + 14 * 5 AS col0, 34 DIV 66 AS col0
----
2380
0

skipif mysql # not compatible
query II rowsort label-6561
SELECT DISTINCT + 34 * + 14 * 5 AS col0, 34 / 66 AS col0
----
2380
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6562
SELECT 40 / - CAST( NULL AS SIGNED ) * - - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6562
SELECT 40 / - CAST ( NULL AS INTEGER ) * - - 54 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT 99 + + COUNT( * ) * - ( + - 65 ) AS col1
----
164

skipif mysql # not compatible
query I rowsort label-6563
SELECT 99 + + COUNT ( * ) * - ( + - 65 ) AS col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT ALL - - MAX( 23 )
----
23

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL - - MAX ( 23 )
----
23

query I rowsort
SELECT ( + 19 ) * + 49 + + 34 + - - 5 + + 32
----
1002

onlyif mysql # DIV for integer division: 
query I rowsort label-6566
SELECT 62 * 28 * + + 3 + - 65 + 19 + 12 + + 9 DIV + 60
----
5174

skipif mysql # not compatible
query I rowsort label-6566
SELECT 62 * 28 * + + 3 + - 65 + 19 + 12 + + 9 / + 60
----
5174

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT - NULLIF ( - - COUNT( DISTINCT - + 91 ), - + 81 + - + 67 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6567
SELECT - NULLIF ( - - COUNT ( DISTINCT - + 91 ), - + 81 + - + 67 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT ALL - - COUNT( * ) + + 17 - 25 - - 95 + - 83 * COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL - - COUNT ( * ) + + 17 - 25 - - 95 + - 83 * COUNT ( * )
----
5

query I rowsort
SELECT + ( - - ( + 77 ) ) col1
----
77

query I rowsort
SELECT ALL - - 21 * 99 AS col0
----
2079

query I rowsort
SELECT - 69 * - 85 AS col1
----
5865

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT DISTINCT COUNT( * ) + 60 * + - 82 AS col2
----
-4919

skipif mysql # not compatible
query I rowsort label-6572
SELECT DISTINCT COUNT ( * ) + 60 * + - 82 AS col2
----
-4919

onlyif mysql # DIV for integer division: 
query I rowsort label-6573
SELECT DISTINCT - 47 + 60 + 63 DIV + 53
----
14

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT - 47 + 60 + 63 / + 53
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-6574
SELECT - COUNT( * ), - 46 AS col0
----
-1
-46

skipif mysql # not compatible
query II rowsort label-6574
SELECT - COUNT ( * ), - 46 AS col0
----
-1
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-6575
SELECT ALL 13 AS col1, - ( 11 ) * + 44 * ( + NULLIF ( COUNT( * ), 81 + + 78 ) )
----
13
-484

skipif mysql # not compatible
query II rowsort label-6575
SELECT ALL 13 AS col1, - ( 11 ) * + 44 * ( + NULLIF ( COUNT ( * ), 81 + + 78 ) )
----
13
-484

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT + 69 - 54 * - COUNT( * )
----
123

skipif mysql # not compatible
query I rowsort label-6576
SELECT + 69 - 54 * - COUNT ( * )
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT DISTINCT - COALESCE ( 34, + + 49 + 21 * + COUNT( * ), + 52 ) + 64
----
30

skipif mysql # not compatible
query I rowsort label-6577
SELECT DISTINCT - COALESCE ( 34, + + 49 + 21 * + COUNT ( * ), + 52 ) + 64
----
30

query II rowsort
SELECT ALL 66 AS col0, + 51
----
66
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6579
SELECT - 40 + - 0 col1, ( 61 ) * + + 89 + COUNT( 72 ) - + - 45 * + 5 * + + 68 - - + MIN( + ( - CAST( NULL AS SIGNED ) ) ) AS col0
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-6579
SELECT - 40 + - 0 col1, ( 61 ) * + + 89 + COUNT ( 72 ) - + - 45 * + 5 * + + 68 - - + MIN ( + ( - CAST ( NULL AS INTEGER ) ) ) AS col0
----
-40
NULL

query I rowsort
SELECT - 33 + - + 7 * - 55
----
352

query I rowsort
SELECT + 10 + + 72 + + + 51 AS col2
----
133

query I rowsort
SELECT ALL + 66 - - 60 AS col2
----
126

query I rowsort
SELECT DISTINCT ( - 9 )
----
-9

query I rowsort
SELECT ALL 97 - + 60 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT DISTINCT COUNT( * ) * - 61 * + 95
----
-5795

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT COUNT ( * ) * - 61 * + 95
----
-5795

query I rowsort
SELECT + 38 * 73 AS col0
----
2774

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6587
SELECT ALL 20 * + NULLIF ( - 48, + + CAST( NULL AS SIGNED ) ), 3 * - - 90 AS col0
----
-960
270

skipif mysql # not compatible
query II rowsort label-6587
SELECT ALL 20 * + NULLIF ( - 48, + + CAST ( NULL AS INTEGER ) ), 3 * - - 90 AS col0
----
-960
270

query I rowsort
SELECT + 32 + + 18 col0
----
50

query I rowsort
SELECT + 44 * + 13 AS col1
----
572

onlyif mysql # DIV for integer division: 
query I rowsort label-6590
SELECT + 2 DIV 57 DIV + - 6 * 88
----
0

skipif mysql # not compatible
query I rowsort label-6590
SELECT + 2 / 57 / + - 6 * 88
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6591
SELECT + ( ( + 4 ) ) * + - 81 * - 14 * + 36 / - 28 * + CAST( + 27 AS SIGNED ) * - CAST( NULL AS SIGNED ) + + 9 / - 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6591
SELECT + ( ( + 4 ) ) * + - 81 * - 14 * + 36 / - 28 * + CAST ( + 27 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + 9 / - 9 AS col1
----
NULL

query I rowsort
SELECT ALL + + 45 col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6593
SELECT + - CAST( - 95 AS SIGNED ) AS col2, 10 DIV 5 + - 29 + + + 9 + - - NULLIF ( + + ( + 15 ), + 13 ) + - 52 * + COUNT( * )
----
95
-55

skipif mysql # not compatible
query II rowsort label-6593
SELECT + - CAST ( - 95 AS INTEGER ) AS col2, 10 / 5 + - 29 + + + 9 + - - NULLIF ( + + ( + 15 ), + 13 ) + - 52 * + COUNT ( * )
----
95
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6594
SELECT DISTINCT NULLIF ( - + CAST( NULL AS SIGNED ), 66 + + 51 ) * - 61 * MIN( DISTINCT + - 65 ) + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT NULLIF ( - + CAST ( NULL AS INTEGER ), 66 + + 51 ) * - 61 * MIN ( DISTINCT + - 65 ) + - 45
----
NULL

query II rowsort
SELECT + 62, 0 AS col1
----
62
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT DISTINCT - COUNT( * ) * + 20 + - 72
----
-92

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT - COUNT ( * ) * + 20 + - 72
----
-92

query I rowsort
SELECT ALL - 65 * + 56 + + 26
----
-3614

query II rowsort
SELECT + 13 AS col1, + 60 * + 22
----
13
1320

query I rowsort
SELECT DISTINCT + - 69 * + 10 + 37 + - 0 AS col0
----
-653

query I rowsort
SELECT + + ( + 90 ) AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6601
SELECT + - CAST( COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6601
SELECT + - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT ALL 48 * + 42 + 80 AS col1
----
2096

onlyif mysql # aggregate syntax: 
query II rowsort label-6603
SELECT 97 AS col2, CASE 44 WHEN COUNT( * ) - CASE + - 64 WHEN 35 THEN + - 3 ELSE + - 93 END THEN + - 68 * + 46 END + + - 64
----
97
NULL

skipif mysql # not compatible
query II rowsort label-6603
SELECT 97 AS col2, CASE 44 WHEN COUNT ( * ) - CASE + - 64 WHEN 35 THEN + - 3 ELSE + - 93 END THEN + - 68 * + 46 END + + - 64
----
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT - 40 + + - ( 83 ) * - MAX( 22 )
----
1786

skipif mysql # not compatible
query I rowsort label-6604
SELECT - 40 + + - ( 83 ) * - MAX ( 22 )
----
1786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6605
SELECT ALL NULLIF ( CASE + 90 WHEN - 75 THEN NULL WHEN - - CAST( NULL AS SIGNED ) + - 61 * + 78 THEN COUNT( * ) END, + - 67 * + 26 + + COUNT( * ) ) * - + 72 / - 49 * + SUM( + 68 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL NULLIF ( CASE + 90 WHEN - 75 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) + - 61 * + 78 THEN COUNT ( * ) END, + - 67 * + 26 + + COUNT ( * ) ) * - + 72 / - 49 * + SUM ( + 68 ) AS col2
----
NULL

query I rowsort
SELECT ALL 56 * - 78 + + 10 * + 6 * + 86
----
792

onlyif mysql # DIV for integer division: 
query I rowsort label-6607
SELECT DISTINCT + 61 DIV - 97 * 96 + + 21 - + 0
----
21

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT + 61 / - 97 * 96 + + 21 - + 0
----
21

query I rowsort
SELECT DISTINCT + + ( + 2 ) col2
----
2

query I rowsort
SELECT ALL + + 72 * + 28
----
2016

query I rowsort
SELECT - 70 + 45 AS col1
----
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-6611
SELECT DISTINCT + ( + ( 55 ) ) DIV - 52 + - 64, 95 AS col1
----
-65
95

skipif mysql # not compatible
query II rowsort label-6611
SELECT DISTINCT + ( + ( 55 ) ) / - 52 + - 64, 95 AS col1
----
-65
95

query I rowsort
SELECT - 16 * + 33 AS col2
----
-528

query I rowsort
SELECT - 92 * + 36 AS col1
----
-3312

query I rowsort
SELECT - 69 - - 60 AS col2
----
-9

query I rowsort
SELECT DISTINCT - 26 * - 7 * + 25 AS col0
----
4550

query I rowsort
SELECT ALL ( 76 ) AS col0
----
76

query I rowsort
SELECT - 62 * 94
----
-5828

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT ALL - ( - COALESCE ( SUM( DISTINCT - + 4 ), 83 ) ) * + ( NULLIF ( + 86, - + MAX( DISTINCT - 48 ) ) ) - - 60
----
-284

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL - ( - COALESCE ( SUM ( DISTINCT - + 4 ), 83 ) ) * + ( NULLIF ( + 86, - + MAX ( DISTINCT - 48 ) ) ) - - 60
----
-284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6619
SELECT DISTINCT CAST( + SUM( - - 89 ) AS SIGNED ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT CAST ( + SUM ( - - 89 ) AS INTEGER ) AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6620
SELECT ALL CAST( - 31 AS SIGNED ) AS col1, 29 * + 73 AS col0
----
-31
2117

skipif mysql # not compatible
query II rowsort label-6620
SELECT ALL CAST ( - 31 AS INTEGER ) AS col1, 29 * + 73 AS col0
----
-31
2117

onlyif mysql # aggregate syntax: 
query II rowsort label-6621
SELECT - ( MAX( 36 ) ), + 11 + - 44 AS col2
----
-36
-33

skipif mysql # not compatible
query II rowsort label-6621
SELECT - ( MAX ( 36 ) ), + 11 + - 44 AS col2
----
-36
-33

query I rowsort
SELECT - ( + + ( 86 ) )
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6623
SELECT - 20 - + MAX( + 75 ) - + 47 DIV - + 79
----
-95

skipif mysql # not compatible
query I rowsort label-6623
SELECT - 20 - + MAX ( + 75 ) - + 47 / - + 79
----
-95

query I rowsort
SELECT ALL 38 * - 43 AS col1
----
-1634

query I rowsort
SELECT DISTINCT 56 * + 53 AS col2
----
2968

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6626
SELECT + 26 DIV - 71 AS col2, COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-6626
SELECT + 26 / - 71 AS col2, COUNT ( * ) AS col0
----
0
1

query I rowsort
SELECT ALL 95 + NULLIF ( + 11, - + 20 )
----
106

query III rowsort
SELECT ALL + 39 * 44, 48 AS col2, 53 * 24 AS col0
----
1716
48
1272

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT MAX( - 41 ) * - 14 + + + 45 + + 15
----
634

skipif mysql # not compatible
query I rowsort label-6629
SELECT MAX ( - 41 ) * - 14 + + + 45 + + 15
----
634

onlyif mysql # DIV for integer division: 
query I rowsort label-6630
SELECT + + 95 DIV 91
----
1

skipif mysql # not compatible
query I rowsort label-6630
SELECT + + 95 / 91
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6631
SELECT - 1 * - - 31 + 67 + - 2 * CAST( - ( 37 ) AS SIGNED ) AS col1
----
110

skipif mysql # not compatible
query I rowsort label-6631
SELECT - 1 * - - 31 + 67 + - 2 * CAST ( - ( 37 ) AS INTEGER ) AS col1
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6632
SELECT 70 + 90 + - 48 * + NULLIF ( - COUNT( * ), + CAST( NULL AS SIGNED ) ) AS col0
----
208

skipif mysql # not compatible
query I rowsort label-6632
SELECT 70 + 90 + - 48 * + NULLIF ( - COUNT ( * ), + CAST ( NULL AS INTEGER ) ) AS col0
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT 16 + + + COUNT( + 91 ) + - + 62 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-6633
SELECT 16 + + + COUNT ( + 91 ) + - + 62 AS col1
----
-45

query I rowsort
SELECT 60 * - - 71 + + 64 * 55 + + - 14
----
7766

query II rowsort
SELECT ALL 12 - + + 7 AS col2, + 6 * + 6
----
5
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT + + CASE - COUNT( * ) WHEN + + AVG ( DISTINCT + 77 ) + 22 + + 19 THEN NULL WHEN 94 * 26 / 63 THEN + SUM( DISTINCT 31 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6636
SELECT + + CASE - COUNT ( * ) WHEN + + AVG ( DISTINCT + 77 ) + 22 + + 19 THEN NULL WHEN 94 * 26 / 63 THEN + SUM ( DISTINCT 31 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6637
SELECT DISTINCT - + COUNT( * ) * - + ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT - + COUNT ( * ) * - + ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + 8 * + 76 col1
----
608

query I rowsort
SELECT ( + + 70 ) + + 79 + - 77 col0
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-6640
SELECT ALL + 88 * - 10 col1, - COUNT( * )
----
-880
-1

skipif mysql # not compatible
query II rowsort label-6640
SELECT ALL + 88 * - 10 col1, - COUNT ( * )
----
-880
-1

query I rowsort
SELECT ( - 44 ) * + 71
----
-3124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6642
SELECT 58 * - COALESCE ( - ( ( 18 ) ), - 38 + + CAST( - 84 AS SIGNED ) + + 62 ) AS col2
----
1044

skipif mysql # not compatible
query I rowsort label-6642
SELECT 58 * - COALESCE ( - ( ( 18 ) ), - 38 + + CAST ( - 84 AS INTEGER ) + + 62 ) AS col2
----
1044

onlyif mysql # aggregate syntax: 
query II rowsort label-6643
SELECT DISTINCT + 66 - 37 * - 80 AS col1, + 23 - - - COUNT( * )
----
3026
22

skipif mysql # not compatible
query II rowsort label-6643
SELECT DISTINCT + 66 - 37 * - 80 AS col1, + 23 - - - COUNT ( * )
----
3026
22

query II rowsort
SELECT ALL - 3 AS col2, - 38 col0
----
-3
-38

query II rowsort
SELECT 4, 65 + 53 + + 76 AS col1
----
4
194

onlyif mysql # aggregate syntax: 
query II rowsort label-6646
SELECT ALL 31 AS col2, 58 + - 34 - - - COUNT( * )
----
31
23

skipif mysql # not compatible
query II rowsort label-6646
SELECT ALL 31 AS col2, 58 + - 34 - - - COUNT ( * )
----
31
23

query I rowsort
SELECT 64 - + 97 AS col1
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-6648
SELECT ALL + 49 DIV - - 23 col1
----
2

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL + 49 / - - 23 col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6649
SELECT CAST( NULL AS SIGNED ) / + ( + 74 ) AS col1, 15 AS col1
----
NULL
15

skipif mysql # not compatible
query II rowsort label-6649
SELECT CAST ( NULL AS INTEGER ) / + ( + 74 ) AS col1, 15 AS col1
----
NULL
15

query I rowsort
SELECT 47 * - 99 AS col0
----
-4653

query I rowsort
SELECT 83 * 51 AS col2
----
4233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6652
SELECT ALL - 77 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL - 77 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6653
SELECT DISTINCT - COUNT( ALL 76 ) + ( + 56 ) / + + 35 / 96 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6653
SELECT DISTINCT - COUNT ( ALL 76 ) + ( + 56 ) / + + 35 / 96 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6654
SELECT ALL + 50 + - + 67 - CAST( 74 AS SIGNED ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL + 50 + - + 67 - CAST ( 74 AS INTEGER ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-6655
SELECT 33 col0, + COUNT( * ) AS col0
----
33
1

skipif mysql # not compatible
query II rowsort label-6655
SELECT 33 col0, + COUNT ( * ) AS col0
----
33
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6656
SELECT + CAST( NULL AS SIGNED ) + + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6656
SELECT + CAST ( NULL AS INTEGER ) + + + 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6657
SELECT ALL - COUNT( 58 ) + + COALESCE ( 78, COUNT( DISTINCT + 7 ) ), + CASE - 83 WHEN + CAST( NULL AS SIGNED ) THEN - 46 WHEN 95 THEN NULL END AS col2
----
77
NULL

skipif mysql # not compatible
query II rowsort label-6657
SELECT ALL - COUNT ( 58 ) + + COALESCE ( 78, COUNT ( DISTINCT + 7 ) ), + CASE - 83 WHEN + CAST ( NULL AS INTEGER ) THEN - 46 WHEN 95 THEN NULL END AS col2
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT - ( MAX( ALL 87 ) ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-6658
SELECT - ( MAX ( ALL 87 ) ) AS col2
----
-87

query I rowsort
SELECT ALL + + 6 + + 86 + 72
----
164

query II rowsort
SELECT + 97, COALESCE ( + - 18, 0 ) AS col1
----
97
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT - MIN( - 69 ) + + 28 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-6661
SELECT - MIN ( - 69 ) + + 28 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT 82 * - 92 + + 64 + - 38 * COUNT( * ) AS col1
----
-7518

skipif mysql # not compatible
query I rowsort label-6662
SELECT 82 * - 92 + + 64 + - 38 * COUNT ( * ) AS col1
----
-7518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6663
SELECT CAST( ( - + COUNT( * ) ) AS SIGNED ) DIV + COUNT( * ) - + 49 + + 43 + - ( + 65 ) * - + 52 AS col1
----
3373

skipif mysql # not compatible
query I rowsort label-6663
SELECT CAST ( ( - + COUNT ( * ) ) AS INTEGER ) / + COUNT ( * ) - + 49 + + 43 + - ( + 65 ) * - + 52 AS col1
----
3373

query I rowsort
SELECT ALL - CASE + 31 WHEN + 21 THEN + - 10 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6665
SELECT ALL CAST( - 5 AS SIGNED ) * 80 AS col1
----
-400

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL CAST ( - 5 AS INTEGER ) * 80 AS col1
----
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT COUNT( 84 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6666
SELECT COUNT ( 84 ) col2
----
1

query I rowsort
SELECT + COALESCE ( - ( - ( 86 ) ), 91 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT COUNT( 62 )
----
1

skipif mysql # not compatible
query I rowsort label-6668
SELECT COUNT ( 62 )
----
1

query I rowsort
SELECT ALL - 34 * 89
----
-3026

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT - NULLIF ( + 88, + COUNT( * ) * MIN( ALL + 71 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-6670
SELECT - NULLIF ( + 88, + COUNT ( * ) * MIN ( ALL + 71 ) )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-6671
SELECT 53 DIV - 72 * - 37
----
0

skipif mysql # not compatible
query I rowsort label-6671
SELECT 53 / - 72 * - 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT 41 * MAX( DISTINCT 30 ) * + 56 - - + 46
----
68926

skipif mysql # not compatible
query I rowsort label-6672
SELECT 41 * MAX ( DISTINCT 30 ) * + 56 - - + 46
----
68926

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT 84 * - ( - COUNT( * ) ) + + COUNT( * ) * - COUNT( * ) + - 5 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-6673
SELECT 84 * - ( - COUNT ( * ) ) + + COUNT ( * ) * - COUNT ( * ) + - 5 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT ALL COUNT( * ) - + 78
----
-77

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL COUNT ( * ) - + 78
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-6675
SELECT - 15 * 11 * + + 72, MIN( - 54 ) AS col2
----
-11880
-54

skipif mysql # not compatible
query II rowsort label-6675
SELECT - 15 * 11 * + + 72, MIN ( - 54 ) AS col2
----
-11880
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT DISTINCT + COUNT( * ) * + ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6676
SELECT DISTINCT + COUNT ( * ) * + ( - COUNT ( * ) )
----
-1

query I rowsort
SELECT COALESCE ( - + 59, 74 ) * - 24 + - - CASE 26 WHEN + ( - + ( - - 30 ) ) THEN 18 ELSE NULL END - - 57
----
NULL

query II rowsort
SELECT ALL + 53 * - 68 AS col0, + 46 + 0
----
-3604
46

query II rowsort
SELECT 54 * 25 * + - 99 - - 67 AS col1, - 40 AS col2
----
-133583
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6680
SELECT ALL 39 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL 39 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( 86, - 54 ) + COALESCE ( 53, 17 )
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT ALL MAX( ALL - + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL MAX ( ALL - + 20 )
----
-20

query I rowsort
SELECT ALL 79 + + ( + 36 ) * - 76
----
-2657

query I rowsort
SELECT DISTINCT 38 + - + 17 + + 7 * + + 52 + + - 10
----
375

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT ALL + COUNT( * ) + + 13 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL + COUNT ( * ) + + 13 AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6686
SELECT DISTINCT - 91 DIV + 5 * + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT - 91 / + 5 * + COUNT ( * )
----
-18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6687
SELECT - 47 DIV CAST( + 85 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6687
SELECT - 47 / CAST ( + 85 AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6688
SELECT DISTINCT - 90 * + 38 * + - 56 + + NULLIF ( - COUNT( * ), - 90 * + COUNT( * ) / - COUNT( * ) / - + CAST( CASE + 48 WHEN - MAX( ALL + 82 ) THEN NULL ELSE + - COUNT( * ) END AS SIGNED ) + - + 64 ) + + - 46 * + 64 * - - 61 AS col2
----
11935

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT - 90 * + 38 * + - 56 + + NULLIF ( - COUNT ( * ), - 90 * + COUNT ( * ) / - COUNT ( * ) / - + CAST ( CASE + 48 WHEN - MAX ( ALL + 82 ) THEN NULL ELSE + - COUNT ( * ) END AS INTEGER ) + - + 64 ) + + - 46 * + 64 * - - 61 AS col2
----
11935

query I rowsort
SELECT DISTINCT + + NULLIF ( + ( + NULLIF ( - 83, - + 40 ) ), - 88 ) * + - 10 + + 98
----
928

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT DISTINCT + COUNT( ALL 98 )
----
1

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT + COUNT ( ALL 98 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT - COUNT( * ) * 83 + SUM( 43 ) * + 24
----
949

skipif mysql # not compatible
query I rowsort label-6691
SELECT - COUNT ( * ) * 83 + SUM ( 43 ) * + 24
----
949

query II rowsort
SELECT ALL + 21 * - - 48 AS col1, - 32
----
1008
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6693
SELECT - CAST( NULL AS SIGNED ) / + 1 + - + ( + 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6693
SELECT - CAST ( NULL AS INTEGER ) / + 1 + - + ( + 38 )
----
NULL

query I rowsort
SELECT ALL + - 30 col0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-6695
SELECT + + ( + + 92 ) * 48 * - + 83 AS col0, COUNT( * ) AS col1
----
-366528
1

skipif mysql # not compatible
query II rowsort label-6695
SELECT + + ( + + 92 ) * 48 * - + 83 AS col0, COUNT ( * ) AS col1
----
-366528
1

query II rowsort
SELECT ALL + 22 * + 34 col0, 48 AS col0
----
748
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6697
SELECT 21 * + CAST( NULL AS SIGNED ) + + 31 * + + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6697
SELECT 21 * + CAST ( NULL AS INTEGER ) + + 31 * + + 50 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6698
SELECT ALL + 67 col2, COALESCE ( - ( + + 22 ), - - COUNT( DISTINCT 1 ) ) + COUNT( * )
----
67
-21

skipif mysql # not compatible
query II rowsort label-6698
SELECT ALL + 67 col2, COALESCE ( - ( + + 22 ), - - COUNT ( DISTINCT 1 ) ) + COUNT ( * )
----
67
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT - 87 * SUM( 96 )
----
-8352

skipif mysql # not compatible
query I rowsort label-6699
SELECT - 87 * SUM ( 96 )
----
-8352

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6700
SELECT - 78 * CAST( NULL AS SIGNED ) + 13 AS col0, - 77 * 39 + - 77 col1
----
NULL
-3080

skipif mysql # not compatible
query II rowsort label-6700
SELECT - 78 * CAST ( NULL AS INTEGER ) + 13 AS col0, - 77 * 39 + - 77 col1
----
NULL
-3080

onlyif mysql # aggregate syntax: 
query II rowsort label-6701
SELECT + COUNT( * ) AS col0, + 84 * - COALESCE ( - 29, - 36 ) * - 27 AS col1
----
1
-65772

skipif mysql # not compatible
query II rowsort label-6701
SELECT + COUNT ( * ) AS col0, + 84 * - COALESCE ( - 29, - 36 ) * - 27 AS col1
----
1
-65772

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT ALL - COUNT( * ) * + 18 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6702
SELECT ALL - COUNT ( * ) * + 18 AS col2
----
-18

query I rowsort
SELECT - 51 * 42
----
-2142

query I rowsort
SELECT + 57 * + + 78 AS col0
----
4446

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT DISTINCT + COUNT( * ) * 78 + + 47
----
125

skipif mysql # not compatible
query I rowsort label-6705
SELECT DISTINCT + COUNT ( * ) * 78 + + 47
----
125

query I rowsort
SELECT - 27 * + 24
----
-648

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6707
SELECT + 9 DIV COUNT( * ) DIV - 94 AS col2, - 70
----
0
-70

skipif mysql # not compatible
query II rowsort label-6707
SELECT + 9 / COUNT ( * ) / - 94 AS col2, - 70
----
0
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-6708
SELECT DISTINCT 33 DIV ( - 70 ) * + 60
----
0

skipif mysql # not compatible
query I rowsort label-6708
SELECT DISTINCT 33 / ( - 70 ) * + 60
----
0

query I rowsort
SELECT ALL ( + 36 ) * - 29 + 20 AS col1
----
-1024

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT + COUNT( * ) + + + 52
----
53

skipif mysql # not compatible
query I rowsort label-6710
SELECT + COUNT ( * ) + + + 52
----
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6711
SELECT + NULLIF ( - 26, MAX( ALL - 30 ) ) - - + 53 - + CAST( NULL AS DECIMAL ) / + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6711
SELECT + NULLIF ( - 26, MAX ( ALL - 30 ) ) - - + 53 - + CAST ( NULL AS REAL ) / + 33
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6712
SELECT ALL - CAST( ( 9 ) AS SIGNED ) - - 55 col1
----
46

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL - CAST ( ( 9 ) AS INTEGER ) - - 55 col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT + + 72 + + SUM( 42 ) + - COUNT( * ) - - 80 AS col0
----
193

skipif mysql # not compatible
query I rowsort label-6713
SELECT + + 72 + + SUM ( 42 ) + - COUNT ( * ) - - 80 AS col0
----
193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6714
SELECT CAST( + ( - 81 ) AS SIGNED ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-6714
SELECT CAST ( + ( - 81 ) AS INTEGER ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT + - ( + COUNT( * ) ) * + 50
----
-50

skipif mysql # not compatible
query I rowsort label-6715
SELECT + - ( + COUNT ( * ) ) * + 50
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT ALL + CASE + + 10 WHEN + 72 * COUNT( * ) + + 72 + + SUM( - 1 ) THEN - 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL + CASE + + 10 WHEN + 72 * COUNT ( * ) + + 72 + + SUM ( - 1 ) THEN - 22 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT + 95 + + SUM( + 97 ) + COUNT( * )
----
193

skipif mysql # not compatible
query I rowsort label-6717
SELECT + 95 + + SUM ( + 97 ) + COUNT ( * )
----
193

query I rowsort
SELECT ALL + 36 - - 67 AS col1
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6719
SELECT + 8 * + + MAX( + - 49 ) + + 6 + - + COUNT( * ) * + 88 DIV - + 24 AS col2
----
-383

skipif mysql # not compatible
query I rowsort label-6719
SELECT + 8 * + + MAX ( + - 49 ) + + 6 + - + COUNT ( * ) * + 88 / - + 24 AS col2
----
-383

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6720
SELECT - + 56 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6720
SELECT - + 56 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6721
SELECT ALL 22, + 32 + COUNT( * ) * COUNT( - 78 ) DIV - - 66 AS col1
----
22
32

skipif mysql # not compatible
query II rowsort label-6721
SELECT ALL 22, + 32 + COUNT ( * ) * COUNT ( - 78 ) / - - 66 AS col1
----
22
32

onlyif mysql # aggregate syntax: 
query II rowsort label-6722
SELECT - COUNT( * ), ( + 53 ) AS col2
----
-1
53

skipif mysql # not compatible
query II rowsort label-6722
SELECT - COUNT ( * ), ( + 53 ) AS col2
----
-1
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT - - 81 + + 72 * + COUNT( + 89 ) AS col2
----
153

skipif mysql # not compatible
query I rowsort label-6723
SELECT - - 81 + + 72 * + COUNT ( + 89 ) AS col2
----
153

query I rowsort
SELECT - + 6 + + - 40 * 18 AS col1
----
-726

onlyif mysql # DIV for integer division: 
query I rowsort label-6725
SELECT ALL - 1 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL - 1 / - 64
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6726
SELECT + - 95 DIV + 93
----
-1

skipif mysql # not compatible
query I rowsort label-6726
SELECT + - 95 / + 93
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6727
SELECT - - MAX( - CAST( + ( ( - 5 ) ) AS SIGNED ) ) DIV COUNT( * ) * 68 AS col2
----
340

skipif mysql # not compatible
query I rowsort label-6727
SELECT - - MAX ( - CAST ( + ( ( - 5 ) ) AS INTEGER ) ) / COUNT ( * ) * 68 AS col2
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT ALL + + 34 * + ( 66 ) - - + COUNT( * ) + 54 AS col1
----
2299

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL + + 34 * + ( 66 ) - - + COUNT ( * ) + 54 AS col1
----
2299

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT - - 46 * + COUNT( ALL + 68 )
----
46

skipif mysql # not compatible
query I rowsort label-6729
SELECT - - 46 * + COUNT ( ALL + 68 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT DISTINCT + + COUNT( DISTINCT - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-6730
SELECT DISTINCT + + COUNT ( DISTINCT - 90 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6731
SELECT DISTINCT 21 DIV + + 84 * - MAX( DISTINCT - + 55 ) + - - NULLIF ( + 8, + COUNT( * ) ) - 81 * + 45 * + 9 * + 7 + + COUNT( * ) AS col0
----
-229626

skipif mysql # not compatible
query I rowsort label-6731
SELECT DISTINCT 21 / + + 84 * - MAX ( DISTINCT - + 55 ) + - - NULLIF ( + 8, + COUNT ( * ) ) - 81 * + 45 * + 9 * + 7 + + COUNT ( * ) AS col0
----
-229626

onlyif mysql # aggregate syntax: 
query II rowsort label-6732
SELECT ALL + 12 AS col2, + CASE + 43 WHEN + 76 THEN - + COUNT( * ) * 71 + 55 ELSE + 41 END + + 89 AS col0
----
12
130

skipif mysql # not compatible
query II rowsort label-6732
SELECT ALL + 12 AS col2, + CASE + 43 WHEN + 76 THEN - + COUNT ( * ) * 71 + 55 ELSE + 41 END + + 89 AS col0
----
12
130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6733
SELECT CAST( NULL AS SIGNED ) AS col0, - 47 - + - 4
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-6733
SELECT CAST ( NULL AS INTEGER ) AS col0, - 47 - + - 4
----
NULL
-43

query I rowsort
SELECT - 10 * 34 * 22 AS col0
----
-7480

onlyif mysql # aggregate syntax: 
query II rowsort label-6735
SELECT 81 * - + MAX( DISTINCT - + 69 ) * + 77 * - COUNT( * ) - 16 + - 35 AS col1, + 28
----
-430404
28

skipif mysql # not compatible
query II rowsort label-6735
SELECT 81 * - + MAX ( DISTINCT - + 69 ) * + 77 * - COUNT ( * ) - 16 + - 35 AS col1, + 28
----
-430404
28

onlyif mysql # aggregate syntax: 
query II rowsort label-6736
SELECT DISTINCT + 15 AS col2, COUNT( * ) col2
----
15
1

skipif mysql # not compatible
query II rowsort label-6736
SELECT DISTINCT + 15 AS col2, COUNT ( * ) col2
----
15
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6737
SELECT ALL 10 DIV - MAX( ALL + + 16 ) + 16 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL 10 / - MAX ( ALL + + 16 ) + 16 AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6738
SELECT ALL - 18 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL - 18 / - 54
----
0

query I rowsort
SELECT DISTINCT - 69 * 39 + + 8 AS col1
----
-2683

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT ALL 44 * - 43 / - - CASE - + 36 WHEN + 58 THEN NULL WHEN - - 18 THEN - 20 * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL 44 * - 43 / - - CASE - + 36 WHEN + 58 THEN NULL WHEN - - 18 THEN - 20 * - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6741
SELECT DISTINCT + 46 - + - 47 * - - 53 * - + 76 * MIN( ALL + ( 82 ) ) * 17 + + 90, - 46 + + + 84 AS col2
----
-263906368
38

skipif mysql # not compatible
query II rowsort label-6741
SELECT DISTINCT + 46 - + - 47 * - - 53 * - + 76 * MIN ( ALL + ( 82 ) ) * 17 + + 90, - 46 + + + 84 AS col2
----
-263906368
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT ALL - 91 * + - NULLIF ( - + 26, 34 * - COUNT( ALL + 73 ) + - 29 ) AS col1
----
-2366

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL - 91 * + - NULLIF ( - + 26, 34 * - COUNT ( ALL + 73 ) + - 29 ) AS col1
----
-2366

query I rowsort
SELECT + 70 * + 19 * + 24 + - 66 * 8 + - 91
----
31301

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6744
SELECT - - 90 AS col1, CAST( NULL AS DECIMAL ) AS col0
----
90
NULL

skipif mysql # not compatible
query II rowsort label-6744
SELECT - - 90 AS col1, CAST ( NULL AS REAL ) AS col0
----
90
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6745
SELECT ALL + NULLIF ( - - CAST( NULL AS SIGNED ), - + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL + NULLIF ( - - CAST ( NULL AS INTEGER ), - + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6746
SELECT ALL COUNT( * ), - SUM( ALL + + 73 ) + - + MAX( ALL + - 50 ) * 65 AS col0
----
1
3177

skipif mysql # not compatible
query II rowsort label-6746
SELECT ALL COUNT ( * ), - SUM ( ALL + + 73 ) + - + MAX ( ALL + - 50 ) * 65 AS col0
----
1
3177

query II rowsort
SELECT DISTINCT 44, 1 AS col1
----
44
1

query I rowsort
SELECT ALL - 5 * + - 1
----
5

query I rowsort
SELECT DISTINCT + 72 * 12 + + - 93
----
771

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6750
SELECT CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) + + CAST( + 78 AS SIGNED ) + 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + + CAST ( + 78 AS INTEGER ) + 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT + 42 * - + 84 * ( MIN( - 17 ) )
----
59976

skipif mysql # not compatible
query I rowsort label-6751
SELECT + 42 * - + 84 * ( MIN ( - 17 ) )
----
59976

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT ALL 12 * - 67 + 2 - - 66 * + COUNT( * )
----
-736

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL 12 * - 67 + 2 - - 66 * + COUNT ( * )
----
-736

onlyif mysql # aggregate syntax: 
query II rowsort label-6753
SELECT ALL 25 + + 44 + + 7 * 58 + SUM( ALL - 38 ) AS col0, 30
----
437
30

skipif mysql # not compatible
query II rowsort label-6753
SELECT ALL 25 + + 44 + + 7 * 58 + SUM ( ALL - 38 ) AS col0, 30
----
437
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT - ( 4 ) - + COUNT( * ) * COUNT( * ) * - 52 + - ( + CASE + 96 WHEN - + 79 THEN NULL WHEN + 49 * - 16 * - 55 / - 4 THEN + 22 WHEN + 36 THEN 46 ELSE NULL END ) + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6754
SELECT - ( 4 ) - + COUNT ( * ) * COUNT ( * ) * - 52 + - ( + CASE + 96 WHEN - + 79 THEN NULL WHEN + 49 * - 16 * - 55 / - 4 THEN + 22 WHEN + 36 THEN 46 ELSE NULL END ) + 38 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6755
SELECT + 82 * + 34 - + 92 + - 83 + 97 * + 90 * 44 + COUNT( * ) * - 85 * ( 16 ) + CAST( - 95 AS SIGNED ) AS col1
----
385278

skipif mysql # not compatible
query I rowsort label-6755
SELECT + 82 * + 34 - + 92 + - 83 + 97 * + 90 * 44 + COUNT ( * ) * - 85 * ( 16 ) + CAST ( - 95 AS INTEGER ) AS col1
----
385278

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6756
SELECT ALL 22 DIV 99, COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-6756
SELECT ALL 22 / 99, COUNT ( * ) AS col1
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6757
SELECT CAST( + 55 AS SIGNED ) * 4 - + 7 AS col0
----
213

skipif mysql # not compatible
query I rowsort label-6757
SELECT CAST ( + 55 AS INTEGER ) * 4 - + 7 AS col0
----
213

query I rowsort
SELECT ALL + 95 + - 87 + + - 92 * 61
----
-5604

onlyif mysql # DIV for integer division: 
query I rowsort label-6759
SELECT ALL ( + 52 ) DIV - 49
----
-1

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL ( + 52 ) / - 49
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT ALL - 22 * + COUNT( * ) * 96
----
-2112

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL - 22 * + COUNT ( * ) * 96
----
-2112

query I rowsort
SELECT ALL - ( - 22 ) AS col0
----
22

query I rowsort
SELECT ALL - 32 - + ( + - 29 )
----
-3

query I rowsort
SELECT DISTINCT + 77 - NULLIF ( - 43, - - ( + 1 ) ) AS col1
----
120

query II rowsort
SELECT DISTINCT - 14 - - + 78 AS col1, 3
----
64
3

query I rowsort
SELECT 82 * + + 45 AS col1
----
3690

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT + 49 * - 7 + - - ( MAX( ALL ( - - 71 ) ) )
----
-272

skipif mysql # not compatible
query I rowsort label-6766
SELECT + 49 * - 7 + - - ( MAX ( ALL ( - - 71 ) ) )
----
-272

query I rowsort
SELECT DISTINCT - - ( - 73 ) - 0 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT - MIN( ALL - 61 )
----
61

skipif mysql # not compatible
query I rowsort label-6768
SELECT - MIN ( ALL - 61 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6769
SELECT ALL + + 55 * + COALESCE ( + + 6, + COALESCE ( - ( - 11 ), COUNT( * ) ), - 78 * + 62 + + 80 * + + CAST( NULL AS SIGNED ) )
----
330

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL + + 55 * + COALESCE ( + + 6, + COALESCE ( - ( - 11 ), COUNT ( * ) ), - 78 * + 62 + + 80 * + + CAST ( NULL AS INTEGER ) )
----
330

query I rowsort
SELECT DISTINCT + 17 * 22 AS col1
----
374

query I rowsort
SELECT - 52 + + NULLIF ( - + 64, AVG ( 85 ) + + 38 ) AS col2
----
-116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6772
SELECT - COUNT( ALL + 92 ) DIV - 11 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6772
SELECT - COUNT ( ALL + 92 ) / - 11 AS col1
----
0

query I rowsort
SELECT ALL + + 63 * + ( + 16 ) + 77
----
1085

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6774
SELECT ALL - 15 * CAST( - 1 AS SIGNED ) + 33 DIV - 89
----
15

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL - 15 * CAST ( - 1 AS INTEGER ) + 33 / - 89
----
15

query I rowsort
SELECT 53 + + 37 AS col0
----
90

query I rowsort
SELECT + 93 + 17 AS col2
----
110

query I rowsort
SELECT ALL + - 88 + + 56 + + 71 * + 16 * 61 * 51
----
3534064

query I rowsort
SELECT DISTINCT 41 + - 77
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6779
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - 23 / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - 23 / + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL 22 + + 41 + + - 83 * + + 65
----
-5332

query II rowsort
SELECT - 56, 0 AS col2
----
-56
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6782
SELECT 53 AS col2, 25 * MAX( ALL 52 ) - - - 40 col1
----
53
1260

skipif mysql # not compatible
query II rowsort label-6782
SELECT 53 AS col2, 25 * MAX ( ALL 52 ) - - - 40 col1
----
53
1260

onlyif mysql # aggregate syntax: 
query II rowsort label-6783
SELECT 88 AS col1, - COUNT( * ) + - + 31 col2
----
88
-32

skipif mysql # not compatible
query II rowsort label-6783
SELECT 88 AS col1, - COUNT ( * ) + - + 31 col2
----
88
-32

query I rowsort
SELECT DISTINCT 16 * + 99 col2
----
1584

query I rowsort
SELECT ALL 75 + - 42 AS col1
----
33

query I rowsort
SELECT DISTINCT 34 + + 93
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6787
SELECT ALL 80 * CAST( + 69 AS SIGNED ) AS col2, 20 + + CAST( NULL AS SIGNED ) + + COUNT( 40 )
----
5520
NULL

skipif mysql # not compatible
query II rowsort label-6787
SELECT ALL 80 * CAST ( + 69 AS INTEGER ) AS col2, 20 + + CAST ( NULL AS INTEGER ) + + COUNT ( 40 )
----
5520
NULL

query I rowsort
SELECT CASE - 78 WHEN 47 THEN 29 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6789
SELECT + 89 DIV + 1 - + 54 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6789
SELECT + 89 / + 1 - + 54 AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6790
SELECT + CAST( NULL AS SIGNED ) * ( 10 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6790
SELECT + CAST ( NULL AS INTEGER ) * ( 10 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT + 39 * - 11 * - 75 + + + COUNT( * ) AS col2
----
32176

skipif mysql # not compatible
query I rowsort label-6791
SELECT + 39 * - 11 * - 75 + + + COUNT ( * ) AS col2
----
32176

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT MAX( ALL - - 52 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6792
SELECT MAX ( ALL - - 52 ) AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6793
SELECT - 97 * + + 53 DIV COUNT( * ) col2, COUNT( * ) AS col1
----
-5141
1

skipif mysql # not compatible
query II rowsort label-6793
SELECT - 97 * + + 53 / COUNT ( * ) col2, COUNT ( * ) AS col1
----
-5141
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT ALL COALESCE ( 77, - MIN( ALL + 37 ) ) * + - 88 + + NULLIF ( + 41, + 35 * - - COUNT( DISTINCT - 83 ) * - - 71 + COUNT( * ) + - 18 )
----
-6735

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL COALESCE ( 77, - MIN ( ALL + 37 ) ) * + - 88 + + NULLIF ( + 41, + 35 * - - COUNT ( DISTINCT - 83 ) * - - 71 + COUNT ( * ) + - 18 )
----
-6735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6795
SELECT + CAST( NULL AS SIGNED ) + - + 1 * + 42 / 64 / + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6795
SELECT + CAST ( NULL AS INTEGER ) + - + 1 * + 42 / 64 / + 69 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6796
SELECT DISTINCT + 46 * 11 * - CASE - NULLIF ( + 30, ( + - COUNT( * ) ) ) WHEN 2 THEN - ( + - 52 ) * - + CAST( + + MIN( - 64 ) AS SIGNED ) END * + 74 + + 26 + + 78 * - - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT + 46 * 11 * - CASE - NULLIF ( + 30, ( + - COUNT ( * ) ) ) WHEN 2 THEN - ( + - 52 ) * - + CAST ( + + MIN ( - 64 ) AS INTEGER ) END * + 74 + + 26 + + 78 * - - 76
----
NULL

query I rowsort
SELECT + 43 - + 13
----
30

query I rowsort
SELECT + 61 * + 34
----
2074

query I rowsort
SELECT ALL 17 * 24 AS col0
----
408

onlyif mysql # aggregate syntax: 
query II rowsort label-6800
SELECT ALL + 32, COUNT( * ) * - - ( ( 46 ) ) col2
----
32
46

skipif mysql # not compatible
query II rowsort label-6800
SELECT ALL + 32, COUNT ( * ) * - - ( ( 46 ) ) col2
----
32
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT - 57 * - 95 + 97 + + ( + COUNT( * ) ) AS col1
----
5513

skipif mysql # not compatible
query I rowsort label-6801
SELECT - 57 * - 95 + 97 + + ( + COUNT ( * ) ) AS col1
----
5513

query I rowsort
SELECT - 61 * - 90 * + 29 - - 95 * + 10 * - 12 col0
----
147810

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT - 97 * - - COUNT( * ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-6803
SELECT - 97 * - - COUNT ( * ) AS col1
----
-97

query I rowsort
SELECT ALL - 13 + - - 10
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6805
SELECT DISTINCT 57 col0, CAST( NULL AS SIGNED )
----
57
NULL

skipif mysql # not compatible
query II rowsort label-6805
SELECT DISTINCT 57 col0, CAST ( NULL AS INTEGER )
----
57
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT ALL + 22 + - + 61 + - MAX( ALL - + CASE + 65 WHEN ( - 89 ) / + - 6 THEN NULL ELSE + - 96 * - + 88 END ) - - 25 AS col2
----
8434

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL + 22 + - + 61 + - MAX ( ALL - + CASE + 65 WHEN ( - 89 ) / + - 6 THEN NULL ELSE + - 96 * - + 88 END ) - - 25 AS col2
----
8434

query I rowsort
SELECT ALL NULLIF ( 22, + - 4 )
----
22

query II rowsort
SELECT - 35 AS col1, + 15 * - + 50
----
-35
-750

query I rowsort
SELECT ALL - 53 + + - 1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT DISTINCT - CASE 78 WHEN - COUNT( * ) THEN COUNT( * ) WHEN - + 34 * - COUNT( * ) * - 32 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT - CASE 78 WHEN - COUNT ( * ) THEN COUNT ( * ) WHEN - + 34 * - COUNT ( * ) * - 32 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT ALL 30 + - 96 * + 35 * COUNT( * )
----
-3330

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL 30 + - 96 * + 35 * COUNT ( * )
----
-3330

query I rowsort
SELECT - 0 * - - 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT ALL + ( + 50 ) * - COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL + ( + 50 ) * - COUNT ( * ) AS col0
----
-50

query I rowsort
SELECT - 43 + 6 * - + 16 * + 4
----
-427

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT DISTINCT + + 85 * COUNT( * ) * - 56 + - 62 AS col0
----
-4822

skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT + + 85 * COUNT ( * ) * - 56 + - 62 AS col0
----
-4822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6816
SELECT - - 6 - + + ( - CAST( + 51 AS SIGNED ) ) * 23 AS col2
----
1179

skipif mysql # not compatible
query I rowsort label-6816
SELECT - - 6 - + + ( - CAST ( + 51 AS INTEGER ) ) * 23 AS col2
----
1179

query I rowsort
SELECT + 11 * 24
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-6818
SELECT ALL 69 DIV - + 11 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL 69 / - + 11 AS col2
----
-6

query I rowsort
SELECT - 75 * COALESCE ( + 21, - ( - 24 ) )
----
-1575

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT - SUM( + - 37 )
----
37

skipif mysql # not compatible
query I rowsort label-6820
SELECT - SUM ( + - 37 )
----
37

query I rowsort
SELECT DISTINCT ( + 2 ) col1
----
2

query I rowsort
SELECT - 21 + + - 51 + - ( COALESCE ( 31, 50 ) ) * - 53
----
1571

query II rowsort
SELECT + 27 - - 5 col0, - 0
----
32
0

query I rowsort
SELECT + ( - - 43 ) / - CASE - 60 WHEN 19 THEN + - 83 END + + 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT - ( - + 89 ) * + COUNT( * ) * + 26
----
2314

skipif mysql # not compatible
query I rowsort label-6825
SELECT - ( - + 89 ) * + COUNT ( * ) * + 26
----
2314

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT DISTINCT COUNT( * ) * + - 17 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT COUNT ( * ) * + - 17 AS col0
----
-17

query I rowsort
SELECT + ( + NULLIF ( - 51, - 61 ) )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT DISTINCT + MAX( ALL - 77 ) * - 43
----
3311

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT + MAX ( ALL - 77 ) * - 43
----
3311

query II rowsort
SELECT ( + 3 ), - 59 AS col1
----
3
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT ALL COALESCE ( - 94, + + COUNT( * ) * - ( + 40 ) ) * - 38
----
3572

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL COALESCE ( - 94, + + COUNT ( * ) * - ( + 40 ) ) * - 38
----
3572

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT ALL - + COUNT( * ) * - SUM( ALL + + 77 ) + - - 29 + COUNT( * ) AS col0
----
107

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL - + COUNT ( * ) * - SUM ( ALL + + 77 ) + - - 29 + COUNT ( * ) AS col0
----
107

query I rowsort
SELECT + + 3 + - 25 * 11
----
-272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6833
SELECT + ( 10 ) + CAST( - 58 AS SIGNED ) + 26 * - + 91
----
-2414

skipif mysql # not compatible
query I rowsort label-6833
SELECT + ( 10 ) + CAST ( - 58 AS INTEGER ) + 26 * - + 91
----
-2414

onlyif mysql # DIV for integer division: 
query I rowsort label-6834
SELECT + - 28 DIV - ( - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-6834
SELECT + - 28 / - ( - 86 )
----
0

query I rowsort
SELECT ALL + + 50 * + 12 + 46 AS col2
----
646

onlyif mysql # DIV for integer division: 
query I rowsort label-6836
SELECT + - 79 * 85 * 48 DIV - 17
----
18960

skipif mysql # not compatible
query I rowsort label-6836
SELECT + - 79 * 85 * 48 / - 17
----
18960

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT + COUNT( * ) + + 40
----
41

skipif mysql # not compatible
query I rowsort label-6837
SELECT + COUNT ( * ) + + 40
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT + COUNT( 78 ) + 79 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-6838
SELECT + COUNT ( 78 ) + 79 AS col2
----
80

query I rowsort
SELECT DISTINCT - 65 * - - 63
----
-4095

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT + NULLIF ( - 59, + - NULLIF ( + COUNT( * ), + 20 ) * 5 ) + + 81
----
22

skipif mysql # not compatible
query I rowsort label-6840
SELECT + NULLIF ( - 59, + - NULLIF ( + COUNT ( * ), + 20 ) * 5 ) + + 81
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT - - MIN( ALL + - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-6841
SELECT - - MIN ( ALL + - 43 )
----
-43

query I rowsort
SELECT - 64 + 67 AS col2
----
3

query I rowsort
SELECT ALL 63 - - ( - 48 ) AS col0
----
15

query I rowsort
SELECT ALL - 63 - ( 25 )
----
-88

query I rowsort
SELECT - 51 * - 34
----
1734

onlyif mysql # DIV for integer division: 
query I rowsort label-6846
SELECT ALL - 91 DIV + - 56
----
1

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL - 91 / + - 56
----
1

query I rowsort
SELECT 92 + - 2
----
90

query II rowsort
SELECT - 69 AS col2, - 37 AS col0
----
-69
-37

query I rowsort
SELECT 1 + + 87 AS col2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6850
SELECT 72 DIV - 9 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-6850
SELECT 72 / - 9 AS col1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6851
SELECT DISTINCT - 55 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6851
SELECT DISTINCT - 55 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 20 + + 48 + + 58 * + 54
----
3200

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL - SUM( - 54 ) col2
----
54

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL - SUM ( - 54 ) col2
----
54

query I rowsort
SELECT ALL + 1 * - 33
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT COUNT( * ) * - - 91 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-6855
SELECT COUNT ( * ) * - - 91 AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6856
SELECT ALL COUNT( * ) / MAX( CASE + 48 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN 26 THEN - 64 ELSE NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL COUNT ( * ) / MAX ( CASE + 48 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN 26 THEN - 64 ELSE NULL END ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT ALL - MIN( + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL - MIN ( + 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT 91 - - 39 + - SUM( - 95 ) + 84 + + - 10 col1
----
299

skipif mysql # not compatible
query I rowsort label-6858
SELECT 91 - - 39 + - SUM ( - 95 ) + 84 + + - 10 col1
----
299

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT 97 * - CASE + + 46 WHEN + 24 * - - COUNT( * ) * + + 84 + - 23 THEN + 93 ELSE - - 66 END
----
-6402

skipif mysql # not compatible
query I rowsort label-6859
SELECT 97 * - CASE + + 46 WHEN + 24 * - - COUNT ( * ) * + + 84 + - 23 THEN + 93 ELSE - - 66 END
----
-6402

query II rowsort
SELECT 93 * - 54 + + 92 AS col1, - 15
----
-4930
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-6861
SELECT DISTINCT - 21 + 89 + + 59 AS col0, + 18 DIV + 60 AS col2
----
127
0

skipif mysql # not compatible
query II rowsort label-6861
SELECT DISTINCT - 21 + 89 + + 59 AS col0, + 18 / + 60 AS col2
----
127
0

query II rowsort
SELECT 86 AS col1, + 56 * NULLIF ( + - 24, - ( + - 82 ) + - - 10 ) AS col0
----
86
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT - + COUNT( * ) * - 16 * - 96 * 24 * MIN( DISTINCT - 7 ) + + 47 * MAX( ALL - 47 ) AS col2
----
255839

skipif mysql # not compatible
query I rowsort label-6863
SELECT - + COUNT ( * ) * - 16 * - 96 * 24 * MIN ( DISTINCT - 7 ) + + 47 * MAX ( ALL - 47 ) AS col2
----
255839

query II rowsort
SELECT ALL 35 + - 76 + - 70 + NULLIF ( 23, - 59 ), - 70 AS col1
----
-88
-70

query I rowsort
SELECT ALL - 88 + + - 38 AS col2
----
-126

onlyif mysql # aggregate syntax: 
query II rowsort label-6866
SELECT - 90 * + - MIN( + 6 ) * + 88 + - 23 + - MAX( DISTINCT + 92 ) - + 26, 33 col1
----
47379
33

skipif mysql # not compatible
query II rowsort label-6866
SELECT - 90 * + - MIN ( + 6 ) * + 88 + - 23 + - MAX ( DISTINCT + 92 ) - + 26, 33 col1
----
47379
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT + - MAX( DISTINCT 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-6867
SELECT + - MAX ( DISTINCT 7 )
----
-7

query I rowsort
SELECT ALL + 86 + - 99 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6869
SELECT ALL - 27 + - 30 + - 0 * + 37 / CAST( NULL AS SIGNED ) * 38 - - + 21 + + 92 * + COUNT( * ) * + 11, ( 99 ) * - SUM( + 8 ) AS col2
----
NULL
-792

skipif mysql # not compatible
query II rowsort label-6869
SELECT ALL - 27 + - 30 + - 0 * + 37 / CAST ( NULL AS INTEGER ) * 38 - - + 21 + + 92 * + COUNT ( * ) * + 11, ( 99 ) * - SUM ( + 8 ) AS col2
----
NULL
-792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6870
SELECT ALL + CAST( NULL AS SIGNED ) + 62 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL + CAST ( NULL AS INTEGER ) + 62 col0
----
NULL

query I rowsort
SELECT + 68 + - 95
----
-27

query I rowsort
SELECT 98 * + 16 AS col1
----
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT + CASE - + 1 WHEN - CASE - + 82 WHEN - 2 THEN NULL WHEN + 83 + + 55 THEN NULL WHEN - + COUNT( * ) - - 5 THEN - - 5 * - ( + COUNT( * ) ) + - - 58 + 59 + COUNT( * ) * - - 70 END THEN NULL ELSE COALESCE ( + + 60, - + 53 ) END AS col1
----
60

skipif mysql # not compatible
query I rowsort label-6873
SELECT + CASE - + 1 WHEN - CASE - + 82 WHEN - 2 THEN NULL WHEN + 83 + + 55 THEN NULL WHEN - + COUNT ( * ) - - 5 THEN - - 5 * - ( + COUNT ( * ) ) + - - 58 + 59 + COUNT ( * ) * - - 70 END THEN NULL ELSE COALESCE ( + + 60, - + 53 ) END AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT + + COUNT( DISTINCT 70 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6874
SELECT + + COUNT ( DISTINCT 70 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT DISTINCT MAX( - + 46 ) col0
----
-46

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT MAX ( - + 46 ) col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6876
SELECT DISTINCT - CAST( - + ( 33 ) AS SIGNED ) * + 23
----
759

skipif mysql # not compatible
query I rowsort label-6876
SELECT DISTINCT - CAST ( - + ( 33 ) AS INTEGER ) * + 23
----
759

query I rowsort
SELECT DISTINCT + 62 * - 43 * + + 16 col0
----
-42656

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT DISTINCT 98 - - COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT 98 - - COUNT ( * )
----
99

query I rowsort
SELECT DISTINCT - 77 * 47 AS col0
----
-3619

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT ALL 16 * + 10 * + COUNT( * ) AS col1
----
160

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL 16 * + 10 * + COUNT ( * ) AS col1
----
160

query II rowsort
SELECT ALL 63, + 62 AS col0
----
63
62

query I rowsort
SELECT 76 * - 65 AS col0
----
-4940

query I rowsort
SELECT 82 - 59
----
23

query I rowsort
SELECT 17 * + + 27 AS col0
----
459

query I rowsort
SELECT DISTINCT 15 * + - 43
----
-645

query II rowsort
SELECT ALL 78 col1, + ( 27 ) AS col1
----
78
27

query I rowsort
SELECT ALL - 42 + ( + 15 ) AS col0
----
-27

query II rowsort
SELECT 1 + 67 AS col2, 18 AS col0
----
68
18

query II rowsort
SELECT ALL 31, 93 + - - 93 + - 10 AS col1
----
31
176

onlyif mysql # DIV for integer division: 
query I rowsort label-6890
SELECT 7 DIV + 2 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6890
SELECT 7 / + 2 AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6891
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 44 * + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 44 * + 77
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6892
SELECT 33 DIV 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6892
SELECT 33 / 72 AS col0
----
0

query I rowsort
SELECT ALL - ( - ( 27 ) )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6894
SELECT - AVG ( + 86 ) * + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6894
SELECT - AVG ( + 86 ) * + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6895
SELECT + - 95 AS col1, - 85 - 14 - + 6 + + COUNT( - ( - + 53 ) ) + 10 DIV - COALESCE ( ( - + 82 ), - 63 * + 48 DIV + + ( - - 68 ) - 15 + - 54 - - NULLIF ( - 9, - 46 ) - - 76 DIV + CASE - ( + 47 ) WHEN 50 + - 75 + - + 49 - CASE 73 WHEN - + NULLIF ( + 43, - 61 ) + + 64 THEN + 54 * + 63 WHEN - COUNT( DISTINCT - 99 ) THEN 9 + - AVG ( ALL 48 ) END * 22 THEN 87 END DIV 13 - ( - MIN( DISTINCT 31 ) - - 40 ) ) * - 81 * 88 AS col2
----
-95
-104

skipif mysql # not compatible
query II rowsort label-6895
SELECT + - 95 AS col1, - 85 - 14 - + 6 + + COUNT ( - ( - + 53 ) ) + 10 / - COALESCE ( ( - + 82 ), - 63 * + 48 / + + ( - - 68 ) - 15 + - 54 - - NULLIF ( - 9, - 46 ) - - 76 / + CASE - ( + 47 ) WHEN 50 + - 75 + - + 49 - CASE 73 WHEN - + NULLIF ( + 43, - 61 ) + + 64 THEN + 54 * + 63 WHEN - COUNT ( DISTINCT - 99 ) THEN 9 + - AVG ( ALL 48 ) END * 22 THEN 87 END / 13 - ( - MIN ( DISTINCT 31 ) - - 40 ) ) * - 81 * 88 AS col2
----
-95
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6896
SELECT DISTINCT - + 41 * - 49 * + NULLIF ( - COUNT( * ), COALESCE ( + 99, 15 + - 58, 35 + 48, 14 ) * + 95 * COUNT( * ) * + - 36 + + COUNT( + CAST( NULL AS SIGNED ) ) * - 25 ) + - - ( + CASE + 70 WHEN + 30 THEN NULL WHEN - ( - + 61 ) THEN NULL ELSE - 3 END ) + + - 19
----
-2031

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT - + 41 * - 49 * + NULLIF ( - COUNT ( * ), COALESCE ( + 99, 15 + - 58, 35 + 48, 14 ) * + 95 * COUNT ( * ) * + - 36 + + COUNT ( + CAST ( NULL AS INTEGER ) ) * - 25 ) + - - ( + CASE + 70 WHEN + 30 THEN NULL WHEN - ( - + 61 ) THEN NULL ELSE - 3 END ) + + - 19
----
-2031

onlyif mysql # aggregate syntax: 
query II rowsort label-6897
SELECT ( + NULLIF ( - 28, - 44 ) ), 5 * + SUM( - + 67 ) col2
----
-28
-335

skipif mysql # not compatible
query II rowsort label-6897
SELECT ( + NULLIF ( - 28, - 44 ) ), 5 * + SUM ( - + 67 ) col2
----
-28
-335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6898
SELECT - 62 * + CAST( NULL AS SIGNED ) + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6898
SELECT - 62 * + CAST ( NULL AS INTEGER ) + - 34
----
NULL

query I rowsort
SELECT ALL - + 76 * + 55 + - 52 AS col0
----
-4232

query II rowsort
SELECT DISTINCT - - 95 AS col0, 43
----
95
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6901
SELECT ALL - CASE - + CAST( + 4 AS SIGNED ) WHEN 29 THEN - 60 * - + 83 ELSE - CAST( - 92 AS SIGNED ) * - COUNT( * ) END + + 4
----
96

skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL - CASE - + CAST ( + 4 AS INTEGER ) WHEN 29 THEN - 60 * - + 83 ELSE - CAST ( - 92 AS INTEGER ) * - COUNT ( * ) END + + 4
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT ALL - ( MIN( DISTINCT - 36 ) )
----
36

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL - ( MIN ( DISTINCT - 36 ) )
----
36

query II rowsort
SELECT - 83 + + 45, + 4 AS col1
----
-38
4

query I rowsort
SELECT ALL + 74 - + ( + + 64 ) AS col2
----
10

query I rowsort
SELECT DISTINCT - 83 * 14
----
-1162

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT DISTINCT - COALESCE ( - 45, - MAX( - + 29 ) * ( 22 ) )
----
45

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT - COALESCE ( - 45, - MAX ( - + 29 ) * ( 22 ) )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6907
SELECT ALL CAST( - 13 AS SIGNED ) * - 1 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL CAST ( - 13 AS INTEGER ) * - 1 AS col2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6908
SELECT ALL - + 85, + 64 AS col0, - - COALESCE ( + 14, COALESCE ( + COUNT( * ), + 26 ) DIV - 93 ) AS col2
----
-85
64
14

skipif mysql # not compatible
query III rowsort label-6908
SELECT ALL - + 85, + 64 AS col0, - - COALESCE ( + 14, COALESCE ( + COUNT ( * ), + 26 ) / - 93 ) AS col2
----
-85
64
14

onlyif mysql # aggregate syntax: 
query II rowsort label-6909
SELECT DISTINCT - + 24 * + - COUNT( * ) AS col0, - 93 * + 3 AS col0
----
24
-279

skipif mysql # not compatible
query II rowsort label-6909
SELECT DISTINCT - + 24 * + - COUNT ( * ) AS col0, - 93 * + 3 AS col0
----
24
-279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6910
SELECT ALL 83 col1, 76 * - COUNT( * ) * + 70 col0, - - ( - CAST( NULL AS SIGNED ) )
----
83
-5320
NULL

skipif mysql # not compatible
query III rowsort label-6910
SELECT ALL 83 col1, 76 * - COUNT ( * ) * + 70 col0, - - ( - CAST ( NULL AS INTEGER ) )
----
83
-5320
NULL

query I rowsort
SELECT ALL + 73 * - - 20 * 40
----
58400

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT - CASE + - 39 WHEN 39 THEN NULL WHEN 30 THEN - - 66 + - COUNT( * ) END * - + COALESCE ( + MIN( ALL 20 ), 32, - + 36 / - 46 + + 85 ) * - 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6912
SELECT - CASE + - 39 WHEN 39 THEN NULL WHEN 30 THEN - - 66 + - COUNT ( * ) END * - + COALESCE ( + MIN ( ALL 20 ), 32, - + 36 / - 46 + + 85 ) * - 29 AS col0
----
NULL

query I rowsort
SELECT + 80 + 53
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6914
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6915
SELECT + 68 + CAST( NULL AS SIGNED ) + - SUM( ALL - 23 ) * - + 62, COUNT( * ) DIV - 9 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6915
SELECT + 68 + CAST ( NULL AS INTEGER ) + - SUM ( ALL - 23 ) * - + 62, COUNT ( * ) / - 9 AS col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT ALL NULLIF ( 82, + - 89 * + - CASE - 98 WHEN + CASE COUNT( * ) WHEN 76 * 82 + - 60 THEN NULL ELSE + + MAX( ALL 33 ) END * 47 THEN 95 ELSE - + 22 END )
----
82

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL NULLIF ( 82, + - 89 * + - CASE - 98 WHEN + CASE COUNT ( * ) WHEN 76 * 82 + - 60 THEN NULL ELSE + + MAX ( ALL 33 ) END * 47 THEN 95 ELSE - + 22 END )
----
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6917
SELECT + CAST( NULL AS DECIMAL ) / + 26 * - COALESCE ( COUNT( * ), 12 + - + 40 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6917
SELECT + CAST ( NULL AS REAL ) / + 26 * - COALESCE ( COUNT ( * ), 12 + - + 40 ) col2
----
NULL

query I rowsort
SELECT + 14 + - 31
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT - COUNT( + CASE - 88 WHEN 56 THEN NULL ELSE + + COALESCE ( + + 49, + 44 / - - 75 + - 87, + + 82 ) END ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6919
SELECT - COUNT ( + CASE - 88 WHEN 56 THEN NULL ELSE + + COALESCE ( + + 49, + 44 / - - 75 + - 87, + + 82 ) END ) AS col0
----
-1

query I rowsort
SELECT + 85 * 39 AS col1
----
3315

query I rowsort
SELECT - 90 + + 84
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6922
SELECT ALL COUNT( DISTINCT - ( - CAST( NULL AS SIGNED ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL COUNT ( DISTINCT - ( - CAST ( NULL AS INTEGER ) ) ) AS col1
----
0

query I rowsort
SELECT + + ( + - 41 ) * - + 60
----
2460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6924
SELECT ALL + 61 * 75 - + ( + CAST( - COUNT( * ) AS SIGNED ) ) DIV NULLIF ( - 56, 39 * - 35 * + + 7 ) AS col0
----
4575

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL + 61 * 75 - + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) / NULLIF ( - 56, 39 * - 35 * + + 7 ) AS col0
----
4575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6925
SELECT - - SUM( - 85 ) DIV - CAST( 66 AS SIGNED ) + - + COUNT( * ) + + COUNT( - 14 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6925
SELECT - - SUM ( - 85 ) / - CAST ( 66 AS INTEGER ) + - + COUNT ( * ) + + COUNT ( - 14 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT DISTINCT - 68 * - 24 - - 46 + + - COUNT( * ) AS col0
----
1677

skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT - 68 * - 24 - - 46 + + - COUNT ( * ) AS col0
----
1677

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6927
SELECT + 97 * - 48 + + - ( 45 ) + CAST( COUNT( * ) AS SIGNED ) AS col2
----
-4700

skipif mysql # not compatible
query I rowsort label-6927
SELECT + 97 * - 48 + + - ( 45 ) + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-4700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6928
SELECT - 55 DIV - - 36 + + ( - COUNT( * ) ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-6928
SELECT - 55 / - - 36 + + ( - COUNT ( * ) ) col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT ALL + 45 * 61 - - 78 + - - 13 * - - COUNT( * ) - + + COUNT( * )
----
2835

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL + 45 * 61 - - 78 + - - 13 * - - COUNT ( * ) - + + COUNT ( * )
----
2835

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT + 94 * - SUM( - 75 )
----
7050

skipif mysql # not compatible
query I rowsort label-6930
SELECT + 94 * - SUM ( - 75 )
----
7050

query I rowsort
SELECT + NULLIF ( - 87, 51 ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT + - COUNT( * ) * + 63 - 52 AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-6932
SELECT + - COUNT ( * ) * + 63 - 52 AS col1
----
-115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6933
SELECT ALL - 84 * - ( + 47 ) + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL - 84 * - ( + 47 ) + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - + 73 * 73
----
-5329

onlyif mysql # DIV for integer division: 
query I rowsort label-6935
SELECT ALL + - 51 DIV - 46 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL + - 51 / - 46 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6936
SELECT ALL + 1 DIV 12 col2
----
0

skipif mysql # not compatible
query I rowsort label-6936
SELECT ALL + 1 / 12 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6937
SELECT - MIN( + 84 ) * + 33, ( + 69 ) * - - 66 col1
----
-2772
4554

skipif mysql # not compatible
query II rowsort label-6937
SELECT - MIN ( + 84 ) * + 33, ( + 69 ) * - - 66 col1
----
-2772
4554

query II rowsort
SELECT + 54 AS col2, 35
----
54
35

query I rowsort
SELECT - NULLIF ( - 20, 68 ) AS col1
----
20

query I rowsort
SELECT DISTINCT + 30 * + - ( + - 35 ) + + 8 AS col2
----
1058

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT ALL 56 + - 64 - + + 7 + + 85 - 65 * - - MAX( DISTINCT + - 11 ) + - + 75 * 69 AS col1
----
-4390

skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL 56 + - 64 - + + 7 + + 85 - 65 * - - MAX ( DISTINCT + - 11 ) + - + 75 * 69 AS col1
----
-4390

query I rowsort
SELECT - 21 * + - 59 AS col1
----
1239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6943
SELECT ALL + 42 + - + CAST( 93 AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-6943
SELECT ALL + 42 + - + CAST ( 93 AS INTEGER )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT - CASE + 97 WHEN 3 * - 56 * - + 78 * + + COUNT( ALL + + 13 ) THEN + + 83 + CASE 95 WHEN + ( + 6 ) THEN COUNT( * ) / - 12 * + MIN( 97 ) - + - 1 WHEN - 8 THEN + 10 END / 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT - CASE + 97 WHEN 3 * - 56 * - + 78 * + + COUNT ( ALL + + 13 ) THEN + + 83 + CASE 95 WHEN + ( + 6 ) THEN COUNT ( * ) / - 12 * + MIN ( 97 ) - + - 1 WHEN - 8 THEN + 10 END / 45 END
----
NULL

query I rowsort
SELECT - 9 + + 34
----
25

query II rowsort
SELECT - 32 AS col1, - 16 AS col1
----
-32
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6947
SELECT - 85 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6947
SELECT - 85 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT + MIN( + CASE + 83 WHEN + 46 THEN - 36 END ) * - + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-6948
SELECT + MIN ( + CASE + 83 WHEN + 46 THEN - 36 END ) * - + 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT ALL ( + + 80 ) + - CASE - 74 WHEN 8 + - 5 THEN + + 40 WHEN + 63 THEN COUNT( * ) * COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL ( + + 80 ) + - CASE - 74 WHEN 8 + - 5 THEN + + 40 WHEN + 63 THEN COUNT ( * ) * COUNT ( * ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 2 * + 72 col0
----
-144

query II rowsort
SELECT 74 AS col1, 49
----
74
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT + 55 + + 98 - - ( 14 ) * - COUNT( * ) AS col0
----
139

skipif mysql # not compatible
query I rowsort label-6952
SELECT + 55 + + 98 - - ( 14 ) * - COUNT ( * ) AS col0
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6953
SELECT ALL + COUNT( * ) + + + NULLIF ( - + 53, - 26 * - 79 * + COUNT( * ) * CAST( NULL AS SIGNED ) + + + COUNT( * ) / - 91 ) * - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL + COUNT ( * ) + + + NULLIF ( - + 53, - 26 * - 79 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) + + + COUNT ( * ) / - 91 ) * - COUNT ( * )
----
54

query I rowsort
SELECT DISTINCT - 51 * - 30
----
1530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6955
SELECT + COUNT( * ) DIV 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6955
SELECT + COUNT ( * ) / 30 AS col1
----
0

query I rowsort
SELECT - + 18 * + + 16 AS col0
----
-288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6957
SELECT + 25 - + 98 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT + 25 - + 98 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 95 * 55 + 96 AS col1
----
5321

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6959
SELECT + COALESCE ( CAST( - + 47 AS SIGNED ), + ( - NULLIF ( + 2, - COUNT( * ) ) ) )
----
-47

skipif mysql # not compatible
query I rowsort label-6959
SELECT + COALESCE ( CAST ( - + 47 AS INTEGER ), + ( - NULLIF ( + 2, - COUNT ( * ) ) ) )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6960
SELECT - ( 98 ) / - COUNT( * ) + + - 63 - - 28 + + 22 + + 13 - + CAST( NULL AS SIGNED ) * + + AVG ( ALL 74 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6960
SELECT - ( 98 ) / - COUNT ( * ) + + - 63 - - 28 + + 22 + + 13 - + CAST ( NULL AS INTEGER ) * + + AVG ( ALL 74 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6961
SELECT ALL - ( + + 80 ) DIV - 90 + - 66 DIV 35 * - 6 + - 48 - + ( + 8 )
----
-50

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL - ( + + 80 ) / - 90 + - 66 / 35 * - 6 + - 48 - + ( + 8 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT + - ( - + ( - COUNT( * ) ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6962
SELECT + - ( - + ( - COUNT ( * ) ) ) col0
----
-1

query II rowsort
SELECT ALL + 24, 51 AS col1
----
24
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6964
SELECT + - CAST( - + 40 AS SIGNED ) * - + 75 + 68
----
-2932

skipif mysql # not compatible
query I rowsort label-6964
SELECT + - CAST ( - + 40 AS INTEGER ) * - + 75 + 68
----
-2932

query I rowsort
SELECT ALL + + COALESCE ( - 97, - 99 ) col0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6966
SELECT - 3 * + 46 + + 6 DIV + - 17 AS col0
----
-138

skipif mysql # not compatible
query I rowsort label-6966
SELECT - 3 * + 46 + + 6 / + - 17 AS col0
----
-138

query II rowsort
SELECT + 22 AS col2, 0 AS col1
----
22
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6968
SELECT DISTINCT - - 54 col0, + MAX( + + CAST( 5 AS SIGNED ) ) * 27 * - NULLIF ( + 79, - + ( + 49 ) * - MIN( ( - 49 ) ) + 19 * 92 ) * - + NULLIF ( - + 10, + COUNT( * ) * - MIN( 40 ) + 74 * 33 + 52 + - 45 * 0 / - 17 + + 43 ) AS col0
----
54
-106650

skipif mysql # not compatible
query II rowsort label-6968
SELECT DISTINCT - - 54 col0, + MAX ( + + CAST ( 5 AS INTEGER ) ) * 27 * - NULLIF ( + 79, - + ( + 49 ) * - MIN ( ( - 49 ) ) + 19 * 92 ) * - + NULLIF ( - + 10, + COUNT ( * ) * - MIN ( 40 ) + 74 * 33 + 52 + - 45 * 0 / - 17 + + 43 ) AS col0
----
54
-106650

query II rowsort
SELECT ALL - 62 AS col1, - 41 * - + 0 * CASE - 70 WHEN - ( - + 92 ) - 8 THEN - 16 * - - 52 END * + 71
----
-62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT ALL - - MAX( ALL - 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL - - MAX ( ALL - 97 ) AS col0
----
-97

query II rowsort
SELECT + 23 AS col0, + ( - ( - 43 ) ) AS col0
----
23
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT + 81 + - COUNT( - 19 ) * - 84
----
165

skipif mysql # not compatible
query I rowsort label-6972
SELECT + 81 + - COUNT ( - 19 ) * - 84
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT ALL COUNT( * ) * - + ( 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL COUNT ( * ) * - + ( 33 ) AS col2
----
-33

query I rowsort
SELECT + 64 * + + 42
----
2688

query I rowsort
SELECT DISTINCT - 28 * + 69 AS col2
----
-1932

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT ALL - COUNT( * ) + + COUNT( ALL + 33 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL - COUNT ( * ) + + COUNT ( ALL + 33 ) col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6977
SELECT ( + 8 ) * - 48 + 77 + ( + + COUNT( * ) ) + + 63 AS col2, 94
----
-243
94

skipif mysql # not compatible
query II rowsort label-6977
SELECT ( + 8 ) * - 48 + 77 + ( + + COUNT ( * ) ) + + 63 AS col2, 94
----
-243
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT ALL + COUNT( * ) + - 45
----
-44

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL + COUNT ( * ) + - 45
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6979
SELECT ALL - 83 DIV 82 * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL - 83 / 82 * COUNT ( * )
----
-1

query I rowsort
SELECT 11 + 6 col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-6981
SELECT ALL - 10 + + ( + + SUM( 65 ) ), COUNT( * ) + + - 60 AS col1
----
55
-59

skipif mysql # not compatible
query II rowsort label-6981
SELECT ALL - 10 + + ( + + SUM ( 65 ) ), COUNT ( * ) + + - 60 AS col1
----
55
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT DISTINCT + CASE 18 WHEN + ( - 78 ) THEN 52 WHEN 46 THEN + COUNT( * ) ELSE NULL END + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-6982
SELECT DISTINCT + CASE 18 WHEN + ( - 78 ) THEN 52 WHEN 46 THEN + COUNT ( * ) ELSE NULL END + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT ( - MIN( DISTINCT - - 23 ) ) * - - 94 * ( - 32 ) AS col1
----
69184

skipif mysql # not compatible
query I rowsort label-6983
SELECT ( - MIN ( DISTINCT - - 23 ) ) * - - 94 * ( - 32 ) AS col1
----
69184

onlyif mysql # aggregate syntax: 
query II rowsort label-6984
SELECT - 65 * + 37 + 60 + - ( MIN( - 78 ) ) + - ( + + 79 ) * - 17 AS col0, + 29 * + 65 + + 85 * COUNT( * ) AS col0
----
-924
1970

skipif mysql # not compatible
query II rowsort label-6984
SELECT - 65 * + 37 + 60 + - ( MIN ( - 78 ) ) + - ( + + 79 ) * - 17 AS col0, + 29 * + 65 + + 85 * COUNT ( * ) AS col0
----
-924
1970

query I rowsort
SELECT 36 + + + 90
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6986
SELECT ALL + ( 10 ) - + COALESCE ( + 3, - 91, - 22, COUNT( * ) ) DIV - 96 + + - 25, SUM( 28 ) + + 52 AS col0
----
-15
80

skipif mysql # not compatible
query II rowsort label-6986
SELECT ALL + ( 10 ) - + COALESCE ( + 3, - 91, - 22, COUNT ( * ) ) / - 96 + + - 25, SUM ( 28 ) + + 52 AS col0
----
-15
80

query I rowsort
SELECT 16 * + - 55 AS col1
----
-880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6988
SELECT ALL 43 - - CAST( - 76 AS SIGNED ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL 43 - - CAST ( - 76 AS INTEGER ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT COUNT( * ) * 65 * + NULLIF ( - + 44, + - ( - 73 ) + + COALESCE ( - - 32, + 98, 55 + + 25 ) / - 55 * - 69 + 29 ) col0
----
-2860

skipif mysql # not compatible
query I rowsort label-6989
SELECT COUNT ( * ) * 65 * + NULLIF ( - + 44, + - ( - 73 ) + + COALESCE ( - - 32, + 98, 55 + + 25 ) / - 55 * - 69 + 29 ) col0
----
-2860

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT DISTINCT - COUNT( * ) - - 13 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT - COUNT ( * ) - - 13 AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6991
SELECT CASE + COUNT( * ) WHEN + 58 * - + 35 * + COUNT( * ) * + COUNT( * ) * + COUNT( * ) + CAST( NULL AS SIGNED ) THEN NULL WHEN + 51 THEN + 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6991
SELECT CASE + COUNT ( * ) WHEN + 58 * - + 35 * + COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 51 THEN + 84 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6992
SELECT 3 * + 5 DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-6992
SELECT 3 * + 5 / + 75
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6993
SELECT 18 + - - CAST( NULL AS SIGNED ), ( 52 ) AS col2
----
NULL
52

skipif mysql # not compatible
query II rowsort label-6993
SELECT 18 + - - CAST ( NULL AS INTEGER ), ( 52 ) AS col2
----
NULL
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT DISTINCT SUM( ALL - + 98 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-6994
SELECT DISTINCT SUM ( ALL - + 98 ) AS col2
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6995
SELECT + ( + NULLIF ( - 69, + + CAST( + ( - 75 ) AS SIGNED ) ) ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-6995
SELECT + ( + NULLIF ( - 69, + + CAST ( + ( - 75 ) AS INTEGER ) ) ) AS col2
----
-69

query I rowsort
SELECT 82 + + 96 + + 35 AS col0
----
213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6997
SELECT DISTINCT + 95 / CAST( NULL AS SIGNED ) * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6997
SELECT DISTINCT + 95 / CAST ( NULL AS INTEGER ) * - 47
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6998
SELECT + 12 DIV + - 85
----
0

skipif mysql # not compatible
query I rowsort label-6998
SELECT + 12 / + - 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT ALL + COUNT( * ) + + - 30 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL + COUNT ( * ) + + - 30 AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-7000
SELECT + + ( + 26 ) DIV 92 - 70
----
-70

skipif mysql # not compatible
query I rowsort label-7000
SELECT + + ( + 26 ) / 92 - 70
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7001
SELECT 8 * + 23 * - 38 / 46 * 4 * CAST( NULL AS SIGNED ) * + + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7001
SELECT 8 * + 23 * - 38 / 46 * 4 * CAST ( NULL AS INTEGER ) * + + 77 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7002
SELECT + 79 DIV + + 4 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-7002
SELECT + 79 / + + 4 AS col2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7003
SELECT - 63 DIV 13 + - - 50 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-7003
SELECT - 63 / 13 + - - 50 AS col0
----
46

query I rowsort
SELECT ALL 31 + - - 56
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-7005
SELECT ALL - 52 + + 20 + + 70 * - + 40 * - MIN( ALL 67 ) + - - 64 AS col0, - 15 AS col0
----
187632
-15

skipif mysql # not compatible
query II rowsort label-7005
SELECT ALL - 52 + + 20 + + 70 * - + 40 * - MIN ( ALL 67 ) + - - 64 AS col0, - 15 AS col0
----
187632
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT + + NULLIF ( + COUNT( * ), + 26 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7006
SELECT + + NULLIF ( + COUNT ( * ), + 26 ) AS col2
----
1

query II rowsort
SELECT + 50 AS col1, + 39 AS col0
----
50
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7008
SELECT ALL - AVG ( ALL - + CASE + 29 WHEN - 51 THEN NULL WHEN - - 29 * - - 87 THEN - 65 WHEN - + 7 THEN NULL END ) AS col2, CAST( - 83 AS SIGNED ) * COUNT( * ) * + ( - 43 ) * - 27 + - 81 col2
----
NULL
-96444

skipif mysql # not compatible
query II rowsort label-7008
SELECT ALL - AVG ( ALL - + CASE + 29 WHEN - 51 THEN NULL WHEN - - 29 * - - 87 THEN - 65 WHEN - + 7 THEN NULL END ) AS col2, CAST ( - 83 AS INTEGER ) * COUNT ( * ) * + ( - 43 ) * - 27 + - 81 col2
----
NULL
-96444

query I rowsort
SELECT ALL + 42 + + + 71 + - + 63 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT 85 * + - 38 * - + COALESCE ( SUM( DISTINCT - - 99 ), - + 46, + COUNT( * ) ) AS col2
----
319770

skipif mysql # not compatible
query I rowsort label-7010
SELECT 85 * + - 38 * - + COALESCE ( SUM ( DISTINCT - - 99 ), - + 46, + COUNT ( * ) ) AS col2
----
319770

query I rowsort
SELECT 27 * + 95 AS col0
----
2565

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7012
SELECT ALL - ( 68 ) * + ( CAST( NULL AS SIGNED ) ) * + 66 + + - 46 - + - ( + 66 ) / - - 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL - ( 68 ) * + ( CAST ( NULL AS INTEGER ) ) * + 66 + + - 46 - + - ( + 66 ) / - - 19 AS col1
----
NULL

query I rowsort
SELECT 16 - - 90 * - - 25 AS col2
----
2266

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT - MAX( DISTINCT + + 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-7014
SELECT - MAX ( DISTINCT + + 96 )
----
-96

query I rowsort
SELECT ALL 37 * + - 47 AS col0
----
-1739

query I rowsort
SELECT 42 * + 45
----
1890

onlyif mysql # DIV for integer division: 
query I rowsort label-7017
SELECT DISTINCT - 34 DIV + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT - 34 / + 67 AS col2
----
0

query II rowsort
SELECT 51 - + 96 - 34, + 86 * + + 53 AS col2
----
-79
4558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7019
SELECT - - CAST( + + 63 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-7019
SELECT - - CAST ( + + 63 AS INTEGER )
----
63

query I rowsort
SELECT 18 * + 38 AS col0
----
684

query I rowsort
SELECT - 60 + - - 59
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7022
SELECT 66 + 28 - - CAST( NULL AS SIGNED ) / + 42 * + NULLIF ( - 52, - + 76 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7022
SELECT 66 + 28 - - CAST ( NULL AS INTEGER ) / + 42 * + NULLIF ( - 52, - + 76 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT ALL - 66 * COUNT( * ) col1
----
-66

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL - 66 * COUNT ( * ) col1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7024
SELECT - - CAST( - 37 AS SIGNED ) * ( + 55 ) + - 85 AS col0, + 27 + + - 4 AS col0
----
-2120
23

skipif mysql # not compatible
query II rowsort label-7024
SELECT - - CAST ( - 37 AS INTEGER ) * ( + 55 ) + - 85 AS col0, + 27 + + - 4 AS col0
----
-2120
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT DISTINCT - 55 + + - CASE 91 WHEN + + 28 THEN - 24 * ( + 6 ) + - + ( + COALESCE ( 38, + + COUNT( + 53 ) ) ) WHEN 14 THEN + 65 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT - 55 + + - CASE 91 WHEN + + 28 THEN - 24 * ( + 6 ) + - + ( + COALESCE ( 38, + + COUNT ( + 53 ) ) ) WHEN 14 THEN + 65 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT - MIN( DISTINCT + 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-7026
SELECT - MIN ( DISTINCT + 94 )
----
-94

onlyif mysql # DIV for integer division: 
query II rowsort label-7027
SELECT DISTINCT 36 + - 56 DIV - 52 AS col0, 74 col2
----
37
74

skipif mysql # not compatible
query II rowsort label-7027
SELECT DISTINCT 36 + - 56 / - 52 AS col0, 74 col2
----
37
74

query I rowsort
SELECT - - 16 + 52 AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7029
SELECT ALL - 5 * - 6 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7029
SELECT ALL - 5 * - 6 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7030
SELECT - NULLIF ( 60, - ( COALESCE ( - COUNT( * ), + + 21, + 52 ) ) ) * - + 40 AS col0, - 11 AS col1
----
2400
-11

skipif mysql # not compatible
query II rowsort label-7030
SELECT - NULLIF ( 60, - ( COALESCE ( - COUNT ( * ), + + 21, + 52 ) ) ) * - + 40 AS col0, - 11 AS col1
----
2400
-11

query I rowsort
SELECT - + 36 + - 56
----
-92

query II rowsort
SELECT + 42, - 29 * 71 AS col1
----
42
-2059

query I rowsort
SELECT NULLIF ( - - 88, - - 6 )
----
88

query I rowsort
SELECT ALL 51 * + 88 + - - 13
----
4501

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT + 98 * COUNT( * ) * + 52 AS col2
----
5096

skipif mysql # not compatible
query I rowsort label-7035
SELECT + 98 * COUNT ( * ) * + 52 AS col2
----
5096

query I rowsort
SELECT ALL + 83 * - - 42 AS col0
----
3486

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT - NULLIF ( 54, - 37 ) + - 19 - - SUM( 65 )
----
-8

skipif mysql # not compatible
query I rowsort label-7037
SELECT - NULLIF ( 54, - 37 ) + - 19 - - SUM ( 65 )
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7038
SELECT + 15 DIV 18 AS col2, ( - NULLIF ( + 36, - COUNT( * ) ) ) DIV - COUNT( * )
----
0
36

skipif mysql # not compatible
query II rowsort label-7038
SELECT + 15 / 18 AS col2, ( - NULLIF ( + 36, - COUNT ( * ) ) ) / - COUNT ( * )
----
0
36

query II rowsort
SELECT CASE + ( + - 37 ) WHEN - 40 THEN - + 97 - - + 46 END col0, 27 AS col0
----
NULL
27

query II rowsort
SELECT + 14, 61 AS col1
----
14
61

query I rowsort
SELECT ALL + 87 * 96 - + + 37 AS col2
----
8315

query I rowsort
SELECT + 38 * - - 32
----
1216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7043
SELECT ALL - 20 * NULLIF ( + + NULLIF ( + COUNT( * ), 31 ), + 31 + + 95 ) DIV - 79 * - + 95
----
0

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL - 20 * NULLIF ( + + NULLIF ( + COUNT ( * ), 31 ), + 31 + + 95 ) / - 79 * - + 95
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7044
SELECT DISTINCT + CAST( - + NULLIF ( + + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) / - MIN( ALL + - COALESCE ( 60, 96 * - 65 + + 16 ) ) + + 9 * + - COALESCE ( - 55, - ( COUNT( * ) ) ) ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7044
SELECT DISTINCT + CAST ( - + NULLIF ( + + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / - MIN ( ALL + - COALESCE ( 60, 96 * - 65 + + 16 ) ) + + 9 * + - COALESCE ( - 55, - ( COUNT ( * ) ) ) ) AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7045
SELECT + COUNT( * ) + 3 * - - 58 * + 74 DIV - COUNT( * ) AS col1
----
-12875

skipif mysql # not compatible
query I rowsort label-7045
SELECT + COUNT ( * ) + 3 * - - 58 * + 74 / - COUNT ( * ) AS col1
----
-12875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7046
SELECT DISTINCT + CASE - COUNT( * ) WHEN - + COUNT( * ) + + ( 7 ) + + 92 + 67 THEN + 15 END * COALESCE ( CASE - - COUNT( ALL 79 ) WHEN - ( - 2 ) + 71 / + - COUNT( * ) * - 61 THEN - 68 WHEN CAST( NULL AS SIGNED ) THEN - ( - 6 ) + 45 ELSE - 29 * + + 25 / + + 77 + + - 90 * - ( 61 ) END, NULLIF ( ( 99 ), 54 ) ) - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7046
SELECT DISTINCT + CASE - COUNT ( * ) WHEN - + COUNT ( * ) + + ( 7 ) + + 92 + 67 THEN + 15 END * COALESCE ( CASE - - COUNT ( ALL 79 ) WHEN - ( - 2 ) + 71 / + - COUNT ( * ) * - 61 THEN - 68 WHEN CAST ( NULL AS INTEGER ) THEN - ( - 6 ) + 45 ELSE - 29 * + + 25 / + + 77 + + - 90 * - ( 61 ) END, NULLIF ( ( 99 ), 54 ) ) - - 34
----
NULL

query I rowsort
SELECT + 8 * 2
----
16

query I rowsort
SELECT + 26 + 60 + 41
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT COUNT( DISTINCT + + 13 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7049
SELECT COUNT ( DISTINCT + + 13 ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7050
SELECT + 72 * + CAST( - - ( - 43 ) AS SIGNED )
----
-3096

skipif mysql # not compatible
query I rowsort label-7050
SELECT + 72 * + CAST ( - - ( - 43 ) AS INTEGER )
----
-3096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7051
SELECT - COUNT( 81 ) + + ( - CAST( COUNT( * ) AS SIGNED ) ) + - + 16 col1, 91 * - + NULLIF ( 95, 86 + + 47 + - COUNT( * ) )
----
-18
-8645

skipif mysql # not compatible
query II rowsort label-7051
SELECT - COUNT ( 81 ) + + ( - CAST ( COUNT ( * ) AS INTEGER ) ) + - + 16 col1, 91 * - + NULLIF ( 95, 86 + + 47 + - COUNT ( * ) )
----
-18
-8645

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT ALL 84 * + 14 * - + COUNT( * ) col1
----
-1176

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL 84 * + 14 * - + COUNT ( * ) col1
----
-1176

onlyif mysql # DIV for integer division: 
query I rowsort label-7053
SELECT - + 50 DIV + + ( - 32 )
----
1

skipif mysql # not compatible
query I rowsort label-7053
SELECT - + 50 / + + ( - 32 )
----
1

query I rowsort
SELECT ALL 19 * 42
----
798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7055
SELECT + + 6 * - - 85 DIV + 75 + + MIN( ALL + - 9 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7055
SELECT + + 6 * - - 85 / + 75 + + MIN ( ALL + - 9 ) AS col1
----
-3

query I rowsort
SELECT ALL - ( NULLIF ( - 91, ( 47 ) ) ) col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT DISTINCT + 79 + - COUNT( ALL + 71 )
----
78

skipif mysql # not compatible
query I rowsort label-7057
SELECT DISTINCT + 79 + - COUNT ( ALL + 71 )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7058
SELECT - + 57 DIV 17 + 50 + - + CAST( COUNT( * ) AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-7058
SELECT - + 57 / 17 + 50 + - + CAST ( COUNT ( * ) AS INTEGER )
----
46

query I rowsort
SELECT + + 46 * + + 87
----
4002

onlyif mysql # DIV for integer division: 
query II rowsort label-7060
SELECT + 34 DIV 33 AS col2, + 25
----
1
25

skipif mysql # not compatible
query II rowsort label-7060
SELECT + 34 / 33 AS col2, + 25
----
1
25

query I rowsort
SELECT - + 49 * - - 65 - 30
----
-3215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7062
SELECT + 61 * + CASE + CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN NULL WHEN 56 * + 73 + + - 64 - - 68 THEN NULL WHEN - 69 + - 58 THEN - + 58 + + + 0 * - + 66 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7062
SELECT + 61 * + CASE + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN NULL WHEN 56 * + 73 + + - 64 - - 68 THEN NULL WHEN - 69 + - 58 THEN - + 58 + + + 0 * - + 66 ELSE NULL END
----
NULL

query I rowsort
SELECT - + ( + - 30 ) - + 96 * + 45 AS col0
----
-4290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7064
SELECT - + 88 + - CASE - - 89 WHEN + - 81 THEN COALESCE ( CAST( 94 AS SIGNED ), + CASE + 80 WHEN + 42 THEN + COALESCE ( 58, 31 ) END ) WHEN - COUNT( * ) THEN - - 5 + - 68 ELSE NULL END + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7064
SELECT - + 88 + - CASE - - 89 WHEN + - 81 THEN COALESCE ( CAST ( 94 AS INTEGER ), + CASE + 80 WHEN + 42 THEN + COALESCE ( 58, 31 ) END ) WHEN - COUNT ( * ) THEN - - 5 + - 68 ELSE NULL END + + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT DISTINCT 53 + COUNT( 86 ) - + 57 + MAX( DISTINCT - 78 ) * + 52 AS col1
----
-4059

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT 53 + COUNT ( 86 ) - + 57 + MAX ( DISTINCT - 78 ) * + 52 AS col1
----
-4059

query I rowsort
SELECT ALL NULLIF ( - - 35, - 7 ) AS col2
----
35

query I rowsort
SELECT DISTINCT - - 37 * 80 col0
----
2960

onlyif mysql # DIV for integer division: 
query I rowsort label-7068
SELECT DISTINCT + 91 DIV + 11 - 7 * - 68 - 1 + - ( + 34 ) * 17
----
-95

skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT + 91 / + 11 - 7 * - 68 - 1 + - ( + 34 ) * 17
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7069
SELECT CAST( + ( - 89 ) AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-7069
SELECT CAST ( + ( - 89 ) AS INTEGER )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7070
SELECT CAST( NULL AS SIGNED ) / + COUNT( * ) + ( - + MIN( + + 27 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7070
SELECT CAST ( NULL AS INTEGER ) / + COUNT ( * ) + ( - + MIN ( + + 27 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7071
SELECT DISTINCT + COUNT( ALL + 87 ) * NULLIF ( + 73, - 18 ) + 58 + COUNT( * ) + + 99 + - COUNT( * ) * CAST( NULL AS SIGNED ) * - - 65 * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7071
SELECT DISTINCT + COUNT ( ALL + 87 ) * NULLIF ( + 73, - 18 ) + 58 + COUNT ( * ) + + 99 + - COUNT ( * ) * CAST ( NULL AS INTEGER ) * - - 65 * 75
----
NULL

query I rowsort
SELECT - 53 * 82 + + - 80 AS col1
----
-4426

query II rowsort
SELECT - 39 * 55 AS col0, 60 + 71 * + 66
----
-2145
4746

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT + MAX( ALL ( 81 ) )
----
81

skipif mysql # not compatible
query I rowsort label-7074
SELECT + MAX ( ALL ( 81 ) )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7075
SELECT ALL + CASE COALESCE ( + - 33, - 15, - - 78 - + CAST( - MAX( DISTINCT - + 65 ) AS SIGNED ) ) WHEN NULLIF ( - NULLIF ( + + 28, + - 85 / - 87 + - 51 ), + + 39 * - 95 ) * + MIN( ALL + 31 ) * - - CASE - 55 WHEN + - 47 * + - 42 THEN NULL ELSE COUNT( * ) + ( - + 42 ) END * + 23 + + 84 + CASE ( - 67 ) WHEN - + 60 * + + 14 + 50 + + - CAST( NULL AS SIGNED ) + - COUNT( * ) * 4 * + + 20 + 27 THEN COUNT( * ) WHEN 9 * + 44 * - + 25 THEN + 85 END THEN NULL ELSE 21 + 75 END AS col0
----
96

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL + CASE COALESCE ( + - 33, - 15, - - 78 - + CAST ( - MAX ( DISTINCT - + 65 ) AS INTEGER ) ) WHEN NULLIF ( - NULLIF ( + + 28, + - 85 / - 87 + - 51 ), + + 39 * - 95 ) * + MIN ( ALL + 31 ) * - - CASE - 55 WHEN + - 47 * + - 42 THEN NULL ELSE COUNT ( * ) + ( - + 42 ) END * + 23 + + 84 + CASE ( - 67 ) WHEN - + 60 * + + 14 + 50 + + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * 4 * + + 20 + 27 THEN COUNT ( * ) WHEN 9 * + 44 * - + 25 THEN + 85 END THEN NULL ELSE 21 + 75 END AS col0
----
96

query II rowsort
SELECT DISTINCT 85 * + ( - 62 ) AS col1, 14 + + 72 + - 19 + + 20 AS col0
----
-5270
87

query I rowsort
SELECT + 85 * - 5 AS col1
----
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT ALL + COUNT( ALL + 99 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL + COUNT ( ALL + 99 ) col1
----
1

query I rowsort
SELECT + ( + 80 ) * + 43
----
3440

query I rowsort
SELECT ALL 84 * - 79 AS col0
----
-6636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7081
SELECT - CAST( + 22 AS SIGNED ) * - 4 * - - CASE - 76 WHEN + + 39 * 88 THEN + 17 / + - 81 * - SUM( - 37 ) - + 47 ELSE NULL END - + ( - 22 ) + + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7081
SELECT - CAST ( + 22 AS INTEGER ) * - 4 * - - CASE - 76 WHEN + + 39 * 88 THEN + 17 / + - 81 * - SUM ( - 37 ) - + 47 ELSE NULL END - + ( - 22 ) + + + 70
----
NULL

query I rowsort
SELECT - 66 - + + ( - 37 ) col2
----
-29

query I rowsort
SELECT - NULLIF ( + + 46, - NULLIF ( ( 69 ), + + 16 ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT ALL - 30 + ( COUNT( + 43 ) ) * 9 * + - 7 * + ( - - 79 ) AS col0
----
-5007

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL - 30 + ( COUNT ( + 43 ) ) * 9 * + - 7 * + ( - - 79 ) AS col0
----
-5007

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT + SUM( ALL - 49 ) * - COUNT( * ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-7085
SELECT + SUM ( ALL - 49 ) * - COUNT ( * ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT ALL MIN( + NULLIF ( - 73, - 38 + + - 84 * 8 - + + 55 ) ) + + + 2
----
-71

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL MIN ( + NULLIF ( - 73, - 38 + + - 84 * 8 - + + 55 ) ) + + + 2
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-7087
SELECT 26 - COUNT( * ) * - 77 + - 57 * 83 AS col2, 78
----
-4628
78

skipif mysql # not compatible
query II rowsort label-7087
SELECT 26 - COUNT ( * ) * - 77 + - 57 * 83 AS col2, 78
----
-4628
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7088
SELECT - 22 + + COALESCE ( - COUNT( * ), - + CAST( 13 AS SIGNED ) * 34 * - + 35 )
----
-23

skipif mysql # not compatible
query I rowsort label-7088
SELECT - 22 + + COALESCE ( - COUNT ( * ), - + CAST ( 13 AS INTEGER ) * 34 * - + 35 )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7089
SELECT - ( - 67 ) - + COUNT( * ) + COALESCE ( + + NULLIF ( - - 5, CAST( NULL AS SIGNED ) + 43 ), + COALESCE ( + 9, + 31 + + + 34, + ( - 39 ) * + 80 ) + 31 DIV - + CAST( NULL AS SIGNED ) * 60 ) col1
----
71

skipif mysql # not compatible
query I rowsort label-7089
SELECT - ( - 67 ) - + COUNT ( * ) + COALESCE ( + + NULLIF ( - - 5, CAST ( NULL AS INTEGER ) + 43 ), + COALESCE ( + 9, + 31 + + + 34, + ( - 39 ) * + 80 ) + 31 / - + CAST ( NULL AS INTEGER ) * 60 ) col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7090
SELECT ALL + COALESCE ( + + 38, + + 7, - + 56 DIV + 5 DIV + COUNT( * ) DIV - CAST( + - 57 AS SIGNED ) DIV 43 ) + 18 * - 94
----
-1654

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL + COALESCE ( + + 38, + + 7, - + 56 / + 5 / + COUNT ( * ) / - CAST ( + - 57 AS INTEGER ) / 43 ) + 18 * - 94
----
-1654

onlyif mysql # aggregate syntax: 
query II rowsort label-7091
SELECT ALL 98 * COUNT( * ), + 53 col2
----
98
53

skipif mysql # not compatible
query II rowsort label-7091
SELECT ALL 98 * COUNT ( * ), + 53 col2
----
98
53

onlyif mysql # DIV for integer division: 
query I rowsort label-7092
SELECT 44 + - 64 DIV + 85 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-7092
SELECT 44 + - 64 / + 85 AS col2
----
44

query I rowsort
SELECT DISTINCT - 20 * 3 * - - ( + - 9 ) AS col2
----
540

query I rowsort
SELECT ALL 64 * + - 92 - + - 74 + - - 76
----
-5738

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT CASE + 92 WHEN - + 87 THEN NULL WHEN + + 74 THEN - + 68 WHEN 37 THEN NULL ELSE 58 + ( COUNT( * ) ) * - CASE - 87 WHEN 94 + + NULLIF ( - 89, 55 ) * - 72 / + 35 - - 67 THEN NULL WHEN + + 40 THEN NULL ELSE - 36 + 24 END END + - 46 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-7095
SELECT CASE + 92 WHEN - + 87 THEN NULL WHEN + + 74 THEN - + 68 WHEN 37 THEN NULL ELSE 58 + ( COUNT ( * ) ) * - CASE - 87 WHEN 94 + + NULLIF ( - 89, 55 ) * - 72 / + 35 - - 67 THEN NULL WHEN + + 40 THEN NULL ELSE - 36 + 24 END END + - 46 AS col1
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7096
SELECT - CAST( NULL AS DECIMAL ) * - - 71 * - 65 + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-7096
SELECT - CAST ( NULL AS REAL ) * - - 71 * - 65 + 25
----
NULL

query I rowsort
SELECT NULLIF ( - + 43, + 37 * 7 )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7098
SELECT 1 * - NULLIF ( - CAST( 80 AS SIGNED ), + 26 ) * - 43 AS col0
----
-3440

skipif mysql # not compatible
query I rowsort label-7098
SELECT 1 * - NULLIF ( - CAST ( 80 AS INTEGER ), + 26 ) * - 43 AS col0
----
-3440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7099
SELECT 36 * + MAX( ALL + CAST( + 43 AS SIGNED ) ) AS col0
----
1548

skipif mysql # not compatible
query I rowsort label-7099
SELECT 36 * + MAX ( ALL + CAST ( + 43 AS INTEGER ) ) AS col0
----
1548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7100
SELECT - 49 DIV MIN( ALL - 93 ) + - 63 + + 26
----
-37

skipif mysql # not compatible
query I rowsort label-7100
SELECT - 49 / MIN ( ALL - 93 ) + - 63 + + 26
----
-37

query I rowsort
SELECT DISTINCT + 66 * - + 58 AS col0
----
-3828

query I rowsort
SELECT ALL + 48 * - 48 AS col1
----
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT 48 * - + 18 * 6 - + 31 * - SUM( ALL - 1 ) * - 19 + + 94 AS col0
----
-4501

skipif mysql # not compatible
query I rowsort label-7103
SELECT 48 * - + 18 * 6 - + 31 * - SUM ( ALL - 1 ) * - 19 + + 94 AS col0
----
-4501

onlyif mysql # aggregate syntax: 
query II rowsort label-7104
SELECT 40, COUNT( * ) + + 96 + + 20 AS col1
----
40
117

skipif mysql # not compatible
query II rowsort label-7104
SELECT 40, COUNT ( * ) + + 96 + + 20 AS col1
----
40
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT COUNT( * ) * - 94 + - - 60
----
-34

skipif mysql # not compatible
query I rowsort label-7105
SELECT COUNT ( * ) * - 94 + - - 60
----
-34

query II rowsort
SELECT + 87, - 71 AS col0
----
87
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7107
SELECT ALL CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7107
SELECT ALL CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7108
SELECT ALL - 58 + 82 + + - COUNT( * ) + - 91 * + 45 DIV 15 + + COUNT( * ) + + COUNT( * ) AS col1
----
-248

skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL - 58 + 82 + + - COUNT ( * ) + - 91 * + 45 / 15 + + COUNT ( * ) + + COUNT ( * ) AS col1
----
-248

onlyif mysql # aggregate syntax: 
query II rowsort label-7109
SELECT 61 + - 7 + - + COUNT( * ), 12 * - 17 AS col0
----
53
-204

skipif mysql # not compatible
query II rowsort label-7109
SELECT 61 + - 7 + - + COUNT ( * ), 12 * - 17 AS col0
----
53
-204

query I rowsort
SELECT ALL - CASE - 25 WHEN + ( 52 ) + + 66 + + 84 + + COALESCE ( + 12, 81 - - - 59, + - 38 * - - 49 ) - 26 * - 81 + + - ( ( 65 ) ) + - - 67 + - + 23 THEN NULL ELSE - + 98 END + + - 28
----
70

query I rowsort
SELECT - 40 + + + 75 AS col1
----
35

query I rowsort
SELECT ALL 80 + + 75 AS col1
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT - MIN( + 21 ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-7113
SELECT - MIN ( + 21 ) col2
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7114
SELECT DISTINCT - + 83 DIV + + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT - + 83 / + + COUNT ( * )
----
-83

query I rowsort
SELECT ALL + - 21 + + 90
----
69

query I rowsort
SELECT + 63 + 31
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7117
SELECT + COUNT( * ) / - CAST( NULL AS SIGNED ) * + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7117
SELECT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) * + 49 AS col1
----
NULL

query II rowsort
SELECT - 17 * 11 + - - 64 AS col2, + ( + 12 )
----
-123
12

query I rowsort
SELECT ALL - + 8 + 40 + - - 72 + - 69
----
35

query I rowsort
SELECT - + ( + + 72 )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7121
SELECT + 90 + + - NULLIF ( SUM( + 35 ), + + 77 * - 86 * + 88 ) + - + CAST( NULL AS DECIMAL ), 51 * - 80 col0
----
NULL
-4080

skipif mysql # not compatible
query II rowsort label-7121
SELECT + 90 + + - NULLIF ( SUM ( + 35 ), + + 77 * - 86 * + 88 ) + - + CAST ( NULL AS REAL ), 51 * - 80 col0
----
NULL
-4080

query I rowsort
SELECT DISTINCT + - 79 - + - 64 AS col1
----
-15

query I rowsort
SELECT - 56 * - + 92 + - 50
----
5102

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT DISTINCT + NULLIF ( + + 89, 11 / + + COUNT( ALL - + 61 ) + - 93 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT + NULLIF ( + + 89, 11 / + + COUNT ( ALL - + 61 ) + - 93 ) AS col0
----
89

query I rowsort
SELECT ALL 9 - + 96
----
-87

query II rowsort
SELECT 58, - 78 col1
----
58
-78

query I rowsort
SELECT + 23 - COALESCE ( - 68, 16 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT COUNT( + + 46 ) * + 58 + + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-7128
SELECT COUNT ( + + 46 ) * + 58 + + COUNT ( * )
----
59

query I rowsort
SELECT - CASE AVG ( + - 42 ) WHEN 78 THEN - + 58 * - - 61 + + 90 WHEN + ( - + 17 ) + - CASE + 9 WHEN + 83 THEN + 70 END THEN 72 * - + 97 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT ( + 62 ) * - - CAST( NULL AS SIGNED ) - NULLIF ( + 89, - ( - + 41 ) * + + 60 - + 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7130
SELECT ( + 62 ) * - - CAST ( NULL AS INTEGER ) - NULLIF ( + 89, - ( - + 41 ) * + + 60 - + 42 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT DISTINCT - CASE - + 92 WHEN - 60 THEN + 48 END / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT DISTINCT - CASE - + 92 WHEN - 60 THEN + 48 END / - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT 36 * + MIN( DISTINCT + 78 ) AS col1
----
2808

skipif mysql # not compatible
query I rowsort label-7132
SELECT 36 * + MIN ( DISTINCT + 78 ) AS col1
----
2808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7133
SELECT DISTINCT + 95 * + - 29 * CAST( NULL AS SIGNED ) / + 84 * - - 16 + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT + 95 * + - 29 * CAST ( NULL AS INTEGER ) / + 84 * - - 16 + 64
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7134
SELECT + COALESCE ( - COUNT( DISTINCT - 55 ), 86 * + + 9 + - ( CAST( + 13 AS SIGNED ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7134
SELECT + COALESCE ( - COUNT ( DISTINCT - 55 ), 86 * + + 9 + - ( CAST ( + 13 AS INTEGER ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT ( - 39 ) * - CASE 88 WHEN + 60 THEN + 7 * 1 WHEN - - ( SUM( + - 44 ) ) THEN + 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7135
SELECT ( - 39 ) * - CASE 88 WHEN + 60 THEN + 7 * 1 WHEN - - ( SUM ( + - 44 ) ) THEN + 31 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7136
SELECT SUM( - - 70 ), 52 * + + 30 col2
----
70
1560

skipif mysql # not compatible
query II rowsort label-7136
SELECT SUM ( - - 70 ), 52 * + + 30 col2
----
70
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT MAX( + + 97 )
----
97

skipif mysql # not compatible
query I rowsort label-7137
SELECT MAX ( + + 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT ALL COALESCE ( - ( + 98 ), + 65 * - 89 * - COUNT( * ) + + NULLIF ( + 15, 37 * - 66 ) + - 96 * + 94 * MIN( + 56 ) ) * - ( 96 ) - - 53 * + COUNT( - 11 ) + + NULLIF ( 50, - 15 )
----
9511

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL COALESCE ( - ( + 98 ), + 65 * - 89 * - COUNT ( * ) + + NULLIF ( + 15, 37 * - 66 ) + - 96 * + 94 * MIN ( + 56 ) ) * - ( 96 ) - - 53 * + COUNT ( - 11 ) + + NULLIF ( 50, - 15 )
----
9511

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7139
SELECT ALL 74 * + + 68 + - COUNT( * ) * + 84 col2, - 99 DIV 87 + + 19 AS col2
----
4948
18

skipif mysql # not compatible
query II rowsort label-7139
SELECT ALL 74 * + + 68 + - COUNT ( * ) * + 84 col2, - 99 / 87 + + 19 AS col2
----
4948
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT ALL + MIN( + 59 ) * 49 AS col2
----
2891

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL + MIN ( + 59 ) * 49 AS col2
----
2891

query II rowsort
SELECT ALL - 38 * + - 8 AS col2, 74 col0
----
304
74

query I rowsort
SELECT + 73 * 93 - - 6
----
6795

onlyif mysql # aggregate syntax: 
query II rowsort label-7143
SELECT - + COUNT( * ) * + COUNT( * ) AS col0, 99
----
-1
99

skipif mysql # not compatible
query II rowsort label-7143
SELECT - + COUNT ( * ) * + COUNT ( * ) AS col0, 99
----
-1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7144
SELECT + - CAST( + + 93 AS SIGNED )
----
-93

skipif mysql # not compatible
query I rowsort label-7144
SELECT + - CAST ( + + 93 AS INTEGER )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7145
SELECT ALL - COUNT( ALL 1 ) * 91 * + - 47 * + + 67 + - + CAST( 6 AS SIGNED ) * - + 53 + + CAST( NULL AS SIGNED ) + + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL - COUNT ( ALL 1 ) * 91 * + - 47 * + + 67 + - + CAST ( 6 AS INTEGER ) * - + 53 + + CAST ( NULL AS INTEGER ) + + 10 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT - COUNT( * ) - - 23 * + 81
----
1862

skipif mysql # not compatible
query I rowsort label-7146
SELECT - COUNT ( * ) - - 23 * + 81
----
1862

query I rowsort
SELECT DISTINCT - 45 * 29 AS col1
----
-1305

query I rowsort
SELECT ALL + - 97 col1
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7149
SELECT ALL - 6 DIV - + 13 * 54
----
0

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL - 6 / - + 13 * 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT - - COUNT( * ) * - 89
----
-89

skipif mysql # not compatible
query I rowsort label-7150
SELECT - - COUNT ( * ) * - 89
----
-89

query I rowsort
SELECT - - 57 + - 53 col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT - 16 * SUM( + 66 )
----
-1056

skipif mysql # not compatible
query I rowsort label-7152
SELECT - 16 * SUM ( + 66 )
----
-1056

query I rowsort
SELECT - + 82 + - 59 AS col0
----
-141

query I rowsort
SELECT - + 76 - 82 + 65
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-7155
SELECT - 43 DIV - - 69
----
0

skipif mysql # not compatible
query I rowsort label-7155
SELECT - 43 / - - 69
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7156
SELECT DISTINCT - COALESCE ( + 74, 16 DIV - 36 - + - 17, - 15 ) * - 47 + - 59 * - + 86 AS col2
----
8552

skipif mysql # not compatible
query I rowsort label-7156
SELECT DISTINCT - COALESCE ( + 74, 16 / - 36 - + - 17, - 15 ) * - 47 + - 59 * - + 86 AS col2
----
8552

query I rowsort
SELECT ALL + 93 * 94
----
8742

query I rowsort
SELECT - 57 * + 29 AS col1
----
-1653

query I rowsort
SELECT - 16 + - 64 AS col0
----
-80

query I rowsort
SELECT DISTINCT - CASE 12 WHEN + 75 THEN - 45 WHEN - AVG ( ALL - 91 ) THEN - - 18 ELSE 35 END * - 11
----
385

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT DISTINCT + ( - + ( - + MIN( ALL - 79 ) ) ) + COALESCE ( - 27, + MAX( DISTINCT + 61 ) ) - - 85
----
-21

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT + ( - + ( - + MIN ( ALL - 79 ) ) ) + COALESCE ( - 27, + MAX ( DISTINCT + 61 ) ) - - 85
----
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-7162
SELECT 65 AS col0, - 78 DIV 5 AS col2
----
65
-15

skipif mysql # not compatible
query II rowsort label-7162
SELECT 65 AS col0, - 78 / 5 AS col2
----
65
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT + 62 + 81 * - + CASE + 61 WHEN 84 THEN 83 WHEN + - 17 THEN NULL WHEN 13 * - 58 - + COUNT( * ) THEN - - COUNT( * ) * + 95 + + 67 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7163
SELECT + 62 + 81 * - + CASE + 61 WHEN 84 THEN 83 WHEN + - 17 THEN NULL WHEN 13 * - 58 - + COUNT ( * ) THEN - - COUNT ( * ) * + 95 + + 67 ELSE NULL END
----
NULL

query I rowsort
SELECT + 79 * - 47
----
-3713

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7165
SELECT CAST( - + CASE - COUNT( * ) WHEN - 84 * + - 15 THEN 31 END AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7165
SELECT CAST ( - + CASE - COUNT ( * ) WHEN - 84 * + - 15 THEN 31 END AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT + 64 / - CASE + 87 WHEN + 16 THEN NULL WHEN MAX( 78 ) + - 87 + + - 67 + - 26 + + + 70 THEN + 83 END + ( - NULLIF ( + 84, - - 91 ) ) * - + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7166
SELECT + 64 / - CASE + 87 WHEN + 16 THEN NULL WHEN MAX ( 78 ) + - 87 + + - 67 + - 26 + + + 70 THEN + 83 END + ( - NULLIF ( + 84, - - 91 ) ) * - + 57
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7167
SELECT DISTINCT + ( 13 ) DIV + 35 * - - NULLIF ( + - 55, + - 48 ) - - - 84 + - - ( - + 64 ) + - ( - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT + ( 13 ) / + 35 * - - NULLIF ( + - 55, + - 48 ) - - - 84 + - - ( - + 64 ) + - ( - 74 )
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7168
SELECT ALL - COUNT( * ) DIV 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL - COUNT ( * ) / 54 AS col2
----
0

query I rowsort
SELECT + 43 + - 22 * + 66 + - 23 * + 54 AS col0
----
-2651

onlyif mysql # aggregate syntax: 
query II rowsort label-7170
SELECT DISTINCT CASE 51 WHEN - 47 THEN NULL WHEN + 73 THEN 77 * 28 * COUNT( * ) + + 74 / + + 97 - + COUNT( * ) END / + - ( 32 ) + + COUNT( * ) + - COALESCE ( + 51, - 50, + - 50 * - 85 ) AS col0, + 87
----
NULL
87

skipif mysql # not compatible
query II rowsort label-7170
SELECT DISTINCT CASE 51 WHEN - 47 THEN NULL WHEN + 73 THEN 77 * 28 * COUNT ( * ) + + 74 / + + 97 - + COUNT ( * ) END / + - ( 32 ) + + COUNT ( * ) + - COALESCE ( + 51, - 50, + - 50 * - 85 ) AS col0, + 87
----
NULL
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT DISTINCT 67 * + COUNT( * ) * - - ( + + 91 ) AS col1
----
6097

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT 67 * + COUNT ( * ) * - - ( + + 91 ) AS col1
----
6097

onlyif mysql # DIV for integer division: 
query II rowsort label-7172
SELECT ALL 89 DIV 61 + + 83 * 5 + + 0 AS col0, 93
----
416
93

skipif mysql # not compatible
query II rowsort label-7172
SELECT ALL 89 / 61 + + 83 * 5 + + 0 AS col0, 93
----
416
93

query I rowsort
SELECT + ( - 36 ) AS col0
----
-36

query I rowsort
SELECT 22 * 99 - - + CASE 42 WHEN + 11 * + 86 / 40 THEN + 7 WHEN 57 THEN + 79 WHEN - 39 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7175
SELECT + 75 + 29 + - + 93 * - CASE - 57 WHEN COUNT( * ) * 44 + + 70 - + 67 DIV 89 DIV + 23 THEN 66 + + + ( - 41 ) * - CAST( 58 AS DECIMAL ) DIV - + 12 * - 61 - + COUNT( ALL 25 ) + - 48 END + - 69 - + 52, 93 - - ( + 30 ) - 69 + 41 DIV - + 5 - 18 col0
----
NULL
28

skipif mysql # not compatible
query II rowsort label-7175
SELECT + 75 + 29 + - + 93 * - CASE - 57 WHEN COUNT ( * ) * 44 + + 70 - + 67 / 89 / + 23 THEN 66 + + + ( - 41 ) * - CAST ( 58 AS REAL ) / - + 12 * - 61 - + COUNT ( ALL 25 ) + - 48 END + - 69 - + 52, 93 - - ( + 30 ) - 69 + 41 / - + 5 - 18 col0
----
NULL
28

query I rowsort
SELECT + 89 * 11
----
979

query I rowsort
SELECT + 45 * + 31 + 23 + - 7
----
1411

query I rowsort
SELECT ALL 37 * - 45 * - 82 - + 26
----
136504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7179
SELECT ALL 85 DIV + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL 85 / + COUNT ( * )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT + - 46 + - COUNT( * ) + COUNT( * ) - - + COUNT( * ) * COUNT( * ) - - 11
----
-34

skipif mysql # not compatible
query I rowsort label-7180
SELECT + - 46 + - COUNT ( * ) + COUNT ( * ) - - + COUNT ( * ) * COUNT ( * ) - - 11
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT ALL + ( + + ( MAX( - 73 ) ) ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL + ( + + ( MAX ( - 73 ) ) ) AS col1
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7182
SELECT + + 72 + - COALESCE ( - COALESCE ( + 47, 31, - 14 DIV 64 ), + COUNT( * ) + + 94 * + + 64 * - ( - 82 ), - 93, + 95 ) + 10 * + ( + ( 11 ) )
----
229

skipif mysql # not compatible
query I rowsort label-7182
SELECT + + 72 + - COALESCE ( - COALESCE ( + 47, 31, - 14 / 64 ), + COUNT ( * ) + + 94 * + + 64 * - ( - 82 ), - 93, + 95 ) + 10 * + ( + ( 11 ) )
----
229

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT + + MIN( DISTINCT + 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-7183
SELECT + + MIN ( DISTINCT + 77 ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT DISTINCT + 33 * SUM( DISTINCT + - 25 ) AS col0
----
-825

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT + 33 * SUM ( DISTINCT + - 25 ) AS col0
----
-825

query I rowsort
SELECT + - 94 * + + NULLIF ( - 51, - 43 ) + - 53
----
4741

query I rowsort
SELECT - + NULLIF ( + + 18, + 73 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT ALL + 39 * + MAX( - 71 ) AS col1
----
-2769

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL + 39 * + MAX ( - 71 ) AS col1
----
-2769

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7188
SELECT ALL CAST( + 60 AS SIGNED ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL CAST ( + 60 AS INTEGER ) AS col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7189
SELECT DISTINCT - 7 DIV - + 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7189
SELECT DISTINCT - 7 / - + 19 AS col2
----
0

query I rowsort
SELECT - 92 * + 19 * + 74 AS col1
----
-129352

onlyif mysql # DIV for integer division: 
query I rowsort label-7191
SELECT + 21 DIV - - NULLIF ( - 77, - 27 )
----
0

skipif mysql # not compatible
query I rowsort label-7191
SELECT + 21 / - - NULLIF ( - 77, - 27 )
----
0

query I rowsort
SELECT + 80 - 0 AS col1
----
80

query II rowsort
SELECT ALL ( - CASE 99 WHEN + 77 THEN 56 * 5 ELSE - NULLIF ( + + 85, + 53 ) END ) col1, 85
----
85
85

query I rowsort
SELECT - 3 + + + 10 + 51 * - - 62
----
3169

query I rowsort
SELECT ALL + 89 + + 89
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7196
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + 16 + CASE + 66 WHEN + 50 * - 43 + - 98 THEN + - 64 - + 81 WHEN - + 28 + + 33 THEN + - 55 * - 27 * + ( + - 26 ) + - + 4 ELSE NULL END + + - 4 - - ( - ( + MAX( DISTINCT - 98 ) ) ) * - + 37 * SUM( DISTINCT - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7196
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + 16 + CASE + 66 WHEN + 50 * - 43 + - 98 THEN + - 64 - + 81 WHEN - + 28 + + 33 THEN + - 55 * - 27 * + ( + - 26 ) + - + 4 ELSE NULL END + + - 4 - - ( - ( + MAX ( DISTINCT - 98 ) ) ) * - + 37 * SUM ( DISTINCT - 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT 51 + + COUNT( * ) * 69 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-7197
SELECT 51 + + COUNT ( * ) * 69 AS col2
----
120

query I rowsort
SELECT 54 - - - 7 + - 22
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7199
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 84 AS col2, + 14 * + + 48 col1
----
NULL
672

skipif mysql # not compatible
query II rowsort label-7199
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 84 AS col2, + 14 * + + 48 col1
----
NULL
672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7200
SELECT 64 - + - CAST( - - 67 AS SIGNED ) - SUM( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7200
SELECT 64 - + - CAST ( - - 67 AS INTEGER ) - SUM ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 72 - + 26 AS col0
----
46

query II rowsort
SELECT + 84, + 38 AS col2
----
84
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7203
SELECT + 87 AS col1, - SUM( DISTINCT + 50 ) AS col1
----
87
-50

skipif mysql # not compatible
query II rowsort label-7203
SELECT + 87 AS col1, - SUM ( DISTINCT + 50 ) AS col1
----
87
-50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7204
SELECT DISTINCT - + 52, - CAST( NULL AS SIGNED ) * - + CAST( - + 50 AS SIGNED ) col0
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-7204
SELECT DISTINCT - + 52, - CAST ( NULL AS INTEGER ) * - + CAST ( - + 50 AS INTEGER ) col0
----
-52
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7205
SELECT ALL - 39 AS col0, + COUNT( * ) AS col0
----
-39
1

skipif mysql # not compatible
query II rowsort label-7205
SELECT ALL - 39 AS col0, + COUNT ( * ) AS col0
----
-39
1

query II rowsort
SELECT + 44, - 66 AS col1
----
44
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT + CASE + 56 WHEN - MAX( - 29 ) + + 18 THEN - - NULLIF ( - 55, + 87 + - + 52 + + 53 ) WHEN - + 9 * + 48 THEN + 8 + + + 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7207
SELECT + CASE + 56 WHEN - MAX ( - 29 ) + + 18 THEN - - NULLIF ( - 55, + 87 + - + 52 + + 53 ) WHEN - + 9 * + 48 THEN + 8 + + + 62 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7208
SELECT DISTINCT + - 72 DIV + + 16 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-7208
SELECT DISTINCT + - 72 / + + 16 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT ALL - COUNT( * ) * - 44 * 46
----
2024

skipif mysql # not compatible
query I rowsort label-7209
SELECT ALL - COUNT ( * ) * - 44 * 46
----
2024

query I rowsort
SELECT 19 * 25
----
475

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT 6 - + 15 * + 71 + 67 + COUNT( * ) + COUNT( * )
----
-990

skipif mysql # not compatible
query I rowsort label-7211
SELECT 6 - + 15 * + 71 + 67 + COUNT ( * ) + COUNT ( * )
----
-990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7212
SELECT - COUNT( * ) DIV - 20 col1
----
0

skipif mysql # not compatible
query I rowsort label-7212
SELECT - COUNT ( * ) / - 20 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7213
SELECT COUNT( * ) AS col0, 59 + 56 AS col1
----
1
115

skipif mysql # not compatible
query II rowsort label-7213
SELECT COUNT ( * ) AS col0, 59 + 56 AS col1
----
1
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7214
SELECT COUNT( * ) * 84 - ( + 29 ) + 47 - - COUNT( * ) * + 90 + + - 91 * + 67 * 40 + - CAST( NULL AS SIGNED ) * - 18 / + 94 + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-7214
SELECT COUNT ( * ) * 84 - ( + 29 ) + 47 - - COUNT ( * ) * + 90 + + - 91 * + 67 * 40 + - CAST ( NULL AS INTEGER ) * - 18 / + 94 + 3
----
NULL

query II rowsort
SELECT 46, + 33 AS col1
----
46
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7216
SELECT + + 29 AS col2, + MIN( DISTINCT + 62 ) + + 1
----
29
63

skipif mysql # not compatible
query II rowsort label-7216
SELECT + + 29 AS col2, + MIN ( DISTINCT + 62 ) + + 1
----
29
63

query II rowsort
SELECT + - 88 AS col0, CASE WHEN ( NULL ) IS NULL THEN 80 END * + + 31 + + 98 AS col1
----
-88
2578

query I rowsort
SELECT + 25 - + 26 + 31 AS col1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7219
SELECT DISTINCT - CAST( - 79 AS SIGNED ) + - - 32 * 81
----
2671

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT - CAST ( - 79 AS INTEGER ) + - - 32 * 81
----
2671

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT COUNT( * ) + - ( - CASE - 72 WHEN - COALESCE ( - 84, 86 / - 44 ) THEN NULL WHEN + 43 + + COUNT( * ) THEN - + COUNT( * ) WHEN 88 + + SUM( 30 ) THEN - - 83 + + 32 * - 89 * SUM( + ( 20 ) ) / 25 * - + 33 * + + 1 + + COUNT( * ) + + 75 ELSE NULL END ) + 13 + + ( - 49 ) * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-7220
SELECT COUNT ( * ) + - ( - CASE - 72 WHEN - COALESCE ( - 84, 86 / - 44 ) THEN NULL WHEN + 43 + + COUNT ( * ) THEN - + COUNT ( * ) WHEN 88 + + SUM ( 30 ) THEN - - 83 + + 32 * - 89 * SUM ( + ( 20 ) ) / 25 * - + 33 * + + 1 + + COUNT ( * ) + + 75 ELSE NULL END ) + 13 + + ( - 49 ) * 97
----
NULL

query I rowsort
SELECT 55 - + - 36 * + + 48 AS col0
----
1783

query II rowsort
SELECT 64 - - - 29, - 52 AS col2
----
35
-52

query I rowsort
SELECT DISTINCT - 57 + + 53 AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7224
SELECT ALL + 3 + + - ( - SUM( - CAST( + - 88 AS SIGNED ) ) ) DIV NULLIF ( - 71, + + 55 * COALESCE ( - - ( 93 ), - + 21, AVG ( DISTINCT 84 ) ) * - CAST( NULL AS DECIMAL ) + - 95 ) * - 41 * + + MAX( 46 ) + + ( 93 ) - + MAX( + 51 ) AS col1
----
1931

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL + 3 + + - ( - SUM ( - CAST ( + - 88 AS INTEGER ) ) ) / NULLIF ( - 71, + + 55 * COALESCE ( - - ( 93 ), - + 21, AVG ( DISTINCT 84 ) ) * - CAST ( NULL AS REAL ) + - 95 ) * - 41 * + + MAX ( 46 ) + + ( 93 ) - + MAX ( + 51 ) AS col1
----
1931

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT COALESCE ( + - 80, + + COUNT( * ) ) * 61 * - + COUNT( * ) * + 5 col2
----
24400

skipif mysql # not compatible
query I rowsort label-7225
SELECT COALESCE ( + - 80, + + COUNT ( * ) ) * 61 * - + COUNT ( * ) * + 5 col2
----
24400

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT ALL CASE - 10 WHEN - + CASE - 73 WHEN 40 THEN NULL WHEN + - COALESCE ( + 56, + 15 * COUNT( * ) ) + 38 + 88 THEN NULL ELSE - - COALESCE ( - 40, COUNT( * ), - 25 ) END THEN + - 69 WHEN - + 41 THEN NULL END * - 91 * + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL CASE - 10 WHEN - + CASE - 73 WHEN 40 THEN NULL WHEN + - COALESCE ( + 56, + 15 * COUNT ( * ) ) + 38 + 88 THEN NULL ELSE - - COALESCE ( - 40, COUNT ( * ), - 25 ) END THEN + - 69 WHEN - + 41 THEN NULL END * - 91 * + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT 54 + + - 35 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT DISTINCT ( COALESCE ( - SUM( + 39 ), + 69 ) ) * + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-7228
SELECT DISTINCT ( COALESCE ( - SUM ( + 39 ), + 69 ) ) * + COUNT ( * )
----
-39

query I rowsort
SELECT DISTINCT 50 + 56
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT 51 + - + NULLIF ( + 44, - 21 * - 22 * + COUNT( * ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7230
SELECT 51 + - + NULLIF ( + 44, - 21 * - 22 * + COUNT ( * ) ) AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7231
SELECT CAST( - 66 AS SIGNED ) * - - 55 AS col2
----
-3630

skipif mysql # not compatible
query I rowsort label-7231
SELECT CAST ( - 66 AS INTEGER ) * - - 55 AS col2
----
-3630

query I rowsort
SELECT 99 + + ( + 63 ) AS col0
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7233
SELECT 79 DIV - 12 * COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-7233
SELECT 79 / - 12 * COUNT ( * )
----
-6

query II rowsort
SELECT 10 * - + 59 AS col1, 31 AS col2
----
-590
31

query I rowsort
SELECT ALL + + ( + + 92 ) * - 9 AS col2
----
-828

query I rowsort
SELECT 13 * + + 21 - + 86 AS col2
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT COALESCE ( - MAX( + - ( - + 58 ) ), + 64 ) + - 12
----
-70

skipif mysql # not compatible
query I rowsort label-7237
SELECT COALESCE ( - MAX ( + - ( - + 58 ) ), + 64 ) + - 12
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT + COALESCE ( - - COUNT( * ), - 55 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7238
SELECT + COALESCE ( - - COUNT ( * ), - 55 ) AS col2
----
1

query I rowsort
SELECT 10 + + 5 AS col1
----
15

query I rowsort
SELECT COALESCE ( + + 78, 21, + 93 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT COALESCE ( + + 52, - 3 - - - 42 + - COUNT( * ), 47 * + 37 + + 95 ) * 62
----
3224

skipif mysql # not compatible
query I rowsort label-7241
SELECT COALESCE ( + + 52, - 3 - - - 42 + - COUNT ( * ), 47 * + 37 + + 95 ) * 62
----
3224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7242
SELECT - CAST( CASE + COUNT( + + NULLIF ( + - 58, - - 86 ) ) WHEN 86 * - 49 THEN - 12 END AS SIGNED ) * 13 + + COALESCE ( 59, - 67, - + 87 * COALESCE ( + - 83, + MAX( DISTINCT 46 ) / 20 + COALESCE ( - 38, + - 25 + + 41 ) ) * 1 ) * - 11 AS col2, - 57 * + CAST( SUM( - 54 ) AS SIGNED ) AS col2
----
NULL
3078

skipif mysql # not compatible
query II rowsort label-7242
SELECT - CAST ( CASE + COUNT ( + + NULLIF ( + - 58, - - 86 ) ) WHEN 86 * - 49 THEN - 12 END AS INTEGER ) * 13 + + COALESCE ( 59, - 67, - + 87 * COALESCE ( + - 83, + MAX ( DISTINCT 46 ) / 20 + COALESCE ( - 38, + - 25 + + 41 ) ) * 1 ) * - 11 AS col2, - 57 * + CAST ( SUM ( - 54 ) AS INTEGER ) AS col2
----
NULL
3078

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT ALL - 14 + + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL - 14 + + COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT ALL - - ( - + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL - - ( - + COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT - 23 + 52 + NULLIF ( - 51, - 74 ) AS col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7246
SELECT ALL + CAST( NULL AS SIGNED ) + + - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL + CAST ( NULL AS INTEGER ) + + - 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT DISTINCT + COUNT( * ) + NULLIF ( - SUM( - 28 ), NULLIF ( + AVG ( + 61 ), - 22 ) )
----
29

skipif mysql # not compatible
query I rowsort label-7247
SELECT DISTINCT + COUNT ( * ) + NULLIF ( - SUM ( - 28 ), NULLIF ( + AVG ( + 61 ), - 22 ) )
----
29

query I rowsort
SELECT + 89 * - - 79 - + 42 AS col0
----
6989

query II rowsort
SELECT 43 AS col1, - 10 + - 51 * + ( 77 ) AS col0
----
43
-3937

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7250
SELECT SUM( DISTINCT + 8 ) + - 52 + - + ( + 14 ) + - - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT SUM ( DISTINCT + 8 ) + - 52 + - + ( + 14 ) + - - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7251
SELECT + 39 + + COUNT( * ) + - 83 AS col2, - 53 AS col2
----
-43
-53

skipif mysql # not compatible
query II rowsort label-7251
SELECT + 39 + + COUNT ( * ) + - 83 AS col2, - 53 AS col2
----
-43
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-7252
SELECT ALL 45 + - 38 DIV 32
----
44

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL 45 + - 38 / 32
----
44

query I rowsort
SELECT + 51 * 42
----
2142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7254
SELECT ALL CASE - 67 WHEN 13 THEN NULL WHEN - COUNT( ( + + 7 ) ) + ( 85 ) + 57 * ( + 39 ) * + + 10 + + 97 + - 12 * + CAST( NULL AS SIGNED ) * MAX( - 33 ) THEN + + ( + - 71 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL CASE - 67 WHEN 13 THEN NULL WHEN - COUNT ( ( + + 7 ) ) + ( 85 ) + 57 * ( + 39 ) * + + 10 + + 97 + - 12 * + CAST ( NULL AS INTEGER ) * MAX ( - 33 ) THEN + + ( + - 71 ) ELSE NULL END
----
NULL

query II rowsort
SELECT ALL 62, + 71 + 81 AS col2
----
62
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7256
SELECT + ( + - 23 ) * 71 DIV 22 + + + 28 - - 7 DIV + - 36 - + - 5 * 95 - - 30 * COUNT( * ), + SUM( - 9 ) * + 74 AS col0
----
459
-666

skipif mysql # not compatible
query II rowsort label-7256
SELECT + ( + - 23 ) * 71 / 22 + + + 28 - - 7 / + - 36 - + - 5 * 95 - - 30 * COUNT ( * ), + SUM ( - 9 ) * + 74 AS col0
----
459
-666

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT - COALESCE ( + + COUNT( * ), 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-7257
SELECT - COALESCE ( + + COUNT ( * ), 44 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7258
SELECT 5 AS col0, COUNT( * )
----
5
1

skipif mysql # not compatible
query II rowsort label-7258
SELECT 5 AS col0, COUNT ( * )
----
5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT + ( - 84 ) * COUNT( * ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-7259
SELECT + ( - 84 ) * COUNT ( * ) AS col0
----
-84

query I rowsort
SELECT - 66 + - - 7
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7261
SELECT - COALESCE ( - 44, - 12 * + 3 DIV - - ( 19 ) DIV 10 - - 69, + 64 ) AS col2, COUNT( * ) + - 49 AS col2
----
44
-48

skipif mysql # not compatible
query II rowsort label-7261
SELECT - COALESCE ( - 44, - 12 * + 3 / - - ( 19 ) / 10 - - 69, + 64 ) AS col2, COUNT ( * ) + - 49 AS col2
----
44
-48

query I rowsort
SELECT DISTINCT 1 * + + 28 AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7263
SELECT + CAST( NULL AS SIGNED ) - + + ( - 70 ) - + 93 * - 19 * - + 25 + SUM( - 55 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7263
SELECT + CAST ( NULL AS INTEGER ) - + + ( - 70 ) - + 93 * - 19 * - + 25 + SUM ( - 55 ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7264
SELECT ALL - 69 AS col0, + 34 DIV - - ( COUNT( * ) )
----
-69
34

skipif mysql # not compatible
query II rowsort label-7264
SELECT ALL - 69 AS col0, + 34 / - - ( COUNT ( * ) )
----
-69
34

query II rowsort
SELECT 57 col1, 70 AS col2
----
57
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7266
SELECT - - 84 DIV + 76 + 27 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-7266
SELECT - - 84 / + 76 + 27 AS col2
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-7267
SELECT + - MIN( ALL 72 ) * + + COUNT( * ), + ( + 29 ) AS col2
----
-72
29

skipif mysql # not compatible
query II rowsort label-7267
SELECT + - MIN ( ALL 72 ) * + + COUNT ( * ), + ( + 29 ) AS col2
----
-72
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT ALL + + 23 * + ( + + 87 ) * - 48 + + MAX( ALL + + ( + - 9 ) ) * 92 * + 46 AS col1
----
-134136

skipif mysql # not compatible
query I rowsort label-7268
SELECT ALL + + 23 * + ( + + 87 ) * - 48 + + MAX ( ALL + + ( + - 9 ) ) * 92 * + 46 AS col1
----
-134136

onlyif mysql # DIV for integer division: 
query I rowsort label-7269
SELECT + 71 DIV 3 * - 38 + + - 11 DIV + 91 AS col2
----
-874

skipif mysql # not compatible
query I rowsort label-7269
SELECT + 71 / 3 * - 38 + + - 11 / + 91 AS col2
----
-874

query I rowsort
SELECT ALL - - 3 * - 87 + + + ( - 3 ) AS col0
----
-264

onlyif mysql # DIV for integer division: 
query I rowsort label-7271
SELECT - + 57 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-7271
SELECT - + 57 / + 95
----
0

query I rowsort
SELECT + - 72 + + - 69 AS col1
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT - - 22 + + NULLIF ( + COUNT( * ), - 80 + ( + 80 ) )
----
23

skipif mysql # not compatible
query I rowsort label-7273
SELECT - - 22 + + NULLIF ( + COUNT ( * ), - 80 + ( + 80 ) )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7274
SELECT ALL 75 * - 28 + + CAST( 48 AS SIGNED ) AS col0
----
-2052

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL 75 * - 28 + + CAST ( 48 AS INTEGER ) AS col0
----
-2052

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT - SUM( + + 91 ) * + + 1
----
-91

skipif mysql # not compatible
query I rowsort label-7275
SELECT - SUM ( + + 91 ) * + + 1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT - 51 - + MAX( + + 94 ) AS col2
----
-145

skipif mysql # not compatible
query I rowsort label-7276
SELECT - 51 - + MAX ( + + 94 ) AS col2
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT DISTINCT + SUM( DISTINCT - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT + SUM ( DISTINCT - 36 )
----
-36

query II rowsort
SELECT ALL - 82 * + 53 * + + 25 - + 2 AS col1, - 61 * + 22
----
-108652
-1342

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7279
SELECT ALL - 32 * MAX( ALL - - 51 ) DIV - 32 - 87
----
-36

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL - 32 * MAX ( ALL - - 51 ) / - 32 - 87
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT DISTINCT - 85 * MAX( 45 )
----
-3825

skipif mysql # not compatible
query I rowsort label-7280
SELECT DISTINCT - 85 * MAX ( 45 )
----
-3825

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT - 91 + - COUNT( * ) - - 58 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-7281
SELECT - 91 + - COUNT ( * ) - - 58 AS col2
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7282
SELECT + 97 * - 48 * ( - 79 ) DIV + COUNT( * )
----
367824

skipif mysql # not compatible
query I rowsort label-7282
SELECT + 97 * - 48 * ( - 79 ) / + COUNT ( * )
----
367824

query I rowsort
SELECT ALL - 67 * - 7
----
469

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT + ( - - 36 ) - - - 1 + 24 * COUNT( * ) + 11
----
70

skipif mysql # not compatible
query I rowsort label-7284
SELECT + ( - - 36 ) - - - 1 + 24 * COUNT ( * ) + 11
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT - SUM( DISTINCT - ( - 59 ) ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-7285
SELECT - SUM ( DISTINCT - ( - 59 ) ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT 13 * + 18 + - + COUNT( * )
----
233

skipif mysql # not compatible
query I rowsort label-7286
SELECT 13 * + 18 + - + COUNT ( * )
----
233

query I rowsort
SELECT + 49 - 88 + + 7 AS col1
----
-32

query I rowsort
SELECT + 67 * - + 38 AS col2
----
-2546

onlyif mysql # aggregate syntax: 
query II rowsort label-7289
SELECT + COUNT( * ) + 78 AS col0, + 69
----
79
69

skipif mysql # not compatible
query II rowsort label-7289
SELECT + COUNT ( * ) + 78 AS col0, + 69
----
79
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7290
SELECT + COUNT( * ) * + + COUNT( * ) * + 36 * - COUNT( * ) * + 44 DIV + + COUNT( * )
----
-1584

skipif mysql # not compatible
query I rowsort label-7290
SELECT + COUNT ( * ) * + + COUNT ( * ) * + 36 * - COUNT ( * ) * + 44 / + + COUNT ( * )
----
-1584

query I rowsort
SELECT + ( + 34 ) col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT + NULLIF ( - 10, COUNT( * ) * + - 19 * - 67 ) + - NULLIF ( - 14, + 89 )
----
4

skipif mysql # not compatible
query I rowsort label-7292
SELECT + NULLIF ( - 10, COUNT ( * ) * + - 19 * - 67 ) + - NULLIF ( - 14, + 89 )
----
4

query II rowsort
SELECT CASE - 90 WHEN - + 20 THEN + 31 END, + 11 AS col2
----
NULL
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT + 42 + + MAX( - 48 ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-7294
SELECT + 42 + + MAX ( - 48 ) col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT DISTINCT 29 + + + 58 * + NULLIF ( - 28, - 51 + CASE - + 74 WHEN 50 THEN 39 * - + COALESCE ( - + 47, 56 ) * 28 + - COUNT( * ) END ) + 18 + 60 col2
----
-1517

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT 29 + + + 58 * + NULLIF ( - 28, - 51 + CASE - + 74 WHEN 50 THEN 39 * - + COALESCE ( - + 47, 56 ) * 28 + - COUNT ( * ) END ) + 18 + 60 col2
----
-1517

query I rowsort
SELECT + + 61 + + 15
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7297
SELECT ALL + + CAST( + 97 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL + + CAST ( + 97 AS INTEGER )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT DISTINCT + - SUM( DISTINCT 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-7298
SELECT DISTINCT + - SUM ( DISTINCT 96 )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7299
SELECT ALL + - 28 / - - CAST( NULL AS SIGNED ) + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL + - 28 / - - CAST ( NULL AS INTEGER ) + 5 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7300
SELECT - 27 DIV - 95 + - COUNT( * ) + - CAST( + COUNT( - 40 ) AS SIGNED ) + - 19
----
-21

skipif mysql # not compatible
query I rowsort label-7300
SELECT - 27 / - 95 + - COUNT ( * ) + - CAST ( + COUNT ( - 40 ) AS INTEGER ) + - 19
----
-21

query I rowsort
SELECT 95 * 99 - - 90 AS col2
----
9495

query I rowsort
SELECT + 58 + - 82 + - - 17 AS col2
----
-7

query I rowsort
SELECT - + 62 * + 28
----
-1736

onlyif mysql # DIV for integer division: 
query I rowsort label-7304
SELECT - 41 + COALESCE ( - 32, - 64 DIV 31 + 39 )
----
-73

skipif mysql # not compatible
query I rowsort label-7304
SELECT - 41 + COALESCE ( - 32, - 64 / 31 + 39 )
----
-73

query I rowsort
SELECT 29 * - 73 * 80 AS col2
----
-169360

query I rowsort
SELECT DISTINCT 59 - - ( - 39 ) AS col0
----
20

query I rowsort
SELECT DISTINCT + 98 * + + 92
----
9016

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7308
SELECT ALL - 44 * - COUNT( * ) * + 40 AS col1, - COUNT( * ) * - COALESCE ( + COUNT( * ), - - ( + 57 ) DIV - 42 ) * + ( + + 83 )
----
1760
83

skipif mysql # not compatible
query II rowsort label-7308
SELECT ALL - 44 * - COUNT ( * ) * + 40 AS col1, - COUNT ( * ) * - COALESCE ( + COUNT ( * ), - - ( + 57 ) / - 42 ) * + ( + + 83 )
----
1760
83

query I rowsort
SELECT 55 + - + 44 AS col1
----
11

query II rowsort
SELECT DISTINCT - 93 AS col1, - 57
----
-93
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7311
SELECT 64 + + + CAST( + 54 AS SIGNED )
----
118

skipif mysql # not compatible
query I rowsort label-7311
SELECT 64 + + + CAST ( + 54 AS INTEGER )
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT ALL - 72 - + + SUM( DISTINCT 2 ) + + 14 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL - 72 - + + SUM ( DISTINCT 2 ) + + 14 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT 70 * COUNT( * ) col2
----
70

skipif mysql # not compatible
query I rowsort label-7313
SELECT 70 * COUNT ( * ) col2
----
70

query I rowsort
SELECT DISTINCT - 99 * 53
----
-5247

query I rowsort
SELECT DISTINCT - NULLIF ( - - 99, 75 + CASE NULLIF ( - - 39, + 8 ) WHEN - 93 / - 86 / - + ( + ( + 83 ) ) + - + 23 THEN - + 94 ELSE NULL END )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT MIN( + + 99 ) + + + 34
----
133

skipif mysql # not compatible
query I rowsort label-7316
SELECT MIN ( + + 99 ) + + + 34
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-7317
SELECT ALL 78 AS col1, + 49 * MIN( DISTINCT + 24 )
----
78
1176

skipif mysql # not compatible
query II rowsort label-7317
SELECT ALL 78 AS col1, + 49 * MIN ( DISTINCT + 24 )
----
78
1176

onlyif mysql # aggregate syntax: 
query II rowsort label-7318
SELECT 30 AS col1, NULLIF ( + SUM( 89 ), - 76 )
----
30
89

skipif mysql # not compatible
query II rowsort label-7318
SELECT 30 AS col1, NULLIF ( + SUM ( 89 ), - 76 )
----
30
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7319
SELECT MAX( + 50 ) + + 73 + - 28 + + 65 + + 73 * - MIN( 15 ) * ( + + 39 ) + + - COUNT( * ) + - 56 * + CAST( NULL AS SIGNED ) / + ( + SUM( ALL + 13 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7319
SELECT MAX ( + 50 ) + + 73 + - 28 + + 65 + + 73 * - MIN ( 15 ) * ( + + 39 ) + + - COUNT ( * ) + - 56 * + CAST ( NULL AS INTEGER ) / + ( + SUM ( ALL + 13 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT 98 * + NULLIF ( - CASE - 0 WHEN - + COUNT( 21 ) THEN - - 10 * + 74 * + 61 WHEN + - ( ( - 8 ) ) + - 75 * + + 8 THEN - + 31 END, COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7320
SELECT 98 * + NULLIF ( - CASE - 0 WHEN - + COUNT ( 21 ) THEN - - 10 * + 74 * + 61 WHEN + - ( ( - 8 ) ) + - 75 * + + 8 THEN - + 31 END, COUNT ( * ) ) AS col2
----
NULL

query II rowsort
SELECT ALL 2 * 14 * + 2 AS col1, 32
----
56
32

onlyif mysql # DIV for integer division: 
query I rowsort label-7322
SELECT 5 DIV + 44 * - 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7322
SELECT 5 / + 44 * - 15 AS col1
----
0

query I rowsort
SELECT ALL - 37 + - 41 AS col1
----
-78

query I rowsort
SELECT DISTINCT - 19 + - 18 * - 17
----
287

query I rowsort
SELECT 88 - 5 * 85
----
-337

query I rowsort
SELECT DISTINCT + 19 + - 54
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7327
SELECT COUNT( * ) DIV COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7327
SELECT COUNT ( * ) / COUNT ( * ) col2
----
1

query I rowsort
SELECT DISTINCT + 2 + 71
----
73

query I rowsort
SELECT ALL 29 + - 75
----
-46

query I rowsort
SELECT ALL 88 * 44
----
3872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7331
SELECT ALL COALESCE ( + COUNT( * ), 32 - 6 * 42 ) DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL COALESCE ( + COUNT ( * ), 32 - 6 * 42 ) / - 70
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7332
SELECT 10 DIV 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7332
SELECT 10 / 48 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT NULLIF ( ( 48 ), + ( - 42 ) * SUM( NULLIF ( + COALESCE ( 83, 64 / 95 + 20, 16, + 21 / + 45 ), 16 * 35 ) + + 45 ) ) / NULLIF ( 14 * NULLIF ( - CASE - 11 WHEN - 78 + - COUNT( * ) THEN NULL WHEN MAX( - 35 ) THEN 64 END, 21 ) + 91 * + 3, + 46 * SUM( - 39 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7333
SELECT NULLIF ( ( 48 ), + ( - 42 ) * SUM ( NULLIF ( + COALESCE ( 83, 64 / 95 + 20, 16, + 21 / + 45 ), 16 * 35 ) + + 45 ) ) / NULLIF ( 14 * NULLIF ( - CASE - 11 WHEN - 78 + - COUNT ( * ) THEN NULL WHEN MAX ( - 35 ) THEN 64 END, 21 ) + 91 * + 3, + 46 * SUM ( - 39 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7334
SELECT COALESCE ( - 88, 76, + 71 DIV + ( - 57 * 60 ) ) * COALESCE ( - 63, 53 * + 99 + - 40, 15 + 31 * CAST( CASE - 98 WHEN + 20 DIV - 53 THEN 28 WHEN COUNT( * ) THEN NULL ELSE 97 * - 86 END * COUNT( * ) AS SIGNED ), - COUNT( * ) * 45 - 98 ) + 16 DIV + 87
----
5544

skipif mysql # not compatible
query I rowsort label-7334
SELECT COALESCE ( - 88, 76, + 71 / + ( - 57 * 60 ) ) * COALESCE ( - 63, 53 * + 99 + - 40, 15 + 31 * CAST ( CASE - 98 WHEN + 20 / - 53 THEN 28 WHEN COUNT ( * ) THEN NULL ELSE 97 * - 86 END * COUNT ( * ) AS INTEGER ), - COUNT ( * ) * 45 - 98 ) + 16 / + 87
----
5544

query I rowsort
SELECT ALL 93 - 44 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT ALL - MIN( 19 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL - MIN ( 19 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT 45 * - COUNT( * ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-7337
SELECT 45 * - COUNT ( * ) col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7338
SELECT ALL CAST( NULL AS SIGNED ) - - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL CAST ( NULL AS INTEGER ) - - 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT ALL COUNT( ALL 98 ) * - 61 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL COUNT ( ALL 98 ) * - 61 AS col1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-7340
SELECT 44 + + 9 DIV - 5 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-7340
SELECT 44 + + 9 / - 5 AS col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7341
SELECT CASE 69 WHEN + ( NULLIF ( COUNT( * ), - 73 ) ) * - COALESCE ( COALESCE ( - 9, 7 ), MIN( ALL 71 ), CASE - CAST( CASE + 56 WHEN - CASE 19 WHEN 98 * - 20 THEN NULL WHEN 86 THEN COUNT( * ) + - 2 WHEN 20 * + 6 THEN NULL END * ( - CASE WHEN - MIN( 72 ) = 31 THEN - 2 + + 39 * - 29 END ) + ( - 33 + COALESCE ( - 20, + 81 ) ) THEN + 95 + + 72 WHEN 6 THEN NULL WHEN - 80 THEN + COUNT( * ) END AS SIGNED ) WHEN - 84 THEN 55 END ) THEN + 4 - COALESCE ( COUNT( * ), - COUNT( * ) ) * + 69 WHEN - ( + 6 ) + - 84 * 79 THEN + MIN( DISTINCT + 43 ) END * - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7341
SELECT CASE 69 WHEN + ( NULLIF ( COUNT ( * ), - 73 ) ) * - COALESCE ( COALESCE ( - 9, 7 ), MIN ( ALL 71 ), CASE - CAST ( CASE + 56 WHEN - CASE 19 WHEN 98 * - 20 THEN NULL WHEN 86 THEN COUNT ( * ) + - 2 WHEN 20 * + 6 THEN NULL END * ( - CASE WHEN - MIN ( 72 ) = 31 THEN - 2 + + 39 * - 29 END ) + ( - 33 + COALESCE ( - 20, + 81 ) ) THEN + 95 + + 72 WHEN 6 THEN NULL WHEN - 80 THEN + COUNT ( * ) END AS INTEGER ) WHEN - 84 THEN 55 END ) THEN + 4 - COALESCE ( COUNT ( * ), - COUNT ( * ) ) * + 69 WHEN - ( + 6 ) + - 84 * 79 THEN + MIN ( DISTINCT + 43 ) END * - 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT CASE 7 WHEN - AVG ( - 66 ) / - SUM( + ( - 83 ) ) + - ( SUM( DISTINCT 36 ) ) * 25 THEN - 26 + - 51 END / - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-7342
SELECT CASE 7 WHEN - AVG ( - 66 ) / - SUM ( + ( - 83 ) ) + - ( SUM ( DISTINCT 36 ) ) * 25 THEN - 26 + - 51 END / - 25
----
NULL

query I rowsort
SELECT 64 + 85
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT DISTINCT + 22 * COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT + 22 * COUNT ( * )
----
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7345
SELECT CASE + 84 WHEN + 20 * + 65 + - COUNT( * ) THEN 27 / CAST( COUNT( * ) * 19 AS DECIMAL ) WHEN - COUNT( * ) - 4 * 46 THEN - 45 END / 7 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7345
SELECT CASE + 84 WHEN + 20 * + 65 + - COUNT ( * ) THEN 27 / CAST ( COUNT ( * ) * 19 AS REAL ) WHEN - COUNT ( * ) - 4 * 46 THEN - 45 END / 7 col1
----
NULL

query I rowsort
SELECT ( 32 ) - 12
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-7347
SELECT ALL 44 DIV 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL 44 / 82 AS col1
----
0

query I rowsort
SELECT ALL - 50 + 53 AS col0
----
3

query I rowsort
SELECT 89 + - 38
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7350
SELECT DISTINCT 79 * COALESCE ( 77 DIV + 38, 37, SUM( DISTINCT 69 ) )
----
158

skipif mysql # not compatible
query I rowsort label-7350
SELECT DISTINCT 79 * COALESCE ( 77 / + 38, 37, SUM ( DISTINCT 69 ) )
----
158

query I rowsort
SELECT DISTINCT 37 + + 11 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT ALL COUNT( * ) + 41
----
42

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL COUNT ( * ) + 41
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT ALL - MAX( ALL + ( 57 ) ) + + 69 * - 55
----
-3852

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL - MAX ( ALL + ( 57 ) ) + + 69 * - 55
----
-3852

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT SUM( + 90 ) + - 47 * 13
----
-521

skipif mysql # not compatible
query I rowsort label-7354
SELECT SUM ( + 90 ) + - 47 * 13
----
-521

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT COUNT( 63 ) * + 39 col2
----
39

skipif mysql # not compatible
query I rowsort label-7355
SELECT COUNT ( 63 ) * + 39 col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7356
SELECT CAST( 71 AS SIGNED ) + 54 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-7356
SELECT CAST ( 71 AS INTEGER ) + 54 AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT 24 - - MIN( ( 11 ) ) col1
----
35

skipif mysql # not compatible
query I rowsort label-7357
SELECT 24 - - MIN ( ( 11 ) ) col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT - COUNT( ALL 66 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7358
SELECT - COUNT ( ALL 66 ) AS col2
----
-1

query I rowsort
SELECT + 84 + 90 col2
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT - ( - COUNT( + 74 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7360
SELECT - ( - COUNT ( + 74 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7361
SELECT ALL - NULLIF ( COUNT( + 27 ), - CAST( 51 AS SIGNED ) ) + - 90
----
-91

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL - NULLIF ( COUNT ( + 27 ), - CAST ( 51 AS INTEGER ) ) + - 90
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT - + SUM( DISTINCT + 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-7362
SELECT - + SUM ( DISTINCT + 28 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT - 17 * MAX( DISTINCT 46 )
----
-782

skipif mysql # not compatible
query I rowsort label-7363
SELECT - 17 * MAX ( DISTINCT 46 )
----
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT - - COALESCE ( + 43, - CASE ( 78 ) WHEN + 27 / 68 THEN NULL WHEN + 97 THEN - MAX( 59 ) ELSE NULL END * + ( 97 ) ) col2
----
43

skipif mysql # not compatible
query I rowsort label-7364
SELECT - - COALESCE ( + 43, - CASE ( 78 ) WHEN + 27 / 68 THEN NULL WHEN + 97 THEN - MAX ( 59 ) ELSE NULL END * + ( 97 ) ) col2
----
43

query I rowsort
SELECT - + COALESCE ( 50, 80 - 24 ) * 28 AS col1
----
-1400

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT DISTINCT - - 14 * + COUNT( * ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7366
SELECT DISTINCT - - 14 * + COUNT ( * ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT - 76 + - COUNT( ALL - 78 )
----
-77

skipif mysql # not compatible
query I rowsort label-7367
SELECT - 76 + - COUNT ( ALL - 78 )
----
-77

query I rowsort
SELECT + ( 9 ) * + 95 + + NULLIF ( 53 + + 89, 92 + - 80 )
----
997

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT - 75 * - 54 * - SUM( DISTINCT + 25 * 5 ) AS col1
----
-506250

skipif mysql # not compatible
query I rowsort label-7369
SELECT - 75 * - 54 * - SUM ( DISTINCT + 25 * 5 ) AS col1
----
-506250

query I rowsort
SELECT ALL + COALESCE ( + - 7, 34, 60 + 16, + 73 * 95 )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-7371
SELECT DISTINCT + 26 DIV COALESCE ( - 35, + 82 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT + 26 / COALESCE ( - 35, + 82 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7372
SELECT + CAST( 33 AS SIGNED ) DIV 22 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7372
SELECT + CAST ( 33 AS INTEGER ) / 22 AS col2
----
1

query I rowsort
SELECT NULLIF ( + - 82, 99 * 26 )
----
-82

query I rowsort
SELECT ALL 39 * + 19 AS col0
----
741

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT - COUNT( * ) * 17 col0
----
-17

skipif mysql # not compatible
query I rowsort label-7375
SELECT - COUNT ( * ) * 17 col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7376
SELECT + CASE WHEN NOT ( - 91 ) IS NULL THEN 17 * MIN( + 27 ) + + 78 WHEN ( 17 ) NOT BETWEEN NULL AND 41 THEN - 89 END + CAST( NULL AS SIGNED ) * 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7376
SELECT + CASE WHEN NOT ( - 91 ) IS NULL THEN 17 * MIN ( + 27 ) + + 78 WHEN ( 17 ) NOT BETWEEN NULL AND 41 THEN - 89 END + CAST ( NULL AS INTEGER ) * 83 AS col2
----
NULL

query I rowsort
SELECT CASE - + 48 WHEN + 88 * - 14 THEN 35 * 24 WHEN - 2 THEN + 36 + 82 * + 90 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT DISTINCT 74 * MAX( 29 )
----
2146

skipif mysql # not compatible
query I rowsort label-7378
SELECT DISTINCT 74 * MAX ( 29 )
----
2146

query I rowsort
SELECT ALL 5 * 34 + - 66 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT COUNT( * ) * + 76 * - 23 + 66
----
-1682

skipif mysql # not compatible
query I rowsort label-7380
SELECT COUNT ( * ) * + 76 * - 23 + 66
----
-1682

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT + ( + COUNT( * ) ) + 72 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-7381
SELECT + ( + COUNT ( * ) ) + 72 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT DISTINCT 73 * SUM( ALL 57 ) + 84
----
4245

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT 73 * SUM ( ALL 57 ) + 84
----
4245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7383
SELECT ALL CAST( NULL AS SIGNED ) * + - 72 * + 72 + + 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7383
SELECT ALL CAST ( NULL AS INTEGER ) * + - 72 * + 72 + + 56 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT MAX( 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7384
SELECT MAX ( 8 ) AS col1
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7385
SELECT + 67 DIV - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-7385
SELECT + 67 / - COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT ALL 48 * + SUM( DISTINCT 64 ) + - COUNT( * ) * 81
----
2991

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL 48 * + SUM ( DISTINCT 64 ) + - COUNT ( * ) * 81
----
2991

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT + ( - + 15 ) * - MAX( 57 * - 49 )
----
-41895

skipif mysql # not compatible
query I rowsort label-7387
SELECT + ( - + 15 ) * - MAX ( 57 * - 49 )
----
-41895

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT MAX( DISTINCT - ( 78 ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-7388
SELECT MAX ( DISTINCT - ( 78 ) ) AS col1
----
-78

query I rowsort
SELECT 83 * + + 27 + 39 * + 32
----
3489

query I rowsort
SELECT DISTINCT 95 + + - 25 * 18 col2
----
-355

query I rowsort
SELECT ALL ( - ( + 44 ) ) * + 6 AS col0
----
-264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7392
SELECT ALL CASE - + 86 WHEN - 42 THEN CAST( NULL AS SIGNED ) END + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7392
SELECT ALL CASE - + 86 WHEN - 42 THEN CAST ( NULL AS INTEGER ) END + 96 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7393
SELECT + 35 DIV - - 74
----
0

skipif mysql # not compatible
query I rowsort label-7393
SELECT + 35 / - - 74
----
0

query I rowsort
SELECT ALL 18 - - 93
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT ALL NULLIF ( - 19, NULLIF ( + 34, + ( COUNT( * ) ) * - COUNT( * ) ) ) * 47 AS col0
----
-893

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL NULLIF ( - 19, NULLIF ( + 34, + ( COUNT ( * ) ) * - COUNT ( * ) ) ) * 47 AS col0
----
-893

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT + + 30 - - 4 - + 49 * + COUNT( 98 ) * + 65 AS col1
----
-3151

skipif mysql # not compatible
query I rowsort label-7396
SELECT + + 30 - - 4 - + 49 * + COUNT ( 98 ) * + 65 AS col1
----
-3151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7397
SELECT - + NULLIF ( 44, - 21 DIV COUNT( * ) ) DIV 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7397
SELECT - + NULLIF ( 44, - 21 / COUNT ( * ) ) / 90 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7398
SELECT - 80 + + 70 + ( - 42 ) DIV + NULLIF ( 22 + 5 * + 31, - 28 )
----
-10

skipif mysql # not compatible
query I rowsort label-7398
SELECT - 80 + + 70 + ( - 42 ) / + NULLIF ( 22 + 5 * + 31, - 28 )
----
-10

query I rowsort
SELECT - - 49 * - 43 * 63
----
-132741

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT - MAX( - + 84 ) + - 96
----
-12

skipif mysql # not compatible
query I rowsort label-7400
SELECT - MAX ( - + 84 ) + - 96
----
-12

query I rowsort
SELECT - 65 - + + 76
----
-141

query I rowsort
SELECT - + 23 * - 69 AS col2
----
1587

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT DISTINCT COALESCE ( + + MAX( ALL 28 ), - COALESCE ( + 94, 92 ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT COALESCE ( + + MAX ( ALL 28 ), - COALESCE ( + 94, 92 ) ) AS col0
----
28

query II rowsort
SELECT + 43 AS col2, 8 + 26
----
43
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT + COUNT( + + NULLIF ( - + 27, + 71 + + ( - 11 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-7405
SELECT + COUNT ( + + NULLIF ( - + 27, + 71 + + ( - 11 ) ) )
----
1

query I rowsort
SELECT ALL + 22 * - - 75 * 23
----
37950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7407
SELECT - ( + + CAST( NULL AS SIGNED ) ) * - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT - ( + + CAST ( NULL AS INTEGER ) ) * - + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT - 62 - - CASE + + 92 WHEN MAX( ALL 34 ) THEN + 10 WHEN MAX( 21 ) THEN NULL WHEN - 99 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7408
SELECT - 62 - - CASE + + 92 WHEN MAX ( ALL 34 ) THEN + 10 WHEN MAX ( 21 ) THEN NULL WHEN - 99 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 40 * + + 66
----
-2640

query I rowsort
SELECT ALL - 23 * - 80 AS col0
----
1840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7411
SELECT DISTINCT MIN( DISTINCT - + 71 ) DIV + + 3 + 17 + + 11 * - COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT MIN ( DISTINCT - + 71 ) / + + 3 + 17 + + 11 * - COUNT ( * )
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7412
SELECT ALL 26 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL 26 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7413
SELECT ALL CASE 27 WHEN - 81 THEN 49 * 67 WHEN - ( + 16 ) THEN NULL END / CAST( CAST( NULL AS SIGNED ) * + 65 + COUNT( * ) AS SIGNED ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL CASE 27 WHEN - 81 THEN 49 * 67 WHEN - ( + 16 ) THEN NULL END / CAST ( CAST ( NULL AS INTEGER ) * + 65 + COUNT ( * ) AS INTEGER ) + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT + CASE 25 WHEN + 40 * NULLIF ( CASE + 20 WHEN + 75 THEN + COUNT( * ) END / - 17, 22 ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7414
SELECT + CASE 25 WHEN + 40 * NULLIF ( CASE + 20 WHEN + 75 THEN + COUNT ( * ) END / - 17, 22 ) THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ( + - 75 ) AS col2
----
-75

query I rowsort
SELECT ( + COALESCE ( 49, 34 - - CASE 66 WHEN + 27 THEN + 99 * - 64 ELSE - 56 END * - 46, - 54 * + 24 ) ) * 51 + - 29 * - 35 AS col1
----
3514

query I rowsort
SELECT + 84 * 79 AS col1
----
6636

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT + CASE 97 WHEN + COALESCE ( - CASE + 96 WHEN 28 * - COUNT( * ) + 44 THEN NULL WHEN - 19 THEN + 91 + 0 / - 97 ELSE 19 + - 98 * 94 END, + 52 * 23, + MIN( 16 ) ) * 30 THEN + 32 * - 68 ELSE NULL END * + 60 + + 41 / - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-7418
SELECT + CASE 97 WHEN + COALESCE ( - CASE + 96 WHEN 28 * - COUNT ( * ) + 44 THEN NULL WHEN - 19 THEN + 91 + 0 / - 97 ELSE 19 + - 98 * 94 END, + 52 * 23, + MIN ( 16 ) ) * 30 THEN + 32 * - 68 ELSE NULL END * + 60 + + 41 / - 22
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7419
SELECT + 61 * - - CAST( - 0 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7419
SELECT + 61 * - - CAST ( - 0 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7420
SELECT + COUNT( DISTINCT + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7420
SELECT + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT - COUNT( * ) + + 81 - - 62
----
142

skipif mysql # not compatible
query I rowsort label-7421
SELECT - COUNT ( * ) + + 81 - - 62
----
142

query I rowsort
SELECT + ( - + ( + - 81 ) )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7423
SELECT ALL - 98 * - - NULLIF ( - + 63, CAST( NULL AS SIGNED ) / 19 ) + COUNT( * ) * 72
----
6246

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL - 98 * - - NULLIF ( - + 63, CAST ( NULL AS INTEGER ) / 19 ) + COUNT ( * ) * 72
----
6246

query I rowsort
SELECT ( + 31 ) AS col1
----
31

query II rowsort
SELECT ALL + 40 AS col0, + 31 * 92
----
40
2852

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT ALL - 48 * + COUNT( * ) - + 3
----
-51

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL - 48 * + COUNT ( * ) - + 3
----
-51

query I rowsort
SELECT + 25 + + - 91
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT DISTINCT + COUNT( ALL + 91 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT + COUNT ( ALL + 91 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT DISTINCT + 6 * - 35 * COUNT( * ) AS col1
----
-210

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT + 6 * - 35 * COUNT ( * ) AS col1
----
-210

query I rowsort
SELECT + ( - COALESCE ( 1, 40 * + ( 21 ) ) ) AS col0
----
-1

query I rowsort
SELECT ALL + 5 * - 51 - - 74
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT - + COUNT( * ) + 76 * + + 76 AS col2
----
5775

skipif mysql # not compatible
query I rowsort label-7432
SELECT - + COUNT ( * ) + 76 * + + 76 AS col2
----
5775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7433
SELECT + + COUNT( * ) * + - ( - + COALESCE ( 67, 90 * 87 - + 45, + 32 DIV - 87 ) ) * COUNT( * ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-7433
SELECT + + COUNT ( * ) * + - ( - + COALESCE ( 67, 90 * 87 - + 45, + 32 / - 87 ) ) * COUNT ( * ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT MIN( - ( - 46 ) )
----
46

skipif mysql # not compatible
query I rowsort label-7434
SELECT MIN ( - ( - 46 ) )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-7435
SELECT ALL - 83, 80 * - SUM( DISTINCT + NULLIF ( - 30, 78 / 2 ) ) * 6 col0
----
-83
14400

skipif mysql # not compatible
query II rowsort label-7435
SELECT ALL - 83, 80 * - SUM ( DISTINCT + NULLIF ( - 30, 78 / 2 ) ) * 6 col0
----
-83
14400

query I rowsort
SELECT ( + 71 ) col1
----
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7437
SELECT CAST( NULL AS DECIMAL ) + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT CAST ( NULL AS REAL ) + 79
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7438
SELECT - CAST( + COALESCE ( + NULLIF ( 36, 15 ), + 19 - 63 * 28 ) AS SIGNED ) - + 7 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-7438
SELECT - CAST ( + COALESCE ( + NULLIF ( 36, 15 ), + 19 - 63 * 28 ) AS INTEGER ) - + 7 AS col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7439
SELECT 73 * CAST( 1 AS SIGNED ) + + ( COUNT( * ) + + CAST( NULL AS SIGNED ) * COALESCE ( 75 * - 81 + - 3 / 96, CASE + 65 WHEN + COUNT( + 55 ) THEN NULL ELSE + 35 + 61 END * + 93, - 68 * - 0 - + COUNT( * ) ) ) * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-7439
SELECT 73 * CAST ( 1 AS INTEGER ) + + ( COUNT ( * ) + + CAST ( NULL AS INTEGER ) * COALESCE ( 75 * - 81 + - 3 / 96, CASE + 65 WHEN + COUNT ( + 55 ) THEN NULL ELSE + 35 + 61 END * + 93, - 68 * - 0 - + COUNT ( * ) ) ) * - 19
----
NULL

query I rowsort
SELECT - 78 * + 87 AS col2
----
-6786

query I rowsort
SELECT DISTINCT + COALESCE ( + 68, + 74, - 39 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7442
SELECT ALL 66 * CASE - 16 WHEN + CAST( NULL AS SIGNED ) THEN + 74 WHEN - 33 * COUNT( * ) THEN - ( ( COUNT( * ) ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL 66 * CASE - 16 WHEN + CAST ( NULL AS INTEGER ) THEN + 74 WHEN - 33 * COUNT ( * ) THEN - ( ( COUNT ( * ) ) ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7443
SELECT ALL - 12 DIV - 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7443
SELECT ALL - 12 / - 42 AS col0
----
0

query I rowsort
SELECT + NULLIF ( - + 23, + 70 ) * NULLIF ( 97 - 69, 30 )
----
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT ALL + + COUNT( * ) * 51 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-7445
SELECT ALL + + COUNT ( * ) * 51 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT ALL - 63 * 49 * - ( + MIN( + 33 ) ) AS col2
----
101871

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL - 63 * 49 * - ( + MIN ( + 33 ) ) AS col2
----
101871

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT + CASE + 74 WHEN 89 * MIN( 28 ) - - 10 / - 93 THEN NULL WHEN 14 + ( COUNT( * ) ) THEN 62 END / MAX( 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7447
SELECT + CASE + 74 WHEN 89 * MIN ( 28 ) - - 10 / - 93 THEN NULL WHEN 14 + ( COUNT ( * ) ) THEN 62 END / MAX ( 33 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7448
SELECT - NULLIF ( + 0, - 96 * + 46 ) + CASE + ( COUNT( * ) ) WHEN + 78 * 58 + MAX( DISTINCT - 22 ) THEN 0 / - 75 WHEN + CAST( NULL AS SIGNED ) * COUNT( * ) THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7448
SELECT - NULLIF ( + 0, - 96 * + 46 ) + CASE + ( COUNT ( * ) ) WHEN + 78 * 58 + MAX ( DISTINCT - 22 ) THEN 0 / - 75 WHEN + CAST ( NULL AS INTEGER ) * COUNT ( * ) THEN NULL ELSE NULL END col0
----
NULL

query I rowsort
SELECT 19 - + + 74 AS col0
----
-55

query I rowsort
SELECT ALL 55 * - + ( 47 ) - - 8 col2
----
-2577

query I rowsort
SELECT 22 + ( + - 38 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-7452
SELECT + COUNT( * ) col0, SUM( ALL + - 43 )
----
1
-43

skipif mysql # not compatible
query II rowsort label-7452
SELECT + COUNT ( * ) col0, SUM ( ALL + - 43 )
----
1
-43

query I rowsort
SELECT 80 + 85 + + 51 AS col1
----
216

query I rowsort
SELECT ALL - 81 + - + 38 * - 28
----
983

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT SUM( - 67 ) + - 81
----
-148

skipif mysql # not compatible
query I rowsort label-7455
SELECT SUM ( - 67 ) + - 81
----
-148

query I rowsort
SELECT ALL 27 + + 20 AS col2
----
47

query II rowsort
SELECT DISTINCT 62 + 65, ( + - 10 ) * 11 AS col2
----
127
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT ALL - CASE - ( ( + 72 ) ) WHEN + 40 THEN - COUNT( * ) * 38 - 23 WHEN 59 THEN NULL ELSE NULL END * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL - CASE - ( ( + 72 ) ) WHEN + 40 THEN - COUNT ( * ) * 38 - 23 WHEN 59 THEN NULL ELSE NULL END * 18
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7459
SELECT ALL - COUNT( * ) + 34 DIV - NULLIF ( - 59, 6 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL - COUNT ( * ) + 34 / - NULLIF ( - 59, 6 ) AS col0
----
-1

query II rowsort
SELECT 70 * 24, - 85 + - 47 AS col2
----
1680
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-7461
SELECT DISTINCT - 9 DIV 27
----
0

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT - 9 / 27
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT - ( - COUNT( ALL - + 26 ) ) * - 29 + 68 + - 67
----
-28

skipif mysql # not compatible
query I rowsort label-7462
SELECT - ( - COUNT ( ALL - + 26 ) ) * - 29 + 68 + - 67
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT ALL - COUNT( + 5 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL - COUNT ( + 5 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7464
SELECT ALL - 92 * 31 DIV + 6
----
-475

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL - 92 * 31 / + 6
----
-475

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7465
SELECT ALL + COUNT( * ) - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL + COUNT ( * ) - - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT 8 * - ( - COUNT( * ) ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7466
SELECT 8 * - ( - COUNT ( * ) ) AS col2
----
8

query I rowsort
SELECT ALL - 92 * - 47
----
4324

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT 14 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-7468
SELECT 14 / - 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT ALL - MAX( 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL - MAX ( 15 )
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7470
SELECT ALL MAX( ALL - 71 ) DIV + - ( + - 55 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL MAX ( ALL - 71 ) / + - ( + - 55 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7471
SELECT 19 DIV + MIN( + 76 ) + - 62 + + NULLIF ( 81, 54 + + 58 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-7471
SELECT 19 / + MIN ( + 76 ) + - 62 + + NULLIF ( 81, 54 + + 58 ) AS col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7472
SELECT - COUNT( * ) DIV - CASE - ( - - 33 ) WHEN ( + NULLIF ( + 28, + 21 DIV + 67 ) ) * 34 + SUM( 1 + + ( 21 + 67 ) ) THEN + 38 - + 27 ELSE + ( - 98 ) END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7472
SELECT - COUNT ( * ) / - CASE - ( - - 33 ) WHEN ( + NULLIF ( + 28, + 21 / + 67 ) ) * 34 + SUM ( 1 + + ( 21 + 67 ) ) THEN + 38 - + 27 ELSE + ( - 98 ) END AS col1
----
0

query I rowsort
SELECT 8 * + 4 + + 8
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7474
SELECT ALL - 19 DIV - 98 - - 62 * + + ( + 42 )
----
2604

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL - 19 / - 98 - - 62 * + + ( + 42 )
----
2604

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT + + 22 * - + 85 + - 38 * - MAX( DISTINCT - 46 ) - - ( - 60 )
----
-3678

skipif mysql # not compatible
query I rowsort label-7475
SELECT + + 22 * - + 85 + - 38 * - MAX ( DISTINCT - 46 ) - - ( - 60 )
----
-3678

query I rowsort
SELECT ALL - 27 * + + 41 * + 32 * - 81 + + 76 * - ( 90 ) AS col0
----
2862504

query I rowsort
SELECT 88 * + 93 AS col0
----
8184

query II rowsort
SELECT ALL ( - 36 ) col1, 18 * - 56 + - 92
----
-36
-1100

query I rowsort
SELECT ALL - 67 * - 13
----
871

query I rowsort
SELECT DISTINCT - 34 * + 44 + - + 29 col2
----
-1525

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT ALL 25 + ( + - NULLIF ( - + NULLIF ( - COUNT( * ), 64 ), - 19 / 33 ) ) + 42 * 69
----
2922

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL 25 + ( + - NULLIF ( - + NULLIF ( - COUNT ( * ), 64 ), - 19 / 33 ) ) + 42 * 69
----
2922

query I rowsort
SELECT - 0 + - - 72 AS col1
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7483
SELECT + CAST( NULL AS DECIMAL ) * + - 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7483
SELECT + CAST ( NULL AS REAL ) * + - 43 AS col0
----
NULL

query I rowsort
SELECT COALESCE ( 85, ( + 22 ) ) + 41 * 25
----
1110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7485
SELECT DISTINCT - MIN( DISTINCT + COALESCE ( + NULLIF ( - ( 20 ), + CAST( NULL AS SIGNED ) ), + ( - 75 ), 71 ) ) + + 32
----
52

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT - MIN ( DISTINCT + COALESCE ( + NULLIF ( - ( 20 ), + CAST ( NULL AS INTEGER ) ), + ( - 75 ), 71 ) ) + + 32
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT ALL + 9 + SUM( 55 ) * - 32 + COUNT( * )
----
-1750

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL + 9 + SUM ( 55 ) * - 32 + COUNT ( * )
----
-1750

query I rowsort
SELECT DISTINCT 51 * - + 96
----
-4896

onlyif mysql # DIV for integer division: 
query I rowsort label-7488
SELECT DISTINCT 62 DIV 10 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT 62 / 10 AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7489
SELECT ALL 80 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL 80 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7490
SELECT AVG ( ALL - 63 ) - - CASE - - 28 WHEN - ( + 85 ) THEN + CAST( - COUNT( * ) AS DECIMAL ) END + - SUM( ALL - 33 ) * 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7490
SELECT AVG ( ALL - 63 ) - - CASE - - 28 WHEN - ( + 85 ) THEN + CAST ( - COUNT ( * ) AS REAL ) END + - SUM ( ALL - 33 ) * 21 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 15 * + + 26
----
390

query I rowsort
SELECT 79 * + + 74 AS col2
----
5846

query I rowsort
SELECT 18 * - 58
----
-1044

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT ALL + SUM( ALL + 69 ) * - 63 * 24 + - ( 96 ) - - SUM( ( 70 ) ) AS col1
----
-104354

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL + SUM ( ALL + 69 ) * - 63 * 24 + - ( 96 ) - - SUM ( ( 70 ) ) AS col1
----
-104354

query I rowsort
SELECT ALL - ( - 81 ) * - 30 - + 10 AS col2
----
-2440

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT 4 - - - MAX( DISTINCT + 22 ) + + + ( - - NULLIF ( MAX( - 86 ), 21 + ( 55 ) / 72 ) ) - 69 * 14 AS col1
----
-1070

skipif mysql # not compatible
query I rowsort label-7496
SELECT 4 - - - MAX ( DISTINCT + 22 ) + + + ( - - NULLIF ( MAX ( - 86 ), 21 + ( 55 ) / 72 ) ) - 69 * 14 AS col1
----
-1070

query I rowsort
SELECT DISTINCT 55 * 94 AS col0
----
5170

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT SUM( + - 9 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-7498
SELECT SUM ( + - 9 ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT DISTINCT - SUM( 38 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT - SUM ( 38 ) AS col2
----
-38

query I rowsort
SELECT ( - 90 ) + + 86
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT 25 * COUNT( * ) + + + 63 + - 52 + + ( - 13 )
----
23

skipif mysql # not compatible
query I rowsort label-7501
SELECT 25 * COUNT ( * ) + + + 63 + - 52 + + ( - 13 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT + + COUNT( * ) * 21 + ( + 49 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7502
SELECT + + COUNT ( * ) * 21 + ( + 49 ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT - - 68 + - - SUM( + 43 ) AS col0
----
111

skipif mysql # not compatible
query I rowsort label-7503
SELECT - - 68 + - - SUM ( + 43 ) AS col0
----
111

query I rowsort
SELECT ALL + - 34 * + 6 + + 15 AS col1
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT SUM( DISTINCT - + 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-7505
SELECT SUM ( DISTINCT - + 39 ) AS col0
----
-39

query I rowsort
SELECT DISTINCT 69 * - 86
----
-5934

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7507
SELECT ALL + - 59 + + 29 + - CAST( NULL AS SIGNED ) * - + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL + - 59 + + 29 + - CAST ( NULL AS INTEGER ) * - + 57 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7508
SELECT + 51 * CASE + ( + - CAST( + 52 AS DECIMAL ) ) WHEN 3 * 9 THEN 39 * - COUNT( * ) ELSE + 30 - 42 END + ( - 13 )
----
-625

skipif mysql # not compatible
query I rowsort label-7508
SELECT + 51 * CASE + ( + - CAST ( + 52 AS REAL ) ) WHEN 3 * 9 THEN 39 * - COUNT ( * ) ELSE + 30 - 42 END + ( - 13 )
----
-625

onlyif mysql # DIV for integer division: 
query I rowsort label-7509
SELECT - 27 DIV - 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7509
SELECT - 27 / - 33 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT ALL - + 30 + - 59 + + 27 + + MAX( DISTINCT 18 ) * - 85 * 52 AS col2
----
-79622

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL - + 30 + - 59 + + 27 + + MAX ( DISTINCT 18 ) * - 85 * 52 AS col2
----
-79622

query I rowsort
SELECT ALL + + 67 + + 71 col1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT - 84 * COUNT( - + 39 ) * + - 44
----
3696

skipif mysql # not compatible
query I rowsort label-7512
SELECT - 84 * COUNT ( - + 39 ) * + - 44
----
3696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7513
SELECT - - NULLIF ( - 99, - - 92 DIV 52 * + - COUNT( * ) ) DIV + 28 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7513
SELECT - - NULLIF ( - 99, - - 92 / 52 * + - COUNT ( * ) ) / + 28 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7514
SELECT + - 19 / 27 - 76 + CASE + - CAST( NULL AS SIGNED ) WHEN + 96 THEN + 39 ELSE NULL END - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7514
SELECT + - 19 / 27 - 76 + CASE + - CAST ( NULL AS INTEGER ) WHEN + 96 THEN + 39 ELSE NULL END - 28
----
NULL

query I rowsort
SELECT DISTINCT + - 17 + - 20
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7516
SELECT - CAST( - 83 AS SIGNED ) col2
----
83

skipif mysql # not compatible
query I rowsort label-7516
SELECT - CAST ( - 83 AS INTEGER ) col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7517
SELECT + CASE + COUNT( * ) WHEN - CAST( 14 AS SIGNED ) * 29 + 80 THEN NULL WHEN 9 THEN - 85 WHEN COUNT( * ) THEN 27 ELSE 55 / 12 + + 97 END
----
27

skipif mysql # not compatible
query I rowsort label-7517
SELECT + CASE + COUNT ( * ) WHEN - CAST ( 14 AS INTEGER ) * 29 + 80 THEN NULL WHEN 9 THEN - 85 WHEN COUNT ( * ) THEN 27 ELSE 55 / 12 + + 97 END
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7518
SELECT DISTINCT 55 * ( - CASE + + 87 WHEN 60 * CAST( NULL AS DECIMAL ) + COALESCE ( 20, - 19 + MIN( 61 - 9 * 20 ), - 71 ) * + CAST( - 21 + + 92 AS SIGNED ) THEN - MIN( 39 ) + - 40 WHEN - COALESCE ( 19, 49 * + 47 ) THEN 50 * - COUNT( * ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT 55 * ( - CASE + + 87 WHEN 60 * CAST ( NULL AS REAL ) + COALESCE ( 20, - 19 + MIN ( 61 - 9 * 20 ), - 71 ) * + CAST ( - 21 + + 92 AS INTEGER ) THEN - MIN ( 39 ) + - 40 WHEN - COALESCE ( 19, 49 * + 47 ) THEN 50 * - COUNT ( * ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT DISTINCT - - 88 + + - SUM( DISTINCT 42 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-7519
SELECT DISTINCT - - 88 + + - SUM ( DISTINCT 42 ) AS col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7520
SELECT DISTINCT CASE - MIN( 30 ) WHEN + 52 THEN - 68 * + ( 97 ) * + CASE 24 WHEN ( 72 ) THEN - 20 + - 59 WHEN 84 * COUNT( * ) + + CASE 60 WHEN 0 THEN + CAST( NULL AS SIGNED ) + COUNT( + COALESCE ( CAST( NULL AS SIGNED ), 24 ) ) WHEN + ( - CAST( + 42 AS SIGNED ) ) + - 19 THEN NULL ELSE 1 - 60 END THEN NULL ELSE + 24 * - COALESCE ( - 44, 85 ) + + 69 END + 94 END + 41 * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT CASE - MIN ( 30 ) WHEN + 52 THEN - 68 * + ( 97 ) * + CASE 24 WHEN ( 72 ) THEN - 20 + - 59 WHEN 84 * COUNT ( * ) + + CASE 60 WHEN 0 THEN + CAST ( NULL AS INTEGER ) + COUNT ( + COALESCE ( CAST ( NULL AS INTEGER ), 24 ) ) WHEN + ( - CAST ( + 42 AS INTEGER ) ) + - 19 THEN NULL ELSE 1 - 60 END THEN NULL ELSE + 24 * - COALESCE ( - 44, 85 ) + + 69 END + 94 END + 41 * 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT ALL CASE 77 WHEN - + SUM( ALL 40 ) / + AVG ( DISTINCT + 51 ) + 46 + + 60 THEN - ( + 59 ) + ( 18 ) * + COUNT( * ) WHEN 54 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL CASE 77 WHEN - + SUM ( ALL 40 ) / + AVG ( DISTINCT + 51 ) + 46 + + 60 THEN - ( + 59 ) + ( 18 ) * + COUNT ( * ) WHEN 54 THEN NULL END col1
----
NULL

query I rowsort
SELECT DISTINCT - 9 * + 31 AS col0
----
-279

query I rowsort
SELECT - ( + - 56 ) + - - 38 * + - 97
----
-3630

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT - SUM( + + 23 ) * + - 20 col2
----
460

skipif mysql # not compatible
query I rowsort label-7524
SELECT - SUM ( + + 23 ) * + - 20 col2
----
460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7525
SELECT ALL + MIN( + 37 ) * - + COALESCE ( - COUNT( * ), + 20 ) DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL + MIN ( + 37 ) * - + COALESCE ( - COUNT ( * ), + 20 ) / 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT - MIN( ALL + 94 ) + + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-7526
SELECT - MIN ( ALL + 94 ) + + COUNT ( * )
----
-93

query I rowsort
SELECT + 85 - + 86
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7528
SELECT ALL 67 - - CAST( NULL AS SIGNED ) AS col0, 70 AS col1
----
NULL
70

skipif mysql # not compatible
query II rowsort label-7528
SELECT ALL 67 - - CAST ( NULL AS INTEGER ) AS col0, 70 AS col1
----
NULL
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT - ( - 54 ) * 80 * + 54 * - + 83 * + SUM( + 8 ) + - 43 AS col1
----
-154897963

skipif mysql # not compatible
query I rowsort label-7529
SELECT - ( - 54 ) * 80 * + 54 * - + 83 * + SUM ( + 8 ) + - 43 AS col1
----
-154897963

query I rowsort
SELECT + 49 + - 92
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT + 26 + + MIN( DISTINCT + + 37 ) + + 33 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-7531
SELECT + 26 + + MIN ( DISTINCT + + 37 ) + + 33 AS col2
----
96

query I rowsort
SELECT ALL - 19 - 45
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7533
SELECT ALL - 99 DIV CAST( 6 AS SIGNED ) * ( SUM( 4 ) ) - 72
----
-136

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL - 99 / CAST ( 6 AS INTEGER ) * ( SUM ( 4 ) ) - 72
----
-136

query I rowsort
SELECT DISTINCT NULLIF ( - CASE ( + 74 ) WHEN + 34 THEN NULL WHEN - 56 THEN - ( 86 ) * 68 + + 96 WHEN 89 THEN NULL END, 29 ) * - 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7535
SELECT + COUNT( * ), - 51 AS col2
----
1
-51

skipif mysql # not compatible
query II rowsort label-7535
SELECT + COUNT ( * ), - 51 AS col2
----
1
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7536
SELECT + 96 * CAST( NULL AS SIGNED ) / + - 76 * + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT + 96 * CAST ( NULL AS INTEGER ) / + - 76 * + 62 AS col0
----
NULL

query I rowsort
SELECT ALL ( + - ( + 31 ) ) * + 69
----
-2139

query I rowsort
SELECT ( - - 3 )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7539
SELECT + 48 + + 67 + 78 * - + 63 * - + COUNT( * ) - - 94 DIV + 51 col0
----
5030

skipif mysql # not compatible
query I rowsort label-7539
SELECT + 48 + + 67 + 78 * - + 63 * - + COUNT ( * ) - - 94 / + 51 col0
----
5030

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7540
SELECT ALL + + 91 AS col2, 93 * + 97 / - - NULLIF ( - - 19, - 76 + - 79 ) * - ( - CASE + CAST( + 58 AS SIGNED ) WHEN 49 THEN - 32 END * 56 ) AS col1
----
91
NULL

skipif mysql # not compatible
query II rowsort label-7540
SELECT ALL + + 91 AS col2, 93 * + 97 / - - NULLIF ( - - 19, - 76 + - 79 ) * - ( - CASE + CAST ( + 58 AS INTEGER ) WHEN 49 THEN - 32 END * 56 ) AS col1
----
91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7541
SELECT 12 AS col1, COALESCE ( + 44, + ( 84 ) ) + + + CAST( NULL AS SIGNED )
----
12
NULL

skipif mysql # not compatible
query II rowsort label-7541
SELECT 12 AS col1, COALESCE ( + 44, + ( 84 ) ) + + + CAST ( NULL AS INTEGER )
----
12
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7542
SELECT + - ( - - 87 ) DIV + 69 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7542
SELECT + - ( - - 87 ) / + 69 AS col2
----
-1

query I rowsort
SELECT ALL - 6 * - 87 + - COALESCE ( + + 77, 30 * + ( - 63 ) * 6 + - 70, - 23 * + CASE 47 WHEN - 55 THEN - 13 END + + 12 )
----
445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7544
SELECT ALL - 99 * COUNT( * ) - - - CASE 59 WHEN - 63 THEN - COALESCE ( 36, NULLIF ( + 99, 99 / - CASE - 23 * - MIN( DISTINCT + 44 / - 49 ) WHEN COUNT( * ) THEN 64 WHEN 15 THEN + 9 ELSE NULL END ) ) * 85 - 4 ELSE + CAST( 88 AS SIGNED ) END + - 7 AS col1
----
-194

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL - 99 * COUNT ( * ) - - - CASE 59 WHEN - 63 THEN - COALESCE ( 36, NULLIF ( + 99, 99 / - CASE - 23 * - MIN ( DISTINCT + 44 / - 49 ) WHEN COUNT ( * ) THEN 64 WHEN 15 THEN + 9 ELSE NULL END ) ) * 85 - 4 ELSE + CAST ( 88 AS INTEGER ) END + - 7 AS col1
----
-194

query I rowsort
SELECT ALL 7 * 50 + + 86 + + - 79 * - 28
----
2648

query II rowsort
SELECT + 84 AS col2, - 36 AS col0
----
84
-36

query I rowsort
SELECT ALL - 34 * + - 7 + - 65
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7548
SELECT DISTINCT + 49 * ( - - MIN( ALL 12 ) ) + - + COUNT( * ) * + - COUNT( * ) DIV + 98 + + CAST( AVG ( - 5 ) AS SIGNED ) * + 45 AS col1
----
363

skipif mysql # not compatible
query I rowsort label-7548
SELECT DISTINCT + 49 * ( - - MIN ( ALL 12 ) ) + - + COUNT ( * ) * + - COUNT ( * ) / + 98 + + CAST ( AVG ( - 5 ) AS INTEGER ) * + 45 AS col1
----
363

query I rowsort
SELECT - + 56 * + 47 + - - 94 + - + 18 - + 73
----
-2629

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT + COALESCE ( 91, + + 18, - - COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-7550
SELECT + COALESCE ( 91, + + 18, - - COUNT ( * ) )
----
91

query I rowsort
SELECT + - 27 col2
----
-27

query I rowsort
SELECT ALL + 84 * + 25 AS col1
----
2100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7553
SELECT DISTINCT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT ALL 40 * + COUNT( ALL - + 6 ) * + + 78 + - 45 * - ( 58 ) + + 20 col1
----
5750

skipif mysql # not compatible
query I rowsort label-7554
SELECT ALL 40 * + COUNT ( ALL - + 6 ) * + + 78 + - 45 * - ( 58 ) + + 20 col1
----
5750

query I rowsort
SELECT - 18 * ( + 75 )
----
-1350

query I rowsort
SELECT - + 12 + 80
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT DISTINCT - - ( - 6 ) * - 37 * + COUNT( * ) - 18 + + + 74 - + 5 AS col1
----
273

skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT - - ( - 6 ) * - 37 * + COUNT ( * ) - 18 + + + 74 - + 5 AS col1
----
273

query II rowsort
SELECT DISTINCT 20 AS col2, 48
----
20
48

query I rowsort
SELECT ALL NULLIF ( - 8, - 2 ) AS col2
----
-8

query I rowsort
SELECT - 68 * + ( 79 ) * + 3 AS col1
----
-16116

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT DISTINCT ( - ( - + COUNT( * ) ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT ( - ( - + COUNT ( * ) ) ) col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7562
SELECT - 21 DIV + + 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7562
SELECT - 21 / + + 43 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7563
SELECT ALL - 33 * + + CASE + 54 WHEN + - 79 + + + 83 THEN NULL WHEN + - 3 / 63 + - CAST( 31 AS SIGNED ) / 49 + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) THEN 66 + - SUM( ALL 67 + - 66 * - 75 ) ELSE - 38 END AS col0
----
1254

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL - 33 * + + CASE + 54 WHEN + - 79 + + + 83 THEN NULL WHEN + - 3 / 63 + - CAST ( 31 AS INTEGER ) / 49 + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) THEN 66 + - SUM ( ALL 67 + - 66 * - 75 ) ELSE - 38 END AS col0
----
1254

query II rowsort
SELECT - 8 * 84, + 35 AS col1
----
-672
35

query I rowsort
SELECT DISTINCT ( + 67 ) * + COALESCE ( ( 31 ), + ( - 25 ) ) col0
----
2077

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT ALL + MIN( DISTINCT + 49 ) * + 37
----
1813

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL + MIN ( DISTINCT + 49 ) * + 37
----
1813

query I rowsort
SELECT - 78 * + + 95 * - + 58
----
429780

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT ALL + ( - + COALESCE ( - - ( + ( - + 4 ) ), - - 67 + + 46 * COUNT( * ), 6, 19 - COALESCE ( 75, - 37 + + 71 ) * COALESCE ( - COUNT( * ), MIN( - 25 ) + 30, 19 ) ) ) * + 71 AS col0
----
284

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL + ( - + COALESCE ( - - ( + ( - + 4 ) ), - - 67 + + 46 * COUNT ( * ), 6, 19 - COALESCE ( 75, - 37 + + 71 ) * COALESCE ( - COUNT ( * ), MIN ( - 25 ) + 30, 19 ) ) ) * + 71 AS col0
----
284

query II rowsort
SELECT - 90 - 9 AS col2, - 27 AS col0
----
-99
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7570
SELECT - CASE COUNT( * ) WHEN + 35 THEN - 6 + - 98 WHEN + COUNT( * ) * 96 / 1 THEN CAST( + MAX( DISTINCT 82 ) AS DECIMAL ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7570
SELECT - CASE COUNT ( * ) WHEN + 35 THEN - 6 + - 98 WHEN + COUNT ( * ) * 96 / 1 THEN CAST ( + MAX ( DISTINCT 82 ) AS REAL ) END AS col2
----
NULL

query II rowsort
SELECT 23 * 17, + 35 col2
----
391
35

query I rowsort
SELECT DISTINCT + ( - + 33 ) + NULLIF ( + 59, - 22 )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7573
SELECT ALL COUNT( * ) + - 55 AS col1, + 43 * + + 85 AS col0
----
-54
3655

skipif mysql # not compatible
query II rowsort label-7573
SELECT ALL COUNT ( * ) + - 55 AS col1, + 43 * + + 85 AS col0
----
-54
3655

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7574
SELECT ALL + + 51 + + + 80 + - 22 DIV 28 + + + 26 + + + 56 - - 60 DIV CAST( 44 AS SIGNED ) AS col0
----
214

skipif mysql # not compatible
query I rowsort label-7574
SELECT ALL + + 51 + + + 80 + - 22 / 28 + + + 26 + + + 56 - - 60 / CAST ( 44 AS INTEGER ) AS col0
----
214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7575
SELECT DISTINCT 60 DIV - + COUNT( * ) * COUNT( * ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT 60 / - + COUNT ( * ) * COUNT ( * ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-7576
SELECT MAX( ALL + 7 ) AS col1, 46
----
7
46

skipif mysql # not compatible
query II rowsort label-7576
SELECT MAX ( ALL + 7 ) AS col1, 46
----
7
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7577
SELECT 32 DIV - 39 - 48 - 18 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-7577
SELECT 32 / - 39 - 48 - 18 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT + 39 + + COUNT( * ) + - MIN( 64 ) * 48
----
-3032

skipif mysql # not compatible
query I rowsort label-7578
SELECT + 39 + + COUNT ( * ) + - MIN ( 64 ) * 48
----
-3032

query I rowsort
SELECT ALL - 5 + 23 * - 80 AS col0
----
-1845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7580
SELECT - + CAST( - 46 AS SIGNED ) * - COUNT( * ) + - 77 * ( + 82 ) * 95 * + COUNT( * ) AS col1
----
-599876

skipif mysql # not compatible
query I rowsort label-7580
SELECT - + CAST ( - 46 AS INTEGER ) * - COUNT ( * ) + - 77 * ( + 82 ) * 95 * + COUNT ( * ) AS col1
----
-599876

onlyif mysql # DIV for integer division: 
query I rowsort label-7581
SELECT - 22 - - 40 DIV 76
----
-22

skipif mysql # not compatible
query I rowsort label-7581
SELECT - 22 - - 40 / 76
----
-22

query I rowsort
SELECT ALL 92 * + 28 + - - 16 * 67 AS col0
----
3648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7583
SELECT - 92 / + 40 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7583
SELECT - 92 / + 40 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7584
SELECT COUNT( * ) * - 88 AS col1, 9 * + ( + 88 ) * - 13 + - 98
----
-88
-10394

skipif mysql # not compatible
query II rowsort label-7584
SELECT COUNT ( * ) * - 88 AS col1, 9 * + ( + 88 ) * - 13 + - 98
----
-88
-10394

query I rowsort
SELECT ALL 49 + 44 * ( - 50 ) + - 40 + - 0 + 24 * 13
----
-1879

query I rowsort
SELECT DISTINCT - 86 + + 80 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT ALL - + NULLIF ( COUNT( * ), - 93 * - 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL - + NULLIF ( COUNT ( * ), - 93 * - 3 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7588
SELECT ALL CAST( NULL AS SIGNED ) + + 56 * ( + 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL CAST ( NULL AS INTEGER ) + + 56 * ( + 62 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT NULLIF ( COUNT( * ), - - 26 ) + - 25 + + 88
----
64

skipif mysql # not compatible
query I rowsort label-7589
SELECT NULLIF ( COUNT ( * ), - - 26 ) + - 25 + + 88
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT - + MAX( DISTINCT - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-7590
SELECT - + MAX ( DISTINCT - 11 )
----
11

query II rowsort
SELECT 71, 91 * - 78 col1
----
71
-7098

onlyif mysql # aggregate syntax: 
query II rowsort label-7592
SELECT - 90 AS col2, COUNT( * )
----
-90
1

skipif mysql # not compatible
query II rowsort label-7592
SELECT - 90 AS col2, COUNT ( * )
----
-90
1

query I rowsort
SELECT 18 * - 26 AS col1
----
-468

query I rowsort
SELECT 27 + 82
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-7595
SELECT ALL 47 AS col0, + COUNT( * )
----
47
1

skipif mysql # not compatible
query II rowsort label-7595
SELECT ALL 47 AS col0, + COUNT ( * )
----
47
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT DISTINCT + ( - 74 ) * + NULLIF ( - - 89, COUNT( * ) + 56 + - 74 * + + MIN( 78 ) * 89 )
----
-6586

skipif mysql # not compatible
query I rowsort label-7596
SELECT DISTINCT + ( - 74 ) * + NULLIF ( - - 89, COUNT ( * ) + 56 + - 74 * + + MIN ( 78 ) * 89 )
----
-6586

query I rowsort
SELECT DISTINCT 56 - + 98 AS col2
----
-42

query I rowsort
SELECT 14 + - 69 AS col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7599
SELECT ALL 58 AS col1, - MIN( ALL - 35 ) DIV 26 col2
----
58
1

skipif mysql # not compatible
query II rowsort label-7599
SELECT ALL 58 AS col1, - MIN ( ALL - 35 ) / 26 col2
----
58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT DISTINCT 50 * COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT 50 * COUNT ( * ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-7601
SELECT 89 AS col1, COUNT( * ) * - 43 AS col1
----
89
-43

skipif mysql # not compatible
query II rowsort label-7601
SELECT 89 AS col1, COUNT ( * ) * - 43 AS col1
----
89
-43

query I rowsort
SELECT 43 * - + 8 * + 83
----
-28552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7603
SELECT ALL - COUNT( * ) DIV 6
----
0

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL - COUNT ( * ) / 6
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7604
SELECT 23 + + COALESCE ( 90, 51, + - CASE - - CAST( + 81 AS SIGNED ) WHEN - + 12 - 95 THEN + 86 + 88 DIV + SUM( ALL + 78 ) ELSE NULL END ) + - 41 * - 99
----
4172

skipif mysql # not compatible
query I rowsort label-7604
SELECT 23 + + COALESCE ( 90, 51, + - CASE - - CAST ( + 81 AS INTEGER ) WHEN - + 12 - 95 THEN + 86 + 88 / + SUM ( ALL + 78 ) ELSE NULL END ) + - 41 * - 99
----
4172

query I rowsort
SELECT 59 + 41
----
100

query I rowsort
SELECT 33 * 55 AS col0
----
1815

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT DISTINCT 83 + + MIN( DISTINCT - 9 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT 83 + + MIN ( DISTINCT - 9 ) AS col2
----
74

query I rowsort
SELECT 49 + + - 68 col2
----
-19

query I rowsort
SELECT ALL - 94 + - + 8
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT ALL COUNT( * ) + - - 96 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL COUNT ( * ) + - - 96 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT DISTINCT + - MIN( DISTINCT + 2 ) * + 37 * + 78 AS col0
----
-5772

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT + - MIN ( DISTINCT + 2 ) * + 37 * + 78 AS col0
----
-5772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7612
SELECT ALL - 8 + NULLIF ( + + CAST( NULL AS SIGNED ), + + 50 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL - 8 + NULLIF ( + + CAST ( NULL AS INTEGER ), + + 50 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7613
SELECT + COUNT( * ), + 23 AS col0
----
1
23

skipif mysql # not compatible
query II rowsort label-7613
SELECT + COUNT ( * ), + 23 AS col0
----
1
23

query I rowsort
SELECT - 37 * 13 col0
----
-481

query I rowsort
SELECT ALL + 68 - + + 48 AS col2
----
20

query I rowsort
SELECT 57 * + 6 AS col2
----
342

onlyif mysql # aggregate syntax: 
query II rowsort label-7617
SELECT ALL - 59, - 57 + COUNT( * ) + - - ( - 17 ) AS col1
----
-59
-73

skipif mysql # not compatible
query II rowsort label-7617
SELECT ALL - 59, - 57 + COUNT ( * ) + - - ( - 17 ) AS col1
----
-59
-73

query I rowsort
SELECT ALL - - ( + + 33 ) AS col0
----
33

query I rowsort
SELECT 36 * - 74 AS col0
----
-2664

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7620
SELECT - COUNT( * ) * - - 76 * + COUNT( * ), 36 DIV 45 AS col1
----
-76
0

skipif mysql # not compatible
query II rowsort label-7620
SELECT - COUNT ( * ) * - - 76 * + COUNT ( * ), 36 / 45 AS col1
----
-76
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7621
SELECT ALL - 90 DIV 30 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL - 90 / 30 AS col1
----
-3

query II rowsort
SELECT - 27, 24 * - 8 + - 44 AS col1
----
-27
-236

onlyif mysql # DIV for integer division: 
query I rowsort label-7623
SELECT - 36 DIV 26 + + NULLIF ( - 89, 54 ) DIV + - 11 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7623
SELECT - 36 / 26 + + NULLIF ( - 89, 54 ) / + - 11 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT - 39 * - - 60 + + 53 - - SUM( 33 ) * - 69 * + CASE + + 75 WHEN - COUNT( ALL + 41 ) THEN 70 WHEN - COUNT( * ) THEN NULL END * - 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT - 39 * - - 60 + + 53 - - SUM ( 33 ) * - 69 * + CASE + + 75 WHEN - COUNT ( ALL + 41 ) THEN 70 WHEN - COUNT ( * ) THEN NULL END * - 80 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7625
SELECT CASE - 65 WHEN + + COUNT( * ) THEN + 87 WHEN 64 * - + 54 - 47 - + - ( + 61 ) THEN NULLIF ( 0, CAST( NULL AS DECIMAL ) * 78 + - 70 ) WHEN 55 THEN + 71 END * + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7625
SELECT CASE - 65 WHEN + + COUNT ( * ) THEN + 87 WHEN 64 * - + 54 - 47 - + - ( + 61 ) THEN NULLIF ( 0, CAST ( NULL AS REAL ) * 78 + - 70 ) WHEN 55 THEN + 71 END * + 44 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 87 * 66
----
5742

onlyif mysql # aggregate syntax: 
query II rowsort label-7627
SELECT ALL COUNT( + 39 ) + - 78 + - 80 * - 15 AS col0, + 91
----
1123
91

skipif mysql # not compatible
query II rowsort label-7627
SELECT ALL COUNT ( + 39 ) + - 78 + - 80 * - 15 AS col0, + 91
----
1123
91

onlyif mysql # aggregate syntax: 
query II rowsort label-7628
SELECT + 49 + 36 + + MAX( + - 96 ), 99 + + COUNT( DISTINCT 27 ) + COUNT( * ) * + 41 * - 92 + + 93 AS col2
----
-11
-3579

skipif mysql # not compatible
query II rowsort label-7628
SELECT + 49 + 36 + + MAX ( + - 96 ), 99 + + COUNT ( DISTINCT 27 ) + COUNT ( * ) * + 41 * - 92 + + 93 AS col2
----
-11
-3579

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7629
SELECT + 73 + - - 92 + - 68 * NULLIF ( - 91, + CASE - 19 WHEN ( + + 30 ) * 63 THEN - 49 DIV - 85 WHEN + CAST( - 93 AS SIGNED ) THEN NULL END * + MAX( DISTINCT - CASE 19 WHEN 64 + 21 THEN NULL ELSE 64 * 33 END ) + 22 DIV - NULLIF ( - 88, 5 + 24 ) ) + ( + ( + 72 ) + + 93 DIV + 91 ) AS col0
----
6426

skipif mysql # not compatible
query I rowsort label-7629
SELECT + 73 + - - 92 + - 68 * NULLIF ( - 91, + CASE - 19 WHEN ( + + 30 ) * 63 THEN - 49 / - 85 WHEN + CAST ( - 93 AS INTEGER ) THEN NULL END * + MAX ( DISTINCT - CASE 19 WHEN 64 + 21 THEN NULL ELSE 64 * 33 END ) + 22 / - NULLIF ( - 88, 5 + 24 ) ) + ( + ( + 72 ) + + 93 / + 91 ) AS col0
----
6426

query I rowsort
SELECT DISTINCT 78 * 56 AS col1
----
4368

query I rowsort
SELECT DISTINCT 96 + 25
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7632
SELECT ALL - 98 + + - 47 + + + 74 / 94 * ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL - 98 + + - 47 + + + 74 / 94 * ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 72 + + + 17
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7634
SELECT - 89 DIV 50 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7634
SELECT - 89 / 50 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT ALL COUNT( - 78 ) + 99 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL COUNT ( - 78 ) + 99 AS col1
----
100

query I rowsort
SELECT + 1 - 66
----
-65

query I rowsort
SELECT + 21 + - - 43 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT - MIN( 71 ) col1
----
-71

skipif mysql # not compatible
query I rowsort label-7638
SELECT - MIN ( 71 ) col1
----
-71

query I rowsort
SELECT - - NULLIF ( + 65, - NULLIF ( ( + - ( - 13 ) ), + 91 ) + - + 28 - + 29 * ( + 28 ) ) * - 58 AS col2
----
-3770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7640
SELECT ALL + CAST( + 71 AS SIGNED ) * - 94 - + ( 92 )
----
-6766

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL + CAST ( + 71 AS INTEGER ) * - 94 - + ( 92 )
----
-6766

query II rowsort
SELECT - + 91 - - 27 AS col0, + 3
----
-64
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7642
SELECT ALL - 5 * + SUM( ALL - 70 ) DIV + 2 + 80 + + 48
----
303

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL - 5 * + SUM ( ALL - 70 ) / + 2 + 80 + + 48
----
303

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT ALL + CASE COUNT( DISTINCT + 46 ) WHEN + - 88 THEN NULL ELSE - COUNT( DISTINCT - 69 ) END
----
-1

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL + CASE COUNT ( DISTINCT + 46 ) WHEN + - 88 THEN NULL ELSE - COUNT ( DISTINCT - 69 ) END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT + + COALESCE ( - - 34, - COUNT( * ) )
----
34

skipif mysql # not compatible
query I rowsort label-7644
SELECT + + COALESCE ( - - 34, - COUNT ( * ) )
----
34

query I rowsort
SELECT - 37 + + - 60 col0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7646
SELECT - - 50 * - 37 AS col2, - 8 + + COUNT( * )
----
-1850
-7

skipif mysql # not compatible
query II rowsort label-7646
SELECT - - 50 * - 37 AS col2, - 8 + + COUNT ( * )
----
-1850
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT ALL - - COUNT( * ) * 74 + - + 17 + + + 51 * + + 3 * 71
----
10920

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL - - COUNT ( * ) * 74 + - + 17 + + + 51 * + + 3 * 71
----
10920

query I rowsort
SELECT - + 75 - - 23 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT - + CASE - 33 WHEN + COALESCE ( - - COUNT( DISTINCT 76 ), + 16 + - + ( 98 ) ) / - COUNT( * ) * - SUM( - 7 ) THEN 97 - - 95 WHEN - 68 + - 52 / - 90 THEN - COUNT( * ) * - 43 ELSE NULL END * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-7649
SELECT - + CASE - 33 WHEN + COALESCE ( - - COUNT ( DISTINCT 76 ), + 16 + - + ( 98 ) ) / - COUNT ( * ) * - SUM ( - 7 ) THEN 97 - - 95 WHEN - 68 + - 52 / - 90 THEN - COUNT ( * ) * - 43 ELSE NULL END * - 63
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7650
SELECT - 9 + - + 9 * + 94 / - - ( 5 ) + CAST( NULL AS SIGNED ) + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT - 9 + - + 9 * + 94 / - - ( 5 ) + CAST ( NULL AS INTEGER ) + + 56
----
NULL

query I rowsort
SELECT ALL + ( + COALESCE ( + - 62, + - 33 * 96, + 47 ) )
----
-62

query I rowsort
SELECT - 86 + + + 29
----
-57

query I rowsort
SELECT - 3 * - 84
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7654
SELECT ALL + CAST( + + ( - 44 ) AS SIGNED ) AS col2, + COALESCE ( - 10, - 39 ) + + 76 - - 36 * 2 * - + 71 * 61 col2
----
-44
-311766

skipif mysql # not compatible
query II rowsort label-7654
SELECT ALL + CAST ( + + ( - 44 ) AS INTEGER ) AS col2, + COALESCE ( - 10, - 39 ) + + 76 - - 36 * 2 * - + 71 * 61 col2
----
-44
-311766

query I rowsort
SELECT ALL + COALESCE ( 94, + - 83 ) * - 55 AS col0
----
-5170

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT - 67 + + - COUNT( * ) * 36 AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-7656
SELECT - 67 + + - COUNT ( * ) * 36 AS col0
----
-103

query I rowsort
SELECT ALL 37 * - 63
----
-2331

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT DISTINCT ( - 69 ) + - 87 + CASE MIN( 10 ) WHEN 59 THEN - COUNT( * ) * + 61 * + + COUNT( * ) + - 4 WHEN 44 THEN - 79 + 22 END / 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT ( - 69 ) + - 87 + CASE MIN ( 10 ) WHEN 59 THEN - COUNT ( * ) * + 61 * + + COUNT ( * ) + - 4 WHEN 44 THEN - 79 + 22 END / 46
----
NULL

query I rowsort
SELECT DISTINCT 55 + - + 79 AS col2
----
-24

query I rowsort
SELECT DISTINCT ( 71 ) AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7661
SELECT ALL 31 + CASE 75 WHEN 83 THEN - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) WHEN + 93 * 3 * - - 86 - + - 32 * - 95 THEN - 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL 31 + CASE 75 WHEN 83 THEN - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) WHEN + 93 * 3 * - - 86 - + - 32 * - 95 THEN - 61 ELSE NULL END
----
NULL

query I rowsort
SELECT + 37 - + - 15
----
52

query I rowsort
SELECT ALL - 39 * + 51 AS col0
----
-1989

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT ALL MAX( ALL - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL MAX ( ALL - 3 )
----
-3

query I rowsort
SELECT - 1 + + + 86
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT - ( + MAX( 44 ) ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-7666
SELECT - ( + MAX ( 44 ) ) AS col1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7667
SELECT - 77 + + CASE + CAST( + 24 AS SIGNED ) WHEN 30 THEN NULL WHEN + 16 + - - CASE + + SUM( + 11 ) WHEN 25 THEN NULL WHEN + 35 / CASE - 38 WHEN 52 * - 50 + - CAST( NULL AS SIGNED ) THEN COUNT( * ) + - 62 * 98 WHEN COUNT( * ) + 60 THEN ( - 27 ) END + MIN( 29 ) THEN 51 WHEN - CASE WHEN NOT - 82 <> NULL THEN - 51 END + NULLIF ( 55, - 62 ) THEN NULL ELSE NULL END THEN 75 - + 87 ELSE CAST( 20 AS SIGNED ) END * 37
----
663

skipif mysql # not compatible
query I rowsort label-7667
SELECT - 77 + + CASE + CAST ( + 24 AS INTEGER ) WHEN 30 THEN NULL WHEN + 16 + - - CASE + + SUM ( + 11 ) WHEN 25 THEN NULL WHEN + 35 / CASE - 38 WHEN 52 * - 50 + - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) + - 62 * 98 WHEN COUNT ( * ) + 60 THEN ( - 27 ) END + MIN ( 29 ) THEN 51 WHEN - CASE WHEN NOT - 82 <> NULL THEN - 51 END + NULLIF ( 55, - 62 ) THEN NULL ELSE NULL END THEN 75 - + 87 ELSE CAST ( 20 AS INTEGER ) END * 37
----
663

query I rowsort
SELECT + 83 - + 93 + - - 6 AS col2
----
-4

query II rowsort
SELECT DISTINCT 37, 2 AS col2
----
37
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT + + 81 - - 88 + - + 46 * - 81 * COUNT( ALL + ( 58 ) )
----
3895

skipif mysql # not compatible
query I rowsort label-7670
SELECT + + 81 - - 88 + - + 46 * - 81 * COUNT ( ALL + ( 58 ) )
----
3895

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7671
SELECT ALL - COUNT( * ) * + - 90 DIV 13 * + 86 AS col0
----
516

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL - COUNT ( * ) * + - 90 / 13 * + 86 AS col0
----
516

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT - - COALESCE ( - 64, 0 + - - 91 + + MIN( - NULLIF ( + ( + 80 ), 18 + + 75 + - 56 ) ) + 96 * - 75 * - 74, - 7 ) + 46 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-7672
SELECT - - COALESCE ( - 64, 0 + - - 91 + + MIN ( - NULLIF ( + ( + 80 ), 18 + + 75 + - 56 ) ) + 96 * - 75 * - 74, - 7 ) + 46 AS col1
----
-18

query I rowsort
SELECT ALL 58 - 90
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7674
SELECT + COUNT( * ) * - + NULLIF ( - - SUM( CAST( NULL AS SIGNED ) ), + MAX( DISTINCT - + NULLIF ( - ( - 13 ), - 48 ) ) + - 99 + + 15 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7674
SELECT + COUNT ( * ) * - + NULLIF ( - - SUM ( CAST ( NULL AS INTEGER ) ), + MAX ( DISTINCT - + NULLIF ( - ( - 13 ), - 48 ) ) + - 99 + + 15 ) col0
----
NULL

query I rowsort
SELECT - ( - 28 ) col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT + - 62 * - + 72 + - ( + 19 ) * + MIN( ALL 95 ) + - 67 + - 90 * - 60
----
7992

skipif mysql # not compatible
query I rowsort label-7676
SELECT + - 62 * - + 72 + - ( + 19 ) * + MIN ( ALL 95 ) + - 67 + - 90 * - 60
----
7992

query I rowsort
SELECT ALL 16 * + - 22 AS col1
----
-352

query I rowsort
SELECT + 55 + + 26 - 55 * 9 AS col2
----
-414

query I rowsort
SELECT - 82 * + + 41
----
-3362

query I rowsort
SELECT + - ( - 94 ) AS col0
----
94

query I rowsort
SELECT - 84 / 9 + COALESCE ( + 55, - 59 * - 9 ) + CASE 68 WHEN + + 9 / + 74 * 88 THEN 49 WHEN - 4 + 45 * 43 THEN 37 END * - 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT ALL + + COUNT( * ) / - + CASE 72 WHEN - ( CASE - 55 WHEN + - COUNT( * ) + 99 THEN - 79 * + 89 WHEN + 77 THEN NULL WHEN MAX( 5 ) * 84 THEN + 6 * 50 END ) + 58 THEN 91 + + 12 END * AVG ( - 62 ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL + + COUNT ( * ) / - + CASE 72 WHEN - ( CASE - 55 WHEN + - COUNT ( * ) + 99 THEN - 79 * + 89 WHEN + 77 THEN NULL WHEN MAX ( 5 ) * 84 THEN + 6 * 50 END ) + 58 THEN 91 + + 12 END * AVG ( - 62 ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT + - SUM( ALL 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-7683
SELECT + - SUM ( ALL 33 )
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-7684
SELECT DISTINCT + + 38 * MIN( ALL - 60 ) AS col0, 84 AS col0
----
-2280
84

skipif mysql # not compatible
query II rowsort label-7684
SELECT DISTINCT + + 38 * MIN ( ALL - 60 ) AS col0, 84 AS col0
----
-2280
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7685
SELECT DISTINCT - COALESCE ( 12, + + COUNT( * ), - - ( + + NULLIF ( + COUNT( * ), SUM( 73 ) ) ) * 67 ) DIV - - 24 - + 32 + - NULLIF ( COUNT( * ), 71 ) + + 47
----
14

skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT - COALESCE ( 12, + + COUNT ( * ), - - ( + + NULLIF ( + COUNT ( * ), SUM ( 73 ) ) ) * 67 ) / - - 24 - + 32 + - NULLIF ( COUNT ( * ), 71 ) + + 47
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7686
SELECT ALL + CAST( + 11 AS SIGNED ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL + CAST ( + 11 AS INTEGER ) AS col1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-7687
SELECT - 68 DIV + 11 + + - 49
----
-55

skipif mysql # not compatible
query I rowsort label-7687
SELECT - 68 / + 11 + + - 49
----
-55

query I rowsort
SELECT ALL - NULLIF ( 18, - 4 ) + - 55 * - + 28 + + - 49 + - 61 - + - ( - 70 ) * 28 + + 33
----
-515

query II rowsort
SELECT + 44 AS col1, + 40 * 95
----
44
3800

onlyif mysql # aggregate syntax: 
query II rowsort label-7690
SELECT 24, - COUNT( * ) AS col1
----
24
-1

skipif mysql # not compatible
query II rowsort label-7690
SELECT 24, - COUNT ( * ) AS col1
----
24
-1

query I rowsort
SELECT - 67 * + 16 - + 77
----
-1149

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT 17 - + COUNT( * ) + COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-7692
SELECT 17 - + COUNT ( * ) + COUNT ( * ) AS col0
----
17

query I rowsort
SELECT ALL - 43 + - 35
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-7694
SELECT 42 * - - 16, COUNT( + - 0 ) AS col1
----
672
1

skipif mysql # not compatible
query II rowsort label-7694
SELECT 42 * - - 16, COUNT ( + - 0 ) AS col1
----
672
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7695
SELECT DISTINCT + 98 + CAST( - 69 AS SIGNED ) + 99 * - - 52 * + 26 - + 99 + 10 + - COUNT( * ) * - 50 col1
----
133838

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT + 98 + CAST ( - 69 AS INTEGER ) + 99 * - - 52 * + 26 - + 99 + 10 + - COUNT ( * ) * - 50 col1
----
133838

query I rowsort
SELECT DISTINCT 43 * - - 52 AS col2
----
2236

query I rowsort
SELECT 32 * - - 81 * - 92 * - + 41 AS col1
----
9777024

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7698
SELECT 48 AS col0, - COUNT( * ) DIV - COUNT( * )
----
48
1

skipif mysql # not compatible
query II rowsort label-7698
SELECT 48 AS col0, - COUNT ( * ) / - COUNT ( * )
----
48
1

query I rowsort
SELECT 42 + - 27
----
15

query I rowsort
SELECT 84 + - 59 + + - 81 col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT CASE + + 11 WHEN + COUNT( DISTINCT - + 73 ) * + ( 12 ) THEN - + 29 + + - COUNT( * ) ELSE 47 END * - + 41 + 38
----
-1889

skipif mysql # not compatible
query I rowsort label-7701
SELECT CASE + + 11 WHEN + COUNT ( DISTINCT - + 73 ) * + ( 12 ) THEN - + 29 + + - COUNT ( * ) ELSE 47 END * - + 41 + 38
----
-1889

query II rowsort
SELECT 86 * + 23 * - 59 * - + 26 col1, + 4 AS col0
----
3034252
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7703
SELECT - 71 AS col0, - CASE + 27 WHEN 47 THEN 83 ELSE NULL END / + + 31 * + 86 - - COUNT( * ) col0
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-7703
SELECT - 71 AS col0, - CASE + 27 WHEN 47 THEN 83 ELSE NULL END / + + 31 * + 86 - - COUNT ( * ) col0
----
-71
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7704
SELECT - ( + - SUM( - 58 ) ) DIV + 27 + + 86 * + CASE WHEN NOT ( - 36 ) BETWEEN + 21 AND ( 96 ) AND 53 + + ( + CAST( NULL AS SIGNED ) ) NOT IN ( COUNT( * ) + - 60 ) THEN CAST( NULL AS SIGNED ) WHEN NOT - 64 * 96 + 15 * - COUNT( * ) <= ( 10 * + 27 ) THEN + ( + 42 ) ELSE + COUNT( * ) + ( + 57 + - ( 78 ) * 57 ) END * 89 + 55
----
-33585699

skipif mysql # not compatible
query I rowsort label-7704
SELECT - ( + - SUM ( - 58 ) ) / + 27 + + 86 * + CASE WHEN NOT ( - 36 ) BETWEEN + 21 AND ( 96 ) AND 53 + + ( + CAST ( NULL AS INTEGER ) ) NOT IN ( COUNT ( * ) + - 60 ) THEN CAST ( NULL AS INTEGER ) WHEN NOT - 64 * 96 + 15 * - COUNT ( * ) <= ( 10 * + 27 ) THEN + ( + 42 ) ELSE + COUNT ( * ) + ( + 57 + - ( 78 ) * 57 ) END * 89 + 55
----
-33585699

onlyif mysql # DIV for integer division: 
query I rowsort label-7705
SELECT ALL 69 DIV - - 42
----
1

skipif mysql # not compatible
query I rowsort label-7705
SELECT ALL 69 / - - 42
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT - NULLIF ( + - 58, - 7 * - COUNT( DISTINCT + + 94 ) + - 29 + - COUNT( * ) )
----
58

skipif mysql # not compatible
query I rowsort label-7706
SELECT - NULLIF ( + - 58, - 7 * - COUNT ( DISTINCT + + 94 ) + - 29 + - COUNT ( * ) )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT - - CASE - 68 WHEN - + ( + - COUNT( ALL - 22 ) ) THEN 21 * + NULLIF ( - MIN( 6 ), - 5 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7707
SELECT - - CASE - 68 WHEN - + ( + - COUNT ( ALL - 22 ) ) THEN 21 * + NULLIF ( - MIN ( 6 ), - 5 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7708
SELECT - COALESCE ( 58, + 27 + - - 52 + + 46 * 55 DIV - COUNT( + + 19 ) + + 73 - + ( - 45 ), - 62 * - 63 )
----
-58

skipif mysql # not compatible
query I rowsort label-7708
SELECT - COALESCE ( 58, + 27 + - - 52 + + 46 * 55 / - COUNT ( + + 19 ) + + 73 - + ( - 45 ), - 62 * - 63 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT + COUNT( * ) - - ( + COUNT( * ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7709
SELECT + COUNT ( * ) - - ( + COUNT ( * ) ) AS col2
----
2

query II rowsort
SELECT 9 AS col0, - 21 AS col0
----
9
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT + MIN( DISTINCT - 49 ) * + + 80
----
-3920

skipif mysql # not compatible
query I rowsort label-7711
SELECT + MIN ( DISTINCT - 49 ) * + + 80
----
-3920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7712
SELECT ALL COUNT( 92 ), + 51 + COALESCE ( + 57, - ( - + ( - CAST( NULL AS SIGNED ) ) ), - 94 ) AS col1
----
1
108

skipif mysql # not compatible
query II rowsort label-7712
SELECT ALL COUNT ( 92 ), + 51 + COALESCE ( + 57, - ( - + ( - CAST ( NULL AS INTEGER ) ) ), - 94 ) AS col1
----
1
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT 34 + - + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-7713
SELECT 34 + - + COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT ALL - - CASE - ( - SUM( - 11 ) ) WHEN 5 THEN NULL ELSE - + 82 + + ( 50 ) END AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL - - CASE - ( - SUM ( - 11 ) ) WHEN 5 THEN NULL ELSE - + 82 + + ( 50 ) END AS col0
----
-32

query I rowsort
SELECT - 46 * + + 32 AS col1
----
-1472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7716
SELECT + 55 - - 99 * + COUNT( * ) + + 13 AS col0, + 53 * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
167
NULL

skipif mysql # not compatible
query II rowsort label-7716
SELECT + 55 - - 99 * + COUNT ( * ) + + 13 AS col0, + 53 * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
167
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT ALL + MAX( 37 ) * - - 59 AS col0
----
2183

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL + MAX ( 37 ) * - - 59 AS col0
----
2183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7718
SELECT - ( 99 ) * COUNT( ALL 90 ) DIV - - 66 + NULLIF ( + 23, + 6 - - - 61 + 3 + + COALESCE ( 40, 17 ) * 25 * - 4 ) - NULLIF ( - 18, + 15 * 7 ) * 34 AS col2
----
634

skipif mysql # not compatible
query I rowsort label-7718
SELECT - ( 99 ) * COUNT ( ALL 90 ) / - - 66 + NULLIF ( + 23, + 6 - - - 61 + 3 + + COALESCE ( 40, 17 ) * 25 * - 4 ) - NULLIF ( - 18, + 15 * 7 ) * 34 AS col2
----
634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7719
SELECT ALL + 93 + - CAST( + 74 AS SIGNED ) * + COALESCE ( + COUNT( * ), + - NULLIF ( + - COUNT( * ), + CAST( ( + 38 ) AS SIGNED ) * 93 - 55 ) )
----
19

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL + 93 + - CAST ( + 74 AS INTEGER ) * + COALESCE ( + COUNT ( * ), + - NULLIF ( + - COUNT ( * ), + CAST ( ( + 38 ) AS INTEGER ) * 93 - 55 ) )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7720
SELECT - + 47 / - 32 + - - 57 + + 44 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7720
SELECT - + 47 / - 32 + - - 57 + + 44 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT ALL ( - CASE - 48 WHEN - 57 - - - 97 THEN + ( - - 57 ) * - 41 + 84 WHEN ( CASE - 60 WHEN - 1 THEN NULL ELSE + 14 END ) + 1 THEN NULL WHEN 38 THEN NULL WHEN 30 THEN NULL WHEN + 95 THEN NULL END ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL ( - CASE - 48 WHEN - 57 - - - 97 THEN + ( - - 57 ) * - 41 + 84 WHEN ( CASE - 60 WHEN - 1 THEN NULL ELSE + 14 END ) + 1 THEN NULL WHEN 38 THEN NULL WHEN 30 THEN NULL WHEN + 95 THEN NULL END ) * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 11 * - ( + ( + + ( + 98 ) ) ) + 77 AS col2
----
-1001

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7723
SELECT ALL CAST( NULL AS DECIMAL ) + + 70 * - - 55 * 23 + - 53 + - 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7723
SELECT ALL CAST ( NULL AS REAL ) + + 70 * - - 55 * 23 + - 53 + - 56 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT - 1 * - + COUNT( * ) + - 71 + + 46
----
-24

skipif mysql # not compatible
query I rowsort label-7724
SELECT - 1 * - + COUNT ( * ) + - 71 + + 46
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT DISTINCT - CASE - COUNT( * ) WHEN + COUNT( * ) THEN - 55 * + 48 - + + 10 WHEN + + 79 THEN NULL END + - - 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7725
SELECT DISTINCT - CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN - 55 * + 48 - + + 10 WHEN + + 79 THEN NULL END + - - 67 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7726
SELECT ALL + 11 + - ( + ( + - CAST( NULL AS SIGNED ) ) ) + - 55 + + 7 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL + 11 + - ( + ( + - CAST ( NULL AS INTEGER ) ) ) + - 55 + + 7 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7727
SELECT DISTINCT - 57 DIV COALESCE ( 67, - 37 + + 79 + CAST( - + 78 AS SIGNED ) - + + COUNT( * ) - - 37 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT - 57 / COALESCE ( 67, - 37 + + 79 + CAST ( - + 78 AS INTEGER ) - + + COUNT ( * ) - - 37 ) col2
----
0

query I rowsort
SELECT ALL + 84 * COALESCE ( + 94, + ( 22 ) * 38 + - 63 - + - 48 )
----
7896

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT + MAX( DISTINCT - 40 ) * + 48 + - 43
----
-1963

skipif mysql # not compatible
query I rowsort label-7729
SELECT + MAX ( DISTINCT - 40 ) * + 48 + - 43
----
-1963

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7730
SELECT SUM( ALL 55 ) * + COUNT( * ) DIV + CAST( - + ( + 94 ) AS SIGNED ) + + 84 AS col1, - 46 DIV - + COUNT( * ) + + 10 + + 75 * + CAST( NULL AS SIGNED ) AS col2
----
84
NULL

skipif mysql # not compatible
query II rowsort label-7730
SELECT SUM ( ALL 55 ) * + COUNT ( * ) / + CAST ( - + ( + 94 ) AS INTEGER ) + + 84 AS col1, - 46 / - + COUNT ( * ) + + 10 + + 75 * + CAST ( NULL AS INTEGER ) AS col2
----
84
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7731
SELECT 39 + - COUNT( * ) col0, + CASE CAST( NULL AS SIGNED ) WHEN 99 THEN 95 WHEN - 7 * - 71 * - CAST( 26 AS SIGNED ) + - 76 * ( + 32 ) + 79 THEN NULL END
----
38
NULL

skipif mysql # not compatible
query II rowsort label-7731
SELECT 39 + - COUNT ( * ) col0, + CASE CAST ( NULL AS INTEGER ) WHEN 99 THEN 95 WHEN - 7 * - 71 * - CAST ( 26 AS INTEGER ) + - 76 * ( + 32 ) + 79 THEN NULL END
----
38
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7732
SELECT 77 * NULLIF ( + - 63, - + MAX( ALL + - 15 ) ) AS col1, + COUNT( * ) AS col2
----
-4851
1

skipif mysql # not compatible
query II rowsort label-7732
SELECT 77 * NULLIF ( + - 63, - + MAX ( ALL + - 15 ) ) AS col1, + COUNT ( * ) AS col2
----
-4851
1

query I rowsort
SELECT ALL + 76 * + 78
----
5928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7734
SELECT CAST( NULL AS SIGNED ) + 44 + + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-7734
SELECT CAST ( NULL AS INTEGER ) + 44 + + 44
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7735
SELECT ALL - COUNT( DISTINCT - 63 ) * - SUM( DISTINCT - 15 ) * + - CAST( - + COUNT( * ) AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL - COUNT ( DISTINCT - 63 ) * - SUM ( DISTINCT - 15 ) * + - CAST ( - + COUNT ( * ) AS INTEGER )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT ALL + COALESCE ( COUNT( * ), 64 + + + MAX( DISTINCT + ( 32 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL + COALESCE ( COUNT ( * ), 64 + + + MAX ( DISTINCT + ( 32 ) ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7737
SELECT - + CASE + 16 WHEN + 89 * - 9 THEN - + 70 WHEN - - 12 THEN - 15 + CAST( - + 11 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7737
SELECT - + CASE + 16 WHEN + 89 * - 9 THEN - + 70 WHEN - - 12 THEN - 15 + CAST ( - + 11 AS INTEGER ) END
----
NULL

query I rowsort
SELECT + 37 + - 36 + COALESCE ( - 90, + ( - - 39 ) ) AS col2
----
-89

query I rowsort
SELECT 11 + - 57 + - + 81 - 3
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT - CASE - 29 WHEN + 83 THEN + NULLIF ( + COALESCE ( - 45, + NULLIF ( - 6, + 36 ) * + + ( 52 ) + + 41 / + 50 ), SUM( ALL 34 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7740
SELECT - CASE - 29 WHEN + 83 THEN + NULLIF ( + COALESCE ( - 45, + NULLIF ( - 6, + 36 ) * + + ( 52 ) + + 41 / + 50 ), SUM ( ALL 34 ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7741
SELECT - 64 DIV - + COUNT( * ) AS col2, + 65 col2
----
64
65

skipif mysql # not compatible
query II rowsort label-7741
SELECT - 64 / - + COUNT ( * ) AS col2, + 65 col2
----
64
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7742
SELECT ALL - 74 * + 33 AS col2, + MIN( DISTINCT 0 ) + - 22 AS col1
----
-2442
-22

skipif mysql # not compatible
query II rowsort label-7742
SELECT ALL - 74 * + 33 AS col2, + MIN ( DISTINCT 0 ) + - 22 AS col1
----
-2442
-22

query I rowsort
SELECT ALL - + 97 * - - 83
----
-8051

query I rowsort
SELECT ALL + 82 + 7 AS col2
----
89

query I rowsort
SELECT + 53 + ( - + 85 ) AS col0
----
-32

query I rowsort
SELECT ALL + 22 + 20 + + 3
----
45

query I rowsort
SELECT ALL - + 13 * - - 54 + - + 94 + + + 62
----
-734

query I rowsort
SELECT - 51 * - 60
----
3060

query I rowsort
SELECT NULLIF ( + 49, 16 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT + MAX( 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7750
SELECT + MAX ( 66 ) AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7751
SELECT DISTINCT - 37 * 30 - + + MAX( + - CAST( 57 AS SIGNED ) ) + + + 7
----
-1046

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT - 37 * 30 - + + MAX ( + - CAST ( 57 AS INTEGER ) ) + + + 7
----
-1046

query I rowsort
SELECT ALL 67 * + - 47
----
-3149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7753
SELECT ALL + CAST( NULL AS SIGNED ) * 84 - + ( + + 14 ) * + ( + 44 ) * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL + CAST ( NULL AS INTEGER ) * 84 - + ( + + 14 ) * + ( + 44 ) * 46
----
NULL

query I rowsort
SELECT + 90 + + 33 - + 74
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT SUM( ALL + - 0 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-7755
SELECT SUM ( ALL + - 0 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT + MAX( DISTINCT - + NULLIF ( 92, + 21 * - 96 ) ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-7756
SELECT + MAX ( DISTINCT - + NULLIF ( 92, + 21 * - 96 ) ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT SUM( DISTINCT - - 87 )
----
87

skipif mysql # not compatible
query I rowsort label-7757
SELECT SUM ( DISTINCT - - 87 )
----
87

query II rowsort
SELECT ALL + 3 AS col2, 1 * 42
----
3
42

query I rowsort
SELECT + 37 - 8
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-7760
SELECT ALL + COUNT( * ), MAX( + 12 ) AS col1
----
1
12

skipif mysql # not compatible
query II rowsort label-7760
SELECT ALL + COUNT ( * ), MAX ( + 12 ) AS col1
----
1
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT SUM( ALL + - 6 ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-7761
SELECT SUM ( ALL + - 6 ) col0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7762
SELECT ALL 1 DIV 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL 1 / 34 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7763
SELECT + 7 DIV + + 69
----
0

skipif mysql # not compatible
query I rowsort label-7763
SELECT + 7 / + + 69
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7764
SELECT ALL - 8 DIV + 29
----
0

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL - 8 / + 29
----
0

query I rowsort
SELECT DISTINCT - 80 * + - 14
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT + + 75 - 38 * + MIN( 53 ) AS col2
----
-1939

skipif mysql # not compatible
query I rowsort label-7766
SELECT + + 75 - 38 * + MIN ( 53 ) AS col2
----
-1939

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT DISTINCT MAX( ALL 98 )
----
98

skipif mysql # not compatible
query I rowsort label-7767
SELECT DISTINCT MAX ( ALL 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT + 61 * MAX( DISTINCT + 52 ) * 51
----
161772

skipif mysql # not compatible
query I rowsort label-7768
SELECT + 61 * MAX ( DISTINCT + 52 ) * 51
----
161772

query I rowsort
SELECT - 35 * + + 83 + - 27 AS col2
----
-2932

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT ALL COUNT( * ) + 40 * - 88 AS col1
----
-3519

skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL COUNT ( * ) + 40 * - 88 AS col1
----
-3519

onlyif mysql # aggregate syntax: 
query II rowsort label-7771
SELECT - - COUNT( * ) AS col1, ( 74 ) AS col0
----
1
74

skipif mysql # not compatible
query II rowsort label-7771
SELECT - - COUNT ( * ) AS col1, ( 74 ) AS col0
----
1
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT - + MIN( DISTINCT 90 ) + + COUNT( * ) + + - 79 * - 5 + + COUNT( * ) AS col0
----
307

skipif mysql # not compatible
query I rowsort label-7772
SELECT - + MIN ( DISTINCT 90 ) + + COUNT ( * ) + + - 79 * - 5 + + COUNT ( * ) AS col0
----
307

onlyif mysql # aggregate syntax: 
query II rowsort label-7773
SELECT - 84 AS col2, - COUNT( * ) AS col2
----
-84
-1

skipif mysql # not compatible
query II rowsort label-7773
SELECT - 84 AS col2, - COUNT ( * ) AS col2
----
-84
-1

query II rowsort
SELECT - 62 - + 23 + + + 94 AS col0, 87 * 46 * - + ( + CASE + 8 WHEN - 82 / + 76 THEN 6 * + 35 * + 11 END ) + 14 AS col2
----
9
NULL

query I rowsort
SELECT ALL - 28 * + - 87 AS col0
----
2436

query I rowsort
SELECT + + 23 * - - 40 + 59 AS col0
----
979

query I rowsort
SELECT ALL + 37 + - 16 + + - ( + + ( + 28 ) )
----
-7

query I rowsort
SELECT ALL 93 + - 95
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT - COUNT( * ) * + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7779
SELECT - COUNT ( * ) * + COUNT ( * ) col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7780
SELECT - 80 AS col0, COUNT( * )
----
-80
1

skipif mysql # not compatible
query II rowsort label-7780
SELECT - 80 AS col0, COUNT ( * )
----
-80
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7781
SELECT ALL - 1 + + MAX( ALL + 47 ) col2, CAST( NULL AS SIGNED )
----
46
NULL

skipif mysql # not compatible
query II rowsort label-7781
SELECT ALL - 1 + + MAX ( ALL + 47 ) col2, CAST ( NULL AS INTEGER )
----
46
NULL

query I rowsort
SELECT - - 96 + 28
----
124

query I rowsort
SELECT - + 21 + + 27
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7784
SELECT ALL - 84 DIV - 37
----
2

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL - 84 / - 37
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT - 21 * MIN( ALL + 89 )
----
-1869

skipif mysql # not compatible
query I rowsort label-7785
SELECT - 21 * MIN ( ALL + 89 )
----
-1869

query I rowsort
SELECT ALL + 11 * + 13 AS col1
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-7787
SELECT ALL 85 DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL 85 / - 91
----
0

query I rowsort
SELECT - 61 + + 90
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-7789
SELECT ALL + ( + COUNT( * ) ) AS col1, - 12
----
1
-12

skipif mysql # not compatible
query II rowsort label-7789
SELECT ALL + ( + COUNT ( * ) ) AS col1, - 12
----
1
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT - COUNT( * ) * - + COUNT( * ) + 60
----
61

skipif mysql # not compatible
query I rowsort label-7790
SELECT - COUNT ( * ) * - + COUNT ( * ) + 60
----
61

query II rowsort
SELECT ( - 89 ), + 96 AS col2
----
-89
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT 85 * - COALESCE ( COALESCE ( SUM( + - 7 ), + 37, - SUM( 0 ) - - - CASE + 71 WHEN - 57 + + 51 - - + 25 THEN NULL WHEN 81 - - 63 THEN 17 END ), 63 * 86 - - 0, 41 * ( 99 ) ) - + 86 * - 98
----
9023

skipif mysql # not compatible
query I rowsort label-7792
SELECT 85 * - COALESCE ( COALESCE ( SUM ( + - 7 ), + 37, - SUM ( 0 ) - - - CASE + 71 WHEN - 57 + + 51 - - + 25 THEN NULL WHEN 81 - - 63 THEN 17 END ), 63 * 86 - - 0, 41 * ( 99 ) ) - + 86 * - 98
----
9023

query I rowsort
SELECT ALL + ( - + 30 ) AS col0
----
-30

query I rowsort
SELECT DISTINCT 60 * 91
----
5460

query I rowsort
SELECT DISTINCT + ( ( + 21 ) ) AS col1
----
21

query I rowsort
SELECT ALL - 49 * ( - 76 ) * + + 53
----
197372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7797
SELECT + 10 * - 54 + - 37 DIV - ( COUNT( * ) ) + - 43 * - 56 AS col1
----
1905

skipif mysql # not compatible
query I rowsort label-7797
SELECT + 10 * - 54 + - 37 / - ( COUNT ( * ) ) + - 43 * - 56 AS col1
----
1905

query I rowsort
SELECT + ( 20 ) col1
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-7799
SELECT ALL ( - + 6 ) * 91 + 66, SUM( ALL - - 52 ) * NULLIF ( 89, + - 78 + + + 85 ) AS col0
----
-480
4628

skipif mysql # not compatible
query II rowsort label-7799
SELECT ALL ( - + 6 ) * 91 + 66, SUM ( ALL - - 52 ) * NULLIF ( 89, + - 78 + + + 85 ) AS col0
----
-480
4628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7800
SELECT + + NULLIF ( 76, - 86 - - ( NULLIF ( + + 52, COUNT( * ) ) ) + - CAST( - ( + 26 ) AS SIGNED ) )
----
76

skipif mysql # not compatible
query I rowsort label-7800
SELECT + + NULLIF ( 76, - 86 - - ( NULLIF ( + + 52, COUNT ( * ) ) ) + - CAST ( - ( + 26 ) AS INTEGER ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT + + COUNT( * ) + + 38 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-7801
SELECT + + COUNT ( * ) + + 38 AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7802
SELECT SUM( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7802
SELECT SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 38 * - 92 + - - 79 AS col2
----
-3417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7804
SELECT DISTINCT CASE - - 99 WHEN COUNT( * ) * - - MAX( ( COALESCE ( - 5, - 32 ) ) ) + - - ( + NULLIF ( - CAST( NULL AS SIGNED ), - 97 ) ) THEN MIN( DISTINCT + 58 ) END * - ( 30 * 62 ) + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT CASE - - 99 WHEN COUNT ( * ) * - - MAX ( ( COALESCE ( - 5, - 32 ) ) ) + - - ( + NULLIF ( - CAST ( NULL AS INTEGER ), - 97 ) ) THEN MIN ( DISTINCT + 58 ) END * - ( 30 * 62 ) + - 87
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7805
SELECT CAST( + - 51 AS SIGNED ) col2
----
-51

skipif mysql # not compatible
query I rowsort label-7805
SELECT CAST ( + - 51 AS INTEGER ) col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT + ( - - 44 ) + + COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-7806
SELECT + ( - - 44 ) + + COUNT ( * ) AS col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7807
SELECT ALL 82 DIV + 9
----
9

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL 82 / + 9
----
9

query II rowsort
SELECT 9 + - 28 + - - ( 21 ) - + - 81 + + 88 * 78, + 68 AS col0
----
6947
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7809
SELECT DISTINCT + + COALESCE ( + CAST( NULL AS SIGNED ), + 12 ) + 26 * 22 AS col0
----
584

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT + + COALESCE ( + CAST ( NULL AS INTEGER ), + 12 ) + 26 * 22 AS col0
----
584

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7810
SELECT DISTINCT + 64 / CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT + 64 / CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7811
SELECT ALL - 5 + - CAST( + 42 AS SIGNED ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-7811
SELECT ALL - 5 + - CAST ( + 42 AS INTEGER ) AS col2
----
-47

query I rowsort
SELECT 58 * - 89 AS col2
----
-5162

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT - NULLIF ( + COUNT( * ), 54 + + 23 - - 35 * 78 / - + NULLIF ( - COUNT( - 96 ), - 63 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7813
SELECT - NULLIF ( + COUNT ( * ), 54 + + 23 - - 35 * 78 / - + NULLIF ( - COUNT ( - 96 ), - 63 ) ) col0
----
-1

query I rowsort
SELECT + 58 + + 48
----
106

query I rowsort
SELECT ALL - NULLIF ( - 54, - - 35 )
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-7816
SELECT DISTINCT + COUNT( * ) - + + 0, 84 AS col2
----
1
84

skipif mysql # not compatible
query II rowsort label-7816
SELECT DISTINCT + COUNT ( * ) - + + 0, 84 AS col2
----
1
84

query I rowsort
SELECT 43 + + 73 AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT ALL COUNT( * ) * - - 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL COUNT ( * ) * - - 3 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT COUNT( * ) * - 31 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-7819
SELECT COUNT ( * ) * - 31 AS col0
----
-31

query I rowsort
SELECT 68 * + + 93 * - ( - 15 ) AS col0
----
94860

onlyif mysql # DIV for integer division: 
query I rowsort label-7821
SELECT DISTINCT + 35 DIV 95 * + 51
----
0

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT + 35 / 95 * + 51
----
0

query I rowsort
SELECT 87 + + + 98
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7823
SELECT DISTINCT + 8 * 1 * - 90 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT + 8 * 1 * - 90 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7824
SELECT DISTINCT + 35 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT + 35 / + 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT DISTINCT - 63 * CASE + COUNT( * ) WHEN + 5 THEN + 12 + 30 + + 81 ELSE - 57 * + + 3 END
----
10773

skipif mysql # not compatible
query I rowsort label-7825
SELECT DISTINCT - 63 * CASE + COUNT ( * ) WHEN + 5 THEN + 12 + 30 + + 81 ELSE - 57 * + + 3 END
----
10773

query II rowsort
SELECT 36, + 51 + - 53 + - - 82 AS col2
----
36
80

query I rowsort
SELECT ALL - 45 + + - ( 28 )
----
-73

query I rowsort
SELECT ALL + 91 + + - 41
----
50

query I rowsort
SELECT + ( 1 ) - 6 - 56
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7830
SELECT + CASE + + CAST( NULL AS SIGNED ) WHEN 10 THEN - + 75 * - - COALESCE ( + 7, COUNT( * ), - - 36 ) - - 16 * + + NULLIF ( + 38, + + ( + 20 ) ) + + + COALESCE ( + - 98, - 43 / - 91 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7830
SELECT + CASE + + CAST ( NULL AS INTEGER ) WHEN 10 THEN - + 75 * - - COALESCE ( + 7, COUNT ( * ), - - 36 ) - - 16 * + + NULLIF ( + 38, + + ( + 20 ) ) + + + COALESCE ( + - 98, - 43 / - 91 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7831
SELECT - 56 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7831
SELECT - 56 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( + + 12, 47 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7833
SELECT ALL COUNT( * ) + + - 24 * + CAST( NULL AS SIGNED ) + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL COUNT ( * ) + + - 24 * + CAST ( NULL AS INTEGER ) + - 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT - COUNT( * ) * 78 - + - ( + + 76 )
----
-2

skipif mysql # not compatible
query I rowsort label-7834
SELECT - COUNT ( * ) * 78 - + - ( + + 76 )
----
-2

query I rowsort
SELECT 93 - - 58 col0
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7836
SELECT CAST( NULL AS SIGNED ) * - ( 74 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT CAST ( NULL AS INTEGER ) * - ( 74 ) col2
----
NULL

query II rowsort
SELECT - + 57 AS col0, + 38 * + 61
----
-57
2318

query I rowsort
SELECT + 46 * - - 6
----
276

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7839
SELECT ALL CAST( - 29 AS SIGNED ) DIV + 39 * - 23 + + ( - CAST( - 98 AS SIGNED ) ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL CAST ( - 29 AS INTEGER ) / + 39 * - 23 + + ( - CAST ( - 98 AS INTEGER ) ) AS col0
----
98

query I rowsort
SELECT DISTINCT 9 * 19
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7841
SELECT DISTINCT CAST( NULL AS SIGNED ) / - + 54 / - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-7841
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - + 54 / - 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT 23 * - - 43 * + + SUM( - - 59 ) AS col2
----
58351

skipif mysql # not compatible
query I rowsort label-7842
SELECT 23 * - - 43 * + + SUM ( - - 59 ) AS col2
----
58351

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT NULLIF ( + + 45, - 89 ) * 32 * COUNT( * ) + + 34 + + 20 * - 20 AS col1
----
1074

skipif mysql # not compatible
query I rowsort label-7843
SELECT NULLIF ( + + 45, - 89 ) * 32 * COUNT ( * ) + + 34 + + 20 * - 20 AS col1
----
1074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7844
SELECT CAST( COUNT( * ) AS SIGNED ) * + 20 + - COUNT( * ) - 39
----
-20

skipif mysql # not compatible
query I rowsort label-7844
SELECT CAST ( COUNT ( * ) AS INTEGER ) * + 20 + - COUNT ( * ) - 39
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT COALESCE ( - + COUNT( * ), + 31 ) + 71 - - + 46 + + 94 * 93
----
8858

skipif mysql # not compatible
query I rowsort label-7845
SELECT COALESCE ( - + COUNT ( * ), + 31 ) + 71 - - + 46 + + 94 * 93
----
8858

onlyif mysql # aggregate syntax: 
query II rowsort label-7846
SELECT 3, 49 - - COALESCE ( - NULLIF ( + 29, + - 71 ), - CASE + - COUNT( * ) WHEN 9 THEN + 63 END + ( - + ( SUM( + 97 ) ) ) ) AS col1
----
3
20

skipif mysql # not compatible
query II rowsort label-7846
SELECT 3, 49 - - COALESCE ( - NULLIF ( + 29, + - 71 ), - CASE + - COUNT ( * ) WHEN 9 THEN + 63 END + ( - + ( SUM ( + 97 ) ) ) ) AS col1
----
3
20

query I rowsort
SELECT ALL 49 * - 90
----
-4410

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT 52 + COUNT( * ) + + NULLIF ( 58, - 55 * 55 )
----
111

skipif mysql # not compatible
query I rowsort label-7848
SELECT 52 + COUNT ( * ) + + NULLIF ( 58, - 55 * 55 )
----
111

query I rowsort
SELECT ALL 14 * 81
----
1134

query I rowsort
SELECT DISTINCT 8 * - 10 + - 19 * 39 * - - 84 AS col0
----
-62324

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7851
SELECT + 72 AS col0, + 60 * - - CAST( NULL AS SIGNED ) AS col0
----
72
NULL

skipif mysql # not compatible
query II rowsort label-7851
SELECT + 72 AS col0, + 60 * - - CAST ( NULL AS INTEGER ) AS col0
----
72
NULL

query I rowsort
SELECT 96 + - ( - 5 ) - 9 - - + 38 * 29 * - 57 + 77 - + ( 21 )
----
-62666

query I rowsort
SELECT 67 + + + 13
----
80

query I rowsort
SELECT + 2 * 41 + + 93 * + 7
----
733

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT 12 - + NULLIF ( - ( - - 62 ), + + COUNT( * ) ) + + COUNT( * ) + - - 59
----
134

skipif mysql # not compatible
query I rowsort label-7855
SELECT 12 - + NULLIF ( - ( - - 62 ), + + COUNT ( * ) ) + + COUNT ( * ) + - - 59
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7856
SELECT + 92 DIV - 23 + - COUNT( * ) + - 7 + - - 58 * 96 * + + COUNT( * ) + - + 32 + 93
----
5617

skipif mysql # not compatible
query I rowsort label-7856
SELECT + 92 / - 23 + - COUNT ( * ) + - 7 + - - 58 * 96 * + + COUNT ( * ) + - + 32 + 93
----
5617

query II rowsort
SELECT DISTINCT - + 21 * + - 60 + + - 46 + 93 AS col2, 72 AS col1
----
1307
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT ALL + - 55 * + COUNT( * ) * ( 82 ) + - 2 * + + NULLIF ( - 78, + - CASE + ( - - COUNT( * ) ) WHEN 89 + - 37 THEN - 26 + - 61 WHEN - MIN( DISTINCT - + 75 ) THEN COUNT( * ) ELSE NULL END ) * - 26 + - 5
----
-8571

skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL + - 55 * + COUNT ( * ) * ( 82 ) + - 2 * + + NULLIF ( - 78, + - CASE + ( - - COUNT ( * ) ) WHEN 89 + - 37 THEN - 26 + - 61 WHEN - MIN ( DISTINCT - + 75 ) THEN COUNT ( * ) ELSE NULL END ) * - 26 + - 5
----
-8571

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT SUM( - 47 ) * + - AVG ( DISTINCT - 9 ) * CASE - COUNT( * ) WHEN COUNT( * ) / + 89 THEN ( - COUNT( * ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7859
SELECT SUM ( - 47 ) * + - AVG ( DISTINCT - 9 ) * CASE - COUNT ( * ) WHEN COUNT ( * ) / + 89 THEN ( - COUNT ( * ) ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7860
SELECT ALL - 66 + + 69 AS col2, CASE - 92 WHEN - 36 + CASE - 46 WHEN COUNT( + - CAST( + 50 AS SIGNED ) ) / + 83 + 75 * - 25 + + 6 THEN NULL ELSE - - ( 39 ) END THEN 90 ELSE NULL END * + CAST( NULL AS SIGNED ) + + 26
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7860
SELECT ALL - 66 + + 69 AS col2, CASE - 92 WHEN - 36 + CASE - 46 WHEN COUNT ( + - CAST ( + 50 AS INTEGER ) ) / + 83 + 75 * - 25 + + 6 THEN NULL ELSE - - ( 39 ) END THEN 90 ELSE NULL END * + CAST ( NULL AS INTEGER ) + + 26
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT - - 60 + - - 88 + 41 + + - 32 - + + MIN( ALL - 77 ) * 62 + - 24 AS col1
----
4907

skipif mysql # not compatible
query I rowsort label-7861
SELECT - - 60 + - - 88 + 41 + + - 32 - + + MIN ( ALL - 77 ) * 62 + - 24 AS col1
----
4907

query II rowsort
SELECT ALL + + 20, - 9 AS col1
----
20
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT CASE CASE 19 WHEN 18 THEN 3 ELSE NULL END WHEN + 91 * 53 THEN NULL WHEN 76 + - + 34 + 53 * + - COALESCE ( 5, 71 * + - COUNT( * ) * + - 86 ) THEN 24 * ( 57 * 58 - ( 56 ) ) + + COALESCE ( COUNT( ALL 70 ), 69 + 26 * + 40, 16 ) * 21 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7863
SELECT CASE CASE 19 WHEN 18 THEN 3 ELSE NULL END WHEN + 91 * 53 THEN NULL WHEN 76 + - + 34 + 53 * + - COALESCE ( 5, 71 * + - COUNT ( * ) * + - 86 ) THEN 24 * ( 57 * 58 - ( 56 ) ) + + COALESCE ( COUNT ( ALL 70 ), 69 + 26 * + 40, 16 ) * 21 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 58 - - + 71 AS col1
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7865
SELECT SUM( DISTINCT 53 ) * + - 39 + - 79 + 38 * - + 60 + - - MAX( - COALESCE ( + - CAST( NULL AS SIGNED ), + 56 ) ) AS col2
----
-4482

skipif mysql # not compatible
query I rowsort label-7865
SELECT SUM ( DISTINCT 53 ) * + - 39 + - 79 + 38 * - + 60 + - - MAX ( - COALESCE ( + - CAST ( NULL AS INTEGER ), + 56 ) ) AS col2
----
-4482

query II rowsort
SELECT 94, 54 AS col2
----
94
54

query I rowsort
SELECT - 56 + - - 91 * - 76
----
-6972

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT - ( 81 ) * - 79 - + - 55 * + ( + 52 ) + + 5 + + COUNT( * ) * - COUNT( 35 ) + + 20
----
9283

skipif mysql # not compatible
query I rowsort label-7868
SELECT - ( 81 ) * - 79 - + - 55 * + ( + 52 ) + + 5 + + COUNT ( * ) * - COUNT ( 35 ) + + 20
----
9283

query I rowsort
SELECT - 70 + + 95 - - + 90 AS col1
----
115

query I rowsort
SELECT ALL + - 16 - 22 AS col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7871
SELECT - 82, - 93 / - 21 / - + 60 * - CAST( NULL AS DECIMAL ) * + CASE + - 95 WHEN 70 + + 98 THEN + + 35 END * - - 87 - ( + CAST( NULL AS SIGNED ) ) / + - 69 AS col2
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-7871
SELECT - 82, - 93 / - 21 / - + 60 * - CAST ( NULL AS REAL ) * + CASE + - 95 WHEN 70 + + 98 THEN + + 35 END * - - 87 - ( + CAST ( NULL AS INTEGER ) ) / + - 69 AS col2
----
-82
NULL

query II rowsort
SELECT ALL - 8 AS col2, + 84 * 62
----
-8
5208

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT + 87 * + 94 + NULLIF ( - COUNT( DISTINCT 9 ), - 49 ) + - + 73 * - 95 * - + 98 + - + COUNT( * ) + - 55 + + 99 * - + COUNT( * ) AS col1
----
-671608

skipif mysql # not compatible
query I rowsort label-7873
SELECT + 87 * + 94 + NULLIF ( - COUNT ( DISTINCT 9 ), - 49 ) + - + 73 * - 95 * - + 98 + - + COUNT ( * ) + - 55 + + 99 * - + COUNT ( * ) AS col1
----
-671608

query I rowsort
SELECT + 50 + + + 2 col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT DISTINCT + 34 * + + COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT + 34 * + + COUNT ( * ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT + ( - COUNT( * ) ) * - - 86 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-7876
SELECT + ( - COUNT ( * ) ) * - - 86 AS col0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7877
SELECT + CAST( NULL AS SIGNED ) + - + 39 - - COUNT( * ) - + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7877
SELECT + CAST ( NULL AS INTEGER ) + - + 39 - - COUNT ( * ) - + 41
----
NULL

query I rowsort
SELECT DISTINCT 67 + - + 3 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT ALL 2 + - COUNT( * ) * - + 39 - - 75
----
116

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL 2 + - COUNT ( * ) * - + 39 - - 75
----
116

query II rowsort
SELECT ALL ( + 58 ) AS col2, + 45 + 18 AS col0
----
58
63

query I rowsort
SELECT ALL 55 + + + 62 * + - ( - 71 )
----
4457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7882
SELECT + 60 + - CASE COUNT( * ) WHEN 79 THEN 66 * + - 65 WHEN - 79 THEN NULL ELSE NULL END + + - 54 + + - CAST( - - 20 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7882
SELECT + 60 + - CASE COUNT ( * ) WHEN 79 THEN 66 * + - 65 WHEN - 79 THEN NULL ELSE NULL END + + - 54 + + - CAST ( - - 20 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7883
SELECT - SUM( - 44 ) AS col0, + 17 DIV MIN( + 22 ) AS col2
----
44
0

skipif mysql # not compatible
query II rowsort label-7883
SELECT - SUM ( - 44 ) AS col0, + 17 / MIN ( + 22 ) AS col2
----
44
0

query I rowsort
SELECT DISTINCT 1 * + - 11 AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7885
SELECT + 24 DIV COUNT( + - 36 ) AS col2, + 13 AS col1
----
24
13

skipif mysql # not compatible
query II rowsort label-7885
SELECT + 24 / COUNT ( + - 36 ) AS col2, + 13 AS col1
----
24
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7886
SELECT 91 DIV SUM( ALL - CASE + 28 WHEN - 21 + 82 THEN NULL ELSE - 61 END ) + 14 * + CAST( - + 88 AS SIGNED ) + 40
----
-1191

skipif mysql # not compatible
query I rowsort label-7886
SELECT 91 / SUM ( ALL - CASE + 28 WHEN - 21 + 82 THEN NULL ELSE - 61 END ) + 14 * + CAST ( - + 88 AS INTEGER ) + 40
----
-1191

query I rowsort
SELECT ( - ( 8 ) ) col0
----
-8

query I rowsort
SELECT ALL 47 * - + 85 + - 86
----
-4081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7889
SELECT ALL + + MAX( DISTINCT - 45 ) * CAST( NULL AS SIGNED ) - 23 + + MAX( ALL + 33 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7889
SELECT ALL + + MAX ( DISTINCT - 45 ) * CAST ( NULL AS INTEGER ) - 23 + + MAX ( ALL + 33 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7890
SELECT - NULLIF ( - 13, + + 0 ) * 50 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7890
SELECT - NULLIF ( - 13, + + 0 ) * 50 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7891
SELECT ALL + 37 * + COALESCE ( - NULLIF ( - - 21, - CAST( - 60 AS SIGNED ) ), 46, - 23 ) * - 25 * - + COALESCE ( + AVG ( ALL + + 51 ), - 99 ) - 54 / + 32 - + CAST( NULL AS SIGNED ) - - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL + 37 * + COALESCE ( - NULLIF ( - - 21, - CAST ( - 60 AS INTEGER ) ), 46, - 23 ) * - 25 * - + COALESCE ( + AVG ( ALL + + 51 ), - 99 ) - 54 / + 32 - + CAST ( NULL AS INTEGER ) - - 40
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7892
SELECT DISTINCT - - CAST( ( 41 ) AS SIGNED ) * + 28
----
1148

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT - - CAST ( ( 41 ) AS INTEGER ) * + 28
----
1148

query I rowsort
SELECT + - ( - 54 ) * + + 91 AS col1
----
4914

onlyif mysql # aggregate syntax: 
query II rowsort label-7894
SELECT ALL + + ( - - 26 ), + COUNT( * ) * + 20 AS col1
----
26
20

skipif mysql # not compatible
query II rowsort label-7894
SELECT ALL + + ( - - 26 ), + COUNT ( * ) * + 20 AS col1
----
26
20

query II rowsort
SELECT + - ( 16 ) AS col1, + 12 AS col0
----
-16
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7896
SELECT + 48 * CAST( NULL AS SIGNED ) + + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT + 48 * CAST ( NULL AS INTEGER ) + + + 69
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7897
SELECT - 27 DIV CAST( - 76 AS SIGNED ) col2, 63
----
0
63

skipif mysql # not compatible
query II rowsort label-7897
SELECT - 27 / CAST ( - 76 AS INTEGER ) col2, 63
----
0
63

query I rowsort
SELECT ALL ( - - 1 ) AS col0
----
1

query I rowsort
SELECT - 38 * + + 60 AS col0
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT - COUNT( + 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-7900
SELECT - COUNT ( + 72 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT - COALESCE ( + 75, COUNT( * ) ) * + 53 AS col1
----
-3975

skipif mysql # not compatible
query I rowsort label-7901
SELECT - COALESCE ( + 75, COUNT ( * ) ) * + 53 AS col1
----
-3975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7902
SELECT DISTINCT CASE - ( + CAST( - 2 AS SIGNED ) ) WHEN - 25 THEN NULL WHEN COUNT( * ) THEN NULL ELSE + MAX( - - 37 ) END
----
37

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT CASE - ( + CAST ( - 2 AS INTEGER ) ) WHEN - 25 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + MAX ( - - 37 ) END
----
37

query I rowsort
SELECT ALL - 31 + 65 - + - ( - 82 ) + 20 * + 19
----
332

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7904
SELECT DISTINCT + 76 + 7 * 62 AS col0, 82 * + - 25 + - ( CAST( NULL AS SIGNED ) )
----
510
NULL

skipif mysql # not compatible
query II rowsort label-7904
SELECT DISTINCT + 76 + 7 * 62 AS col0, 82 * + - 25 + - ( CAST ( NULL AS INTEGER ) )
----
510
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT ALL MAX( - ( + - 10 ) ) + - - 53
----
63

skipif mysql # not compatible
query I rowsort label-7905
SELECT ALL MAX ( - ( + - 10 ) ) + - - 53
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT - COUNT( DISTINCT + 4 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7906
SELECT - COUNT ( DISTINCT + 4 ) col2
----
-1

query I rowsort
SELECT ALL + 58 + 66
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT DISTINCT - 4 * CASE - + COUNT( * ) WHEN 6 * + - 29 THEN NULL WHEN 22 THEN NULL ELSE 30 END AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT - 4 * CASE - + COUNT ( * ) WHEN 6 * + - 29 THEN NULL WHEN 22 THEN NULL ELSE 30 END AS col0
----
-120

query I rowsort
SELECT ALL - 86 * - 97
----
8342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7910
SELECT - COALESCE ( - 23, - + CAST( + 50 AS SIGNED ), + 15, 98 ) + + 77 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-7910
SELECT - COALESCE ( - 23, - + CAST ( + 50 AS INTEGER ), + 15, 98 ) + + 77 AS col1
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7911
SELECT - COUNT( CAST( - + 84 AS SIGNED ) ) AS col1, - 58 AS col1
----
-1
-58

skipif mysql # not compatible
query II rowsort label-7911
SELECT - COUNT ( CAST ( - + 84 AS INTEGER ) ) AS col1, - 58 AS col1
----
-1
-58

query I rowsort
SELECT - 1 + 7
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT - 18 * + CASE + + 44 WHEN 4 THEN - 24 * - 82 + COUNT( * ) ELSE + - 25 + - 6 END
----
558

skipif mysql # not compatible
query I rowsort label-7913
SELECT - 18 * + CASE + + 44 WHEN 4 THEN - 24 * - 82 + COUNT ( * ) ELSE + - 25 + - 6 END
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL - 87 * - 32 * + NULLIF ( COUNT( * ), - - 7 )
----
2784

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL - 87 * - 32 * + NULLIF ( COUNT ( * ), - - 7 )
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT + 95 + - + COUNT( * ) + + ( - COUNT( * ) ) col0
----
93

skipif mysql # not compatible
query I rowsort label-7915
SELECT + 95 + - + COUNT ( * ) + + ( - COUNT ( * ) ) col0
----
93

query I rowsort
SELECT DISTINCT + 71 - - ( - 11 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7917
SELECT CAST( NULL AS DECIMAL ) AS col2, + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7917
SELECT CAST ( NULL AS REAL ) AS col2, + COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7918
SELECT - + 40 DIV + - 32 + 96 + + 81 AS col2
----
178

skipif mysql # not compatible
query I rowsort label-7918
SELECT - + 40 / + - 32 + 96 + + 81 AS col2
----
178

onlyif mysql # DIV for integer division: 
query I rowsort label-7919
SELECT DISTINCT - 80 DIV - 55
----
1

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT - 80 / - 55
----
1

query I rowsort
SELECT - 77 + - 20 - - 31 AS col1
----
-66

query I rowsort
SELECT - 16 + - 49
----
-65

query I rowsort
SELECT ALL + 47 * + 35 * + + 84
----
138180

query I rowsort
SELECT + 99 - + 16 AS col2
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7924
SELECT DISTINCT ( - + 10 ) * - COUNT( * ) * + + 23 DIV - COUNT( * )
----
-230

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT ( - + 10 ) * - COUNT ( * ) * + + 23 / - COUNT ( * )
----
-230

query I rowsort
SELECT DISTINCT - ( - - 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT COALESCE ( 87, + MAX( + 83 ) * 18 * - + 29 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-7926
SELECT COALESCE ( 87, + MAX ( + 83 ) * 18 * - + 29 ) AS col0
----
87

query I rowsort
SELECT + 2 * - 38
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7928
SELECT 40 * 42 * 80 DIV - ( - + 33 ) + - - ( + 67 ) * + CASE + 47 WHEN + 32 + + - 30 THEN + 85 DIV - MAX( DISTINCT - 0 ) DIV - - COALESCE ( - NULLIF ( ( - 21 ), 66 ), 53, 80 + - 48 ) + CAST( NULL AS SIGNED ) WHEN 94 THEN - 97 * + 35 ELSE + 91 END
----
10169

skipif mysql # not compatible
query I rowsort label-7928
SELECT 40 * 42 * 80 / - ( - + 33 ) + - - ( + 67 ) * + CASE + 47 WHEN + 32 + + - 30 THEN + 85 / - MAX ( DISTINCT - 0 ) / - - COALESCE ( - NULLIF ( ( - 21 ), 66 ), 53, 80 + - 48 ) + CAST ( NULL AS INTEGER ) WHEN 94 THEN - 97 * + 35 ELSE + 91 END
----
10169

query I rowsort
SELECT - ( 28 ) AS col0
----
-28

query I rowsort
SELECT ALL - 71 + - 59
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7931
SELECT + + MIN( + CAST( + ( + + 52 ) AS SIGNED ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-7931
SELECT + + MIN ( + CAST ( + ( + + 52 ) AS INTEGER ) ) AS col2
----
52

query I rowsort
SELECT ALL - 89 + - 22 AS col2
----
-111

query I rowsort
SELECT 77 + 4 AS col0
----
81

query I rowsort
SELECT ALL 91 + - 52 * - - 31
----
-1521

query I rowsort
SELECT 87 + - COALESCE ( 17, + 42, - 53 ) * + 91
----
-1460

query I rowsort
SELECT DISTINCT - 18 * - - 71 AS col0
----
-1278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7937
SELECT CASE 61 WHEN - - COUNT( * ) / 95 THEN + 29 END / COALESCE ( 62, - 16, - CAST( + 19 AS SIGNED ) / - + 35 * - 39 + + 25 + + 56 + + ( + 55 ) * - 0 * + - 55 * - - COALESCE ( 58, + 5 * + 13 + 84 ) * 60 ) * + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7937
SELECT CASE 61 WHEN - - COUNT ( * ) / 95 THEN + 29 END / COALESCE ( 62, - 16, - CAST ( + 19 AS INTEGER ) / - + 35 * - 39 + + 25 + + 56 + + ( + 55 ) * - 0 * + - 55 * - - COALESCE ( 58, + 5 * + 13 + 84 ) * 60 ) * + 96
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7938
SELECT 3 * + - 14 AS col0, + COUNT( * ) AS col0
----
-42
1

skipif mysql # not compatible
query II rowsort label-7938
SELECT 3 * + - 14 AS col0, + COUNT ( * ) AS col0
----
-42
1

query II rowsort
SELECT ALL + 27 - - + 65 col1, 61 AS col2
----
92
61

query I rowsort
SELECT 2 * - 12 col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT DISTINCT - 55 * + + MAX( ALL + 32 )
----
-1760

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT - 55 * + + MAX ( ALL + 32 )
----
-1760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7942
SELECT + CAST( 84 AS SIGNED ) * - + 92 * + COUNT( * ) * - - 90 * 47 AS col0
----
-32689440

skipif mysql # not compatible
query I rowsort label-7942
SELECT + CAST ( 84 AS INTEGER ) * - + 92 * + COUNT ( * ) * - - 90 * 47 AS col0
----
-32689440

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT DISTINCT - - 51 * + - COUNT( + 46 )
----
-51

skipif mysql # not compatible
query I rowsort label-7943
SELECT DISTINCT - - 51 * + - COUNT ( + 46 )
----
-51

query I rowsort
SELECT ALL - - 1 * 5 * - 8
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7945
SELECT + ( + - COUNT( * ) ) col0, - 46 * 65 DIV - COUNT( ALL + + 37 ) col2
----
-1
2990

skipif mysql # not compatible
query II rowsort label-7945
SELECT + ( + - COUNT ( * ) ) col0, - 46 * 65 / - COUNT ( ALL + + 37 ) col2
----
-1
2990

query I rowsort
SELECT - 23 * + 21 + + 85 AS col0
----
-398

onlyif mysql # aggregate syntax: 
query II rowsort label-7947
SELECT DISTINCT - 90 * - 90 + - 57 * - 26 + 60 AS col1, - COUNT( * ) col0
----
9642
-1

skipif mysql # not compatible
query II rowsort label-7947
SELECT DISTINCT - 90 * - 90 + - 57 * - 26 + 60 AS col1, - COUNT ( * ) col0
----
9642
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7948
SELECT ALL - - MAX( ALL - 26 ) col1, - COALESCE ( + + COUNT( * ), - 75 + 23 ) AS col2
----
-26
-1

skipif mysql # not compatible
query II rowsort label-7948
SELECT ALL - - MAX ( ALL - 26 ) col1, - COALESCE ( + + COUNT ( * ), - 75 + 23 ) AS col2
----
-26
-1

query I rowsort
SELECT ALL + + 9 * + 32 + - 16
----
272

onlyif mysql # DIV for integer division: 
query I rowsort label-7950
SELECT 93 DIV + - 7 - + + 51 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-7950
SELECT 93 / + - 7 - + + 51 AS col0
----
-64

query I rowsort
SELECT ALL - 75 + ( + 84 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT + 13 * 90 - COUNT( * ) AS col0
----
1169

skipif mysql # not compatible
query I rowsort label-7952
SELECT + 13 * 90 - COUNT ( * ) AS col0
----
1169

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7953
SELECT - 8 + 32 + + 30 / 42 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7953
SELECT - 8 + 32 + + 30 / 42 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 78 + 64 * - 53 AS col2
----
-3314

onlyif mysql # DIV for integer division: 
query I rowsort label-7955
SELECT 73 DIV - 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7955
SELECT 73 / - 92 AS col1
----
0

query I rowsort
SELECT ALL + - 92 + + 45 AS col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7957
SELECT ALL CAST( + 76 AS SIGNED ) * 7 * - + 33 AS col1
----
-17556

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL CAST ( + 76 AS INTEGER ) * 7 * - + 33 AS col1
----
-17556

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT + SUM( ALL 35 )
----
35

skipif mysql # not compatible
query I rowsort label-7958
SELECT + SUM ( ALL 35 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7959
SELECT + SUM( DISTINCT CAST( - 16 AS SIGNED ) ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-7959
SELECT + SUM ( DISTINCT CAST ( - 16 AS INTEGER ) ) AS col0
----
-16

query I rowsort
SELECT ALL 50 * - 70 * 77 AS col1
----
-269500

query I rowsort
SELECT DISTINCT 78 - + COALESCE ( + - 86, + 45 - ( + 85 ) ) col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT - NULLIF ( 64, + COUNT( DISTINCT - - 52 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-7962
SELECT - NULLIF ( 64, + COUNT ( DISTINCT - - 52 ) )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT - NULLIF ( 47, - 7 * + ( - COUNT( * ) ) * - - 23 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-7963
SELECT - NULLIF ( 47, - 7 * + ( - COUNT ( * ) ) * - - 23 ) AS col1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-7964
SELECT ALL 77 - + - 95 DIV + + 82
----
78

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL 77 - + - 95 / + + 82
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7965
SELECT ALL COUNT( * ) * 74 * - 22 * + 25 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL COUNT ( * ) * 74 * - 22 * + 25 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 69 * + - 42 AS col0
----
2898

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT - 54 * COUNT( ALL - 32 )
----
-54

skipif mysql # not compatible
query I rowsort label-7967
SELECT - 54 * COUNT ( ALL - 32 )
----
-54

query I rowsort
SELECT - - 53 * - - 31 AS col0
----
1643

query I rowsort
SELECT + 98 + + 2 AS col1
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-7970
SELECT DISTINCT 67 AS col0, 91 + + + CASE - 60 WHEN 1 THEN NULL WHEN + - NULLIF ( 12, - + 56 ) + - + 85 THEN + - 64 END + - - 13 + - 79 * - - COUNT( * ) * + CASE + + 2 WHEN - + 72 + + - 65 THEN NULL WHEN - 3 THEN + 11 + - COUNT( * ) - ( - 19 ) ELSE - COUNT( 79 ) END + + 71 * 98 * 2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-7970
SELECT DISTINCT 67 AS col0, 91 + + + CASE - 60 WHEN 1 THEN NULL WHEN + - NULLIF ( 12, - + 56 ) + - + 85 THEN + - 64 END + - - 13 + - 79 * - - COUNT ( * ) * + CASE + + 2 WHEN - + 72 + + - 65 THEN NULL WHEN - 3 THEN + 11 + - COUNT ( * ) - ( - 19 ) ELSE - COUNT ( 79 ) END + + 71 * 98 * 2
----
67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT ALL 81 * + + SUM( ALL COALESCE ( - 80, + + 48 * 28 + - - 62 * - 69 - + + 11 ) ) * + 73 + + 82 * + - 42
----
-476484

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL 81 * + + SUM ( ALL COALESCE ( - 80, + + 48 * 28 + - - 62 * - 69 - + + 11 ) ) * + 73 + + 82 * + - 42
----
-476484

onlyif mysql # DIV for integer division: 
query I rowsort label-7972
SELECT - 25 + - + 50 DIV + - 87
----
-25

skipif mysql # not compatible
query I rowsort label-7972
SELECT - 25 + - + 50 / + - 87
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT + - MAX( - 69 )
----
69

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT + - MAX ( - 69 )
----
69

query I rowsort
SELECT - 57 * - + 50 col1
----
2850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7975
SELECT - 78 DIV - 87 + + - 33 * ( + - ( - 74 ) ) DIV - 79 * COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-7975
SELECT - 78 / - 87 + + - 33 * ( + - ( - 74 ) ) / - 79 * COUNT ( * ) AS col0
----
30

query II rowsort
SELECT 96 AS col0, - 30 * 66
----
96
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT ALL 82 * MIN( 63 ) + - 61 + + + 63 AS col0
----
5168

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL 82 * MIN ( 63 ) + - 61 + + + 63 AS col0
----
5168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7978
SELECT DISTINCT + 1 * - 44 * + + COUNT( * ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT + 1 * - 44 * + + COUNT ( * ) - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 44 * - COALESCE ( ( + 76 ), + ( 39 ) ) + + 4
----
3348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7980
SELECT ALL + CAST( NULL AS SIGNED ) * 34 * - + 78 + CAST( - + 45 AS SIGNED ) + + MAX( 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL + CAST ( NULL AS INTEGER ) * 34 * - + 78 + CAST ( - + 45 AS INTEGER ) + + MAX ( 16 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT + - MIN( DISTINCT + 7 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-7981
SELECT + - MIN ( DISTINCT + 7 ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT DISTINCT - 65 * - - 83 + 5 - - 9 * + + COUNT( * )
----
-5381

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT - 65 * - - 83 + 5 - - 9 * + + COUNT ( * )
----
-5381

query I rowsort
SELECT NULLIF ( + + 43, - 67 - + 60 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7984
SELECT + 86 AS col2, + MAX( + 69 ) + + - 47 * + CAST( NULL AS SIGNED ) * + 44
----
86
NULL

skipif mysql # not compatible
query II rowsort label-7984
SELECT + 86 AS col2, + MAX ( + 69 ) + + - 47 * + CAST ( NULL AS INTEGER ) * + 44
----
86
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT + COALESCE ( - 63, + COUNT( * ) )
----
-63

skipif mysql # not compatible
query I rowsort label-7985
SELECT + COALESCE ( - 63, + COUNT ( * ) )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT - COUNT( * ) + - - 30
----
29

skipif mysql # not compatible
query I rowsort label-7986
SELECT - COUNT ( * ) + - - 30
----
29

query I rowsort
SELECT + 14 * - + 33 AS col2
----
-462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7988
SELECT - CAST( NULL AS SIGNED ) + - 97 + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7988
SELECT - CAST ( NULL AS INTEGER ) + - 97 + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7989
SELECT DISTINCT 63 * + 82 - + CAST( NULL AS SIGNED ) + - 66, 40 * + 12 + 99 + + 2 AS col0
----
NULL
581

skipif mysql # not compatible
query II rowsort label-7989
SELECT DISTINCT 63 * + 82 - + CAST ( NULL AS INTEGER ) + - 66, 40 * + 12 + 99 + + 2 AS col0
----
NULL
581

query II rowsort
SELECT ALL 52 col0, 7 AS col1
----
52
7

query I rowsort
SELECT - NULLIF ( + - ( + 24 ), + 89 / - + 16 ) + + 32
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT DISTINCT COUNT( * ) * + 84 - - 55 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-7992
SELECT DISTINCT COUNT ( * ) * + 84 - - 55 AS col1
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7993
SELECT ALL 9 AS col2, - 51 + CAST( NULL AS SIGNED )
----
9
NULL

skipif mysql # not compatible
query II rowsort label-7993
SELECT ALL 9 AS col2, - 51 + CAST ( NULL AS INTEGER )
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT 64 * + COALESCE ( 23, + 63 - 36, COUNT( * ) / - 83 * 48 ) * + COUNT( + 40 ) + ( + 92 ) + 52 * - + CASE - + 94 WHEN - ( ( + SUM( ALL 32 ) ) ) * + 53 THEN - + 98 END + 27 * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT 64 * + COALESCE ( 23, + 63 - 36, COUNT ( * ) / - 83 * 48 ) * + COUNT ( + 40 ) + ( + 92 ) + 52 * - + CASE - + 94 WHEN - ( ( + SUM ( ALL 32 ) ) ) * + 53 THEN - + 98 END + 27 * - 54
----
NULL

query I rowsort
SELECT ALL + 73 * + + ( 28 )
----
2044

query I rowsort
SELECT + 72 + + 40
----
112

query I rowsort
SELECT + 48 + - - 86 AS col0
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT - ( + - 54 ) * + CASE + 98 WHEN 58 - - + 71 - - - ( + 15 ) + - COUNT( * ) * + MAX( ALL - 24 ) * ( + 65 ) * 58 THEN + COUNT( - 60 ) END + - COUNT( + 55 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7998
SELECT - ( + - 54 ) * + CASE + 98 WHEN 58 - - + 71 - - - ( + 15 ) + - COUNT ( * ) * + MAX ( ALL - 24 ) * ( + 65 ) * 58 THEN + COUNT ( - 60 ) END + - COUNT ( + 55 ) AS col0
----
NULL

query I rowsort
SELECT + 24 + + 45 AS col2
----
69

query I rowsort
SELECT + 52 + - - 88
----
140

query I rowsort
SELECT + 96 * - - 6
----
576

query II rowsort
SELECT DISTINCT + 89 AS col1, 2
----
89
2

query I rowsort
SELECT ALL - ( + 42 ) + 75 AS col2
----
33

query I rowsort
SELECT + + 30 * + 54
----
1620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8005
SELECT + CAST( NULL AS SIGNED ) / + - 28 * - 50 - COUNT( * ) + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT + CAST ( NULL AS INTEGER ) / + - 28 * - 50 - COUNT ( * ) + 7
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8006
SELECT - COUNT( ALL + 39 ) DIV + 70 * + 47 * 95
----
0

skipif mysql # not compatible
query I rowsort label-8006
SELECT - COUNT ( ALL + 39 ) / + 70 * + 47 * 95
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8007
SELECT - CAST( + - 85 AS SIGNED ) * ( + - 94 ) - + - 76 AS col0
----
-7914

skipif mysql # not compatible
query I rowsort label-8007
SELECT - CAST ( + - 85 AS INTEGER ) * ( + - 94 ) - + - 76 AS col0
----
-7914

query II rowsort
SELECT + 19 AS col0, - 12
----
19
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT ALL + CASE + 33 WHEN + 90 * 14 + 98 + + 51 * - MIN( + 67 ) THEN - 93 END * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL + CASE + 33 WHEN + 90 * 14 + 98 + + 51 * - MIN ( + 67 ) THEN - 93 END * + 11
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8010
SELECT ALL + - 82 DIV - - 56 + + + ( 12 )
----
11

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL + - 82 / - - 56 + + + ( 12 )
----
11

query II rowsort
SELECT DISTINCT + 84, 53 AS col0
----
84
53

query I rowsort
SELECT - ( ( - 6 ) ) AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8013
SELECT 77 DIV + COUNT( DISTINCT + - 37 ) + 46 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-8013
SELECT 77 / + COUNT ( DISTINCT + - 37 ) + 46 AS col0
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-8014
SELECT - 32 + - 84, 95 - - - COUNT( * ) * - 4 + 11 + - - 23 AS col2
----
-116
133

skipif mysql # not compatible
query II rowsort label-8014
SELECT - 32 + - 84, 95 - - - COUNT ( * ) * - 4 + 11 + - - 23 AS col2
----
-116
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8015
SELECT - ( - COUNT( * ) ) * - 64 - - 68 + - 85 + - 69 + - NULLIF ( - + 25, 78 ) + - 34 + 42 * + COUNT( * ), - 51 + - CAST( NULL AS SIGNED ) / - 88 - + + 29 AS col0
----
-117
NULL

skipif mysql # not compatible
query II rowsort label-8015
SELECT - ( - COUNT ( * ) ) * - 64 - - 68 + - 85 + - 69 + - NULLIF ( - + 25, 78 ) + - 34 + 42 * + COUNT ( * ), - 51 + - CAST ( NULL AS INTEGER ) / - 88 - + + 29 AS col0
----
-117
NULL

query I rowsort
SELECT ALL + COALESCE ( - - 91, - 99, 17 + 11 ) * - - 79 AS col0
----
7189

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8017
SELECT - CAST( NULL AS SIGNED ) * 69, + 0 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8017
SELECT - CAST ( NULL AS INTEGER ) * 69, + 0 AS col2
----
NULL
0

query I rowsort
SELECT ALL + 68 * - + 13 * ( + 95 )
----
-83980

query I rowsort
SELECT DISTINCT - 59 * ( + 45 ) AS col1
----
-2655

query I rowsort
SELECT DISTINCT + 96 - + ( + + 78 ) col1
----
18

query I rowsort
SELECT 92 - - 75 col1
----
167

query II rowsort
SELECT 31 * ( 31 ), + 5 AS col2
----
961
5

query I rowsort
SELECT 2 - + 60
----
-58

query I rowsort
SELECT ALL 83 * + - ( + + 75 )
----
-6225

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8025
SELECT 21 / - + 54 / + + CAST( NULL AS DECIMAL ) * + 1 / 74 / + 79 * + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT 21 / - + 54 / + + CAST ( NULL AS REAL ) * + 1 / 74 / + 79 * + 75 AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + 40, - 25 + - + 34 * 53 ) + - 58
----
-98

query I rowsort
SELECT ALL 33 + - 19 - 67 + + 5 + - 96
----
-144

query I rowsort
SELECT - NULLIF ( - 63, 29 ) - - 23 * - 78 + + 64 col0
----
-1667

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8029
SELECT ALL + - 65 * - CASE + NULLIF ( - + 34, CAST( NULL AS SIGNED ) / - 20 ) WHEN + 78 + + COUNT( + - 98 ) THEN - 84 WHEN 47 THEN - COALESCE ( + 3, + + 40 + 84 ) WHEN ( 10 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL + - 65 * - CASE + NULLIF ( - + 34, CAST ( NULL AS INTEGER ) / - 20 ) WHEN + 78 + + COUNT ( + - 98 ) THEN - 84 WHEN 47 THEN - COALESCE ( + 3, + + 40 + 84 ) WHEN ( 10 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT DISTINCT + COUNT( * ) + - 77 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT + COUNT ( * ) + - 77 AS col0
----
-76

query I rowsort
SELECT - 60 + - + 33 + + + 4 * + 73 + - 12
----
187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8032
SELECT 2 + 10 DIV - - 64 + - + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8032
SELECT 2 + 10 / - - 64 + - + COUNT ( * ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8033
SELECT ALL COUNT( + + 83 ) col0, COUNT( + - 36 ) col1
----
1
1

skipif mysql # not compatible
query II rowsort label-8033
SELECT ALL COUNT ( + + 83 ) col0, COUNT ( + - 36 ) col1
----
1
1

query I rowsort
SELECT 91 - - 74 AS col0
----
165

onlyif mysql # aggregate syntax: 
query II rowsort label-8035
SELECT + COUNT( * ) + - + 95 AS col1, 92 - + - 40 + 7 AS col1
----
-94
139

skipif mysql # not compatible
query II rowsort label-8035
SELECT + COUNT ( * ) + - + 95 AS col1, 92 - + - 40 + 7 AS col1
----
-94
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8036
SELECT ALL 63 - 15 + - + CAST( NULL AS SIGNED ) * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8036
SELECT ALL 63 - 15 + - + CAST ( NULL AS INTEGER ) * 37
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8037
SELECT ALL 2 DIV + 98 DIV 40 * 90
----
0

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL 2 / + 98 / 40 * 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT DISTINCT - NULLIF ( + COUNT( * ), + - ( - 77 ) + 7 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8038
SELECT DISTINCT - NULLIF ( + COUNT ( * ), + - ( - 77 ) + 7 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT DISTINCT + 35 * - - 15 * - + ( - ( + + CASE + + COUNT( * ) WHEN - 71 THEN + SUM( + + 86 ) + 25 * - CASE + 84 WHEN + 97 THEN NULL WHEN - 73 * - ( - + MIN( ALL + 29 ) ) * + + 35 THEN NULL ELSE - - 28 END * - 45 / + 92 * ( 84 ) + ( 68 ) END ) ) / - ( 96 * 15 ) + 85 / + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT + 35 * - - 15 * - + ( - ( + + CASE + + COUNT ( * ) WHEN - 71 THEN + SUM ( + + 86 ) + 25 * - CASE + 84 WHEN + 97 THEN NULL WHEN - 73 * - ( - + MIN ( ALL + 29 ) ) * + + 35 THEN NULL ELSE - - 28 END * - 45 / + 92 * ( 84 ) + ( 68 ) END ) ) / - ( 96 * 15 ) + 85 / + 37
----
NULL

query I rowsort
SELECT + + COALESCE ( ( - 95 ), + 15 + + 40, 92 )
----
-95

query I rowsort
SELECT 50 * + + 48 * + + 0 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8042
SELECT ( - + COUNT( * ) ) * COUNT( * ), NULLIF ( - + 80, + 16 ) + 30 AS col0
----
-1
-50

skipif mysql # not compatible
query II rowsort label-8042
SELECT ( - + COUNT ( * ) ) * COUNT ( * ), NULLIF ( - + 80, + 16 ) + 30 AS col0
----
-1
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8043
SELECT ALL 91 - - - CAST( NULL AS SIGNED ) * + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL 91 - - - CAST ( NULL AS INTEGER ) * + 11 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8044
SELECT ALL - 0 DIV - 19
----
0

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL - 0 / - 19
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8045
SELECT - 42 * + 93 - 91 + - + COUNT( * ) * + NULLIF ( 9, 48 ) + + COUNT( * ) * + CAST( NULL AS SIGNED ) * + 60 + + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT - 42 * + 93 - 91 + - + COUNT ( * ) * + NULLIF ( 9, 48 ) + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + 60 + + 5 AS col1
----
NULL

query I rowsort
SELECT 86 * 15 * + - 48 col1
----
-61920

query I rowsort
SELECT 21 * + 5 AS col0
----
105

query II rowsort
SELECT ALL - 57 AS col2, + 18 AS col0
----
-57
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT COALESCE ( + COUNT( * ), 11 ) * - - 57 + + 61 col0
----
118

skipif mysql # not compatible
query I rowsort label-8049
SELECT COALESCE ( + COUNT ( * ), 11 ) * - - 57 + + 61 col0
----
118

query I rowsort
SELECT ( - 10 ) + 98
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT - 98 * - + MAX( DISTINCT - 33 ) - + + COUNT( * ) AS col1
----
-3235

skipif mysql # not compatible
query I rowsort label-8051
SELECT - 98 * - + MAX ( DISTINCT - 33 ) - + + COUNT ( * ) AS col1
----
-3235

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT DISTINCT - MIN( ALL 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT - MIN ( ALL 85 ) AS col1
----
-85

query I rowsort
SELECT ALL - 10 * + + 4
----
-40

query I rowsort
SELECT 11 + + 36
----
47

query I rowsort
SELECT 47 - ( - 1 ) col2
----
48

query I rowsort
SELECT 27 + - 42 - - - 70 + 31 - - - 80
----
-134

query II rowsort
SELECT DISTINCT 75 AS col1, 4 * - 58
----
75
-232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8058
SELECT ALL - NULLIF ( + SUM( + 44 ), + CAST( NULL AS SIGNED ) * 76 + + 95 ) + + 29 + + 80 + + - 56 + - 83 * + + 38 AS col2, CASE + + 6 WHEN - - COUNT( * ) + + + 18 * CASE - 95 WHEN + 48 * 1 / + + 16 + + ( + ( + - 61 ) ) + 79 THEN + 93 * + COUNT( * ) ELSE 59 END * + ( 43 - - 32 / - 95 ) THEN - 53 - - COUNT( * ) WHEN - 30 THEN NULL END / 56
----
-3145
NULL

skipif mysql # not compatible
query II rowsort label-8058
SELECT ALL - NULLIF ( + SUM ( + 44 ), + CAST ( NULL AS INTEGER ) * 76 + + 95 ) + + 29 + + 80 + + - 56 + - 83 * + + 38 AS col2, CASE + + 6 WHEN - - COUNT ( * ) + + + 18 * CASE - 95 WHEN + 48 * 1 / + + 16 + + ( + ( + - 61 ) ) + 79 THEN + 93 * + COUNT ( * ) ELSE 59 END * + ( 43 - - 32 / - 95 ) THEN - 53 - - COUNT ( * ) WHEN - 30 THEN NULL END / 56
----
-3145
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT COUNT( * ) * - 16 * + - 20 * - - 41 + - 5 + + ( + + ( - 52 ) ) + - 18 * 47 * - 69 + - COUNT( * ) + 3 * ( COUNT( * ) ) AS col2
----
71439

skipif mysql # not compatible
query I rowsort label-8059
SELECT COUNT ( * ) * - 16 * + - 20 * - - 41 + - 5 + + ( + + ( - 52 ) ) + - 18 * 47 * - 69 + - COUNT ( * ) + 3 * ( COUNT ( * ) ) AS col2
----
71439

query II rowsort
SELECT ALL 52, + 40 AS col2
----
52
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8061
SELECT ALL + - ( + NULLIF ( + COALESCE ( - 36, - 69 ), + 69 * + 15 * 73 + 65 + - 33 + CAST( NULL AS SIGNED ) * - CAST( + + 90 AS SIGNED ) * - 23 + MAX( 0 ) * + + 44 + + + 71 ) ) + + 28, - 58 AS col1
----
64
-58

skipif mysql # not compatible
query II rowsort label-8061
SELECT ALL + - ( + NULLIF ( + COALESCE ( - 36, - 69 ), + 69 * + 15 * 73 + 65 + - 33 + CAST ( NULL AS INTEGER ) * - CAST ( + + 90 AS INTEGER ) * - 23 + MAX ( 0 ) * + + 44 + + + 71 ) ) + + 28, - 58 AS col1
----
64
-58

query II rowsort
SELECT - 13 AS col2, - 70
----
-13
-70

query I rowsort
SELECT 37 + - + 93 AS col1
----
-56

query II rowsort
SELECT ALL - ( - + 74 ) + + 57 + 56 col0, + 93
----
187
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT COUNT( * ) * - 30 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-8065
SELECT COUNT ( * ) * - 30 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT - COUNT( + - 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-8066
SELECT - COUNT ( + - 18 )
----
-1

query I rowsort
SELECT 14 + - 84
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-8068
SELECT + NULLIF ( - + 89, + - COUNT( * ) + 53 ) AS col2, 5
----
-89
5

skipif mysql # not compatible
query II rowsort label-8068
SELECT + NULLIF ( - + 89, + - COUNT ( * ) + 53 ) AS col2, 5
----
-89
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8069
SELECT ALL - 58 DIV + - 43 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL - 58 / + - 43 AS col2
----
1

query I rowsort
SELECT ALL + + 58 - - - 64
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT DISTINCT - CASE + COALESCE ( 98, + 54 ) WHEN - MIN( ALL + 12 ) THEN NULL ELSE COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT - CASE + COALESCE ( 98, + 54 ) WHEN - MIN ( ALL + 12 ) THEN NULL ELSE COUNT ( * ) END AS col1
----
-1

query II rowsort
SELECT - - 93, 94 * - 2 - + 7 AS col2
----
93
-195

query II rowsort
SELECT ALL - 37 AS col2, + 7 AS col2
----
-37
7

query II rowsort
SELECT DISTINCT - 14 AS col2, - 1 AS col1
----
-14
-1

query I rowsort
SELECT ALL - 6 - + 31 * - 44 col2
----
1358

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT SUM( + 32 ) * - 99
----
-3168

skipif mysql # not compatible
query I rowsort label-8076
SELECT SUM ( + 32 ) * - 99
----
-3168

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8077
SELECT + 65, CAST( - 16 AS SIGNED ) AS col1
----
65
-16

skipif mysql # not compatible
query II rowsort label-8077
SELECT + 65, CAST ( - 16 AS INTEGER ) AS col1
----
65
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8078
SELECT ALL 93 AS col2, + CAST( - CASE 81 WHEN + 74 THEN NULL ELSE 20 END AS SIGNED ) * 96
----
93
-1920

skipif mysql # not compatible
query II rowsort label-8078
SELECT ALL 93 AS col2, + CAST ( - CASE 81 WHEN + 74 THEN NULL ELSE 20 END AS INTEGER ) * 96
----
93
-1920

query I rowsort
SELECT + 66 * ( + 97 ) col0
----
6402

query I rowsort
SELECT 96 * ( + 52 )
----
4992

onlyif mysql # DIV for integer division: 
query I rowsort label-8081
SELECT - 38 DIV + 47 - 33
----
-33

skipif mysql # not compatible
query I rowsort label-8081
SELECT - 38 / + 47 - 33
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT ALL + SUM( + ( + 74 ) ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL + SUM ( + ( + 74 ) ) AS col0
----
74

query I rowsort
SELECT - 76 * + 48 + + 99 AS col0
----
-3549

query I rowsort
SELECT + 31 - + + 94 AS col1
----
-63

query I rowsort
SELECT ALL 37 * 50
----
1850

query II rowsort
SELECT + 49 * 28 AS col2, - 9
----
1372
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8087
SELECT + 95 + 65 * - ( - - ( - + 87 ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT + 95 + 65 * - ( - - ( - + 87 ) ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8088
SELECT + 13 DIV + 3
----
4

skipif mysql # not compatible
query I rowsort label-8088
SELECT + 13 / + 3
----
4

query I rowsort
SELECT - 31 * - + 9 + + 99
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT DISTINCT COUNT( * ) * + + NULLIF ( - + 84, COUNT( * ) + 57 * 88 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT COUNT ( * ) * + + NULLIF ( - + 84, COUNT ( * ) + 57 * 88 ) AS col1
----
-84

query I rowsort
SELECT ALL - 19 * + 3 * - 71 + - + 87
----
3960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8092
SELECT ALL + ( - 30 ) DIV - ( - - NULLIF ( - MAX( DISTINCT 80 ), + - 18 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL + ( - 30 ) / - ( - - NULLIF ( - MAX ( DISTINCT 80 ), + - 18 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8093
SELECT + CASE - COALESCE ( 97, + 26 ) WHEN 54 * 99 THEN + 64 WHEN + 37 * 72 THEN NULL END AS col1, 57 * - 36 * + COUNT( * ) + - - COUNT( * )
----
NULL
-2051

skipif mysql # not compatible
query II rowsort label-8093
SELECT + CASE - COALESCE ( 97, + 26 ) WHEN 54 * 99 THEN + 64 WHEN + 37 * 72 THEN NULL END AS col1, 57 * - 36 * + COUNT ( * ) + - - COUNT ( * )
----
NULL
-2051

query II rowsort
SELECT + ( - 65 ) AS col1, 5
----
-65
5

query I rowsort
SELECT ALL 65 + ( - 15 ) AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8096
SELECT ALL - CAST( + - 86 AS SIGNED ) * + + 97 * - 87 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL - CAST ( + - 86 AS INTEGER ) * + + 97 * - 87 + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8097
SELECT - + CAST( ( - 60 ) AS SIGNED ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-8097
SELECT - + CAST ( ( - 60 ) AS INTEGER ) AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8098
SELECT DISTINCT - COALESCE ( 92, - 21 * 68 + - 55 * 83 * 84, 62 - 37 ) * CAST( NULL AS SIGNED ) * - AVG ( ALL - 9 ) AS col1, MAX( DISTINCT - 89 ) AS col1
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-8098
SELECT DISTINCT - COALESCE ( 92, - 21 * 68 + - 55 * 83 * 84, 62 - 37 ) * CAST ( NULL AS INTEGER ) * - AVG ( ALL - 9 ) AS col1, MAX ( DISTINCT - 89 ) AS col1
----
NULL
-89

query I rowsort
SELECT DISTINCT - 18 * + - 76
----
1368

query I rowsort
SELECT ALL - - 23 - + 48 col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8101
SELECT ALL + 85 * - 91 * - 36 DIV COUNT( * ) AS col2, COUNT( ALL - - 22 ) + - COUNT( * )
----
278460
0

skipif mysql # not compatible
query II rowsort label-8101
SELECT ALL + 85 * - 91 * - 36 / COUNT ( * ) AS col2, COUNT ( ALL - - 22 ) + - COUNT ( * )
----
278460
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8102
SELECT - + 41 - + COUNT( * ), + 66 * - - 10 AS col0
----
-42
660

skipif mysql # not compatible
query II rowsort label-8102
SELECT - + 41 - + COUNT ( * ), + 66 * - - 10 AS col0
----
-42
660

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT ALL + + COUNT( * ) - - 5 + + - 22 + - + 88 AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL + + COUNT ( * ) - - 5 + + - 22 + - + 88 AS col2
----
-104

query I rowsort
SELECT + - 30 * - 14
----
420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8105
SELECT - 23 * - 21 DIV + COUNT( * ) AS col0
----
483

skipif mysql # not compatible
query I rowsort label-8105
SELECT - 23 * - 21 / + COUNT ( * ) AS col0
----
483

query II rowsort
SELECT - + 91 * - + 31 AS col0, 75 + + + 53
----
2821
128

onlyif mysql # DIV for integer division: 
query I rowsort label-8107
SELECT ALL + 86 DIV + 46
----
1

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL + 86 / + 46
----
1

query I rowsort
SELECT - 81 + 86 + 49 * 7 + - ( - 46 ) + 4
----
398

onlyif mysql # aggregate syntax: 
query II rowsort label-8109
SELECT - 50 - - 29 - + + 19 * 71, MAX( DISTINCT + 45 ) col1
----
-1370
45

skipif mysql # not compatible
query II rowsort label-8109
SELECT - 50 - - 29 - + + 19 * 71, MAX ( DISTINCT + 45 ) col1
----
-1370
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8110
SELECT DISTINCT + - MAX( 8 ) DIV 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT + - MAX ( 8 ) / 47 AS col1
----
0

query I rowsort
SELECT DISTINCT - 27 * + 90
----
-2430

query II rowsort
SELECT ALL - 55 + - 39 + + 57, 34 * 93 AS col1
----
-37
3162

query II rowsort
SELECT ALL + 76 AS col0, 74 * - - 5 col0
----
76
370

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT + CASE - 13 WHEN + + 8 THEN + 24 / - + 25 * + 10 - + - ( - COUNT( * ) ) + - + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT + CASE - 13 WHEN + + 8 THEN + 24 / - + 25 * + 10 - + - ( - COUNT ( * ) ) + - + 99 END
----
NULL

query I rowsort
SELECT + 8 + + + 41 * + 66 + - 44
----
2670

onlyif mysql # DIV for integer division: 
query I rowsort label-8116
SELECT ALL - 40 DIV - + 81 * 53 + 98 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL - 40 / - + 81 * 53 + 98 AS col1
----
98

query I rowsort
SELECT - 37 + - 57
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8118
SELECT 10 * - 16 + - + 13 - + - CAST( NULL AS SIGNED ) + - 31 AS col1, - 63 * + 87 + - + ( + - 33 )
----
NULL
-5448

skipif mysql # not compatible
query II rowsort label-8118
SELECT 10 * - 16 + - + 13 - + - CAST ( NULL AS INTEGER ) + - 31 AS col1, - 63 * + 87 + - + ( + - 33 )
----
NULL
-5448

query I rowsort
SELECT - 72 * - + COALESCE ( 68, + 30 )
----
4896

onlyif mysql # DIV for integer division: 
query I rowsort label-8120
SELECT ALL + 30 DIV + 64 + + - ( 83 ) * + - 95 * ( 31 )
----
244435

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL + 30 / + 64 + + - ( 83 ) * + - 95 * ( 31 )
----
244435

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT ALL + 91 * - 61 * - 85 + + MAX( DISTINCT + 95 ) * 82 AS col1
----
479625

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL + 91 * - 61 * - 85 + + MAX ( DISTINCT + 95 ) * 82 AS col1
----
479625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8122
SELECT DISTINCT - COUNT( * ) * + 13 + + + 33 + + 4 - + 7 * + 38 * - - COALESCE ( - NULLIF ( - 35, + 6 ), + + CAST( COUNT( * ) AS SIGNED ) * 66 - MIN( - - 2 ) DIV SUM( - 7 ) )
----
-9286

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT - COUNT ( * ) * + 13 + + + 33 + + 4 - + 7 * + 38 * - - COALESCE ( - NULLIF ( - 35, + 6 ), + + CAST ( COUNT ( * ) AS INTEGER ) * 66 - MIN ( - - 2 ) / SUM ( - 7 ) )
----
-9286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8123
SELECT DISTINCT + 47 * 1 * + 75 + - CAST( COUNT( * ) AS SIGNED ) * - - 8 AS col1, - COUNT( * )
----
3517
-1

skipif mysql # not compatible
query II rowsort label-8123
SELECT DISTINCT + 47 * 1 * + 75 + - CAST ( COUNT ( * ) AS INTEGER ) * - - 8 AS col1, - COUNT ( * )
----
3517
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8124
SELECT ALL 53 * - 69 DIV - + COUNT( * )
----
3657

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL 53 * - 69 / - + COUNT ( * )
----
3657

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT DISTINCT ( + COALESCE ( 13, + SUM( - - ( - - 6 ) ) ) ) * + 66
----
858

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT ( + COALESCE ( 13, + SUM ( - - ( - - 6 ) ) ) ) * + 66
----
858

query I rowsort
SELECT 75 * - 8 + - NULLIF ( + - 49, + + 70 )
----
-551

query II rowsort
SELECT + ( + 59 ) * 20 AS col1, - 94 AS col0
----
1180
-94

query I rowsort
SELECT ALL ( + 76 ) * - - 14
----
1064

query I rowsort
SELECT + - CASE - 81 WHEN - 86 * - 57 THEN + - 36 - + - 71 WHEN - 55 THEN NULL ELSE + 14 END * + 97 * + - 81 - + 23
----
109975

onlyif mysql # aggregate syntax: 
query II rowsort label-8130
SELECT + COUNT( * ) + 91 + - + COUNT( * ) AS col0, - 65
----
91
-65

skipif mysql # not compatible
query II rowsort label-8130
SELECT + COUNT ( * ) + 91 + - + COUNT ( * ) AS col0, - 65
----
91
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8131
SELECT ALL 71 * + AVG ( ALL + CAST( NULL AS DECIMAL ) ) - + COUNT( * ) - + - CAST( - 29 AS SIGNED ) / + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL 71 * + AVG ( ALL + CAST ( NULL AS REAL ) ) - + COUNT ( * ) - + - CAST ( - 29 AS INTEGER ) / + 79
----
NULL

query I rowsort
SELECT DISTINCT - 89 * + NULLIF ( - + 39, 12 ) AS col0
----
3471

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8133
SELECT DISTINCT 11 DIV COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8133
SELECT DISTINCT 11 / COUNT ( * ) AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-8134
SELECT + 99 + - + 14 + - 84 DIV 59
----
84

skipif mysql # not compatible
query I rowsort label-8134
SELECT + 99 + - + 14 + - 84 / 59
----
84

query I rowsort
SELECT - 21 * + 40
----
-840

query I rowsort
SELECT DISTINCT + 56 * - - 79 AS col0
----
4424

query I rowsort
SELECT DISTINCT + 12 * - + 67 + 81 AS col2
----
-723

query I rowsort
SELECT ALL + 54 + + 42 + 66 + - - 34 + + 97 AS col1
----
293

onlyif mysql # DIV for integer division: 
query I rowsort label-8139
SELECT DISTINCT - 32 + - 9 DIV - 47 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT - 32 + - 9 / - 47 AS col0
----
-32

query I rowsort
SELECT DISTINCT 3 + - 78 - - 95 - CASE + AVG ( - 65 ) WHEN - 36 THEN + 66 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8141
SELECT - 33 AS col2, - CASE + ( + 54 ) WHEN 68 + - 23 THEN NULL WHEN - COUNT( * ) THEN + 50 / + COUNT( * ) * - 32 ELSE NULL END AS col0
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-8141
SELECT - 33 AS col2, - CASE + ( + 54 ) WHEN 68 + - 23 THEN NULL WHEN - COUNT ( * ) THEN + 50 / + COUNT ( * ) * - 32 ELSE NULL END AS col0
----
-33
NULL

query I rowsort
SELECT ALL - 50 + + - 24
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT DISTINCT - COUNT( * ) + - ( - SUM( DISTINCT - - 2 ) ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT - COUNT ( * ) + - ( - SUM ( DISTINCT - - 2 ) ) - + COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8144
SELECT 31 AS col0, + 43 DIV + - 10
----
31
-4

skipif mysql # not compatible
query II rowsort label-8144
SELECT 31 AS col0, + 43 / + - 10
----
31
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8145
SELECT ALL 92 AS col1, 72 * + 20 DIV - + COUNT( * )
----
92
-1440

skipif mysql # not compatible
query II rowsort label-8145
SELECT ALL 92 AS col1, 72 * + 20 / - + COUNT ( * )
----
92
-1440

onlyif mysql # DIV for integer division: 
query I rowsort label-8146
SELECT 5 - + - 68 DIV + 1 col0
----
73

skipif mysql # not compatible
query I rowsort label-8146
SELECT 5 - + - 68 / + 1 col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8147
SELECT ALL - CAST( + 33 AS SIGNED ) * - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL - CAST ( + 33 AS INTEGER ) * - COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT ALL - CASE SUM( + 78 ) WHEN + ( + ( - 85 ) ) THEN + + 40 - + + 83 WHEN - 93 * - 45 THEN NULL END / - 42 * + - 19 * + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL - CASE SUM ( + 78 ) WHEN + ( + ( - 85 ) ) THEN + + 40 - + + 83 WHEN - 93 * - 45 THEN NULL END / - 42 * + - 19 * + 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT ALL + COUNT( * ) + 13 - + 70 * - CASE - 0 WHEN - 3 THEN + + 47 WHEN - 60 * - MIN( - 5 ) * + 22 + + ( - - 13 ) + - ( + + 4 ) + - + CASE - 85 WHEN COUNT( * ) * + ( 85 ) + - + 46 THEN COUNT( * ) ELSE COUNT( - ( + 2 ) ) END THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL + COUNT ( * ) + 13 - + 70 * - CASE - 0 WHEN - 3 THEN + + 47 WHEN - 60 * - MIN ( - 5 ) * + 22 + + ( - - 13 ) + - ( + + 4 ) + - + CASE - 85 WHEN COUNT ( * ) * + ( 85 ) + - + 46 THEN COUNT ( * ) ELSE COUNT ( - ( + 2 ) ) END THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8150
SELECT + 57, + NULLIF ( - 22, + 69 * + NULLIF ( - 29, + 17 ) + CAST( - + 32 AS SIGNED ) + - ( - COUNT( * ) ) ) AS col1
----
57
-22

skipif mysql # not compatible
query II rowsort label-8150
SELECT + 57, + NULLIF ( - 22, + 69 * + NULLIF ( - 29, + 17 ) + CAST ( - + 32 AS INTEGER ) + - ( - COUNT ( * ) ) ) AS col1
----
57
-22

query I rowsort
SELECT ALL + 79 * 19 * 94 AS col2
----
141094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8152
SELECT - COUNT( * ) * + NULLIF ( 60, MAX( DISTINCT 23 ) ) + + 43 - - COALESCE ( - - 79, + CAST( + 34 AS DECIMAL ) ) - + + 81 * + CAST( NULL AS SIGNED ) + - - 8 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8152
SELECT - COUNT ( * ) * + NULLIF ( 60, MAX ( DISTINCT 23 ) ) + + 43 - - COALESCE ( - - 79, + CAST ( + 34 AS REAL ) ) - + + 81 * + CAST ( NULL AS INTEGER ) + - - 8 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT 49 - + NULLIF ( COUNT( * ), 17 * 76 )
----
48

skipif mysql # not compatible
query I rowsort label-8153
SELECT 49 - + NULLIF ( COUNT ( * ), 17 * 76 )
----
48

query III rowsort
SELECT 47 AS col0, - 54, 52 AS col2
----
47
-54
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT ALL + MIN( - 56 ) * - 68 * - - ( - 17 ) * 54 AS col0
----
-3495744

skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL + MIN ( - 56 ) * - 68 * - - ( - 17 ) * 54 AS col0
----
-3495744

query I rowsort
SELECT 27 * 62
----
1674

query II rowsort
SELECT 39 + 29 - - 76 + - 91 * - 26 * + 86 - 35 AS col1, + 79
----
203585
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8158
SELECT DISTINCT - 50 AS col0, + 88 * CASE CAST( NULL AS SIGNED ) WHEN - COALESCE ( + AVG ( + 21 ), + 46 + - 23 + + - 20, 65 ) THEN + NULLIF ( 55, - 20 + 48 ) WHEN - 57 + + + 91 THEN NULL END + + - 25 + - + 69 + + CASE - COUNT( * ) WHEN + - 51 / 71 + - - 69 - + - 77 THEN + 54 END * + COUNT( * )
----
-50
NULL

skipif mysql # not compatible
query II rowsort label-8158
SELECT DISTINCT - 50 AS col0, + 88 * CASE CAST ( NULL AS INTEGER ) WHEN - COALESCE ( + AVG ( + 21 ), + 46 + - 23 + + - 20, 65 ) THEN + NULLIF ( 55, - 20 + 48 ) WHEN - 57 + + + 91 THEN NULL END + + - 25 + - + 69 + + CASE - COUNT ( * ) WHEN + - 51 / 71 + - - 69 - + - 77 THEN + 54 END * + COUNT ( * )
----
-50
NULL

query I rowsort
SELECT ALL - 29 - + + 14 col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT + SUM( + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-8160
SELECT + SUM ( + 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT + 60 * + SUM( ALL 96 ) AS col2
----
5760

skipif mysql # not compatible
query I rowsort label-8161
SELECT + 60 * + SUM ( ALL 96 ) AS col2
----
5760

query I rowsort
SELECT ALL 0 * + - 52 * + 5 AS col0
----
0

query II rowsort
SELECT ALL - 89, - 76 + - 25 AS col1
----
-89
-101

query II rowsort
SELECT + 0 col1, 83
----
0
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT - COUNT( * ) * 90 * + 53
----
-4770

skipif mysql # not compatible
query I rowsort label-8165
SELECT - COUNT ( * ) * 90 * + 53
----
-4770

query I rowsort
SELECT - 96 * 19 + - + 20 AS col0
----
-1844

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8167
SELECT ALL CASE + - 41 WHEN 48 THEN + 5 * - + 69 END * 24 * + 37 / NULLIF ( - - COALESCE ( - 4, CAST( NULL AS SIGNED ) ), - + 93 ) AS col1, + 21 AS col0
----
NULL
21

skipif mysql # not compatible
query II rowsort label-8167
SELECT ALL CASE + - 41 WHEN 48 THEN + 5 * - + 69 END * 24 * + 37 / NULLIF ( - - COALESCE ( - 4, CAST ( NULL AS INTEGER ) ), - + 93 ) AS col1, + 21 AS col0
----
NULL
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8168
SELECT - SUM( - + CAST( + - 85 AS SIGNED ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-8168
SELECT - SUM ( - + CAST ( + - 85 AS INTEGER ) ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-8169
SELECT ALL COUNT( * ), 29 col2
----
1
29

skipif mysql # not compatible
query II rowsort label-8169
SELECT ALL COUNT ( * ), 29 col2
----
1
29

query I rowsort
SELECT DISTINCT + - 34 + 26 + - 82
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT DISTINCT - COUNT( * ) * - 54 col2
----
54

skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT - COUNT ( * ) * - 54 col2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8172
SELECT 40 - + 25 - + - 11 DIV + 62 * - 22
----
15

skipif mysql # not compatible
query I rowsort label-8172
SELECT 40 - + 25 - + - 11 / + 62 * - 22
----
15

onlyif mysql # DIV for integer division: 
query II rowsort label-8173
SELECT - 43 + - 72 AS col1, + 72 DIV + 78 * 40 + + 81 AS col0
----
-115
81

skipif mysql # not compatible
query II rowsort label-8173
SELECT - 43 + - 72 AS col1, + 72 / + 78 * 40 + + 81 AS col0
----
-115
81

query I rowsort
SELECT ALL 14 + + 42 - 12 AS col0
----
44

query I rowsort
SELECT 95 + - 22 col1
----
73

query I rowsort
SELECT ( + 56 ) + + + 35 AS col0
----
91

query I rowsort
SELECT 40 - + 37
----
3

query II rowsort
SELECT ALL ( + 75 ) * - 42 + - - ( 90 ) + + ( - 61 ) AS col1, 53 - 40 AS col1
----
-3121
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT DISTINCT + SUM( ALL - 2 ) * 97 AS col1
----
-194

skipif mysql # not compatible
query I rowsort label-8179
SELECT DISTINCT + SUM ( ALL - 2 ) * 97 AS col1
----
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT ALL ( - 70 ) + COUNT( * ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL ( - 70 ) + COUNT ( * ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-8181
SELECT DISTINCT COUNT( * ) + - 70 AS col2, 63 AS col1
----
-69
63

skipif mysql # not compatible
query II rowsort label-8181
SELECT DISTINCT COUNT ( * ) + - 70 AS col2, 63 AS col1
----
-69
63

query I rowsort
SELECT ALL + 92 - + - 55
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8183
SELECT DISTINCT 7 * - 19 AS col2, + 33 + + COALESCE ( 35, + + CAST( NULL AS SIGNED ), 27 )
----
-133
68

skipif mysql # not compatible
query II rowsort label-8183
SELECT DISTINCT 7 * - 19 AS col2, + 33 + + COALESCE ( 35, + + CAST ( NULL AS INTEGER ), 27 )
----
-133
68

query II rowsort
SELECT 20 * - 59 AS col1, 68
----
-1180
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8185
SELECT SUM( + + 25 ), MAX( - + ( + CAST( NULL AS SIGNED ) ) ) * + 41 * - COALESCE ( + 47, - 87 * 96 + + + COUNT( * ) - 21, + - COUNT( * ) * - + 58, 27 * ( + AVG ( - + 92 ) ) + - 12 ) + - - 74 * - - 74 + - COUNT( * ) * - - 86 AS col2
----
25
NULL

skipif mysql # not compatible
query II rowsort label-8185
SELECT SUM ( + + 25 ), MAX ( - + ( + CAST ( NULL AS INTEGER ) ) ) * + 41 * - COALESCE ( + 47, - 87 * 96 + + + COUNT ( * ) - 21, + - COUNT ( * ) * - + 58, 27 * ( + AVG ( - + 92 ) ) + - 12 ) + - - 74 * - - 74 + - COUNT ( * ) * - - 86 AS col2
----
25
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8186
SELECT 75 DIV + - 64 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8186
SELECT 75 / + - 64 AS col0
----
-1

query I rowsort
SELECT 84 * 99 + + 18 AS col1
----
8334

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT ALL - + 16 * - 14 + COUNT( * )
----
225

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL - + 16 * - 14 + COUNT ( * )
----
225

query I rowsort
SELECT DISTINCT - + 74 * + + 71 AS col1
----
-5254

query I rowsort
SELECT 42 * - 31 * ( CASE + - 66 WHEN - 15 + 86 * + 7 THEN 65 ELSE + 10 END ) + + 80 - + 83 + + - 44 + 15 AS col1
----
-13052

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT + SUM( + 48 ) * - - 79 - - - 33 col1
----
3759

skipif mysql # not compatible
query I rowsort label-8191
SELECT + SUM ( + 48 ) * - - 79 - - - 33 col1
----
3759

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT + COUNT( * ) + + COUNT( * ) col2
----
2

skipif mysql # not compatible
query I rowsort label-8192
SELECT + COUNT ( * ) + + COUNT ( * ) col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT + 20 * + COUNT( * ) * - + 45 - + - MIN( - 46 ) AS col2
----
-946

skipif mysql # not compatible
query I rowsort label-8193
SELECT + 20 * + COUNT ( * ) * - + 45 - + - MIN ( - 46 ) AS col2
----
-946

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8194
SELECT CAST( - 19 AS SIGNED ) AS col0, + COUNT( * ) * - COUNT( ALL 2 )
----
-19
-1

skipif mysql # not compatible
query II rowsort label-8194
SELECT CAST ( - 19 AS INTEGER ) AS col0, + COUNT ( * ) * - COUNT ( ALL 2 )
----
-19
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT ALL + 87 + - + MIN( DISTINCT + - 73 )
----
160

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL + 87 + - + MIN ( DISTINCT + - 73 )
----
160

query I rowsort
SELECT ALL + + ( + + 30 ) col2
----
30

query I rowsort
SELECT - 61 * 10 * + - 17
----
10370

query I rowsort
SELECT ALL - + 44 + - 16 + 62 + ( + 64 ) + - + CASE - 39 WHEN - 58 THEN 6 / + 74 + - + 66 * + 32 WHEN 37 THEN NULL WHEN - 11 * + 88 THEN NULL END - - 98 / + 96 + - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT ALL COUNT( * ) + 49
----
50

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL COUNT ( * ) + 49
----
50

query I rowsort
SELECT - 83 + + - ( - 8 ) + 90 + 74
----
89

query I rowsort
SELECT ALL + + 32 + - 93 AS col0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8202
SELECT - 27 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8202
SELECT - 27 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8203
SELECT + - CASE - COUNT( * ) WHEN + + 7 THEN - 51 + CAST( NULL AS SIGNED ) + 19 * + 15 END + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-8203
SELECT + - CASE - COUNT ( * ) WHEN + + 7 THEN - 51 + CAST ( NULL AS INTEGER ) + 19 * + 15 END + 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT ALL + - ( + NULLIF ( + + ( + + 79 ), + 29 * - 77 + 19 ) ) + + COUNT( * ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL + - ( + NULLIF ( + + ( + + 79 ), + 29 * - 77 + 19 ) ) + + COUNT ( * ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-8205
SELECT - 78 AS col2, COUNT( * ) AS col2
----
-78
1

skipif mysql # not compatible
query II rowsort label-8205
SELECT - 78 AS col2, COUNT ( * ) AS col2
----
-78
1

query I rowsort
SELECT - 97 * + 15 AS col2
----
-1455

query I rowsort
SELECT + 2 + - 17 AS col0
----
-15

query I rowsort
SELECT ALL 8 * - 50 AS col0
----
-400

query I rowsort
SELECT DISTINCT - 78 * 85
----
-6630

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT ALL + COUNT( * ) + 70 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL + COUNT ( * ) + 70 AS col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-8211
SELECT - COUNT( * ), 69 * 38 AS col0
----
-1
2622

skipif mysql # not compatible
query II rowsort label-8211
SELECT - COUNT ( * ), 69 * 38 AS col0
----
-1
2622

query I rowsort
SELECT + 67 * - + 58
----
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT + COUNT( * ) * + 28
----
28

skipif mysql # not compatible
query I rowsort label-8213
SELECT + COUNT ( * ) * + 28
----
28

query I rowsort
SELECT + 60 + - - 9
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT + COUNT( * ) * + + 19
----
19

skipif mysql # not compatible
query I rowsort label-8215
SELECT + COUNT ( * ) * + + 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT + 13 * + - 58 * 84 * - + 4 * - 28 * - + NULLIF ( + ( - 22 ), COUNT( * ) + + 95 + + 47 / - + 32 * + - 65 / COUNT( * ) * + - 22 )
----
-156059904

skipif mysql # not compatible
query I rowsort label-8216
SELECT + 13 * + - 58 * 84 * - + 4 * - 28 * - + NULLIF ( + ( - 22 ), COUNT ( * ) + + 95 + + 47 / - + 32 * + - 65 / COUNT ( * ) * + - 22 )
----
-156059904

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT + 83 - - - NULLIF ( - 63, + + 72 / + 42 ) * COUNT( * ) AS col1
----
146

skipif mysql # not compatible
query I rowsort label-8217
SELECT + 83 - - - NULLIF ( - 63, + + 72 / + 42 ) * COUNT ( * ) AS col1
----
146

query I rowsort
SELECT DISTINCT 53 * 96
----
5088

query I rowsort
SELECT + 77 * - - COALESCE ( 84, + 20 - 26 * + 31 * 31, - 57 )
----
6468

query I rowsort
SELECT ALL - 16 * - 95 AS col0
----
1520

onlyif mysql # DIV for integer division: 
query I rowsort label-8221
SELECT DISTINCT 0 * 55 DIV + ( + + 58 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT 0 * 55 / + ( + + 58 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT + - CASE SUM( 21 ) WHEN + COALESCE ( + + 63, - - 66 / - - 95 * + 89 ) * + + SUM( ALL - + 61 ) THEN + 4 / + 5 WHEN + 63 * - 12 / - 62 * 30 / - 2 * 15 - AVG ( - NULLIF ( - - 64, - 68 * + + 47 ) ) + 50 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8222
SELECT + - CASE SUM ( 21 ) WHEN + COALESCE ( + + 63, - - 66 / - - 95 * + 89 ) * + + SUM ( ALL - + 61 ) THEN + 4 / + 5 WHEN + 63 * - 12 / - 62 * 30 / - 2 * 15 - AVG ( - NULLIF ( - - 64, - 68 * + + 47 ) ) + 50 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8223
SELECT + CAST( NULL AS SIGNED ) - - 98 - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8223
SELECT + CAST ( NULL AS INTEGER ) - - 98 - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 68 * + + 19 * - 10
----
-12920

query I rowsort
SELECT + - ( + 28 ) * 93 * + 6 * + + 36 col1
----
-562464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8226
SELECT - - 57 * - - 36 DIV COUNT( * ) * + COUNT( * )
----
2052

skipif mysql # not compatible
query I rowsort label-8226
SELECT - - 57 * - - 36 / COUNT ( * ) * + COUNT ( * )
----
2052

query I rowsort
SELECT ALL - 52 * + 50 AS col0
----
-2600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8228
SELECT + 51, - NULLIF ( ( CASE - SUM( ALL + CAST( 94 AS SIGNED ) ) WHEN - MAX( DISTINCT - 33 ) THEN NULL ELSE - + 75 END ), ( 85 ) ) AS col2
----
51
75

skipif mysql # not compatible
query II rowsort label-8228
SELECT + 51, - NULLIF ( ( CASE - SUM ( ALL + CAST ( 94 AS INTEGER ) ) WHEN - MAX ( DISTINCT - 33 ) THEN NULL ELSE - + 75 END ), ( 85 ) ) AS col2
----
51
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8229
SELECT - CAST( + 91 AS SIGNED ) col2
----
-91

skipif mysql # not compatible
query I rowsort label-8229
SELECT - CAST ( + 91 AS INTEGER ) col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT - 87 + 68 / CASE COUNT( * ) WHEN + 46 * 24 THEN - + 57 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT - 87 + 68 / CASE COUNT ( * ) WHEN + 46 * 24 THEN - + 57 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8231
SELECT DISTINCT - + 49 * + + 54 + 77 DIV + + 28 AS col0
----
-2644

skipif mysql # not compatible
query I rowsort label-8231
SELECT DISTINCT - + 49 * + + 54 + 77 / + + 28 AS col0
----
-2644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8232
SELECT ALL + - CAST( + 63 AS SIGNED ) * 90 * - 28 * + + COUNT( * ) * + + 85 + + + 83 + + - CAST( NULL AS SIGNED ) + 16 * - COALESCE ( MIN( + 66 ), + 94 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL + - CAST ( + 63 AS INTEGER ) * 90 * - 28 * + + COUNT ( * ) * + + 85 + + + 83 + + - CAST ( NULL AS INTEGER ) + 16 * - COALESCE ( MIN ( + 66 ), + 94 ) AS col1
----
NULL

query I rowsort
SELECT - + 30 * - + 62 AS col0
----
1860

onlyif mysql # DIV for integer division: 
query I rowsort label-8234
SELECT DISTINCT + 25 DIV + 17
----
1

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT + 25 / + 17
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT ALL + CASE - + 17 WHEN + - COUNT( * ) THEN + 43 + - 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL + CASE - + 17 WHEN + - COUNT ( * ) THEN + 43 + - 83 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8236
SELECT + + 77 AS col0, CAST( - SUM( + 66 ) AS SIGNED ) DIV + 97 * + - 2 AS col1
----
77
0

skipif mysql # not compatible
query II rowsort label-8236
SELECT + + 77 AS col0, CAST ( - SUM ( + 66 ) AS INTEGER ) / + 97 * + - 2 AS col1
----
77
0

query I rowsort
SELECT ALL + 92 * 45 col2
----
4140

query I rowsort
SELECT + + 86 + + - 90 AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8239
SELECT - + 81 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-8239
SELECT - + 81 / 82
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8240
SELECT ALL - + 63 * 53 DIV - + 1 + - - 18
----
3357

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL - + 63 * 53 / - + 1 + - - 18
----
3357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8241
SELECT + 20 - - 15 DIV - CASE - - SUM( ALL - 77 ) WHEN CAST( NULL AS SIGNED ) THEN - COUNT( * ) * - - 93 WHEN - - 1 THEN NULL ELSE - 57 END
----
20

skipif mysql # not compatible
query I rowsort label-8241
SELECT + 20 - - 15 / - CASE - - SUM ( ALL - 77 ) WHEN CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) * - - 93 WHEN - - 1 THEN NULL ELSE - 57 END
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT + NULLIF ( - 77, 82 * COUNT( * ) + + COUNT( * ) )
----
-77

skipif mysql # not compatible
query I rowsort label-8242
SELECT + NULLIF ( - 77, 82 * COUNT ( * ) + + COUNT ( * ) )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8243
SELECT - 34 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8243
SELECT - 34 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8244
SELECT - 47 + + + SUM( DISTINCT + 90 ) - - 27 + - + COUNT( * ) - COUNT( * ) AS col1, 57 - + 39 * + + 11 col1
----
68
-372

skipif mysql # not compatible
query II rowsort label-8244
SELECT - 47 + + + SUM ( DISTINCT + 90 ) - - 27 + - + COUNT ( * ) - COUNT ( * ) AS col1, 57 - + 39 * + + 11 col1
----
68
-372

query I rowsort
SELECT - 67 - + 35 * - 82 AS col1
----
2803

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8246
SELECT ALL ( + CASE + - 41 WHEN - + CASE + + 35 WHEN + CASE 18 WHEN + 48 THEN + 94 WHEN - 22 * - 92 + + + AVG ( ALL - 2 ) * + - 68 THEN NULL ELSE NULL END THEN COUNT( * ) WHEN 10 + - 65 THEN - MIN( ALL + 78 ) WHEN + CAST( NULL AS SIGNED ) THEN - 83 * + CASE - 50 WHEN - 48 THEN ( - ( 33 ) ) / 67 * - 21 END - - 47 ELSE NULL END THEN 3 / - 51 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL ( + CASE + - 41 WHEN - + CASE + + 35 WHEN + CASE 18 WHEN + 48 THEN + 94 WHEN - 22 * - 92 + + + AVG ( ALL - 2 ) * + - 68 THEN NULL ELSE NULL END THEN COUNT ( * ) WHEN 10 + - 65 THEN - MIN ( ALL + 78 ) WHEN + CAST ( NULL AS INTEGER ) THEN - 83 * + CASE - 50 WHEN - 48 THEN ( - ( 33 ) ) / 67 * - 21 END - - 47 ELSE NULL END THEN 3 / - 51 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8247
SELECT - 43 - + CAST( COUNT( * ) AS SIGNED ) DIV - + 11 + 51
----
8

skipif mysql # not compatible
query I rowsort label-8247
SELECT - 43 - + CAST ( COUNT ( * ) AS INTEGER ) / - + 11 + 51
----
8

query I rowsort
SELECT - 55 * - 42 AS col1
----
2310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8249
SELECT - NULLIF ( SUM( + 91 ), + 1 ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8249
SELECT - NULLIF ( SUM ( + 91 ), + 1 ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 29 * + 34 AS col2
----
986

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT - 7 + + SUM( DISTINCT 49 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-8251
SELECT - 7 + + SUM ( DISTINCT 49 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-8252
SELECT DISTINCT 54 * + 89, NULLIF ( NULLIF ( + - 27, - 80 + + 88 ), 85 ) + + + MAX( - 47 ) AS col0
----
4806
-74

skipif mysql # not compatible
query II rowsort label-8252
SELECT DISTINCT 54 * + 89, NULLIF ( NULLIF ( + - 27, - 80 + + 88 ), 85 ) + + + MAX ( - 47 ) AS col0
----
4806
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8253
SELECT - MIN( ALL + 35 ) DIV + - 86 + 33 + - 50 + 55 * 36
----
1963

skipif mysql # not compatible
query I rowsort label-8253
SELECT - MIN ( ALL + 35 ) / + - 86 + 33 + - 50 + 55 * 36
----
1963

query II rowsort
SELECT DISTINCT + 12 * 29, 7 + 70 + + + 49 * 40 AS col0
----
348
2037

query I rowsort
SELECT ALL - 57 * + 40
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT DISTINCT + 3 + + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-8256
SELECT DISTINCT + 3 + + COUNT ( * )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8257
SELECT + 73 * + ( - CAST( - - 87 AS SIGNED ) ) + 35 AS col0
----
-6316

skipif mysql # not compatible
query I rowsort label-8257
SELECT + 73 * + ( - CAST ( - - 87 AS INTEGER ) ) + 35 AS col0
----
-6316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8258
SELECT - COUNT( * ) / + - CASE + CAST( NULL AS DECIMAL ) WHEN 91 - + 40 * - NULLIF ( + + COALESCE ( + + 82, - 34 + - - 77, - MAX( 63 ) + 92 + + 11 * + 1 - + + CAST( NULL AS SIGNED ) - + 95 * - 15 ), - 57 ) THEN - - 87 * - + 92 WHEN - + 65 + - - 93 THEN NULL END * + + ( 20 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8258
SELECT - COUNT ( * ) / + - CASE + CAST ( NULL AS REAL ) WHEN 91 - + 40 * - NULLIF ( + + COALESCE ( + + 82, - 34 + - - 77, - MAX ( 63 ) + 92 + + 11 * + 1 - + + CAST ( NULL AS INTEGER ) - + 95 * - 15 ), - 57 ) THEN - - 87 * - + 92 WHEN - + 65 + - - 93 THEN NULL END * + + ( 20 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8259
SELECT ALL 32 / + 27 + - 19 * - 47 - + CAST( NULL AS SIGNED ) + + - 37 * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL 32 / + 27 + - 19 * - 47 - + CAST ( NULL AS INTEGER ) + + - 37 * + 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8260
SELECT 1 / - 51 + - COUNT( * ) * CAST( NULL AS SIGNED ) * + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8260
SELECT 1 / - 51 + - COUNT ( * ) * CAST ( NULL AS INTEGER ) * + 58
----
NULL

query I rowsort
SELECT ALL 32 + 3 AS col2
----
35

query I rowsort
SELECT + NULLIF ( - + 59, + 15 + 0 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT ALL 46 * + + ( + 64 ) * COUNT( * ) AS col2
----
2944

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL 46 * + + ( + 64 ) * COUNT ( * ) AS col2
----
2944

query I rowsort
SELECT 51 * + + 60 + + 92
----
3152

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT ALL + 40 + COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL + 40 + COUNT ( * ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT + + CASE 94 WHEN - 34 + COUNT( DISTINCT - 12 ) THEN NULL WHEN MAX( DISTINCT - 88 ) + - + 37 THEN - 92 WHEN COUNT( * ) + 35 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8266
SELECT + + CASE 94 WHEN - 34 + COUNT ( DISTINCT - 12 ) THEN NULL WHEN MAX ( DISTINCT - 88 ) + - + 37 THEN - 92 WHEN COUNT ( * ) + 35 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT ALL - MIN( - + 70 ) + + 27 * + - 5 + - 66 + + - 5 AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL - MIN ( - + 70 ) + + 27 * + - 5 + - 66 + + - 5 AS col0
----
-136

query I rowsort
SELECT DISTINCT - - 8 AS col2
----
8

query I rowsort
SELECT ALL + 96 * + - 10
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT DISTINCT NULLIF ( COALESCE ( - 67, - 68, - CASE - COUNT( 64 ) WHEN - - COUNT( * ) * ( + + NULLIF ( + - COUNT( * ), - ( + - 56 ) + - 85 + + 17 + - - 18 ) ) THEN + 57 END - + 42 ), 95 ) + + 5 - - + 8 - + COUNT( * ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT NULLIF ( COALESCE ( - 67, - 68, - CASE - COUNT ( 64 ) WHEN - - COUNT ( * ) * ( + + NULLIF ( + - COUNT ( * ), - ( + - 56 ) + - 85 + + 17 + - - 18 ) ) THEN + 57 END - + 42 ), 95 ) + + 5 - - + 8 - + COUNT ( * ) col2
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-8271
SELECT + CASE - 21 WHEN 49 * - ( + 82 ) THEN - + 90 + + AVG ( DISTINCT + 46 ) WHEN 75 THEN 26 * - 80 + NULLIF ( - - 38, - COUNT( * ) ) ELSE NULL END AS col2, - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8271
SELECT + CASE - 21 WHEN 49 * - ( + 82 ) THEN - + 90 + + AVG ( DISTINCT + 46 ) WHEN 75 THEN 26 * - 80 + NULLIF ( - - 38, - COUNT ( * ) ) ELSE NULL END AS col2, - COUNT ( * ) AS col0
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT ALL 35 + MAX( ALL 74 ) - - ( + + COALESCE ( 22, - - 3 ) ) + + - 42
----
89

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL 35 + MAX ( ALL 74 ) - - ( + + COALESCE ( 22, - - 3 ) ) + + - 42
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT - 86 * + 12 * + 54 * + 7 * + + COUNT( * ) + + 84
----
-390012

skipif mysql # not compatible
query I rowsort label-8273
SELECT - 86 * + 12 * + 54 * + 7 * + + COUNT ( * ) + + 84
----
-390012

query I rowsort
SELECT - + 83 * - - 36 - - + 93 col1
----
-2895

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT - COUNT( * ) + + + 8 * + 68 AS col2
----
543

skipif mysql # not compatible
query I rowsort label-8275
SELECT - COUNT ( * ) + + + 8 * + 68 AS col2
----
543

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8276
SELECT ALL + + ( + CAST( NULL AS SIGNED ) ) / CAST( - + 83 AS SIGNED ) / + + 8 + - - 41 * + 10 AS col2, - 90 AS col1
----
NULL
-90

skipif mysql # not compatible
query II rowsort label-8276
SELECT ALL + + ( + CAST ( NULL AS INTEGER ) ) / CAST ( - + 83 AS INTEGER ) / + + 8 + - - 41 * + 10 AS col2, - 90 AS col1
----
NULL
-90

query I rowsort
SELECT + + NULLIF ( + + 17, - ( 13 ) )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8278
SELECT ALL + CAST( NULL AS SIGNED ) - + - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL + CAST ( NULL AS INTEGER ) - + - 98 AS col1
----
NULL

query I rowsort
SELECT 34 * - 81 AS col2
----
-2754

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT 40 + - COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-8280
SELECT 40 + - COUNT ( * ) AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8281
SELECT CAST( NULL AS SIGNED ) / - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8281
SELECT CAST ( NULL AS INTEGER ) / - 84 AS col1
----
NULL

query I rowsort
SELECT 59 * - - 93 AS col2
----
5487

query I rowsort
SELECT 69 * + - 97 AS col0
----
-6693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8284
SELECT ALL SUM( ALL 4 ) * - 51 + CAST( NULL AS SIGNED ) * 72 / - + 68 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL SUM ( ALL 4 ) * - 51 + CAST ( NULL AS INTEGER ) * 72 / - + 68 col1
----
NULL

query I rowsort
SELECT DISTINCT + 43 * - 50
----
-2150

onlyif mysql # DIV for integer division: 
query II rowsort label-8286
SELECT ALL 65, + 23 DIV + + 98 * 1 AS col2
----
65
0

skipif mysql # not compatible
query II rowsort label-8286
SELECT ALL 65, + 23 / + + 98 * 1 AS col2
----
65
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT DISTINCT + 17 + + + COUNT( * ) + + - 98 + - + 77 * + - 42 * - ( + 60 )
----
-194120

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT + 17 + + + COUNT ( * ) + + - 98 + - + 77 * + - 42 * - ( + 60 )
----
-194120

onlyif mysql # aggregate syntax: 
query II rowsort label-8288
SELECT 81 + - 89 * COUNT( ALL 73 ) * - 99 * + + ( - MIN( DISTINCT + + 72 ) ), - 11 * + - 13 - - + 17 AS col0
----
-634311
160

skipif mysql # not compatible
query II rowsort label-8288
SELECT 81 + - 89 * COUNT ( ALL 73 ) * - 99 * + + ( - MIN ( DISTINCT + + 72 ) ), - 11 * + - 13 - - + 17 AS col0
----
-634311
160

query I rowsort
SELECT DISTINCT - 53 + - 50
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT ALL + 99 + 18 + - - 66 + + COUNT( * ) AS col1
----
184

skipif mysql # not compatible
query I rowsort label-8290
SELECT ALL + 99 + 18 + - - 66 + + COUNT ( * ) AS col1
----
184

query I rowsort
SELECT - 77 - + 57
----
-134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8292
SELECT 60 - + - 41 DIV + COUNT( * )
----
101

skipif mysql # not compatible
query I rowsort label-8292
SELECT 60 - + - 41 / + COUNT ( * )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT DISTINCT 35 + + COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-8293
SELECT DISTINCT 35 + + COUNT ( * ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT DISTINCT 39 + - + COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT 39 + - + COUNT ( * ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT ALL + 36 + - - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL + 36 + - - COUNT ( * )
----
37

query I rowsort
SELECT ALL + - 25 - + + 25
----
-50

query I rowsort
SELECT 63 * + + 8 AS col0
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT + - SUM( DISTINCT - 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-8298
SELECT + - SUM ( DISTINCT - 93 ) AS col2
----
93

query I rowsort
SELECT ALL + ( - 80 ) * 45
----
-3600

onlyif mysql # aggregate syntax: 
query II rowsort label-8300
SELECT DISTINCT 20 - + + 74 * + 53 + + COUNT( DISTINCT + + 65 ) * 19, 7 AS col0
----
-3883
7

skipif mysql # not compatible
query II rowsort label-8300
SELECT DISTINCT 20 - + + 74 * + 53 + + COUNT ( DISTINCT + + 65 ) * 19, 7 AS col0
----
-3883
7

query I rowsort
SELECT DISTINCT ( 87 ) * - NULLIF ( - 89, - 8 ) AS col2
----
7743

onlyif mysql # aggregate syntax: 
query II rowsort label-8302
SELECT ALL - 76, - MAX( ALL 85 ) col0
----
-76
-85

skipif mysql # not compatible
query II rowsort label-8302
SELECT ALL - 76, - MAX ( ALL 85 ) col0
----
-76
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT + MIN( + ( - - 45 ) )
----
45

skipif mysql # not compatible
query I rowsort label-8303
SELECT + MIN ( + ( - - 45 ) )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8304
SELECT ALL CAST( NULL AS SIGNED ) * + - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL CAST ( NULL AS INTEGER ) * + - 53 AS col0
----
NULL

query I rowsort
SELECT 30 + - + 91 AS col2
----
-61

query I rowsort
SELECT 69 * - ( + 92 ) AS col2
----
-6348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8307
SELECT ALL CAST( + 49 AS SIGNED ) * - 20 + 4 * COUNT( * ) DIV + - 30 * + 77 * + 57 AS col1
----
-980

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL CAST ( + 49 AS INTEGER ) * - 20 + 4 * COUNT ( * ) / + - 30 * + 77 * + 57 AS col1
----
-980

onlyif mysql # aggregate syntax: 
query II rowsort label-8308
SELECT DISTINCT 47 AS col1, COUNT( * ) * - SUM( + + 71 ) AS col0
----
47
-71

skipif mysql # not compatible
query II rowsort label-8308
SELECT DISTINCT 47 AS col1, COUNT ( * ) * - SUM ( + + 71 ) AS col0
----
47
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT COUNT( * ) + - 37 + - SUM( - 59 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-8309
SELECT COUNT ( * ) + - 37 + - SUM ( - 59 ) AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8310
SELECT DISTINCT - 75 DIV + + COUNT( * ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-8310
SELECT DISTINCT - 75 / + + COUNT ( * ) AS col0
----
-75

query I rowsort
SELECT 59 + + 1
----
60

query I rowsort
SELECT ALL 42 + + 49 AS col2
----
91

query I rowsort
SELECT ALL - 57 * - 51 AS col2
----
2907

query II rowsort
SELECT 75 + + 76, 14 * + 59 AS col0
----
151
826

query I rowsort
SELECT 81 * 84 AS col0
----
6804

query I rowsort
SELECT 84 + 55 + - 79 + + 26
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8317
SELECT ALL 12 + + 76 - CAST( NULL AS SIGNED ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL 12 + + 76 - CAST ( NULL AS INTEGER ) - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT ALL - 58 + + + COALESCE ( MIN( ALL + + 87 ), + 43 ) * + ( 17 ) + - 3 AS col2
----
1418

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL - 58 + + + COALESCE ( MIN ( ALL + + 87 ), + 43 ) * + ( 17 ) + - 3 AS col2
----
1418

query II rowsort
SELECT 25 AS col0, 53 - - + 7 * 7 AS col1
----
25
102

onlyif mysql # aggregate syntax: 
query II rowsort label-8320
SELECT - 2, - 5 + - CASE + 16 WHEN - 54 THEN NULL WHEN + ( 74 ) THEN NULL WHEN - 11 + - + ( - + 19 ) THEN NULL WHEN 58 + - + MAX( DISTINCT + 10 ) + COUNT( * ) THEN + 69 ELSE NULL END + 8 + - 63 * - + 9 AS col0
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-8320
SELECT - 2, - 5 + - CASE + 16 WHEN - 54 THEN NULL WHEN + ( 74 ) THEN NULL WHEN - 11 + - + ( - + 19 ) THEN NULL WHEN 58 + - + MAX ( DISTINCT + 10 ) + COUNT ( * ) THEN + 69 ELSE NULL END + 8 + - 63 * - + 9 AS col0
----
-2
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8321
SELECT + - 26 + MAX( ALL + 91 ) + CAST( + + 73 AS SIGNED ) AS col0
----
138

skipif mysql # not compatible
query I rowsort label-8321
SELECT + - 26 + MAX ( ALL + 91 ) + CAST ( + + 73 AS INTEGER ) AS col0
----
138

query I rowsort
SELECT DISTINCT - CASE 13 WHEN + 63 + + 32 THEN + + 38 END * - 59 AS col2
----
NULL

query I rowsort
SELECT ALL 67 * ( - - 56 ) - - - 84 AS col2
----
3668

query II rowsort
SELECT ALL + - 94 AS col1, - 24 * + - 68 + + 83 + - 20 * 90 col0
----
-94
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT ALL + 61 * + 49 + + COUNT( * ) - - 61 col1
----
3051

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL + 61 * + 49 + + COUNT ( * ) - - 61 col1
----
3051

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT - MAX( DISTINCT - + 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8326
SELECT - MAX ( DISTINCT - + 25 ) AS col2
----
25

query II rowsort
SELECT ALL + + 17 col0, + 92
----
17
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8328
SELECT - - CASE + ( NULLIF ( - 19, - 78 * 89 ) ) WHEN - 34 + - - CASE 78 WHEN + 11 THEN + MIN( DISTINCT + + 91 ) WHEN COALESCE ( + COUNT( * ), - ( 34 ) ) THEN 6 - + 17 + + ( - - ( + 32 ) ) ELSE NULL END + MIN( ALL + + 67 ) THEN NULL WHEN 0 + - 82 / + COUNT( * ) THEN + + 55 ELSE - 1 END + - - 85 AS col0, 44
----
84
44

skipif mysql # not compatible
query II rowsort label-8328
SELECT - - CASE + ( NULLIF ( - 19, - 78 * 89 ) ) WHEN - 34 + - - CASE 78 WHEN + 11 THEN + MIN ( DISTINCT + + 91 ) WHEN COALESCE ( + COUNT ( * ), - ( 34 ) ) THEN 6 - + 17 + + ( - - ( + 32 ) ) ELSE NULL END + MIN ( ALL + + 67 ) THEN NULL WHEN 0 + - 82 / + COUNT ( * ) THEN + + 55 ELSE - 1 END + - - 85 AS col0, 44
----
84
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8329
SELECT - - CAST( NULL AS SIGNED ) * - COUNT( * ) * - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8329
SELECT - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - 94 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8330
SELECT - - 19 * - CAST( NULL AS DECIMAL ) / + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8330
SELECT - - 19 * - CAST ( NULL AS REAL ) / + 97
----
NULL

query II rowsort
SELECT ALL - 13 * 58, - 31 * + 69 AS col1
----
-754
-2139

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT - 0 + - MAX( DISTINCT - 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-8332
SELECT - 0 + - MAX ( DISTINCT - 37 ) AS col0
----
37

query I rowsort
SELECT + - NULLIF ( + + 51, + 49 ) col1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8334
SELECT ALL + CAST( + + 60 AS SIGNED ) col0
----
60

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL + CAST ( + + 60 AS INTEGER ) col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8335
SELECT DISTINCT - ( - 48 ) DIV + - 95 * + COALESCE ( + 64, 69, + 31 + - - 15 + - COUNT( * ) + + CASE - + 91 WHEN COUNT( * ) + 36 * + 24 THEN - 2 * - CAST( NULL AS SIGNED ) * + - 79 * + 35 DIV - 25 * - 35 END ) DIV - 60 AS col2, 41 AS col1, 45 * + 61 AS col2
----
0
41
2745

skipif mysql # not compatible
query III rowsort label-8335
SELECT DISTINCT - ( - 48 ) / + - 95 * + COALESCE ( + 64, 69, + 31 + - - 15 + - COUNT ( * ) + + CASE - + 91 WHEN COUNT ( * ) + 36 * + 24 THEN - 2 * - CAST ( NULL AS INTEGER ) * + - 79 * + 35 / - 25 * - 35 END ) / - 60 AS col2, 41 AS col1, 45 * + 61 AS col2
----
0
41
2745

onlyif mysql # aggregate syntax: 
query II rowsort label-8336
SELECT ALL + 57 AS col2, COUNT( * )
----
57
1

skipif mysql # not compatible
query II rowsort label-8336
SELECT ALL + 57 AS col2, COUNT ( * )
----
57
1

query I rowsort
SELECT - 27 * - 41
----
1107

onlyif mysql # aggregate syntax: 
query II rowsort label-8338
SELECT ALL - - COALESCE ( + CASE - COUNT( * ) WHEN + + 32 + + 90 THEN NULL WHEN - + 50 + - NULLIF ( - ( - COUNT( * ) ), - + 60 * - 11 - ( 16 ) ) THEN + 93 * + 57 + - 58 ELSE NULL END, + + SUM( DISTINCT 73 ) + 90 ) * COUNT( ALL + - 47 ), - 26 + + 97 AS col2
----
163
71

skipif mysql # not compatible
query II rowsort label-8338
SELECT ALL - - COALESCE ( + CASE - COUNT ( * ) WHEN + + 32 + + 90 THEN NULL WHEN - + 50 + - NULLIF ( - ( - COUNT ( * ) ), - + 60 * - 11 - ( 16 ) ) THEN + 93 * + 57 + - 58 ELSE NULL END, + + SUM ( DISTINCT 73 ) + 90 ) * COUNT ( ALL + - 47 ), - 26 + + 97 AS col2
----
163
71

query I rowsort
SELECT DISTINCT + + COALESCE ( + 77, + 53, 41 ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT - 91 * COUNT( * ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-8340
SELECT - 91 * COUNT ( * ) AS col2
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8341
SELECT + 73 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8341
SELECT + 73 / 97 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8342
SELECT ALL 78 DIV + COALESCE ( COUNT( * ), + 4 + COALESCE ( - CAST( - - 4 AS SIGNED ), + + 12 + - 27 * 16 ), - 90 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL 78 / + COALESCE ( COUNT ( * ), + 4 + COALESCE ( - CAST ( - - 4 AS INTEGER ), + + 12 + - 27 * 16 ), - 90 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT ALL ( 81 ) * + NULLIF ( - 95, 23 * COUNT( * ) + + AVG ( - ( 52 ) ) * + 9 ) + - COUNT( * ) + MAX( - 59 ) - - + 64 + - - 16
----
-7675

skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL ( 81 ) * + NULLIF ( - 95, 23 * COUNT ( * ) + + AVG ( - ( 52 ) ) * + 9 ) + - COUNT ( * ) + MAX ( - 59 ) - - + 64 + - - 16
----
-7675

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT + MIN( DISTINCT 99 )
----
99

skipif mysql # not compatible
query I rowsort label-8344
SELECT + MIN ( DISTINCT 99 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8345
SELECT DISTINCT CAST( COUNT( DISTINCT + + 76 ) AS SIGNED ) * - 10 + CAST( NULL AS SIGNED ) * - + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT CAST ( COUNT ( DISTINCT + + 76 ) AS INTEGER ) * - 10 + CAST ( NULL AS INTEGER ) * - + 41
----
NULL

query I rowsort
SELECT - 24 * - + 37
----
888

query I rowsort
SELECT + 30 + 33 + + 47 AS col2
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8348
SELECT ALL 36 + + 74 DIV - + COALESCE ( 8, COUNT( * ) * 81 + + 69 )
----
27

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL 36 + + 74 / - + COALESCE ( 8, COUNT ( * ) * 81 + + 69 )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-8349
SELECT - MIN( 85 ), MIN( DISTINCT - 7 ) + MIN( ALL + + 0 ) + - NULLIF ( 87, 87 ) - - 46 col1
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-8349
SELECT - MIN ( 85 ), MIN ( DISTINCT - 7 ) + MIN ( ALL + + 0 ) + - NULLIF ( 87, 87 ) - - 46 col1
----
-85
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8350
SELECT MIN( ALL + 47 ) AS col0, CASE - 33 WHEN - 17 - 71 * - 14 THEN - 68 ELSE - + 41 * - COUNT( * ) * + COUNT( * ) * 61 * + COALESCE ( + 91, + - CASE - 91 WHEN + + NULLIF ( NULLIF ( + - 90, 12 + - 48 ), - + 15 ) THEN + 40 + SUM( - 23 ) WHEN 73 THEN + 67 DIV 97 WHEN 86 THEN COUNT( * ) ELSE + - 61 + - COUNT( * ) END ) - + 60 END
----
47
227531

skipif mysql # not compatible
query II rowsort label-8350
SELECT MIN ( ALL + 47 ) AS col0, CASE - 33 WHEN - 17 - 71 * - 14 THEN - 68 ELSE - + 41 * - COUNT ( * ) * + COUNT ( * ) * 61 * + COALESCE ( + 91, + - CASE - 91 WHEN + + NULLIF ( NULLIF ( + - 90, 12 + - 48 ), - + 15 ) THEN + 40 + SUM ( - 23 ) WHEN 73 THEN + 67 / 97 WHEN 86 THEN COUNT ( * ) ELSE + - 61 + - COUNT ( * ) END ) - + 60 END
----
47
227531

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8351
SELECT + COUNT( * ) - 30 DIV + 32 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8351
SELECT + COUNT ( * ) - 30 / + 32 AS col1
----
1

query II rowsort
SELECT - ( - 11 ) AS col1, 53
----
11
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT ALL 89 + - - COUNT( * ) * - 96
----
-7

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL 89 + - - COUNT ( * ) * - 96
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT + 94 * COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-8354
SELECT + 94 * COUNT ( * )
----
94

query I rowsort
SELECT + 0 * - 12
----
0

query II rowsort
SELECT DISTINCT 23 + + + 9, + 24 AS col0
----
32
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8357
SELECT ALL MIN( DISTINCT + 57 ) AS col1, 56 DIV + 51 + 52 + - - 20 col0
----
57
73

skipif mysql # not compatible
query II rowsort label-8357
SELECT ALL MIN ( DISTINCT + 57 ) AS col1, 56 / + 51 + 52 + - - 20 col0
----
57
73

query I rowsort
SELECT ALL 12 + - 97 * 41
----
-3965

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8359
SELECT DISTINCT - COUNT( * ) - - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8359
SELECT DISTINCT - COUNT ( * ) - - + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + 39 + 99
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8361
SELECT ALL + 8 DIV - COUNT( + 74 )
----
-8

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL + 8 / - COUNT ( + 74 )
----
-8

query I rowsort
SELECT - + 97 + + 45
----
-52

query I rowsort
SELECT DISTINCT 97 * - 79
----
-7663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8364
SELECT ALL NULLIF ( - ( + - COALESCE ( + - 91, 45 ) ), - - CAST( + SUM( 39 ) AS SIGNED ) * + - CAST( + 28 AS SIGNED ) ) * 42
----
-3822

skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL NULLIF ( - ( + - COALESCE ( + - 91, 45 ) ), - - CAST ( + SUM ( 39 ) AS INTEGER ) * + - CAST ( + 28 AS INTEGER ) ) * 42
----
-3822

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8365
SELECT - CAST( NULL AS SIGNED ) / + - COALESCE ( - + SUM( 83 ), - - 96 ) + 18 + + - COUNT( * ) * - + 46 * 92 - + 5 + - - 19 * ( + 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8365
SELECT - CAST ( NULL AS INTEGER ) / + - COALESCE ( - + SUM ( 83 ), - - 96 ) + 18 + + - COUNT ( * ) * - + 46 * 92 - + 5 + - - 19 * ( + 8 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT + 84 * 34 + - SUM( - 24 )
----
2880

skipif mysql # not compatible
query I rowsort label-8366
SELECT + 84 * 34 + - SUM ( - 24 )
----
2880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8367
SELECT DISTINCT + CASE 84 WHEN 76 + 84 - 91 * COUNT( * ) THEN COUNT( * ) + + - CAST( NULL AS DECIMAL ) + - 23 + + CAST( + 68 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT + CASE 84 WHEN 76 + 84 - 91 * COUNT ( * ) THEN COUNT ( * ) + + - CAST ( NULL AS REAL ) + - 23 + + CAST ( + 68 AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 86 * 17 * + + 9
----
13158

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT - 25 * + COUNT( ALL + 49 ) + - 87 AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-8369
SELECT - 25 * + COUNT ( ALL + 49 ) + - 87 AS col0
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT + + 1 * - - 72 * - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-8370
SELECT + + 1 * - - 72 * - COUNT ( * )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT - - 38 - - MIN( - 82 ) + + 86 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-8371
SELECT - - 38 - - MIN ( - 82 ) + + 86 AS col1
----
42

query I rowsort
SELECT - 97 * ( - 49 ) col2
----
4753

query I rowsort
SELECT - 8 * - - ( - 75 ) AS col0
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT + SUM( DISTINCT 56 )
----
56

skipif mysql # not compatible
query I rowsort label-8374
SELECT + SUM ( DISTINCT 56 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8375
SELECT DISTINCT SUM( 73 ) / NULLIF ( CASE - + COUNT( * ) WHEN + 40 + + - 27 / + - 59 THEN - ( - 14 ) ELSE + 35 END, 9 ) + CASE - 51 WHEN - 51 * - 12 * + ( - COUNT( ALL ( 8 ) ) ) + + 66 - + COUNT( * ) + - 41 - + COALESCE ( - 93, + 81 + - + COUNT( * ), - - 28 ) + CASE + + 43 WHEN + 0 + - + 99 THEN NULL ELSE + 85 END * - CAST( NULL AS SIGNED ) * - COUNT( * ) / + 89 THEN NULL WHEN 10 + + 50 THEN + 19 + - ( 24 ) * + 34 WHEN 59 * 42 THEN NULL WHEN 53 * + 90 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT SUM ( 73 ) / NULLIF ( CASE - + COUNT ( * ) WHEN + 40 + + - 27 / + - 59 THEN - ( - 14 ) ELSE + 35 END, 9 ) + CASE - 51 WHEN - 51 * - 12 * + ( - COUNT ( ALL ( 8 ) ) ) + + 66 - + COUNT ( * ) + - 41 - + COALESCE ( - 93, + 81 + - + COUNT ( * ), - - 28 ) + CASE + + 43 WHEN + 0 + - + 99 THEN NULL ELSE + 85 END * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) / + 89 THEN NULL WHEN 10 + + 50 THEN + 19 + - ( 24 ) * + 34 WHEN 59 * 42 THEN NULL WHEN 53 * + 90 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 75 * 1 * 63
----
-4725

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8377
SELECT - 61 DIV - COUNT( + 82 ), 18 * + 76 col0
----
61
1368

skipif mysql # not compatible
query II rowsort label-8377
SELECT - 61 / - COUNT ( + 82 ), 18 * + 76 col0
----
61
1368

query I rowsort
SELECT ( + + ( + 17 ) )
----
17

query I rowsort
SELECT ALL 63 * + - 61 + + 96 AS col0
----
-3747

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT - 25 + 36 - + SUM( - 79 ) * - 49 AS col2
----
-3860

skipif mysql # not compatible
query I rowsort label-8380
SELECT - 25 + 36 - + SUM ( - 79 ) * - 49 AS col2
----
-3860

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT - COUNT( * ) * 68 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-8381
SELECT - COUNT ( * ) * 68 AS col2
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8382
SELECT - 1 + 10 * ( - + NULLIF ( - - CAST( + 43 AS SIGNED ), + 46 ) )
----
-431

skipif mysql # not compatible
query I rowsort label-8382
SELECT - 1 + 10 * ( - + NULLIF ( - - CAST ( + 43 AS INTEGER ), + 46 ) )
----
-431

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8383
SELECT + 7 * ( - - COUNT( * ) ) DIV + + 87 + + - 72 col2
----
-72

skipif mysql # not compatible
query I rowsort label-8383
SELECT + 7 * ( - - COUNT ( * ) ) / + + 87 + + - 72 col2
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-8384
SELECT + 56 AS col2, - 8 + - + COUNT( * )
----
56
-9

skipif mysql # not compatible
query II rowsort label-8384
SELECT + 56 AS col2, - 8 + - + COUNT ( * )
----
56
-9

query II rowsort
SELECT 58 col2, - 27 AS col2
----
58
-27

query I rowsort
SELECT ALL + 40 + + + 51 col1
----
91

query I rowsort
SELECT 65 + 23 AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8388
SELECT COUNT( * ) - 15 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8388
SELECT COUNT ( * ) - 15 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 17 AS col1, + 34 AS col1
----
-17
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT ALL + 40 - - 80 * - ( + ( + + MIN( ALL - 24 ) ) ) AS col0
----
1960

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL + 40 - - 80 * - ( + ( + + MIN ( ALL - 24 ) ) ) AS col0
----
1960

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT DISTINCT 17 * SUM( - 75 ) AS col0
----
-1275

skipif mysql # not compatible
query I rowsort label-8391
SELECT DISTINCT 17 * SUM ( - 75 ) AS col0
----
-1275

query I rowsort
SELECT ALL + 23 * - 9 AS col0
----
-207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8393
SELECT CASE + 72 WHEN MAX( ALL + CAST( 55 AS SIGNED ) ) THEN 85 + + - 90 WHEN 12 THEN NULL END + - MIN( + - 60 ) * - 4 AS col2, 14
----
NULL
14

skipif mysql # not compatible
query II rowsort label-8393
SELECT CASE + 72 WHEN MAX ( ALL + CAST ( 55 AS INTEGER ) ) THEN 85 + + - 90 WHEN 12 THEN NULL END + - MIN ( + - 60 ) * - 4 AS col2, 14
----
NULL
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT ALL ( - - MAX( DISTINCT 93 ) )
----
93

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL ( - - MAX ( DISTINCT 93 ) )
----
93

query I rowsort
SELECT 35 + + 8 * - 98 * - - 88 * - ( - 50 )
----
-3449565

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8396
SELECT DISTINCT - ( 76 ) * + 23 + + + CAST( - 81 AS SIGNED ) + - - 10 * 10
----
-1729

skipif mysql # not compatible
query I rowsort label-8396
SELECT DISTINCT - ( 76 ) * + 23 + + + CAST ( - 81 AS INTEGER ) + - - 10 * 10
----
-1729

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT - 16 * - 86 + - SUM( - 58 )
----
1434

skipif mysql # not compatible
query I rowsort label-8397
SELECT - 16 * - 86 + - SUM ( - 58 )
----
1434

query I rowsort
SELECT + 82 * - + 6
----
-492

query II rowsort
SELECT ALL - 35 AS col1, 8 AS col1
----
-35
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT ALL MIN( ALL 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL MIN ( ALL 96 ) AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8401
SELECT DISTINCT 31 DIV + + 51
----
0

skipif mysql # not compatible
query I rowsort label-8401
SELECT DISTINCT 31 / + + 51
----
0

query I rowsort
SELECT 15 * + 83
----
1245

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8403
SELECT 17 * + 5 + + MAX( DISTINCT + 62 ) AS col1, 41 DIV 93
----
147
0

skipif mysql # not compatible
query II rowsort label-8403
SELECT 17 * + 5 + + MAX ( DISTINCT + 62 ) AS col1, 41 / 93
----
147
0

query I rowsort
SELECT ALL 1 + - - 59
----
60

onlyif mysql # DIV for integer division: 
query II rowsort label-8405
SELECT 7 DIV + 15 + - 81 col1, 99
----
-81
99

skipif mysql # not compatible
query II rowsort label-8405
SELECT 7 / + 15 + - 81 col1, 99
----
-81
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT ALL COUNT( * ) + + ( + 83 ) * - 17 AS col2
----
-1410

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL COUNT ( * ) + + ( + 83 ) * - 17 AS col2
----
-1410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8407
SELECT COUNT( ALL + - 46 ) + 41 + + 6 + + 79 DIV - 64 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8407
SELECT COUNT ( ALL + - 46 ) + 41 + + 6 + + 79 / - 64 AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8408
SELECT DISTINCT COALESCE ( 15, + - 52 * - CAST( NULL AS SIGNED ) DIV - ( MIN( DISTINCT - 64 ) ), 97 ) + - 34 + - + COUNT( * ) * 65
----
-84

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT COALESCE ( 15, + - 52 * - CAST ( NULL AS INTEGER ) / - ( MIN ( DISTINCT - 64 ) ), 97 ) + - 34 + - + COUNT ( * ) * 65
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8409
SELECT DISTINCT - 98 + - + 43 - 42 * 5 AS col1, + COUNT( * ) DIV + SUM( - + 21 ) * 30 AS col1
----
-351
0

skipif mysql # not compatible
query II rowsort label-8409
SELECT DISTINCT - 98 + - + 43 - 42 * 5 AS col1, + COUNT ( * ) / + SUM ( - + 21 ) * 30 AS col1
----
-351
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT ALL ( - 96 ) + COUNT( 9 ) - + + 94 AS col1
----
-189

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL ( - 96 ) + COUNT ( 9 ) - + + 94 AS col1
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT DISTINCT COUNT( * ) + 81 + - 18 * - 51 AS col0
----
1000

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT COUNT ( * ) + 81 + - 18 * - 51 AS col0
----
1000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8412
SELECT ALL - 71 + 72 + 77 * + - 25 * - 82 + - 91 * - NULLIF ( + 78, CAST( NULL AS SIGNED ) ) * - 80 + + MAX( DISTINCT - - 50 ) + - 25 + + 51 * + 72 col1, 50 + 7 AS col0
----
-406292
57

skipif mysql # not compatible
query II rowsort label-8412
SELECT ALL - 71 + 72 + 77 * + - 25 * - 82 + - 91 * - NULLIF ( + 78, CAST ( NULL AS INTEGER ) ) * - 80 + + MAX ( DISTINCT - - 50 ) + - 25 + + 51 * + 72 col1, 50 + 7 AS col0
----
-406292
57

query I rowsort
SELECT DISTINCT - COALESCE ( - 99, 67 ) AS col0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8414
SELECT ALL - 71 + - + 91 + - 91 + 47 DIV - 80 + 52 - - - 85 + - - 70 * 22 + - + COUNT( * ) * + COUNT( * ) AS col1
----
1253

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL - 71 + - + 91 + - 91 + 47 / - 80 + 52 - - - 85 + - - 70 * 22 + - + COUNT ( * ) * + COUNT ( * ) AS col1
----
1253

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8415
SELECT CAST( NULL AS SIGNED ) * 84 / - - 68 * - SUM( - ( 44 ) ) * - 99 + + 76 + + 71 + + 50 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8415
SELECT CAST ( NULL AS INTEGER ) * 84 / - - 68 * - SUM ( - ( 44 ) ) * - 99 + + 76 + + 71 + + 50 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT DISTINCT + 53 - - COUNT( - 8 )
----
54

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT + 53 - - COUNT ( - 8 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL + COUNT( * ) - - 28
----
29

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL + COUNT ( * ) - - 28
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-8418
SELECT 80 * + + COUNT( * ) col2, - 47
----
80
-47

skipif mysql # not compatible
query II rowsort label-8418
SELECT 80 * + + COUNT ( * ) col2, - 47
----
80
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8419
SELECT DISTINCT + 27 * 73 * CAST( + COUNT( - 88 ) AS SIGNED )
----
1971

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT + 27 * 73 * CAST ( + COUNT ( - 88 ) AS INTEGER )
----
1971

query I rowsort
SELECT DISTINCT + 54 - + COALESCE ( + 98, + 67 * + + ( + 88 ) ) AS col1
----
-44

query I rowsort
SELECT 93 * + 75
----
6975

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT ALL SUM( + + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL SUM ( + + 1 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8423
SELECT 0 DIV - ( - NULLIF ( + 67, + 54 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8423
SELECT 0 / - ( - NULLIF ( + 67, + 54 ) ) AS col2
----
0

query II rowsort
SELECT ALL + 36 * - 54 AS col1, - 93 AS col0
----
-1944
-93

query II rowsort
SELECT - 21 * + 76 col0, - 23 * - 99
----
-1596
2277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8426
SELECT - 30 - + 36 DIV CAST( COUNT( * ) AS SIGNED ) DIV - + 30 - + COUNT( * ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-8426
SELECT - 30 - + 36 / CAST ( COUNT ( * ) AS INTEGER ) / - + 30 - + COUNT ( * ) AS col2
----
-30

query I rowsort
SELECT DISTINCT ( 45 ) col2
----
45

query I rowsort
SELECT ALL + 26 * + 68 AS col1
----
1768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8429
SELECT ( + + 34 ) DIV - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-8429
SELECT ( + + 34 ) / - COUNT ( * )
----
-34

query I rowsort
SELECT DISTINCT + 7 + + 52 col1
----
59

query II rowsort
SELECT + 37 + - 19, - 9 - ( + + 92 ) AS col0
----
18
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8432
SELECT ALL + ( - 11 ) + - 84 + NULLIF ( COUNT( * ), 14 ) DIV - 47 * 31 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL + ( - 11 ) + - 84 + NULLIF ( COUNT ( * ), 14 ) / - 47 * 31 AS col2
----
-95

query I rowsort
SELECT ALL 4 + + 77 + - - 10 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT ALL 12 * - 9 + + + MIN( - - ( 16 ) ) + - - ( + 62 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL 12 * - 9 + + + MIN ( - - ( 16 ) ) + - - ( + 62 ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT + MIN( - + 6 ) col1
----
-6

skipif mysql # not compatible
query I rowsort label-8435
SELECT + MIN ( - + 6 ) col1
----
-6

query I rowsort
SELECT NULLIF ( 14, - 68 / + 63 + - + 68 - + - 15 * - 0 + - 66 * 47 )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-8437
SELECT + COUNT( * ) AS col1, 22 col1
----
1
22

skipif mysql # not compatible
query II rowsort label-8437
SELECT + COUNT ( * ) AS col1, 22 col1
----
1
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT COUNT( - + 21 )
----
1

skipif mysql # not compatible
query I rowsort label-8438
SELECT COUNT ( - + 21 )
----
1

query I rowsort
SELECT ALL 55 * - 67 + + - 84
----
-3769

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT MIN( DISTINCT 42 )
----
42

skipif mysql # not compatible
query I rowsort label-8440
SELECT MIN ( DISTINCT 42 )
----
42

query I rowsort
SELECT - 1 * 83
----
-83

query I rowsort
SELECT DISTINCT 7 * + ( + + 46 )
----
322

onlyif mysql # aggregate syntax: 
query II rowsort label-8443
SELECT + CASE ( + 8 ) WHEN - COUNT( * ) THEN 59 + - 92 ELSE NULL END - - 87 + + NULLIF ( + 52, COUNT( * ) * + - 65 + - 4 ) * + 10 AS col2, - 24 AS col2
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-8443
SELECT + CASE ( + 8 ) WHEN - COUNT ( * ) THEN 59 + - 92 ELSE NULL END - - 87 + + NULLIF ( + 52, COUNT ( * ) * + - 65 + - 4 ) * + 10 AS col2, - 24 AS col2
----
NULL
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8444
SELECT + NULLIF ( + 72, 55 * - - COUNT( * ) ) + CASE - - 37 WHEN CAST( - 51 AS SIGNED ) THEN NULL WHEN - + 55 THEN - - 45 * 14 * - - 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8444
SELECT + NULLIF ( + 72, 55 * - - COUNT ( * ) ) + CASE - - 37 WHEN CAST ( - 51 AS INTEGER ) THEN NULL WHEN - + 55 THEN - - 45 * 14 * - - 76 END
----
NULL

query I rowsort
SELECT - 89 * + 84 + - 95 AS col1
----
-7571

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8446
SELECT + + 41 + 49 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8446
SELECT + + 41 + 49 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT ALL + - 51 * - - 33 - MIN( DISTINCT 95 ) AS col2
----
-1778

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL + - 51 * - - 33 - MIN ( DISTINCT 95 ) AS col2
----
-1778

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT DISTINCT + 97 * + 59 * + COUNT( ALL + 23 ) * 80 + - 77 + + + COUNT( ALL + + 67 ) - 27 * + 27 AS col1
----
457035

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT + 97 * + 59 * + COUNT ( ALL + 23 ) * 80 + - 77 + + + COUNT ( ALL + + 67 ) - 27 * + 27 AS col1
----
457035

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT - + 91 + 50 + - - 41 + 83 - + MAX( + 93 ) * + 33
----
-2986

skipif mysql # not compatible
query I rowsort label-8449
SELECT - + 91 + 50 + - - 41 + 83 - + MAX ( + 93 ) * + 33
----
-2986

onlyif mysql # aggregate syntax: 
query II rowsort label-8450
SELECT ALL 34 * + COUNT( ALL 85 ) AS col2, - MIN( ALL + 95 )
----
34
-95

skipif mysql # not compatible
query II rowsort label-8450
SELECT ALL 34 * + COUNT ( ALL 85 ) AS col2, - MIN ( ALL + 95 )
----
34
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT DISTINCT + + 9 + + 76 * - 8 + - COUNT( * )
----
-600

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT + + 9 + + 76 * - 8 + - COUNT ( * )
----
-600

query I rowsort
SELECT - 5 + - 22
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8453
SELECT CAST( + - ( + COALESCE ( - COUNT( * ), 53 * + COUNT( * ) / + - 76 + 47 / 2 + - + CAST( - - 77 AS SIGNED ) ) ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8453
SELECT CAST ( + - ( + COALESCE ( - COUNT ( * ), 53 * + COUNT ( * ) / + - 76 + 47 / 2 + - + CAST ( - - 77 AS INTEGER ) ) ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT - - NULLIF ( + 19, 31 * - COUNT( * ) * + MAX( 95 ) ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-8454
SELECT - - NULLIF ( + 19, 31 * - COUNT ( * ) * + MAX ( 95 ) ) AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8455
SELECT - - 64 * 12 * - 5 + - SUM( - 98 ) + - COUNT( * ) - - 78 / - CAST( NULL AS SIGNED ) * 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT - - 64 * 12 * - 5 + - SUM ( - 98 ) + - COUNT ( * ) - - 78 / - CAST ( NULL AS INTEGER ) * 45 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 95 + + 76 col0
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8457
SELECT ALL + - COUNT( * ) + 46 DIV - 21, 5 * + 6 DIV + COUNT( * ) AS col0
----
-3
30

skipif mysql # not compatible
query II rowsort label-8457
SELECT ALL + - COUNT ( * ) + 46 / - 21, 5 * + 6 / + COUNT ( * ) AS col0
----
-3
30

query I rowsort
SELECT - - 24 col2
----
24

query I rowsort
SELECT ALL 24 + 54 + + + 36 + - 22 * + - ( - ( 34 ) )
----
-634

query I rowsort
SELECT - NULLIF ( 33, - 14 * + 99 ) * 59
----
-1947

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT DISTINCT ( + CASE ( + ( - ( COUNT( * ) ) ) ) WHEN + 77 + - 41 THEN NULL ELSE 82 END ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-8461
SELECT DISTINCT ( + CASE ( + ( - ( COUNT ( * ) ) ) ) WHEN + 77 + - 41 THEN NULL ELSE 82 END ) AS col2
----
82

query I rowsort
SELECT ALL + 71 - + + 5
----
66

query I rowsort
SELECT + COALESCE ( 63, 66 )
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8464
SELECT 71 DIV + - COUNT( ALL - + 92 ) + + 68, + 9 AS col1
----
-3
9

skipif mysql # not compatible
query II rowsort label-8464
SELECT 71 / + - COUNT ( ALL - + 92 ) + + 68, + 9 AS col1
----
-3
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT - ( - - COUNT( ALL ( 9 ) ) ) + 88 + + - 29 + ( + 64 ) + 52 * - 32 * - 1 * - 91 * 96 + - 24
----
-14536606

skipif mysql # not compatible
query I rowsort label-8465
SELECT - ( - - COUNT ( ALL ( 9 ) ) ) + 88 + + - 29 + ( + 64 ) + 52 * - 32 * - 1 * - 91 * 96 + - 24
----
-14536606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8466
SELECT NULLIF ( 64, - - SUM( 89 ) ) * + 10 + + 41 * + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8466
SELECT NULLIF ( 64, - - SUM ( 89 ) ) * + 10 + + 41 * + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8467
SELECT + CAST( NULL AS SIGNED ) * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT + CAST ( NULL AS INTEGER ) * 29
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8468
SELECT DISTINCT + 26 AS col2, COUNT( * ) AS col0
----
26
1

skipif mysql # not compatible
query II rowsort label-8468
SELECT DISTINCT + 26 AS col2, COUNT ( * ) AS col0
----
26
1

query I rowsort
SELECT + 42 + + 82 AS col0
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-8470
SELECT + 0 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-8470
SELECT + 0 / - 74
----
0

query I rowsort
SELECT - 12 * + 9 AS col1
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT + 18 + - + COUNT( * ) col1
----
17

skipif mysql # not compatible
query I rowsort label-8472
SELECT + 18 + - + COUNT ( * ) col1
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8473
SELECT ALL 24 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL 24 / 78
----
0

query I rowsort
SELECT ( - 45 ) col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8475
SELECT - CAST( 73 AS SIGNED ) * - 59 + + 62 AS col1, - 8 DIV 77 - + - 41 + - + 34 + + + 86 * 58 DIV - 22 AS col1
----
4369
-219

skipif mysql # not compatible
query II rowsort label-8475
SELECT - CAST ( 73 AS INTEGER ) * - 59 + + 62 AS col1, - 8 / 77 - + - 41 + - + 34 + + + 86 * 58 / - 22 AS col1
----
4369
-219

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8476
SELECT + 70 DIV - SUM( + 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-8476
SELECT + 70 / - SUM ( + 49 )
----
-1

query I rowsort
SELECT + 12 * - 75
----
-900

onlyif mysql # aggregate syntax: 
query II rowsort label-8478
SELECT ALL 52 * - - COUNT( ALL + 1 ) * + 76 AS col0, COUNT( * )
----
3952
1

skipif mysql # not compatible
query II rowsort label-8478
SELECT ALL 52 * - - COUNT ( ALL + 1 ) * + 76 AS col0, COUNT ( * )
----
3952
1

query I rowsort
SELECT DISTINCT + 31 * - 37 - 99
----
-1246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8480
SELECT + 39 DIV - COUNT( * ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-8480
SELECT + 39 / - COUNT ( * ) AS col1
----
-39

query II rowsort
SELECT DISTINCT + - 83 AS col2, 80
----
-83
80

query II rowsort
SELECT 61, + 21 AS col0
----
61
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8483
SELECT - CAST( 30 AS SIGNED ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-8483
SELECT - CAST ( 30 AS INTEGER ) AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8484
SELECT - + CAST( - 43 AS SIGNED ) * 5 * - COUNT( - - 7 ) * - 15 AS col0
----
3225

skipif mysql # not compatible
query I rowsort label-8484
SELECT - + CAST ( - 43 AS INTEGER ) * 5 * - COUNT ( - - 7 ) * - 15 AS col0
----
3225

query II rowsort
SELECT ALL 36 AS col0, ( - 57 ) AS col1
----
36
-57

query I rowsort
SELECT ( + - 10 ) AS col0
----
-10

query I rowsort
SELECT DISTINCT - 24 * - - 8
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT ALL 25 + + MAX( 67 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL 25 + + MAX ( 67 ) AS col1
----
92

query II rowsort
SELECT DISTINCT - + 31 + 52 AS col0, - 59 * - 33
----
21
1947

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT ALL + + 69 + + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-8490
SELECT ALL + + 69 + + COUNT ( * )
----
70

query I rowsort
SELECT DISTINCT - 75 * 90 AS col2
----
-6750

query I rowsort
SELECT DISTINCT 52 * + 43 * ( - - 93 )
----
207948

query I rowsort
SELECT 75 + + NULLIF ( - 61, + 16 * + 36 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT DISTINCT - 39 * MIN( + 80 )
----
-3120

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT - 39 * MIN ( + 80 )
----
-3120

query I rowsort
SELECT 94 * - + 2 AS col1
----
-188

onlyif mysql # DIV for integer division: 
query I rowsort label-8496
SELECT DISTINCT - 94 DIV + ( + 74 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8496
SELECT DISTINCT - 94 / + ( + 74 ) col1
----
-1

query II rowsort
SELECT ALL - 22 - - 50 AS col2, 87 + + 70 AS col0
----
28
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8498
SELECT DISTINCT - COALESCE ( - - CASE + 94 WHEN - - COUNT( * ) THEN NULL WHEN + ( + + COALESCE ( - 20, - - 56 ) ) + - + 99 THEN - ( - ( + CAST( + 89 AS SIGNED ) ) ) DIV - 53 + 66 + 86 + + - 45 END, - COALESCE ( + CAST( NULL AS SIGNED ), MAX( + - 3 ), + - 40 DIV - - 30 ) - - + 64, 71 + + - CASE - COUNT( * ) WHEN - + 28 + - 87 - ( - 24 ) THEN + ( - NULLIF ( 45, + - 79 * + 4 * + + 50 + - 6 ) ) END + 34 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-8498
SELECT DISTINCT - COALESCE ( - - CASE + 94 WHEN - - COUNT ( * ) THEN NULL WHEN + ( + + COALESCE ( - 20, - - 56 ) ) + - + 99 THEN - ( - ( + CAST ( + 89 AS INTEGER ) ) ) / - 53 + 66 + 86 + + - 45 END, - COALESCE ( + CAST ( NULL AS INTEGER ), MAX ( + - 3 ), + - 40 / - - 30 ) - - + 64, 71 + + - CASE - COUNT ( * ) WHEN - + 28 + - 87 - ( - 24 ) THEN + ( - NULLIF ( 45, + - 79 * + 4 * + + 50 + - 6 ) ) END + 34 ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT MAX( ALL - + 68 ) * 35 + - - 52 + 26
----
-2302

skipif mysql # not compatible
query I rowsort label-8499
SELECT MAX ( ALL - + 68 ) * 35 + - - 52 + 26
----
-2302

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT ALL - NULLIF ( + COUNT( * ), - + 55 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL - NULLIF ( + COUNT ( * ), - + 55 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT ALL - COUNT( * ) * + 6 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL - COUNT ( * ) * + 6 AS col1
----
-6

query I rowsort
SELECT 83 * + - 91
----
-7553

query I rowsort
SELECT DISTINCT - 5 * + 86 AS col1
----
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT ALL + CASE + COUNT( * ) WHEN + - 18 THEN NULL WHEN 52 + 31 THEN - 91 END + 51 * - - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL + CASE + COUNT ( * ) WHEN + - 18 THEN NULL WHEN 52 + 31 THEN - 91 END + 51 * - - 54 AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + 25, + - 85 ) col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8506
SELECT 9 * + 93, + 60 DIV + 13 - - COUNT( * ) AS col2
----
837
5

skipif mysql # not compatible
query II rowsort label-8506
SELECT 9 * + 93, + 60 / + 13 - - COUNT ( * ) AS col2
----
837
5

query I rowsort
SELECT + 33 - + - 56
----
89

query I rowsort
SELECT DISTINCT + 11 + + 92 - 78 + - CASE 62 WHEN - 43 * - 2 THEN - + 91 WHEN - 26 THEN NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8509
SELECT + CASE 74 WHEN - 81 THEN - - COUNT( * ) * 3 + + CAST( - - COUNT( - - 0 ) AS SIGNED ) - + + 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8509
SELECT + CASE 74 WHEN - 81 THEN - - COUNT ( * ) * 3 + + CAST ( - - COUNT ( - - 0 ) AS INTEGER ) - + + 14 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8510
SELECT ALL 29 + COUNT( * ) + - + 35 * - CAST( NULL AS SIGNED ) * 44 * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL 29 + COUNT ( * ) + - + 35 * - CAST ( NULL AS INTEGER ) * 44 * + 20
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8511
SELECT DISTINCT - 19 DIV 23 - 17 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT - 19 / 23 - 17 AS col2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-8512
SELECT + 73 DIV 61 col2
----
1

skipif mysql # not compatible
query I rowsort label-8512
SELECT + 73 / 61 col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8513
SELECT 38 + 10 col2, 29 DIV - 44 AS col0
----
48
0

skipif mysql # not compatible
query II rowsort label-8513
SELECT 38 + 10 col2, 29 / - 44 AS col0
----
48
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT - ( COUNT( * ) ) * + COUNT( * ) * 69
----
-69

skipif mysql # not compatible
query I rowsort label-8514
SELECT - ( COUNT ( * ) ) * + COUNT ( * ) * 69
----
-69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8515
SELECT ALL 57 + + 56 + - ( - 70 ) + - 70 - + COALESCE ( - + 18, - CAST( NULL AS DECIMAL ) ) / 61 * + + NULLIF ( + 42, + - 26 ) / - COUNT( 51 ) + + 48 + CASE + + AVG ( ALL - - 24 ) WHEN - 77 + + 83 THEN 60 END + + + COUNT( * ) * - COUNT( * ) * - 57 * - 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL 57 + + 56 + - ( - 70 ) + - 70 - + COALESCE ( - + 18, - CAST ( NULL AS REAL ) ) / 61 * + + NULLIF ( + 42, + - 26 ) / - COUNT ( 51 ) + + 48 + CASE + + AVG ( ALL - - 24 ) WHEN - 77 + + 83 THEN 60 END + + + COUNT ( * ) * - COUNT ( * ) * - 57 * - 51 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8516
SELECT ALL + 17 + - 53 AS col0, 53 + + + COUNT( * )
----
-36
54

skipif mysql # not compatible
query II rowsort label-8516
SELECT ALL + 17 + - 53 AS col0, 53 + + + COUNT ( * )
----
-36
54

query II rowsort
SELECT ALL CASE 54 WHEN 69 THEN NULL WHEN - 98 + - 39 THEN + + 44 ELSE NULL END * - 61 AS col0, 69 AS col2
----
NULL
69

query I rowsort
SELECT - 40 + 12
----
-28

query I rowsort
SELECT ALL - COALESCE ( + 10, + 42 ) AS col1
----
-10

query I rowsort
SELECT ALL - 26 * 48
----
-1248

query I rowsort
SELECT ALL - ( + 74 ) - + 6 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT ALL 59 - - ( + MAX( ALL 84 ) ) AS col1
----
143

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL 59 - - ( + MAX ( ALL 84 ) ) AS col1
----
143

query I rowsort
SELECT 86 * NULLIF ( + 89, 74 ) AS col0
----
7654

query I rowsort
SELECT 88 + - 89
----
-1

query I rowsort
SELECT ( + 87 ) + + - 80 * - - 66 AS col0
----
-5193

query II rowsort
SELECT - 29 AS col0, ( 86 ) AS col2
----
-29
86

query I rowsort
SELECT 74 * + 63
----
4662

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT DISTINCT - COUNT( * ) * - 85 col2
----
85

skipif mysql # not compatible
query I rowsort label-8528
SELECT DISTINCT - COUNT ( * ) * - 85 col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8529
SELECT ALL 87, 34 * + 71 + COALESCE ( + + 59, 76 * + NULLIF ( - 13, + CASE 43 WHEN + 97 + + COUNT( * ) * + ( CAST( - 46 AS DECIMAL ) ) THEN NULL ELSE MIN( 12 ) END ) * + 7 * + 36 * + - 77 ) AS col1
----
87
2473

skipif mysql # not compatible
query II rowsort label-8529
SELECT ALL 87, 34 * + 71 + COALESCE ( + + 59, 76 * + NULLIF ( - 13, + CASE 43 WHEN + 97 + + COUNT ( * ) * + ( CAST ( - 46 AS REAL ) ) THEN NULL ELSE MIN ( 12 ) END ) * + 7 * + 36 * + - 77 ) AS col1
----
87
2473

query I rowsort
SELECT ALL - 81 * - 56 AS col1
----
4536

query I rowsort
SELECT 0 + 30 col0
----
30

query I rowsort
SELECT DISTINCT 48 * - 89 * - + 93
----
397296

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT ALL + COUNT( - + 8 ) * 65 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL + COUNT ( - + 8 ) * 65 AS col1
----
65

query I rowsort
SELECT 19 * - 35
----
-665

query I rowsort
SELECT 28 * + 36
----
1008

query I rowsort
SELECT ALL - 29 * + - 90 + + 57 col1
----
2667

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8537
SELECT + 49 * - CAST( NULL AS SIGNED ) - + CAST( + 68 AS DECIMAL ) + + 45 / 80 + 64 + + - ( - - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8537
SELECT + 49 * - CAST ( NULL AS INTEGER ) - + CAST ( + 68 AS REAL ) + + 45 / 80 + 64 + + - ( - - COUNT ( * ) ) AS col2
----
NULL

query II rowsort
SELECT 73 AS col0, - 89
----
73
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT - 31 + - ( 94 ) * - - MIN( + - 70 )
----
6549

skipif mysql # not compatible
query I rowsort label-8539
SELECT - 31 + - ( 94 ) * - - MIN ( + - 70 )
----
6549

query I rowsort
SELECT ALL + 82 + - 16 * 37 * + 72 AS col1
----
-42542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8541
SELECT ( + CAST( + + 52 AS SIGNED ) )
----
52

skipif mysql # not compatible
query I rowsort label-8541
SELECT ( + CAST ( + + 52 AS INTEGER ) )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT + 86 * 10 - 80 * + SUM( ALL - + 97 ) + + 96
----
8716

skipif mysql # not compatible
query I rowsort label-8542
SELECT + 86 * 10 - 80 * + SUM ( ALL - + 97 ) + + 96
----
8716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8543
SELECT DISTINCT - COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) * - 28 col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8543
SELECT DISTINCT - COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) * - 28 col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT ALL + + 98 * 0 * - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL + + 98 * 0 * - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT - 47 * + - 71
----
3337

query II rowsort
SELECT 96, - 63 * + 20 AS col2
----
96
-1260

query II rowsort
SELECT 33 AS col0, - 93
----
33
-93

query II rowsort
SELECT + 10 AS col0, 60 + + 50 * - 22
----
10
-1040

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT - 13 * COUNT( * ) * - - 58 + - 47
----
-801

skipif mysql # not compatible
query I rowsort label-8549
SELECT - 13 * COUNT ( * ) * - - 58 + - 47
----
-801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8550
SELECT DISTINCT + 14 DIV + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT + 14 / + COUNT ( * )
----
14

query I rowsort
SELECT - + COALESCE ( - 68, NULLIF ( + ( - - 74 ), - - 14 * 24 ) ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT - CASE - 1 WHEN + - 72 - - - 93 - - 34 THEN - 33 END - - ( + COUNT( * ) ) - - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8552
SELECT - CASE - 1 WHEN + - 72 - - - 93 - - 34 THEN - 33 END - - ( + COUNT ( * ) ) - - 63
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8553
SELECT ALL + 21 DIV - 55 AS col0, 92
----
0
92

skipif mysql # not compatible
query II rowsort label-8553
SELECT ALL + 21 / - 55 AS col0, 92
----
0
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT DISTINCT NULLIF ( + COUNT( * ), 63 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT NULLIF ( + COUNT ( * ), 63 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT DISTINCT SUM( + 27 ) * 54 AS col0
----
1458

skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT SUM ( + 27 ) * 54 AS col0
----
1458

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8556
SELECT ALL 43 * MAX( + 67 ) DIV NULLIF ( COUNT( * ), - 97 + 43 ) + 61
----
2942

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL 43 * MAX ( + 67 ) / NULLIF ( COUNT ( * ), - 97 + 43 ) + 61
----
2942

query I rowsort
SELECT + 49 * + - 99 * + 97 AS col0
----
-470547

query I rowsort
SELECT ALL + 95 * - - 88 AS col1
----
8360

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT - COUNT( + 29 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8559
SELECT - COUNT ( + 29 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8560
SELECT ALL NULLIF ( + + MIN( ALL - 84 ), 36 * - COUNT( * ) + - 80 + CAST( NULL AS SIGNED ) * + 79 ) DIV + COUNT( * ) + 57 * - 22
----
-1338

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL NULLIF ( + + MIN ( ALL - 84 ), 36 * - COUNT ( * ) + - 80 + CAST ( NULL AS INTEGER ) * + 79 ) / + COUNT ( * ) + 57 * - 22
----
-1338

query I rowsort
SELECT + 1 - + 42
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT ALL 7 * ( COUNT( * ) ) * + 55 AS col1
----
385

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL 7 * ( COUNT ( * ) ) * + 55 AS col1
----
385

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT - COUNT( ALL - 18 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8563
SELECT - COUNT ( ALL - 18 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT ALL COALESCE ( + 76, 88 * - COUNT( DISTINCT + + 41 ) * - 37 ) + + + COUNT( * ) - - 48
----
125

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL COALESCE ( + 76, 88 * - COUNT ( DISTINCT + + 41 ) * - 37 ) + + + COUNT ( * ) - - 48
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT - COUNT( DISTINCT 13 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8565
SELECT - COUNT ( DISTINCT 13 ) AS col0
----
-1

query I rowsort
SELECT - ( - - 80 ) AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8567
SELECT + 42 + + - CAST( + - ( + - COUNT( * ) ) AS SIGNED ) * + COUNT( * ) + + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-8567
SELECT + 42 + + - CAST ( + - ( + - COUNT ( * ) ) AS INTEGER ) * + COUNT ( * ) + + COUNT ( * )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT ALL COALESCE ( + 18, - 64 * + - 60 ) * COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL COALESCE ( + 18, - 64 * + - 60 ) * COUNT ( * ) AS col0
----
18

query I rowsort
SELECT DISTINCT - 2 * + 79 * + + 78 + + 89 * 68
----
-6272

query I rowsort
SELECT DISTINCT + ( + + 92 ) * - 54 + + 78 + + 46 AS col0
----
-4844

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8571
SELECT ALL - 69 * - 69 + - + CAST( NULL AS SIGNED ) / - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL - 69 * - 69 + - + CAST ( NULL AS INTEGER ) / - 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT + - 30 - - + 69 + + - 30 * COUNT( ALL 14 ) - - 75
----
84

skipif mysql # not compatible
query I rowsort label-8572
SELECT + - 30 - - + 69 + + - 30 * COUNT ( ALL 14 ) - - 75
----
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8573
SELECT + NULLIF ( 26, + CAST( COUNT( * ) AS DECIMAL ) ) * + COUNT( * ) - + 14 col2
----
12

skipif mysql # not compatible
query I rowsort label-8573
SELECT + NULLIF ( 26, + CAST ( COUNT ( * ) AS REAL ) ) * + COUNT ( * ) - + 14 col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8574
SELECT - CAST( NULL AS SIGNED ) * 35 + 85 + + 26 * 99 * - - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT - CAST ( NULL AS INTEGER ) * 35 + 85 + + 26 * 99 * - - 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8575
SELECT ALL + + CASE + 10 WHEN - 91 THEN + 57 - COALESCE ( + 7, + 37 * - 44 - - 84 * + + CAST( NULL AS SIGNED ) - + - 95, - + COUNT( - 40 ) + + + 57 - 2 * + 13 ) * - + COUNT( * ) WHEN 33 * - 14 - - COALESCE ( - + 89, + 54 * + ( - COUNT( * ) ) + + SUM( ALL - CAST( NULL AS SIGNED ) ) ) + + - 39 + - + 60 THEN + COUNT( - 77 ) ELSE - - 6 END AS col0
----
6

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL + + CASE + 10 WHEN - 91 THEN + 57 - COALESCE ( + 7, + 37 * - 44 - - 84 * + + CAST ( NULL AS INTEGER ) - + - 95, - + COUNT ( - 40 ) + + + 57 - 2 * + 13 ) * - + COUNT ( * ) WHEN 33 * - 14 - - COALESCE ( - + 89, + 54 * + ( - COUNT ( * ) ) + + SUM ( ALL - CAST ( NULL AS INTEGER ) ) ) + + - 39 + - + 60 THEN + COUNT ( - 77 ) ELSE - - 6 END AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8576
SELECT ALL + COUNT( * ) DIV + COALESCE ( - 56, + COUNT( * ) + - 62 ) DIV + 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8576
SELECT ALL + COUNT ( * ) / + COALESCE ( - 56, + COUNT ( * ) + - 62 ) / + 15 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8577
SELECT DISTINCT + + 14 * - + NULLIF ( + - 78, - + 5 ) - 58 - + + COALESCE ( + 33, CAST( NULL AS DECIMAL ) + + 6 ) * CAST( NULL AS SIGNED ) * 59 / - COUNT( * ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8577
SELECT DISTINCT + + 14 * - + NULLIF ( + - 78, - + 5 ) - 58 - + + COALESCE ( + 33, CAST ( NULL AS REAL ) + + 6 ) * CAST ( NULL AS INTEGER ) * 59 / - COUNT ( * ) * + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8578
SELECT + + CAST( SUM( - + 88 ) AS SIGNED ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-8578
SELECT + + CAST ( SUM ( - + 88 ) AS INTEGER ) AS col2
----
-88

query I rowsort
SELECT + - 40 * - - 3 - + + 27
----
-147

query I rowsort
SELECT + - ( - + 14 ) * 28
----
392

query I rowsort
SELECT ALL + 85 * + + 69
----
5865

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT - - 79 + COUNT( ALL + 96 )
----
80

skipif mysql # not compatible
query I rowsort label-8582
SELECT - - 79 + COUNT ( ALL + 96 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT DISTINCT NULLIF ( SUM( 22 ), 41 ) col2
----
22

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT NULLIF ( SUM ( 22 ), 41 ) col2
----
22

query I rowsort
SELECT DISTINCT + 8 * - + 42
----
-336

query I rowsort
SELECT - 37 + 36 AS col2
----
-1

query I rowsort
SELECT - 2 + + - 43 + + 60 + + - 56 + + 76 + - CASE + 66 WHEN + ( - + 91 ) THEN NULL ELSE + 63 END AS col2
----
-28

query I rowsort
SELECT + 19 * 80 AS col2
----
1520

query I rowsort
SELECT + 78 + 47 col0
----
125

query II rowsort
SELECT 24, + 7 AS col1
----
24
7

query I rowsort
SELECT - NULLIF ( + ( + 76 ), 10 - + 20 + - 35 + + 71 + - + 63 - - + 89 + - 7 / - 78 / 5 ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-8591
SELECT ALL - 18 + + + COUNT( * ) + - 43 * 19 * + + 74 * + - 46 col1, - 6
----
2781051
-6

skipif mysql # not compatible
query II rowsort label-8591
SELECT ALL - 18 + + + COUNT ( * ) + - 43 * 19 * + + 74 * + - 46 col1, - 6
----
2781051
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT ALL + MIN( ALL + + 62 ) + - 29
----
33

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL + MIN ( ALL + + 62 ) + - 29
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8593
SELECT DISTINCT ( + NULLIF ( + - 39, + 29 + - 29 - - 79 DIV - COUNT( * ) DIV - - NULLIF ( - - COALESCE ( + + COUNT( * ), - 45, + + COUNT( * ) ), + 72 ) ) ) + + 78 * - 41 DIV + - COUNT( * ) AS col2
----
3159

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT ( + NULLIF ( + - 39, + 29 + - 29 - - 79 / - COUNT ( * ) / - - NULLIF ( - - COALESCE ( + + COUNT ( * ), - 45, + + COUNT ( * ) ), + 72 ) ) ) + + 78 * - 41 / + - COUNT ( * ) AS col2
----
3159

query II rowsort
SELECT ALL 50 AS col0, + 28 + - 73
----
50
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT ALL + COUNT( * ) + - 1
----
0

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL + COUNT ( * ) + - 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT - NULLIF ( - + 64, + + 8 * - - MIN( DISTINCT - + 8 ) - + COUNT( * ) * - 97 * - 30 * + + 32 * - 88 + + 74 * - + 51 * 15 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8596
SELECT - NULLIF ( - + 64, + + 8 * - - MIN ( DISTINCT - + 8 ) - + COUNT ( * ) * - 97 * - 30 * + + 32 * - 88 + + 74 * - + 51 * 15 ) AS col2
----
64

query I rowsort
SELECT ALL 47 + + 59
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT DISTINCT - COUNT( * ) * + - 60 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT - COUNT ( * ) * + - 60 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT - COUNT( + 83 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8599
SELECT - COUNT ( + 83 ) AS col1
----
-1

query I rowsort
SELECT + 88 * - NULLIF ( - - 79, 2 )
----
-6952

onlyif mysql # DIV for integer division: 
query I rowsort label-8601
SELECT + 65 + + ( + + 52 ) DIV ( - 42 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-8601
SELECT + 65 + + ( + + 52 ) / ( - 42 ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT MIN( DISTINCT + - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-8602
SELECT MIN ( DISTINCT + - 30 )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8603
SELECT + CAST( COALESCE ( - + 18, + - 76 * + + SUM( 95 ) - + 36 + 59 ) AS SIGNED ) + - 50 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-8603
SELECT + CAST ( COALESCE ( - + 18, + - 76 * + + SUM ( 95 ) - + 36 + 59 ) AS INTEGER ) + - 50 AS col0
----
-68

query I rowsort
SELECT DISTINCT + - 18 col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT ALL + - MAX( - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL + - MAX ( - 52 )
----
52

query I rowsort
SELECT DISTINCT + 8 * + - 59 col2
----
-472

query I rowsort
SELECT - 20 * - 32
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT + COUNT( * ) + + + 89
----
90

skipif mysql # not compatible
query I rowsort label-8608
SELECT + COUNT ( * ) + + + 89
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT + 86 * MAX( + 63 ) * - 6
----
-32508

skipif mysql # not compatible
query I rowsort label-8609
SELECT + 86 * MAX ( + 63 ) * - 6
----
-32508

query I rowsort
SELECT + 39 * + NULLIF ( + 89, - 79 ) + + 98 col0
----
3569

query I rowsort
SELECT - 18 * + NULLIF ( NULLIF ( + 60, 64 ), - 98 + 50 * + - 89 ) AS col0
----
-1080

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT ALL 92 + + COUNT( * ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL 92 + + COUNT ( * ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT - COUNT( * ) * + COUNT( * ) * 1
----
-1

skipif mysql # not compatible
query I rowsort label-8613
SELECT - COUNT ( * ) * + COUNT ( * ) * 1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT ALL + 95 + + - SUM( ALL + + 97 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL + 95 + + - SUM ( ALL + + 97 ) AS col1
----
-2

query I rowsort
SELECT ( + - 66 ) * - 32
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT 68 + - NULLIF ( + 43, - + COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-8616
SELECT 68 + - NULLIF ( + 43, - + COUNT ( * ) )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8617
SELECT 3 * + 35 AS col2, + CASE - + ( + - 1 ) WHEN - - 83 THEN NULL WHEN 14 THEN - 20 + - COUNT( * ) + - + CASE + ( + 61 ) WHEN - 74 * - 1 * + 24 * - CASE - 55 WHEN + 80 + + - MIN( ALL + 12 ) * - 94 * + + 74 / + - 78 THEN - + 50 * + ( + 6 ) WHEN + 64 * - 26 / + CASE + 44 WHEN + + 86 + + 74 THEN - 84 ELSE NULL END THEN + - 33 END - - 72 THEN + - 69 * - + CAST( - COUNT( * ) AS SIGNED ) + - 76 WHEN + 33 * + 9 + 21 THEN NULL WHEN + 21 THEN NULL END END * - 52 AS col2
----
105
NULL

skipif mysql # not compatible
query II rowsort label-8617
SELECT 3 * + 35 AS col2, + CASE - + ( + - 1 ) WHEN - - 83 THEN NULL WHEN 14 THEN - 20 + - COUNT ( * ) + - + CASE + ( + 61 ) WHEN - 74 * - 1 * + 24 * - CASE - 55 WHEN + 80 + + - MIN ( ALL + 12 ) * - 94 * + + 74 / + - 78 THEN - + 50 * + ( + 6 ) WHEN + 64 * - 26 / + CASE + 44 WHEN + + 86 + + 74 THEN - 84 ELSE NULL END THEN + - 33 END - - 72 THEN + - 69 * - + CAST ( - COUNT ( * ) AS INTEGER ) + - 76 WHEN + 33 * + 9 + 21 THEN NULL WHEN + 21 THEN NULL END END * - 52 AS col2
----
105
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT DISTINCT - 50 + - COUNT( * ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-8618
SELECT DISTINCT - 50 + - COUNT ( * ) AS col0
----
-51

query II rowsort
SELECT - 38, - 70 - + 97 - - 85 AS col1
----
-38
-82

query II rowsort
SELECT - 40 col1, + 30 AS col0
----
-40
30

query I rowsort
SELECT 2 - - 68
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8622
SELECT DISTINCT 45 AS col2, 13 + 14 DIV + + 96 + + NULLIF ( COUNT( * ), COUNT( * ) + + 90 )
----
45
14

skipif mysql # not compatible
query II rowsort label-8622
SELECT DISTINCT 45 AS col2, 13 + 14 / + + 96 + + NULLIF ( COUNT ( * ), COUNT ( * ) + + 90 )
----
45
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8623
SELECT ALL - 32 + - + CASE 61 WHEN NULLIF ( - - COALESCE ( COALESCE ( + 4, 19, 39 ), - - 91, + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) + + 51 ), CASE - 76 WHEN + - 49 + - 96 DIV 14 THEN NULL WHEN + 71 DIV + COUNT( * ) THEN - ( - 32 ) END * - 12 + - 61 + CAST( NULL AS SIGNED ) * - 53 * + MIN( + - 58 ) - - 93 DIV + - 1 ) * - 3 + - NULLIF ( 30, + 25 ) THEN NULL ELSE - MAX( - + ( - 68 ) ) * - + COUNT( * ) - + SUM( - 93 ) DIV - + 58 END + COUNT( * ) col2
----
-98

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL - 32 + - + CASE 61 WHEN NULLIF ( - - COALESCE ( COALESCE ( + 4, 19, 39 ), - - 91, + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + + 51 ), CASE - 76 WHEN + - 49 + - 96 / 14 THEN NULL WHEN + 71 / + COUNT ( * ) THEN - ( - 32 ) END * - 12 + - 61 + CAST ( NULL AS INTEGER ) * - 53 * + MIN ( + - 58 ) - - 93 / + - 1 ) * - 3 + - NULLIF ( 30, + 25 ) THEN NULL ELSE - MAX ( - + ( - 68 ) ) * - + COUNT ( * ) - + SUM ( - 93 ) / - + 58 END + COUNT ( * ) col2
----
-98

query I rowsort
SELECT ALL - 32 + - ( - ( + 72 ) ) - - 49 AS col1
----
89

query I rowsort
SELECT 28 * + 86
----
2408

query I rowsort
SELECT 34 + + + 15
----
49

query I rowsort
SELECT 37 - + 27 + 83 * - 53
----
-4389

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8628
SELECT 47 - - 42 + - - CAST( NULL AS DECIMAL ) + - + 89 + - - 82 + - + ( - - 77 ) * - 48 * - - 98 * + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8628
SELECT 47 - - 42 + - - CAST ( NULL AS REAL ) + - + 89 + - - 82 + - + ( - - 77 ) * - 48 * - - 98 * + 80 AS col0
----
NULL

query II rowsort
SELECT - - 58 AS col0, - 53 AS col1
----
58
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT - 77 * + SUM( ALL - 64 )
----
4928

skipif mysql # not compatible
query I rowsort label-8630
SELECT - 77 * + SUM ( ALL - 64 )
----
4928

onlyif mysql # DIV for integer division: 
query I rowsort label-8631
SELECT ALL - 59 DIV + 6 col1
----
-9

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL - 59 / + 6 col1
----
-9

query I rowsort
SELECT - COALESCE ( - + 34, + 80 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT ALL - NULLIF ( + COUNT( * ), - 61 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL - NULLIF ( + COUNT ( * ), - 61 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - - NULLIF ( 6, - 16 / + ( + 78 ) )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT CASE 98 WHEN 36 + 90 THEN SUM( + ( + ( - 61 ) ) ) * - 9 / 11 * + + 92 + + 63 + COALESCE ( + 98, ( 55 ) ) + 71 + - + 47 WHEN + 68 * + 74 THEN NULL ELSE NULL END / - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT CASE 98 WHEN 36 + 90 THEN SUM ( + ( + ( - 61 ) ) ) * - 9 / 11 * + + 92 + + 63 + COALESCE ( + 98, ( 55 ) ) + 71 + - + 47 WHEN + 68 * + 74 THEN NULL ELSE NULL END / - 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT ALL - COUNT( * ) * - - NULLIF ( + 25, - AVG ( ALL + - NULLIF ( + 11, + 55 + - 9 ) ) * + 96 / + 70 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL - COUNT ( * ) * - - NULLIF ( + 25, - AVG ( ALL + - NULLIF ( + 11, + 55 + - 9 ) ) * + 96 / + 70 ) AS col0
----
-25

query I rowsort
SELECT + 43 + - 4 AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8638
SELECT + 57 * CAST( + - 34 AS SIGNED ) - + COUNT( * ) + - 79 * - + 74 + + COALESCE ( 12, + - 87 ) * - 20
----
3667

skipif mysql # not compatible
query I rowsort label-8638
SELECT + 57 * CAST ( + - 34 AS INTEGER ) - + COUNT ( * ) + - 79 * - + 74 + + COALESCE ( 12, + - 87 ) * - 20
----
3667

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8639
SELECT + + CAST( + 43 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-8639
SELECT + + CAST ( + 43 AS INTEGER )
----
43

query II rowsort
SELECT ALL - 17 AS col2, + 29
----
-17
29

query I rowsort
SELECT - 66 - + 42
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT + MIN( - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-8642
SELECT + MIN ( - 77 )
----
-77

query I rowsort
SELECT DISTINCT + + 49 + - + ( 71 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT - COUNT( - + 11 )
----
-1

skipif mysql # not compatible
query I rowsort label-8644
SELECT - COUNT ( - + 11 )
----
-1

query I rowsort
SELECT ALL + - ( - 24 ) + + 28 AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8646
SELECT 45 * + 86 DIV + + COUNT( * ) AS col2
----
3870

skipif mysql # not compatible
query I rowsort label-8646
SELECT 45 * + 86 / + + COUNT ( * ) AS col2
----
3870

onlyif mysql # aggregate syntax: 
query II rowsort label-8647
SELECT MAX( DISTINCT + 58 ) - 70 + - ( - - 62 ) + + - 34, 71 AS col0
----
-108
71

skipif mysql # not compatible
query II rowsort label-8647
SELECT MAX ( DISTINCT + 58 ) - 70 + - ( - - 62 ) + + - 34, 71 AS col0
----
-108
71

onlyif mysql # aggregate syntax: 
query II rowsort label-8648
SELECT ALL + 33 + - 31 + MIN( DISTINCT + + 29 ), - 41 AS col0
----
31
-41

skipif mysql # not compatible
query II rowsort label-8648
SELECT ALL + 33 + - 31 + MIN ( DISTINCT + + 29 ), - 41 AS col0
----
31
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT COUNT( DISTINCT + 25 ) + 88 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-8649
SELECT COUNT ( DISTINCT + 25 ) + 88 AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8650
SELECT 77 DIV - - COUNT( + + 30 )
----
77

skipif mysql # not compatible
query I rowsort label-8650
SELECT 77 / - - COUNT ( + + 30 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT 0 * - + 3 + - - 35 + - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-8651
SELECT 0 * - + 3 + - - 35 + - COUNT ( * )
----
34

query I rowsort
SELECT ALL 84 + 58
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8653
SELECT 83 * - - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8653
SELECT 83 * - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL - SUM( DISTINCT - - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL - SUM ( DISTINCT - - 87 )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8655
SELECT CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col2, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8655
SELECT CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT ALL - 1 - - 90 * + 83 AS col1
----
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT 28 * 1 * COUNT( + + ( 36 ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8657
SELECT 28 * 1 * COUNT ( + + ( 36 ) ) AS col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8658
SELECT ALL COUNT( * ) DIV 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL COUNT ( * ) / 98 AS col2
----
0

query I rowsort
SELECT 37 + - - 68 AS col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT COALESCE ( 98, - 52 * - 13 ) + - COUNT( * ) + + - 90
----
7

skipif mysql # not compatible
query I rowsort label-8660
SELECT COALESCE ( 98, - 52 * - 13 ) + - COUNT ( * ) + + - 90
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8661
SELECT 34 + + 45 * - + 96 * CAST( NULL AS SIGNED ) * - 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8661
SELECT 34 + + 45 * - + 96 * CAST ( NULL AS INTEGER ) * - 28 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT SUM( ALL + 50 ) + + 39 * + - 80
----
-3070

skipif mysql # not compatible
query I rowsort label-8662
SELECT SUM ( ALL + 50 ) + + 39 * + - 80
----
-3070

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8663
SELECT ALL + 30 * + - ( + + CAST( - + 49 AS SIGNED ) ) AS col1
----
1470

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL + 30 * + - ( + + CAST ( - + 49 AS INTEGER ) ) AS col1
----
1470

query I rowsort
SELECT + 75 * + 86 * + 90
----
580500

query I rowsort
SELECT DISTINCT - COALESCE ( + 14, - 8 ) AS col1
----
-14

query I rowsort
SELECT - 41 * + + 68
----
-2788

query I rowsort
SELECT - 11 + - - CASE - NULLIF ( - + 65, + 55 * - 22 ) WHEN - 26 * + - 71 THEN NULL ELSE - - 96 END + + + 0 * - COALESCE ( + 19, 19 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT - 50 + - SUM( DISTINCT + 9 )
----
-59

skipif mysql # not compatible
query I rowsort label-8668
SELECT - 50 + - SUM ( DISTINCT + 9 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT + COALESCE ( 97, - - MIN( - 38 ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-8669
SELECT + COALESCE ( 97, - - MIN ( - 38 ) ) AS col0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8670
SELECT + 55 DIV + SUM( DISTINCT 70 ) + - 16 + - 96 + 43
----
-69

skipif mysql # not compatible
query I rowsort label-8670
SELECT + 55 / + SUM ( DISTINCT 70 ) + - 16 + - 96 + 43
----
-69

query I rowsort
SELECT - 57 * + - 16 AS col1
----
912

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT + COUNT( * ) + 81 * - 43 AS col2
----
-3482

skipif mysql # not compatible
query I rowsort label-8672
SELECT + COUNT ( * ) + 81 * - 43 AS col2
----
-3482

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8673
SELECT - MIN( ALL 31 ) * 90 DIV - COUNT( * ) + - + 43
----
2747

skipif mysql # not compatible
query I rowsort label-8673
SELECT - MIN ( ALL 31 ) * 90 / - COUNT ( * ) + - + 43
----
2747

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL 35 * - 77 * 67 + - - NULLIF ( + COUNT( * ), - 80 ) AS col2
----
-180564

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL 35 * - 77 * 67 + - - NULLIF ( + COUNT ( * ), - 80 ) AS col2
----
-180564

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT + NULLIF ( - COUNT( * ), + 2 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8675
SELECT + NULLIF ( - COUNT ( * ), + 2 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT COUNT( - 94 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8676
SELECT COUNT ( - 94 ) AS col2
----
1

query I rowsort
SELECT + 36 * - - 24 AS col1
----
864

query I rowsort
SELECT - 0 * - 72 * - ( - 2 ) AS col1
----
0

query I rowsort
SELECT + 6 + 85 AS col2
----
91

query II rowsort
SELECT ALL 1 AS col1, 58
----
1
58

query I rowsort
SELECT + 53 - 26 * - 15 AS col1
----
443

query I rowsort
SELECT + 70 * + - 15 AS col2
----
-1050

onlyif mysql # aggregate syntax: 
query II rowsort label-8683
SELECT DISTINCT MAX( + 41 ) * - - 14 col1, + COUNT( * ) - 62 * + 31 * - COUNT( * ) AS col2
----
574
1923

skipif mysql # not compatible
query II rowsort label-8683
SELECT DISTINCT MAX ( + 41 ) * - - 14 col1, + COUNT ( * ) - 62 * + 31 * - COUNT ( * ) AS col2
----
574
1923

query II rowsort
SELECT ALL 11 AS col2, 27
----
11
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8685
SELECT ALL + 70 DIV - + COUNT( + 78 ), - COALESCE ( - MAX( 71 ), + - 75 ) DIV 41 col1
----
-70
1

skipif mysql # not compatible
query II rowsort label-8685
SELECT ALL + 70 / - + COUNT ( + 78 ), - COALESCE ( - MAX ( 71 ), + - 75 ) / 41 col1
----
-70
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8686
SELECT + CASE - - 50 WHEN + 98 THEN 70 ELSE COUNT( * ) END DIV 70 AS col0, 23 * + 74 - + MAX( ALL 37 ) + - 95 - + 79
----
0
1491

skipif mysql # not compatible
query II rowsort label-8686
SELECT + CASE - - 50 WHEN + 98 THEN 70 ELSE COUNT ( * ) END / 70 AS col0, 23 * + 74 - + MAX ( ALL 37 ) + - 95 - + 79
----
0
1491

query I rowsort
SELECT + + 78 + + 64 col0
----
142

query II rowsort
SELECT - + 34 AS col2, 70 col1
----
-34
70

query I rowsort
SELECT DISTINCT - NULLIF ( - + 46, - - 94 ) + 94 - 9 AS col0
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-8690
SELECT - + 82 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-8690
SELECT - + 82 / + 88
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8691
SELECT - - 7 * ( - + ( CAST( + CAST( NULLIF ( + 4, 16 ) AS SIGNED ) AS SIGNED ) ) )
----
-28

skipif mysql # not compatible
query I rowsort label-8691
SELECT - - 7 * ( - + ( CAST ( + CAST ( NULLIF ( + 4, 16 ) AS INTEGER ) AS INTEGER ) ) )
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-8692
SELECT - + NULLIF ( - - CASE 95 WHEN + + 23 * - 88 * + 73 + + 62 + + 59 THEN - ( 28 ) END, + + CASE - 83 WHEN - COUNT( * ) / 31 THEN NULL WHEN + - COALESCE ( 49, - 90 ) THEN - CASE - 67 WHEN COUNT( * ) * + - 19 THEN NULL WHEN + - 22 / - COUNT( * ) THEN 20 ELSE - 29 END + + 42 - + 43 + + ( + + 71 ) * - 76 - - 82 END ), 43 AS col2
----
NULL
43

skipif mysql # not compatible
query II rowsort label-8692
SELECT - + NULLIF ( - - CASE 95 WHEN + + 23 * - 88 * + 73 + + 62 + + 59 THEN - ( 28 ) END, + + CASE - 83 WHEN - COUNT ( * ) / 31 THEN NULL WHEN + - COALESCE ( 49, - 90 ) THEN - CASE - 67 WHEN COUNT ( * ) * + - 19 THEN NULL WHEN + - 22 / - COUNT ( * ) THEN 20 ELSE - 29 END + + 42 - + 43 + + ( + + 71 ) * - 76 - - 82 END ), 43 AS col2
----
NULL
43

query I rowsort
SELECT ALL + NULLIF ( + 54, + 96 * + + 62 * - + 99 ) + ( - - 62 )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT DISTINCT - ( - 16 ) + COUNT( * ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT - ( - 16 ) + COUNT ( * ) AS col2
----
17

query I rowsort
SELECT ALL - - 11 + - 89 AS col2
----
-78

query I rowsort
SELECT DISTINCT 54 * 59 * 74 + + 44
----
235808

query I rowsort
SELECT + 41 + - 95 col0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8698
SELECT - ( - 71 ) * - COUNT( * ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8698
SELECT - ( - 71 ) * - COUNT ( * ) * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8699
SELECT + - 69 * + 71 * + + COUNT( * ) * + - CAST( NULL AS SIGNED ) / + 43 + - COUNT( * ) * + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8699
SELECT + - 69 * + 71 * + + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) / + 43 + - COUNT ( * ) * + - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT MIN( 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8700
SELECT MIN ( 21 ) AS col2
----
21

query I rowsort
SELECT + - ( - 92 ) AS col1
----
92

onlyif mysql # DIV for integer division: 
query II rowsort label-8702
SELECT + 81 * + 62 + + - ( 49 ), + 41 + + - 11 + NULLIF ( + 18, 70 ) DIV 97 AS col1
----
4973
30

skipif mysql # not compatible
query II rowsort label-8702
SELECT + 81 * + 62 + + - ( 49 ), + 41 + + - 11 + NULLIF ( + 18, 70 ) / 97 AS col1
----
4973
30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8703
SELECT ALL 0 DIV - - 73 - + - CAST( + 25 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL 0 / - - 73 - + - CAST ( + 25 AS INTEGER )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8704
SELECT - 19 + + 16 + + 40 * - 52 + + 47 + - 80 * - 72 / + ( CASE + + 95 WHEN 71 THEN NULL WHEN ( - + 28 ) + - CASE + - 0 WHEN + - 36 THEN + 97 ELSE + - 80 * + 8 END / + - COALESCE ( + + COUNT( * ), + - AVG ( 28 ) + - 76 + + 53, - + 6 ) THEN + 29 WHEN + 74 THEN 37 END ) AS col2, + 16 * - 54 * - - 43
----
NULL
-37152

skipif mysql # not compatible
query II rowsort label-8704
SELECT - 19 + + 16 + + 40 * - 52 + + 47 + - 80 * - 72 / + ( CASE + + 95 WHEN 71 THEN NULL WHEN ( - + 28 ) + - CASE + - 0 WHEN + - 36 THEN + 97 ELSE + - 80 * + 8 END / + - COALESCE ( + + COUNT ( * ), + - AVG ( 28 ) + - 76 + + 53, - + 6 ) THEN + 29 WHEN + 74 THEN 37 END ) AS col2, + 16 * - 54 * - - 43
----
NULL
-37152

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT ALL + 28 * 70 * + COUNT( * )
----
1960

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL + 28 * 70 * + COUNT ( * )
----
1960

query I rowsort
SELECT - 83 + ( 98 )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8707
SELECT ALL + 66 * - 80 - - CAST( 62 AS SIGNED ) * - - 56 AS col1, 87
----
-1808
87

skipif mysql # not compatible
query II rowsort label-8707
SELECT ALL + 66 * - 80 - - CAST ( 62 AS INTEGER ) * - - 56 AS col1, 87
----
-1808
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8708
SELECT + COUNT( * ) * - CASE + CAST( + ( 54 ) AS SIGNED ) WHEN - + 37 THEN + 91 * 13 * + + ( 28 ) + - + 98 WHEN - CASE + - 47 WHEN + 60 THEN + + 23 ELSE - 44 END * + MIN( DISTINCT 7 ) + - 5 + + - 2 * - - 24 THEN NULL END * - - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8708
SELECT + COUNT ( * ) * - CASE + CAST ( + ( 54 ) AS INTEGER ) WHEN - + 37 THEN + 91 * 13 * + + ( 28 ) + - + 98 WHEN - CASE + - 47 WHEN + 60 THEN + + 23 ELSE - 44 END * + MIN ( DISTINCT 7 ) + - 5 + + - 2 * - - 24 THEN NULL END * - - 97 AS col2
----
NULL

query I rowsort
SELECT + 65 + - + 84 + + - 57 + + 88 * + 11 AS col1
----
892

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8710
SELECT - 77 * 30 DIV + COUNT( * )
----
-2310

skipif mysql # not compatible
query I rowsort label-8710
SELECT - 77 * 30 / + COUNT ( * )
----
-2310

query I rowsort
SELECT + 83 * + 68 AS col1
----
5644

query II rowsort
SELECT - 86 * 64 * - 81 + - + 41, + 59 * + - 23 AS col2
----
445783
-1357

query I rowsort
SELECT - 47 * - + 91
----
4277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8714
SELECT ALL CAST( + - 58 AS SIGNED ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL CAST ( + - 58 AS INTEGER ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT DISTINCT 76 * + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT 76 * + COUNT ( * )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8716
SELECT ALL + CAST( NULL AS SIGNED ) + - 69 + + 21 + 18 * - COUNT( ALL - 73 ) * 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8716
SELECT ALL + CAST ( NULL AS INTEGER ) + - 69 + + 21 + 18 * - COUNT ( ALL - 73 ) * 25 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8717
SELECT + CAST( - 90 AS SIGNED ) + + CASE - - 87 WHEN 19 THEN - 50 ELSE - 57 END * + - 46 - + 43 AS col2, + 95
----
2489
95

skipif mysql # not compatible
query II rowsort label-8717
SELECT + CAST ( - 90 AS INTEGER ) + + CASE - - 87 WHEN 19 THEN - 50 ELSE - 57 END * + - 46 - + 43 AS col2, + 95
----
2489
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT DISTINCT - 80 + + + COUNT( * ) + - 78 col0
----
-157

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT - 80 + + + COUNT ( * ) + - 78 col0
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT - + SUM( + 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-8719
SELECT - + SUM ( + 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT + COUNT( - + 18 )
----
1

skipif mysql # not compatible
query I rowsort label-8720
SELECT + COUNT ( - + 18 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8721
SELECT ALL - COALESCE ( + 70, 25 + - - COALESCE ( - 61, 53 ) - - - CASE - - 88 WHEN 22 * + COALESCE ( - - 87, - CAST( - ( + 23 ) AS DECIMAL ) ) * - ( NULLIF ( + 55, - COUNT( * ) * 61 ) ) + - - 56 THEN + + 99 * CASE + 85 WHEN - - 69 THEN - COUNT( * ) ELSE NULL END DIV + - NULLIF ( + - 67, - 3 * - + COUNT( 87 ) + + 62 * SUM( ALL - - 70 ) * - 56 - + ( - 90 ) ) + + 21 + 28 - - + 36 WHEN + 13 + + + 86 - + 53 THEN - + 2 END DIV - 84, + 78 + + 99, - 75 DIV - 30 ) + SUM( DISTINCT ( 78 ) ) * 92
----
7106

skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL - COALESCE ( + 70, 25 + - - COALESCE ( - 61, 53 ) - - - CASE - - 88 WHEN 22 * + COALESCE ( - - 87, - CAST ( - ( + 23 ) AS REAL ) ) * - ( NULLIF ( + 55, - COUNT ( * ) * 61 ) ) + - - 56 THEN + + 99 * CASE + 85 WHEN - - 69 THEN - COUNT ( * ) ELSE NULL END / + - NULLIF ( + - 67, - 3 * - + COUNT ( 87 ) + + 62 * SUM ( ALL - - 70 ) * - 56 - + ( - 90 ) ) + + 21 + 28 - - + 36 WHEN + 13 + + + 86 - + 53 THEN - + 2 END / - 84, + 78 + + 99, - 75 / - 30 ) + SUM ( DISTINCT ( 78 ) ) * 92
----
7106

query I rowsort
SELECT 13 + - 53 + + 41
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8723
SELECT - COUNT( * ) + + - 57 * 6 * 66 col0, COUNT( * ) AS col0
----
-22573
1

skipif mysql # not compatible
query II rowsort label-8723
SELECT - COUNT ( * ) + + - 57 * 6 * 66 col0, COUNT ( * ) AS col0
----
-22573
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8724
SELECT DISTINCT MAX( ALL 96 ) + 81 DIV + - 15 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-8724
SELECT DISTINCT MAX ( ALL 96 ) + 81 / + - 15 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT 5 + + + ( ( + + MAX( + 10 ) ) ) * 26
----
265

skipif mysql # not compatible
query I rowsort label-8725
SELECT 5 + + + ( ( + + MAX ( + 10 ) ) ) * 26
----
265

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8726
SELECT ALL 29 + - 81 + 10 DIV + 78 + + + ( COUNT( 19 ) ) * - 10
----
-62

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL 29 + - 81 + 10 / + 78 + + + ( COUNT ( 19 ) ) * - 10
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8727
SELECT DISTINCT 47 + CAST( 88 AS SIGNED ) + CASE + ( - 87 ) WHEN - - 94 THEN 61 WHEN + MAX( - 38 ) THEN + 70 END + + 30 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT 47 + CAST ( 88 AS INTEGER ) + CASE + ( - 87 ) WHEN - - 94 THEN 61 WHEN + MAX ( - 38 ) THEN + 70 END + + 30 * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT - 86 * 40 * + - COUNT( - + 29 ) * + - MIN( - + 84 ) * + - 75 col1
----
-21672000

skipif mysql # not compatible
query I rowsort label-8728
SELECT - 86 * 40 * + - COUNT ( - + 29 ) * + - MIN ( - + 84 ) * + - 75 col1
----
-21672000

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT ALL + COALESCE ( - 90, - ( COALESCE ( - COUNT( - - 67 ), + 8, - 65 + - - 66, - 30 + 17 + + COUNT( * ) ) ) ) + - 23 AS col2
----
-113

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL + COALESCE ( - 90, - ( COALESCE ( - COUNT ( - - 67 ), + 8, - 65 + - - 66, - 30 + 17 + + COUNT ( * ) ) ) ) + - 23 AS col2
----
-113

onlyif mysql # aggregate syntax: 
query II rowsort label-8730
SELECT ALL + CASE COUNT( * ) WHEN + - 54 THEN - 26 WHEN + + COUNT( * ) THEN 13 + - 37 ELSE + + 43 * + 37 END AS col1, CASE ( - - AVG ( ALL - 59 ) ) WHEN + 7 THEN + 78 WHEN + 36 THEN NULL WHEN 77 THEN + 0 END AS col2
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-8730
SELECT ALL + CASE COUNT ( * ) WHEN + - 54 THEN - 26 WHEN + + COUNT ( * ) THEN 13 + - 37 ELSE + + 43 * + 37 END AS col1, CASE ( - - AVG ( ALL - 59 ) ) WHEN + 7 THEN + 78 WHEN + 36 THEN NULL WHEN 77 THEN + 0 END AS col2
----
-24
NULL

query II rowsort
SELECT 74 + 79, - 82 + 36 + 54 AS col1
----
153
8

query I rowsort
SELECT 61 + - 66 AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8733
SELECT NULLIF ( + + COUNT( * ), + - COALESCE ( - 39, - 13 * CAST( - - ( COUNT( * ) ) AS SIGNED ) + COALESCE ( - MIN( + + 15 ), - ( + + ( + 79 ) ) DIV 46 * - COUNT( * ) * - 10 + - 90 ) ) DIV + 96 + + 41 + + ( 62 ) + + - CAST( + + 28 AS SIGNED ) ) + 14 DIV 68
----
1

skipif mysql # not compatible
query I rowsort label-8733
SELECT NULLIF ( + + COUNT ( * ), + - COALESCE ( - 39, - 13 * CAST ( - - ( COUNT ( * ) ) AS INTEGER ) + COALESCE ( - MIN ( + + 15 ), - ( + + ( + 79 ) ) / 46 * - COUNT ( * ) * - 10 + - 90 ) ) / + 96 + + 41 + + ( 62 ) + + - CAST ( + + 28 AS INTEGER ) ) + 14 / 68
----
1

query II rowsort
SELECT ALL - ( + 19 ) AS col1, - 61
----
-19
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT - 62 + - MAX( ALL - 33 ) * - - 3 + 7
----
44

skipif mysql # not compatible
query I rowsort label-8735
SELECT - 62 + - MAX ( ALL - 33 ) * - - 3 + 7
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT ALL + COUNT( * ) - + 98 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL + COUNT ( * ) - + 98 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8737
SELECT DISTINCT MIN( DISTINCT + - 8 ) * + - 88 * - - 0 * 6 AS col0, + ( 42 )
----
0
42

skipif mysql # not compatible
query II rowsort label-8737
SELECT DISTINCT MIN ( DISTINCT + - 8 ) * + - 88 * - - 0 * 6 AS col0, + ( 42 )
----
0
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT DISTINCT - CASE 27 WHEN + 17 THEN + - ( - - MIN( + 18 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT - CASE 27 WHEN + 17 THEN + - ( - - MIN ( + 18 ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT 22 * + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-8739
SELECT 22 * + COUNT ( * )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8740
SELECT ALL NULLIF ( ( + COUNT( * ) ), + 66 ) * CAST( NULL AS SIGNED ), + COALESCE ( - + 44, 55, + 22 ) * + COUNT( * ) - - + 69 AS col0
----
NULL
25

skipif mysql # not compatible
query II rowsort label-8740
SELECT ALL NULLIF ( ( + COUNT ( * ) ), + 66 ) * CAST ( NULL AS INTEGER ), + COALESCE ( - + 44, 55, + 22 ) * + COUNT ( * ) - - + 69 AS col0
----
NULL
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8741
SELECT - 64 / + - 8 + + COUNT( * ) + + CAST( NULL AS SIGNED ) * + ( - 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8741
SELECT - 64 / + - 8 + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + ( - 75 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT 38 + - SUM( DISTINCT - 86 ) AS col0
----
124

skipif mysql # not compatible
query I rowsort label-8742
SELECT 38 + - SUM ( DISTINCT - 86 ) AS col0
----
124

query II rowsort
SELECT ALL - 73 col0, - 57 * - 94 + + - 93 * + 77
----
-73
-1803

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT DISTINCT - CASE - 78 WHEN 78 * - 95 + - - 25 THEN NULL WHEN + 6 / - 96 THEN 89 + - + 14 + + 81 * + COUNT( + 5 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT - CASE - 78 WHEN 78 * - 95 + - - 25 THEN NULL WHEN + 6 / - 96 THEN 89 + - + 14 + + 81 * + COUNT ( + 5 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8745
SELECT CAST( NULL AS SIGNED ) * - + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8745
SELECT CAST ( NULL AS INTEGER ) * - + 29 AS col0
----
NULL

query I rowsort
SELECT - 76 * + - 57 + + 97
----
4429

query I rowsort
SELECT 53 * - 46
----
-2438

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ALL - MIN( + 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL - MIN ( + 46 ) AS col2
----
-46

query I rowsort
SELECT ALL - 70 * 37 * + - 78
----
202020

onlyif mysql # DIV for integer division: 
query I rowsort label-8750
SELECT 43 DIV 1
----
43

skipif mysql # not compatible
query I rowsort label-8750
SELECT 43 / 1
----
43

query I rowsort
SELECT DISTINCT - 52 * - 16 * 41
----
34112

query I rowsort
SELECT 27 + 42 * + + 86 + + 43
----
3682

onlyif mysql # DIV for integer division: 
query I rowsort label-8753
SELECT 33 DIV - 7
----
-4

skipif mysql # not compatible
query I rowsort label-8753
SELECT 33 / - 7
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8754
SELECT ALL + 7 + - + CAST( NULL AS SIGNED ) * ( - 79 ) * 82 + COUNT( ALL - 15 ) + - 18 - + + 74 * + 48 + - - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL + 7 + - + CAST ( NULL AS INTEGER ) * ( - 79 ) * 82 + COUNT ( ALL - 15 ) + - 18 - + + 74 * + 48 + - - 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8755
SELECT - 66, - MIN( - + 87 ) AS col0
----
-66
87

skipif mysql # not compatible
query II rowsort label-8755
SELECT - 66, - MIN ( - + 87 ) AS col0
----
-66
87

query I rowsort
SELECT 48 + - 71
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-8757
SELECT + 68 DIV + 52 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8757
SELECT + 68 / + 52 AS col0
----
1

query I rowsort
SELECT 51 * 88 + + 47 AS col1
----
4535

query I rowsort
SELECT ALL - - 32 + + 29 * - 98
----
-2810

onlyif mysql # DIV for integer division: 
query I rowsort label-8760
SELECT - ( 87 ) DIV - 85 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8760
SELECT - ( 87 ) / - 85 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT DISTINCT - - COUNT( * ) + - 60
----
-59

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT - - COUNT ( * ) + - 60
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT ALL + MIN( ALL - + 97 ) * + + 90 + - 12 AS col2
----
-8742

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL + MIN ( ALL - + 97 ) * + + 90 + - 12 AS col2
----
-8742

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT DISTINCT COALESCE ( 15, + 63 * - - 11 + + ( COUNT( * ) ) ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8763
SELECT DISTINCT COALESCE ( 15, + 63 * - - 11 + + ( COUNT ( * ) ) ) AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8764
SELECT - 34 + + CASE + 77 WHEN - - 28 * - - COUNT( DISTINCT - - 13 ) + COUNT( * ) THEN NULL WHEN + - ( + 67 ) THEN - + COUNT( * ) DIV - 80 - + + 16 * 8 WHEN + 10 THEN + + CASE - + 37 WHEN + 22 THEN NULL WHEN - 98 THEN + 83 * 21 ELSE NULL END ELSE + 0 END AS col2, 92 * 16
----
-34
1472

skipif mysql # not compatible
query II rowsort label-8764
SELECT - 34 + + CASE + 77 WHEN - - 28 * - - COUNT ( DISTINCT - - 13 ) + COUNT ( * ) THEN NULL WHEN + - ( + 67 ) THEN - + COUNT ( * ) / - 80 - + + 16 * 8 WHEN + 10 THEN + + CASE - + 37 WHEN + 22 THEN NULL WHEN - 98 THEN + 83 * 21 ELSE NULL END ELSE + 0 END AS col2, 92 * 16
----
-34
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT - SUM( - 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-8765
SELECT - SUM ( - 56 ) AS col1
----
56

query I rowsort
SELECT DISTINCT - + 90 + 99 AS col2
----
9

query I rowsort
SELECT - 1 + + 91 * + - 7
----
-638

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT - - CASE - 67 WHEN COUNT( * ) THEN NULL WHEN 72 THEN NULL WHEN 20 THEN NULL ELSE - - 16 + + 58 - + - 39 END AS col2
----
113

skipif mysql # not compatible
query I rowsort label-8768
SELECT - - CASE - 67 WHEN COUNT ( * ) THEN NULL WHEN 72 THEN NULL WHEN 20 THEN NULL ELSE - - 16 + + 58 - + - 39 END AS col2
----
113

query II rowsort
SELECT - - CASE 31 WHEN + - 53 * 16 - + - 4 THEN - + 2 + - 30 WHEN 16 * + 8 THEN + + 87 ELSE NULL END AS col1, + 26 + - 34
----
NULL
-8

query I rowsort
SELECT ( + - 33 ) AS col1
----
-33

query I rowsort
SELECT - 32 * - - 4 * + 75
----
-9600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8772
SELECT DISTINCT - COUNT( * ) * - 89 + - - 60 + + + 86 * + 98 * 82 + - + 66 * - CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT - COUNT ( * ) * - 89 + - - 60 + + + 86 * + 98 * 82 + - + 66 * - CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT DISTINCT - MAX( + 81 ) * - MAX( 94 )
----
7614

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT - MAX ( + 81 ) * - MAX ( 94 )
----
7614

query II rowsort
SELECT NULLIF ( + 49, - 83 ) - - 58, - 76 AS col0
----
107
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-8775
SELECT 22 * - + 13 AS col0, - 93 + - COUNT( ( 20 ) ) AS col2
----
-286
-94

skipif mysql # not compatible
query II rowsort label-8775
SELECT 22 * - + 13 AS col0, - 93 + - COUNT ( ( 20 ) ) AS col2
----
-286
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-8776
SELECT 73 DIV - 50 + - 77 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-8776
SELECT 73 / - 50 + - 77 AS col0
----
-78

query I rowsort
SELECT ( - ( 5 ) ) * + - 29 AS col2
----
145

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8778
SELECT NULLIF ( + + NULLIF ( + - 5, 26 ), + - 36 DIV 7 ) * + 59 * - - CAST( + + 1 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8778
SELECT NULLIF ( + + NULLIF ( + - 5, 26 ), + - 36 / 7 ) * + 59 * - - CAST ( + + 1 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT COUNT( * ) * - + 23 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-8779
SELECT COUNT ( * ) * - + 23 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT MAX( DISTINCT + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-8780
SELECT MAX ( DISTINCT + 51 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8781
SELECT - COUNT( * ) * + + CAST( NULL AS SIGNED ) + ( - - 83 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8781
SELECT - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + ( - - 83 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT DISTINCT + ( - + 68 ) * - + 12 + ( + NULLIF ( + COUNT( * ), + 12 ) ) + - 73 + - + COALESCE ( + + 28, 17 + + 68 * 25, + - 6, + MAX( - 86 ) ) + - 72 AS col1
----
644

skipif mysql # not compatible
query I rowsort label-8782
SELECT DISTINCT + ( - + 68 ) * - + 12 + ( + NULLIF ( + COUNT ( * ), + 12 ) ) + - 73 + - + COALESCE ( + + 28, 17 + + 68 * 25, + - 6, + MAX ( - 86 ) ) + - 72 AS col1
----
644

query I rowsort
SELECT - 77 * + - 63 + + - 34 + - - 62 * - ( - + 2 ) AS col0
----
4941

query I rowsort
SELECT + 90 * - + 24 + - + 57
----
-2217

onlyif mysql # aggregate syntax: 
query II rowsort label-8785
SELECT + MAX( 18 ) AS col1, + 28 * + - 63 + ( - 72 )
----
18
-1836

skipif mysql # not compatible
query II rowsort label-8785
SELECT + MAX ( 18 ) AS col1, + 28 * + - 63 + ( - 72 )
----
18
-1836

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT + 70 * - COALESCE ( + ( COUNT( * ) ), 97 + + - 19 )
----
-70

skipif mysql # not compatible
query I rowsort label-8786
SELECT + 70 * - COALESCE ( + ( COUNT ( * ) ), 97 + + - 19 )
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-8787
SELECT + SUM( - 45 ) + + - MIN( 53 ) AS col0, + 29 AS col2
----
-98
29

skipif mysql # not compatible
query II rowsort label-8787
SELECT + SUM ( - 45 ) + + - MIN ( 53 ) AS col0, + 29 AS col2
----
-98
29

query I rowsort
SELECT ALL - 30 + + 0
----
-30

query II rowsort
SELECT DISTINCT + 24 AS col0, 33 AS col2
----
24
33

query I rowsort
SELECT DISTINCT - 81 * - + 8
----
648

onlyif mysql # DIV for integer division: 
query I rowsort label-8791
SELECT ALL + 70 + + 72 + + 53 DIV - 70 + - 84 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL + 70 + + 72 + + 53 / - 70 + - 84 AS col2
----
58

query I rowsort
SELECT + 81 + + 55 + - 82 AS col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-8793
SELECT - - 22 AS col2, 5 - 28 + - - 48 + - + COUNT( * ) AS col2
----
22
24

skipif mysql # not compatible
query II rowsort label-8793
SELECT - - 22 AS col2, 5 - 28 + - - 48 + - + COUNT ( * ) AS col2
----
22
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8794
SELECT - + NULLIF ( - 14, - - ( - ( - 94 ) ) ) + + COUNT( * ) DIV 42
----
14

skipif mysql # not compatible
query I rowsort label-8794
SELECT - + NULLIF ( - 14, - - ( - ( - 94 ) ) ) + + COUNT ( * ) / 42
----
14

query I rowsort
SELECT - 77 * - 41 AS col1
----
3157

query I rowsort
SELECT - 21 * 42 * + - 64 * - 90
----
-5080320

query II rowsort
SELECT - + 57 AS col0, - 3
----
-57
-3

query I rowsort
SELECT - + 7 + + - 41
----
-48

query II rowsort
SELECT ALL 77 col1, - 42
----
77
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT - + 57 * + 34 * COALESCE ( + + COUNT( 48 ), 83 + - 2 ) + + 12 - - 70 + + ( + + 36 ) * 42
----
-344

skipif mysql # not compatible
query I rowsort label-8800
SELECT - + 57 * + 34 * COALESCE ( + + COUNT ( 48 ), 83 + - 2 ) + + 12 - - 70 + + ( + + 36 ) * 42
----
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT ALL COUNT( 23 )
----
1

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL COUNT ( 23 )
----
1

query II rowsort
SELECT DISTINCT + 96, 99 AS col2
----
96
99

query I rowsort
SELECT - CASE 38 WHEN - + 3 * + + 34 * + 54 THEN NULL ELSE - 97 + 72 END AS col2
----
25

onlyif mysql # DIV for integer division: 
query II rowsort label-8804
SELECT ALL - 15 DIV + 27 AS col0, - 75 AS col0
----
0
-75

skipif mysql # not compatible
query II rowsort label-8804
SELECT ALL - 15 / + 27 AS col0, - 75 AS col0
----
0
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-8805
SELECT - 54 * COUNT( * ), 80 AS col0
----
-54
80

skipif mysql # not compatible
query II rowsort label-8805
SELECT - 54 * COUNT ( * ), 80 AS col0
----
-54
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT ALL SUM( DISTINCT + - 20 ) * - COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL SUM ( DISTINCT + - 20 ) * - COUNT ( * ) AS col0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8807
SELECT DISTINCT + 90 DIV - 25 + + + 30 + - - 27 * - COUNT( 55 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT + 90 / - 25 + + + 30 + - - 27 * - COUNT ( 55 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8808
SELECT ALL - COUNT( * ) DIV - 16 + - 79 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL - COUNT ( * ) / - 16 + - 79 AS col0
----
-79

query I rowsort
SELECT ( ( - 92 ) ) AS col2
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-8810
SELECT + 7 DIV + 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8810
SELECT + 7 / + 47 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8811
SELECT ALL - ( - 92 ) / + CAST( NULL AS SIGNED ) + - + 38 + 77 * + - 99 / 82 - + - ( - 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL - ( - 92 ) / + CAST ( NULL AS INTEGER ) + - + 38 + 77 * + - 99 / 82 - + - ( - 24 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT ( COUNT( - - 32 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8812
SELECT ( COUNT ( - - 32 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8813
SELECT - 71 DIV 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8813
SELECT - 71 / 86 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8814
SELECT + SUM( + - 64 ) DIV + 22
----
-2

skipif mysql # not compatible
query I rowsort label-8814
SELECT + SUM ( + - 64 ) / + 22
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8815
SELECT ( - 8 ), COUNT( * ) col1
----
-8
1

skipif mysql # not compatible
query II rowsort label-8815
SELECT ( - 8 ), COUNT ( * ) col1
----
-8
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8816
SELECT DISTINCT 0 DIV - 27
----
0

skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT 0 / - 27
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8817
SELECT ALL NULLIF ( - CAST( NULL AS SIGNED ), - - 60 ) * + 18 + + 74 + - 81 * COUNT( * ) * - 28 * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), - - 60 ) * + 18 + + 74 + - 81 * COUNT ( * ) * - 28 * 67
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8818
SELECT + COUNT( * ) DIV + - 33 * - + 26 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8818
SELECT + COUNT ( * ) / + - 33 * - + 26 * - COUNT ( * )
----
0

query I rowsort
SELECT ALL 52 * 34
----
1768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8820
SELECT ALL CASE 27 WHEN 65 THEN - NULLIF ( + 70, + 30 + AVG ( - 12 ) ) WHEN - + ( + COALESCE ( - COUNT( * ), 51 * + NULLIF ( - 33, + 37 * + - 46 - - + 84 - - CAST( 74 AS DECIMAL ) - 43 / + + 60 ) * - + ( - + 0 ) ) ) + 0 / - ( - ( - NULLIF ( NULLIF ( CAST( COUNT( * ) AS SIGNED ), - + COUNT( ( - - 99 ) ) ), + SUM( DISTINCT 57 ) / - 90 ) ) ) THEN + 90 END * + - 89 / + COALESCE ( - CAST( NULL AS SIGNED ), 97 + MAX( 39 ) ) - 8 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL CASE 27 WHEN 65 THEN - NULLIF ( + 70, + 30 + AVG ( - 12 ) ) WHEN - + ( + COALESCE ( - COUNT ( * ), 51 * + NULLIF ( - 33, + 37 * + - 46 - - + 84 - - CAST ( 74 AS REAL ) - 43 / + + 60 ) * - + ( - + 0 ) ) ) + 0 / - ( - ( - NULLIF ( NULLIF ( CAST ( COUNT ( * ) AS INTEGER ), - + COUNT ( ( - - 99 ) ) ), + SUM ( DISTINCT 57 ) / - 90 ) ) ) THEN + 90 END * + - 89 / + COALESCE ( - CAST ( NULL AS INTEGER ), 97 + MAX ( 39 ) ) - 8 col1
----
NULL

query I rowsort
SELECT DISTINCT 51 * + 71 * + + 79 AS col0
----
286059

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8822
SELECT + 39 * 81 * + - 68 + + 71 + + 10 DIV + 84 * - COALESCE ( + - 64, - - 32 * + 99 DIV + + ( - 37 ) * + NULLIF ( - 10, + 51 * - 50 * COUNT( * ) + + 47 ) - - 5 ) AS col1
----
-214741

skipif mysql # not compatible
query I rowsort label-8822
SELECT + 39 * 81 * + - 68 + + 71 + + 10 / + 84 * - COALESCE ( + - 64, - - 32 * + 99 / + + ( - 37 ) * + NULLIF ( - 10, + 51 * - 50 * COUNT ( * ) + + 47 ) - - 5 ) AS col1
----
-214741

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8823
SELECT DISTINCT - 91 * - 9 - + COALESCE ( + + 62, 14 * - - 75 + - 56 ) + + 35 * - 86 + - 86 col0, - CAST( NULL AS SIGNED ) * - CASE - + 8 WHEN + 78 THEN - + 20 END * 90 - - ( - 59 ) - + 1
----
-2339
NULL

skipif mysql # not compatible
query II rowsort label-8823
SELECT DISTINCT - 91 * - 9 - + COALESCE ( + + 62, 14 * - - 75 + - 56 ) + + 35 * - 86 + - 86 col0, - CAST ( NULL AS INTEGER ) * - CASE - + 8 WHEN + 78 THEN - + 20 END * 90 - - ( - 59 ) - + 1
----
-2339
NULL

query I rowsort
SELECT ALL + ( + - 72 ) AS col2
----
-72

query I rowsort
SELECT + - 52 * - 33
----
1716

query I rowsort
SELECT + + 78 - 84
----
-6

query I rowsort
SELECT + - 3 + + 94 + + + 31 + - ( - 68 )
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT - 42 * - + 92 * COUNT( * ) * + 62
----
239568

skipif mysql # not compatible
query I rowsort label-8828
SELECT - 42 * - + 92 * COUNT ( * ) * + 62
----
239568

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT + ( - 32 ) * + + 56 + - COUNT( * ) * COUNT( * )
----
-1793

skipif mysql # not compatible
query I rowsort label-8829
SELECT + ( - 32 ) * + + 56 + - COUNT ( * ) * COUNT ( * )
----
-1793

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT - + 20 * + 75 * + COUNT( + 97 ) AS col0
----
-1500

skipif mysql # not compatible
query I rowsort label-8830
SELECT - + 20 * + 75 * + COUNT ( + 97 ) AS col0
----
-1500

query II rowsort
SELECT + 61 * - ( 10 ) AS col1, 89 * 0 AS col0
----
-610
0

query I rowsort
SELECT DISTINCT 2 + - + 14 col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT ALL - 83 + - COUNT( * ) * 72 * - + 58 + + - COUNT( * )
----
4092

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL - 83 + - COUNT ( * ) * 72 * - + 58 + + - COUNT ( * )
----
4092

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT ALL - 10 + - + COUNT( * ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL - 10 + - + COUNT ( * ) AS col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8835
SELECT DISTINCT - 65 + - 51 + + 51 * - ( - 63 ) - + 70, + CASE SUM( - 44 ) WHEN + 23 * - COUNT( * ) THEN - CAST( + + 65 AS SIGNED ) * - - ( + COUNT( * ) ) END + + 33 * + 58 AS col2
----
3027
NULL

skipif mysql # not compatible
query II rowsort label-8835
SELECT DISTINCT - 65 + - 51 + + 51 * - ( - 63 ) - + 70, + CASE SUM ( - 44 ) WHEN + 23 * - COUNT ( * ) THEN - CAST ( + + 65 AS INTEGER ) * - - ( + COUNT ( * ) ) END + + 33 * + 58 AS col2
----
3027
NULL

query I rowsort
SELECT ALL + 11 + - - 0 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT 53 - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-8837
SELECT 53 - COUNT ( * )
----
52

query II rowsort
SELECT ALL 38 col0, + 43
----
38
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT 37 + - + 20 * ( - NULLIF ( - 19, + COUNT( * ) / + - MIN( DISTINCT + 63 ) ) ) * - 13 * + - 27
----
-133343

skipif mysql # not compatible
query I rowsort label-8839
SELECT 37 + - + 20 * ( - NULLIF ( - 19, + COUNT ( * ) / + - MIN ( DISTINCT + 63 ) ) ) * - 13 * + - 27
----
-133343

query I rowsort
SELECT ALL + 11 + + 87 col1
----
98

query II rowsort
SELECT 19 AS col2, + 93 AS col0
----
19
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT + 82 * + MAX( DISTINCT + 3 ) + + 62 AS col1
----
308

skipif mysql # not compatible
query I rowsort label-8842
SELECT + 82 * + MAX ( DISTINCT + 3 ) + + 62 AS col1
----
308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8843
SELECT SUM( DISTINCT + 0 ) * - - 71 * - - CAST( NULL AS SIGNED ) + - 47 * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-8843
SELECT SUM ( DISTINCT + 0 ) * - - 71 * - - CAST ( NULL AS INTEGER ) + - 47 * - 4
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8844
SELECT DISTINCT + CAST( + + 56 AS SIGNED ) + + 2, 50 col0
----
58
50

skipif mysql # not compatible
query II rowsort label-8844
SELECT DISTINCT + CAST ( + + 56 AS INTEGER ) + + 2, 50 col0
----
58
50

query I rowsort
SELECT ALL 11 * 91
----
1001

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT 72 + - - CASE + 92 WHEN + - 26 THEN NULL WHEN + NULLIF ( - + 80, COUNT( * ) ) + + 58 + + SUM( DISTINCT - 71 ) THEN + 2 * - ( + - 85 ) END + + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8846
SELECT 72 + - - CASE + 92 WHEN + - 26 THEN NULL WHEN + NULLIF ( - + 80, COUNT ( * ) ) + + 58 + + SUM ( DISTINCT - 71 ) THEN + 2 * - ( + - 85 ) END + + 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT ALL + 48 - + COUNT( * ) col1
----
47

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL + 48 - + COUNT ( * ) col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT MAX( ALL - 36 ) * 67
----
-2412

skipif mysql # not compatible
query I rowsort label-8848
SELECT MAX ( ALL - 36 ) * 67
----
-2412

query I rowsort
SELECT ALL ( + 84 ) - - - 1
----
83

query II rowsort
SELECT ALL - 85 AS col0, 8 AS col1
----
-85
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8851
SELECT + MAX( CAST( NULL AS SIGNED ) ) * + - 60 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8851
SELECT + MAX ( CAST ( NULL AS INTEGER ) ) * + - 60 col1
----
NULL

query I rowsort
SELECT ALL - 62 - + 79 AS col2
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8853
SELECT + 16, + MAX( ALL - - CAST( NULL AS SIGNED ) ) AS col2
----
16
NULL

skipif mysql # not compatible
query II rowsort label-8853
SELECT + 16, + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) AS col2
----
16
NULL

query I rowsort
SELECT 64 + + - 37 + - + 24 * - - 0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8855
SELECT DISTINCT + 59 DIV - 41 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT + 59 / - 41 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-8856
SELECT ALL - 84, + 82 * - + 18 + + ( + 11 ) + + + 68 DIV + + 77 AS col2
----
-84
-1465

skipif mysql # not compatible
query II rowsort label-8856
SELECT ALL - 84, + 82 * - + 18 + + ( + 11 ) + + + 68 / + + 77 AS col2
----
-84
-1465

query I rowsort
SELECT ( - 55 ) + + - 64 AS col2
----
-119

query II rowsort
SELECT - 0 AS col1, + 6
----
0
6

query II rowsort
SELECT ALL 22 AS col1, 84 AS col2
----
22
84

query I rowsort
SELECT + 79 + + 9
----
88

query II rowsort
SELECT - - 54 AS col1, + 11 * 68 - - 37 * - 12 col2
----
54
304

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL - 44 + - + 76 + + MIN( + - ( 87 ) )
----
-207

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL - 44 + - + 76 + + MIN ( + - ( 87 ) )
----
-207

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8863
SELECT CAST( NULL AS DECIMAL ) * + - 53 + + 13 AS col2, - SUM( DISTINCT - 25 ) * + COUNT( ALL + 17 ) + + COUNT( * )
----
NULL
26

skipif mysql # not compatible
query II rowsort label-8863
SELECT CAST ( NULL AS REAL ) * + - 53 + + 13 AS col2, - SUM ( DISTINCT - 25 ) * + COUNT ( ALL + 17 ) + + COUNT ( * )
----
NULL
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT 30 + + 30 + 48 * - - COUNT( * ) * - + 22
----
-996

skipif mysql # not compatible
query I rowsort label-8864
SELECT 30 + + 30 + 48 * - - COUNT ( * ) * - + 22
----
-996

onlyif mysql # DIV for integer division: 
query I rowsort label-8865
SELECT ( - 83 ) + 27 + - 30 * 39 + 8 + - + 13 DIV - - 77
----
-1218

skipif mysql # not compatible
query I rowsort label-8865
SELECT ( - 83 ) + 27 + - 30 * 39 + 8 + - + 13 / - - 77
----
-1218

query I rowsort
SELECT ALL - 79 + - COALESCE ( + 26, 49 ) * - 8 * + 14 col1
----
2833

query I rowsort
SELECT 53 + + - 1
----
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8868
SELECT ALL CAST( + + ( + + CAST( 20 AS SIGNED ) ) AS SIGNED ) DIV - 23 col1
----
0

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL CAST ( + + ( + + CAST ( 20 AS INTEGER ) ) AS INTEGER ) / - 23 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8869
SELECT ( MIN( + + 86 ) ) DIV COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-8869
SELECT ( MIN ( + + 86 ) ) / COUNT ( * )
----
86

query I rowsort
SELECT 63 + - 15 + - 67 AS col0
----
-19

query I rowsort
SELECT ALL - 79 + 26 + + - 95 AS col0
----
-148

query I rowsort
SELECT ALL + 25 * - - 58
----
1450

query I rowsort
SELECT 82 + - - 59 AS col0
----
141

query II rowsort
SELECT ALL COALESCE ( + 97, 32, 40 ) - + - 30 AS col0, 56
----
127
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8875
SELECT ALL - 89 DIV 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL - 89 / 93 AS col0
----
0

query I rowsort
SELECT DISTINCT + 62 * 17 * - - 51
----
53754

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8877
SELECT ALL - CASE 96 WHEN + - 40 THEN NULL ELSE - - SUM( ALL - 15 ) DIV + COUNT( * ) END AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL - CASE 96 WHEN + - 40 THEN NULL ELSE - - SUM ( ALL - 15 ) / + COUNT ( * ) END AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT 88 * COUNT( - 11 ) * + 15 AS col2
----
1320

skipif mysql # not compatible
query I rowsort label-8878
SELECT 88 * COUNT ( - 11 ) * + 15 AS col2
----
1320

query I rowsort
SELECT + NULLIF ( 64, - ( - - 0 ) * + 46 ) AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8880
SELECT - CASE - ( + 24 ) WHEN + 7 THEN - CAST( - + 15 AS SIGNED ) + 24 WHEN - + 82 THEN + + 12 * - 43 + + - 43 WHEN + 94 / - 49 THEN - 61 END * - 60 - 32 + COUNT( * ) + - 31 * + - 23 AS col1, CASE + 24 WHEN + 88 THEN NULL WHEN - 23 * - 47 + - 24 + + 58 THEN NULL ELSE + 24 + - + ( - 33 ) END
----
NULL
57

skipif mysql # not compatible
query II rowsort label-8880
SELECT - CASE - ( + 24 ) WHEN + 7 THEN - CAST ( - + 15 AS INTEGER ) + 24 WHEN - + 82 THEN + + 12 * - 43 + + - 43 WHEN + 94 / - 49 THEN - 61 END * - 60 - 32 + COUNT ( * ) + - 31 * + - 23 AS col1, CASE + 24 WHEN + 88 THEN NULL WHEN - 23 * - 47 + - 24 + + 58 THEN NULL ELSE + 24 + - + ( - 33 ) END
----
NULL
57

query II rowsort
SELECT 17 * + 57, + 39 AS col1
----
969
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8882
SELECT DISTINCT - CASE + 79 WHEN 95 * + + 75 * + - 38 THEN NULL ELSE - COUNT( * ) DIV COUNT( DISTINCT + 13 ) DIV + + 33 + + + 83 END
----
-83

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT - CASE + 79 WHEN 95 * + + 75 * + - 38 THEN NULL ELSE - COUNT ( * ) / COUNT ( DISTINCT + 13 ) / + + 33 + + + 83 END
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-8883
SELECT 97 * - - 35 AS col0, - CASE + - 98 WHEN + - 59 THEN - + CASE + + 5 WHEN - COUNT( * ) THEN - NULLIF ( 21, - ( - - 1 ) / - - 47 ) WHEN - - ( + - COUNT( DISTINCT + + ( + + 82 ) ) ) THEN + 71 ELSE NULL END WHEN ( 10 ) THEN NULL ELSE NULL END * - SUM( ALL - 28 ) AS col0
----
3395
NULL

skipif mysql # not compatible
query II rowsort label-8883
SELECT 97 * - - 35 AS col0, - CASE + - 98 WHEN + - 59 THEN - + CASE + + 5 WHEN - COUNT ( * ) THEN - NULLIF ( 21, - ( - - 1 ) / - - 47 ) WHEN - - ( + - COUNT ( DISTINCT + + ( + + 82 ) ) ) THEN + 71 ELSE NULL END WHEN ( 10 ) THEN NULL ELSE NULL END * - SUM ( ALL - 28 ) AS col0
----
3395
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8884
SELECT ALL - CASE - 11 WHEN COUNT( * ) + - 90 THEN - 26 * 86 - COALESCE ( CAST( NULL AS SIGNED ), + 38, + - 31 ) + + 27 ELSE COUNT( * ) + 21 END
----
-22

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL - CASE - 11 WHEN COUNT ( * ) + - 90 THEN - 26 * 86 - COALESCE ( CAST ( NULL AS INTEGER ), + 38, + - 31 ) + + 27 ELSE COUNT ( * ) + 21 END
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT ALL + MAX( ALL + 35 ) * - 28
----
-980

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL + MAX ( ALL + 35 ) * - 28
----
-980

query I rowsort
SELECT 76 * + 94
----
7144

query I rowsort
SELECT - - 39 * - 44 + + 19 * - 19
----
-2077

query I rowsort
SELECT ALL - 15 + + 36 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT DISTINCT - ( - 60 ) + + 70 + 49 + + - 7 + - 27 + + COUNT( * ) + + 94 AS col2
----
240

skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT - ( - 60 ) + + 70 + 49 + + - 7 + - 27 + + COUNT ( * ) + + 94 AS col2
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8890
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 48
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8891
SELECT ALL - 54 DIV - + MAX( + 72 ) + - - 14 AS col0, 94 * - + 84 col1
----
14
-7896

skipif mysql # not compatible
query II rowsort label-8891
SELECT ALL - 54 / - + MAX ( + 72 ) + - - 14 AS col0, 94 * - + 84 col1
----
14
-7896

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT DISTINCT 84 + + 69 + + COUNT( * ) AS col0
----
154

skipif mysql # not compatible
query I rowsort label-8892
SELECT DISTINCT 84 + + 69 + + COUNT ( * ) AS col0
----
154

query I rowsort
SELECT DISTINCT 43 + + - 69 AS col0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8894
SELECT - 78 + + 44 + - 14 * + 87 + + 13 + - 77 DIV - + 29 + - COUNT( * ) + 13 + + 24 * 7 * COUNT( * )
----
-1057

skipif mysql # not compatible
query I rowsort label-8894
SELECT - 78 + + 44 + - 14 * + 87 + + 13 + - 77 / - + 29 + - COUNT ( * ) + 13 + + 24 * 7 * COUNT ( * )
----
-1057

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8895
SELECT - COUNT( * ) AS col1, - ( + - ( - + 44 ) ) + - 66 * + COUNT( * ) + + - 68 + 72 DIV COUNT( ALL + - 32 ) col0
----
-1
-106

skipif mysql # not compatible
query II rowsort label-8895
SELECT - COUNT ( * ) AS col1, - ( + - ( - + 44 ) ) + - 66 * + COUNT ( * ) + + - 68 + 72 / COUNT ( ALL + - 32 ) col0
----
-1
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8896
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 82 + + 63 + - SUM( - + 82 ) * NULLIF ( + 1, - 50 / 56 + + 31 + - - 73 + - 36 + + 71 + 93 / - + CASE + + COALESCE ( 25, + AVG ( ALL 76 ), - + 77 ) WHEN 62 + + 66 THEN 90 - + - 1 END * - 16 * - 0 * 41 / + 9 + - 60 / - 12 + - 63 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8896
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 82 + + 63 + - SUM ( - + 82 ) * NULLIF ( + 1, - 50 / 56 + + 31 + - - 73 + - 36 + + 71 + 93 / - + CASE + + COALESCE ( 25, + AVG ( ALL 76 ), - + 77 ) WHEN 62 + + 66 THEN 90 - + - 1 END * - 16 * - 0 * 41 / + 9 + - 60 / - 12 + - 63 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT DISTINCT COUNT( * ) + - 57
----
-56

skipif mysql # not compatible
query I rowsort label-8897
SELECT DISTINCT COUNT ( * ) + - 57
----
-56

query I rowsort
SELECT ALL 83 - - 84 + - 92 AS col2
----
75

query I rowsort
SELECT + 65 - - 63 AS col2
----
128

query I rowsort
SELECT ALL - 48 - + + 37
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-8901
SELECT + 94 * + COUNT( * ) * - 76, - 59 AS col2
----
-7144
-59

skipif mysql # not compatible
query II rowsort label-8901
SELECT + 94 * + COUNT ( * ) * - 76, - 59 AS col2
----
-7144
-59

query I rowsort
SELECT + 11 - + - 89 + - 5 * + 97 * + 28
----
-13480

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT - ( - MIN( + 30 ) ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-8903
SELECT - ( - MIN ( + 30 ) ) AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8904
SELECT + CAST( + - ( + + 59 ) AS SIGNED ) * - 32 * 40 - - + COUNT( * )
----
75521

skipif mysql # not compatible
query I rowsort label-8904
SELECT + CAST ( + - ( + + 59 ) AS INTEGER ) * - 32 * 40 - - + COUNT ( * )
----
75521

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT + 58 + - 17 * - CASE - COUNT( * ) WHEN - 63 THEN + 5 WHEN + - 88 * + 84 - - ( + 6 ) THEN + COALESCE ( + 50, - ( - 13 ) - COUNT( * ) * + 77 + - CASE + 78 WHEN + 61 THEN NULL WHEN + - COUNT( * ) + + 92 * + 75 THEN + - 29 WHEN + - 0 THEN - NULLIF ( - 41, - - 91 + - + 40 ) * + 81 - 23 ELSE NULL END ) ELSE + 12 END
----
262

skipif mysql # not compatible
query I rowsort label-8905
SELECT + 58 + - 17 * - CASE - COUNT ( * ) WHEN - 63 THEN + 5 WHEN + - 88 * + 84 - - ( + 6 ) THEN + COALESCE ( + 50, - ( - 13 ) - COUNT ( * ) * + 77 + - CASE + 78 WHEN + 61 THEN NULL WHEN + - COUNT ( * ) + + 92 * + 75 THEN + - 29 WHEN + - 0 THEN - NULLIF ( - 41, - - 91 + - + 40 ) * + 81 - 23 ELSE NULL END ) ELSE + 12 END
----
262

query I rowsort
SELECT ALL 69 * - 75
----
-5175

onlyif mysql # DIV for integer division: 
query I rowsort label-8907
SELECT - 81 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-8907
SELECT - 81 / 86
----
0

query I rowsort
SELECT ALL + CASE - 56 WHEN + 61 + 18 THEN + 54 WHEN + 78 THEN - 11 - 39 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8909
SELECT 22 / 72 + + 10 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8909
SELECT 22 / 72 + + 10 * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT ALL 34 * + COUNT( * ) col1
----
34

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL 34 * + COUNT ( * ) col1
----
34

query I rowsort
SELECT DISTINCT 92 * 93
----
8556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8912
SELECT - 4 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8912
SELECT - 4 + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT COALESCE ( ( - 55 ), 20 - + COUNT( * ) * 10 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-8913
SELECT COALESCE ( ( - 55 ), 20 - + COUNT ( * ) * 10 ) AS col1
----
-55

query I rowsort
SELECT 95 * - 15 + - 25
----
-1450

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8915
SELECT ALL + COUNT( * ) * + 78 + + CAST( NULL AS DECIMAL ) * - 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL + COUNT ( * ) * + 78 + + CAST ( NULL AS REAL ) * - 76 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT + ( - MIN( + 24 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-8916
SELECT + ( - MIN ( + 24 ) )
----
-24

query I rowsort
SELECT - 97 * 24 + 93 AS col0
----
-2235

query I rowsort
SELECT ALL + ( 99 ) AS col1
----
99

query I rowsort
SELECT + ( COALESCE ( 75, 27, - 49 + - 90 ) )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT 60 * COUNT( * ) + 13
----
73

skipif mysql # not compatible
query I rowsort label-8920
SELECT 60 * COUNT ( * ) + 13
----
73

query I rowsort
SELECT ALL + 74 * - 92 + 47
----
-6761

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT NULLIF ( COUNT( * ), 28 * + 34 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8922
SELECT NULLIF ( COUNT ( * ), 28 * + 34 ) AS col0
----
1

query I rowsort
SELECT ALL + 7 * 86 + - 20 AS col1
----
582

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8924
SELECT DISTINCT + COUNT( * ) * 69 + COALESCE ( - 23 + 75 DIV - 15, + 93 * - 89 ) col1
----
41

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT + COUNT ( * ) * 69 + COALESCE ( - 23 + 75 / - 15, + 93 * - 89 ) col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT - 55 * COALESCE ( 23 * - 73, COUNT( DISTINCT 1 ) - 14, 67 )
----
92345

skipif mysql # not compatible
query I rowsort label-8925
SELECT - 55 * COALESCE ( 23 * - 73, COUNT ( DISTINCT 1 ) - 14, 67 )
----
92345

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT DISTINCT - CASE - 80 WHEN COALESCE ( + 17, + 86, 32 ) THEN NULL WHEN 2 * COUNT( * ) - - 2 THEN + 65 END * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT - CASE - 80 WHEN COALESCE ( + 17, + 86, 32 ) THEN NULL WHEN 2 * COUNT ( * ) - - 2 THEN + 65 END * 74
----
NULL

query I rowsort
SELECT - 90 * - 15
----
1350

query I rowsort
SELECT DISTINCT + CASE - 54 WHEN 54 THEN 38 END AS col2
----
NULL

query I rowsort
SELECT ALL - 51 * + CASE 33 WHEN 56 - 77 THEN 70 / + 2 + + 94 WHEN - 6 * 90 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT ALL + ( 44 ) * - COUNT( * ) + + 65
----
21

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL + ( 44 ) * - COUNT ( * ) + + 65
----
21

query I rowsort
SELECT DISTINCT ( 59 ) AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8932
SELECT - COALESCE ( - 67, - 36, SUM( 95 ) DIV 53 + + ( COUNT( * ) + CAST( NULL AS SIGNED ) * + 6 ), - 36 * 24 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-8932
SELECT - COALESCE ( - 67, - 36, SUM ( 95 ) / 53 + + ( COUNT ( * ) + CAST ( NULL AS INTEGER ) * + 6 ), - 36 * 24 ) AS col1
----
67

query I rowsort
SELECT DISTINCT + ( 35 ) - + 79 * + 40 AS col2
----
-3125

onlyif mysql # DIV for integer division: 
query I rowsort label-8934
SELECT ALL 36 DIV + 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL 36 / + 57 AS col1
----
0

query I rowsort
SELECT - 42 + 26 * 18 AS col1
----
426

query I rowsort
SELECT ALL ( CASE ( + 95 ) WHEN 60 THEN NULL ELSE - 4 END )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8937
SELECT DISTINCT 53 - + 25 DIV 10
----
51

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT 53 - + 25 / 10
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8938
SELECT DISTINCT - 7 DIV ( - 84 )
----
0

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT - 7 / ( - 84 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT ALL COUNT( * ) * 42 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL COUNT ( * ) * 42 AS col0
----
42

query I rowsort
SELECT ALL 88 * + 84
----
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT + MAX( ALL 23 ) * 12 AS col1
----
276

skipif mysql # not compatible
query I rowsort label-8941
SELECT + MAX ( ALL 23 ) * 12 AS col1
----
276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8942
SELECT DISTINCT CAST( - COALESCE ( - 17, - MIN( 8 ) * + 46 ) AS SIGNED ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT CAST ( - COALESCE ( - 17, - MIN ( 8 ) * + 46 ) AS INTEGER ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT + 70 * + MIN( ALL - NULLIF ( + 99, + 14 ) )
----
-6930

skipif mysql # not compatible
query I rowsort label-8943
SELECT + 70 * + MIN ( ALL - NULLIF ( + 99, + 14 ) )
----
-6930

query I rowsort
SELECT ALL 94 * 21
----
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT - SUM( ALL + 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-8945
SELECT - SUM ( ALL + 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT + 64 + - NULLIF ( - NULLIF ( SUM( DISTINCT 84 ), ( - COUNT( * ) ) ), - 98 * - 90 + 6 * SUM( DISTINCT + 56 + - 42 ) )
----
148

skipif mysql # not compatible
query I rowsort label-8946
SELECT + 64 + - NULLIF ( - NULLIF ( SUM ( DISTINCT 84 ), ( - COUNT ( * ) ) ), - 98 * - 90 + 6 * SUM ( DISTINCT + 56 + - 42 ) )
----
148

query I rowsort
SELECT + 34 * - 33 col0
----
-1122

query I rowsort
SELECT + 40 + 80 AS col1
----
120

query I rowsort
SELECT ALL + COALESCE ( - 39, + 12 ) + 93
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8950
SELECT DISTINCT - 67 DIV - SUM( 12 + - 44 ) + - 95 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-8950
SELECT DISTINCT - 67 / - SUM ( 12 + - 44 ) + - 95 AS col1
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8951
SELECT ALL - 74 DIV - 36 + - 31 * COUNT( DISTINCT 14 + + 63 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL - 74 / - 36 + - 31 * COUNT ( DISTINCT 14 + + 63 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT DISTINCT + CASE 89 WHEN 13 * MIN( DISTINCT 92 ) THEN - 54 WHEN + 71 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8952
SELECT DISTINCT + CASE 89 WHEN 13 * MIN ( DISTINCT 92 ) THEN - 54 WHEN + 71 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8953
SELECT ALL + - 90 DIV COUNT( * ) + + 94
----
4

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL + - 90 / COUNT ( * ) + + 94
----
4

query I rowsort
SELECT + 22 - + 43
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT + 36 * + COALESCE ( + CASE - 45 WHEN 76 * - 65 THEN 33 * - 11 WHEN 79 - - 32 THEN NULL WHEN - COUNT( * ) / + 8 + 61 THEN NULL END * - 91 - + ( 63 + - 1 ), ( + 99 ) ) col1
----
3564

skipif mysql # not compatible
query I rowsort label-8955
SELECT + 36 * + COALESCE ( + CASE - 45 WHEN 76 * - 65 THEN 33 * - 11 WHEN 79 - - 32 THEN NULL WHEN - COUNT ( * ) / + 8 + 61 THEN NULL END * - 91 - + ( 63 + - 1 ), ( + 99 ) ) col1
----
3564

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8956
SELECT + COALESCE ( - 8, - 54 * COUNT( * ) + 33 DIV - 21 ) * 46
----
-368

skipif mysql # not compatible
query I rowsort label-8956
SELECT + COALESCE ( - 8, - 54 * COUNT ( * ) + 33 / - 21 ) * 46
----
-368

query I rowsort
SELECT ALL 75 * 59 AS col0
----
4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8958
SELECT ALL - CAST( NULL AS SIGNED ) / 65 + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL - CAST ( NULL AS INTEGER ) / 65 + - 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT + + SUM( DISTINCT 69 ) - 47
----
22

skipif mysql # not compatible
query I rowsort label-8959
SELECT + + SUM ( DISTINCT 69 ) - 47
----
22

query I rowsort
SELECT ALL + 23 + + 30
----
53

query I rowsort
SELECT ALL + 12 + 55 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT ALL - + NULLIF ( - ( 5 ), - NULLIF ( 61, + 9 + + 17 / + 76 ) * - COUNT( DISTINCT 36 * 66 ) ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL - + NULLIF ( - ( 5 ), - NULLIF ( 61, + 9 + + 17 / + 76 ) * - COUNT ( DISTINCT 36 * 66 ) ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT ALL ( COUNT( * ) ) * 85
----
85

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL ( COUNT ( * ) ) * 85
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-8964
SELECT ALL + 32 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL + 32 / - 79
----
0

query I rowsort
SELECT - 8 * ( + ( 81 ) )
----
-648

query I rowsort
SELECT 77 + - 64 AS col0
----
13

query I rowsort
SELECT - 22 * + 44 AS col1
----
-968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8968
SELECT 84 * - SUM( ( + 93 ) ) + + ( CAST( NULL AS SIGNED ) ) / - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8968
SELECT 84 * - SUM ( ( + 93 ) ) + + ( CAST ( NULL AS INTEGER ) ) / - 31 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 47 - - 67
----
20

query I rowsort
SELECT ALL - 20 * - ( - 48 ) * ( 84 * 87 )
----
-7015680

query I rowsort
SELECT DISTINCT 72 - - 8 + 98
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT DISTINCT - COUNT( * ) * + - 72 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT - COUNT ( * ) * + - 72 AS col0
----
72

query I rowsort
SELECT 65 + + 96 AS col0
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-8974
SELECT ALL - 30 DIV - + 73
----
0

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL - 30 / - + 73
----
0

query I rowsort
SELECT ALL - 94 * - 56 col1
----
5264

query I rowsort
SELECT 72 * 64 col2
----
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT ALL - 21 * - COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL - 21 * - COUNT ( * ) AS col2
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8978
SELECT 91 DIV - - COUNT( * ) col0
----
91

skipif mysql # not compatible
query I rowsort label-8978
SELECT 91 / - - COUNT ( * ) col0
----
91

query I rowsort
SELECT 62 * + - 38
----
-2356

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT NULLIF ( 83, CASE + 32 WHEN 96 THEN + 62 ELSE NULL END + + COUNT( * ) ) + + 57 * 8 AS col2
----
539

skipif mysql # not compatible
query I rowsort label-8980
SELECT NULLIF ( 83, CASE + 32 WHEN 96 THEN + 62 ELSE NULL END + + COUNT ( * ) ) + + 57 * 8 AS col2
----
539

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT 78 - - 8 - + COUNT( * ) * 35 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-8981
SELECT 78 - - 8 - + COUNT ( * ) * 35 AS col0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8982
SELECT 81 DIV 46 * + NULLIF ( 11 * 8, 35 * + COUNT( * ) )
----
88

skipif mysql # not compatible
query I rowsort label-8982
SELECT 81 / 46 * + NULLIF ( 11 * 8, 35 * + COUNT ( * ) )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8983
SELECT COUNT( * ) DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-8983
SELECT COUNT ( * ) / - 43
----
0

query I rowsort
SELECT ALL + 58 + ( + 19 ) * 49 AS col1
----
989

query I rowsort
SELECT 87 - + 77 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT DISTINCT MIN( ALL + - 16 ) + ( + 60 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-8986
SELECT DISTINCT MIN ( ALL + - 16 ) + ( + 60 ) AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8987
SELECT - 54 / CAST( - CASE - 33 WHEN + COALESCE ( + COALESCE ( - 23, + 23 * - 43 ), - 45, - COUNT( * ) ) - 84 THEN + COUNT( * ) + NULLIF ( - 62 - - COUNT( * ), 17 * 76 ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT - 54 / CAST ( - CASE - 33 WHEN + COALESCE ( + COALESCE ( - 23, + 23 * - 43 ), - 45, - COUNT ( * ) ) - 84 THEN + COUNT ( * ) + NULLIF ( - 62 - - COUNT ( * ), 17 * 76 ) END AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 43 + ( 64 )
----
107

query I rowsort
SELECT ALL - 79 * 20
----
-1580

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT DISTINCT - 21 + + + SUM( - 63 ) * SUM( ALL 12 ) AS col2
----
-777

skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT - 21 + + + SUM ( - 63 ) * SUM ( ALL 12 ) AS col2
----
-777

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT - COUNT( * ) + + ( + 2 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8991
SELECT - COUNT ( * ) + + ( + 2 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT SUM( ALL + 81 ) - 96 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-8992
SELECT SUM ( ALL + 81 ) - 96 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT + 90 - + COALESCE ( + COUNT( * ), + COUNT( * ), ( 84 ) * + NULLIF ( MIN( 49 ), + 7 + 11 ) ) + - 83 col0
----
6

skipif mysql # not compatible
query I rowsort label-8993
SELECT + 90 - + COALESCE ( + COUNT ( * ), + COUNT ( * ), ( 84 ) * + NULLIF ( MIN ( 49 ), + 7 + 11 ) ) + - 83 col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8994
SELECT ALL - CASE + AVG ( - 28 ) WHEN + 68 + - CAST( 57 AS SIGNED ) * + 7 THEN 21 + - COUNT( * ) END + + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL - CASE + AVG ( - 28 ) WHEN + 68 + - CAST ( 57 AS INTEGER ) * + 7 THEN 21 + - COUNT ( * ) END + + 69 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8995
SELECT DISTINCT 64 * MAX( - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8995
SELECT DISTINCT 64 * MAX ( - CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT - 49 * - 60 + 32
----
2972

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT + ( + - COUNT( * ) ) * 95 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-8997
SELECT + ( + - COUNT ( * ) ) * 95 AS col2
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-8998
SELECT ALL - ( - 97 ) + - COALESCE ( + 59, - 52 * + 14, 2 ) DIV + 24 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL - ( - 97 ) + - COALESCE ( + 59, - 52 * + 14, 2 ) / + 24 AS col2
----
95

query I rowsort
SELECT DISTINCT - + 65 * 95 - 91
----
-6266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9000
SELECT + COUNT( * ) DIV - ( + 72 ) + - 2
----
-2

skipif mysql # not compatible
query I rowsort label-9000
SELECT + COUNT ( * ) / - ( + 72 ) + - 2
----
-2

query I rowsort
SELECT 12 + - NULLIF ( 57, - 33 - 89 ) * - ( 70 )
----
4002

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT ALL SUM( ALL + 21 ) - 9 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL SUM ( ALL + 21 ) - 9 AS col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9003
SELECT - 36 DIV + + 36 + COALESCE ( - 23 + + 80, + 40 )
----
56

skipif mysql # not compatible
query I rowsort label-9003
SELECT - 36 / + + 36 + COALESCE ( - 23 + + 80, + 40 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT - COUNT( * ) * - + 47
----
47

skipif mysql # not compatible
query I rowsort label-9004
SELECT - COUNT ( * ) * - + 47
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT + + MIN( ALL 39 )
----
39

skipif mysql # not compatible
query I rowsort label-9005
SELECT + + MIN ( ALL 39 )
----
39

query I rowsort
SELECT - 60 * + 84 + 29
----
-5011

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9007
SELECT ALL - + CAST( + 11 AS SIGNED ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL - + CAST ( + 11 AS INTEGER ) AS col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9008
SELECT DISTINCT 25 * ( + NULLIF ( 91, + CASE - MAX( DISTINCT + ( 22 ) ) WHEN COUNT( * ) + - 90 THEN NULL WHEN - ( - 74 ) THEN - COUNT( 80 ) END ) ) DIV - 28 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-9008
SELECT DISTINCT 25 * ( + NULLIF ( 91, + CASE - MAX ( DISTINCT + ( 22 ) ) WHEN COUNT ( * ) + - 90 THEN NULL WHEN - ( - 74 ) THEN - COUNT ( 80 ) END ) ) / - 28 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT ( - COUNT( * ) ) + 58
----
57

skipif mysql # not compatible
query I rowsort label-9009
SELECT ( - COUNT ( * ) ) + 58
----
57

query I rowsort
SELECT 82 * - 13
----
-1066

query I rowsort
SELECT ALL 60 * - 99 col0
----
-5940

query I rowsort
SELECT ALL 19 * + 1 AS col0
----
19

query I rowsort
SELECT DISTINCT 78 * - 2 AS col2
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT DISTINCT ( + ( - + 27 ) ) * MAX( ALL 96 ) AS col1
----
-2592

skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT ( + ( - + 27 ) ) * MAX ( ALL 96 ) AS col1
----
-2592

query I rowsort
SELECT DISTINCT 66 * 49
----
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT ALL 24 * - - 51 * - - CASE 51 WHEN + 52 THEN - 27 * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL 24 * - - 51 * - - CASE 51 WHEN + 52 THEN - 27 * - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT ALL 83 * 1 * + COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL 83 * 1 * + COUNT ( * ) AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9018
SELECT COUNT( ALL - CAST( NULL AS SIGNED ) ) * 79 * 41
----
0

skipif mysql # not compatible
query I rowsort label-9018
SELECT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * 79 * 41
----
0

query I rowsort
SELECT 52 + + + 30 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT + 30 * - ( - 82 ) * COUNT( * ) - 73
----
2387

skipif mysql # not compatible
query I rowsort label-9020
SELECT + 30 * - ( - 82 ) * COUNT ( * ) - 73
----
2387

onlyif mysql # DIV for integer division: 
query II rowsort label-9021
SELECT ALL 88, ( + - 34 ) DIV - 80 AS col1
----
88
0

skipif mysql # not compatible
query II rowsort label-9021
SELECT ALL 88, ( + - 34 ) / - 80 AS col1
----
88
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT - SUM( ALL + - 92 )
----
92

skipif mysql # not compatible
query I rowsort label-9022
SELECT - SUM ( ALL + - 92 )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9023
SELECT 97 + 54 + + + 48 DIV + 31
----
152

skipif mysql # not compatible
query I rowsort label-9023
SELECT 97 + 54 + + + 48 / + 31
----
152

query I rowsort
SELECT 7 * - ( 39 ) * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT ALL - COUNT( ALL + - 28 ) + 27 + + ( - COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL - COUNT ( ALL + - 28 ) + 27 + + ( - COUNT ( * ) )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT 87 + - ( + 56 ) * SUM( 62 ) AS col1
----
-3385

skipif mysql # not compatible
query I rowsort label-9026
SELECT 87 + - ( + 56 ) * SUM ( 62 ) AS col1
----
-3385

onlyif mysql # aggregate syntax: 
query II rowsort label-9027
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * ) + 94 col2
----
1
95

skipif mysql # not compatible
query II rowsort label-9027
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) + 94 col2
----
1
95

query I rowsort
SELECT DISTINCT + 54 + 43 AS col0
----
97

query I rowsort
SELECT DISTINCT 52 * + 1 AS col2
----
52

query I rowsort
SELECT DISTINCT + COALESCE ( - 20, - 98 ) + + 26
----
6

query I rowsort
SELECT 20 * + 47 * + + COALESCE ( NULLIF ( 94, + 7 ), CASE 50 WHEN 61 * + CASE 99 WHEN - 65 + 74 / - 64 THEN NULL ELSE 40 * + 20 + - 81 END THEN - 92 * ( - 20 ) WHEN 92 THEN NULL END, 77 ) + - 58
----
88302

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT + 61 + 4 * + COUNT( * ) * COUNT( * ) - + 3
----
62

skipif mysql # not compatible
query I rowsort label-9032
SELECT + 61 + 4 * + COUNT ( * ) * COUNT ( * ) - + 3
----
62

query I rowsort
SELECT ALL + 81 * - - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT - + CASE COUNT( * ) WHEN 86 + 8 / 11 THEN NULL ELSE 65 * + 8 END
----
-520

skipif mysql # not compatible
query I rowsort label-9034
SELECT - + CASE COUNT ( * ) WHEN 86 + 8 / 11 THEN NULL ELSE 65 * + 8 END
----
-520

query I rowsort
SELECT ( 98 ) + 17 AS col1
----
115

query I rowsort
SELECT + 88 + - + 77 + + 18
----
29

query I rowsort
SELECT - 27 * - 50 + - 43 + + 67 AS col2
----
1374

query I rowsort
SELECT ALL 93 * + - 48 AS col2
----
-4464

onlyif mysql # DIV for integer division: 
query I rowsort label-9039
SELECT DISTINCT + - 75 DIV + 56 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9039
SELECT DISTINCT + - 75 / + 56 AS col2
----
-1

query I rowsort
SELECT DISTINCT - 48 * + - 92 * 49 * - 95 AS col0
----
-20556480

onlyif mysql # DIV for integer division: 
query I rowsort label-9041
SELECT DISTINCT + 37 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT + 37 / + 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT - + 15 - - - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-9042
SELECT - + 15 - - - COUNT ( * )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9043
SELECT + + NULLIF ( + + COALESCE ( - - 86, + CAST( NULL AS SIGNED ) ), 15 + - 55 * 63 ) DIV - COUNT( * ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-9043
SELECT + + NULLIF ( + + COALESCE ( - - 86, + CAST ( NULL AS INTEGER ) ), 15 + - 55 * 63 ) / - COUNT ( * ) AS col0
----
-86

query I rowsort
SELECT + NULLIF ( - 37, - + 53 )
----
-37

query I rowsort
SELECT - NULLIF ( - 81, - + 13 ) * + 23
----
1863

query I rowsort
SELECT DISTINCT + + 87 * - 59 AS col0
----
-5133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9047
SELECT - COUNT( * ) - + - CAST( - + 96 AS SIGNED ) + 56 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9047
SELECT - COUNT ( * ) - + - CAST ( - + 96 AS INTEGER ) + 56 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT + COUNT( * ) * + COUNT( * ) * + - COUNT( DISTINCT + 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-9048
SELECT + COUNT ( * ) * + COUNT ( * ) * + - COUNT ( DISTINCT + 43 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9049
SELECT MAX( ALL - + 5 ) AS col0, 39 + 48 * + 73 AS col0
----
-5
3543

skipif mysql # not compatible
query II rowsort label-9049
SELECT MAX ( ALL - + 5 ) AS col0, 39 + 48 * + 73 AS col0
----
-5
3543

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT + CASE 99 WHEN NULLIF ( + - 96, ( 79 ) / 92 - + ( + ( - 57 ) + ( + COUNT( * ) ) ) ) THEN ( 51 ) ELSE 88 END * COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-9050
SELECT + CASE 99 WHEN NULLIF ( + - 96, ( 79 ) / 92 - + ( + ( - 57 ) + ( + COUNT ( * ) ) ) ) THEN ( 51 ) ELSE 88 END * COUNT ( * )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9051
SELECT + ( + 79 ) DIV 51 + + + 66
----
67

skipif mysql # not compatible
query I rowsort label-9051
SELECT + ( + 79 ) / 51 + + + 66
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT - COUNT( * ) * + + 50 * COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-9052
SELECT - COUNT ( * ) * + + 50 * COUNT ( * ) AS col0
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9053
SELECT + COALESCE ( - 39, - 91, 18 DIV COUNT( * ), COUNT( * ) )
----
-39

skipif mysql # not compatible
query I rowsort label-9053
SELECT + COALESCE ( - 39, - 91, 18 / COUNT ( * ), COUNT ( * ) )
----
-39

query I rowsort
SELECT DISTINCT 51 * - - 42 * + 16 + - 97 AS col2
----
34175

query I rowsort
SELECT + 64 * + - 60 * 25 + - 13
----
-96013

query I rowsort
SELECT + 47 - + 37 col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT ALL COUNT( * ) * 43 + + 86 + + + 93 col1
----
222

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL COUNT ( * ) * 43 + + 86 + + + 93 col1
----
222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9058
SELECT ALL 95 * + 83 * + ( - 97 ) * ( + COUNT( * ) DIV 78 ) + - 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL 95 * + 83 * + ( - 97 ) * ( + COUNT ( * ) / 78 ) + - 40 AS col2
----
-40

query II rowsort
SELECT DISTINCT 76 + 78 AS col0, 19
----
154
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9060
SELECT ALL SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 98, 7 * + 91 ) + 36 AS col0
----
-62

query I rowsort
SELECT DISTINCT 28 * - 83
----
-2324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9063
SELECT + 93 + - + 36 DIV + + 78 DIV + - COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-9063
SELECT + 93 + - + 36 / + + 78 / + - COUNT ( * )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9064
SELECT + 99 DIV - 19
----
-5

skipif mysql # not compatible
query I rowsort label-9064
SELECT + 99 / - 19
----
-5

query I rowsort
SELECT ALL ( - - 5 ) - + - 89 AS col0
----
94

query I rowsort
SELECT + 11 - 20 AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9067
SELECT + COUNT( * ) - - CASE + 56 WHEN 23 THEN + CAST( NULL AS SIGNED ) ELSE NULL END * - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-9067
SELECT + COUNT ( * ) - - CASE + 56 WHEN 23 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END * - 8
----
NULL

query I rowsort
SELECT + 38 + - 51 AS col1
----
-13

query I rowsort
SELECT ALL - 0 - 36
----
-36

query I rowsort
SELECT ( + + 34 ) col2
----
34

query I rowsort
SELECT ALL + 25 * - 91
----
-2275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9072
SELECT - + COALESCE ( + 60, + 69 + - MAX( + CAST( NULL AS SIGNED ) ) ) * COUNT( * ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-9072
SELECT - + COALESCE ( + 60, + 69 + - MAX ( + CAST ( NULL AS INTEGER ) ) ) * COUNT ( * ) AS col1
----
-60

query I rowsort
SELECT DISTINCT 31 * ( + 26 ) * 18 AS col0
----
14508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT + - 45 + 73 + + CAST( NULL AS SIGNED ) * - - 7 / + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT + - 45 + 73 + + CAST ( NULL AS INTEGER ) * - - 7 / + 57 AS col1
----
NULL

query I rowsort
SELECT - - 39 - + + 85 + - - 89 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT ALL + + MAX( + 14 ) * + 52 * - 5
----
-3640

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL + + MAX ( + 14 ) * + 52 * - 5
----
-3640

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT - ( + COUNT( - 30 ) ) - 50
----
-51

skipif mysql # not compatible
query I rowsort label-9077
SELECT - ( + COUNT ( - 30 ) ) - 50
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT + 27 * + COUNT( * ) + + - 8 * + - 58
----
491

skipif mysql # not compatible
query I rowsort label-9078
SELECT + 27 * + COUNT ( * ) + + - 8 * + - 58
----
491

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT ALL ( - - COUNT( * ) ) * + 74 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL ( - - COUNT ( * ) ) * + 74 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT COUNT( * ) * + - 89 + + ( 93 ) * 82
----
7537

skipif mysql # not compatible
query I rowsort label-9080
SELECT COUNT ( * ) * + - 89 + + ( 93 ) * 82
----
7537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9081
SELECT ALL - SUM( ALL + CAST( NULL AS SIGNED ) ) / - + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL - SUM ( ALL + CAST ( NULL AS INTEGER ) ) / - + 38 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9082
SELECT ALL + COALESCE ( ( 21 ), + + CAST( NULL AS SIGNED ), - 10 )
----
21

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL + COALESCE ( ( 21 ), + + CAST ( NULL AS INTEGER ), - 10 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9083
SELECT + 48 / + - NULLIF ( - 95, - - 60 * + 9 + 48 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9083
SELECT + 48 / + - NULLIF ( - 95, - - 60 * + 9 + 48 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 78 + 9 + - ( 65 ) * 74
----
-4879

onlyif mysql # DIV for integer division: 
query I rowsort label-9085
SELECT ALL ( ( + 28 ) ) DIV 73 + + ( + 28 ) + ( 11 ) * 19 col1
----
237

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL ( ( + 28 ) ) / 73 + + ( + 28 ) + ( 11 ) * 19 col1
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT ALL 89 * CASE 78 WHEN + - 84 * - + 36 THEN NULL WHEN - COUNT( DISTINCT 14 ) THEN NULL WHEN - 96 THEN - COUNT( * ) WHEN - COUNT( * ) THEN + 72 + + 89 * 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL 89 * CASE 78 WHEN + - 84 * - + 36 THEN NULL WHEN - COUNT ( DISTINCT 14 ) THEN NULL WHEN - 96 THEN - COUNT ( * ) WHEN - COUNT ( * ) THEN + 72 + + 89 * 93 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9087
SELECT ALL - 62 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL - 62 / - 72
----
0

query I rowsort
SELECT - 7 + + 36
----
29

query II rowsort
SELECT + 74 AS col2, 29 * + 40 * + 13 * + + 67
----
74
1010360

query I rowsort
SELECT + NULLIF ( 24, - 86 )
----
24

query I rowsort
SELECT ALL 22 * 28 + 90 / CASE ( 33 ) WHEN 11 THEN + ( - 91 ) WHEN 54 THEN NULL END + + 62 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT - COUNT( * ) + - + COUNT( + 45 ) - 20 + + - COALESCE ( - 62, - 1, 6 - - 49 ) * 18 * 89
----
99302

skipif mysql # not compatible
query I rowsort label-9092
SELECT - COUNT ( * ) + - + COUNT ( + 45 ) - 20 + + - COALESCE ( - 62, - 1, 6 - - 49 ) * 18 * 89
----
99302

query I rowsort
SELECT ALL ( - 67 ) * + + 64 + + 4 + + NULLIF ( - 39, + 61 + 84 ) + + 37 AS col2
----
-4286

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT ALL - 80 * - 85 * - + 36 + - COUNT( * )
----
-244801

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL - 80 * - 85 * - + 36 + - COUNT ( * )
----
-244801

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT ALL + CASE - 34 WHEN - - 29 / - - COUNT( * ) THEN - 13 WHEN 14 THEN NULL ELSE 8 * + 98 END
----
784

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL + CASE - 34 WHEN - - 29 / - - COUNT ( * ) THEN - 13 WHEN 14 THEN NULL ELSE 8 * + 98 END
----
784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9096
SELECT + 58 * + CASE - CASE + - 41 WHEN - + 18 THEN NULL WHEN MIN( 27 ) THEN + 50 + - NULLIF ( COALESCE ( - ( 66 ), - 11 * + CAST( NULL AS SIGNED ) ), 97 ) END WHEN - COALESCE ( - COUNT( * ), - CAST( NULL AS SIGNED ) ) THEN + 16 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9096
SELECT + 58 * + CASE - CASE + - 41 WHEN - + 18 THEN NULL WHEN MIN ( 27 ) THEN + 50 + - NULLIF ( COALESCE ( - ( 66 ), - 11 * + CAST ( NULL AS INTEGER ) ), 97 ) END WHEN - COALESCE ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) THEN + 16 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9097
SELECT DISTINCT 59 AS col2, + 26 + - 98 + + - COUNT( * ) AS col0
----
59
-73

skipif mysql # not compatible
query II rowsort label-9097
SELECT DISTINCT 59 AS col2, + 26 + - 98 + + - COUNT ( * ) AS col0
----
59
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9098
SELECT ALL + 3 * - - 76 - - - COALESCE ( - + 70, - ( MAX( 78 ) ), CASE 0 WHEN 64 + COUNT( * ) THEN 56 WHEN + ( COUNT( * ) ) + CAST( 43 AS SIGNED ) THEN NULL END, 77 + 26 * 15 ) AS col1
----
298

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL + 3 * - - 76 - - - COALESCE ( - + 70, - ( MAX ( 78 ) ), CASE 0 WHEN 64 + COUNT ( * ) THEN 56 WHEN + ( COUNT ( * ) ) + CAST ( 43 AS INTEGER ) THEN NULL END, 77 + 26 * 15 ) AS col1
----
298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT - CAST( NULL AS SIGNED ) * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9099
SELECT - CAST ( NULL AS INTEGER ) * - 48
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9100
SELECT ALL - - 33 DIV + - 92
----
0

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL - - 33 / + - 92
----
0

query I rowsort
SELECT + 9 + - ( 7 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT DISTINCT - 98 * - COUNT( * ) * - 63 AS col0
----
-6174

skipif mysql # not compatible
query I rowsort label-9102
SELECT DISTINCT - 98 * - COUNT ( * ) * - 63 AS col0
----
-6174

query I rowsort
SELECT ALL ( - 71 ) AS col1
----
-71

query I rowsort
SELECT 18 * + 40
----
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9105
SELECT DISTINCT - 96 * - + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT - 96 * - + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9106
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) + - 56 + 56 / - NULLIF ( 64, - 40 - - 81 ) * + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - 56 + 56 / - NULLIF ( 64, - 40 - - 81 ) * + 29
----
NULL

query I rowsort
SELECT 98 * 36 + 74
----
3602

onlyif mysql # DIV for integer division: 
query II rowsort label-9108
SELECT 41 + 89 DIV - 34, + 92 col1
----
39
92

skipif mysql # not compatible
query II rowsort label-9108
SELECT 41 + 89 / - 34, + 92 col1
----
39
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT - COUNT( * ) * + COALESCE ( + + 97, 74 ) col1
----
-97

skipif mysql # not compatible
query I rowsort label-9109
SELECT - COUNT ( * ) * + COALESCE ( + + 97, 74 ) col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT DISTINCT + SUM( ALL + 12 ) col1
----
12

skipif mysql # not compatible
query I rowsort label-9110
SELECT DISTINCT + SUM ( ALL + 12 ) col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9111
SELECT ALL - 63 + - NULLIF ( 9, + - 32 * + + 36 + 81 * + 69 ) * - CAST( - AVG ( - 39 ) AS SIGNED )
----
288

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL - 63 + - NULLIF ( 9, + - 32 * + + 36 + 81 * + 69 ) * - CAST ( - AVG ( - 39 ) AS INTEGER )
----
288

query I rowsort
SELECT 67 * + + ( 84 ) AS col2
----
5628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9113
SELECT DISTINCT - COUNT( * ), AVG ( ALL - 18 ) * - COUNT( * ) + 30 + CAST( NULL AS SIGNED ) * - 17 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9113
SELECT DISTINCT - COUNT ( * ), AVG ( ALL - 18 ) * - COUNT ( * ) + 30 + CAST ( NULL AS INTEGER ) * - 17 AS col2
----
-1
NULL

query I rowsort
SELECT DISTINCT - 57 + - 3 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT ALL + COUNT( * ) + - 95 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL + COUNT ( * ) + - 95 AS col1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9116
SELECT ALL 60 + CAST( - - 17 AS SIGNED ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL 60 + CAST ( - - 17 AS INTEGER ) AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9117
SELECT COUNT( * ) * + COUNT( ALL - 30 ) - - 59 * + 10 + - CAST( CASE COUNT( * ) WHEN + 82 + - ( - ( - 4 ) ) THEN NULL WHEN 45 THEN 2 END AS SIGNED ) + ( - COUNT( * ) ) * - ( 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9117
SELECT COUNT ( * ) * + COUNT ( ALL - 30 ) - - 59 * + 10 + - CAST ( CASE COUNT ( * ) WHEN + 82 + - ( - ( - 4 ) ) THEN NULL WHEN 45 THEN 2 END AS INTEGER ) + ( - COUNT ( * ) ) * - ( 23 ) AS col1
----
NULL

query II rowsort
SELECT + 72 AS col0, 1 - COALESCE ( - 51, 26, COALESCE ( - 32, - 36 ) ) AS col0
----
72
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ALL + 3 + + - COUNT( * ) col2
----
2

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL + 3 + + - COUNT ( * ) col2
----
2

query I rowsort
SELECT 10 * - 88 * + 85 AS col0
----
-74800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9121
SELECT ALL - 40 + COUNT( * ) + - NULLIF ( 5, COUNT( * ) * - + 91 ) DIV - 41 * COALESCE ( + 36 + - 27 * 30, 0 )
----
-39

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL - 40 + COUNT ( * ) + - NULLIF ( 5, COUNT ( * ) * - + 91 ) / - 41 * COALESCE ( + 36 + - 27 * 30, 0 )
----
-39

query I rowsort
SELECT 81 * - 49 * - 28 * - ( + 4 )
----
-444528

query I rowsort
SELECT DISTINCT 59 + - 99
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9124
SELECT ALL - COUNT( * ) + + 42 DIV - - 90 col1
----
-1

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL - COUNT ( * ) + + 42 / - - 90 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT DISTINCT - COALESCE ( 54, - 73, - 18 * - + MIN( DISTINCT - 98 ) - + 13 ) col0
----
-54

skipif mysql # not compatible
query I rowsort label-9125
SELECT DISTINCT - COALESCE ( 54, - 73, - 18 * - + MIN ( DISTINCT - 98 ) - + 13 ) col0
----
-54

query I rowsort
SELECT DISTINCT - 95 + - 55 AS col1
----
-150

query I rowsort
SELECT 25 * - 16 AS col2
----
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT ALL - COUNT( * ) * - 95 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL - COUNT ( * ) * - 95 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT ALL + 78 - COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL + 78 - COUNT ( * ) AS col2
----
77

query II rowsort
SELECT + 37 AS col0, + 57
----
37
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT ALL ( + + MAX( - 52 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL ( + + MAX ( - 52 ) )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT - COUNT( ALL 33 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9132
SELECT - COUNT ( ALL 33 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9133
SELECT + 98 + + - CASE 58 WHEN CAST( - 26 AS SIGNED ) THEN NULL WHEN - 6 + + 47 THEN - 83 + 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9133
SELECT + 98 + + - CASE 58 WHEN CAST ( - 26 AS INTEGER ) THEN NULL WHEN - 6 + + 47 THEN - 83 + 55 END
----
NULL

query II rowsort
SELECT ALL 10 AS col2, - 32 + + 34
----
10
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9135
SELECT ALL + COUNT( * ) AS col0, 77
----
1
77

skipif mysql # not compatible
query II rowsort label-9135
SELECT ALL + COUNT ( * ) AS col0, 77
----
1
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9136
SELECT ALL 94 AS col2, NULLIF ( - 64, COUNT( * ) )
----
94
-64

skipif mysql # not compatible
query II rowsort label-9136
SELECT ALL 94 AS col2, NULLIF ( - 64, COUNT ( * ) )
----
94
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9137
SELECT 33 * + 25 * + - CASE + 56 WHEN - - CAST( + 22 AS SIGNED ) * - 85 THEN - 77 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9137
SELECT 33 * + 25 * + - CASE + 56 WHEN - - CAST ( + 22 AS INTEGER ) * - 85 THEN - 77 END AS col0
----
NULL

query I rowsort
SELECT - 73 + - ( 18 ) col2
----
-91

query II rowsort
SELECT - 72 AS col0, CASE WHEN + 75 <= ( - COALESCE ( + + 43, - 8, - ( + AVG ( DISTINCT 14 ) ) ) ) THEN 24 END
----
-72
NULL

query I rowsort
SELECT 12 * + 26
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT SUM( + 70 ) * - COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-9141
SELECT SUM ( + 70 ) * - COUNT ( * ) AS col1
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9142
SELECT CAST( NULL AS SIGNED ) - + + 95 / + 69 * - 7 - + 19 - + ( 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9142
SELECT CAST ( NULL AS INTEGER ) - + + 95 / + 69 * - 7 - + 19 - + ( 75 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9143
SELECT ALL - 67 + CASE + COUNT( * ) WHEN + + 37 DIV + 31 THEN 53 * NULLIF ( + 98, ( 35 ) - 25 * + ( 45 ) ) END AS col0
----
5127

skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL - 67 + CASE + COUNT ( * ) WHEN + + 37 / + 31 THEN 53 * NULLIF ( + 98, ( 35 ) - 25 * + ( 45 ) ) END AS col0
----
5127

query I rowsort
SELECT ALL + ( + 46 ) + - 30
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9145
SELECT 35 + + 92, - MAX( DISTINCT + 87 ) * 58 - + 80 + CASE WHEN ( + 25 ) > 80 THEN 17 ELSE - 15 END AS col2
----
127
-5141

skipif mysql # not compatible
query II rowsort label-9145
SELECT 35 + + 92, - MAX ( DISTINCT + 87 ) * 58 - + 80 + CASE WHEN ( + 25 ) > 80 THEN 17 ELSE - 15 END AS col2
----
127
-5141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9146
SELECT - COUNT( * ) AS col2, 10 / - - CAST( NULL AS SIGNED ) / + - COUNT( * ) + + CAST( - 17 AS SIGNED ) * + 43 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9146
SELECT - COUNT ( * ) AS col2, 10 / - - CAST ( NULL AS INTEGER ) / + - COUNT ( * ) + + CAST ( - 17 AS INTEGER ) * + 43 AS col2
----
-1
NULL

query I rowsort
SELECT DISTINCT - 65 + + + 58 + + 43
----
36

query I rowsort
SELECT ALL + 90 * ( - 11 ) col0
----
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT ALL ( - + MAX( 26 ) ) + 47
----
21

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL ( - + MAX ( 26 ) ) + 47
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-9150
SELECT 65 + COUNT( * ) AS col1, - COUNT( * )
----
66
-1

skipif mysql # not compatible
query II rowsort label-9150
SELECT 65 + COUNT ( * ) AS col1, - COUNT ( * )
----
66
-1

query II rowsort
SELECT 1 - + + 46 col0, + 31 AS col0
----
-45
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9152
SELECT + 89 * + 99 + + 10 + + 65 + + 18 * + + 45 * COUNT( * ) * + COALESCE ( 58, 79 DIV - 53 + - MIN( 29 ) ) + + COUNT( * ) * 33 * 58 AS col0
----
57780

skipif mysql # not compatible
query I rowsort label-9152
SELECT + 89 * + 99 + + 10 + + 65 + + 18 * + + 45 * COUNT ( * ) * + COALESCE ( 58, 79 / - 53 + - MIN ( 29 ) ) + + COUNT ( * ) * 33 * 58 AS col0
----
57780

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT ALL - MIN( ALL - 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL - MIN ( ALL - 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9154
SELECT 8 DIV + 39 * + 15 DIV - - COUNT( * ) + - 79
----
-79

skipif mysql # not compatible
query I rowsort label-9154
SELECT 8 / + 39 * + 15 / - - COUNT ( * ) + - 79
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9155
SELECT ALL - COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ) col2, 39 + + + 59 + - 17
----
0
81

skipif mysql # not compatible
query II rowsort label-9155
SELECT ALL - COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ) col2, 39 + + + 59 + - 17
----
0
81

query I rowsort
SELECT 81 * - 49 AS col0
----
-3969

onlyif mysql # aggregate syntax: 
query II rowsort label-9157
SELECT COUNT( * ) * + 38 col2, + 64 + - - 2 AS col0
----
38
66

skipif mysql # not compatible
query II rowsort label-9157
SELECT COUNT ( * ) * + 38 col2, + 64 + - - 2 AS col0
----
38
66

query I rowsort
SELECT + 76 * - 12 + + 25
----
-887

query I rowsort
SELECT + 46 * + - 15 AS col2
----
-690

query I rowsort
SELECT - 52 * - 62
----
3224

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT - 11 + 40 - - 18 * - - COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9161
SELECT - 11 + 40 - - 18 * - - COUNT ( * ) AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9162
SELECT - CAST( + - 73 AS SIGNED ) * + 88 + 78
----
6502

skipif mysql # not compatible
query I rowsort label-9162
SELECT - CAST ( + - 73 AS INTEGER ) * + 88 + 78
----
6502

onlyif mysql # DIV for integer division: 
query I rowsort label-9163
SELECT DISTINCT + + 33 DIV - 26 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT + + 33 / - 26 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9164
SELECT - 18 DIV 15 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9164
SELECT - 18 / 15 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9165
SELECT ALL + - SUM( DISTINCT 85 ) DIV - + CASE + 26 WHEN + 46 THEN NULL WHEN - - ( - 55 ) THEN + 1 ELSE 39 * 79 END + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL + - SUM ( DISTINCT 85 ) / - + CASE + 26 WHEN + 46 THEN NULL WHEN - - ( - 55 ) THEN + 1 ELSE 39 * 79 END + + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9166
SELECT + - COALESCE ( 30, + 71 + 4 + + - NULLIF ( CAST( NULL AS SIGNED ), + 40 ) ) * 19 AS col2
----
-570

skipif mysql # not compatible
query I rowsort label-9166
SELECT + - COALESCE ( 30, + 71 + 4 + + - NULLIF ( CAST ( NULL AS INTEGER ), + 40 ) ) * 19 AS col2
----
-570

query I rowsort
SELECT - - 26 + - 65 AS col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9168
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 63 + - 65 + 98 + + 39 + + 7 / + 35 * + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 63 + - 65 + 98 + + 39 + + 7 / + 35 * + 41 AS col1
----
NULL

query I rowsort
SELECT - + 57 * - + 34 + + 40
----
1978

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT - + SUM( 84 ) + - - 93 col2
----
9

skipif mysql # not compatible
query I rowsort label-9170
SELECT - + SUM ( 84 ) + - - 93 col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9171
SELECT ALL + - 91 * + - 93 * - 7 * + + 95 + - + CASE - SUM( ALL ( - 15 ) ) WHEN - 27 THEN COUNT( * ) WHEN COALESCE ( MAX( ALL - 60 ), 47 / 86 ) * - 85 + 92 THEN 9 ELSE - 94 END + + CAST( NULL AS SIGNED ) / 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL + - 91 * + - 93 * - 7 * + + 95 + - + CASE - SUM ( ALL ( - 15 ) ) WHEN - 27 THEN COUNT ( * ) WHEN COALESCE ( MAX ( ALL - 60 ), 47 / 86 ) * - 85 + 92 THEN 9 ELSE - 94 END + + CAST ( NULL AS INTEGER ) / 64
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9172
SELECT - - ( + - 43 ) DIV - - 45 * - + NULLIF ( + - 98, 79 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9172
SELECT - - ( + - 43 ) / - - 45 * - + NULLIF ( + - 98, 79 ) col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9173
SELECT - - 77 + - + COUNT( * ) AS col1, + ( - 47 ) AS col2
----
76
-47

skipif mysql # not compatible
query II rowsort label-9173
SELECT - - 77 + - + COUNT ( * ) AS col1, + ( - 47 ) AS col2
----
76
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT DISTINCT - 19 + - COUNT( * ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-9174
SELECT DISTINCT - 19 + - COUNT ( * ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT - MAX( ALL 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-9175
SELECT - MAX ( ALL 35 ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT DISTINCT - MAX( + 81 ) + - - 59 + + + 79
----
57

skipif mysql # not compatible
query I rowsort label-9176
SELECT DISTINCT - MAX ( + 81 ) + - - 59 + + + 79
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT - - COUNT( * ) + 15 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-9177
SELECT - - COUNT ( * ) + 15 AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9178
SELECT ALL - CAST( NULLIF ( 3, 27 ) AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL - CAST ( NULLIF ( 3, 27 ) AS INTEGER )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT + 49 + + - 2 * 17 - + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-9179
SELECT + 49 + + - 2 * 17 - + COUNT ( * )
----
14

query I rowsort
SELECT ALL + 40 + 49 AS col1
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-9181
SELECT DISTINCT 72 DIV + ( - + 72 ), ( + 16 ) col2
----
-1
16

skipif mysql # not compatible
query II rowsort label-9181
SELECT DISTINCT 72 / + ( - + 72 ), ( + 16 ) col2
----
-1
16

query I rowsort
SELECT DISTINCT + 58 + + 90 + + + 77 + + 59 * + 97 + 93 AS col1
----
6041

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT ALL COUNT( * ) * 2 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL COUNT ( * ) * 2 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9184
SELECT - ( 3 ) DIV - - 13
----
0

skipif mysql # not compatible
query I rowsort label-9184
SELECT - ( 3 ) / - - 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL + 40 - - - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL + 40 - - - COUNT ( * )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9186
SELECT DISTINCT COALESCE ( - 76, - COALESCE ( - 91, - COUNT( * ) ) DIV - ( + CASE - - 53 WHEN + 81 THEN NULL ELSE 81 + + 72 END ) + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) ) - + 96 AS col1
----
-172

skipif mysql # not compatible
query I rowsort label-9186
SELECT DISTINCT COALESCE ( - 76, - COALESCE ( - 91, - COUNT ( * ) ) / - ( + CASE - - 53 WHEN + 81 THEN NULL ELSE 81 + + 72 END ) + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) - + 96 AS col1
----
-172

query I rowsort
SELECT - ( - CASE - - 91 WHEN 56 THEN - 11 WHEN 49 THEN 23 END ) - - 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT + 83 * 75 * - CASE WHEN 34 NOT IN ( + ( - - NULLIF ( + - 12, - COUNT( * ) + + 49 ) ) ) THEN - ( - 42 ) * 83 END
----
-21700350

skipif mysql # not compatible
query I rowsort label-9188
SELECT + 83 * 75 * - CASE WHEN 34 NOT IN ( + ( - - NULLIF ( + - 12, - COUNT ( * ) + + 49 ) ) ) THEN - ( - 42 ) * 83 END
----
-21700350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9189
SELECT COALESCE ( + 34, 90 * + 45, NULLIF ( + ( + + 44 ), - + MAX( DISTINCT 51 ) * - 5 ) ) * 52 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9189
SELECT COALESCE ( + 34, 90 * + 45, NULLIF ( + ( + + 44 ), - + MAX ( DISTINCT 51 ) * - 5 ) ) * 52 + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 59 * + - 9 * - 97, 46 col1
----
51507
46

query II rowsort
SELECT ALL + 61 AS col1, COALESCE ( + 40, + 85 )
----
61
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9192
SELECT ALL - CAST( - ( - + 9 ) AS SIGNED ) * + 57 - - - 97 + + - 26 * 28 * - 20 AS col1
----
13950

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL - CAST ( - ( - + 9 ) AS INTEGER ) * + 57 - - - 97 + + - 26 * 28 * - 20 AS col1
----
13950

query I rowsort
SELECT + 99 - - ( 75 ) AS col1
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT - COUNT( * ) * + NULLIF ( 14, - + ( + + 3 ) + - 93 ) - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-9194
SELECT - COUNT ( * ) * + NULLIF ( 14, - + ( + + 3 ) + - 93 ) - COUNT ( * )
----
-15

query I rowsort
SELECT ALL 87 * + 19
----
1653

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT + + 47 * 74 * COUNT( * ) AS col2
----
3478

skipif mysql # not compatible
query I rowsort label-9196
SELECT + + 47 * 74 * COUNT ( * ) AS col2
----
3478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9197
SELECT ALL + CAST( + + ( + MAX( DISTINCT - 32 ) ) AS SIGNED ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL + CAST ( + + ( + MAX ( DISTINCT - 32 ) ) AS INTEGER ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-9198
SELECT ALL + - 63 AS col1, NULLIF ( + NULLIF ( COUNT( * ), - 23 ), + 47 * - MAX( ALL + 40 ) / 22 + + 36 ) * 6
----
-63
6

skipif mysql # not compatible
query II rowsort label-9198
SELECT ALL + - 63 AS col1, NULLIF ( + NULLIF ( COUNT ( * ), - 23 ), + 47 * - MAX ( ALL + 40 ) / 22 + + 36 ) * 6
----
-63
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT + + COUNT( * ) + CASE + + 90 WHEN 12 + - - 14 + - 26 + - 55 + 82 * + 67 THEN 29 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9199
SELECT + + COUNT ( * ) + CASE + + 90 WHEN 12 + - - 14 + - 26 + - 55 + 82 * + 67 THEN 29 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9200
SELECT - + 97 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT - + 97 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT - - 22 - - 23 * 61 col0, 2 AS col2
----
1425
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9202
SELECT ALL + COALESCE ( - COUNT( * ), + NULLIF ( - + COALESCE ( + 90, NULLIF ( + 33, - - 62 / - COUNT( * ) + + CAST( 39 AS SIGNED ) ) - 5 * 88, + COUNT( + 32 ) ), - CAST( - 25 AS SIGNED ) ) + + NULLIF ( 38 + - 11, COUNT( * ) ), COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL + COALESCE ( - COUNT ( * ), + NULLIF ( - + COALESCE ( + 90, NULLIF ( + 33, - - 62 / - COUNT ( * ) + + CAST ( 39 AS INTEGER ) ) - 5 * 88, + COUNT ( + 32 ) ), - CAST ( - 25 AS INTEGER ) ) + + NULLIF ( 38 + - 11, COUNT ( * ) ), COUNT ( * ) )
----
-1

query II rowsort
SELECT + 56 AS col1, - 68 + - 63
----
56
-131

query II rowsort
SELECT - 68 AS col1, + 99
----
-68
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9205
SELECT + 7 AS col1, COALESCE ( + COUNT( * ), 13 + - COUNT( * ) ) AS col2
----
7
1

skipif mysql # not compatible
query II rowsort label-9205
SELECT + 7 AS col1, COALESCE ( + COUNT ( * ), 13 + - COUNT ( * ) ) AS col2
----
7
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT + - 20 * - COUNT( * ) + + 36 - - NULLIF ( - ( - ( - NULLIF ( - 63, 22 + + 60 ) ) ), + ( + 11 ) ) AS col1
----
119

skipif mysql # not compatible
query I rowsort label-9206
SELECT + - 20 * - COUNT ( * ) + + 36 - - NULLIF ( - ( - ( - NULLIF ( - 63, 22 + + 60 ) ) ), + ( + 11 ) ) AS col1
----
119

query I rowsort
SELECT + 96 + + 41 + 22 * - 87
----
-1777

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT DISTINCT + + COUNT( * ) * + 73 * + 16 + - 92 AS col2
----
1076

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT + + COUNT ( * ) * + 73 * + 16 + - 92 AS col2
----
1076

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9209
SELECT ALL - 43 * + 37 * - 8 - + 72 * 75 + - - COUNT( * ) DIV + 32
----
7328

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL - 43 * + 37 * - 8 - + 72 * 75 + - - COUNT ( * ) / + 32
----
7328

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT + NULLIF ( NULLIF ( - 36, - 84 ), + 94 * + 47 + - - 62 / - 74 + 37 + COALESCE ( 50, - 56, - ( - 67 ) ) * COALESCE ( + COUNT( ( 23 ) ), + 40 + COUNT( * ) * - ( COUNT( * ) - 79 * - 35 ), COUNT( 79 ) ) ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-9210
SELECT + NULLIF ( NULLIF ( - 36, - 84 ), + 94 * + 47 + - - 62 / - 74 + 37 + COALESCE ( 50, - 56, - ( - 67 ) ) * COALESCE ( + COUNT ( ( 23 ) ), + 40 + COUNT ( * ) * - ( COUNT ( * ) - 79 * - 35 ), COUNT ( 79 ) ) ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT ALL + MIN( + 70 ) * + 61 + + 54 + 45 * + 30 * - 68 * - + 96 + 38 * + 25 AS col2
----
8818074

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL + MIN ( + 70 ) * + 61 + + 54 + 45 * + 30 * - 68 * - + 96 + 38 * + 25 AS col2
----
8818074

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT + - MIN( 88 ) + 76
----
-12

skipif mysql # not compatible
query I rowsort label-9212
SELECT + - MIN ( 88 ) + 76
----
-12

query II rowsort
SELECT - - 96, 44 + - 40 AS col1
----
96
4

query I rowsort
SELECT ALL + 74 + + 79 AS col1
----
153

query I rowsort
SELECT ALL - + 71 * + 15 * + + 4 AS col0
----
-4260

query I rowsort
SELECT ALL + 44 - 5
----
39

query I rowsort
SELECT - NULLIF ( - + 68, + 84 * - 40 ) + + - 8 * - 47
----
444

query I rowsort
SELECT - 13 + - 58 AS col0
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9219
SELECT DISTINCT + 54 * 9 DIV ( + COUNT( * ) ) AS col1
----
486

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT + 54 * 9 / ( + COUNT ( * ) ) AS col1
----
486

query I rowsort
SELECT - 7 * + + 80
----
-560

query I rowsort
SELECT - 65 + - + 99 + + 82 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT - 77 + + 25 * 20 * 90 + + CASE + 62 WHEN + SUM( DISTINCT - COALESCE ( 67, 74 ) ) * + 39 + 22 THEN 29 WHEN NULLIF ( COUNT( * ), - COUNT( * ) ) * 83 + MAX( DISTINCT - 9 + + 62 * ( 45 ) ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9222
SELECT - 77 + + 25 * 20 * 90 + + CASE + 62 WHEN + SUM ( DISTINCT - COALESCE ( 67, 74 ) ) * + 39 + 22 THEN 29 WHEN NULLIF ( COUNT ( * ), - COUNT ( * ) ) * 83 + MAX ( DISTINCT - 9 + + 62 * ( 45 ) ) THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9223
SELECT - CAST( 85 AS SIGNED ) + 17 * 41 + + - 15 - - - 60
----
537

skipif mysql # not compatible
query I rowsort label-9223
SELECT - CAST ( 85 AS INTEGER ) + 17 * 41 + + - 15 - - - 60
----
537

query I rowsort
SELECT - 59 - + - 73
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9225
SELECT - CAST( + CASE - - 92 WHEN - 15 THEN NULL WHEN - - 47 THEN + 66 ELSE NULL END AS SIGNED ) * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9225
SELECT - CAST ( + CASE - - 92 WHEN - 15 THEN NULL WHEN - - 47 THEN + 66 ELSE NULL END AS INTEGER ) * - 37
----
NULL

query II rowsort
SELECT 0 + - + 69 AS col0, + 35 AS col2
----
-69
35

query I rowsort
SELECT 35 + - 36 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9228
SELECT DISTINCT + 91 DIV + 61
----
1

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT + 91 / + 61
----
1

query I rowsort
SELECT ALL + 82 * + ( + 24 ) AS col2
----
1968

onlyif mysql # DIV for integer division: 
query I rowsort label-9230
SELECT ALL + COALESCE ( 41, - + 57 * COALESCE ( - + 0, - 93 ) ) + 79 DIV 96
----
41

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL + COALESCE ( 41, - + 57 * COALESCE ( - + 0, - 93 ) ) + 79 / 96
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT 41 * SUM( 98 )
----
4018

skipif mysql # not compatible
query I rowsort label-9231
SELECT 41 * SUM ( 98 )
----
4018

onlyif mysql # DIV for integer division: 
query I rowsort label-9232
SELECT 72 DIV 47
----
1

skipif mysql # not compatible
query I rowsort label-9232
SELECT 72 / 47
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9233
SELECT - 9 DIV 64 AS col1, - 56 * + - 54 * + CASE - 56 WHEN ( + CAST( - 10 AS SIGNED ) ) THEN NULL WHEN + 38 THEN + 89 ELSE NULL END
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9233
SELECT - 9 / 64 AS col1, - 56 * + - 54 * + CASE - 56 WHEN ( + CAST ( - 10 AS INTEGER ) ) THEN NULL WHEN + 38 THEN + 89 ELSE NULL END
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT + 20 / MIN( DISTINCT - 39 ) / + + COUNT( DISTINCT + 9 ) * + 20 * + + 5 + - CASE + 97 WHEN 1 THEN NULL WHEN 37 * 45 THEN - 50 * + 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9234
SELECT + 20 / MIN ( DISTINCT - 39 ) / + + COUNT ( DISTINCT + 9 ) * + 20 * + + 5 + - CASE + 97 WHEN 1 THEN NULL WHEN 37 * 45 THEN - 50 * + 58 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9235
SELECT DISTINCT - CAST( + 20 AS SIGNED ) DIV + COUNT( * ) + + - ( - 7 )
----
-13

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT - CAST ( + 20 AS INTEGER ) / + COUNT ( * ) + + - ( - 7 )
----
-13

query I rowsort
SELECT ALL - 30 + 39 + + 50 * + + 82 - - - 28 AS col2
----
4081

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT DISTINCT + + 70 + + 64 * - COUNT( * ) + - + COUNT( ALL - 83 ) + - 99 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-9237
SELECT DISTINCT + + 70 + + 64 * - COUNT ( * ) + - + COUNT ( ALL - 83 ) + - 99 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT DISTINCT 15 + + COUNT( * ) + + MIN( DISTINCT + 75 )
----
91

skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT 15 + + COUNT ( * ) + + MIN ( DISTINCT + 75 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9239
SELECT + ( + + MIN( + 46 ) ) * 35 + + CASE - 42 WHEN - CAST( NULL AS DECIMAL ) + - 51 THEN + 40 / 80 WHEN 18 THEN 20 * + 99 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9239
SELECT + ( + + MIN ( + 46 ) ) * 35 + + CASE - 42 WHEN - CAST ( NULL AS REAL ) + - 51 THEN + 40 / 80 WHEN 18 THEN 20 * + 99 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9240
SELECT DISTINCT 38 * + 53, + 4 DIV - - 92 AS col1
----
2014
0

skipif mysql # not compatible
query II rowsort label-9240
SELECT DISTINCT 38 * + 53, + 4 / - - 92 AS col1
----
2014
0

query I rowsort
SELECT ( + - 0 ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9242
SELECT - - 46 * + 82 * - + COUNT( * ) * NULLIF ( + CASE 10 WHEN + 19 + - CAST( - 1 AS DECIMAL ) / 16 THEN 31 WHEN + ( + AVG ( 8 ) ) + - 63 * + 19 THEN 83 ELSE NULL END, 38 ) - + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9242
SELECT - - 46 * + 82 * - + COUNT ( * ) * NULLIF ( + CASE 10 WHEN + 19 + - CAST ( - 1 AS REAL ) / 16 THEN 31 WHEN + ( + AVG ( 8 ) ) + - 63 * + 19 THEN 83 ELSE NULL END, 38 ) - + 35 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT - NULLIF ( + COUNT( * ), + 18 + - + 59 ) + - SUM( ALL + + 94 )
----
-95

skipif mysql # not compatible
query I rowsort label-9243
SELECT - NULLIF ( + COUNT ( * ), + 18 + - + 59 ) + - SUM ( ALL + + 94 )
----
-95

query II rowsort
SELECT DISTINCT - 86 * + NULLIF ( + + 31, + 8 ) col0, - CASE ( 53 ) WHEN - 66 THEN + 93 + 82 END / + 67
----
-2666
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9245
SELECT + 92 + - + 83 AS col2, 41 DIV - COUNT( * ) AS col2
----
9
-41

skipif mysql # not compatible
query II rowsort label-9245
SELECT + 92 + - + 83 AS col2, 41 / - COUNT ( * ) AS col2
----
9
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT ALL - NULLIF ( SUM( 19 ), + 93 ) * + 15 + - + 3 AS col1
----
-288

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL - NULLIF ( SUM ( 19 ), + 93 ) * + 15 + - + 3 AS col1
----
-288

query I rowsort
SELECT ALL NULLIF ( 76, + - 15 + - + 24 )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-9248
SELECT ALL 60 AS col0, + COUNT( * ) AS col1
----
60
1

skipif mysql # not compatible
query II rowsort label-9248
SELECT ALL 60 AS col0, + COUNT ( * ) AS col1
----
60
1

query II rowsort
SELECT ALL 12 col2, - 29 AS col0
----
12
-29

query I rowsort
SELECT 7 * 2
----
14

query II rowsort
SELECT ALL 71 AS col1, 91 * - - 46 col1
----
71
4186

query I rowsort
SELECT 26 + 91
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9253
SELECT CAST( NULL AS SIGNED ) * - + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-9253
SELECT CAST ( NULL AS INTEGER ) * - + 73
----
NULL

query I rowsort
SELECT 41 * - 75 AS col2
----
-3075

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT DISTINCT + COALESCE ( + 12, + + 99 ) * + COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9255
SELECT DISTINCT + COALESCE ( + 12, + + 99 ) * + COUNT ( * ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT ALL - 50 * + - 11 * - MIN( - - 59 )
----
-32450

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL - 50 * + - 11 * - MIN ( - - 59 )
----
-32450

query I rowsort
SELECT 31 * 79 AS col2
----
2449

query I rowsort
SELECT DISTINCT + 5 + - ( 8 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9259
SELECT ALL 45 AS col2, SUM( ALL + - 66 ) + - 58
----
45
-124

skipif mysql # not compatible
query II rowsort label-9259
SELECT ALL 45 AS col2, SUM ( ALL + - 66 ) + - 58
----
45
-124

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9260
SELECT 44 * - COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9260
SELECT 44 * - COUNT ( * ) * - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 21 * - 36 col1
----
-756

onlyif mysql # aggregate syntax: 
query II rowsort label-9262
SELECT - COUNT( * ) * - + 28 + 43, + 76 * + + CASE + ( - ( + - COUNT( ALL - ( + ( 46 ) ) ) ) ) WHEN - 52 THEN NULL ELSE SUM( 15 ) + - 19 * 48 END AS col0
----
71
-68172

skipif mysql # not compatible
query II rowsort label-9262
SELECT - COUNT ( * ) * - + 28 + 43, + 76 * + + CASE + ( - ( + - COUNT ( ALL - ( + ( 46 ) ) ) ) ) WHEN - 52 THEN NULL ELSE SUM ( 15 ) + - 19 * 48 END AS col0
----
71
-68172

query I rowsort
SELECT DISTINCT + 33 + 50
----
83

query I rowsort
SELECT ALL - + NULLIF ( 17, + 2 + - ( - 78 ) + + 74 * + 41 + 15 * 62 + + 68 ) + 54 * - 14 AS col0
----
-773

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9265
SELECT ALL + CAST( NULL AS DECIMAL ) + + 42 + - - CASE 50 WHEN - 81 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE + - 22 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9265
SELECT ALL + CAST ( NULL AS REAL ) + + 42 + - - CASE 50 WHEN - 81 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE + - 22 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9266
SELECT + 51 - - - 43 DIV - 77 col0, + 22
----
51
22

skipif mysql # not compatible
query II rowsort label-9266
SELECT + 51 - - - 43 / - 77 col0, + 22
----
51
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9267
SELECT ALL - 77, 95 + CASE 42 WHEN COUNT( * ) * 64 * + ( - 76 ) * + 19 + COUNT( * ) THEN NULL WHEN 76 THEN NULL ELSE - 62 END AS col0
----
-77
33

skipif mysql # not compatible
query II rowsort label-9267
SELECT ALL - 77, 95 + CASE 42 WHEN COUNT ( * ) * 64 * + ( - 76 ) * + 19 + COUNT ( * ) THEN NULL WHEN 76 THEN NULL ELSE - 62 END AS col0
----
-77
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT DISTINCT - + NULLIF ( - 88, - 24 * + MAX( - 57 ) * 64 )
----
88

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT - + NULLIF ( - 88, - 24 * + MAX ( - 57 ) * 64 )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9269
SELECT ALL - 98 + - NULLIF ( - 30, - + COUNT( 20 ) ) - + COUNT( * ) DIV - + 91 + 25 + NULLIF ( 59, + 43 ) DIV - 93 * + 87
----
-43

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL - 98 + - NULLIF ( - 30, - + COUNT ( 20 ) ) - + COUNT ( * ) / - + 91 + 25 + NULLIF ( 59, + 43 ) / - 93 * + 87
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9270
SELECT - COALESCE ( + 51, + CAST( - 70 AS SIGNED ) ) + - - 47 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9270
SELECT - COALESCE ( + 51, + CAST ( - 70 AS INTEGER ) ) + - - 47 AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9271
SELECT ALL - COUNT( * ) * + - 81 - + + CAST( NULL AS DECIMAL ) + + - 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL - COUNT ( * ) * + - 81 - + + CAST ( NULL AS REAL ) + + - 22 AS col1
----
NULL

query I rowsort
SELECT - 14 - 99
----
-113

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9273
SELECT ALL - CAST( NULL AS DECIMAL ) col2, - ( ( COUNT( * ) ) ) * - 51
----
NULL
51

skipif mysql # not compatible
query II rowsort label-9273
SELECT ALL - CAST ( NULL AS REAL ) col2, - ( ( COUNT ( * ) ) ) * - 51
----
NULL
51

query I rowsort
SELECT + 67 * + 59
----
3953

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT + 81 * COUNT( * ) * + 41 * 38 AS col0
----
126198

skipif mysql # not compatible
query I rowsort label-9275
SELECT + 81 * COUNT ( * ) * + 41 * 38 AS col0
----
126198

query I rowsort
SELECT ALL - + ( - 58 ) col0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9277
SELECT DISTINCT ( + NULLIF ( CAST( 99 AS SIGNED ), ( + 92 ) ) )
----
99

skipif mysql # not compatible
query I rowsort label-9277
SELECT DISTINCT ( + NULLIF ( CAST ( 99 AS INTEGER ), ( + 92 ) ) )
----
99

query I rowsort
SELECT 10 * + - 64 AS col2
----
-640

query I rowsort
SELECT 81 + 70 * - + 67
----
-4609

query I rowsort
SELECT + 30 + - 75
----
-45

query I rowsort
SELECT ALL 42 * + + 47 AS col2
----
1974

onlyif mysql # DIV for integer division: 
query I rowsort label-9282
SELECT + 24 + 71 DIV - 28
----
22

skipif mysql # not compatible
query I rowsort label-9282
SELECT + 24 + 71 / - 28
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9283
SELECT DISTINCT 81 AS col0, - 29 - - 29 + + - COUNT( * ) * - - MAX( 74 )
----
81
-74

skipif mysql # not compatible
query II rowsort label-9283
SELECT DISTINCT 81 AS col0, - 29 - - 29 + + - COUNT ( * ) * - - MAX ( 74 )
----
81
-74

query I rowsort
SELECT DISTINCT NULLIF ( + ( + + 59 ), + 28 + - 96 ) + 7 * - 16
----
-53

query II rowsort
SELECT ALL 35 AS col0, - 12 - - + 16 * - 57 col1
----
35
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT ALL + ( - COALESCE ( + 31, 75 * + + 36 * 74 - + 57, + - 93 * 17 ) ) + - 97 * - - 78 + - COUNT( * )
----
-7598

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL + ( - COALESCE ( + 31, 75 * + + 36 * 74 - + 57, + - 93 * 17 ) ) + - 97 * - - 78 + - COUNT ( * )
----
-7598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9287
SELECT DISTINCT 40 AS col2, 46 * - 86 * - - AVG ( DISTINCT + - 30 ) * - CASE - - COUNT( * ) WHEN + - MAX( 41 ) THEN - + 21 + + 37 / CAST( NULL AS SIGNED ) ELSE NULL END + - 36
----
40
NULL

skipif mysql # not compatible
query II rowsort label-9287
SELECT DISTINCT 40 AS col2, 46 * - 86 * - - AVG ( DISTINCT + - 30 ) * - CASE - - COUNT ( * ) WHEN + - MAX ( 41 ) THEN - + 21 + + 37 / CAST ( NULL AS INTEGER ) ELSE NULL END + - 36
----
40
NULL

query I rowsort
SELECT + 64 + - + 84 + + 18 * + ( - + 51 ) AS col0
----
-938

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT - 70 - + ( + 11 ) * 38 * + COUNT( * )
----
-488

skipif mysql # not compatible
query I rowsort label-9289
SELECT - 70 - + ( + 11 ) * 38 * + COUNT ( * )
----
-488

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT + 40 + + SUM( + 45 ) - + - COALESCE ( + 38, + + 27 )
----
123

skipif mysql # not compatible
query I rowsort label-9290
SELECT + 40 + + SUM ( + 45 ) - + - COALESCE ( + 38, + + 27 )
----
123

query I rowsort
SELECT - 46 + - - 84 + 66
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9292
SELECT - COUNT( * ) + - NULLIF ( + 3, - 41 DIV - COUNT( * ) * - 39 + 2 ) + + - 8 * - - COUNT( * ) DIV + - 12 * - 82
----
-4

skipif mysql # not compatible
query I rowsort label-9292
SELECT - COUNT ( * ) + - NULLIF ( + 3, - 41 / - COUNT ( * ) * - 39 + 2 ) + + - 8 * - - COUNT ( * ) / + - 12 * - 82
----
-4

query I rowsort
SELECT ALL + 20 + - 88 col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9294
SELECT + 34 * + CASE - - 47 WHEN + - 11 THEN NULL WHEN + 77 / + CAST( + NULLIF ( + ( - 64 ), - + 74 ) AS SIGNED ) THEN + 60 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9294
SELECT + 34 * + CASE - - 47 WHEN + - 11 THEN NULL WHEN + 77 / + CAST ( + NULLIF ( + ( - 64 ), - + 74 ) AS INTEGER ) THEN + 60 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9295
SELECT ALL NULLIF ( - 30, 34 ) DIV + 1 + - + 92 DIV 35 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL NULLIF ( - 30, 34 ) / + 1 + - + 92 / 35 AS col2
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9296
SELECT - 36 * + + ( - ( - COALESCE ( - + NULLIF ( + 24, + 62 ), 60, - 99, + NULLIF ( + 74, COUNT( + 18 ) ) DIV + COUNT( * ) ) ) ) + + 38 col2
----
902

skipif mysql # not compatible
query I rowsort label-9296
SELECT - 36 * + + ( - ( - COALESCE ( - + NULLIF ( + 24, + 62 ), 60, - 99, + NULLIF ( + 74, COUNT ( + 18 ) ) / + COUNT ( * ) ) ) ) + + 38 col2
----
902

query II rowsort
SELECT + 58 AS col0, 25
----
58
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT ALL 52 * 71 - + COUNT( * ) + - - 54 AS col0
----
3745

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL 52 * 71 - + COUNT ( * ) + - - 54 AS col0
----
3745

onlyif mysql # aggregate syntax: 
query II rowsort label-9299
SELECT + COUNT( * ), 48 * - 1 AS col1
----
1
-48

skipif mysql # not compatible
query II rowsort label-9299
SELECT + COUNT ( * ), 48 * - 1 AS col1
----
1
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT + - 47 + SUM( 82 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9300
SELECT + - 47 + SUM ( 82 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT 8 * + ( - 54 ) + - - ( - - COUNT( * ) )
----
-431

skipif mysql # not compatible
query I rowsort label-9301
SELECT 8 * + ( - 54 ) + - - ( - - COUNT ( * ) )
----
-431

query I rowsort
SELECT - 60 + + - 52
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT ALL - + 52 * COALESCE ( + 20, - COUNT( DISTINCT + ( + 60 ) ) ) + - - 48
----
-992

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL - + 52 * COALESCE ( + 20, - COUNT ( DISTINCT + ( + 60 ) ) ) + - - 48
----
-992

query I rowsort
SELECT - 74 + + 56 AS col2
----
-18

query II rowsort
SELECT ALL + 30, + 8 AS col0
----
30
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT DISTINCT + COALESCE ( - + 88, - COUNT( - - 62 ) - + + 68 * - MAX( + 58 ) + - 6 + - + 13 + - COUNT( * ) * + - 87 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT + COALESCE ( - + 88, - COUNT ( - - 62 ) - + + 68 * - MAX ( + 58 ) + - 6 + - + 13 + - COUNT ( * ) * + - 87 ) AS col2
----
-88

query I rowsort
SELECT - 81 * + 73 + 63 + - 61 AS col0
----
-5911

query II rowsort
SELECT ALL - 22 * - + 24, 50 * + 72 AS col1
----
528
3600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9309
SELECT + 36 + - COUNT( * ) DIV + 90 * - COUNT( * ) * - 8 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9309
SELECT + 36 + - COUNT ( * ) / + 90 * - COUNT ( * ) * - 8 AS col1
----
36

query II rowsort
SELECT ALL - 23 + + + 2 AS col1, - 49 * - 21 AS col1
----
-21
1029

onlyif mysql # DIV for integer division: 
query I rowsort label-9311
SELECT ALL ( 49 ) + - 62 DIV 30
----
47

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL ( 49 ) + - 62 / 30
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT - 0 * - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9312
SELECT - 0 * - - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ALL + 51 + + + 54 + - 87 - - 21 * + + 39 col1
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT ALL SUM( - ( 44 ) ) + CASE - 18 WHEN + ( - 3 ) THEN + - COUNT( * ) + + COUNT( * ) WHEN 76 * - + 54 + - 86 THEN NULL WHEN 27 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL SUM ( - ( 44 ) ) + CASE - 18 WHEN + ( - 3 ) THEN + - COUNT ( * ) + + COUNT ( * ) WHEN 76 * - + 54 + - 86 THEN NULL WHEN 27 THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9315
SELECT - NULLIF ( 67, CASE - 91 WHEN - COUNT( * ) * + + CAST( + 75 AS DECIMAL ) THEN 55 * 20 WHEN + 65 THEN + 38 + + ( + COUNT( * ) ) ELSE - 95 * COUNT( * ) END * 18 + - ( SUM( - 35 ) ) * + 66 )
----
-67

skipif mysql # not compatible
query I rowsort label-9315
SELECT - NULLIF ( 67, CASE - 91 WHEN - COUNT ( * ) * + + CAST ( + 75 AS REAL ) THEN 55 * 20 WHEN + 65 THEN + 38 + + ( + COUNT ( * ) ) ELSE - 95 * COUNT ( * ) END * 18 + - ( SUM ( - 35 ) ) * + 66 )
----
-67

query I rowsort
SELECT - 40 * 54 * - 77
----
166320

query I rowsort
SELECT + 46 * + - 84
----
-3864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9318
SELECT - CAST( 96 AS SIGNED ) AS col2, 59 * MIN( + 97 ) DIV SUM( 6 ) + + + 8
----
-96
961

skipif mysql # not compatible
query II rowsort label-9318
SELECT - CAST ( 96 AS INTEGER ) AS col2, 59 * MIN ( + 97 ) / SUM ( 6 ) + + + 8
----
-96
961

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT - NULLIF ( COUNT( * ), + 26 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9319
SELECT - NULLIF ( COUNT ( * ), + 26 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9320
SELECT ALL + CAST( CASE 14 WHEN - 72 THEN NULL WHEN + 85 THEN - - 9 + - 25 * + + 36 * - 70 ELSE NULL END AS SIGNED ) * + 5 - - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL + CAST ( CASE 14 WHEN - 72 THEN NULL WHEN + 85 THEN - - 9 + - 25 * + + 36 * - 70 ELSE NULL END AS INTEGER ) * + 5 - - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT + 10 * - - COALESCE ( - 1, - - 56 + + 22 * COUNT( * ) + + SUM( 95 ), - - 74 + 36 * 73 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-9321
SELECT + 10 * - - COALESCE ( - 1, - - 56 + + 22 * COUNT ( * ) + + SUM ( 95 ), - - 74 + 36 * 73 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT ALL MAX( + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL MAX ( + 53 )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9323
SELECT DISTINCT + COALESCE ( ( + 80 ), - MAX( DISTINCT - - 29 ) DIV COUNT( * ), - COUNT( ALL - 81 ) ) + - 0
----
80

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT + COALESCE ( ( + 80 ), - MAX ( DISTINCT - - 29 ) / COUNT ( * ), - COUNT ( ALL - 81 ) ) + - 0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL COALESCE ( + 97, + ( - + 46 ) + - 42 * 55 ) - - - CASE - COUNT( * ) WHEN + 2 * 9 THEN NULL WHEN - 32 THEN NULLIF ( - 3, 1 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL COALESCE ( + 97, + ( - + 46 ) + - 42 * 55 ) - - - CASE - COUNT ( * ) WHEN + 2 * 9 THEN NULL WHEN - 32 THEN NULLIF ( - 3, 1 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9325
SELECT ALL + + CAST( NULL AS DECIMAL ) - 26 * - - 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL + + CAST ( NULL AS REAL ) - 26 * - - 28 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT + + CASE 10 WHEN + CASE + + 99 WHEN - - COUNT( * ) * + 60 THEN 67 WHEN + 49 THEN NULL END * - + 79 + 41 THEN + COALESCE ( + + 94, - 57 * 41 + - 60 ) WHEN - 85 THEN NULL ELSE NULL END * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9326
SELECT + + CASE 10 WHEN + CASE + + 99 WHEN - - COUNT ( * ) * + 60 THEN 67 WHEN + 49 THEN NULL END * - + 79 + 41 THEN + COALESCE ( + + 94, - 57 * 41 + - 60 ) WHEN - 85 THEN NULL ELSE NULL END * 10
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9327
SELECT DISTINCT - NULLIF ( + COUNT( ALL + 0 ), + - COUNT( * ) * + - 28 DIV - + 20 + + + COUNT( * ) ) DIV - - 39 + 14
----
14

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT - NULLIF ( + COUNT ( ALL + 0 ), + - COUNT ( * ) * + - 28 / - + 20 + + + COUNT ( * ) ) / - - 39 + 14
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9328
SELECT - + CAST( NULL AS SIGNED ) / + 95, - ( - + COUNT( * ) ) * + - CAST( NULL AS SIGNED ) - - + COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9328
SELECT - + CAST ( NULL AS INTEGER ) / + 95, - ( - + COUNT ( * ) ) * + - CAST ( NULL AS INTEGER ) - - + COUNT ( * )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT + ( COUNT( * ) ) * - 15
----
-15

skipif mysql # not compatible
query I rowsort label-9329
SELECT + ( COUNT ( * ) ) * - 15
----
-15

query I rowsort
SELECT + NULLIF ( - + 9, 67 )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9331
SELECT ALL + 54 DIV 69 - - 33
----
33

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL + 54 / 69 - - 33
----
33

query I rowsort
SELECT + 36 * - - 15 + - 40
----
500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9333
SELECT DISTINCT + 88 DIV - COALESCE ( COUNT( 89 ), 43, + 61 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-9333
SELECT DISTINCT + 88 / - COALESCE ( COUNT ( 89 ), 43, + 61 ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT + - CASE + 41 WHEN + COALESCE ( + COUNT( + - 50 ), - + COUNT( ALL - + 60 ) / + 92, + 80 + + 49 ) THEN - 1 ELSE NULL END * + 15 * - ( SUM( DISTINCT + 52 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9334
SELECT + - CASE + 41 WHEN + COALESCE ( + COUNT ( + - 50 ), - + COUNT ( ALL - + 60 ) / + 92, + 80 + + 49 ) THEN - 1 ELSE NULL END * + 15 * - ( SUM ( DISTINCT + 52 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT DISTINCT - 55 * + - COUNT( * ) - - 93
----
148

skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT - 55 * + - COUNT ( * ) - - 93
----
148

query I rowsort
SELECT DISTINCT 50 * + 14 + + - ( - 23 )
----
723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9337
SELECT + - CASE + 5 WHEN - - 47 * - + 92 THEN - 70 / + 66 + COUNT( * ) END AS col2, 23 / + + 79 - + 24 + + CAST( + 71 AS SIGNED ) + + CAST( NULL AS SIGNED ) * - 72 * MIN( DISTINCT + 10 + - 79 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9337
SELECT + - CASE + 5 WHEN - - 47 * - + 92 THEN - 70 / + 66 + COUNT ( * ) END AS col2, 23 / + + 79 - + 24 + + CAST ( + 71 AS INTEGER ) + + CAST ( NULL AS INTEGER ) * - 72 * MIN ( DISTINCT + 10 + - 79 )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT - 38 * - COUNT( * ) * - ( - + 27 )
----
1026

skipif mysql # not compatible
query I rowsort label-9338
SELECT - 38 * - COUNT ( * ) * - ( - + 27 )
----
1026

query I rowsort
SELECT 29 - - - 79
----
-50

query I rowsort
SELECT DISTINCT 71 + ( - 74 ) * - + 18 + - - 14
----
1417

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT DISTINCT + NULLIF ( 80, COUNT( * ) + - 30 - - + 85 ) + - 65
----
15

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT + NULLIF ( 80, COUNT ( * ) + - 30 - - + 85 ) + - 65
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9342
SELECT DISTINCT + 46 * 42 DIV - 12 AS col2
----
-161

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT + 46 * 42 / - 12 AS col2
----
-161

query I rowsort
SELECT 55 * - - 93 + - 15
----
5100

query I rowsort
SELECT 51 - 83 AS col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9345
SELECT MIN( ALL - 15 ) / CAST( NULL AS DECIMAL ) * + 43 * - + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT MIN ( ALL - 15 ) / CAST ( NULL AS REAL ) * + 43 * - + 7
----
NULL

query I rowsort
SELECT 31 * + - 48 * 1
----
-1488

query I rowsort
SELECT 34 + - 29 col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT 70 * + COALESCE ( 66, ( + SUM( ALL - + 21 ) ) ) AS col1
----
4620

skipif mysql # not compatible
query I rowsort label-9348
SELECT 70 * + COALESCE ( 66, ( + SUM ( ALL - + 21 ) ) ) AS col1
----
4620

query I rowsort
SELECT 41 + 0 + + - ( + + 25 ) AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9350
SELECT ALL + CAST( NULL AS SIGNED ) * + - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 41
----
NULL

query I rowsort
SELECT DISTINCT - CASE WHEN + AVG ( DISTINCT - 84 ) BETWEEN + 55 + + 1 AND - 84 * + 76 THEN 84 ELSE NULL END - 77 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9352
SELECT 60 + - 25 DIV - COALESCE ( - + ( + + 64 ), + CASE - 85 WHEN MAX( ALL 55 ) * + - ( - - CAST( COUNT( * ) AS DECIMAL ) ) - - 52 THEN + 23 ELSE 25 * - 50 END + + 48 * + COUNT( * ) )
----
60

skipif mysql # not compatible
query I rowsort label-9352
SELECT 60 + - 25 / - COALESCE ( - + ( + + 64 ), + CASE - 85 WHEN MAX ( ALL 55 ) * + - ( - - CAST ( COUNT ( * ) AS REAL ) ) - - 52 THEN + 23 ELSE 25 * - 50 END + + 48 * + COUNT ( * ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT NULLIF ( + 79, + - 12 ) + - - 48 + + 67 + - 15 * + COUNT( * ) AS col0
----
179

skipif mysql # not compatible
query I rowsort label-9353
SELECT NULLIF ( + 79, + - 12 ) + - - 48 + + 67 + - 15 * + COUNT ( * ) AS col0
----
179

onlyif mysql # DIV for integer division: 
query II rowsort label-9354
SELECT - + 18 AS col1, + 12 * 88 DIV + ( 12 )
----
-18
88

skipif mysql # not compatible
query II rowsort label-9354
SELECT - + 18 AS col1, + 12 * 88 / + ( 12 )
----
-18
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9355
SELECT + 20 AS col1, AVG ( CAST( NULL AS SIGNED ) ) + + 68
----
20
NULL

skipif mysql # not compatible
query II rowsort label-9355
SELECT + 20 AS col1, AVG ( CAST ( NULL AS INTEGER ) ) + + 68
----
20
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9356
SELECT - 53 + + CASE - 46 WHEN - COUNT( * ) + + - NULLIF ( + - CAST( NULL AS SIGNED ), - - MIN( ALL 91 ) ) THEN + 86 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9356
SELECT - 53 + + CASE - 46 WHEN - COUNT ( * ) + + - NULLIF ( + - CAST ( NULL AS INTEGER ), - - MIN ( ALL 91 ) ) THEN + 86 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT - + COUNT( 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-9357
SELECT - + COUNT ( 2 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9358
SELECT 0 + + 36 DIV 72 AS col2, 29 + - - 20 * + COUNT( * ) + - 33 + 5 * 63 AS col0
----
0
331

skipif mysql # not compatible
query II rowsort label-9358
SELECT 0 + + 36 / 72 AS col2, 29 + - - 20 * + COUNT ( * ) + - 33 + 5 * 63 AS col0
----
0
331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9359
SELECT ALL - CASE + COALESCE ( + + 76, + 0 * + 18 + + - 43 + + - 77 + + CAST( + NULLIF ( - + 7, + 47 ) AS SIGNED ) * - 57 + + - COUNT( * ) - + 13, 9 ) WHEN 56 THEN 6 END * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL - CASE + COALESCE ( + + 76, + 0 * + 18 + + - 43 + + - 77 + + CAST ( + NULLIF ( - + 7, + 47 ) AS INTEGER ) * - 57 + + - COUNT ( * ) - + 13, 9 ) WHEN 56 THEN 6 END * 32
----
NULL

query I rowsort
SELECT ALL - 26 * + 2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT 10 * - - NULLIF ( + 49, ( - - 57 ) - + - ( + 58 ) ) + + 52 - - - 77 + MIN( 49 )
----
514

skipif mysql # not compatible
query I rowsort label-9361
SELECT 10 * - - NULLIF ( + 49, ( - - 57 ) - + - ( + 58 ) ) + + 52 - - - 77 + MIN ( 49 )
----
514

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT MIN( - - 20 )
----
20

skipif mysql # not compatible
query I rowsort label-9362
SELECT MIN ( - - 20 )
----
20

query I rowsort
SELECT + + ( 7 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9364
SELECT + COUNT( * ) AS col0, + 67
----
1
67

skipif mysql # not compatible
query II rowsort label-9364
SELECT + COUNT ( * ) AS col0, + 67
----
1
67

query I rowsort
SELECT - 92 * + 30 + + 60 + - 4 AS col1
----
-2704

query I rowsort
SELECT DISTINCT + COALESCE ( - 83, + 25 + + 4 ) + 98
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9367
SELECT ALL - - CAST( 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL - - CAST ( 10 AS INTEGER )
----
10

query I rowsort
SELECT - 36 * + - 59
----
2124

onlyif mysql # aggregate syntax: 
query II rowsort label-9369
SELECT 16 + + COUNT( * ), - COUNT( * ) col1
----
17
-1

skipif mysql # not compatible
query II rowsort label-9369
SELECT 16 + + COUNT ( * ), - COUNT ( * ) col1
----
17
-1

query I rowsort
SELECT DISTINCT 30 + 11 + - 90 * + 21 + + 60 AS col2
----
-1789

onlyif mysql # aggregate syntax: 
query II rowsort label-9371
SELECT NULLIF ( COUNT( * ), COUNT( * ) ) + + 53, - 43 + 9 col0
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-9371
SELECT NULLIF ( COUNT ( * ), COUNT ( * ) ) + + 53, - 43 + 9 col0
----
NULL
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9372
SELECT DISTINCT + 50 + + CAST( ( SUM( DISTINCT - ( + + 48 ) ) ) AS SIGNED ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9372
SELECT DISTINCT + 50 + + CAST ( ( SUM ( DISTINCT - ( + + 48 ) ) ) AS INTEGER ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT 51 + - + 55 + - 49 * - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-9373
SELECT 51 + - + 55 + - 49 * - COUNT ( * )
----
45

query I rowsort
SELECT 60 + 65 AS col2
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9375
SELECT ALL - CASE ( + + 12 ) WHEN + 99 * - 71 - + - 89 / + + ( - - 77 ) * + + 82 * + 27 THEN 81 WHEN CAST( NULL AS SIGNED ) THEN + 53 + - + 26 + COUNT( * ) ELSE + 4 END + + 72 col2
----
68

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL - CASE ( + + 12 ) WHEN + 99 * - 71 - + - 89 / + + ( - - 77 ) * + + 82 * + 27 THEN 81 WHEN CAST ( NULL AS INTEGER ) THEN + 53 + - + 26 + COUNT ( * ) ELSE + 4 END + + 72 col2
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-9376
SELECT - MAX( 15 ), 35 AS col2
----
-15
35

skipif mysql # not compatible
query II rowsort label-9376
SELECT - MAX ( 15 ), 35 AS col2
----
-15
35

onlyif mysql # aggregate syntax: 
query II rowsort label-9377
SELECT 70 + + 18 + COUNT( + 43 ) AS col2, COUNT( DISTINCT 41 ) + - 93
----
89
-92

skipif mysql # not compatible
query II rowsort label-9377
SELECT 70 + + 18 + COUNT ( + 43 ) AS col2, COUNT ( DISTINCT 41 ) + - 93
----
89
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9378
SELECT CAST( NULL AS SIGNED ) * + 10, 83 AS col2
----
NULL
83

skipif mysql # not compatible
query II rowsort label-9378
SELECT CAST ( NULL AS INTEGER ) * + 10, 83 AS col2
----
NULL
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9379
SELECT DISTINCT - 16 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT - 16 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 25 * - 16 + - 88
----
-488

query I rowsort
SELECT - 65 * 21
----
-1365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9382
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT ALL + COUNT( * ) * - COALESCE ( - 71, 3 + + + 38 + - 27 * + COUNT( * ) )
----
71

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL + COUNT ( * ) * - COALESCE ( - 71, 3 + + + 38 + - 27 * + COUNT ( * ) )
----
71

query I rowsort
SELECT + 31 * + - ( - 71 ) + ( + ( - - COALESCE ( - + 92, + 34 ) ) )
----
2109

onlyif mysql # DIV for integer division: 
query II rowsort label-9385
SELECT ALL 70 DIV 38 AS col0, - 47 * - - 89 * - 10 AS col0
----
1
41830

skipif mysql # not compatible
query II rowsort label-9385
SELECT ALL 70 / 38 AS col0, - 47 * - - 89 * - 10 AS col0
----
1
41830

query II rowsort
SELECT ALL - - 28 + 25 AS col2, - ( - - 97 ) AS col1
----
53
-97

query I rowsort
SELECT - 84 + 40 - + ( - 84 ) * 0
----
-44

query I rowsort
SELECT - + 58 * - 89 col0
----
5162

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT - 70 * MAX( - 83 ) + + 62 AS col0
----
5872

skipif mysql # not compatible
query I rowsort label-9389
SELECT - 70 * MAX ( - 83 ) + + 62 AS col0
----
5872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9390
SELECT + COALESCE ( CASE NULLIF ( + 21, + - COUNT( * ) ) WHEN + 63 THEN NULL ELSE - 23 * 42 + CAST( NULL AS SIGNED ) + - COUNT( * ) * - 38 * + 90 END, + CASE + 83 WHEN 60 / - 5 THEN - 36 ELSE COUNT( * ) END ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9390
SELECT + COALESCE ( CASE NULLIF ( + 21, + - COUNT ( * ) ) WHEN + 63 THEN NULL ELSE - 23 * 42 + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 38 * + 90 END, + CASE + 83 WHEN 60 / - 5 THEN - 36 ELSE COUNT ( * ) END ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9391
SELECT ALL + COUNT( * ) * - COALESCE ( - 72, ( - 40 ) * 99 DIV + ( NULLIF ( + + 79, 25 ) ), 30 * - 13 )
----
72

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL + COUNT ( * ) * - COALESCE ( - 72, ( - 40 ) * 99 / + ( NULLIF ( + + 79, 25 ) ), 30 * - 13 )
----
72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9392
SELECT + COALESCE ( - 31, + NULLIF ( 70, + 79 ) * - NULLIF ( + 6, + 56 ) * - 52 + - 65 DIV + COALESCE ( - - 36, - 55 + + CAST( 64 AS SIGNED ) ), 78 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-9392
SELECT + COALESCE ( - 31, + NULLIF ( 70, + 79 ) * - NULLIF ( + 6, + 56 ) * - 52 + - 65 / + COALESCE ( - - 36, - 55 + + CAST ( 64 AS INTEGER ) ), 78 ) AS col0
----
-31

query I rowsort
SELECT ALL - - 12 * + - 90 + - + 49 AS col1
----
-1129

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT ALL + + 46 * + + 2 * COALESCE ( 19, - + CASE - 9 WHEN + + 94 THEN COUNT( * ) WHEN - 17 / - ( 93 ) * + - 72 THEN NULL END ) + + - 86 * + 88 + + 93 AS col0
----
-5727

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL + + 46 * + + 2 * COALESCE ( 19, - + CASE - 9 WHEN + + 94 THEN COUNT ( * ) WHEN - 17 / - ( 93 ) * + - 72 THEN NULL END ) + + - 86 * + 88 + + 93 AS col0
----
-5727

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT + + CASE 34 WHEN ( + + 11 ) / - - 25 THEN + 71 END + + + COUNT( * ) * + COALESCE ( + - 20, + 70 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9395
SELECT + + CASE 34 WHEN ( + + 11 ) / - - 25 THEN + 71 END + + + COUNT ( * ) * + COALESCE ( + - 20, + 70 ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9396
SELECT + 1 DIV - + 9 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9396
SELECT + 1 / - + 9 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9397
SELECT - 81 * 92 DIV - 60 + + 3 AS col2
----
127

skipif mysql # not compatible
query I rowsort label-9397
SELECT - 81 * 92 / - 60 + + 3 AS col2
----
127

query I rowsort
SELECT DISTINCT - 46 * - + 95
----
4370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9399
SELECT - COALESCE ( + 5, - 28 DIV - COALESCE ( + 88, + 82 ) - - + NULLIF ( - 4, 48 * + ( COUNT( * ) ) * 26 ) + ( - 97 ) * + COUNT( * ) * + 85, 83 ) * - 71 - 82
----
273

skipif mysql # not compatible
query I rowsort label-9399
SELECT - COALESCE ( + 5, - 28 / - COALESCE ( + 88, + 82 ) - - + NULLIF ( - 4, 48 * + ( COUNT ( * ) ) * 26 ) + ( - 97 ) * + COUNT ( * ) * + 85, 83 ) * - 71 - 82
----
273

query I rowsort
SELECT - 48 * + 70 col2
----
-3360

query II rowsort
SELECT DISTINCT + 36 * + 94 + + + 70 AS col2, - 21 AS col2
----
3454
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT SUM( - 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-9402
SELECT SUM ( - 13 ) AS col0
----
-13

query I rowsort
SELECT + 6 - - 3 AS col0
----
9

query I rowsort
SELECT + 18 * + - ( + + 94 )
----
-1692

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT ALL - 9 * 59 - ( - SUM( DISTINCT COALESCE ( 73, - - 43 ) ) )
----
-458

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL - 9 * 59 - ( - SUM ( DISTINCT COALESCE ( 73, - - 43 ) ) )
----
-458

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT ALL - MAX( ALL ( + 59 ) ) - - + 62 col1
----
3

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL - MAX ( ALL ( + 59 ) ) - - + 62 col1
----
3

query I rowsort
SELECT ALL + 2 * 26
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT COUNT( DISTINCT - - 7 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9408
SELECT COUNT ( DISTINCT - - 7 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9409
SELECT + COUNT( 65 ) + 73, COUNT( * ) AS col0
----
74
1

skipif mysql # not compatible
query II rowsort label-9409
SELECT + COUNT ( 65 ) + 73, COUNT ( * ) AS col0
----
74
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9410
SELECT + CAST( + - MIN( ALL - 62 ) AS SIGNED ) * - 39 * + 64 * - NULLIF ( - COUNT( * ), + 15 ) + - + 68
----
-154820

skipif mysql # not compatible
query I rowsort label-9410
SELECT + CAST ( + - MIN ( ALL - 62 ) AS INTEGER ) * - 39 * + 64 * - NULLIF ( - COUNT ( * ), + 15 ) + - + 68
----
-154820

query I rowsort
SELECT - ( NULLIF ( + 20, - 20 * 96 + - + 28 + 35 * - 85 ) )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-9412
SELECT + 48 * - 17 + - + 9 AS col2, + NULLIF ( - - 59, + NULLIF ( + COALESCE ( + 39, + SUM( DISTINCT - - 72 ) ), 42 ) * + - 42 * + 39 + ( 55 ) + + 80 ) AS col0
----
-825
59

skipif mysql # not compatible
query II rowsort label-9412
SELECT + 48 * - 17 + - + 9 AS col2, + NULLIF ( - - 59, + NULLIF ( + COALESCE ( + 39, + SUM ( DISTINCT - - 72 ) ), 42 ) * + - 42 * + 39 + ( 55 ) + + 80 ) AS col0
----
-825
59

query I rowsort
SELECT + + ( + - 73 ) * 30
----
-2190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9414
SELECT + + CAST( COUNT( * ) AS SIGNED ) + - 15 * - - COUNT( ALL 5 ) * + - 95 * 6 AS col1
----
8551

skipif mysql # not compatible
query I rowsort label-9414
SELECT + + CAST ( COUNT ( * ) AS INTEGER ) + - 15 * - - COUNT ( ALL 5 ) * + - 95 * 6 AS col1
----
8551

query I rowsort
SELECT DISTINCT 53 * + - 30
----
-1590

onlyif mysql # aggregate syntax: 
query II rowsort label-9416
SELECT ALL 17 AS col2, COUNT( * ) AS col2
----
17
1

skipif mysql # not compatible
query II rowsort label-9416
SELECT ALL 17 AS col2, COUNT ( * ) AS col2
----
17
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9417
SELECT + COUNT( * ) + CAST( + AVG ( ALL - 20 ) AS SIGNED ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-9417
SELECT + COUNT ( * ) + CAST ( + AVG ( ALL - 20 ) AS INTEGER ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT - 15 + MAX( - NULLIF ( - 33, + - 26 ) ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9418
SELECT - 15 + MAX ( - NULLIF ( - 33, + - 26 ) ) AS col2
----
18

query II rowsort
SELECT ALL + 4 AS col0, - 68 AS col2
----
4
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT - - SUM( - + 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-9420
SELECT - - SUM ( - + 72 ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-9421
SELECT - COUNT( * ) AS col0, + COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-9421
SELECT - COUNT ( * ) AS col0, + COUNT ( * ) AS col1
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL + MAX( NULLIF ( 60, + 60 - - 99 ) ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL + MAX ( NULLIF ( 60, + 60 - - 99 ) ) AS col1
----
60

query I rowsort
SELECT - + COALESCE ( - 15, + 23, 2 ) AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9424
SELECT + + MIN( DISTINCT + 2 ) * + 20 * - MIN( ALL 94 ) AS col1, - 89 * + MIN( DISTINCT + 6 ) * CAST( 10 AS SIGNED ) * + - 71 - + 63 + 10 AS col0
----
-3760
379087

skipif mysql # not compatible
query II rowsort label-9424
SELECT + + MIN ( DISTINCT + 2 ) * + 20 * - MIN ( ALL 94 ) AS col1, - 89 * + MIN ( DISTINCT + 6 ) * CAST ( 10 AS INTEGER ) * + - 71 - + 63 + 10 AS col0
----
-3760
379087

query I rowsort
SELECT - + NULLIF ( CASE - 78 WHEN 56 * + 52 THEN NULL WHEN - 12 THEN 68 + - 22 ELSE NULL END, - + 86 * - 46 ) + - 99 + + 50 / - 62 * - + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT DISTINCT - 26 + SUM( 81 ) + 19 + 99 + - 63 * - 92
----
5969

skipif mysql # not compatible
query I rowsort label-9426
SELECT DISTINCT - 26 + SUM ( 81 ) + 19 + 99 + - 63 * - 92
----
5969

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9427
SELECT ALL + + 68 DIV 42 * COUNT( 78 ) * + ( - 31 ) - - 84 + 8
----
61

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL + + 68 / 42 * COUNT ( 78 ) * + ( - 31 ) - - 84 + 8
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9428
SELECT - 31 * - COUNT( * ) DIV + 63 * - 94 * 86 + 22 + ( + 39 ) - - 58 AS col2
----
119

skipif mysql # not compatible
query I rowsort label-9428
SELECT - 31 * - COUNT ( * ) / + 63 * - 94 * 86 + 22 + ( + 39 ) - - 58 AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT - 45 * + 32 * - 71 + + COUNT( * )
----
102241

skipif mysql # not compatible
query I rowsort label-9429
SELECT - 45 * + 32 * - 71 + + COUNT ( * )
----
102241

query II rowsort
SELECT ALL + 99 AS col2, ( + + 14 ) AS col0
----
99
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9431
SELECT - COUNT( * ) * - 0 - - + 84 - + + 50 + - 79 DIV + 24 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9431
SELECT - COUNT ( * ) * - 0 - - + 84 - + + 50 + - 79 / + 24 AS col0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9432
SELECT CAST( NULL AS SIGNED ) AS col1, 2 AS col1
----
NULL
2

skipif mysql # not compatible
query II rowsort label-9432
SELECT CAST ( NULL AS INTEGER ) AS col1, 2 AS col1
----
NULL
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT - SUM( ALL 60 ) * + NULLIF ( COUNT( * ), COUNT( DISTINCT 19 ) * + - CASE + - AVG ( - + 77 ) WHEN - 77 THEN + 98 + - COALESCE ( + 3, + 74 ) * 45 WHEN + 13 THEN NULL END ) + + 84 + - 95 * - 7 AS col1
----
689

skipif mysql # not compatible
query I rowsort label-9433
SELECT - SUM ( ALL 60 ) * + NULLIF ( COUNT ( * ), COUNT ( DISTINCT 19 ) * + - CASE + - AVG ( - + 77 ) WHEN - 77 THEN + 98 + - COALESCE ( + 3, + 74 ) * 45 WHEN + 13 THEN NULL END ) + + 84 + - 95 * - 7 AS col1
----
689

query I rowsort
SELECT - 24 * + 52
----
-1248

query I rowsort
SELECT - 30 * + 53 * - ( - + 55 )
----
-87450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9436
SELECT ALL + CAST( NULL AS SIGNED ), COUNT( * ) DIV + - 49 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9436
SELECT ALL + CAST ( NULL AS INTEGER ), COUNT ( * ) / + - 49 AS col0
----
NULL
0

query I rowsort
SELECT - 12 + - + 40 + 35 col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9438
SELECT + 1 * + - 68 * + 1 - COUNT( * ) DIV 81 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-9438
SELECT + 1 * + - 68 * + 1 - COUNT ( * ) / 81 AS col2
----
-68

query I rowsort
SELECT ALL + ( - 95 ) col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT DISTINCT - COUNT( * ) * + - COUNT( ALL 22 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( ALL 22 ) AS col1
----
1

query I rowsort
SELECT ALL - 98 * + 77 AS col0
----
-7546

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT NULLIF ( - 13, + 13 * MAX( ALL + 63 ) * + 83 )
----
-13

skipif mysql # not compatible
query I rowsort label-9442
SELECT NULLIF ( - 13, + 13 * MAX ( ALL + 63 ) * + 83 )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9443
SELECT + CAST( 16 AS SIGNED ) + - 38 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-9443
SELECT + CAST ( 16 AS INTEGER ) + - 38 AS col1
----
-22

query II rowsort
SELECT ALL + 21 AS col1, 61 AS col1
----
21
61

query I rowsort
SELECT + 86 * + + 66 AS col0
----
5676

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9446
SELECT ALL - 82 * + - COUNT( * ) / + ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL - 82 * + - COUNT ( * ) / + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT 75 AS col0, 40 * + 44
----
75
1760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9448
SELECT ALL - ( - 20 ) + + 12 + + - 94 / CAST( NULL AS SIGNED ) * - 83 * - NULLIF ( + 79, - + 84 ), + 20 + + COUNT( * ) + - ( - 7 ) * - 42 AS col2
----
NULL
-273

skipif mysql # not compatible
query II rowsort label-9448
SELECT ALL - ( - 20 ) + + 12 + + - 94 / CAST ( NULL AS INTEGER ) * - 83 * - NULLIF ( + 79, - + 84 ), + 20 + + COUNT ( * ) + - ( - 7 ) * - 42 AS col2
----
NULL
-273

query I rowsort
SELECT + 53 - - 12 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT - + MAX( - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-9450
SELECT - + MAX ( - 23 )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9451
SELECT CASE CAST( NULL AS DECIMAL ) WHEN + 91 * - 46 THEN - 46 * - CAST( NULL AS SIGNED ) ELSE - 67 * + 27 * - 60 END AS col2, + 83 + - SUM( ALL + 90 ) col0
----
108540
-7

skipif mysql # not compatible
query II rowsort label-9451
SELECT CASE CAST ( NULL AS REAL ) WHEN + 91 * - 46 THEN - 46 * - CAST ( NULL AS INTEGER ) ELSE - 67 * + 27 * - 60 END AS col2, + 83 + - SUM ( ALL + 90 ) col0
----
108540
-7

query I rowsort
SELECT ALL - 47 * - - 65
----
-3055

query II rowsort
SELECT + 18 AS col1, + 52
----
18
52

query II rowsort
SELECT 93, + 75 AS col0
----
93
75

query I rowsort
SELECT DISTINCT 28 + 99 - 28 * - + 49 * - + 40
----
-54753

onlyif mysql # DIV for integer division: 
query I rowsort label-9456
SELECT ALL 33 + 87 + + + 20 DIV + + ( + 83 )
----
120

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL 33 + 87 + + + 20 / + + ( + 83 )
----
120

query II rowsort
SELECT - 19 AS col2, 84 AS col2
----
-19
84

query II rowsort
SELECT ALL 72 * + - 33 + - 50 * + + 89 col2, + 69
----
-6826
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT ALL + COALESCE ( + + 99, - MAX( - 22 ) * + 99 + + SUM( ( + + 81 ) ) - - 26 * - 18 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL + COALESCE ( + + 99, - MAX ( - 22 ) * + 99 + + SUM ( ( + + 81 ) ) - - 26 * - 18 ) AS col1
----
99

query I rowsort
SELECT ALL + 62 - + + 53 col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9461
SELECT ALL + COUNT( * ) * + - CASE + CAST( NULL AS SIGNED ) WHEN + 62 - + + 5 THEN NULL WHEN + + 91 THEN NULL WHEN + 65 THEN NULL ELSE + 71 END col2
----
-71

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL + COUNT ( * ) * + - CASE + CAST ( NULL AS INTEGER ) WHEN + 62 - + + 5 THEN NULL WHEN + + 91 THEN NULL WHEN + 65 THEN NULL ELSE + 71 END col2
----
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-9462
SELECT 44 DIV - 31, 85 * - 31 col0
----
-1
-2635

skipif mysql # not compatible
query II rowsort label-9462
SELECT 44 / - 31, 85 * - 31 col0
----
-1
-2635

query I rowsort
SELECT ALL NULLIF ( + 71, - 62 ) * - 11 - + 32
----
-813

query I rowsort
SELECT DISTINCT 59 * + 10
----
590

query I rowsort
SELECT 53 + 15 * - ( + + 40 )
----
-547

onlyif mysql # aggregate syntax: 
query II rowsort label-9466
SELECT DISTINCT - MAX( ALL - 31 ) AS col0, ( + 26 ) * 48
----
31
1248

skipif mysql # not compatible
query II rowsort label-9466
SELECT DISTINCT - MAX ( ALL - 31 ) AS col0, ( + 26 ) * 48
----
31
1248

query I rowsort
SELECT 69 * - 1 AS col1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-9468
SELECT DISTINCT + 57 DIV - 57 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT + 57 / - 57 AS col0
----
-1

query II rowsort
SELECT DISTINCT - 84 + + 56 AS col1, 89
----
-28
89

query I rowsort
SELECT 69 * 98 col0
----
6762

query I rowsort
SELECT 75 - - 83 + - + 53 + + + 57 AS col0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT DISTINCT + 85 + NULLIF ( - + 54, + + MIN( + 11 ) + + 90 + + 50 )
----
31

skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT + 85 + NULLIF ( - + 54, + + MIN ( + 11 ) + + 90 + + 50 )
----
31

query I rowsort
SELECT ALL - 53 + - 9 * - 50
----
397

query I rowsort
SELECT - ( + - ( COALESCE ( 5, - + 76, - + 12 ) ) )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9475
SELECT + CASE 96 WHEN + 79 / SUM( 46 ) THEN + - 24 / + + COUNT( * ) * + 99 * - 61 / + 96 END * - COUNT( * ) + - + 75 + + 69 AS col1, 6
----
NULL
6

skipif mysql # not compatible
query II rowsort label-9475
SELECT + CASE 96 WHEN + 79 / SUM ( 46 ) THEN + - 24 / + + COUNT ( * ) * + 99 * - 61 / + 96 END * - COUNT ( * ) + - + 75 + + 69 AS col1, 6
----
NULL
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT - COUNT( * ) - + 20 * - COUNT( * ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-9476
SELECT - COUNT ( * ) - + 20 * - COUNT ( * ) AS col2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9477
SELECT 7 * - ( + 24 ) * - + 77 * + CAST( NULL AS SIGNED ) - - - 71 * + ( NULLIF ( 11, + 52 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9477
SELECT 7 * - ( + 24 ) * - + 77 * + CAST ( NULL AS INTEGER ) - - - 71 * + ( NULLIF ( 11, + 52 ) )
----
NULL

query I rowsort
SELECT ALL 17 + - + 23 - 45 * ( 61 )
----
-2751

query II rowsort
SELECT DISTINCT + 99 - - 38, - 25 col1
----
137
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT ALL - MAX( 62 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL - MAX ( 62 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT 80 * + COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-9481
SELECT 80 * + COUNT ( * ) AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9482
SELECT - 36 * + + 0 * + - 57 * COALESCE ( + - COALESCE ( - - COUNT( * ), - MAX( ALL 28 ) ), + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9482
SELECT - 36 * + + 0 * + - 57 * COALESCE ( + - COALESCE ( - - COUNT ( * ), - MAX ( ALL 28 ) ), + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT - 75 + + 24
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9484
SELECT 72 + + 7 + + MAX( 78 ) * - CAST( - + 20 AS SIGNED ) + - 25
----
1614

skipif mysql # not compatible
query I rowsort label-9484
SELECT 72 + + 7 + + MAX ( 78 ) * - CAST ( - + 20 AS INTEGER ) + - 25
----
1614

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9485
SELECT ALL COUNT( * ) * COUNT( * ) * + 28 DIV + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL COUNT ( * ) * COUNT ( * ) * + 28 / + 67 AS col0
----
0

query II rowsort
SELECT 74, + 67 AS col1
----
74
67

onlyif mysql # aggregate syntax: 
query II rowsort label-9487
SELECT ALL 14 AS col1, 62 * + - COUNT( ALL + - 21 )
----
14
-62

skipif mysql # not compatible
query II rowsort label-9487
SELECT ALL 14 AS col1, 62 * + - COUNT ( ALL + - 21 )
----
14
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT + MIN( ALL + + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-9488
SELECT + MIN ( ALL + + 54 )
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-9489
SELECT ALL - COUNT( * ) col0, 66 AS col2
----
-1
66

skipif mysql # not compatible
query II rowsort label-9489
SELECT ALL - COUNT ( * ) col0, 66 AS col2
----
-1
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ( 19 ) * + 5 + + SUM( ALL + 3 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-9490
SELECT ( 19 ) * + 5 + + SUM ( ALL + 3 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT MAX( ALL - - 94 )
----
94

skipif mysql # not compatible
query I rowsort label-9491
SELECT MAX ( ALL - - 94 )
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9492
SELECT + COUNT( * ) AS col2, ( - - 49 ) - 56
----
1
-7

skipif mysql # not compatible
query II rowsort label-9492
SELECT + COUNT ( * ) AS col2, ( - - 49 ) - 56
----
1
-7

query I rowsort
SELECT ALL 47 * - 25 * + 56 * + 60
----
-3948000

query II rowsort
SELECT + 34 AS col0, + 32
----
34
32

onlyif mysql # aggregate syntax: 
query II rowsort label-9495
SELECT + COUNT( * ) AS col1, - 63 * + 0 + COUNT( * ) * - 2 - - COUNT( * ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-9495
SELECT + COUNT ( * ) AS col1, - 63 * + 0 + COUNT ( * ) * - 2 - - COUNT ( * ) AS col2
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT COUNT( * ) * + SUM( DISTINCT - 15 ) + - 82 * - - 89
----
-7313

skipif mysql # not compatible
query I rowsort label-9496
SELECT COUNT ( * ) * + SUM ( DISTINCT - 15 ) + - 82 * - - 89
----
-7313

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT COUNT( ALL 27 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9497
SELECT COUNT ( ALL 27 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT ALL 55 * - - 69 / + 23 + - - CASE - 72 WHEN - - NULLIF ( - - COUNT( * ), + - 89 ) THEN NULL WHEN - MAX( - + 68 ) THEN - 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL 55 * - - 69 / + 23 + - - CASE - 72 WHEN - - NULLIF ( - - COUNT ( * ), + - 89 ) THEN NULL WHEN - MAX ( - + 68 ) THEN - 2 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9499
SELECT DISTINCT 30 * 54 + + - CAST( + - 80 AS SIGNED ) AS col1
----
1700

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT 30 * 54 + + - CAST ( + - 80 AS INTEGER ) AS col1
----
1700

onlyif mysql # aggregate syntax: 
query II rowsort label-9500
SELECT ( - 71 ) * 68 + + COUNT( * ) AS col0, - 81 AS col2
----
-4827
-81

skipif mysql # not compatible
query II rowsort label-9500
SELECT ( - 71 ) * 68 + + COUNT ( * ) AS col0, - 81 AS col2
----
-4827
-81

query I rowsort
SELECT ALL 81 + + + 57
----
138

query II rowsort
SELECT + - 69 AS col1, 78 + 61
----
-69
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9503
SELECT - CAST( + + 39 AS SIGNED ) * 60 + + - MAX( DISTINCT - + 24 ) + 67 DIV - 76
----
-2316

skipif mysql # not compatible
query I rowsort label-9503
SELECT - CAST ( + + 39 AS INTEGER ) * 60 + + - MAX ( DISTINCT - + 24 ) + 67 / - 76
----
-2316

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT DISTINCT + - COUNT( ALL - - 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT + - COUNT ( ALL - - 37 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9505
SELECT ALL - + 19 DIV + + 4
----
-4

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL - + 19 / + + 4
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT - 4 + - + 40 + - - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-9506
SELECT - 4 + - + 40 + - - COUNT ( * )
----
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-9507
SELECT DISTINCT + + 83 AS col0, 77 DIV + 12 col1
----
83
6

skipif mysql # not compatible
query II rowsort label-9507
SELECT DISTINCT + + 83 AS col0, 77 / + 12 col1
----
83
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9508
SELECT DISTINCT CASE CAST( + + MAX( ALL 82 ) AS SIGNED ) WHEN + 97 THEN NULL WHEN - + ( + 87 ) THEN NULL WHEN + + NULLIF ( - - 95, + + MIN( ALL - 21 ) * + + 14 + + 48 ) * + - 53 * 0 * - CAST( - + COUNT( ALL - 35 ) AS SIGNED ) THEN NULLIF ( + 6, 13 / 27 ) * - COUNT( * ) ELSE - 37 END
----
-37

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT CASE CAST ( + + MAX ( ALL 82 ) AS INTEGER ) WHEN + 97 THEN NULL WHEN - + ( + 87 ) THEN NULL WHEN + + NULLIF ( - - 95, + + MIN ( ALL - 21 ) * + + 14 + + 48 ) * + - 53 * 0 * - CAST ( - + COUNT ( ALL - 35 ) AS INTEGER ) THEN NULLIF ( + 6, 13 / 27 ) * - COUNT ( * ) ELSE - 37 END
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-9509
SELECT DISTINCT + 97 * + 23 + + - 14 + + 72 + + - 59 DIV - COALESCE ( + + 24, - 20 ) + + 67 + 46 * + 54
----
4842

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT + 97 * + 23 + + - 14 + + 72 + + - 59 / - COALESCE ( + + 24, - 20 ) + + 67 + 46 * + 54
----
4842

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT - + ( - + 45 ) * + ( - MIN( - 94 ) )
----
4230

skipif mysql # not compatible
query I rowsort label-9510
SELECT - + ( - + 45 ) * + ( - MIN ( - 94 ) )
----
4230

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT ALL + - COUNT( * ) - - 32
----
31

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL + - COUNT ( * ) - - 32
----
31

query I rowsort
SELECT DISTINCT + + 65 * 80 AS col1
----
5200

query I rowsort
SELECT - CASE - ( - + 35 ) WHEN + 15 * + 97 + 59 THEN - 54 ELSE + ( - + 4 ) END
----
4

query I rowsort
SELECT - 51 - 96
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT - 20 * COUNT( * ) * - COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-9515
SELECT - 20 * COUNT ( * ) * - COUNT ( * ) AS col0
----
20

query II rowsort
SELECT - 5, - 69 AS col2
----
-5
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-9517
SELECT - 16 AS col1, + NULLIF ( - COUNT( * ), 61 )
----
-16
-1

skipif mysql # not compatible
query II rowsort label-9517
SELECT - 16 AS col1, + NULLIF ( - COUNT ( * ), 61 )
----
-16
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9518
SELECT ALL NULLIF ( - 5, - 10 ) AS col2, COUNT( * ) + + 65
----
-5
66

skipif mysql # not compatible
query II rowsort label-9518
SELECT ALL NULLIF ( - 5, - 10 ) AS col2, COUNT ( * ) + + 65
----
-5
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT DISTINCT COALESCE ( - - 24, + + 32 + COUNT( * ), + ( 49 ) + + + 66 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9519
SELECT DISTINCT COALESCE ( - - 24, + + 32 + COUNT ( * ), + ( 49 ) + + + 66 ) AS col1
----
24

query I rowsort
SELECT + 89 * - 4
----
-356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9521
SELECT - SUM( CAST( 78 AS SIGNED ) ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-9521
SELECT - SUM ( CAST ( 78 AS INTEGER ) ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT ALL ( CASE - SUM( ALL 25 ) WHEN - CASE + 4 WHEN - 86 * - 79 THEN + COUNT( * ) END + 54 * - COUNT( * ) + - + 39 / - - 97 + + CASE 38 WHEN COUNT( * ) * ( + ( - 40 ) ) * - 7 - - CASE - 28 WHEN - 28 THEN - 19 ELSE NULL END / 54 THEN - 3 * + ( - SUM( ALL + 65 ) * 92 ) ELSE NULL END THEN - ( 62 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL ( CASE - SUM ( ALL 25 ) WHEN - CASE + 4 WHEN - 86 * - 79 THEN + COUNT ( * ) END + 54 * - COUNT ( * ) + - + 39 / - - 97 + + CASE 38 WHEN COUNT ( * ) * ( + ( - 40 ) ) * - 7 - - CASE - 28 WHEN - 28 THEN - 19 ELSE NULL END / 54 THEN - 3 * + ( - SUM ( ALL + 65 ) * 92 ) ELSE NULL END THEN - ( 62 ) END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9523
SELECT DISTINCT - 56 * - + 94 * - - 77 * - 24 DIV 6 AS col1
----
-1621312

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT - 56 * - + 94 * - - 77 * - 24 / 6 AS col1
----
-1621312

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT ALL 71 + - MIN( ALL + 63 ) col1
----
8

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL 71 + - MIN ( ALL + 63 ) col1
----
8

query I rowsort
SELECT - 35 + - - 96 AS col0
----
61

query I rowsort
SELECT - COALESCE ( - 16, 72 + + 70 )
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9527
SELECT ALL 47 * COUNT( * ) AS col0, + 33 AS col0
----
47
33

skipif mysql # not compatible
query II rowsort label-9527
SELECT ALL 47 * COUNT ( * ) AS col0, + 33 AS col0
----
47
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9528
SELECT - 53 DIV 63 DIV + 22
----
0

skipif mysql # not compatible
query I rowsort label-9528
SELECT - 53 / 63 / + 22
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9529
SELECT + 76 DIV + 82 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9529
SELECT + 76 / + 82 + + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 94 * ( - 86 ) AS col1
----
-8084

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT ALL 82 * 89 * + SUM( 73 ) + - + ( - + 47 ) AS col1
----
532801

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL 82 * 89 * + SUM ( 73 ) + - + ( - + 47 ) AS col1
----
532801

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT DISTINCT ( + + 57 ) * - 74 + 45 + + COUNT( * ) col0
----
-4172

skipif mysql # not compatible
query I rowsort label-9532
SELECT DISTINCT ( + + 57 ) * - 74 + 45 + + COUNT ( * ) col0
----
-4172

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT + CASE WHEN ( + 75 ) IS NOT NULL THEN + COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9533
SELECT + CASE WHEN ( + 75 ) IS NOT NULL THEN + COUNT ( * ) END AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT DISTINCT 26 * + - COUNT( * ) + + ( + COUNT( ALL - 1 ) ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT 26 * + - COUNT ( * ) + + ( + COUNT ( ALL - 1 ) ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT + SUM( + 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-9535
SELECT + SUM ( + 66 ) AS col1
----
66

query I rowsort
SELECT ( + ( ( + + ( + - 5 ) ) ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT + - COALESCE ( 80, - MAX( DISTINCT - - 63 ) + + + 85 ) * - 69
----
5520

skipif mysql # not compatible
query I rowsort label-9537
SELECT + - COALESCE ( 80, - MAX ( DISTINCT - - 63 ) + + + 85 ) * - 69
----
5520

query I rowsort
SELECT + + 45 + 65 * - 32
----
-2035

query I rowsort
SELECT - 93 * - - 87 * 63
----
-509733

query I rowsort
SELECT DISTINCT 25 * - - 0 - + 2
----
-2

query I rowsort
SELECT 4 * + 68 + + - 30
----
242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9542
SELECT ALL + CAST( NULL AS SIGNED ) * + 43 - - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL + CAST ( NULL AS INTEGER ) * + 43 - - 17
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - 98, - 40 ) * + + 68
----
-6664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9544
SELECT - CAST( + + 87 AS SIGNED ) + 17 col0
----
-70

skipif mysql # not compatible
query I rowsort label-9544
SELECT - CAST ( + + 87 AS INTEGER ) + 17 col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT CASE 62 WHEN + 6 THEN + ( 73 ) + COALESCE ( - COUNT( * ), - - 83, + + 24 ) + + 80 * + 25 + COUNT( * ) / MAX( DISTINCT 67 ) + - MIN( + 20 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9545
SELECT CASE 62 WHEN + 6 THEN + ( 73 ) + COALESCE ( - COUNT ( * ), - - 83, + + 24 ) + + 80 * + 25 + COUNT ( * ) / MAX ( DISTINCT 67 ) + - MIN ( + 20 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT - 96 * - 69 + - + MAX( + 84 ) + COUNT( - 23 )
----
6541

skipif mysql # not compatible
query I rowsort label-9546
SELECT - 96 * - 69 + - + MAX ( + 84 ) + COUNT ( - 23 )
----
6541

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT - 92 * - - COUNT( * ) + - - 76 + 0 - - 20 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9547
SELECT - 92 * - - COUNT ( * ) + - - 76 + 0 - - 20 AS col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9548
SELECT - - 63 - - 17 DIV 17 DIV 55 * - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-9548
SELECT - - 63 - - 17 / 17 / 55 * - COUNT ( * )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-9549
SELECT + + 94 + 15 + - + 52 DIV - - 20 AS col1
----
107

skipif mysql # not compatible
query I rowsort label-9549
SELECT + + 94 + 15 + - + 52 / - - 20 AS col1
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9550
SELECT - - NULLIF ( 38, - + CASE + - 4 WHEN - + 94 THEN - 71 ELSE NULL END ) * + - COUNT( * ) + - + 57 + + 4 DIV 11 * + - 6
----
-95

skipif mysql # not compatible
query I rowsort label-9550
SELECT - - NULLIF ( 38, - + CASE + - 4 WHEN - + 94 THEN - 71 ELSE NULL END ) * + - COUNT ( * ) + - + 57 + + 4 / 11 * + - 6
----
-95

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9551
SELECT DISTINCT COALESCE ( + + 82, - + 31 + - + 13 - + + 88 DIV + 5 * 10 + 64 + 92 * + 80, 50 + + + 84 + - + 69 * COALESCE ( - + 83, 32, - NULLIF ( - 0, - CAST( + + CAST( - 84 AS SIGNED ) AS DECIMAL ) * + 35 ) ) + + 27 )
----
82

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT COALESCE ( + + 82, - + 31 + - + 13 - + + 88 / + 5 * 10 + 64 + 92 * + 80, 50 + + + 84 + - + 69 * COALESCE ( - + 83, 32, - NULLIF ( - 0, - CAST ( + + CAST ( - 84 AS INTEGER ) AS REAL ) * + 35 ) ) + + 27 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT DISTINCT - COUNT( - 1 ) * + - ( - 52 ) + 89 + - 59
----
-22

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT - COUNT ( - 1 ) * + - ( - 52 ) + 89 + - 59
----
-22

query I rowsort
SELECT - 48 + 18 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT ALL + 16 + + - COUNT( * ) col2
----
15

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL + 16 + + - COUNT ( * ) col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9555
SELECT - SUM( DISTINCT 15 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9555
SELECT - SUM ( DISTINCT 15 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9556
SELECT + 35 DIV - ( + - ( SUM( - 44 ) ) ) * - 85
----
0

skipif mysql # not compatible
query I rowsort label-9556
SELECT + 35 / - ( + - ( SUM ( - 44 ) ) ) * - 85
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9557
SELECT + CAST( - ( - 26 ) AS SIGNED ) + - CAST( NULL AS SIGNED ) / - 46 AS col2, MAX( ALL + 81 )
----
NULL
81

skipif mysql # not compatible
query II rowsort label-9557
SELECT + CAST ( - ( - 26 ) AS INTEGER ) + - CAST ( NULL AS INTEGER ) / - 46 AS col2, MAX ( ALL + 81 )
----
NULL
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9558
SELECT ALL + 80 + - 94 * NULLIF ( 6, 15 / CASE + + COUNT( * ) WHEN + - 6 * - 89 - + - 93 + + - ( - 43 ) * MAX( + CAST( - CAST( 62 AS SIGNED ) AS DECIMAL ) ) * - - 81 * 22 THEN + 51 WHEN 41 + + 59 THEN NULL END * 0 ) + 34 * - 8 AS col1
----
-756

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL + 80 + - 94 * NULLIF ( 6, 15 / CASE + + COUNT ( * ) WHEN + - 6 * - 89 - + - 93 + + - ( - 43 ) * MAX ( + CAST ( - CAST ( 62 AS INTEGER ) AS REAL ) ) * - - 81 * 22 THEN + 51 WHEN 41 + + 59 THEN NULL END * 0 ) + 34 * - 8 AS col1
----
-756

query II rowsort
SELECT 29 AS col1, 91
----
29
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT DISTINCT - 53 + MIN( DISTINCT - 48 ) * 29 col2
----
-1445

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT - 53 + MIN ( DISTINCT - 48 ) * 29 col2
----
-1445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9561
SELECT CAST( - COUNT( * ) AS SIGNED ) * 10 + 30 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9561
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * 10 + 30 AS col2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9562
SELECT DISTINCT 53 DIV 30 + 89 + - 48
----
42

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT 53 / 30 + 89 + - 48
----
42

query I rowsort
SELECT ALL + ( + 1 ) col0
----
1

query I rowsort
SELECT ALL - 8 * - - 96 AS col0
----
-768

query I rowsort
SELECT + 46 * - 31 * - + 70 - + 60 AS col1
----
99760

query I rowsort
SELECT DISTINCT 92 * - - 80
----
7360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9567
SELECT CASE 84 WHEN + CAST( + - 30 AS SIGNED ) / + - 55 THEN NULL ELSE - 85 END * - 8
----
680

skipif mysql # not compatible
query I rowsort label-9567
SELECT CASE 84 WHEN + CAST ( + - 30 AS INTEGER ) / + - 55 THEN NULL ELSE - 85 END * - 8
----
680

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9568
SELECT - CAST( NULL AS DECIMAL ) * - 86 + - 24 * 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9568
SELECT - CAST ( NULL AS REAL ) * - 86 + - 24 * 4 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9569
SELECT ALL - CAST( + 57 AS SIGNED ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL - CAST ( + 57 AS INTEGER ) AS col0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9570
SELECT CAST( 92 AS SIGNED ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-9570
SELECT CAST ( 92 AS INTEGER ) AS col1
----
92

query I rowsort
SELECT - 39 + + 90 - 71
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT COUNT( * ) + 36 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-9572
SELECT COUNT ( * ) + 36 AS col2
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-9573
SELECT ALL - 67, COUNT( * ) * + + 60 * + - 14 + SUM( DISTINCT - 89 ) * + 80 AS col1
----
-67
-7960

skipif mysql # not compatible
query II rowsort label-9573
SELECT ALL - 67, COUNT ( * ) * + + 60 * + - 14 + SUM ( DISTINCT - 89 ) * + 80 AS col1
----
-67
-7960

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT COUNT( 32 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9574
SELECT COUNT ( 32 ) AS col0
----
1

query I rowsort
SELECT 47 * - 37 AS col1
----
-1739

query I rowsort
SELECT ALL 72 * - + 17
----
-1224

query I rowsort
SELECT 24 + - + 24
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9578
SELECT DISTINCT + CAST( - 11 AS SIGNED ) * + - 52 AS col1
----
572

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT + CAST ( - 11 AS INTEGER ) * + - 52 AS col1
----
572

query I rowsort
SELECT ( + - 28 ) * - 17 AS col0
----
476

query II rowsort
SELECT DISTINCT 95 AS col0, 99 AS col1
----
95
99

query I rowsort
SELECT ALL 38 * + 58
----
2204

query I rowsort
SELECT ALL + 63 + - + 5 * - 66
----
393

onlyif mysql # DIV for integer division: 
query I rowsort label-9583
SELECT DISTINCT - + 22 + + 24 + - 75 DIV - + 41
----
3

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT - + 22 + + 24 + - 75 / - + 41
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9584
SELECT DISTINCT CASE 49 WHEN + COUNT( * ) * - 58 - + 86 THEN + COUNT( * ) * 53 * + 67 / - 40 + 1 + CAST( + ( + 27 ) AS SIGNED ) - + 64 * + 88 END * COUNT( * ) + - + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT CASE 49 WHEN + COUNT ( * ) * - 58 - + 86 THEN + COUNT ( * ) * 53 * + 67 / - 40 + 1 + CAST ( + ( + 27 ) AS INTEGER ) - + 64 * + 88 END * COUNT ( * ) + - + 64 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9585
SELECT CASE + 68 WHEN - - 23 - + + CASE - - 36 WHEN + - CAST( NULL AS SIGNED ) THEN - 47 + + 9 WHEN - + COUNT( 47 ) THEN NULL ELSE + CASE - - 25 WHEN - + 79 + - 80 + - - 5 * COUNT( * ) + - CAST( NULL AS SIGNED ) * - + 72 * + 4 THEN - + ( 1 ) ELSE NULL END END THEN + NULLIF ( + 32, COUNT( DISTINCT + 69 ) ) WHEN MIN( - 47 ) + - 72 THEN NULL END * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9585
SELECT CASE + 68 WHEN - - 23 - + + CASE - - 36 WHEN + - CAST ( NULL AS INTEGER ) THEN - 47 + + 9 WHEN - + COUNT ( 47 ) THEN NULL ELSE + CASE - - 25 WHEN - + 79 + - 80 + - - 5 * COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - + 72 * + 4 THEN - + ( 1 ) ELSE NULL END END THEN + NULLIF ( + 32, COUNT ( DISTINCT + 69 ) ) WHEN MIN ( - 47 ) + - 72 THEN NULL END * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9586
SELECT DISTINCT 71 + + + ( - COALESCE ( - SUM( DISTINCT 57 ), + COUNT( DISTINCT - 5 ), - + COUNT( * ) + - 92 ) ) + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * 43 / - - 23 + + 25 * - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT 71 + + + ( - COALESCE ( - SUM ( DISTINCT 57 ), + COUNT ( DISTINCT - 5 ), - + COUNT ( * ) + - 92 ) ) + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * 43 / - - 23 + + 25 * - 85 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9587
SELECT 44 - + 23 + + COUNT( * ) - + - COALESCE ( + 92, - - 20 + 58 - + + 84, 13 DIV + 23 ) col2
----
114

skipif mysql # not compatible
query I rowsort label-9587
SELECT 44 - + 23 + + COUNT ( * ) - + - COALESCE ( + 92, - - 20 + 58 - + + 84, 13 / + 23 ) col2
----
114

query I rowsort
SELECT 50 * - + ( + - 39 ) col2
----
1950

query II rowsort
SELECT 89 * 3 col2, 69
----
267
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9590
SELECT ALL + 11 DIV - COUNT( 52 )
----
-11

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL + 11 / - COUNT ( 52 )
----
-11

query I rowsort
SELECT 98 * + 95 AS col1
----
9310

query II rowsort
SELECT DISTINCT 72, 79 col1
----
72
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9593
SELECT ALL 70 + - 11 + - + 13 DIV COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL 70 + - 11 + - + 13 / COUNT ( * )
----
46

query II rowsort
SELECT - 79 AS col2, + 81
----
-79
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT 88 - - COUNT( * ) * 23 * 88
----
2112

skipif mysql # not compatible
query I rowsort label-9595
SELECT 88 - - COUNT ( * ) * 23 * 88
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT ALL - 40 * + - 18 * - + COUNT( * )
----
-720

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL - 40 * + - 18 * - + COUNT ( * )
----
-720

query II rowsort
SELECT - 87 AS col2, 29
----
-87
29

query I rowsort
SELECT ALL - 22 - + COALESCE ( - - 43, + - 18 )
----
-65

query I rowsort
SELECT 13 * 81
----
1053

query II rowsort
SELECT 6, + 6 AS col1
----
6
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9601
SELECT 40 DIV 53 * 8 + - + 73 + - - 77 DIV - 88 col2
----
-73

skipif mysql # not compatible
query I rowsort label-9601
SELECT 40 / 53 * 8 + - + 73 + - - 77 / - 88 col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9602
SELECT ALL - CAST( 71 AS SIGNED ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL - CAST ( 71 AS INTEGER ) AS col2
----
-71

query I rowsort
SELECT ALL + 22 * - - 56 AS col0
----
1232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9604
SELECT ALL - - CAST( 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL - - CAST ( 8 AS INTEGER )
----
8

query I rowsort
SELECT DISTINCT + ( + - 58 ) - + 95 AS col0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT + + MAX( ALL - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-9606
SELECT + + MAX ( ALL - 72 )
----
-72

query II rowsort
SELECT 92 + + 44, - 52 + 27 AS col2
----
136
-25

query II rowsort
SELECT ALL - - 11 AS col0, 92 * - 53 AS col1
----
11
-4876

onlyif mysql # DIV for integer division: 
query I rowsort label-9609
SELECT ALL + 82 DIV - ( - 17 )
----
4

skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL + 82 / - ( - 17 )
----
4

query I rowsort
SELECT + 94 * - 14 AS col2
----
-1316

onlyif mysql # aggregate syntax: 
query II rowsort label-9611
SELECT + COUNT( * ) AS col0, 77 AS col2
----
1
77

skipif mysql # not compatible
query II rowsort label-9611
SELECT + COUNT ( * ) AS col0, 77 AS col2
----
1
77

query I rowsort
SELECT ALL - NULLIF ( - 42, - 49 ) col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9613
SELECT + 12 * ( 33 ) + - 54 + - 97 DIV 91 + + 19 DIV 27 AS col1
----
341

skipif mysql # not compatible
query I rowsort label-9613
SELECT + 12 * ( 33 ) + - 54 + - 97 / 91 + + 19 / 27 AS col1
----
341

query II rowsort
SELECT DISTINCT - 44, 79 AS col1
----
-44
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9615
SELECT 3 + - 50 col2, - SUM( ALL + + ( - 61 ) )
----
-47
61

skipif mysql # not compatible
query II rowsort label-9615
SELECT 3 + - 50 col2, - SUM ( ALL + + ( - 61 ) )
----
-47
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9616
SELECT ALL AVG ( CAST( NULL AS SIGNED ) ) * - - COUNT( * ) * ( 18 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL AVG ( CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) * ( 18 ) AS col1
----
NULL

query I rowsort
SELECT ALL 61 * - - 36 - + 50 + - 52 * + 50
----
-454

query II rowsort
SELECT DISTINCT - + 5 AS col2, CASE - 80 WHEN + AVG ( + 86 ) THEN + - 17 END * - 10 / + + 57
----
-5
NULL

query II rowsort
SELECT + + 95, 54 * - 86 AS col0
----
95
-4644

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT - COUNT( * ) * - ( + 93 ) - 87
----
6

skipif mysql # not compatible
query I rowsort label-9620
SELECT - COUNT ( * ) * - ( + 93 ) - 87
----
6

query I rowsort
SELECT ALL - + 53 * + 25 AS col2
----
-1325

query I rowsort
SELECT DISTINCT 45 + + 35
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT ALL + COUNT( * ) + + COALESCE ( 69, - 98 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL + COUNT ( * ) + + COALESCE ( 69, - 98 ) AS col1
----
70

query II rowsort
SELECT + 20 + 17, + 68 - - 31 * + 11 AS col0
----
37
409

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT ALL 30 + - 69 + 98 * COUNT( * ) - + 94
----
-35

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL 30 + - 69 + 98 * COUNT ( * ) - + 94
----
-35

query I rowsort
SELECT - 2 * 44 + + - 73 AS col0
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT 53 + 88 - COUNT( * )
----
140

skipif mysql # not compatible
query I rowsort label-9627
SELECT 53 + 88 - COUNT ( * )
----
140

query I rowsort
SELECT DISTINCT 83 * + 20 AS col1
----
1660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9629
SELECT DISTINCT 53 + - CAST( + COUNT( * ) AS SIGNED ) DIV - + 10 col1
----
53

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT 53 + - CAST ( + COUNT ( * ) AS INTEGER ) / - + 10 col1
----
53

query II rowsort
SELECT DISTINCT 47 * 15 * 22 AS col0, + 56 col2
----
15510
56

query I rowsort
SELECT + ( - - NULLIF ( 32, 25 ) ) + + - 27 AS col1
----
5

query I rowsort
SELECT DISTINCT 23 * - - 0 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9633
SELECT DISTINCT 82 * - CASE 10 WHEN 21 THEN - 44 END AS col2, CAST( - 8 AS SIGNED )
----
NULL
-8

skipif mysql # not compatible
query II rowsort label-9633
SELECT DISTINCT 82 * - CASE 10 WHEN 21 THEN - 44 END AS col2, CAST ( - 8 AS INTEGER )
----
NULL
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT ALL 40 - - 17 + + 98 * + NULLIF ( 69, + 36 * + MIN( ALL 40 ) + + + 62 / COUNT( * ) ) * + - 52 * + - 15 * - 82 + + COALESCE ( COUNT( * ), + 44 + 88 + - MIN( + + 17 ) * + + COALESCE ( + 43, 34 ) ) * + 38 col2
----
-432497425

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL 40 - - 17 + + 98 * + NULLIF ( 69, + 36 * + MIN ( ALL 40 ) + + + 62 / COUNT ( * ) ) * + - 52 * + - 15 * - 82 + + COALESCE ( COUNT ( * ), + 44 + 88 + - MIN ( + + 17 ) * + + COALESCE ( + 43, 34 ) ) * + 38 col2
----
-432497425

onlyif mysql # DIV for integer division: 
query I rowsort label-9635
SELECT + ( - 47 ) DIV 18
----
-2

skipif mysql # not compatible
query I rowsort label-9635
SELECT + ( - 47 ) / 18
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9636
SELECT - 28 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-9636
SELECT - 28 / 68
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9637
SELECT + CAST( NULL AS SIGNED ) + - + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9637
SELECT + CAST ( NULL AS INTEGER ) + - + 96
----
NULL

query I rowsort
SELECT - 5 + 21
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9639
SELECT - COALESCE ( + - CAST( 57 AS SIGNED ), COUNT( * ), - 13 ) col0
----
57

skipif mysql # not compatible
query I rowsort label-9639
SELECT - COALESCE ( + - CAST ( 57 AS INTEGER ), COUNT ( * ), - 13 ) col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT ALL + CASE + 60 WHEN 0 THEN 12 ELSE + 5 + - 1 END * + - MIN( DISTINCT + 90 ) AS col0
----
-360

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL + CASE + 60 WHEN 0 THEN 12 ELSE + 5 + - 1 END * + - MIN ( DISTINCT + 90 ) AS col0
----
-360

query I rowsort
SELECT - + 8 * + 55 AS col2
----
-440

query I rowsort
SELECT + ( + - 24 ) AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9643
SELECT DISTINCT 0 * - + COUNT( * ) + CAST( + 66 AS SIGNED ) - + 80 * - COUNT( * )
----
146

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT 0 * - + COUNT ( * ) + CAST ( + 66 AS INTEGER ) - + 80 * - COUNT ( * )
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-9644
SELECT ALL + + 6 * - 4 AS col2, - COUNT( * ) AS col0
----
-24
-1

skipif mysql # not compatible
query II rowsort label-9644
SELECT ALL + + 6 * - 4 AS col2, - COUNT ( * ) AS col0
----
-24
-1

query I rowsort
SELECT - 48 * 93 AS col0
----
-4464

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT DISTINCT + MAX( ALL + 23 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT + MAX ( ALL + 23 ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT + SUM( + 34 ) col1
----
34

skipif mysql # not compatible
query I rowsort label-9647
SELECT + SUM ( + 34 ) col1
----
34

query I rowsort
SELECT - 71 + + - 26 * - 65 AS col0
----
1619

onlyif mysql # DIV for integer division: 
query I rowsort label-9649
SELECT - 72 DIV 9 + + ( + ( + - 19 ) ) * + 51 AS col2
----
-977

skipif mysql # not compatible
query I rowsort label-9649
SELECT - 72 / 9 + + ( + ( + - 19 ) ) * + 51 AS col2
----
-977

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT - - COUNT( DISTINCT 31 ) + - 98 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-9650
SELECT - - COUNT ( DISTINCT 31 ) + - 98 AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT DISTINCT - MAX( ALL - 4 ) * - 0 * - - CASE - 48 WHEN - + 57 THEN + 55 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT - MAX ( ALL - 4 ) * - 0 * - - CASE - 48 WHEN - + 57 THEN + 55 END + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + - 80 * - 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9653
SELECT ALL + 24 * + + CAST( 94 AS SIGNED ) + - + 16 * + 72
----
1104

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL + 24 * + + CAST ( 94 AS INTEGER ) + - + 16 * + 72
----
1104

onlyif mysql # DIV for integer division: 
query I rowsort label-9654
SELECT - 17 DIV - 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9654
SELECT - 17 / - 86 AS col2
----
0

query I rowsort
SELECT ALL + 44 * - 52 * + + 13 AS col1
----
-29744

query II rowsort
SELECT + 54 AS col2, 57 - + + 46 col1
----
54
11

query I rowsort
SELECT - 6 * - 68 AS col0
----
408

query II rowsort
SELECT ALL NULLIF ( 44, - + 92 * - 42 * - + 51 / + 65 ), 1 + 14 * - 98 + 99 - 53 * - + 29 AS col2
----
44
265

query I rowsort
SELECT ALL + 48 * + 11 AS col0
----
528

query I rowsort
SELECT DISTINCT + 39 * - 1 * + NULLIF ( - 35, - + 80 )
----
1365

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT MAX( DISTINCT + 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-9661
SELECT MAX ( DISTINCT + 25 ) AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9662
SELECT - CASE - 53 WHEN - 87 * - 55 THEN - 47 + + - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT - CASE - 53 WHEN - 87 * - 55 THEN - 47 + + - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9663
SELECT - COALESCE ( 89, - - COUNT( * ) + - 38, + + 29 ) - - 19 AS col2, + NULLIF ( - ( - 78 ), 77 + 1 ) AS col0
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-9663
SELECT - COALESCE ( 89, - - COUNT ( * ) + - 38, + + 29 ) - - 19 AS col2, + NULLIF ( - ( - 78 ), 77 + 1 ) AS col0
----
-70
NULL

query I rowsort
SELECT + 52 * 89 AS col2
----
4628

query I rowsort
SELECT - 23 - 96 AS col2
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9666
SELECT + CAST( NULL AS SIGNED ) * + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9666
SELECT + CAST ( NULL AS INTEGER ) * + 10 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9667
SELECT ALL 39 AS col1, + 21 * - COUNT( * ) AS col0
----
39
-21

skipif mysql # not compatible
query II rowsort label-9667
SELECT ALL 39 AS col1, + 21 * - COUNT ( * ) AS col0
----
39
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT + 69 - 9 - - + 73 * + - COUNT( - 46 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-9668
SELECT + 69 - 9 - - + 73 * + - COUNT ( - 46 ) AS col2
----
-13

query I rowsort
SELECT + 86 * 39
----
3354

query I rowsort
SELECT ALL 93 * + 39 + 32
----
3659

query I rowsort
SELECT + + ( - - 12 ) * - 74 * - - CASE 26 WHEN + 84 THEN CASE - 69 WHEN 60 * - 33 + - 63 + - 56 * - 98 + + + 0 + - 25 + + ( - 3 ) * + 90 * + 29 THEN NULL ELSE + 95 + ( - 54 ) END * + - 33 WHEN - 15 + 34 * - 79 THEN 73 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 76 + - 9 + + - 88 col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9673
SELECT ALL COALESCE ( - CAST( NULL AS SIGNED ), + 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL COALESCE ( - CAST ( NULL AS INTEGER ), + 6 ) AS col2
----
6

query II rowsort
SELECT 64, - 56 * + 78 AS col1
----
64
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT - ( + COUNT( * ) ) - - + 2 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9675
SELECT - ( + COUNT ( * ) ) - - + 2 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9676
SELECT ALL - 6 DIV - 76 + + + 74
----
74

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL - 6 / - 76 + + + 74
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9677
SELECT ALL - MAX( - 18 ) DIV 6 + + 70 - - - 48 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL - MAX ( - 18 ) / 6 + + 70 - - - 48 AS col2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9678
SELECT ALL + - COUNT( * ) DIV - 94 + 31 + - 44 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL + - COUNT ( * ) / - 94 + 31 + - 44 AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9679
SELECT DISTINCT SUM( - CAST( + - ( + 43 ) AS SIGNED ) ) / + - 96 + 54 + - 38 - + + 71 + - CASE 73 WHEN + COALESCE ( + 95, + + ( - 85 ) * + - 78 - - + 12 - 96, MIN( 21 ) ) THEN 94 * 65 * COUNT( * ) + 67 ELSE NULL END * 88 + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT SUM ( - CAST ( + - ( + 43 ) AS INTEGER ) ) / + - 96 + 54 + - 38 - + + 71 + - CASE 73 WHEN + COALESCE ( + 95, + + ( - 85 ) * + - 78 - - + 12 - 96, MIN ( 21 ) ) THEN 94 * 65 * COUNT ( * ) + 67 ELSE NULL END * 88 + 7
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9680
SELECT DISTINCT - 13 DIV - 67 + + 74 + - - 24 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT - 13 / - 67 + + 74 + - - 24 AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9681
SELECT ALL + 77 DIV + NULLIF ( - + 35, 3 + + NULLIF ( 20, + 16 ) ) + 33 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL + 77 / + NULLIF ( - + 35, 3 + + NULLIF ( 20, + 16 ) ) + 33 AS col2
----
31

query I rowsort
SELECT ALL + - ( + + 18 ) * + + 73 * + 18 + + 69
----
-23583

query I rowsort
SELECT - CASE + NULLIF ( + 94, + 42 ) WHEN - - 91 THEN + + 35 ELSE NULL END * - + 2 * + 4 + - 82
----
NULL

query II rowsort
SELECT 20, 62 AS col2
----
20
62

query II rowsort
SELECT + 19, - 30 col2
----
19
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9686
SELECT + + 9 + + 20 - - CAST( NULL AS SIGNED ) / + + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9686
SELECT + + 9 + + 20 - - CAST ( NULL AS INTEGER ) / + + 71 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9687
SELECT - - ( + 3 ) * - 50 / - 49 + + CAST( NULL AS DECIMAL ) + - - 84 + + - 30 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9687
SELECT - - ( + 3 ) * - 50 / - 49 + + CAST ( NULL AS REAL ) + - - 84 + + - 30 col0
----
NULL

query I rowsort
SELECT - 65 * + ( - + 51 ) AS col0
----
3315

query II rowsort
SELECT ( - 19 ) * 95 + + 31 AS col1, 44 AS col2
----
-1774
44

query I rowsort
SELECT ALL + 53 - 54 AS col0
----
-1

query I rowsort
SELECT 62 * 54 AS col0
----
3348

query II rowsort
SELECT 69 + - - 7 AS col0, - 15
----
76
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9693
SELECT 4 * - 32 DIV COALESCE ( - 2, - 51, 12 )
----
64

skipif mysql # not compatible
query I rowsort label-9693
SELECT 4 * - 32 / COALESCE ( - 2, - 51, 12 )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9694
SELECT + 56 * + + COUNT( * ) DIV 66 * + - 87 + - 82 - + 54 AS col1
----
-136

skipif mysql # not compatible
query I rowsort label-9694
SELECT + 56 * + + COUNT ( * ) / 66 * + - 87 + - 82 - + 54 AS col1
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT COUNT( * ) - - 17 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-9695
SELECT COUNT ( * ) - - 17 AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9696
SELECT ALL - CASE + 45 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + COUNT( * ) THEN NULL WHEN - - 50 / + 32 + - 61 + + - 93 * - + 99 + - 76 THEN + 67 ELSE NULL END * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL - CASE + 45 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN - - 50 / + 32 + - 61 + + - 93 * - + 99 + - 76 THEN + 67 ELSE NULL END * + 9
----
NULL

query I rowsort
SELECT 88 + - - 12
----
100

query I rowsort
SELECT 90 * + 2 + - ( 5 ) AS col0
----
175

query I rowsort
SELECT ALL + ( 31 ) * 7 AS col0
----
217

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9700
SELECT ALL - 63 * + - COALESCE ( CASE - 23 WHEN + 77 * - SUM( - 21 ) - 61 THEN - 63 * - 77 - + 79 + + 87 END, + 12, 40 DIV 99 * - 65 )
----
756

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL - 63 * + - COALESCE ( CASE - 23 WHEN + 77 * - SUM ( - 21 ) - 61 THEN - 63 * - 77 - + 79 + + 87 END, + 12, 40 / 99 * - 65 )
----
756

query I rowsort
SELECT 13 + + 73 * + 61 col0
----
4466

query I rowsort
SELECT NULLIF ( - - ( + + 97 ), 67 ) + + - 33
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT ALL + MAX( + COALESCE ( - 32, 14 ) ) * - - 53 AS col2
----
-1696

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL + MAX ( + COALESCE ( - 32, 14 ) ) * - - 53 AS col2
----
-1696

query I rowsort
SELECT 32 + - 22 + + 28
----
38

query I rowsort
SELECT ALL - 27 + 59 * - 5 + - - 43 - - 53 AS col0
----
-226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9706
SELECT CAST( NULL AS SIGNED ) + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9706
SELECT CAST ( NULL AS INTEGER ) + 97 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9707
SELECT - 39 * + 62 AS col2, 93 DIV + 35 AS col1
----
-2418
2

skipif mysql # not compatible
query II rowsort label-9707
SELECT - 39 * + 62 AS col2, 93 / + 35 AS col1
----
-2418
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT ALL 23 + - + 53 - - COUNT( * ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL 23 + - + 53 - - COUNT ( * ) AS col0
----
-29

query I rowsort
SELECT ALL + 70 + + - 54 - - 76
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9710
SELECT DISTINCT CASE - CAST( NULL AS SIGNED ) WHEN 92 * CAST( NULL AS SIGNED ) + + - 98 THEN + NULLIF ( - 93, - 56 * - - 59 ) * - 12 + SUM( - 56 ) + + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT CASE - CAST ( NULL AS INTEGER ) WHEN 92 * CAST ( NULL AS INTEGER ) + + - 98 THEN + NULLIF ( - 93, - 56 * - - 59 ) * - 12 + SUM ( - 56 ) + + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9711
SELECT DISTINCT + COALESCE ( - 0, - 50 * 87 + CAST( CAST( 64 AS SIGNED ) AS SIGNED ) - + 25 ) + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT + COALESCE ( - 0, - 50 * 87 + CAST ( CAST ( 64 AS INTEGER ) AS INTEGER ) - + 25 ) + + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT DISTINCT - 37 * + 88 * + 37 * + 58 * 7 AS col0
----
-48911632

query I rowsort
SELECT ALL 94 * + ( 51 ) + - 66 * + 34
----
2550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9714
SELECT - CASE - + 74 WHEN 14 * 14 + - 61 + - 69 THEN NULL ELSE 71 * 66 DIV - MAX( - + 44 ) END
----
-106

skipif mysql # not compatible
query I rowsort label-9714
SELECT - CASE - + 74 WHEN 14 * 14 + - 61 + - 69 THEN NULL ELSE 71 * 66 / - MAX ( - + 44 ) END
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9715
SELECT CAST( 7 AS SIGNED ) * - 11 * + + 85 + - 41 + - 82 * + 98 AS col2
----
-14622

skipif mysql # not compatible
query I rowsort label-9715
SELECT CAST ( 7 AS INTEGER ) * - 11 * + + 85 + - 41 + - 82 * + 98 AS col2
----
-14622

onlyif mysql # DIV for integer division: 
query II rowsort label-9716
SELECT + 55 + + 44 + 92 + + + 39 - + 97 AS col0, + 11 * 46 + + 51 - 55 DIV + ( 93 )
----
133
557

skipif mysql # not compatible
query II rowsort label-9716
SELECT + 55 + + 44 + 92 + + + 39 - + 97 AS col0, + 11 * 46 + + 51 - 55 / + ( 93 )
----
133
557

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT 16 * - COUNT( * ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-9717
SELECT 16 * - COUNT ( * ) AS col2
----
-16

query I rowsort
SELECT + NULLIF ( 13, 92 )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-9719
SELECT ALL ( + 39 ) - - ( 74 ) col0, COUNT( * ) + - 56 AS col1
----
113
-55

skipif mysql # not compatible
query II rowsort label-9719
SELECT ALL ( + 39 ) - - ( 74 ) col0, COUNT ( * ) + - 56 AS col1
----
113
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9720
SELECT DISTINCT - SUM( + 6 ), CAST( NULL AS SIGNED ) + - 5 AS col0
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-9720
SELECT DISTINCT - SUM ( + 6 ), CAST ( NULL AS INTEGER ) + - 5 AS col0
----
-6
NULL

query II rowsort
SELECT - 22 * + 67, 59 * - 57 * + + 57 AS col0
----
-1474
-191691

query I rowsort
SELECT 95 * 95 + - 74 - 25 col2
----
8926

onlyif mysql # DIV for integer division: 
query I rowsort label-9723
SELECT ALL 96 DIV + 68 + + 89
----
90

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL 96 / + 68 + + 89
----
90

query I rowsort
SELECT DISTINCT 0 - + 60 AS col2
----
-60

query I rowsort
SELECT 7 * - 69
----
-483

query I rowsort
SELECT ALL 18 * + + 47 col0
----
846

query I rowsort
SELECT 14 + + 91 - - 5 + - 84 AS col2
----
26

query I rowsort
SELECT 97 * - + 83
----
-8051

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT ALL - COUNT( * ) + 73 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL - COUNT ( * ) + 73 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT 23 * - 8 * - SUM( 56 ) AS col2
----
10304

skipif mysql # not compatible
query I rowsort label-9730
SELECT 23 * - 8 * - SUM ( 56 ) AS col2
----
10304

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9731
SELECT ALL 95 AS col0, ( + 49 ) + + CAST( NULL AS SIGNED )
----
95
NULL

skipif mysql # not compatible
query II rowsort label-9731
SELECT ALL 95 AS col0, ( + 49 ) + + CAST ( NULL AS INTEGER )
----
95
NULL

query I rowsort
SELECT 13 + - + 80 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT ALL + 0 + + + COUNT( * ) + - 66 * + MAX( ALL - + ( + 34 ) ) + + + 86 + ( 30 ) AS col1
----
2361

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL + 0 + + + COUNT ( * ) + - 66 * + MAX ( ALL - + ( + 34 ) ) + + + 86 + ( 30 ) AS col1
----
2361

query I rowsort
SELECT DISTINCT - - 20 + + 31
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT DISTINCT + - CASE 83 WHEN - 16 THEN - 0 WHEN - - 98 + + - 62 THEN ( - - 26 ) END + 98 * - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT + - CASE 83 WHEN - 16 THEN - 0 WHEN - - 98 + + - 62 THEN ( - - 26 ) END + 98 * - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9736
SELECT DISTINCT 38 + - CAST( NULL AS SIGNED ) - 82 * + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT 38 + - CAST ( NULL AS INTEGER ) - 82 * + 29 AS col1
----
NULL

query I rowsort
SELECT 62 + 63 + + 98 col1
----
223

query I rowsort
SELECT - NULLIF ( - 46, - - 4 * + 78 + + + AVG ( + 22 ) )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9739
SELECT COALESCE ( + 8, + - 34 + + CAST( + ( + 24 ) AS SIGNED ), - CASE - 53 WHEN 64 THEN NULL WHEN - 60 - + 12 THEN + 78 END ) + 86
----
94

skipif mysql # not compatible
query I rowsort label-9739
SELECT COALESCE ( + 8, + - 34 + + CAST ( + ( + 24 ) AS INTEGER ), - CASE - 53 WHEN 64 THEN NULL WHEN - 60 - + 12 THEN + 78 END ) + 86
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9740
SELECT DISTINCT - CASE + COUNT( * ) WHEN - + 44 THEN NULL WHEN + + 61 THEN 97 * - + 57 * - NULLIF ( + 89, + + NULLIF ( - 71, + 78 ) + - + COUNT( * ) * + 94 ) * - - 22 + 74 / COUNT( * ) + + 95 END * + ( - + 67 ) - - 37 AS col2, 45 AS col2
----
NULL
45

skipif mysql # not compatible
query II rowsort label-9740
SELECT DISTINCT - CASE + COUNT ( * ) WHEN - + 44 THEN NULL WHEN + + 61 THEN 97 * - + 57 * - NULLIF ( + 89, + + NULLIF ( - 71, + 78 ) + - + COUNT ( * ) * + 94 ) * - - 22 + 74 / COUNT ( * ) + + 95 END * + ( - + 67 ) - - 37 AS col2, 45 AS col2
----
NULL
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT ALL COUNT( * ) * - - 95 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL COUNT ( * ) * - - 95 AS col1
----
95

query I rowsort
SELECT DISTINCT - 65 * + - 61
----
3965

onlyif mysql # DIV for integer division: 
query I rowsort label-9743
SELECT DISTINCT - 54 DIV + - 94 * + 15 * + 19
----
0

skipif mysql # not compatible
query I rowsort label-9743
SELECT DISTINCT - 54 / + - 94 * + 15 * + 19
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9744
SELECT ALL + ( ( + CAST( - COUNT( * ) AS SIGNED ) ) ) * - 56
----
56

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL + ( ( + CAST ( - COUNT ( * ) AS INTEGER ) ) ) * - 56
----
56

query I rowsort
SELECT ALL - 89 * + ( + 51 ) col0
----
-4539

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT + 12 * + - 72 * NULLIF ( + MIN( + - 77 ), - - COALESCE ( 72, 30 ) )
----
66528

skipif mysql # not compatible
query I rowsort label-9746
SELECT + 12 * + - 72 * NULLIF ( + MIN ( + - 77 ), - - COALESCE ( 72, 30 ) )
----
66528

query II rowsort
SELECT ALL + 43, + 33 AS col0
----
43
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9748
SELECT + 10 DIV + COUNT( DISTINCT + + 1 ) + + 19 + - - 6 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9748
SELECT + 10 / + COUNT ( DISTINCT + + 1 ) + + 19 + - - 6 AS col1
----
35

query I rowsort
SELECT + CASE - + 20 WHEN 75 + - 78 THEN + 64 WHEN - 54 THEN + - ( 89 ) / - 57 + - 64 * - - 69 + - 31 END
----
NULL

query I rowsort
SELECT + 88 * + 16 * + 8 AS col1
----
11264

query I rowsort
SELECT + 0 + + + 68
----
68

query I rowsort
SELECT + NULLIF ( + - 65, + + 0 ) col2
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9753
SELECT ALL MAX( + 72 ) DIV - 91 - + 91 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL MAX ( + 72 ) / - 91 - + 91 AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9754
SELECT ALL NULLIF ( - COUNT( * ), COALESCE ( 20, + 41 ) ) * + 7 + + 29 * - CAST( ( COUNT( * ) ) AS SIGNED ) + 50 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL NULLIF ( - COUNT ( * ), COALESCE ( 20, + 41 ) ) * + 7 + + 29 * - CAST ( ( COUNT ( * ) ) AS INTEGER ) + 50 AS col1
----
14

query I rowsort
SELECT + 94 + - 71 * - 23
----
1727

query I rowsort
SELECT + 52 * 73 AS col0
----
3796

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT ALL + MIN( ALL 36 ) * + - 78 + + - CASE WHEN NOT ( 75 IS NULL ) THEN NULL ELSE COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL + MIN ( ALL 36 ) * + - 78 + + - CASE WHEN NOT ( 75 IS NULL ) THEN NULL ELSE COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9758
SELECT 27 * + - 24 + - 4 + - SUM( ALL ( + 32 ) ), CASE 94 WHEN COALESCE ( - 98, + + 93 ) THEN NULLIF ( COUNT( * ), + 97 ) END col2
----
-684
NULL

skipif mysql # not compatible
query II rowsort label-9758
SELECT 27 * + - 24 + - 4 + - SUM ( ALL ( + 32 ) ), CASE 94 WHEN COALESCE ( - 98, + + 93 ) THEN NULLIF ( COUNT ( * ), + 97 ) END col2
----
-684
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9759
SELECT + CASE + COUNT( * ) WHEN + 40 THEN NULL ELSE - 66 END, - 39 AS col1
----
-66
-39

skipif mysql # not compatible
query II rowsort label-9759
SELECT + CASE + COUNT ( * ) WHEN + 40 THEN NULL ELSE - 66 END, - 39 AS col1
----
-66
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT MAX( + - 86 ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-9760
SELECT MAX ( + - 86 ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT ALL ( + + COUNT( * ) ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL ( + + COUNT ( * ) ) + COUNT ( * ) AS col0
----
2

query I rowsort
SELECT - 9 * - 83 + - + 38
----
709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9763
SELECT - CASE - - 7 WHEN - 16 THEN CAST( NULL AS DECIMAL ) WHEN - COUNT( * ) THEN COUNT( * ) * - 32 + - ( - 26 ) + + COUNT( * ) * - - CAST( + - 83 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9763
SELECT - CASE - - 7 WHEN - 16 THEN CAST ( NULL AS REAL ) WHEN - COUNT ( * ) THEN COUNT ( * ) * - 32 + - ( - 26 ) + + COUNT ( * ) * - - CAST ( + - 83 AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT + 86 * 23
----
1978

query I rowsort
SELECT CASE 80 WHEN + 3 THEN 54 END * - ( 44 ) - - 94 + 98 * - 29
----
NULL

query I rowsort
SELECT ALL + 92 * 6
----
552

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT ALL COUNT( * ) + - 63 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL COUNT ( * ) + - 63 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-9768
SELECT ALL COUNT( * ) * + 16 AS col1, - 27 AS col1
----
16
-27

skipif mysql # not compatible
query II rowsort label-9768
SELECT ALL COUNT ( * ) * + 16 AS col1, - 27 AS col1
----
16
-27

query I rowsort
SELECT ALL + 54 + - 21 col1
----
33

query I rowsort
SELECT - + ( - ( - - 2 ) ) + 60
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT - - 74 + - + 51 + - + COUNT( DISTINCT + 96 ) + + COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9771
SELECT - - 74 + - + 51 + - + COUNT ( DISTINCT + 96 ) + + COUNT ( * ) AS col0
----
23

query II rowsort
SELECT - + 61, 53 AS col2
----
-61
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9773
SELECT - 15 * + - CASE - - 32 WHEN + 74 - + 5 THEN 33 WHEN + 44 - 56 / - + COUNT( * ) THEN NULL ELSE NULL END * + NULLIF ( - COUNT( * ), - 96 * 63 ) * 29 + CASE - CAST( NULL AS SIGNED ) WHEN + + 63 / - 30 + 22 - + 82 / - NULLIF ( + 38, 60 + - - MIN( + 18 ) * 99 ) * + 68 THEN 6 WHEN MIN( - 13 ) + ( 31 ) THEN + 59 WHEN - 80 * 28 THEN 71 / 36 + - 67 * + 63 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9773
SELECT - 15 * + - CASE - - 32 WHEN + 74 - + 5 THEN 33 WHEN + 44 - 56 / - + COUNT ( * ) THEN NULL ELSE NULL END * + NULLIF ( - COUNT ( * ), - 96 * 63 ) * 29 + CASE - CAST ( NULL AS INTEGER ) WHEN + + 63 / - 30 + 22 - + 82 / - NULLIF ( + 38, 60 + - - MIN ( + 18 ) * 99 ) * + 68 THEN 6 WHEN MIN ( - 13 ) + ( 31 ) THEN + 59 WHEN - 80 * 28 THEN 71 / 36 + - 67 * + 63 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9774
SELECT ALL + + ( 64 ) DIV - 84 * - - 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL + + ( 64 ) / - 84 * - - 24 AS col0
----
0

query I rowsort
SELECT + 59 * - 33 * - 32 * - 59 * - 61
----
224232096

query II rowsort
SELECT - 37 AS col2, + 27 * - 84
----
-37
-2268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9777
SELECT - 68 + + CAST( - + COUNT( * ) AS SIGNED ) * - COUNT( * ) + 70 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9777
SELECT - 68 + + CAST ( - + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) + 70 AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9778
SELECT ALL - 16 DIV + - 71 * + - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL - 16 / + - 71 * + - 89 AS col0
----
0

query II rowsort
SELECT DISTINCT - 45 AS col1, + 15 AS col0
----
-45
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT - + COUNT( * ) * - + NULLIF ( - 10, - COUNT( * ) ) + - 70
----
-80

skipif mysql # not compatible
query I rowsort label-9780
SELECT - + COUNT ( * ) * - + NULLIF ( - 10, - COUNT ( * ) ) + - 70
----
-80

query I rowsort
SELECT DISTINCT + + ( + - 54 ) * + 56
----
-3024

query II rowsort
SELECT DISTINCT 99, 48 AS col0
----
99
48

query I rowsort
SELECT ALL + 66 * + - 45 * - 45
----
133650

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9784
SELECT ALL - + CAST( NULL AS SIGNED ) * + - 66 col0, 95 * + 26 + + - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9784
SELECT ALL - + CAST ( NULL AS INTEGER ) * + - 66 col0, 95 * + 26 + + - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9785
SELECT + 83 DIV - SUM( + + 22 ) + + COUNT( - + 77 ) * ( + 47 ) DIV 57 + - - MAX( DISTINCT - 63 ) + + - CAST( + 76 AS SIGNED ) * + NULLIF ( - 90, 37 ) * - 85 AS col0
----
-581466

skipif mysql # not compatible
query I rowsort label-9785
SELECT + 83 / - SUM ( + + 22 ) + + COUNT ( - + 77 ) * ( + 47 ) / 57 + - - MAX ( DISTINCT - 63 ) + + - CAST ( + 76 AS INTEGER ) * + NULLIF ( - 90, 37 ) * - 85 AS col0
----
-581466

onlyif mysql # aggregate syntax: 
query II rowsort label-9786
SELECT ALL + - 1 col0, 70 + + - SUM( ALL - 30 ) AS col2
----
-1
100

skipif mysql # not compatible
query II rowsort label-9786
SELECT ALL + - 1 col0, 70 + + - SUM ( ALL - 30 ) AS col2
----
-1
100

query II rowsort
SELECT - 16, + 44 AS col0
----
-16
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9788
SELECT DISTINCT + COALESCE ( 97, - 87 DIV + AVG ( + 69 ) ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT + COALESCE ( 97, - 87 / + AVG ( + 69 ) ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT + CASE - 41 WHEN - 14 THEN NULL ELSE + + MAX( + 72 ) END
----
72

skipif mysql # not compatible
query I rowsort label-9789
SELECT + CASE - 41 WHEN - 14 THEN NULL ELSE + + MAX ( + 72 ) END
----
72

query I rowsort
SELECT ( - + 25 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-9791
SELECT - 70 * + - COUNT( * ), + ( 65 ) AS col2
----
70
65

skipif mysql # not compatible
query II rowsort label-9791
SELECT - 70 * + - COUNT ( * ), + ( 65 ) AS col2
----
70
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9792
SELECT ALL COALESCE ( - 46, + - COUNT( * ), - + 31 ) * + 26 + - CASE + 0 WHEN CAST( - - 51 AS SIGNED ) THEN - + 57 WHEN + - 43 THEN NULL ELSE + 89 END, + 21 AS col1
----
-1285
21

skipif mysql # not compatible
query II rowsort label-9792
SELECT ALL COALESCE ( - 46, + - COUNT ( * ), - + 31 ) * + 26 + - CASE + 0 WHEN CAST ( - - 51 AS INTEGER ) THEN - + 57 WHEN + - 43 THEN NULL ELSE + 89 END, + 21 AS col1
----
-1285
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT + NULLIF ( + COUNT( * ), 31 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9793
SELECT + NULLIF ( + COUNT ( * ), 31 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9794
SELECT + 23 DIV - 53 AS col0, ( 14 )
----
0
14

skipif mysql # not compatible
query II rowsort label-9794
SELECT + 23 / - 53 AS col0, ( 14 )
----
0
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT - 34 * - + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-9795
SELECT - 34 * - + COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-9796
SELECT + ( + COUNT( * ) ) AS col1, - 18 AS col0
----
1
-18

skipif mysql # not compatible
query II rowsort label-9796
SELECT + ( + COUNT ( * ) ) AS col1, - 18 AS col0
----
1
-18

query I rowsort
SELECT NULLIF ( - - 17, + NULLIF ( - 53, - 18 * + 88 * + 56 * - 86 * + - 91 ) ) AS col0
----
17

query I rowsort
SELECT ALL + ( - 0 ) * + 90 + + + 33 * - 83
----
-2739

query II rowsort
SELECT + 4 * + - 95, 37 * - + NULLIF ( - + 69, - 92 ) - - 20 AS col2
----
-380
2573

onlyif mysql # aggregate syntax: 
query II rowsort label-9800
SELECT ALL + 83 * 65, 87 * 43 + COUNT( * ) AS col2
----
5395
3742

skipif mysql # not compatible
query II rowsort label-9800
SELECT ALL + 83 * 65, 87 * 43 + COUNT ( * ) AS col2
----
5395
3742

query I rowsort
SELECT - ( 32 ) * - 7 * - 64 col1
----
-14336

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT + 30 + + + COUNT( * ) + - + COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-9802
SELECT + 30 + + + COUNT ( * ) + - + COUNT ( * ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT + ( + COUNT( ALL - - 47 ) ) + - NULLIF ( + - 55, - + 95 + - 89 ) col1
----
56

skipif mysql # not compatible
query I rowsort label-9803
SELECT + ( + COUNT ( ALL - - 47 ) ) + - NULLIF ( + - 55, - + 95 + - 89 ) col1
----
56

query I rowsort
SELECT - 13 * 68 + + + ( - 96 )
----
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT ALL - NULLIF ( - + 68, - + 36 - COALESCE ( - 53, + CASE - + 31 WHEN + 16 THEN 88 * + + 42 WHEN - + CASE - 87 WHEN - - 5 * + COUNT( ALL + - 68 ) * + + SUM( ALL + 26 ) THEN 70 + - 45 WHEN + AVG ( ALL + 41 ) - + 95 THEN + + 64 WHEN 1 THEN NULL END - 45 THEN NULL END + 2, 87 + - 26 ) ) * - 83
----
-5644

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL - NULLIF ( - + 68, - + 36 - COALESCE ( - 53, + CASE - + 31 WHEN + 16 THEN 88 * + + 42 WHEN - + CASE - 87 WHEN - - 5 * + COUNT ( ALL + - 68 ) * + + SUM ( ALL + 26 ) THEN 70 + - 45 WHEN + AVG ( ALL + 41 ) - + 95 THEN + + 64 WHEN 1 THEN NULL END - 45 THEN NULL END + 2, 87 + - 26 ) ) * - 83
----
-5644

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT - NULLIF ( + 2, ( - MAX( DISTINCT + - ( - ( - 12 ) ) ) ) * 71 )
----
-2

skipif mysql # not compatible
query I rowsort label-9806
SELECT - NULLIF ( + 2, ( - MAX ( DISTINCT + - ( - ( - 12 ) ) ) ) * 71 )
----
-2

query I rowsort
SELECT - - 20 + - 73
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-9808
SELECT ALL + 87 * + - 19, 49 * CASE + 3 WHEN + 52 + - 86 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN - ( + COALESCE ( - COUNT( * ), + 25, - 45 ) ) * 24 * 35 * - 16 * + 99 THEN - COUNT( * ) / - 10 * COUNT( 71 ) + COALESCE ( - 96, + 62 ) END + + - 50 AS col1
----
-1653
NULL

skipif mysql # not compatible
query II rowsort label-9808
SELECT ALL + 87 * + - 19, 49 * CASE + 3 WHEN + 52 + - 86 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN - ( + COALESCE ( - COUNT ( * ), + 25, - 45 ) ) * 24 * 35 * - 16 * + 99 THEN - COUNT ( * ) / - 10 * COUNT ( 71 ) + COALESCE ( - 96, + 62 ) END + + - 50 AS col1
----
-1653
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9809
SELECT 1 * + + CAST( CASE - CAST( NULL AS SIGNED ) WHEN 7 THEN + 91 WHEN - 41 THEN NULL ELSE - - 38 END AS SIGNED ) * + 58 AS col2
----
2204

skipif mysql # not compatible
query I rowsort label-9809
SELECT 1 * + + CAST ( CASE - CAST ( NULL AS INTEGER ) WHEN 7 THEN + 91 WHEN - 41 THEN NULL ELSE - - 38 END AS INTEGER ) * + 58 AS col2
----
2204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9810
SELECT 81 DIV 64 AS col0, NULLIF ( + SUM( DISTINCT 9 ), + - 57 + - + 69 * CASE CAST( - + 25 AS SIGNED ) WHEN 4 THEN NULL WHEN + 82 THEN NULL WHEN + 39 DIV - 63 * + 58 THEN + - COUNT( * ) ELSE NULL END ) * + + NULLIF ( ( - 75 ), - 83 DIV + - 50 * + + MAX( DISTINCT + 35 ) )
----
1
-675

skipif mysql # not compatible
query II rowsort label-9810
SELECT 81 / 64 AS col0, NULLIF ( + SUM ( DISTINCT 9 ), + - 57 + - + 69 * CASE CAST ( - + 25 AS INTEGER ) WHEN 4 THEN NULL WHEN + 82 THEN NULL WHEN + 39 / - 63 * + 58 THEN + - COUNT ( * ) ELSE NULL END ) * + + NULLIF ( ( - 75 ), - 83 / + - 50 * + + MAX ( DISTINCT + 35 ) )
----
1
-675

query I rowsort
SELECT - 15 * 35 + + + 61
----
-464

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT ALL SUM( ALL + ( - + 63 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL SUM ( ALL + ( - + 63 ) )
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-9813
SELECT ALL - COALESCE ( 26, - + 67 * 43 * ( + - 45 ) * - CASE + ( + 46 ) WHEN + 20 * + - 52 + - 17 + + 10 THEN NULL WHEN + 13 THEN NULL ELSE + - 87 END + + 69 * + ( + 95 ) DIV - 14 - 10 + + 79, - 78 ) * + - 0 DIV - 86 + - + 63 + + ( 12 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL - COALESCE ( 26, - + 67 * 43 * ( + - 45 ) * - CASE + ( + 46 ) WHEN + 20 * + - 52 + - 17 + + 10 THEN NULL WHEN + 13 THEN NULL ELSE + - 87 END + + 69 * + ( + 95 ) / - 14 - 10 + + 79, - 78 ) * + - 0 / - 86 + - + 63 + + ( 12 ) AS col2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-9814
SELECT 88 DIV - 16
----
-5

skipif mysql # not compatible
query I rowsort label-9814
SELECT 88 / - 16
----
-5

query I rowsort
SELECT 23 * 82 * - ( ( - + ( + 64 ) ) ) AS col2
----
120704

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT ALL - SUM( DISTINCT ( - 91 ) )
----
91

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL - SUM ( DISTINCT ( - 91 ) )
----
91

query I rowsort
SELECT DISTINCT - 17 + + 1 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT 13 * + + COALESCE ( - COALESCE ( - SUM( + + 70 ), + + ( - + NULLIF ( + 98, + - 88 ) ) ), 77, 18, + COUNT( * ) + + 74 )
----
910

skipif mysql # not compatible
query I rowsort label-9818
SELECT 13 * + + COALESCE ( - COALESCE ( - SUM ( + + 70 ), + + ( - + NULLIF ( + 98, + - 88 ) ) ), 77, 18, + COUNT ( * ) + + 74 )
----
910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9819
SELECT ALL - COUNT( * ) + + ( + COUNT( * ) ) + + - 34 * + COUNT( * ) * + + 5 + - - ( ( + COUNT( * ) ) ) * - COUNT( * ) DIV 18 DIV NULLIF ( - 7, 2 DIV + 2 )
----
-170

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL - COUNT ( * ) + + ( + COUNT ( * ) ) + + - 34 * + COUNT ( * ) * + + 5 + - - ( ( + COUNT ( * ) ) ) * - COUNT ( * ) / 18 / NULLIF ( - 7, 2 / + 2 )
----
-170

query I rowsort
SELECT ALL + 72 * + 19 AS col2
----
1368

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT + 52 * + + COUNT( * ) + 43
----
95

skipif mysql # not compatible
query I rowsort label-9821
SELECT + 52 * + + COUNT ( * ) + 43
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9822
SELECT + 21 AS col0, COUNT( * ) * 19 AS col0
----
21
19

skipif mysql # not compatible
query II rowsort label-9822
SELECT + 21 AS col0, COUNT ( * ) * 19 AS col0
----
21
19

query I rowsort
SELECT ALL - 0 + - + 90
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT 64 * - NULLIF ( + - COALESCE ( - 6, 30, + 62 * - 60 - COUNT( * ) * 37 ), 29 * - 42 * 94 ) + - + COUNT( * ) AS col1
----
-385

skipif mysql # not compatible
query I rowsort label-9824
SELECT 64 * - NULLIF ( + - COALESCE ( - 6, 30, + 62 * - 60 - COUNT ( * ) * 37 ), 29 * - 42 * 94 ) + - + COUNT ( * ) AS col1
----
-385

query I rowsort
SELECT 39 - - + 37 AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9826
SELECT 13 + + - ( MIN( DISTINCT + COALESCE ( + 79, 83 ) ) ) + + - CAST( - 62 AS SIGNED ) AS col1, COUNT( * ) * - 19 AS col2
----
-4
-19

skipif mysql # not compatible
query II rowsort label-9826
SELECT 13 + + - ( MIN ( DISTINCT + COALESCE ( + 79, 83 ) ) ) + + - CAST ( - 62 AS INTEGER ) AS col1, COUNT ( * ) * - 19 AS col2
----
-4
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT - 76 * + MAX( - 71 ) * - 82 - - 25
----
-442447

skipif mysql # not compatible
query I rowsort label-9827
SELECT - 76 * + MAX ( - 71 ) * - 82 - - 25
----
-442447

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT 22 + - CASE + 88 WHEN COUNT( ALL + 27 ) + + 20 / + 40 THEN NULL ELSE - SUM( + + 91 ) * + 6 END AS col2
----
568

skipif mysql # not compatible
query I rowsort label-9828
SELECT 22 + - CASE + 88 WHEN COUNT ( ALL + 27 ) + + 20 / + 40 THEN NULL ELSE - SUM ( + + 91 ) * + 6 END AS col2
----
568

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT ALL + 1 - COUNT( * ) + + 76 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL + 1 - COUNT ( * ) + + 76 AS col2
----
76

query II rowsort
SELECT ALL - 12 AS col1, 1 + 24 AS col2
----
-12
25

query I rowsort
SELECT DISTINCT + 10 * 53 AS col1
----
530

query II rowsort
SELECT DISTINCT - + 26 AS col2, + 65
----
-26
65

query I rowsort
SELECT + 0 * 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT SUM( 81 ) * + COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-9834
SELECT SUM ( 81 ) * + COUNT ( * ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9835
SELECT DISTINCT - 19 AS col0, COUNT( * ) AS col0
----
-19
1

skipif mysql # not compatible
query II rowsort label-9835
SELECT DISTINCT - 19 AS col0, COUNT ( * ) AS col0
----
-19
1

query I rowsort
SELECT 78 * 53 + - - 58 - 34 AS col0
----
4158

onlyif mysql # aggregate syntax: 
query II rowsort label-9837
SELECT + 21, + COUNT( * ) AS col1
----
21
1

skipif mysql # not compatible
query II rowsort label-9837
SELECT + 21, + COUNT ( * ) AS col1
----
21
1

query II rowsort
SELECT - - 70 AS col0, 19
----
70
19

query I rowsort
SELECT DISTINCT - 77 * - + 49
----
3773

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9840
SELECT DISTINCT + MIN( + 84 ) DIV - 22
----
-3

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT + MIN ( + 84 ) / - 22
----
-3

query I rowsort
SELECT DISTINCT + CASE + - 37 WHEN + - 80 THEN NULL ELSE + 61 * 12 + - + 94 END
----
638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9842
SELECT ALL 74 + COALESCE ( + CAST( NULL AS SIGNED ), - - 60 + + 74 * + NULLIF ( 10, - ( + + 60 ) ) ) AS col2
----
874

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL 74 + COALESCE ( + CAST ( NULL AS INTEGER ), - - 60 + + 74 * + NULLIF ( 10, - ( + + 60 ) ) ) AS col2
----
874

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9843
SELECT - 45 AS col0, - CAST( + CAST( - - ( 74 ) AS DECIMAL ) AS SIGNED ) AS col1
----
-45
-74

skipif mysql # not compatible
query II rowsort label-9843
SELECT - 45 AS col0, - CAST ( + CAST ( - - ( 74 ) AS REAL ) AS INTEGER ) AS col1
----
-45
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9844
SELECT CAST( NULL AS SIGNED ) + + 69 + + ( + - 77 ) + CASE + 1 WHEN 11 - - 58 THEN + 54 + - NULLIF ( + 42, CAST( + - 99 AS SIGNED ) + - + 86 * 66 * 3 + CASE - 51 WHEN - - 61 THEN - COALESCE ( - + 89, + COUNT( DISTINCT - - 37 ) * - - NULLIF ( + + 30, - COUNT( * ) * + - 37 * COUNT( DISTINCT + 23 ) ) * + ( - 69 ), + NULLIF ( MIN( + 1 ), + 31 ) * - ( NULLIF ( - 26, COUNT( * ) * 32 ) + 63 ) + - 35 ) WHEN - 66 - - 15 * + NULLIF ( 10 / 62 + + 56, 29 + + 85 ) THEN COUNT( * ) * - NULLIF ( + COUNT( * ), + COALESCE ( + 19, - 66 ) ) ELSE NULL END ) + 56 / NULLIF ( 39 * - 5, CAST( NULL AS DECIMAL ) * 20 + 65 ) END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9844
SELECT CAST ( NULL AS INTEGER ) + + 69 + + ( + - 77 ) + CASE + 1 WHEN 11 - - 58 THEN + 54 + - NULLIF ( + 42, CAST ( + - 99 AS INTEGER ) + - + 86 * 66 * 3 + CASE - 51 WHEN - - 61 THEN - COALESCE ( - + 89, + COUNT ( DISTINCT - - 37 ) * - - NULLIF ( + + 30, - COUNT ( * ) * + - 37 * COUNT ( DISTINCT + 23 ) ) * + ( - 69 ), + NULLIF ( MIN ( + 1 ), + 31 ) * - ( NULLIF ( - 26, COUNT ( * ) * 32 ) + 63 ) + - 35 ) WHEN - 66 - - 15 * + NULLIF ( 10 / 62 + + 56, 29 + + 85 ) THEN COUNT ( * ) * - NULLIF ( + COUNT ( * ), + COALESCE ( + 19, - 66 ) ) ELSE NULL END ) + 56 / NULLIF ( 39 * - 5, CAST ( NULL AS REAL ) * 20 + 65 ) END * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9845
SELECT ALL + 14 + + + 31 + - CAST( - 67 AS SIGNED )
----
112

skipif mysql # not compatible
query I rowsort label-9845
SELECT ALL + 14 + + + 31 + - CAST ( - 67 AS INTEGER )
----
112

query I rowsort
SELECT ALL 89 + - 80 AS col2
----
9

query I rowsort
SELECT COALESCE ( - 59, + + 55 ) + - 26 + - 90 AS col1
----
-175

query I rowsort
SELECT 16 * 76
----
1216

onlyif mysql # aggregate syntax: 
query II rowsort label-9849
SELECT 23 + - 70 AS col1, COUNT( * ) AS col1
----
-47
1

skipif mysql # not compatible
query II rowsort label-9849
SELECT 23 + - 70 AS col1, COUNT ( * ) AS col1
----
-47
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT ALL 53 + - 88 - - + COUNT( * ) - 16
----
-50

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL 53 + - 88 - - + COUNT ( * ) - 16
----
-50

query I rowsort
SELECT 94 * + 88
----
8272

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT ALL - CASE - - COUNT( 68 ) WHEN - - MIN( 15 ) THEN - 88 / - 16 + MIN( DISTINCT - - 19 ) WHEN + 17 * + + 21 + + + 49 + + 18 * - COALESCE ( 86, + 37, 49 ) - + 0 * + COUNT( DISTINCT + 78 ) * - - 2 - CASE + + 4 WHEN - + SUM( - 33 ) + - ( - + 78 ) THEN NULL WHEN - COUNT( * ) + + COUNT( * ) + - 38 THEN + 97 + + 16 * 32 END * 94 THEN NULL END * 18 + + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL - CASE - - COUNT ( 68 ) WHEN - - MIN ( 15 ) THEN - 88 / - 16 + MIN ( DISTINCT - - 19 ) WHEN + 17 * + + 21 + + + 49 + + 18 * - COALESCE ( 86, + 37, 49 ) - + 0 * + COUNT ( DISTINCT + 78 ) * - - 2 - CASE + + 4 WHEN - + SUM ( - 33 ) + - ( - + 78 ) THEN NULL WHEN - COUNT ( * ) + + COUNT ( * ) + - 38 THEN + 97 + + 16 * 32 END * 94 THEN NULL END * 18 + + 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9853
SELECT SUM( + 72 ) AS col2, + COUNT( * ) * + COUNT( * ) - + + 73 AS col0, + 18 + - + 26
----
72
-72
-8

skipif mysql # not compatible
query III rowsort label-9853
SELECT SUM ( + 72 ) AS col2, + COUNT ( * ) * + COUNT ( * ) - + + 73 AS col0, + 18 + - + 26
----
72
-72
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9854
SELECT - COUNT( - 88 ) DIV MIN( - 59 ) + + 77
----
77

skipif mysql # not compatible
query I rowsort label-9854
SELECT - COUNT ( - 88 ) / MIN ( - 59 ) + + 77
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT DISTINCT - MIN( ALL + ( - 98 ) ) col0
----
98

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT - MIN ( ALL + ( - 98 ) ) col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9856
SELECT ALL - COUNT( - + 16 ), - 53 + 32 DIV + 86 + 34 - + CAST( - + 56 AS SIGNED ) * + 76 AS col2
----
-1
4237

skipif mysql # not compatible
query II rowsort label-9856
SELECT ALL - COUNT ( - + 16 ), - 53 + 32 / + 86 + 34 - + CAST ( - + 56 AS INTEGER ) * + 76 AS col2
----
-1
4237

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT + MAX( ALL 26 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-9857
SELECT + MAX ( ALL 26 ) AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9858
SELECT DISTINCT + 14 * ( 76 ) * + 71 * - NULLIF ( - - COUNT( * ), + 82 ) + - 0 - - - 85, 22 + + 45 - - 4 + + CAST( NULLIF ( MIN( 40 ), - - 23 ) AS SIGNED ) * - + 8 - 99 - + + CAST( 33 AS SIGNED ) + - 66 * + - 22 col2
----
-75629
1071

skipif mysql # not compatible
query II rowsort label-9858
SELECT DISTINCT + 14 * ( 76 ) * + 71 * - NULLIF ( - - COUNT ( * ), + 82 ) + - 0 - - - 85, 22 + + 45 - - 4 + + CAST ( NULLIF ( MIN ( 40 ), - - 23 ) AS INTEGER ) * - + 8 - 99 - + + CAST ( 33 AS INTEGER ) + - 66 * + - 22 col2
----
-75629
1071

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT COUNT( * ) * - MIN( DISTINCT - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-9859
SELECT COUNT ( * ) * - MIN ( DISTINCT - 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL - 69 * MAX( ALL - 61 )
----
4209

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL - 69 * MAX ( ALL - 61 )
----
4209

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9861
SELECT 38 DIV - MIN( DISTINCT + 70 )
----
0

skipif mysql # not compatible
query I rowsort label-9861
SELECT 38 / - MIN ( DISTINCT + 70 )
----
0

query II rowsort
SELECT ALL 87 * + 26 AS col1, + 89
----
2262
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT ALL - MIN( + 64 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL - MIN ( + 64 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-9864
SELECT ALL COUNT( * ) * - + 72, - COUNT( * ) AS col1
----
-72
-1

skipif mysql # not compatible
query II rowsort label-9864
SELECT ALL COUNT ( * ) * - + 72, - COUNT ( * ) AS col1
----
-72
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9865
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * 85 * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 85 * 78
----
NULL

query I rowsort
SELECT 33 * + - 4 - - 83 * + 98
----
8002

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT + SUM( DISTINCT - + 60 ) - - + 73
----
13

skipif mysql # not compatible
query I rowsort label-9867
SELECT + SUM ( DISTINCT - + 60 ) - - + 73
----
13

query I rowsort
SELECT + CASE + 68 WHEN + 26 + - 79 THEN + 54 ELSE - 91 END
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT + - MAX( + 3 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9869
SELECT + - MAX ( + 3 ) AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9870
SELECT - CAST( NULL AS SIGNED ) * - ( - 49 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9870
SELECT - CAST ( NULL AS INTEGER ) * - ( - 49 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT - 48 - - COUNT( + 60 )
----
-47

skipif mysql # not compatible
query I rowsort label-9871
SELECT - 48 - - COUNT ( + 60 )
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-9872
SELECT ALL - 48 * - - 32 + - + COUNT( ALL 20 ), 64 AS col0
----
-1537
64

skipif mysql # not compatible
query II rowsort label-9872
SELECT ALL - 48 * - - 32 + - + COUNT ( ALL 20 ), 64 AS col0
----
-1537
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT DISTINCT - 37 + + NULLIF ( + 31, + COUNT( * ) * - 65 - + 5 - + ( + 54 ) ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT - 37 + + NULLIF ( + 31, + COUNT ( * ) * - 65 - + 5 - + ( + 54 ) ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT - SUM( DISTINCT + 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-9874
SELECT - SUM ( DISTINCT + 47 )
----
-47

query I rowsort
SELECT - + ( + 46 ) * - ( - + 11 ) AS col0
----
-506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9876
SELECT ALL - - 93 + - ( - + CASE - ( - 73 ) WHEN - 2 THEN NULL WHEN - AVG ( ALL - COALESCE ( + + 98, + 93 + + 54 * 86 + + 38 + + 65 + - 13, + - 51 * + ( - CAST( + 66 AS SIGNED ) ) + + ( - 49 ) ) ) THEN NULL WHEN + 36 THEN - 18 ELSE - + COUNT( * ) DIV + 65 + + 73 - - 79 END ), 63 AS col0
----
245
63

skipif mysql # not compatible
query II rowsort label-9876
SELECT ALL - - 93 + - ( - + CASE - ( - 73 ) WHEN - 2 THEN NULL WHEN - AVG ( ALL - COALESCE ( + + 98, + 93 + + 54 * 86 + + 38 + + 65 + - 13, + - 51 * + ( - CAST ( + 66 AS INTEGER ) ) + + ( - 49 ) ) ) THEN NULL WHEN + 36 THEN - 18 ELSE - + COUNT ( * ) / + 65 + + 73 - - 79 END ), 63 AS col0
----
245
63

query I rowsort
SELECT - ( + + ( + 67 ) )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL - SUM( + 19 ) * 71 + - ( - 50 ) AS col1
----
-1299

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL - SUM ( + 19 ) * 71 + - ( - 50 ) AS col1
----
-1299

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9879
SELECT - COUNT( * ) DIV + - 57
----
0

skipif mysql # not compatible
query I rowsort label-9879
SELECT - COUNT ( * ) / + - 57
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9880
SELECT - + 24 + + COUNT( * ) AS col2, 15 * 35 + - 17 + + COUNT( * ) * - COUNT( * )
----
-23
507

skipif mysql # not compatible
query II rowsort label-9880
SELECT - + 24 + + COUNT ( * ) AS col2, 15 * 35 + - 17 + + COUNT ( * ) * - COUNT ( * )
----
-23
507

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT + COUNT( * ) - + 45 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-9881
SELECT + COUNT ( * ) - + 45 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-9882
SELECT DISTINCT + 55 + 57 AS col2, COUNT( * ) AS col1
----
112
1

skipif mysql # not compatible
query II rowsort label-9882
SELECT DISTINCT + 55 + 57 AS col2, COUNT ( * ) AS col1
----
112
1

query I rowsort
SELECT DISTINCT - 96 + 85
----
-11

query I rowsort
SELECT DISTINCT + 85 * COALESCE ( + 12, - 30 + + 30 ) AS col1
----
1020

query I rowsort
SELECT ALL + 22 + + NULLIF ( 86, - + 20 ) AS col1
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9886
SELECT ALL ( ( + + CAST( + 19 AS SIGNED ) ) ) + 16 * + + 25
----
419

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL ( ( + + CAST ( + 19 AS INTEGER ) ) ) + 16 * + + 25
----
419

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9887
SELECT DISTINCT COUNT( * ) DIV + 13 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9887
SELECT DISTINCT COUNT ( * ) / + 13 AS col1
----
0

query I rowsort
SELECT DISTINCT - 18 + + 25 AS col2
----
7

query I rowsort
SELECT ALL COALESCE ( - + 33, - 64 ) * + 79
----
-2607

query I rowsort
SELECT - NULLIF ( - 81, - 80 )
----
81

query I rowsort
SELECT - 35 - 6
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9892
SELECT - CASE CAST( NULL AS SIGNED ) WHEN + + 52 * + 98 + 38 + NULLIF ( + - 52, + NULLIF ( - + 96, 71 ) ) * - ( + - ( - - 8 ) ) THEN 2 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9892
SELECT - CASE CAST ( NULL AS INTEGER ) WHEN + + 52 * + 98 + 38 + NULLIF ( + - 52, + NULLIF ( - + 96, 71 ) ) * - ( + - ( - - 8 ) ) THEN 2 END AS col0
----
NULL

query I rowsort
SELECT + 76 * 35 AS col1
----
2660

query I rowsort
SELECT ALL 82 * 25 AS col0
----
2050

query I rowsort
SELECT ALL 99 - - + 97 AS col0
----
196

query I rowsort
SELECT DISTINCT - 28 * + + 49
----
-1372

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT - 68 * 33 * + + COUNT( * ) - - + 1
----
-2243

skipif mysql # not compatible
query I rowsort label-9897
SELECT - 68 * 33 * + + COUNT ( * ) - - + 1
----
-2243

query I rowsort
SELECT + 40 * - 39
----
-1560

query I rowsort
SELECT ALL 46 * 77 * + 46 * + + 15
----
2443980

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT + NULLIF ( 7, - MAX( ALL - - 76 ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9900
SELECT + NULLIF ( 7, - MAX ( ALL - - 76 ) ) AS col0
----
7

query I rowsort
SELECT ALL + NULLIF ( - 40, 90 + - 98 )
----
-40

query I rowsort
SELECT + 4 * 96 AS col2
----
384

query I rowsort
SELECT + 10 * 85
----
850

query I rowsort
SELECT 38 * ( - - 86 ) + + 30
----
3298

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT + COUNT( * ) - + 36 + - - NULLIF ( 57, 11 ) * - 29
----
-1688

skipif mysql # not compatible
query I rowsort label-9905
SELECT + COUNT ( * ) - + 36 + - - NULLIF ( 57, 11 ) * - 29
----
-1688

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT + MAX( + + 35 ) + - 37 col1
----
-2

skipif mysql # not compatible
query I rowsort label-9906
SELECT + MAX ( + + 35 ) + - 37 col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9907
SELECT + 16 * CAST( NULL AS SIGNED ) - + 63 + 99 * + 10 * COUNT( * ) * - CAST( NULL AS SIGNED ) / + 47 * + 7 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9907
SELECT + 16 * CAST ( NULL AS INTEGER ) - + 63 + 99 * + 10 * COUNT ( * ) * - CAST ( NULL AS INTEGER ) / + 47 * + 7 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9908
SELECT ALL CAST( NULL AS SIGNED ) * - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL CAST ( NULL AS INTEGER ) * - 72 AS col2
----
NULL

query I rowsort
SELECT ALL + 44 * - ( + 53 )
----
-2332

query I rowsort
SELECT ALL - + COALESCE ( ( + 68 ), - 93 ) * - 98
----
6664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9911
SELECT DISTINCT - COUNT( ALL CAST( + - 89 AS SIGNED ) ) * - NULLIF ( - 29, - 37 ) + + - 90
----
-119

skipif mysql # not compatible
query I rowsort label-9911
SELECT DISTINCT - COUNT ( ALL CAST ( + - 89 AS INTEGER ) ) * - NULLIF ( - 29, - 37 ) + + - 90
----
-119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9912
SELECT ALL + COALESCE ( + COUNT( * ), - + 61 DIV COUNT( * ) * - 3 + + + SUM( ALL - + 92 ), - + 0 * + + 56 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL + COALESCE ( + COUNT ( * ), - + 61 / COUNT ( * ) * - 3 + + + SUM ( ALL - + 92 ), - + 0 * + + 56 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT - + ( - - 96 ) + + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-9913
SELECT - + ( - - 96 ) + + COUNT ( * )
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-9914
SELECT ALL 41 * - COUNT( * ) + + 39, + 27 AS col2
----
-2
27

skipif mysql # not compatible
query II rowsort label-9914
SELECT ALL 41 * - COUNT ( * ) + + 39, + 27 AS col2
----
-2
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT - - COUNT( * ) + + 82 * - COUNT( * ) col1
----
-81

skipif mysql # not compatible
query I rowsort label-9915
SELECT - - COUNT ( * ) + + 82 * - COUNT ( * ) col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT DISTINCT COUNT( DISTINCT - 21 ) * + 99 + 78 * + + 10 + - - 76 AS col1
----
955

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT COUNT ( DISTINCT - 21 ) * + 99 + 78 * + + 10 + - - 76 AS col1
----
955

query II rowsort
SELECT ALL + 20 AS col1, + 2 AS col0
----
20
2

query I rowsort
SELECT + 25 * + 46
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT DISTINCT - - 63 * + - COUNT( DISTINCT + + 81 ) + - - 73 + ( - 4 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9919
SELECT DISTINCT - - 63 * + - COUNT ( DISTINCT + + 81 ) + - - 73 + ( - 4 ) AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9920
SELECT ALL + + 96 * + - 22 * COUNT( * ) * + 81 * - + 54 * + - 71 + - COUNT( * ) * 58 + + 46 + - CAST( - + ( ( + 25 ) ) AS SIGNED ) DIV + 96
----
-655890060

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL + + 96 * + - 22 * COUNT ( * ) * + 81 * - + 54 * + - 71 + - COUNT ( * ) * 58 + + 46 + - CAST ( - + ( ( + 25 ) ) AS INTEGER ) / + 96
----
-655890060

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT ALL - CASE MAX( ALL + 42 ) WHEN + - MAX( ALL + 21 ) / - + 52 * - - COUNT( * ) THEN NULL ELSE ( + - ( 86 ) ) END + + 45 col0
----
131

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL - CASE MAX ( ALL + 42 ) WHEN + - MAX ( ALL + 21 ) / - + 52 * - - COUNT ( * ) THEN NULL ELSE ( + - ( 86 ) ) END + + 45 col0
----
131

query I rowsort
SELECT - 71 + 77 AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9923
SELECT ALL CAST( + 32 AS SIGNED ), + 7 * + 30 AS col1, 21 * + + 45 + + + 90 + 15 AS col0
----
32
210
1050

skipif mysql # not compatible
query III rowsort label-9923
SELECT ALL CAST ( + 32 AS INTEGER ), + 7 * + 30 AS col1, 21 * + + 45 + + + 90 + 15 AS col0
----
32
210
1050

onlyif mysql # DIV for integer division: 
query I rowsort label-9924
SELECT - 6 DIV + + 85 * - 95 * - + 17 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9924
SELECT - 6 / + + 85 * - 95 * - + 17 AS col0
----
0

query I rowsort
SELECT - 35 + - 45 AS col2
----
-80

query I rowsort
SELECT - 94 - 91 col1
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9927
SELECT - 12 + - 97 AS col2, CAST( NULL AS SIGNED ) * - CASE - COUNT( * ) WHEN + - 75 THEN + - 1 END col2
----
-109
NULL

skipif mysql # not compatible
query II rowsort label-9927
SELECT - 12 + - 97 AS col2, CAST ( NULL AS INTEGER ) * - CASE - COUNT ( * ) WHEN + - 75 THEN + - 1 END col2
----
-109
NULL

query I rowsort
SELECT + 17 + - 72 * - 14
----
1025

query II rowsort
SELECT - 88 * + 10 AS col0, 4
----
-880
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT DISTINCT + 96 * COUNT( DISTINCT 80 )
----
96

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT + 96 * COUNT ( DISTINCT 80 )
----
96

query I rowsort
SELECT ALL ( + ( + 72 ) )
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9932
SELECT - COUNT( * ) DIV 37 DIV + + ( - + COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9932
SELECT - COUNT ( * ) / 37 / + + ( - + COUNT ( * ) ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9933
SELECT ALL 52 DIV 17 col0, 12 - - 25 * - 87
----
3
-2163

skipif mysql # not compatible
query II rowsort label-9933
SELECT ALL 52 / 17 col0, 12 - - 25 * - 87
----
3
-2163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9934
SELECT ALL CAST( + + 25 AS SIGNED ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL CAST ( + + 25 AS INTEGER ) AS col1
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9935
SELECT - 4 DIV 68 * + ( + 52 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9935
SELECT - 4 / 68 * + ( + 52 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-9936
SELECT + COUNT( * ) + 77 + ( + 29 ) + NULLIF ( + 13, AVG ( - 49 ) * - 88 / - - 96 ) + - COUNT( * ) col2, + 64 AS col0, 94 AS col1
----
119
64
94

skipif mysql # not compatible
query III rowsort label-9936
SELECT + COUNT ( * ) + 77 + ( + 29 ) + NULLIF ( + 13, AVG ( - 49 ) * - 88 / - - 96 ) + - COUNT ( * ) col2, + 64 AS col0, 94 AS col1
----
119
64
94

query I rowsort
SELECT ALL - ( - 3 ) col1
----
3

query I rowsort
SELECT DISTINCT 38 * - 38
----
-1444

query I rowsort
SELECT 45 * - 49 AS col2
----
-2205

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT ALL + ( + COUNT( * ) ) + + 15 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL + ( + COUNT ( * ) ) + + 15 AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9941
SELECT ALL + NULLIF ( + + 10, + - ( - + 27 ) ) + - COUNT( * ) + + CAST( + + ( + 16 ) AS SIGNED ) + + 99 + 63 DIV - 93 * 1 - - - COUNT( * ) * - 70 * - + 15 + + COALESCE ( - + COALESCE ( - CASE - ( 44 ) WHEN + ( + SUM( ALL + - 81 ) ) + + 34 * + 8 THEN + 86 ELSE - + COUNT( * ) * - - 12 * + - 46 * - + 68 + + + COUNT( * ) END, 62 ), ( COUNT( * ) ), 55 ) AS col0
----
-38461

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL + NULLIF ( + + 10, + - ( - + 27 ) ) + - COUNT ( * ) + + CAST ( + + ( + 16 ) AS INTEGER ) + + 99 + 63 / - 93 * 1 - - - COUNT ( * ) * - 70 * - + 15 + + COALESCE ( - + COALESCE ( - CASE - ( 44 ) WHEN + ( + SUM ( ALL + - 81 ) ) + + 34 * + 8 THEN + 86 ELSE - + COUNT ( * ) * - - 12 * + - 46 * - + 68 + + + COUNT ( * ) END, 62 ), ( COUNT ( * ) ), 55 ) AS col0
----
-38461

query I rowsort
SELECT 24 * - 18 AS col0
----
-432

query I rowsort
SELECT - 43 * - 95 * + 93 * + 96 AS col0
----
36470880

query I rowsort
SELECT 55 - - 72 col1
----
127

query I rowsort
SELECT DISTINCT - NULLIF ( - 22, + 57 + 91 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT 1 - + 99 * - 16 * - + 87 * - SUM( + ( 44 ) ) + + + 45
----
6063598

skipif mysql # not compatible
query I rowsort label-9946
SELECT 1 - + 99 * - 16 * - + 87 * - SUM ( + ( 44 ) ) + + + 45
----
6063598

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT DISTINCT + 29 + + + 26 + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT + 29 + + + 26 + COUNT ( * )
----
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9948
SELECT DISTINCT CASE - 39 WHEN ( - CAST( NULL AS DECIMAL ) ) + - COUNT( * ) THEN NULL WHEN 1 * ( + - 5 ) + - 91 + + COALESCE ( + 9, - COUNT( * ) ) THEN - - MIN( + + 29 ) * + - 88 ELSE 61 END * 34
----
2074

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT CASE - 39 WHEN ( - CAST ( NULL AS REAL ) ) + - COUNT ( * ) THEN NULL WHEN 1 * ( + - 5 ) + - 91 + + COALESCE ( + 9, - COUNT ( * ) ) THEN - - MIN ( + + 29 ) * + - 88 ELSE 61 END * 34
----
2074

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT DISTINCT 25 - - 20 + - CASE 28 WHEN - - COUNT( * ) * - NULLIF ( 12, - + ( + - COUNT( * ) ) / - COUNT( * ) ) THEN + 34 - - 16 + + NULLIF ( - ( + 95 ), + 20 ) END / + SUM( + ( 7 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT 25 - - 20 + - CASE 28 WHEN - - COUNT ( * ) * - NULLIF ( 12, - + ( + - COUNT ( * ) ) / - COUNT ( * ) ) THEN + 34 - - 16 + + NULLIF ( - ( + 95 ), + 20 ) END / + SUM ( + ( 7 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT ALL COUNT( * ) - + + 53
----
-52

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL COUNT ( * ) - + + 53
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9951
SELECT 50 DIV CASE - CASE 26 WHEN 34 THEN 65 WHEN + 33 DIV - + 54 + COALESCE ( + 73, - 50 * MAX( ALL 10 ) + + 0 * - COUNT( * ) + + CAST( NULL AS SIGNED ) + - + 92, - 81 ) THEN 83 END WHEN - COALESCE ( ( - 39 ), 97 ) + - COUNT( * ) THEN - 29 * COUNT( * ) WHEN - 19 THEN - ( - + 86 ) ELSE - ( - + 1 ) * + 90 + - 32 END DIV + 2 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9951
SELECT 50 / CASE - CASE 26 WHEN 34 THEN 65 WHEN + 33 / - + 54 + COALESCE ( + 73, - 50 * MAX ( ALL 10 ) + + 0 * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - + 92, - 81 ) THEN 83 END WHEN - COALESCE ( ( - 39 ), 97 ) + - COUNT ( * ) THEN - 29 * COUNT ( * ) WHEN - 19 THEN - ( - + 86 ) ELSE - ( - + 1 ) * + 90 + - 32 END / + 2 AS col2
----
0

query I rowsort
SELECT 32 * + 79
----
2528

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT COUNT( * ) + - + COALESCE ( + - 58, + + COUNT( * ), - COUNT( * ) ) / COUNT( * ) - + 69 * - - CASE 92 WHEN - 49 * NULLIF ( 91, + 73 ) THEN NULL WHEN - COUNT( * ) THEN + 62 * + - COUNT( * ) + + MIN( DISTINCT + 3 ) END / - + 36 - - 21 + 3 - + - 28 + - - COUNT( * ) / + 3 - - 66 + + NULLIF ( + 17, + NULLIF ( 83, COUNT( * ) / + + NULLIF ( COALESCE ( - 40, + 2 + - 50 ), - 0 + 3 * - 14 ) ) ) * + CASE - 60 * + 36 WHEN 24 THEN - ( 22 ) * + 4 + COUNT( DISTINCT - 8 ) ELSE NULL END / 16 + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT COUNT ( * ) + - + COALESCE ( + - 58, + + COUNT ( * ), - COUNT ( * ) ) / COUNT ( * ) - + 69 * - - CASE 92 WHEN - 49 * NULLIF ( 91, + 73 ) THEN NULL WHEN - COUNT ( * ) THEN + 62 * + - COUNT ( * ) + + MIN ( DISTINCT + 3 ) END / - + 36 - - 21 + 3 - + - 28 + - - COUNT ( * ) / + 3 - - 66 + + NULLIF ( + 17, + NULLIF ( 83, COUNT ( * ) / + + NULLIF ( COALESCE ( - 40, + 2 + - 50 ), - 0 + 3 * - 14 ) ) ) * + CASE - 60 * + 36 WHEN 24 THEN - ( 22 ) * + 4 + COUNT ( DISTINCT - 8 ) ELSE NULL END / 16 + 96
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9954
SELECT 16 + + CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-9954
SELECT 16 + + CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT 52 - - + COUNT( * ) * + 3 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-9955
SELECT 52 - - + COUNT ( * ) * + 3 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT DISTINCT COUNT( * ) * ( + 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT COUNT ( * ) * ( + 35 ) AS col2
----
35

query I rowsort
SELECT ALL + ( 1 ) - - 32 col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT 32 * - COUNT( - + 77 )
----
-32

skipif mysql # not compatible
query I rowsort label-9958
SELECT 32 * - COUNT ( - + 77 )
----
-32

query II rowsort
SELECT DISTINCT + 64 * - 93, + 97 AS col2
----
-5952
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT DISTINCT + 55 * + 65 * COUNT( * ) * + 95 AS col0
----
339625

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT + 55 * + 65 * COUNT ( * ) * + 95 AS col0
----
339625

query II rowsort
SELECT 51 + - + 10, 77 AS col1
----
41
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9962
SELECT ( - 48 ) * - + CAST( + - COUNT( * ) AS SIGNED ) col0
----
-48

skipif mysql # not compatible
query I rowsort label-9962
SELECT ( - 48 ) * - + CAST ( + - COUNT ( * ) AS INTEGER ) col0
----
-48

query I rowsort
SELECT 57 * - 30
----
-1710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9964
SELECT CAST( NULL AS SIGNED ) - - 57 * - 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9964
SELECT CAST ( NULL AS INTEGER ) - - 57 * - 52 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT 38 + - COUNT( * ) + 80
----
117

skipif mysql # not compatible
query I rowsort label-9965
SELECT 38 + - COUNT ( * ) + 80
----
117

query I rowsort
SELECT ALL + 47 * + - 63 * + 73
----
-216153

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT DISTINCT + 65 * COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT + 65 * COUNT ( * ) AS col2
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9968
SELECT DISTINCT 40 DIV 2 * 77 * + 72 * + 16 * - COUNT( * )
----
-1774080

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT 40 / 2 * 77 * + 72 * + 16 * - COUNT ( * )
----
-1774080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9969
SELECT ALL 44 + - + COALESCE ( CAST( NULL AS SIGNED ), 88 DIV 81 ) * - - 1 * COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL 44 + - + COALESCE ( CAST ( NULL AS INTEGER ), 88 / 81 ) * - - 1 * COUNT ( * )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9970
SELECT + - 89 DIV + 27 + - 90 + - ( + CAST( + - ( + AVG ( ALL - 6 ) ) AS SIGNED ) ) + COALESCE ( + + 10, + - NULLIF ( - + 61, - 12 DIV + 47 * + + 9 + - - MIN( ALL - + 6 ) ) + + 66 ) * + 47
----
371

skipif mysql # not compatible
query I rowsort label-9970
SELECT + - 89 / + 27 + - 90 + - ( + CAST ( + - ( + AVG ( ALL - 6 ) ) AS INTEGER ) ) + COALESCE ( + + 10, + - NULLIF ( - + 61, - 12 / + 47 * + + 9 + - - MIN ( ALL - + 6 ) ) + + 66 ) * + 47
----
371

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT ALL + - COUNT( * ) + 64
----
63

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL + - COUNT ( * ) + 64
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9972
SELECT COUNT( * ) DIV 30 * 82 + + 34 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-9972
SELECT COUNT ( * ) / 30 * 82 + + 34 AS col1
----
34

query I rowsort
SELECT 67 * + 73 col2
----
4891

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9974
SELECT DISTINCT - 50 DIV 80, + CAST( NULL AS SIGNED ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9974
SELECT DISTINCT - 50 / 80, + CAST ( NULL AS INTEGER ) AS col1
----
0
NULL

query I rowsort
SELECT 16 + + 24 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9976
SELECT COUNT( * ) * + + CAST( NULL AS SIGNED ) / 34 + + COUNT( * ) - - 83 + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9976
SELECT COUNT ( * ) * + + CAST ( NULL AS INTEGER ) / 34 + + COUNT ( * ) - - 83 + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT + - COUNT( * ) * - 65 - - 34 + + - 97
----
2

skipif mysql # not compatible
query I rowsort label-9977
SELECT + - COUNT ( * ) * - 65 - - 34 + + - 97
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT ALL NULLIF ( - + COALESCE ( + MAX( - 62 ), + 68 ), - 22 ) + + 76 * - + 41 * - 38 * - 16 * + COUNT( * )
----
-1894466

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL NULLIF ( - + COALESCE ( + MAX ( - 62 ), + 68 ), - 22 ) + + 76 * - + 41 * - 38 * - 16 * + COUNT ( * )
----
-1894466

query I rowsort
SELECT DISTINCT 56 * 50 AS col0
----
2800

query I rowsort
SELECT DISTINCT + ( + 9 ) - + ( 79 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT ALL - - SUM( ALL + - 45 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL - - SUM ( ALL + - 45 ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT - - ( COUNT( * ) ) * 7 + + 91 col0
----
98

skipif mysql # not compatible
query I rowsort label-9982
SELECT - - ( COUNT ( * ) ) * 7 + + 91 col0
----
98

query I rowsort
SELECT - 57 + - + 37
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT COUNT( * ) * - - 89 + + + 41 AS col2
----
130

skipif mysql # not compatible
query I rowsort label-9984
SELECT COUNT ( * ) * - - 89 + + + 41 AS col2
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT DISTINCT CAST( NULL AS SIGNED ) / + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + + 14
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9986
SELECT ALL 50 AS col2, COUNT( * ) DIV + + 61
----
50
0

skipif mysql # not compatible
query II rowsort label-9986
SELECT ALL 50 AS col2, COUNT ( * ) / + + 61
----
50
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT ALL 59 * - - 80 * - + ( + CAST( + - 89 AS SIGNED ) )
----
420080

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL 59 * - - 80 * - + ( + CAST ( + - 89 AS INTEGER ) )
----
420080

onlyif mysql # DIV for integer division: 
query I rowsort label-9988
SELECT DISTINCT 88 DIV + - 53
----
-1

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT 88 / + - 53
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9989
SELECT ALL + 78 * - COALESCE ( ( - + COUNT( * ) ), 93 * - + CASE CAST( NULL AS SIGNED ) WHEN + - 63 * + 69 / + ( - 31 ) THEN + + 44 END ) * + + 31, - 73 AS col2
----
2418
-73

skipif mysql # not compatible
query II rowsort label-9989
SELECT ALL + 78 * - COALESCE ( ( - + COUNT ( * ) ), 93 * - + CASE CAST ( NULL AS INTEGER ) WHEN + - 63 * + 69 / + ( - 31 ) THEN + + 44 END ) * + + 31, - 73 AS col2
----
2418
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9990
SELECT - COUNT( * ) AS col0, - CAST( + 50 AS SIGNED ) DIV 91 AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-9990
SELECT - COUNT ( * ) AS col0, - CAST ( + 50 AS INTEGER ) / 91 AS col1
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9991
SELECT ALL 23 * - - 51 * 95 AS col1, COUNT( * ) AS col0
----
111435
1

skipif mysql # not compatible
query II rowsort label-9991
SELECT ALL 23 * - - 51 * 95 AS col1, COUNT ( * ) AS col0
----
111435
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9992
SELECT 22 DIV 13 * - + COUNT( * ) AS col2, 67 AS col2
----
-1
67

skipif mysql # not compatible
query II rowsort label-9992
SELECT 22 / 13 * - + COUNT ( * ) AS col2, 67 AS col2
----
-1
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9993
SELECT 57 DIV + ( + + COUNT( * ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-9993
SELECT 57 / + ( + + COUNT ( * ) ) AS col1
----
57

query I rowsort
SELECT 67 * - 54 col1
----
-3618

onlyif mysql # aggregate syntax: 
query II rowsort label-9995
SELECT ALL 17 + + 60 * + 32 AS col1, - ( + MIN( DISTINCT - - 48 ) ) col1
----
1937
-48

skipif mysql # not compatible
query II rowsort label-9995
SELECT ALL 17 + + 60 * + 32 AS col1, - ( + MIN ( DISTINCT - - 48 ) ) col1
----
1937
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9996
SELECT 41 - - 61 DIV + 75 AS col1, + NULLIF ( - - 3, + COUNT( * ) ) * 40 + 34
----
41
154

skipif mysql # not compatible
query II rowsort label-9996
SELECT 41 - - 61 / + 75 AS col1, + NULLIF ( - - 3, + COUNT ( * ) ) * 40 + 34
----
41
154

query II rowsort
SELECT 10, 88 AS col2
----
10
88

query I rowsort
SELECT DISTINCT - 6 + + + 94 AS col1
----
88

query II rowsort
SELECT ALL 81, + 39 * - - 66 - - - 66 + 0 + + + 98 * + 29 AS col2
----
81
5350

