sqllogictest
Artifact Content
Not logged in

Artifact ebc4c2094e9746f48a07aa56607212ad2f3b6d9d:


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