hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 31 * - 62 + 32
----
1954

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2
SELECT - CAST( 59 AS SIGNED ) * - 90 AS col2
----
5310

skipif mysql # not compatible
query I rowsort label-2
SELECT - CAST ( 59 AS INTEGER ) * - 90 AS col2
----
5310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3
SELECT DISTINCT - MAX( - 57 ) + 16 + + 44 DIV - + CASE - 95 WHEN 84 + 9 + + 81 * + 48 + + 37 THEN NULL WHEN - ( - + 82 ) THEN NULL ELSE 42 + - - 88 END * + 36 + + 41 * COUNT( * ) + + 45
----
159

skipif mysql # not compatible
query I rowsort label-3
SELECT DISTINCT - MAX ( - 57 ) + 16 + + 44 / - + CASE - 95 WHEN 84 + 9 + + 81 * + 48 + + 37 THEN NULL WHEN - ( - + 82 ) THEN NULL ELSE 42 + - - 88 END * + 36 + + 41 * COUNT ( * ) + + 45
----
159

query I rowsort
SELECT DISTINCT + ( - - ( + 90 ) ) * 98 AS col1
----
8820

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6
SELECT ALL - 35, + CAST( - 69 AS SIGNED ) AS col1
----
-35
-69

skipif mysql # not compatible
query II rowsort label-6
SELECT ALL - 35, + CAST ( - 69 AS INTEGER ) AS col1
----
-35
-69

query I rowsort
SELECT + 84 * + 95 AS col1
----
7980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8
SELECT ALL + 12 AS col0, - 21 + - ( - NULLIF ( - 81, - - CAST( NULL AS SIGNED ) + + COUNT( * ) ) )
----
12
-102

skipif mysql # not compatible
query II rowsort label-8
SELECT ALL + 12 AS col0, - 21 + - ( - NULLIF ( - 81, - - CAST ( NULL AS INTEGER ) + + COUNT ( * ) ) )
----
12
-102

query II rowsort
SELECT + 64 AS col0, + 65 * - - 42 AS col0
----
64
2730

query I rowsort
SELECT NULLIF ( - 82, - ( 89 ) ) AS col2
----
-82

query I rowsort
SELECT - 18 * + 73 AS col1
----
-1314

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT ALL 36 * SUM( - 99 ) AS col0
----
-3564

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL 36 * SUM ( - 99 ) AS col0
----
-3564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-14
SELECT ALL + ( - CASE - 65 WHEN - + CAST( 66 AS SIGNED ) * 6 THEN + 87 - COUNT( * ) WHEN 89 + + 77 - - COUNT( DISTINCT 29 ) * 49 THEN + - 81 / + - 64 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL + ( - CASE - 65 WHEN - + CAST ( 66 AS INTEGER ) * 6 THEN + 87 - COUNT ( * ) WHEN 89 + + 77 - - COUNT ( DISTINCT 29 ) * 49 THEN + - 81 / + - 64 END )
----
NULL

query II rowsort
SELECT + 75 AS col1, + 2 AS col0
----
75
2

query I rowsort
SELECT DISTINCT - 86 * 81
----
-6966

query I rowsort
SELECT DISTINCT + NULLIF ( ( CASE - 41 WHEN + - 71 THEN + 67 / + 27 * + 89 + - 39 * + - ( - 18 ) + 55 ELSE 39 END ), ( 67 ) ) AS col1
----
39

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

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

query II rowsort
SELECT + 86 col2, 35
----
86
35

query I rowsort
SELECT - 76 + 56 AS col0
----
-20

query III rowsort
SELECT + 40 AS col2, 95 AS col0, ( + 70 ) + 10 + 45
----
40
95
125

query I rowsort
SELECT - 52 + - 31
----
-83

query I rowsort
SELECT DISTINCT + 29 * + 72 + ( + 36 ) - 23
----
2101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-24
SELECT DISTINCT 68 * + + 84 / - 44 + - 46 * + 63 / - CAST( NULL AS SIGNED ) * + + MAX( 36 ) * + 94 + COALESCE ( + 99, + 59 * 39 + - MAX( - 73 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-24
SELECT DISTINCT 68 * + + 84 / - 44 + - 46 * + 63 / - CAST ( NULL AS INTEGER ) * + + MAX ( 36 ) * + 94 + COALESCE ( + 99, + 59 * 39 + - MAX ( - 73 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-25
SELECT ALL + 20 * 24 + - + CAST( NULL AS SIGNED ) + - 77 - - 28 / 46, 11 AS col2
----
NULL
11

skipif mysql # not compatible
query II rowsort label-25
SELECT ALL + 20 * 24 + - + CAST ( NULL AS INTEGER ) + - 77 - - 28 / 46, 11 AS col2
----
NULL
11

query I rowsort
SELECT DISTINCT - 92 * - + ( - 93 ) + 25 col1
----
-8531

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT DISTINCT 56 * - 46 + - - 27 + 77 + + 41 - + NULLIF ( COUNT( ALL + 5 ), 23 - + CASE - 49 WHEN + + 43 THEN ( - 33 ) WHEN + + 94 * - 65 - + - ( 2 ) THEN + - 81 END ) AS col0
----
-2432

skipif mysql # not compatible
query I rowsort label-27
SELECT DISTINCT 56 * - 46 + - - 27 + 77 + + 41 - + NULLIF ( COUNT ( ALL + 5 ), 23 - + CASE - 49 WHEN + + 43 THEN ( - 33 ) WHEN + + 94 * - 65 - + - ( 2 ) THEN + - 81 END ) AS col0
----
-2432

query I rowsort
SELECT ALL - 35 * - ( 84 ) AS col2
----
2940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-29
SELECT - - COALESCE ( + - SUM( + + 15 ), COALESCE ( + - 59, - 85 DIV - 92 - - CAST( NULL AS SIGNED ) - - 18, + 68 * - 77, + - CASE - 49 WHEN - NULLIF ( + 7, - - 64 ) THEN - 18 ELSE NULL END * + 8 + + COUNT( * ) + 27 ) * - NULLIF ( + COUNT( * ), 26 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-29
SELECT - - COALESCE ( + - SUM ( + + 15 ), COALESCE ( + - 59, - 85 / - 92 - - CAST ( NULL AS INTEGER ) - - 18, + 68 * - 77, + - CASE - 49 WHEN - NULLIF ( + 7, - - 64 ) THEN - 18 ELSE NULL END * + 8 + + COUNT ( * ) + 27 ) * - NULLIF ( + COUNT ( * ), 26 ) )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-30
SELECT COALESCE ( + + CAST( - - 13 AS SIGNED ), 38 )
----
13

skipif mysql # not compatible
query I rowsort label-30
SELECT COALESCE ( + + CAST ( - - 13 AS INTEGER ), 38 )
----
13

query I rowsort
SELECT ALL 16 + 67 + + 58
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT + CASE - + 84 WHEN + MIN( ALL + 31 ) * - + NULLIF ( + SUM( ALL + 49 ), - AVG ( ALL 13 ) + + - 63 ) + + + 4 THEN + COUNT( * ) ELSE NULL END * - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT + CASE - + 84 WHEN + MIN ( ALL + 31 ) * - + NULLIF ( + SUM ( ALL + 49 ), - AVG ( ALL 13 ) + + - 63 ) + + + 4 THEN + COUNT ( * ) ELSE NULL END * - 54 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-33
SELECT + + 58 * 62 + - 60 * + - ( + COUNT( * ) ) * + + CAST( NULL AS SIGNED ) - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-33
SELECT + + 58 * 62 + - 60 * + - ( + COUNT ( * ) ) * + + CAST ( NULL AS INTEGER ) - 34
----
NULL

query II rowsort
SELECT DISTINCT + 26 AS col1, - 41 AS col2
----
26
-41

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

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

query II rowsort
SELECT ALL - ( + + 46 ) AS col1, + 55 AS col1
----
-46
55

query I rowsort
SELECT + + 22 - 50 + - 37
----
-65

query I rowsort
SELECT DISTINCT + 59 * + + 93
----
5487

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT + 43 + + - 75 * + 41 * + COUNT( * )
----
-3032

skipif mysql # not compatible
query I rowsort label-39
SELECT + 43 + + - 75 * + 41 * + COUNT ( * )
----
-3032

query I rowsort
SELECT + 60 * 18 AS col2
----
1080

query I rowsort
SELECT ALL 72 * + 12
----
864

query I rowsort
SELECT + 36 + - 68 AS col1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-43
SELECT + 40 DIV - 91 * - MIN( DISTINCT + 56 ) + + COALESCE ( + 36, - ( + 28 ) * 55, - - NULLIF ( - 78, + 32 + - ( - 45 ) + 0 ) DIV + - 8 ) * - + 99, - NULLIF ( - 66, - 47 * + 87 - - 8 + + 28 + - 84 + - MAX( DISTINCT 68 ) + + MAX( ALL + 30 ) * ( + CASE + - 30 WHEN - 89 * + 1 + - 15 THEN NULL WHEN 93 * + 48 THEN - 4 END ) + CASE - 7 WHEN - COUNT( 25 ) THEN NULL ELSE 10 END * MIN( - 27 * - 17 ) * - NULLIF ( - ( 42 ) * - 78 + + COUNT( * ), + 88 + - 72 ) ) AS col2
----
-3564
66

skipif mysql # not compatible
query II rowsort label-43
SELECT + 40 / - 91 * - MIN ( DISTINCT + 56 ) + + COALESCE ( + 36, - ( + 28 ) * 55, - - NULLIF ( - 78, + 32 + - ( - 45 ) + 0 ) / + - 8 ) * - + 99, - NULLIF ( - 66, - 47 * + 87 - - 8 + + 28 + - 84 + - MAX ( DISTINCT 68 ) + + MAX ( ALL + 30 ) * ( + CASE + - 30 WHEN - 89 * + 1 + - 15 THEN NULL WHEN 93 * + 48 THEN - 4 END ) + CASE - 7 WHEN - COUNT ( 25 ) THEN NULL ELSE 10 END * MIN ( - 27 * - 17 ) * - NULLIF ( - ( 42 ) * - 78 + + COUNT ( * ), + 88 + - 72 ) ) AS col2
----
-3564
66

query I rowsort
SELECT + NULLIF ( 50, + 0 * 38 / 52 ) * 12
----
600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-45
SELECT ALL 36 * + CAST( + 29 AS SIGNED ) AS col2
----
1044

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL 36 * + CAST ( + 29 AS INTEGER ) AS col2
----
1044

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

skipif mysql # not compatible
query I rowsort label-46
SELECT + 6 * + COUNT ( ALL 10 ) AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-47
SELECT ALL 8 DIV 46 + + 44
----
44

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL 8 / 46 + + 44
----
44

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-49
SELECT - ( - - MIN( ALL + CAST( - CAST( + - 78 AS SIGNED ) AS SIGNED ) ) ) * - - 24
----
-1872

skipif mysql # not compatible
query I rowsort label-49
SELECT - ( - - MIN ( ALL + CAST ( - CAST ( + - 78 AS INTEGER ) AS INTEGER ) ) ) * - - 24
----
-1872

query I rowsort
SELECT + 70 * 69
----
4830

query I rowsort
SELECT - 76 * + 82 * 56 AS col1
----
-348992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-52
SELECT ALL ( + MIN( ALL 57 ) ) DIV - - 87 * 59 + - 96 + 70 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL ( + MIN ( ALL 57 ) ) / - - 87 * 59 + - 96 + 70 AS col0
----
-26

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-54
SELECT ALL 52 DIV - COALESCE ( - 86, - 42 ) + 88 AS col0, 86
----
88
86

skipif mysql # not compatible
query II rowsort label-54
SELECT ALL 52 / - COALESCE ( - 86, - 42 ) + 88 AS col0, 86
----
88
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-55
SELECT + COUNT( * ) * + 43 AS col2, - 67 DIV + - 31
----
43
2

skipif mysql # not compatible
query II rowsort label-55
SELECT + COUNT ( * ) * + 43 AS col2, - 67 / + - 31
----
43
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-56
SELECT CAST( - 57 AS SIGNED ) AS col2, + 95
----
-57
95

skipif mysql # not compatible
query II rowsort label-56
SELECT CAST ( - 57 AS INTEGER ) AS col2, + 95
----
-57
95

query I rowsort
SELECT - 90 - ( 48 ) AS col0
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-58
SELECT DISTINCT + 97 * + - CAST( NULL AS SIGNED ) * + + 54 * 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT + 97 * + - CAST ( NULL AS INTEGER ) * + + 54 * 67 AS col1
----
NULL

query I rowsort
SELECT - 3 - 83 AS col0
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-60
SELECT - 47 + + CAST( + 18 AS SIGNED ) * + NULLIF ( + - 4, - 80 / 93 + + 86 - + - 31 ) * + - 52
----
3697

skipif mysql # not compatible
query I rowsort label-60
SELECT - 47 + + CAST ( + 18 AS INTEGER ) * + NULLIF ( + - 4, - 80 / 93 + + 86 - + - 31 ) * + - 52
----
3697

query I rowsort
SELECT - 70 * - 17 - + 39 + 79 * - 70 + + 20
----
-4359

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT ALL - NULLIF ( + 66, - NULLIF ( - + 79, - - 28 * + COUNT( * ) * 32 + + + 22 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL - NULLIF ( + 66, - NULLIF ( - + 79, - - 28 * + COUNT ( * ) * 32 + + + 22 ) )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-63
SELECT + CAST( + CASE + - SUM( + + 43 ) WHEN 81 / 55 THEN - - 71 + + - 96 ELSE NULL END AS SIGNED ) + 70 * COUNT( * ) AS col1, CAST( 75 AS SIGNED ) * + COUNT( * ) + - 34
----
NULL
41

skipif mysql # not compatible
query II rowsort label-63
SELECT + CAST ( + CASE + - SUM ( + + 43 ) WHEN 81 / 55 THEN - - 71 + + - 96 ELSE NULL END AS INTEGER ) + 70 * COUNT ( * ) AS col1, CAST ( 75 AS INTEGER ) * + COUNT ( * ) + - 34
----
NULL
41

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT COUNT( * ) + - SUM( - 7 ) - - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-64
SELECT COUNT ( * ) + - SUM ( - 7 ) - - COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-65
SELECT ALL 50 * - 42, - COUNT( * ) AS col1
----
-2100
-1

skipif mysql # not compatible
query II rowsort label-65
SELECT ALL 50 * - 42, - COUNT ( * ) AS col1
----
-2100
-1

query II rowsort
SELECT ALL + - 86 * + + 6 col1, + 98 * - - 26 * - 41
----
-516
-104468

query II rowsort
SELECT 5 + + 12, NULLIF ( - - 52, + 99 ) AS col0
----
17
52

query I rowsort
SELECT 8 * + + 13 * - 29 AS col2
----
-3016

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-70
SELECT + 56 DIV + 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-70
SELECT + 56 / + 80 AS col2
----
0

query I rowsort
SELECT 95 + - 70 + 59 AS col1
----
84

query II rowsort
SELECT - 59 AS col2, + 9 AS col1
----
-59
9

query II rowsort
SELECT ALL 60, 16 AS col0
----
60
16

query II rowsort
SELECT 67, 73 AS col1
----
67
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT ALL 82 + COUNT( DISTINCT + 86 )
----
83

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL 82 + COUNT ( DISTINCT + 86 )
----
83

query I rowsort
SELECT ALL NULLIF ( - 17, 19 * + 98 ) * - 83
----
1411

query I rowsort
SELECT ( - ( + - 83 ) ) + + 29 AS col2
----
112

query II rowsort
SELECT ALL - 65, + 83 AS col0
----
-65
83

onlyif mysql # aggregate syntax: 
query II rowsort label-80
SELECT DISTINCT - 42, ( - COUNT( * ) ) AS col1
----
-42
-1

skipif mysql # not compatible
query II rowsort label-80
SELECT DISTINCT - 42, ( - COUNT ( * ) ) AS col1
----
-42
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT ALL + 78 + - + COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL + 78 + - + COUNT ( * ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT - 47 * - 98 + - 11 + + 17 * - - COUNT( * ) AS col0
----
4612

skipif mysql # not compatible
query I rowsort label-82
SELECT - 47 * - 98 + - 11 + + 17 * - - COUNT ( * ) AS col0
----
4612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-83
SELECT DISTINCT - CASE + COALESCE ( - + 37, - + 33 ) WHEN + 75 + + COUNT( * ) * + COUNT( * ) THEN NULL WHEN - - COALESCE ( + - 74, - + 71 * + 96 ) + + + 67 THEN - + COALESCE ( - NULLIF ( 38, MAX( + - CAST( + 6 AS SIGNED ) ) ), 25 ) ELSE + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT - CASE + COALESCE ( - + 37, - + 33 ) WHEN + 75 + + COUNT ( * ) * + COUNT ( * ) THEN NULL WHEN - - COALESCE ( + - 74, - + 71 * + 96 ) + + + 67 THEN - + COALESCE ( - NULLIF ( 38, MAX ( + - CAST ( + 6 AS INTEGER ) ) ), 25 ) ELSE + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-84
SELECT 94 - - COUNT( * ) / COUNT( * ) * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-84
SELECT 94 - - COUNT ( * ) / COUNT ( * ) * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-85
SELECT COUNT( * ) + MIN( - - 93 ) AS col2, CASE - 90 WHEN + + 43 THEN - - ( + SUM( DISTINCT - + 96 ) ) * - + 98 + - 6 + - - 56 END AS col1
----
94
NULL

skipif mysql # not compatible
query II rowsort label-85
SELECT COUNT ( * ) + MIN ( - - 93 ) AS col2, CASE - 90 WHEN + + 43 THEN - - ( + SUM ( DISTINCT - + 96 ) ) * - + 98 + - 6 + - - 56 END AS col1
----
94
NULL

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

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

query I rowsort
SELECT + NULLIF ( + 6, - + 37 )
----
6

query I rowsort
SELECT 2 + - 23 AS col1
----
-21

query I rowsort
SELECT ALL - + CASE - 65 WHEN - 4 THEN + + 13 - - + 77 ELSE 16 END AS col1
----
-16

query I rowsort
SELECT ALL + 52 * + 49 * - 80
----
-203840

query I rowsort
SELECT DISTINCT + 25 * - 71 AS col1
----
-1775

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT + MIN( - + 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-92
SELECT + MIN ( - + 82 ) AS col1
----
-82

query I rowsort
SELECT 53 - - - 86
----
-33

query II rowsort
SELECT - 11 AS col2, 63 * 15 * - 46 + - ( + + 66 )
----
-11
-43536

query I rowsort
SELECT ALL - 90 + - 39 + + - ( + 63 ) * + + 14 * - 26 + + 28 + 3 AS col1
----
22834

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

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

query II rowsort
SELECT 69 * + - 45 AS col1, + 15 * - NULLIF ( - - 21, - - ( + - 43 ) )
----
-3105
-315

query II rowsort
SELECT ALL - 54 + + - NULLIF ( - 50, + 91 ) + - + 81 + 17 + - 81 AS col1, + 1 AS col1
----
-149
1

onlyif mysql # DIV for integer division: 
query II rowsort label-99
SELECT ALL - 45 DIV - - 81 AS col2, ( + - NULLIF ( - - 49, - 50 + + 76 ) ) DIV + + 94 - 88
----
0
-88

skipif mysql # not compatible
query II rowsort label-99
SELECT ALL - 45 / - - 81 AS col2, ( + - NULLIF ( - - 49, - 50 + + 76 ) ) / + + 94 - 88
----
0
-88

query I rowsort
SELECT DISTINCT - 27 + - ( - 19 )
----
-8

query I rowsort
SELECT DISTINCT + 72 + - 49 AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-102
SELECT 1 DIV - - 88 * - - 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-102
SELECT 1 / - - 88 * - - 6 AS col0
----
0

query I rowsort
SELECT 85 + + - ( 54 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-104
SELECT DISTINCT CASE + 4 WHEN 31 THEN + 55 + - COUNT( * ) WHEN + 96 THEN 42 ELSE + 81 - 83 * - 17 * + + CAST( NULL AS SIGNED ) END + - COUNT( + 3 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT CASE + 4 WHEN 31 THEN + 55 + - COUNT ( * ) WHEN + 96 THEN 42 ELSE + 81 - 83 * - 17 * + + CAST ( NULL AS INTEGER ) END + - COUNT ( + 3 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-105
SELECT COUNT( DISTINCT - - 46 ) + + - CASE 87 WHEN 46 / + 17 * - 59 * - 83 THEN 10 END + - CASE + 85 WHEN 55 * + CAST( NULL AS DECIMAL ) - - 52 THEN + 70 ELSE NULL END * - - 18 + + 97 * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-105
SELECT COUNT ( DISTINCT - - 46 ) + + - CASE 87 WHEN 46 / + 17 * - 59 * - 83 THEN 10 END + - CASE + 85 WHEN 55 * + CAST ( NULL AS REAL ) - - 52 THEN + 70 ELSE NULL END * - - 18 + + 97 * 51
----
NULL

query I rowsort
SELECT DISTINCT - 63 * - 30 + - NULLIF ( + - 95, + 27 / + - 96 + + 88 + ( - 77 ) ) col0
----
1985

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-107
SELECT CASE MAX( DISTINCT - 0 ) WHEN 61 / + CASE 81 WHEN - 45 THEN NULL WHEN - 56 THEN + - CASE + 85 WHEN 52 * - ( + - 95 ) * 31 + + - COUNT( * ) THEN - 5 * 84 * + - CASE - 90 WHEN CASE - COUNT( * ) WHEN 45 + - 0 * + 21 * + - 65 THEN + COUNT( * ) * 50 - + 47 * + + 94 + CAST( - 62 AS SIGNED ) + + 39 + + 42 * + COALESCE ( + NULLIF ( 14, + 30 - + AVG ( 12 ) ), + 41 ) * 36 ELSE NULL END THEN 46 END WHEN - NULLIF ( - COALESCE ( + COALESCE ( - 91, 8 * 9 + + 62 * 7 ), + 3 - - 24 * CAST( 94 / + 32 AS SIGNED ) ), 98 ) THEN - 12 ELSE NULLIF ( + 10, 50 ) END + 84 WHEN 52 THEN NULL ELSE 67 * + 86 - - MAX( ALL ( 3 ) ) END / 50 + COUNT( * ) * - 56 THEN ( - 40 ) ELSE 15 END
----
15

skipif mysql # not compatible
query I rowsort label-107
SELECT CASE MAX ( DISTINCT - 0 ) WHEN 61 / + CASE 81 WHEN - 45 THEN NULL WHEN - 56 THEN + - CASE + 85 WHEN 52 * - ( + - 95 ) * 31 + + - COUNT ( * ) THEN - 5 * 84 * + - CASE - 90 WHEN CASE - COUNT ( * ) WHEN 45 + - 0 * + 21 * + - 65 THEN + COUNT ( * ) * 50 - + 47 * + + 94 + CAST ( - 62 AS INTEGER ) + + 39 + + 42 * + COALESCE ( + NULLIF ( 14, + 30 - + AVG ( 12 ) ), + 41 ) * 36 ELSE NULL END THEN 46 END WHEN - NULLIF ( - COALESCE ( + COALESCE ( - 91, 8 * 9 + + 62 * 7 ), + 3 - - 24 * CAST ( 94 / + 32 AS INTEGER ) ), 98 ) THEN - 12 ELSE NULLIF ( + 10, 50 ) END + 84 WHEN 52 THEN NULL ELSE 67 * + 86 - - MAX ( ALL ( 3 ) ) END / 50 + COUNT ( * ) * - 56 THEN ( - 40 ) ELSE 15 END
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-108
SELECT DISTINCT + CASE 9 WHEN + 94 THEN - - 18 * 23 * 19 / ( + + COUNT( * ) ) + 92 END AS col1, COALESCE ( + 2, - ( 82 ) ) * - 62
----
NULL
-124

skipif mysql # not compatible
query II rowsort label-108
SELECT DISTINCT + CASE 9 WHEN + 94 THEN - - 18 * 23 * 19 / ( + + COUNT ( * ) ) + 92 END AS col1, COALESCE ( + 2, - ( 82 ) ) * - 62
----
NULL
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-109
SELECT ALL - - 79 * - 70 * - 33 + + COUNT( * ) - - 73 * 59 DIV + 53 + - 72 AS col0
----
182500

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL - - 79 * - 70 * - 33 + + COUNT ( * ) - - 73 * 59 / + 53 + - 72 AS col0
----
182500

query I rowsort
SELECT + 38 - 85
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT DISTINCT 78 * - COUNT( - + 83 ) * - 36 * - NULLIF ( COUNT( * ), 72 ) - - + 7 AS col1
----
-2801

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT 78 * - COUNT ( - + 83 ) * - 36 * - NULLIF ( COUNT ( * ), 72 ) - - + 7 AS col1
----
-2801

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT - + 93 * - NULLIF ( - 7, + 14 * + 49 * COUNT( * ) ) + + 32
----
-619

skipif mysql # not compatible
query I rowsort label-112
SELECT - + 93 * - NULLIF ( - 7, + 14 * + 49 * COUNT ( * ) ) + + 32
----
-619

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-114
SELECT DISTINCT - COUNT( DISTINCT + + 33 ) * 72 * CAST( - AVG ( DISTINCT - + 46 ) AS SIGNED ) + + 5 AS col1
----
-3307

skipif mysql # not compatible
query I rowsort label-114
SELECT DISTINCT - COUNT ( DISTINCT + + 33 ) * 72 * CAST ( - AVG ( DISTINCT - + 46 ) AS INTEGER ) + + 5 AS col1
----
-3307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-115
SELECT + + CAST( 69 AS SIGNED ) - - 89 + + COUNT( * ) DIV + + 4 AS col1
----
158

skipif mysql # not compatible
query I rowsort label-115
SELECT + + CAST ( 69 AS INTEGER ) - - 89 + + COUNT ( * ) / + + 4 AS col1
----
158

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

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

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

skipif mysql # not compatible
query I rowsort label-117
SELECT + 41 / - - COUNT ( * ) - + + 42 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-118
SELECT + - CASE + ( - + 52 ) WHEN MIN( ALL + - 45 ) THEN + COUNT( * ) WHEN COUNT( * ) THEN ( - NULLIF ( + 14, + + ( - 95 ) ) ) ELSE - MIN( DISTINCT + - 94 ) END DIV + 44
----
-2

skipif mysql # not compatible
query I rowsort label-118
SELECT + - CASE + ( - + 52 ) WHEN MIN ( ALL + - 45 ) THEN + COUNT ( * ) WHEN COUNT ( * ) THEN ( - NULLIF ( + 14, + + ( - 95 ) ) ) ELSE - MIN ( DISTINCT + - 94 ) END / + 44
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-119
SELECT - - 60 DIV + MIN( - + 20 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-119
SELECT - - 60 / + MIN ( - + 20 ) AS col2
----
-3

query I rowsort
SELECT + 68 + + 21 AS col0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-121
SELECT - + SUM( ALL - 7 ) * COUNT( - - 55 ) + + 71, 29 AS col2
----
78
29

skipif mysql # not compatible
query II rowsort label-121
SELECT - + SUM ( ALL - 7 ) * COUNT ( - - 55 ) + + 71, 29 AS col2
----
78
29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-122
SELECT ALL 12 + + - 15 * - + COALESCE ( + - NULLIF ( - ( + 86 ), + CASE - 58 WHEN + 89 THEN NULL WHEN 20 * 48 + - + 24 THEN + - 46 * CAST( - ( 96 ) AS DECIMAL ) * + 35 ELSE NULL END ), - 8 + - - COUNT( * ) DIV - + 24 + + CASE COUNT( * ) WHEN + 33 THEN - - 25 ELSE - 27 END - + + 48 * + - 62 ) + 21
----
1323

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL 12 + + - 15 * - + COALESCE ( + - NULLIF ( - ( + 86 ), + CASE - 58 WHEN + 89 THEN NULL WHEN 20 * 48 + - + 24 THEN + - 46 * CAST ( - ( 96 ) AS REAL ) * + 35 ELSE NULL END ), - 8 + - - COUNT ( * ) / - + 24 + + CASE COUNT ( * ) WHEN + 33 THEN - - 25 ELSE - 27 END - + + 48 * + - 62 ) + 21
----
1323

query I rowsort
SELECT + 81 + + 6 * 24 col1
----
225

query II rowsort
SELECT ALL 51 + 14 - + - ( - 22 ), 90 col0
----
43
90

query I rowsort
SELECT ALL - 85 + - - 32 * + + 55
----
1675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-126
SELECT - ( - - CASE - + 17 WHEN COUNT( * ) THEN NULL WHEN + 43 THEN + CAST( NULL AS SIGNED ) + COUNT( * ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-126
SELECT - ( - - CASE - + 17 WHEN COUNT ( * ) THEN NULL WHEN + 43 THEN + CAST ( NULL AS INTEGER ) + COUNT ( * ) END ) AS col1
----
NULL

query I rowsort
SELECT - 66 * - - 52
----
-3432

query I rowsort
SELECT - 83 + 68 * - 37 col1
----
-2599

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT ALL COALESCE ( + COUNT( * ), - 10 * 15 )
----
1

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL COALESCE ( + COUNT ( * ), - 10 * 15 )
----
1

query I rowsort
SELECT DISTINCT 7 + + - 81 - + 7 * - 19 + - - 92 AS col2
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT ALL MAX( DISTINCT - 52 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL MAX ( DISTINCT - 52 ) AS col1
----
-52

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

query I rowsort
SELECT - 36 + 73 + + - 20 * - - 60 AS col0
----
-1163

query I rowsort
SELECT ALL - 23 + + 91 * 29
----
2616

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT - ( + NULLIF ( - - NULLIF ( + 6, - 28 + + 29 ), + 26 * COUNT( ( + + 80 ) ) / - 74 ) ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-135
SELECT - ( + NULLIF ( - - NULLIF ( + 6, - 28 + + 29 ), + 26 * COUNT ( ( + + 80 ) ) / - 74 ) ) AS col0
----
-6

query I rowsort
SELECT ALL NULLIF ( 61, + 24 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT ALL CASE + - 0 WHEN - 66 THEN ( - + 68 ) WHEN - ( 26 ) * + COUNT( * ) / + + 13 - - + COUNT( * ) * 76 + + + 6 THEN - + 12 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL CASE + - 0 WHEN - 66 THEN ( - + 68 ) WHEN - ( 26 ) * + COUNT ( * ) / + + 13 - - + COUNT ( * ) * 76 + + + 6 THEN - + 12 ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT DISTINCT MAX( DISTINCT - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT MAX ( DISTINCT - 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT ALL MIN( DISTINCT + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL MIN ( DISTINCT + 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT DISTINCT - ( COUNT( * ) ) * + NULLIF ( - 47, + + 29 ) - + COUNT( * ) + - COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT - ( COUNT ( * ) ) * + NULLIF ( - 47, + + 29 ) - + COUNT ( * ) + - COUNT ( * ) AS col0
----
45

query I rowsort
SELECT ALL + ( - - 23 ) AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-143
SELECT - 14 DIV + + 89 col1
----
0

skipif mysql # not compatible
query I rowsort label-143
SELECT - 14 / + + 89 col1
----
0

query I rowsort
SELECT - - 80 + - 68 AS col0
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-145
SELECT DISTINCT + + 75 AS col1, - ( - 76 ) DIV - + 4 + - - 97 AS col1
----
75
78

skipif mysql # not compatible
query II rowsort label-145
SELECT DISTINCT + + 75 AS col1, - ( - 76 ) / - + 4 + - - 97 AS col1
----
75
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT - - 30 * + 81 * + COUNT( - 5 ) AS col0
----
2430

skipif mysql # not compatible
query I rowsort label-147
SELECT - - 30 * + 81 * + COUNT ( - 5 ) AS col0
----
2430

query III rowsort
SELECT ALL + + 33, - 78 * - 80 AS col0, + 69 AS col0
----
33
6240
69

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT ALL + + NULLIF ( + COUNT( * ), + 36 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL + + NULLIF ( + COUNT ( * ), + 36 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-150
SELECT + MIN( + 70 ) DIV + 98 + 56
----
56

skipif mysql # not compatible
query I rowsort label-150
SELECT + MIN ( + 70 ) / + 98 + 56
----
56

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

skipif mysql # not compatible
query I rowsort label-151
SELECT DISTINCT + 42 * - + CAST ( NULL AS REAL )
----
NULL

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

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

query I rowsort
SELECT + 66 * - 19 AS col0
----
-1254

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

query II rowsort
SELECT DISTINCT 79 * - 46 + - - ( + - 76 ) + + 82 * - + 44 AS col1, + 27
----
-7318
27

onlyif mysql # DIV for integer division: 
query I rowsort label-156
SELECT DISTINCT 95 DIV - - 93
----
1

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT 95 / - - 93
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-157
SELECT + 36 DIV - 16
----
-2

skipif mysql # not compatible
query I rowsort label-157
SELECT + 36 / - 16
----
-2

query I rowsort
SELECT + 54 * - 18 AS col0
----
-972

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

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

query I rowsort
SELECT ALL 18 + - + 17
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-161
SELECT + 24 - - CAST( NULL AS SIGNED ) * - + AVG ( ALL + 89 ) / - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-161
SELECT + 24 - - CAST ( NULL AS INTEGER ) * - + AVG ( ALL + 89 ) / - 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT ALL MIN( DISTINCT + ( 1 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL MIN ( DISTINCT + ( 1 ) ) AS col2
----
1

query I rowsort
SELECT ALL 6 - - + 23 * + 69
----
1593

onlyif mysql # aggregate syntax: 
query II rowsort label-164
SELECT ALL CASE + COUNT( * ) WHEN - + 46 * + COUNT( 15 ) THEN NULL WHEN + 82 THEN + - 89 * - - COUNT( * ) * + 84 END, - 31 col2
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-164
SELECT ALL CASE + COUNT ( * ) WHEN - + 46 * + COUNT ( 15 ) THEN NULL WHEN + 82 THEN + - 89 * - - COUNT ( * ) * + 84 END, - 31 col2
----
NULL
-31

query II rowsort
SELECT 82 AS col0, - 76 AS col2
----
82
-76

query I rowsort
SELECT ALL - ( - 24 ) - 97
----
-73

query I rowsort
SELECT + 94 * + 65
----
6110

query I rowsort
SELECT ALL 0 * 39 * - 62 AS col0
----
0

query I rowsort
SELECT ALL - 83 * 0 AS col2
----
0

query I rowsort
SELECT DISTINCT 17 - 54 - - 16
----
-21

query II rowsort
SELECT ALL 81 AS col0, + 61
----
81
61

query I rowsort
SELECT ALL 52 * - 40
----
-2080

onlyif mysql # DIV for integer division: 
query I rowsort label-173
SELECT 0 * + - 11 DIV - - 55
----
0

skipif mysql # not compatible
query I rowsort label-173
SELECT 0 * + - 11 / - - 55
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-174
SELECT - 90, 55 + - + COUNT( * ) col1
----
-90
54

skipif mysql # not compatible
query II rowsort label-174
SELECT - 90, 55 + - + COUNT ( * ) col1
----
-90
54

query I rowsort
SELECT 55 * - COALESCE ( + - 71, - 16 ) AS col0
----
3905

onlyif mysql # DIV for integer division: 
query I rowsort label-176
SELECT + 47 DIV + 18 + + 60
----
62

skipif mysql # not compatible
query I rowsort label-176
SELECT + 47 / + 18 + + 60
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-177
SELECT ALL + + COUNT( * ) + - SUM( ALL + 75 ) + 76 * + 65 * 29 col1, - 60 AS col2
----
143186
-60

skipif mysql # not compatible
query II rowsort label-177
SELECT ALL + + COUNT ( * ) + - SUM ( ALL + 75 ) + 76 * + 65 * 29 col1, - 60 AS col2
----
143186
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-178
SELECT DISTINCT + 37 DIV 58 DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-178
SELECT DISTINCT + 37 / 58 / + 49
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-180
SELECT ALL - - 40 AS col1, + 86 * COUNT( ALL - - 37 ) + - COALESCE ( + 14, - + 14 * + 93 DIV 0 + COALESCE ( + 99, - 88 ) + - 80 + + + CAST( NULL AS SIGNED ) + - 70 * + - 31 DIV + 29 )
----
40
72

skipif mysql # not compatible
query II rowsort label-180
SELECT ALL - - 40 AS col1, + 86 * COUNT ( ALL - - 37 ) + - COALESCE ( + 14, - + 14 * + 93 / 0 + COALESCE ( + 99, - 88 ) + - 80 + + + CAST ( NULL AS INTEGER ) + - 70 * + - 31 / + 29 )
----
40
72

query I rowsort
SELECT + 23 - + 85 * - - ( - 78 )
----
6653

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT ALL - - 64 + COUNT( * ) + + 31 col0
----
96

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL - - 64 + COUNT ( * ) + + 31 col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-183
SELECT CASE + 83 WHEN - + 18 THEN + 84 / 38 + + AVG ( 31 ) WHEN + 1 THEN NULL WHEN + COUNT( - 66 ) THEN NULL END + - + 98 AS col0, 73 + + ( + - 77 )
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-183
SELECT CASE + 83 WHEN - + 18 THEN + 84 / 38 + + AVG ( 31 ) WHEN + 1 THEN NULL WHEN + COUNT ( - 66 ) THEN NULL END + - + 98 AS col0, 73 + + ( + - 77 )
----
NULL
-4

query I rowsort
SELECT - ( + - 4 ) * + 74 * + ( - 63 ) AS col0
----
-18648

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-186
SELECT + CAST( 56 AS SIGNED ), 2 AS col2
----
56
2

skipif mysql # not compatible
query II rowsort label-186
SELECT + CAST ( 56 AS INTEGER ), 2 AS col2
----
56
2

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT ALL - + 72 + NULLIF ( + 85, - COUNT( * ) * - 85 * - 35 + - COUNT( * ) ) - + 22
----
-9

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL - + 72 + NULLIF ( + 85, - COUNT ( * ) * - 85 * - 35 + - COUNT ( * ) ) - + 22
----
-9

query II rowsort
SELECT ALL - - 47 col0, - ( - - 33 )
----
47
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-189
SELECT ALL - - CASE + + 48 WHEN - 96 / + 97 / + + 46 + 16 THEN NULL WHEN + 44 / ( - CAST( NULL AS SIGNED ) ) THEN - 4 / - 83 - + - 1 WHEN - 62 THEN - + 2 - + 6 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL - - CASE + + 48 WHEN - 96 / + 97 / + + 46 + 16 THEN NULL WHEN + 44 / ( - CAST ( NULL AS INTEGER ) ) THEN - 4 / - 83 - + - 1 WHEN - 62 THEN - + 2 - + 6 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT ALL - 22 + SUM( + 76 ) + + COUNT( * ) + 88 AS col1
----
143

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL - 22 + SUM ( + 76 ) + + COUNT ( * ) + 88 AS col1
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-191
SELECT 95 * + 94 + - ( - 41 ) + + NULLIF ( - + MIN( + 54 ), + 22 ) AS col1, - 5
----
8917
-5

skipif mysql # not compatible
query II rowsort label-191
SELECT 95 * + 94 + - ( - 41 ) + + NULLIF ( - + MIN ( + 54 ), + 22 ) AS col1, - 5
----
8917
-5

query I rowsort
SELECT ALL 18 * + + 80 * - + 90
----
-129600

query I rowsort
SELECT 85 + - 41 + + 19
----
63

query I rowsort
SELECT - 82 * + 1 - + + 14
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT 94 + + COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-195
SELECT 94 + + COUNT ( * ) AS col1
----
95

query II rowsort
SELECT DISTINCT + 5 * - 50, + 83 AS col2
----
-250
83

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

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

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

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

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

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

query I rowsort
SELECT 20 + - COALESCE ( 25, + 46 ) * 66 * - 87 AS col2
----
143570

query II rowsort
SELECT ( - + 14 ) + - 97, 11 AS col0
----
-111
11

query I rowsort
SELECT 10 * - 36 AS col0
----
-360

onlyif mysql # aggregate syntax: 
query II rowsort label-203
SELECT COUNT( * ) * - 25 AS col2, - 72 AS col1
----
-25
-72

skipif mysql # not compatible
query II rowsort label-203
SELECT COUNT ( * ) * - 25 AS col2, - 72 AS col1
----
-25
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-204
SELECT ALL CAST( NULL AS SIGNED ) / - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL CAST ( NULL AS INTEGER ) / - 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT - MIN( 7 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-205
SELECT - MIN ( 7 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT ( - + 56 ) + - COUNT( * ) * - + 37 * 91
----
3311

skipif mysql # not compatible
query I rowsort label-206
SELECT ( - + 56 ) + - COUNT ( * ) * - + 37 * 91
----
3311

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT DISTINCT + COUNT( * ) * - - CASE - + COALESCE ( - - COUNT( * ), 80 ) WHEN 88 THEN NULL ELSE + 86 END
----
86

skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT + COUNT ( * ) * - - CASE - + COALESCE ( - - COUNT ( * ), 80 ) WHEN 88 THEN NULL ELSE + 86 END
----
86

query II rowsort
SELECT ALL + + 41 + 99 col1, 83 AS col1
----
140
83

onlyif mysql # aggregate syntax: 
query II rowsort label-210
SELECT ALL NULLIF ( + NULLIF ( COALESCE ( + - ( - 37 ), 89, 23 ), - - COUNT( * ) ), 86 / + COUNT( * ) * + - SUM( ALL 40 ) ) * + + 38 AS col2, + 30 AS col0
----
1406
30

skipif mysql # not compatible
query II rowsort label-210
SELECT ALL NULLIF ( + NULLIF ( COALESCE ( + - ( - 37 ), 89, 23 ), - - COUNT ( * ) ), 86 / + COUNT ( * ) * + - SUM ( ALL 40 ) ) * + + 38 AS col2, + 30 AS col0
----
1406
30

query I rowsort
SELECT + 54 + - ( + + 62 ) AS col2
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-212
SELECT + 16 DIV + 99 * + - 57 + + 91 - - 82 + 19 * + 12 + + 66 * - + 0 - 53 * + COUNT( * ) * 91 * - 72 * + - 39 * + 52 + 91 AS col2
----
-704234676

skipif mysql # not compatible
query I rowsort label-212
SELECT + 16 / + 99 * + - 57 + + 91 - - 82 + 19 * + 12 + + 66 * - + 0 - 53 * + COUNT ( * ) * 91 * - 72 * + - 39 * + 52 + 91 AS col2
----
-704234676

onlyif mysql # aggregate syntax: 
query II rowsort label-213
SELECT 43 - + CASE + 69 WHEN COUNT( * ) + - - 53 THEN NULL ELSE + - 68 END + - 67 AS col0, SUM( ALL + 28 )
----
44
28

skipif mysql # not compatible
query II rowsort label-213
SELECT 43 - + CASE + 69 WHEN COUNT ( * ) + - - 53 THEN NULL ELSE + - 68 END + - 67 AS col0, SUM ( ALL + 28 )
----
44
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-214
SELECT DISTINCT + 86 * - 74 + + 63 + ( - - CAST( + 52 AS SIGNED ) ) AS col2
----
-6249

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT + 86 * - 74 + + 63 + ( - - CAST ( + 52 AS INTEGER ) ) AS col2
----
-6249

onlyif mysql # DIV for integer division: 
query I rowsort label-215
SELECT ALL + ( 64 ) DIV + 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL + ( 64 ) / + 77 AS col1
----
0

query I rowsort
SELECT ALL - 36 * + 71 * - 85 + - 21
----
217239

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT DISTINCT + - ( - - 79 ) * + 78 * - COUNT( * ) AS col2
----
6162

skipif mysql # not compatible
query I rowsort label-218
SELECT DISTINCT + - ( - - 79 ) * + 78 * - COUNT ( * ) AS col2
----
6162

query I rowsort
SELECT ALL - + 37 + + + 4 + - 85
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT ( 84 ) * SUM( + 72 ) - 61 + 15 AS col0
----
6002

skipif mysql # not compatible
query I rowsort label-220
SELECT ( 84 ) * SUM ( + 72 ) - 61 + 15 AS col0
----
6002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-221
SELECT COUNT( * ) + - CAST( + 48 AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-221
SELECT COUNT ( * ) + - CAST ( + 48 AS INTEGER )
----
-47

query II rowsort
SELECT + 23 * + 19 col2, 52 + 13
----
437
65

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT DISTINCT + 99 * + 78 + + 20 + COALESCE ( COUNT( * ), - 87 * + 52 )
----
7743

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT + 99 * + 78 + + 20 + COALESCE ( COUNT ( * ), - 87 * + 52 )
----
7743

query I rowsort
SELECT ALL - 40 - + 13 AS col0
----
-53

query I rowsort
SELECT 79 * - 39 * - 33
----
101673

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT DISTINCT 48 * - MIN( 6 ) col1
----
-288

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT 48 * - MIN ( 6 ) col1
----
-288

query I rowsort
SELECT ALL + 91 - - - 54 + - 45 AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-228
SELECT 1 * CAST( NULL AS SIGNED ) * + - 2 * + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-228
SELECT 1 * CAST ( NULL AS INTEGER ) * + - 2 * + - 53
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-229
SELECT DISTINCT + 19 * + COALESCE ( 72, 99 ) AS col0, - 43 + 81 DIV ( - - 88 ) AS col2
----
1368
-43

skipif mysql # not compatible
query II rowsort label-229
SELECT DISTINCT + 19 * + COALESCE ( 72, 99 ) AS col0, - 43 + 81 / ( - - 88 ) AS col2
----
1368
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT DISTINCT - CASE + 41 WHEN + + COUNT( * ) * 13 THEN + 81 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-230
SELECT DISTINCT - CASE + 41 WHEN + + COUNT ( * ) * 13 THEN + 81 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 10 - + - 90 AS col2
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-232
SELECT DISTINCT COALESCE ( + 1, - COALESCE ( + 83, COALESCE ( + 84, - 97, CASE 67 WHEN - COUNT( DISTINCT 48 ) / - ( + 12 ) THEN + CAST( NULL AS SIGNED ) WHEN 71 THEN NULL ELSE NULL END ) * + CAST( + 45 AS SIGNED ) + 84 ) * - + 92 - 96 + - + NULLIF ( + 8, - 17 ) )
----
1

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT COALESCE ( + 1, - COALESCE ( + 83, COALESCE ( + 84, - 97, CASE 67 WHEN - COUNT ( DISTINCT 48 ) / - ( + 12 ) THEN + CAST ( NULL AS INTEGER ) WHEN 71 THEN NULL ELSE NULL END ) * + CAST ( + 45 AS INTEGER ) + 84 ) * - + 92 - 96 + - + NULLIF ( + 8, - 17 ) )
----
1

query I rowsort
SELECT DISTINCT 23 - + 13
----
10

query I rowsort
SELECT - ( - 60 ) * 47 * + 28
----
78960

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-235
SELECT - 41 + - 47 + - ( 88 ) * + - 37 * - ( - 40 ) + + 92 * 64 + - 25 + - - AVG ( DISTINCT - ( - CAST( NULL AS SIGNED ) ) ) AS col1, + 36 DIV + - ( 19 ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-235
SELECT - 41 + - 47 + - ( 88 ) * + - 37 * - ( - 40 ) + + 92 * 64 + - 25 + - - AVG ( DISTINCT - ( - CAST ( NULL AS INTEGER ) ) ) AS col1, + 36 / + - ( 19 ) AS col1
----
NULL
-1

query I rowsort
SELECT - 17 * + 65
----
-1105

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT - 35 - + ( - 40 ) + COUNT( * ) + - + 22 * 15
----
-324

skipif mysql # not compatible
query I rowsort label-237
SELECT - 35 - + ( - 40 ) + COUNT ( * ) + - + 22 * 15
----
-324

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-238
SELECT - COUNT( * ), 35 DIV - - COUNT( * ) col0
----
-1
35

skipif mysql # not compatible
query II rowsort label-238
SELECT - COUNT ( * ), 35 / - - COUNT ( * ) col0
----
-1
35

query II rowsort
SELECT DISTINCT - 20 + - 44 * - - 14 col1, 29
----
-636
29

query I rowsort
SELECT ALL 99 * + 10
----
990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-241
SELECT - COUNT( * ) DIV - + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-241
SELECT - COUNT ( * ) / - + 67 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-242
SELECT ALL + 56 + + CAST( NULL AS SIGNED ) + + + 12 AS col1, + COUNT( * ) - - + 98 AS col1
----
NULL
99

skipif mysql # not compatible
query II rowsort label-242
SELECT ALL + 56 + + CAST ( NULL AS INTEGER ) + + + 12 AS col1, + COUNT ( * ) - - + 98 AS col1
----
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT DISTINCT 16 + 36 + + 1 + COUNT( * ) - - + 24
----
78

skipif mysql # not compatible
query I rowsort label-243
SELECT DISTINCT 16 + 36 + + 1 + COUNT ( * ) - - + 24
----
78

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-245
SELECT - - COALESCE ( - 99, - 17 * + + COUNT( * ) + - + 86 ) DIV - 6 AS col2, 99 AS col0
----
16
99

skipif mysql # not compatible
query II rowsort label-245
SELECT - - COALESCE ( - 99, - 17 * + + COUNT ( * ) + - + 86 ) / - 6 AS col2, 99 AS col0
----
16
99

onlyif mysql # DIV for integer division: 
query I rowsort label-246
SELECT + + 26 DIV + 61 - ( - + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-246
SELECT + + 26 / + 61 - ( - + 87 )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-247
SELECT + + 68 - + COUNT( ALL + 64 ) AS col2, + 83 AS col1
----
67
83

skipif mysql # not compatible
query II rowsort label-247
SELECT + + 68 - + COUNT ( ALL + 64 ) AS col2, + 83 AS col1
----
67
83

query II rowsort
SELECT - + 63 AS col2, 41 AS col1
----
-63
41

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT ALL - 88 + COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL - 88 + COUNT ( * ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT - - ( + 12 ) * SUM( + + 3 )
----
36

skipif mysql # not compatible
query I rowsort label-250
SELECT - - ( + 12 ) * SUM ( + + 3 )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-251
SELECT - 57, - ( - - 92 ) DIV + 52 * + COUNT( * ) - - COUNT( * ) * - - 1 AS col2
----
-57
0

skipif mysql # not compatible
query II rowsort label-251
SELECT - 57, - ( - - 92 ) / + 52 * + COUNT ( * ) - - COUNT ( * ) * - - 1 AS col2
----
-57
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-252
SELECT + CAST( NULL AS DECIMAL ) / + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-252
SELECT + CAST ( NULL AS REAL ) / + 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-253
SELECT + + 7 + MAX( DISTINCT + NULLIF ( + - 80, - 99 / - 21 ) ) AS col0, 51
----
-73
51

skipif mysql # not compatible
query II rowsort label-253
SELECT + + 7 + MAX ( DISTINCT + NULLIF ( + - 80, - 99 / - 21 ) ) AS col0, 51
----
-73
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT ALL MAX( 55 ) * + - CASE + + 30 WHEN + ( - - 98 ) THEN NULL WHEN + - 92 THEN + - 96 * ( + + 87 ) * - 50 + - COUNT( * ) / + NULLIF ( + 81, - + 37 * + + 61 ) + COUNT( * ) * - 31 * + 65 END * - + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-255
SELECT ALL MAX ( 55 ) * + - CASE + + 30 WHEN + ( - - 98 ) THEN NULL WHEN + - 92 THEN + - 96 * ( + + 87 ) * - 50 + - COUNT ( * ) / + NULLIF ( + 81, - + 37 * + + 61 ) + COUNT ( * ) * - 31 * + 65 END * - + 50 AS col1
----
NULL

query I rowsort
SELECT ALL + 25 * + - 93 - - NULLIF ( - 27, - 4 / + 36 ) + ( - + 72 ) + - 91 col2
----
-2515

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-258
SELECT DISTINCT 80 * - 49 - 74 + + - 96 DIV 16 * - - ( 30 ) * 94 AS col2
----
-20914

skipif mysql # not compatible
query I rowsort label-258
SELECT DISTINCT 80 * - 49 - 74 + + - 96 / 16 * - - ( 30 ) * 94 AS col2
----
-20914

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT NULLIF ( COUNT( * ), + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-261
SELECT NULLIF ( COUNT ( * ), + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-262
SELECT ALL + SUM( 62 ), - 77 * - 72 AS col1
----
62
5544

skipif mysql # not compatible
query II rowsort label-262
SELECT ALL + SUM ( 62 ), - 77 * - 72 AS col1
----
62
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT CASE - - 80 WHEN - 21 * - 10 + + 17 THEN - COUNT( DISTINCT - + 48 ) ELSE + + 98 - + 12 * - ( - + 66 ) + - - 27 END
----
-667

skipif mysql # not compatible
query I rowsort label-263
SELECT CASE - - 80 WHEN - 21 * - 10 + + 17 THEN - COUNT ( DISTINCT - + 48 ) ELSE + + 98 - + 12 * - ( - + 66 ) + - - 27 END
----
-667

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

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL + COUNT ( DISTINCT - - 38 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-265
SELECT - ( 35 ) * - 86 * - - 83 - + + COUNT( * ) - ( - 24 ) + - 87 DIV + 95 AS col1
----
249853

skipif mysql # not compatible
query I rowsort label-265
SELECT - ( 35 ) * - 86 * - - 83 - + + COUNT ( * ) - ( - 24 ) + - 87 / + 95 AS col1
----
249853

query I rowsort
SELECT - 53 * - 1 col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT ALL - COALESCE ( - 0, + 2 * - MIN( - + 75 ) + + 80 ) * - 32 - - 21
----
21

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL - COALESCE ( - 0, + 2 * - MIN ( - + 75 ) + + 80 ) * - 32 - - 21
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-268
SELECT - 71 - - + NULLIF ( + - 67, + 13 ) DIV - 14 col2
----
-67

skipif mysql # not compatible
query I rowsort label-268
SELECT - 71 - - + NULLIF ( + - 67, + 13 ) / - 14 col2
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-269
SELECT ALL 77 DIV + ( + 23 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL 77 / + ( + 23 ) AS col1
----
3

query II rowsort
SELECT + ( + 18 ) AS col2, + 92 * - 8 AS col1
----
18
-736

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

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

query II rowsort
SELECT 69 * - 24 * + 48 + + - 44 col2, ( ( ( + 88 ) ) )
----
-79532
88

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT + 35 + SUM( - 19 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-273
SELECT + 35 + SUM ( - 19 ) AS col2
----
16

query I rowsort
SELECT - 11 + + + 21 AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-275
SELECT - COUNT( * ) - 82 * - CASE - - 17 WHEN - 76 * + + 38 THEN NULL ELSE + + 37 END / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-275
SELECT - COUNT ( * ) - 82 * - CASE - - 17 WHEN - 76 * + + 38 THEN NULL ELSE + + 37 END / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 34 * - - 87 * 82 + + 40 AS col2
----
242596

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT - 87 + + COUNT( DISTINCT 4 )
----
-86

skipif mysql # not compatible
query I rowsort label-277
SELECT - 87 + + COUNT ( DISTINCT 4 )
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-278
SELECT ALL + 56 * - CAST( 14 AS SIGNED ) + - + 33
----
-817

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL + 56 * - CAST ( 14 AS INTEGER ) + - + 33
----
-817

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

query I rowsort
SELECT ALL + 34 + - - 67
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-281
SELECT ALL - 70 + + COUNT( * ) + 39 * - NULLIF ( - 24, 18 * CAST( NULL AS SIGNED ) ) + - ( 16 ) + 99 + 77 * + 56 col1
----
5262

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL - 70 + + COUNT ( * ) + 39 * - NULLIF ( - 24, 18 * CAST ( NULL AS INTEGER ) ) + - ( 16 ) + 99 + 77 * + 56 col1
----
5262

query I rowsort
SELECT - 57 + + + 27 AS col0
----
-30

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

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

query I rowsort
SELECT - - 97 + 23 * - 2
----
51

query II rowsort
SELECT ALL - + 33 + + 56 AS col0, 15 + 40 + 34 * + - 17 * 9 + + 0
----
23
-5147

onlyif mysql # aggregate syntax: 
query II rowsort label-286
SELECT ALL - + 57 * - 94 AS col2, - COUNT( * ) + + - 5 - + + 87
----
5358
-93

skipif mysql # not compatible
query II rowsort label-286
SELECT ALL - + 57 * - 94 AS col2, - COUNT ( * ) + + - 5 - + + 87
----
5358
-93

query I rowsort
SELECT - + 20 + + 88 * + - 32 AS col2
----
-2836

query I rowsort
SELECT ALL + 34 - + 35 - - 1 + - 38 + + 97 + - ( + 75 ) + - 93
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT ALL + COUNT( 35 ) - - - 42
----
-41

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL + COUNT ( 35 ) - - - 42
----
-41

query I rowsort
SELECT - + 70 * + 11
----
-770

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

skipif mysql # not compatible
query I rowsort label-291
SELECT + 39 + - ( - CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-292
SELECT + + COALESCE ( + - 11, + + 78 ) DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-292
SELECT + + COALESCE ( + - 11, + + 78 ) / - 35
----
0

query I rowsort
SELECT - 96 * - 80 + 40
----
7720

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT 4 * + COUNT( * ) * 69 + + 12
----
288

skipif mysql # not compatible
query I rowsort label-294
SELECT 4 * + COUNT ( * ) * 69 + + 12
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT 93 * + - 27 + + + 70 + - 12 + + + COALESCE ( 66, + COUNT( * ) + COUNT( * ) + - - 98 * - - 72 ) + - 17 * 71 AS col2
----
-3594

skipif mysql # not compatible
query I rowsort label-295
SELECT 93 * + - 27 + + + 70 + - 12 + + + COALESCE ( 66, + COUNT ( * ) + COUNT ( * ) + - - 98 * - - 72 ) + - 17 * 71 AS col2
----
-3594

onlyif mysql # DIV for integer division: 
query I rowsort label-296
SELECT DISTINCT + 82 DIV + 76
----
1

skipif mysql # not compatible
query I rowsort label-296
SELECT DISTINCT + 82 / + 76
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-297
SELECT + MIN( - 66 ), - 94 AS col2
----
-66
-94

skipif mysql # not compatible
query II rowsort label-297
SELECT + MIN ( - 66 ), - 94 AS col2
----
-66
-94

query I rowsort
SELECT - 61 * + 3 + + 90 AS col1
----
-93

query I rowsort
SELECT ALL 63 * + 10 AS col2
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT + - 44 * + 52 + - + COUNT( * ) AS col2
----
-2289

skipif mysql # not compatible
query I rowsort label-300
SELECT + - 44 * + 52 + - + COUNT ( * ) AS col2
----
-2289

onlyif mysql # DIV for integer division: 
query I rowsort label-301
SELECT ALL - - 73 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL - - 73 / + 85
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-302
SELECT ALL 39 DIV + - 60 - + 25 * 28 AS col1
----
-700

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL 39 / + - 60 - + 25 * 28 AS col1
----
-700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-303
SELECT ALL CAST( + 48 AS SIGNED ) * - - 14 + - 98 AS col2
----
574

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL CAST ( + 48 AS INTEGER ) * - - 14 + - 98 AS col2
----
574

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT - 1 * + 67 * - + 23 + - ( ( - COUNT( * ) ) )
----
1542

skipif mysql # not compatible
query I rowsort label-304
SELECT - 1 * + 67 * - + 23 + - ( ( - COUNT ( * ) ) )
----
1542

query I rowsort
SELECT - COALESCE ( 21, - 67 ) * - 99 + + 7
----
2086

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

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL 36 * + COUNT ( 90 ) AS col1
----
36

query I rowsort
SELECT 94 * 26
----
2444

query I rowsort
SELECT 30 + + 41
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT ALL NULLIF ( - 17, 42 * - - MAX( DISTINCT + + ( 75 ) ) / 81 ) + + + 3 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL NULLIF ( - 17, 42 * - - MAX ( DISTINCT + + ( 75 ) ) / 81 ) + + + 3 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-310
SELECT DISTINCT - 78 AS col0, + 41 + - MAX( + 48 ) AS col0
----
-78
-7

skipif mysql # not compatible
query II rowsort label-310
SELECT DISTINCT - 78 AS col0, + 41 + - MAX ( + 48 ) AS col0
----
-78
-7

query I rowsort
SELECT 19 * 40
----
760

query II rowsort
SELECT DISTINCT 41 + - 78 - + 50 AS col2, + 66 AS col2
----
-87
66

query II rowsort
SELECT ALL - 2 + - 34 * + 21 * - 98 - + 29 AS col0, - 70 AS col2
----
69941
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT DISTINCT - NULLIF ( + 61, MIN( 16 ) )
----
-61

skipif mysql # not compatible
query I rowsort label-314
SELECT DISTINCT - NULLIF ( + 61, MIN ( 16 ) )
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-315
SELECT DISTINCT COUNT( * ) DIV + 38 * + 75 * 52 * - 27 col2, ( + 95 ) col1
----
0
95

skipif mysql # not compatible
query II rowsort label-315
SELECT DISTINCT COUNT ( * ) / + 38 * + 75 * 52 * - 27 col2, ( + 95 ) col1
----
0
95

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT 64 * COUNT( * ) * 50
----
3200

skipif mysql # not compatible
query I rowsort label-316
SELECT 64 * COUNT ( * ) * 50
----
3200

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT ALL COUNT( * ) + - - 26 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-317
SELECT ALL COUNT ( * ) + - - 26 AS col0
----
27

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

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

query I rowsort
SELECT - 25 * - 7 * - + ( + 84 ) * 87 * + - ( 47 )
----
60108300

query I rowsort
SELECT 3 - + 74 AS col2
----
-71

query I rowsort
SELECT ALL + + 5 * - 47
----
-235

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT 49 - + MIN( + 74 ) * - 50 AS col2
----
3749

skipif mysql # not compatible
query I rowsort label-322
SELECT 49 - + MIN ( + 74 ) * - 50 AS col2
----
3749

query I rowsort
SELECT ALL + 85 - 27 AS col0
----
58

query I rowsort
SELECT ALL + 5 - + - 83 * ( 92 ) - + 80
----
7561

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT 18 - COUNT( * ) col0
----
17

skipif mysql # not compatible
query I rowsort label-325
SELECT 18 - COUNT ( * ) col0
----
17

query I rowsort
SELECT - 41 - 64
----
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-327
SELECT ALL + - 51 - + 21 + - SUM( DISTINCT - - 3 ) * - 84 AS col1, 33 AS col0
----
180
33

skipif mysql # not compatible
query II rowsort label-327
SELECT ALL + - 51 - + 21 + - SUM ( DISTINCT - - 3 ) * - 84 AS col1, 33 AS col0
----
180
33

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

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

query II rowsort
SELECT 97 * + 2 + 23 col1, + 48
----
217
48

query I rowsort
SELECT 41 * + 83
----
3403

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT ALL - MAX( DISTINCT + ( - 71 ) ) * + + COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL - MAX ( DISTINCT + ( - 71 ) ) * + + COUNT ( * ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT - COUNT( * ) + - 46 + 18 * + - 36 * 67 * - + 76 + 95
----
3299664

skipif mysql # not compatible
query I rowsort label-332
SELECT - COUNT ( * ) + - 46 + 18 * + - 36 * 67 * - + 76 + 95
----
3299664

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT DISTINCT - 20 * - COUNT( * ) col1
----
20

skipif mysql # not compatible
query I rowsort label-333
SELECT DISTINCT - 20 * - COUNT ( * ) col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT NULLIF ( - 29, + + COALESCE ( - - COALESCE ( 85, 53 ), - COALESCE ( + 83, - + 16 + + 54 - SUM( ALL - 15 ) * + - 20 * + - 20 * - 61 ), + ( + + 87 ) ) * + + 22 + + 82 * - CASE - + 13 WHEN + COUNT( * ) * 52 + - - 11 + - - 71 + + COUNT( * ) THEN - - 50 * 67 + - 15 + 6 WHEN + 45 + - + 7 - - 39 THEN - 43 - + ( - + 78 ) WHEN 96 THEN + 60 END ) * 7 + SUM( 81 ) + + 69
----
-53

skipif mysql # not compatible
query I rowsort label-334
SELECT NULLIF ( - 29, + + COALESCE ( - - COALESCE ( 85, 53 ), - COALESCE ( + 83, - + 16 + + 54 - SUM ( ALL - 15 ) * + - 20 * + - 20 * - 61 ), + ( + + 87 ) ) * + + 22 + + 82 * - CASE - + 13 WHEN + COUNT ( * ) * 52 + - - 11 + - - 71 + + COUNT ( * ) THEN - - 50 * 67 + - 15 + 6 WHEN + 45 + - + 7 - - 39 THEN - 43 - + ( - + 78 ) WHEN 96 THEN + 60 END ) * 7 + SUM ( 81 ) + + 69
----
-53

query II rowsort
SELECT ALL - 7 AS col2, - 65 AS col1
----
-7
-65

query I rowsort
SELECT DISTINCT - 51 * - 72 * + 64 AS col2
----
235008

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT 94 + + ( + COALESCE ( + COUNT( * ), 82, + ( 36 ) * - 85 + - + COUNT( * ) ) )
----
95

skipif mysql # not compatible
query I rowsort label-337
SELECT 94 + + ( + COALESCE ( + COUNT ( * ), 82, + ( 36 ) * - 85 + - + COUNT ( * ) ) )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-338
SELECT ALL + COUNT( * ) + - 80 * COUNT( DISTINCT - 50 ) AS col0, + 7 AS col0
----
-79
7

skipif mysql # not compatible
query II rowsort label-338
SELECT ALL + COUNT ( * ) + - 80 * COUNT ( DISTINCT - 50 ) AS col0, + 7 AS col0
----
-79
7

query II rowsort
SELECT 10 + + - 78 AS col1, 28 + 84
----
-68
112

query II rowsort
SELECT + 9, 7 AS col2
----
9
7

query II rowsort
SELECT DISTINCT - 81, 79 AS col2
----
-81
79

query I rowsort
SELECT - 77 * 48 * 27 + + ( - 4 )
----
-99796

query I rowsort
SELECT ALL + 33 + - 81 + - - 95
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-344
SELECT 6 * + COUNT( * ) DIV - 37 + + 1 col1, - 19 + - 15 AS col2
----
1
-34

skipif mysql # not compatible
query II rowsort label-344
SELECT 6 * + COUNT ( * ) / - 37 + + 1 col1, - 19 + - 15 AS col2
----
1
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT ALL 0 + + COUNT( * ) - - 13 * + 12
----
157

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL 0 + + COUNT ( * ) - - 13 * + 12
----
157

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT ALL 76 + - NULLIF ( + - CASE - COUNT( * ) WHEN + 9 / - 6 * + 86 THEN + ( - - 41 ) END, - + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL 76 + - NULLIF ( + - CASE - COUNT ( * ) WHEN + 9 / - 6 * + 86 THEN + ( - - 41 ) END, - + 97 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-348
SELECT + 31, + SUM( + 53 ) AS col1
----
31
53

skipif mysql # not compatible
query II rowsort label-348
SELECT + 31, + SUM ( + 53 ) AS col1
----
31
53

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT DISTINCT MAX( ALL + 21 ) + - + 86 + + COALESCE ( 17, + 78, 33 * + 73, - 49 ) + + 25 col1
----
-23

skipif mysql # not compatible
query I rowsort label-349
SELECT DISTINCT MAX ( ALL + 21 ) + - + 86 + + COALESCE ( 17, + 78, 33 * + 73, - 49 ) + + 25 col1
----
-23

query I rowsort
SELECT 43 * + 79 + - 24
----
3373

query II rowsort
SELECT 44 + - - 35 + - 9 * - 80 AS col1, + 50
----
799
50

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

skipif mysql # not compatible
query I rowsort label-352
SELECT MAX ( - + CAST ( - 90 AS INTEGER ) ) * COUNT ( * ) AS col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-353
SELECT COALESCE ( 67, + 0 ) + - - 48 + + 20 + + COUNT( * ) + + 54 DIV + + 65 * ( - + 9 ) + 86 + - 40
----
182

skipif mysql # not compatible
query I rowsort label-353
SELECT COALESCE ( 67, + 0 ) + - - 48 + + 20 + + COUNT ( * ) + + 54 / + + 65 * ( - + 9 ) + 86 + - 40
----
182

query I rowsort
SELECT ALL - + 3 - + 57 AS col0
----
-60

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

query I rowsort
SELECT 87 + 51 AS col1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT MIN( - 63 ) * 84 AS col2
----
-5292

skipif mysql # not compatible
query I rowsort label-357
SELECT MIN ( - 63 ) * 84 AS col2
----
-5292

onlyif mysql # DIV for integer division: 
query I rowsort label-358
SELECT + 21 * - 53 - 5 + 51 DIV - - 10
----
-1113

skipif mysql # not compatible
query I rowsort label-358
SELECT + 21 * - 53 - 5 + 51 / - - 10
----
-1113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-359
SELECT DISTINCT + COALESCE ( - - 79, 30 * - 58 * + 17, CAST( - CASE + 56 WHEN - COALESCE ( - 80, - - 18 ) THEN + 87 * 98 * 3 + - 68 + - 74 END AS SIGNED ) ) DIV COUNT( * ), 81 AS col0
----
79
81

skipif mysql # not compatible
query II rowsort label-359
SELECT DISTINCT + COALESCE ( - - 79, 30 * - 58 * + 17, CAST ( - CASE + 56 WHEN - COALESCE ( - 80, - - 18 ) THEN + 87 * 98 * 3 + - 68 + - 74 END AS INTEGER ) ) / COUNT ( * ), 81 AS col0
----
79
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT - NULLIF ( - 56, + - COUNT( * ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-361
SELECT - NULLIF ( - 56, + - COUNT ( * ) ) AS col0
----
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT ALL + + 98 * + COALESCE ( - ( - - 81 ), + ( - MIN( - 98 ) ), COALESCE ( - 89, + COUNT( * ), + - 37 + + + 30 ) )
----
-7938

skipif mysql # not compatible
query I rowsort label-363
SELECT ALL + + 98 * + COALESCE ( - ( - - 81 ), + ( - MIN ( - 98 ) ), COALESCE ( - 89, + COUNT ( * ), + - 37 + + + 30 ) )
----
-7938

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

skipif mysql # not compatible
query I rowsort label-364
SELECT 97 + - CAST ( NULL AS INTEGER ) / + 18
----
NULL

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

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

query II rowsort
SELECT DISTINCT 77, 85 * + + NULLIF ( - ( - 40 ), + 30 ) + + 0 + - 46 AS col1
----
77
3354

query I rowsort
SELECT ALL - - 10 + - - 13
----
23

query I rowsort
SELECT - + 36 + - 4 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT + NULLIF ( + + 57, 41 + + COALESCE ( - + 12, + 98, - 85, + MIN( - + 13 ) ) ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-369
SELECT + NULLIF ( + + 57, 41 + + COALESCE ( - + 12, + 98, - 85, + MIN ( - + 13 ) ) ) AS col2
----
57

query I rowsort
SELECT - 36 * - 82 AS col0
----
2952

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

query I rowsort
SELECT ALL - ( + ( - 57 ) ) * - 28 + - 78 AS col2
----
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT DISTINCT + 29 * + - MAX( 44 ) AS col1
----
-1276

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT + 29 * + - MAX ( 44 ) AS col1
----
-1276

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT ALL + 74 * COUNT( * ) + + 93
----
167

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL + 74 * COUNT ( * ) + + 93
----
167

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT ALL COUNT( * ) * - 92 + - 96 AS col2
----
-188

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL COUNT ( * ) * - 92 + - 96 AS col2
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT ALL + 58 * 93 + + 75 * - COUNT( * ) AS col1
----
5319

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL + 58 * 93 + + 75 * - COUNT ( * ) AS col1
----
5319

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT NULLIF ( 45, - ( COUNT( * ) ) - - 79 + + MIN( - 14 ) - - + SUM( DISTINCT + 79 ) * + 79 * + + 18 / - 91 )
----
45

skipif mysql # not compatible
query I rowsort label-378
SELECT NULLIF ( 45, - ( COUNT ( * ) ) - - 79 + + MIN ( - 14 ) - - + SUM ( DISTINCT + 79 ) * + 79 * + + 18 / - 91 )
----
45

query I rowsort
SELECT NULLIF ( - 15, 9 )
----
-15

query I rowsort
SELECT + ( ( 12 ) ) * + 1 + - 55 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT DISTINCT MAX( DISTINCT - - 22 ) * + 56 - + NULLIF ( + - COALESCE ( + - ( 51 ), - - 53 ), + 36 + + COALESCE ( + 73, - - 24 ) * 29 ) - + - 37 * + MIN( ALL - - 70 ) / + - COUNT( * ) + + 10 - - CASE + 20 WHEN + + 97 THEN - 73 WHEN - 12 THEN 41 - + - 53 - + 22 WHEN + 80 THEN NULL END / - + COUNT( * ) * + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-381
SELECT DISTINCT MAX ( DISTINCT - - 22 ) * + 56 - + NULLIF ( + - COALESCE ( + - ( 51 ), - - 53 ), + 36 + + COALESCE ( + 73, - - 24 ) * 29 ) - + - 37 * + MIN ( ALL - - 70 ) / + - COUNT ( * ) + + 10 - - CASE + 20 WHEN + + 97 THEN - 73 WHEN - 12 THEN 41 - + - 53 - + 22 WHEN + 80 THEN NULL END / - + COUNT ( * ) * + 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-382
SELECT - 69 DIV 5 * - - COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-382
SELECT - 69 / 5 * - - COUNT ( * ) AS col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-383
SELECT + + 58 * - - 67 * + 62 + - - 61 * - CAST( + 57 AS SIGNED ) AS col0
----
237455

skipif mysql # not compatible
query I rowsort label-383
SELECT + + 58 * - - 67 * + 62 + - - 61 * - CAST ( + 57 AS INTEGER ) AS col0
----
237455

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT ALL + COUNT( * ) * - + 74 * - 5 AS col1
----
370

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL + COUNT ( * ) * - + 74 * - 5 AS col1
----
370

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-386
SELECT ALL CAST( + + 30 AS SIGNED ) * + + 90 AS col1
----
2700

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL CAST ( + + 30 AS INTEGER ) * + + 90 AS col1
----
2700

query I rowsort
SELECT - - 22 - - + ( 34 ) * + 11 + + 69 * + 54 AS col2
----
4122

query I rowsort
SELECT + ( + CASE + 42 WHEN 23 - 90 + - + 36 THEN NULL WHEN + + 7 THEN - 63 END ) + 71 col1
----
NULL

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

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

query I rowsort
SELECT + 85 * + 21 AS col2
----
1785

query I rowsort
SELECT + 90 + + - 90
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-392
SELECT ALL + 51 + + 93 + - - 73 + - COUNT( ( - 96 ) ) * - 41 AS col2, COUNT( * ) AS col0
----
258
1

skipif mysql # not compatible
query II rowsort label-392
SELECT ALL + 51 + + 93 + - - 73 + - COUNT ( ( - 96 ) ) * - 41 AS col2, COUNT ( * ) AS col0
----
258
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT ALL COUNT( * ) * COUNT( - + 42 )
----
1

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL COUNT ( * ) * COUNT ( - + 42 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT DISTINCT 65 + - 91 / - ( + - 15 ) + ( - 54 ) * + ( - NULLIF ( + 34, - 31 + + 40 ) ) * CASE - 89 WHEN + - 15 + 56 THEN + - COUNT( * ) * ( + - 2 ) + - 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT 65 + - 91 / - ( + - 15 ) + ( - 54 ) * + ( - NULLIF ( + 34, - 31 + + 40 ) ) * CASE - 89 WHEN + - 15 + 56 THEN + - COUNT ( * ) * ( + - 2 ) + - 48 END
----
NULL

query I rowsort
SELECT + 71 + 38 AS col1
----
109

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-397
SELECT ALL 77 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL 77 * - CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-399
SELECT 43 DIV + 59 + - + 2
----
-2

skipif mysql # not compatible
query I rowsort label-399
SELECT 43 / + 59 + - + 2
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-400
SELECT ALL + 14 DIV - 43 - - + 41 AS col0, + 89 AS col0
----
41
89

skipif mysql # not compatible
query II rowsort label-400
SELECT ALL + 14 / - 43 - - + 41 AS col0, + 89 AS col0
----
41
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-401
SELECT + 29 + - COALESCE ( + ( + + 12 ), - 70 + - - NULLIF ( - 91, + 52 ), CASE + 10 WHEN - 20 THEN - 1 ELSE NULL END / + 91 ) * + SUM( - NULLIF ( 65, - - 93 ) ) * + + CAST( NULL AS SIGNED ) AS col1, - 49 + + 44 AS col0
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-401
SELECT + 29 + - COALESCE ( + ( + + 12 ), - 70 + - - NULLIF ( - 91, + 52 ), CASE + 10 WHEN - 20 THEN - 1 ELSE NULL END / + 91 ) * + SUM ( - NULLIF ( 65, - - 93 ) ) * + + CAST ( NULL AS INTEGER ) AS col1, - 49 + + 44 AS col0
----
NULL
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-402
SELECT + 71 AS col2, - 30 * - CASE - 17 WHEN - + 82 THEN NULL WHEN ( - - 45 ) + + ( - ( + 71 ) ) + 34 * + - 57 * - 15 + + ( 35 ) + - 73 / + CASE - 69 WHEN - ( + 53 ) THEN + 38 WHEN + ( + COUNT( * ) ) THEN NULL ELSE 42 END * - 86 * 6 + + 36 + + 68 - - + 94 * CASE + CASE ( - 28 ) WHEN 33 THEN - + 57 ELSE NULL END WHEN + - COUNT( * ) THEN + 65 END * 89 THEN + NULLIF ( 31, 5 * - 24 + - - 6 ) WHEN + 91 THEN + CAST( NULL AS SIGNED ) ELSE 29 END * + 79 AS col1
----
71
68730

skipif mysql # not compatible
query II rowsort label-402
SELECT + 71 AS col2, - 30 * - CASE - 17 WHEN - + 82 THEN NULL WHEN ( - - 45 ) + + ( - ( + 71 ) ) + 34 * + - 57 * - 15 + + ( 35 ) + - 73 / + CASE - 69 WHEN - ( + 53 ) THEN + 38 WHEN + ( + COUNT ( * ) ) THEN NULL ELSE 42 END * - 86 * 6 + + 36 + + 68 - - + 94 * CASE + CASE ( - 28 ) WHEN 33 THEN - + 57 ELSE NULL END WHEN + - COUNT ( * ) THEN + 65 END * 89 THEN + NULLIF ( 31, 5 * - 24 + - - 6 ) WHEN + 91 THEN + CAST ( NULL AS INTEGER ) ELSE 29 END * + 79 AS col1
----
71
68730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-403
SELECT - COUNT( * ) DIV + MIN( ALL 76 ) * + - 79 * MAX( ALL + + 88 ) + + - MAX( + NULLIF ( ( - 89 ), 23 ) )
----
89

skipif mysql # not compatible
query I rowsort label-403
SELECT - COUNT ( * ) / + MIN ( ALL 76 ) * + - 79 * MAX ( ALL + + 88 ) + + - MAX ( + NULLIF ( ( - 89 ), 23 ) )
----
89

query I rowsort
SELECT + 22 + - 1 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT + MIN( ALL - - 95 ) * + 98
----
9310

skipif mysql # not compatible
query I rowsort label-405
SELECT + MIN ( ALL - - 95 ) * + 98
----
9310

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-406
SELECT CAST( NULL AS DECIMAL ) AS col1, + ( - 82 ) * 14 * 97 * + + 19 + - 7
----
NULL
-2115771

skipif mysql # not compatible
query II rowsort label-406
SELECT CAST ( NULL AS REAL ) AS col1, + ( - 82 ) * 14 * 97 * + + 19 + - 7
----
NULL
-2115771

query I rowsort
SELECT ALL + 71 * + + 59 * 44
----
184316

onlyif mysql # DIV for integer division: 
query I rowsort label-408
SELECT ALL 62 DIV 50 - 24 col0
----
-23

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL 62 / 50 - 24 col0
----
-23

query I rowsort
SELECT ALL + 81 * + - 59
----
-4779

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT ALL + ( - NULLIF ( CASE WHEN NOT NULL NOT IN ( 64, + 1, 57 / + 77, + 64 * + 19, + 18 * + 90 ) THEN + COUNT( DISTINCT 32 ) * 17 END, COUNT( * ) / + 60 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-410
SELECT ALL + ( - NULLIF ( CASE WHEN NOT NULL NOT IN ( 64, + 1, 57 / + 77, + 64 * + 19, + 18 * + 90 ) THEN + COUNT ( DISTINCT 32 ) * 17 END, COUNT ( * ) / + 60 ) )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-412
SELECT - 3 DIV ( 21 )
----
0

skipif mysql # not compatible
query I rowsort label-412
SELECT - 3 / ( 21 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-413
SELECT ALL - - 31 DIV 15 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL - - 31 / 15 AS col2
----
2

query I rowsort
SELECT DISTINCT - - 14 + + - 66 col2
----
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT DISTINCT + - COUNT( * ) + + 27
----
26

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT + - COUNT ( * ) + + 27
----
26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-417
SELECT - NULLIF ( - CAST( 9 AS SIGNED ), - - 66 DIV - - CAST( NULL AS SIGNED ) + + - 97 - + + 16 ) DIV - 11 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-417
SELECT - NULLIF ( - CAST ( 9 AS INTEGER ), - - 66 / - - CAST ( NULL AS INTEGER ) + + - 97 - + + 16 ) / - 11 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-418
SELECT + 10 + + 68 + 70 + - - CAST( - 52 AS SIGNED ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-418
SELECT + 10 + + 68 + 70 + - - CAST ( - 52 AS INTEGER ) AS col1
----
96

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

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

query II rowsort
SELECT ( - + 55 ) + - 85, + ( + - 36 ) col1
----
-140
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-421
SELECT ALL 2 + - NULLIF ( - + NULLIF ( + + CAST( + 25 AS SIGNED ), NULLIF ( ( 88 ), + COUNT( * ) + - 84 + 21 ) * + + 67 / - 29 * 68 * - 53 + + - COUNT( * ) / + 46 ), - 63 * + 38 + + ( - - 14 ) ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL 2 + - NULLIF ( - + NULLIF ( + + CAST ( + 25 AS INTEGER ), NULLIF ( ( 88 ), + COUNT ( * ) + - 84 + 21 ) * + + 67 / - 29 * 68 * - 53 + + - COUNT ( * ) / + 46 ), - 63 * + 38 + + ( - - 14 ) ) AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-422
SELECT DISTINCT COALESCE ( - 75, + 72 * - 68, + CASE + 15 WHEN + 22 - - 20 THEN - ( - CAST( + 2 AS SIGNED ) ) WHEN - 21 + 8 * + 36 THEN NULL END DIV + COUNT( * ) ) - 56
----
-131

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT COALESCE ( - 75, + 72 * - 68, + CASE + 15 WHEN + 22 - - 20 THEN - ( - CAST ( + 2 AS INTEGER ) ) WHEN - 21 + 8 * + 36 THEN NULL END / + COUNT ( * ) ) - 56
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT 58 * CASE 47 WHEN + + 80 / - - 29 * + 97 + - 30 THEN + - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-423
SELECT 58 * CASE 47 WHEN + + 80 / - - 29 * + 97 + - 30 THEN + - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT DISTINCT 76 - - - COUNT( * ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT 76 - - - COUNT ( * ) AS col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-425
SELECT 48 DIV - - NULLIF ( 61, + 0 + - - ( MIN( + 33 ) ) + - 57 + + 75 + + 98 * 41 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-425
SELECT 48 / - - NULLIF ( 61, + 0 + - - ( MIN ( + 33 ) ) + - 57 + + 75 + + 98 * 41 ) AS col1
----
0

query II rowsort
SELECT DISTINCT 52 * - 36 AS col0, 58 AS col2
----
-1872
58

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT DISTINCT COUNT( * ) * - 59 * + 6
----
-354

skipif mysql # not compatible
query I rowsort label-427
SELECT DISTINCT COUNT ( * ) * - 59 * + 6
----
-354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-428
SELECT ( 11 ) * CAST( NULL AS SIGNED ) * + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-428
SELECT ( 11 ) * CAST ( NULL AS INTEGER ) * + 34 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT MIN( DISTINCT + - NULLIF ( + 22, - - 86 + + 79 ) ) * - NULLIF ( + CASE - 52 WHEN - - 36 THEN - 0 WHEN 54 * 79 THEN NULL END, - 25 / + MIN( DISTINCT - + 68 ) * - - 67 * - - 1 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-429
SELECT MIN ( DISTINCT + - NULLIF ( + 22, - - 86 + + 79 ) ) * - NULLIF ( + CASE - 52 WHEN - - 36 THEN - 0 WHEN 54 * 79 THEN NULL END, - 25 / + MIN ( DISTINCT - + 68 ) * - - 67 * - - 1 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 16 * + ( - 52 ) col1
----
-832

onlyif mysql # DIV for integer division: 
query I rowsort label-431
SELECT 80 * 81 DIV 37 AS col2
----
175

skipif mysql # not compatible
query I rowsort label-431
SELECT 80 * 81 / 37 AS col2
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-432
SELECT - 83 * + + 7 + 29 - - 11 / CAST( NULL AS SIGNED ) - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-432
SELECT - 83 * + + 7 + 29 - - 11 / CAST ( NULL AS INTEGER ) - 78 AS col2
----
NULL

query II rowsort
SELECT 41 * + 16 col2, 53 AS col1
----
656
53

query I rowsort
SELECT - 92 * - 9
----
828

query I rowsort
SELECT ALL - 37 + + 2 AS col1
----
-35

query I rowsort
SELECT + 58 * 9
----
522

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-437
SELECT ( + COALESCE ( + COUNT( + 54 ), - COUNT( * ) DIV 89 + - 18 - - - 97 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-437
SELECT ( + COALESCE ( + COUNT ( + 54 ), - COUNT ( * ) / 89 + - 18 - - - 97 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-438
SELECT ALL + 45 + - + COALESCE ( + 19, + + 18 ) - 10 + - 67 DIV - COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL + 45 + - + COALESCE ( + 19, + + 18 ) - 10 + - 67 / - COUNT ( * ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT ALL - - MAX( - 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL - - MAX ( - 30 ) AS col1
----
-30

query I rowsort
SELECT - 25 + + 39 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT - SUM( - + 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-441
SELECT - SUM ( - + 21 ) AS col2
----
21

query I rowsort
SELECT ALL - - 37 + - 22 * + 73
----
-1569

query I rowsort
SELECT - ( ( + + 19 ) ) + 87 AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-444
SELECT 10 * CAST( + ( 58 ) AS SIGNED ) * - 44
----
-25520

skipif mysql # not compatible
query I rowsort label-444
SELECT 10 * CAST ( + ( 58 ) AS INTEGER ) * - 44
----
-25520

query I rowsort
SELECT + 74 + - 42 col2
----
32

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-447
SELECT ALL - SUM( 10 ) - + 69 + 59 * + - CAST( - 46 AS SIGNED ) AS col1
----
2635

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL - SUM ( 10 ) - + 69 + 59 * + - CAST ( - 46 AS INTEGER ) AS col1
----
2635

query I rowsort
SELECT ALL 77 * 0 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-449
SELECT ALL 36 - + 95 + + + ( 21 ) DIV - + 25 + + 57 AS col2, - 91
----
-2
-91

skipif mysql # not compatible
query II rowsort label-449
SELECT ALL 36 - + 95 + + + ( 21 ) / - + 25 + + 57 AS col2, - 91
----
-2
-91

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-452
SELECT ALL AVG ( - - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL AVG ( - - CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT 38 * - 3 AS col2
----
-114

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

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL COUNT ( DISTINCT + 53 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-455
SELECT DISTINCT - MAX( ALL - CAST( NULL AS SIGNED ) ) * 74 + - 99 + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT - MAX ( ALL - CAST ( NULL AS INTEGER ) ) * 74 + - 99 + + 81
----
NULL

query I rowsort
SELECT 64 * - 72 AS col0
----
-4608

onlyif mysql # DIV for integer division: 
query I rowsort label-457
SELECT 83 DIV ( - 91 )
----
0

skipif mysql # not compatible
query I rowsort label-457
SELECT 83 / ( - 91 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-458
SELECT CASE - 79 WHEN - 18 / + - 47 + 76 THEN NULL WHEN NULLIF ( 54, COUNT( * ) ) + - 5 THEN - + 98 * + 15 * COUNT( * ) * + 61 WHEN - NULLIF ( + - 73, - - 87 * + MIN( - 85 ) ) * + 14 * - 33 THEN NULL ELSE NULL END, + 81 + + 45 + - 41 AS col0
----
NULL
85

skipif mysql # not compatible
query II rowsort label-458
SELECT CASE - 79 WHEN - 18 / + - 47 + 76 THEN NULL WHEN NULLIF ( 54, COUNT ( * ) ) + - 5 THEN - + 98 * + 15 * COUNT ( * ) * + 61 WHEN - NULLIF ( + - 73, - - 87 * + MIN ( - 85 ) ) * + 14 * - 33 THEN NULL ELSE NULL END, + 81 + + 45 + - 41 AS col0
----
NULL
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-459
SELECT ALL - CASE 37 WHEN - 79 THEN - + 65 + - 38 ELSE NULL END * 9 * - 75 * + ( AVG ( - CAST( NULL AS SIGNED ) ) ) + 30 - + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL - CASE 37 WHEN - 79 THEN - + 65 + - 38 ELSE NULL END * 9 * - 75 * + ( AVG ( - CAST ( NULL AS INTEGER ) ) ) + 30 - + 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-460
SELECT + COUNT( * ) + SUM( ALL - 88 ) AS col1, CAST( NULL AS SIGNED ) AS col0
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-460
SELECT + COUNT ( * ) + SUM ( ALL - 88 ) AS col1, CAST ( NULL AS INTEGER ) AS col0
----
-87
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-461
SELECT CAST( NULL AS SIGNED ) / + COALESCE ( - 26, + + COALESCE ( 50, + 79 ), - 13 + - + 18 - + 15 + + - COUNT( * ) ) - + 59 + - + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-461
SELECT CAST ( NULL AS INTEGER ) / + COALESCE ( - 26, + + COALESCE ( 50, + 79 ), - 13 + - + 18 - + 15 + + - COUNT ( * ) ) - + 59 + - + 73
----
NULL

query II rowsort
SELECT DISTINCT 55 * - NULLIF ( 85, - 90 + - + 38 ) AS col0, 91 - - - 55 AS col0
----
-4675
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT DISTINCT - 9 * + 86 + - + 57 + COUNT( * ) AS col0
----
-830

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT - 9 * + 86 + - + 57 + COUNT ( * ) AS col0
----
-830

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-466
SELECT ALL + + ( + - MIN( + + 0 ) ) * - COUNT( * ) * + COUNT( * ) + 24 * - 8 * + + CASE - + 35 WHEN + 20 + 32 THEN NULL WHEN 27 + + 41 * - CAST( NULL AS SIGNED ) THEN 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL + + ( + - MIN ( + + 0 ) ) * - COUNT ( * ) * + COUNT ( * ) + 24 * - 8 * + + CASE - + 35 WHEN + 20 + 32 THEN NULL WHEN 27 + + 41 * - CAST ( NULL AS INTEGER ) THEN 51 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-467
SELECT ALL COALESCE ( - 38, - 87 DIV - 32 ) * - 65 + - 54
----
2416

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL COALESCE ( - 38, - 87 / - 32 ) * - 65 + - 54
----
2416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-468
SELECT + 9 DIV - 74 + MIN( ( + - ( 82 ) ) )
----
-82

skipif mysql # not compatible
query I rowsort label-468
SELECT + 9 / - 74 + MIN ( ( + - ( 82 ) ) )
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-469
SELECT + 78 + + + 37 DIV - + 84 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-469
SELECT + 78 + + + 37 / - + 84 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT + + 83 * - - 37 + + COUNT( * ) AS col2
----
3072

skipif mysql # not compatible
query I rowsort label-470
SELECT + + 83 * - - 37 + + COUNT ( * ) AS col2
----
3072

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT - MIN( 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-471
SELECT - MIN ( 99 )
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-472
SELECT - 93 * 83 + + 33 + COALESCE ( - + 53, - - COUNT( * ) + - ( CAST( - + 83 AS SIGNED ) ) + - 82 ) + COUNT( * )
----
-7738

skipif mysql # not compatible
query I rowsort label-472
SELECT - 93 * 83 + + 33 + COALESCE ( - + 53, - - COUNT ( * ) + - ( CAST ( - + 83 AS INTEGER ) ) + - 82 ) + COUNT ( * )
----
-7738

query I rowsort
SELECT - - 44 + + 90 col1
----
134

query II rowsort
SELECT 77 AS col1, + 11
----
77
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-475
SELECT + CAST( + - NULLIF ( + 65, + 85 ) AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-475
SELECT + CAST ( + - NULLIF ( + 65, + 85 ) AS INTEGER )
----
-65

query I rowsort
SELECT ALL - ( + 95 ) * + ( - 91 )
----
8645

query I rowsort
SELECT ALL - 56 - - 29 AS col0
----
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT ALL COUNT( * ) * - 3 * - 67 * - - 69
----
13869

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL COUNT ( * ) * - 3 * - 67 * - - 69
----
13869

query II rowsort
SELECT - 53 col1, 2
----
-53
2

query I rowsort
SELECT + 6 * - 8 * + - 2
----
96

query I rowsort
SELECT - 23 + - + 44
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT - 0 + + 84 + + - 51 + - CASE + 97 WHEN + 88 THEN + 3 - - 86 / + 54 - + MAX( ALL - 55 ) WHEN + 23 THEN NULL WHEN + 36 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-483
SELECT - 0 + + 84 + + - 51 + - CASE + 97 WHEN + 88 THEN + 3 - - 86 / + 54 - + MAX ( ALL - 55 ) WHEN + 23 THEN NULL WHEN + 36 THEN NULL END
----
NULL

query II rowsort
SELECT - 64 col2, - 31 AS col1
----
-64
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-485
SELECT ALL + 21 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL + 21 / 96
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-487
SELECT ALL - COUNT( * ) + - - 25 + - 35 DIV COUNT( * ) * - 4
----
164

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL - COUNT ( * ) + - - 25 + - 35 / COUNT ( * ) * - 4
----
164

query II rowsort
SELECT - 69 + + + 51 AS col2, + 3
----
-18
3

query II rowsort
SELECT 34 AS col1, 51 * + 86 * - + 52 * - 77 AS col1
----
34
17561544

onlyif mysql # DIV for integer division: 
query II rowsort label-490
SELECT ALL + 22 DIV 38 AS col2, 38
----
0
38

skipif mysql # not compatible
query II rowsort label-490
SELECT ALL + 22 / 38 AS col2, 38
----
0
38

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

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

query I rowsort
SELECT - ( - 36 ) + + - 43
----
-7

query II rowsort
SELECT ALL ( + 26 ) AS col1, + 54 AS col0
----
26
54

query I rowsort
SELECT - + 5 * + ( 57 ) - + 34 + 96 AS col0
----
-223

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

onlyif mysql # DIV for integer division: 
query I rowsort label-496
SELECT ALL + 12 DIV + - 53 + 57 col2
----
57

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL + 12 / + - 53 + 57 col2
----
57

query I rowsort
SELECT - 13 * - + ( - 60 ) AS col0
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT ALL + 98 / + CASE - + ( + + NULLIF ( + 68, - 21 ) ) WHEN + 22 THEN COUNT( * ) ELSE NULL END + + 76 + - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-498
SELECT ALL + 98 / + CASE - + ( + + NULLIF ( + 68, - 21 ) ) WHEN + 22 THEN COUNT ( * ) ELSE NULL END + + 76 + - 40 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-499
SELECT ALL + - 57 AS col1, - 87 DIV 40
----
-57
-2

skipif mysql # not compatible
query II rowsort label-499
SELECT ALL + - 57 AS col1, - 87 / 40
----
-57
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT ALL + + 26 DIV + - 54 + + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL + + 26 / + - 54 + + - 19
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-501
SELECT ALL + - 23, MIN( + 68 ) * - ( 81 ) + - ( + 27 ) DIV 82 + COUNT( * ) * ( - 24 ) AS col2
----
-23
-5532

skipif mysql # not compatible
query II rowsort label-501
SELECT ALL + - 23, MIN ( + 68 ) * - ( 81 ) + - ( + 27 ) / 82 + COUNT ( * ) * ( - 24 ) AS col2
----
-23
-5532

onlyif mysql # DIV for integer division: 
query I rowsort label-502
SELECT ALL - 97 * ( - 72 ) - + 9 DIV + 13
----
6984

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL - 97 * ( - 72 ) - + 9 / + 13
----
6984

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-503
SELECT - - 40 * + COALESCE ( COALESCE ( + 88, - - 8 ), ( + COUNT( * ) ) DIV 60, + 37 * 2 ) - - 54 + + 61 DIV 9 * 8 * - 85 - - + 14
----
-492

skipif mysql # not compatible
query I rowsort label-503
SELECT - - 40 * + COALESCE ( COALESCE ( + 88, - - 8 ), ( + COUNT ( * ) ) / 60, + 37 * 2 ) - - 54 + + 61 / 9 * 8 * - 85 - - + 14
----
-492

query I rowsort
SELECT + 85 * 27 * 6
----
13770

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-505
SELECT 62 * SUM( - + 69 ) - + CASE - ( - COUNT( * ) ) WHEN + COALESCE ( 36, 82 + + 59 ) + ( + COUNT( 25 ) ) THEN NULL WHEN - COUNT( * ) + - 42 + + 37 THEN NULL WHEN + + CAST( 90 AS DECIMAL ) THEN NULL ELSE - 37 END AS col0
----
-4241

skipif mysql # not compatible
query I rowsort label-505
SELECT 62 * SUM ( - + 69 ) - + CASE - ( - COUNT ( * ) ) WHEN + COALESCE ( 36, 82 + + 59 ) + ( + COUNT ( 25 ) ) THEN NULL WHEN - COUNT ( * ) + - 42 + + 37 THEN NULL WHEN + + CAST ( 90 AS REAL ) THEN NULL ELSE - 37 END AS col0
----
-4241

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-506
SELECT ALL - 93 * + - 16 DIV + - COUNT( * )
----
-1488

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL - 93 * + - 16 / + - COUNT ( * )
----
-1488

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

skipif mysql # not compatible
query I rowsort label-507
SELECT + CAST ( - - 0 AS INTEGER ) * 48 * 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT ALL + 3 * - + COUNT( * ) - - 57 * 21 + - 11
----
1183

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL + 3 * - + COUNT ( * ) - - 57 * 21 + - 11
----
1183

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT ALL + MAX( ALL - NULLIF ( - 47, - 20 - - 18 ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL + MAX ( ALL - NULLIF ( - 47, - 20 - - 18 ) ) AS col1
----
47

query I rowsort
SELECT + 54 * 46
----
2484

query I rowsort
SELECT + 13 + + 57 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT CASE - 99 WHEN + - 9 THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-513
SELECT CASE - 99 WHEN + - 9 THEN NULL ELSE COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-514
SELECT + 30 * + - 6 AS col0, 81 * 61 - 42 DIV - - 87 + + + MIN( 90 )
----
-180
5031

skipif mysql # not compatible
query II rowsort label-514
SELECT + 30 * + - 6 AS col0, 81 * 61 - 42 / - - 87 + + + MIN ( 90 )
----
-180
5031

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-516
SELECT + COUNT( * ) * + 38 col1, - 18
----
38
-18

skipif mysql # not compatible
query II rowsort label-516
SELECT + COUNT ( * ) * + 38 col1, - 18
----
38
-18

query I rowsort
SELECT + 59 + + 16 AS col2
----
75

query I rowsort
SELECT DISTINCT NULLIF ( - 50, + 68 ) AS col0
----
-50

query I rowsort
SELECT ALL + 26 * + 7 AS col2
----
182

query II rowsort
SELECT ALL 58 * + + 67 col0, + 85 AS col2
----
3886
85

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

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

query I rowsort
SELECT DISTINCT 93 + - NULLIF ( - 32, - 30 ) - + 70 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT ALL - COUNT( ALL - 68 ) + - 16 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL - COUNT ( ALL - 68 ) + - 16 AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-524
SELECT CAST( - COUNT( * ) AS SIGNED ) * + - 55 + - 66
----
-11

skipif mysql # not compatible
query I rowsort label-524
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + - 55 + - 66
----
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-525
SELECT 89 DIV + + 98, 49 * - 18 AS col0
----
0
-882

skipif mysql # not compatible
query II rowsort label-525
SELECT 89 / + + 98, 49 * - 18 AS col0
----
0
-882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-526
SELECT ALL 92 + + + COALESCE ( 80, 23 ) + 66 - ( NULLIF ( - + 41, CAST( - 54 AS SIGNED ) ) ) AS col0
----
279

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL 92 + + + COALESCE ( 80, 23 ) + 66 - ( NULLIF ( - + 41, CAST ( - 54 AS INTEGER ) ) ) AS col0
----
279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-527
SELECT ALL - COUNT( * ) + - + CAST( NULL AS SIGNED ) / - 29 * + + 5 / - 22 + AVG ( DISTINCT - CAST( + + 8 AS SIGNED ) ) * - CAST( + CASE + + 8 WHEN - 29 * ( CAST( - 80 AS DECIMAL ) ) THEN 42 END AS SIGNED ) / COUNT( * ) + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-527
SELECT ALL - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) / - 29 * + + 5 / - 22 + AVG ( DISTINCT - CAST ( + + 8 AS INTEGER ) ) * - CAST ( + CASE + + 8 WHEN - 29 * ( CAST ( - 80 AS REAL ) ) THEN 42 END AS INTEGER ) / COUNT ( * ) + 88 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT + 20 - + CASE 69 WHEN + 37 + COUNT( * ) THEN + ( 16 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-528
SELECT + 20 - + CASE 69 WHEN + 37 + COUNT ( * ) THEN + ( 16 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT DISTINCT - COALESCE ( COALESCE ( + 48, 12 * - + COUNT( * ) + - 84, - - 51 ), 90 * + + COUNT( * ), + COUNT( * ) + + 80 )
----
-48

skipif mysql # not compatible
query I rowsort label-529
SELECT DISTINCT - COALESCE ( COALESCE ( + 48, 12 * - + COUNT ( * ) + - 84, - - 51 ), 90 * + + COUNT ( * ), + COUNT ( * ) + + 80 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-530
SELECT ALL + + COUNT( * ) DIV 25 + 85 + + + 98 + - 27 * 98 * - - SUM( - 27 ) + + 79 DIV + + 94 * + + CAST( - - ( - COUNT( * ) ) AS SIGNED )
----
71625

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL + + COUNT ( * ) / 25 + 85 + + + 98 + - 27 * 98 * - - SUM ( - 27 ) + + 79 / + + 94 * + + CAST ( - - ( - COUNT ( * ) ) AS INTEGER )
----
71625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-531
SELECT + COALESCE ( - 80, + 30 * + CAST( NULL AS SIGNED ), + + 92 * + + 71 + NULLIF ( - 15, - 50 * - + MAX( ALL 52 ) DIV + AVG ( ALL + CAST( NULL AS SIGNED ) ) + - 51 + - 38 * 95 ) ) DIV - 43 + 15 + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-531
SELECT + COALESCE ( - 80, + 30 * + CAST ( NULL AS INTEGER ), + + 92 * + + 71 + NULLIF ( - 15, - 50 * - + MAX ( ALL 52 ) / + AVG ( ALL + CAST ( NULL AS INTEGER ) ) + - 51 + - 38 * 95 ) ) / - 43 + 15 + COUNT ( * )
----
17

query I rowsort
SELECT - - 7 * - 46 - + 74 AS col0
----
-396

query I rowsort
SELECT ALL + - 93 - - - 1 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT - - 78 * 65 + COUNT( * ) * - 89 AS col2
----
4981

skipif mysql # not compatible
query I rowsort label-534
SELECT - - 78 * 65 + COUNT ( * ) * - 89 AS col2
----
4981

query I rowsort
SELECT 17 * 47 * + 81 * - 73 + + - 82 + - 81 AS col1
----
-4724650

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT MIN( + - 65 ) + + 72
----
7

skipif mysql # not compatible
query I rowsort label-536
SELECT MIN ( + - 65 ) + + 72
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT ALL - + CASE - - 23 WHEN - COUNT( DISTINCT CASE - 15 WHEN - 73 THEN NULL ELSE - 15 END ) + - 28 + + - 22 * - SUM( 56 ) THEN + - COUNT( * ) ELSE - 66 END
----
66

skipif mysql # not compatible
query I rowsort label-537
SELECT ALL - + CASE - - 23 WHEN - COUNT ( DISTINCT CASE - 15 WHEN - 73 THEN NULL ELSE - 15 END ) + - 28 + + - 22 * - SUM ( 56 ) THEN + - COUNT ( * ) ELSE - 66 END
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-538
SELECT CAST( + CASE + COUNT( * ) WHEN 43 THEN NULL WHEN + COALESCE ( + 5, ( - 16 ) ) * ( - 28 ) * + COUNT( * ) - - 35 + + - 70 + + 26 THEN NULL ELSE + - 55 END AS SIGNED ) * + - 23 AS col0
----
1265

skipif mysql # not compatible
query I rowsort label-538
SELECT CAST ( + CASE + COUNT ( * ) WHEN 43 THEN NULL WHEN + COALESCE ( + 5, ( - 16 ) ) * ( - 28 ) * + COUNT ( * ) - - 35 + + - 70 + + 26 THEN NULL ELSE + - 55 END AS INTEGER ) * + - 23 AS col0
----
1265

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

skipif mysql # not compatible
query I rowsort label-539
SELECT ALL + 20 * - COUNT ( * ) AS col0
----
-20

query I rowsort
SELECT - 86 * - + 66
----
5676

onlyif mysql # DIV for integer division: 
query I rowsort label-541
SELECT ( 17 ) * + 21 + - 20 DIV 19 AS col2
----
356

skipif mysql # not compatible
query I rowsort label-541
SELECT ( 17 ) * + 21 + - 20 / 19 AS col2
----
356

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT DISTINCT 59 / - 64 * - CASE 96 WHEN COUNT( * ) THEN - COUNT( * ) WHEN - 80 + - + 24 THEN + + 35 * - - COALESCE ( - - 10, - + 1 ) ELSE NULL END * + COALESCE ( - - 8, - + 39, - COUNT( + 7 ) / 5 ) * + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-542
SELECT DISTINCT 59 / - 64 * - CASE 96 WHEN COUNT ( * ) THEN - COUNT ( * ) WHEN - 80 + - + 24 THEN + + 35 * - - COALESCE ( - - 10, - + 1 ) ELSE NULL END * + COALESCE ( - - 8, - + 39, - COUNT ( + 7 ) / 5 ) * + 36 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT DISTINCT - MAX( - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT - MAX ( - 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT 54 * COUNT( * ) * + - 94 * - 10 col2
----
50760

skipif mysql # not compatible
query I rowsort label-544
SELECT 54 * COUNT ( * ) * + - 94 * - 10 col2
----
50760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-545
SELECT DISTINCT - 39 * - CAST( + 86 AS SIGNED )
----
3354

skipif mysql # not compatible
query I rowsort label-545
SELECT DISTINCT - 39 * - CAST ( + 86 AS INTEGER )
----
3354

query I rowsort
SELECT 67 * + 74
----
4958

query II rowsort
SELECT - 9 AS col2, ( 77 ) AS col1
----
-9
77

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-549
SELECT MIN( 49 ) * + 54 AS col2, + 1 + - + 89 - + + CAST( + 20 AS SIGNED ) AS col0
----
2646
-108

skipif mysql # not compatible
query II rowsort label-549
SELECT MIN ( 49 ) * + 54 AS col2, + 1 + - + 89 - + + CAST ( + 20 AS INTEGER ) AS col0
----
2646
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-550
SELECT DISTINCT 52 + - 76 + - 4 + - COUNT( ALL + NULLIF ( + - ( - NULLIF ( - 52, + + CAST( NULL AS SIGNED ) DIV + - 96 ) ), 95 ) ) + 65 * COUNT( * ) + - + 44 + - CAST( 82 AS SIGNED ) DIV - 65
----
-7

skipif mysql # not compatible
query I rowsort label-550
SELECT DISTINCT 52 + - 76 + - 4 + - COUNT ( ALL + NULLIF ( + - ( - NULLIF ( - 52, + + CAST ( NULL AS INTEGER ) / + - 96 ) ), 95 ) ) + 65 * COUNT ( * ) + - + 44 + - CAST ( 82 AS INTEGER ) / - 65
----
-7

query II rowsort
SELECT - 20 AS col0, + ( + 89 ) AS col1
----
-20
89

onlyif mysql # DIV for integer division: 
query I rowsort label-552
SELECT DISTINCT 46 DIV + - 71 * 22 * - 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-552
SELECT DISTINCT 46 / + - 71 * 22 * - 98 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-553
SELECT CASE 69 WHEN + - ( - CAST( NULL AS SIGNED ) ) THEN 95 ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-553
SELECT CASE 69 WHEN + - ( - CAST ( NULL AS INTEGER ) ) THEN 95 ELSE NULL END + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 16 + 85 * - 89 + + - 58 + - + 2
----
-7609

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-555
SELECT 89 + - - CAST( - - 95 AS SIGNED ) - + 88 - 7 + 53
----
142

skipif mysql # not compatible
query I rowsort label-555
SELECT 89 + - - CAST ( - - 95 AS INTEGER ) - + 88 - 7 + 53
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-556
SELECT DISTINCT 98 + ( 86 ) * + - 61 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-556
SELECT DISTINCT 98 + ( 86 ) * + - 61 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

query I rowsort
SELECT ALL NULLIF ( - 96, 47 * 11 )
----
-96

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

skipif mysql # not compatible
query I rowsort label-559
SELECT DISTINCT - COUNT ( * ) - ( - CAST ( COUNT ( * ) AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT NULLIF ( - 69, + 29 ) * - 29 + - MIN( ALL + 15 ) * - 89 + 99
----
3435

skipif mysql # not compatible
query I rowsort label-560
SELECT NULLIF ( - 69, + 29 ) * - 29 + - MIN ( ALL + 15 ) * - 89 + 99
----
3435

query II rowsort
SELECT - 86, 13 AS col1
----
-86
13

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT - 45 + 86 + + + 98 + CASE - 50 WHEN + 28 THEN NULL WHEN + 6 THEN - - COALESCE ( - COUNT( * ), 85 * + - 52 ) / + 17 + + - 77 * 31 * - 65 END + + 9 * - 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-562
SELECT - 45 + 86 + + + 98 + CASE - 50 WHEN + 28 THEN NULL WHEN + 6 THEN - - COALESCE ( - COUNT ( * ), 85 * + - 52 ) / + 17 + + - 77 * 31 * - 65 END + + 9 * - 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT 10 * - - 45 - - + 43 + + MIN( - + 6 ) AS col0
----
487

skipif mysql # not compatible
query I rowsort label-563
SELECT 10 * - - 45 - - + 43 + + MIN ( - + 6 ) AS col0
----
487

query I rowsort
SELECT ALL + + 65 - - 94
----
159

query I rowsort
SELECT + 25 * + - 22 AS col2
----
-550

onlyif mysql # DIV for integer division: 
query I rowsort label-566
SELECT - ( - - 31 ) - - 86 DIV + - 49 col1
----
-32

skipif mysql # not compatible
query I rowsort label-566
SELECT - ( - - 31 ) - - 86 / + - 49 col1
----
-32

query I rowsort
SELECT DISTINCT + + 73 * + + 38 AS col2
----
2774

query I rowsort
SELECT ALL - 98 + + 66 AS col1
----
-32

query I rowsort
SELECT DISTINCT - 80 + + 32
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT ALL 65 + - COUNT( + - 53 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL 65 + - COUNT ( + - 53 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT 47 + COALESCE ( + COUNT( * ), + COUNT( * ), - - COUNT( ALL - 20 ) * + 69 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-571
SELECT 47 + COALESCE ( + COUNT ( * ), + COUNT ( * ), - - COUNT ( ALL - 20 ) * + 69 ) AS col1
----
48

query I rowsort
SELECT 62 * 6 - 86 AS col2
----
286

query I rowsort
SELECT 89 * - 93 * + 23
----
-190371

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT ALL + 63 + + - NULLIF ( - - COUNT( * ), MIN( - - 71 ) * + COUNT( 19 ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL + 63 + + - NULLIF ( - - COUNT ( * ), MIN ( - - 71 ) * + COUNT ( 19 ) ) AS col2
----
62

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

skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT NULLIF ( + 7, + COUNT ( * ) )
----
7

query I rowsort
SELECT 2 * - - ( + 91 )
----
182

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-578
SELECT - 11 DIV + - 24, - 15 AS col0
----
0
-15

skipif mysql # not compatible
query II rowsort label-578
SELECT - 11 / + - 24, - 15 AS col0
----
0
-15

query I rowsort
SELECT DISTINCT - 18 + - 48
----
-66

query I rowsort
SELECT - 46 + + 25 + ( + 64 ) AS col2
----
43

query I rowsort
SELECT ALL 57 * + 91 AS col2
----
5187

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT ALL - 91 * 42 * - + 65 * - ( 8 ) * + + COUNT( * )
----
-1987440

skipif mysql # not compatible
query I rowsort label-582
SELECT ALL - 91 * 42 * - + 65 * - ( 8 ) * + + COUNT ( * )
----
-1987440

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT - ( - COUNT( * ) ) + 37 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-583
SELECT - ( - COUNT ( * ) ) + 37 AS col0
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-584
SELECT - COUNT( * ) DIV 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-584
SELECT - COUNT ( * ) / 29 AS col0
----
0

query I rowsort
SELECT + 7 * - 45 + 40 AS col0
----
-275

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT - COUNT( * ) * 67 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-586
SELECT - COUNT ( * ) * 67 AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT + COUNT( * ) + - 88 + 63 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-587
SELECT + COUNT ( * ) + - 88 + 63 AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-588
SELECT + SUM( ALL - 14 ) DIV + SUM( DISTINCT 57 ) + + MIN( ALL + + ( + 12 ) ), - COALESCE ( 3, 50 + 62 + 68 * ( - + 43 ) * - 74 + - - 33 + - 91 DIV + COUNT( * ) ) + - 25 * - 8 + CAST( NULL AS SIGNED ) * 31 * 88 AS col0
----
12
NULL

skipif mysql # not compatible
query II rowsort label-588
SELECT + SUM ( ALL - 14 ) / + SUM ( DISTINCT 57 ) + + MIN ( ALL + + ( + 12 ) ), - COALESCE ( 3, 50 + 62 + 68 * ( - + 43 ) * - 74 + - - 33 + - 91 / + COUNT ( * ) ) + - 25 * - 8 + CAST ( NULL AS INTEGER ) * 31 * 88 AS col0
----
12
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-589
SELECT ALL + 55 DIV + 23 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL + 55 / + 23 AS col0
----
2

query II rowsort
SELECT + + 50 + - 92 + + 69 * - + 91 * + 73, + 15 col2
----
-458409
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-591
SELECT SUM( - 90 ), 8 DIV - 59 AS col2
----
-90
0

skipif mysql # not compatible
query II rowsort label-591
SELECT SUM ( - 90 ), 8 / - 59 AS col2
----
-90
0

query I rowsort
SELECT + 18 - - - 25
----
-7

query II rowsort
SELECT + 23 * 39, + ( 39 ) AS col0
----
897
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-594
SELECT 14 DIV - + SUM( DISTINCT - 90 ) + + 13 * + 53
----
689

skipif mysql # not compatible
query I rowsort label-594
SELECT 14 / - + SUM ( DISTINCT - 90 ) + + 13 * + 53
----
689

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT + 54 * - + 38 + - 19 + + 99 * - + 58 * + 92 * + MIN( ALL 49 ) AS col0
----
-25887007

skipif mysql # not compatible
query I rowsort label-595
SELECT + 54 * - + 38 + - 19 + + 99 * - + 58 * + 92 * + MIN ( ALL 49 ) AS col0
----
-25887007

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT DISTINCT COUNT( * ) * + - 30 + + + 59 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT COUNT ( * ) * + - 30 + + + 59 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT + + ( - + ( 57 ) ) + + + COALESCE ( 8, - MIN( DISTINCT - 7 ) ) + - - 16
----
-33

skipif mysql # not compatible
query I rowsort label-597
SELECT + + ( - + ( 57 ) ) + + + COALESCE ( 8, - MIN ( DISTINCT - 7 ) ) + - - 16
----
-33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT + ( - MAX( - 72 ) ) + + 78
----
150

skipif mysql # not compatible
query I rowsort label-599
SELECT + ( - MAX ( - 72 ) ) + + 78
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT ALL 9 * - 78 + + - COUNT( * )
----
-703

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL 9 * - 78 + + - COUNT ( * )
----
-703

query I rowsort
SELECT + 24 * - - 36 * + - 97 * 90
----
-7542720

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT NULLIF ( + + NULLIF ( + + COUNT( * ), + COUNT( * ) ), 61 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-605
SELECT NULLIF ( + + NULLIF ( + + COUNT ( * ), + COUNT ( * ) ), 61 ) col2
----
NULL

query I rowsort
SELECT - 99 * + + 29 * + 88 AS col1
----
-252648

query II rowsort
SELECT - 73 col0, - 96 AS col1
----
-73
-96

query I rowsort
SELECT ALL - 4 * 6
----
-24

query I rowsort
SELECT - 40 * 39
----
-1560

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

skipif mysql # not compatible
query II rowsort label-610
SELECT - 84 AS col1, COUNT ( * ) AS col2
----
-84
1

query I rowsort
SELECT - 33 + 32 * - 31
----
-1025

query I rowsort
SELECT - 9 * + 13 AS col0
----
-117

query I rowsort
SELECT - CASE - 55 WHEN 83 + 41 THEN 17 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT - 97 + CASE NULLIF ( - ( 35 ), COUNT( * ) + + 63 * 72 ) - 48 WHEN - 70 THEN NULL WHEN - 12 / - 8 THEN NULL WHEN MIN( ALL - 34 ) * COUNT( * ) + - MAX( - ( - 36 ) ) THEN - 53 + 83 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-614
SELECT - 97 + CASE NULLIF ( - ( 35 ), COUNT ( * ) + + 63 * 72 ) - 48 WHEN - 70 THEN NULL WHEN - 12 / - 8 THEN NULL WHEN MIN ( ALL - 34 ) * COUNT ( * ) + - MAX ( - ( - 36 ) ) THEN - 53 + 83 END AS col0
----
NULL

query I rowsort
SELECT - 56 - ( - 45 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT ALL COALESCE ( 23, + 8, + 99 * COUNT( * ) + - 86, + 85 )
----
23

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL COALESCE ( 23, + 8, + 99 * COUNT ( * ) + - 86, + 85 )
----
23

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

onlyif mysql # DIV for integer division: 
query I rowsort label-618
SELECT ALL + CASE + 38 WHEN NULLIF ( 44, NULLIF ( - 92, + 27 ) + 1 ) THEN NULL WHEN 7 THEN - 96 - - 20 ELSE 95 * 43 + + 16 DIV + 37 END DIV 97 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL + CASE + 38 WHEN NULLIF ( 44, NULLIF ( - 92, + 27 ) + 1 ) THEN NULL WHEN 7 THEN - 96 - - 20 ELSE 95 * 43 + + 16 / + 37 END / 97 AS col2
----
42

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

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

query I rowsort
SELECT DISTINCT + 42 * 67 AS col0
----
2814

onlyif mysql # DIV for integer division: 
query I rowsort label-621
SELECT + 26 DIV - 7 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-621
SELECT + 26 / - 7 AS col2
----
-3

query I rowsort
SELECT - 38 * + 46
----
-1748

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT + COUNT( * ) + 22 * - 9 AS col2
----
-197

skipif mysql # not compatible
query I rowsort label-623
SELECT + COUNT ( * ) + 22 * - 9 AS col2
----
-197

query I rowsort
SELECT ALL - 70 * - 74
----
5180

onlyif mysql # DIV for integer division: 
query I rowsort label-625
SELECT + 20 + 15 DIV - 84
----
20

skipif mysql # not compatible
query I rowsort label-625
SELECT + 20 + 15 / - 84
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-626
SELECT - 90 DIV + 73 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-626
SELECT - 90 / + 73 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-627
SELECT ALL 2 + 51 DIV + 19
----
4

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL 2 + 51 / + 19
----
4

query I rowsort
SELECT + 72 * + ( ( + 92 ) ) AS col1
----
6624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-629
SELECT DISTINCT COUNT( - 61 ) DIV 77 + 13 * 0
----
0

skipif mysql # not compatible
query I rowsort label-629
SELECT DISTINCT COUNT ( - 61 ) / 77 + 13 * 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-630
SELECT ALL + CAST( - CASE ( 4 ) WHEN - COALESCE ( - 63, + 25 * ( 77 ) + + 63 * 96, + 86 ) THEN NULL WHEN + 77 THEN + COUNT( * ) WHEN COUNT( * ) / ( - ( 45 ) * - ( - 61 ) ) THEN NULL ELSE NULLIF ( - MAX( 24 ), - ( 91 ) ) * - CASE WHEN NOT NULL IS NULL THEN 59 WHEN - ( + 47 ) + - 31 IS NULL THEN 53 END END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL + CAST ( - CASE ( 4 ) WHEN - COALESCE ( - 63, + 25 * ( 77 ) + + 63 * 96, + 86 ) THEN NULL WHEN + 77 THEN + COUNT ( * ) WHEN COUNT ( * ) / ( - ( 45 ) * - ( - 61 ) ) THEN NULL ELSE NULLIF ( - MAX ( 24 ), - ( 91 ) ) * - CASE WHEN NOT NULL IS NULL THEN 59 WHEN - ( + 47 ) + - 31 IS NULL THEN 53 END END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-631
SELECT DISTINCT - COUNT( * ) DIV ( + CAST( - 75 AS SIGNED ) ) + + 67
----
67

skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT - COUNT ( * ) / ( + CAST ( - 75 AS INTEGER ) ) + + 67
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-632
SELECT ALL + SUM( ALL CAST( NULL AS SIGNED ) ) / - 19 + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-632
SELECT ALL + SUM ( ALL CAST ( NULL AS INTEGER ) ) / - 19 + - 84
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-634
SELECT ALL 37 DIV 48 + 81 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL 37 / 48 + 81 AS col1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-635
SELECT DISTINCT 5 DIV 89 + 30 * COUNT( * ) col0
----
30

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT 5 / 89 + 30 * COUNT ( * ) col0
----
30

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

skipif mysql # not compatible
query I rowsort label-636
SELECT + CAST ( SUM ( - 67 ) AS INTEGER ) AS col1
----
-67

query I rowsort
SELECT - NULLIF ( 96, - 44 ) + + 7 AS col2
----
-89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT + COALESCE ( + 23, 1 * 33 + + 17, + NULLIF ( + COUNT( * ), ( - AVG ( 77 ) ) + 26 ) + 21 * - 12 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-639
SELECT + COALESCE ( + 23, 1 * 33 + + 17, + NULLIF ( + COUNT ( * ), ( - AVG ( 77 ) ) + 26 ) + 21 * - 12 ) AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-640
SELECT + NULLIF ( 67, + CAST( NULL AS SIGNED ) ) * 32
----
2144

skipif mysql # not compatible
query I rowsort label-640
SELECT + NULLIF ( 67, + CAST ( NULL AS INTEGER ) ) * 32
----
2144

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

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

query I rowsort
SELECT DISTINCT 29 * - COALESCE ( ( 87 ) * 27, 4 ) col1
----
-68121

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT ALL 88 - 21 * COUNT( * ) col2
----
67

skipif mysql # not compatible
query I rowsort label-643
SELECT ALL 88 - 21 * COUNT ( * ) col2
----
67

query I rowsort
SELECT ( 91 ) * 32 - 82
----
2830

query I rowsort
SELECT ALL 58 * 80 AS col2
----
4640

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT CASE + 0 WHEN - 27 THEN ( + 60 ) WHEN 91 THEN NULL WHEN 33 * - 3 THEN NULL END - - MAX( ALL 13 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-646
SELECT CASE + 0 WHEN - 27 THEN ( + 60 ) WHEN 91 THEN NULL WHEN 33 * - 3 THEN NULL END - - MAX ( ALL 13 ) AS col0
----
NULL

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

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

query I rowsort
SELECT ALL 52 - 46 col2
----
6

query I rowsort
SELECT DISTINCT 87 - - 9
----
96

query I rowsort
SELECT 82 + - 91 AS col1
----
-9

query I rowsort
SELECT 36 * - 85 - 33 * - 54 AS col2
----
-1278

query I rowsort
SELECT ( 88 ) + - 69 AS col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-653
SELECT 27 - + 55 DIV - 87 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-653
SELECT 27 - + 55 / - 87 AS col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-654
SELECT ( - ( 67 ) ) DIV - 40 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-654
SELECT ( - ( 67 ) ) / - 40 AS col1
----
1

query I rowsort
SELECT 33 * 15
----
495

query I rowsort
SELECT ALL + 28 * 67 AS col0
----
1876

query I rowsort
SELECT 60 * 76
----
4560

onlyif mysql # DIV for integer division: 
query I rowsort label-658
SELECT DISTINCT + 61 DIV 34
----
1

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT + 61 / 34
----
1

query I rowsort
SELECT - 55 + + 62 * - 32 AS col0
----
-2039

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT ALL COUNT( * ) * + 41 col1
----
41

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL COUNT ( * ) * + 41 col1
----
41

query I rowsort
SELECT COALESCE ( 95, 66 * 80 ) * 89 AS col2
----
8455

query I rowsort
SELECT DISTINCT + 36 * 46 AS col2
----
1656

query I rowsort
SELECT + COALESCE ( 32, 23, ( ( 21 ) ) - + 73 ) + 50 * - 89 AS col0
----
-4418

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT - CASE COALESCE ( + COUNT( * ), + 8, 65 ) WHEN 79 THEN NULL WHEN 57 THEN - 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-664
SELECT - CASE COALESCE ( + COUNT ( * ), + 8, 65 ) WHEN 79 THEN NULL WHEN 57 THEN - 31 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-665
SELECT 18 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-665
SELECT 18 * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT SUM( DISTINCT - 97 ) col0
----
-97

skipif mysql # not compatible
query I rowsort label-666
SELECT SUM ( DISTINCT - 97 ) col0
----
-97

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

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

query I rowsort
SELECT DISTINCT + - 66 * 89 AS col2
----
-5874

query I rowsort
SELECT ALL - 51 + 41 * ( 96 )
----
3885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-670
SELECT ALL + 71 + COUNT( + 65 + + CAST( NULL AS SIGNED ) )
----
71

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL + 71 + COUNT ( + 65 + + CAST ( NULL AS INTEGER ) )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-671
SELECT 67 * - 25 DIV COUNT( * ) - - 15 AS col1
----
-1660

skipif mysql # not compatible
query I rowsort label-671
SELECT 67 * - 25 / COUNT ( * ) - - 15 AS col1
----
-1660

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

query I rowsort
SELECT DISTINCT - 21 * - 95
----
1995

query I rowsort
SELECT 63 * - 13 AS col0
----
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT 73 + + - MAX( 96 ) * - ( + 75 )
----
7273

skipif mysql # not compatible
query I rowsort label-675
SELECT 73 + + - MAX ( 96 ) * - ( + 75 )
----
7273

query I rowsort
SELECT DISTINCT + 22 * + + 46
----
1012

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-677
SELECT + 44 DIV + ( COALESCE ( + 43, - 24 + COALESCE ( + 32 + 75, + 30 + 28, - 56, 17 * COUNT( * ) ) * 61 ) ) + - 28
----
-27

skipif mysql # not compatible
query I rowsort label-677
SELECT + 44 / + ( COALESCE ( + 43, - 24 + COALESCE ( + 32 + 75, + 30 + 28, - 56, 17 * COUNT ( * ) ) * 61 ) ) + - 28
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT ALL - COALESCE ( - 21, COUNT( * ) )
----
21

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL - COALESCE ( - 21, COUNT ( * ) )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-679
SELECT 2 + - - ( CASE COUNT( * ) WHEN 81 THEN 94 + + 94 WHEN ( NULLIF ( + CAST( - 59 AS SIGNED ), - 42 ) ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-679
SELECT 2 + - - ( CASE COUNT ( * ) WHEN 81 THEN 94 + + 94 WHEN ( NULLIF ( + CAST ( - 59 AS INTEGER ), - 42 ) ) THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT DISTINCT + MAX( - 61 ) - + 15
----
-76

skipif mysql # not compatible
query I rowsort label-680
SELECT DISTINCT + MAX ( - 61 ) - + 15
----
-76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT - COALESCE ( - + 55, COUNT( * ) * - 78 + 68 ) * - 60 + - 77 AS col2
----
-3377

skipif mysql # not compatible
query I rowsort label-682
SELECT - COALESCE ( - + 55, COUNT ( * ) * - 78 + 68 ) * - 60 + - 77 AS col2
----
-3377

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-683
SELECT COALESCE ( + 79, 87, 26 ) + + 10 DIV + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-683
SELECT COALESCE ( + 79, 87, 26 ) + + 10 / + COUNT ( * )
----
89

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

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

query I rowsort
SELECT - 53 * + 51 + + ( - 72 - 10 * 85 ) * + 37
----
-36817

query I rowsort
SELECT ALL - 99 * - 43 * - 16
----
-68112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-687
SELECT ALL + + 19 + + CASE + 5 WHEN + COUNT( * ) * + 31 THEN NULL ELSE 70 DIV 12 END
----
24

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL + + 19 + + CASE + 5 WHEN + COUNT ( * ) * + 31 THEN NULL ELSE 70 / 12 END
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT - + 14 * + 34 + + COUNT( 82 ) * 76
----
-400

skipif mysql # not compatible
query I rowsort label-688
SELECT - + 14 * + 34 + + COUNT ( 82 ) * 76
----
-400

query I rowsort
SELECT ALL ( + 76 ) + 7 AS col1
----
83

query I rowsort
SELECT - 11 + - 9
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT 79 * + - 6 + - MAX( ( - 48 ) ) * - 31
----
-1962

skipif mysql # not compatible
query I rowsort label-691
SELECT 79 * + - 6 + - MAX ( ( - 48 ) ) * - 31
----
-1962

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT DISTINCT COUNT( * ) + - - 46 + COALESCE ( + 45, + CASE 25 WHEN + 97 + + 54 * - COUNT( * ) THEN 68 ELSE NULL END, + 1, 89 * + COUNT( * ) ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT COUNT ( * ) + - - 46 + COALESCE ( + 45, + CASE 25 WHEN + 97 + + 54 * - COUNT ( * ) THEN 68 ELSE NULL END, + 1, 89 * + COUNT ( * ) ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ALL + 92 * - - 65 * 39 + COUNT( * ) AS col2
----
233221

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL + 92 * - - 65 * 39 + COUNT ( * ) AS col2
----
233221

query I rowsort
SELECT ALL + 81 + + + 54 AS col2
----
135

query I rowsort
SELECT ALL + 22 + + 85 * 98
----
8352

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT DISTINCT SUM( ( + 57 ) ) * 2
----
114

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT SUM ( ( + 57 ) ) * 2
----
114

query I rowsort
SELECT ALL - 0 + - + 59 + 97
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT - 0 + + 72 - + 84 * - COUNT( 22 )
----
156

skipif mysql # not compatible
query I rowsort label-698
SELECT - 0 + + 72 - + 84 * - COUNT ( 22 )
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT - MIN( - 33 ) col1
----
33

skipif mysql # not compatible
query I rowsort label-699
SELECT - MIN ( - 33 ) col1
----
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT 79 + + + CASE - 87 WHEN - 30 THEN COALESCE ( COUNT( * ), + COALESCE ( + 15, - 33, - 12 ) + + 72 ) WHEN + COALESCE ( + AVG ( DISTINCT ( 60 ) ), 21 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-701
SELECT 79 + + + CASE - 87 WHEN - 30 THEN COALESCE ( COUNT ( * ), + COALESCE ( + 15, - 33, - 12 ) + + 72 ) WHEN + COALESCE ( + AVG ( DISTINCT ( 60 ) ), 21 ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT - 27 + + COUNT( * ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-702
SELECT - 27 + + COUNT ( * ) AS col2
----
-26

query I rowsort
SELECT ALL - 35 - + + 52 AS col0
----
-87

query I rowsort
SELECT - ( + - 69 ) * - 17
----
-1173

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT DISTINCT MIN( - ( 13 ) ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT MIN ( - ( 13 ) ) AS col1
----
-13

query I rowsort
SELECT DISTINCT + NULLIF ( 34, - + 23 )
----
34

query I rowsort
SELECT ALL - 45 * + + 51
----
-2295

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT NULLIF ( - + 56, - 60 * + MAX( DISTINCT 75 * 82 ) + 76 * + 84 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-708
SELECT NULLIF ( - + 56, - 60 * + MAX ( DISTINCT 75 * 82 ) + 76 * + 84 ) AS col0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-709
SELECT ALL + 28 col0, + CASE + CAST( NULL AS SIGNED ) WHEN 24 THEN NULL WHEN 88 THEN NULL ELSE - 90 + 78 END * 93 AS col2
----
28
-1116

skipif mysql # not compatible
query II rowsort label-709
SELECT ALL + 28 col0, + CASE + CAST ( NULL AS INTEGER ) WHEN 24 THEN NULL WHEN 88 THEN NULL ELSE - 90 + 78 END * 93 AS col2
----
28
-1116

query I rowsort
SELECT - 64 * + 73 AS col0
----
-4672

query I rowsort
SELECT - 11 + 97 AS col1
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-712
SELECT - 28 DIV 87 * + COUNT( * ) * - 9 col1
----
0

skipif mysql # not compatible
query I rowsort label-712
SELECT - 28 / 87 * + COUNT ( * ) * - 9 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-713
SELECT + 67 AS col0, - COALESCE ( + 10, COUNT( * ) - + 96 )
----
67
-10

skipif mysql # not compatible
query II rowsort label-713
SELECT + 67 AS col0, - COALESCE ( + 10, COUNT ( * ) - + 96 )
----
67
-10

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

query I rowsort
SELECT COALESCE ( - 37, - 39 ) AS col1
----
-37

query I rowsort
SELECT + 10 * + 12 * + 18 col2
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT + 69 * 97 * + - 80 * - COUNT( * ) AS col0
----
535440

skipif mysql # not compatible
query I rowsort label-717
SELECT + 69 * 97 * + - 80 * - COUNT ( * ) AS col0
----
535440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-718
SELECT 73 * + COUNT( * ) DIV + 78 - - 60 * - 9 AS col2
----
-540

skipif mysql # not compatible
query I rowsort label-718
SELECT 73 * + COUNT ( * ) / + 78 - - 60 * - 9 AS col2
----
-540

query I rowsort
SELECT DISTINCT + 82 * 91 AS col0
----
7462

query I rowsort
SELECT - 74 * + 29
----
-2146

query I rowsort
SELECT - 33 + - - 60
----
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT ALL + 82 * 26 + - - COUNT( * ) + 22 col1
----
2155

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL + 82 * 26 + - - COUNT ( * ) + 22 col1
----
2155

query I rowsort
SELECT ALL + 89 * + 41 + - 96
----
3553

query I rowsort
SELECT - 99 * - 94
----
9306

onlyif mysql # DIV for integer division: 
query I rowsort label-726
SELECT - 3 + + 62 + - - 83 + - 22 DIV 68
----
142

skipif mysql # not compatible
query I rowsort label-726
SELECT - 3 + + 62 + - - 83 + - 22 / 68
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-727
SELECT CASE + 65 WHEN - COUNT( * ) THEN NULL WHEN 27 / - 20 + - 15 THEN COUNT( * ) * COUNT( * ) WHEN 98 - 5 THEN + NULLIF ( - MIN( ALL + 65 ), COALESCE ( NULLIF ( - CAST( 90 AS SIGNED ), 98 * 44 ), - 34 * 44, 83 * 40 ) ) ELSE NULL END * 62 - + COALESCE ( - 4, 81, - 98 - + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-727
SELECT CASE + 65 WHEN - COUNT ( * ) THEN NULL WHEN 27 / - 20 + - 15 THEN COUNT ( * ) * COUNT ( * ) WHEN 98 - 5 THEN + NULLIF ( - MIN ( ALL + 65 ), COALESCE ( NULLIF ( - CAST ( 90 AS INTEGER ), 98 * 44 ), - 34 * 44, 83 * 40 ) ) ELSE NULL END * 62 - + COALESCE ( - 4, 81, - 98 - + 17 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-728
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - 82 + COUNT( * ) - - 91 / 23
----
NULL

skipif mysql # not compatible
query I rowsort label-728
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - 82 + COUNT ( * ) - - 91 / 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT ALL + + 51 * SUM( - - 28 ) + 65
----
1493

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL + + 51 * SUM ( - - 28 ) + 65
----
1493

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT ( SUM( ALL - 32 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-730
SELECT ( SUM ( ALL - 32 ) )
----
-32

query I rowsort
SELECT DISTINCT 74 * + ( + 71 )
----
5254

query I rowsort
SELECT DISTINCT + - 95 + - + 16 * + - 44 + 92
----
701

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

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

query I rowsort
SELECT DISTINCT 1 + 84
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT + 89 * - - COUNT( * ) * - 77
----
-6853

skipif mysql # not compatible
query I rowsort label-735
SELECT + 89 * - - COUNT ( * ) * - 77
----
-6853

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT DISTINCT - SUM( - 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT - SUM ( - 8 ) AS col2
----
8

query I rowsort
SELECT - - 99 * 63
----
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT + 95 + - - 0 + + COUNT( * ) * COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-738
SELECT + 95 + - - 0 + + COUNT ( * ) * COUNT ( * ) AS col0
----
96

query I rowsort
SELECT + ( - - 27 ) * + + 58
----
1566

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT ALL MIN( DISTINCT 64 )
----
64

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL MIN ( DISTINCT 64 )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-741
SELECT ALL 35 DIV + 14 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL 35 / + 14 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-742
SELECT + COUNT( * ) + - - COUNT( * ) + + COUNT( * ) + MAX( DISTINCT 91 ) * 50 DIV + MIN( ALL 1 ) AS col2
----
4553

skipif mysql # not compatible
query I rowsort label-742
SELECT + COUNT ( * ) + - - COUNT ( * ) + + COUNT ( * ) + MAX ( DISTINCT 91 ) * 50 / + MIN ( ALL 1 ) AS col2
----
4553

onlyif mysql # DIV for integer division: 
query I rowsort label-743
SELECT ALL COALESCE ( - CASE ( + 69 ) WHEN ( 32 ) THEN 48 DIV - 41 WHEN ( + 96 ) THEN - 41 ELSE NULL END, 95 ) col1
----
95

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL COALESCE ( - CASE ( + 69 ) WHEN ( 32 ) THEN 48 / - 41 WHEN ( + 96 ) THEN - 41 ELSE NULL END, 95 ) col1
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-744
SELECT + 23 * + CASE CASE - 34 WHEN COUNT( * ) THEN NULL ELSE 23 END WHEN + 78 * COUNT( * ) THEN 88 + + 31 ELSE + 45 - + 98 DIV 33 END
----
989

skipif mysql # not compatible
query I rowsort label-744
SELECT + 23 * + CASE CASE - 34 WHEN COUNT ( * ) THEN NULL ELSE 23 END WHEN + 78 * COUNT ( * ) THEN 88 + + 31 ELSE + 45 - + 98 / 33 END
----
989

query I rowsort
SELECT ALL 29 * - - 8 * + 30
----
6960

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

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT ALL MIN( + + 45 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL MIN ( + + 45 ) AS col0
----
45

query I rowsort
SELECT - 48 * - 61 + - 91
----
2837

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT - 11 * + ( + 48 ) * + 88 * - ( COUNT( * ) )
----
46464

skipif mysql # not compatible
query I rowsort label-751
SELECT - 11 * + ( + 48 ) * + 88 * - ( COUNT ( * ) )
----
46464

query I rowsort
SELECT - 69 + - ( - + 65 )
----
-4

query I rowsort
SELECT + 81 + - + 56 + + 2 * + 5 * 45
----
475

onlyif mysql # DIV for integer division: 
query I rowsort label-754
SELECT ALL + 61 DIV 19 + + CASE 85 WHEN 96 * 93 THEN + 1 DIV 39 + + NULLIF ( + ( 30 ), + 66 ) * 82 ELSE + 4 END + 99 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL + 61 / 19 + + CASE 85 WHEN 96 * 93 THEN + 1 / 39 + + NULLIF ( + ( 30 ), + 66 ) * 82 ELSE + 4 END + 99 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT 78 * + - 20 + - COUNT( * ) col0
----
-1561

skipif mysql # not compatible
query I rowsort label-755
SELECT 78 * + - 20 + - COUNT ( * ) col0
----
-1561

onlyif mysql # aggregate syntax: 
query II rowsort label-756
SELECT DISTINCT + MAX( DISTINCT - 51 ), 39 AS col0
----
-51
39

skipif mysql # not compatible
query II rowsort label-756
SELECT DISTINCT + MAX ( DISTINCT - 51 ), 39 AS col0
----
-51
39

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT - 98 / 24 * + + COUNT( * ) * + 56 / - 64 + NULLIF ( + COUNT( * ) + 27, ( 28 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-757
SELECT - 98 / 24 * + + COUNT ( * ) * + 56 / - 64 + NULLIF ( + COUNT ( * ) + 27, ( 28 ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-758
SELECT ALL - 45 DIV - ( - 11 ) + - - 2 - + NULLIF ( - 49, - 30 ) * - 87
----
-4265

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL - 45 / - ( - 11 ) + - - 2 - + NULLIF ( - 49, - 30 ) * - 87
----
-4265

query I rowsort
SELECT + - ( - 47 ) + - ( - - 46 ) + + 0 * 77 * 21 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT DISTINCT + 49 * SUM( - 69 ) + - 42 * 44
----
-5229

skipif mysql # not compatible
query I rowsort label-760
SELECT DISTINCT + 49 * SUM ( - 69 ) + - 42 * 44
----
-5229

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT ( - SUM( 23 ) ) * 20 + + COUNT( + 61 ) * MIN( + 54 * + 71 )
----
3374

skipif mysql # not compatible
query I rowsort label-763
SELECT ( - SUM ( 23 ) ) * 20 + + COUNT ( + 61 ) * MIN ( + 54 * + 71 )
----
3374

query I rowsort
SELECT - - 10 * - + 99 * + + 35 + + 97
----
-34553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-765
SELECT + + 47 + - MAX( + - CAST( NULL AS SIGNED ) ) + - - 56 + COUNT( + 30 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-765
SELECT + + 47 + - MAX ( + - CAST ( NULL AS INTEGER ) ) + - - 56 + COUNT ( + 30 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-766
SELECT DISTINCT - + 19 * COUNT( * ) DIV + 59 + + 45 * + 7 AS col1
----
315

skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT - + 19 * COUNT ( * ) / + 59 + + 45 * + 7 AS col1
----
315

query I rowsort
SELECT - 33 + - 32
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-768
SELECT - ( + 98 ) + + ( - 63 ) + - COUNT( * ) * - CAST( NULLIF ( 71, - 77 ) + - 55 * 80 AS SIGNED ) * 1 AS col1
----
-4490

skipif mysql # not compatible
query I rowsort label-768
SELECT - ( + 98 ) + + ( - 63 ) + - COUNT ( * ) * - CAST ( NULLIF ( 71, - 77 ) + - 55 * 80 AS INTEGER ) * 1 AS col1
----
-4490

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT DISTINCT + 48 * MIN( + - 81 ) - - - 8 + + ( 21 ) AS col1
----
-3875

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT + 48 * MIN ( + - 81 ) - - - 8 + + ( 21 ) AS col1
----
-3875

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-770
SELECT DISTINCT + 22 DIV 82, 93 * COUNT( * ) * ( - COALESCE ( + CASE 1 WHEN - MAX( ALL 49 ) * + 36 THEN 21 ELSE - MIN( DISTINCT 35 ) END, 4 - - COUNT( ALL 5 ) * - 46 ) ) AS col0
----
0
3255

skipif mysql # not compatible
query II rowsort label-770
SELECT DISTINCT + 22 / 82, 93 * COUNT ( * ) * ( - COALESCE ( + CASE 1 WHEN - MAX ( ALL 49 ) * + 36 THEN 21 ELSE - MIN ( DISTINCT 35 ) END, 4 - - COUNT ( ALL 5 ) * - 46 ) ) AS col0
----
0
3255

query I rowsort
SELECT - 4 - + 95 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT - COUNT( DISTINCT + 62 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-772
SELECT - COUNT ( DISTINCT + 62 ) col0
----
-1

query I rowsort
SELECT + ( 81 ) * ( 36 ) + - 99
----
2817

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-774
SELECT DISTINCT + SUM( 85 ) - + ( + ( + COUNT( * ) ) ) DIV - 77
----
85

skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT + SUM ( 85 ) - + ( + ( + COUNT ( * ) ) ) / - 77
----
85

query I rowsort
SELECT ALL + 40 - + 25 AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-776
SELECT - + ( + 82 ) AS col2, + COUNT( * ) col0
----
-82
1

skipif mysql # not compatible
query II rowsort label-776
SELECT - + ( + 82 ) AS col2, + COUNT ( * ) col0
----
-82
1

query I rowsort
SELECT ALL - + 88 * + - 47 - 50 AS col2
----
4086

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-778
SELECT ALL 42 AS col0, 97 * ( + 54 ) DIV COUNT( * ) AS col0
----
42
5238

skipif mysql # not compatible
query II rowsort label-778
SELECT ALL 42 AS col0, 97 * ( + 54 ) / COUNT ( * ) AS col0
----
42
5238

query I rowsort
SELECT 18 + + 7 AS col0
----
25

query II rowsort
SELECT ALL 53 AS col1, 75 AS col1
----
53
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-781
SELECT COALESCE ( - 98, + + COUNT( * ) * ( + ( + 8 ) ) + 32 DIV 87, + 71 ) * - 1 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-781
SELECT COALESCE ( - 98, + + COUNT ( * ) * ( + ( + 8 ) ) + 32 / 87, + 71 ) * - 1 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT 1 * - + MIN( DISTINCT - 28 ) * + COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-782
SELECT 1 * - + MIN ( DISTINCT - 28 ) * + COUNT ( * ) AS col2
----
28

query II rowsort
SELECT - 9, 78 AS col2
----
-9
78

query I rowsort
SELECT DISTINCT 28 + - - 7 + + - 13
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT COALESCE ( - 99, + + 82 * 97 + 27 - + 77 + 11 ) * MAX( 95 * 91 )
----
-855855

skipif mysql # not compatible
query I rowsort label-785
SELECT COALESCE ( - 99, + + 82 * 97 + 27 - + 77 + 11 ) * MAX ( 95 * 91 )
----
-855855

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT ALL - COALESCE ( - 26, - 79, - NULLIF ( - ( + MIN( ALL 57 ) ), - COUNT( * ) * 88 ) ) + 62
----
88

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL - COALESCE ( - 26, - 79, - NULLIF ( - ( + MIN ( ALL 57 ) ), - COUNT ( * ) * 88 ) ) + 62
----
88

query I rowsort
SELECT ALL COALESCE ( 82, - 95, - 1 ) + + + ( + 89 ) AS col1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT NULLIF ( - NULLIF ( + 1, + + 71 - 70 ), 95 ) + CASE WHEN NULL > 99 THEN + 62 WHEN NOT ( 94 ) IS NOT NULL THEN + SUM( ALL 68 ) / 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-788
SELECT NULLIF ( - NULLIF ( + 1, + + 71 - 70 ), 95 ) + CASE WHEN NULL > 99 THEN + 62 WHEN NOT ( 94 ) IS NOT NULL THEN + SUM ( ALL 68 ) / 74 END
----
NULL

query I rowsort
SELECT 52 * 16
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT ALL COUNT( * ) * 95 col2
----
95

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL COUNT ( * ) * 95 col2
----
95

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

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

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

query II rowsort
SELECT DISTINCT - + 29 AS col0, + 30
----
-29
30

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT - 22 + - 97 + + COUNT( * ) * + - 34 + COUNT( * ) col0
----
-152

skipif mysql # not compatible
query I rowsort label-794
SELECT - 22 + - 97 + + COUNT ( * ) * + - 34 + COUNT ( * ) col0
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-795
SELECT ALL CAST( + 30 AS SIGNED ) - + 29 col0
----
1

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL CAST ( + 30 AS INTEGER ) - + 29 col0
----
1

query II rowsort
SELECT DISTINCT - + 96, 98 AS col1
----
-96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT 77 + + - 87 + + CASE 95 WHEN - + COUNT( * ) THEN NULL WHEN - 37 THEN + 50 - 95 ELSE 5 END AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-797
SELECT 77 + + - 87 + + CASE 95 WHEN - + COUNT ( * ) THEN NULL WHEN - 37 THEN + 50 - 95 ELSE 5 END AS col1
----
-5

query I rowsort
SELECT ALL + + 57 * + - 86 * + 59 AS col2
----
-289218

query I rowsort
SELECT NULLIF ( + 77, - 97 + + + 22 - - - ( - 62 ) ) * - 2
----
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-800
SELECT ALL + 93 DIV + 18
----
5

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL + 93 / + 18
----
5

query I rowsort
SELECT DISTINCT + 77 - 72
----
5

query I rowsort
SELECT ALL + - 65 * 80 col2
----
-5200

query I rowsort
SELECT - 80 * 1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT 46 - + - 73 * + MIN( DISTINCT + 94 ) + - COALESCE ( - MIN( + 73 ), 48 ) * + 80 AS col0
----
12748

skipif mysql # not compatible
query I rowsort label-804
SELECT 46 - + - 73 * + MIN ( DISTINCT + 94 ) + - COALESCE ( - MIN ( + 73 ), 48 ) * + 80 AS col0
----
12748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-805
SELECT + - CAST( + 49 AS SIGNED ) * - ( + 46 ) + 94 AS col0
----
2348

skipif mysql # not compatible
query I rowsort label-805
SELECT + - CAST ( + 49 AS INTEGER ) * - ( + 46 ) + 94 AS col0
----
2348

query I rowsort
SELECT ALL + 83 * - 99
----
-8217

query I rowsort
SELECT - 47 * + 44 col0
----
-2068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-808
SELECT ALL ( 13 ) DIV + + 28 + - - 75 + COUNT( * ) * - 54
----
21

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL ( 13 ) / + + 28 + - - 75 + COUNT ( * ) * - 54
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-809
SELECT COUNT( * ) DIV - ( - COUNT( - - 53 ) )
----
1

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-810
SELECT ALL + 13 DIV - CAST( 9 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-810
SELECT ALL + 13 / - CAST ( 9 AS INTEGER )
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-812
SELECT 82 + - CASE + - 60 WHEN 95 / 58 * + 87 THEN CAST( - 5 AS SIGNED ) + SUM( ALL + 40 ) * 76 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-812
SELECT 82 + - CASE + - 60 WHEN 95 / 58 * + 87 THEN CAST ( - 5 AS INTEGER ) + SUM ( ALL + 40 ) * 76 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT COALESCE ( - 73, COUNT( * ) ) + - 8 + - 51 * + + CASE + 42 WHEN ( - AVG ( ALL 26 ) ) + 73 THEN - ( 57 ) * COUNT( * ) END * - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-813
SELECT COALESCE ( - 73, COUNT ( * ) ) + - 8 + - 51 * + + CASE + 42 WHEN ( - AVG ( ALL 26 ) ) + 73 THEN - ( 57 ) * COUNT ( * ) END * - 89
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-815
SELECT 92 + - 10 + + COUNT( * ) * + CAST( NULL AS DECIMAL ) * COUNT( ( 66 ) ) * 95 - + 9 * - 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT 92 + - 10 + + COUNT ( * ) * + CAST ( NULL AS REAL ) * COUNT ( ( 66 ) ) * 95 - + 9 * - 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT 98 + + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-816
SELECT 98 + + COUNT ( * )
----
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT 8 + + - NULLIF ( 13, - COUNT( * ) ) + - 28 * 23 + 47
----
-602

skipif mysql # not compatible
query I rowsort label-818
SELECT 8 + + - NULLIF ( 13, - COUNT ( * ) ) + - 28 * 23 + 47
----
-602

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

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

query II rowsort
SELECT ALL 7, + 24 AS col0
----
7
24

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT DISTINCT COALESCE ( - 49, + - MIN( - 60 ) ) + 92 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-821
SELECT DISTINCT COALESCE ( - 49, + - MIN ( - 60 ) ) + 92 AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-822
SELECT DISTINCT + 23 * NULLIF ( + CAST( - 92 AS SIGNED ), + - 98 ) AS col0
----
-2116

skipif mysql # not compatible
query I rowsort label-822
SELECT DISTINCT + 23 * NULLIF ( + CAST ( - 92 AS INTEGER ), + - 98 ) AS col0
----
-2116

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT COUNT( * ) + - + COUNT( * ) + - + 75 + 59 - - 80 + 40 * 15 AS col0
----
664

skipif mysql # not compatible
query I rowsort label-823
SELECT COUNT ( * ) + - + COUNT ( * ) + - + 75 + 59 - - 80 + 40 * 15 AS col0
----
664

query I rowsort
SELECT ALL + 15 + + 12
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT 36 + + MAX( + 56 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-825
SELECT 36 + + MAX ( + 56 ) AS col1
----
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-826
SELECT ALL - 51 + 95 DIV - 42 + 1 + CASE + 49 WHEN - 10 - + 59 THEN CAST( + 57 AS SIGNED ) * ( - 14 ) - 96 WHEN + 65 + 63 THEN NULL ELSE 38 END
----
-14

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL - 51 + 95 / - 42 + 1 + CASE + 49 WHEN - 10 - + 59 THEN CAST ( + 57 AS INTEGER ) * ( - 14 ) - 96 WHEN + 65 + 63 THEN NULL ELSE 38 END
----
-14

query I rowsort
SELECT 7 + - 48 + 65
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT + 2 * + CASE + 56 WHEN - COUNT( * ) / + - 18 + + 80 - 9 * + NULLIF ( CASE + COALESCE ( 78, + 1 + 40 ) WHEN - 64 THEN 33 WHEN - 58 THEN NULL END, - 17 ) + 51 THEN NULL WHEN - 59 + 33 * 87 THEN + 79 - 34 WHEN - 30 THEN NULL ELSE + 3 * - COUNT( * ) END + 39 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-828
SELECT + 2 * + CASE + 56 WHEN - COUNT ( * ) / + - 18 + + 80 - 9 * + NULLIF ( CASE + COALESCE ( 78, + 1 + 40 ) WHEN - 64 THEN 33 WHEN - 58 THEN NULL END, - 17 ) + 51 THEN NULL WHEN - 59 + 33 * 87 THEN + 79 - 34 WHEN - 30 THEN NULL ELSE + 3 * - COUNT ( * ) END + 39 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT ALL - 80 * MIN( - 71 ) + 11 AS col2
----
5691

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL - 80 * MIN ( - 71 ) + 11 AS col2
----
5691

onlyif mysql # aggregate syntax: 
query II rowsort label-830
SELECT + COUNT( * ) AS col1, 81 - + 99 - - 59 * 74 AS col1
----
1
4348

skipif mysql # not compatible
query II rowsort label-830
SELECT + COUNT ( * ) AS col1, 81 - + 99 - - 59 * 74 AS col1
----
1
4348

query I rowsort
SELECT - CASE 2 WHEN - - 90 THEN - 77 * - - 58 + - + 47 + 1 ELSE NULL END + 51
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-832
SELECT ALL 23 DIV - + 4 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-832
SELECT ALL 23 / - + 4 AS col0
----
-5

query I rowsort
SELECT 19 * 16 + 15 AS col0
----
319

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-836
SELECT DISTINCT - CAST( + CASE - 32 WHEN - 75 THEN NULL ELSE + - 41 + - - 38 + 17 * COALESCE ( 92, NULLIF ( - 61, - 65 * + 55 ) ) END AS SIGNED )
----
-1561

skipif mysql # not compatible
query I rowsort label-836
SELECT DISTINCT - CAST ( + CASE - 32 WHEN - 75 THEN NULL ELSE + - 41 + - - 38 + 17 * COALESCE ( 92, NULLIF ( - 61, - 65 * + 55 ) ) END AS INTEGER )
----
-1561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-837
SELECT ALL + 64 * + 10 DIV + COUNT( + 60 ) AS col0
----
640

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL + 64 * + 10 / + COUNT ( + 60 ) AS col0
----
640

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

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

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

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL ( + - 69 ) * - COUNT ( * ) AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-840
SELECT + 46 * 22 + - + COUNT( * ) + + CAST( NULL AS SIGNED ) * + 6 + - 43 * + CASE - 4 WHEN + 35 THEN 11 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-840
SELECT + 46 * 22 + - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + 6 + - 43 * + CASE - 4 WHEN + 35 THEN 11 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 78 * - 70 * - 23
----
-125580

query II rowsort
SELECT ALL + - 52, 0 AS col1
----
-52
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-845
SELECT + - 26 * + NULLIF ( + 58, + + 17 / - ( - CAST( - 76 AS SIGNED ) ) ) AS col1
----
-1508

skipif mysql # not compatible
query I rowsort label-845
SELECT + - 26 * + NULLIF ( + 58, + + 17 / - ( - CAST ( - 76 AS INTEGER ) ) ) AS col1
----
-1508

query I rowsort
SELECT ALL + + COALESCE ( 71, - + 95 + 18, 3 ) col1
----
71

query I rowsort
SELECT DISTINCT - 88 + + - 72
----
-160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-848
SELECT + - 82 - + - 23 + + 70 + 76 * COALESCE ( - 5, + 63, + ( 62 ) * + CASE COUNT( * ) WHEN 96 THEN 76 DIV 39 WHEN 6 * 54 THEN COUNT( * ) * - 31 ELSE - 83 END + 97 * 83 ) * 38
----
-14429

skipif mysql # not compatible
query I rowsort label-848
SELECT + - 82 - + - 23 + + 70 + 76 * COALESCE ( - 5, + 63, + ( 62 ) * + CASE COUNT ( * ) WHEN 96 THEN 76 / 39 WHEN 6 * 54 THEN COUNT ( * ) * - 31 ELSE - 83 END + 97 * 83 ) * 38
----
-14429

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-849
SELECT + CAST( NULL AS SIGNED ) * - + 59 * + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-849
SELECT + CAST ( NULL AS INTEGER ) * - + 59 * + 3 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-850
SELECT - 18 + - + CAST( + + 7 AS SIGNED ) + 80 + - 82 * 8 * 14
----
-9129

skipif mysql # not compatible
query I rowsort label-850
SELECT - 18 + - + CAST ( + + 7 AS INTEGER ) + 80 + - 82 * 8 * 14
----
-9129

query I rowsort
SELECT - COALESCE ( 9, 69 * 91 )
----
-9

query I rowsort
SELECT - 94 + + 40 - + 15 * - 47 AS col2
----
651

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-853
SELECT ALL - 46 + 64 + COUNT( ALL + 18 ) DIV + 61 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL - 46 + 64 + COUNT ( ALL + 18 ) / + 61 AS col1
----
18

query II rowsort
SELECT - 82 * - 37, - 10 + - 11 AS col2
----
3034
-21

query I rowsort
SELECT ALL 47 * - - 44
----
2068

query I rowsort
SELECT DISTINCT 5 + - 78
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT ALL + ( - MAX( 19 ) ) + - + 61 * 25 + 38
----
-1506

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL + ( - MAX ( 19 ) ) + - + 61 * 25 + 38
----
-1506

query I rowsort
SELECT ALL - 83 + - 76 col0
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-859
SELECT DISTINCT + ( + CASE + 30 WHEN - - 55 * 95 + - 6 / + 94 * - ( CAST( NULL AS SIGNED ) * - 78 ) + 51 / + CASE AVG ( 15 ) WHEN - 59 THEN 21 END THEN NULL ELSE - NULLIF ( + ( COUNT( * ) ), - 71 * 38 ) * - 35 END ) + + 90
----
125

skipif mysql # not compatible
query I rowsort label-859
SELECT DISTINCT + ( + CASE + 30 WHEN - - 55 * 95 + - 6 / + 94 * - ( CAST ( NULL AS INTEGER ) * - 78 ) + 51 / + CASE AVG ( 15 ) WHEN - 59 THEN 21 END THEN NULL ELSE - NULLIF ( + ( COUNT ( * ) ), - 71 * 38 ) * - 35 END ) + + 90
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-860
SELECT - 22 * - + NULLIF ( + + 87, + MIN( ALL CAST( 27 AS SIGNED ) ) + 97 )
----
1914

skipif mysql # not compatible
query I rowsort label-860
SELECT - 22 * - + NULLIF ( + + 87, + MIN ( ALL CAST ( 27 AS INTEGER ) ) + 97 )
----
1914

query I rowsort
SELECT ALL COALESCE ( + + 26, + - 58 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT - 92 - + - MIN( + 45 ) + + - 44
----
-91

skipif mysql # not compatible
query I rowsort label-862
SELECT - 92 - + - MIN ( + 45 ) + + - 44
----
-91

query II rowsort
SELECT ALL ( 51 ) AS col1, 53 AS col1
----
51
53

query I rowsort
SELECT DISTINCT + 66 - - 48 col0
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-865
SELECT ALL + 93 * + COUNT( * ), 75 + - 64 AS col0
----
93
11

skipif mysql # not compatible
query II rowsort label-865
SELECT ALL + 93 * + COUNT ( * ), 75 + - 64 AS col0
----
93
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-866
SELECT DISTINCT + COUNT( * ) * - 2 + - ( COUNT( * ) ) + 9 DIV 80 + 96
----
93

skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT + COUNT ( * ) * - 2 + - ( COUNT ( * ) ) + 9 / 80 + 96
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT DISTINCT + + 24 * + - COUNT( * ) * - MIN( ALL + 25 ) + + 57 + 87 * 98 * 98
----
836205

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT + + 24 * + - COUNT ( * ) * - MIN ( ALL + 25 ) + + 57 + 87 * 98 * 98
----
836205

query I rowsort
SELECT + + 99 * - 66
----
-6534

query I rowsort
SELECT - 57 + 21 + - + CASE - 55 WHEN - 93 THEN + 30 + - 28 + 15 ELSE NULL END / NULLIF ( - 70 - + 5, - 40 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT - CASE + CASE - 36 WHEN + 1 * + + 10 THEN + - COUNT( * ) END WHEN - + 0 THEN - CASE COUNT( * ) WHEN 7 THEN NULL WHEN 96 THEN 3 END * + 93 END * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-870
SELECT - CASE + CASE - 36 WHEN + 1 * + + 10 THEN + - COUNT ( * ) END WHEN - + 0 THEN - CASE COUNT ( * ) WHEN 7 THEN NULL WHEN 96 THEN 3 END * + 93 END * 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT + + 35 * 30 + + 34 + - ( - COUNT( * ) ) * MAX( + 82 ) + 75 AS col0
----
1241

skipif mysql # not compatible
query I rowsort label-871
SELECT + + 35 * 30 + + 34 + - ( - COUNT ( * ) ) * MAX ( + 82 ) + 75 AS col0
----
1241

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT COUNT( * ) * - NULLIF ( - 83, + + 61 * + 31 ) * - - 39 * + - COALESCE ( 55, + ( 38 ) ) + 54
----
-177981

skipif mysql # not compatible
query I rowsort label-872
SELECT COUNT ( * ) * - NULLIF ( - 83, + + 61 * + 31 ) * - - 39 * + - COALESCE ( 55, + ( 38 ) ) + 54
----
-177981

onlyif mysql # DIV for integer division: 
query I rowsort label-873
SELECT ALL 23 DIV 43 DIV + 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL 23 / 43 / + 56 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-874
SELECT + + COUNT( + - 43 ), + 2 * + ( + 99 ) AS col0, + 82 DIV + SUM( DISTINCT + ( + 44 ) ) AS col1
----
1
198
1

skipif mysql # not compatible
query III rowsort label-874
SELECT + + COUNT ( + - 43 ), + 2 * + ( + 99 ) AS col0, + 82 / + SUM ( DISTINCT + ( + 44 ) ) AS col1
----
1
198
1

onlyif mysql # DIV for integer division: 
query I rowsort label-875
SELECT + + 16 DIV + - 50 * 5 col0
----
0

skipif mysql # not compatible
query I rowsort label-875
SELECT + + 16 / + - 50 * 5 col0
----
0

query I rowsort
SELECT ALL + + ( - 21 ) AS col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-877
SELECT + 2 DIV + 29 + + COUNT( * ) + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-877
SELECT + 2 / + 29 + + COUNT ( * ) + - COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-878
SELECT DISTINCT - ( + CAST( - + 38 AS SIGNED ) ) DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT - ( + CAST ( - + 38 AS INTEGER ) ) / 92
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-879
SELECT DISTINCT + 20 * 43 + + COUNT( * ) AS col1, 49 * - 31
----
861
-1519

skipif mysql # not compatible
query II rowsort label-879
SELECT DISTINCT + 20 * 43 + + COUNT ( * ) AS col1, 49 * - 31
----
861
-1519

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

skipif mysql # not compatible
query I rowsort label-880
SELECT + CAST ( NULL AS REAL ) / + 41 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-881
SELECT - 82 * + 7 col1, CAST( + 16 AS SIGNED ) AS col2
----
-574
16

skipif mysql # not compatible
query II rowsort label-881
SELECT - 82 * + 7 col1, CAST ( + 16 AS INTEGER ) AS col2
----
-574
16

query I rowsort
SELECT DISTINCT + 62 * - - 85 + - 34 + + 15 + + + 43
----
5294

query I rowsort
SELECT + 94 * + 77 AS col2
----
7238

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT ALL - 84 * COUNT( * ) + - 21 AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL - 84 * COUNT ( * ) + - 21 AS col2
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-885
SELECT ALL + 1 * COUNT( - + 78 ) + + + 77 + + + ( - 21 ) DIV + - COUNT( * ) + 28
----
127

skipif mysql # not compatible
query I rowsort label-885
SELECT ALL + 1 * COUNT ( - + 78 ) + + + 77 + + + ( - 21 ) / + - COUNT ( * ) + 28
----
127

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-887
SELECT DISTINCT - CASE - NULLIF ( - COUNT( * ), + 50 * 67 - + CAST( SUM( DISTINCT + 23 ) AS SIGNED ) + + 84 ) WHEN - 4 * 24 THEN + COUNT( * ) - + 31 WHEN 25 THEN NULL END * 77 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-887
SELECT DISTINCT - CASE - NULLIF ( - COUNT ( * ), + 50 * 67 - + CAST ( SUM ( DISTINCT + 23 ) AS INTEGER ) + + 84 ) WHEN - 4 * 24 THEN + COUNT ( * ) - + 31 WHEN 25 THEN NULL END * 77 + - COUNT ( * )
----
NULL

query I rowsort
SELECT - 64 * - 29 + 25
----
1881

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-889
SELECT ALL NULLIF ( 55, 66 ) * - 1 AS col2, - COUNT( DISTINCT + - ( + + 68 ) ) * + + NULLIF ( 13, 36 * COALESCE ( + CAST( + CASE 96 WHEN + 71 THEN 33 * 81 END AS SIGNED ) * 71, COUNT( * ) ) ) * + COUNT( * ) - + 82
----
-55
-95

skipif mysql # not compatible
query II rowsort label-889
SELECT ALL NULLIF ( 55, 66 ) * - 1 AS col2, - COUNT ( DISTINCT + - ( + + 68 ) ) * + + NULLIF ( 13, 36 * COALESCE ( + CAST ( + CASE 96 WHEN + 71 THEN 33 * 81 END AS INTEGER ) * 71, COUNT ( * ) ) ) * + COUNT ( * ) - + 82
----
-55
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT ALL CASE - 73 WHEN - + NULLIF ( - + COALESCE ( - 40, - - 17 ), - + 49 * - 43 + - COUNT( * ) * 37 ) THEN NULL WHEN + 28 + - 71 THEN 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL CASE - 73 WHEN - + NULLIF ( - + COALESCE ( - 40, - - 17 ), - + 49 * - 43 + - COUNT ( * ) * 37 ) THEN NULL WHEN + 28 + - 71 THEN 17 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-891
SELECT - CAST( 31 AS SIGNED ) col2
----
-31

skipif mysql # not compatible
query I rowsort label-891
SELECT - CAST ( 31 AS INTEGER ) col2
----
-31

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

skipif mysql # not compatible
query I rowsort label-892
SELECT MIN ( + + 74 )
----
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT + 23 + NULLIF ( ( + 59 ), - 4 - + 5 * - COUNT( * ) / + - 2 * - 25 )
----
82

skipif mysql # not compatible
query I rowsort label-894
SELECT + 23 + NULLIF ( ( + 59 ), - 4 - + 5 * - COUNT ( * ) / + - 2 * - 25 )
----
82

onlyif mysql # DIV for integer division: 
query II rowsort label-895
SELECT - 28 * + 38 * - 43, + 53 DIV + 31 AS col2
----
45752
1

skipif mysql # not compatible
query II rowsort label-895
SELECT - 28 * + 38 * - 43, + 53 / + 31 AS col2
----
45752
1

query I rowsort
SELECT + 75 * 86 AS col0
----
6450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-897
SELECT ALL - CAST( 95 AS SIGNED ) * 15 AS col0, ( + - 92 ) + - + COALESCE ( MIN( DISTINCT - 14 ), - 66, + 12 * - 30 + + 92 DIV NULLIF ( 81 * 2, 1 + ( - 70 ) * NULLIF ( - 5, 13 ) ) )
----
-1425
-78

skipif mysql # not compatible
query II rowsort label-897
SELECT ALL - CAST ( 95 AS INTEGER ) * 15 AS col0, ( + - 92 ) + - + COALESCE ( MIN ( DISTINCT - 14 ), - 66, + 12 * - 30 + + 92 / NULLIF ( 81 * 2, 1 + ( - 70 ) * NULLIF ( - 5, 13 ) ) )
----
-1425
-78

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-899
SELECT - MIN( ALL + - 92 ) + - 81 + + 52 / CAST( - 5 AS SIGNED ) - - MIN( ALL + - 63 ) / CASE + 34 / - CAST( NULL AS SIGNED ) WHEN 80 * - 37 THEN - 85 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-899
SELECT - MIN ( ALL + - 92 ) + - 81 + + 52 / CAST ( - 5 AS INTEGER ) - - MIN ( ALL + - 63 ) / CASE + 34 / - CAST ( NULL AS INTEGER ) WHEN 80 * - 37 THEN - 85 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT ALL 33 * + - MIN( + - 46 )
----
1518

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL 33 * + - MIN ( + - 46 )
----
1518

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-901
SELECT ALL CAST( NULL AS SIGNED ), 59 + + + 85 AS col0
----
NULL
144

skipif mysql # not compatible
query II rowsort label-901
SELECT ALL CAST ( NULL AS INTEGER ), 59 + + + 85 AS col0
----
NULL
144

query I rowsort
SELECT - 45 + - - 78 + - 76 + + 28 + + 83 AS col1
----
68

query I rowsort
SELECT ALL 51 * - 46 AS col2
----
-2346

query II rowsort
SELECT ALL 15, - 68 AS col0
----
15
-68

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

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

query I rowsort
SELECT - NULLIF ( + + 15, + 79 * + 53 * - - 98 ) + - 23 + - 49 + + + 82 + - 18 col1
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-907
SELECT ALL - - 34 DIV - - 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL - - 34 / - - 49 AS col2
----
0

query II rowsort
SELECT + NULLIF ( + 68, - + 89 ) AS col2, - 32 * + - 66 AS col0
----
68
2112

query I rowsort
SELECT - 99 * - 36
----
3564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-910
SELECT ALL + CASE + + 53 WHEN + + 7 + + + COUNT( * ) + 89 DIV 4 - - 26 THEN NULL WHEN - - CAST( + 37 AS SIGNED ) + - 49 * 53 THEN NULL ELSE 32 END + 39 * ( 85 DIV - 25 )
----
-85

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL + CASE + + 53 WHEN + + 7 + + + COUNT ( * ) + 89 / 4 - - 26 THEN NULL WHEN - - CAST ( + 37 AS INTEGER ) + - 49 * 53 THEN NULL ELSE 32 END + 39 * ( 85 / - 25 )
----
-85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT DISTINCT - + SUM( 44 ) col2
----
-44

skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT - + SUM ( 44 ) col2
----
-44

query I rowsort
SELECT + 66 + + - 11 * + 10 AS col1
----
-44

query I rowsort
SELECT DISTINCT - - 4 + NULLIF ( 59, + + 2 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT - COUNT( DISTINCT - + 61 ) * - 24 + + 40
----
64

skipif mysql # not compatible
query I rowsort label-915
SELECT - COUNT ( DISTINCT - + 61 ) * - 24 + + 40
----
64

query II rowsort
SELECT + + 88 AS col2, - 88
----
88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT ALL + COUNT( + 13 ) + ( + + 32 ) + + COUNT( * ) + + - 78 * + - 46 AS col2
----
3622

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL + COUNT ( + 13 ) + ( + + 32 ) + + COUNT ( * ) + + - 78 * + - 46 AS col2
----
3622

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-918
SELECT DISTINCT 18 DIV - 25 AS col1, + COUNT( * ) * 24 - + 10 * + 40 col1
----
0
-376

skipif mysql # not compatible
query II rowsort label-918
SELECT DISTINCT 18 / - 25 AS col1, + COUNT ( * ) * 24 - + 10 * + 40 col1
----
0
-376

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT ALL MIN( - - 63 ) * 9
----
567

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL MIN ( - - 63 ) * 9
----
567

query I rowsort
SELECT ALL + 28 + - - 35 AS col0
----
63

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

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

query I rowsort
SELECT 46 * - - 92 * - 59
----
-249688

query I rowsort
SELECT ALL 93 * + - 71 AS col2
----
-6603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-924
SELECT ALL 11 - + COUNT( * ) DIV NULLIF ( + + 5, 93 )
----
11

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL 11 - + COUNT ( * ) / NULLIF ( + + 5, 93 )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-925
SELECT ALL 46 - - 48 * + COUNT( * ) * + - 14 DIV COUNT( * ) AS col0
----
-626

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL 46 - - 48 * + COUNT ( * ) * + - 14 / COUNT ( * ) AS col0
----
-626

query I rowsort
SELECT 36 * - - 51 col2
----
1836

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT ALL - COUNT( - - 2 ) * CASE - ( - 19 ) WHEN + - 78 THEN 1 * 79 ELSE + 30 END + 73 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL - COUNT ( - - 2 ) * CASE - ( - 19 ) WHEN + - 78 THEN 1 * 79 ELSE + 30 END + 73 AS col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-928
SELECT 61 * - 80 AS col2, - NULLIF ( - + 64, - - COUNT( * ) ) * - 38 * + - 28 + - + 46 + + 12 * + 10
----
-4880
68170

skipif mysql # not compatible
query II rowsort label-928
SELECT 61 * - 80 AS col2, - NULLIF ( - + 64, - - COUNT ( * ) ) * - 38 * + - 28 + - + 46 + + 12 * + 10
----
-4880
68170

query I rowsort
SELECT ALL - 21 * + CASE ( + 61 ) WHEN + 51 THEN + 16 WHEN 68 THEN NULL WHEN + + 8 THEN - 60 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + ( + 65 ) * 13 col1
----
845

query I rowsort
SELECT + 39 * - 93 AS col2
----
-3627

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT + ( + 91 ) * MAX( - 17 ) + 42
----
-1505

skipif mysql # not compatible
query I rowsort label-932
SELECT + ( + 91 ) * MAX ( - 17 ) + 42
----
-1505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-933
SELECT ALL - 60 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL - 60 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-935
SELECT ALL - + 44 + - 11 + - 99 * - - COUNT( * ) AS col1, 79 AS col0
----
-154
79

skipif mysql # not compatible
query II rowsort label-935
SELECT ALL - + 44 + - 11 + - 99 * - - COUNT ( * ) AS col1, 79 AS col0
----
-154
79

query I rowsort
SELECT DISTINCT + + 81 + - 48 * 3
----
-63

query I rowsort
SELECT - NULLIF ( - 93, + 85 )
----
93

query I rowsort
SELECT ALL + 44 + - 87 AS col0
----
-43

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

onlyif mysql # DIV for integer division: 
query I rowsort label-940
SELECT 64 DIV - 63 - + 82 + - 41 + 14 * + - 23 - + 1 + - - 62 + - 20 + 14 * 33
----
57

skipif mysql # not compatible
query I rowsort label-940
SELECT 64 / - 63 - + 82 + - 41 + 14 * + - 23 - + 1 + - - 62 + - 20 + 14 * 33
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-941
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 24 * - + COUNT( * ) - + 71 * + 60 * - 77 / + 21 + + 97 + - 56 * ( 60 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-941
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 24 * - + COUNT ( * ) - + 71 * + 60 * - 77 / + 21 + + 97 + - 56 * ( 60 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT ALL + - 39 + 82 DIV - - 20 col0
----
-35

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL + - 39 + 82 / - - 20 col0
----
-35

query I rowsort
SELECT ALL - 9 + + 46 * + 13
----
589

query I rowsort
SELECT ALL - 92 * + COALESCE ( - 25, + 10 ) AS col0
----
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT DISTINCT - + ( - 81 ) - - COUNT( DISTINCT - 42 )
----
82

skipif mysql # not compatible
query I rowsort label-945
SELECT DISTINCT - + ( - 81 ) - - COUNT ( DISTINCT - 42 )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-946
SELECT ALL - CAST( 71 AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL - CAST ( 71 AS INTEGER )
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-947
SELECT + 84, MAX( + + 34 ) AS col0
----
84
34

skipif mysql # not compatible
query II rowsort label-947
SELECT + 84, MAX ( + + 34 ) AS col0
----
84
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-948
SELECT DISTINCT + ( 30 ) - + COALESCE ( - - CAST( NULL AS SIGNED ), 20 * 33 + - 59, 5 ) + COUNT( * ) DIV - - SUM( 14 ) + 0
----
-571

skipif mysql # not compatible
query I rowsort label-948
SELECT DISTINCT + ( 30 ) - + COALESCE ( - - CAST ( NULL AS INTEGER ), 20 * 33 + - 59, 5 ) + COUNT ( * ) / - - SUM ( 14 ) + 0
----
-571

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT DISTINCT - CASE - + 90 WHEN + - 22 * - COUNT( * ) * - + 32 * + 65 + - + 53 * + 7 THEN + ( + 88 ) WHEN COUNT( * ) THEN 16 + 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-949
SELECT DISTINCT - CASE - + 90 WHEN + - 22 * - COUNT ( * ) * - + 32 * + 65 + - + 53 * + 7 THEN + ( + 88 ) WHEN COUNT ( * ) THEN 16 + 2 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT ALL 6 - + 82 + 67 * + - CASE - ( + + SUM( + 52 ) ) WHEN - - 16 THEN - - 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL 6 - + 82 + 67 * + - CASE - ( + + SUM ( + 52 ) ) WHEN - - 16 THEN - - 93 ELSE NULL END
----
NULL

query I rowsort
SELECT 46 * + + 87
----
4002

query I rowsort
SELECT 17 * - + 22 col0
----
-374

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT DISTINCT - CASE + NULLIF ( - ( + 1 ), + 91 ) WHEN + SUM( + 51 ) + + 40 + - COUNT( * ) + - COALESCE ( ( + 99 ), + 57 / 69 ) * 85 THEN + 69 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-953
SELECT DISTINCT - CASE + NULLIF ( - ( + 1 ), + 91 ) WHEN + SUM ( + 51 ) + + 40 + - COUNT ( * ) + - COALESCE ( ( + 99 ), + 57 / 69 ) * 85 THEN + 69 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT 33 - - COUNT( * ) * + 34 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-954
SELECT 33 - - COUNT ( * ) * + 34 AS col1
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-955
SELECT 36 DIV + ( 69 ) AS col0, 55 + - 77 * - COUNT( * )
----
0
132

skipif mysql # not compatible
query II rowsort label-955
SELECT 36 / + ( 69 ) AS col0, 55 + - 77 * - COUNT ( * )
----
0
132

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT ALL SUM( DISTINCT - + 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL SUM ( DISTINCT - + 18 ) AS col1
----
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT DISTINCT 98 * COUNT( * ) * NULLIF ( - NULLIF ( - - ( + 30 ), + - COUNT( * ) / + 90 - - 73 ), + 80 + COUNT( * ) ) AS col0
----
-2940

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT 98 * COUNT ( * ) * NULLIF ( - NULLIF ( - - ( + 30 ), + - COUNT ( * ) / + 90 - - 73 ), + 80 + COUNT ( * ) ) AS col0
----
-2940

onlyif mysql # DIV for integer division: 
query I rowsort label-959
SELECT ALL + 34 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL + 34 / - 62
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-960
SELECT + COALESCE ( - CAST( NULL AS SIGNED ), + 80 * + 43 + + - COALESCE ( + 68, 48, + 45 + - 16 ) - - + 75 ) - - 69 AS col0
----
3516

skipif mysql # not compatible
query I rowsort label-960
SELECT + COALESCE ( - CAST ( NULL AS INTEGER ), + 80 * + 43 + + - COALESCE ( + 68, 48, + 45 + - 16 ) - - + 75 ) - - 69 AS col0
----
3516

query I rowsort
SELECT ALL NULLIF ( 94, + 79 ) AS col1
----
94

query I rowsort
SELECT + 15 - ( - 48 ) - + 60 AS col1
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT - SUM( ALL + ( + 56 ) ) + COALESCE ( + - 75, COUNT( * ) + - COUNT( * ) + 62 * + 40, - 86 ) + 5 AS col1
----
-126

skipif mysql # not compatible
query I rowsort label-964
SELECT - SUM ( ALL + ( + 56 ) ) + COALESCE ( + - 75, COUNT ( * ) + - COUNT ( * ) + 62 * + 40, - 86 ) + 5 AS col1
----
-126

query I rowsort
SELECT + 93 * + 73 * - - 75 * 41
----
20876175

query I rowsort
SELECT ALL + 31 * - 30 col1
----
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT - COUNT( * ) * 59 + + - 83 + CASE + - COALESCE ( - 4, - + 92 ) WHEN - 42 + + + COUNT( * ) * - COUNT( - 86 ) - + 76 THEN NULL WHEN - ( 99 ) THEN ( 92 ) - - 36 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-967
SELECT - COUNT ( * ) * 59 + + - 83 + CASE + - COALESCE ( - 4, - + 92 ) WHEN - 42 + + + COUNT ( * ) * - COUNT ( - 86 ) - + 76 THEN NULL WHEN - ( 99 ) THEN ( 92 ) - - 36 END AS col1
----
NULL

query I rowsort
SELECT + 6 * + 56 * - - 38 * + 65 AS col1
----
829920

query I rowsort
SELECT + 45 + + 26 AS col0
----
71

query II rowsort
SELECT - 39 AS col0, 83
----
-39
83

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

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

query I rowsort
SELECT + 59 + + - 94
----
-35

query I rowsort
SELECT ALL + + 75 + - + 88 col0
----
-13

query I rowsort
SELECT ALL 3 + - 6
----
-3

query I rowsort
SELECT ALL - 54 + - 58
----
-112

query I rowsort
SELECT ALL - 48 + + 34 + + 65 * - 15 * - 90 AS col1
----
87736

query I rowsort
SELECT + + 84 + - ( - 57 )
----
141

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

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

query I rowsort
SELECT + - 99 * - 26
----
2574

query I rowsort
SELECT DISTINCT - ( + - 28 ) + + 97 col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT ALL + - COUNT( * ) * + + NULLIF ( + - NULLIF ( - 0, - + ( - + 2 ) * - 25 ), 26 * + 74 ) + - 14 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL + - COUNT ( * ) * + + NULLIF ( + - NULLIF ( - 0, - + ( - + 2 ) * - 25 ), 26 * + 74 ) + - 14 AS col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-982
SELECT - - 78 DIV - 97 + + 0 * 58
----
0

skipif mysql # not compatible
query I rowsort label-982
SELECT - - 78 / - 97 + + 0 * 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT + ( COUNT( * ) ) * + MIN( 0 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-983
SELECT + ( COUNT ( * ) ) * + MIN ( 0 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT ALL - 21 * + 58 * + COUNT( * ) - 70 AS col1
----
-1288

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL - 21 * + 58 * + COUNT ( * ) - 70 AS col1
----
-1288

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-985
SELECT DISTINCT 70 * - 87 - COUNT( * ), 69 DIV 31 AS col0
----
-6091
2

skipif mysql # not compatible
query II rowsort label-985
SELECT DISTINCT 70 * - 87 - COUNT ( * ), 69 / 31 AS col0
----
-6091
2

query I rowsort
SELECT DISTINCT 76 * - 58 AS col0
----
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT + 6 - + COUNT( * ) * + 67 + - 85 + - 66 * 33 + - 77 * - 12 AS col2
----
-1400

skipif mysql # not compatible
query I rowsort label-987
SELECT + 6 - + COUNT ( * ) * + 67 + - 85 + - 66 * 33 + - 77 * - 12 AS col2
----
-1400

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT NULLIF ( + 45, - + COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-988
SELECT NULLIF ( + 45, - + COUNT ( * ) )
----
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-989
SELECT + 23 + - - 86 + CASE 32 WHEN + 45 THEN NULL WHEN - 89 * 96 - 61 - - SUM( ALL - 13 ) * + 5 * - 98 * - 0 THEN COALESCE ( + AVG ( ALL - 65 ), + CAST( - 74 AS DECIMAL ) / 8 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-989
SELECT + 23 + - - 86 + CASE 32 WHEN + 45 THEN NULL WHEN - 89 * 96 - 61 - - SUM ( ALL - 13 ) * + 5 * - 98 * - 0 THEN COALESCE ( + AVG ( ALL - 65 ), + CAST ( - 74 AS REAL ) / 8 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT + CASE + COALESCE ( + MIN( + - 41 ), 7 * 4 + 83 + - ( + - SUM( + + 3 ) ), - 67 ) WHEN NULLIF ( 93, 75 / + 96 ) THEN - 52 - COUNT( * ) ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-990
SELECT + CASE + COALESCE ( + MIN ( + - 41 ), 7 * 4 + 83 + - ( + - SUM ( + + 3 ) ), - 67 ) WHEN NULLIF ( 93, 75 / + 96 ) THEN - 52 - COUNT ( * ) ELSE + COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-991
SELECT - SUM( + 33 ) DIV 93 * + + 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-991
SELECT - SUM ( + 33 ) / 93 * + + 61 AS col2
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-993
SELECT - COALESCE ( - CAST( + 38 AS SIGNED ), 52 - - 86 - CASE 53 WHEN + + ( 24 ) THEN CAST( NULL AS SIGNED ) * 79 * - 18 - - COUNT( * ) ELSE 71 + + 65 END - - ( + 24 ) ) * - COALESCE ( 7, 97 - 78 )
----
-266

skipif mysql # not compatible
query I rowsort label-993
SELECT - COALESCE ( - CAST ( + 38 AS INTEGER ), 52 - - 86 - CASE 53 WHEN + + ( 24 ) THEN CAST ( NULL AS INTEGER ) * 79 * - 18 - - COUNT ( * ) ELSE 71 + + 65 END - - ( + 24 ) ) * - COALESCE ( 7, 97 - 78 )
----
-266

query I rowsort
SELECT + 76 * 55
----
4180

onlyif mysql # aggregate syntax: 
query II rowsort label-995
SELECT + 48 col1, + MIN( DISTINCT 44 ) col0
----
48
44

skipif mysql # not compatible
query II rowsort label-995
SELECT + 48 col1, + MIN ( DISTINCT 44 ) col0
----
48
44

query I rowsort
SELECT - 70 + 73 * + + 7 AS col1
----
441

query II rowsort
SELECT DISTINCT + 78 AS col2, - 62 * + + 81
----
78
-5022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-998
SELECT - COUNT( * ) + 47 / 55 + CAST( NULL AS SIGNED ) - - - 55 + + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-998
SELECT - COUNT ( * ) + 47 / 55 + CAST ( NULL AS INTEGER ) - - - 55 + + 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-999
SELECT ALL + 26, - COUNT( * ) - - 75 AS col2
----
26
74

skipif mysql # not compatible
query II rowsort label-999
SELECT ALL + 26, - COUNT ( * ) - - 75 AS col2
----
26
74

query II rowsort
SELECT + 14 AS col2, 81 AS col0
----
14
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT ALL - 83 * COUNT( * ) + + + 13 + - - 46 + - + 29 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL - 83 * COUNT ( * ) + + + 13 + - - 46 + - + 29 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-1002
SELECT SUM( - + 17 ), - 58 * + COUNT( ALL 54 ) AS col1
----
-17
-58

skipif mysql # not compatible
query II rowsort label-1002
SELECT SUM ( - + 17 ), - 58 * + COUNT ( ALL 54 ) AS col1
----
-17
-58

query I rowsort
SELECT ALL + 30 * 89
----
2670

onlyif mysql # aggregate syntax: 
query II rowsort label-1004
SELECT - COUNT( * ) * - 57 AS col2, CASE + 21 WHEN + + 70 THEN NULL WHEN - - 53 + + ( - 35 ) * - COUNT( DISTINCT - 50 ) THEN + - 79 END
----
57
NULL

skipif mysql # not compatible
query II rowsort label-1004
SELECT - COUNT ( * ) * - 57 AS col2, CASE + 21 WHEN + + 70 THEN NULL WHEN - - 53 + + ( - 35 ) * - COUNT ( DISTINCT - 50 ) THEN + - 79 END
----
57
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1005
SELECT + 31 * + - ( + CAST( NULL AS SIGNED ) ) + + + COUNT( - 45 ) + + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-1005
SELECT + 31 * + - ( + CAST ( NULL AS INTEGER ) ) + + + COUNT ( - 45 ) + + + 78
----
NULL

query I rowsort
SELECT DISTINCT + 21 * 92
----
1932

query II rowsort
SELECT - 25 AS col0, 49 AS col1
----
-25
49

onlyif mysql # aggregate syntax: 
query II rowsort label-1008
SELECT - 92 + - - COUNT( + + 47 ) * + 67 AS col1, + 85 AS col2
----
-25
85

skipif mysql # not compatible
query II rowsort label-1008
SELECT - 92 + - - COUNT ( + + 47 ) * + 67 AS col1, + 85 AS col2
----
-25
85

query I rowsort
SELECT DISTINCT - 48 + - ( + + 4 ) * - - 94 AS col2
----
-424

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

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

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

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

query I rowsort
SELECT DISTINCT 78 + - ( 75 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1013
SELECT ALL 57 AS col2, 88 + - NULLIF ( - 56, - 47 ) + - 75 * + 61 * - MIN( DISTINCT 78 ) + - + 8 * 7
----
57
356938

skipif mysql # not compatible
query II rowsort label-1013
SELECT ALL 57 AS col2, 88 + - NULLIF ( - 56, - 47 ) + - 75 * + 61 * - MIN ( DISTINCT 78 ) + - + 8 * 7
----
57
356938

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT - COUNT( * ) - - 79 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-1014
SELECT - COUNT ( * ) - - 79 AS col2
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-1015
SELECT - 23 DIV + 62 + 17 + - 34
----
-17

skipif mysql # not compatible
query I rowsort label-1015
SELECT - 23 / + 62 + 17 + - 34
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1016
SELECT ALL - 17 * CAST( NULL AS SIGNED ) * + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL - 17 * CAST ( NULL AS INTEGER ) * + + 23
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT + 6 * COUNT( * ) * 98 AS col1
----
588

skipif mysql # not compatible
query I rowsort label-1018
SELECT + 6 * COUNT ( * ) * 98 AS col1
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT ALL MIN( DISTINCT + - 82 ) - + + 55 * + + 24 AS col0
----
-1402

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL MIN ( DISTINCT + - 82 ) - + + 55 * + + 24 AS col0
----
-1402

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

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

query I rowsort
SELECT DISTINCT + 14 - + - 56
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT ALL - COALESCE ( COUNT( * ), - + 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL - COALESCE ( COUNT ( * ), - + 95 )
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1024
SELECT - - 17 AS col0, COALESCE ( - 59, - COUNT( * ) * - NULLIF ( + CAST( NULL AS SIGNED ), - CASE + 13 WHEN 83 THEN NULL ELSE + + 72 END ) ) + + - COALESCE ( - 64, - 22, - 36 )
----
17
5

skipif mysql # not compatible
query II rowsort label-1024
SELECT - - 17 AS col0, COALESCE ( - 59, - COUNT ( * ) * - NULLIF ( + CAST ( NULL AS INTEGER ), - CASE + 13 WHEN 83 THEN NULL ELSE + + 72 END ) ) + + - COALESCE ( - 64, - 22, - 36 )
----
17
5

query I rowsort
SELECT DISTINCT + NULLIF ( - 9, 98 ) AS col1
----
-9

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

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

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

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

query I rowsort
SELECT - 24 * ( + 72 ) * 10 - - 33
----
-17247

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1029
SELECT COUNT( * ) DIV - NULLIF ( - 47, + + COUNT( * ) ) - + 31 * 29 AS col1
----
-899

skipif mysql # not compatible
query I rowsort label-1029
SELECT COUNT ( * ) / - NULLIF ( - 47, + + COUNT ( * ) ) - + 31 * 29 AS col1
----
-899

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1030
SELECT CAST( - + 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-1030
SELECT CAST ( - + 5 AS INTEGER )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1031
SELECT ALL CAST( + - MAX( + 49 ) AS SIGNED ) * - 71 + 25 + 28 * - + 31, 66 * - 32 AS col1
----
2636
-2112

skipif mysql # not compatible
query II rowsort label-1031
SELECT ALL CAST ( + - MAX ( + 49 ) AS INTEGER ) * - 71 + 25 + 28 * - + 31, 66 * - 32 AS col1
----
2636
-2112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1032
SELECT + 76 * + + COUNT( ALL - + CAST( 26 AS SIGNED ) ) * - 18
----
-1368

skipif mysql # not compatible
query I rowsort label-1032
SELECT + 76 * + + COUNT ( ALL - + CAST ( 26 AS INTEGER ) ) * - 18
----
-1368

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT + ( + 10 ) * + MAX( DISTINCT 8 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-1033
SELECT + ( + 10 ) * + MAX ( DISTINCT 8 ) AS col0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1034
SELECT DISTINCT ( - + 55 ) DIV 87 + + ( 69 ) + + 26
----
95

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT ( - + 55 ) / 87 + + ( 69 ) + + 26
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1035
SELECT + 29 + - 5 * CAST( - + COUNT( * ) AS SIGNED ) + + ( 14 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-1035
SELECT + 29 + - 5 * CAST ( - + COUNT ( * ) AS INTEGER ) + + ( 14 ) AS col2
----
48

query I rowsort
SELECT ALL 34 * 69 AS col2
----
2346

onlyif mysql # aggregate syntax: 
query II rowsort label-1037
SELECT + COUNT( * ) + - + 3 AS col2, - 67
----
-2
-67

skipif mysql # not compatible
query II rowsort label-1037
SELECT + COUNT ( * ) + - + 3 AS col2, - 67
----
-2
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1038
SELECT 42 DIV - ( - SUM( - 87 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1038
SELECT 42 / - ( - SUM ( - 87 ) )
----
0

query I rowsort
SELECT 77 * 15
----
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT CASE WHEN + 87 IN ( 47 * 29 * ( 43 ) ) THEN ( - 19 ) - 51 END * + ( - - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT CASE WHEN + 87 IN ( 47 * 29 * ( 43 ) ) THEN ( - 19 ) - 51 END * + ( - - COUNT ( * ) )
----
NULL

query I rowsort
SELECT 87 * + 64 * 57
----
317376

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT 90 + - COUNT( * ) - + + MAX( + 31 )
----
58

skipif mysql # not compatible
query I rowsort label-1042
SELECT 90 + - COUNT ( * ) - + + MAX ( + 31 )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1043
SELECT ALL - 71 DIV 75 col1
----
0

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - 71 / 75 col1
----
0

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

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

query I rowsort
SELECT 67 - - + 73
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT DISTINCT 86 + SUM( + - 34 ) + COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1046
SELECT DISTINCT 86 + SUM ( + - 34 ) + COUNT ( * ) AS col2
----
53

query I rowsort
SELECT ALL + 99 * + 64
----
6336

query I rowsort
SELECT ALL - + 99 + + + 17 * + 20 AS col0
----
241

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

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

query I rowsort
SELECT 83 - - ( - + 74 ) + + - 36 AS col0
----
-27

query I rowsort
SELECT ALL - + 8 - - 62 + 49 AS col0
----
103

query I rowsort
SELECT 32 + 71 AS col0
----
103

query I rowsort
SELECT + 44 + - 17 AS col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1054
SELECT ALL - 21 DIV CASE 50 WHEN + NULLIF ( - 80, + ( ( - 2 ) ) ) * - - COUNT( * ) DIV + ( + 43 ) THEN - 70 * 36 - 25 ELSE - NULLIF ( 55, - COUNT( * ) * 27 ) * COALESCE ( 94, CASE - 48 WHEN + 44 * 64 + - COUNT( - 15 ) THEN - 13 ELSE NULL END ) + - 94 END
----
0

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL - 21 / CASE 50 WHEN + NULLIF ( - 80, + ( ( - 2 ) ) ) * - - COUNT ( * ) / + ( + 43 ) THEN - 70 * 36 - 25 ELSE - NULLIF ( 55, - COUNT ( * ) * 27 ) * COALESCE ( 94, CASE - 48 WHEN + 44 * 64 + - COUNT ( - 15 ) THEN - 13 ELSE NULL END ) + - 94 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT 55 + MAX( + 78 ) AS col1
----
133

skipif mysql # not compatible
query I rowsort label-1055
SELECT 55 + MAX ( + 78 ) AS col1
----
133

query I rowsort
SELECT ALL 10 - 76 AS col1
----
-66

query II rowsort
SELECT - 84 + + ( 93 ) * 98 * + + 41 AS col0, + 75 col0
----
373590
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1058
SELECT ALL - + SUM( - + 14 ) DIV - + 38
----
0

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL - + SUM ( - + 14 ) / - + 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT DISTINCT - COUNT( * ) * + 98 * + - 37 col0
----
3626

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT - COUNT ( * ) * + 98 * + - 37 col0
----
3626

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

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

query I rowsort
SELECT 20 * + 33 AS col1
----
660

query I rowsort
SELECT 55 + + 87 AS col2
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT 62 DIV - - ( 2 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-1063
SELECT 62 / - - ( 2 ) AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1064
SELECT DISTINCT - 97 AS col0, + CASE - 52 WHEN - + ( - CAST( - 43 AS SIGNED ) ) + - COUNT( * ) THEN NULL ELSE - - 93 END
----
-97
93

skipif mysql # not compatible
query II rowsort label-1064
SELECT DISTINCT - 97 AS col0, + CASE - 52 WHEN - + ( - CAST ( - 43 AS INTEGER ) ) + - COUNT ( * ) THEN NULL ELSE - - 93 END
----
-97
93

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

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

query II rowsort
SELECT DISTINCT - 29 AS col2, + 97
----
-29
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT ALL 87 + 2 - + + 89 + COUNT( * ) - 6
----
-5

skipif mysql # not compatible
query I rowsort label-1067
SELECT ALL 87 + 2 - + + 89 + COUNT ( * ) - 6
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT - COUNT( * ) * MAX( DISTINCT 53 ) * - 63 - - 91 AS col1
----
3430

skipif mysql # not compatible
query I rowsort label-1068
SELECT - COUNT ( * ) * MAX ( DISTINCT 53 ) * - 63 - - 91 AS col1
----
3430

query II rowsort
SELECT 41 AS col0, 46
----
41
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1070
SELECT 87 + - - COALESCE ( + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) * + 2 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1070
SELECT 87 + - - COALESCE ( + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * + 2 ) col0
----
NULL

query I rowsort
SELECT DISTINCT 16 * - 55 AS col2
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT 70 * MIN( - 63 )
----
-4410

skipif mysql # not compatible
query I rowsort label-1072
SELECT 70 * MIN ( - 63 )
----
-4410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1073
SELECT ALL 45 DIV COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-1073
SELECT ALL 45 / COUNT ( * ) AS col0
----
45

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

skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT COUNT ( * ) + SUM ( ALL 84 )
----
85

query I rowsort
SELECT + 98 * - - ( 78 ) - - 31 AS col2
----
7675

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT ALL - MAX( + + 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL - MAX ( + + 12 )
----
-12

query I rowsort
SELECT ALL 38 + - 82 AS col0
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1078
SELECT COUNT( * ) DIV + 19 - - COUNT( DISTINCT + 28 ) + + + 69
----
70

skipif mysql # not compatible
query I rowsort label-1078
SELECT COUNT ( * ) / + 19 - - COUNT ( DISTINCT + 28 ) + + + 69
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1079
SELECT + 64 * ( + SUM( 34 ) ) * + 68 DIV COALESCE ( COUNT( * ), + 2 * COUNT( * ), + 30 ) + + 86 * COUNT( 56 ) + ( 31 )
----
148085

skipif mysql # not compatible
query I rowsort label-1079
SELECT + 64 * ( + SUM ( 34 ) ) * + 68 / COALESCE ( COUNT ( * ), + 2 * COUNT ( * ), + 30 ) + + 86 * COUNT ( 56 ) + ( 31 )
----
148085

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT + COALESCE ( - 65, - COUNT( * ), - - 47, COALESCE ( - 20, NULLIF ( - - 94, - + 88 - 7 * - MIN( ALL + 71 ) * - MAX( ALL + 85 ) + + 11 + 16 * NULLIF ( - 45 * - ( 44 ), ( + ( COUNT( * ) ) ) * ( 44 + + 56 ) ) ) * 39, - 64 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-1080
SELECT + COALESCE ( - 65, - COUNT ( * ), - - 47, COALESCE ( - 20, NULLIF ( - - 94, - + 88 - 7 * - MIN ( ALL + 71 ) * - MAX ( ALL + 85 ) + + 11 + 16 * NULLIF ( - 45 * - ( 44 ), ( + ( COUNT ( * ) ) ) * ( 44 + + 56 ) ) ) * 39, - 64 ) )
----
-65

query I rowsort
SELECT - + ( - + 39 ) * + + ( - - NULLIF ( + - NULLIF ( 10, - + 11 ), 40 ) ) + + + 3 AS col2
----
-387

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT NULLIF ( - 43, + - 4 * + + ( + - 56 ) ) * COUNT( * ) * + - 39 AS col2
----
1677

skipif mysql # not compatible
query I rowsort label-1082
SELECT NULLIF ( - 43, + - 4 * + + ( + - 56 ) ) * COUNT ( * ) * + - 39 AS col2
----
1677

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1083
SELECT DISTINCT 54 DIV + 93 * - 33 * - + COUNT( * ) + + 13 DIV - - 46 AS col0, - MAX( - NULLIF ( - + 32, 50 + - - 36 ) )
----
0
-32

skipif mysql # not compatible
query II rowsort label-1083
SELECT DISTINCT 54 / + 93 * - 33 * - + COUNT ( * ) + + 13 / - - 46 AS col0, - MAX ( - NULLIF ( - + 32, 50 + - - 36 ) )
----
0
-32

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

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

query II rowsort
SELECT ALL - 76 * + 70 + - - 21 AS col1, 41
----
-5299
41

query I rowsort
SELECT + 8 - + 70
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1087
SELECT ALL - - ( COUNT( * ) ) * COUNT( CAST( NULL AS SIGNED ) ) + 84 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL - - ( COUNT ( * ) ) * COUNT ( CAST ( NULL AS INTEGER ) ) + 84 AS col1
----
84

query I rowsort
SELECT - 30 * + 61
----
-1830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1089
SELECT ALL - 6 + - 7 + + 13 * - 94 + CAST( - 27 AS SIGNED ) + - 70 + + 99 AS col2
----
-1233

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL - 6 + - 7 + + 13 * - 94 + CAST ( - 27 AS INTEGER ) + - 70 + + 99 AS col2
----
-1233

query I rowsort
SELECT ALL 59 * 13
----
767

onlyif mysql # aggregate syntax: 
query III rowsort label-1091
SELECT - 5 * - NULLIF ( - 50, - 61 ) * + COUNT( * ) AS col0, 85 + + - 41 AS col0, 30 AS col1
----
-250
44
30

skipif mysql # not compatible
query III rowsort label-1091
SELECT - 5 * - NULLIF ( - 50, - 61 ) * + COUNT ( * ) AS col0, 85 + + - 41 AS col0, 30 AS col1
----
-250
44
30

query I rowsort
SELECT ALL - 7 + 5 + - 6
----
-8

query I rowsort
SELECT NULLIF ( + + 54, - NULLIF ( 47, 8 ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT ALL SUM( DISTINCT 95 ) * + 96 + - + 9
----
9111

skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL SUM ( DISTINCT 95 ) * + 96 + - + 9
----
9111

query I rowsort
SELECT - 69 + 24
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1096
SELECT + 82 DIV + COUNT( * ) - - 62 + 82 * COUNT( * ) AS col1
----
226

skipif mysql # not compatible
query I rowsort label-1096
SELECT + 82 / + COUNT ( * ) - - 62 + 82 * COUNT ( * ) AS col1
----
226

query I rowsort
SELECT ALL + 71 * + 84
----
5964

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1099
SELECT DISTINCT ( 84 ) * 56 + + ( - CASE CASE - 19 WHEN - NULLIF ( CAST( - - 97 AS SIGNED ), - COUNT( * ) ) - 56 + + 99 - 36 THEN NULL ELSE - 80 END WHEN 2 THEN 19 * 5 - + 35 WHEN - 99 * - 89 THEN NULL END ) + 66 + COALESCE ( - 56, 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT ( 84 ) * 56 + + ( - CASE CASE - 19 WHEN - NULLIF ( CAST ( - - 97 AS INTEGER ), - COUNT ( * ) ) - 56 + + 99 - 36 THEN NULL ELSE - 80 END WHEN 2 THEN 19 * 5 - + 35 WHEN - 99 * - 89 THEN NULL END ) + 66 + COALESCE ( - 56, 93 )
----
NULL

query II rowsort
SELECT ALL - 98 * 35 col0, - 21 * - 56 AS col0
----
-3430
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT ALL + NULLIF ( - ( + + 70 ), + 92 * - + COUNT( * ) + + 59 - - 79 - - 53 / - - 8 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL + NULLIF ( - ( + + 70 ), + 92 * - + COUNT ( * ) + + 59 - - 79 - - 53 / - - 8 ) AS col1
----
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1102
SELECT DISTINCT - 17 * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1102
SELECT DISTINCT - 17 * - CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT - 16 + 70 AS col2, 27 * - 68 * + - 3 * 40 AS col1
----
54
220320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1104
SELECT NULLIF ( 84, CASE 45 WHEN 5 THEN - 83 * CASE - 63 WHEN 66 * + + 11 - - 89 THEN MIN( DISTINCT + 64 ) - - 30 + MAX( DISTINCT CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED ) WHEN + 10 * ( + COUNT( * ) ) THEN - 13 ELSE 12 END - CAST( NULL AS SIGNED ) + + 31 ELSE 1 + 17 * 24 END + COUNT( * ) * 67 )
----
84

skipif mysql # not compatible
query I rowsort label-1104
SELECT NULLIF ( 84, CASE 45 WHEN 5 THEN - 83 * CASE - 63 WHEN 66 * + + 11 - - 89 THEN MIN ( DISTINCT + 64 ) - - 30 + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER ) WHEN + 10 * ( + COUNT ( * ) ) THEN - 13 ELSE 12 END - CAST ( NULL AS INTEGER ) + + 31 ELSE 1 + 17 * 24 END + COUNT ( * ) * 67 )
----
84

query I rowsort
SELECT ALL - 99 * + 91 AS col2
----
-9009

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT SUM( ALL 35 )
----
35

skipif mysql # not compatible
query I rowsort label-1106
SELECT SUM ( ALL 35 )
----
35

query I rowsort
SELECT + 93 * 6 + 26 + + 51 * - 19 + 40 AS col2
----
-345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1108
SELECT - - ( 66 ) * ( - 42 ) * + 14 + CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1108
SELECT - - ( 66 ) * ( - 42 ) * + 14 + CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

query II rowsort
SELECT + - 26 * - 33 AS col0, 27
----
858
27

query I rowsort
SELECT + 3 * + - 77 * - 86 AS col1
----
19866

onlyif mysql # aggregate syntax: 
query III rowsort label-1111
SELECT ALL 42 * + - 10, 49 + + 14 * ( 90 ) * + - COUNT( * ) AS col0, + 36 * - 75 AS col0
----
-420
-1211
-2700

skipif mysql # not compatible
query III rowsort label-1111
SELECT ALL 42 * + - 10, 49 + + 14 * ( 90 ) * + - COUNT ( * ) AS col0, + 36 * - 75 AS col0
----
-420
-1211
-2700

query I rowsort
SELECT DISTINCT - 38 * - 97 AS col0
----
3686

onlyif mysql # DIV for integer division: 
query I rowsort label-1113
SELECT DISTINCT - 27 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-1113
SELECT DISTINCT - 27 / - 55
----
0

query I rowsort
SELECT + - 99 * - 61 - - + 28
----
6067

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT + 62 - + + SUM( - 69 ) - + 8 AS col1
----
123

skipif mysql # not compatible
query I rowsort label-1115
SELECT + 62 - + + SUM ( - 69 ) - + 8 AS col1
----
123

query I rowsort
SELECT + - 39 + - 88 AS col0
----
-127

onlyif mysql # aggregate syntax: 
query II rowsort label-1117
SELECT + 75 - - MIN( 95 ) + - + 24, 56 - - 19 AS col0
----
146
75

skipif mysql # not compatible
query II rowsort label-1117
SELECT + 75 - - MIN ( 95 ) + - + 24, 56 - - 19 AS col0
----
146
75

query I rowsort
SELECT ALL - ( - ( 87 ) ) AS col2
----
87

query II rowsort
SELECT DISTINCT + 11 + 13 AS col2, - 74
----
24
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1120
SELECT DISTINCT + - CASE - + MIN( DISTINCT + NULLIF ( 64, + 1 ) ) WHEN 57 THEN COUNT( ALL + CAST( + + 91 AS DECIMAL ) ) WHEN - 80 + - + 81 * 32 + - 93 + 30 * - MAX( ALL 81 * 68 ) THEN NULL ELSE NULL END * 52 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT + - CASE - + MIN ( DISTINCT + NULLIF ( 64, + 1 ) ) WHEN 57 THEN COUNT ( ALL + CAST ( + + 91 AS REAL ) ) WHEN - 80 + - + 81 * 32 + - 93 + 30 * - MAX ( ALL 81 * 68 ) THEN NULL ELSE NULL END * 52 col1
----
NULL

query I rowsort
SELECT DISTINCT ( - 16 ) + + CASE - - 88 WHEN ( 91 ) + - 54 - 17 + - 40 * 11 * + 86 * + - 11 * + 45 THEN NULL WHEN + 60 THEN 12 ELSE 53 * - 97 + 76 END
----
-5081

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1122
SELECT ALL - 2 * - + COUNT( * ) * - NULLIF ( - 92, - 97 ) AS col2, 1 + 28 - + 79 DIV + 74 * + COUNT( * ) AS col2
----
184
28

skipif mysql # not compatible
query II rowsort label-1122
SELECT ALL - 2 * - + COUNT ( * ) * - NULLIF ( - 92, - 97 ) AS col2, 1 + 28 - + 79 / + 74 * + COUNT ( * ) AS col2
----
184
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1123
SELECT ALL CASE - 3 WHEN 27 * COUNT( * ) / + - 19 THEN 17 + + ( 55 ) ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL CASE - 3 WHEN 27 * COUNT ( * ) / + - 19 THEN 17 + + ( 55 ) ELSE CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT + NULLIF ( COUNT( * ), 53 * + 94 + - 0 ) + 74 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-1124
SELECT + NULLIF ( COUNT ( * ), 53 * + 94 + - 0 ) + 74 AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1125
SELECT ALL CAST( NULL AS DECIMAL ) + - COUNT( * ) + + 23 * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL CAST ( NULL AS REAL ) + - COUNT ( * ) + + 23 * 65
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1126
SELECT DISTINCT 38 AS col1, COUNT( DISTINCT - 23 ) DIV + COUNT( * ) AS col0
----
38
1

skipif mysql # not compatible
query II rowsort label-1126
SELECT DISTINCT 38 AS col1, COUNT ( DISTINCT - 23 ) / + COUNT ( * ) AS col0
----
38
1

query I rowsort
SELECT + 94 * + + 29 AS col1
----
2726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1128
SELECT ALL 5 * NULLIF ( + 80, NULLIF ( - CAST( + - COUNT( * ) AS SIGNED ), + 96 * - - ( - MIN( ALL + + 12 ) ) + 59 ) + 5 - COALESCE ( 15, + - 42 ) ) col2
----
400

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL 5 * NULLIF ( + 80, NULLIF ( - CAST ( + - COUNT ( * ) AS INTEGER ), + 96 * - - ( - MIN ( ALL + + 12 ) ) + 59 ) + 5 - COALESCE ( 15, + - 42 ) ) col2
----
400

query I rowsort
SELECT + 11 + + + 73
----
84

query I rowsort
SELECT DISTINCT + 84 * - 70 AS col2
----
-5880

query I rowsort
SELECT DISTINCT - 30 + - 70
----
-100

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

skipif mysql # not compatible
query I rowsort label-1132
SELECT + MAX ( + 47 ) * - - COUNT ( * ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1133
SELECT ALL CASE + COUNT( * ) WHEN COALESCE ( + + 18, - 40 - - 9 * 26 ) THEN NULL WHEN - 36 + 53 THEN - 61 END * 88 AS col0, + MIN( DISTINCT 89 )
----
NULL
89

skipif mysql # not compatible
query II rowsort label-1133
SELECT ALL CASE + COUNT ( * ) WHEN COALESCE ( + + 18, - 40 - - 9 * 26 ) THEN NULL WHEN - 36 + 53 THEN - 61 END * 88 AS col0, + MIN ( DISTINCT 89 )
----
NULL
89

onlyif mysql # DIV for integer division: 
query I rowsort label-1134
SELECT ALL 34 DIV 45 - - 48 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL 34 / 45 - - 48 AS col0
----
48

query I rowsort
SELECT - 57 + + - ( - + 94 ) * + + 22
----
2011

onlyif mysql # DIV for integer division: 
query I rowsort label-1136
SELECT ALL + 40 DIV + + 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL + 40 / + + 87 AS col1
----
0

query I rowsort
SELECT DISTINCT + 31 * + 11 col0
----
341

onlyif mysql # aggregate syntax: 
query II rowsort label-1138
SELECT DISTINCT + COUNT( * ) AS col1, NULLIF ( - - 31, + 52 * 86 - - + 22 * + ( AVG ( DISTINCT + 53 ) ) ) * 75 AS col0
----
1
2325

skipif mysql # not compatible
query II rowsort label-1138
SELECT DISTINCT + COUNT ( * ) AS col1, NULLIF ( - - 31, + 52 * 86 - - + 22 * + ( AVG ( DISTINCT + 53 ) ) ) * 75 AS col0
----
1
2325

query I rowsort
SELECT + 21 + - 41 AS col0
----
-20

query I rowsort
SELECT - 86 * - ( + 40 )
----
3440

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1141
SELECT ALL + COUNT( * ) / + CASE + - CAST( NULL AS DECIMAL ) WHEN - 47 + 2 THEN - 69 END * - 21 + - + 48 + 91 * - CAST( 67 AS DECIMAL ) + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL + COUNT ( * ) / + CASE + - CAST ( NULL AS REAL ) WHEN - 47 + 2 THEN - 69 END * - 21 + - + 48 + 91 * - CAST ( 67 AS REAL ) + - 85
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1142
SELECT - ( - + 82 ) * - - CASE + + 90 WHEN + 75 THEN + + CAST( NULL AS SIGNED ) * + 74 + NULLIF ( + + 5, + MAX( 39 ) ) ELSE NULL END * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1142
SELECT - ( - + 82 ) * - - CASE + + 90 WHEN + 75 THEN + + CAST ( NULL AS INTEGER ) * + 74 + NULLIF ( + + 5, + MAX ( 39 ) ) ELSE NULL END * + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1143
SELECT - 62 * - ( 63 ) AS col0, - 92 * + + SUM( DISTINCT - 13 ) col0
----
3906
1196

skipif mysql # not compatible
query II rowsort label-1143
SELECT - 62 * - ( 63 ) AS col0, - 92 * + + SUM ( DISTINCT - 13 ) col0
----
3906
1196

query I rowsort
SELECT DISTINCT + - 63 * + 28 AS col1
----
-1764

query I rowsort
SELECT ALL - - 1 * - 55
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-1146
SELECT - 87 DIV - + 43 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1146
SELECT - 87 / - + 43 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT ALL + 89 * - MIN( ALL + 73 )
----
-6497

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL + 89 * - MIN ( ALL + 73 )
----
-6497

query I rowsort
SELECT ALL + ( NULLIF ( + 45, - - 81 ) ) AS col1
----
45

query I rowsort
SELECT - - 3 + + 89
----
92

query I rowsort
SELECT ALL - 98 * + 40 AS col0
----
-3920

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1152
SELECT ALL + - CAST( - - 83 AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL + - CAST ( - - 83 AS INTEGER )
----
-83

query I rowsort
SELECT + - 54 * - COALESCE ( + - 9, + - 97, - 69 + 63 ) * + 50 + + 94 * - 14 AS col0
----
-25616

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT - - 0 * + 21 + - - MAX( + 8 ) + - 93 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-1154
SELECT - - 0 * + 21 + - - MAX ( + 8 ) + - 93 AS col0
----
-85

query I rowsort
SELECT - 3 * + + 91
----
-273

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1156
SELECT ALL + 28 * - - CASE + 1 WHEN + - 67 THEN + + 28 ELSE NULL END * - 16 / - + 36 + 58 / + + 43 * 6 * + - ( - ( - 25 ) ) * - + CASE ( + ( 48 ) ) WHEN - COALESCE ( 0, - 57, + 6 * CAST( NULL AS DECIMAL ) ) THEN NULL WHEN 76 * + 15 THEN + 66 WHEN + 15 / + COUNT( * ) THEN + 74 END * + NULLIF ( - 93, 85 ) + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL + 28 * - - CASE + 1 WHEN + - 67 THEN + + 28 ELSE NULL END * - 16 / - + 36 + 58 / + + 43 * 6 * + - ( - ( - 25 ) ) * - + CASE ( + ( 48 ) ) WHEN - COALESCE ( 0, - 57, + 6 * CAST ( NULL AS REAL ) ) THEN NULL WHEN 76 * + 15 THEN + 66 WHEN + 15 / + COUNT ( * ) THEN + 74 END * + NULLIF ( - 93, 85 ) + + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL - - SUM( + + 69 ) * - 74 * 92 + + + 27 + 46 AS col1
----
-469679

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL - - SUM ( + + 69 ) * - 74 * 92 + + + 27 + 46 AS col1
----
-469679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1158
SELECT DISTINCT + AVG ( + 87 ) * - - 99 + CASE + SUM( + + 30 ) WHEN - 40 * + 36 + - COUNT( * ) THEN - CAST( + + 44 AS SIGNED ) WHEN - 47 / - 63 * COUNT( * ) THEN + 17 * + COALESCE ( + 43, - 44 / - 21 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1158
SELECT DISTINCT + AVG ( + 87 ) * - - 99 + CASE + SUM ( + + 30 ) WHEN - 40 * + 36 + - COUNT ( * ) THEN - CAST ( + + 44 AS INTEGER ) WHEN - 47 / - 63 * COUNT ( * ) THEN + 17 * + COALESCE ( + 43, - 44 / - 21 ) END
----
NULL

query I rowsort
SELECT ALL + + 41 + - - ( + 0 ) + + ( - 34 ) * - ( + - 2 ) * + 62 AS col1
----
-4175

query I rowsort
SELECT ALL 18 + 80 - 42 * - 86
----
3710

query II rowsort
SELECT DISTINCT 33 AS col1, - 26
----
33
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT COUNT( * ) - - 54 * - 0 * + 83 + + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1162
SELECT COUNT ( * ) - - 54 * - 0 * + 83 + + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1163
SELECT ( + COUNT( * ) ) * + 19 * + 7 - 46 DIV - - 74
----
133

skipif mysql # not compatible
query I rowsort label-1163
SELECT ( + COUNT ( * ) ) * + 19 * + 7 - 46 / - - 74
----
133

query II rowsort
SELECT 45 + - 54 + + ( 90 ) * + - 8 * + - 31, + 30 AS col1
----
22311
30

query II rowsort
SELECT 57, 53 AS col1
----
57
53

query II rowsort
SELECT - 94 AS col0, + 36
----
-94
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1167
SELECT ( - + CAST( + 30 AS SIGNED ) ) * + COUNT( * ) col1, - 58
----
-30
-58

skipif mysql # not compatible
query II rowsort label-1167
SELECT ( - + CAST ( + 30 AS INTEGER ) ) * + COUNT ( * ) col1, - 58
----
-30
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-1168
SELECT ALL 54, - COUNT( * ) - + 19 AS col0
----
54
-20

skipif mysql # not compatible
query II rowsort label-1168
SELECT ALL 54, - COUNT ( * ) - + 19 AS col0
----
54
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1169
SELECT ALL 10 * + 97, CAST( NULL AS SIGNED ) AS col1
----
970
NULL

skipif mysql # not compatible
query II rowsort label-1169
SELECT ALL 10 * + 97, CAST ( NULL AS INTEGER ) AS col1
----
970
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1170
SELECT 80 - - + COUNT( * ) + - CAST( - 58 AS SIGNED ) * - NULLIF ( + 43, + MAX( + + ( + 83 ) ) - - 11 )
----
-2413

skipif mysql # not compatible
query I rowsort label-1170
SELECT 80 - - + COUNT ( * ) + - CAST ( - 58 AS INTEGER ) * - NULLIF ( + 43, + MAX ( + + ( + 83 ) ) - - 11 )
----
-2413

onlyif mysql # aggregate syntax: 
query II rowsort label-1171
SELECT 87, + COUNT( * ) + - 90 AS col0
----
87
-89

skipif mysql # not compatible
query II rowsort label-1171
SELECT 87, + COUNT ( * ) + - 90 AS col0
----
87
-89

query II rowsort
SELECT - 60 AS col2, 78
----
-60
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1173
SELECT ALL + 44 - - 75 + - 12 + - + 24 * + COUNT( * ) * - 89 + + CAST( + 40 AS SIGNED ) AS col0
----
2283

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL + 44 - - 75 + - 12 + - + 24 * + COUNT ( * ) * - 89 + + CAST ( + 40 AS INTEGER ) AS col0
----
2283

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT + 23 * + 47 + + - 90 * - 40 + - COUNT( * ) AS col0
----
4680

skipif mysql # not compatible
query I rowsort label-1174
SELECT + 23 * + 47 + + - 90 * - 40 + - COUNT ( * ) AS col0
----
4680

query I rowsort
SELECT ( - 63 ) * 5 + 48
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT 21 * + + COUNT( - - ( 80 ) )
----
21

skipif mysql # not compatible
query I rowsort label-1176
SELECT 21 * + + COUNT ( - - ( 80 ) )
----
21

query I rowsort
SELECT DISTINCT + COALESCE ( + 90, + 92 + 32 + + - 42 ) * - + 96 + 23
----
-8617

onlyif mysql # DIV for integer division: 
query II rowsort label-1178
SELECT ALL - 60, 55 DIV - - ( 28 ) AS col1
----
-60
1

skipif mysql # not compatible
query II rowsort label-1178
SELECT ALL - 60, 55 / - - ( 28 ) AS col1
----
-60
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1179
SELECT ALL - CAST( + + 7 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL - CAST ( + + 7 AS INTEGER )
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-1180
SELECT - + 4 DIV - - COALESCE ( - 32, + 64, 34 ) + + 99, - 68 * + + 2 AS col2
----
99
-136

skipif mysql # not compatible
query II rowsort label-1180
SELECT - + 4 / - - COALESCE ( - 32, + 64, 34 ) + + 99, - 68 * + + 2 AS col2
----
99
-136

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1182
SELECT ALL - + CAST( 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL - + CAST ( 0 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT + 5 + + - 50 + 77
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-1184
SELECT ALL - 62, COUNT( * ) + + 43 AS col2
----
-62
44

skipif mysql # not compatible
query II rowsort label-1184
SELECT ALL - 62, COUNT ( * ) + + 43 AS col2
----
-62
44

onlyif mysql # DIV for integer division: 
query I rowsort label-1185
SELECT 21 DIV NULLIF ( - - 27, - 43 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1185
SELECT 21 / NULLIF ( - - 27, - 43 ) AS col1
----
0

query I rowsort
SELECT - CASE - 72 WHEN - 96 THEN + 75 ELSE + COALESCE ( - 75, + + 96 * + 20 ) END * - - 60 + + 77
----
4577

query II rowsort
SELECT 52 * - 50 + ( - 74 ) col1, 44
----
-2674
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT + + MIN( DISTINCT 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-1188
SELECT + + MIN ( DISTINCT 94 ) AS col2
----
94

query I rowsort
SELECT ALL + - 81 + 70
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1190
SELECT 44 DIV - COALESCE ( + - COALESCE ( + 36, + - 64 - - 72, + - 34 ), + + 55 )
----
1

skipif mysql # not compatible
query I rowsort label-1190
SELECT 44 / - COALESCE ( + - COALESCE ( + 36, + - 64 - - 72, + - 34 ), + + 55 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1191
SELECT ALL - 11 + + 76 DIV - + 20
----
-14

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL - 11 + + 76 / - + 20
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT ALL - SUM( 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL - SUM ( 48 )
----
-48

query I rowsort
SELECT DISTINCT - - ( - + 65 ) + - 5
----
-70

query I rowsort
SELECT ( 7 ) * + - 18
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1195
SELECT 56 * - 47 DIV + - COUNT( ALL + 18 ) + - - 7
----
2639

skipif mysql # not compatible
query I rowsort label-1195
SELECT 56 * - 47 / + - COUNT ( ALL + 18 ) + - - 7
----
2639

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1196
SELECT ALL - ( - 87 ) + - COALESCE ( NULLIF ( 72, - 7 DIV - - 23 * + 62 + - 41 - 23 + - CASE 29 WHEN - 28 + + 30 + SUM( ( CAST( NULL AS SIGNED ) ) ) THEN + MAX( + 34 ) + - ( + 6 ) ELSE - 83 END + SUM( DISTINCT - 42 ) * 53 * 49 ), - ( ( CAST( NULL AS SIGNED ) ) ) * + 80 + 46, + 4 * ( COALESCE ( + 80, - ( 52 ) ) ), + NULLIF ( + COALESCE ( + 20, - ( 5 ) + + 89 ), + ( - 35 ) ) DIV 59 ) - 89
----
-74

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL - ( - 87 ) + - COALESCE ( NULLIF ( 72, - 7 / - - 23 * + 62 + - 41 - 23 + - CASE 29 WHEN - 28 + + 30 + SUM ( ( CAST ( NULL AS INTEGER ) ) ) THEN + MAX ( + 34 ) + - ( + 6 ) ELSE - 83 END + SUM ( DISTINCT - 42 ) * 53 * 49 ), - ( ( CAST ( NULL AS INTEGER ) ) ) * + 80 + 46, + 4 * ( COALESCE ( + 80, - ( 52 ) ) ), + NULLIF ( + COALESCE ( + 20, - ( 5 ) + + 89 ), + ( - 35 ) ) / 59 ) - 89
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-1197
SELECT 36 + NULLIF ( + - 88, - + COUNT( * ) * - - 73 ) AS col2, 59 col2
----
-52
59

skipif mysql # not compatible
query II rowsort label-1197
SELECT 36 + NULLIF ( + - 88, - + COUNT ( * ) * - - 73 ) AS col2, 59 col2
----
-52
59

query I rowsort
SELECT 71 - + ( + - 77 )
----
148

query I rowsort
SELECT CASE 3 WHEN + 67 + + 60 + - - ( 63 ) * + - 24 THEN 47 WHEN - + 53 THEN NULL END + + - 69
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1200
SELECT ALL + 75 - + 14 AS col1, + 22 + + COUNT( * )
----
61
23

skipif mysql # not compatible
query II rowsort label-1200
SELECT ALL + 75 - + 14 AS col1, + 22 + + COUNT ( * )
----
61
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT 90 + + 28 + - ( + NULLIF ( - - COUNT( * ), + 45 ) )
----
117

skipif mysql # not compatible
query I rowsort label-1201
SELECT 90 + + 28 + - ( + NULLIF ( - - COUNT ( * ), + 45 ) )
----
117

query II rowsort
SELECT 61 + 86 * + - 32 AS col0, + 53 * + 69
----
-2691
3657

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT MIN( 5 ) + + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-1203
SELECT MIN ( 5 ) + + COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT ALL MAX( - - 77 ) * + MIN( + 3 )
----
231

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL MAX ( - - 77 ) * + MIN ( + 3 )
----
231

onlyif mysql # aggregate syntax: 
query II rowsort label-1205
SELECT 80 + COUNT( * ), - MAX( DISTINCT - + 93 ) * + 0 + - + 42 col0
----
81
-42

skipif mysql # not compatible
query II rowsort label-1205
SELECT 80 + COUNT ( * ), - MAX ( DISTINCT - + 93 ) * + 0 + - + 42 col0
----
81
-42

query I rowsort
SELECT ALL + 12 - - ( 47 )
----
59

query II rowsort
SELECT DISTINCT - 58 * - + 43 AS col2, 66
----
2494
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1208
SELECT 90 + + 73 DIV 40 * 40
----
130

skipif mysql # not compatible
query I rowsort label-1208
SELECT 90 + + 73 / 40 * 40
----
130

query I rowsort
SELECT 96 * 49 * 67 col2
----
315168

query I rowsort
SELECT ALL - 40 * + 47
----
-1880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1211
SELECT 76 + + ( + + NULLIF ( - 16, COUNT( * ) * + CAST( 77 AS SIGNED ) - + - 81 ) ) * 24 + 55 * + MIN( + 90 ) AS col0
----
4642

skipif mysql # not compatible
query I rowsort label-1211
SELECT 76 + + ( + + NULLIF ( - 16, COUNT ( * ) * + CAST ( 77 AS INTEGER ) - + - 81 ) ) * 24 + 55 * + MIN ( + 90 ) AS col0
----
4642

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT 15 + + - CASE NULLIF ( - + 66, - COUNT( * ) ) WHEN - 50 THEN NULL ELSE - + 49 END
----
64

skipif mysql # not compatible
query I rowsort label-1212
SELECT 15 + + - CASE NULLIF ( - + 66, - COUNT ( * ) ) WHEN - 50 THEN NULL ELSE - + 49 END
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1213
SELECT 86 DIV + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1213
SELECT 86 / + 94 AS col0
----
0

query I rowsort
SELECT 21 * - 83 AS col2
----
-1743

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT ( COALESCE ( 82, + - 97 ) ) + 15 * 67 DIV - 25
----
42

skipif mysql # not compatible
query I rowsort label-1215
SELECT ( COALESCE ( 82, + - 97 ) ) + 15 * 67 / - 25
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-1216
SELECT SUM( DISTINCT + 8 ), 48 + + 0 * + - 74 * - 5 AS col2
----
8
48

skipif mysql # not compatible
query II rowsort label-1216
SELECT SUM ( DISTINCT + 8 ), 48 + + 0 * + - 74 * - 5 AS col2
----
8
48

query I rowsort
SELECT ALL 9 * - + 65 AS col2
----
-585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1218
SELECT 98 + - CAST( + 21 AS SIGNED ) * - + 66
----
1484

skipif mysql # not compatible
query I rowsort label-1218
SELECT 98 + - CAST ( + 21 AS INTEGER ) * - + 66
----
1484

query II rowsort
SELECT DISTINCT - 51 * + 52, 53 + - 9 + - 24 AS col2
----
-2652
20

query I rowsort
SELECT ALL - - 55 * - 98 + - ( 89 ) + ( + 77 ) + - 11
----
-5413

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT - - COUNT( * ) * - - 8 - - 98 + + 82
----
188

skipif mysql # not compatible
query I rowsort label-1221
SELECT - - COUNT ( * ) * - - 8 - - 98 + + 82
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT SUM( - 17 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-1222
SELECT SUM ( - 17 ) AS col0
----
-17

query I rowsort
SELECT 67 + + - 79
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT DISTINCT + - 24 * + + 49 + - 15 * ( + COUNT( * ) ) * + COUNT( * ) AS col2
----
-1191

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT + - 24 * + + 49 + - 15 * ( + COUNT ( * ) ) * + COUNT ( * ) AS col2
----
-1191

query I rowsort
SELECT ALL - + 2 col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT + - SUM( DISTINCT + 71 ) col1
----
-71

skipif mysql # not compatible
query I rowsort label-1226
SELECT + - SUM ( DISTINCT + 71 ) col1
----
-71

query I rowsort
SELECT + 42 + - - 54
----
96

query I rowsort
SELECT ALL 66 * + 29 + - 90
----
1824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1229
SELECT CASE - - 88 WHEN + - 2 THEN NULL WHEN + 82 THEN - NULLIF ( + 59, + 27 * + + 82 - + - NULLIF ( + 77, - COALESCE ( 43, 15 + + 62 * + + 52 * + + COALESCE ( + 73, + 95 ), + 93 + + COUNT( * ) ) * 29 ) ) END / - CAST( + 59 AS SIGNED ) + - ( COALESCE ( + CAST( NULL AS SIGNED ), 17 * 2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1229
SELECT CASE - - 88 WHEN + - 2 THEN NULL WHEN + 82 THEN - NULLIF ( + 59, + 27 * + + 82 - + - NULLIF ( + 77, - COALESCE ( 43, 15 + + 62 * + + 52 * + + COALESCE ( + 73, + 95 ), + 93 + + COUNT ( * ) ) * 29 ) ) END / - CAST ( + 59 AS INTEGER ) + - ( COALESCE ( + CAST ( NULL AS INTEGER ), 17 * 2 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT DISTINCT + + NULLIF ( + - 41, + COUNT( * ) ) * + 51 + - + COALESCE ( - + COUNT( * ), - 62, 87 )
----
-2090

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT + + NULLIF ( + - 41, + COUNT ( * ) ) * + 51 + - + COALESCE ( - + COUNT ( * ), - 62, 87 )
----
-2090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1231
SELECT DISTINCT + MIN( 40 ) + - 25 + - ( - + 83 ) * - 71 * + CAST( NULL AS SIGNED ) col2, + 52 AS col2
----
NULL
52

skipif mysql # not compatible
query II rowsort label-1231
SELECT DISTINCT + MIN ( 40 ) + - 25 + - ( - + 83 ) * - 71 * + CAST ( NULL AS INTEGER ) col2, + 52 AS col2
----
NULL
52

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

skipif mysql # not compatible
query I rowsort label-1232
SELECT ALL - - ( 79 ) + - CAST ( NULL AS INTEGER ) - 97
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT + + MAX( + + COALESCE ( - - 43, + + 31 / 82 + - 4 + + - ( - ( 54 ) ) ) )
----
43

skipif mysql # not compatible
query I rowsort label-1234
SELECT + + MAX ( + + COALESCE ( - - 43, + + 31 / 82 + - 4 + + - ( - ( 54 ) ) ) )
----
43

query I rowsort
SELECT ALL + NULLIF ( + 51, + + 65 * 96 )
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-1236
SELECT DISTINCT - 72 - - 86 AS col1, - 77 DIV - 33 - - 70 + - 70 + + 57 * 77
----
14
4391

skipif mysql # not compatible
query II rowsort label-1236
SELECT DISTINCT - 72 - - 86 AS col1, - 77 / - 33 - - 70 + - 70 + + 57 * 77
----
14
4391

query I rowsort
SELECT - - 61 * 79 AS col2
----
4819

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT - 76 + - 50 + ( + + 82 ) - COUNT( * ) + CASE CASE 82 WHEN 36 THEN NULL ELSE 76 END WHEN + 90 + - ( 27 ) + - + 37 THEN NULL ELSE - 61 * 61 * + 87 * + - 34 * CASE 20 WHEN COUNT( * ) THEN ( + 50 ) END + MAX( ALL 43 ) END / + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1238
SELECT - 76 + - 50 + ( + + 82 ) - COUNT ( * ) + CASE CASE 82 WHEN 36 THEN NULL ELSE 76 END WHEN + 90 + - ( 27 ) + - + 37 THEN NULL ELSE - 61 * 61 * + 87 * + - 34 * CASE 20 WHEN COUNT ( * ) THEN ( + 50 ) END + MAX ( ALL 43 ) END / + 12 AS col2
----
NULL

query I rowsort
SELECT ALL - 43 - - 78
----
35

query I rowsort
SELECT - 23 * + 15 AS col0
----
-345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1241
SELECT - 39 AS col0, MAX( ALL + - CAST( NULL AS SIGNED ) )
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-1241
SELECT - 39 AS col0, MAX ( ALL + - CAST ( NULL AS INTEGER ) )
----
-39
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1242
SELECT ALL CASE 9 WHEN ( - + 91 ) * - + MAX( ALL - - 38 ) + + 32 * + - CAST( - + CAST( - 40 AS SIGNED ) AS SIGNED ) / + 45 THEN NULL WHEN - 37 THEN COUNT( * ) - 92 ELSE - - 67 * + 67 END
----
4489

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL CASE 9 WHEN ( - + 91 ) * - + MAX ( ALL - - 38 ) + + 32 * + - CAST ( - + CAST ( - 40 AS INTEGER ) AS INTEGER ) / + 45 THEN NULL WHEN - 37 THEN COUNT ( * ) - 92 ELSE - - 67 * + 67 END
----
4489

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT ALL CASE + + COALESCE ( - 68, 95 + 55 * + 24 + + 33, COUNT( + 63 ) ) WHEN 49 * - CASE + + COUNT( * ) WHEN - 67 THEN - 99 WHEN 40 THEN NULL ELSE + AVG ( DISTINCT 1 ) * 45 + + 15 * + 97 END / - 60 + 47 / 33 + 66 * + 93 THEN NULL WHEN 39 THEN 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL CASE + + COALESCE ( - 68, 95 + 55 * + 24 + + 33, COUNT ( + 63 ) ) WHEN 49 * - CASE + + COUNT ( * ) WHEN - 67 THEN - 99 WHEN 40 THEN NULL ELSE + AVG ( DISTINCT 1 ) * 45 + + 15 * + 97 END / - 60 + 47 / 33 + 66 * + 93 THEN NULL WHEN 39 THEN 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT DISTINCT + 71 * + + 31 * + COUNT( * )
----
2201

skipif mysql # not compatible
query I rowsort label-1244
SELECT DISTINCT + 71 * + + 31 * + COUNT ( * )
----
2201

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT ALL NULLIF ( - 77, - 40 * + 63 + + + SUM( - 48 ) + - - COUNT( * ) + + AVG ( + + 64 ) * - CASE - - 21 WHEN 58 * + 39 THEN NULL WHEN - 88 THEN NULL ELSE + 38 END + - COUNT( DISTINCT ( 64 ) ) + - 96 ) col2
----
-77

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL NULLIF ( - 77, - 40 * + 63 + + + SUM ( - 48 ) + - - COUNT ( * ) + + AVG ( + + 64 ) * - CASE - - 21 WHEN 58 * + 39 THEN NULL WHEN - 88 THEN NULL ELSE + 38 END + - COUNT ( DISTINCT ( 64 ) ) + - 96 ) col2
----
-77

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

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

query I rowsort
SELECT - 98 * 16 AS col0
----
-1568

query II rowsort
SELECT - 16 AS col0, 95
----
-16
95

onlyif mysql # aggregate syntax: 
query II rowsort label-1249
SELECT ALL - COUNT( * ) * - 87 * + COUNT( * ) AS col1, + 65 + 35 AS col2
----
87
100

skipif mysql # not compatible
query II rowsort label-1249
SELECT ALL - COUNT ( * ) * - 87 * + COUNT ( * ) AS col1, + 65 + 35 AS col2
----
87
100

query I rowsort
SELECT - 27 - - 59
----
32

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

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

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

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

query I rowsort
SELECT - + 47 + 91
----
44

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1255
SELECT ALL + + 12 DIV + - 53 * - 55 + - 94 AS col0, COALESCE ( 53, 87 * - + NULLIF ( NULLIF ( COUNT( * ), 29 ), CASE + 78 WHEN + NULLIF ( - + 69, - - 44 ) THEN NULL ELSE - COALESCE ( - CASE 81 WHEN - 20 THEN + 81 END, 68 * 36 ) + + 25 * 40 END ) ) * + ( 20 DIV 88 )
----
-94
0

skipif mysql # not compatible
query II rowsort label-1255
SELECT ALL + + 12 / + - 53 * - 55 + - 94 AS col0, COALESCE ( 53, 87 * - + NULLIF ( NULLIF ( COUNT ( * ), 29 ), CASE + 78 WHEN + NULLIF ( - + 69, - - 44 ) THEN NULL ELSE - COALESCE ( - CASE 81 WHEN - 20 THEN + 81 END, 68 * 36 ) + + 25 * 40 END ) ) * + ( 20 / 88 )
----
-94
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1256
SELECT - - 72 + - CAST( - 23 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-1256
SELECT - - 72 + - CAST ( - 23 AS INTEGER )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1257
SELECT + 12 DIV - + 82 * + - 2 * + NULLIF ( + CASE + + 38 WHEN + - 32 + + + 2 THEN + MIN( DISTINCT ( - + 66 ) ) * + - CAST( NULL AS SIGNED ) + - - 10 - 88 + + + 4 + COUNT( * ) * - 83 * - + CAST( - 84 AS SIGNED ) ELSE CAST( 28 AS SIGNED ) END, 5 )
----
0

skipif mysql # not compatible
query I rowsort label-1257
SELECT + 12 / - + 82 * + - 2 * + NULLIF ( + CASE + + 38 WHEN + - 32 + + + 2 THEN + MIN ( DISTINCT ( - + 66 ) ) * + - CAST ( NULL AS INTEGER ) + - - 10 - 88 + + + 4 + COUNT ( * ) * - 83 * - + CAST ( - 84 AS INTEGER ) ELSE CAST ( 28 AS INTEGER ) END, 5 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1258
SELECT ALL + 94 AS col1, ( - 51 ) - - 87 * + 99 * - - AVG ( - 2 ) * + - 75 / - 86 * + + CASE - + 13 WHEN - ( - 81 ) THEN + - COUNT( * ) WHEN - 51 * - 13 THEN NULL END AS col1
----
94
NULL

skipif mysql # not compatible
query II rowsort label-1258
SELECT ALL + 94 AS col1, ( - 51 ) - - 87 * + 99 * - - AVG ( - 2 ) * + - 75 / - 86 * + + CASE - + 13 WHEN - ( - 81 ) THEN + - COUNT ( * ) WHEN - 51 * - 13 THEN NULL END AS col1
----
94
NULL

query I rowsort
SELECT NULLIF ( - 32, + + AVG ( + 22 ) ) AS col1
----
-32

query I rowsort
SELECT ALL - 87 * + + 17 + - + 84 AS col0
----
-1563

onlyif mysql # DIV for integer division: 
query I rowsort label-1261
SELECT + + 89 DIV 80
----
1

skipif mysql # not compatible
query I rowsort label-1261
SELECT + + 89 / 80
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1262
SELECT DISTINCT + 44 * + 66 + + + 42 * + CAST( - 37 AS SIGNED ) * + 77 + + + 76 + 73 * + 24
----
-114926

skipif mysql # not compatible
query I rowsort label-1262
SELECT DISTINCT + 44 * + 66 + + + 42 * + CAST ( - 37 AS INTEGER ) * + 77 + + + 76 + 73 * + 24
----
-114926

onlyif mysql # aggregate syntax: 
query II rowsort label-1263
SELECT + COUNT( * ) AS col0, SUM( ALL 94 ) + 63 + - + 80 - 86 * + 4 * - 48 * + - 2 * - COUNT( * ) AS col2
----
1
33101

skipif mysql # not compatible
query II rowsort label-1263
SELECT + COUNT ( * ) AS col0, SUM ( ALL 94 ) + 63 + - + 80 - 86 * + 4 * - 48 * + - 2 * - COUNT ( * ) AS col2
----
1
33101

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT + MIN( DISTINCT + + 25 ) + - + COALESCE ( - ( + 17 ), + 69 * - 45 ) + + 42 + + 90 * COUNT( * )
----
174

skipif mysql # not compatible
query I rowsort label-1264
SELECT + MIN ( DISTINCT + + 25 ) + - + COALESCE ( - ( + 17 ), + 69 * - 45 ) + + 42 + + 90 * COUNT ( * )
----
174

query I rowsort
SELECT ALL + 45 * - 39 * 94 + + 75 * + + 47
----
-161445

query I rowsort
SELECT - ( - - 22 )
----
-22

query I rowsort
SELECT - - NULLIF ( - 7, - 93 ) + + 63 col0
----
56

query I rowsort
SELECT + ( - + CASE + AVG ( DISTINCT - 9 ) WHEN + 88 + - 37 THEN + 47 * - 86 ELSE NULL END ) * + 77 col2
----
NULL

query I rowsort
SELECT + - 15 + 86 + - 24 - + 64 * - NULLIF ( + - 91, 89 + 98 ) * 11 * - + 59
----
3779823

query I rowsort
SELECT ALL NULLIF ( - - 51, - 48 ) * - 3 AS col0
----
-153

query I rowsort
SELECT DISTINCT + NULLIF ( + 2, + 28 * + 88 * 50 + 33 )
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-1272
SELECT + ( 47 ), + 19 DIV - 33 AS col1
----
47
0

skipif mysql # not compatible
query II rowsort label-1272
SELECT + ( 47 ), + 19 / - 33 AS col1
----
47
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1273
SELECT ALL 5 * - AVG ( + 42 ) * 91 * CAST( NULL AS SIGNED ) / ( 6 ) / + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL 5 * - AVG ( + 42 ) * 91 * CAST ( NULL AS INTEGER ) / ( 6 ) / + 35
----
NULL

query I rowsort
SELECT 85 * + + 97 + 66
----
8311

query I rowsort
SELECT ALL COALESCE ( - + 85, - 72 )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1276
SELECT + CAST( + - 22 AS SIGNED ) + + + 89 DIV - 51 AS col2, COUNT( * ) AS col0
----
-23
1

skipif mysql # not compatible
query II rowsort label-1276
SELECT + CAST ( + - 22 AS INTEGER ) + + + 89 / - 51 AS col2, COUNT ( * ) AS col0
----
-23
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT + COUNT( ALL - + ( 86 ) ) + - 29 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-1278
SELECT + COUNT ( ALL - + ( 86 ) ) + - 29 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT - 87 - 58 + 17 * - COUNT( * ) AS col2
----
-162

skipif mysql # not compatible
query I rowsort label-1279
SELECT - 87 - 58 + 17 * - COUNT ( * ) AS col2
----
-162

onlyif mysql # DIV for integer division: 
query I rowsort label-1280
SELECT ALL 93 DIV + 77
----
1

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL 93 / + 77
----
1

query I rowsort
SELECT - 63 + - + 51 - + + ( 96 ) * - 8 AS col1
----
654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1282
SELECT DISTINCT + 95 * - + CAST( NULL AS SIGNED ) col0, + COUNT( * ) + - + 39 AS col1
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-1282
SELECT DISTINCT + 95 * - + CAST ( NULL AS INTEGER ) col0, + COUNT ( * ) + - + 39 AS col1
----
NULL
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-1283
SELECT + COALESCE ( - 22, + 45 ) DIV + - 72
----
0

skipif mysql # not compatible
query I rowsort label-1283
SELECT + COALESCE ( - 22, + 45 ) / + - 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT - 39 + 7 + - + COUNT( * ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-1284
SELECT - 39 + 7 + - + COUNT ( * ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-1285
SELECT - 27 + + 13 * + 19 + 87 AS col1, 79 * COUNT( * )
----
307
79

skipif mysql # not compatible
query II rowsort label-1285
SELECT - 27 + + 13 * + 19 + 87 AS col1, 79 * COUNT ( * )
----
307
79

query I rowsort
SELECT DISTINCT + 77 + 17
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT - 1 + - MIN( ALL + 33 )
----
-34

skipif mysql # not compatible
query I rowsort label-1287
SELECT - 1 + - MIN ( ALL + 33 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT DISTINCT SUM( DISTINCT - 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1288
SELECT DISTINCT SUM ( DISTINCT - 1 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1289
SELECT DISTINCT - + CAST( + 21 AS SIGNED ) + - COALESCE ( + 51, - 78 * - 89 * + 64 ) AS col1, + 30
----
-72
30

skipif mysql # not compatible
query II rowsort label-1289
SELECT DISTINCT - + CAST ( + 21 AS INTEGER ) + - COALESCE ( + 51, - 78 * - 89 * + 64 ) AS col1, + 30
----
-72
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT DISTINCT - 88 + - COUNT( + 75 ) + + 26 * - COUNT( * ) + - + 25 AS col0
----
-140

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT - 88 + - COUNT ( + 75 ) + + 26 * - COUNT ( * ) + - + 25 AS col0
----
-140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1291
SELECT ALL - CASE - 1 WHEN 84 + - - 30 * CAST( NULL AS SIGNED ) * CAST( + 77 AS SIGNED ) THEN - 30 ELSE NULL END + + 28 + - + ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL - CASE - 1 WHEN 84 + - - 30 * CAST ( NULL AS INTEGER ) * CAST ( + 77 AS INTEGER ) THEN - 30 ELSE NULL END + + 28 + - + ( + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT SUM( ALL + 5 ) * 30 + + 91 AS col2
----
241

skipif mysql # not compatible
query I rowsort label-1292
SELECT SUM ( ALL + 5 ) * 30 + + 91 AS col2
----
241

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT DISTINCT - MIN( ALL - 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT - MIN ( ALL - 14 ) AS col2
----
14

query I rowsort
SELECT DISTINCT 16 - - 37 col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1295
SELECT - 4 * - + CASE + 44 WHEN + CASE - 28 WHEN - - CAST( NULL AS SIGNED ) * - + 36 THEN - COUNT( * ) + - 26 * + + 43 + + - 32 + + 35 / MAX( DISTINCT + 41 ) * 90 WHEN + 44 THEN + ( + 62 ) END / + 95 + + 0 * + 89 THEN - 74 WHEN NULLIF ( - 96, - 2 - - 80 ) THEN + 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1295
SELECT - 4 * - + CASE + 44 WHEN + CASE - 28 WHEN - - CAST ( NULL AS INTEGER ) * - + 36 THEN - COUNT ( * ) + - 26 * + + 43 + + - 32 + + 35 / MAX ( DISTINCT + 41 ) * 90 WHEN + 44 THEN + ( + 62 ) END / + 95 + + 0 * + 89 THEN - 74 WHEN NULLIF ( - 96, - 2 - - 80 ) THEN + 20 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1296
SELECT + - ( + - NULLIF ( + - 56, - 24 * + 9 ) ) DIV + - 40 + + 44 + - + 88
----
-43

skipif mysql # not compatible
query I rowsort label-1296
SELECT + - ( + - NULLIF ( + - 56, - 24 * + 9 ) ) / + - 40 + + 44 + - + 88
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT - 70 * + COUNT( DISTINCT + 32 )
----
-70

skipif mysql # not compatible
query I rowsort label-1297
SELECT - 70 * + COUNT ( DISTINCT + 32 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT DISTINCT - 69 * - 82 * - CASE - - CASE + 4 WHEN 51 + + - COUNT( ALL 65 ) THEN NULL ELSE CASE 79 WHEN 13 THEN + 70 - - 93 END - + - 78 END WHEN - COUNT( * ) * + 54 + + COUNT( * ) THEN NULL WHEN - - COUNT( + + 65 ) * - 88 + - 56 THEN 70 * 19 + - MIN( - 40 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT - 69 * - 82 * - CASE - - CASE + 4 WHEN 51 + + - COUNT ( ALL 65 ) THEN NULL ELSE CASE 79 WHEN 13 THEN + 70 - - 93 END - + - 78 END WHEN - COUNT ( * ) * + 54 + + COUNT ( * ) THEN NULL WHEN - - COUNT ( + + 65 ) * - 88 + - 56 THEN 70 * 19 + - MIN ( - 40 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT DISTINCT - CASE - 47 WHEN + 18 THEN NULL WHEN - - COUNT( DISTINCT 82 ) * - - NULLIF ( 1, - COALESCE ( - 89, + 60 * - 65, + 30 + + ( - + 18 ) ) ) / + 2 * 31 + - - 13 THEN - + 2 + - 87 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1299
SELECT DISTINCT - CASE - 47 WHEN + 18 THEN NULL WHEN - - COUNT ( DISTINCT 82 ) * - - NULLIF ( 1, - COALESCE ( - 89, + 60 * - 65, + 30 + + ( - + 18 ) ) ) / + 2 * 31 + - - 13 THEN - + 2 + - 87 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - ( 99 ) AS col2
----
-99

query II rowsort
SELECT + 35 col2, + 62
----
35
62

onlyif mysql # DIV for integer division: 
query I rowsort label-1302
SELECT DISTINCT 58 DIV + - 23
----
-2

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT 58 / + - 23
----
-2

query I rowsort
SELECT - 39 * - + 22 + - + 70 + - + 38 * + + 97
----
-2898

query I rowsort
SELECT ALL 52 * 6 col2
----
312

query I rowsort
SELECT 80 * + + 59 * 42
----
198240

query II rowsort
SELECT - 0 AS col1, 13 + + 92 - - + 68 AS col0
----
0
173

query II rowsort
SELECT ALL 45 + + 86 * + 24 AS col2, - 7 AS col2
----
2109
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1308
SELECT COUNT( ALL - CAST( - + 4 AS SIGNED ) ) + + SUM( DISTINCT + 88 ) + - ( + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT COUNT ( ALL - CAST ( - + 4 AS INTEGER ) ) + + SUM ( DISTINCT + 88 ) + - ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1309
SELECT 5 + - - 99 * + ( + 21 ) DIV COUNT( * ) AS col0, 10 AS col0
----
2084
10

skipif mysql # not compatible
query II rowsort label-1309
SELECT 5 + - - 99 * + ( + 21 ) / COUNT ( * ) AS col0, 10 AS col0
----
2084
10

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

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

query I rowsort
SELECT 44 + - + 75 + - 90 AS col1
----
-121

query I rowsort
SELECT 75 * + NULLIF ( - 29, - 77 )
----
-2175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1313
SELECT - 29 + + 62 DIV 83 * - COUNT( * ) * - 99 col0
----
-29

skipif mysql # not compatible
query I rowsort label-1313
SELECT - 29 + + 62 / 83 * - COUNT ( * ) * - 99 col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT - MAX( - - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-1314
SELECT - MAX ( - - 37 )
----
-37

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

skipif mysql # not compatible
query II rowsort label-1315
SELECT - 47 AS col1, - CAST ( NULL AS INTEGER ) AS col0
----
-47
NULL

query I rowsort
SELECT DISTINCT 30 * - 87 * - 50
----
130500

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1318
SELECT + 88 DIV + 50 - CAST( + 81 AS SIGNED ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-1318
SELECT + 88 / + 50 - CAST ( + 81 AS INTEGER ) AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1319
SELECT 83 - + 10 + - + 68 + + 19 - + CAST( - ( + - 17 ) AS SIGNED ) * MIN( 57 ) * + 46 + - - ( ( 90 ) ) + + 64 + + - NULLIF ( - 1, + - 3 ) * - + 69 + CASE WHEN NOT - SUM( + 48 ) NOT BETWEEN ( - 53 ) AND - 29 * - COUNT( * ) THEN COUNT( * ) WHEN NOT NULL IS NOT NULL THEN - 41 * ( COUNT( * ) * - 62 ) END AS col0
----
-44464

skipif mysql # not compatible
query I rowsort label-1319
SELECT 83 - + 10 + - + 68 + + 19 - + CAST ( - ( + - 17 ) AS INTEGER ) * MIN ( 57 ) * + 46 + - - ( ( 90 ) ) + + 64 + + - NULLIF ( - 1, + - 3 ) * - + 69 + CASE WHEN NOT - SUM ( + 48 ) NOT BETWEEN ( - 53 ) AND - 29 * - COUNT ( * ) THEN COUNT ( * ) WHEN NOT NULL IS NOT NULL THEN - 41 * ( COUNT ( * ) * - 62 ) END AS col0
----
-44464

onlyif mysql # aggregate syntax: 
query II rowsort label-1320
SELECT ALL - 72 AS col2, MAX( - 22 ) AS col2
----
-72
-22

skipif mysql # not compatible
query II rowsort label-1320
SELECT ALL - 72 AS col2, MAX ( - 22 ) AS col2
----
-72
-22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1321
SELECT CASE - 95 WHEN + 79 * + 66 * + 50 + + CAST( - - 15 AS DECIMAL ) * COALESCE ( - NULLIF ( + 25, + 93 ), 4 ) + - COUNT( * ) THEN + - ( - COUNT( * ) ) * - 57 * ( + 20 ) + SUM( 81 ) WHEN + 68 * 28 THEN - 9 END + - NULLIF ( 52, - ( 64 ) - 89 ) * 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1321
SELECT CASE - 95 WHEN + 79 * + 66 * + 50 + + CAST ( - - 15 AS REAL ) * COALESCE ( - NULLIF ( + 25, + 93 ), 4 ) + - COUNT ( * ) THEN + - ( - COUNT ( * ) ) * - 57 * ( + 20 ) + SUM ( 81 ) WHEN + 68 * 28 THEN - 9 END + - NULLIF ( 52, - ( 64 ) - 89 ) * 68 AS col0
----
NULL

query I rowsort
SELECT ALL - - NULLIF ( 89, 37 ) AS col1
----
89

query I rowsort
SELECT ALL - - 60 col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1324
SELECT ALL COUNT( - COALESCE ( 64, NULLIF ( 66, 23 ), - + CAST( NULL AS SIGNED ) ) ) * 1
----
1

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL COUNT ( - COALESCE ( 64, NULLIF ( 66, 23 ), - + CAST ( NULL AS INTEGER ) ) ) * 1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1325
SELECT COUNT( ALL ( + 16 ) ) * + 83 DIV 48 col0
----
1

skipif mysql # not compatible
query I rowsort label-1325
SELECT COUNT ( ALL ( + 16 ) ) * + 83 / 48 col0
----
1

query II rowsort
SELECT + 32 AS col0, 56 * + COALESCE ( + + 56, - 96 )
----
32
3136

query I rowsort
SELECT ( 75 ) * + 25 + + 19
----
1894

query II rowsort
SELECT ALL + 95 * 36 AS col0, - 11 AS col2
----
3420
-11

query I rowsort
SELECT 80 + ( - 71 ) + + 56 * + 4 * - ( ( + 37 ) ) AS col0
----
-8279

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT COALESCE ( + + 53, 7, - ( + ( ( 80 ) ) ) ) * - 59 * + SUM( DISTINCT + 81 ) AS col1
----
-253287

skipif mysql # not compatible
query I rowsort label-1330
SELECT COALESCE ( + + 53, 7, - ( + ( ( 80 ) ) ) ) * - 59 * + SUM ( DISTINCT + 81 ) AS col1
----
-253287

query I rowsort
SELECT ALL 46 + + - 96
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT 5 + COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1332
SELECT 5 + COUNT ( * ) AS col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1333
SELECT DISTINCT 39 DIV - - 53 * + 73
----
0

skipif mysql # not compatible
query I rowsort label-1333
SELECT DISTINCT 39 / - - 53 * + 73
----
0

query II rowsort
SELECT DISTINCT - 77 + + + 88 * + 86 + + + 19, 3 * 7 AS col2
----
7510
21

query I rowsort
SELECT ALL + 23 + + 67
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1336
SELECT 24 + - MIN( ALL + - 51 ) DIV - COUNT( * ) + - 26 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-1336
SELECT 24 + - MIN ( ALL + - 51 ) / - COUNT ( * ) + - 26 AS col2
----
-53

query I rowsort
SELECT 95 + 56
----
151

query I rowsort
SELECT 30 * + 57
----
1710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1339
SELECT DISTINCT 3 DIV + + SUM( - 70 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1339
SELECT DISTINCT 3 / + + SUM ( - 70 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1340
SELECT COALESCE ( - COUNT( * ), + 36 DIV CAST( NULL AS SIGNED ) + 20 + + CASE - COUNT( * ) WHEN - + COUNT( ALL + 80 ) THEN NULL ELSE - + 51 END + + 80 * + COUNT( * ), - 65 * - 57 + 44 ) + + COUNT( * ) AS col2, COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-1340
SELECT COALESCE ( - COUNT ( * ), + 36 / CAST ( NULL AS INTEGER ) + 20 + + CASE - COUNT ( * ) WHEN - + COUNT ( ALL + 80 ) THEN NULL ELSE - + 51 END + + 80 * + COUNT ( * ), - 65 * - 57 + 44 ) + + COUNT ( * ) AS col2, COUNT ( * ) AS col2
----
0
1

query I rowsort
SELECT DISTINCT ( - 79 ) * - + NULLIF ( - + 29, 11 * - 36 + - 33 ) * 27 AS col0
----
-61857

query II rowsort
SELECT - 24, 71 AS col1
----
-24
71

query I rowsort
SELECT ALL - 99 - 15 AS col0
----
-114

query I rowsort
SELECT + 22 + 19
----
41

query I rowsort
SELECT + 36 + - 82
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT ALL MAX( ALL - - 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-1346
SELECT ALL MAX ( ALL - - 54 ) AS col1
----
54

query I rowsort
SELECT ALL 19 - 9 AS col1
----
10

query I rowsort
SELECT + + 27 * 38 AS col0
----
1026

query I rowsort
SELECT COALESCE ( - 74, + + 80 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT + - 41 + - - 55 + - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-1350
SELECT + - 41 + - - 55 + - COUNT ( * )
----
13

query II rowsort
SELECT - + 62, 0 col2
----
-62
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT + + 66 * MIN( - 20 ) - - COUNT( * )
----
-1319

skipif mysql # not compatible
query I rowsort label-1352
SELECT + + 66 * MIN ( - 20 ) - - COUNT ( * )
----
-1319

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT - SUM( - 16 ) * + + COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-1353
SELECT - SUM ( - 16 ) * + + COUNT ( * ) AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1354
SELECT DISTINCT CAST( 18 AS SIGNED ) / + + 95 * - 0 * + 75 / CASE 57 WHEN - + CAST( + + 64 AS SIGNED ) THEN COUNT( * ) + - 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT CAST ( 18 AS INTEGER ) / + + 95 * - 0 * + 75 / CASE 57 WHEN - + CAST ( + + 64 AS INTEGER ) THEN COUNT ( * ) + - 70 END
----
NULL

query II rowsort
SELECT - 27, + 38 AS col2
----
-27
38

onlyif mysql # aggregate syntax: 
query II rowsort label-1356
SELECT ALL + COUNT( * ) * - - 67 * - 68 * - - 60 AS col2, 10 AS col2
----
-273360
10

skipif mysql # not compatible
query II rowsort label-1356
SELECT ALL + COUNT ( * ) * - - 67 * - 68 * - - 60 AS col2, 10 AS col2
----
-273360
10

query II rowsort
SELECT - 77 AS col1, 75 AS col2
----
-77
75

onlyif mysql # aggregate syntax: 
query II rowsort label-1358
SELECT DISTINCT + + 26 col0, - MIN( DISTINCT - 62 )
----
26
62

skipif mysql # not compatible
query II rowsort label-1358
SELECT DISTINCT + + 26 col0, - MIN ( DISTINCT - 62 )
----
26
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1359
SELECT + 27, CAST( NULL AS SIGNED ) AS col1
----
27
NULL

skipif mysql # not compatible
query II rowsort label-1359
SELECT + 27, CAST ( NULL AS INTEGER ) AS col1
----
27
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1360
SELECT ALL 36 * + 43 + - ( 69 ) DIV COUNT( + 63 )
----
1479

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL 36 * + 43 + - ( 69 ) / COUNT ( + 63 )
----
1479

query I rowsort
SELECT ALL 49 * + + ( - + 65 )
----
-3185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1362
SELECT + ( - NULLIF ( + ( CAST( NULL AS DECIMAL ) ), + + 88 * + + 3 ) ) * + 5 * + - 50 * + COUNT( * ) - - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1362
SELECT + ( - NULLIF ( + ( CAST ( NULL AS REAL ) ), + + 88 * + + 3 ) ) * + 5 * + - 50 * + COUNT ( * ) - - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT ALL 68 * + - 28 + COUNT( - 12 )
----
-1903

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL 68 * + - 28 + COUNT ( - 12 )
----
-1903

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT NULLIF ( - COUNT( * ), - + 61 + - 87 * 48 + - + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1364
SELECT NULLIF ( - COUNT ( * ), - + 61 + - 87 * 48 + - + COUNT ( * ) )
----
-1

query II rowsort
SELECT + ( - 64 ) AS col0, + 62 col1
----
-64
62

onlyif mysql # DIV for integer division: 
query I rowsort label-1366
SELECT - 64 + - 44 + + + 77 DIV - 56
----
-109

skipif mysql # not compatible
query I rowsort label-1366
SELECT - 64 + - 44 + + + 77 / - 56
----
-109

query I rowsort
SELECT DISTINCT 80 * - + 64 + + - 67
----
-5187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1368
SELECT - COUNT( * ) * - ( 88 ) - - COUNT( * ) * + COUNT( * ) + - CAST( 23 AS SIGNED ) * + 89 AS col2
----
-1958

skipif mysql # not compatible
query I rowsort label-1368
SELECT - COUNT ( * ) * - ( 88 ) - - COUNT ( * ) * + COUNT ( * ) + - CAST ( 23 AS INTEGER ) * + 89 AS col2
----
-1958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1369
SELECT ALL + CAST( - 15 AS SIGNED ) * - 59 * - - 50 AS col1
----
44250

skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL + CAST ( - 15 AS INTEGER ) * - 59 * - - 50 AS col1
----
44250

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT COALESCE ( - + 46, + COUNT( + 70 ), 53 + + 85 )
----
-46

skipif mysql # not compatible
query I rowsort label-1370
SELECT COALESCE ( - + 46, + COUNT ( + 70 ), 53 + + 85 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL - NULLIF ( + + 51, - + 67 ) * 20 + + ( MAX( DISTINCT 80 ) ) * - - CASE + 2 WHEN - 8 / - 28 THEN NULL WHEN 93 THEN COUNT( ALL - 9 ) * 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL - NULLIF ( + + 51, - + 67 ) * 20 + + ( MAX ( DISTINCT 80 ) ) * - - CASE + 2 WHEN - 8 / - 28 THEN NULL WHEN 93 THEN COUNT ( ALL - 9 ) * 39 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1372
SELECT CASE 83 WHEN + + 55 THEN NULLIF ( 52, 68 * - 40 * - + COUNT( * ) + + - CASE - COUNT( * ) WHEN - + COUNT( * ) * - 16 + - COUNT( * ) + - 19 * + 58 + - 70 THEN - CAST( + - 95 AS SIGNED ) WHEN 98 - + 10 THEN NULL END * 85 + COUNT( * ) ) WHEN ( 38 ) THEN - 60 + + 30 WHEN - 77 / + SUM( ALL - 79 * ( - 57 ) ) THEN 13 / - 31 WHEN 8 THEN NULL WHEN + COUNT( * ) THEN + 69 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1372
SELECT CASE 83 WHEN + + 55 THEN NULLIF ( 52, 68 * - 40 * - + COUNT ( * ) + + - CASE - COUNT ( * ) WHEN - + COUNT ( * ) * - 16 + - COUNT ( * ) + - 19 * + 58 + - 70 THEN - CAST ( + - 95 AS INTEGER ) WHEN 98 - + 10 THEN NULL END * 85 + COUNT ( * ) ) WHEN ( 38 ) THEN - 60 + + 30 WHEN - 77 / + SUM ( ALL - 79 * ( - 57 ) ) THEN 13 / - 31 WHEN 8 THEN NULL WHEN + COUNT ( * ) THEN + 69 ELSE NULL END col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT DISTINCT MIN( ALL - + NULLIF ( + - 87, + 56 ) )
----
87

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT MIN ( ALL - + NULLIF ( + - 87, + 56 ) )
----
87

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1376
SELECT ALL 64 DIV - COUNT( * ) - 58
----
-122

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL 64 / - COUNT ( * ) - 58
----
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1377
SELECT + - COUNT( ALL + - 96 ) DIV - 71 + + + 74 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-1377
SELECT + - COUNT ( ALL + - 96 ) / - 71 + + + 74 AS col1
----
74

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

query I rowsort
SELECT - + 12 + - 11 + - + 36 * 64 * - 27 + 80
----
62265

query I rowsort
SELECT - - 37 + + 21 AS col1
----
58

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

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

query I rowsort
SELECT - 23 * 29 AS col2
----
-667

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT ALL + COUNT( - 66 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL + COUNT ( - 66 ) AS col0
----
1

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

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

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

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL MIN ( ALL - 35 )
----
-35

query I rowsort
SELECT + - 55 * 94 + - 48 AS col0
----
-5218

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT + 63 + 41 + - 17 + - 13 * + + CASE + + 83 WHEN 11 THEN - 33 + - - COUNT( * ) ELSE + 46 END
----
-511

skipif mysql # not compatible
query I rowsort label-1387
SELECT + 63 + 41 + - 17 + - 13 * + + CASE + + 83 WHEN 11 THEN - 33 + - - COUNT ( * ) ELSE + 46 END
----
-511

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT ALL - MAX( ALL 0 ) + - 42 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL - MAX ( ALL 0 ) + - 42 AS col0
----
-42

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1390
SELECT - - 10 + 79 * - 29 * + CAST( NULL AS SIGNED ) + + 30 * - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-1390
SELECT - - 10 + 79 * - 29 * + CAST ( NULL AS INTEGER ) + + 30 * - 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1391
SELECT + 25 * - CASE - 99 WHEN - 95 + - ( - + SUM( ALL + 45 ) ) THEN + 85 / - - COALESCE ( - 67, + - 70 * + - CASE + NULLIF ( 3, 17 ) WHEN + 1 * + 89 THEN NULL ELSE - - 66 * + - 97 END ) * 75 * - - CAST( NULL AS SIGNED ) WHEN COUNT( * ) + 91 THEN 99 * + 73 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1391
SELECT + 25 * - CASE - 99 WHEN - 95 + - ( - + SUM ( ALL + 45 ) ) THEN + 85 / - - COALESCE ( - 67, + - 70 * + - CASE + NULLIF ( 3, 17 ) WHEN + 1 * + 89 THEN NULL ELSE - - 66 * + - 97 END ) * 75 * - - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) + 91 THEN 99 * + 73 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1392
SELECT CAST( + + 27 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-1392
SELECT CAST ( + + 27 AS INTEGER )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1393
SELECT ALL + 12 DIV ( - ( 20 ) ) + - COALESCE ( + - 49, + 75, - 86 ) + 41 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL + 12 / ( - ( 20 ) ) + - COALESCE ( + - 49, + 75, - 86 ) + 41 AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1394
SELECT CAST( MAX( + - ( + 69 ) ) AS SIGNED ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-1394
SELECT CAST ( MAX ( + - ( + 69 ) ) AS INTEGER ) AS col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1395
SELECT DISTINCT COUNT( * ) DIV + - 54 + + COALESCE ( + CASE + 70 WHEN - 23 THEN - 75 END, 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-1395
SELECT DISTINCT COUNT ( * ) / + - 54 + + COALESCE ( + CASE + 70 WHEN - 23 THEN - 75 END, 39 ) AS col1
----
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT + 28 * + CASE 41 WHEN 51 + + + NULLIF ( + + 89, + - 64 ) THEN MAX( ALL ( + - 60 ) ) ELSE NULL END * - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1397
SELECT + 28 * + CASE 41 WHEN 51 + + + NULLIF ( + + 89, + - 64 ) THEN MAX ( ALL ( + - 60 ) ) ELSE NULL END * - 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1398
SELECT ALL 76 DIV - MAX( DISTINCT + - 19 ) + 19 AS col2, 39 + - ( + - ( + ( - ( NULLIF ( + + 28, - MIN( DISTINCT 7 ) * + 54 - - - 32 + - - COUNT( * ) ) ) ) ) ) + COALESCE ( + NULLIF ( + + 81, COUNT( * ) + - + 93 ), 6 * 33 - + 68 DIV 75, + 15 + 16 DIV + 56 ) * 6 AS col1
----
23
497

skipif mysql # not compatible
query II rowsort label-1398
SELECT ALL 76 / - MAX ( DISTINCT + - 19 ) + 19 AS col2, 39 + - ( + - ( + ( - ( NULLIF ( + + 28, - MIN ( DISTINCT 7 ) * + 54 - - - 32 + - - COUNT ( * ) ) ) ) ) ) + COALESCE ( + NULLIF ( + + 81, COUNT ( * ) + - + 93 ), 6 * 33 - + 68 / 75, + 15 + 16 / + 56 ) * 6 AS col1
----
23
497

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1399
SELECT ALL - 97 DIV 28 - + COUNT( * ) AS col1, - 22 * - 97
----
-4
2134

skipif mysql # not compatible
query II rowsort label-1399
SELECT ALL - 97 / 28 - + COUNT ( * ) AS col1, - 22 * - 97
----
-4
2134

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT DISTINCT 28 * - - 77 * COUNT( * )
----
2156

skipif mysql # not compatible
query I rowsort label-1400
SELECT DISTINCT 28 * - - 77 * COUNT ( * )
----
2156

query I rowsort
SELECT - 98 - - 81 AS col0
----
-17

query II rowsort
SELECT ALL + 69 AS col2, 42
----
69
42

query I rowsort
SELECT - ( 60 ) * + - 87 + - - 42
----
5262

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

skipif mysql # not compatible
query I rowsort label-1404
SELECT - 74 / - 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT + 45 + CASE - 73 WHEN 67 + + 71 THEN NULL WHEN 22 * + - SUM( DISTINCT + 94 ) THEN - ( 50 ) ELSE - + 67 / 29 + + + ( CASE - + ( - + COUNT( * ) ) WHEN 98 - - 44 THEN 45 + - - 13 WHEN + 21 THEN NULL ELSE NULL END ) - - 61 END + + 44 + + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1405
SELECT + 45 + CASE - 73 WHEN 67 + + 71 THEN NULL WHEN 22 * + - SUM ( DISTINCT + 94 ) THEN - ( 50 ) ELSE - + 67 / 29 + + + ( CASE - + ( - + COUNT ( * ) ) WHEN 98 - - 44 THEN 45 + - - 13 WHEN + 21 THEN NULL ELSE NULL END ) - - 61 END + + 44 + + 92 AS col0
----
NULL

query II rowsort
SELECT + 9 AS col0, + 61 AS col1
----
9
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT + 62 * 52 * + COUNT( * )
----
3224

skipif mysql # not compatible
query I rowsort label-1407
SELECT + 62 * 52 * + COUNT ( * )
----
3224

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT DISTINCT 68 * + COUNT( ALL - + CASE - 25 WHEN 89 THEN - - 30 + - - 38 END ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT 68 * + COUNT ( ALL - + CASE - 25 WHEN 89 THEN - - 30 + - - 38 END ) AS col1
----
0

query I rowsort
SELECT ( - 36 ) + + 53 * + 35
----
1819

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1410
SELECT ALL - 75, - 38 DIV + + NULLIF ( + 93, + 49 ) + - - COUNT( * ) col0
----
-75
1

skipif mysql # not compatible
query II rowsort label-1410
SELECT ALL - 75, - 38 / + + NULLIF ( + 93, + 49 ) + - - COUNT ( * ) col0
----
-75
1

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

skipif mysql # not compatible
query I rowsort label-1411
SELECT - 70 * + - 36 * - 70 + - + COUNT ( * ) AS col1
----
-176401

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

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

query II rowsort
SELECT - + 53 AS col1, + 0 * - 79 - - - 71 AS col1
----
-53
-71

query I rowsort
SELECT - 41 + 31 AS col2
----
-10

query II rowsort
SELECT - - 99 AS col1, 64 * 51 AS col2
----
99
3264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1416
SELECT - 54 + COALESCE ( - - 10, - 1 * + 4 DIV + CASE 47 WHEN - 24 THEN + - ( + 21 ) DIV + 65 WHEN - 0 + 20 THEN + 98 + - COUNT( * ) END * - ( - ( - - 19 ) ) ) col2
----
-44

skipif mysql # not compatible
query I rowsort label-1416
SELECT - 54 + COALESCE ( - - 10, - 1 * + 4 / + CASE 47 WHEN - 24 THEN + - ( + 21 ) / + 65 WHEN - 0 + 20 THEN + 98 + - COUNT ( * ) END * - ( - ( - - 19 ) ) ) col2
----
-44

query II rowsort
SELECT - 98 * + 53 + + 92 AS col1, 87
----
-5102
87

query I rowsort
SELECT ALL + - ( + 71 ) + 30
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT DISTINCT - + 31 * + + SUM( DISTINCT 29 ) AS col2
----
-899

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT - + 31 * + + SUM ( DISTINCT 29 ) AS col2
----
-899

query I rowsort
SELECT 68 * + 6
----
408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1421
SELECT ALL CAST( 59 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL CAST ( 59 AS INTEGER )
----
59

query I rowsort
SELECT - + ( - NULLIF ( + 35, 86 ) )
----
35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT ALL - 3 + + + 59 + + COUNT( * ) + - 4
----
53

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL - 3 + + + 59 + + COUNT ( * ) + - 4
----
53

query I rowsort
SELECT ( + 66 ) * 38 * - 62 col1
----
-155496

query II rowsort
SELECT - ( + 14 ) * 14 AS col2, + 52
----
-196
52

query I rowsort
SELECT - 14 * - - 10 col2
----
-140

query II rowsort
SELECT DISTINCT 88 * - 76, 45 AS col2
----
-6688
45

query I rowsort
SELECT DISTINCT - 8 + 74
----
66

query I rowsort
SELECT 5 + + + 77
----
82

query I rowsort
SELECT - 97 * + 29 + - - 6 * + 25 - - - 37 + - 78 AS col1
----
-2778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1432
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 84 * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 84 * 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1433
SELECT 89 * - 69 col0, + 56 * COUNT( * ) - + ( SUM( DISTINCT + + ( + 50 ) ) ) * - 26 AS col1
----
-6141
1356

skipif mysql # not compatible
query II rowsort label-1433
SELECT 89 * - 69 col0, + 56 * COUNT ( * ) - + ( SUM ( DISTINCT + + ( + 50 ) ) ) * - 26 AS col1
----
-6141
1356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1434
SELECT CAST( NULL AS SIGNED ) + ( - MAX( DISTINCT 94 ) ) AS col2, 86
----
NULL
86

skipif mysql # not compatible
query II rowsort label-1434
SELECT CAST ( NULL AS INTEGER ) + ( - MAX ( DISTINCT 94 ) ) AS col2, 86
----
NULL
86

onlyif mysql # aggregate syntax: 
query II rowsort label-1435
SELECT ALL 9 * 19, 62 + - 48 * + COUNT( * ) AS col0
----
171
14

skipif mysql # not compatible
query II rowsort label-1435
SELECT ALL 9 * 19, 62 + - 48 * + COUNT ( * ) AS col0
----
171
14

query I rowsort
SELECT 29 * 47 - + + 16 AS col1
----
1347

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1437
SELECT COUNT( * ) DIV + - 99 * + 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1437
SELECT COUNT ( * ) / + - 99 * + 29 AS col2
----
0

query I rowsort
SELECT ( 0 ) * + 12 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT ALL MIN( - - ( 45 ) ) * - 3 col1
----
-135

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL MIN ( - - ( 45 ) ) * - 3 col1
----
-135

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1440
SELECT - 55 * CASE COUNT( * ) WHEN - 33 THEN + + 4 END * 7 + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1440
SELECT - 55 * CASE COUNT ( * ) WHEN - 33 THEN + + 4 END * 7 + + - CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1442
SELECT DISTINCT 70 + + CAST( NULL AS DECIMAL ) * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1442
SELECT DISTINCT 70 + + CAST ( NULL AS REAL ) * 1
----
NULL

query I rowsort
SELECT ALL + + 58 + 58 * - 12
----
-638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1444
SELECT DISTINCT - 77 + ( - ( CAST( 86 AS SIGNED ) ) ), COUNT( * ) + + ( - 60 ) AS col0
----
-163
-59

skipif mysql # not compatible
query II rowsort label-1444
SELECT DISTINCT - 77 + ( - ( CAST ( 86 AS INTEGER ) ) ), COUNT ( * ) + + ( - 60 ) AS col0
----
-163
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT ALL NULLIF ( - NULLIF ( - 90, ( + AVG ( DISTINCT + + 32 ) ) ), - 71 ) * + 0 * - - 68 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL NULLIF ( - NULLIF ( - 90, ( + AVG ( DISTINCT + + 32 ) ) ), - 71 ) * + 0 * - - 68 + + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT ALL - 74 + - + 24 AS col0
----
-98

query I rowsort
SELECT 16 + 44 * - 7 * 52 * 30 * - 7 AS col0
----
3363376

onlyif mysql # DIV for integer division: 
query I rowsort label-1448
SELECT 62 + + 7 DIV 25 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-1448
SELECT 62 + + 7 / 25 AS col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-1449
SELECT - 12 + - - 13, MIN( - 82 ) AS col2
----
1
-82

skipif mysql # not compatible
query II rowsort label-1449
SELECT - 12 + - - 13, MIN ( - 82 ) AS col2
----
1
-82

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1451
SELECT 18 + + + 11 - + 68 - COUNT( * ) DIV 93 * + 78 * - COUNT( * ) + + SUM( ALL + 29 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-1451
SELECT 18 + + + 11 - + 68 - COUNT ( * ) / 93 * + 78 * - COUNT ( * ) + + SUM ( ALL + 29 ) AS col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1452
SELECT ALL + NULLIF ( - 52, - NULLIF ( + + COUNT( * ), - 25 ) ) DIV - COUNT( * ) + + + 33
----
85

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL + NULLIF ( - 52, - NULLIF ( + + COUNT ( * ), - 25 ) ) / - COUNT ( * ) + + + 33
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1453
SELECT - 87 col1, 88 * - 82 DIV + - COUNT( * ) + - + 28 AS col2
----
-87
7188

skipif mysql # not compatible
query II rowsort label-1453
SELECT - 87 col1, 88 * - 82 / + - COUNT ( * ) + - + 28 AS col2
----
-87
7188

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

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL + COUNT ( * ) * - 12 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT + MIN( ALL - + 88 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-1455
SELECT + MIN ( ALL - + 88 ) AS col2
----
-88

query I rowsort
SELECT - 22 * ( - 66 )
----
1452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1457
SELECT - COUNT( * ) * - 45 - + 60 * NULLIF ( - 14, + 30 * + 97 + - + 90 + - 21 ) * + CAST( + + 53 AS SIGNED ) AS col2
----
44565

skipif mysql # not compatible
query I rowsort label-1457
SELECT - COUNT ( * ) * - 45 - + 60 * NULLIF ( - 14, + 30 * + 97 + - + 90 + - 21 ) * + CAST ( + + 53 AS INTEGER ) AS col2
----
44565

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT DISTINCT + MIN( ALL 14 )
----
14

skipif mysql # not compatible
query I rowsort label-1458
SELECT DISTINCT + MIN ( ALL 14 )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-1459
SELECT - 74 + + - 51 DIV + - 80
----
-74

skipif mysql # not compatible
query I rowsort label-1459
SELECT - 74 + + - 51 / + - 80
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT + 85 - 44 + - - 76 + - COUNT( * ) * + 0 * - - 49
----
117

skipif mysql # not compatible
query I rowsort label-1460
SELECT + 85 - 44 + - - 76 + - COUNT ( * ) * + 0 * - - 49
----
117

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1462
SELECT + - CAST( - 37 AS SIGNED ) * 16 - - 59
----
651

skipif mysql # not compatible
query I rowsort label-1462
SELECT + - CAST ( - 37 AS INTEGER ) * 16 - - 59
----
651

query II rowsort
SELECT ALL + + 92 AS col2, 42
----
92
42

query I rowsort
SELECT + NULLIF ( 81, 12 / - 54 + + 33 ) AS col1
----
81

query I rowsort
SELECT DISTINCT + 50 * 36 + - - 56 AS col1
----
1856

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT + MAX( DISTINCT - 30 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-1466
SELECT + MAX ( DISTINCT - 30 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT ALL 6 * ( COALESCE ( + + COUNT( + + 63 ), - + 85 * + - 9 ) ) - + 0 + 10
----
16

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL 6 * ( COALESCE ( + + COUNT ( + + 63 ), - + 85 * + - 9 ) ) - + 0 + 10
----
16

query I rowsort
SELECT + 89 + + 81 + 70
----
240

query I rowsort
SELECT - 10 * + 44 + - 11
----
-451

query I rowsort
SELECT ALL ( - - 70 ) * 41
----
2870

query I rowsort
SELECT + 16 + + 55 + 66 * + 35
----
2381

query I rowsort
SELECT - 56 * - + 32 AS col1
----
1792

query I rowsort
SELECT + - 67 * + 61 col0
----
-4087

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1474
SELECT + NULLIF ( 13, + COUNT( * ) / + - 59 ) + CAST( NULL AS SIGNED ) * + + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1474
SELECT + NULLIF ( 13, + COUNT ( * ) / + - 59 ) + CAST ( NULL AS INTEGER ) * + + 12 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1475
SELECT ALL 99 + + + CAST( + 77 AS SIGNED ) AS col2
----
176

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL 99 + + + CAST ( + 77 AS INTEGER ) AS col2
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT - + SUM( ALL + + 77 ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-1476
SELECT - + SUM ( ALL + + 77 ) col0
----
-77

query I rowsort
SELECT + + 92 + + 92 col0
----
184

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

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

query I rowsort
SELECT + + NULLIF ( 56, + - ( + 7 ) ) * - 39
----
-2184

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

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

query I rowsort
SELECT ALL + 43 - + - 41
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-1482
SELECT DISTINCT 70 - + 6 + - 54 * - COUNT( * ) + 72, - 87 AS col0
----
190
-87

skipif mysql # not compatible
query II rowsort label-1482
SELECT DISTINCT 70 - + 6 + - 54 * - COUNT ( * ) + 72, - 87 AS col0
----
190
-87

query I rowsort
SELECT ALL - 62 - ( + 59 ) * + 81 * - ( - 79 ) AS col2
----
-377603

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT ALL + 36 * COUNT( * ) * + 63
----
2268

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL + 36 * COUNT ( * ) * + 63
----
2268

onlyif mysql # DIV for integer division: 
query II rowsort label-1485
SELECT DISTINCT 75 AS col1, - 5 DIV + + 96 AS col2
----
75
0

skipif mysql # not compatible
query II rowsort label-1485
SELECT DISTINCT 75 AS col1, - 5 / + + 96 AS col2
----
75
0

query II rowsort
SELECT - 28, 99 + - NULLIF ( - + 84, - 73 ) col0
----
-28
183

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

skipif mysql # not compatible
query II rowsort label-1487
SELECT - ( - COUNT ( * ) ), COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT + 70 * 83 AS col2
----
5810

query II rowsort
SELECT - ( - 92 ) AS col0, - 74
----
92
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT ALL COALESCE ( - 81, 39 * + - COUNT( * ) + + 57 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL COALESCE ( - 81, 39 * + - COUNT ( * ) + + 57 ) AS col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1491
SELECT - ( COALESCE ( + COUNT( + + 46 ), 21 * + COUNT( ( 61 ) ) DIV + ( - 63 ) + + CAST( - - 75 AS SIGNED ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1491
SELECT - ( COALESCE ( + COUNT ( + + 46 ), 21 * + COUNT ( ( 61 ) ) / + ( - 63 ) + + CAST ( - - 75 AS INTEGER ) ) ) AS col2
----
-1

query II rowsort
SELECT 28, COALESCE ( 76, + 71, - 46 ) AS col1
----
28
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1493
SELECT - 22 DIV - - NULLIF ( 16, + + COALESCE ( NULLIF ( 32, 90 * + 74 + - 51 - - 6 + 9 ), - 68 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1493
SELECT - 22 / - - NULLIF ( 16, + + COALESCE ( NULLIF ( 32, 90 * + 74 + - 51 - - 6 + 9 ), - 68 ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1494
SELECT - COUNT( * ) + - + 27, 67 * + + 95 AS col1
----
-28
6365

skipif mysql # not compatible
query II rowsort label-1494
SELECT - COUNT ( * ) + - + 27, 67 * + + 95 AS col1
----
-28
6365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1495
SELECT ALL COUNT( * ) AS col0, CAST( NULL AS SIGNED ) AS col2
----
1
NULL

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

query I rowsort
SELECT DISTINCT 63 * 9
----
567

onlyif mysql # DIV for integer division: 
query I rowsort label-1497
SELECT ALL - 74 DIV + 49 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL - 74 / + 49 AS col0
----
-1

query I rowsort
SELECT - 92 * + 69 AS col1
----
-6348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1499
SELECT + 3 * + 4, CAST( + COUNT( * ) AS SIGNED ) AS col2
----
12
1

skipif mysql # not compatible
query II rowsort label-1499
SELECT + 3 * + 4, CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
12
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT - SUM( DISTINCT + 32 ) * ( 85 ) * 58
----
-157760

skipif mysql # not compatible
query I rowsort label-1500
SELECT - SUM ( DISTINCT + 32 ) * ( 85 ) * 58
----
-157760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1501
SELECT DISTINCT - MAX( DISTINCT - ( - 39 ) ) DIV + 40 + - 98 * + + 93 AS col1
----
-9114

skipif mysql # not compatible
query I rowsort label-1501
SELECT DISTINCT - MAX ( DISTINCT - ( - 39 ) ) / + 40 + - 98 * + + 93 AS col1
----
-9114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1502
SELECT ( - COALESCE ( + CASE + 95 WHEN + - 55 + + - SUM( ALL + 53 ) + + - COUNT( * ) * + + COUNT( * ) THEN NULL ELSE + COUNT( * ) END, - + CAST( NULL AS SIGNED ), - 40, - 26 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1502
SELECT ( - COALESCE ( + CASE + 95 WHEN + - 55 + + - SUM ( ALL + 53 ) + + - COUNT ( * ) * + + COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END, - + CAST ( NULL AS INTEGER ), - 40, - 26 ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1503
SELECT - 62 + 39 AS col1, COUNT( * ) col1
----
-23
1

skipif mysql # not compatible
query II rowsort label-1503
SELECT - 62 + 39 AS col1, COUNT ( * ) col1
----
-23
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1504
SELECT - 23 col2, + 88 + - - COUNT( * ) + - 28 AS col0
----
-23
61

skipif mysql # not compatible
query II rowsort label-1504
SELECT - 23 col2, + 88 + - - COUNT ( * ) + - 28 AS col0
----
-23
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT ALL - COUNT( ALL + 37 ) * + 22 + + - 38 + + 52 * - ( - 95 ) * - 81 AS col0
----
-400200

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL - COUNT ( ALL + 37 ) * + 22 + + - 38 + + 52 * - ( - 95 ) * - 81 AS col0
----
-400200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1506
SELECT ALL + 87, 78 - - CAST( + 36 AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col0
----
87
NULL

skipif mysql # not compatible
query II rowsort label-1506
SELECT ALL + 87, 78 - - CAST ( + 36 AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col0
----
87
NULL

query I rowsort
SELECT DISTINCT 25 * + 40 - + - ( - 43 ) + - 89 + + 0 AS col2
----
868

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT DISTINCT + - COALESCE ( - + 14, 7 * + 22, 38 * - - 2 ) * - ( 42 ) + - + COUNT( * ) + - 89 AS col0
----
-678

skipif mysql # not compatible
query I rowsort label-1508
SELECT DISTINCT + - COALESCE ( - + 14, 7 * + 22, 38 * - - 2 ) * - ( 42 ) + - + COUNT ( * ) + - 89 AS col0
----
-678

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT ALL + 38 * + + ( - 30 ) * + + MAX( - + 61 ) + - + 66 + + 45 + + ( + SUM( ALL + 14 ) ) + + - 63 * + 15
----
68588

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL + 38 * + + ( - 30 ) * + + MAX ( - + 61 ) + - + 66 + + 45 + + ( + SUM ( ALL + 14 ) ) + + - 63 * + 15
----
68588

query I rowsort
SELECT - 66 * + 98 * + - 18 - + - 66 AS col1
----
116490

query II rowsort
SELECT + - 66, - 55 AS col2
----
-66
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT - - COUNT( * ) - - ( - 85 ) * + - SUM( + 95 )
----
8076

skipif mysql # not compatible
query I rowsort label-1512
SELECT - - COUNT ( * ) - - ( - 85 ) * + - SUM ( + 95 )
----
8076

query I rowsort
SELECT + - 21 * - + 99
----
2079

query II rowsort
SELECT ALL + - 93, + 73 * + 80 * - 37 * + 48 AS col1
----
-93
-10371840

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

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

query II rowsort
SELECT ALL 3 AS col2, 42 + - + 20 AS col1
----
3
22

query II rowsort
SELECT ALL - 81 AS col2, ( - 56 ) * + - 84 AS col0
----
-81
4704

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

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

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

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

query I rowsort
SELECT + + 95 * - - 55
----
5225

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT DISTINCT - SUM( - 17 ) * + + ( - + 56 ) AS col1
----
-952

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT - SUM ( - 17 ) * + + ( - + 56 ) AS col1
----
-952

query I rowsort
SELECT - - 25 + + + 93 * 13 * + 48 AS col2
----
58057

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

skipif mysql # not compatible
query I rowsort label-1523
SELECT - 52 + + COUNT ( * ) * 41 * + ( + - 85 ) AS col1
----
-3537

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

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

query I rowsort
SELECT + 70 * - + 38
----
-2660

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT + 29 + COUNT( 43 ) - - 56 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1526
SELECT + 29 + COUNT ( 43 ) - - 56 AS col2
----
86

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

skipif mysql # not compatible
query I rowsort label-1527
SELECT CAST ( NULL AS INTEGER ) - - - 42 * + 11
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1528
SELECT NULLIF ( + - COUNT( * ), - 12 + - 94 ) * + - CAST( NULL AS SIGNED ) + + - CAST( + - 38 AS SIGNED ) AS col1, 60 AS col1
----
NULL
60

skipif mysql # not compatible
query II rowsort label-1528
SELECT NULLIF ( + - COUNT ( * ), - 12 + - 94 ) * + - CAST ( NULL AS INTEGER ) + + - CAST ( + - 38 AS INTEGER ) AS col1, 60 AS col1
----
NULL
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1529
SELECT CAST( NULL AS DECIMAL ) + COUNT( * ) AS col1, 68 + ( 73 ) + + CAST( NULL AS SIGNED ) + - - COALESCE ( + + 29, 43 + + MAX( - - CAST( NULL AS SIGNED ) ) * + CASE ( + - 69 ) WHEN + 0 THEN - 87 END, + 80 * + 84 ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1529
SELECT CAST ( NULL AS REAL ) + COUNT ( * ) AS col1, 68 + ( 73 ) + + CAST ( NULL AS INTEGER ) + - - COALESCE ( + + 29, 43 + + MAX ( - - CAST ( NULL AS INTEGER ) ) * + CASE ( + - 69 ) WHEN + 0 THEN - 87 END, + 80 * + 84 ) AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1530
SELECT CAST( NULL AS SIGNED ) * - 66 / + MAX( 66 )
----
NULL

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

query I rowsort
SELECT ALL CASE WHEN NULL IS NOT NULL THEN 1 END + - 35
----
NULL

query II rowsort
SELECT ALL 57 + + 7 AS col1, 20 col2
----
64
20

query II rowsort
SELECT DISTINCT 92 + - 11 AS col0, - 63
----
81
-63

query I rowsort
SELECT 78 + - NULLIF ( - 30, + + 47 )
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-1535
SELECT ALL - 70 + 93 + 6 DIV + 59 col1
----
23

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL - 70 + 93 + 6 / + 59 col1
----
23

query I rowsort
SELECT DISTINCT 56 * + - 5
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT + + 56 * + MAX( ALL + 12 ) - - 52
----
724

skipif mysql # not compatible
query I rowsort label-1537
SELECT + + 56 * + MAX ( ALL + 12 ) - - 52
----
724

onlyif mysql # aggregate syntax: 
query II rowsort label-1538
SELECT 12 * - - 17 AS col2, + COUNT( ALL - 21 ) + 66 + - + ( + 72 )
----
204
-5

skipif mysql # not compatible
query II rowsort label-1538
SELECT 12 * - - 17 AS col2, + COUNT ( ALL - 21 ) + 66 + - + ( + 72 )
----
204
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1539
SELECT - 24 + COUNT( * ) AS col0, - 85 AS col0
----
-23
-85

skipif mysql # not compatible
query II rowsort label-1539
SELECT - 24 + COUNT ( * ) AS col0, - 85 AS col0
----
-23
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT - 39 * - ( 99 ) + - COUNT( + NULLIF ( 33, - 45 * + 64 ) ) col0
----
3860

skipif mysql # not compatible
query I rowsort label-1540
SELECT - 39 * - ( 99 ) + - COUNT ( + NULLIF ( 33, - 45 * + 64 ) ) col0
----
3860

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT - ( - 19 ) - 1 + COUNT( * ) + + 60 * + 29 + + 61 + + 50
----
1870

skipif mysql # not compatible
query I rowsort label-1541
SELECT - ( - 19 ) - 1 + COUNT ( * ) + + 60 * + 29 + + 61 + + 50
----
1870

onlyif mysql # DIV for integer division: 
query II rowsort label-1542
SELECT DISTINCT - 45 DIV 10 AS col0, 37 AS col1
----
-4
37

skipif mysql # not compatible
query II rowsort label-1542
SELECT DISTINCT - 45 / 10 AS col0, 37 AS col1
----
-4
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1543
SELECT DISTINCT - + CAST( COALESCE ( + + 43, - 33 ) AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-1543
SELECT DISTINCT - + CAST ( COALESCE ( + + 43, - 33 ) AS INTEGER )
----
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1544
SELECT ALL - 95 * + 30 - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL - 95 * + 30 - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 74 + - ( + 67 ) * - 38 AS col1
----
2620

query I rowsort
SELECT CASE + + 2 WHEN + - ( 17 ) THEN NULL ELSE - - 41 END + - + 97 AS col2
----
-56

query I rowsort
SELECT ALL - + 34 * 7 + + + 32
----
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT COUNT( * ) * + 56 + + 16
----
72

skipif mysql # not compatible
query I rowsort label-1548
SELECT COUNT ( * ) * + 56 + + 16
----
72

query I rowsort
SELECT + ( + - 63 ) + - - 7 + 30 AS col1
----
-26

query I rowsort
SELECT ALL - NULLIF ( + 88, - - 96 ) * - 55
----
4840

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT 44 + - COUNT( DISTINCT - - 55 ) col2
----
43

skipif mysql # not compatible
query I rowsort label-1551
SELECT 44 + - COUNT ( DISTINCT - - 55 ) col2
----
43

query I rowsort
SELECT 14 * + 29
----
406

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1554
SELECT ALL 80 AS col1, - 64 * 20 * - ( - 90 ) + + - 47 + ( - - 38 ) DIV 72
----
80
-115247

skipif mysql # not compatible
query II rowsort label-1554
SELECT ALL 80 AS col1, - 64 * 20 * - ( - 90 ) + + - 47 + ( - - 38 ) / 72
----
80
-115247

query II rowsort
SELECT ALL 82 AS col2, 5 AS col2
----
82
5

query I rowsort
SELECT ALL 10 * + + 44
----
440

query I rowsort
SELECT 40 + + 74
----
114

query I rowsort
SELECT DISTINCT - 1 + + - 38
----
-39

query II rowsort
SELECT ALL 91 AS col2, + 62 AS col1
----
91
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT 23 - + - 9 + + COALESCE ( - COUNT( * ), - + COUNT( DISTINCT - - 76 ), + 24 * - - 94, - 34 ) - ( - 56 ) * 75 AS col2
----
4231

skipif mysql # not compatible
query I rowsort label-1560
SELECT 23 - + - 9 + + COALESCE ( - COUNT ( * ), - + COUNT ( DISTINCT - - 76 ), + 24 * - - 94, - 34 ) - ( - 56 ) * 75 AS col2
----
4231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1561
SELECT ALL CASE + - 57 WHEN 56 * - CAST( NULL AS SIGNED ) * + 43 + - 75 / 21 THEN - 37 WHEN 98 * + 81 THEN 18 / NULLIF ( - 42, + 80 ) END * + 70 / COUNT( * ) * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL CASE + - 57 WHEN 56 * - CAST ( NULL AS INTEGER ) * + 43 + - 75 / 21 THEN - 37 WHEN 98 * + 81 THEN 18 / NULLIF ( - 42, + 80 ) END * + 70 / COUNT ( * ) * 30
----
NULL

query I rowsort
SELECT 30 + + 0 - + 8 AS col0
----
22

query I rowsort
SELECT 33 - 66
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT DISTINCT ( 76 ) + NULLIF ( 39, - COUNT( * ) ) AS col0
----
115

skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT ( 76 ) + NULLIF ( 39, - COUNT ( * ) ) AS col0
----
115

query I rowsort
SELECT ALL 10 * + 20 * - ( CASE - + 32 WHEN 44 THEN 53 WHEN + 42 THEN NULL ELSE NULL END ) * - 11 * - 8 - + 43
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-1566
SELECT + - 57 AS col2, 73 * ( + - NULLIF ( - 50, + - 67 ) ) DIV ( NULLIF ( - 10, - + CASE + - 63 WHEN - ( + 85 ) THEN + CAST( COUNT( - 1 ) AS DECIMAL ) WHEN + - 30 DIV - + CAST( NULL AS SIGNED ) * - 67 * - CASE - 81 WHEN CASE WHEN NOT NULL IS NOT NULL THEN 46 ELSE NULL END + - 42 THEN 45 * - 23 - - 5 END * 85 THEN COUNT( * ) END + 21 ) )
----
-57
-365

skipif mysql # not compatible
query II rowsort label-1566
SELECT + - 57 AS col2, 73 * ( + - NULLIF ( - 50, + - 67 ) ) / ( NULLIF ( - 10, - + CASE + - 63 WHEN - ( + 85 ) THEN + CAST ( COUNT ( - 1 ) AS REAL ) WHEN + - 30 / - + CAST ( NULL AS INTEGER ) * - 67 * - CASE - 81 WHEN CASE WHEN NOT NULL IS NOT NULL THEN 46 ELSE NULL END + - 42 THEN 45 * - 23 - - 5 END * 85 THEN COUNT ( * ) END + 21 ) )
----
-57
-365

query I rowsort
SELECT 44 * + 6 + - - 65 AS col0
----
329

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1568
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + 19, - 66 AS col0
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-1568
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + 19, - 66 AS col0
----
NULL
-66

query I rowsort
SELECT + 5 + - 52
----
-47

query II rowsort
SELECT DISTINCT - + 14 AS col2, + 25
----
-14
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT ALL - + CASE - 34 WHEN + 58 * COUNT( * ) THEN NULL ELSE - 68 + - + 42 + + 69 END
----
41

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL - + CASE - 34 WHEN + 58 * COUNT ( * ) THEN NULL ELSE - 68 + - + 42 + + 69 END
----
41

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1573
SELECT ALL - 55 * - CASE - COUNT( * ) WHEN - 1 THEN - - 6 * + - CAST( NULL AS SIGNED ) WHEN 69 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL - 55 * - CASE - COUNT ( * ) WHEN - 1 THEN - - 6 * + - CAST ( NULL AS INTEGER ) WHEN 69 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1574
SELECT ALL - CASE + 70 WHEN 83 * + 71 * + + 12 * + COUNT( + NULLIF ( - - 51, - + 50 * - - ( + 18 ) - - 16 * 16 ) ) THEN - COUNT( * ) * COUNT( * ) * + 97 DIV - - 57 WHEN + - 33 THEN NULL ELSE 20 * - 12 + + + COUNT( * ) END
----
239

skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL - CASE + 70 WHEN 83 * + 71 * + + 12 * + COUNT ( + NULLIF ( - - 51, - + 50 * - - ( + 18 ) - - 16 * 16 ) ) THEN - COUNT ( * ) * COUNT ( * ) * + 97 / - - 57 WHEN + - 33 THEN NULL ELSE 20 * - 12 + + + COUNT ( * ) END
----
239

query I rowsort
SELECT + 29 * + 53
----
1537

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1576
SELECT - 99 * - CASE 95 WHEN 46 THEN + ( - - 55 ) * - + 23 * - 74 * - 36 * - 75 ELSE NULL END * + CAST( NULL AS DECIMAL ) * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1576
SELECT - 99 * - CASE 95 WHEN 46 THEN + ( - - 55 ) * - + 23 * - 74 * - 36 * - 75 ELSE NULL END * + CAST ( NULL AS REAL ) * + 65
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1578
SELECT + 65 * - ( - ( - 70 ) ) / - + COUNT ( * )
----
4550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1579
SELECT - + 28 * 73 + CAST( + 10 AS SIGNED ) + ( + 81 )
----
-1953

skipif mysql # not compatible
query I rowsort label-1579
SELECT - + 28 * 73 + CAST ( + 10 AS INTEGER ) + ( + 81 )
----
-1953

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT - 5 * - + CASE MAX( 1 ) WHEN 58 THEN NULL WHEN 44 THEN + 0 END * + - COUNT( * ) * 8 * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1580
SELECT - 5 * - + CASE MAX ( 1 ) WHEN 58 THEN NULL WHEN 44 THEN + 0 END * + - COUNT ( * ) * 8 * 50
----
NULL

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

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

query I rowsort
SELECT ALL CASE WHEN ( NULL ) < + 31 THEN 72 / + + NULLIF ( - 4, - 2 ) / + 17 END + 57 * - + 98 + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT ALL - 87 + - - 95 + + + COUNT( * ) + - - COUNT( * ) - + + SUM( DISTINCT - 5 ) * + 51 AS col1
----
265

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL - 87 + - - 95 + + + COUNT ( * ) + - - COUNT ( * ) - + + SUM ( DISTINCT - 5 ) * + 51 AS col1
----
265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1584
SELECT ALL - ( - - CAST( MIN( + 6 ) AS SIGNED ) ) + - NULLIF ( + 8, - + 80 * + 50 + + + 65 + 63 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-1584
SELECT ALL - ( - - CAST ( MIN ( + 6 ) AS INTEGER ) ) + - NULLIF ( + 8, - + 80 * + 50 + + + 65 + 63 ) AS col2
----
-14

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1587
SELECT ALL - MAX( 42 ) + - 17 + - - MIN( - 59 ) + COUNT( * ) + COUNT( * ) - 3 + 17, 86 * - ( - 34 ) * 46 AS col1
----
-102
134504

skipif mysql # not compatible
query II rowsort label-1587
SELECT ALL - MAX ( 42 ) + - 17 + - - MIN ( - 59 ) + COUNT ( * ) + COUNT ( * ) - 3 + 17, 86 * - ( - 34 ) * 46 AS col1
----
-102
134504

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT - 39 + + MIN( - - CASE - 17 WHEN - 4 * - + 33 THEN NULL ELSE + 5 END )
----
-34

skipif mysql # not compatible
query I rowsort label-1588
SELECT - 39 + + MIN ( - - CASE - 17 WHEN - 4 * - + 33 THEN NULL ELSE + 5 END )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-1589
SELECT - COUNT( * ) - - 67, 17 AS col1
----
66
17

skipif mysql # not compatible
query II rowsort label-1589
SELECT - COUNT ( * ) - - 67, 17 AS col1
----
66
17

query I rowsort
SELECT + 21 - 91 + + 94 AS col2
----
24

query I rowsort
SELECT DISTINCT + ( - + 46 ) * 87
----
-4002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1592
SELECT ALL + 52 + + - CAST( + 32 AS SIGNED ) * + + SUM( DISTINCT + 98 )
----
-3084

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL + 52 + + - CAST ( + 32 AS INTEGER ) * + + SUM ( DISTINCT + 98 )
----
-3084

onlyif mysql # aggregate syntax: 
query II rowsort label-1593
SELECT - COUNT( * ) * + 55 col0, - 24 + + 14 + - NULLIF ( + 69, 89 * + 10 ) + + - 34 AS col0
----
-55
-113

skipif mysql # not compatible
query II rowsort label-1593
SELECT - COUNT ( * ) * + 55 col0, - 24 + + 14 + - NULLIF ( + 69, 89 * + 10 ) + + - 34 AS col0
----
-55
-113

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1595
SELECT DISTINCT COALESCE ( - - 42, - CAST( NULL AS SIGNED ), - 9 )
----
42

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT COALESCE ( - - 42, - CAST ( NULL AS INTEGER ), - 9 )
----
42

query I rowsort
SELECT DISTINCT + 70 - + NULLIF ( - 84, 30 )
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT ALL + 53 - - SUM( DISTINCT - + 65 )
----
-12

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL + 53 - - SUM ( DISTINCT - + 65 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1598
SELECT DISTINCT + - 30 * - COALESCE ( + - 94, CASE + 60 WHEN 79 THEN NULL WHEN + 91 THEN 73 + CAST( 11 AS SIGNED ) + - 24 * - 73 END )
----
-2820

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT + - 30 * - COALESCE ( + - 94, CASE + 60 WHEN 79 THEN NULL WHEN + 91 THEN 73 + CAST ( 11 AS INTEGER ) + - 24 * - 73 END )
----
-2820

query I rowsort
SELECT ALL + NULLIF ( 56, - + 79 )
----
56

query I rowsort
SELECT - + 14 + - 72 AS col0
----
-86

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

query II rowsort
SELECT + 42 - 26, - 68 AS col2
----
16
-68

query I rowsort
SELECT ALL + NULLIF ( 33, - 36 ) col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT ALL + MAX( DISTINCT + - 31 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL + MAX ( DISTINCT + - 31 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT CASE CASE + + 97 WHEN - 16 THEN NULL WHEN - 88 THEN + ( - ( - + 80 ) ) END WHEN - COALESCE ( 51, 31 * + - 55 + CASE - - 95 WHEN + - ( + 30 ) + - - 66 THEN + MAX( + 33 ) WHEN - 11 THEN NULL END * + 93 ) THEN + COALESCE ( - 24, + 43, + + 89 ) * + - 38 END / - 15 / + 32 * - + 50 + + MIN( ( - 42 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1605
SELECT CASE CASE + + 97 WHEN - 16 THEN NULL WHEN - 88 THEN + ( - ( - + 80 ) ) END WHEN - COALESCE ( 51, 31 * + - 55 + CASE - - 95 WHEN + - ( + 30 ) + - - 66 THEN + MAX ( + 33 ) WHEN - 11 THEN NULL END * + 93 ) THEN + COALESCE ( - 24, + 43, + + 89 ) * + - 38 END / - 15 / + 32 * - + 50 + + MIN ( ( - 42 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1606
SELECT DISTINCT + ( + - CASE - + 95 WHEN ( - 73 ) + + CAST( NULL AS SIGNED ) THEN - 43 END ) AS col0, 69 * - + 22 AS col1
----
NULL
-1518

skipif mysql # not compatible
query II rowsort label-1606
SELECT DISTINCT + ( + - CASE - + 95 WHEN ( - 73 ) + + CAST ( NULL AS INTEGER ) THEN - 43 END ) AS col0, 69 * - + 22 AS col1
----
NULL
-1518

query I rowsort
SELECT 13 * + 89 * 0 + + 75
----
75

query I rowsort
SELECT + + 32 - - 52
----
84

query I rowsort
SELECT + - 63 + - 2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1610
SELECT 58 * - 59 + - + NULLIF ( - 59, + ( + 5 ) ) - + 71 + + MIN( ALL - - ( - 62 ) ) + + + 35 - + SUM( + - NULLIF ( - - CAST( NULL AS SIGNED ), 45 ) ) * + + 97 * + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1610
SELECT 58 * - 59 + - + NULLIF ( - 59, + ( + 5 ) ) - + 71 + + MIN ( ALL - - ( - 62 ) ) + + + 35 - + SUM ( + - NULLIF ( - - CAST ( NULL AS INTEGER ), 45 ) ) * + + 97 * + 24 AS col0
----
NULL

query I rowsort
SELECT ALL - 9 * - + 32 * + 2 * + 19 + + + 71 + - + NULLIF ( - 45, - 48 + - 45 * + - 3 ) - - - 56 * - 40
----
13300

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT + ( + + 86 ) + + COUNT( * ) * + 14 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-1612
SELECT + ( + + 86 ) + + COUNT ( * ) * + 14 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT DISTINCT 11 * + 31 + - 3 * - ( COUNT( * ) )
----
344

skipif mysql # not compatible
query I rowsort label-1613
SELECT DISTINCT 11 * + 31 + - 3 * - ( COUNT ( * ) )
----
344

onlyif mysql # aggregate syntax: 
query II rowsort label-1614
SELECT DISTINCT - 34 * + 43 + - COALESCE ( + - ( 94 ), - ( - ( - 40 ) ) + + + COUNT( 59 ) - - 36 ) AS col0, 28 + + ( - ( - 57 ) )
----
-1368
85

skipif mysql # not compatible
query II rowsort label-1614
SELECT DISTINCT - 34 * + 43 + - COALESCE ( + - ( 94 ), - ( - ( - 40 ) ) + + + COUNT ( 59 ) - - 36 ) AS col0, 28 + + ( - ( - 57 ) )
----
-1368
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT ALL COUNT( * ) * - - 87 + + 63 / - CASE - + 20 WHEN + COUNT( * ) THEN + 73 * + 16 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL COUNT ( * ) * - - 87 + + 63 / - CASE - + 20 WHEN + COUNT ( * ) THEN + 73 * + 16 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1617
SELECT ALL + COUNT( * ) * - NULLIF ( - 63, - 86 ) + + 28 + 23 DIV + + COUNT( * ) AS col1
----
114

skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL + COUNT ( * ) * - NULLIF ( - 63, - 86 ) + + 28 + 23 / + + COUNT ( * ) AS col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT - 52 + + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-1618
SELECT - 52 + + COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT MAX( - - 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1619
SELECT MAX ( - - 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1620
SELECT ALL COUNT( * ) AS col2, + 49 + + COUNT( * ) col1
----
1
50

skipif mysql # not compatible
query II rowsort label-1620
SELECT ALL COUNT ( * ) AS col2, + 49 + + COUNT ( * ) col1
----
1
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT ALL - 1 * + SUM( ALL - + 53 ) + - 70
----
-17

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL - 1 * + SUM ( ALL - + 53 ) + - 70
----
-17

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

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

query I rowsort
SELECT - ( - NULLIF ( - 18, + 55 / + + 24 ) ) + 93
----
75

query I rowsort
SELECT ALL 90 * + 23 + + 4
----
2074

query I rowsort
SELECT - 10 * - 33
----
330

query I rowsort
SELECT ALL - 11 * 77 * - 20
----
16940

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT - NULLIF ( 65, + + 74 ) + + COALESCE ( - + NULLIF ( + + 22, - 72 ), + COUNT( * ) + + - 2 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-1627
SELECT - NULLIF ( 65, + + 74 ) + + COALESCE ( - + NULLIF ( + + 22, - 72 ), + COUNT ( * ) + + - 2 ) AS col2
----
-87

query I rowsort
SELECT DISTINCT + 66 * + 37
----
2442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1629
SELECT ALL NULLIF ( 44, CASE WHEN 44 IS NULL THEN + 98 * - CAST( NULL AS SIGNED ) * 99 * - + 18 ELSE NULL END + 49 ) AS col2, COUNT( * ) AS col1
----
44
1

skipif mysql # not compatible
query II rowsort label-1629
SELECT ALL NULLIF ( 44, CASE WHEN 44 IS NULL THEN + 98 * - CAST ( NULL AS INTEGER ) * 99 * - + 18 ELSE NULL END + 49 ) AS col2, COUNT ( * ) AS col1
----
44
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT + MAX( ALL 0 ) - 64 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-1630
SELECT + MAX ( ALL 0 ) - 64 AS col2
----
-64

query I rowsort
SELECT - ( + - 29 ) * 94 - - 7
----
2733

query I rowsort
SELECT ALL + 48 * - 17
----
-816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1633
SELECT - 26 - + ( + + 94 ) * + 24 / 4 + CASE - COUNT( * ) WHEN AVG ( + CAST( - 65 AS SIGNED ) ) THEN NULL WHEN - + 79 * - - ( - ( + ( - - 58 ) ) ) THEN 73 * - COALESCE ( + COUNT( + 13 ), + 97 + - - 61 ) END + - 30 * - ( 80 ) * + - CAST( NULL AS SIGNED ) AS col0, 14 * 96
----
NULL
1344

skipif mysql # not compatible
query II rowsort label-1633
SELECT - 26 - + ( + + 94 ) * + 24 / 4 + CASE - COUNT ( * ) WHEN AVG ( + CAST ( - 65 AS INTEGER ) ) THEN NULL WHEN - + 79 * - - ( - ( + ( - - 58 ) ) ) THEN 73 * - COALESCE ( + COUNT ( + 13 ), + 97 + - - 61 ) END + - 30 * - ( 80 ) * + - CAST ( NULL AS INTEGER ) AS col0, 14 * 96
----
NULL
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT - 74 + + - ( + + 25 ) + - - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-1634
SELECT - 74 + + - ( + + 25 ) + - - COUNT ( * )
----
-98

query I rowsort
SELECT - NULLIF ( + + 21, 25 + + 43 - + + 24 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT - 17 * - - 19 + SUM( + - 41 )
----
-364

skipif mysql # not compatible
query I rowsort label-1636
SELECT - 17 * - - 19 + SUM ( + - 41 )
----
-364

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1637
SELECT - COUNT( * ) + - + CAST( NULL AS DECIMAL ) - ( + + 76 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1637
SELECT - COUNT ( * ) + - + CAST ( NULL AS REAL ) - ( + + 76 ) AS col2
----
NULL

query II rowsort
SELECT + 27, - 38 AS col2
----
27
-38

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

skipif mysql # not compatible
query I rowsort label-1639
SELECT - COUNT ( 29 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1640
SELECT + + SUM( 3 ) DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-1640
SELECT + + SUM ( 3 ) / + 69
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1641
SELECT ( CASE + - 47 WHEN - COUNT( * ) * 28 THEN NULL WHEN + - 81 * + 19 + + 15 - - 32 * + 89 * 39 * - - 56 * + - 14 / 40 THEN - 0 / - 71 * COUNT( * ) / - + CASE + 83 WHEN 72 * - CASE 2 WHEN - COUNT( * ) THEN NULL ELSE - 11 END * - 26 * + 8 / - ( 26 ) + 90 * + + NULLIF ( 93, 55 * - 48 - - 24 ) + + 46 THEN - 23 * + 90 + SUM( DISTINCT + 86 + 29 / 90 ) WHEN + CAST( - 93 AS SIGNED ) THEN COALESCE ( 80, 59 + 89, - 54 ) + - 6 WHEN 78 - 32 THEN NULL ELSE - 15 * - 31 + 5 END ELSE NULL END ) / - COUNT( * ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1641
SELECT ( CASE + - 47 WHEN - COUNT ( * ) * 28 THEN NULL WHEN + - 81 * + 19 + + 15 - - 32 * + 89 * 39 * - - 56 * + - 14 / 40 THEN - 0 / - 71 * COUNT ( * ) / - + CASE + 83 WHEN 72 * - CASE 2 WHEN - COUNT ( * ) THEN NULL ELSE - 11 END * - 26 * + 8 / - ( 26 ) + 90 * + + NULLIF ( 93, 55 * - 48 - - 24 ) + + 46 THEN - 23 * + 90 + SUM ( DISTINCT + 86 + 29 / 90 ) WHEN + CAST ( - 93 AS INTEGER ) THEN COALESCE ( 80, 59 + 89, - 54 ) + - 6 WHEN 78 - 32 THEN NULL ELSE - 15 * - 31 + 5 END ELSE NULL END ) / - COUNT ( * ) + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1642
SELECT ALL CASE + COALESCE ( - 66, - - CASE - + 38 WHEN + NULLIF ( 91, + 60 ) + + 21 * + - 3 THEN - AVG ( DISTINCT - 37 ) + + 13 END * - 99 - - COUNT( * ) + - 0 + + 42 / - 71 / + + 49 * + 73 * 91 * - 67 - - + 94 + - 0 * - COUNT( * ) ) WHEN + CAST( NULL AS SIGNED ) THEN - 37 ELSE + ( - 3 ) END + - 38
----
-41

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL CASE + COALESCE ( - 66, - - CASE - + 38 WHEN + NULLIF ( 91, + 60 ) + + 21 * + - 3 THEN - AVG ( DISTINCT - 37 ) + + 13 END * - 99 - - COUNT ( * ) + - 0 + + 42 / - 71 / + + 49 * + 73 * 91 * - 67 - - + 94 + - 0 * - COUNT ( * ) ) WHEN + CAST ( NULL AS INTEGER ) THEN - 37 ELSE + ( - 3 ) END + - 38
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-1643
SELECT ALL - + 77, - COALESCE ( - CASE - 60 WHEN COUNT( DISTINCT 35 ) + 57 THEN - ( - + 42 ) ELSE - 43 * + ( + 43 ) END, + COALESCE ( - 5, - - 69 ), COUNT( * ) ) col2
----
-77
-1849

skipif mysql # not compatible
query II rowsort label-1643
SELECT ALL - + 77, - COALESCE ( - CASE - 60 WHEN COUNT ( DISTINCT 35 ) + 57 THEN - ( - + 42 ) ELSE - 43 * + ( + 43 ) END, + COALESCE ( - 5, - - 69 ), COUNT ( * ) ) col2
----
-77
-1849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1644
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) + + + 18 + - 87 * 81 * 83 AS col1
----
-584882

skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + + + 18 + - 87 * 81 * 83 AS col1
----
-584882

query I rowsort
SELECT DISTINCT + 54 + - + 98
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT COALESCE ( COUNT( * ), + 11 + + COALESCE ( - 86, 99 + + 41 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1646
SELECT COALESCE ( COUNT ( * ), + 11 + + COALESCE ( - 86, 99 + + 41 ) ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-1647
SELECT 15 * + CAST ( NULL AS INTEGER ) - - - 85
----
NULL

query II rowsort
SELECT + 75 AS col1, 33
----
75
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT ALL ( + - 38 ) + - CASE + COALESCE ( - 70, - + 14 + + 33 ) WHEN + 67 * COUNT( * ) THEN 79 + 68 ELSE - - 95 + - COUNT( * ) END AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL ( + - 38 ) + - CASE + COALESCE ( - 70, - + 14 + + 33 ) WHEN + 67 * COUNT ( * ) THEN 79 + 68 ELSE - - 95 + - COUNT ( * ) END AS col1
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-1650
SELECT + 33 AS col2, COUNT( - 28 ) * - 90 AS col0
----
33
-90

skipif mysql # not compatible
query II rowsort label-1650
SELECT + 33 AS col2, COUNT ( - 28 ) * - 90 AS col0
----
33
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1651
SELECT CAST( + 26 AS SIGNED ) * - 84 AS col2
----
-2184

skipif mysql # not compatible
query I rowsort label-1651
SELECT CAST ( + 26 AS INTEGER ) * - 84 AS col2
----
-2184

query I rowsort
SELECT ALL 28 - + 26 AS col1
----
2

query II rowsort
SELECT ( + 40 ) * + ( 32 ), 17 + 17 AS col1
----
1280
34

query I rowsort
SELECT DISTINCT 45 * + 43
----
1935

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1655
SELECT DISTINCT CAST( - ( - 5 ) AS SIGNED ) - - 33 * CASE - AVG ( - 43 ) WHEN + 88 + + - CAST( NULL AS SIGNED ) THEN - MIN( DISTINCT - 10 ) WHEN + 44 - - - 48 THEN NULL ELSE - 22 END AS col0
----
-721

skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT CAST ( - ( - 5 ) AS INTEGER ) - - 33 * CASE - AVG ( - 43 ) WHEN + 88 + + - CAST ( NULL AS INTEGER ) THEN - MIN ( DISTINCT - 10 ) WHEN + 44 - - - 48 THEN NULL ELSE - 22 END AS col0
----
-721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1656
SELECT CAST( + 95 AS SIGNED ) - + 8 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1656
SELECT CAST ( + 95 AS INTEGER ) - + 8 AS col1
----
87

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1658
SELECT DISTINCT 51, - COUNT( * ) + - + COUNT( ALL + + 76 ) DIV - 75 AS col2
----
51
-1

skipif mysql # not compatible
query II rowsort label-1658
SELECT DISTINCT 51, - COUNT ( * ) + - + COUNT ( ALL + + 76 ) / - 75 AS col2
----
51
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1659
SELECT CASE + 35 WHEN + COUNT( * ) + - ( + + ( + + 65 ) ) THEN + - COUNT( * ) END - - 49 + - 80 + + 23 * 86, 7 AS col2
----
NULL
7

skipif mysql # not compatible
query II rowsort label-1659
SELECT CASE + 35 WHEN + COUNT ( * ) + - ( + + ( + + 65 ) ) THEN + - COUNT ( * ) END - - 49 + - 80 + + 23 * 86, 7 AS col2
----
NULL
7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1660
SELECT - 55, + CAST( NULL AS DECIMAL ) * + 2 * 65 col0, - 41 + + 84 AS col2
----
-55
NULL
43

skipif mysql # not compatible
query III rowsort label-1660
SELECT - 55, + CAST ( NULL AS REAL ) * + 2 * 65 col0, - 41 + + 84 AS col2
----
-55
NULL
43

onlyif mysql # aggregate syntax: 
query II rowsort label-1661
SELECT 93 col0, - 22 + - COUNT( * ) + 86 + + + CASE + COUNT( * ) WHEN - COUNT( * ) THEN + 19 + + 67 WHEN 44 - - ( + CASE - 14 WHEN - 57 - - 92 THEN + - ( - 70 ) END ) THEN NULL WHEN + 30 THEN NULL END * - SUM( DISTINCT 92 ) * - - 3 AS col1
----
93
NULL

skipif mysql # not compatible
query II rowsort label-1661
SELECT 93 col0, - 22 + - COUNT ( * ) + 86 + + + CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN + 19 + + 67 WHEN 44 - - ( + CASE - 14 WHEN - 57 - - 92 THEN + - ( - 70 ) END ) THEN NULL WHEN + 30 THEN NULL END * - SUM ( DISTINCT 92 ) * - - 3 AS col1
----
93
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT SUM( DISTINCT - - ( - ( - - 96 ) ) ) * 58 + + + ( - 26 ) AS col0
----
-5594

skipif mysql # not compatible
query I rowsort label-1662
SELECT SUM ( DISTINCT - - ( - ( - - 96 ) ) ) * 58 + + + ( - 26 ) AS col0
----
-5594

onlyif mysql # DIV for integer division: 
query I rowsort label-1663
SELECT 93 DIV + + 26 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1663
SELECT 93 / + + 26 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT CASE - 54 WHEN - COUNT( * ) THEN 32 + - 74 WHEN 48 * + 94 / - + 46 THEN NULL ELSE - - 69 END + + - 5
----
64

skipif mysql # not compatible
query I rowsort label-1664
SELECT CASE - 54 WHEN - COUNT ( * ) THEN 32 + - 74 WHEN 48 * + 94 / - + 46 THEN NULL ELSE - - 69 END + + - 5
----
64

query I rowsort
SELECT 3 - - 63 AS col1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-1666
SELECT - 67, + 70 * - - COUNT( - 33 ) + + COUNT( * ) * 29 * + + 33 AS col2
----
-67
1027

skipif mysql # not compatible
query II rowsort label-1666
SELECT - 67, + 70 * - - COUNT ( - 33 ) + + COUNT ( * ) * 29 * + + 33 AS col2
----
-67
1027

onlyif mysql # DIV for integer division: 
query I rowsort label-1667
SELECT ALL - - 13 DIV ( - 15 ) * + + 38 DIV + 55 + - 10 * - 29 * - + 6
----
-1740

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL - - 13 / ( - 15 ) * + + 38 / + 55 + - 10 * - 29 * - + 6
----
-1740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1668
SELECT - 2 DIV SUM( 94 )
----
0

skipif mysql # not compatible
query I rowsort label-1668
SELECT - 2 / SUM ( 94 )
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1670
SELECT DISTINCT + COALESCE ( - 74, COUNT( * ) * - + 56, - - COUNT( + 19 ) DIV + COUNT( * ), 97 ) DIV + 53 AS col0, 87 * + 52 - CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1670
SELECT DISTINCT + COALESCE ( - 74, COUNT ( * ) * - + 56, - - COUNT ( + 19 ) / + COUNT ( * ), 97 ) / + 53 AS col0, 87 * + 52 - CAST ( NULL AS INTEGER )
----
-1
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1672
SELECT ALL - 68 DIV - 11
----
6

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL - 68 / - 11
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT - 42 + + - COUNT( * ) * + - ( - 70 ) * 59 + ( 69 ) - + COUNT( * ) * + 33 + 89 * ( - 94 )
----
-12502

skipif mysql # not compatible
query I rowsort label-1673
SELECT - 42 + + - COUNT ( * ) * + - ( - 70 ) * 59 + ( 69 ) - + COUNT ( * ) * + 33 + 89 * ( - 94 )
----
-12502

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

query I rowsort
SELECT ALL + 77 + - + 85
----
-8

query I rowsort
SELECT - 91 + + - 57 AS col2
----
-148

query I rowsort
SELECT COALESCE ( 96, + - 9 * - 1 + - + 90 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT DISTINCT - + MIN( 74 ) + + 77
----
3

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT - + MIN ( 74 ) + + 77
----
3

query I rowsort
SELECT - 18 + + + ( 13 )
----
-5

query I rowsort
SELECT 81 * - 98 * - + 65
----
515970

query I rowsort
SELECT ALL + + 21 + - + 79 + - 98 AS col2
----
-156

query I rowsort
SELECT + 40 - - 32
----
72

query I rowsort
SELECT ALL - 61 + ( + + 73 )
----
12

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

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

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

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

query I rowsort
SELECT 19 * 77 + - - 87
----
1550

query I rowsort
SELECT 59 - + 33 * - 15 AS col0
----
554

query I rowsort
SELECT - 14 * 61 + - 87 * + 58 AS col2
----
-5900

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT MIN( - 46 ) - + + 66 AS col1
----
-112

skipif mysql # not compatible
query I rowsort label-1689
SELECT MIN ( - 46 ) - + + 66 AS col1
----
-112

query I rowsort
SELECT ALL - 29 * 27 * - 25
----
19575

query I rowsort
SELECT 43 + - 47
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1692
SELECT 56 * CAST( ( - - 40 ) AS SIGNED ) + COUNT( * ) AS col2
----
2241

skipif mysql # not compatible
query I rowsort label-1692
SELECT 56 * CAST ( ( - - 40 ) AS INTEGER ) + COUNT ( * ) AS col2
----
2241

query I rowsort
SELECT 49 * - 72 AS col0
----
-3528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1694
SELECT ALL - ( + CASE COALESCE ( - - 31, - - 33, + 60 + + CAST( + 82 AS SIGNED ) + - - 2 * SUM( 61 ) * - 4 ) WHEN - COUNT( DISTINCT 39 ) THEN COUNT( * ) WHEN + ( + 13 ) THEN - 12 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL - ( + CASE COALESCE ( - - 31, - - 33, + 60 + + CAST ( + 82 AS INTEGER ) + - - 2 * SUM ( 61 ) * - 4 ) WHEN - COUNT ( DISTINCT 39 ) THEN COUNT ( * ) WHEN + ( + 13 ) THEN - 12 END ) AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1696
SELECT ALL 80 DIV + - 77, - 9 AS col1
----
-1
-9

skipif mysql # not compatible
query II rowsort label-1696
SELECT ALL 80 / + - 77, - 9 AS col1
----
-1
-9

query I rowsort
SELECT ALL - 20 - + 90 + 91 AS col1
----
-19

query I rowsort
SELECT + ( - 26 ) * - 52 + - + 28 AS col0
----
1324

query II rowsort
SELECT 48 * - + 33 AS col1, + 97 * + 75 AS col0
----
-1584
7275

query I rowsort
SELECT ( 88 ) * - 37 col1
----
-3256

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT MAX( - 7 ) + SUM( DISTINCT - - ( 99 ) ) - + 46 * 99
----
-4462

skipif mysql # not compatible
query I rowsort label-1701
SELECT MAX ( - 7 ) + SUM ( DISTINCT - - ( 99 ) ) - + 46 * 99
----
-4462

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1702
SELECT 3 + + 53 AS col2, - CAST( NULL AS SIGNED ) AS col1
----
56
NULL

skipif mysql # not compatible
query II rowsort label-1702
SELECT 3 + + 53 AS col2, - CAST ( NULL AS INTEGER ) AS col1
----
56
NULL

query I rowsort
SELECT 74 * - 23
----
-1702

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT DISTINCT 73 * - SUM( DISTINCT + - 52 ) AS col2
----
3796

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT 73 * - SUM ( DISTINCT + - 52 ) AS col2
----
3796

query I rowsort
SELECT ALL NULLIF ( + 26, - ( 93 ) / + 35 * - 21 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT ALL 91 * + + COUNT( DISTINCT - 97 ) col1
----
91

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL 91 * + + COUNT ( DISTINCT - 97 ) col1
----
91

query II rowsort
SELECT ALL + ( + 57 ) AS col2, - 71 AS col2
----
57
-71

query I rowsort
SELECT DISTINCT + 39 * 3 col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT - - 20 + 14 * + + COUNT( * ) * 56
----
804

skipif mysql # not compatible
query I rowsort label-1709
SELECT - - 20 + 14 * + + COUNT ( * ) * 56
----
804

query I rowsort
SELECT DISTINCT - 14 + - - 23 AS col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1711
SELECT DISTINCT 50 DIV 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1711
SELECT DISTINCT 50 / 58 AS col2
----
0

query I rowsort
SELECT + + 59 + - 82
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1713
SELECT + + COUNT( * ) * + 17 - ( - COUNT( * ) ) * - MIN( + + 40 ) DIV - 46 * - + ( + 12 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-1713
SELECT + + COUNT ( * ) * + 17 - ( - COUNT ( * ) ) * - MIN ( + + 40 ) / - 46 * - + ( + 12 ) AS col0
----
17

query I rowsort
SELECT + - 84 + 49 col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1715
SELECT + - 26 - - 24 AS col1, + 76 + + CASE - 61 WHEN + 20 THEN + 82 WHEN 53 THEN - - CAST( - - 69 AS DECIMAL ) * - + 6 + COUNT( ALL - + CAST( NULL AS SIGNED ) ) END + - 41 * - 50
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-1715
SELECT + - 26 - - 24 AS col1, + 76 + + CASE - 61 WHEN + 20 THEN + 82 WHEN 53 THEN - - CAST ( - - 69 AS REAL ) * - + 6 + COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) END + - 41 * - 50
----
-2
NULL

query I rowsort
SELECT DISTINCT 17 * + 89 * 60
----
90780

query I rowsort
SELECT NULLIF ( - 15, 62 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT DISTINCT + MIN( - NULLIF ( 9, - ( + + COALESCE ( + 64, NULLIF ( - 69, 65 + CASE 4 WHEN - - COALESCE ( + 25, + 85 * + 86 * 90 ) THEN + - 6 END ) + 12, - 82 ) ) ) ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT + MIN ( - NULLIF ( 9, - ( + + COALESCE ( + 64, NULLIF ( - 69, 65 + CASE 4 WHEN - - COALESCE ( + 25, + 85 * + 86 * 90 ) THEN + - 6 END ) + 12, - 82 ) ) ) ) AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1719
SELECT ALL 66 * - 6 * CAST( NULL AS DECIMAL ) - - + 23 * + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL 66 * - 6 * CAST ( NULL AS REAL ) - - + 23 * + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT ALL + NULLIF ( - 64, + 20 + + 69 / + - 24 * 91 * + CASE COUNT( ( 82 ) ) WHEN 81 + - MIN( + ( + - 41 ) ) THEN - 11 + + 21 ELSE - 82 / - + 36 END - - 47 )
----
-64

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL + NULLIF ( - 64, + 20 + + 69 / + - 24 * 91 * + CASE COUNT ( ( 82 ) ) WHEN 81 + - MIN ( + ( + - 41 ) ) THEN - 11 + + 21 ELSE - 82 / - + 36 END - - 47 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT DISTINCT + 59 * - - 11 * - COUNT( + - 80 ) - + - NULLIF ( - + 19, + 81 + + ( COUNT( * ) ) - + 69 + - CASE - + 49 WHEN + - ( + 49 ) * 15 / + COUNT( * ) THEN + 75 / + - 44 WHEN - + 20 - + 76 / + - COUNT( * ) + - 73 / 84 THEN NULL END ) AS col0
----
-668

skipif mysql # not compatible
query I rowsort label-1721
SELECT DISTINCT + 59 * - - 11 * - COUNT ( + - 80 ) - + - NULLIF ( - + 19, + 81 + + ( COUNT ( * ) ) - + 69 + - CASE - + 49 WHEN + - ( + 49 ) * 15 / + COUNT ( * ) THEN + 75 / + - 44 WHEN - + 20 - + 76 / + - COUNT ( * ) + - 73 / 84 THEN NULL END ) AS col0
----
-668

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT COALESCE ( + - 37, - COUNT( * ), - - 11 * - 72 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-1723
SELECT COALESCE ( + - 37, - COUNT ( * ), - - 11 * - 72 ) AS col2
----
-37

query II rowsort
SELECT ALL + 7 AS col2, + 59 AS col2
----
7
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT - MIN( - 8 ) * + + 36 AS col2
----
288

skipif mysql # not compatible
query I rowsort label-1725
SELECT - MIN ( - 8 ) * + + 36 AS col2
----
288

query II rowsort
SELECT + 97 col1, 85 * + - ( - 47 )
----
97
3995

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT - COUNT( * ) + + 96 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-1727
SELECT - COUNT ( * ) + + 96 AS col1
----
95

query I rowsort
SELECT DISTINCT + 8 * + 24 AS col0
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1729
SELECT + 90 * + 2 - - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
181

skipif mysql # not compatible
query I rowsort label-1729
SELECT + 90 * + 2 - - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
181

query II rowsort
SELECT DISTINCT 71 * + 54 + - 27 AS col1, 26 * - + 70 AS col0
----
3807
-1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1731
SELECT - CASE - 92 WHEN - 55 * + 44 + - ( 60 ) - 5 * CAST( NULL AS SIGNED ) * + 69 THEN NULL WHEN + 40 THEN + MIN( DISTINCT + 7 ) WHEN + - 40 + + - 23 + + + 33 * + 72 + - - CAST( - COUNT( * ) AS SIGNED ) THEN NULL END + + NULLIF ( - 26, + COALESCE ( + 52, + 73 * + + 98 * - 31 / + - 27, 61 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1731
SELECT - CASE - 92 WHEN - 55 * + 44 + - ( 60 ) - 5 * CAST ( NULL AS INTEGER ) * + 69 THEN NULL WHEN + 40 THEN + MIN ( DISTINCT + 7 ) WHEN + - 40 + + - 23 + + + 33 * + 72 + - - CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL END + + NULLIF ( - 26, + COALESCE ( + 52, + 73 * + + 98 * - 31 / + - 27, 61 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL CASE + + 36 WHEN + 96 THEN NULL ELSE - 82 END AS col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1733
SELECT - COUNT( ALL - COALESCE ( + CAST( + + 10 AS SIGNED ), + + 51 + + - 11 ) ) + + 20 * + 3 + 24 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-1733
SELECT - COUNT ( ALL - COALESCE ( + CAST ( + + 10 AS INTEGER ), + + 51 + + - 11 ) ) + + 20 * + 3 + 24 AS col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-1734
SELECT 76, - COUNT( * ) + - 57 AS col1
----
76
-58

skipif mysql # not compatible
query II rowsort label-1734
SELECT 76, - COUNT ( * ) + - 57 AS col1
----
76
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT ALL + 74 + - MAX( ALL 29 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL + 74 + - MAX ( ALL 29 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT DISTINCT COUNT( * ) + 10
----
11

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT COUNT ( * ) + 10
----
11

query I rowsort
SELECT ALL 39 * - + 90
----
-3510

query I rowsort
SELECT DISTINCT 48 * - + 77 AS col0
----
-3696

query I rowsort
SELECT DISTINCT - - ( + ( - 78 ) ) * - 15 - - 3 AS col1
----
1173

query I rowsort
SELECT + + 55 + + 58 col1
----
113

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

query I rowsort
SELECT ALL 6 * + 52 * - ( - - 21 ) AS col2
----
-6552

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT ALL 10 - - 76 * - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL 10 - - 76 * - COUNT ( * )
----
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1744
SELECT - 53, CAST( NULL AS DECIMAL ) AS col2
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-1744
SELECT - 53, CAST ( NULL AS REAL ) AS col2
----
-53
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1745
SELECT + 64 AS col2, + COUNT( * ) AS col0
----
64
1

skipif mysql # not compatible
query II rowsort label-1745
SELECT + 64 AS col2, + COUNT ( * ) AS col0
----
64
1

query I rowsort
SELECT + + ( - 5 ) + + 7 * 35 * + 29
----
7100

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT + - 78 + COUNT( * ) col1
----
-77

skipif mysql # not compatible
query I rowsort label-1748
SELECT + - 78 + COUNT ( * ) col1
----
-77

query II rowsort
SELECT - COALESCE ( 13, 65 ) AS col0, + 57 AS col2
----
-13
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ALL MAX( - 40 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL MAX ( - 40 ) AS col1
----
-40

query I rowsort
SELECT + + 3 + - ( 64 ) AS col0
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-1752
SELECT ALL 5 DIV - - 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL 5 / - - 73 AS col0
----
0

query I rowsort
SELECT + 18 * - 87 + - 33 AS col0
----
-1599

query I rowsort
SELECT + 69 * - 49 AS col2
----
-3381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1755
SELECT DISTINCT 34 DIV - 17, - 69 + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-2
-70

skipif mysql # not compatible
query II rowsort label-1755
SELECT DISTINCT 34 / - 17, - 69 + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-2
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1756
SELECT DISTINCT - COUNT( * ) * - CAST( NULL AS SIGNED ), 97 * + COALESCE ( + 28, 23, - 88 ) AS col2
----
NULL
2716

skipif mysql # not compatible
query II rowsort label-1756
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS INTEGER ), 97 * + COALESCE ( + 28, 23, - 88 ) AS col2
----
NULL
2716

query I rowsort
SELECT + ( + + 16 ) + + 39 AS col1
----
55

query I rowsort
SELECT ALL 69 * - + 3 AS col1
----
-207

query I rowsort
SELECT + 33 * - 91
----
-3003

query I rowsort
SELECT ALL 63 * + 47 * + - 19 col0
----
-56259

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1762
SELECT ( - 79 ) AS col1, COUNT( - 50 )
----
-79
1

skipif mysql # not compatible
query II rowsort label-1762
SELECT ( - 79 ) AS col1, COUNT ( - 50 )
----
-79
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT ALL 98 * + + NULLIF ( - 38, 89 ) + + + COUNT( * ) * + 3 AS col2
----
-3721

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL 98 * + + NULLIF ( - 38, 89 ) + + + COUNT ( * ) * + 3 AS col2
----
-3721

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1764
SELECT ( NULLIF ( - 89, - + CASE 8 WHEN + 85 - + - 56 THEN + 24 / CAST( - + AVG ( ALL + + 78 ) AS SIGNED ) ELSE + 74 END ) ) AS col2, + 28 * + 84 * + 65 AS col1
----
-89
152880

skipif mysql # not compatible
query II rowsort label-1764
SELECT ( NULLIF ( - 89, - + CASE 8 WHEN + 85 - + - 56 THEN + 24 / CAST ( - + AVG ( ALL + + 78 ) AS INTEGER ) ELSE + 74 END ) ) AS col2, + 28 * + 84 * + 65 AS col1
----
-89
152880

query I rowsort
SELECT - 49 + 35
----
-14

query I rowsort
SELECT CASE + 59 WHEN 68 + AVG ( DISTINCT - 48 ) THEN NULL ELSE + 75 END
----
75

query I rowsort
SELECT + 18 * - + 4
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT MIN( DISTINCT + + 42 ) + - + 96 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1768
SELECT MIN ( DISTINCT + + 42 ) + - + 96 AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1769
SELECT DISTINCT + - 52 * - 0 + + CAST( - 75 AS SIGNED ) - + 84 - - 21 AS col0
----
-138

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT + - 52 * - 0 + + CAST ( - 75 AS INTEGER ) - + 84 - - 21 AS col0
----
-138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1770
SELECT DISTINCT - 98 + ( + - ( 57 ) ) DIV - - MAX( DISTINCT 52 )
----
-99

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT - 98 + ( + - ( 57 ) ) / - - MAX ( DISTINCT 52 )
----
-99

query I rowsort
SELECT ALL - + 39 - ( - 11 )
----
-28

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1773
SELECT DISTINCT - 37 - 53 * + 14 + 81 DIV + 10 * - COUNT( * )
----
-787

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT - 37 - 53 * + 14 + 81 / + 10 * - COUNT ( * )
----
-787

query I rowsort
SELECT ALL - ( - - 40 ) AS col1
----
-40

query I rowsort
SELECT ALL - + 47 - 56
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-1776
SELECT + 61 * + 50 + + 18 DIV - + 97 AS col0
----
3050

skipif mysql # not compatible
query I rowsort label-1776
SELECT + 61 * + 50 + + 18 / - + 97 AS col0
----
3050

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT ALL 39 * - MAX( ALL ( + 60 ) )
----
-2340

skipif mysql # not compatible
query I rowsort label-1777
SELECT ALL 39 * - MAX ( ALL ( + 60 ) )
----
-2340

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT 28 * ( + 93 ) AS col2, 98 + - - 38
----
2604
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1782
SELECT MAX( DISTINCT 51 ) DIV - 13 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1782
SELECT MAX ( DISTINCT 51 ) / - 13 AS col0
----
-3

query I rowsort
SELECT ( + 93 ) * + 49 AS col0
----
4557

query I rowsort
SELECT ALL 22 + 64
----
86

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

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT COUNT ( DISTINCT - + 39 ) + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1786
SELECT ALL COALESCE ( - + COUNT( * ), + - MAX( - + 67 ) ) + + 31 + 70 DIV 81 DIV + 75
----
30

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL COALESCE ( - + COUNT ( * ), + - MAX ( - + 67 ) ) + + 31 + 70 / 81 / + 75
----
30

query I rowsort
SELECT ALL 86 + - NULLIF ( + 62, 16 )
----
24

query I rowsort
SELECT DISTINCT 50 + + 58 AS col0
----
108

query I rowsort
SELECT ALL 68 + 10 AS col0
----
78

query I rowsort
SELECT ALL 79 + + 77 + - ( - 33 ) * + 38 AS col1
----
1410

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT ALL COUNT( DISTINCT + + 65 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL COUNT ( DISTINCT + + 65 ) + + COUNT ( * )
----
2

query I rowsort
SELECT 93 + + 71 col1
----
164

query I rowsort
SELECT 81 + - 47 AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1794
SELECT - CAST( - CAST( - 86 AS SIGNED ) AS SIGNED ) * - 95 + + + CAST( NULL AS SIGNED ) * + + SUM( ALL - 19 ) + - 96 - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1794
SELECT - CAST ( - CAST ( - 86 AS INTEGER ) AS INTEGER ) * - 95 + + + CAST ( NULL AS INTEGER ) * + + SUM ( ALL - 19 ) + - 96 - 59
----
NULL

query I rowsort
SELECT CASE + 50 WHEN - 66 THEN - 73 * 96 * + 86 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 32 * 47
----
1504

query I rowsort
SELECT 19 - 39
----
-20

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

query I rowsort
SELECT ALL - 51 * - - 25
----
-1275

query I rowsort
SELECT DISTINCT - - 57 * - 81
----
-4617

query I rowsort
SELECT DISTINCT - - 40 * 66 AS col1
----
2640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1802
SELECT ALL - 93 * - + COUNT( * ) DIV - COUNT( ALL 50 )
----
-93

skipif mysql # not compatible
query I rowsort label-1802
SELECT ALL - 93 * - + COUNT ( * ) / - COUNT ( ALL 50 )
----
-93

query I rowsort
SELECT ALL + 38 * + ( + 78 )
----
2964

query I rowsort
SELECT ( - 22 ) * + AVG ( DISTINCT CASE 50 WHEN - COALESCE ( 12, 67 / - 57 + 7 ) / - ( - ( - + 50 ) ) + 73 - 73 THEN ( + + 32 ) + + 44 / 42 END ) + + 78 + - ( - 90 ) * + 21 * - 44
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1805
SELECT 49 + + 5 DIV - - 53 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1805
SELECT 49 + + 5 / - - 53 AS col2
----
49

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

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

query I rowsort
SELECT ALL - 66 + - + 28 AS col2
----
-94

query I rowsort
SELECT 58 + 51
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT 94 - + 40 * - + 93 + 91 + + - 48 + - 97 + COUNT( * )
----
3761

skipif mysql # not compatible
query I rowsort label-1809
SELECT 94 - + 40 * - + 93 + 91 + + - 48 + - 97 + COUNT ( * )
----
3761

query II rowsort
SELECT - 80 AS col2, 63
----
-80
63

query I rowsort
SELECT ALL + 3 + + 93 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL + 94 + COUNT( * ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL + 94 + COUNT ( * ) AS col2
----
95

query I rowsort
SELECT 84 + + 60 AS col0
----
144

query I rowsort
SELECT ALL 47 * 85 + + 51 col0
----
4046

query I rowsort
SELECT ALL + 79 * + 99 + 2
----
7823

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1816
SELECT 67 DIV + 31 + 60 + 21 * + COUNT( * ) + 93 - - + 61 AS col0
----
237

skipif mysql # not compatible
query I rowsort label-1816
SELECT 67 / + 31 + 60 + 21 * + COUNT ( * ) + 93 - - + 61 AS col0
----
237

query I rowsort
SELECT ALL 90 * 61 + + 23 + 98 * - 47
----
907

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT ALL - 76 * - 12 * - COUNT( * ) AS col2
----
-912

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL - 76 * - 12 * - COUNT ( * ) AS col2
----
-912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1819
SELECT NULLIF ( 15, 0 / + ( + COUNT( * ) ) + - + ( - CASE 46 WHEN - - 53 * - 34 - + CAST( NULL AS DECIMAL ) THEN NULL ELSE - CAST( NULL AS SIGNED ) END ) + COUNT( * ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1819
SELECT NULLIF ( 15, 0 / + ( + COUNT ( * ) ) + - + ( - CASE 46 WHEN - - 53 * - 34 - + CAST ( NULL AS REAL ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) END ) + COUNT ( * ) ) AS col1
----
15

query I rowsort
SELECT + 50 + - 25 + - - 20 AS col0
----
45

query I rowsort
SELECT - 62 * 97
----
-6014

query I rowsort
SELECT + 68 * - 74
----
-5032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1823
SELECT DISTINCT - MAX( ALL 72 ) * CAST( 71 AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT - MAX ( ALL 72 ) * CAST ( 71 AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1824
SELECT + 44 + + ( + - MIN( - 98 ) ) + + + 2 * + 37 AS col2, + 12 AS col2
----
216
12

skipif mysql # not compatible
query II rowsort label-1824
SELECT + 44 + + ( + - MIN ( - 98 ) ) + + + 2 * + 37 AS col2, + 12 AS col2
----
216
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1825
SELECT DISTINCT + ( - + 49 ) * 46 DIV - 35 - 23 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-1825
SELECT DISTINCT + ( - + 49 ) * 46 / - 35 - 23 AS col2
----
41

query I rowsort
SELECT + 57 * - 80 + - - 4 * 32 * - 42 * - + 64
----
339504

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT ALL + MAX( - 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL + MAX ( - 50 ) AS col2
----
-50

query I rowsort
SELECT ALL - 6 * 5 * + + 76 AS col2
----
-2280

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1829
SELECT ALL + 75, 51 + + ( 10 ) + + 98 + ( - 55 ) + - + ( - + 40 ) * ( ( 48 ) ) DIV + 85 * + COUNT( * ) AS col1
----
75
126

skipif mysql # not compatible
query II rowsort label-1829
SELECT ALL + 75, 51 + + ( 10 ) + + 98 + ( - 55 ) + - + ( - + 40 ) * ( ( 48 ) ) / + 85 * + COUNT ( * ) AS col1
----
75
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1830
SELECT - SUM( ALL - 66 ) * - - 41 + + - CASE - AVG ( DISTINCT 22 ) WHEN 35 * - 19 - + 10 * - - ( - COUNT( * ) ) + 96 / + CAST( NULL AS SIGNED ) * - 0 THEN NULL WHEN - 59 * + 9 + - 38 * - CAST( NULL AS DECIMAL ) + - + 29 THEN + + MIN( - 74 ) * - + 0 + 44 + COUNT( * ) + COUNT( * ) + + AVG ( - 86 ) * - - MAX( + - 34 ) * + CAST( - + 82 AS SIGNED ) + - 10 + + 83 + - - 6 ELSE NULL END - - CAST( NULL AS SIGNED ) + + + 82 * + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT - SUM ( ALL - 66 ) * - - 41 + + - CASE - AVG ( DISTINCT 22 ) WHEN 35 * - 19 - + 10 * - - ( - COUNT ( * ) ) + 96 / + CAST ( NULL AS INTEGER ) * - 0 THEN NULL WHEN - 59 * + 9 + - 38 * - CAST ( NULL AS REAL ) + - + 29 THEN + + MIN ( - 74 ) * - + 0 + 44 + COUNT ( * ) + COUNT ( * ) + + AVG ( - 86 ) * - - MAX ( + - 34 ) * + CAST ( - + 82 AS INTEGER ) + - 10 + + 83 + - - 6 ELSE NULL END - - CAST ( NULL AS INTEGER ) + + + 82 * + 27 AS col0
----
NULL

query II rowsort
SELECT 82 col2, - 47 col1
----
82
-47

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

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

query I rowsort
SELECT ALL 72 * - 23 AS col2
----
-1656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1834
SELECT DISTINCT - 54 * ( COUNT( * ) ) DIV 12 + + ( + 66 ) + - 74
----
-12

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT - 54 * ( COUNT ( * ) ) / 12 + + ( + 66 ) + - 74
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1835
SELECT + - 16 * + - NULLIF ( COUNT( * ), - + SUM( ALL 57 ) * + 43 ) DIV ( - - NULLIF ( + + 68, 53 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1835
SELECT + - 16 * + - NULLIF ( COUNT ( * ), - + SUM ( ALL 57 ) * + 43 ) / ( - - NULLIF ( + + 68, 53 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1836
SELECT ALL - CAST( 92 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL - CAST ( 92 AS INTEGER )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT DISTINCT 74 + COUNT( * ) + 10
----
85

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT 74 + COUNT ( * ) + 10
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-1838
SELECT DISTINCT 5 + - COUNT( * ) AS col2, - 17
----
4
-17

skipif mysql # not compatible
query II rowsort label-1838
SELECT DISTINCT 5 + - COUNT ( * ) AS col2, - 17
----
4
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1839
SELECT + 11 - 34 - COALESCE ( + 72, - ( - - 39 ) * - MAX( - CASE + 16 WHEN + 8 * + + CAST( NULL AS SIGNED ) + + 33 + - COALESCE ( ( - 78 ), - 73 - - 23 ) THEN COALESCE ( 67, + 64 + - + 90, - + 87 + + 32 + + - 48 * - 86 ) ELSE - 67 - - 67 END ), 63 ) * - 94
----
6745

skipif mysql # not compatible
query I rowsort label-1839
SELECT + 11 - 34 - COALESCE ( + 72, - ( - - 39 ) * - MAX ( - CASE + 16 WHEN + 8 * + + CAST ( NULL AS INTEGER ) + + 33 + - COALESCE ( ( - 78 ), - 73 - - 23 ) THEN COALESCE ( 67, + 64 + - + 90, - + 87 + + 32 + + - 48 * - 86 ) ELSE - 67 - - 67 END ), 63 ) * - 94
----
6745

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1840
SELECT + 28 DIV + COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-1840
SELECT + 28 / + COUNT ( * ) AS col2
----
28

query I rowsort
SELECT DISTINCT - 62 + + 46 * + - 12 + + + 8 col2
----
-606

query II rowsort
SELECT ALL 10 + + 60 AS col0, 94 * 42 AS col0
----
70
3948

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

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

query II rowsort
SELECT ALL - 45 * + + 18 AS col1, ( - + 82 ) AS col2
----
-810
-82

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

query I rowsort
SELECT - 38 * + 89 col2
----
-3382

query II rowsort
SELECT - 44 * + 56 AS col0, 67 AS col1
----
-2464
67

query I rowsort
SELECT - 3 * 43 AS col1
----
-129

query II rowsort
SELECT ( - - 30 ), + 59 col1
----
30
59

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

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL + MAX ( ALL - 72 ) * - + 27 AS col0
----
1944

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT NULLIF ( - + CASE 36 WHEN - - 52 / - + 60 THEN - 44 WHEN - + CASE + 80 WHEN + - NULLIF ( SUM( - 7 ), + 12 * 11 + + 49 - - - 72 * - 10 * + COUNT( * ) ) THEN - + 26 ELSE NULL END THEN NULL WHEN + - COUNT( * ) THEN - - 51 END, + 64 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1851
SELECT NULLIF ( - + CASE 36 WHEN - - 52 / - + 60 THEN - 44 WHEN - + CASE + 80 WHEN + - NULLIF ( SUM ( - 7 ), + 12 * 11 + + 49 - - - 72 * - 10 * + COUNT ( * ) ) THEN - + 26 ELSE NULL END THEN NULL WHEN + - COUNT ( * ) THEN - - 51 END, + 64 ) col0
----
NULL

query I rowsort
SELECT - 3 * - + 17
----
51

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

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

query I rowsort
SELECT DISTINCT - 50 * + + 19 + 64 * 96
----
5194

query I rowsort
SELECT - 20 * + 5 + + 3 AS col0
----
-97

query I rowsort
SELECT + 91 * + 63
----
5733

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT - 30 + + - ( - COUNT( ALL - 17 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-1857
SELECT - 30 + + - ( - COUNT ( ALL - 17 ) )
----
-29

query I rowsort
SELECT 6 * - 7 - - + 7 * + ( 93 )
----
609

query I rowsort
SELECT - 44 + + + 1 + 69
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT ALL - MIN( ALL 54 ) * - + 73 + + 34 col2
----
3976

skipif mysql # not compatible
query I rowsort label-1860
SELECT ALL - MIN ( ALL 54 ) * - + 73 + + 34 col2
----
3976

onlyif mysql # aggregate syntax: 
query II rowsort label-1861
SELECT ALL 65 * + COUNT( * ) * - 47 + - 87 + + 78 AS col1, - 36
----
-3064
-36

skipif mysql # not compatible
query II rowsort label-1861
SELECT ALL 65 * + COUNT ( * ) * - 47 + - 87 + + 78 AS col1, - 36
----
-3064
-36

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1863
SELECT ALL CAST( NULL AS SIGNED ) * CAST( + - 50 AS SIGNED ) + + ( + + COUNT( * ) ) - + 2 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( + - 50 AS INTEGER ) + + ( + + COUNT ( * ) ) - + 2 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1864
SELECT + + 93 * + 10 - - COUNT( * ) DIV 2 + + 33 AS col1, COALESCE ( + 36, - + ( + 47 ) ) * + 6 AS col1
----
963
216

skipif mysql # not compatible
query II rowsort label-1864
SELECT + + 93 * + 10 - - COUNT ( * ) / 2 + + 33 AS col1, COALESCE ( + 36, - + ( + 47 ) ) * + 6 AS col1
----
963
216

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

skipif mysql # not compatible
query I rowsort label-1865
SELECT + COUNT ( * ) + + 8 AS col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1866
SELECT + ( - 79 ) * + CASE - + CASE - + COALESCE ( + 47, + COUNT( * ) ) WHEN - 34 THEN NULL ELSE - - 4 - - - 30 * - 72 + - 57 * + 29 + + 49 + + 58 * + + COUNT( * ) * 2 + + 34 END WHEN + MAX( ALL + CAST( 11 AS SIGNED ) ) THEN 74 + + CASE - 62 WHEN 47 * + 49 + + 97 + + - 39 * + 51 * 8 * - COUNT( * ) / - - 26 THEN - ( + COUNT( ALL + 26 ) ) WHEN - + 12 / + 61 THEN NULL ELSE NULL END WHEN 35 * - 57 THEN 84 / - 40 END * - 1 + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT + ( - 79 ) * + CASE - + CASE - + COALESCE ( + 47, + COUNT ( * ) ) WHEN - 34 THEN NULL ELSE - - 4 - - - 30 * - 72 + - 57 * + 29 + + 49 + + 58 * + + COUNT ( * ) * 2 + + 34 END WHEN + MAX ( ALL + CAST ( 11 AS INTEGER ) ) THEN 74 + + CASE - 62 WHEN 47 * + 49 + + 97 + + - 39 * + 51 * 8 * - COUNT ( * ) / - - 26 THEN - ( + COUNT ( ALL + 26 ) ) WHEN - + 12 / + 61 THEN NULL ELSE NULL END WHEN 35 * - 57 THEN 84 / - 40 END * - 1 + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT SUM( ALL - 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-1867
SELECT SUM ( ALL - 41 ) AS col1
----
-41

query I rowsort
SELECT + 87 + - 61 AS col2
----
26

query I rowsort
SELECT ALL 99 * + - 21 col0
----
-2079

query I rowsort
SELECT ALL 10 * ( - 27 ) * - + 96 + + 82 AS col2
----
26002

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

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

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

skipif mysql # not compatible
query I rowsort label-1872
SELECT CAST ( NULL AS INTEGER ) + - 79 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT MAX( + - 2 ) + 29
----
27

skipif mysql # not compatible
query I rowsort label-1874
SELECT MAX ( + - 2 ) + 29
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1875
SELECT DISTINCT MAX( ALL + CAST( NULL AS SIGNED ) ) / - 71 * - 24 * 3 - 87 * + 4 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT MAX ( ALL + CAST ( NULL AS INTEGER ) ) / - 71 * - 24 * 3 - 87 * + 4 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 2 + + - 9 - - 95
----
88

query I rowsort
SELECT ALL - 68 - - 55 col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1878
SELECT COALESCE ( + - 2, + - 71 DIV - 50, - 61 * + ( + 43 ) + - 77 + COUNT( * ) + + - 67 - 83 * + COALESCE ( + 86, - - 88 * - CASE ( - 95 ) WHEN - NULLIF ( COUNT( * ), - 83 ) + - 94 + - ( ( + 47 ) ) DIV - + 56 THEN + 64 WHEN - 8 THEN + + CAST( + + 26 AS SIGNED ) ELSE NULL END * - COUNT( * ) + COALESCE ( + 99, 44 ) + + 80 DIV - - 99 * + - 41 + 21 ) ) + 86 col1
----
84

skipif mysql # not compatible
query I rowsort label-1878
SELECT COALESCE ( + - 2, + - 71 / - 50, - 61 * + ( + 43 ) + - 77 + COUNT ( * ) + + - 67 - 83 * + COALESCE ( + 86, - - 88 * - CASE ( - 95 ) WHEN - NULLIF ( COUNT ( * ), - 83 ) + - 94 + - ( ( + 47 ) ) / - + 56 THEN + 64 WHEN - 8 THEN + + CAST ( + + 26 AS INTEGER ) ELSE NULL END * - COUNT ( * ) + COALESCE ( + 99, 44 ) + + 80 / - - 99 * + - 41 + 21 ) ) + 86 col1
----
84

query II rowsort
SELECT DISTINCT - 50 col1, + 38 + 12 * - 14
----
-50
-130

query II rowsort
SELECT ALL - 92 AS col2, 28
----
-92
28

query I rowsort
SELECT 5 * + 88 + COALESCE ( + NULLIF ( + 82, 69 + - + 31 ), 43, 54 )
----
522

query I rowsort
SELECT ALL NULLIF ( - 92, - 80 * 72 * - - COALESCE ( - + 53, 53 + + - ( - 45 ) ) + + 3 / + 17 ) * - 86 * + - 79 + + 94 * + + 37 AS col2
----
-621570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1883
SELECT - - 65 DIV + 62 + 82 + + - MIN( + ( + 19 ) ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-1883
SELECT - - 65 / + 62 + 82 + + - MIN ( + ( + 19 ) ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT + COUNT( DISTINCT 68 ) / - CASE + + 1 WHEN + 43 THEN 32 WHEN + 14 * 47 THEN ( + MIN( ( - 82 ) ) ) + 47 END * + 31 * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-1884
SELECT + COUNT ( DISTINCT 68 ) / - CASE + + 1 WHEN + 43 THEN 32 WHEN + 14 * 47 THEN ( + MIN ( ( - 82 ) ) ) + 47 END * + 31 * + 57
----
NULL

query II rowsort
SELECT DISTINCT - + 27 AS col2, - 35
----
-27
-35

query I rowsort
SELECT + 71 * + 26 + + CASE - 28 WHEN 89 THEN - + 91 END AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1888
SELECT CAST( - - 65 AS SIGNED ) + 83 * - 46 * + - COALESCE ( - - 56, + 72 )
----
213873

skipif mysql # not compatible
query I rowsort label-1888
SELECT CAST ( - - 65 AS INTEGER ) + 83 * - 46 * + - COALESCE ( - - 56, + 72 )
----
213873

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1889
SELECT ALL + 29 DIV - - ( - - ( COUNT( * ) ) ) + + 12 * CAST( - - ( ( - 45 ) ) AS SIGNED ) AS col1
----
-511

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL + 29 / - - ( - - ( COUNT ( * ) ) ) + + 12 * CAST ( - - ( ( - 45 ) ) AS INTEGER ) AS col1
----
-511

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT DISTINCT - + MIN( + 63 ) + 66 - 93 + 74 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT - + MIN ( + 63 ) + 66 - 93 + 74 AS col1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1892
SELECT DISTINCT + SUM( + - 11 ) + 26 DIV - COUNT( - 68 ) + + COUNT( * ), - 79 * - 4 AS col1
----
-36
316

skipif mysql # not compatible
query II rowsort label-1892
SELECT DISTINCT + SUM ( + - 11 ) + 26 / - COUNT ( - 68 ) + + COUNT ( * ), - 79 * - 4 AS col1
----
-36
316

query I rowsort
SELECT DISTINCT + + 34 + - 48 + 20 * + 76 - 57 * + - 81 AS col2
----
6123

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT - SUM( - 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1896
SELECT - SUM ( - 7 ) AS col1
----
7

query I rowsort
SELECT ALL - ( + 94 ) col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT ( + 86 ) * + COUNT( * ) - 60
----
26

skipif mysql # not compatible
query I rowsort label-1898
SELECT ( + 86 ) * + COUNT ( * ) - 60
----
26

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

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

query I rowsort
SELECT 93 + + 77 * + - 29
----
-2140

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT COALESCE ( COUNT( * ), + - 98 * 6 + 56 + 80 ) + 2 + + + 50
----
53

skipif mysql # not compatible
query I rowsort label-1901
SELECT COALESCE ( COUNT ( * ), + - 98 * 6 + 56 + 80 ) + 2 + + + 50
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT 6 * 5 * - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-1902
SELECT 6 * 5 * - COUNT ( * )
----
-30

query II rowsort
SELECT ALL NULLIF ( - - 97, + 13 ) - + - 87, 29 AS col2
----
184
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1904
SELECT MAX( DISTINCT + 82 ) DIV - + 83 - 54 AS col0, ( - - 22 ) DIV - 83 AS col2, + + 32 + ( + COUNT( * ) ) AS col2
----
-54
0
33

skipif mysql # not compatible
query III rowsort label-1904
SELECT MAX ( DISTINCT + 82 ) / - + 83 - 54 AS col0, ( - - 22 ) / - 83 AS col2, + + 32 + ( + COUNT ( * ) ) AS col2
----
-54
0
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1905
SELECT ( - COALESCE ( - + 86, - - COUNT( DISTINCT - 20 ) * ( ( CASE + + ( 79 ) WHEN - 12 + + 12 THEN + CAST( NULL AS SIGNED ) DIV COALESCE ( - COUNT( * ), - 1, 63 + + 5 ) - - + 3 * 27 + + + NULLIF ( + - 76, + + 94 ) + + - 90 * COUNT( * ) WHEN + + 28 THEN - + 9 ELSE + 36 END ) ) + - 23 * 4 ) ) * 22 * + 49 * CAST( - MIN( DISTINCT - 57 ) AS SIGNED )
----
5284356

skipif mysql # not compatible
query I rowsort label-1905
SELECT ( - COALESCE ( - + 86, - - COUNT ( DISTINCT - 20 ) * ( ( CASE + + ( 79 ) WHEN - 12 + + 12 THEN + CAST ( NULL AS INTEGER ) / COALESCE ( - COUNT ( * ), - 1, 63 + + 5 ) - - + 3 * 27 + + + NULLIF ( + - 76, + + 94 ) + + - 90 * COUNT ( * ) WHEN + + 28 THEN - + 9 ELSE + 36 END ) ) + - 23 * 4 ) ) * 22 * + 49 * CAST ( - MIN ( DISTINCT - 57 ) AS INTEGER )
----
5284356

onlyif mysql # aggregate syntax: 
query II rowsort label-1906
SELECT DISTINCT COUNT( * ) * 13 AS col0, ( - 79 ) + ( - COALESCE ( - - SUM( - - 64 ), 83, - 86 ) ) AS col0
----
13
-143

skipif mysql # not compatible
query II rowsort label-1906
SELECT DISTINCT COUNT ( * ) * 13 AS col0, ( - 79 ) + ( - COALESCE ( - - SUM ( - - 64 ), 83, - 86 ) ) AS col0
----
13
-143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1907
SELECT DISTINCT + COUNT( - - 11 ) * + - 99 - - CASE 52 WHEN - 20 THEN NULL WHEN - 58 THEN - + ( COUNT( DISTINCT - 10 ) ) ELSE 49 * 82 END * ( CAST( CASE + MIN( DISTINCT - 8 ) WHEN + 9 * + 40 * + - 87 * - - NULLIF ( + COUNT( + 7 ), - - 38 / - 64 * 81 ) * + + 6 THEN 52 * + + 8 + - COUNT( * ) WHEN + - 93 THEN - - COUNT( * ) WHEN + COALESCE ( AVG ( DISTINCT + - 71 ), - - 40 ) - + CASE - COUNT( * ) WHEN - SUM( ALL - 19 ) / + 91 + + 14 * + 73 THEN - 92 + 32 WHEN 22 THEN + ( + 9 ) / - 62 + + 54 * - 23 ELSE 98 + - 91 END + + 25 THEN 48 / + 14 + - COUNT( * ) WHEN AVG ( ALL + 73 ) THEN 80 WHEN COUNT( * ) THEN NULL END AS SIGNED ) ) / + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT + COUNT ( - - 11 ) * + - 99 - - CASE 52 WHEN - 20 THEN NULL WHEN - 58 THEN - + ( COUNT ( DISTINCT - 10 ) ) ELSE 49 * 82 END * ( CAST ( CASE + MIN ( DISTINCT - 8 ) WHEN + 9 * + 40 * + - 87 * - - NULLIF ( + COUNT ( + 7 ), - - 38 / - 64 * 81 ) * + + 6 THEN 52 * + + 8 + - COUNT ( * ) WHEN + - 93 THEN - - COUNT ( * ) WHEN + COALESCE ( AVG ( DISTINCT + - 71 ), - - 40 ) - + CASE - COUNT ( * ) WHEN - SUM ( ALL - 19 ) / + 91 + + 14 * + 73 THEN - 92 + 32 WHEN 22 THEN + ( + 9 ) / - 62 + + 54 * - 23 ELSE 98 + - 91 END + + 25 THEN 48 / + 14 + - COUNT ( * ) WHEN AVG ( ALL + 73 ) THEN 80 WHEN COUNT ( * ) THEN NULL END AS INTEGER ) ) / + 23
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1908
SELECT ALL + 0 DIV - - 56
----
0

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL + 0 / - - 56
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1909
SELECT 50 * 44 + - + ( ( + 0 ) ) + + + NULLIF ( ( + - 41 ), - 15 ) AS col0, + 64 DIV 1
----
2159
64

skipif mysql # not compatible
query II rowsort label-1909
SELECT 50 * 44 + - + ( ( + 0 ) ) + + + NULLIF ( ( + - 41 ), - 15 ) AS col0, + 64 / 1
----
2159
64

query I rowsort
SELECT ALL - + 8 * - - ( - 50 ) * - 42 + + 92 + + + 75 + + - 68 * + 38 * + 93 + - + 67 AS col0
----
-257012

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT DISTINCT + 89 * - + 46 * + COUNT( * ) + MAX( DISTINCT 84 ) AS col1
----
-4010

skipif mysql # not compatible
query I rowsort label-1911
SELECT DISTINCT + 89 * - + 46 * + COUNT ( * ) + MAX ( DISTINCT 84 ) AS col1
----
-4010

query I rowsort
SELECT ALL + 53 * - + 19 + 0 + - ( 45 ) AS col1
----
-1052

query I rowsort
SELECT - 52 * + + 74 - - 16 AS col2
----
-3832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1914
SELECT ALL - CASE - 90 WHEN - MIN( DISTINCT + 39 ) THEN 60 WHEN + 37 * + + 24 + NULLIF ( 42, + - 3 * COUNT( - + 66 ) ) THEN + NULLIF ( 65, - 82 * - 10 * - 66 * + 51 - - ( - 9 ) + + 98 / + 74 * + - CAST( - MAX( - 63 ) AS SIGNED ) * - 82 + - 78 ) WHEN 29 THEN 88 * + 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL - CASE - 90 WHEN - MIN ( DISTINCT + 39 ) THEN 60 WHEN + 37 * + + 24 + NULLIF ( 42, + - 3 * COUNT ( - + 66 ) ) THEN + NULLIF ( 65, - 82 * - 10 * - 66 * + 51 - - ( - 9 ) + + 98 / + 74 * + - CAST ( - MAX ( - 63 ) AS INTEGER ) * - 82 + - 78 ) WHEN 29 THEN 88 * + 84 END
----
NULL

query I rowsort
SELECT ALL 73 * 60 + 6
----
4386

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1916
SELECT + 76 DIV + - 94 - CAST( - 93 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-1916
SELECT + 76 / + - 94 - CAST ( - 93 AS INTEGER )
----
93

query I rowsort
SELECT ALL - 73 + + 51 col0
----
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-1918
SELECT DISTINCT - 24 DIV - 40 AS col0, 12 - - 83
----
0
95

skipif mysql # not compatible
query II rowsort label-1918
SELECT DISTINCT - 24 / - 40 AS col0, 12 - - 83
----
0
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1919
SELECT 18 * - COALESCE ( + AVG ( + - CAST( NULL AS DECIMAL ) ), - ( - AVG ( DISTINCT 33 ) ) * - + 28 * + 89 ) + + + CASE ( + - 27 ) WHEN 7 THEN NULL WHEN 97 THEN - 80 ELSE NULL END + - 69 + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-1919
SELECT 18 * - COALESCE ( + AVG ( + - CAST ( NULL AS REAL ) ), - ( - AVG ( DISTINCT 33 ) ) * - + 28 * + 89 ) + + + CASE ( + - 27 ) WHEN 7 THEN NULL WHEN 97 THEN - 80 ELSE NULL END + - 69 + - 38
----
NULL

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

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

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

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

query I rowsort
SELECT 96 + + - 23 + - 16
----
57

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

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

query II rowsort
SELECT 17 col2, 77 AS col0
----
17
77

query I rowsort
SELECT + 4 * 12 AS col1
----
48

query I rowsort
SELECT ALL + 13 * 61 AS col0
----
793

query I rowsort
SELECT - 15 * - + 8
----
120

query II rowsort
SELECT ALL 96 col0, 20
----
96
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1929
SELECT - 68 / - - COUNT( * ) * + CASE + NULLIF ( + 12, 59 ) WHEN + 47 THEN 2 END AS col2, + 40 * - ( + CAST( - + 20 AS SIGNED ) ) + + 84 + + COUNT( 23 ) AS col1
----
NULL
885

skipif mysql # not compatible
query II rowsort label-1929
SELECT - 68 / - - COUNT ( * ) * + CASE + NULLIF ( + 12, 59 ) WHEN + 47 THEN 2 END AS col2, + 40 * - ( + CAST ( - + 20 AS INTEGER ) ) + + 84 + + COUNT ( 23 ) AS col1
----
NULL
885

onlyif mysql # DIV for integer division: 
query I rowsort label-1930
SELECT - 85 - 92 * 99 DIV + + 49 AS col2
----
-270

skipif mysql # not compatible
query I rowsort label-1930
SELECT - 85 - 92 * 99 / + + 49 AS col2
----
-270

onlyif mysql # DIV for integer division: 
query I rowsort label-1931
SELECT DISTINCT 97 DIV - + 29
----
-3

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT 97 / - + 29
----
-3

query II rowsort
SELECT DISTINCT COALESCE ( - - 82, - 17 ) AS col2, 71 * - 54 * - + 89 AS col0
----
82
341226

onlyif mysql # DIV for integer division: 
query I rowsort label-1933
SELECT - 32 DIV + + 80 * 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1933
SELECT - 32 / + + 80 * 76 AS col2
----
0

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

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

query II rowsort
SELECT DISTINCT ( + - ( - 25 ) ), - 97 + - NULLIF ( - 83, 81 ) col0
----
25
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1936
SELECT DISTINCT 61 DIV - - 60
----
1

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT 61 / - - 60
----
1

query I rowsort
SELECT + 53 - - - ( - 32 ) AS col2
----
85

query I rowsort
SELECT ALL 27 * 82 AS col2
----
2214

query I rowsort
SELECT - 97 + - 42 + - - 32
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT ALL - + 17 + - + 61 + - + ( - COUNT( * ) ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL - + 17 + - + 61 + - + ( - COUNT ( * ) ) AS col1
----
-77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1941
SELECT DISTINCT + + CASE - CAST( NULL AS DECIMAL ) WHEN - 64 * - 35 * - 55 THEN + 41 WHEN + - CAST( NULL AS SIGNED ) THEN NULL END + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT + + CASE - CAST ( NULL AS REAL ) WHEN - 64 * - 35 * - 55 THEN + 41 WHEN + - CAST ( NULL AS INTEGER ) THEN NULL END + + 16
----
NULL

query I rowsort
SELECT + ( + 29 ) * - 63
----
-1827

query II rowsort
SELECT + - 32 + 54 + 34 col2, + ( - 93 ) + - CASE - + 15 WHEN + 54 - 84 * 26 THEN - - ( 28 ) * - - 45 ELSE + 97 END + - - 23
----
56
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT ALL + COUNT( * ) * - SUM( - 66 ) * - - 4
----
264

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL + COUNT ( * ) * - SUM ( - 66 ) * - - 4
----
264

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

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

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

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL 29 * - + ( + COUNT ( * ) ) + + COUNT ( * ) col1
----
-28

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

query I rowsort
SELECT + + 8 + 62
----
70

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

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

query I rowsort
SELECT + 82 + + 0
----
82

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT DISTINCT + 12 * 77 * - 20 - - NULLIF ( + 9, - COALESCE ( SUM( - 70 ), + COUNT( * ) ) ) - + 38 + + 53 * + 61 + 71 - - + 25 col1
----
-15180

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT + 12 * 77 * - 20 - - NULLIF ( + 9, - COALESCE ( SUM ( - 70 ), + COUNT ( * ) ) ) - + 38 + + 53 * + 61 + 71 - - + 25 col1
----
-15180

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT ALL + + COUNT( ALL - 14 ) * + - 1 - 54 * + - 45 + - + 3 * 27
----
2348

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL + + COUNT ( ALL - 14 ) * + - 1 - 54 * + - 45 + - + 3 * 27
----
2348

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1956
SELECT ALL + 50 DIV COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL + 50 / COUNT ( * ) AS col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1957
SELECT DISTINCT - - 8 * + COUNT( * ) * + 34 - + - COUNT( DISTINCT + ( - + 54 ) ) * + + 49 DIV - 19 + - 32 AS col2
----
238

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT - - 8 * + COUNT ( * ) * + 34 - + - COUNT ( DISTINCT + ( - + 54 ) ) * + + 49 / - 19 + - 32 AS col2
----
238

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1959
SELECT + 46 DIV - + COUNT( * ), 54 + 19 * + + 94 + 17 AS col1
----
-46
1857

skipif mysql # not compatible
query II rowsort label-1959
SELECT + 46 / - + COUNT ( * ), 54 + 19 * + + 94 + 17 AS col1
----
-46
1857

query I rowsort
SELECT - 52 * - 64 AS col0
----
3328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1961
SELECT COALESCE ( + NULLIF ( - CAST( NULL AS SIGNED ), - - COUNT( * ) ), + 8 DIV + COUNT( * ), - + 4 - - ( - COUNT( * ) ) ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-1961
SELECT COALESCE ( + NULLIF ( - CAST ( NULL AS INTEGER ), - - COUNT ( * ) ), + 8 / + COUNT ( * ), - + 4 - - ( - COUNT ( * ) ) ) AS col2
----
8

query I rowsort
SELECT + ( 67 ) - + 72 + + 95 * + 63 + - + 52 * 70 AS col2
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT COALESCE ( + + 74, + 4 * + 64 * + - COUNT( * ) ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-1963
SELECT COALESCE ( + + 74, + 4 * + 64 * + - COUNT ( * ) ) AS col1
----
74

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1965
SELECT - 4 DIV 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1965
SELECT - 4 / 34 AS col0
----
0

query II rowsort
SELECT ALL + 67, 36 AS col1
----
67
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1967
SELECT COUNT( + + 47 ) AS col2, CAST( NULL AS SIGNED ) * - + 53 / 42
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1967
SELECT COUNT ( + + 47 ) AS col2, CAST ( NULL AS INTEGER ) * - + 53 / 42
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT ALL MIN( + 3 ) * 46 * 34 + - + 29 * 37 * - 95 * + + 78 * COALESCE ( + 83, - MAX( 0 ) * - 24 * + MAX( - - 61 ) ) AS col2
----
659931882

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL MIN ( + 3 ) * 46 * 34 + - + 29 * 37 * - 95 * + + 78 * COALESCE ( + 83, - MAX ( 0 ) * - 24 * + MAX ( - - 61 ) ) AS col2
----
659931882

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT DISTINCT SUM( + 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT SUM ( + 30 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT - COUNT( * ) - - COUNT( * ) - + + 87 * + 42 AS col2
----
-3654

skipif mysql # not compatible
query I rowsort label-1970
SELECT - COUNT ( * ) - - COUNT ( * ) - + + 87 * + 42 AS col2
----
-3654

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1971
SELECT - MIN( 24 ) + + + 51 + + CASE - - COUNT( * ) WHEN - 94 THEN NULL WHEN + MIN( ALL + 70 ) + + - COUNT( ALL + 86 ) * + 86 * + 45 THEN 43 ELSE NULL END - CAST( + 24 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1971
SELECT - MIN ( 24 ) + + + 51 + + CASE - - COUNT ( * ) WHEN - 94 THEN NULL WHEN + MIN ( ALL + 70 ) + + - COUNT ( ALL + 86 ) * + 86 * + 45 THEN 43 ELSE NULL END - CAST ( + 24 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT DISTINCT ( - CASE COUNT( * ) WHEN - 80 THEN 59 * 50 WHEN + + 54 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1972
SELECT DISTINCT ( - CASE COUNT ( * ) WHEN - 80 THEN 59 * 50 WHEN + + 54 THEN NULL END )
----
NULL

query I rowsort
SELECT ALL - 83 + + - 80
----
-163

query I rowsort
SELECT - 32 + + - 62
----
-94

onlyif mysql # DIV for integer division: 
query II rowsort label-1975
SELECT 45 col1, + 65 DIV 6 AS col2
----
45
10

skipif mysql # not compatible
query II rowsort label-1975
SELECT 45 col1, + 65 / 6 AS col2
----
45
10

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

query I rowsort
SELECT ALL + 42 + + 36 + - - 90 * + 42
----
3858

onlyif mysql # aggregate syntax: 
query II rowsort label-1978
SELECT - - COUNT( * ) col1, + 12
----
1
12

skipif mysql # not compatible
query II rowsort label-1978
SELECT - - COUNT ( * ) col1, + 12
----
1
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1979
SELECT ALL - - 81 + SUM( ALL - + NULLIF ( - 0, + 52 * 52 / 32 - + + 71 + + - 71 * - + COALESCE ( CAST( - 64 AS SIGNED ), - 30, 71 ) ) )
----
81

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL - - 81 + SUM ( ALL - + NULLIF ( - 0, + 52 * 52 / 32 - + + 71 + + - 71 * - + COALESCE ( CAST ( - 64 AS INTEGER ), - 30, 71 ) ) )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1980
SELECT + COUNT( * ) AS col0, - NULLIF ( - - 12, + 30 ) * 16 * + COUNT( * ) + + 46 AS col1
----
1
-146

skipif mysql # not compatible
query II rowsort label-1980
SELECT + COUNT ( * ) AS col0, - NULLIF ( - - 12, + 30 ) * 16 * + COUNT ( * ) + + 46 AS col1
----
1
-146

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1981
SELECT DISTINCT - COUNT( * ) + - 71, - 62 DIV + 40 AS col1
----
-72
-1

skipif mysql # not compatible
query II rowsort label-1981
SELECT DISTINCT - COUNT ( * ) + - 71, - 62 / + 40 AS col1
----
-72
-1

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

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

query I rowsort
SELECT - 70 - - - 70 col0
----
-140

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1984
SELECT - CASE - + COUNT( * ) WHEN + AVG ( - CAST( NULL AS DECIMAL ) ) THEN NULL ELSE + COALESCE ( 76, + 32 ) END - + + 53
----
-129

skipif mysql # not compatible
query I rowsort label-1984
SELECT - CASE - + COUNT ( * ) WHEN + AVG ( - CAST ( NULL AS REAL ) ) THEN NULL ELSE + COALESCE ( 76, + 32 ) END - + + 53
----
-129

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT ALL - + 14 * + MAX( - 28 ) AS col2
----
392

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL - + 14 * + MAX ( - 28 ) AS col2
----
392

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1988
SELECT + - COALESCE ( 13, - - 94 ) DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-1988
SELECT + - COALESCE ( 13, - - 94 ) / - 64
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1989
SELECT DISTINCT + - 89 AS col2, - CASE - ( + NULLIF ( 30, - + 9 + - COUNT( * ) ) ) WHEN - ( - 41 ) + - 97 THEN + 4 END * - + COALESCE ( + 31, - + 71 * + - COUNT( * ) ) AS col0
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-1989
SELECT DISTINCT + - 89 AS col2, - CASE - ( + NULLIF ( 30, - + 9 + - COUNT ( * ) ) ) WHEN - ( - 41 ) + - 97 THEN + 4 END * - + COALESCE ( + 31, - + 71 * + - COUNT ( * ) ) AS col0
----
-89
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1990
SELECT ALL + + 63 AS col2, COUNT( * ) DIV 36
----
63
0

skipif mysql # not compatible
query II rowsort label-1990
SELECT ALL + + 63 AS col2, COUNT ( * ) / 36
----
63
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1991
SELECT DISTINCT + - SUM( ALL - 25 ) col1, + COUNT( * )
----
25
1

skipif mysql # not compatible
query II rowsort label-1991
SELECT DISTINCT + - SUM ( ALL - 25 ) col1, + COUNT ( * )
----
25
1

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

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

query II rowsort
SELECT ALL - 92 AS col1, 10 - + + 2
----
-92
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT + COUNT( * ) * - 51 * - CASE + NULLIF ( + + 27, 90 * 22 + - 93 ) WHEN 53 THEN 63 * + 27 ELSE NULL END - - + 29 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT + COUNT ( * ) * - 51 * - CASE + NULLIF ( + + 27, 90 * 22 + - 93 ) WHEN 53 THEN 63 * + 27 ELSE NULL END - - + 29 + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - - NULLIF ( 45, 97 ) col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1996
SELECT COUNT( 95 ) + - + COUNT( + 26 ) DIV + 64 * + 18 * + - COUNT( * ) + + 88 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-1996
SELECT COUNT ( 95 ) + - + COUNT ( + 26 ) / + 64 * + 18 * + - COUNT ( * ) + + 88 AS col1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT 12 DIV + - 89 col0
----
0

skipif mysql # not compatible
query I rowsort label-1997
SELECT 12 / + - 89 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1998
SELECT ALL CAST( - 52 AS SIGNED ) + + + 38
----
-14

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL CAST ( - 52 AS INTEGER ) + + + 38
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1999
SELECT 2 DIV + 17
----
0

skipif mysql # not compatible
query I rowsort label-1999
SELECT 2 / + 17
----
0

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

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

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

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

query I rowsort
SELECT 63 * 62 AS col0
----
3906

query I rowsort
SELECT ALL - 78 + + 62 col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-2004
SELECT ALL + 24 DIV + + 9 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL + 24 / + + 9 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT - 88 - + ( - - MAX( + + 93 ) )
----
-181

skipif mysql # not compatible
query I rowsort label-2005
SELECT - 88 - + ( - - MAX ( + + 93 ) )
----
-181

query I rowsort
SELECT ALL 71 + - ( 34 ) AS col2
----
37

query I rowsort
SELECT + 54 + - 97 + 0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2008
SELECT DISTINCT - CAST( NULLIF ( 74, 88 * 33 * + 0 + + COUNT( * ) - - 83 ) AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-2008
SELECT DISTINCT - CAST ( NULLIF ( 74, 88 * 33 * + 0 + + COUNT ( * ) - - 83 ) AS INTEGER )
----
-74

query I rowsort
SELECT 58 + - 95 + - 53 * + 80
----
-4277

onlyif mysql # aggregate syntax: 
query II rowsort label-2010
SELECT + 37 - 11 col2, 2 + - + COUNT( * )
----
26
1

skipif mysql # not compatible
query II rowsort label-2010
SELECT + 37 - 11 col2, 2 + - + COUNT ( * )
----
26
1

query II rowsort
SELECT ALL ( - 0 ) AS col2, NULLIF ( + - 10, - 0 * + - 37 )
----
0
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT + 81 + COALESCE ( - 84, - 35 ) * + + SUM( DISTINCT + NULLIF ( + 19, - + 10 - + - 25 ) ) - - COUNT( * ) + + 36 AS col0
----
-1478

skipif mysql # not compatible
query I rowsort label-2012
SELECT + 81 + COALESCE ( - 84, - 35 ) * + + SUM ( DISTINCT + NULLIF ( + 19, - + 10 - + - 25 ) ) - - COUNT ( * ) + + 36 AS col0
----
-1478

query I rowsort
SELECT ( + ( + 68 ) ) - 55 AS col2
----
13

query I rowsort
SELECT + 95 + - 67
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT ALL - 95 - + 7 * + + 77 + - - MAX( DISTINCT - 66 ) AS col0
----
-700

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL - 95 - + 7 * + + 77 + - - MAX ( DISTINCT - 66 ) AS col0
----
-700

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2017
SELECT DISTINCT 73 * - ( - - ( - 35 ) ) + 73 * COUNT( * ) + 40 * + 39 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT 73 * - ( - - ( - 35 ) ) + 73 * COUNT ( * ) + 40 * + 39 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 27 + - 10
----
17

query I rowsort
SELECT + 22 * - - 4
----
88

query I rowsort
SELECT ALL + - 70 - + + 18 * + - 65 AS col2
----
1100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2021
SELECT - COUNT( - 87 ) DIV + 94 * 11 * + COUNT( * ) + - 77 + + CAST( + - 57 AS SIGNED ) * 76 col1
----
-4409

skipif mysql # not compatible
query I rowsort label-2021
SELECT - COUNT ( - 87 ) / + 94 * 11 * + COUNT ( * ) + - 77 + + CAST ( + - 57 AS INTEGER ) * 76 col1
----
-4409

query I rowsort
SELECT 66 + 53 * - 64
----
-3326

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT + MIN( DISTINCT + 31 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-2023
SELECT + MIN ( DISTINCT + 31 ) AS col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2024
SELECT DISTINCT + 99 DIV - - 92
----
1

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT + 99 / - - 92
----
1

query I rowsort
SELECT 6 * - 92 col1
----
-552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2026
SELECT ALL CASE - 58 WHEN + 41 / + 42 + + 43 * + - 52 + + ( + 2 ) - + MIN( + 49 ) * - 30 THEN NULL WHEN - 22 * - 57 + + 65 + 4 * - 84 + + ( - CAST( NULL AS SIGNED ) ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE - - ( 20 ) END * + + 92
----
1840

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL CASE - 58 WHEN + 41 / + 42 + + 43 * + - 52 + + ( + 2 ) - + MIN ( + 49 ) * - 30 THEN NULL WHEN - 22 * - 57 + + 65 + 4 * - 84 + + ( - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE - - ( 20 ) END * + + 92
----
1840

query I rowsort
SELECT DISTINCT 45 * - 1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT ALL - COUNT( * ) + - COALESCE ( - + 12, 6 * COUNT( * ), + ( - 21 ) ) * - - 96 AS col0
----
1151

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL - COUNT ( * ) + - COALESCE ( - + 12, 6 * COUNT ( * ), + ( - 21 ) ) * - - 96 AS col0
----
1151

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

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

query I rowsort
SELECT 41 * + 62 AS col1
----
2542

query II rowsort
SELECT DISTINCT - 79 AS col2, 4 + 32 - - 20
----
-79
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2032
SELECT ALL COUNT( * ) + + COALESCE ( 3, - - 70, + 11, + ( + - 56 ), - 41 * + 24 DIV - 23 ) DIV 33
----
1

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL COUNT ( * ) + + COALESCE ( 3, - - 70, + 11, + ( + - 56 ), - 41 * + 24 / - 23 ) / 33
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT COUNT( * ) - - 66
----
67

skipif mysql # not compatible
query I rowsort label-2033
SELECT COUNT ( * ) - - 66
----
67

query I rowsort
SELECT 28 * + 51 - - 64 AS col2
----
1492

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2036
SELECT 62, 13 + + - NULLIF ( + 67, 64 * + - 88 - - COALESCE ( - + 81, 52 * - COUNT( + - 57 ) + - MIN( + 34 ) * 15, 63 * - - 34 ) / - + MAX( ALL - - 20 ) * - 72 * 23 ) AS col0
----
62
-54

skipif mysql # not compatible
query II rowsort label-2036
SELECT 62, 13 + + - NULLIF ( + 67, 64 * + - 88 - - COALESCE ( - + 81, 52 * - COUNT ( + - 57 ) + - MIN ( + 34 ) * 15, 63 * - - 34 ) / - + MAX ( ALL - - 20 ) * - 72 * 23 ) AS col0
----
62
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT MIN( ALL + 47 ) * + 88 + - ( - + COUNT( * ) ) AS col2
----
4137

skipif mysql # not compatible
query I rowsort label-2037
SELECT MIN ( ALL + 47 ) * + 88 + - ( - + COUNT ( * ) ) AS col2
----
4137

query I rowsort
SELECT ALL 67 * - 66 AS col1
----
-4422

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2039
SELECT CASE WHEN NULL > + 49 THEN NULL WHEN COUNT( * ) IS NOT NULL THEN ( 48 ) DIV - + 36 - + + 54 * + 10 + - 57 END + COUNT( * )
----
-597

skipif mysql # not compatible
query I rowsort label-2039
SELECT CASE WHEN NULL > + 49 THEN NULL WHEN COUNT ( * ) IS NOT NULL THEN ( 48 ) / - + 36 - + + 54 * + 10 + - 57 END + COUNT ( * )
----
-597

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2040
SELECT DISTINCT + COALESCE ( + 37, + CAST( - 66 AS SIGNED ) - + 86 ) - - 34 AS col0, 11 + 8
----
71
19

skipif mysql # not compatible
query II rowsort label-2040
SELECT DISTINCT + COALESCE ( + 37, + CAST ( - 66 AS INTEGER ) - + 86 ) - - 34 AS col0, 11 + 8
----
71
19

query I rowsort
SELECT ( - - 7 ) + + 3 col1
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2042
SELECT + COUNT( * ) * 86 DIV + 2
----
43

skipif mysql # not compatible
query I rowsort label-2042
SELECT + COUNT ( * ) * 86 / + 2
----
43

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2044
SELECT - - ( + CASE - 20 WHEN + + 32 * + 37 * - ( - 59 ) + - 92 THEN - - CASE - 37 WHEN 7 * - - ( - 78 ) THEN + 60 * + CAST( NULL AS SIGNED ) / - 68 END / + + COUNT( + 30 ) + + + CAST( NULL AS SIGNED ) + - COUNT( * ) * - + 77 * 18 WHEN + + 73 THEN - 47 * + COALESCE ( + - 49, - CAST( + 20 AS SIGNED ) * - COUNT( * ) ) * 86 + + 1 - - 98 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2044
SELECT - - ( + CASE - 20 WHEN + + 32 * + 37 * - ( - 59 ) + - 92 THEN - - CASE - 37 WHEN 7 * - - ( - 78 ) THEN + 60 * + CAST ( NULL AS INTEGER ) / - 68 END / + + COUNT ( + 30 ) + + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - + 77 * 18 WHEN + + 73 THEN - 47 * + COALESCE ( + - 49, - CAST ( + 20 AS INTEGER ) * - COUNT ( * ) ) * 86 + + 1 - - 98 ELSE NULL END ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 45, + 30 col2
----
-45
30

query I rowsort
SELECT DISTINCT 5 - 12 AS col2
----
-7

query II rowsort
SELECT ALL - 22, - 7 AS col0
----
-22
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-2048
SELECT DISTINCT + 7 DIV - 43 * - 20 * + 70 col1
----
0

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT + 7 / - 43 * - 20 * + 70 col1
----
0

query I rowsort
SELECT + + CASE + AVG ( DISTINCT 69 ) WHEN - 10 THEN + 21 * - + AVG ( + 17 ) * - 34 / + CASE + 81 WHEN - 38 THEN NULL ELSE + 80 END END - 54
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2050
SELECT - 93 AS col2, - CAST( + 97 AS SIGNED ) - + 24 AS col1
----
-93
-121

skipif mysql # not compatible
query II rowsort label-2050
SELECT - 93 AS col2, - CAST ( + 97 AS INTEGER ) - + 24 AS col1
----
-93
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT + - 8 - SUM( + + 70 ) + + - 47 * COALESCE ( COALESCE ( 77, - COUNT( + 18 ) + - - 20 ), + 78 + - 98 * - - 36, + - COUNT( 57 ), - 6 ) - - 6 AS col1
----
-3691

skipif mysql # not compatible
query I rowsort label-2051
SELECT + - 8 - SUM ( + + 70 ) + + - 47 * COALESCE ( COALESCE ( 77, - COUNT ( + 18 ) + - - 20 ), + 78 + - 98 * - - 36, + - COUNT ( 57 ), - 6 ) - - 6 AS col1
----
-3691

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT + + 5 * + SUM( + 48 ) + + + 13
----
253

skipif mysql # not compatible
query I rowsort label-2052
SELECT + + 5 * + SUM ( + 48 ) + + + 13
----
253

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2053
SELECT ALL + 22 * COUNT( * ) - + - 58 DIV + + 63 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL + 22 * COUNT ( * ) - + - 58 / + + 63 AS col0
----
22

query I rowsort
SELECT + 17 * 81
----
1377

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT DISTINCT 52 * + 46 + - 97 * - NULLIF ( - 66, - 75 * 88 + - COUNT( * ) / 27 ) AS col1
----
-4010

skipif mysql # not compatible
query I rowsort label-2055
SELECT DISTINCT 52 * + 46 + - 97 * - NULLIF ( - 66, - 75 * 88 + - COUNT ( * ) / 27 ) AS col1
----
-4010

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT DISTINCT + CASE - 14 WHEN 75 * - COUNT( * ) / + ( COUNT( * ) ) + CASE - AVG ( DISTINCT 32 ) WHEN 31 THEN - ( + 29 ) - + 98 WHEN - 94 THEN - - 96 END THEN 14 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2056
SELECT DISTINCT + CASE - 14 WHEN 75 * - COUNT ( * ) / + ( COUNT ( * ) ) + CASE - AVG ( DISTINCT 32 ) WHEN 31 THEN - ( + 29 ) - + 98 WHEN - 94 THEN - - 96 END THEN 14 END AS col2
----
NULL

query I rowsort
SELECT - 51 * + 47 AS col0
----
-2397

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT ALL + 89 * 49 + + COALESCE ( + - SUM( + 55 ), 26 * + MAX( - 67 ) ) + - + 81
----
4225

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL + 89 * 49 + + COALESCE ( + - SUM ( + 55 ), 26 * + MAX ( - 67 ) ) + - + 81
----
4225

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT DISTINCT - COUNT( * ) * 0 + + 33 col2
----
33

skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT - COUNT ( * ) * 0 + + 33 col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2060
SELECT ALL + ( + - NULLIF ( COUNT( * ), - 91 * + - CAST( 7 AS SIGNED ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL + ( + - NULLIF ( COUNT ( * ), - 91 * + - CAST ( 7 AS INTEGER ) ) ) AS col1
----
-1

query II rowsort
SELECT ALL + ( - 57 ) AS col2, - 4
----
-57
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2062
SELECT ALL - CAST( - 34 AS SIGNED ) * 45 + + - 47
----
1483

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL - CAST ( - 34 AS INTEGER ) * 45 + + - 47
----
1483

onlyif mysql # DIV for integer division: 
query II rowsort label-2063
SELECT - 9 + + 4 * - - 95 - + + 39 col2, + COALESCE ( - 32, 18 + + - 98, - - 83 DIV + COALESCE ( 87, 32 DIV + 38 ) ) AS col1
----
332
-32

skipif mysql # not compatible
query II rowsort label-2063
SELECT - 9 + + 4 * - - 95 - + + 39 col2, + COALESCE ( - 32, 18 + + - 98, - - 83 / + COALESCE ( 87, 32 / + 38 ) ) AS col1
----
332
-32

query I rowsort
SELECT ALL + 24 * + 2 AS col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2065
SELECT ALL + 51 DIV + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL + 51 / + 62 AS col0
----
0

query II rowsort
SELECT DISTINCT + 6 * 40 AS col1, 56 * - 81 AS col1
----
240
-4536

query I rowsort
SELECT ALL + 61 * - 17
----
-1037

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

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

query I rowsort
SELECT - - 55 * COALESCE ( + 36, + 81, - 27 )
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT + COUNT( * ) * - 65 col0
----
-65

skipif mysql # not compatible
query I rowsort label-2070
SELECT + COUNT ( * ) * - 65 col0
----
-65

query I rowsort
SELECT DISTINCT + 28 - - 15 * - - 25
----
403

onlyif mysql # aggregate syntax: 
query II rowsort label-2072
SELECT ALL + 78 * + 64 AS col1, - ( + 62 ) * + 5 + + + ( - COUNT( * ) ) col1
----
4992
-311

skipif mysql # not compatible
query II rowsort label-2072
SELECT ALL + 78 * + 64 AS col1, - ( + 62 ) * + 5 + + + ( - COUNT ( * ) ) col1
----
4992
-311

onlyif mysql # aggregate syntax: 
query II rowsort label-2073
SELECT ALL - MAX( + 52 ), + 34 * + 4 AS col1
----
-52
136

skipif mysql # not compatible
query II rowsort label-2073
SELECT ALL - MAX ( + 52 ), + 34 * + 4 AS col1
----
-52
136

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2074
SELECT ALL + NULLIF ( + CAST( NULL AS DECIMAL ), + MAX( ALL - + 68 ) ) * + 66 / - 41 * - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL + NULLIF ( + CAST ( NULL AS REAL ), + MAX ( ALL - + 68 ) ) * + 66 / - 41 * - 60 AS col0
----
NULL

query I rowsort
SELECT - 52 + - 11 AS col1
----
-63

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

skipif mysql # not compatible
query I rowsort label-2076
SELECT + COUNT ( * ) - - 78 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT + 79 + - ( + MIN( 27 ) )
----
52

skipif mysql # not compatible
query I rowsort label-2077
SELECT + 79 + - ( + MIN ( 27 ) )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT ALL MAX( 3 ) col0
----
3

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL MAX ( 3 ) col0
----
3

query I rowsort
SELECT DISTINCT + 40 + + 40 + - 76
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2080
SELECT CASE 86 WHEN + COALESCE ( 9, CAST( + 57 AS SIGNED ), - CAST( NULL AS SIGNED ) ) THEN - 43 WHEN - 30 THEN + 90 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2080
SELECT CASE 86 WHEN + COALESCE ( 9, CAST ( + 57 AS INTEGER ), - CAST ( NULL AS INTEGER ) ) THEN - 43 WHEN - 30 THEN + 90 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2081
SELECT DISTINCT COALESCE ( + - ( 28 ), + CAST( + 34 AS SIGNED ), + 47 ) + - - 13 + + MIN( ( - 21 ) ) col0
----
-36

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT COALESCE ( + - ( 28 ), + CAST ( + 34 AS INTEGER ), + 47 ) + - - 13 + + MIN ( ( - 21 ) ) col0
----
-36

query I rowsort
SELECT ALL 63 + - 52 AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2083
SELECT ALL - COALESCE ( + + 47, 48 * + 99 / - 73 + - 9 + + COUNT( * ) + + 43 - - 14 + - - 94 / + + 93 * - 52 * + 68 ) / - 47 * + - MAX( DISTINCT - + 63 ) + - CAST( NULL AS SIGNED ) + + 2 - 64 + - AVG ( ALL 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL - COALESCE ( + + 47, 48 * + 99 / - 73 + - 9 + + COUNT ( * ) + + 43 - - 14 + - - 94 / + + 93 * - 52 * + 68 ) / - 47 * + - MAX ( DISTINCT - + 63 ) + - CAST ( NULL AS INTEGER ) + + 2 - 64 + - AVG ( ALL 75 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2084
SELECT CAST( - CASE - 66 WHEN + COUNT( * ) + + 77 THEN - 65 - - 34 WHEN - COUNT( * ) - + 89 * - - ( - 0 ) + - 81 THEN - 1 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2084
SELECT CAST ( - CASE - 66 WHEN + COUNT ( * ) + + 77 THEN - 65 - - 34 WHEN - COUNT ( * ) - + 89 * - - ( - 0 ) + - 81 THEN - 1 END AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2085
SELECT - 22 + 77 * + - COUNT( * ) + + 40 + - 28 * - + 91 * + CAST( + 91 AS SIGNED ) col2
----
231809

skipif mysql # not compatible
query I rowsort label-2085
SELECT - 22 + 77 * + - COUNT ( * ) + + 40 + - 28 * - + 91 * + CAST ( + 91 AS INTEGER ) col2
----
231809

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2086
SELECT ALL - 29 DIV 37 * + - ( - + COUNT( * ) ) + - - 78 AS col0, - ( + - 24 )
----
78
24

skipif mysql # not compatible
query II rowsort label-2086
SELECT ALL - 29 / 37 * + - ( - + COUNT ( * ) ) + - - 78 AS col0, - ( + - 24 )
----
78
24

query I rowsort
SELECT DISTINCT + 37 * + 87
----
3219

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

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

query I rowsort
SELECT + 43 * - 25 * - + 63 AS col0
----
67725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2090
SELECT MAX( 55 ) * + CAST( NULL AS SIGNED ) + - 10 * - ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

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

query I rowsort
SELECT ( - ( 26 ) ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT + 72 * - COUNT( * ) - - 9 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-2092
SELECT + 72 * - COUNT ( * ) - - 9 AS col1
----
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-2093
SELECT - 95 DIV + ( - 24 ) AS col2, 26 * + 53 + + - ( 11 ) AS col0
----
3
1367

skipif mysql # not compatible
query II rowsort label-2093
SELECT - 95 / + ( - 24 ) AS col2, 26 * + 53 + + - ( 11 ) AS col0
----
3
1367

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2094
SELECT - - 68 * 90 * - 45, - CAST( NULL AS SIGNED ) AS col0
----
-275400
NULL

skipif mysql # not compatible
query II rowsort label-2094
SELECT - - 68 * 90 * - 45, - CAST ( NULL AS INTEGER ) AS col0
----
-275400
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2095
SELECT - - 62 + - + ( + CAST( - COUNT( * ) AS SIGNED ) ) col2
----
63

skipif mysql # not compatible
query I rowsort label-2095
SELECT - - 62 + - + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) col2
----
63

query II rowsort
SELECT + + CASE + 0 WHEN - 57 THEN - - 73 / - 34 END AS col2, 56 + - 11
----
NULL
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2097
SELECT ALL - 29 DIV - COALESCE ( - + 14, + - 65 * - + COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL - 29 / - COALESCE ( - + 14, + - 65 * - + COUNT ( * ) )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT 2 DIV - - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2098
SELECT 2 / - - 98 AS col0
----
0

query I rowsort
SELECT ALL - + 55 * + - 47
----
2585

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

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

query I rowsort
SELECT 95 - + 45 * - + 25
----
1220

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT ALL - + SUM( ALL + - 83 ) + - 58 + - - 16
----
41

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL - + SUM ( ALL + - 83 ) + - 58 + - - 16
----
41

query I rowsort
SELECT 71 * + 26 + 87 + - 41 AS col2
----
1892

query I rowsort
SELECT DISTINCT - 13 + 71
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2105
SELECT - CASE - 9 WHEN - 44 THEN + 50 WHEN + 88 THEN NULL WHEN + 67 THEN - 65 * - - CAST( NULL AS DECIMAL ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2105
SELECT - CASE - 9 WHEN - 44 THEN + 50 WHEN + 88 THEN NULL WHEN + 67 THEN - 65 * - - CAST ( NULL AS REAL ) END AS col1
----
NULL

query I rowsort
SELECT 51 * - 45 - - 31 * - 65 AS col1
----
-4310

query I rowsort
SELECT ALL - + 84 + + + 64
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2108
SELECT DISTINCT + - 21 + + COUNT( * ) DIV + + 10 + + CAST( - ( 40 ) AS SIGNED ) + ( - 3 ) * - 55 col1
----
104

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT + - 21 + + COUNT ( * ) / + + 10 + + CAST ( - ( 40 ) AS INTEGER ) + ( - 3 ) * - 55 col1
----
104

query I rowsort
SELECT ALL - 31 + + 20 * - - 48 AS col0
----
929

query II rowsort
SELECT ALL 11 AS col2, 35 * 8
----
11
280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2111
SELECT 2 * - ( NULLIF ( + 62, + COALESCE ( + + 54, - - 49 * + + COUNT( * ) + - AVG ( ALL 2 ), - 55 * + + 72 * - 5 - - ( + COALESCE ( - - SUM( + - 51 ), + 29 ) ) ) / 64 * + COALESCE ( - MAX( 96 ), - - NULLIF ( - + 97, 35 ) ) - - - 21 / - 94 + + - CAST( 14 AS SIGNED ) + - 26 ) )
----
-124

skipif mysql # not compatible
query I rowsort label-2111
SELECT 2 * - ( NULLIF ( + 62, + COALESCE ( + + 54, - - 49 * + + COUNT ( * ) + - AVG ( ALL 2 ), - 55 * + + 72 * - 5 - - ( + COALESCE ( - - SUM ( + - 51 ), + 29 ) ) ) / 64 * + COALESCE ( - MAX ( 96 ), - - NULLIF ( - + 97, 35 ) ) - - - 21 / - 94 + + - CAST ( 14 AS INTEGER ) + - 26 ) )
----
-124

query I rowsort
SELECT DISTINCT 69 * + + ( 42 ) AS col1
----
2898

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2113
SELECT ALL COALESCE ( - 3, - 45 ) + - COUNT( * ) DIV + 93 DIV + 7 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL COALESCE ( - 3, - 45 ) + - COUNT ( * ) / + 93 / + 7 AS col0
----
-3

query I rowsort
SELECT 12 - + 52 AS col1
----
-40

query II rowsort
SELECT - 22 col0, - 86 AS col2
----
-22
-86

query I rowsort
SELECT 21 - 15 + + ( + 20 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2117
SELECT 57 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT 57 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT ALL + ( + 23 ) - 83 + - SUM( 24 )
----
-84

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL + ( + 23 ) - 83 + - SUM ( 24 )
----
-84

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2120
SELECT ALL 68 * 38 DIV 6
----
430

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL 68 * 38 / 6
----
430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2121
SELECT ALL - COUNT( * ) AS col2, ( + - 70 ) * - 20 + - + 35 + CAST( NULL AS SIGNED ) * - 25 * COALESCE ( 53, ( - 53 ), - + 37 + - 94 - + 36 * + 56 ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2121
SELECT ALL - COUNT ( * ) AS col2, ( + - 70 ) * - 20 + - + 35 + CAST ( NULL AS INTEGER ) * - 25 * COALESCE ( 53, ( - 53 ), - + 37 + - 94 - + 36 * + 56 ) AS col2
----
-1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2122
SELECT ALL - 91 AS col2, - MAX( + + 45 )
----
-91
-45

skipif mysql # not compatible
query II rowsort label-2122
SELECT ALL - 91 AS col2, - MAX ( + + 45 )
----
-91
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT 70 * - 38 + 30 - + 70 + + 26 * COUNT( * )
----
-2674

skipif mysql # not compatible
query I rowsort label-2123
SELECT 70 * - 38 + 30 - + 70 + + 26 * COUNT ( * )
----
-2674

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT MAX( 7 ) - + - 60
----
67

skipif mysql # not compatible
query I rowsort label-2124
SELECT MAX ( 7 ) - + - 60
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2125
SELECT + 17 * - + COUNT( ALL - 99 ) + - ( - CAST( - 17 AS SIGNED ) ) * - CAST( NULL AS SIGNED ) / + COUNT( ALL + - 0 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2125
SELECT + 17 * - + COUNT ( ALL - 99 ) + - ( - CAST ( - 17 AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) / + COUNT ( ALL + - 0 ) AS col0
----
NULL

query I rowsort
SELECT 46 * + 61
----
2806

onlyif mysql # aggregate syntax: 
query II rowsort label-2127
SELECT 78 AS col0, SUM( ALL 95 ) AS col1
----
78
95

skipif mysql # not compatible
query II rowsort label-2127
SELECT 78 AS col0, SUM ( ALL 95 ) AS col1
----
78
95

query II rowsort
SELECT DISTINCT - 97, 99 - + + 38 * + - 86 - - + 31 col2
----
-97
3398

query II rowsort
SELECT ALL - 38 AS col2, 83 AS col2
----
-38
83

query I rowsort
SELECT + 32 * + 46
----
1472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2131
SELECT DISTINCT - - 3 * - + ( + CAST( + CAST( + 15 AS SIGNED ) AS SIGNED ) ) * - - 10 * + ( + 48 ) AS col1
----
-21600

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT - - 3 * - + ( + CAST ( + CAST ( + 15 AS INTEGER ) AS INTEGER ) ) * - - 10 * + ( + 48 ) AS col1
----
-21600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2132
SELECT DISTINCT CAST( NULL AS SIGNED ) * 89 - - 10 * - 62 * 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 89 - - 10 * - 62 * 73 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 9 + - + 30 * + 55
----
-1641

query I rowsort
SELECT ALL + 76 + - + 58
----
18

query I rowsort
SELECT ALL - + 61 + 14 + + 67
----
20

query II rowsort
SELECT 53 AS col0, 57
----
53
57

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2140
SELECT ALL + 15 + - 37 + + - 62 - + COUNT( * ) + + COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL + 15 + - 37 + + - 62 - + COUNT ( * ) + + COUNT ( * ) * + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - + 62, - 86 * - + 44 ) AS col1
----
-62

query I rowsort
SELECT + 61 + 84 + + 11 + - 26 * - 90
----
2496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2143
SELECT DISTINCT - COUNT( * ) DIV 6 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT - COUNT ( * ) / 6 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT 96 + + - COUNT( * ) * + 55 - + 26 + MAX( + 74 )
----
89

skipif mysql # not compatible
query I rowsort label-2144
SELECT 96 + + - COUNT ( * ) * + 55 - + 26 + MAX ( + 74 )
----
89

query I rowsort
SELECT - 88 * + 97 col0
----
-8536

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT ALL + SUM( DISTINCT 39 ) * + 23 AS col0
----
897

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL + SUM ( DISTINCT 39 ) * + 23 AS col0
----
897

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT ALL - 64 + + + 31 + + 48 * - COUNT( * ) * - 60 AS col0
----
2847

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL - 64 + + + 31 + + 48 * - COUNT ( * ) * - 60 AS col0
----
2847

query I rowsort
SELECT 12 + - 27 + 86 AS col0
----
71

query I rowsort
SELECT 21 + + 27
----
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT 31 + - 75 + + - MIN( DISTINCT + ( + + 79 ) ) AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-2151
SELECT 31 + - 75 + + - MIN ( DISTINCT + ( + + 79 ) ) AS col0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT ALL - ( 62 ) - + - SUM( DISTINCT - - ( + + 87 ) ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL - ( 62 ) - + - SUM ( DISTINCT - - ( + + 87 ) ) AS col1
----
25

query I rowsort
SELECT 37 * 38 * - 62 AS col1
----
-87172

query I rowsort
SELECT ALL 74 - - COALESCE ( 67, - + 48 * + + NULLIF ( + + 70, - 28 ) ) AS col0
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2155
SELECT 56 + - - 32 + + + 27 DIV - + 60 * - 80 * ( - - 48 ) * + MIN( + ( + CAST( + 46 AS SIGNED ) ) )
----
88

skipif mysql # not compatible
query I rowsort label-2155
SELECT 56 + - - 32 + + + 27 / - + 60 * - 80 * ( - - 48 ) * + MIN ( + ( + CAST ( + 46 AS INTEGER ) ) )
----
88

query I rowsort
SELECT ALL 68 * + + 29 * + - 54 AS col1
----
-106488

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT COALESCE ( + - 66, + + ( COUNT( * ) ) )
----
-66

skipif mysql # not compatible
query I rowsort label-2157
SELECT COALESCE ( + - 66, + + ( COUNT ( * ) ) )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT COALESCE ( + 4, - + 44, 85 + - + ( - 29 ) - + + COUNT( * ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2158
SELECT COALESCE ( + 4, - + 44, 85 + - + ( - 29 ) - + + COUNT ( * ) ) AS col0
----
4

query I rowsort
SELECT 40 * - 16 AS col2
----
-640

query III rowsort
SELECT 75 + - 44 AS col0, 42 AS col2, 71 + + ( - 80 ) AS col1
----
31
42
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2161
SELECT MAX( - 80 ) DIV + 71 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2161
SELECT MAX ( - 80 ) / + 71 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2162
SELECT COUNT( DISTINCT - 3 ) AS col1, 69
----
1
69

skipif mysql # not compatible
query II rowsort label-2162
SELECT COUNT ( DISTINCT - 3 ) AS col1, 69
----
1
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2163
SELECT ALL + 2 * + - CAST( NULL AS SIGNED ) * + - 69 col0, CAST( + - 14 AS SIGNED ) AS col1
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-2163
SELECT ALL + 2 * + - CAST ( NULL AS INTEGER ) * + - 69 col0, CAST ( + - 14 AS INTEGER ) AS col1
----
NULL
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2164
SELECT COUNT( - CAST( - 39 AS SIGNED ) ) DIV + COUNT( * ) + - - 92
----
93

skipif mysql # not compatible
query I rowsort label-2164
SELECT COUNT ( - CAST ( - 39 AS INTEGER ) ) / + COUNT ( * ) + - - 92
----
93

query II rowsort
SELECT - 25 * - 27 - 6, 71 * 64 + - + 17 col2
----
669
4527

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2166
SELECT ALL + ( CASE AVG ( 26 ) WHEN - + 99 THEN + 72 * - 20 * 65 * - 38 * + 8 DIV - COUNT( * ) WHEN - + 95 THEN NULL ELSE - 31 END ) * - 4
----
124

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL + ( CASE AVG ( 26 ) WHEN - + 99 THEN + 72 * - 20 * 65 * - 38 * + 8 / - COUNT ( * ) WHEN - + 95 THEN NULL ELSE - 31 END ) * - 4
----
124

query I rowsort
SELECT + 32 * - + 47 AS col2
----
-1504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2168
SELECT ALL 2 + + COALESCE ( 90, 76 ) + + - CAST( NULL AS SIGNED ) * - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL 2 + + COALESCE ( 90, 76 ) + + - CAST ( NULL AS INTEGER ) * - 8
----
NULL

query I rowsort
SELECT ALL - 86 + 94
----
8

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2171
SELECT ALL + COUNT( * ) - - 59 AS col1, 13 + - 98 col2
----
60
-85

skipif mysql # not compatible
query II rowsort label-2171
SELECT ALL + COUNT ( * ) - - 59 AS col1, 13 + - 98 col2
----
60
-85

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2173
SELECT ALL + CAST( NULL AS SIGNED ) / + CASE - COUNT( + 32 ) WHEN - MAX( - 90 ) THEN + + 21 WHEN 41 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL + CAST ( NULL AS INTEGER ) / + CASE - COUNT ( + 32 ) WHEN - MAX ( - 90 ) THEN + + 21 WHEN 41 THEN NULL END
----
NULL

query I rowsort
SELECT - ( - - 39 ) col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-2175
SELECT DISTINCT 18 AS col2, - 15 + - COALESCE ( + COALESCE ( 0, - 28 - - - 81 ), - - 89 + 37 * - - COUNT( * ), 81, + 50 )
----
18
-15

skipif mysql # not compatible
query II rowsort label-2175
SELECT DISTINCT 18 AS col2, - 15 + - COALESCE ( + COALESCE ( 0, - 28 - - - 81 ), - - 89 + 37 * - - COUNT ( * ), 81, + 50 )
----
18
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2176
SELECT ALL NULLIF ( - 4, + COUNT( * ) ) AS col2, - 19
----
-4
-19

skipif mysql # not compatible
query II rowsort label-2176
SELECT ALL NULLIF ( - 4, + COUNT ( * ) ) AS col2, - 19
----
-4
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2177
SELECT ALL ( - COUNT( * ) ) DIV + NULLIF ( + - COUNT( * ), - - SUM( - + 61 ) * + MIN( DISTINCT + + 59 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL ( - COUNT ( * ) ) / + NULLIF ( + - COUNT ( * ), - - SUM ( - + 61 ) * + MIN ( DISTINCT + + 59 ) ) col2
----
1

query I rowsort
SELECT + 27 + 19
----
46

query I rowsort
SELECT ALL - 33 * + 79
----
-2607

query I rowsort
SELECT + 44 * + 62
----
2728

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

skipif mysql # not compatible
query I rowsort label-2181
SELECT + COUNT ( * ) / + 64
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2182
SELECT - ( COUNT( * ) ) * - 57 + + 6 + - - CAST( - - 72 AS SIGNED )
----
135

skipif mysql # not compatible
query I rowsort label-2182
SELECT - ( COUNT ( * ) ) * - 57 + + 6 + - - CAST ( - - 72 AS INTEGER )
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT - COUNT( * ) - 94 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-2183
SELECT - COUNT ( * ) - 94 AS col2
----
-95

query I rowsort
SELECT - 97 + + - 71 + - 52 AS col2
----
-220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2185
SELECT + 9 * + CAST( - - SUM( 91 ) AS SIGNED ) * + 21 + - 68 + 79 AS col0
----
17210

skipif mysql # not compatible
query I rowsort label-2185
SELECT + 9 * + CAST ( - - SUM ( 91 ) AS INTEGER ) * + 21 + - 68 + 79 AS col0
----
17210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2186
SELECT ALL + COALESCE ( + + 33, CAST( - 49 AS SIGNED ), 46 )
----
33

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL + COALESCE ( + + 33, CAST ( - 49 AS INTEGER ), 46 )
----
33

query I rowsort
SELECT DISTINCT + 16 * - 90
----
-1440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2188
SELECT + 15 DIV + COUNT( * ) + 89
----
104

skipif mysql # not compatible
query I rowsort label-2188
SELECT + 15 / + COUNT ( * ) + 89
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-2189
SELECT ALL + COUNT( * ) col0, 46 + - COUNT( * ) AS col2
----
1
45

skipif mysql # not compatible
query II rowsort label-2189
SELECT ALL + COUNT ( * ) col0, 46 + - COUNT ( * ) AS col2
----
1
45

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

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

query I rowsort
SELECT - - 56 - + - 77
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-2192
SELECT + 77 * + ( + 84 ) DIV + 4 AS col1
----
1617

skipif mysql # not compatible
query I rowsort label-2192
SELECT + 77 * + ( + 84 ) / + 4 AS col1
----
1617

query I rowsort
SELECT - 98 * + - 82 + - 75
----
7961

query II rowsort
SELECT ALL + 42 * - + 63 + + 65, 3 AS col1
----
-2581
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2195
SELECT + + 29 * - ( CAST( + 70 AS SIGNED ) )
----
-2030

skipif mysql # not compatible
query I rowsort label-2195
SELECT + + 29 * - ( CAST ( + 70 AS INTEGER ) )
----
-2030

query I rowsort
SELECT ALL + NULLIF ( 75, 16 / + - 91 * + 56 ) AS col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2197
SELECT DISTINCT + - COALESCE ( + 46, - + 98 ), + COALESCE ( + - 10, + COALESCE ( + + 23, 44 ) DIV + + 81 + + + COUNT( * ) ) + 53 * 62 AS col2
----
-46
3276

skipif mysql # not compatible
query II rowsort label-2197
SELECT DISTINCT + - COALESCE ( + 46, - + 98 ), + COALESCE ( + - 10, + COALESCE ( + + 23, 44 ) / + + 81 + + + COUNT ( * ) ) + 53 * 62 AS col2
----
-46
3276

onlyif mysql # aggregate syntax: 
query II rowsort label-2198
SELECT + - 54 + + COUNT( * ) + + - 46 AS col2, 65 AS col0
----
-99
65

skipif mysql # not compatible
query II rowsort label-2198
SELECT + - 54 + + COUNT ( * ) + + - 46 AS col2, 65 AS col0
----
-99
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2199
SELECT - - COUNT( * ) + 70 DIV + - 46 + - 74 * + 19
----
-1406

skipif mysql # not compatible
query I rowsort label-2199
SELECT - - COUNT ( * ) + 70 / + - 46 + - 74 * + 19
----
-1406

onlyif mysql # DIV for integer division: 
query I rowsort label-2200
SELECT ALL + 74 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL + 74 / - 90
----
0

query I rowsort
SELECT - + 69 * + + 17 AS col1
----
-1173

query I rowsort
SELECT + 80 * + + 43 + - 81 col2
----
3359

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT - 19 + - + MIN( - 93 ) + + 16 * - SUM( ALL ( + 67 ) ) * 15 + + 32 col1
----
-15974

skipif mysql # not compatible
query I rowsort label-2203
SELECT - 19 + - + MIN ( - 93 ) + + 16 * - SUM ( ALL ( + 67 ) ) * 15 + + 32 col1
----
-15974

query I rowsort
SELECT + - 94 * 60 AS col1
----
-5640

query I rowsort
SELECT + 46 + + 55 - 12 col0
----
89

query I rowsort
SELECT DISTINCT 92 * - - 29
----
2668

query I rowsort
SELECT DISTINCT ( + 83 ) * - 29
----
-2407

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2209
SELECT + NULLIF ( 0, COUNT( * ) ) + CAST( - - COUNT( * ) AS SIGNED ) + - + 10 + 70 - - - 35 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-2209
SELECT + NULLIF ( 0, COUNT ( * ) ) + CAST ( - - COUNT ( * ) AS INTEGER ) + - + 10 + 70 - - - 35 AS col0
----
26

query I rowsort
SELECT ALL 39 * + 73 AS col0
----
2847

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2212
SELECT - 9 + 84 DIV + + 53 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-2212
SELECT - 9 + 84 / + + 53 AS col1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2213
SELECT - CAST( - AVG ( + 31 ) AS SIGNED ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-2213
SELECT - CAST ( - AVG ( + 31 ) AS INTEGER ) AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2214
SELECT - CAST( 25 AS SIGNED ) + COUNT( * ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-2214
SELECT - CAST ( 25 AS INTEGER ) + COUNT ( * ) AS col1
----
-24

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

skipif mysql # not compatible
query I rowsort label-2215
SELECT - CAST ( NULL AS INTEGER ) + 41 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2216
SELECT ALL 55 + - - 85 * + COUNT( + 19 ), 74 * 66 + + + 47 * - + 20 + - COUNT( * ) * - - 60 + COUNT( * ) * 73 * - - 26 - - 17 AS col0
----
140
5799

skipif mysql # not compatible
query II rowsort label-2216
SELECT ALL 55 + - - 85 * + COUNT ( + 19 ), 74 * 66 + + + 47 * - + 20 + - COUNT ( * ) * - - 60 + COUNT ( * ) * 73 * - - 26 - - 17 AS col0
----
140
5799

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT DISTINCT - COUNT( * ) + - + 16 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT - COUNT ( * ) + - + 16 AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2218
SELECT DISTINCT 90 + 56 + + + 49 * - CAST( + 7 AS SIGNED ) + COUNT( * )
----
-196

skipif mysql # not compatible
query I rowsort label-2218
SELECT DISTINCT 90 + 56 + + + 49 * - CAST ( + 7 AS INTEGER ) + COUNT ( * )
----
-196

onlyif mysql # DIV for integer division: 
query II rowsort label-2219
SELECT 65 DIV + 13 AS col0, 19 DIV + - 42 AS col2
----
5
0

skipif mysql # not compatible
query II rowsort label-2219
SELECT 65 / + 13 AS col0, 19 / + - 42 AS col2
----
5
0

query I rowsort
SELECT ALL - 39 + 11 - + 39 AS col0
----
-67

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

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

query I rowsort
SELECT ALL + + 17 * - 84
----
-1428

query I rowsort
SELECT ALL - - 54 + - 86 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-2224
SELECT 95 * 70 * - 31 * - 57 AS col1, COALESCE ( 92, + - ( + 22 ) * 40 * - + 49 * + 93, - COUNT( * ), 64 )
----
11750550
92

skipif mysql # not compatible
query II rowsort label-2224
SELECT 95 * 70 * - 31 * - 57 AS col1, COALESCE ( 92, + - ( + 22 ) * 40 * - + 49 * + 93, - COUNT ( * ), 64 )
----
11750550
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT ALL - MIN( - 31 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL - MIN ( - 31 ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT + - NULLIF ( COUNT( * ), - 22 / 33 * - 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-2226
SELECT + - NULLIF ( COUNT ( * ), - 22 / 33 * - 18 )
----
-1

query I rowsort
SELECT ALL + + 25 * 44 + - 4
----
1096

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2228
SELECT ALL - + ( - + CAST( + 42 AS SIGNED ) ) - - 33 col0, 14 AS col2
----
75
14

skipif mysql # not compatible
query II rowsort label-2228
SELECT ALL - + ( - + CAST ( + 42 AS INTEGER ) ) - - 33 col0, 14 AS col2
----
75
14

query I rowsort
SELECT DISTINCT - + 2 col2
----
-2

query I rowsort
SELECT DISTINCT - - 12 - - 26
----
38

query I rowsort
SELECT - CASE - 44 WHEN + 56 THEN NULL ELSE - - 82 END + + 48
----
-34

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

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT + 45 / + + COUNT ( * ) * - + COUNT ( * ) - + 10 AS col1
----
-55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT COUNT( * ) * - - 20 + + 66 * 10 * - + 7
----
-4600

skipif mysql # not compatible
query I rowsort label-2234
SELECT COUNT ( * ) * - - 20 + + 66 * 10 * - + 7
----
-4600

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

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

query I rowsort
SELECT DISTINCT - - 52 col1
----
52

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

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

query I rowsort
SELECT 40 * - 85 * + 40
----
-136000

query I rowsort
SELECT ALL 92 + + + 83
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT DISTINCT - 61 + - + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT - 61 + - + COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT ALL SUM( DISTINCT 64 ) + 6
----
70

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL SUM ( DISTINCT 64 ) + 6
----
70

query II rowsort
SELECT DISTINCT 88, - 99 col0
----
88
-99

query I rowsort
SELECT ALL 56 + + 96 - + 85 * - 99 + + + 64 * - 93 * + 33 AS col0
----
-187849

query II rowsort
SELECT DISTINCT 14 + 45 * - - 86 * - 47 - 45, ( + 62 ) * - 71 AS col2
----
-181921
-4402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2245
SELECT ALL NULLIF ( + + 29, + 52 ) + + CAST( + 34 AS SIGNED ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL NULLIF ( + + 29, + 52 ) + + CAST ( + 34 AS INTEGER ) AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2246
SELECT CAST( + 85 AS SIGNED ) * 84
----
7140

skipif mysql # not compatible
query I rowsort label-2246
SELECT CAST ( + 85 AS INTEGER ) * 84
----
7140

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT 65 + SUM( DISTINCT ( - 31 ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-2247
SELECT 65 + SUM ( DISTINCT ( - 31 ) ) AS col1
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2248
SELECT DISTINCT 84 * - 7 * + 97 AS col1, CAST( - - 99 AS SIGNED ) AS col1
----
-57036
99

skipif mysql # not compatible
query II rowsort label-2248
SELECT DISTINCT 84 * - 7 * + 97 AS col1, CAST ( - - 99 AS INTEGER ) AS col1
----
-57036
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT 74 + MIN( - - ( + - 77 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-2249
SELECT 74 + MIN ( - - ( + - 77 ) )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2250
SELECT 81 + + - 54 + COUNT( * ) AS col0, + 7 * - - 43 AS col0
----
28
301

skipif mysql # not compatible
query II rowsort label-2250
SELECT 81 + + - 54 + COUNT ( * ) AS col0, + 7 * - - 43 AS col0
----
28
301

query I rowsort
SELECT 16 * 48 AS col0
----
768

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

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

query I rowsort
SELECT 81 * + ( 73 ) + 77 AS col0
----
5990

onlyif mysql # DIV for integer division: 
query I rowsort label-2254
SELECT ALL - COALESCE ( + 16, AVG ( ALL 63 ) + 30 ) DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL - COALESCE ( + 16, AVG ( ALL 63 ) + 30 ) / - 84
----
0

query I rowsort
SELECT 6 * + 94 col0
----
564

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

skipif mysql # not compatible
query I rowsort label-2256
SELECT DISTINCT 1 - + COUNT ( 49 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT ALL - CASE + 43 WHEN 76 THEN NULL ELSE - 59 * + 73 + COUNT( - 42 ) END AS col1
----
4306

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL - CASE + 43 WHEN 76 THEN NULL ELSE - 59 * + 73 + COUNT ( - 42 ) END AS col1
----
4306

query I rowsort
SELECT ALL - 81 * - 18
----
1458

query I rowsort
SELECT 25 - 26
----
-1

query I rowsort
SELECT ALL 36 * 30 AS col1
----
1080

query I rowsort
SELECT 96 * 42 AS col0
----
4032

query I rowsort
SELECT 31 * 53
----
1643

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2263
SELECT - 18 * - 30 + + 43 DIV COUNT( * ) AS col1
----
583

skipif mysql # not compatible
query I rowsort label-2263
SELECT - 18 * - 30 + + 43 / COUNT ( * ) AS col1
----
583

query I rowsort
SELECT ( 14 ) * + 75 AS col0
----
1050

query I rowsort
SELECT ALL + 36 * - 16 AS col2
----
-576

onlyif mysql # DIV for integer division: 
query I rowsort label-2266
SELECT 50 DIV 54
----
0

skipif mysql # not compatible
query I rowsort label-2266
SELECT 50 / 54
----
0

query I rowsort
SELECT ALL ( + 47 ) * 9
----
423

query I rowsort
SELECT ALL ( + 14 ) * 91 col2
----
1274

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

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

query I rowsort
SELECT ALL - NULLIF ( 39, + 61 )
----
-39

query I rowsort
SELECT 59 + ( - 48 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT ALL - MAX( 28 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL - MAX ( 28 ) AS col2
----
-28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT DISTINCT - COALESCE ( + COUNT( * ), - 38 * ( 92 ), ( COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2274
SELECT DISTINCT - COALESCE ( + COUNT ( * ), - 38 * ( 92 ), ( COUNT ( * ) ) ) AS col0
----
-1

query I rowsort
SELECT 46 + + 34
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2276
SELECT + CAST( + 47 AS SIGNED ) * + 84 + 89 AS col0
----
4037

skipif mysql # not compatible
query I rowsort label-2276
SELECT + CAST ( + 47 AS INTEGER ) * + 84 + 89 AS col0
----
4037

query I rowsort
SELECT DISTINCT + 29 + - 45
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT ALL - 75 + - COUNT( * ) col0
----
-76

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL - 75 + - COUNT ( * ) col0
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2279
SELECT DISTINCT 3 + CASE 12 + 41 WHEN - 12 THEN NULL ELSE COALESCE ( + MIN( + 41 ), ( 69 ) DIV 92, 80 * 14 ) END
----
44

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT 3 + CASE 12 + 41 WHEN - 12 THEN NULL ELSE COALESCE ( + MIN ( + 41 ), ( 69 ) / 92, 80 * 14 ) END
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT DISTINCT - 57 + ( - 15 + MIN( DISTINCT + NULLIF ( 35, 44 ) ) * 49 ) * - SUM( ALL + 78 * + 76 )
----
-10077657

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT - 57 + ( - 15 + MIN ( DISTINCT + NULLIF ( 35, 44 ) ) * 49 ) * - SUM ( ALL + 78 * + 76 )
----
-10077657

query I rowsort
SELECT DISTINCT + 2 * COALESCE ( 52 * + 11, 41 ) AS col1
----
1144

query I rowsort
SELECT ALL 38 + 24 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT - COUNT( * ) + NULLIF ( 26, 5 )
----
25

skipif mysql # not compatible
query I rowsort label-2283
SELECT - COUNT ( * ) + NULLIF ( 26, 5 )
----
25

query I rowsort
SELECT ALL - 39 + 37
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT ALL CASE + ( COUNT( * ) ) WHEN 3 * + COUNT( * ) THEN - 60 WHEN - AVG ( DISTINCT - 53 ) THEN - 39 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL CASE + ( COUNT ( * ) ) WHEN 3 * + COUNT ( * ) THEN - 60 WHEN - AVG ( DISTINCT - 53 ) THEN - 39 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 3, AVG ( 82 ) ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT DISTINCT CASE 4 WHEN + 33 THEN NULL ELSE 40 * 88 - + COALESCE ( - 24, + COUNT( DISTINCT + 41 ) * - 9 ) END AS col2
----
3544

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT CASE 4 WHEN + 33 THEN NULL ELSE 40 * 88 - + COALESCE ( - 24, + COUNT ( DISTINCT + 41 ) * - 9 ) END AS col2
----
3544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2288
SELECT ALL 2 + CAST( 49 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL 2 + CAST ( 49 AS INTEGER )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2289
SELECT - 84 * CAST( - MIN( + 6 ) AS SIGNED )
----
504

skipif mysql # not compatible
query I rowsort label-2289
SELECT - 84 * CAST ( - MIN ( + 6 ) AS INTEGER )
----
504

query I rowsort
SELECT ALL + + 70 - 95 AS col1
----
-25

query I rowsort
SELECT DISTINCT + 39 * + 53 AS col2
----
2067

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

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

query I rowsort
SELECT DISTINCT + 69 - - 61
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT + COUNT( * ) + + 24 * + NULLIF ( - 42 * 95, - ( + AVG ( DISTINCT - 37 ) ) ) AS col2
----
-95759

skipif mysql # not compatible
query I rowsort label-2294
SELECT + COUNT ( * ) + + 24 * + NULLIF ( - 42 * 95, - ( + AVG ( DISTINCT - 37 ) ) ) AS col2
----
-95759

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

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

query I rowsort
SELECT DISTINCT 84 * - 48 AS col1
----
-4032

onlyif mysql # DIV for integer division: 
query I rowsort label-2297
SELECT 67 DIV - 44 + - 75
----
-76

skipif mysql # not compatible
query I rowsort label-2297
SELECT 67 / - 44 + - 75
----
-76

query I rowsort
SELECT + + 50 * + ( 22 * 5 ) AS col1
----
5500

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

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

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

query I rowsort
SELECT ALL + - COALESCE ( - 12, 44 * 18 + + 56 )
----
12

query I rowsort
SELECT + 99 * + 28 col0
----
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT ALL + SUM( DISTINCT + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL + SUM ( DISTINCT + 28 )
----
28

query I rowsort
SELECT NULLIF ( 37, 60 + + 27 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT ALL 69 * 10 + + COUNT( * ) * 74
----
764

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL 69 * 10 + + COUNT ( * ) * 74
----
764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2306
SELECT + - 24 + 19 * CASE - CAST( - 59 AS SIGNED ) / - 21 WHEN 61 * + 32 THEN 71 * ( 30 * 55 ) ELSE 34 END
----
622

skipif mysql # not compatible
query I rowsort label-2306
SELECT + - 24 + 19 * CASE - CAST ( - 59 AS INTEGER ) / - 21 WHEN 61 * + 32 THEN 71 * ( 30 * 55 ) ELSE 34 END
----
622

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT + + COUNT( + 6 ) * 15 col0
----
15

skipif mysql # not compatible
query I rowsort label-2307
SELECT + + COUNT ( + 6 ) * 15 col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT + 86 * 11 + + MAX( 56 - 18 )
----
984

skipif mysql # not compatible
query I rowsort label-2308
SELECT + 86 * 11 + + MAX ( 56 - 18 )
----
984

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT ALL 78 * - 44 + COUNT( * )
----
-3431

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL 78 * - 44 + COUNT ( * )
----
-3431

query I rowsort
SELECT ALL 94 * 36 * + 26 + 28
----
88012

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT NULLIF ( + COUNT( ALL - 58 ), + 23 )
----
1

skipif mysql # not compatible
query I rowsort label-2312
SELECT NULLIF ( + COUNT ( ALL - 58 ), + 23 )
----
1

query I rowsort
SELECT + 98 * + 84
----
8232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2314
SELECT + CASE - - 32 WHEN + AVG ( DISTINCT - 36 ) THEN 24 ELSE 27 DIV 74 END * 88 - + COUNT( * ) * - 24 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-2314
SELECT + CASE - - 32 WHEN + AVG ( DISTINCT - 36 ) THEN 24 ELSE 27 / 74 END * 88 - + COUNT ( * ) * - 24 AS col0
----
24

query I rowsort
SELECT ALL + COALESCE ( - ( 0 ), - 22 * 35 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ALL COUNT( * ) * - - 95 * - 0 + - 25 * + 8
----
-200

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL COUNT ( * ) * - - 95 * - 0 + - 25 * + 8
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT ALL SUM( ALL + + ( - 12 ) ) * + 0 + 58
----
58

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL SUM ( ALL + + ( - 12 ) ) * + 0 + 58
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT DISTINCT + NULLIF ( + 68, + COUNT( DISTINCT + 29 ) - 40 )
----
68

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT + NULLIF ( + 68, + COUNT ( DISTINCT + 29 ) - 40 )
----
68

query I rowsort
SELECT ALL 49 * + 56 + - 1 AS col0
----
2743

query I rowsort
SELECT - 68 * ( 9 ) * 38 AS col0
----
-23256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2321
SELECT - COUNT( * ) * - CAST( ( 63 ) AS SIGNED ) * COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-2321
SELECT - COUNT ( * ) * - CAST ( ( 63 ) AS INTEGER ) * COUNT ( * )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT DISTINCT CASE 98 WHEN - CAST( NULL AS SIGNED ) * 75 THEN - 0 WHEN ( + 36 ) THEN 13 - - 23 * 69 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT CASE 98 WHEN - CAST ( NULL AS INTEGER ) * 75 THEN - 0 WHEN ( + 36 ) THEN 13 - - 23 * 69 END AS col2
----
NULL

query I rowsort
SELECT ALL - 44 - + 13 AS col1
----
-57

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

skipif mysql # not compatible
query I rowsort label-2324
SELECT + COUNT ( * ) - 32 AS col0
----
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT DISTINCT - COUNT( * ) - + + NULLIF ( + ( + COUNT( * ) ), 51 * + 28 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT - COUNT ( * ) - + + NULLIF ( + ( + COUNT ( * ) ), 51 * + 28 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT - COUNT( ALL - 42 ) * 38
----
-38

skipif mysql # not compatible
query I rowsort label-2327
SELECT - COUNT ( ALL - 42 ) * 38
----
-38

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

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

query I rowsort
SELECT DISTINCT + 26 * - 50 * 98
----
-127400

query I rowsort
SELECT - 71 * + + 13 * 90 + + 86
----
-82984

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

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

query I rowsort
SELECT - + ( + ( - 54 ) ) - + 29 AS col2
----
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT - + 2 + COALESCE ( - COUNT( * ), 68 + 73 )
----
-3

skipif mysql # not compatible
query I rowsort label-2334
SELECT - + 2 + COALESCE ( - COUNT ( * ), 68 + 73 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2335
SELECT ALL ( + CASE 73 WHEN COUNT( * ) * CAST( 82 * CAST( NULL AS SIGNED ) AS SIGNED ) THEN NULL ELSE - 40 DIV + CAST( - SUM( + 77 ) AS SIGNED ) END )
----
0

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL ( + CASE 73 WHEN COUNT ( * ) * CAST ( 82 * CAST ( NULL AS INTEGER ) AS INTEGER ) THEN NULL ELSE - 40 / + CAST ( - SUM ( + 77 ) AS INTEGER ) END )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2336
SELECT - - 85 DIV - COALESCE ( 49, 34 ) DIV - COUNT( 41 * 32 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2336
SELECT - - 85 / - COALESCE ( 49, 34 ) / - COUNT ( 41 * 32 ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2337
SELECT + 17 DIV - + 13
----
-1

skipif mysql # not compatible
query I rowsort label-2337
SELECT + 17 / - + 13
----
-1

query I rowsort
SELECT - 60 + - + 29
----
-89

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2340
SELECT DISTINCT + + CASE ( COUNT( 83 ) ) WHEN NULLIF ( - 61, - 49 ) + + 47 THEN 73 + + COUNT( * ) WHEN + 13 THEN NULL WHEN - 93 THEN ( - CAST( NULL AS SIGNED ) ) + ( MAX( 42 ) + - 11 ) WHEN + 50 THEN 65 * 92 + 75 ELSE ( - 71 ) * 22 + 37 END AS col1
----
-1525

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT + + CASE ( COUNT ( 83 ) ) WHEN NULLIF ( - 61, - 49 ) + + 47 THEN 73 + + COUNT ( * ) WHEN + 13 THEN NULL WHEN - 93 THEN ( - CAST ( NULL AS INTEGER ) ) + ( MAX ( 42 ) + - 11 ) WHEN + 50 THEN 65 * 92 + 75 ELSE ( - 71 ) * 22 + 37 END AS col1
----
-1525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2341
SELECT DISTINCT 30 DIV + - 27 + MAX( DISTINCT + 31 )
----
30

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT 30 / + - 27 + MAX ( DISTINCT + 31 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2342
SELECT ALL MAX( ALL + + 16 ) DIV 5 + 16 * 76
----
1219

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL MAX ( ALL + + 16 ) / 5 + 16 * 76
----
1219

query I rowsort
SELECT + COALESCE ( + 35, 7 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2344
SELECT DISTINCT - - CAST( ( 57 ) AS SIGNED ) DIV - COUNT( * ) + - 31 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-2344
SELECT DISTINCT - - CAST ( ( 57 ) AS INTEGER ) / - COUNT ( * ) + - 31 AS col1
----
-88

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

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

query I rowsort
SELECT + + 95 + 16 + - 86 * + ( + 63 ) AS col0
----
-5307

onlyif mysql # DIV for integer division: 
query I rowsort label-2347
SELECT DISTINCT + - 96 DIV - - 73 + 43 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT + - 96 / - - 73 + 43 AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2348
SELECT ALL 75 / + CAST( NULL AS SIGNED ) + + 4 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL 75 / + CAST ( NULL AS INTEGER ) + + 4 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT + MAX( - ( + 89 ) ) + - 55 AS col1
----
-144

skipif mysql # not compatible
query I rowsort label-2349
SELECT + MAX ( - ( + 89 ) ) + - 55 AS col1
----
-144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2350
SELECT COUNT( + 80 ) DIV 92 DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-2350
SELECT COUNT ( + 80 ) / 92 / + 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT DISTINCT + 75 + + MAX( 77 )
----
152

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT + 75 + + MAX ( 77 )
----
152

query I rowsort
SELECT ALL 80 + 47
----
127

query I rowsort
SELECT ALL 39 + - 57 AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2354
SELECT DISTINCT - 7 AS col1, SUM( - CAST( 45 AS SIGNED ) ) AS col2
----
-7
-45

skipif mysql # not compatible
query II rowsort label-2354
SELECT DISTINCT - 7 AS col1, SUM ( - CAST ( 45 AS INTEGER ) ) AS col2
----
-7
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ALL 21 + - - ( - COUNT( * ) ) - - CASE ( - 69 ) WHEN 97 / 13 THEN - ( + NULLIF ( + 46, + 25 * - 28 + ( + MAX( + 91 ) + COUNT( * ) * 61 ) ) ) * ( - 9 ) ELSE NULL END * - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL 21 + - - ( - COUNT ( * ) ) - - CASE ( - 69 ) WHEN 97 / 13 THEN - ( + NULLIF ( + 46, + 25 * - 28 + ( + MAX ( + 91 ) + COUNT ( * ) * 61 ) ) ) * ( - 9 ) ELSE NULL END * - 60
----
NULL

query II rowsort
SELECT + 24 AS col1, + 65 + 98 * - 46
----
24
-4443

onlyif mysql # DIV for integer division: 
query I rowsort label-2357
SELECT DISTINCT 91 DIV 47
----
1

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT 91 / 47
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2358
SELECT CAST( - + 55 AS SIGNED ) + 61 * - 38 AS col0
----
-2373

skipif mysql # not compatible
query I rowsort label-2358
SELECT CAST ( - + 55 AS INTEGER ) + 61 * - 38 AS col0
----
-2373

query II rowsort
SELECT 60 AS col2, 55 col0
----
60
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT ALL COUNT( * ) - + - ( - 8 )
----
-7

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL COUNT ( * ) - + - ( - 8 )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-2361
SELECT ( - 4 ) DIV - 85 * 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2361
SELECT ( - 4 ) / - 85 * 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT + COUNT( * ) * ( 39 ) * + 15 + + 68
----
653

skipif mysql # not compatible
query I rowsort label-2362
SELECT + COUNT ( * ) * ( 39 ) * + 15 + + 68
----
653

query I rowsort
SELECT ALL 90 * + 71 * 5 AS col1
----
31950

onlyif mysql # DIV for integer division: 
query I rowsort label-2364
SELECT ALL 67 * + CASE - 2 WHEN + 89 THEN NULL ELSE 56 DIV 23 END AS col0
----
134

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL 67 * + CASE - 2 WHEN + 89 THEN NULL ELSE 56 / 23 END AS col0
----
134

query I rowsort
SELECT DISTINCT 25 - - + 14 AS col0
----
39

query I rowsort
SELECT DISTINCT 84 * 31 AS col0
----
2604

query I rowsort
SELECT 16 + - - 77
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2368
SELECT - 18 * + + 51 DIV COUNT( * ) AS col1
----
-918

skipif mysql # not compatible
query I rowsort label-2368
SELECT - 18 * + + 51 / COUNT ( * ) AS col1
----
-918

onlyif mysql # aggregate syntax: 
query II rowsort label-2369
SELECT - 26 AS col0, + 50 * - COUNT( * )
----
-26
-50

skipif mysql # not compatible
query II rowsort label-2369
SELECT - 26 AS col0, + 50 * - COUNT ( * )
----
-26
-50

query I rowsort
SELECT - 92 + + 23
----
-69

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

skipif mysql # not compatible
query I rowsort label-2371
SELECT + COUNT ( * ) * - COUNT ( * ) + - 53 * COUNT ( * ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT ALL + COALESCE ( + + 62, AVG ( ALL + 77 ) ) * ( + COUNT( * ) * + 91 + - ( CASE COALESCE ( 24, 40 ) WHEN 88 * COUNT( * ) THEN + ( COUNT( * ) ) END + + 23 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL + COALESCE ( + + 62, AVG ( ALL + 77 ) ) * ( + COUNT ( * ) * + 91 + - ( CASE COALESCE ( 24, 40 ) WHEN 88 * COUNT ( * ) THEN + ( COUNT ( * ) ) END + + 23 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( 54 ) + ( - 46 ) * + 12
----
-606

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

query I rowsort
SELECT 64 * + 28 AS col2
----
1792

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT ALL - 84 + 58 + + COUNT( * ) + ( - 35 )
----
-60

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL - 84 + 58 + + COUNT ( * ) + ( - 35 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT ALL + - SUM( DISTINCT COALESCE ( 60, 39 ) ) * 87
----
-5220

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL + - SUM ( DISTINCT COALESCE ( 60, 39 ) ) * 87
----
-5220

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT ALL - + 27 + + COUNT( * ) - + NULLIF ( COALESCE ( + 56, - 12, - 30 ), 81 * 89 )
----
-82

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL - + 27 + + COUNT ( * ) - + NULLIF ( COALESCE ( + 56, - 12, - 30 ), 81 * 89 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT - CASE + MIN( DISTINCT ( + 32 ) ) WHEN 70 THEN NULL ELSE COUNT( * ) + + 1 END AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2379
SELECT - CASE + MIN ( DISTINCT ( + 32 ) ) WHEN 70 THEN NULL ELSE COUNT ( * ) + + 1 END AS col0
----
-2

query II rowsort
SELECT ALL 6 col0, 70 AS col2
----
6
70

query I rowsort
SELECT ALL + 35 + + 46
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT 43 * COUNT( ALL + 64 )
----
43

skipif mysql # not compatible
query I rowsort label-2382
SELECT 43 * COUNT ( ALL + 64 )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2383
SELECT + COUNT( * ) * 65 DIV + + 15 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2383
SELECT + COUNT ( * ) * 65 / + + 15 AS col2
----
4

query II rowsort
SELECT - 67 AS col0, + 97 + - - 94 + + 91 * + 60 AS col0
----
-67
5651

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

skipif mysql # not compatible
query I rowsort label-2385
SELECT + CAST ( - - 45 AS INTEGER ) * - COUNT ( * )
----
-45

query I rowsort
SELECT ALL - ( - 85 ) + - + 75 * - 92
----
6985

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT - CASE - 48 WHEN - 55 THEN NULL ELSE 56 - - COUNT( * ) END * - 17
----
969

skipif mysql # not compatible
query I rowsort label-2387
SELECT - CASE - 48 WHEN - 55 THEN NULL ELSE 56 - - COUNT ( * ) END * - 17
----
969

query I rowsort
SELECT - 44 * - + 13 AS col0
----
572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2389
SELECT ALL - + 23 / + 55 - 21 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL - + 23 / + 55 - 21 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2390
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) * + 78 * + 0 + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2390
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + 78 * + 0 + + 59
----
NULL

query I rowsort
SELECT DISTINCT - 41 + + 15 AS col2
----
-26

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

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

query I rowsort
SELECT DISTINCT 86 + + 72 * - - 3 * + 9 AS col0
----
2030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2394
SELECT DISTINCT - COALESCE ( + 12, COALESCE ( 86, + 4 - 60, - CAST( COUNT( * ) AS SIGNED ) ) + + 44 * 11, + 41 )
----
-12

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT - COALESCE ( + 12, COALESCE ( 86, + 4 - 60, - CAST ( COUNT ( * ) AS INTEGER ) ) + + 44 * 11, + 41 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2395
SELECT ALL COUNT( * ) - - 18 + CAST( NULL AS DECIMAL ) / + 78 + 25 * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL COUNT ( * ) - - 18 + CAST ( NULL AS REAL ) / + 78 + 25 * 15
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2396
SELECT MAX ( DISTINCT - 0 ) * - + COUNT ( + 15 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2397
SELECT MIN( ALL 0 ) + CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2397
SELECT MIN ( ALL 0 ) + CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) + 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT DISTINCT + 43 - - 76 * - 11 * - + 84 * - COUNT( 40 )
----
-70181

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT + 43 - - 76 * - 11 * - + 84 * - COUNT ( 40 )
----
-70181

query I rowsort
SELECT 16 * 58 + 71 * 79
----
6537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2400
SELECT ALL MAX( CAST( NULL AS SIGNED ) ) - + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL MAX ( CAST ( NULL AS INTEGER ) ) - + 44 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT COUNT( ALL - 35 ) * 90 * NULLIF ( 60, + 55 ) * + 88
----
475200

skipif mysql # not compatible
query I rowsort label-2401
SELECT COUNT ( ALL - 35 ) * 90 * NULLIF ( 60, + 55 ) * + 88
----
475200

query I rowsort
SELECT ALL + 26 * + 9
----
234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2403
SELECT COALESCE ( + 24, 85, - - CAST( NULL AS SIGNED ) - - 29 ) * - 74 AS col1
----
-1776

skipif mysql # not compatible
query I rowsort label-2403
SELECT COALESCE ( + 24, 85, - - CAST ( NULL AS INTEGER ) - - 29 ) * - 74 AS col1
----
-1776

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT 90 * - MIN( - 7 ) AS col0
----
630

skipif mysql # not compatible
query I rowsort label-2404
SELECT 90 * - MIN ( - 7 ) AS col0
----
630

query I rowsort
SELECT + 15 - - - 72 + + 63 * 32 + + 18 col1
----
1977

onlyif mysql # DIV for integer division: 
query I rowsort label-2406
SELECT - 90 DIV + 41 + + 61 DIV - - ( 70 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2406
SELECT - 90 / + 41 + + 61 / - - ( 70 ) AS col1
----
-2

query I rowsort
SELECT - ( + CASE 8 WHEN + 67 THEN + 93 END ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 58 * - - 81
----
4698

query I rowsort
SELECT DISTINCT 17 * - 74 AS col1
----
-1258

onlyif mysql # DIV for integer division: 
query I rowsort label-2410
SELECT + 56 DIV + 76 + - + 71 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-2410
SELECT + 56 / + 76 + - + 71 AS col0
----
-71

query II rowsort
SELECT 9 - + 76, - 43 AS col1
----
-67
-43

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2413
SELECT ALL 62 + ( - 38 ) * - - COALESCE ( + 78, - 95 + COUNT( * ), 61 * + CASE 4 WHEN 24 + - 81 THEN - ( 1 ) * + CAST( 7 * 4 AS SIGNED ) END ) * + NULLIF ( + COUNT( * ) * + COUNT( * ), + COUNT( DISTINCT CAST( - 83 AS DECIMAL ) ) / + 27 ) AS col1
----
-2902

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL 62 + ( - 38 ) * - - COALESCE ( + 78, - 95 + COUNT ( * ), 61 * + CASE 4 WHEN 24 + - 81 THEN - ( 1 ) * + CAST ( 7 * 4 AS INTEGER ) END ) * + NULLIF ( + COUNT ( * ) * + COUNT ( * ), + COUNT ( DISTINCT CAST ( - 83 AS REAL ) ) / + 27 ) AS col1
----
-2902

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2414
SELECT - 6 * - 79 * CAST( - + 68 AS SIGNED ) * - 4 AS col0
----
128928

skipif mysql # not compatible
query I rowsort label-2414
SELECT - 6 * - 79 * CAST ( - + 68 AS INTEGER ) * - 4 AS col0
----
128928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2415
SELECT - CASE - ( - 9 ) WHEN - 24 THEN NULL ELSE CASE COUNT( * ) WHEN + COUNT( * ) * 52 THEN NULL WHEN - COUNT( - 73 ) * - COUNT( * ) THEN + ( 54 ) DIV - 66 ELSE NULL END END
----
0

skipif mysql # not compatible
query I rowsort label-2415
SELECT - CASE - ( - 9 ) WHEN - 24 THEN NULL ELSE CASE COUNT ( * ) WHEN + COUNT ( * ) * 52 THEN NULL WHEN - COUNT ( - 73 ) * - COUNT ( * ) THEN + ( 54 ) / - 66 ELSE NULL END END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT DISTINCT SUM( DISTINCT 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT SUM ( DISTINCT 97 ) AS col1
----
97

query II rowsort
SELECT + - 92 + - 21 AS col1, - 11 col1
----
-113
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2418
SELECT ALL + - 21 * - - COUNT( * ) DIV NULLIF ( + 64, + 34 ) + + ( 20 + + CAST( + 38 + - 85 * AVG ( DISTINCT 95 ) AS SIGNED ) ) DIV 30
----
-267

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL + - 21 * - - COUNT ( * ) / NULLIF ( + 64, + 34 ) + + ( 20 + + CAST ( + 38 + - 85 * AVG ( DISTINCT 95 ) AS INTEGER ) ) / 30
----
-267

query II rowsort
SELECT ALL + 12 + + 85 AS col2, - 13
----
97
-13

query I rowsort
SELECT ALL - 29 * + + 15 col1
----
-435

query I rowsort
SELECT - 28 * - 31 AS col0
----
868

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT COALESCE ( - COUNT( * ), 98 + 52 + - 44 * 59 * - COUNT( 98 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2422
SELECT COALESCE ( - COUNT ( * ), 98 + 52 + - 44 * 59 * - COUNT ( 98 ) ) AS col1
----
-1

query II rowsort
SELECT 30 * 38 + 45 AS col1, 56 AS col2
----
1185
56

query I rowsort
SELECT - 97 * - 41
----
3977

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

query I rowsort
SELECT - ( - + 18 ) * 48
----
864

query I rowsort
SELECT + 74 * + 44
----
3256

onlyif mysql # DIV for integer division: 
query I rowsort label-2428
SELECT DISTINCT - 67 DIV - 39
----
1

skipif mysql # not compatible
query I rowsort label-2428
SELECT DISTINCT - 67 / - 39
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT DISTINCT + NULLIF ( + + 7, COUNT( * ) + + - 17 )
----
7

skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT + NULLIF ( + + 7, COUNT ( * ) + + - 17 )
----
7

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

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

query I rowsort
SELECT ALL ( + 97 ) * 44 col0
----
4268

query I rowsort
SELECT - 38 * - 87
----
3306

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT - COUNT( * ) + + - 57 + + 67
----
9

skipif mysql # not compatible
query I rowsort label-2435
SELECT - COUNT ( * ) + + - 57 + + 67
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2436
SELECT 86 * MAX( - 86 ) + - 36 + + - 53 DIV COUNT( * ) AS col0
----
-7485

skipif mysql # not compatible
query I rowsort label-2436
SELECT 86 * MAX ( - 86 ) + - 36 + + - 53 / COUNT ( * ) AS col0
----
-7485

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT ALL + MAX( ( + - ( - - 10 ) ) )
----
-10

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL + MAX ( ( + - ( - - 10 ) ) )
----
-10

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

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

query I rowsort
SELECT - 19 + ( + COALESCE ( + + 91, + 84 * + 5 ) ) * + 42 AS col2
----
3803

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT - + COUNT( - COALESCE ( 90, 1 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2440
SELECT - + COUNT ( - COALESCE ( 90, 1 ) ) AS col1
----
-1

query I rowsort
SELECT ALL - + 32 + 27 + 85 AS col1
----
80

query I rowsort
SELECT DISTINCT - 1 * - 35 AS col0
----
35

query I rowsort
SELECT ALL - + 56 + 8 col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-2444
SELECT - 23 col2, 92 * 81 * MIN( - 40 ) + + ( 49 )
----
-23
-298031

skipif mysql # not compatible
query II rowsort label-2444
SELECT - 23 col2, 92 * 81 * MIN ( - 40 ) + + ( 49 )
----
-23
-298031

query I rowsort
SELECT DISTINCT + 35 + - + NULLIF ( + 88, + 67 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT ALL + MIN( + + 41 ) + - + 80 + 21 + - - 7 * 93 * NULLIF ( 48 + - 33, - MAX( DISTINCT + 27 ) * 22 ) AS col0
----
9747

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL + MIN ( + + 41 ) + - + 80 + 21 + - - 7 * 93 * NULLIF ( 48 + - 33, - MAX ( DISTINCT + 27 ) * 22 ) AS col0
----
9747

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT + - ( - MAX( ALL + 3 ) ) + - 45 + 79 + - 53 * - 51 AS col1
----
2740

skipif mysql # not compatible
query I rowsort label-2448
SELECT + - ( - MAX ( ALL + 3 ) ) + - 45 + 79 + - 53 * - 51 AS col1
----
2740

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT DISTINCT 69 * - - 63 - - + COUNT( * ) AS col2
----
4348

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT 69 * - - 63 - - + COUNT ( * ) AS col2
----
4348

query I rowsort
SELECT + + 21 * + 66 col0
----
1386

query I rowsort
SELECT DISTINCT 91 - + 92
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2452
SELECT DISTINCT CASE + 56 WHEN + - CASE - 37 WHEN + 69 THEN - ( + 64 ) * 25 WHEN - 80 THEN NULL ELSE NULL END + + 29 THEN ( ( NULLIF ( + 81, - 85 ) ) ) * + CAST( - 93 AS SIGNED ) WHEN ( 40 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT CASE + 56 WHEN + - CASE - 37 WHEN + 69 THEN - ( + 64 ) * 25 WHEN - 80 THEN NULL ELSE NULL END + + 29 THEN ( ( NULLIF ( + 81, - 85 ) ) ) * + CAST ( - 93 AS INTEGER ) WHEN ( 40 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT DISTINCT 35 * + 90 * - + ( - ( - + COUNT( * ) ) )
----
-3150

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT 35 * + 90 * - + ( - ( - + COUNT ( * ) ) )
----
-3150

query I rowsort
SELECT ALL 49 * + - 44 col0
----
-2156

query II rowsort
SELECT 63, - 14 col0
----
63
-14

query I rowsort
SELECT + 16 * + - 46 * + - ( - 98 ) * - 93 * 58 - 36 AS col2
----
389058396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2457
SELECT CAST( + + 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-2457
SELECT CAST ( + + 21 AS INTEGER )
----
21

query II rowsort
SELECT + 67, + 26 AS col1
----
67
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2459
SELECT ( + CAST( NULL AS DECIMAL ) ) * + + 90 - CASE WHEN NOT ( 41 ) IS NOT NULL THEN - 41 + + 32 * 94 END + - 62 * 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT ( + CAST ( NULL AS REAL ) ) * + + 90 - CASE WHEN NOT ( 41 ) IS NOT NULL THEN - 41 + + 32 * 94 END + - 62 * 30 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2460
SELECT - 74 * CAST( - 10 AS SIGNED )
----
740

skipif mysql # not compatible
query I rowsort label-2460
SELECT - 74 * CAST ( - 10 AS INTEGER )
----
740

query I rowsort
SELECT + 86 * - + 65 AS col0
----
-5590

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

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

query II rowsort
SELECT ALL + 29 AS col2, + 42 + + 10
----
29
52

query I rowsort
SELECT ALL - 63 * + 66 * + + 61 AS col0
----
-253638

onlyif mysql # DIV for integer division: 
query I rowsort label-2465
SELECT - 38 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-2465
SELECT - 38 / + 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT ALL 44 * - 85 * - - ( - ( + - COUNT( * ) ) )
----
-3740

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL 44 * - 85 * - - ( - ( + - COUNT ( * ) ) )
----
-3740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2467
SELECT DISTINCT 14 DIV + - 80 + - CASE 37 WHEN 21 DIV - 54 * 77 + 63 THEN NULL ELSE COUNT( + 47 ) END
----
-1

skipif mysql # not compatible
query I rowsort label-2467
SELECT DISTINCT 14 / + - 80 + - CASE 37 WHEN 21 / - 54 * 77 + 63 THEN NULL ELSE COUNT ( + 47 ) END
----
-1

query I rowsort
SELECT DISTINCT 61 * + 87 * + 36 * + 57 * 27
----
294029028

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT - 32 + 6 - - COALESCE ( ( - + 99 ), + 36 - - 38 ) + 20 * + ( SUM( DISTINCT + 86 ) ) AS col1
----
1595

skipif mysql # not compatible
query I rowsort label-2469
SELECT - 32 + 6 - - COALESCE ( ( - + 99 ), + 36 - - 38 ) + 20 * + ( SUM ( DISTINCT + 86 ) ) AS col1
----
1595

onlyif mysql # DIV for integer division: 
query I rowsort label-2470
SELECT DISTINCT - 66 DIV 39 + + 84
----
83

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT - 66 / 39 + + 84
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2471
SELECT 91 * - - CAST( 8 AS SIGNED ) + - 42
----
686

skipif mysql # not compatible
query I rowsort label-2471
SELECT 91 * - - CAST ( 8 AS INTEGER ) + - 42
----
686

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT DISTINCT + MAX( - COALESCE ( + 44, - ( + 46 ) ) ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT + MAX ( - COALESCE ( + 44, - ( + 46 ) ) ) AS col0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT DISTINCT - 84 * 95 + - ( - + ( - AVG ( ALL + CASE + CAST( + ( 31 ) AS SIGNED ) WHEN - 54 THEN 62 + 9 END ) ) ) * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT - 84 * 95 + - ( - + ( - AVG ( ALL + CASE + CAST ( + ( 31 ) AS INTEGER ) WHEN - 54 THEN 62 + 9 END ) ) ) * + 66
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2474
SELECT - 11 DIV - 64 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2474
SELECT - 11 / - 64 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query III rowsort label-2475
SELECT ALL + - 55 AS col0, 53 + 16 * + 98 AS col0, - 70 - - + COUNT( DISTINCT + 98 ) * 19
----
-55
1621
-51

skipif mysql # not compatible
query III rowsort label-2475
SELECT ALL + - 55 AS col0, 53 + 16 * + 98 AS col0, - 70 - - + COUNT ( DISTINCT + 98 ) * 19
----
-55
1621
-51

query II rowsort
SELECT + 79 AS col0, - 35
----
79
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT ALL + + 84 * - 20 + - COUNT( DISTINCT 94 ) + 8 AS col1
----
-1673

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL + + 84 * - 20 + - COUNT ( DISTINCT 94 ) + 8 AS col1
----
-1673

query I rowsort
SELECT ALL + NULLIF ( 52, 48 ) * + + 25 * - 46 * - 1 + - 89 * 65
----
54015

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT - - NULLIF ( - 3, + 19 - + - MIN( - 74 ) ) * - - 20 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-2480
SELECT - - NULLIF ( - 3, + 19 - + - MIN ( - 74 ) ) * - - 20 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT ALL - 93 * + COUNT( * ) + + + 69
----
-24

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL - 93 * + COUNT ( * ) + + + 69
----
-24

query II rowsort
SELECT - + 85 AS col1, 65 AS col2
----
-85
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT ALL - 56 * 17 + + + 59 + + 40 * + MAX( DISTINCT + - COALESCE ( + 17, + 5 ) ) * 75 AS col0
----
-51893

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL - 56 * 17 + + + 59 + + 40 * + MAX ( DISTINCT + - COALESCE ( + 17, + 5 ) ) * 75 AS col0
----
-51893

query I rowsort
SELECT DISTINCT - 12 * - 61 col2
----
732

onlyif mysql # DIV for integer division: 
query II rowsort label-2485
SELECT DISTINCT + 73 DIV + 64 AS col1, 17
----
1
17

skipif mysql # not compatible
query II rowsort label-2485
SELECT DISTINCT + 73 / + 64 AS col1, 17
----
1
17

query I rowsort
SELECT + 21 + - + 29 AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2487
SELECT ALL + 29 - + CASE NULLIF ( - 46, - CAST( NULL AS SIGNED ) + 71 ) WHEN + COALESCE ( NULLIF ( 12, ( 93 ) ), + ( - COUNT( * ) ) + 27, - 12 + + 64, 33 - 40 ) THEN NULL WHEN 24 THEN - 57 - + AVG ( - 92 + 74 * 51 ) END + - MAX( DISTINCT + 97 + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL + 29 - + CASE NULLIF ( - 46, - CAST ( NULL AS INTEGER ) + 71 ) WHEN + COALESCE ( NULLIF ( 12, ( 93 ) ), + ( - COUNT ( * ) ) + 27, - 12 + + 64, 33 - 40 ) THEN NULL WHEN 24 THEN - 57 - + AVG ( - 92 + 74 * 51 ) END + - MAX ( DISTINCT + 97 + 1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2488
SELECT 65 DIV 26 DIV + - 85
----
0

skipif mysql # not compatible
query I rowsort label-2488
SELECT 65 / 26 / + - 85
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2490
SELECT DISTINCT 28 DIV - ( + 76 )
----
0

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT 28 / - ( + 76 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT COALESCE ( + - COUNT( * ), + + 60 ) * 52
----
-52

skipif mysql # not compatible
query I rowsort label-2491
SELECT COALESCE ( + - COUNT ( * ), + + 60 ) * 52
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT SUM( + - ( - + 46 ) ) + - + 32
----
14

skipif mysql # not compatible
query I rowsort label-2492
SELECT SUM ( + - ( - + 46 ) ) + - + 32
----
14

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2496
SELECT ALL COUNT( * ) * - - 65 col1, 82
----
65
82

skipif mysql # not compatible
query II rowsort label-2496
SELECT ALL COUNT ( * ) * - - 65 col1, 82
----
65
82

query I rowsort
SELECT 19 + + + 40 col0
----
59

query I rowsort
SELECT ALL 20 * + - 41
----
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT ALL MIN( - 31 ) + + 67 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL MIN ( - 31 ) + + 67 AS col0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2500
SELECT 23 * COUNT( * ) * MIN( ALL + + 88 ) + + 71 AS col2, 11 DIV ( COALESCE ( 13, + ( 51 ) * - 45 ) )
----
2095
0

skipif mysql # not compatible
query II rowsort label-2500
SELECT 23 * COUNT ( * ) * MIN ( ALL + + 88 ) + + 71 AS col2, 11 / ( COALESCE ( 13, + ( 51 ) * - 45 ) )
----
2095
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2501
SELECT DISTINCT COUNT( * ) * + CAST( NULL AS SIGNED ), 7 AS col0
----
NULL
7

skipif mysql # not compatible
query II rowsort label-2501
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS INTEGER ), 7 AS col0
----
NULL
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2502
SELECT ALL + COUNT( * ) * - 72 AS col2, - 48 * - 55 * MIN( ALL + CAST( NULL AS SIGNED ) ) + - - MIN( 53 ) AS col1
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-2502
SELECT ALL + COUNT ( * ) * - 72 AS col2, - 48 * - 55 * MIN ( ALL + CAST ( NULL AS INTEGER ) ) + - - MIN ( 53 ) AS col1
----
-72
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2503
SELECT DISTINCT ( - 26 ) + ( COUNT( * ) ) - - CAST( NULL AS DECIMAL ) * + + 15 * + 87 + + 3 * 88 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT ( - 26 ) + ( COUNT ( * ) ) - - CAST ( NULL AS REAL ) * + + 15 * + 87 + + 3 * 88 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT ALL - COALESCE ( + - 4, 64 + - + 85 * + CASE + + COUNT( * ) WHEN - 29 * - 53 THEN - 31 - 88 END * - 98 ) + ( 8 )
----
12

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL - COALESCE ( + - 4, 64 + - + 85 * + CASE + + COUNT ( * ) WHEN - 29 * - 53 THEN - 31 - 88 END * - 98 ) + ( 8 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2505
SELECT 15 * - COUNT( * ) - - COALESCE ( COUNT( * ), - + NULLIF ( - - CASE + 65 WHEN + 47 + + 25 THEN - NULLIF ( - 36, - 12 ) END, - 61 * - 53 ) * CAST( NULL AS SIGNED ) ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-2505
SELECT 15 * - COUNT ( * ) - - COALESCE ( COUNT ( * ), - + NULLIF ( - - CASE + 65 WHEN + 47 + + 25 THEN - NULLIF ( - 36, - 12 ) END, - 61 * - 53 ) * CAST ( NULL AS INTEGER ) ) AS col1
----
-14

query I rowsort
SELECT DISTINCT 1 + + 75 + 98 col1
----
174

query I rowsort
SELECT ALL - 51 * - - ( 52 )
----
-2652

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT 94 + - COUNT( * ) * - + ( 64 )
----
158

skipif mysql # not compatible
query I rowsort label-2508
SELECT 94 + - COUNT ( * ) * - + ( 64 )
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT - 2 * - + COUNT( ALL - - 88 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2509
SELECT - 2 * - + COUNT ( ALL - - 88 ) AS col2
----
2

query I rowsort
SELECT 53 * + ( - 83 ) - 10 - 67 AS col2
----
-4476

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2511
SELECT + 81 * + 44 + + 94 DIV 47 * + COUNT( * ) + - 17
----
3549

skipif mysql # not compatible
query I rowsort label-2511
SELECT + 81 * + 44 + + 94 / 47 * + COUNT ( * ) + - 17
----
3549

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2512
SELECT DISTINCT + 69 DIV + 69 * - ( COUNT( * ) ) + 15
----
14

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT + 69 / + 69 * - ( COUNT ( * ) ) + 15
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT - COUNT( * ) + + 31 + + + 77 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-2513
SELECT - COUNT ( * ) + + 31 + + + 77 AS col2
----
107

query I rowsort
SELECT ALL - + ( - 64 ) - - + 41
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-2515
SELECT ALL + + 14 DIV + 10 - + 81 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL + + 14 / + 10 - + 81 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT ALL + 24 / + MAX( + + 35 ) / + + ( CASE + + 62 WHEN + 1 THEN + 74 * + 59 - - AVG ( ALL 58 + 37 ) END ) + + COUNT( 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL + 24 / + MAX ( + + 35 ) / + + ( CASE + + 62 WHEN + 1 THEN + 74 * + 59 - - AVG ( ALL 58 + 37 ) END ) + + COUNT ( 72 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT ALL - + COUNT( * ) * 57 + - 6 + + ( + 50 ) * + COALESCE ( COUNT( * ), + 12 ) * CASE 11 WHEN 87 THEN CASE - 85 WHEN + 53 / 43 THEN + 63 + - MAX( ALL + 19 ) END ELSE NULL END - + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL - + COUNT ( * ) * 57 + - 6 + + ( + 50 ) * + COALESCE ( COUNT ( * ), + 12 ) * CASE 11 WHEN 87 THEN CASE - 85 WHEN + 53 / 43 THEN + 63 + - MAX ( ALL + 19 ) END ELSE NULL END - + 28 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT + 61 + - - 52 * + + 76 * - COUNT( + 47 ) AS col0
----
-3891

skipif mysql # not compatible
query I rowsort label-2518
SELECT + 61 + - - 52 * + + 76 * - COUNT ( + 47 ) AS col0
----
-3891

query I rowsort
SELECT - 75 + - 23
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2520
SELECT + COUNT( * ) * - CASE + - 85 WHEN - + NULLIF ( - COUNT( * ), - - COUNT( * ) + ( MIN( DISTINCT + ( - 29 ) ) ) * 23 ) THEN - CAST( NULL AS SIGNED ) WHEN 14 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT + COUNT ( * ) * - CASE + - 85 WHEN - + NULLIF ( - COUNT ( * ), - - COUNT ( * ) + ( MIN ( DISTINCT + ( - 29 ) ) ) * 23 ) THEN - CAST ( NULL AS INTEGER ) WHEN 14 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2521
SELECT 2 + + 27 DIV 57 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2521
SELECT 2 + + 27 / 57 AS col2
----
2

query I rowsort
SELECT 10 * - + 76
----
-760

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2523
SELECT 13 + CAST( 54 AS SIGNED ) * 41 DIV + NULLIF ( 51, 53 + - - 51 ) + + 51
----
107

skipif mysql # not compatible
query I rowsort label-2523
SELECT 13 + CAST ( 54 AS INTEGER ) * 41 / + NULLIF ( 51, 53 + - - 51 ) + + 51
----
107

query I rowsort
SELECT DISTINCT + 80 * + + 34 AS col1
----
2720

query I rowsort
SELECT DISTINCT + 8 * 81 AS col0
----
648

onlyif mysql # DIV for integer division: 
query I rowsort label-2526
SELECT 0 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-2526
SELECT 0 / - 88
----
0

query I rowsort
SELECT DISTINCT + 90 + - 66 * + 41 * - 92
----
249042

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT DISTINCT MIN( DISTINCT - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT MIN ( DISTINCT - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-2529
SELECT DISTINCT 50 + COUNT( ALL 12 ) AS col1, 49 * - 40 * + + 4 * + 24 + + ( - ( - 47 ) ) * + 1
----
51
-188113

skipif mysql # not compatible
query II rowsort label-2529
SELECT DISTINCT 50 + COUNT ( ALL 12 ) AS col1, 49 * - 40 * + + 4 * + 24 + + ( - ( - 47 ) ) * + 1
----
51
-188113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2530
SELECT ALL ( + COUNT( * ) ) + - - 87 + - + 88 DIV + 56 DIV - + ( ( - COUNT( * ) ) ) + - 53 * - 93
----
5016

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL ( + COUNT ( * ) ) + - - 87 + - + 88 / + 56 / - + ( ( - COUNT ( * ) ) ) + - 53 * - 93
----
5016

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2532
SELECT - 76 AS col0, - COUNT( * ) * - - 54 AS col0
----
-76
-54

skipif mysql # not compatible
query II rowsort label-2532
SELECT - 76 AS col0, - COUNT ( * ) * - - 54 AS col0
----
-76
-54

query I rowsort
SELECT NULLIF ( - 68, - 85 ) + 14 + 13 * ( - 41 ) * - 43 - 91
----
22774

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

skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT + COUNT ( * ) / - 12
----
0

query I rowsort
SELECT ALL 14 + + COALESCE ( + - 57, 18 ) * - ( ( - 17 ) ) AS col2
----
-955

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT ALL + 45 * - 39 + 0 DIV + 49 * + - 28 AS col0
----
-1755

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL + 45 * - 39 + 0 / + 49 * + - 28 AS col0
----
-1755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2537
SELECT ALL + CAST( + 99 AS SIGNED ) * + 13 * - CAST( - 27 AS SIGNED ) + COUNT( * ) * 1 + 19 * - 44
----
33914

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL + CAST ( + 99 AS INTEGER ) * + 13 * - CAST ( - 27 AS INTEGER ) + COUNT ( * ) * 1 + 19 * - 44
----
33914

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

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL + COUNT ( * ) * - - 56 AS col0
----
56

query I rowsort
SELECT DISTINCT 72 * + 58 * - 65 * + - 73
----
19815120

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT - ( + 93 ) + + 63 * + 69 + + + 21 + + - 70 + + 69 + - COUNT( ALL 6 ) * - NULLIF ( 16 + - 54, 50 )
----
4236

skipif mysql # not compatible
query I rowsort label-2540
SELECT - ( + 93 ) + + 63 * + 69 + + + 21 + + - 70 + + 69 + - COUNT ( ALL 6 ) * - NULLIF ( 16 + - 54, 50 )
----
4236

query II rowsort
SELECT DISTINCT - 58 AS col0, + 24
----
-58
24

query I rowsort
SELECT + + CASE + 80 WHEN - 43 + - + ( + + 56 ) * + 71 * - + ( - 96 ) * - 74 THEN NULL ELSE 63 END * + 7 AS col0
----
441

query I rowsort
SELECT ALL + 39 * + 92 AS col2
----
3588

query I rowsort
SELECT DISTINCT + + 12 * 66 AS col1
----
792

query II rowsort
SELECT ALL + 89 AS col2, - 14 * - 7 AS col2
----
89
98

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

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

query I rowsort
SELECT ALL 15 * - 76 AS col1
----
-1140

onlyif mysql # DIV for integer division: 
query II rowsort label-2548
SELECT - - 81 col2, COALESCE ( + - CASE + 77 WHEN + 77 + + 48 - + + 93 + - - 14 + + 63 * - 60 THEN NULL ELSE - 34 END, 21 ) DIV 39 + 78 AS col1
----
81
78

skipif mysql # not compatible
query II rowsort label-2548
SELECT - - 81 col2, COALESCE ( + - CASE + 77 WHEN + 77 + + 48 - + + 93 + - - 14 + + 63 * - 60 THEN NULL ELSE - 34 END, 21 ) / 39 + 78 AS col1
----
81
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT - NULLIF ( + 60, - 81 * + + AVG ( ALL - 76 ) / + 91 - + COUNT( DISTINCT - + 9 ) + - 32 * 76 )
----
-60

skipif mysql # not compatible
query I rowsort label-2549
SELECT - NULLIF ( + 60, - 81 * + + AVG ( ALL - 76 ) / + 91 - + COUNT ( DISTINCT - + 9 ) + - 32 * 76 )
----
-60

query I rowsort
SELECT + 3 * 1 + + 58
----
61

query I rowsort
SELECT - 72 * + 41 * - 45
----
132840

query I rowsort
SELECT - + COALESCE ( - - COALESCE ( - + 28, 47 ), + 30 ) AS col0
----
28

query II rowsort
SELECT 40 AS col1, 79 - + ( + 34 ) AS col0
----
40
45

onlyif mysql # aggregate syntax: 
query II rowsort label-2554
SELECT - 45 + + COUNT( * ) AS col1, + COUNT( * ) AS col0
----
-44
1

skipif mysql # not compatible
query II rowsort label-2554
SELECT - 45 + + COUNT ( * ) AS col1, + COUNT ( * ) AS col0
----
-44
1

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

skipif mysql # not compatible
query I rowsort label-2555
SELECT - 21 * - 91 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 27 + 46 AS col0
----
73

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

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

query I rowsort
SELECT + 9 + - 45
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-2559
SELECT DISTINCT MIN( DISTINCT - 20 ), - ( + 30 ) AS col2
----
-20
-30

skipif mysql # not compatible
query II rowsort label-2559
SELECT DISTINCT MIN ( DISTINCT - 20 ), - ( + 30 ) AS col2
----
-20
-30

query II rowsort
SELECT - 91 - - 98 AS col2, ( 55 )
----
7
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT DISTINCT + 59 + + + 6 + + + COUNT( * ) + - 33 * + ( + + 84 )
----
-2706

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT + 59 + + + 6 + + + COUNT ( * ) + - 33 * + ( + + 84 )
----
-2706

query I rowsort
SELECT ALL - NULLIF ( 87, - 73 ) + 84 + 19
----
16

query I rowsort
SELECT - 79 + 64 * - 69 col2
----
-4495

query I rowsort
SELECT - 55 + + + 38
----
-17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT DISTINCT + CASE - 33 WHEN 31 THEN + COUNT( * ) + + - 74 ELSE 24 END * + 92 AS col1
----
2208

skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT + CASE - 33 WHEN 31 THEN + COUNT ( * ) + + - 74 ELSE 24 END * + 92 AS col1
----
2208

query I rowsort
SELECT ALL - 5 + - 74
----
-79

query II rowsort
SELECT DISTINCT ( - NULLIF ( - 67, - - 61 ) ), 4 - 89 + - 3 AS col1
----
67
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-2569
SELECT ALL 1 DIV + + 9 - 44 col2
----
-44

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL 1 / + + 9 - 44 col2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2570
SELECT - COUNT( * ) * - + 70 DIV - 30 col0
----
-2

skipif mysql # not compatible
query I rowsort label-2570
SELECT - COUNT ( * ) * - + 70 / - 30 col0
----
-2

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

query II rowsort
SELECT ( 97 ), + 92 AS col1
----
97
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2573
SELECT - 1 + + MIN( ALL - - CAST( - 12 AS SIGNED ) )
----
-13

skipif mysql # not compatible
query I rowsort label-2573
SELECT - 1 + + MIN ( ALL - - CAST ( - 12 AS INTEGER ) )
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-2574
SELECT ( 0 ), - COUNT( * ) - SUM( - 47 ) col2
----
0
46

skipif mysql # not compatible
query II rowsort label-2574
SELECT ( 0 ), - COUNT ( * ) - SUM ( - 47 ) col2
----
0
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT + SUM( + - ( - 93 ) )
----
93

skipif mysql # not compatible
query I rowsort label-2575
SELECT + SUM ( + - ( - 93 ) )
----
93

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

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT + + COUNT ( ALL - 68 ) AS col1
----
1

query I rowsort
SELECT - - 29 * 49 AS col2
----
1421

query I rowsort
SELECT + - 24 * 67 AS col2
----
-1608

query I rowsort
SELECT DISTINCT - - 72 * + 95
----
6840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2580
SELECT + + 59 * 97 DIV + + 24 + MAX( DISTINCT - 66 ) - + 24
----
148

skipif mysql # not compatible
query I rowsort label-2580
SELECT + + 59 * 97 / + + 24 + MAX ( DISTINCT - 66 ) - + 24
----
148

query I rowsort
SELECT ALL - 69 * 50 AS col2
----
-3450

query II rowsort
SELECT - 93 + - + 99 AS col2, + 78 AS col2
----
-192
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2583
SELECT ALL - + COUNT( * ) / - CASE + MIN( + 76 ) WHEN + - CAST( - 61 AS SIGNED ) THEN - 66 - + - 9 ELSE NULL END - - NULLIF ( + ( - 9 ), + COALESCE ( 4, 89 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL - + COUNT ( * ) / - CASE + MIN ( + 76 ) WHEN + - CAST ( - 61 AS INTEGER ) THEN - 66 - + - 9 ELSE NULL END - - NULLIF ( + ( - 9 ), + COALESCE ( 4, 89 ) )
----
NULL

query II rowsort
SELECT ALL + ( 3 ) AS col1, 26
----
3
26

query I rowsort
SELECT DISTINCT - 24 * + ( + + 23 ) col1
----
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT ALL + CASE + COUNT( * ) WHEN COUNT( * ) THEN - 59 WHEN + 83 + + 96 THEN NULL END AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL + CASE + COUNT ( * ) WHEN COUNT ( * ) THEN - 59 WHEN + 83 + + 96 THEN NULL END AS col1
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-2587
SELECT + 20 DIV 16, - 1 AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-2587
SELECT + 20 / 16, - 1 AS col2
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT ALL - + 30 * - MIN( + ( + 81 ) ) + + MIN( 12 ) AS col2
----
2442

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL - + 30 * - MIN ( + ( + 81 ) ) + + MIN ( 12 ) AS col2
----
2442

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT - COUNT( * ) * + + 83 + + - 12 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-2589
SELECT - COUNT ( * ) * + + 83 + + - 12 AS col2
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2590
SELECT ALL 4 * NULLIF ( + 78, MIN( ALL + 10 ) * - - CAST( NULL AS SIGNED ) )
----
312

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL 4 * NULLIF ( + 78, MIN ( ALL + 10 ) * - - CAST ( NULL AS INTEGER ) )
----
312

query I rowsort
SELECT - 73 * 12 * - 54
----
47304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2592
SELECT + - 58 * - + ( - ( + CAST( - 34 AS SIGNED ) ) ) * - 55 + - 46
----
-108506

skipif mysql # not compatible
query I rowsort label-2592
SELECT + - 58 * - + ( - ( + CAST ( - 34 AS INTEGER ) ) ) * - 55 + - 46
----
-108506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2593
SELECT ALL - 93 * + + MIN( ALL - 64 ) + 70 DIV - 27
----
5950

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL - 93 * + + MIN ( ALL - 64 ) + 70 / - 27
----
5950

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT + - ( + - 30 ) * - 29 + + + COUNT( * )
----
-869

skipif mysql # not compatible
query I rowsort label-2594
SELECT + - ( + - 30 ) * - 29 + + + COUNT ( * )
----
-869

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT DISTINCT 88 * COUNT( - + 21 ) + + 29 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT 88 * COUNT ( - + 21 ) + + 29 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT ALL + - COALESCE ( + ( 65 ), + - 50 - + 86 + + 84 + - + COUNT( * ) )
----
-65

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL + - COALESCE ( + ( 65 ), + - 50 - + 86 + + 84 + - + COUNT ( * ) )
----
-65

query I rowsort
SELECT + - 87 + + - 47 AS col2
----
-134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2598
SELECT ALL + MIN( + CAST( NULL AS SIGNED ) ) * - COUNT( * ) * - - 29 * + 78 / - 94 + + - COUNT( * ) - - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL + MIN ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) * - - 29 * + 78 / - 94 + + - COUNT ( * ) - - 47 AS col0
----
NULL

query I rowsort
SELECT + 22 * 67 AS col2
----
1474

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

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

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

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

query I rowsort
SELECT ALL 45 * + 47
----
2115

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT - CASE COUNT( * ) WHEN 14 * - COALESCE ( - + 45, + + 43 * + - COUNT( * ) + 18 * - 77 * - 80 ) * 61 THEN + 83 WHEN + 1 + 48 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2603
SELECT - CASE COUNT ( * ) WHEN 14 * - COALESCE ( - + 45, + + 43 * + - COUNT ( * ) + 18 * - 77 * - 80 ) * 61 THEN + 83 WHEN + 1 + 48 THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2604
SELECT + 86 / + COUNT ( * )
----
86

query II rowsort
SELECT + 92 + - - 57 * - 31 AS col2, 36 - + 70 AS col0
----
-1675
-34

query I rowsort
SELECT + 3 * + 22
----
66

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2608
SELECT ALL CASE WHEN NOT NULL IS NOT NULL THEN 29 WHEN 33 - + 24 IN ( + 6 - - COUNT( * ) + COUNT( - CAST( NULL AS SIGNED ) ) * - COUNT( * ) ) THEN 92 ELSE NULL END + - 37
----
-8

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL CASE WHEN NOT NULL IS NOT NULL THEN 29 WHEN 33 - + 24 IN ( + 6 - - COUNT ( * ) + COUNT ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) ) THEN 92 ELSE NULL END + - 37
----
-8

query II rowsort
SELECT 77 AS col1, 28
----
77
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT DISTINCT COUNT( * ) + + SUM( - 4 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT COUNT ( * ) + + SUM ( - 4 ) AS col1
----
-3

query I rowsort
SELECT ALL COALESCE ( + - 95, + - 71 )
----
-95

query I rowsort
SELECT + 73 + + - ( - 7 ) + + - 43 col0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-2613
SELECT DISTINCT COUNT( * ) AS col2, 70 AS col1
----
1
70

skipif mysql # not compatible
query II rowsort label-2613
SELECT DISTINCT COUNT ( * ) AS col2, 70 AS col1
----
1
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT DISTINCT ( COALESCE ( 83, 45, - - COUNT( * ) + + + 50 ) )
----
83

skipif mysql # not compatible
query I rowsort label-2614
SELECT DISTINCT ( COALESCE ( 83, 45, - - COUNT ( * ) + + + 50 ) )
----
83

query I rowsort
SELECT ALL - 73 - + 73 AS col2
----
-146

query I rowsort
SELECT + 96 - + + 48
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2617
SELECT - COALESCE ( - COUNT( * ), + 1, - + 11 * - + 96 + - COUNT( + 75 ) - 89 DIV - 9 ) * + - 69 * 51
----
-3519

skipif mysql # not compatible
query I rowsort label-2617
SELECT - COALESCE ( - COUNT ( * ), + 1, - + 11 * - + 96 + - COUNT ( + 75 ) - 89 / - 9 ) * + - 69 * 51
----
-3519

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

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

query I rowsort
SELECT - ( - ( 31 ) ) + 94 AS col0
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2620
SELECT ALL - CAST( - 26 AS SIGNED ) - ( + 47 ) + + + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL - CAST ( - 26 AS INTEGER ) - ( + 47 ) + + + COUNT ( * )
----
-20

query I rowsort
SELECT 69 + + 19
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT MAX( DISTINCT 14 ) * 36 AS col0
----
504

skipif mysql # not compatible
query I rowsort label-2622
SELECT MAX ( DISTINCT 14 ) * 36 AS col0
----
504

query I rowsort
SELECT ALL - 72 * + ( - COALESCE ( + + 97, - 48 + - 64 * + - 58, - - 19 + + 65 ) ) AS col2
----
6984

onlyif mysql # aggregate syntax: 
query II rowsort label-2624
SELECT DISTINCT ( + - 85 ) * + - COUNT( * ) AS col0, - 10 * - 78
----
85
780

skipif mysql # not compatible
query II rowsort label-2624
SELECT DISTINCT ( + - 85 ) * + - COUNT ( * ) AS col0, - 10 * - 78
----
85
780

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT DISTINCT - MAX( DISTINCT - 7 ) + 71
----
78

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT - MAX ( DISTINCT - 7 ) + 71
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2627
SELECT + 86 * 24 / - COALESCE ( CASE + - 99 WHEN COUNT( ALL 0 ) THEN + 42 + 39 END, COUNT( * ) * 82 - ( CAST( NULL AS SIGNED ) + - 4 ) ) * 15 + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2627
SELECT + 86 * 24 / - COALESCE ( CASE + - 99 WHEN COUNT ( ALL 0 ) THEN + 42 + 39 END, COUNT ( * ) * 82 - ( CAST ( NULL AS INTEGER ) + - 4 ) ) * 15 + 36 AS col2
----
NULL

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

query I rowsort
SELECT + ( - COALESCE ( + - 74, + 72 ) )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-2630
SELECT + - COUNT( * ), + 30 col0
----
-1
30

skipif mysql # not compatible
query II rowsort label-2630
SELECT + - COUNT ( * ), + 30 col0
----
-1
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT 41 * + 51 - - + MAX( DISTINCT 92 )
----
2183

skipif mysql # not compatible
query I rowsort label-2631
SELECT 41 * + 51 - - + MAX ( DISTINCT 92 )
----
2183

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT ALL + COUNT( * ) + - ( COUNT( * ) ) * - 39
----
40

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL + COUNT ( * ) + - ( COUNT ( * ) ) * - 39
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT 84 + + - COUNT( * ) + - + 33 * MAX( ALL - + 28 ) AS col2
----
1007

skipif mysql # not compatible
query I rowsort label-2634
SELECT 84 + + - COUNT ( * ) + - + 33 * MAX ( ALL - + 28 ) AS col2
----
1007

query I rowsort
SELECT 19 * 81 AS col1
----
1539

query II rowsort
SELECT DISTINCT 9 AS col0, + 5 * + - 40 + - - 92
----
9
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-2637
SELECT - 14, + SUM( 23 ) AS col0
----
-14
23

skipif mysql # not compatible
query II rowsort label-2637
SELECT - 14, + SUM ( 23 ) AS col0
----
-14
23

query II rowsort
SELECT 9 - 4, + 3 * + + 26 AS col1
----
5
78

query II rowsort
SELECT - 17, - 58 AS col0
----
-17
-58

query II rowsort
SELECT ALL 69 AS col0, - 71 AS col1
----
69
-71

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

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

query I rowsort
SELECT 28 + 12 AS col0
----
40

query I rowsort
SELECT ALL 44 - 62 + - 73 + + - 78 + 80 AS col0
----
-89

query I rowsort
SELECT 35 * + 9
----
315

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2645
SELECT DISTINCT 29 AS col2, - COUNT( * ) DIV 46
----
29
0

skipif mysql # not compatible
query II rowsort label-2645
SELECT DISTINCT 29 AS col2, - COUNT ( * ) / 46
----
29
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2646
SELECT 18 + - - ( - 17 ) + 13 DIV 35 * + 34 + + 70
----
71

skipif mysql # not compatible
query I rowsort label-2646
SELECT 18 + - - ( - 17 ) + 13 / 35 * + 34 + + 70
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT DISTINCT 43 * + + COUNT( * ) col0
----
43

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT 43 * + + COUNT ( * ) col0
----
43

query I rowsort
SELECT 73 + + 5 AS col1
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-2649
SELECT 79 DIV - 80, 10 AS col0
----
0
10

skipif mysql # not compatible
query II rowsort label-2649
SELECT 79 / - 80, 10 AS col0
----
0
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT ALL COUNT( * ) * - CASE + 76 WHEN - - 51 + - + 7 THEN NULL WHEN + + 93 + - 60 THEN NULL ELSE 56 - 70 END AS col0
----
14

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL COUNT ( * ) * - CASE + 76 WHEN - - 51 + - + 7 THEN NULL WHEN + + 93 + - 60 THEN NULL ELSE 56 - 70 END AS col0
----
14

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2653
SELECT ALL + 52 DIV + - 16 DIV - COUNT( - + 4 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL + 52 / + - 16 / - COUNT ( - + 4 ) AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2654
SELECT ALL COALESCE ( 31, + - 66 DIV + 85 * 56 + 41, 89 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL COALESCE ( 31, + - 66 / + 85 * 56 + 41, 89 ) AS col1
----
31

query I rowsort
SELECT ALL - + 19 col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT + MIN( DISTINCT 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-2656
SELECT + MIN ( DISTINCT 21 ) AS col2
----
21

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

skipif mysql # not compatible
query I rowsort label-2657
SELECT + COUNT ( * ) + + 96 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT 56 * + COUNT( * ) * + COUNT( * ) * - 88
----
-4928

skipif mysql # not compatible
query I rowsort label-2658
SELECT 56 * + COUNT ( * ) * + COUNT ( * ) * - 88
----
-4928

onlyif mysql # DIV for integer division: 
query I rowsort label-2659
SELECT + 3 + + 98 DIV + + 10
----
12

skipif mysql # not compatible
query I rowsort label-2659
SELECT + 3 + + 98 / + + 10
----
12

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2662
SELECT + 39 AS col2, CAST( - - 88 AS SIGNED ) - + COUNT( * ) AS col0
----
39
87

skipif mysql # not compatible
query II rowsort label-2662
SELECT + 39 AS col2, CAST ( - - 88 AS INTEGER ) - + COUNT ( * ) AS col0
----
39
87

query I rowsort
SELECT ALL + + 63 + + 4 AS col2
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2664
SELECT + 54 DIV - 99 + - 19 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-2664
SELECT + 54 / - 99 + - 19 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT 56 + - 91 * NULLIF ( ( - 47 ), + COUNT( * ) ) AS col0
----
4333

skipif mysql # not compatible
query I rowsort label-2665
SELECT 56 + - 91 * NULLIF ( ( - 47 ), + COUNT ( * ) ) AS col0
----
4333

onlyif mysql # aggregate syntax: 
query II rowsort label-2666
SELECT ALL - - COUNT( * ) col0, 47 * 28 * 4 AS col2
----
1
5264

skipif mysql # not compatible
query II rowsort label-2666
SELECT ALL - - COUNT ( * ) col0, 47 * 28 * 4 AS col2
----
1
5264

query I rowsort
SELECT 33 + - 91
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2668
SELECT + 67 * 75 * - - 17 + CAST( - 2 AS SIGNED ) AS col1
----
85423

skipif mysql # not compatible
query I rowsort label-2668
SELECT + 67 * 75 * - - 17 + CAST ( - 2 AS INTEGER ) AS col1
----
85423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2669
SELECT ALL + - CAST( 46 AS SIGNED ) + - - 81 + - 26 * - 43 - 35
----
1118

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL + - CAST ( 46 AS INTEGER ) + - - 81 + - 26 * - 43 - 35
----
1118

onlyif mysql # aggregate syntax: 
query II rowsort label-2670
SELECT 29 + - COUNT( * ), MAX( ALL - 17 ) - + 9 + - + 18 AS col1
----
28
-44

skipif mysql # not compatible
query II rowsort label-2670
SELECT 29 + - COUNT ( * ), MAX ( ALL - 17 ) - + 9 + - + 18 AS col1
----
28
-44

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

query I rowsort
SELECT 38 + - 33 + 62 + + 47 AS col1
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2673
SELECT 9 + + + MAX( ALL - + 0 ) * + 28 DIV + MAX( + 27 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-2673
SELECT 9 + + + MAX ( ALL - + 0 ) * + 28 / + MAX ( + 27 ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT ALL - MIN( + 65 ) - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL - MIN ( + 65 ) - COUNT ( * )
----
-66

query I rowsort
SELECT 28 + + + ( - 99 )
----
-71

query I rowsort
SELECT 35 * - + 93 col1
----
-3255

onlyif mysql # aggregate syntax: 
query II rowsort label-2677
SELECT DISTINCT + COUNT( * ) * + 84 AS col2, 98
----
84
98

skipif mysql # not compatible
query II rowsort label-2677
SELECT DISTINCT + COUNT ( * ) * + 84 AS col2, 98
----
84
98

query I rowsort
SELECT DISTINCT - NULLIF ( + 80, - 7 ) * - - 56 AS col0
----
-4480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2679
SELECT NULLIF ( - 6, 18 / 6 + - + MAX( DISTINCT - + 14 ) + + - 65 ) * + 96 + - - COALESCE ( + CAST( + CASE - COUNT( * ) WHEN + 61 THEN + 94 WHEN + CASE 67 WHEN NULLIF ( 65, - 41 * + ( 92 ) + 9 * COALESCE ( COUNT( * ) * 95, 12 ) ) THEN NULL WHEN + 19 - + 78 THEN NULL ELSE - 92 + - 42 END THEN 36 ELSE CAST( 33 AS SIGNED ) END AS SIGNED ), COUNT( * ), COUNT( * ) ) - COUNT( * )
----
-544

skipif mysql # not compatible
query I rowsort label-2679
SELECT NULLIF ( - 6, 18 / 6 + - + MAX ( DISTINCT - + 14 ) + + - 65 ) * + 96 + - - COALESCE ( + CAST ( + CASE - COUNT ( * ) WHEN + 61 THEN + 94 WHEN + CASE 67 WHEN NULLIF ( 65, - 41 * + ( 92 ) + 9 * COALESCE ( COUNT ( * ) * 95, 12 ) ) THEN NULL WHEN + 19 - + 78 THEN NULL ELSE - 92 + - 42 END THEN 36 ELSE CAST ( 33 AS INTEGER ) END AS INTEGER ), COUNT ( * ), COUNT ( * ) ) - COUNT ( * )
----
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT + 96 * 0 * - 89 * + CASE + MAX( ALL - + 62 ) WHEN - 45 THEN + 83 WHEN - 66 + + 82 * - COUNT( * ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2680
SELECT + 96 * 0 * - 89 * + CASE + MAX ( ALL - + 62 ) WHEN - 45 THEN + 83 WHEN - 66 + + 82 * - COUNT ( * ) THEN COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2681
SELECT + ( + + CAST( - 63 AS SIGNED ) ) + - MIN( DISTINCT 44 ) * 79 col0
----
-3539

skipif mysql # not compatible
query I rowsort label-2681
SELECT + ( + + CAST ( - 63 AS INTEGER ) ) + - MIN ( DISTINCT 44 ) * 79 col0
----
-3539

query I rowsort
SELECT ALL COALESCE ( 42, 95 ) AS col1
----
42

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

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT 72 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 13 * - 31 + + 91 AS col2, + 4 AS col1
----
494
4

query I rowsort
SELECT ALL 70 + 37
----
107

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2687
SELECT ALL + ( - + 43 ) + - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL + ( - + 43 ) + - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2688
SELECT + + COALESCE ( - 84, + + 54 + + ( - + COUNT( * ) ) ) DIV 77 - - COUNT( * ) DIV 4 DIV + + 9 + 47 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-2688
SELECT + + COALESCE ( - 84, + + 54 + + ( - + COUNT ( * ) ) ) / 77 - - COUNT ( * ) / 4 / + + 9 + 47 AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-2689
SELECT + ( - - 26 ), 23 + - COUNT( * ) * 61 + - COUNT( * ) * 6 AS col1
----
26
-44

skipif mysql # not compatible
query II rowsort label-2689
SELECT + ( - - 26 ), 23 + - COUNT ( * ) * 61 + - COUNT ( * ) * 6 AS col1
----
26
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2690
SELECT DISTINCT + 45 * ( - 75 ) + NULLIF ( CAST( NULL AS SIGNED ), 5 * - 57 + - 42 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2690
SELECT DISTINCT + 45 * ( - 75 ) + NULLIF ( CAST ( NULL AS INTEGER ), 5 * - 57 + - 42 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT DISTINCT + 46 DIV + 10 + - NULLIF ( + 42, 49 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT + 46 / + 10 + - NULLIF ( + 42, 49 ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT DISTINCT 69 * + 12 + COUNT( * )
----
829

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT 69 * + 12 + COUNT ( * )
----
829

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT + + 24 * - ( - 38 ) * - COUNT( * ) + + - 19
----
-931

skipif mysql # not compatible
query I rowsort label-2693
SELECT + + 24 * - ( - 38 ) * - COUNT ( * ) + + - 19
----
-931

onlyif mysql # DIV for integer division: 
query I rowsort label-2694
SELECT + 12 DIV + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2694
SELECT + 12 / + 67 AS col0
----
0

query I rowsort
SELECT ALL COALESCE ( + 7, + + 95 ) * - 32
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT COUNT( * ) * - + 64 + - + 59 + + COUNT( ALL - 84 ) + + - 60
----
-182

skipif mysql # not compatible
query I rowsort label-2696
SELECT COUNT ( * ) * - + 64 + - + 59 + + COUNT ( ALL - 84 ) + + - 60
----
-182

query I rowsort
SELECT ALL + COALESCE ( + 70, - 14, 58 - + - 4 ) * - 92
----
-6440

query I rowsort
SELECT ALL + ( - 88 ) * 75
----
-6600

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT DISTINCT MAX( 78 ) * + + 1 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT MAX ( 78 ) * + + 1 AS col0
----
78

query I rowsort
SELECT ALL + NULLIF ( 68, + + ( + - 20 ) + 0 )
----
68

query I rowsort
SELECT - 9 * + - ( 60 ) AS col1
----
540

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

skipif mysql # not compatible
query II rowsort label-2702
SELECT COUNT ( * ), - ( - 72 ) AS col0
----
1
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT DISTINCT CASE 83 WHEN + 78 THEN NULL WHEN - 40 THEN NULL ELSE 39 + + 50 + + - COUNT( * ) END AS col1
----
88

skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT CASE 83 WHEN + 78 THEN NULL WHEN - 40 THEN NULL ELSE 39 + + 50 + + - COUNT ( * ) END AS col1
----
88

query I rowsort
SELECT ALL + 51 + 33 AS col1
----
84

query I rowsort
SELECT ALL + 42 * + + 3 * - 14 * + - 29
----
51156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2707
SELECT - CASE 77 WHEN 4 * - 46 + 78 THEN + + 27 + COUNT( * ) + 77 * + 73 * + 54 ELSE 24 END DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-2707
SELECT - CASE 77 WHEN 4 * - 46 + 78 THEN + + 27 + COUNT ( * ) + 77 * + 73 * + 54 ELSE 24 END / 94
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2708
SELECT DISTINCT + ( - NULLIF ( 60, + + 79 ) ) + - CAST( NULL AS SIGNED ) + - + 11 + - - 15 + + 73 * - - COUNT( DISTINCT 39 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT + ( - NULLIF ( 60, + + 79 ) ) + - CAST ( NULL AS INTEGER ) + - + 11 + - - 15 + + 73 * - - COUNT ( DISTINCT 39 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 79 * + 76 AS col1
----
-6004

onlyif mysql # DIV for integer division: 
query I rowsort label-2710
SELECT ALL + 52 + + 26 + 66 * 54 + + - 41 DIV - 20 AS col2
----
3644

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL + 52 + + 26 + 66 * 54 + + - 41 / - 20 AS col2
----
3644

onlyif mysql # aggregate syntax: 
query II rowsort label-2711
SELECT ALL + COUNT( DISTINCT - 92 ) * - 71, COUNT( * ) AS col0
----
-71
1

skipif mysql # not compatible
query II rowsort label-2711
SELECT ALL + COUNT ( DISTINCT - 92 ) * - 71, COUNT ( * ) AS col0
----
-71
1

query I rowsort
SELECT + + COALESCE ( 60, + 66 ) * - + 30 AS col1
----
-1800

query I rowsort
SELECT - - 69 * + + 54 - - 33 - - + 91 AS col2
----
3850

query I rowsort
SELECT + 98 + - 44 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT ALL + NULLIF ( + COUNT( ALL - + 8 ), - - 86 ) + - 82 + 71 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL + NULLIF ( + COUNT ( ALL - + 8 ), - - 86 ) + - 82 + 71 AS col0
----
-10

query I rowsort
SELECT - + 94 + + 82
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2717
SELECT - - 47, + NULLIF ( + 59, + - 76 ) * + - 55 + - 18 * - 20 + + - 1 + - - CAST( NULL AS SIGNED ) - 6 AS col1
----
47
NULL

skipif mysql # not compatible
query II rowsort label-2717
SELECT - - 47, + NULLIF ( + 59, + - 76 ) * + - 55 + - 18 * - 20 + + - 1 + - - CAST ( NULL AS INTEGER ) - 6 AS col1
----
47
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT DISTINCT + ( MIN( DISTINCT 70 ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT + ( MIN ( DISTINCT 70 ) ) AS col2
----
70

query I rowsort
SELECT ALL 13 * - COALESCE ( 98, - - 57 + + - 48, + 14 ) - - 6
----
-1268

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

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

query II rowsort
SELECT + 69, 54 AS col0
----
69
54

query I rowsort
SELECT + 1 + + 13 + 36 col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2724
SELECT ALL CAST( - - 36 AS SIGNED ) * - CASE + 85 WHEN COUNT( * ) THEN + 29 * + 89 * - + 2 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL CAST ( - - 36 AS INTEGER ) * - CASE + 85 WHEN COUNT ( * ) THEN + 29 * + 89 * - + 2 + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT + - MIN( ALL - 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-2725
SELECT + - MIN ( ALL - 77 ) AS col2
----
77

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

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

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

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL + 13 * COUNT ( * ) AS col0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2728
SELECT 45 DIV 43 + - - 62 + - - COUNT( * ) AS col0, SUM( + 58 ) AS col2
----
64
58

skipif mysql # not compatible
query II rowsort label-2728
SELECT 45 / 43 + - - 62 + - - COUNT ( * ) AS col0, SUM ( + 58 ) AS col2
----
64
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2729
SELECT DISTINCT + 65 / 79 * + MIN( CAST( NULL AS SIGNED ) ) * 27 + - 35 * + - MAX( - + 29 ) - + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT + 65 / 79 * + MIN ( CAST ( NULL AS INTEGER ) ) * 27 + - 35 * + - MAX ( - + 29 ) - + + 70
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2730
SELECT DISTINCT 80 * + COUNT( * ) AS col0, COUNT( DISTINCT - ( - - 56 ) )
----
80
1

skipif mysql # not compatible
query II rowsort label-2730
SELECT DISTINCT 80 * + COUNT ( * ) AS col0, COUNT ( DISTINCT - ( - - 56 ) )
----
80
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT ALL 3 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL 3 / - 83
----
0

query I rowsort
SELECT + 9 * - 51
----
-459

onlyif mysql # DIV for integer division: 
query II rowsort label-2733
SELECT ALL 21 DIV 89 AS col0, - 90 * - 11 AS col2
----
0
990

skipif mysql # not compatible
query II rowsort label-2733
SELECT ALL 21 / 89 AS col0, - 90 * - 11 AS col2
----
0
990

query I rowsort
SELECT + 27 + + + 89
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2735
SELECT + MIN( - 38 ) * + + CAST( 27 AS SIGNED ) + 84 + + - COUNT( * ) + 75 * - 62 AS col0
----
-5593

skipif mysql # not compatible
query I rowsort label-2735
SELECT + MIN ( - 38 ) * + + CAST ( 27 AS INTEGER ) + 84 + + - COUNT ( * ) + 75 * - 62 AS col0
----
-5593

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2736
SELECT + 56 * + 78 + + + ( 6 ) * + ( - 47 ) DIV + COUNT( * ) + 3 + - 81 AS col1
----
4008

skipif mysql # not compatible
query I rowsort label-2736
SELECT + 56 * + 78 + + + ( 6 ) * + ( - 47 ) / + COUNT ( * ) + 3 + - 81 AS col1
----
4008

onlyif mysql # DIV for integer division: 
query I rowsort label-2737
SELECT ALL 67 DIV - 26
----
-2

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL 67 / - 26
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2738
SELECT 28 DIV - - SUM( + 92 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2738
SELECT 28 / - - SUM ( + 92 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2739
SELECT ALL 61 + 74 DIV 6 DIV 23 + - 22 * COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL 61 + 74 / 6 / 23 + - 22 * COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT - MIN( DISTINCT 4 ) * - 1 + + - 46 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-2740
SELECT - MIN ( DISTINCT 4 ) * - 1 + + - 46 AS col1
----
-42

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2742
SELECT CAST( 83 AS SIGNED ) * + + 27 * - CAST( NULL AS SIGNED ), 29 AS col1
----
NULL
29

skipif mysql # not compatible
query II rowsort label-2742
SELECT CAST ( 83 AS INTEGER ) * + + 27 * - CAST ( NULL AS INTEGER ), 29 AS col1
----
NULL
29

query I rowsort
SELECT DISTINCT + 38 + 92 AS col0
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2744
SELECT ALL - 84 + - ( 21 ) + - 89 DIV + COALESCE ( + - ( 98 ), + + 46, + COUNT( * ) ) * 95 + + - 40 AS col0
----
-145

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL - 84 + - ( 21 ) + - 89 / + COALESCE ( + - ( 98 ), + + 46, + COUNT ( * ) ) * 95 + + - 40 AS col0
----
-145

query I rowsort
SELECT 79 + 13 AS col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2746
SELECT CAST( + COALESCE ( + 60, COALESCE ( + CASE ( 48 ) WHEN - 42 THEN + + 14 + + 56 END, + + 39, - - 22 ) * CAST( NULLIF ( - COUNT( * ), 98 * 76 ) AS SIGNED ), - 68 ) AS SIGNED ) * - CAST( - 88 AS SIGNED ) AS col1
----
5280

skipif mysql # not compatible
query I rowsort label-2746
SELECT CAST ( + COALESCE ( + 60, COALESCE ( + CASE ( 48 ) WHEN - 42 THEN + + 14 + + 56 END, + + 39, - - 22 ) * CAST ( NULLIF ( - COUNT ( * ), 98 * 76 ) AS INTEGER ), - 68 ) AS INTEGER ) * - CAST ( - 88 AS INTEGER ) AS col1
----
5280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2747
SELECT 88 + + 70 + + 31 DIV COUNT( * ) * - - 53
----
1801

skipif mysql # not compatible
query I rowsort label-2747
SELECT 88 + + 70 + + 31 / COUNT ( * ) * - - 53
----
1801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2748
SELECT + MAX( 80 ), 46 + + + 5 - - 19 + + CAST( NULL AS SIGNED ) * 52 - - 2 + - 56 / - 68 col0
----
80
NULL

skipif mysql # not compatible
query II rowsort label-2748
SELECT + MAX ( 80 ), 46 + + + 5 - - 19 + + CAST ( NULL AS INTEGER ) * 52 - - 2 + - 56 / - 68 col0
----
80
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2749
SELECT - - ( - COUNT( + CAST( NULL AS SIGNED ) ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2749
SELECT - - ( - COUNT ( + CAST ( NULL AS INTEGER ) ) ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT + 22 * - MAX( - + 26 ) AS col1
----
572

skipif mysql # not compatible
query I rowsort label-2750
SELECT + 22 * - MAX ( - + 26 ) AS col1
----
572

query I rowsort
SELECT DISTINCT - - ( - 9 ) - - ( - + 81 ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT DISTINCT - - ( 39 ) * 35 * - - 41 * + COALESCE ( - 81, 19 + - - 83 ) + SUM( + + 5 ) - + 55 AS col0
----
-4533215

skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT - - ( 39 ) * 35 * - - 41 * + COALESCE ( - 81, 19 + - - 83 ) + SUM ( + + 5 ) - + 55 AS col0
----
-4533215

query I rowsort
SELECT + 80 + + - 78 AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2754
SELECT 0 DIV - - 35 * - COALESCE ( - - MIN( DISTINCT - 17 ), - 57 + 25 )
----
0

skipif mysql # not compatible
query I rowsort label-2754
SELECT 0 / - - 35 * - COALESCE ( - - MIN ( DISTINCT - 17 ), - 57 + 25 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2755
SELECT CASE 18 WHEN + - 93 / 20 THEN NULL ELSE - - 7 - - 93 END * - ( CAST( NULL AS SIGNED ) ) + + - 94 + + 52 + + - 52 + - ( + 72 ) * + 22 / - 90 * MIN( ( 54 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2755
SELECT CASE 18 WHEN + - 93 / 20 THEN NULL ELSE - - 7 - - 93 END * - ( CAST ( NULL AS INTEGER ) ) + + - 94 + + 52 + + - 52 + - ( + 72 ) * + 22 / - 90 * MIN ( ( 54 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT COUNT( - 27 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2756
SELECT COUNT ( - 27 ) AS col2
----
1

query I rowsort
SELECT + 93 * 58 - 44
----
5350

query I rowsort
SELECT DISTINCT + - 22 * ( + 74 ) - - 44
----
-1584

query I rowsort
SELECT ALL - - 4 col1
----
4

query I rowsort
SELECT DISTINCT 62 * + 63 AS col2
----
3906

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2761
SELECT ALL - 83 col1, - CAST( NULL AS DECIMAL )
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-2761
SELECT ALL - 83 col1, - CAST ( NULL AS REAL )
----
-83
NULL

query I rowsort
SELECT 18 * + + 68 col0
----
1224

query II rowsort
SELECT + 65, + 76 + - ( - 30 ) AS col0
----
65
106

query I rowsort
SELECT ALL ( - 25 ) + + + 17
----
-8

query I rowsort
SELECT 73 * + 4
----
292

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT 44 * - ( + - MAX( + - 85 ) ) * - + 93 + + 97 AS col2
----
347917

skipif mysql # not compatible
query I rowsort label-2766
SELECT 44 * - ( + - MAX ( + - 85 ) ) * - + 93 + + 97 AS col2
----
347917

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2768
SELECT DISTINCT - CAST( + 8 AS SIGNED ) + 73 * 15
----
1087

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT - CAST ( + 8 AS INTEGER ) + 73 * 15
----
1087

onlyif mysql # DIV for integer division: 
query I rowsort label-2769
SELECT 63 DIV 91 col2
----
0

skipif mysql # not compatible
query I rowsort label-2769
SELECT 63 / 91 col2
----
0

query I rowsort
SELECT ALL - 51 + + - 54
----
-105

query I rowsort
SELECT DISTINCT 84 + - 43
----
41

onlyif mysql # DIV for integer division: 
query II rowsort label-2772
SELECT DISTINCT 49 DIV 47 * + - 64 * - - 76 * - 43 * 54 AS col2, + 97
----
11294208
97

skipif mysql # not compatible
query II rowsort label-2772
SELECT DISTINCT 49 / 47 * + - 64 * - - 76 * - 43 * 54 AS col2, + 97
----
11294208
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2773
SELECT COUNT( DISTINCT - 49 ) DIV 18 * + 40 * + - 65
----
0

skipif mysql # not compatible
query I rowsort label-2773
SELECT COUNT ( DISTINCT - 49 ) / 18 * + 40 * + - 65
----
0

query I rowsort
SELECT 59 * + 18 * 12
----
12744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2775
SELECT + 75 * + - 93 + + 85 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT + 75 * + - 93 + + 85 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 91, 43 AS col0
----
91
43

query I rowsort
SELECT - 20 + - + 58 AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2778
SELECT ALL - CASE + 86 WHEN + + 46 / 5 THEN - CASE - - 52 WHEN - + 39 THEN COUNT( * ) / + 89 + + 99 * - NULLIF ( - 96, + CAST( ( 0 ) AS SIGNED ) + - 86 ) - NULLIF ( COALESCE ( - 43, + 15, 24 - + 54 ), SUM( 14 ) ) ELSE 14 * - 67 END END * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL - CASE + 86 WHEN + + 46 / 5 THEN - CASE - - 52 WHEN - + 39 THEN COUNT ( * ) / + 89 + + 99 * - NULLIF ( - 96, + CAST ( ( 0 ) AS INTEGER ) + - 86 ) - NULLIF ( COALESCE ( - 43, + 15, 24 - + 54 ), SUM ( 14 ) ) ELSE 14 * - 67 END END * 71
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2779
SELECT - NULLIF ( 28, - - COUNT( * ) ) AS col2, MIN( ALL 61 ) DIV 9 AS col1, + 88 AS col0
----
-28
6
88

skipif mysql # not compatible
query III rowsort label-2779
SELECT - NULLIF ( 28, - - COUNT ( * ) ) AS col2, MIN ( ALL 61 ) / 9 AS col1, + 88 AS col0
----
-28
6
88

query I rowsort
SELECT 46 + 68 AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT ALL COUNT( - 59 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL COUNT ( - 59 ) col0
----
1

query I rowsort
SELECT + 56 - - 88
----
144

query I rowsort
SELECT ALL + 6 * - 78 col2
----
-468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2784
SELECT COUNT( * ) + + 54 * - CAST( NULL AS SIGNED ) + - + 28 / - 15 + + 44 + - + 19 * - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2784
SELECT COUNT ( * ) + + 54 * - CAST ( NULL AS INTEGER ) + - + 28 / - 15 + + 44 + - + 19 * - 99 AS col2
----
NULL

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

query I rowsort
SELECT - 22 * - 23 + + 66 * - 76 + + 52 col0
----
-4458

query I rowsort
SELECT 45 * - - 8 * 19 * 61 AS col0
----
417240

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT DISTINCT - NULLIF ( - 49, ( COUNT( * ) ) )
----
49

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT - NULLIF ( - 49, ( COUNT ( * ) ) )
----
49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2789
SELECT ALL - + CAST( NULL AS SIGNED ) * + 15 - + + 38 + - + 43 * 64 * + CAST( NULL AS DECIMAL ) AS col1, ( - + 59 ) AS col0
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-2789
SELECT ALL - + CAST ( NULL AS INTEGER ) * + 15 - + + 38 + - + 43 * 64 * + CAST ( NULL AS REAL ) AS col1, ( - + 59 ) AS col0
----
NULL
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT 25 * + NULLIF ( + CASE WHEN - 87 BETWEEN - AVG ( - 65 ) AND - CASE - 1 WHEN COUNT( * ) THEN + 75 + - - SUM( + + 91 ) END OR - CASE 34 WHEN 41 THEN ( 20 ) WHEN - 58 * 84 THEN NULL END * + 72 IS NOT NULL THEN COALESCE ( + ( 19 ), 52 * - 93, - 52 + 36 * + 21 ) * + 92 + + 25 ELSE NULL END, - COUNT( * ) + 94 * 62 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT 25 * + NULLIF ( + CASE WHEN - 87 BETWEEN - AVG ( - 65 ) AND - CASE - 1 WHEN COUNT ( * ) THEN + 75 + - - SUM ( + + 91 ) END OR - CASE 34 WHEN 41 THEN ( 20 ) WHEN - 58 * 84 THEN NULL END * + 72 IS NOT NULL THEN COALESCE ( + ( 19 ), 52 * - 93, - 52 + 36 * + 21 ) * + 92 + + 25 ELSE NULL END, - COUNT ( * ) + 94 * 62 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 74 * + 66 * - + 24 AS col2
----
117216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2792
SELECT ALL + 82 + - 45 DIV + - COUNT( * ) + - 61
----
66

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL + 82 + - 45 / + - COUNT ( * ) + - 61
----
66

query II rowsort
SELECT 90 AS col0, NULLIF ( - - 96, + 4 ) AS col0
----
90
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2794
SELECT ALL + CAST( + + 94 AS SIGNED ) * - 59 + + CASE - + 14 WHEN + 92 THEN + ( COUNT( * ) ) END * - 14 / 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL + CAST ( + + 94 AS INTEGER ) * - 59 + + CASE - + 14 WHEN + 92 THEN + ( COUNT ( * ) ) END * - 14 / 73 AS col1
----
NULL

query I rowsort
SELECT + 98 + 56 AS col0
----
154

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

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

query I rowsort
SELECT - 74 * - - 41
----
-3034

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

skipif mysql # not compatible
query I rowsort label-2798
SELECT - 80 * COUNT ( * )
----
-80

query I rowsort
SELECT ALL + 0 * 37 + - 96 AS col2
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2800
SELECT - CASE - 29 WHEN + - NULLIF ( 71, + + 97 ) DIV - - 43 THEN NULL ELSE 91 END DIV 49
----
-1

skipif mysql # not compatible
query I rowsort label-2800
SELECT - CASE - 29 WHEN + - NULLIF ( 71, + + 97 ) / - - 43 THEN NULL ELSE 91 END / 49
----
-1

query I rowsort
SELECT NULLIF ( 41, + 12 + - ( + 25 ) )
----
41

query I rowsort
SELECT - 44 + - 27 + + 44 + - + 53 AS col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2803
SELECT ALL + CAST( NULL AS SIGNED ), - 23 * - + 61 - 89 - - 55 AS col0
----
NULL
1369

skipif mysql # not compatible
query II rowsort label-2803
SELECT ALL + CAST ( NULL AS INTEGER ), - 23 * - + 61 - 89 - - 55 AS col0
----
NULL
1369

query I rowsort
SELECT - COALESCE ( - 45, - + ( + - 73 ), - - 94 + + 69 ) + 42
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT ALL 85 * - + NULLIF ( 38, MIN( + + 60 ) + 93 + ( + 51 ) + + 77 - + COUNT( ALL + - 81 ) + - + 19 + + 49 * 62 * 27 ) + - 45 * + 24
----
-4310

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL 85 * - + NULLIF ( 38, MIN ( + + 60 ) + 93 + ( + 51 ) + + 77 - + COUNT ( ALL + - 81 ) + - + 19 + + 49 * 62 * 27 ) + - 45 * + 24
----
-4310

query I rowsort
SELECT DISTINCT + ( + 55 ) col0
----
55

query I rowsort
SELECT - 8 * 86
----
-688

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT 84 * + CASE COUNT( * ) WHEN ( 5 ) THEN - 44 - 13 + + COUNT( * ) * COUNT( * ) * + 22 / - - 94 * - 98 * + 12 END + - 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT 84 * + CASE COUNT ( * ) WHEN ( 5 ) THEN - 44 - 13 + + COUNT ( * ) * COUNT ( * ) * + 22 / - - 94 * - 98 * + 12 END + - 3 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2809
SELECT + COUNT ( ALL - - 29 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2810
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2, 13 + MAX( + 69 ) * + COALESCE ( + 17, + 96 )
----
NULL
1186

skipif mysql # not compatible
query II rowsort label-2810
SELECT ALL + CAST ( NULL AS REAL ) AS col2, 13 + MAX ( + 69 ) * + COALESCE ( + 17, + 96 )
----
NULL
1186

onlyif mysql # DIV for integer division: 
query I rowsort label-2811
SELECT + 9 * - 80 * + 56 + + 25 + - 16 + + - 30 DIV + + 53 * - 27 - - - 33
----
-40344

skipif mysql # not compatible
query I rowsort label-2811
SELECT + 9 * - 80 * + 56 + + 25 + - 16 + + - 30 / + + 53 * - 27 - - - 33
----
-40344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2812
SELECT + MIN( 73 ) + + MIN( - 21 ) * - - 52 / CASE AVG ( 15 ) WHEN + 67 + - 74 THEN NULL ELSE NULLIF ( + 48, - - COUNT( * ) ) / - - 68 * 49 * - + CAST( NULL AS SIGNED ) * COUNT( * ) - 39 + CAST( NULL AS DECIMAL ) * 44 END * 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2812
SELECT + MIN ( 73 ) + + MIN ( - 21 ) * - - 52 / CASE AVG ( 15 ) WHEN + 67 + - 74 THEN NULL ELSE NULLIF ( + 48, - - COUNT ( * ) ) / - - 68 * 49 * - + CAST ( NULL AS INTEGER ) * COUNT ( * ) - 39 + CAST ( NULL AS REAL ) * 44 END * 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL 28 * - + NULLIF ( + CASE WHEN NULL NOT IN ( + COUNT( * ), ( - ( 82 ) ), - 21 ) THEN 32 END, - - AVG ( - 64 ) ) / - - COUNT( * ) + + + 19 - - AVG ( DISTINCT 29 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL 28 * - + NULLIF ( + CASE WHEN NULL NOT IN ( + COUNT ( * ), ( - ( 82 ) ), - 21 ) THEN 32 END, - - AVG ( - 64 ) ) / - - COUNT ( * ) + + + 19 - - AVG ( DISTINCT 29 ) AS col0
----
NULL

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

skipif mysql # not compatible
query II rowsort label-2814
SELECT ALL + COUNT ( * ), + ( + COUNT ( * ) )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT + - 91 * - + COUNT( * ) * - 98 * ( 38 )
----
-338884

skipif mysql # not compatible
query I rowsort label-2815
SELECT + - 91 * - + COUNT ( * ) * - 98 * ( 38 )
----
-338884

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2816
SELECT ALL - 21 - 10 DIV + + COUNT( * ) + 72 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL - 21 - 10 / + + COUNT ( * ) + 72 AS col0
----
41

query II rowsort
SELECT 96 AS col0, + 19 AS col2
----
96
19

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

skipif mysql # not compatible
query I rowsort label-2818
SELECT + 40 / 1
----
40

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

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

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

query I rowsort
SELECT NULLIF ( 88, + - 45 * 49 + CASE - - AVG ( - - 6 ) WHEN - 14 THEN 22 WHEN - 68 THEN NULL END ) AS col1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2822
SELECT ALL 37 DIV - - 31 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL 37 / - - 31 AS col1
----
1

query I rowsort
SELECT ALL + 94 * + + NULLIF ( 52, CASE + 54 WHEN + 45 THEN - - 14 WHEN - 89 * 75 * - 27 THEN - 30 * - 12 END )
----
4888

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2824
SELECT + - 89 + + - CAST( NULL AS DECIMAL ) AS col0, 26
----
NULL
26

skipif mysql # not compatible
query II rowsort label-2824
SELECT + - 89 + + - CAST ( NULL AS REAL ) AS col0, 26
----
NULL
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2825
SELECT DISTINCT - 91 col1, ( + 9 ) * - COUNT( DISTINCT - NULLIF ( + 23, + CAST( NULL AS SIGNED ) + 54 ) ) * + 77 * - 38 * + - 22 + 44 AS col0
----
-91
-579304

skipif mysql # not compatible
query II rowsort label-2825
SELECT DISTINCT - 91 col1, ( + 9 ) * - COUNT ( DISTINCT - NULLIF ( + 23, + CAST ( NULL AS INTEGER ) + 54 ) ) * + 77 * - 38 * + - 22 + 44 AS col0
----
-91
-579304

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT SUM( - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-2826
SELECT SUM ( - 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT ALL 26 * - 46 * COUNT( * ) col1
----
-1196

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL 26 * - 46 * COUNT ( * ) col1
----
-1196

query I rowsort
SELECT + 95 * NULLIF ( 86, - - 2 ) - + 10 col0
----
8160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2829
SELECT + + 70 + - - NULLIF ( - CAST( + - CASE - 15 WHEN - + 87 - + + 41 * - + 43 / 64 * + 2 - 86 + 34 + 63 * + + 94 * + 80 - - NULLIF ( + 26, COUNT( * ) ) + MIN( ALL - 26 - - 84 ) THEN - 38 - 9 WHEN 4 * - COUNT( DISTINCT - 57 ) THEN 55 END AS SIGNED ), - COUNT( * ) - - 77 ) + 85 * + ( 32 + MAX( DISTINCT 86 + + 67 ) * 38 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2829
SELECT + + 70 + - - NULLIF ( - CAST ( + - CASE - 15 WHEN - + 87 - + + 41 * - + 43 / 64 * + 2 - 86 + 34 + 63 * + + 94 * + 80 - - NULLIF ( + 26, COUNT ( * ) ) + MIN ( ALL - 26 - - 84 ) THEN - 38 - 9 WHEN 4 * - COUNT ( DISTINCT - 57 ) THEN 55 END AS INTEGER ), - COUNT ( * ) - - 77 ) + 85 * + ( 32 + MAX ( DISTINCT 86 + + 67 ) * 38 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 1 + + CASE - 80 WHEN 53 THEN 55 + - 67 * - + 13 END
----
NULL

query I rowsort
SELECT + 57 + 41
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT - COUNT( 36 ) + ( - 93 ) * - + 27 * + - 45
----
-112996

skipif mysql # not compatible
query I rowsort label-2832
SELECT - COUNT ( 36 ) + ( - 93 ) * - + 27 * + - 45
----
-112996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2833
SELECT ALL 45 + - + CAST( - 77 AS SIGNED )
----
122

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL 45 + - + CAST ( - 77 AS INTEGER )
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2834
SELECT DISTINCT COALESCE ( + + 92, - - 85 * + MAX( - + 94 ) * CAST( 89 AS SIGNED ) ) + - 86 * - - 36 AS col2
----
-3004

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT COALESCE ( + + 92, - - 85 * + MAX ( - + 94 ) * CAST ( 89 AS INTEGER ) ) + - 86 * - - 36 AS col2
----
-3004

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT ALL + COUNT( DISTINCT - + 70 ) * - 96 + + 49
----
-47

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL + COUNT ( DISTINCT - + 70 ) * - 96 + + 49
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT - ( - + 81 ) DIV 15
----
5

skipif mysql # not compatible
query I rowsort label-2837
SELECT - ( - + 81 ) / 15
----
5

query I rowsort
SELECT DISTINCT + 6 * - + 54 AS col0
----
-324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2839
SELECT + MAX( + 59 ) DIV 70 - + ( - COUNT( * ) ) * - 61 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-2839
SELECT + MAX ( + 59 ) / 70 - + ( - COUNT ( * ) ) * - 61 AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2840
SELECT ALL + 62 DIV - COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) + MIN( - - 65 ) AS col2
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-2840
SELECT ALL + 62 / - COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) + MIN ( - - 65 ) AS col2
----
-62
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2842
SELECT ALL + - ( - COUNT( * ) ), - 97 * 29 + + + 26 DIV + 30 AS col0
----
1
-2813

skipif mysql # not compatible
query II rowsort label-2842
SELECT ALL + - ( - COUNT ( * ) ), - 97 * 29 + + + 26 / + 30 AS col0
----
1
-2813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2843
SELECT - 54 + + 98 + - MIN( 31 ) * - 63 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2843
SELECT - 54 + + 98 + - MIN ( 31 ) * - 63 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT - COUNT( * ) - - 32 * - + 54 * + 87 * + - 54 AS col0
----
8118143

skipif mysql # not compatible
query I rowsort label-2844
SELECT - COUNT ( * ) - - 32 * - + 54 * + 87 * + - 54 AS col0
----
8118143

query II rowsort
SELECT - 82 + + 38 AS col0, + 95
----
-44
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2846
SELECT ALL + ( - 69 ) DIV + + 90
----
0

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL + ( - 69 ) / + + 90
----
0

query I rowsort
SELECT - - 35 + + 43
----
78

query I rowsort
SELECT - + 60 + 58
----
-2

query I rowsort
SELECT + - 85 + 41 col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2850
SELECT DISTINCT + CASE + SUM( - 51 ) WHEN 93 + - NULLIF ( + + 23, ( 66 ) * + 64 ) THEN + ( 94 ) WHEN - 54 * - 43 * + 50 * NULLIF ( 10, + CAST( NULL AS SIGNED ) + - ( + 4 ) ) * 38 + + 31 * 89 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2850
SELECT DISTINCT + CASE + SUM ( - 51 ) WHEN 93 + - NULLIF ( + + 23, ( 66 ) * + 64 ) THEN + ( 94 ) WHEN - 54 * - 43 * + 50 * NULLIF ( 10, + CAST ( NULL AS INTEGER ) + - ( + 4 ) ) * 38 + + 31 * 89 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2851
SELECT CASE - 11 WHEN - - 10 + - 7 * - 27 + + COUNT( * ) + + 23 * CAST( + - 18 AS SIGNED ) THEN + 42 ELSE - - CASE + 31 WHEN - ( - ( + - MAX( 96 ) ) ) + - ( - 66 ) + 37 THEN 12 - - 3 * + NULLIF ( 70, COUNT( + ( - 95 ) ) ) WHEN + COUNT( * ) - + CAST( NULL AS SIGNED ) THEN + 65 * - 22 WHEN + COUNT( * ) THEN COUNT( * ) * - 32 + + 25 END * - 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2851
SELECT CASE - 11 WHEN - - 10 + - 7 * - 27 + + COUNT ( * ) + + 23 * CAST ( + - 18 AS INTEGER ) THEN + 42 ELSE - - CASE + 31 WHEN - ( - ( + - MAX ( 96 ) ) ) + - ( - 66 ) + 37 THEN 12 - - 3 * + NULLIF ( 70, COUNT ( + ( - 95 ) ) ) WHEN + COUNT ( * ) - + CAST ( NULL AS INTEGER ) THEN + 65 * - 22 WHEN + COUNT ( * ) THEN COUNT ( * ) * - 32 + + 25 END * - 93 END
----
NULL

query I rowsort
SELECT 57 * - 76
----
-4332

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT ALL COUNT( * ) / + CASE WHEN NOT - 11 BETWEEN 60 AND ( - 11 ) THEN NULL ELSE + 3 END * + ( - COUNT( 7 ) ) * 92 - + ( + 74 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL COUNT ( * ) / + CASE WHEN NOT - 11 BETWEEN 60 AND ( - 11 ) THEN NULL ELSE + 3 END * + ( - COUNT ( 7 ) ) * 92 - + ( + 74 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2854
SELECT DISTINCT 4 DIV - 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2854
SELECT DISTINCT 4 / - 45 AS col2
----
0

query II rowsort
SELECT DISTINCT 11 AS col1, 40 col1
----
11
40

query II rowsort
SELECT ALL 15, + 52 AS col2
----
15
52

query I rowsort
SELECT 79 - + - 55 AS col2
----
134

query I rowsort
SELECT ( - 87 ) * 35 * 41 + - - 2 AS col1
----
-124843

query I rowsort
SELECT ALL 96 - - ( 98 )
----
194

query II rowsort
SELECT + 27 AS col1, + 58
----
27
58

query I rowsort
SELECT COALESCE ( - 8, - + 80 ) * + 89 * + 37 - - ( + 41 ) + - 62 + - 9 col1
----
-26374

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2862
SELECT + COUNT( * ) DIV 59 + + 47 - - + 15 DIV + - ( 65 ) * - + 18 * + 84 + - 7 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-2862
SELECT + COUNT ( * ) / 59 + + 47 - - + 15 / + - ( 65 ) * - + 18 * + 84 + - 7 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT ALL 60 - + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-2863
SELECT ALL 60 - + COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2864
SELECT MAX( ALL 75 ) + 75 * 48 * - MIN( + 38 ) AS col2, 92 * + 56 col1
----
-136725
5152

skipif mysql # not compatible
query II rowsort label-2864
SELECT MAX ( ALL 75 ) + 75 * 48 * - MIN ( + 38 ) AS col2, 92 * + 56 col1
----
-136725
5152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2865
SELECT DISTINCT - 30 AS col0, - CAST( + 1 AS SIGNED ) * - CAST( NULL AS SIGNED ) + - SUM( + 12 ) + 91 * + 24
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-2865
SELECT DISTINCT - 30 AS col0, - CAST ( + 1 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - SUM ( + 12 ) + 91 * + 24
----
-30
NULL

query I rowsort
SELECT 4 + + - 57 - 86
----
-139

onlyif mysql # aggregate syntax: 
query II rowsort label-2867
SELECT ALL - COUNT( * ) AS col1, 47 * - 36 * - + COUNT( * ) AS col1
----
-1
1692

skipif mysql # not compatible
query II rowsort label-2867
SELECT ALL - COUNT ( * ) AS col1, 47 * - 36 * - + COUNT ( * ) AS col1
----
-1
1692

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2869
SELECT 44 DIV - 4
----
-11

skipif mysql # not compatible
query I rowsort label-2869
SELECT 44 / - 4
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT 31 * - - SUM( DISTINCT - 48 ) AS col2
----
-1488

skipif mysql # not compatible
query I rowsort label-2870
SELECT 31 * - - SUM ( DISTINCT - 48 ) AS col2
----
-1488

onlyif mysql # aggregate syntax: 
query II rowsort label-2871
SELECT + 88 AS col0, - SUM( DISTINCT 47 )
----
88
-47

skipif mysql # not compatible
query II rowsort label-2871
SELECT + 88 AS col0, - SUM ( DISTINCT 47 )
----
88
-47

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

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

query I rowsort
SELECT 21 + + 84 AS col1
----
105

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

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

query I rowsort
SELECT ALL - - 42 + + - 97 AS col2
----
-55

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2877
SELECT ALL - - COALESCE ( + - 51, + COUNT( * ) ) AS col2, - 11 * + 25 + + CAST( NULL AS SIGNED ) AS col0, 55
----
-51
NULL
55

skipif mysql # not compatible
query III rowsort label-2877
SELECT ALL - - COALESCE ( + - 51, + COUNT ( * ) ) AS col2, - 11 * + 25 + + CAST ( NULL AS INTEGER ) AS col0, 55
----
-51
NULL
55

query I rowsort
SELECT DISTINCT + + NULLIF ( - 60, - COALESCE ( - + 45, - + 4 ) * 91 + CASE - + 31 WHEN - + 8 THEN NULL WHEN ( - + 1 ) THEN ( + 97 ) END ) + + - 60 * + 38 * - 90 col2
----
205140

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT 79 * - SUM( - 92 )
----
7268

skipif mysql # not compatible
query I rowsort label-2880
SELECT 79 * - SUM ( - 92 )
----
7268

query I rowsort
SELECT ALL - 42 + + NULLIF ( + 77, - 88 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2882
SELECT CASE - + 3 WHEN + ( - 34 ) THEN 73 - - 79 + - 92 * - - 67 + - SUM( 20 ) WHEN - CAST( + 90 AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2882
SELECT CASE - + 3 WHEN + ( - 34 ) THEN 73 - - 79 + - 92 * - - 67 + - SUM ( 20 ) WHEN - CAST ( + 90 AS INTEGER ) THEN NULL END
----
NULL

query I rowsort
SELECT + 65 * + - 13 col2
----
-845

onlyif mysql # aggregate syntax: 
query II rowsort label-2884
SELECT + 7, 51 + COUNT( * ) AS col1
----
7
52

skipif mysql # not compatible
query II rowsort label-2884
SELECT + 7, 51 + COUNT ( * ) AS col1
----
7
52

query I rowsort
SELECT ALL - 93 + 47
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT 53 * + MIN( ALL 9 ) AS col1
----
477

skipif mysql # not compatible
query I rowsort label-2886
SELECT 53 * + MIN ( ALL 9 ) AS col1
----
477

query I rowsort
SELECT 88 + + 34 + + NULLIF ( + 51, 86 + 56 ) AS col0
----
173

onlyif mysql # DIV for integer division: 
query I rowsort label-2888
SELECT DISTINCT 14 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT 14 / - 80
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2889
SELECT ALL 49 * - 16 * CAST( + 61 AS SIGNED ) AS col0
----
-47824

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL 49 * - 16 * CAST ( + 61 AS INTEGER ) AS col0
----
-47824

onlyif mysql # DIV for integer division: 
query I rowsort label-2890
SELECT DISTINCT - 89 DIV - 80
----
1

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT - 89 / - 80
----
1

query II rowsort
SELECT ( + - 1 ) * - 44 * 22 * - 44 AS col2, + ( + 20 )
----
-42592
20

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

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

query I rowsort
SELECT CASE + - ( - 49 ) WHEN + + 92 - + + 48 THEN COALESCE ( - - 94, 63 / 81 ) * 17 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2894
SELECT COALESCE ( 51, CAST( + 90 AS SIGNED ) * ( - - 17 ) * + 61 * + 63 ) * 89
----
4539

skipif mysql # not compatible
query I rowsort label-2894
SELECT COALESCE ( 51, CAST ( + 90 AS INTEGER ) * ( - - 17 ) * + 61 * + 63 ) * 89
----
4539

query I rowsort
SELECT 76 - - 5 * + + 24 * - 11 * 44 AS col0
----
-58004

query I rowsort
SELECT ALL - - ( - 33 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2897
SELECT ALL - 7 + + - CASE - 54 WHEN - + COUNT( * ) THEN + COUNT( * ) * + - 9 + - CAST( + - 55 AS SIGNED ) WHEN + ( - + 67 ) THEN + 0 * 77 - + CAST( NULL AS SIGNED ) + - + 19 * - 64 END + - 4 + - COUNT( * ) AS col1, 1 * 20
----
NULL
20

skipif mysql # not compatible
query II rowsort label-2897
SELECT ALL - 7 + + - CASE - 54 WHEN - + COUNT ( * ) THEN + COUNT ( * ) * + - 9 + - CAST ( + - 55 AS INTEGER ) WHEN + ( - + 67 ) THEN + 0 * 77 - + CAST ( NULL AS INTEGER ) + - + 19 * - 64 END + - 4 + - COUNT ( * ) AS col1, 1 * 20
----
NULL
20

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

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

query I rowsort
SELECT DISTINCT - + 65 col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT ALL - COUNT( * ) * + 59 + - 48 * + 21 AS col0
----
-1067

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL - COUNT ( * ) * + 59 + - 48 * + 21 AS col0
----
-1067

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2901
SELECT DISTINCT - 13 * 44 DIV + 10 * - - COUNT( * ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-2901
SELECT DISTINCT - 13 * 44 / + 10 * - - COUNT ( * ) AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2902
SELECT ALL 58 * - COALESCE ( + + 77, + + 89, + 70 * + ( - COALESCE ( + NULLIF ( + + 21, + CASE + ( - 22 ) WHEN - COUNT( * ) THEN - + 2 * CAST( NULL AS SIGNED ) - CASE + - NULLIF ( 51, - - 48 ) WHEN 63 * COUNT( * ) + 64 THEN 80 ELSE NULL END + 58 * + 81 END ), NULLIF ( - ( + 1 ), + 83 ) DIV - 21 ) ) - COALESCE ( 63, + SUM( DISTINCT + 42 ) ) )
----
-4466

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL 58 * - COALESCE ( + + 77, + + 89, + 70 * + ( - COALESCE ( + NULLIF ( + + 21, + CASE + ( - 22 ) WHEN - COUNT ( * ) THEN - + 2 * CAST ( NULL AS INTEGER ) - CASE + - NULLIF ( 51, - - 48 ) WHEN 63 * COUNT ( * ) + 64 THEN 80 ELSE NULL END + 58 * + 81 END ), NULLIF ( - ( + 1 ), + 83 ) / - 21 ) ) - COALESCE ( 63, + SUM ( DISTINCT + 42 ) ) )
----
-4466

query I rowsort
SELECT ALL + + 35 + - ( + + 35 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT + 2 + - 25 + + ( - 83 ) * + - MAX( 20 ) + 68
----
1705

skipif mysql # not compatible
query I rowsort label-2904
SELECT + 2 + - 25 + + ( - 83 ) * + - MAX ( 20 ) + 68
----
1705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2905
SELECT ALL 72 * COUNT( * ), - 66 + - CAST( - 84 AS SIGNED ) AS col1
----
72
18

skipif mysql # not compatible
query II rowsort label-2905
SELECT ALL 72 * COUNT ( * ), - 66 + - CAST ( - 84 AS INTEGER ) AS col1
----
72
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT DISTINCT 76 * + - COALESCE ( 40, - MAX( - - CASE - - 21 WHEN - 64 THEN NULL ELSE - 24 END ), + - 77 ) * 40 AS col0
----
-121600

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT 76 * + - COALESCE ( 40, - MAX ( - - CASE - - 21 WHEN - 64 THEN NULL ELSE - 24 END ), + - 77 ) * 40 AS col0
----
-121600

onlyif mysql # DIV for integer division: 
query I rowsort label-2907
SELECT ALL - 65 DIV + - 6
----
10

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL - 65 / + - 6
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT - COUNT( * ) * 98 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-2908
SELECT - COUNT ( * ) * 98 AS col1
----
-98

query I rowsort
SELECT - 97 * + 82
----
-7954

onlyif mysql # aggregate syntax: 
query II rowsort label-2910
SELECT 91 AS col1, 83 + - SUM( ALL + 41 ) + - 93 * + - 94 AS col1
----
91
8784

skipif mysql # not compatible
query II rowsort label-2910
SELECT 91 AS col1, 83 + - SUM ( ALL + 41 ) + - 93 * + - 94 AS col1
----
91
8784

query I rowsort
SELECT - CASE 71 WHEN + 7 THEN NULL ELSE 26 END + - - 78
----
52

query I rowsort
SELECT ALL AVG ( DISTINCT NULLIF ( 63, + 63 ) )
----
NULL

query I rowsort
SELECT - 61 * - ( + 76 )
----
4636

query I rowsort
SELECT - 67 * ( + 23 ) * 79
----
-121739

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2916
SELECT ALL ( CASE + - 16 WHEN + + 76 / - 14 + ( + 44 ) + + + 95 * + CAST( - 50 AS DECIMAL ) + - + CASE - - ( - + COUNT( + - NULLIF ( + 49, + 50 * + NULLIF ( 73, + 53 ) * - ( CASE + 37 WHEN + 93 * + 33 THEN 85 - 74 END ) ) ) ) WHEN + ( 23 ) * + 46 THEN 20 ELSE + 83 END / 27 THEN NULL WHEN 11 THEN 80 - - 99 WHEN + 85 / - COUNT( * ) THEN COUNT( * ) * 25 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL ( CASE + - 16 WHEN + + 76 / - 14 + ( + 44 ) + + + 95 * + CAST ( - 50 AS REAL ) + - + CASE - - ( - + COUNT ( + - NULLIF ( + 49, + 50 * + NULLIF ( 73, + 53 ) * - ( CASE + 37 WHEN + 93 * + 33 THEN 85 - 74 END ) ) ) ) WHEN + ( 23 ) * + 46 THEN 20 ELSE + 83 END / 27 THEN NULL WHEN 11 THEN 80 - - 99 WHEN + 85 / - COUNT ( * ) THEN COUNT ( * ) * 25 END )
----
NULL

query I rowsort
SELECT DISTINCT - 76 * + 36 AS col2
----
-2736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2918
SELECT - 84 DIV + COALESCE ( COUNT( * ), 91 + - + 16 )
----
-84

skipif mysql # not compatible
query I rowsort label-2918
SELECT - 84 / + COALESCE ( COUNT ( * ), 91 + - + 16 )
----
-84

query I rowsort
SELECT - 1 - ( + 79 ) + - + 84 + 52 * - 28 AS col2
----
-1620

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2921
SELECT - NULLIF ( + - 44, - - COUNT( * ) * - - 29 DIV - 2 ) DIV 50 * + + 77 + - COUNT( * ) AS col2, + 85
----
-1
85

skipif mysql # not compatible
query II rowsort label-2921
SELECT - NULLIF ( + - 44, - - COUNT ( * ) * - - 29 / - 2 ) / 50 * + + 77 + - COUNT ( * ) AS col2, + 85
----
-1
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2922
SELECT ALL + - 10 * - MIN( DISTINCT - 46 ) * 50 + - 95 + - 79 * - 66 - - 33 * + COUNT( + - ( + 87 ) ) * - CAST( + 81 AS SIGNED ) + 77 + - 66 + - + 30 + - 70 * 96
----
-27293

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL + - 10 * - MIN ( DISTINCT - 46 ) * 50 + - 95 + - 79 * - 66 - - 33 * + COUNT ( + - ( + 87 ) ) * - CAST ( + 81 AS INTEGER ) + 77 + - 66 + - + 30 + - 70 * 96
----
-27293

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT - COUNT( * ) * + COUNT( * ) * - + 27 + + 57
----
84

skipif mysql # not compatible
query I rowsort label-2923
SELECT - COUNT ( * ) * + COUNT ( * ) * - + 27 + + 57
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT DISTINCT + + COALESCE ( - - 98, - MAX( - 86 ), + + 98 * + 97 + - COUNT( * ) * + 7 )
----
98

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT + + COALESCE ( - - 98, - MAX ( - 86 ), + + 98 * + 97 + - COUNT ( * ) * + 7 )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2925
SELECT ALL + 58 DIV + + 94
----
0

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL + 58 / + + 94
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2926
SELECT ALL - + 91 * - - 81 + - - COALESCE ( + 2, MIN( ALL - 63 ), 6, + CASE COUNT( * ) WHEN + + 70 THEN COUNT( * ) ELSE NULL END ) + + + 87 DIV - 4 AS col2
----
-7390

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL - + 91 * - - 81 + - - COALESCE ( + 2, MIN ( ALL - 63 ), 6, + CASE COUNT ( * ) WHEN + + 70 THEN COUNT ( * ) ELSE NULL END ) + + + 87 / - 4 AS col2
----
-7390

onlyif mysql # aggregate syntax: 
query II rowsort label-2927
SELECT DISTINCT + - 25 * + - 51 * + 8 + 84 * + CASE + 96 WHEN - - 27 THEN + 25 * + 29 * - ( - + COUNT( * ) ) * + 3 - + 40 END, 44 * - 30 col2
----
NULL
-1320

skipif mysql # not compatible
query II rowsort label-2927
SELECT DISTINCT + - 25 * + - 51 * + 8 + 84 * + CASE + 96 WHEN - - 27 THEN + 25 * + 29 * - ( - + COUNT ( * ) ) * + 3 - + 40 END, 44 * - 30 col2
----
NULL
-1320

query I rowsort
SELECT CASE 79 WHEN - 36 THEN NULL ELSE - 78 END
----
-78

query I rowsort
SELECT ALL - 17 * + + 45 - - 34
----
-731

onlyif mysql # DIV for integer division: 
query I rowsort label-2930
SELECT 6 DIV + 15 + + ( + 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-2930
SELECT 6 / + 15 + + ( + 56 ) AS col2
----
56

query I rowsort
SELECT DISTINCT + CASE WHEN NOT NULL NOT BETWEEN COALESCE ( - + 1, + 34 ) AND NULL THEN NULL ELSE - + 85 END AS col2
----
-85

query I rowsort
SELECT ALL - 10 * + 6 - - + 68 AS col1
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-2933
SELECT ALL + + ( - + ( - 66 ) ) AS col2, - COALESCE ( 39, 9 ) * + COUNT( * ) + + 6 AS col2
----
66
-33

skipif mysql # not compatible
query II rowsort label-2933
SELECT ALL + + ( - + ( - 66 ) ) AS col2, - COALESCE ( 39, 9 ) * + COUNT ( * ) + + 6 AS col2
----
66
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2934
SELECT ALL - COALESCE ( + - 89, 57 * - - 67 - + 82, - - CAST( 89 AS SIGNED ) DIV + + 23 DIV + + ( 22 ) + + 15 DIV - COUNT( * ) + COALESCE ( - 20, - COUNT( * ) ) + 39 )
----
89

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL - COALESCE ( + - 89, 57 * - - 67 - + 82, - - CAST ( 89 AS INTEGER ) / + + 23 / + + ( 22 ) + + 15 / - COUNT ( * ) + COALESCE ( - 20, - COUNT ( * ) ) + 39 )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2935
SELECT DISTINCT 46 * - - 74 - 18 + - - 68 DIV ( + - ( + - 26 ) ) * - - 65
----
3516

skipif mysql # not compatible
query I rowsort label-2935
SELECT DISTINCT 46 * - - 74 - 18 + - - 68 / ( + - ( + - 26 ) ) * - - 65
----
3516

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT - 91 + + 69 + - - COALESCE ( - 92, + 43 + 22 ) * - + 70 * NULLIF ( - 9, + CASE 16 WHEN + - ( - - MIN( + 43 ) ) THEN - 46 * - 33 WHEN 62 * + NULLIF ( - 30, 85 / ( 34 ) - 89 / 68 - - COUNT( * ) ) THEN NULL ELSE NULL END )
----
-57982

skipif mysql # not compatible
query I rowsort label-2937
SELECT - 91 + + 69 + - - COALESCE ( - 92, + 43 + 22 ) * - + 70 * NULLIF ( - 9, + CASE 16 WHEN + - ( - - MIN ( + 43 ) ) THEN - 46 * - 33 WHEN 62 * + NULLIF ( - 30, 85 / ( 34 ) - 89 / 68 - - COUNT ( * ) ) THEN NULL ELSE NULL END )
----
-57982

query I rowsort
SELECT - ( - + 69 ) * + 45
----
3105

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

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

query I rowsort
SELECT ALL 32 * - 39
----
-1248

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT DISTINCT 3 * - CASE - COUNT( * ) WHEN + + ( + + 71 ) THEN + 51 ELSE + CASE - 8 WHEN 53 THEN + + 30 WHEN + 34 THEN NULL END * + 45 * 56 * + 94 END * + 90 * - + ( 26 ) + + 92 + COUNT( * ) + 17 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT 3 * - CASE - COUNT ( * ) WHEN + + ( + + 71 ) THEN + 51 ELSE + CASE - 8 WHEN 53 THEN + + 30 WHEN + 34 THEN NULL END * + 45 * 56 * + 94 END * + 90 * - + ( 26 ) + + 92 + COUNT ( * ) + 17 col1
----
NULL

query I rowsort
SELECT + NULLIF ( - 62, - 39 ) - - 80
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2943
SELECT + ( 7 ) * + + COUNT( * ) + + ( + + 74 ) - + - 24, 7 + - + COUNT( * ) AS col0
----
105
6

skipif mysql # not compatible
query II rowsort label-2943
SELECT + ( 7 ) * + + COUNT ( * ) + + ( + + 74 ) - + - 24, 7 + - + COUNT ( * ) AS col0
----
105
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT ALL 96 * + COUNT( * ) / - CASE 61 WHEN - 16 * - + ( - 43 ) * 32 THEN 30 END * + 45 * + - 9 * + 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL 96 * + COUNT ( * ) / - CASE 61 WHEN - 16 * - + ( - 43 ) * 32 THEN 30 END * + 45 * + - 9 * + 75 AS col2
----
NULL

query I rowsort
SELECT - 8 * - 17
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT ALL - 62 + - 90 + - COUNT( * ) + + 8 AS col2
----
-145

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL - 62 + - 90 + - COUNT ( * ) + + 8 AS col2
----
-145

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT - 2 + - + COUNT( ALL - 80 ) + + 91 * - COUNT( * ) * - MIN( ALL - 86 )
----
-7829

skipif mysql # not compatible
query I rowsort label-2948
SELECT - 2 + - + COUNT ( ALL - 80 ) + + 91 * - COUNT ( * ) * - MIN ( ALL - 86 )
----
-7829

query I rowsort
SELECT - 60 - 72
----
-132

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT + MAX( - 96 ) * - 65 - + 25 * + MIN( - NULLIF ( 8, - + 91 * + - 30 ) ) AS col1
----
6440

skipif mysql # not compatible
query I rowsort label-2951
SELECT + MAX ( - 96 ) * - 65 - + 25 * + MIN ( - NULLIF ( 8, - + 91 * + - 30 ) ) AS col1
----
6440

query I rowsort
SELECT - 78 + - - 73 * + - 52 AS col2
----
-3874

query II rowsort
SELECT 98 AS col2, - 86
----
98
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT - MAX( ALL + 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-2954
SELECT - MAX ( ALL + 58 ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT ALL + SUM( DISTINCT + - 42 ) + + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL + SUM ( DISTINCT + - 42 ) + + COUNT ( * )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT - + MIN( DISTINCT + 41 ) + + 60
----
19

skipif mysql # not compatible
query I rowsort label-2956
SELECT - + MIN ( DISTINCT + 41 ) + + 60
----
19

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2958
SELECT ALL - 57 DIV 84 + - + ( - ( + 85 ) ) + 69 AS col1, + 94 + 91 - - ( 59 ) col2
----
154
244

skipif mysql # not compatible
query II rowsort label-2958
SELECT ALL - 57 / 84 + - + ( - ( + 85 ) ) + 69 AS col1, + 94 + 91 - - ( 59 ) col2
----
154
244

query I rowsort
SELECT ALL + 13 + - 79 AS col1
----
-66

query I rowsort
SELECT ( 39 ) col2
----
39

query I rowsort
SELECT ALL + - 23 + - 5
----
-28

query I rowsort
SELECT DISTINCT + 79 * - 93 * 17 * + 60 + + 78
----
-7493862

onlyif mysql # aggregate syntax: 
query II rowsort label-2963
SELECT DISTINCT - + 69 col1, - COUNT( * ) * 18 + + COUNT( * ) * + 46
----
-69
28

skipif mysql # not compatible
query II rowsort label-2963
SELECT DISTINCT - + 69 col1, - COUNT ( * ) * 18 + + COUNT ( * ) * + 46
----
-69
28

query I rowsort
SELECT + 44 * + ( ( 40 ) ) AS col1
----
1760

query II rowsort
SELECT 37, COALESCE ( 27, - 95 + - 14 ) AS col1
----
37
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT COALESCE ( - + ( - 84 ), 45, 17 + - - COUNT( * ) ) - + 82 + - 23 * - 64 col0
----
1474

skipif mysql # not compatible
query I rowsort label-2966
SELECT COALESCE ( - + ( - 84 ), 45, 17 + - - COUNT ( * ) ) - + 82 + - 23 * - 64 col0
----
1474

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT 54 - - - 78 * + ( COUNT( * ) ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-2968
SELECT 54 - - - 78 * + ( COUNT ( * ) ) AS col0
----
-24

query I rowsort
SELECT 47 * - - 3 + + 61
----
202

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT + 30 * + MAX( 55 ) * 2 * 36 + 71 AS col1
----
118871

skipif mysql # not compatible
query I rowsort label-2972
SELECT + 30 * + MAX ( 55 ) * 2 * 36 + 71 AS col1
----
118871

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT MAX( + 73 ) + - + 48 + + - 74 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-2973
SELECT MAX ( + 73 ) + - + 48 + + - 74 AS col1
----
-49

query I rowsort
SELECT ALL + 2 * - + 46 * - 92
----
8464

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT DISTINCT + 93 * + 57 * + COUNT( * ) AS col1
----
5301

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT DISTINCT MIN( ALL 56 ) + + - 49 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT MIN ( ALL 56 ) + + - 49 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT DISTINCT NULLIF ( + + 66, - + NULLIF ( - 6, ( - COUNT( * ) ) ) ) + 38 * COUNT( * ) - + 39 col0
----
65

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT NULLIF ( + + 66, - + NULLIF ( - 6, ( - COUNT ( * ) ) ) ) + 38 * COUNT ( * ) - + 39 col0
----
65

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

skipif mysql # not compatible
query I rowsort label-2978
SELECT 78 + + COUNT ( * ) * + 25 AS col1
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2979
SELECT MIN( 30 ) * + 48, 33 * + 79 AS col2, CAST( NULL AS SIGNED ) AS col1
----
1440
2607
NULL

skipif mysql # not compatible
query III rowsort label-2979
SELECT MIN ( 30 ) * + 48, 33 * + 79 AS col2, CAST ( NULL AS INTEGER ) AS col1
----
1440
2607
NULL

query I rowsort
SELECT DISTINCT 25 + + ( - - 30 ) AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2981
SELECT DISTINCT CASE 98 WHEN + CAST( + ( 3 ) AS SIGNED ) THEN - + 5 * COUNT( * ) ELSE NULL END + + 96 - - - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT CASE 98 WHEN + CAST ( + ( 3 ) AS INTEGER ) THEN - + 5 * COUNT ( * ) ELSE NULL END + + 96 - - - 29
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL ( + 79 ) + MIN ( ALL + 89 ) AS col0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT ALL COUNT( * ) * + 42 * 8
----
336

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL COUNT ( * ) * + 42 * 8
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT DISTINCT 89 + - 14 * - - 38 * + COUNT( * )
----
-443

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT 89 + - 14 * - - 38 * + COUNT ( * )
----
-443

query I rowsort
SELECT ALL - 20 + 87
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT 23 - + 77 * - MIN( + 20 )
----
1563

skipif mysql # not compatible
query I rowsort label-2986
SELECT 23 - + 77 * - MIN ( + 20 )
----
1563

query I rowsort
SELECT CASE - 28 WHEN - 58 + + 7 THEN + 4 / 58 * 19 END + 99 + + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT COUNT( * ) + + COUNT( * ) * 30 + + 34 * - 28
----
-921

skipif mysql # not compatible
query I rowsort label-2988
SELECT COUNT ( * ) + + COUNT ( * ) * 30 + + 34 * - 28
----
-921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2989
SELECT ( - 25 ) + CAST( COUNT( * ) AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-2989
SELECT ( - 25 ) + CAST ( COUNT ( * ) AS INTEGER )
----
-24

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

skipif mysql # not compatible
query II rowsort label-2990
SELECT - COUNT ( - 28 ) AS col2, - 66 AS col0
----
-1
-66

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT ALL COALESCE ( + - COUNT( * ), + ( + - 64 ) + - ( + 98 ) ) - + ( 69 )
----
-70

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL COALESCE ( + - COUNT ( * ), + ( + - 64 ) + - ( + 98 ) ) - + ( 69 )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2994
SELECT ALL + 35 * 55 col2, CAST( NULL AS SIGNED ), + COUNT( * ) * 42 AS col1
----
1925
NULL
42

skipif mysql # not compatible
query III rowsort label-2994
SELECT ALL + 35 * 55 col2, CAST ( NULL AS INTEGER ), + COUNT ( * ) * 42 AS col1
----
1925
NULL
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2995
SELECT 69 + 74 AS col2, - COUNT( * ) - 55 - 32 - + 10 DIV - 46
----
143
-88

skipif mysql # not compatible
query II rowsort label-2995
SELECT 69 + 74 AS col2, - COUNT ( * ) - 55 - 32 - + 10 / - 46
----
143
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT 0 * - + 10 + - COUNT( ALL + 68 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2996
SELECT 0 * - + 10 + - COUNT ( ALL + 68 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + - 87 * 72 + 73 col2
----
-6191

query I rowsort
SELECT 61 * + 38
----
2318

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT ALL + 74 * + 14 + - - 28 * 79 + - 9 * SUM( - + 53 ) col2
----
3725

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL + 74 * + 14 + - - 28 * 79 + - 9 * SUM ( - + 53 ) col2
----
3725

onlyif mysql # aggregate syntax: 
query II rowsort label-3000
SELECT MIN( + ( - 54 ) ) AS col0, - 58 AS col1
----
-54
-58

skipif mysql # not compatible
query II rowsort label-3000
SELECT MIN ( + ( - 54 ) ) AS col0, - 58 AS col1
----
-54
-58

query I rowsort
SELECT + - 43 * - - 90 + - 41
----
-3911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3002
SELECT - CASE + COALESCE ( 98, + 94 ) WHEN + - 81 * + + SUM( ALL - - CAST( NULL AS SIGNED ) ) / - COUNT( * ) + + - 84 * 71 + + - 55 + - - 8 + - 21 / - 65 + COUNT( * ) * - ( - 30 ) + 1 + + - COUNT( * ) * + 2 * + COUNT( * ) + - 78 / 64 THEN SUM( 23 ) * - 6 WHEN + 3 * 89 THEN 10 ELSE + NULLIF ( - 42, + 19 * 78 ) END
----
42

skipif mysql # not compatible
query I rowsort label-3002
SELECT - CASE + COALESCE ( 98, + 94 ) WHEN + - 81 * + + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) + + - 84 * 71 + + - 55 + - - 8 + - 21 / - 65 + COUNT ( * ) * - ( - 30 ) + 1 + + - COUNT ( * ) * + 2 * + COUNT ( * ) + - 78 / 64 THEN SUM ( 23 ) * - 6 WHEN + 3 * 89 THEN 10 ELSE + NULLIF ( - 42, + 19 * 78 ) END
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3003
SELECT 13, 74 * CAST( NULL AS SIGNED ) AS col2
----
13
NULL

skipif mysql # not compatible
query II rowsort label-3003
SELECT 13, 74 * CAST ( NULL AS INTEGER ) AS col2
----
13
NULL

query II rowsort
SELECT + 0 AS col0, 79 AS col1
----
0
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT ALL - 34 DIV 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL - 34 / 99 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT DISTINCT - 61 + 77 + + 63 * + COALESCE ( - + SUM( ALL - - 57 ), - 32 * COUNT( * ) * 49 ) * - + 55
----
197521

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT - 61 + 77 + + 63 * + COALESCE ( - + SUM ( ALL - - 57 ), - 32 * COUNT ( * ) * 49 ) * - + 55
----
197521

query I rowsort
SELECT 88 * - 17 col1
----
-1496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3008
SELECT 91 * + MAX( + 43 ) * + 49 - + + CAST( - MIN( - + 91 ) AS SIGNED ) * COUNT( * ) AS col2, 28 AS col1
----
191646
28

skipif mysql # not compatible
query II rowsort label-3008
SELECT 91 * + MAX ( + 43 ) * + 49 - + + CAST ( - MIN ( - + 91 ) AS INTEGER ) * COUNT ( * ) AS col2, 28 AS col1
----
191646
28

query I rowsort
SELECT ALL - 43 + 32 AS col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3010
SELECT DISTINCT - COALESCE ( + + 48, - 20, 61 * 73 + + MIN( + 0 ) * + 92 + + + 92 * - CAST( - + COUNT( * ) AS SIGNED ) ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT - COALESCE ( + + 48, - 20, 61 * 73 + + MIN ( + 0 ) * + 92 + + + 92 * - CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col2
----
-48

query I rowsort
SELECT ALL - 34 + 33 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3012
SELECT + COUNT( * ) * + 8 * + - CAST( - 97 AS SIGNED ) - - - 24 AS col0
----
752

skipif mysql # not compatible
query I rowsort label-3012
SELECT + COUNT ( * ) * + 8 * + - CAST ( - 97 AS INTEGER ) - - - 24 AS col0
----
752

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3013
SELECT 50 AS col0, + CAST( NULL AS DECIMAL )
----
50
NULL

skipif mysql # not compatible
query II rowsort label-3013
SELECT 50 AS col0, + CAST ( NULL AS REAL )
----
50
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT ALL MIN( DISTINCT - 22 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL MIN ( DISTINCT - 22 ) AS col0
----
-22

query I rowsort
SELECT 78 * - - 12
----
936

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

skipif mysql # not compatible
query I rowsort label-3016
SELECT 23 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT - MAX( DISTINCT - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-3017
SELECT - MAX ( DISTINCT - 41 )
----
41

query I rowsort
SELECT ALL - 17 + + - 12
----
-29

query I rowsort
SELECT 7 - - - 44
----
-37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT DISTINCT CASE - 92 WHEN - - 58 THEN NULL WHEN COUNT( * ) THEN + - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT CASE - 92 WHEN - - 58 THEN NULL WHEN COUNT ( * ) THEN + - COUNT ( * ) ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT 73 col1, 76 AS col2
----
73
76

query I rowsort
SELECT + - 85 * + 21
----
-1785

onlyif mysql # aggregate syntax: 
query II rowsort label-3024
SELECT - + COUNT( * ) AS col2, 58 + 41 AS col2
----
-1
99

skipif mysql # not compatible
query II rowsort label-3024
SELECT - + COUNT ( * ) AS col2, 58 + 41 AS col2
----
-1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT + + MIN( - 89 ) + - COUNT( * ) + - - 69
----
-21

skipif mysql # not compatible
query I rowsort label-3025
SELECT + + MIN ( - 89 ) + - COUNT ( * ) + - - 69
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3026
SELECT + + COALESCE ( - 67, + NULLIF ( + 17, 62 ) DIV 80 + 97 * - COUNT( * ) DIV + + COUNT( * ) + + 65 ) - + 42 DIV - 82
----
-67

skipif mysql # not compatible
query I rowsort label-3026
SELECT + + COALESCE ( - 67, + NULLIF ( + 17, 62 ) / 80 + 97 * - COUNT ( * ) / + + COUNT ( * ) + + 65 ) - + 42 / - 82
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3027
SELECT - - CAST( + + COUNT( * ) AS SIGNED ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3027
SELECT - - CAST ( + + COUNT ( * ) AS INTEGER ) col2
----
1

query I rowsort
SELECT + - 94 + 72
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3029
SELECT + - 24 * + - ( 61 ) + - COALESCE ( + 65, CAST( 65 AS SIGNED ) ) - COUNT( * ) AS col1
----
1398

skipif mysql # not compatible
query I rowsort label-3029
SELECT + - 24 * + - ( 61 ) + - COALESCE ( + 65, CAST ( 65 AS INTEGER ) ) - COUNT ( * ) AS col1
----
1398

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT DISTINCT - 86 * - SUM( - + ( + + 26 ) ) + - + 50 + - 69 + - MAX( + - 15 ) * + CASE COUNT( * ) WHEN - 52 * + COUNT( * ) + - - 71 + 35 THEN NULL WHEN + 58 / - 57 + + - 24 THEN NULL ELSE - 58 END + - ( + + 14 ) * 88 * + + 30 * - 36 - ( + 64 ) * + 97 AS col0
----
1321127

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT - 86 * - SUM ( - + ( + + 26 ) ) + - + 50 + - 69 + - MAX ( + - 15 ) * + CASE COUNT ( * ) WHEN - 52 * + COUNT ( * ) + - - 71 + 35 THEN NULL WHEN + 58 / - 57 + + - 24 THEN NULL ELSE - 58 END + - ( + + 14 ) * 88 * + + 30 * - 36 - ( + 64 ) * + 97 AS col0
----
1321127

query I rowsort
SELECT + - 72 + + 22 * + 19 * - 40 AS col2
----
-16792

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

query I rowsort
SELECT - 89 * 7 + + 27
----
-596

query I rowsort
SELECT + - 23 * + 88
----
-2024

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3038
SELECT - CAST( + ( CASE - 98 WHEN 9 * - COUNT( * ) + - - 57 THEN COUNT( * ) WHEN + + 20 - + 69 THEN + 90 ELSE NULL END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT - CAST ( + ( CASE - 98 WHEN 9 * - COUNT ( * ) + - - 57 THEN COUNT ( * ) WHEN + + 20 - + 69 THEN + 90 ELSE NULL END ) AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3039
SELECT + 10 AS col0, + 65 DIV + NULLIF ( + 3, 15 ) AS col2
----
10
21

skipif mysql # not compatible
query II rowsort label-3039
SELECT + 10 AS col0, + 65 / + NULLIF ( + 3, 15 ) AS col2
----
10
21

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

skipif mysql # not compatible
query I rowsort label-3040
SELECT + 34 * + - CAST ( NULL AS INTEGER ) - + + 80
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3041
SELECT - 67 DIV - SUM( DISTINCT + 64 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3041
SELECT - 67 / - SUM ( DISTINCT + 64 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3042
SELECT ALL COUNT( - CASE - 51 WHEN - 42 + - 8 THEN NULL ELSE - 53 END ) * + + 15 * 18 * + 3 + 84 + - 36 * 77 + + 5 + - 90 AS col0, 0
----
-1963
0

skipif mysql # not compatible
query II rowsort label-3042
SELECT ALL COUNT ( - CASE - 51 WHEN - 42 + - 8 THEN NULL ELSE - 53 END ) * + + 15 * 18 * + 3 + 84 + - 36 * 77 + + 5 + - 90 AS col0, 0
----
-1963
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT ALL MIN( DISTINCT - + 4 ) * 49 * + - ( - 53 ) + 62 - - + 52
----
-10274

skipif mysql # not compatible
query I rowsort label-3043
SELECT ALL MIN ( DISTINCT - + 4 ) * 49 * + - ( - 53 ) + 62 - - + 52
----
-10274

query I rowsort
SELECT + 77 * - + 61 + 52 AS col1
----
-4645

query I rowsort
SELECT - 61 - + 41
----
-102

query II rowsort
SELECT + ( - 42 ), - 48 col0
----
-42
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3047
SELECT COUNT( + - 58 ) * + - CASE - - 10 WHEN - 99 * ( + + AVG ( + 10 ) ) + + + 14 THEN NULL ELSE - SUM( DISTINCT - - 75 ) * - - COUNT( * ) * - 53 + + 26 END + + 92 + + 32 + + + 80 DIV COUNT( * ) AS col1
----
-3797

skipif mysql # not compatible
query I rowsort label-3047
SELECT COUNT ( + - 58 ) * + - CASE - - 10 WHEN - 99 * ( + + AVG ( + 10 ) ) + + + 14 THEN NULL ELSE - SUM ( DISTINCT - - 75 ) * - - COUNT ( * ) * - 53 + + 26 END + + 92 + + 32 + + + 80 / COUNT ( * ) AS col1
----
-3797

query II rowsort
SELECT ALL - 29 * 94 + 58 - + + 11 col0, 34
----
-2679
34

query I rowsort
SELECT - 49 * - 98 AS col1
----
4802

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT DISTINCT 70 * + + 62 + + ( + ( + ( COUNT( * ) ) ) ) AS col1
----
4341

skipif mysql # not compatible
query I rowsort label-3050
SELECT DISTINCT 70 * + + 62 + + ( + ( + ( COUNT ( * ) ) ) ) AS col1
----
4341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3051
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) DIV 10 DIV 68, + ( - COUNT( * ) ) AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-3051
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) / 10 / 68, + ( - COUNT ( * ) ) AS col1
----
0
-1

query I rowsort
SELECT - 1 + ( 43 ) - - 86 AS col2
----
128

query I rowsort
SELECT ALL - 13 + - 13 + + 71 AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3054
SELECT - 78 + 42 * + 85 + - + 83 + - CAST( - 92 AS SIGNED ) AS col1
----
3501

skipif mysql # not compatible
query I rowsort label-3054
SELECT - 78 + 42 * + 85 + - + 83 + - CAST ( - 92 AS INTEGER ) AS col1
----
3501

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT - 7 + MIN( - - 18 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-3055
SELECT - 7 + MIN ( - - 18 ) AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3056
SELECT - 71 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-3056
SELECT - 71 / 94
----
0

query II rowsort
SELECT - 83 + + + 21, 75 + - 54 col1
----
-62
21

query I rowsort
SELECT + - 39 + - + 42 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT + + ( - 24 ) + - MIN( ALL + ( + 51 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-3059
SELECT + + ( - 24 ) + - MIN ( ALL + ( + 51 ) )
----
-75

query I rowsort
SELECT DISTINCT - 1 * - 96
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT DISTINCT - SUM( + - 66 ) * + 74
----
4884

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT - SUM ( + - 66 ) * + 74
----
4884

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT + - 87 + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-3062
SELECT + - 87 + COUNT ( * )
----
-86

query I rowsort
SELECT ALL + COALESCE ( + 83, + 83 )
----
83

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3064
SELECT ALL + CAST( CAST( - - 40 AS DECIMAL ) AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL + CAST ( CAST ( - - 40 AS REAL ) AS INTEGER )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT - - COUNT( * ) + 78
----
79

skipif mysql # not compatible
query I rowsort label-3065
SELECT - - COUNT ( * ) + 78
----
79

query I rowsort
SELECT - NULLIF ( - 1, + 91 - - 95 * 47 ) + - 28 + - - 66
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-3067
SELECT + 73 + 28, - 37 * NULLIF ( + + CASE + 6 WHEN 23 * + 98 THEN NULL WHEN - 22 THEN - COUNT( * ) END, - - 94 * 59 + + COUNT( * ) * + 13 - - COUNT( * ) + + COUNT( * ) / - ( - 2 ) * - 15 ) AS col0
----
101
NULL

skipif mysql # not compatible
query II rowsort label-3067
SELECT + 73 + 28, - 37 * NULLIF ( + + CASE + 6 WHEN 23 * + 98 THEN NULL WHEN - 22 THEN - COUNT ( * ) END, - - 94 * 59 + + COUNT ( * ) * + 13 - - COUNT ( * ) + + COUNT ( * ) / - ( - 2 ) * - 15 ) AS col0
----
101
NULL

query I rowsort
SELECT - 17 * + - 79
----
1343

onlyif mysql # DIV for integer division: 
query I rowsort label-3069
SELECT DISTINCT 11 DIV - + 23 + - 71
----
-71

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT 11 / - + 23 + - 71
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3070
SELECT ALL - COUNT( * ) / - CASE + 94 WHEN 40 * 68 + 89 THEN NULL ELSE - ( 87 ) + - CAST( NULL AS SIGNED ) + + 56 * - 70 END * 79 * - - ( - 15 ) * - 40 + ( 17 ) + - ( 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL - COUNT ( * ) / - CASE + 94 WHEN 40 * 68 + 89 THEN NULL ELSE - ( 87 ) + - CAST ( NULL AS INTEGER ) + + 56 * - 70 END * 79 * - - ( - 15 ) * - 40 + ( 17 ) + - ( 5 )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3072
SELECT ALL 86 DIV + + CAST( - 19 AS SIGNED ) + - - 38 DIV - 42
----
-4

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL 86 / + + CAST ( - 19 AS INTEGER ) + - - 38 / - 42
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3073
SELECT ALL + 35 DIV + 47 + + - 11 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL + 35 / + 47 + + - 11 AS col1
----
-11

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3075
SELECT ( + ( + 90 ) ) AS col0, - COUNT( + 42 ) col1
----
90
-1

skipif mysql # not compatible
query II rowsort label-3075
SELECT ( + ( + 90 ) ) AS col0, - COUNT ( + 42 ) col1
----
90
-1

query I rowsort
SELECT - 38 + + - 60 AS col1
----
-98

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3078
SELECT DISTINCT CAST( - 60 AS SIGNED ) * - 81 * + 5 - 44 * - 7 AS col0
----
24608

skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT CAST ( - 60 AS INTEGER ) * - 81 * + 5 - 44 * - 7 AS col0
----
24608

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3080
SELECT DISTINCT - CASE - 32 WHEN - + 94 THEN NULL WHEN + MAX( + + NULLIF ( + 91, + 53 ) ) * - 60 + - COUNT( * ) + - 77 THEN + - 18 + 98 ELSE + ( + NULLIF ( + + 32, COUNT( * ) ) ) + COUNT( * ) DIV - MIN( 75 ) END - - + 43
----
11

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT - CASE - 32 WHEN - + 94 THEN NULL WHEN + MAX ( + + NULLIF ( + 91, + 53 ) ) * - 60 + - COUNT ( * ) + - 77 THEN + - 18 + 98 ELSE + ( + NULLIF ( + + 32, COUNT ( * ) ) ) + COUNT ( * ) / - MIN ( 75 ) END - - + 43
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3081
SELECT 32 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3081
SELECT 32 * - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL 1 * 54 * - - 81 AS col2
----
4374

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT ALL - SUM( DISTINCT - - 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL - SUM ( DISTINCT - - 23 ) AS col0
----
-23

query II rowsort
SELECT ALL 41 AS col0, ( + 20 )
----
41
20

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

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

query I rowsort
SELECT DISTINCT 59 * + 92
----
5428

query I rowsort
SELECT ALL NULLIF ( 27, + ( 49 ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT COUNT( * ) * + 90 - + + 3 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-3088
SELECT COUNT ( * ) * + 90 - + + 3 AS col2
----
87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT ALL - CASE - COUNT( * ) WHEN - + 69 * - - 87 THEN NULL ELSE + MIN( + 58 ) * 25 END
----
-1450

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL - CASE - COUNT ( * ) WHEN - + 69 * - - 87 THEN NULL ELSE + MIN ( + 58 ) * 25 END
----
-1450

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT - 35 DIV 51 * + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3091
SELECT - 35 / 51 * + 92 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3092
SELECT ALL + 36 DIV - CASE - + 58 WHEN + - 21 THEN NULL ELSE - 85 + COUNT( * ) END
----
0

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL + 36 / - CASE - + 58 WHEN + - 21 THEN NULL ELSE - 85 + COUNT ( * ) END
----
0

query I rowsort
SELECT + 79 + 3 - - 11 + - 17 AS col2
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3094
SELECT 54 * + COUNT( DISTINCT + + 11 ) * + 6 * + COALESCE ( 91, + + 41 - - 97 + - + 33 * - 46 + + 52 DIV + COUNT( * ) + - - SUM( 60 ) ) DIV COUNT( * ) - 53
----
29431

skipif mysql # not compatible
query I rowsort label-3094
SELECT 54 * + COUNT ( DISTINCT + + 11 ) * + 6 * + COALESCE ( 91, + + 41 - - 97 + - + 33 * - 46 + + 52 / + COUNT ( * ) + - - SUM ( 60 ) ) / COUNT ( * ) - 53
----
29431

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3095
SELECT 98 + CAST( + 65 AS SIGNED ) AS col2
----
163

skipif mysql # not compatible
query I rowsort label-3095
SELECT 98 + CAST ( + 65 AS INTEGER ) AS col2
----
163

query I rowsort
SELECT DISTINCT - 45 + 66 AS col0
----
21

query I rowsort
SELECT ALL - 95 + 31
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT MAX( ALL + + 73 ) * - - 77 * - - 91 AS col1
----
511511

skipif mysql # not compatible
query I rowsort label-3098
SELECT MAX ( ALL + + 73 ) * - - 77 * - - 91 AS col1
----
511511

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

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

query I rowsort
SELECT DISTINCT 72 + + 0 * 76
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT ALL 77 + CASE + COUNT( * ) WHEN - + 89 * 75 THEN NULL WHEN 44 THEN 94 + - 27 * + 89 END + 23 + - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL 77 + CASE + COUNT ( * ) WHEN - + 89 * 75 THEN NULL WHEN 44 THEN 94 + - 27 * + 89 END + 23 + - 14 AS col0
----
NULL

query I rowsort
SELECT ALL - - 25 + + 41 AS col1
----
66

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3104
SELECT COUNT( * ) * - + 46 DIV - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3104
SELECT COUNT ( * ) * - + 46 / - 68 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3105
SELECT ALL 68 + - - 91 + - + 27 + 40 DIV 42 * - + 3 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL 68 + - - 91 + - + 27 + 40 / 42 * - + 3 AS col1
----
132

query I rowsort
SELECT 88 * + - 52 AS col0
----
-4576

query II rowsort
SELECT 39, - 79 AS col1
----
39
-79

query II rowsort
SELECT + 6, 24 * - ( 1 ) * + + 85 + - 41 col2
----
6
-2081

query I rowsort
SELECT ALL COALESCE ( + - 52, - - 13 ) * 50 AS col0
----
-2600

onlyif mysql # DIV for integer division: 
query I rowsort label-3110
SELECT ALL + 13 DIV - + 53 col2
----
0

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL + 13 / - + 53 col2
----
0

query I rowsort
SELECT 85 * + NULLIF ( - + 69, - 70 ) + - - 63 AS col2
----
-5802

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT DISTINCT + SUM( DISTINCT 80 ) * - 59 AS col2
----
-4720

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT + SUM ( DISTINCT 80 ) * - 59 AS col2
----
-4720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3113
SELECT COALESCE ( COUNT( * ), - 94, - 64 ) DIV - + COALESCE ( - - MIN( DISTINCT + NULLIF ( - 37, + 25 ) ), 40 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3113
SELECT COALESCE ( COUNT ( * ), - 94, - 64 ) / - + COALESCE ( - - MIN ( DISTINCT + NULLIF ( - 37, + 25 ) ), 40 ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3114
SELECT ALL 60 * 40 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL 60 * 40 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 42 - 12 * - 36 - + 4 + - + 38
----
432

query II rowsort
SELECT ALL - 77 AS col2, 94
----
-77
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3117
SELECT - 30 * + 64 + NULLIF ( 15, 53 + - 21 * MIN( + 58 ) * + 83 / 50 / + CAST( + 66 AS SIGNED ) + + 17 - + - 10 * + AVG ( ALL + - 87 ) * + 15 ) AS col1
----
-1905

skipif mysql # not compatible
query I rowsort label-3117
SELECT - 30 * + 64 + NULLIF ( 15, 53 + - 21 * MIN ( + 58 ) * + 83 / 50 / + CAST ( + 66 AS INTEGER ) + + 17 - + - 10 * + AVG ( ALL + - 87 ) * + 15 ) AS col1
----
-1905

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3118
SELECT CAST( + 47 AS SIGNED ) - - + 61
----
108

skipif mysql # not compatible
query I rowsort label-3118
SELECT CAST ( + 47 AS INTEGER ) - - + 61
----
108

query II rowsort
SELECT 96 AS col2, 78 * + COALESCE ( - 5, - 32 ) * 36 + + NULLIF ( 22, - + 21 ) * 1
----
96
-14018

query I rowsort
SELECT 32 * - 20
----
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT ALL CASE 93 WHEN 53 + + + 97 + - - 79 THEN COUNT( DISTINCT - 29 ) + 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL CASE 93 WHEN 53 + + + 97 + - - 79 THEN COUNT ( DISTINCT - 29 ) + 80 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3122
SELECT 13 + - COUNT( * ) * - 85 / - 95 * - + 41 + - SUM( ALL CAST( NULL AS SIGNED ) ) col1, 13 AS col2
----
NULL
13

skipif mysql # not compatible
query II rowsort label-3122
SELECT 13 + - COUNT ( * ) * - 85 / - 95 * - + 41 + - SUM ( ALL CAST ( NULL AS INTEGER ) ) col1, 13 AS col2
----
NULL
13

onlyif mysql # DIV for integer division: 
query II rowsort label-3123
SELECT ALL + 51 * + - 11, - 39 DIV - + 73 * + 66 * + + 21 AS col0
----
-561
0

skipif mysql # not compatible
query II rowsort label-3123
SELECT ALL + 51 * + - 11, - 39 / - + 73 * + 66 * + + 21 AS col0
----
-561
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3124
SELECT - + 90, COUNT( ALL + 35 ) AS col0
----
-90
1

skipif mysql # not compatible
query II rowsort label-3124
SELECT - + 90, COUNT ( ALL + 35 ) AS col0
----
-90
1

query II rowsort
SELECT 23, 44 AS col1
----
23
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT COUNT( * ) + + + 87 * + ( + 44 )
----
3829

skipif mysql # not compatible
query I rowsort label-3127
SELECT COUNT ( * ) + + + 87 * + ( + 44 )
----
3829

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT MIN( + NULLIF ( - - 93, + 76 ) ) + + 34 + + 40 col0
----
167

skipif mysql # not compatible
query I rowsort label-3128
SELECT MIN ( + NULLIF ( - - 93, + 76 ) ) + + 34 + + 40 col0
----
167

query I rowsort
SELECT ALL NULLIF ( - 66, AVG ( 28 ) ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT ALL - 99 + + - MIN( DISTINCT - 81 ) * 88 * - - 75 AS col0
----
534501

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL - 99 + + - MIN ( DISTINCT - 81 ) * 88 * - - 75 AS col0
----
534501

query I rowsort
SELECT ALL + - 78 + 35 AS col0
----
-43

query I rowsort
SELECT DISTINCT - + 65 + 12 AS col1
----
-53

query I rowsort
SELECT ALL 5 + + 68 * 35 AS col1
----
2385

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT DISTINCT - 5 + + COUNT( * ) - + 71 * + 64
----
-4548

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT - 5 + + COUNT ( * ) - + 71 * + 64
----
-4548

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT COUNT( DISTINCT - + 47 ) + - - 95 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3135
SELECT COUNT ( DISTINCT - + 47 ) + - - 95 AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3136
SELECT DISTINCT - CAST( + - MIN( ALL + 65 ) AS SIGNED ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT - CAST ( + - MIN ( ALL + 65 ) AS INTEGER ) AS col2
----
65

query II rowsort
SELECT ALL + 89 * 60 AS col2, - 20 * - + 15
----
5340
300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3138
SELECT COUNT( * ) + - - 23 + 22 + - COALESCE ( + + 7, + 34 + 43 * COUNT( * ) ) + + 65 + 29 + - NULLIF ( + - CASE + + 4 WHEN COUNT( * ) + + 36 - - + 27 + + - COALESCE ( - ( + COUNT( * ) ), + 28 - + - 4 + - - 32 + + 32 * - + 46 ) * + COUNT( * ) * + + 83 THEN + ( COUNT( * ) ) WHEN ( 60 ) THEN NULL END, - NULLIF ( 76, + 43 + MAX( DISTINCT - 3 ) ) ) * ( 95 ) * CAST( NULL AS SIGNED ) * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3138
SELECT COUNT ( * ) + - - 23 + 22 + - COALESCE ( + + 7, + 34 + 43 * COUNT ( * ) ) + + 65 + 29 + - NULLIF ( + - CASE + + 4 WHEN COUNT ( * ) + + 36 - - + 27 + + - COALESCE ( - ( + COUNT ( * ) ), + 28 - + - 4 + - - 32 + + 32 * - + 46 ) * + COUNT ( * ) * + + 83 THEN + ( COUNT ( * ) ) WHEN ( 60 ) THEN NULL END, - NULLIF ( 76, + 43 + MAX ( DISTINCT - 3 ) ) ) * ( 95 ) * CAST ( NULL AS INTEGER ) * + 97
----
NULL

query I rowsort
SELECT ALL - 26 * + 39
----
-1014

query I rowsort
SELECT ALL - 97 * + - 8 - 23
----
753

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT + COUNT( * ) * + 3 + ( + 5 ) - - + 45 + 7 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3141
SELECT + COUNT ( * ) * + 3 + ( + 5 ) - - + 45 + 7 AS col1
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-3142
SELECT 17 DIV ( 8 ) + - 58
----
-56

skipif mysql # not compatible
query I rowsort label-3142
SELECT 17 / ( 8 ) + - 58
----
-56

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

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

query I rowsort
SELECT - 2 + 58 + ( + ( - 28 ) ) * - 90 col0
----
2576

query II rowsort
SELECT DISTINCT - 87 * - 85 - - 37 AS col1, + 53 * + 25 * + ( - - 80 ) AS col2
----
7432
106000

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT - 55 * NULLIF ( + 86, 87 + - MAX( 28 ) - - COALESCE ( - 42, - - 4 * 6 ) ) * + 48 * + + 76
----
-17255040

skipif mysql # not compatible
query I rowsort label-3146
SELECT - 55 * NULLIF ( + 86, 87 + - MAX ( 28 ) - - COALESCE ( - 42, - - 4 * 6 ) ) * + 48 * + + 76
----
-17255040

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT - 64 * + COALESCE ( 43, - 61 * - COUNT( + - 41 ) + 87, + COUNT( * ), - COUNT( * ) ) + - - 94 * - - 60 * - + 37 * COUNT( * ) * - 31 * - - 65 + + 93
----
420487541

skipif mysql # not compatible
query I rowsort label-3147
SELECT - 64 * + COALESCE ( 43, - 61 * - COUNT ( + - 41 ) + 87, + COUNT ( * ), - COUNT ( * ) ) + - - 94 * - - 60 * - + 37 * COUNT ( * ) * - 31 * - - 65 + + 93
----
420487541

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3148
SELECT ALL + ( + 51 ) AS col1, 13 * 13 + - CAST( 28 AS SIGNED ) AS col0
----
51
141

skipif mysql # not compatible
query II rowsort label-3148
SELECT ALL + ( + 51 ) AS col1, 13 * 13 + - CAST ( 28 AS INTEGER ) AS col0
----
51
141

query I rowsort
SELECT - 19 * - 91
----
1729

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

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL CAST ( NULL AS INTEGER ) * - - 0 col0
----
NULL

query I rowsort
SELECT DISTINCT 65 * CASE - 36 WHEN - - 84 THEN NULL WHEN + 74 THEN - 86 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT DISTINCT - 60 * 76 + - 98 * - COALESCE ( + 41, + 15 * + MAX( - 68 ) )
----
-542

skipif mysql # not compatible
query I rowsort label-3153
SELECT DISTINCT - 60 * 76 + - 98 * - COALESCE ( + 41, + 15 * + MAX ( - 68 ) )
----
-542

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT ALL + MAX( ALL - 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL + MAX ( ALL - 92 ) AS col1
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-3155
SELECT + - 75 DIV 28 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3155
SELECT + - 75 / 28 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3156
SELECT ALL - + 2 * - - 11 + + 74 + + 19 DIV - - 21
----
52

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL - + 2 * - - 11 + + 74 + + 19 / - - 21
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT ALL + - COUNT( * ) * - + ( + 4 ) * - - 70 + 15 + + 18 + + - COUNT( * ) AS col2
----
312

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL + - COUNT ( * ) * - + ( + 4 ) * - - 70 + 15 + + 18 + + - COUNT ( * ) AS col2
----
312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3158
SELECT DISTINCT MIN( ALL + 24 ) * CAST( - 75 AS SIGNED ) + - CASE - 0 WHEN + - 50 THEN + + CAST( - 21 AS SIGNED ) ELSE NULL END * 96 AS col0, - 82 * 67 - - COUNT( DISTINCT 68 ) col2
----
NULL
-5493

skipif mysql # not compatible
query II rowsort label-3158
SELECT DISTINCT MIN ( ALL + 24 ) * CAST ( - 75 AS INTEGER ) + - CASE - 0 WHEN + - 50 THEN + + CAST ( - 21 AS INTEGER ) ELSE NULL END * 96 AS col0, - 82 * 67 - - COUNT ( DISTINCT 68 ) col2
----
NULL
-5493

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3159
SELECT CASE CAST( NULL AS SIGNED ) WHEN - 64 + + 61 THEN CAST( NULL AS SIGNED ) * 21 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT CASE CAST ( NULL AS INTEGER ) WHEN - 64 + + 61 THEN CAST ( NULL AS INTEGER ) * 21 END AS col0
----
NULL

query I rowsort
SELECT + 26 + + 51
----
77

query I rowsort
SELECT - ( ( - 54 ) )
----
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3162
SELECT DISTINCT + 87 DIV - + 92, - NULLIF ( - 10, + - 22 * 54 + - + 17 - - AVG ( DISTINCT ( + CAST( NULL AS SIGNED ) ) ) ) + + ( + 37 ) * 70 AS col0
----
0
2600

skipif mysql # not compatible
query II rowsort label-3162
SELECT DISTINCT + 87 / - + 92, - NULLIF ( - 10, + - 22 * 54 + - + 17 - - AVG ( DISTINCT ( + CAST ( NULL AS INTEGER ) ) ) ) + + ( + 37 ) * 70 AS col0
----
0
2600

query I rowsort
SELECT ALL 9 + 63 + - 66 col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3164
SELECT ALL - 70 + - + COUNT( * ) + - + CAST( NULL AS SIGNED ) * 94 * 56 * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL - 70 + - + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) * 94 * 56 * + 48
----
NULL

query I rowsort
SELECT ALL + 95 + - 29 * - ( - 42 )
----
-1123

onlyif mysql # aggregate syntax: 
query II rowsort label-3166
SELECT + ( COUNT( * ) ), 64 - 50 - + 9 - 65 col0
----
1
-60

skipif mysql # not compatible
query II rowsort label-3166
SELECT + ( COUNT ( * ) ), 64 - 50 - + 9 - 65 col0
----
1
-60

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

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

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

query I rowsort
SELECT - - 74 - + - 47 col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT + - SUM( ALL + 27 ) * + ( + + 2 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-3170
SELECT + - SUM ( ALL + 27 ) * + ( + + 2 ) AS col2
----
-54

query I rowsort
SELECT DISTINCT COALESCE ( - 12, 73 ) AS col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3172
SELECT + 85 DIV 48
----
1

skipif mysql # not compatible
query I rowsort label-3172
SELECT + 85 / 48
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3173
SELECT ALL 5 AS col1, - COUNT( * ) AS col2
----
5
-1

skipif mysql # not compatible
query II rowsort label-3173
SELECT ALL 5 AS col1, - COUNT ( * ) AS col2
----
5
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3175
SELECT DISTINCT 43 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT 43 / - 92
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3176
SELECT + 49 DIV - 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3176
SELECT + 49 / - 60 AS col0
----
0

query I rowsort
SELECT - 55 * + + 91
----
-5005

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3178
SELECT CAST( NULL AS SIGNED ) col2, 38 AS col1
----
NULL
38

skipif mysql # not compatible
query II rowsort label-3178
SELECT CAST ( NULL AS INTEGER ) col2, 38 AS col1
----
NULL
38

onlyif mysql # DIV for integer division: 
query I rowsort label-3179
SELECT ALL - ( 27 ) DIV - 53 - - 29
----
29

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL - ( 27 ) / - 53 - - 29
----
29

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3181
SELECT + CAST( + 51 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-3181
SELECT + CAST ( + 51 AS INTEGER )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL - COUNT( * ) * - 64 * 81 AS col2
----
5184

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL - COUNT ( * ) * - 64 * 81 AS col2
----
5184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3183
SELECT 86 DIV + NULLIF ( + + MIN( DISTINCT - + 5 ), 10 ) - - 50 - COUNT( * ) * + + 19 * + 91 * - - 5 * + 23 + + 52 + - ( 78 ) * - 23 AS col0
----
-196956

skipif mysql # not compatible
query I rowsort label-3183
SELECT 86 / + NULLIF ( + + MIN ( DISTINCT - + 5 ), 10 ) - - 50 - COUNT ( * ) * + + 19 * + 91 * - - 5 * + 23 + + 52 + - ( 78 ) * - 23 AS col0
----
-196956

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3184
SELECT ALL - 49 DIV - 77 + - + MAX( + + 43 ) DIV 10
----
-4

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL - 49 / - 77 + - + MAX ( + + 43 ) / 10
----
-4

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

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

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

skipif mysql # not compatible
query II rowsort label-3186
SELECT ALL + CAST ( NULL AS INTEGER ) col2, + MIN ( + 11 )
----
NULL
11

query I rowsort
SELECT ALL + 33 * - 35 + + 27
----
-1128

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT + ( - COALESCE ( + COUNT( * ), + 5 + 16 ) ) * 54 + 26 + 78 - + 55 / + - CASE 62 WHEN COUNT( * ) - + 76 THEN + ( + 25 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3188
SELECT + ( - COALESCE ( + COUNT ( * ), + 5 + 16 ) ) * 54 + 26 + 78 - + 55 / + - CASE 62 WHEN COUNT ( * ) - + 76 THEN + ( + 25 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT ALL + MIN( + - 37 ) * - - 6 + + 49
----
-173

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL + MIN ( + - 37 ) * - - 6 + + 49
----
-173

query I rowsort
SELECT - + 35 + 64
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-3191
SELECT ALL + + 57, 11 - SUM( - 66 ) AS col2
----
57
77

skipif mysql # not compatible
query II rowsort label-3191
SELECT ALL + + 57, 11 - SUM ( - 66 ) AS col2
----
57
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT - + 54 - 23 + NULLIF ( + 90, + - SUM( DISTINCT - 0 ) )
----
13

skipif mysql # not compatible
query I rowsort label-3192
SELECT - + 54 - 23 + NULLIF ( + 90, + - SUM ( DISTINCT - 0 ) )
----
13

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3194
SELECT + COUNT( * ) * + 2 DIV + 65 + + - 21 * - COUNT( * ) * - 59 * + - COALESCE ( 61, + COUNT( * ) ) + + ( - COUNT( 27 ) ) + - COALESCE ( + COUNT( * ), - 64 ) * + 14 AS col2, + 86 + 48 + - 91 AS col2
----
75564
43

skipif mysql # not compatible
query II rowsort label-3194
SELECT + COUNT ( * ) * + 2 / + 65 + + - 21 * - COUNT ( * ) * - 59 * + - COALESCE ( 61, + COUNT ( * ) ) + + ( - COUNT ( 27 ) ) + - COALESCE ( + COUNT ( * ), - 64 ) * + 14 AS col2, + 86 + 48 + - 91 AS col2
----
75564
43

query I rowsort
SELECT + - 79 - 14 AS col2
----
-93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT - MAX( ALL - - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-3197
SELECT - MAX ( ALL - - 63 )
----
-63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT - 57 + + COUNT( * ) + - MIN( - 4 ) * + COUNT( * ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-3199
SELECT - 57 + + COUNT ( * ) + - MIN ( - 4 ) * + COUNT ( * ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT - 70 + 0 + + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-3200
SELECT - 70 + 0 + + COUNT ( * )
----
-69

query II rowsort
SELECT - 84 * - - 7 * + - ( - - 72 ), 62 * - 62 AS col0
----
42336
-3844

onlyif mysql # DIV for integer division: 
query I rowsort label-3202
SELECT ALL 23 DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL 23 / - 66
----
0

query I rowsort
SELECT ALL 28 - + 3 AS col1
----
25

query I rowsort
SELECT ( - - 7 ) + + 11
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3205
SELECT DISTINCT CAST( + - 85 AS SIGNED ) * 28 + + - MIN( DISTINCT 57 ) AS col2, 73
----
-2437
73

skipif mysql # not compatible
query II rowsort label-3205
SELECT DISTINCT CAST ( + - 85 AS INTEGER ) * 28 + + - MIN ( DISTINCT 57 ) AS col2, 73
----
-2437
73

query I rowsort
SELECT 26 + + 96 AS col0
----
122

query II rowsort
SELECT 32 + 5 AS col0, 51
----
37
51

query I rowsort
SELECT DISTINCT 2 * - 72
----
-144

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3209
SELECT COALESCE ( - 69, - 4 - - ( + - 57 ) ) + + - CAST( NULL AS SIGNED ) * + ( + - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT COALESCE ( - 69, - 4 - - ( + - 57 ) ) + + - CAST ( NULL AS INTEGER ) * + ( + - CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT 16 * - 26 * - COUNT( * )
----
416

skipif mysql # not compatible
query I rowsort label-3210
SELECT 16 * - 26 * - COUNT ( * )
----
416

query I rowsort
SELECT 51 + + + 49 + - 60 * + 44
----
-2540

onlyif mysql # DIV for integer division: 
query II rowsort label-3212
SELECT ALL 55 * - 79 AS col1, 36 DIV - 62 col1
----
-4345
0

skipif mysql # not compatible
query II rowsort label-3212
SELECT ALL 55 * - 79 AS col1, 36 / - 62 col1
----
-4345
0

query I rowsort
SELECT ALL ( - - 52 ) + - 1 * - 62
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT DISTINCT - 10 + + - NULLIF ( - 44, - + COUNT( DISTINCT + + 66 ) ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT - 10 + + - NULLIF ( - 44, - + COUNT ( DISTINCT + + 66 ) ) AS col2
----
34

query I rowsort
SELECT 31 * + + 97
----
3007

query I rowsort
SELECT ALL 48 + NULLIF ( + 80, 3 ) - - 43 * 39 AS col0
----
1805

query I rowsort
SELECT + NULLIF ( + + ( 81 ), - + 14 * + + 52 ) * - 41 * - + 33 + + 26 AS col1
----
109619

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT ALL - 20 * - 90 * + ( + CASE NULLIF ( 7, - + 10 / 53 - - - AVG ( + 50 ) ) WHEN + 23 * + COALESCE ( - - 12, COUNT( * ), + 12 + + 26 ) + 83 THEN - + COALESCE ( + 94, - 90 ) + - 8 * - - 6 + + - 17 WHEN 39 THEN - 84 ELSE + + 50 END ) AS col1
----
90000

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL - 20 * - 90 * + ( + CASE NULLIF ( 7, - + 10 / 53 - - - AVG ( + 50 ) ) WHEN + 23 * + COALESCE ( - - 12, COUNT ( * ), + 12 + + 26 ) + 83 THEN - + COALESCE ( + 94, - 90 ) + - 8 * - - 6 + + - 17 WHEN 39 THEN - 84 ELSE + + 50 END ) AS col1
----
90000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3219
SELECT - 29 DIV COUNT( * ) DIV ( - + COUNT( * ) ) - - 61 * 82 + + 84 DIV - - 80 col2
----
5032

skipif mysql # not compatible
query I rowsort label-3219
SELECT - 29 / COUNT ( * ) / ( - + COUNT ( * ) ) - - 61 * 82 + + 84 / - - 80 col2
----
5032

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3220
SELECT ALL - - 71 + - - CASE - 32 WHEN 65 THEN AVG ( - 93 ) + 79 - - 0 WHEN - 68 THEN NULL END * + COALESCE ( - + 54, + 69 - + 35, + 90 + + 76 * - CAST( NULL AS DECIMAL ) * + 69 ) + 58 * + + 82 + - - ( - + 2 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL - - 71 + - - CASE - 32 WHEN 65 THEN AVG ( - 93 ) + 79 - - 0 WHEN - 68 THEN NULL END * + COALESCE ( - + 54, + 69 - + 35, + 90 + + 76 * - CAST ( NULL AS REAL ) * + 69 ) + 58 * + + 82 + - - ( - + 2 ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3221
SELECT - ( - 53 ) * + CAST ( NULL AS REAL ) * 60
----
NULL

query I rowsort
SELECT + - ( + 75 ) col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3223
SELECT ALL - ( - 38 ) + CASE 76 WHEN + 33 * - 15 THEN + 68 / - + 38 * 72 + + 48 * + CAST( NULL AS SIGNED ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT ALL - ( - 38 ) + CASE 76 WHEN + 33 * - 15 THEN + 68 / - + 38 * 72 + + 48 * + CAST ( NULL AS INTEGER ) END col2
----
NULL

query I rowsort
SELECT + NULLIF ( - 40, - 28 )
----
-40

query II rowsort
SELECT ALL - - 58 * - + COALESCE ( - 3, - + 79 ) col0, + 46 AS col1
----
174
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3226
SELECT DISTINCT CAST( NULL AS SIGNED ) - COUNT( DISTINCT + - 80 ) / + - 48 + + ( - + 51 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT CAST ( NULL AS INTEGER ) - COUNT ( DISTINCT + - 80 ) / + - 48 + + ( - + 51 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT ALL - 68 - NULLIF ( - - 41, + COUNT( * ) ) + 13
----
-96

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL - 68 - NULLIF ( - - 41, + COUNT ( * ) ) + 13
----
-96

query I rowsort
SELECT DISTINCT - COALESCE ( - 76, - 84 ) AS col1
----
76

query I rowsort
SELECT - NULLIF ( + - ( + 34 ), - 87 ) + ( 41 )
----
75

query I rowsort
SELECT 36 * NULLIF ( - 12, 59 )
----
-432

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

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

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

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

query I rowsort
SELECT ALL - + 16 * 90 * + + 62
----
-89280

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT COALESCE ( 3, - 28 + - 10 ) * + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-3234
SELECT COALESCE ( 3, - 28 + - 10 ) * + COUNT ( * )
----
3

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

query I rowsort
SELECT ALL + NULLIF ( - + 25, - 35 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3237
SELECT DISTINCT MIN( DISTINCT + 3 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT MIN ( DISTINCT + 3 ) * - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT DISTINCT 93 AS col0, + 31 + + 70
----
93
101

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

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

query II rowsort
SELECT 16, 70 * 19 AS col0
----
16
1330

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT DISTINCT + 49 * + - CASE 94 WHEN + CASE + 65 WHEN 69 + + 38 * 92 THEN NULL WHEN - 58 / - - COUNT( * ) + + COUNT( * ) + 58 THEN NULL ELSE 53 END + - - 44 THEN + 13 * ( - - 39 ) + - + 63 ELSE NULL END * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT + 49 * + - CASE 94 WHEN + CASE + 65 WHEN 69 + + 38 * 92 THEN NULL WHEN - 58 / - - COUNT ( * ) + + COUNT ( * ) + 58 THEN NULL ELSE 53 END + - - 44 THEN + 13 * ( - - 39 ) + - + 63 ELSE NULL END * 90
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT + 40 + + CAST ( - - ( - 73 ) AS INTEGER ) col2
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-3243
SELECT DISTINCT 96 + 73 + + 80 + + - 99 DIV + 3 AS col1
----
216

skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT 96 + 73 + + 80 + + - 99 / + 3 AS col1
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3244
SELECT ALL CASE 70 WHEN - + NULLIF ( + 30, + 10 ) + + - 32 * 59 * + 69 * - 62 + - 63 THEN + - ( - 25 ) * CASE CAST( NULL AS SIGNED ) WHEN + + 6 DIV - 41 THEN ( - 11 ) WHEN + 82 THEN - + 30 DIV - + COALESCE ( - + 67, - 15 ) + - 36 * ( - + CAST( - 33 AS SIGNED ) ) * - 49 + - - 78 + - 1 END WHEN 9 + MIN( + 64 ) THEN NULL ELSE - ( COALESCE ( - 13, + 71, + MAX( 15 ) * + 48 ) ) + 19 * + 51 END + - CAST( ( 35 ) AS SIGNED ) * 74
----
-1608

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL CASE 70 WHEN - + NULLIF ( + 30, + 10 ) + + - 32 * 59 * + 69 * - 62 + - 63 THEN + - ( - 25 ) * CASE CAST ( NULL AS INTEGER ) WHEN + + 6 / - 41 THEN ( - 11 ) WHEN + 82 THEN - + 30 / - + COALESCE ( - + 67, - 15 ) + - 36 * ( - + CAST ( - 33 AS INTEGER ) ) * - 49 + - - 78 + - 1 END WHEN 9 + MIN ( + 64 ) THEN NULL ELSE - ( COALESCE ( - 13, + 71, + MAX ( 15 ) * + 48 ) ) + 19 * + 51 END + - CAST ( ( 35 ) AS INTEGER ) * 74
----
-1608

query I rowsort
SELECT 25 * - 44
----
-1100

query I rowsort
SELECT 61 * - 33 AS col0
----
-2013

query I rowsort
SELECT DISTINCT ( + ( - 71 ) ) + + 11 AS col0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3248
SELECT ALL 8 + + COALESCE ( - + COUNT( ALL + 37 ), + 6, 77 * 61 + + - ( - 55 ) + 59 ) DIV 29 * - ( - + 85 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL 8 + + COALESCE ( - + COUNT ( ALL + 37 ), + 6, 77 * 61 + + - ( - 55 ) + 59 ) / 29 * - ( - + 85 ) AS col0
----
8

query II rowsort
SELECT 54 AS col1, ( 84 )
----
54
84

query I rowsort
SELECT ALL + 23 + + 88 AS col2
----
111

query I rowsort
SELECT 51 * + - 37 AS col0
----
-1887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3252
SELECT ALL - CAST( 84 AS SIGNED ) + COUNT( * ) + + ( + 33 ) AS col0, - 90 + - 66 * - COUNT( * ) DIV + 70 AS col1
----
-50
-90

skipif mysql # not compatible
query II rowsort label-3252
SELECT ALL - CAST ( 84 AS INTEGER ) + COUNT ( * ) + + ( + 33 ) AS col0, - 90 + - 66 * - COUNT ( * ) / + 70 AS col1
----
-50
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL 1 + + 55 + + + 51 + - COUNT( * ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL 1 + + 55 + + + 51 + - COUNT ( * ) AS col0
----
106

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT MAX( ALL 26 )
----
26

skipif mysql # not compatible
query I rowsort label-3255
SELECT MAX ( ALL 26 )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3256
SELECT ALL 48 * NULLIF ( - 25, 64 * COUNT( * ) + - - NULLIF ( 48, 73 ) ) AS col2, - 12
----
-1200
-12

skipif mysql # not compatible
query II rowsort label-3256
SELECT ALL 48 * NULLIF ( - 25, 64 * COUNT ( * ) + - - NULLIF ( 48, 73 ) ) AS col2, - 12
----
-1200
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3257
SELECT 96 * COUNT( + - CAST( + + 4 AS SIGNED ) ) + + - COALESCE ( + MAX( DISTINCT - + ( - + 94 ) ), - 31 + - 94 - - 66 + 94 * + 0 + - 99 ) + + MIN( ALL + 85 ) + + - 91 + 42 + - 35 + 70 + + + 32 - + 84 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-3257
SELECT 96 * COUNT ( + - CAST ( + + 4 AS INTEGER ) ) + + - COALESCE ( + MAX ( DISTINCT - + ( - + 94 ) ), - 31 + - 94 - - 66 + 94 * + 0 + - 99 ) + + MIN ( ALL + 85 ) + + - 91 + 42 + - 35 + 70 + + + 32 - + 84 AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3258
SELECT MIN( ALL + CAST( NULL AS SIGNED ) ) * + - 44, ( 46 ) * + 13 AS col1
----
NULL
598

skipif mysql # not compatible
query II rowsort label-3258
SELECT MIN ( ALL + CAST ( NULL AS INTEGER ) ) * + - 44, ( 46 ) * + 13 AS col1
----
NULL
598

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3260
SELECT - COUNT( * ) + + CAST( NULL AS DECIMAL ) * - - 33 + - NULLIF ( + - 89, + 11 * - 63 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3260
SELECT - COUNT ( * ) + + CAST ( NULL AS REAL ) * - - 33 + - NULLIF ( + - 89, + 11 * - 63 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3261
SELECT + CAST( NULL AS SIGNED ) + MAX( + 77 ) * + - 1 * 7 * 18 + - 36 * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3261
SELECT + CAST ( NULL AS INTEGER ) + MAX ( + 77 ) * + - 1 * 7 * 18 + - 36 * - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT ALL COUNT( DISTINCT + + 60 ) * - 26 - NULLIF ( + ( - 33 ), + - 40 * - + 36 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL COUNT ( DISTINCT + + 60 ) * - 26 - NULLIF ( + ( - 33 ), + - 40 * - + 36 ) AS col0
----
7

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

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

query I rowsort
SELECT - 16 + + 55 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT + - COUNT( * ) * + MAX( + - 19 ) + - 38 + - CASE + + 83 WHEN + - COALESCE ( CASE - 71 WHEN + 17 THEN + - MIN( 8 ) END, + 67 + 44 ) * - 33 + - 26 + 57 / + + 76 THEN - 25 + - 14 + - - AVG ( ALL + - 10 ) * + COUNT( * ) ELSE NULL END * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-3265
SELECT + - COUNT ( * ) * + MAX ( + - 19 ) + - 38 + - CASE + + 83 WHEN + - COALESCE ( CASE - 71 WHEN + 17 THEN + - MIN ( 8 ) END, + 67 + 44 ) * - 33 + - 26 + 57 / + + 76 THEN - 25 + - 14 + - - AVG ( ALL + - 10 ) * + COUNT ( * ) ELSE NULL END * 50
----
NULL

query I rowsort
SELECT - 99 - - + 55
----
-44

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

skipif mysql # not compatible
query I rowsort label-3267
SELECT + MIN ( ALL + 63 ) * 86 AS col1
----
5418

query I rowsort
SELECT DISTINCT - + 14 * - 84 + 17 col0
----
1193

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT DISTINCT + NULLIF ( + 87, + - SUM( - - 93 ) )
----
87

skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT + NULLIF ( + 87, + - SUM ( - - 93 ) )
----
87

query I rowsort
SELECT - + 1 + 41 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT - 88 * + - 59 + NULLIF ( 93, + COUNT( * ) + - 43 + 87 )
----
5285

skipif mysql # not compatible
query I rowsort label-3271
SELECT - 88 * + - 59 + NULLIF ( 93, + COUNT ( * ) + - 43 + 87 )
----
5285

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3273
SELECT ALL COUNT( * ) AS col1, 93 + - 25 col1
----
1
68

skipif mysql # not compatible
query II rowsort label-3273
SELECT ALL COUNT ( * ) AS col1, 93 + - 25 col1
----
1
68

query I rowsort
SELECT + 68 + - + 84 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-3275
SELECT 32 AS col1, - COUNT( * ) + - - 75 + + 4 * + COUNT( * ) AS col2
----
32
78

skipif mysql # not compatible
query II rowsort label-3275
SELECT 32 AS col1, - COUNT ( * ) + - - 75 + + 4 * + COUNT ( * ) AS col2
----
32
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3276
SELECT - 44 + - COALESCE ( 92, 23 * - 1 + - CAST( NULL AS SIGNED ) + - - ( - CASE - + 48 WHEN - 59 THEN - + COUNT( * ) WHEN - + 14 THEN NULL END ) * + 84 + - 61 ) * - 94 * + - 10, + CAST( NULL AS DECIMAL ) + 82 AS col2
----
-86524
NULL

skipif mysql # not compatible
query II rowsort label-3276
SELECT - 44 + - COALESCE ( 92, 23 * - 1 + - CAST ( NULL AS INTEGER ) + - - ( - CASE - + 48 WHEN - 59 THEN - + COUNT ( * ) WHEN - + 14 THEN NULL END ) * + 84 + - 61 ) * - 94 * + - 10, + CAST ( NULL AS REAL ) + 82 AS col2
----
-86524
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT DISTINCT - ( + 86 ) + + 67 + + COUNT( DISTINCT + 35 ) * + + 23 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3278
SELECT DISTINCT - ( + 86 ) + + 67 + + COUNT ( DISTINCT + 35 ) * + + 23 AS col2
----
4

query II rowsort
SELECT DISTINCT 85 + + + 86 AS col0, ( + 98 ) AS col0
----
171
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3280
SELECT ALL - 64 + - - CAST( NULL AS SIGNED ) - - + COUNT( 5 ) AS col2, + 0 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3280
SELECT ALL - 64 + - - CAST ( NULL AS INTEGER ) - - + COUNT ( 5 ) AS col2, + 0 AS col1
----
NULL
0

query I rowsort
SELECT - 14 + 68 AS col0
----
54

query I rowsort
SELECT ALL - 91 + + + 80 + - 30 AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3283
SELECT ALL + ( - 60 ) DIV - - 44 + 58 + COUNT( * ) * - 91
----
-34

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL + ( - 60 ) / - - 44 + 58 + COUNT ( * ) * - 91
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3284
SELECT ALL 2 + + COUNT( * ) * + 48 * - 9 - + 16 + COUNT( * ) DIV 28 AS col2
----
-446

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL 2 + + COUNT ( * ) * + 48 * - 9 - + 16 + COUNT ( * ) / 28 AS col2
----
-446

query I rowsort
SELECT DISTINCT + 19 * - + 62 * - - 77
----
-90706

query I rowsort
SELECT ALL - ( + 98 ) + - 79 + + 5 * + - 42 AS col2
----
-387

query I rowsort
SELECT - 84 + 23 * - 59 + + 5 AS col1
----
-1436

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT - SUM( - 62 ) col2
----
62

skipif mysql # not compatible
query I rowsort label-3288
SELECT - SUM ( - 62 ) col2
----
62

query I rowsort
SELECT ALL + 1 * 90 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT + COUNT( * ) + + + 99 * - CASE + 76 WHEN 59 * - 41 THEN - + 98 END * - 60 / + - COUNT( * ) + - 0 + + 19 + - - COUNT( ALL 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT + COUNT ( * ) + + + 99 * - CASE + 76 WHEN 59 * - 41 THEN - + 98 END * - 60 / + - COUNT ( * ) + - 0 + + 19 + - - COUNT ( ALL 69 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3291
SELECT ALL - 29 - + 5 + 26 DIV 49
----
-34

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL - 29 - + 5 + 26 / 49
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-3292
SELECT DISTINCT + 41 DIV + 38 - 11 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-3292
SELECT DISTINCT + 41 / + 38 - 11 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT DISTINCT + + MIN( DISTINCT NULLIF ( - 46, - 64 ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT + + MIN ( DISTINCT NULLIF ( - 46, - 64 ) ) AS col1
----
-46

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3295
SELECT DISTINCT + + 8, + 2 DIV - - 17 AS col1
----
8
0

skipif mysql # not compatible
query II rowsort label-3295
SELECT DISTINCT + + 8, + 2 / - - 17 AS col1
----
8
0

query II rowsort
SELECT + 47 AS col0, 27 * + 53
----
47
1431

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT ALL + - 66 * 13 + - 46 - MIN( DISTINCT 47 )
----
-951

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL + - 66 * 13 + - 46 - MIN ( DISTINCT 47 )
----
-951

query II rowsort
SELECT DISTINCT + + 26, + 0 col2
----
26
0

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

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

query II rowsort
SELECT - 20 AS col1, 21 * - 30
----
-20
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL - MAX( + 76 ) * - 3 * 97
----
22116

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL - MAX ( + 76 ) * - 3 * 97
----
22116

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3303
SELECT DISTINCT CAST( - - CASE 3 WHEN - + COUNT( * ) THEN - - 1 ELSE NULL END AS SIGNED ) * + 97 AS col0, - 67 + - + 79 - - + 26 + + + 50
----
NULL
-70

skipif mysql # not compatible
query II rowsort label-3303
SELECT DISTINCT CAST ( - - CASE 3 WHEN - + COUNT ( * ) THEN - - 1 ELSE NULL END AS INTEGER ) * + 97 AS col0, - 67 + - + 79 - - + 26 + + + 50
----
NULL
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT DISTINCT + + 82 * - 9 * 32 - - COUNT( * ) + + - 49 - - 53 * SUM( DISTINCT - + 63 ) AS col0
----
-27003

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT + + 82 * - 9 * 32 - - COUNT ( * ) + + - 49 - - 53 * SUM ( DISTINCT - + 63 ) AS col0
----
-27003

query II rowsort
SELECT ALL + - 89 AS col0, 85 * 61
----
-89
5185

query III rowsort
SELECT ALL + 55 AS col0, 74 * 91 * + 57 AS col1, + - 13 * - 61 - + 4
----
55
383838
789

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

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

query II rowsort
SELECT 20, + 88 AS col2
----
20
88

query I rowsort
SELECT ALL + - 97 * + 78 - + 32 + - 7 * + - 7 * - + 52 + - + 67 + + 36
----
-10177

query I rowsort
SELECT ALL - + NULLIF ( - - 99, - 41 * - 41 * + - 19 + - ( - 8 ) ) * 92 + 87
----
-9021

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT - - COUNT( * ) * 11 + 52 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-3311
SELECT - - COUNT ( * ) * 11 + 52 AS col0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3312
SELECT + - 53 DIV 66 + - COALESCE ( - + 14, - 93 - COUNT( * ) ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3312
SELECT + - 53 / 66 + - COALESCE ( - + 14, - 93 - COUNT ( * ) ) AS col2
----
14

query I rowsort
SELECT + 27 + 7 AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3314
SELECT - 50 + + - 84 AS col1, + CAST( + 73 AS SIGNED ) AS col2
----
-134
73

skipif mysql # not compatible
query II rowsort label-3314
SELECT - 50 + + - 84 AS col1, + CAST ( + 73 AS INTEGER ) AS col2
----
-134
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT - NULLIF ( + + 62, 20 ) * MIN( DISTINCT + 79 ) + - - 84 AS col2
----
-4814

skipif mysql # not compatible
query I rowsort label-3315
SELECT - NULLIF ( + + 62, 20 ) * MIN ( DISTINCT + 79 ) + - - 84 AS col2
----
-4814

onlyif mysql # DIV for integer division: 
query I rowsort label-3316
SELECT DISTINCT - 56 * - - 27 + + + 39 DIV 38 AS col2
----
-1511

skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT - 56 * - - 27 + + + 39 / 38 AS col2
----
-1511

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT + 14 * - MIN( DISTINCT 76 )
----
-1064

skipif mysql # not compatible
query I rowsort label-3317
SELECT + 14 * - MIN ( DISTINCT 76 )
----
-1064

query I rowsort
SELECT DISTINCT + 23 * - - 89 AS col0
----
2047

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3319
SELECT ALL - 60 + 71 * + CASE - 90 WHEN - 48 THEN + 41 WHEN + + 75 / - - 38 - - MAX( DISTINCT + NULLIF ( - ( + ( - 69 ) ), + CAST( NULL AS DECIMAL ) * - - 49 * COALESCE ( - NULLIF ( 73, + 89 * + - 1 ), + - 14 ) ) ) + MIN( ALL - + 7 ) * 41 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL - 60 + 71 * + CASE - 90 WHEN - 48 THEN + 41 WHEN + + 75 / - - 38 - - MAX ( DISTINCT + NULLIF ( - ( + ( - 69 ) ), + CAST ( NULL AS REAL ) * - - 49 * COALESCE ( - NULLIF ( 73, + 89 * + - 1 ), + - 14 ) ) ) + MIN ( ALL - + 7 ) * 41 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL ( + + 28 ) * - ( 24 )
----
-672

onlyif mysql # aggregate syntax: 
query II rowsort label-3321
SELECT + 78 * + 32 AS col0, COUNT( ALL 93 ) AS col0
----
2496
1

skipif mysql # not compatible
query II rowsort label-3321
SELECT + 78 * + 32 AS col0, COUNT ( ALL 93 ) AS col0
----
2496
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT DISTINCT CASE MAX( - 76 ) WHEN + - ( 71 ) THEN - 38 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT CASE MAX ( - 76 ) WHEN + - ( 71 ) THEN - 38 END AS col0
----
NULL

query I rowsort
SELECT ALL - 60 - - - 39 AS col1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3324
SELECT ALL CASE 26 WHEN - - 34 THEN + - 85 WHEN CAST( NULL AS SIGNED ) THEN 10 + 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL CASE 26 WHEN - - 34 THEN + - 85 WHEN CAST ( NULL AS INTEGER ) THEN 10 + 78 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT - COALESCE ( 67, + - 68, 63 ) * COUNT( * ) * - + 47
----
3149

skipif mysql # not compatible
query I rowsort label-3325
SELECT - COALESCE ( 67, + - 68, 63 ) * COUNT ( * ) * - + 47
----
3149

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

query I rowsort
SELECT - 24 - 32 * - 76
----
2408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3328
SELECT ALL + MAX( 5 ) * + COALESCE ( - 61, + 38 * + ( - 15 ) ) / CASE ( - - COUNT( * ) ) WHEN - CAST( NULL AS SIGNED ) * + 22 - + 79 * + + COALESCE ( - - 42, 86 ) * 31 THEN 51 END * + 33 * 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL + MAX ( 5 ) * + COALESCE ( - 61, + 38 * + ( - 15 ) ) / CASE ( - - COUNT ( * ) ) WHEN - CAST ( NULL AS INTEGER ) * + 22 - + 79 * + + COALESCE ( - - 42, 86 ) * 31 THEN 51 END * + 33 * 38 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3329
SELECT ALL + 61 * + CAST( - - 19 AS SIGNED ) col1
----
1159

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL + 61 * + CAST ( - - 19 AS INTEGER ) col1
----
1159

onlyif mysql # DIV for integer division: 
query I rowsort label-3330
SELECT DISTINCT + - 35 DIV - 30 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT + - 35 / - 30 AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-3331
SELECT - + MIN ( + 50 )
----
-50

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3333
SELECT + + 1 * + CASE - 78 WHEN + ( + 15 ) * - - 97 / ( + 92 ) - - 92 THEN + 16 * + 76 + - 99 - - + 74 WHEN - - ( - - ( + 85 ) ) THEN NULL WHEN + NULLIF ( - 16, 9 + - COUNT( * ) - + 84 ) THEN 99 + 91 * - 4 + + + 9 + + + 19 * + + 9 ELSE + NULLIF ( + 73, - 83 ) / + 28 * - + 27 - - ( - 90 ) * AVG ( + CASE + 50 WHEN 34 * - ( + 63 ) THEN NULL WHEN - 71 THEN + 45 * - 21 END ) + 20 * - CAST( - ( 72 ) * - 32 + - 15 AS SIGNED ) END * 34 + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3333
SELECT + + 1 * + CASE - 78 WHEN + ( + 15 ) * - - 97 / ( + 92 ) - - 92 THEN + 16 * + 76 + - 99 - - + 74 WHEN - - ( - - ( + 85 ) ) THEN NULL WHEN + NULLIF ( - 16, 9 + - COUNT ( * ) - + 84 ) THEN 99 + 91 * - 4 + + + 9 + + + 19 * + + 9 ELSE + NULLIF ( + 73, - 83 ) / + 28 * - + 27 - - ( - 90 ) * AVG ( + CASE + 50 WHEN 34 * - ( + 63 ) THEN NULL WHEN - 71 THEN + 45 * - 21 END ) + 20 * - CAST ( - ( 72 ) * - 32 + - 15 AS INTEGER ) END * 34 + 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3334
SELECT 22 + - + 28 col0, + SUM( ( + 29 ) ) * + + 79 + + + 75
----
-6
2366

skipif mysql # not compatible
query II rowsort label-3334
SELECT 22 + - + 28 col0, + SUM ( ( + 29 ) ) * + + 79 + + + 75
----
-6
2366

query II rowsort
SELECT ALL + + 80 * + + 7 AS col1, - 49
----
560
-49

query I rowsort
SELECT ALL 78 + + ( + COALESCE ( - 21, - - 24 + + 42 ) ) AS col2
----
57

query I rowsort
SELECT DISTINCT - - 68 + - NULLIF ( 61, ( + 53 ) )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3338
SELECT ALL + 73 * + - 64 col1, + 41 * + 33 * - MIN( ALL - 94 ) AS col2
----
-4672
127182

skipif mysql # not compatible
query II rowsort label-3338
SELECT ALL + 73 * + - 64 col1, + 41 * + 33 * - MIN ( ALL - 94 ) AS col2
----
-4672
127182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3339
SELECT ALL + COUNT( ALL + + 74 ) + COALESCE ( - CAST( CAST( MIN( ALL + ( 78 ) ) AS SIGNED ) AS SIGNED ), - 54 + - COUNT( * ) )
----
-77

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL + COUNT ( ALL + + 74 ) + COALESCE ( - CAST ( CAST ( MIN ( ALL + ( 78 ) ) AS INTEGER ) AS INTEGER ), - 54 + - COUNT ( * ) )
----
-77

query I rowsort
SELECT ALL - 4 + + COALESCE ( + 88, + 44 ) col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT COALESCE ( + 54, + 62, - - COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-3341
SELECT COALESCE ( + 54, + 62, - - COUNT ( * ) )
----
54

query I rowsort
SELECT ALL 67 * + 38 AS col1
----
2546

onlyif mysql # aggregate syntax: 
query II rowsort label-3343
SELECT 9 * 27 + - 3 AS col0, COUNT( * )
----
240
1

skipif mysql # not compatible
query II rowsort label-3343
SELECT 9 * 27 + - 3 AS col0, COUNT ( * )
----
240
1

query II rowsort
SELECT ALL 91 + - ( ( ( - 73 ) ) ) - - 21 AS col0, - 23 + - 34 AS col0
----
185
-57

query I rowsort
SELECT ALL + 36 * 33 col2
----
1188

onlyif mysql # DIV for integer division: 
query I rowsort label-3346
SELECT 41 DIV - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3346
SELECT 41 / - 80 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3347
SELECT COUNT( * ) + COUNT( * ) + + 19 AS col0, 46
----
21
46

skipif mysql # not compatible
query II rowsort label-3347
SELECT COUNT ( * ) + COUNT ( * ) + + 19 AS col0, 46
----
21
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT DISTINCT 38 * NULLIF ( - COUNT( * ), + 64 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT 38 * NULLIF ( - COUNT ( * ), + 64 ) AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3349
SELECT ALL 61 DIV + COALESCE ( - + 15, + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL 61 / + COALESCE ( - + 15, + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) AS col2
----
-4

query II rowsort
SELECT ALL 9 AS col2, 64 AS col0
----
9
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3351
SELECT COUNT( * ) + COALESCE ( + CAST( + COUNT( * ) AS SIGNED ), + - 60 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3351
SELECT COUNT ( * ) + COALESCE ( + CAST ( + COUNT ( * ) AS INTEGER ), + - 60 ) AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3352
SELECT ALL 25 DIV - + 77 * - ( + COUNT( DISTINCT + ( 15 ) ) ) col0, + 94 + + - 52
----
0
42

skipif mysql # not compatible
query II rowsort label-3352
SELECT ALL 25 / - + 77 * - ( + COUNT ( DISTINCT + ( 15 ) ) ) col0, + 94 + + - 52
----
0
42

query I rowsort
SELECT 50 * - 63
----
-3150

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT ( + 96 ) + - 73 + COUNT( * ) * 54
----
77

skipif mysql # not compatible
query I rowsort label-3355
SELECT ( + 96 ) + - 73 + COUNT ( * ) * 54
----
77

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

skipif mysql # not compatible
query I rowsort label-3356
SELECT 69 / - + COUNT ( * )
----
-69

query I rowsort
SELECT 76 + - - 9 AS col1
----
85

query I rowsort
SELECT ALL 83 * - 0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT 57 + + - COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-3360
SELECT 57 + + - COUNT ( * ) AS col0
----
56

query II rowsort
SELECT + 16 AS col1, - 64 + - COALESCE ( + 79, + - 79 * 86, + 93 )
----
16
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT ALL - COUNT( * ) + - 40 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL - COUNT ( * ) + - 40 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT + 46 * 97 * - COUNT( * ) + 47 * + - 40
----
-6342

skipif mysql # not compatible
query I rowsort label-3363
SELECT + 46 * 97 * - COUNT ( * ) + 47 * + - 40
----
-6342

query I rowsort
SELECT COALESCE ( + + ( - + 61 ), + + ( - + 26 ) + - - 40 * + 68 * - + 26 + - 90 * 57 + - 92 - + + 64 ) AS col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3365
SELECT ALL + + 78 + + CAST( - 89 AS SIGNED ) * SUM( ALL + 31 )
----
-2681

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL + + 78 + + CAST ( - 89 AS INTEGER ) * SUM ( ALL + 31 )
----
-2681

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT DISTINCT - + 15 + + - COUNT( 73 )
----
-16

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT - + 15 + + - COUNT ( 73 )
----
-16

query I rowsort
SELECT - 12 * + + 90 AS col1
----
-1080

query I rowsort
SELECT 5 * - 19 + - + 49 - + 49 * 78
----
-3966

query II rowsort
SELECT ALL - - 65 * - 90 * - 84 AS col2, + ( + 8 ) AS col1
----
491400
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3370
SELECT DISTINCT - - CASE - - 69 WHEN + - COUNT( * ) THEN NULL ELSE - 42 / 11 + CASE 12 WHEN 26 * + NULLIF ( 38, - - CAST( - 79 AS SIGNED ) / - 73 * CASE + - ( + - 80 ) WHEN - - COUNT( * ) THEN NULL WHEN 96 THEN NULL WHEN + 7 - - 17 THEN + - 48 * 71 * 76 + - 57 * + + 85 / + - ( + 43 ) END / + 58 * - 35 + - 28 * - 2 ) THEN - 5 END + - - 16 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3370
SELECT DISTINCT - - CASE - - 69 WHEN + - COUNT ( * ) THEN NULL ELSE - 42 / 11 + CASE 12 WHEN 26 * + NULLIF ( 38, - - CAST ( - 79 AS INTEGER ) / - 73 * CASE + - ( + - 80 ) WHEN - - COUNT ( * ) THEN NULL WHEN 96 THEN NULL WHEN + 7 - - 17 THEN + - 48 * 71 * 76 + - 57 * + + 85 / + - ( + 43 ) END / + 58 * - 35 + - 28 * - 2 ) THEN - 5 END + - - 16 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT ALL - 77 + MAX( + - 26 ) - - + MIN( + 51 ) - + 14
----
-66

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL - 77 + MAX ( + - 26 ) - - + MIN ( + 51 ) - + 14
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT DISTINCT 26 - ( - - COUNT( 30 ) ) col1
----
25

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT 26 - ( - - COUNT ( 30 ) ) col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT 78 * 91 + 39 * + CASE + + COUNT( * ) WHEN 38 THEN + 24 ELSE NULL END * - 14 / 42 * - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT 78 * 91 + 39 * + CASE + + COUNT ( * ) WHEN 38 THEN + 24 ELSE NULL END * - 14 / 42 * - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT 70 * - COUNT( * ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-3374
SELECT 70 * - COUNT ( * ) AS col0
----
-70

query I rowsort
SELECT DISTINCT 84 * - 31
----
-2604

onlyif mysql # aggregate syntax: 
query II rowsort label-3376
SELECT ALL 19 * + + 86 col2, CASE 44 WHEN 7 THEN - COUNT( * ) * + COALESCE ( 98, - 54 - - 85 ) ELSE + 28 + - 75 + + 76 * + 26 * - + COUNT( * ) END
----
1634
-2023

skipif mysql # not compatible
query II rowsort label-3376
SELECT ALL 19 * + + 86 col2, CASE 44 WHEN 7 THEN - COUNT ( * ) * + COALESCE ( 98, - 54 - - 85 ) ELSE + 28 + - 75 + + 76 * + 26 * - + COUNT ( * ) END
----
1634
-2023

query I rowsort
SELECT DISTINCT - 88 * 73
----
-6424

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

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL - 70 * + COUNT ( * ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT SUM( ALL 72 ) - + + 38 + - - ( ( + 61 ) )
----
95

skipif mysql # not compatible
query I rowsort label-3379
SELECT SUM ( ALL 72 ) - + + 38 + - - ( ( + 61 ) )
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3380
SELECT COUNT( * ) DIV 7 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3380
SELECT COUNT ( * ) / 7 AS col2
----
0

query I rowsort
SELECT 36 * + CASE - 18 WHEN - 7 + - 7 * + 63 THEN - 90 * + NULLIF ( 88, + 52 + 15 ) * + + 26 ELSE - + 32 END AS col2
----
-1152

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

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

query I rowsort
SELECT DISTINCT NULLIF ( + 85, - 5 ) + - - 72 AS col1
----
157

query I rowsort
SELECT ALL - 72 + - 96 + - + 29 AS col0
----
-197

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT DISTINCT COALESCE ( - 97, - 83, - 80, ( + COUNT( * ) ) ) * - - 12
----
-1164

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT COALESCE ( - 97, - 83, - 80, ( + COUNT ( * ) ) ) * - - 12
----
-1164

onlyif mysql # aggregate syntax: 
query II rowsort label-3386
SELECT DISTINCT 81 + COUNT( * ) - - - 28 * - - 87 - - 72 AS col1, 23
----
-2282
23

skipif mysql # not compatible
query II rowsort label-3386
SELECT DISTINCT 81 + COUNT ( * ) - - - 28 * - - 87 - - 72 AS col1, 23
----
-2282
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3387
SELECT ALL - NULLIF ( COUNT( - NULLIF ( - 40, - CAST( + 28 AS SIGNED ) - - COALESCE ( 4, - - 12, + 56 ) + 38 ) ), - 15 + + 90 ) * + COUNT( * ) col2, 30
----
-1
30

skipif mysql # not compatible
query II rowsort label-3387
SELECT ALL - NULLIF ( COUNT ( - NULLIF ( - 40, - CAST ( + 28 AS INTEGER ) - - COALESCE ( 4, - - 12, + 56 ) + 38 ) ), - 15 + + 90 ) * + COUNT ( * ) col2, 30
----
-1
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT + MAX( - 74 ) + - 41
----
-115

skipif mysql # not compatible
query I rowsort label-3388
SELECT + MAX ( - 74 ) + - 41
----
-115

query I rowsort
SELECT - 52 - - 21 + + 28
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3390
SELECT ALL + 46 * - CASE 37 WHEN - 18 THEN - - 11 + - 90 END + - CAST( - COUNT( * ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL + 46 * - CASE 37 WHEN - 18 THEN - - 11 + - 90 END + - CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3391
SELECT - - CASE + - 78 WHEN + 3 THEN + 77 ELSE + 49 * + - MAX( - 51 ) / - COUNT( * ) + - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) - - ( + + 41 ) * + - 21 END - + AVG ( 93 ) + 35 - + - COUNT( * ) * 60 * - 77 - + - 37 + - 17 * + - AVG ( ALL - 35 ) + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3391
SELECT - - CASE + - 78 WHEN + 3 THEN + 77 ELSE + 49 * + - MAX ( - 51 ) / - COUNT ( * ) + - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) - - ( + + 41 ) * + - 21 END - + AVG ( 93 ) + 35 - + - COUNT ( * ) * 60 * - 77 - + - 37 + - 17 * + - AVG ( ALL - 35 ) + 85
----
NULL

query I rowsort
SELECT - + 1 * + ( - + 41 ) - 30 * + 63 * + 37
----
-69889

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT + + 90 * 11 * COUNT( * ) + - + COUNT( * ) * - + 42 * - - ( + 49 ) + COUNT( * ) AS col1
----
3049

skipif mysql # not compatible
query I rowsort label-3393
SELECT + + 90 * 11 * COUNT ( * ) + - + COUNT ( * ) * - + 42 * - - ( + 49 ) + COUNT ( * ) AS col1
----
3049

onlyif mysql # aggregate syntax: 
query II rowsort label-3394
SELECT + - 16 + - SUM( - 66 ) + COUNT( 25 ) AS col2, 49 + - 74 + + COUNT( * ) + - - 38 AS col1
----
51
14

skipif mysql # not compatible
query II rowsort label-3394
SELECT + - 16 + - SUM ( - 66 ) + COUNT ( 25 ) AS col2, 49 + - 74 + + COUNT ( * ) + - - 38 AS col1
----
51
14

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

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

query I rowsort
SELECT ALL - 73 * 62 AS col2
----
-4526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3397
SELECT + COUNT( * ) * 12 * - + ( - + 63 ) * - 67 * + + CAST( NULL AS SIGNED ) + - ( - 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT + COUNT ( * ) * 12 * - + ( - + 63 ) * - 67 * + + CAST ( NULL AS INTEGER ) + - ( - 68 )
----
NULL

query I rowsort
SELECT CASE + - 84 WHEN + + 49 THEN - 52 WHEN + 40 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3399
SELECT + 38 DIV + 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3399
SELECT + 38 / + 69 AS col2
----
0

query I rowsort
SELECT ALL + 73 * - 15 AS col0
----
-1095

query I rowsort
SELECT + 55 * - 72
----
-3960

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3403
SELECT + CAST( - 88 AS SIGNED ) * + - COUNT( * ) + 14 * + - ( COUNT( * ) ) + + + 5 DIV MAX( + + 97 ) * - + 62 * 44 * + SUM( DISTINCT - 60 ) * + 48 - + 81 + 27 + - - 80 * + 48 + + 75
----
3935

skipif mysql # not compatible
query I rowsort label-3403
SELECT + CAST ( - 88 AS INTEGER ) * + - COUNT ( * ) + 14 * + - ( COUNT ( * ) ) + + + 5 / MAX ( + + 97 ) * - + 62 * 44 * + SUM ( DISTINCT - 60 ) * + 48 - + 81 + 27 + - - 80 * + 48 + + 75
----
3935

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3404
SELECT - COUNT( * ) DIV COUNT( * ) AS col1
----
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3406
SELECT COUNT( * ), 43 * + - 60 + + 47 AS col1
----
1
-2533

skipif mysql # not compatible
query II rowsort label-3406
SELECT COUNT ( * ), 43 * + - 60 + + 47 AS col1
----
1
-2533

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3408
SELECT - ( - + NULLIF ( 89, + - 14 ) ) DIV + MAX( ALL + 4 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-3408
SELECT - ( - + NULLIF ( 89, + - 14 ) ) / + MAX ( ALL + 4 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT ALL ( + + CASE + 17 WHEN + COUNT( * ) THEN NULL WHEN + - 24 * - 79 / - 85 THEN NULL ELSE + 39 * + 17 + - 47 + + COUNT( * ) END )
----
617

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL ( + + CASE + 17 WHEN + COUNT ( * ) THEN NULL WHEN + - 24 * - 79 / - 85 THEN NULL ELSE + 39 * + 17 + - 47 + + COUNT ( * ) END )
----
617

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT - ( + COUNT( * ) ) + + 79 + 98 AS col0
----
176

skipif mysql # not compatible
query I rowsort label-3410
SELECT - ( + COUNT ( * ) ) + + 79 + 98 AS col0
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT - - COUNT( * ) * - 25 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3411
SELECT - - COUNT ( * ) * - 25 AS col1
----
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT - ( 47 ) + ( + 70 ) + + MAX( + - 54 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-3413
SELECT - ( 47 ) + ( + 70 ) + + MAX ( + - 54 ) AS col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3414
SELECT - - CAST( - ( - ( + NULLIF ( 39, + 51 ) ) ) AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-3414
SELECT - - CAST ( - ( - ( + NULLIF ( 39, + 51 ) ) ) AS INTEGER )
----
39

query I rowsort
SELECT - 87 + - 34 col1
----
-121

query I rowsort
SELECT ( 55 ) col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3417
SELECT ALL 31 + - 40 * - + 60 + + COUNT( * ) + + COUNT( DISTINCT + ( - - CAST( - 57 AS SIGNED ) ) )
----
2433

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL 31 + - 40 * - + 60 + + COUNT ( * ) + + COUNT ( DISTINCT + ( - - CAST ( - 57 AS INTEGER ) ) )
----
2433

query I rowsort
SELECT - ( 60 ) + 10
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT ALL + - COUNT( 48 ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL + - COUNT ( 48 ) + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT + + 23 + 59
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3421
SELECT - - COUNT( - + 82 ) * 39 + - 16 * + MIN( ALL 12 ) DIV + + 3
----
-25

skipif mysql # not compatible
query I rowsort label-3421
SELECT - - COUNT ( - + 82 ) * 39 + - 16 * + MIN ( ALL 12 ) / + + 3
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT DISTINCT COUNT( * ) + 37 col0
----
38

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT COUNT ( * ) + 37 col0
----
38

query II rowsort
SELECT DISTINCT - 17, 60 col2
----
-17
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3424
SELECT ALL - 25 - 91 + + + ( + COUNT( - ( + 93 ) ) ) DIV - 78 AS col0
----
-116

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL - 25 - 91 + + + ( + COUNT ( - ( + 93 ) ) ) / - 78 AS col0
----
-116

query I rowsort
SELECT + 17 * 20
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT ALL 56 * + SUM( - 4 )
----
-224

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL 56 * + SUM ( - 4 )
----
-224

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3427
SELECT ALL + 58 DIV + 40 - 93 + - ( - ( + COUNT( * ) ) ) AS col1, - 62 AS col1
----
-91
-62

skipif mysql # not compatible
query II rowsort label-3427
SELECT ALL + 58 / + 40 - 93 + - ( - ( + COUNT ( * ) ) ) AS col1, - 62 AS col1
----
-91
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3428
SELECT + + COUNT( + + NULLIF ( + 62, + 34 ) ) * 0 * CAST( - 23 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3428
SELECT + + COUNT ( + + NULLIF ( + 62, + 34 ) ) * 0 * CAST ( - 23 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT 78 * - + 4 - - + 79 DIV - + 87 - - 49 + - - 89 * + 7 - + 88
----
272

skipif mysql # not compatible
query I rowsort label-3429
SELECT 78 * - + 4 - - + 79 / - + 87 - - 49 + - - 89 * + 7 - + 88
----
272

query I rowsort
SELECT + 68 * - 11 AS col0
----
-748

query II rowsort
SELECT ALL + 9, + 85 AS col2
----
9
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3432
SELECT CAST( + 9 AS SIGNED ) AS col0, - 10 + - + 98 + + + 85 AS col0
----
9
-23

skipif mysql # not compatible
query II rowsort label-3432
SELECT CAST ( + 9 AS INTEGER ) AS col0, - 10 + - + 98 + + + 85 AS col0
----
9
-23

query I rowsort
SELECT + 32 * 31 AS col0
----
992

query I rowsort
SELECT - NULLIF ( 53, - 62 + - + 52 ) * - - ( + - 65 ) AS col0
----
3445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3435
SELECT DISTINCT + 28 AS col2, 36 * + - COALESCE ( + 90, CAST( COUNT( * ) AS SIGNED ) ) * + 46
----
28
-149040

skipif mysql # not compatible
query II rowsort label-3435
SELECT DISTINCT + 28 AS col2, 36 * + - COALESCE ( + 90, CAST ( COUNT ( * ) AS INTEGER ) ) * + 46
----
28
-149040

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT + 14 * - COALESCE ( + + MAX( ALL + 73 ), + + 75 + - 93 * 78 + + - 99 * - + 37 ) - + + 21
----
-1043

skipif mysql # not compatible
query I rowsort label-3436
SELECT + 14 * - COALESCE ( + + MAX ( ALL + 73 ), + + 75 + - 93 * 78 + + - 99 * - + 37 ) - + + 21
----
-1043

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT ALL + COUNT( * ) * NULLIF ( + 5, 44 ) * + 44 + + - 89 * + 64
----
-5476

skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL + COUNT ( * ) * NULLIF ( + 5, 44 ) * + 44 + + - 89 * + 64
----
-5476

query II rowsort
SELECT DISTINCT + 11, - 22 AS col0
----
11
-22

query II rowsort
SELECT + 17 AS col1, + 37
----
17
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3440
SELECT + CAST( - 49 AS SIGNED ) AS col2, - COUNT( * )
----
-49
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT ALL 76 * + - 71 + 24 + - 39 - - COUNT( * ) + - + COUNT( * ) * - 70 * - 64 + - 69 - + - 80 * - 96 * - 64
----
481561

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL 76 * + - 71 + 24 + - 39 - - COUNT ( * ) + - + COUNT ( * ) * - 70 * - 64 + - 69 - + - 80 * - 96 * - 64
----
481561

query I rowsort
SELECT 52 * - - 74 + - + 3 AS col1
----
3845

query II rowsort
SELECT + 28 AS col2, + 39
----
28
39

query I rowsort
SELECT ALL + 7 + - 3
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3445
SELECT ALL - CASE + + 55 WHEN + - 0 THEN - 90 + - CASE + + NULLIF ( 14, 70 ) WHEN + 75 THEN - 69 ELSE + 81 / - 67 * 67 + + - 83 END + - 7 + 67 * + 96 WHEN - 23 THEN 15 ELSE + CAST( NULL AS SIGNED ) + - - MAX( ALL - 68 ) END + + NULLIF ( + 52, + - 52 * - COUNT( * ) ) + - ( - 46 ) - 31 + - + 21 + - + 7 + + 73 * - ( + - COUNT( * ) ) * - COUNT( * ) / + + 71 - + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL - CASE + + 55 WHEN + - 0 THEN - 90 + - CASE + + NULLIF ( 14, 70 ) WHEN + 75 THEN - 69 ELSE + 81 / - 67 * 67 + + - 83 END + - 7 + 67 * + 96 WHEN - 23 THEN 15 ELSE + CAST ( NULL AS INTEGER ) + - - MAX ( ALL - 68 ) END + + NULLIF ( + 52, + - 52 * - COUNT ( * ) ) + - ( - 46 ) - 31 + - + 21 + - + 7 + + 73 * - ( + - COUNT ( * ) ) * - COUNT ( * ) / + + 71 - + 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3446
SELECT 4, + 4 * - + COUNT( * ) + + COUNT( * ) + + 84 + 71 * - + 66 + NULLIF ( 4, + - 11 * + + 14 * COUNT( ALL 10 ) ) * MAX( ALL 87 ) + + 1 DIV + - 67 * + COUNT( * ) + + 31 + + - 90 AS col0
----
4
-4316

skipif mysql # not compatible
query II rowsort label-3446
SELECT 4, + 4 * - + COUNT ( * ) + + COUNT ( * ) + + 84 + 71 * - + 66 + NULLIF ( 4, + - 11 * + + 14 * COUNT ( ALL 10 ) ) * MAX ( ALL 87 ) + + 1 / + - 67 * + COUNT ( * ) + + 31 + + - 90 AS col0
----
4
-4316

query I rowsort
SELECT DISTINCT + 3 + - 28 * - 20
----
563

onlyif mysql # DIV for integer division: 
query I rowsort label-3448
SELECT ALL + 81 DIV - 37 + 75 * - + 45
----
-3377

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL + 81 / - 37 + 75 * - + 45
----
-3377

onlyif mysql # aggregate syntax: 
query II rowsort label-3449
SELECT ALL + 1 AS col2, 20 * + - 69 * + - ( + COUNT( * ) ) + - 9 - COUNT( * )
----
1
1370

skipif mysql # not compatible
query II rowsort label-3449
SELECT ALL + 1 AS col2, 20 * + - 69 * + - ( + COUNT ( * ) ) + - 9 - COUNT ( * )
----
1
1370

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT - COUNT( + 78 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3450
SELECT - COUNT ( + 78 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3451
SELECT 11 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT 11 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 29 - 40
----
-11

query II rowsort
SELECT 0 AS col1, 34
----
0
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3454
SELECT ALL - - 58 - 48 AS col1, - ( + COUNT( * ) ) DIV 34 - 5 + - 64 + - + 22 + - 41 * ( - COUNT( * ) ) col0
----
10
-50

skipif mysql # not compatible
query II rowsort label-3454
SELECT ALL - - 58 - 48 AS col1, - ( + COUNT ( * ) ) / 34 - 5 + - 64 + - + 22 + - 41 * ( - COUNT ( * ) ) col0
----
10
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3455
SELECT COUNT( * ) - 7 * CASE + - 60 WHEN - COALESCE ( - CAST( NULL AS SIGNED ), + 60 ) THEN 17 * - - 89 END AS col2, 69
----
-10590
69

skipif mysql # not compatible
query II rowsort label-3455
SELECT COUNT ( * ) - 7 * CASE + - 60 WHEN - COALESCE ( - CAST ( NULL AS INTEGER ), + 60 ) THEN 17 * - - 89 END AS col2, 69
----
-10590
69

query I rowsort
SELECT NULLIF ( 35, + 21 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT DISTINCT NULLIF ( 32, + NULLIF ( - 7, - CASE COUNT( * ) WHEN - + 22 * COUNT( * ) THEN 46 / + COUNT( * ) WHEN + 40 THEN NULL ELSE NULL END ) )
----
32

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT NULLIF ( 32, + NULLIF ( - 7, - CASE COUNT ( * ) WHEN - + 22 * COUNT ( * ) THEN 46 / + COUNT ( * ) WHEN + 40 THEN NULL ELSE NULL END ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT DISTINCT + MIN( DISTINCT + + 55 ) * - COUNT( * ) + COUNT( * ) * + 40
----
-15

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT + MIN ( DISTINCT + + 55 ) * - COUNT ( * ) + COUNT ( * ) * + 40
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3459
SELECT ALL - ( NULLIF ( - 80, - 88 * - - 61 + - - 85 + 73 ) ) - + - MIN( + 16 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL - ( NULLIF ( - 80, - 88 * - - 61 + - - 85 + 73 ) ) - + - MIN ( + 16 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT CASE 76 WHEN + 27 * + COUNT( * ) THEN NULL WHEN - + CASE AVG ( 15 ) WHEN + 15 THEN + 60 - 13 WHEN - + 23 + + 41 + + 65 THEN NULL END THEN - 81 ELSE NULL END + - 75 + + 30 * - CASE 15 WHEN + 34 THEN 22 WHEN 84 + + - 43 THEN 5 END * 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3461
SELECT CASE 76 WHEN + 27 * + COUNT ( * ) THEN NULL WHEN - + CASE AVG ( 15 ) WHEN + 15 THEN + 60 - 13 WHEN - + 23 + + 41 + + 65 THEN NULL END THEN - 81 ELSE NULL END + - 75 + + 30 * - CASE 15 WHEN + 34 THEN 22 WHEN 84 + + - 43 THEN 5 END * 91 AS col2
----
NULL

query I rowsort
SELECT ( + + 49 ) * + + 96 AS col0
----
4704

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

skipif mysql # not compatible
query I rowsort label-3463
SELECT - MAX ( + 56 )
----
-56

query II rowsort
SELECT ALL 3 AS col2, - 21 + 64 * - 68
----
3
-4373

query I rowsort
SELECT 38 * - 11 + + 79
----
-339

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT 70 - - + ( - - MIN( + 91 ) )
----
161

skipif mysql # not compatible
query I rowsort label-3466
SELECT 70 - - + ( - - MIN ( + 91 ) )
----
161

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3467
SELECT + 5 * - - ( - CASE + ( - + CAST( NULL AS DECIMAL ) ) WHEN - - 89 THEN COUNT( * ) * + 47 WHEN NULLIF ( - + 37, ( 26 ) ) THEN + 4 / + COUNT( * ) + + 47 END ) * + 92 - + 70 - - - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3467
SELECT + 5 * - - ( - CASE + ( - + CAST ( NULL AS REAL ) ) WHEN - - 89 THEN COUNT ( * ) * + 47 WHEN NULLIF ( - + 37, ( 26 ) ) THEN + 4 / + COUNT ( * ) + + 47 END ) * + 92 - + 70 - - - 66
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3468
SELECT ALL 96 * 42 * ( 97 ) DIV - 2 col0
----
-195552

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL 96 * 42 * ( 97 ) / - 2 col0
----
-195552

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT 76 * ( MAX( + 29 ) ) AS col1
----
2204

skipif mysql # not compatible
query I rowsort label-3469
SELECT 76 * ( MAX ( + 29 ) ) AS col1
----
2204

query I rowsort
SELECT + 48 * 67 + 58 AS col0
----
3274

onlyif mysql # aggregate syntax: 
query II rowsort label-3471
SELECT DISTINCT 25 * - COUNT( * ) AS col0, + ( + 6 ) + + 0 AS col0
----
-25
6

skipif mysql # not compatible
query II rowsort label-3471
SELECT DISTINCT 25 * - COUNT ( * ) AS col0, + ( + 6 ) + + 0 AS col0
----
-25
6

query I rowsort
SELECT 66 + - - 1 * - 32
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT MIN( - + 84 ) * 59
----
-4956

skipif mysql # not compatible
query I rowsort label-3473
SELECT MIN ( - + 84 ) * 59
----
-4956

query I rowsort
SELECT ( + - 85 ) * + - 33 + - ( 12 ) AS col2
----
2793

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3475
SELECT ALL CASE - - COUNT( DISTINCT - - 57 ) WHEN 61 THEN NULL WHEN 52 THEN CAST( COUNT( ALL 60 ) AS SIGNED ) + 27 DIV - 68 * + - 12 WHEN - ( 39 ) * 34 THEN NULL ELSE + 0 END + - - 50 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL CASE - - COUNT ( DISTINCT - - 57 ) WHEN 61 THEN NULL WHEN 52 THEN CAST ( COUNT ( ALL 60 ) AS INTEGER ) + 27 / - 68 * + - 12 WHEN - ( 39 ) * 34 THEN NULL ELSE + 0 END + - - 50 AS col0
----
50

query I rowsort
SELECT ALL NULLIF ( - 46, 86 ) + - + 67
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3477
SELECT DISTINCT COUNT( * ) + + 4 + 45 DIV - + 73 * CASE - 25 WHEN + 61 * - + 61 THEN NULL WHEN + - 51 THEN NULL WHEN - CASE 1 WHEN - 54 + + 6 + - 89 + + + 80 + - COALESCE ( + - 4, + 78, + 58 ) * - COALESCE ( + 55, + - 87 * CAST( NULL AS SIGNED ) - - ( + COUNT( + 82 ) ) + 11 ) * - + 98 DIV + 56 THEN COUNT( DISTINCT 79 ) + - 2 END + - + AVG ( ALL 58 ) THEN NULL ELSE - + 91 + - 90 END + + 68 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT COUNT ( * ) + + 4 + 45 / - + 73 * CASE - 25 WHEN + 61 * - + 61 THEN NULL WHEN + - 51 THEN NULL WHEN - CASE 1 WHEN - 54 + + 6 + - 89 + + + 80 + - COALESCE ( + - 4, + 78, + 58 ) * - COALESCE ( + 55, + - 87 * CAST ( NULL AS INTEGER ) - - ( + COUNT ( + 82 ) ) + 11 ) * - + 98 / + 56 THEN COUNT ( DISTINCT 79 ) + - 2 END + - + AVG ( ALL 58 ) THEN NULL ELSE - + 91 + - 90 END + + 68 AS col1
----
73

query I rowsort
SELECT - 74 * ( - 5 )
----
370

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3480
SELECT - CAST( - 41 AS SIGNED ) AS col2, - 1 + + 20 - + COUNT( * )
----
41
18

skipif mysql # not compatible
query II rowsort label-3480
SELECT - CAST ( - 41 AS INTEGER ) AS col2, - 1 + + 20 - + COUNT ( * )
----
41
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT COUNT( * ) * SUM( 79 ) + ( + COUNT( + - 83 ) ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-3481
SELECT COUNT ( * ) * SUM ( 79 ) + ( + COUNT ( + - 83 ) ) AS col0
----
80

query I rowsort
SELECT - 5 - - 7
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL - - COALESCE ( + - ( + COALESCE ( + 64, + - ( - COUNT( * ) ) * + 76 ) ), ( 16 ) + - - 90 ) - - - 45
----
-109

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL - - COALESCE ( + - ( + COALESCE ( + 64, + - ( - COUNT ( * ) ) * + 76 ) ), ( 16 ) + - - 90 ) - - - 45
----
-109

query I rowsort
SELECT ( 25 ) + 79 * + 2
----
183

onlyif mysql # aggregate syntax: 
query II rowsort label-3485
SELECT DISTINCT SUM( DISTINCT 45 ), + 53 AS col1
----
45
53

skipif mysql # not compatible
query II rowsort label-3485
SELECT DISTINCT SUM ( DISTINCT 45 ), + 53 AS col1
----
45
53

query I rowsort
SELECT DISTINCT - CASE + 32 WHEN - 20 * - - 2 THEN NULL WHEN - 14 THEN - 58 ELSE + 55 END col2
----
-55

query I rowsort
SELECT - 48 + - 50 * 97 * + - 27 * - 33 + 6
----
-4321392

query I rowsort
SELECT DISTINCT + 60 * - 67 col0
----
-4020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3489
SELECT ALL CAST( 8 AS SIGNED ) + - 2 * - 90 AS col0
----
188

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL CAST ( 8 AS INTEGER ) + - 2 * - 90 AS col0
----
188

query I rowsort
SELECT DISTINCT + 42 * - + 70 AS col0
----
-2940

query I rowsort
SELECT ALL - 88 + + 45 AS col1
----
-43

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3493
SELECT ALL - 50 AS col0, ( - 63 ) + + SUM( - 8 ) DIV 51 AS col2
----
-50
-63

skipif mysql # not compatible
query II rowsort label-3493
SELECT ALL - 50 AS col0, ( - 63 ) + + SUM ( - 8 ) / 51 AS col2
----
-50
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3494
SELECT DISTINCT COUNT( * ) * + CAST( AVG ( DISTINCT 71 ) AS SIGNED ) + 74 AS col1
----
145

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT COUNT ( * ) * + CAST ( AVG ( DISTINCT 71 ) AS INTEGER ) + 74 AS col1
----
145

query I rowsort
SELECT COALESCE ( + 38, + - COALESCE ( - + 69, - 79 ) * + 46 + ( + + 30 ) + - - 49 * + 60 * + - CASE 3 WHEN - ( - 47 ) + - - 11 THEN - 82 WHEN - 85 THEN NULL END ) AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3496
SELECT ALL 37 * CAST( + 49 AS SIGNED ) * + 72 - COALESCE ( 20, + + 79 + + + 18 - - - MAX( - + 60 ) + 46 * - 39 * + + AVG ( ALL + 31 ) ) + CAST( NULL AS DECIMAL ) - - 17 + - - CAST( + + 77 AS SIGNED ) + - - 94 * - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL 37 * CAST ( + 49 AS INTEGER ) * + 72 - COALESCE ( 20, + + 79 + + + 18 - - - MAX ( - + 60 ) + 46 * - 39 * + + AVG ( ALL + 31 ) ) + CAST ( NULL AS REAL ) - - 17 + - - CAST ( + + 77 AS INTEGER ) + - - 94 * - 57
----
NULL

query I rowsort
SELECT - 95 * + + 49 AS col1
----
-4655

query I rowsort
SELECT ALL 6 * + - 9 AS col0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT ALL + 1 * 39 + - - 57 - + 36 DIV - 14 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL + 1 * 39 + - - 57 - + 36 / - 14 AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3500
SELECT + 47 - + MAX( CAST( NULL AS SIGNED ) ) + 77 AS col1, - MIN( ALL - 92 ) AS col1
----
NULL
92

skipif mysql # not compatible
query II rowsort label-3500
SELECT + 47 - + MAX ( CAST ( NULL AS INTEGER ) ) + 77 AS col1, - MIN ( ALL - 92 ) AS col1
----
NULL
92

query II rowsort
SELECT ALL + 84 col2, + 98
----
84
98

query I rowsort
SELECT ALL 37 * + + 56 AS col0
----
2072

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT + + MAX( DISTINCT - 14 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-3503
SELECT + + MAX ( DISTINCT - 14 ) AS col2
----
-14

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3505
SELECT + - 93 + - 26 DIV + 66 col2
----
-93

skipif mysql # not compatible
query I rowsort label-3505
SELECT + - 93 + - 26 / + 66 col2
----
-93

query II rowsort
SELECT 54 AS col0, 98 * - 70 * 8
----
54
-54880

query II rowsort
SELECT 92, - 14 AS col2
----
92
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT + + MAX( - 54 ) * - - 9 * - 76 AS col0
----
36936

skipif mysql # not compatible
query I rowsort label-3508
SELECT + + MAX ( - 54 ) * - - 9 * - 76 AS col0
----
36936

query I rowsort
SELECT ALL - 46 * - 33
----
1518

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT + 36 - - 94 * - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-3510
SELECT + 36 - - 94 * - COUNT ( * )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT + 10 * + MAX( + 71 ) AS col2
----
710

skipif mysql # not compatible
query I rowsort label-3511
SELECT + 10 * + MAX ( + 71 ) AS col2
----
710

query II rowsort
SELECT + 63 + ( + ( 52 ) ) AS col0, + 92 AS col0
----
115
92

query I rowsort
SELECT ALL 7 * - + 26 AS col1
----
-182

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

skipif mysql # not compatible
query I rowsort label-3514
SELECT + - COUNT ( * ) / COUNT ( * ) / + 98
----
0

query I rowsort
SELECT DISTINCT 51 + - + 19 * - + 67 + 49 + + 12
----
1385

query I rowsort
SELECT ALL + 56 + - 9 col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT + ( + - CASE + COUNT( * ) WHEN + 85 + - 21 THEN ( + 82 ) END ) - + 7 + - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3517
SELECT + ( + - CASE + COUNT ( * ) WHEN + 85 + - 21 THEN ( + 82 ) END ) - + 7 + - 53 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT ALL 91 * - + 31 * - 41 * + + ( - + 98 ) * - ( - - 97 ) + COUNT( * ) * + MAX( ALL 23 )
----
1099473489

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL 91 * - + 31 * - 41 * + + ( - + 98 ) * - ( - - 97 ) + COUNT ( * ) * + MAX ( ALL 23 )
----
1099473489

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT - MIN( 3 ) + - 32 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3519
SELECT - MIN ( 3 ) + - 32 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query III rowsort label-3520
SELECT ALL 43 + + 19 + 29 + 59 AS col0, CASE - + 68 WHEN + 42 THEN - 89 END * - COUNT( * ) * - 90 / - 80 - + 72 AS col2, - 14 * + 11
----
150
NULL
-154

skipif mysql # not compatible
query III rowsort label-3520
SELECT ALL 43 + + 19 + 29 + 59 AS col0, CASE - + 68 WHEN + 42 THEN - 89 END * - COUNT ( * ) * - 90 / - 80 - + 72 AS col2, - 14 * + 11
----
150
NULL
-154

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT + COUNT( * ) + - - ( 82 )
----
83

skipif mysql # not compatible
query I rowsort label-3522
SELECT + COUNT ( * ) + - - ( 82 )
----
83

query II rowsort
SELECT - 31 - + - 76, + CASE - - 31 WHEN + 84 THEN - - 76 ELSE NULL END AS col0
----
45
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3524
SELECT ALL + 84 DIV - + MAX( ALL + 87 )
----
0

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL + 84 / - + MAX ( ALL + 87 )
----
0

query I rowsort
SELECT 57 * - 94 - + 93
----
-5451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3526
SELECT ALL CAST( COUNT( * ) AS SIGNED ) DIV - 28 + + ( + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) / - 28 + + ( + 64 )
----
64

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

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT 33 / - 39 + - - COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT ALL + ( + + ( - - MAX( ALL + + 65 ) ) ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL + ( + + ( - - MAX ( ALL + + 65 ) ) ) AS col1
----
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3529
SELECT ALL + CAST( + - 21 AS SIGNED ) DIV + + 85 - 64 - + 44 + 92
----
-16

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL + CAST ( + - 21 AS INTEGER ) / + + 85 - 64 - + 44 + 92
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3530
SELECT - 71 + 79 + MIN( 53 ) * + CAST( - 94 AS SIGNED )
----
-4974

skipif mysql # not compatible
query I rowsort label-3530
SELECT - 71 + 79 + MIN ( 53 ) * + CAST ( - 94 AS INTEGER )
----
-4974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3531
SELECT ALL + CAST( + + 98 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL + CAST ( + + 98 AS INTEGER )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT ALL + CASE - 47 WHEN COUNT( * ) THEN NULL WHEN - 8 THEN NULL WHEN - - 79 THEN NULL ELSE 21 * - + SUM( 95 ) * + ( - + 31 ) + 36 END
----
61881

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL + CASE - 47 WHEN COUNT ( * ) THEN NULL WHEN - 8 THEN NULL WHEN - - 79 THEN NULL ELSE 21 * - + SUM ( 95 ) * + ( - + 31 ) + 36 END
----
61881

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3534
SELECT - 41 * 23 AS col1, COUNT( * )
----
-943
1

skipif mysql # not compatible
query II rowsort label-3534
SELECT - 41 * 23 AS col1, COUNT ( * )
----
-943
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3535
SELECT + - SUM( + + CAST( 12 AS SIGNED ) ) + - 7 * COALESCE ( 2, ( - ( + - 47 ) ) ) * 48 + 25 * 85
----
1441

skipif mysql # not compatible
query I rowsort label-3535
SELECT + - SUM ( + + CAST ( 12 AS INTEGER ) ) + - 7 * COALESCE ( 2, ( - ( + - 47 ) ) ) * 48 + 25 * 85
----
1441

query I rowsort
SELECT - - 53 * + 18 AS col1
----
954

onlyif mysql # DIV for integer division: 
query I rowsort label-3537
SELECT ALL - 42 DIV - 50 + - 49 col2
----
-49

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL - 42 / - 50 + - 49 col2
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-3538
SELECT DISTINCT + - ( - ( NULLIF ( + - ( 50 ), SUM( + 52 ) ) ) ) AS col2, 2 * - + 74
----
-50
-148

skipif mysql # not compatible
query II rowsort label-3538
SELECT DISTINCT + - ( - ( NULLIF ( + - ( 50 ), SUM ( + 52 ) ) ) ) AS col2, 2 * - + 74
----
-50
-148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3539
SELECT CASE - - NULLIF ( - 98, 74 * - 18 ) WHEN COUNT( * ) * - CASE - - 31 WHEN + 23 THEN 71 * 9 * + COALESCE ( + 48, - MAX( 0 ) ) WHEN - ( - COALESCE ( 73, - 8 - + - ( - NULLIF ( ( - 80 ), + 62 / - 49 + - + 94 ) ) * + - 83 + + CAST( + - 31 AS SIGNED ) ) ) * 12 * 84 + 46 THEN 42 ELSE NULL END * - 3 THEN + NULLIF ( + SUM( - 2 ), 29 ) / - 13 * + 59 END * + 84 + - 82 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT CASE - - NULLIF ( - 98, 74 * - 18 ) WHEN COUNT ( * ) * - CASE - - 31 WHEN + 23 THEN 71 * 9 * + COALESCE ( + 48, - MAX ( 0 ) ) WHEN - ( - COALESCE ( 73, - 8 - + - ( - NULLIF ( ( - 80 ), + 62 / - 49 + - + 94 ) ) * + - 83 + + CAST ( + - 31 AS INTEGER ) ) ) * 12 * 84 + 46 THEN 42 ELSE NULL END * - 3 THEN + NULLIF ( + SUM ( - 2 ), 29 ) / - 13 * + 59 END * + 84 + - 82 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3540
SELECT ALL + 98 DIV - - 1 - - 98
----
196

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL + 98 / - - 1 - - 98
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT DISTINCT + MAX( 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT + MAX ( 41 ) AS col1
----
41

query I rowsort
SELECT 1 * + - 31 + - - 46 AS col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3543
SELECT + 94 DIV 27 - + - NULLIF ( - SUM( DISTINCT ( + 18 ) ), - + 59 * - 54 + + - COUNT( * ) )
----
-15

skipif mysql # not compatible
query I rowsort label-3543
SELECT + 94 / 27 - + - NULLIF ( - SUM ( DISTINCT ( + 18 ) ), - + 59 * - 54 + + - COUNT ( * ) )
----
-15

query I rowsort
SELECT + + 20 + 99
----
119

query I rowsort
SELECT - COALESCE ( - 78, 89 * - 47, - 58 + + 79, - + 17 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3546
SELECT ALL - 57 * - - 86 + + - ( 43 ) AS col2, SUM( DISTINCT + - NULLIF ( 51, 7 + - 52 ) )
----
-4945
-51

skipif mysql # not compatible
query II rowsort label-3546
SELECT ALL - 57 * - - 86 + + - ( 43 ) AS col2, SUM ( DISTINCT + - NULLIF ( 51, 7 + - 52 ) )
----
-4945
-51

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

skipif mysql # not compatible
query I rowsort label-3547
SELECT + - 46 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - + ( + - CASE - + AVG ( + 67 ) WHEN - 61 THEN + + 55 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT + 70 + + 48 + COUNT( * ) - + 12 * - + 25 + + + 57 col1
----
476

skipif mysql # not compatible
query I rowsort label-3549
SELECT + 70 + + 48 + COUNT ( * ) - + 12 * - + 25 + + + 57 col1
----
476

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT - COALESCE ( COUNT( * ), - - ( + ( + 65 ) ) - - 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-3550
SELECT - COALESCE ( COUNT ( * ), - - ( + ( + 65 ) ) - - 10 )
----
-1

query I rowsort
SELECT ALL 44 + - 33
----
11

query I rowsort
SELECT + 49 * + - 84
----
-4116

query I rowsort
SELECT ALL 96 * + 58
----
5568

query II rowsort
SELECT 68 AS col1, 53
----
68
53

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

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

query I rowsort
SELECT ALL 90 - + + 50
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3557
SELECT ( - 85 ) DIV + 41
----
-2

skipif mysql # not compatible
query I rowsort label-3557
SELECT ( - 85 ) / + 41
----
-2

query II rowsort
SELECT DISTINCT - 46 col2, 83 col2
----
-46
83

query II rowsort
SELECT 68, 74 col0
----
68
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3560
SELECT 30 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-3560
SELECT 30 / 60
----
0

query I rowsort
SELECT 39 * + 47
----
1833

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3563
SELECT DISTINCT + ( + COUNT( ALL - - 58 ) ) DIV - - 67 + 23 * - + 33 AS col1
----
-759

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT + ( + COUNT ( ALL - - 58 ) ) / - - 67 + 23 * - + 33 AS col1
----
-759

onlyif mysql # aggregate syntax: 
query II rowsort label-3564
SELECT + 6 + - 20 * + 10 AS col2, + MAX( - 92 ) + - + COUNT( * ) * - - 95 col1
----
-194
-187

skipif mysql # not compatible
query II rowsort label-3564
SELECT + 6 + - 20 * + 10 AS col2, + MAX ( - 92 ) + - + COUNT ( * ) * - - 95 col1
----
-194
-187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3565
SELECT + + COALESCE ( - 86, - CAST( NULL AS SIGNED ) ) col2
----
-86

skipif mysql # not compatible
query I rowsort label-3565
SELECT + + COALESCE ( - 86, - CAST ( NULL AS INTEGER ) ) col2
----
-86

query I rowsort
SELECT 34 * + 35
----
1190

onlyif mysql # aggregate syntax: 
query II rowsort label-3567
SELECT + MIN( - 26 ) * COUNT( * ), + 90 col2
----
-26
90

skipif mysql # not compatible
query II rowsort label-3567
SELECT + MIN ( - 26 ) * COUNT ( * ), + 90 col2
----
-26
90

query I rowsort
SELECT ALL - NULLIF ( + 17, - COALESCE ( + CASE 45 WHEN - 26 THEN NULL WHEN - 9 THEN + AVG ( DISTINCT + + 16 ) WHEN + 46 THEN NULL END, + + 35 * NULLIF ( - + 10, + 34 ) ) * - 94 - + - 53 ) AS col0
----
-17

query I rowsort
SELECT DISTINCT + 19 * - 89 + + - 76
----
-1767

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

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

query I rowsort
SELECT 34 + - - 42 * + 16
----
706

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT - COUNT( * ) * - - 88 * MAX( 19 )
----
-1672

skipif mysql # not compatible
query I rowsort label-3573
SELECT - COUNT ( * ) * - - 88 * MAX ( 19 )
----
-1672

query I rowsort
SELECT - 1 + + NULLIF ( - - 35, - 14 )
----
34

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

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

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

skipif mysql # not compatible
query I rowsort label-3576
SELECT 60 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 84 * 31
----
2604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3578
SELECT CAST( NULL AS SIGNED ) / - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-3578
SELECT CAST ( NULL AS INTEGER ) / - 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT DISTINCT + 39 - + 65 - + 86 * - SUM( + 32 ) * + 24 * + COUNT( * )
----
66022

skipif mysql # not compatible
query I rowsort label-3579
SELECT DISTINCT + 39 - + 65 - + 86 * - SUM ( + 32 ) * + 24 * + COUNT ( * )
----
66022

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT ALL COUNT( - - 31 ) - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL COUNT ( - - 31 ) - - COUNT ( * ) AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3581
SELECT 95 - - 74 * 2 DIV + 39
----
98

skipif mysql # not compatible
query I rowsort label-3581
SELECT 95 - - 74 * 2 / + 39
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL + 21 * - ( + COALESCE ( - MIN( + CASE + + 57 WHEN + 57 THEN NULL WHEN - + 35 THEN NULL ELSE - 47 * + + 67 END ), + + 54 * 5 ) )
----
-5670

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL + 21 * - ( + COALESCE ( - MIN ( + CASE + + 57 WHEN + 57 THEN NULL WHEN - + 35 THEN NULL ELSE - 47 * + + 67 END ), + + 54 * 5 ) )
----
-5670

query II rowsort
SELECT ALL 7, - 23 + 83 + - 35 AS col2
----
7
25

query II rowsort
SELECT DISTINCT 13, + 50 AS col1
----
13
50

query II rowsort
SELECT ALL 64, - 56 + - 98 + + + 55 AS col2
----
64
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT 85 * + + 2 * SUM( ALL - 9 )
----
-1530

skipif mysql # not compatible
query I rowsort label-3586
SELECT 85 * + + 2 * SUM ( ALL - 9 )
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT COALESCE ( - 78, + MAX( + 52 ) * + - 5, ( - COUNT( ALL - 91 ) ) ) * 21 * - 40 AS col2
----
65520

skipif mysql # not compatible
query I rowsort label-3587
SELECT COALESCE ( - 78, + MAX ( + 52 ) * + - 5, ( - COUNT ( ALL - 91 ) ) ) * 21 * - 40 AS col2
----
65520

query I rowsort
SELECT 23 + + - 53 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT COUNT( * ) + + - 0 + - 57 + + + 70 + - 97
----
-83

skipif mysql # not compatible
query I rowsort label-3589
SELECT COUNT ( * ) + + - 0 + - 57 + + + 70 + - 97
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT NULLIF ( + ( 85 ), - 31 ) * + + COUNT( * ) + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-3590
SELECT NULLIF ( + ( 85 ), - 31 ) * + + COUNT ( * ) + COUNT ( * )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3591
SELECT 67 / - COALESCE ( 87, - 62 ) + - 22 + - CAST( NULL AS SIGNED ) - + 80 + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3591
SELECT 67 / - COALESCE ( 87, - 62 ) + - 22 + - CAST ( NULL AS INTEGER ) - + 80 + + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3592
SELECT DISTINCT + 76 DIV - - 11
----
6

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT + 76 / - - 11
----
6

query II rowsort
SELECT DISTINCT - 62 AS col2, 50 AS col0
----
-62
50

onlyif mysql # aggregate syntax: 
query II rowsort label-3594
SELECT 61 * - ( - - ( ( - - COUNT( * ) ) ) ) * - ( + - COUNT( DISTINCT + 47 ) ) + 20 AS col1, 86 AS col1
----
-41
86

skipif mysql # not compatible
query II rowsort label-3594
SELECT 61 * - ( - - ( ( - - COUNT ( * ) ) ) ) * - ( + - COUNT ( DISTINCT + 47 ) ) + 20 AS col1, 86 AS col1
----
-41
86

query II rowsort
SELECT 86 AS col1, - 61 * + 2 + + 72 * - 50 * + 91 + - - NULLIF ( + 72, 50 )
----
86
-327650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3596
SELECT DISTINCT + 34 * - COUNT( * ) + - 23 + - 96 + + + 25 * + - CAST( - 71 AS SIGNED ) + - 76 * + 3 col1
----
1394

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT + 34 * - COUNT ( * ) + - 23 + - 96 + + + 25 * + - CAST ( - 71 AS INTEGER ) + - 76 * + 3 col1
----
1394

onlyif mysql # DIV for integer division: 
query I rowsort label-3597
SELECT + 49 DIV + + 95 * + 81
----
0

skipif mysql # not compatible
query I rowsort label-3597
SELECT + 49 / + + 95 * + 81
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3598
SELECT DISTINCT - 0, - COUNT( * ) AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-3598
SELECT DISTINCT - 0, - COUNT ( * ) AS col1
----
0
-1

query I rowsort
SELECT 59 + + + ( + + 95 ) AS col0
----
154

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3602
SELECT 49 DIV - + ( + 9 ) - + 20 + 64 + - 90 + 42 + + + 2 * - 47 * ( - 96 ) * - 77 + + 49 * 22 * 7 + - 52, ( + - COUNT( * ) ) AS col0
----
-687363
-1

skipif mysql # not compatible
query II rowsort label-3602
SELECT 49 / - + ( + 9 ) - + 20 + 64 + - 90 + 42 + + + 2 * - 47 * ( - 96 ) * - 77 + + 49 * 22 * 7 + - 52, ( + - COUNT ( * ) ) AS col0
----
-687363
-1

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

skipif mysql # not compatible
query I rowsort label-3603
SELECT + + MAX ( - 81 )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3604
SELECT + - 75 * - ( - 49 ) + 44 - + + 33 + + 54 * + 90 * - 76 * - 81 + - ( - CAST( NULL AS DECIMAL ) ) * - 3 / + + ( - COUNT( * ) ) + NULLIF ( + 85, - - 58 + - 84 * + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT + - 75 * - ( - 49 ) + 44 - + + 33 + + 54 * + 90 * - 76 * - 81 + - ( - CAST ( NULL AS REAL ) ) * - 3 / + + ( - COUNT ( * ) ) + NULLIF ( + 85, - - 58 + - 84 * + 93 )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3606
SELECT ALL - 63 + - + 44 + COUNT( * ) DIV + 28 * - COUNT( * )
----
-107

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL - 63 + - + 44 + COUNT ( * ) / + 28 * - COUNT ( * )
----
-107

query I rowsort
SELECT 83 * 22 * 16 + + 88
----
29304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3608
SELECT - 88 + MAX( - 37 ) + 66 DIV + - NULLIF ( - 85, COUNT( * ) * CASE WHEN + CAST( NULL AS SIGNED ) IS NULL THEN NULL ELSE + 78 END ) * + 82 * 5 AS col2
----
-125

skipif mysql # not compatible
query I rowsort label-3608
SELECT - 88 + MAX ( - 37 ) + 66 / + - NULLIF ( - 85, COUNT ( * ) * CASE WHEN + CAST ( NULL AS INTEGER ) IS NULL THEN NULL ELSE + 78 END ) * + 82 * 5 AS col2
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT ALL + 97 * NULLIF ( COUNT( * ), + 37 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL + 97 * NULLIF ( COUNT ( * ), + 37 ) AS col2
----
97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3611
SELECT ALL - 25 - + COALESCE ( 99, - 40 + - 54 + + - 90 * 62 DIV + - 67 )
----
-124

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL - 25 - + COALESCE ( 99, - 40 + - 54 + + - 90 * 62 / + - 67 )
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3612
SELECT - CAST( - + SUM( DISTINCT - 44 ) AS SIGNED ) * + - 63 * 57
----
158004

skipif mysql # not compatible
query I rowsort label-3612
SELECT - CAST ( - + SUM ( DISTINCT - 44 ) AS INTEGER ) * + - 63 * 57
----
158004

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT DISTINCT - 53 DIV - 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT - 53 / - 71 AS col0
----
0

query I rowsort
SELECT - 72 + + + 71 * - 49 AS col1
----
-3551

onlyif mysql # aggregate syntax: 
query II rowsort label-3615
SELECT ALL 43 * + COUNT( * ) AS col1, 48 AS col2
----
43
48

skipif mysql # not compatible
query II rowsort label-3615
SELECT ALL 43 * + COUNT ( * ) AS col1, 48 AS col2
----
43
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3616
SELECT ALL - 62 DIV + - 4
----
15

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL - 62 / + - 4
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3617
SELECT - 60 DIV - 31
----
1

skipif mysql # not compatible
query I rowsort label-3617
SELECT - 60 / - 31
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT ALL - 35 * ( 76 ) * + - COUNT( * )
----
2660

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL - 35 * ( 76 ) * + - COUNT ( * )
----
2660

query I rowsort
SELECT - 13 * - 39
----
507

query I rowsort
SELECT + 18 + 42
----
60

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

skipif mysql # not compatible
query I rowsort label-3621
SELECT - 30 / + 41
----
0

query I rowsort
SELECT DISTINCT ( + COALESCE ( - 16, 49 * 58 + 31, - 9 + - 70 ) ) col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3623
SELECT ALL ( + SUM( DISTINCT CAST( - 42 AS SIGNED ) ) ) * + NULLIF ( + - 92, + + 26 ) + + ( - 43 ) AS col0
----
3821

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL ( + SUM ( DISTINCT CAST ( - 42 AS INTEGER ) ) ) * + NULLIF ( + - 92, + + 26 ) + + ( - 43 ) AS col0
----
3821

onlyif mysql # DIV for integer division: 
query II rowsort label-3624
SELECT ALL + 90 * - + 64 AS col0, + 7 DIV 44 AS col0
----
-5760
0

skipif mysql # not compatible
query II rowsort label-3624
SELECT ALL + 90 * - + 64 AS col0, + 7 / 44 AS col0
----
-5760
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3625
SELECT ALL + MIN( ALL COALESCE ( + CAST( NULL AS SIGNED ), - 34 ) ) + - + NULLIF ( + + 48, - 34 + - + 75 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL + MIN ( ALL COALESCE ( + CAST ( NULL AS INTEGER ), - 34 ) ) + - + NULLIF ( + + 48, - 34 + - + 75 ) AS col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3626
SELECT - 36 / COUNT( * ) * - - 74 + - 3 - + CAST( NULL AS SIGNED ) * - 38 + + + 58 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3626
SELECT - 36 / COUNT ( * ) * - - 74 + - 3 - + CAST ( NULL AS INTEGER ) * - 38 + + + 58 col1
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + 13, 74, - 84 ) AS col1
----
13

query II rowsort
SELECT + 48 * - 87 + - ( + ( + 78 ) ) AS col1, 2 * 32
----
-4254
64

query I rowsort
SELECT DISTINCT - 86 * - ( - - 34 ) + 95
----
3019

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT ALL - SUM( ALL + - 76 ) * - 43 + - + 87 AS col0
----
-3355

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL - SUM ( ALL + - 76 ) * - 43 + - + 87 AS col0
----
-3355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3631
SELECT ALL - + CASE - + SUM( ALL + + 0 ) WHEN - + 57 THEN 36 / + 49 + CASE WHEN + CASE + + COUNT( * ) WHEN - 50 + + 73 + - ( + COUNT( * ) ) + - + 56 * - 91 / + 8 THEN NULLIF ( + + CASE + CAST( + 21 AS SIGNED ) WHEN - 17 THEN NULL ELSE + 78 END, + 20 + COUNT( * ) ) * 13 + + ( + 18 ) + - + COUNT( * ) * COUNT( * ) WHEN - 73 * 5 THEN + AVG ( ALL - - 83 ) WHEN - 95 THEN NULL WHEN - MAX( ALL 13 ) THEN 34 END BETWEEN NULL AND 17 / COUNT( * ) * - COUNT( * ) THEN NULL ELSE - 69 END + + 19 ELSE NULL END / - CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE + SUM( - 50 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL - + CASE - + SUM ( ALL + + 0 ) WHEN - + 57 THEN 36 / + 49 + CASE WHEN + CASE + + COUNT ( * ) WHEN - 50 + + 73 + - ( + COUNT ( * ) ) + - + 56 * - 91 / + 8 THEN NULLIF ( + + CASE + CAST ( + 21 AS INTEGER ) WHEN - 17 THEN NULL ELSE + 78 END, + 20 + COUNT ( * ) ) * 13 + + ( + 18 ) + - + COUNT ( * ) * COUNT ( * ) WHEN - 73 * 5 THEN + AVG ( ALL - - 83 ) WHEN - 95 THEN NULL WHEN - MAX ( ALL 13 ) THEN 34 END BETWEEN NULL AND 17 / COUNT ( * ) * - COUNT ( * ) THEN NULL ELSE - 69 END + + 19 ELSE NULL END / - CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE + SUM ( - 50 ) END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3633
SELECT DISTINCT - 25 * NULLIF ( + 33, 0 ) DIV - 13 + + 18 * 99, - 58 AS col2
----
1845
-58

skipif mysql # not compatible
query II rowsort label-3633
SELECT DISTINCT - 25 * NULLIF ( + 33, 0 ) / - 13 + + 18 * 99, - 58 AS col2
----
1845
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT + MIN( DISTINCT + 48 ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-3635
SELECT + MIN ( DISTINCT + 48 ) * - 0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3637
SELECT ALL 73 * CAST( - 74 AS SIGNED ) * - NULLIF ( - MAX( ALL - 66 ), - 82 + + AVG ( ALL + 13 ) ) * + - COUNT( * ) AS col2
----
-356532

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL 73 * CAST ( - 74 AS INTEGER ) * - NULLIF ( - MAX ( ALL - 66 ), - 82 + + AVG ( ALL + 13 ) ) * + - COUNT ( * ) AS col2
----
-356532

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3639
SELECT COUNT( + + ( + + 48 ) ) AS col2, - 62 + 68 AS col2
----
1
6

skipif mysql # not compatible
query II rowsort label-3639
SELECT COUNT ( + + ( + + 48 ) ) AS col2, - 62 + 68 AS col2
----
1
6

query I rowsort
SELECT DISTINCT - 48 * - + 56 AS col1
----
2688

query I rowsort
SELECT + 19 * - 11
----
-209

query I rowsort
SELECT + 13 + - 12
----
1

query II rowsort
SELECT 27 AS col0, - 40
----
27
-40

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

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

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

query I rowsort
SELECT - 83 - - - 6 - 27 * + + 32 AS col2
----
-953

onlyif mysql # aggregate syntax: 
query II rowsort label-3647
SELECT ALL - 4 + COALESCE ( + + COUNT( * ), 12 * 56 + 46 * 68 ) * - 24 + + NULLIF ( + - 83, + - 24 - + 78 ) + + - 68 col1, 73 AS col1
----
-179
73

skipif mysql # not compatible
query II rowsort label-3647
SELECT ALL - 4 + COALESCE ( + + COUNT ( * ), 12 * 56 + 46 * 68 ) * - 24 + + NULLIF ( + - 83, + - 24 - + 78 ) + + - 68 col1, 73 AS col1
----
-179
73

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

skipif mysql # not compatible
query I rowsort label-3648
SELECT - 59 + + - COUNT ( * ) AS col1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-3649
SELECT - 76 DIV - + 38 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3649
SELECT - 76 / - + 38 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3650
SELECT DISTINCT - CAST( + + 57 AS SIGNED ) DIV + - MIN( + - 67 ) AS col2, - COUNT( * )
----
0
-1

skipif mysql # not compatible
query II rowsort label-3650
SELECT DISTINCT - CAST ( + + 57 AS INTEGER ) / + - MIN ( + - 67 ) AS col2, - COUNT ( * )
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT - COUNT( * ) + - MAX( ALL - 83 ) + 82 * + 64 * + - COUNT( * ) AS col1
----
-5166

skipif mysql # not compatible
query I rowsort label-3651
SELECT - COUNT ( * ) + - MAX ( ALL - 83 ) + 82 * + 64 * + - COUNT ( * ) AS col1
----
-5166

query I rowsort
SELECT - 75 + + 75 * + 28 * - ( 56 ) * + 99 + + - 69 AS col0
----
-11642544

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT - 78 * + CASE - 3 WHEN + ( - COALESCE ( + + AVG ( + 95 ), + + 81 + + COUNT( - 39 ) * 14, - AVG ( DISTINCT 15 ) ) ) * - 68 - - 12 + - 83 THEN + COUNT( * ) WHEN + COUNT( * ) THEN + SUM( ALL - ( 3 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3654
SELECT - 78 * + CASE - 3 WHEN + ( - COALESCE ( + + AVG ( + 95 ), + + 81 + + COUNT ( - 39 ) * 14, - AVG ( DISTINCT 15 ) ) ) * - 68 - - 12 + - 83 THEN + COUNT ( * ) WHEN + COUNT ( * ) THEN + SUM ( ALL - ( 3 ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3655
SELECT COUNT( * ) DIV 49 + + 71 DIV 7 + + + 45
----
55

skipif mysql # not compatible
query I rowsort label-3655
SELECT COUNT ( * ) / 49 + + 71 / 7 + + + 45
----
55

query I rowsort
SELECT DISTINCT ( + 92 ) - - + 15 + 12
----
119

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3659
SELECT 88 DIV ( - 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-3659
SELECT 88 / ( - 60 )
----
-1

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

skipif mysql # not compatible
query I rowsort label-3660
SELECT 94 * COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT NULLIF ( - + 56, - + 33 * 38 * + - 64 + - 78 + - - 93 * - 46 * AVG ( DISTINCT + 36 ) ) + - CASE - 23 WHEN MIN( ALL + 30 ) THEN NULL WHEN - 54 THEN NULL WHEN - - ( - 18 ) + + 20 THEN + + 9 * MIN( - 58 ) WHEN + + 94 THEN - SUM( + 77 ) * - NULLIF ( - COUNT( * ), + + AVG ( - 58 ) * - AVG ( DISTINCT + NULLIF ( - + 50, - 36 ) ) * - - 25 ) + + + 53 * + + SUM( + 44 ) ELSE NULL END + COUNT( DISTINCT + + 32 ) + + - COUNT( * ) + + 97 * + 11 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3661
SELECT NULLIF ( - + 56, - + 33 * 38 * + - 64 + - 78 + - - 93 * - 46 * AVG ( DISTINCT + 36 ) ) + - CASE - 23 WHEN MIN ( ALL + 30 ) THEN NULL WHEN - 54 THEN NULL WHEN - - ( - 18 ) + + 20 THEN + + 9 * MIN ( - 58 ) WHEN + + 94 THEN - SUM ( + 77 ) * - NULLIF ( - COUNT ( * ), + + AVG ( - 58 ) * - AVG ( DISTINCT + NULLIF ( - + 50, - 36 ) ) * - - 25 ) + + + 53 * + + SUM ( + 44 ) ELSE NULL END + COUNT ( DISTINCT + + 32 ) + + - COUNT ( * ) + + 97 * + 11 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3662
SELECT COUNT( * ) DIV + CAST( ( + 27 ) AS SIGNED ), ( + 47 ) + + 29 * + 80 * 26 * 65 * - - 26 col2
----
0
101940847

skipif mysql # not compatible
query II rowsort label-3662
SELECT COUNT ( * ) / + CAST ( ( + 27 ) AS INTEGER ), ( + 47 ) + + 29 * + 80 * 26 * 65 * - - 26 col2
----
0
101940847

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT ALL MAX( DISTINCT - 94 ) + 32 + - ( COUNT( * ) )
----
-63

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL MAX ( DISTINCT - 94 ) + 32 + - ( COUNT ( * ) )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT DISTINCT COUNT( * ) + - + ( + 96 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-3664
SELECT DISTINCT COUNT ( * ) + - + ( + 96 ) AS col1
----
-95

query I rowsort
SELECT ALL + 72 + 74
----
146

query II rowsort
SELECT DISTINCT - 18 + - 22 AS col1, - 8
----
-40
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT DISTINCT 59 * + COUNT( * ) * - MAX( - 77 ) AS col0
----
4543

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT 59 * + COUNT ( * ) * - MAX ( - 77 ) AS col0
----
4543

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

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

query I rowsort
SELECT + ( + 2 ) * - 50 AS col1
----
-100

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT ALL - COUNT( * ) + - - ( + 19 ) + - 29 + - 84 + - 28 AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL - COUNT ( * ) + - - ( + 19 ) + - 29 + - 84 + - 28 AS col1
----
-123

query I rowsort
SELECT DISTINCT - 0 - - 59
----
59

query II rowsort
SELECT DISTINCT + - 60 - 23, 10 col2
----
-83
10

query I rowsort
SELECT 83 * + 16
----
1328

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT COUNT( * ) * 43 * 9
----
387

skipif mysql # not compatible
query I rowsort label-3675
SELECT COUNT ( * ) * 43 * 9
----
387

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3676
SELECT ALL + + 94 DIV + COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL + + 94 / + COUNT ( * ) AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3677
SELECT - 23 DIV 83 - + 78 * + + 87
----
-6786

skipif mysql # not compatible
query I rowsort label-3677
SELECT - 23 / 83 - + 78 * + + 87
----
-6786

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT + SUM( + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-3678
SELECT + SUM ( + 86 )
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3679
SELECT + 59 DIV + 23 * - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-3679
SELECT + 59 / + 23 * - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT ALL + + 18 * 91 * - 47 * + MIN( - + 33 )
----
2540538

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL + + 18 * 91 * - 47 * + MIN ( - + 33 )
----
2540538

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

skipif mysql # not compatible
query II rowsort label-3681
SELECT 6 * - COUNT ( * ), COUNT ( * ) AS col0
----
-6
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3682
SELECT ALL + - 2 * 80 AS col0, - COUNT( * ) * - + CASE + COUNT( 10 ) WHEN - 95 * - + 21 THEN + - 82 - 47 - - 24 * - 96 * 32 END + - 9
----
-160
NULL

skipif mysql # not compatible
query II rowsort label-3682
SELECT ALL + - 2 * 80 AS col0, - COUNT ( * ) * - + CASE + COUNT ( 10 ) WHEN - 95 * - + 21 THEN + - 82 - 47 - - 24 * - 96 * 32 END + - 9
----
-160
NULL

query II rowsort
SELECT 52 * 47 AS col2, 12 * + 23
----
2444
276

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT DISTINCT - - 89 * 65 * + 24 - + - 54 + 55 * 3 + + - COUNT( * ) * NULLIF ( 66, - 95 )
----
138993

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT - - 89 * 65 * + 24 - + - 54 + 55 * 3 + + - COUNT ( * ) * NULLIF ( 66, - 95 )
----
138993

onlyif mysql # DIV for integer division: 
query I rowsort label-3685
SELECT 12 DIV 10 * + - 89 - + 21
----
-110

skipif mysql # not compatible
query I rowsort label-3685
SELECT 12 / 10 * + - 89 - + 21
----
-110

query I rowsort
SELECT ALL - 75 * 97 AS col0
----
-7275

query II rowsort
SELECT + 91 AS col1, ( + - 76 )
----
91
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT DISTINCT - COUNT( + 82 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT - COUNT ( + 82 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3689
SELECT COUNT( * ) * NULLIF ( - 91, CAST( - 76 AS SIGNED ) * + ( + + NULLIF ( + 65, - 69 ) ) * CASE + COUNT( * ) WHEN + MIN( + 21 ) DIV - 70 THEN NULL WHEN 71 * + 88 + + CAST( - - 20 AS SIGNED ) THEN 17 END * + 80 + - COUNT( ALL 43 ) * - 72 - - NULLIF ( - + 45, + ( 47 ) * + + 43 * + 16 ) * 90 - + 7 ) DIV 14 * - 74 AS col2, + 50
----
444
50

skipif mysql # not compatible
query II rowsort label-3689
SELECT COUNT ( * ) * NULLIF ( - 91, CAST ( - 76 AS INTEGER ) * + ( + + NULLIF ( + 65, - 69 ) ) * CASE + COUNT ( * ) WHEN + MIN ( + 21 ) / - 70 THEN NULL WHEN 71 * + 88 + + CAST ( - - 20 AS INTEGER ) THEN 17 END * + 80 + - COUNT ( ALL 43 ) * - 72 - - NULLIF ( - + 45, + ( 47 ) * + + 43 * + 16 ) * 90 - + 7 ) / 14 * - 74 AS col2, + 50
----
444
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT DISTINCT + COUNT( * ) + + 26 + - COUNT( * ) + 85 * + - 86 * + 24 + - - SUM( ALL + 64 ) AS col0
----
-175350

skipif mysql # not compatible
query I rowsort label-3690
SELECT DISTINCT + COUNT ( * ) + + 26 + - COUNT ( * ) + 85 * + - 86 * + 24 + - - SUM ( ALL + 64 ) AS col0
----
-175350

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

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

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

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

query I rowsort
SELECT DISTINCT 12 + + - 86
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT ALL + 13 * + MAX( - 17 )
----
-221

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL + 13 * + MAX ( - 17 )
----
-221

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3695
SELECT NULLIF ( 44, MIN( - 10 ) ) DIV + - 16
----
-2

skipif mysql # not compatible
query I rowsort label-3695
SELECT NULLIF ( 44, MIN ( - 10 ) ) / + - 16
----
-2

query I rowsort
SELECT 19 + - 74
----
-55

query I rowsort
SELECT 29 + + 59 AS col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3698
SELECT NULLIF ( 12, - + 68 ) + - 71 DIV - 27 + - - COUNT( * ) * - 99 * - + 91 AS col0
----
9023

skipif mysql # not compatible
query I rowsort label-3698
SELECT NULLIF ( 12, - + 68 ) + - 71 / - 27 + - - COUNT ( * ) * - 99 * - + 91 AS col0
----
9023

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3699
SELECT CAST( 62 AS SIGNED ) DIV - 69 col1
----
0

skipif mysql # not compatible
query I rowsort label-3699
SELECT CAST ( 62 AS INTEGER ) / - 69 col1
----
0

query I rowsort
SELECT DISTINCT - 4 - + 87 AS col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3701
SELECT ALL + 71 DIV + - 57
----
-1

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL + 71 / + - 57
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT ALL - 90 * - - 30 + + COUNT( * ) AS col2
----
-2699

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL - 90 * - - 30 + + COUNT ( * ) AS col2
----
-2699

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT + MIN( + 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-3703
SELECT + MIN ( + 95 ) AS col2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3704
SELECT + + 27 + + 83 + + + 49 + - CAST( - 87 AS SIGNED ) col1
----
246

skipif mysql # not compatible
query I rowsort label-3704
SELECT + + 27 + + 83 + + + 49 + - CAST ( - 87 AS INTEGER ) col1
----
246

query II rowsort
SELECT - 92 AS col2, - 70 * + 9 AS col2
----
-92
-630

query I rowsort
SELECT - - 52 + + 91 AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT + - ( + 30 ) + - COUNT( * ) + - MAX( 81 ) * 76 + - + 31
----
-6218

skipif mysql # not compatible
query I rowsort label-3707
SELECT + - ( + 30 ) + - COUNT ( * ) + - MAX ( 81 ) * 76 + - + 31
----
-6218

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT - 29 * COUNT( * ) * + + 11 col0
----
-319

skipif mysql # not compatible
query I rowsort label-3708
SELECT - 29 * COUNT ( * ) * + + 11 col0
----
-319

query I rowsort
SELECT + 69 * - ( - 41 ) * - 41 AS col0
----
-115989

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT + SUM( DISTINCT - - 57 ) + - + 32 + - + 18
----
7

skipif mysql # not compatible
query I rowsort label-3710
SELECT + SUM ( DISTINCT - - 57 ) + - + 32 + - + 18
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT - 43 + - + ( + COUNT( * ) ) * + + 78 AS col0
----
-121

skipif mysql # not compatible
query I rowsort label-3711
SELECT - 43 + - + ( + COUNT ( * ) ) * + + 78 AS col0
----
-121

query I rowsort
SELECT DISTINCT + + 17 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT ALL 56 * + ( + NULLIF ( + COUNT( * ), + SUM( ALL 93 ) ) ) col2
----
56

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL 56 * + ( + NULLIF ( + COUNT ( * ), + SUM ( ALL 93 ) ) ) col2
----
56

query I rowsort
SELECT + 96 * + 58
----
5568

query II rowsort
SELECT ALL + ( + ( + 67 ) ), 70 AS col0
----
67
70

query I rowsort
SELECT - 9 + - - 95 col0
----
86

query I rowsort
SELECT ALL + - 91 * - + 16 AS col1
----
1456

query I rowsort
SELECT - - 9 * - 71
----
-639

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3719
SELECT COUNT( * ) DIV + CASE + ( + 84 ) WHEN - + 3 THEN NULL ELSE + 32 END + + 53 - - 10
----
63

skipif mysql # not compatible
query I rowsort label-3719
SELECT COUNT ( * ) / + CASE + ( + 84 ) WHEN - + 3 THEN NULL ELSE + 32 END + + 53 - - 10
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT COALESCE ( 20, 89 * + + 31 * CAST( NULL AS SIGNED ) )
----
20

skipif mysql # not compatible
query I rowsort label-3720
SELECT COALESCE ( 20, 89 * + + 31 * CAST ( NULL AS INTEGER ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT - COUNT( * ) * 3 * + 27 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-3721
SELECT - COUNT ( * ) * 3 * + 27 AS col1
----
-81

query I rowsort
SELECT - 78 + + + 25 + + - 43 AS col0
----
-96

query II rowsort
SELECT ALL - ( - - 41 ) * - 19 * + 4, 63 AS col2
----
3116
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3724
SELECT DISTINCT - CAST( 91 AS SIGNED ) * 9 + + - 7 + 38
----
-788

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT - CAST ( 91 AS INTEGER ) * 9 + + - 7 + 38
----
-788

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3725
SELECT DISTINCT + 10 AS col1, - 98 * - COALESCE ( 37, - CASE + 4 WHEN + 96 THEN NULL WHEN + 92 THEN COUNT( * ) DIV 88 WHEN - 35 THEN NULL ELSE NULL END + - - 98 + - + 99, - - COUNT( * ) - + 61 + - 10 DIV COUNT( * ) * - + 66 ) * 52 * + ( + CAST( - - 1 AS SIGNED ) ) + + 59 AS col0
----
10
188611

skipif mysql # not compatible
query II rowsort label-3725
SELECT DISTINCT + 10 AS col1, - 98 * - COALESCE ( 37, - CASE + 4 WHEN + 96 THEN NULL WHEN + 92 THEN COUNT ( * ) / 88 WHEN - 35 THEN NULL ELSE NULL END + - - 98 + - + 99, - - COUNT ( * ) - + 61 + - 10 / COUNT ( * ) * - + 66 ) * 52 * + ( + CAST ( - - 1 AS INTEGER ) ) + + 59 AS col0
----
10
188611

query I rowsort
SELECT ALL - 79 * - 55 + - 46
----
4299

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT - 24 * - COUNT( * ) col0
----
24

skipif mysql # not compatible
query I rowsort label-3727
SELECT - 24 * - COUNT ( * ) col0
----
24

query I rowsort
SELECT + NULLIF ( + 66, - 60 + - 9 ) + + 21
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT MAX( DISTINCT - 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-3729
SELECT MAX ( DISTINCT - 28 ) AS col1
----
-28

query I rowsort
SELECT ALL + 82 * 49 col0
----
4018

query I rowsort
SELECT DISTINCT 99 - + COALESCE ( + 54, + + 66 ) * - 44 AS col1
----
2475

onlyif mysql # aggregate syntax: 
query II rowsort label-3732
SELECT DISTINCT - 15, + COUNT( * ) AS col2
----
-15
1

skipif mysql # not compatible
query II rowsort label-3732
SELECT DISTINCT - 15, + COUNT ( * ) AS col2
----
-15
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT + 87 * - NULLIF ( + - COUNT( * ), - 82 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-3733
SELECT + 87 * - NULLIF ( + - COUNT ( * ), - 82 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT DISTINCT + COUNT( * ) * 41 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT + COUNT ( * ) * 41 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT - 30 - + 43 + + + 61 + 81 + - COUNT( * ) col1
----
68

skipif mysql # not compatible
query I rowsort label-3735
SELECT - 30 - + 43 + + + 61 + 81 + - COUNT ( * ) col1
----
68

query II rowsort
SELECT - 59 AS col0, 52 AS col2
----
-59
52

query I rowsort
SELECT + + 81 * - 8 AS col2
----
-648

query II rowsort
SELECT - 98 AS col1, 61 * + 77 col2
----
-98
4697

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3739
SELECT + 48, - 17 - - CASE + 22 WHEN CAST( NULL AS DECIMAL ) THEN - 81 * + 6 + - ( + - ( ( + 76 ) ) ) + + 79 END AS col2
----
48
NULL

skipif mysql # not compatible
query II rowsort label-3739
SELECT + 48, - 17 - - CASE + 22 WHEN CAST ( NULL AS REAL ) THEN - 81 * + 6 + - ( + - ( ( + 76 ) ) ) + + 79 END AS col2
----
48
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3740
SELECT - - 56, + 22 * + CAST( + - 66 AS SIGNED ) AS col2
----
56
-1452

skipif mysql # not compatible
query II rowsort label-3740
SELECT - - 56, + 22 * + CAST ( + - 66 AS INTEGER ) AS col2
----
56
-1452

onlyif mysql # aggregate syntax: 
query II rowsort label-3741
SELECT ALL - COUNT( * ) AS col2, MAX( - - 12 ) AS col2
----
-1
12

skipif mysql # not compatible
query II rowsort label-3741
SELECT ALL - COUNT ( * ) AS col2, MAX ( - - 12 ) AS col2
----
-1
12

query I rowsort
SELECT - - ( + + 16 )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3743
SELECT ALL + CAST( + 24 AS SIGNED ) col2
----
24

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL + CAST ( + 24 AS INTEGER ) col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3744
SELECT DISTINCT - ( - 13 ) DIV - 56 * + 84
----
0

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT - ( - 13 ) / - 56 * + 84
----
0

query I rowsort
SELECT DISTINCT 72 + - 69 AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT ALL - + CASE + 42 WHEN 1 THEN - 9 WHEN - 24 - 79 THEN NULL ELSE NULL END / 27 + - 70 / - CAST( + 50 AS SIGNED ) + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL - + CASE + 42 WHEN 1 THEN - 9 WHEN - 24 - 79 THEN NULL ELSE NULL END / 27 + - 70 / - CAST ( + 50 AS INTEGER ) + 2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3747
SELECT + CAST( NULL AS SIGNED ) * 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3747
SELECT + CAST ( NULL AS INTEGER ) * 78 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3748
SELECT ALL - 62 DIV + 73 + - 46 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL - 62 / + 73 + - 46 AS col0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3749
SELECT + 60 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-3749
SELECT + 60 / 88
----
0

query II rowsort
SELECT ( + 65 ), - 78 AS col2
----
65
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT + 48 - + COUNT( * ) - - 98 AS col2
----
145

skipif mysql # not compatible
query I rowsort label-3751
SELECT + 48 - + COUNT ( * ) - - 98 AS col2
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT DISTINCT - 68 * - 76 * COUNT( * ) AS col2
----
5168

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT - 68 * - 76 * COUNT ( * ) AS col2
----
5168

query I rowsort
SELECT COALESCE ( + 90, 72 ) AS col0
----
90

query I rowsort
SELECT ALL - 41 * - - 95
----
-3895

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT COALESCE ( + 60, - - 51 + + + 6 ) * + 78 - 45 + COUNT( * ) * 65 AS col0
----
4700

skipif mysql # not compatible
query I rowsort label-3755
SELECT COALESCE ( + 60, - - 51 + + + 6 ) * + 78 - 45 + COUNT ( * ) * 65 AS col0
----
4700

query I rowsort
SELECT DISTINCT 0 * - + 31 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ALL + MIN( 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL + MIN ( 79 ) AS col1
----
79

query I rowsort
SELECT ALL - 71 * 62 AS col1
----
-4402

onlyif mysql # aggregate syntax: 
query II rowsort label-3759
SELECT 89 + + 76 AS col1, ( + COUNT( * ) )
----
165
1

skipif mysql # not compatible
query II rowsort label-3759
SELECT 89 + + 76 AS col1, ( + COUNT ( * ) )
----
165
1

query I rowsort
SELECT 32 * + NULLIF ( 17, - 38 )
----
544

query I rowsort
SELECT - 28 + - 61 AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT COUNT( DISTINCT + + 53 ) - 1 * - - MAX( DISTINCT + - 50 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-3762
SELECT COUNT ( DISTINCT + + 53 ) - 1 * - - MAX ( DISTINCT + - 50 ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT COUNT( * ) * - + 98 * + 9
----
-882

skipif mysql # not compatible
query I rowsort label-3763
SELECT COUNT ( * ) * - + 98 * + 9
----
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT + 55 + - 31 + + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-3764
SELECT + 55 + - 31 + + COUNT ( * ) AS col0
----
25

query I rowsort
SELECT ALL - 69 + + 50
----
-19

query I rowsort
SELECT - 78 + + 64 AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3767
SELECT DISTINCT - + 82 + ( + COUNT( * ) ) + + 71 - - CAST( + AVG ( ALL 80 ) AS SIGNED ) * 77 * + 33 - - 3 DIV - 96 + CASE - - 10 WHEN - + 10 THEN NULL WHEN - CASE - - AVG ( 73 ) WHEN + ( 60 ) THEN + 46 * - 54 ELSE NULL END THEN + 26 ELSE + ( + 94 ) END
----
203364

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT - + 82 + ( + COUNT ( * ) ) + + 71 - - CAST ( + AVG ( ALL 80 ) AS INTEGER ) * 77 * + 33 - - 3 / - 96 + CASE - - 10 WHEN - + 10 THEN NULL WHEN - CASE - - AVG ( 73 ) WHEN + ( 60 ) THEN + 46 * - 54 ELSE NULL END THEN + 26 ELSE + ( + 94 ) END
----
203364

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT ALL - - 32 + 88 + + + COUNT( * )
----
121

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL - - 32 + 88 + + + COUNT ( * )
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-3769
SELECT - COUNT( + + 92 ), + 61 + 98 + + 58 AS col2
----
-1
217

skipif mysql # not compatible
query II rowsort label-3769
SELECT - COUNT ( + + 92 ), + 61 + 98 + + 58 AS col2
----
-1
217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT ALL - + CAST( NULL AS SIGNED ) * NULLIF ( + 62, 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL - + CAST ( NULL AS INTEGER ) * NULLIF ( + 62, 62 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT DISTINCT 2 + + + COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT 2 + + + COUNT ( * ) AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3772
SELECT 7 DIV + 49 * - 45 * 60
----
0

skipif mysql # not compatible
query I rowsort label-3772
SELECT 7 / + 49 * - 45 * 60
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3773
SELECT 43 + + + ( + CAST( NULL AS SIGNED ) ), - 54 AS col2
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-3773
SELECT 43 + + + ( + CAST ( NULL AS INTEGER ) ), - 54 AS col2
----
NULL
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3774
SELECT ALL CAST( - 87 AS SIGNED ) + + 66 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL CAST ( - 87 AS INTEGER ) + + 66 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT DISTINCT SUM( ALL + 15 ) - + 30
----
-15

skipif mysql # not compatible
query I rowsort label-3775
SELECT DISTINCT SUM ( ALL + 15 ) - + 30
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT COUNT( * ) + + + 92
----
93

skipif mysql # not compatible
query I rowsort label-3776
SELECT COUNT ( * ) + + + 92
----
93

query I rowsort
SELECT ALL 95 * + - 86
----
-8170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3778
SELECT 38 + - - MAX( 21 ) + - - 96 + + MIN( + 76 ) + + 19 + - 78 * 25 DIV 83 AS col2
----
227

skipif mysql # not compatible
query I rowsort label-3778
SELECT 38 + - - MAX ( 21 ) + - - 96 + + MIN ( + 76 ) + + 19 + - 78 * 25 / 83 AS col2
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3779
SELECT ALL CASE - + 84 WHEN + COALESCE ( - 23, + - 89 ) THEN + NULLIF ( - 73, - - 18 ) WHEN 1 THEN NULL END - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL CASE - + 84 WHEN + COALESCE ( - 23, + - 89 ) THEN + NULLIF ( - 73, - - 18 ) WHEN 1 THEN NULL END - - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT 24 * 48
----
1152

query II rowsort
SELECT ALL - 19 AS col2, + NULLIF ( + + ( 56 ), - + 20 * + 24 )
----
-19
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT 57 * - + COUNT( ALL + - 61 )
----
-57

skipif mysql # not compatible
query I rowsort label-3782
SELECT 57 * - + COUNT ( ALL + - 61 )
----
-57

query II rowsort
SELECT DISTINCT - 35 AS col1, - 7
----
-35
-7

query I rowsort
SELECT ALL - NULLIF ( + 11, - 15 )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3785
SELECT CAST( + 39 AS SIGNED ) + - 17 * - 27
----
498

skipif mysql # not compatible
query I rowsort label-3785
SELECT CAST ( + 39 AS INTEGER ) + - 17 * - 27
----
498

query I rowsort
SELECT 27 * - 74 AS col0
----
-1998

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3787
SELECT - 60 + 88 + + COUNT( * ) DIV - 14 * ( 79 ) AS col2, - 74 col0
----
28
-74

skipif mysql # not compatible
query II rowsort label-3787
SELECT - 60 + 88 + + COUNT ( * ) / - 14 * ( 79 ) AS col2, - 74 col0
----
28
-74

query II rowsort
SELECT DISTINCT - - 34 col2, + ( - 39 ) AS col2
----
34
-39

query II rowsort
SELECT + 76 AS col2, - 63 col1
----
76
-63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3790
SELECT + - COALESCE ( - ( 69 ), 76 DIV 96, - 97 + + CAST( NULL AS SIGNED ) )
----
69

skipif mysql # not compatible
query I rowsort label-3790
SELECT + - COALESCE ( - ( 69 ), 76 / 96, - 97 + + CAST ( NULL AS INTEGER ) )
----
69

query I rowsort
SELECT 47 + + 77 col0
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-3792
SELECT + 87 DIV + - 71
----
-1

skipif mysql # not compatible
query I rowsort label-3792
SELECT + 87 / + - 71
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT + COUNT( * ) * + - 29 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-3793
SELECT + COUNT ( * ) * + - 29 AS col0
----
-29

query I rowsort
SELECT DISTINCT + NULLIF ( + 82, + - 21 ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-3795
SELECT ALL - ( - 50 ) + - + 9, SUM( - 51 ) AS col0
----
41
-51

skipif mysql # not compatible
query II rowsort label-3795
SELECT ALL - ( - 50 ) + - + 9, SUM ( - 51 ) AS col0
----
41
-51

query I rowsort
SELECT ALL ( - 52 ) + 40
----
-12

query I rowsort
SELECT DISTINCT + 40 + - 20
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-3798
SELECT ALL + 60, 85 - COALESCE ( - COUNT( * ), 35 ) * + + 39 * - + 23 AS col0
----
60
-812

skipif mysql # not compatible
query II rowsort label-3798
SELECT ALL + 60, 85 - COALESCE ( - COUNT ( * ), 35 ) * + + 39 * - + 23 AS col0
----
60
-812

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3799
SELECT ALL - 18 + - ( COUNT( ALL - 50 ) ) - 11 + - 3 DIV + - 26 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL - 18 + - ( COUNT ( ALL - 50 ) ) - 11 + - 3 / + - 26 AS col1
----
-30

query II rowsort
SELECT ALL - + 80 + ( - 34 ) AS col1, 87 - + 82 AS col0
----
-114
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT SUM( - 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-3801
SELECT SUM ( - 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT 52 - - COUNT( * ) - - - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-3802
SELECT 52 - - COUNT ( * ) - - - COUNT ( * )
----
52

query I rowsort
SELECT ALL ( + + 39 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL - + COUNT( * ) + - 38 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL - + COUNT ( * ) + - 38 AS col0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-3805
SELECT + ( + - 80 ) * + 6 + + + 60 + 10 + + + 41 * + 45 DIV - 71 DIV + 78 DIV 74
----
-410

skipif mysql # not compatible
query I rowsort label-3805
SELECT + ( + - 80 ) * + 6 + + + 60 + 10 + + + 41 * + 45 / - 71 / + 78 / 74
----
-410

query I rowsort
SELECT DISTINCT - 24 + 42
----
18

query II rowsort
SELECT ALL + 19, + 0 * + 92 + + + 29 AS col2
----
19
29

query I rowsort
SELECT 23 * - + 96
----
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT DISTINCT SUM( ALL + - 60 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3809
SELECT DISTINCT SUM ( ALL + - 60 ) AS col2
----
-60

query I rowsort
SELECT ALL - 86 - + - 26
----
-60

query I rowsort
SELECT 13 * 79
----
1027

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3812
SELECT NULLIF ( 41, - - 78 * - 62 - - 7 + - CAST( NULL AS SIGNED ) / COUNT( * ) + + - 17 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3812
SELECT NULLIF ( 41, - - 78 * - 62 - - 7 + - CAST ( NULL AS INTEGER ) / COUNT ( * ) + + - 17 ) AS col1
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3813
SELECT COUNT( DISTINCT 34 ) DIV 71 col1
----
0

skipif mysql # not compatible
query I rowsort label-3813
SELECT COUNT ( DISTINCT 34 ) / 71 col1
----
0

query I rowsort
SELECT 38 * + 15
----
570

query I rowsort
SELECT DISTINCT + 68 * - + 50
----
-3400

onlyif mysql # DIV for integer division: 
query I rowsort label-3816
SELECT ALL 48 DIV 28 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL 48 / 28 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT + ( + COALESCE ( - 90, + COUNT( * ) ) )
----
-90

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT + ( + COALESCE ( - 90, + COUNT ( * ) ) )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3818
SELECT ALL + 24 DIV 31 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL + 24 / 31 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3819
SELECT - COUNT( * ) / + + 76 * CAST( NULL AS SIGNED ) * - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3819
SELECT - COUNT ( * ) / + + 76 * CAST ( NULL AS INTEGER ) * - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT SUM( ALL 56 )
----
56

skipif mysql # not compatible
query I rowsort label-3820
SELECT SUM ( ALL 56 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3821
SELECT - COUNT( * ) - - + 79 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3821
SELECT - COUNT ( * ) - - + 79 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 32 * - 46 + - - 63
----
-1409

query II rowsort
SELECT DISTINCT 70 * - 64 * - + 17 + - 34 AS col2, + 48
----
76126
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3824
SELECT DISTINCT - 84 * + COALESCE ( - NULLIF ( - 52, + - 8 * - + 64 * 13 ), 43 * - + CAST( - - 22 AS SIGNED ) - + ( + 19 ), 61 ) + - ( - 47 ) * + 64
----
-1360

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT - 84 * + COALESCE ( - NULLIF ( - 52, + - 8 * - + 64 * 13 ), 43 * - + CAST ( - - 22 AS INTEGER ) - + ( + 19 ), 61 ) + - ( - 47 ) * + 64
----
-1360

query I rowsort
SELECT ALL 50 + ( + 34 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT DISTINCT + COUNT( ALL - 19 )
----
1

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT + COUNT ( ALL - 19 )
----
1

query I rowsort
SELECT ALL 7 + + 79 + 57
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3828
SELECT DISTINCT COUNT( * ) + + NULLIF ( - + 9, + COALESCE ( - - 59, 52 + + + COUNT( * ) + - 1 / - - 62 / COALESCE ( - 14, - 30 / - + COUNT( + 5 ) * + + ( - AVG ( 94 ) ), - - 96 - - 29 ) * + 51 ) * + 76 - 73 + - 49 * - + CAST( NULL AS SIGNED ) ) * - - CAST( NULL AS SIGNED ) * - 26 * + - 38 * 63 + - 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT DISTINCT COUNT ( * ) + + NULLIF ( - + 9, + COALESCE ( - - 59, 52 + + + COUNT ( * ) + - 1 / - - 62 / COALESCE ( - 14, - 30 / - + COUNT ( + 5 ) * + + ( - AVG ( 94 ) ), - - 96 - - 29 ) * + 51 ) * + 76 - 73 + - 49 * - + CAST ( NULL AS INTEGER ) ) * - - CAST ( NULL AS INTEGER ) * - 26 * + - 38 * 63 + - 34 AS col0
----
NULL

query I rowsort
SELECT ALL - 86 + 64 * - 24 AS col1
----
-1622

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT + 26 + - + NULLIF ( MAX( 79 ), + 68 ) * + 76
----
-5978

skipif mysql # not compatible
query I rowsort label-3830
SELECT + 26 + - + NULLIF ( MAX ( 79 ), + 68 ) * + 76
----
-5978

query I rowsort
SELECT - 96 - + 81 * - 54 AS col0
----
4278

query I rowsort
SELECT + 40 + - 35 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3833
SELECT ALL - - CAST( + + 83 AS SIGNED ) + COUNT( * ) * + - 29 AS col2, 24
----
54
24

skipif mysql # not compatible
query II rowsort label-3833
SELECT ALL - - CAST ( + + 83 AS INTEGER ) + COUNT ( * ) * + - 29 AS col2, 24
----
54
24

query II rowsort
SELECT + 53 + 29, 74 AS col0
----
82
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3835
SELECT ALL 23 DIV + 2 + 1 col2
----
12

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL 23 / + 2 + 1 col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT DISTINCT CASE - 12 WHEN + 66 * + 77 THEN - 94 + - 15 / - 90 END - + COALESCE ( + COALESCE ( - ( + 97 ), - - 76 * - - COUNT( * ) * - - 35 + 8 * NULLIF ( 24, - 31 ), 64 ), + + 3, - - 7 * - AVG ( ALL + - 58 ) / + - COUNT( * ) + - 9 + 15 + - COUNT( * ) * 41 - 75 + + 10 * - - 34, - COALESCE ( 30, + 77 * + 92, - ( + - 34 ) * - 93 + + 72 + - + 29 + + 6 + - - 41 + + MAX( DISTINCT + + 28 ) * + COUNT( * ) ) * + + COUNT( * ) * + 53 ) * - - COALESCE ( COALESCE ( - SUM( + 87 ), 32 ), - COALESCE ( - 73, + 46 ) - + 87 ) * - 31 + 76 * 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT CASE - 12 WHEN + 66 * + 77 THEN - 94 + - 15 / - 90 END - + COALESCE ( + COALESCE ( - ( + 97 ), - - 76 * - - COUNT ( * ) * - - 35 + 8 * NULLIF ( 24, - 31 ), 64 ), + + 3, - - 7 * - AVG ( ALL + - 58 ) / + - COUNT ( * ) + - 9 + 15 + - COUNT ( * ) * 41 - 75 + + 10 * - - 34, - COALESCE ( 30, + 77 * + 92, - ( + - 34 ) * - 93 + + 72 + - + 29 + + 6 + - - 41 + + MAX ( DISTINCT + + 28 ) * + COUNT ( * ) ) * + + COUNT ( * ) * + 53 ) * - - COALESCE ( COALESCE ( - SUM ( + 87 ), 32 ), - COALESCE ( - 73, + 46 ) - + 87 ) * - 31 + 76 * 12 AS col0
----
NULL

query II rowsort
SELECT ALL 49 * + 91 * - + 91 AS col2, - 71
----
-405769
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT - COUNT( * ) + + - COUNT( * ) * - + COUNT( * ) * - - 6 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3838
SELECT - COUNT ( * ) + + - COUNT ( * ) * - + COUNT ( * ) * - - 6 AS col1
----
5

query I rowsort
SELECT ALL ( + 84 ) - 48 AS col2
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3840
SELECT + 31 DIV + 17
----
1

skipif mysql # not compatible
query I rowsort label-3840
SELECT + 31 / + 17
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT ALL COUNT( - 5 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL COUNT ( - 5 ) col2
----
1

query I rowsort
SELECT + 8 * + - 62 * + + 52 * - - 55 AS col2
----
-1418560

query I rowsort
SELECT + 25 + - 98
----
-73

query I rowsort
SELECT - 77 * 39
----
-3003

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3845
SELECT CAST( NULL AS SIGNED ) AS col0, + 44 AS col1
----
NULL
44

skipif mysql # not compatible
query II rowsort label-3845
SELECT CAST ( NULL AS INTEGER ) AS col0, + 44 AS col1
----
NULL
44

query II rowsort
SELECT ALL + 12, + NULLIF ( - 84, 65 - - 2 ) - - 48 + CASE + + 60 WHEN + + 2 THEN + + 21 ELSE NULL END AS col0
----
12
NULL

query I rowsort
SELECT DISTINCT + 37 * 10 AS col1
----
370

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT ALL 12 * + + 92 * COUNT( * ) + - 54 - + MIN( 63 )
----
987

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL 12 * + + 92 * COUNT ( * ) + - 54 - + MIN ( 63 )
----
987

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3849
SELECT - COALESCE ( - - SUM( - ( - 8 ) ), 69 * - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) ) + + NULLIF ( + 68, 17 * + + 5 + 43 + 16 ) + + - 90 * + 13 * + ( - - 15 ) AS col2
----
-17490

skipif mysql # not compatible
query I rowsort label-3849
SELECT - COALESCE ( - - SUM ( - ( - 8 ) ), 69 * - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) ) + + NULLIF ( + 68, 17 * + + 5 + 43 + 16 ) + + - 90 * + 13 * + ( - - 15 ) AS col2
----
-17490

onlyif mysql # DIV for integer division: 
query I rowsort label-3850
SELECT + 43 * - 47 * 76 - - - 11 + - + 21 + - 0 * 19 DIV 77 + ( - + 10 ) DIV + + 81 col1
----
-153628

skipif mysql # not compatible
query I rowsort label-3850
SELECT + 43 * - 47 * 76 - - - 11 + - + 21 + - 0 * 19 / 77 + ( - + 10 ) / + + 81 col1
----
-153628

query I rowsort
SELECT DISTINCT + ( - 19 ) AS col1
----
-19

query I rowsort
SELECT - 88 + + 97
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL CASE WHEN NOT 54 NOT BETWEEN ( - COUNT( * ) ) AND NULL THEN 83 * - 51 END * 73 + - 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL CASE WHEN NOT 54 NOT BETWEEN ( - COUNT ( * ) ) AND NULL THEN 83 * - 51 END * 73 + - 51 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT NULLIF ( - 94, COUNT( * ) ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-3854
SELECT NULLIF ( - 94, COUNT ( * ) ) AS col2
----
-94

query I rowsort
SELECT ALL + 95 * + 80 + + 76
----
7676

onlyif mysql # DIV for integer division: 
query I rowsort label-3856
SELECT ALL + 93 DIV - 82
----
-1

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL + 93 / - 82
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT - CAST( NULL AS SIGNED ) * - CASE 87 WHEN 73 THEN NULL WHEN ( + 54 ) THEN - 1 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3857
SELECT - CAST ( NULL AS INTEGER ) * - CASE 87 WHEN 73 THEN NULL WHEN ( + 54 ) THEN - 1 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3858
SELECT DISTINCT - MIN( 30 ) DIV 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT - MIN ( 30 ) / 56 AS col0
----
0

query I rowsort
SELECT ALL - 18 * 13 + - 20 AS col1
----
-254

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT CASE + COUNT( * ) WHEN + 61 THEN - 12 WHEN - 96 + - 61 * - NULLIF ( + COUNT( * ), - 23 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3860
SELECT CASE + COUNT ( * ) WHEN + 61 THEN - 12 WHEN - 96 + - 61 * - NULLIF ( + COUNT ( * ), - 23 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT NULLIF ( 17, 59 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT ALL + CASE + 98 WHEN COUNT( * ) THEN 53 WHEN 6 + 76 THEN NULL END * + 95 - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL + CASE + 98 WHEN COUNT ( * ) THEN 53 WHEN 6 + 76 THEN NULL END * + 95 - 5 AS col1
----
NULL

query I rowsort
SELECT + 91 * NULLIF ( 37, + NULLIF ( 94, - 98 ) ) AS col2
----
3367

query I rowsort
SELECT DISTINCT + COALESCE ( + 88, - ( - ( - 40 ) ), 68 * 11 + 57 ) * + 45
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT ALL COUNT( - 89 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL COUNT ( - 89 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3866
SELECT + 44 * COALESCE ( + COUNT( DISTINCT CAST( NULL AS SIGNED ) ), 62, 92 + - COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3866
SELECT + 44 * COALESCE ( + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ), 62, 92 + - COUNT ( * ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3867
SELECT - CAST( + 78 AS SIGNED ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-3867
SELECT - CAST ( + 78 AS INTEGER ) AS col2
----
-78

query I rowsort
SELECT + 8 - + 37 col0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-3869
SELECT + COALESCE ( 66, + 53, 51 DIV 97 ) * - 27 AS col0
----
-1782

skipif mysql # not compatible
query I rowsort label-3869
SELECT + COALESCE ( 66, + 53, 51 / 97 ) * - 27 AS col0
----
-1782

query I rowsort
SELECT + 84 - 34 col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT + COUNT( 82 ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3871
SELECT + COUNT ( 82 ) * COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL 72 * 63 AS col1
----
4536

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT + CASE WHEN - ( ( 25 ) ) <> ( NULL ) THEN + COUNT( * ) END / - 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3873
SELECT + CASE WHEN - ( ( 25 ) ) <> ( NULL ) THEN + COUNT ( * ) END / - 19 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3874
SELECT ALL CAST( 50 AS SIGNED ) DIV 20 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL CAST ( 50 AS INTEGER ) / 20 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3875
SELECT DISTINCT 1 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT 1 / 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL 36 * COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL 36 * COUNT ( * ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT DISTINCT 95 * + MAX( DISTINCT 18 * 68 )
----
116280

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT 95 * + MAX ( DISTINCT 18 * 68 )
----
116280

query I rowsort
SELECT 83 * 5 AS col1
----
415

query I rowsort
SELECT ALL 30 + 96
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT ALL 88 + COUNT( * ) col2
----
89

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL 88 + COUNT ( * ) col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT ( MAX( - 25 ) ) + 57 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3881
SELECT ( MAX ( - 25 ) ) + 57 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT ALL - COALESCE ( 23, 84 * - CASE - 1 WHEN + 24 * - 52 - 46 THEN + COUNT( * ) + 60 END, + 30 * + 9 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL - COALESCE ( 23, 84 * - CASE - 1 WHEN + 24 * - 52 - 46 THEN + COUNT ( * ) + 60 END, + 30 * + 9 ) AS col2
----
-23

query I rowsort
SELECT ALL 94 + 98 * 72 AS col0
----
7150

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT ALL + 60 + - 6 * COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL + 60 + - 6 * COUNT ( * ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT ALL - MIN( 37 ) + - 55
----
-92

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL - MIN ( 37 ) + - 55
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT + NULLIF ( - ( 19 ), + 6 * COUNT( * ) - ( - 85 - 35 ) ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3886
SELECT + NULLIF ( - ( 19 ), + 6 * COUNT ( * ) - ( - 85 - 35 ) ) AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3887
SELECT ALL + - MAX( ALL 40 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL + - MAX ( ALL 40 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT - COALESCE ( + 51, 94 * - 43, COUNT( * ) ) * 80 AS col2
----
-4080

skipif mysql # not compatible
query I rowsort label-3888
SELECT - COALESCE ( + 51, 94 * - 43, COUNT ( * ) ) * 80 AS col2
----
-4080

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT 12 - - 64 * MAX( DISTINCT 42 ) AS col2
----
2700

skipif mysql # not compatible
query I rowsort label-3889
SELECT 12 - - 64 * MAX ( DISTINCT 42 ) AS col2
----
2700

query I rowsort
SELECT ALL + - 73 * + 84 AS col1
----
-6132

query I rowsort
SELECT ( + ( - 72 ) ) * - 58
----
4176

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT + MAX( ALL - 88 ) * + 3 + ( COUNT( * ) )
----
-263

skipif mysql # not compatible
query I rowsort label-3892
SELECT + MAX ( ALL - 88 ) * + 3 + ( COUNT ( * ) )
----
-263

query I rowsort
SELECT ALL - + 39 col2
----
-39

query I rowsort
SELECT + - CASE + 31 WHEN + 42 THEN 57 * + 31 + - NULLIF ( + 98, + 54 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3895
SELECT ALL - + CASE CASE 9 WHEN + 25 * + 4 THEN NULL ELSE + COUNT( * ) - ( - AVG ( DISTINCT 78 ) ) END WHEN - 36 + 98 THEN NULL WHEN + SUM( DISTINCT + 68 ) THEN + 51 DIV 32 ELSE - ( 44 ) * 36 END * 6 col0
----
9504

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL - + CASE CASE 9 WHEN + 25 * + 4 THEN NULL ELSE + COUNT ( * ) - ( - AVG ( DISTINCT 78 ) ) END WHEN - 36 + 98 THEN NULL WHEN + SUM ( DISTINCT + 68 ) THEN + 51 / 32 ELSE - ( 44 ) * 36 END * 6 col0
----
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT - 31 - COUNT( * ) * - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-3896
SELECT - 31 - COUNT ( * ) * - COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT + COUNT( * ) * 67
----
67

skipif mysql # not compatible
query I rowsort label-3897
SELECT + COUNT ( * ) * 67
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3898
SELECT ALL - 4 DIV + COUNT( * ) col2
----
-4

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL - 4 / + COUNT ( * ) col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3899
SELECT - 45 - ( 98 ) DIV 19
----
-50

skipif mysql # not compatible
query I rowsort label-3899
SELECT - 45 - ( 98 ) / 19
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3900
SELECT ALL - 93 - CAST( NULL AS SIGNED ) / 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL - 93 - CAST ( NULL AS INTEGER ) / 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT - CASE COUNT( * ) WHEN 3 THEN NULL WHEN + 25 * - ( 22 * - 66 ) + SUM( ALL + 37 ) * + ( 83 ) THEN - 53 * 72 ELSE NULL END + 97 * - MAX( DISTINCT 47 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT - CASE COUNT ( * ) WHEN 3 THEN NULL WHEN + 25 * - ( 22 * - 66 ) + SUM ( ALL + 37 ) * + ( 83 ) THEN - 53 * 72 ELSE NULL END + 97 * - MAX ( DISTINCT 47 ) AS col2
----
NULL

query I rowsort
SELECT - 97 * 13 AS col0
----
-1261

onlyif mysql # DIV for integer division: 
query I rowsort label-3903
SELECT ALL - 43 DIV 10 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL - 43 / 10 AS col1
----
-4

query I rowsort
SELECT 23 + - 2
----
21

query I rowsort
SELECT ( 55 ) - 15 AS col0
----
40

query I rowsort
SELECT ALL 96 * + - 86 * - 72
----
594432

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT COUNT( * ) * COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3907
SELECT COUNT ( * ) * COUNT ( * ) col1
----
1

query I rowsort
SELECT DISTINCT 31 * 28 * + 11
----
9548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3909
SELECT ALL + COUNT( + ( - CAST( NULL AS SIGNED ) ) ) + 62 col0
----
62

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL + COUNT ( + ( - CAST ( NULL AS INTEGER ) ) ) + 62 col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3910
SELECT ALL + CASE + 98 WHEN 3 / - ( 6 * + 32 ) THEN - 80 WHEN - 52 + CAST( 73 AS SIGNED ) / NULLIF ( + 33, 83 ) THEN NULL END * 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL + CASE + 98 WHEN 3 / - ( 6 * + 32 ) THEN - 80 WHEN - 52 + CAST ( 73 AS INTEGER ) / NULLIF ( + 33, 83 ) THEN NULL END * 31 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 95 * + 64 AS col0
----
6080

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT DISTINCT 54 + - ( - 37 ) - - COUNT( * ) * - 79
----
12

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT 54 + - ( - 37 ) - - COUNT ( * ) * - 79
----
12

query I rowsort
SELECT ALL 30 + + 69 AS col0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3914
SELECT ALL 89 + - 40 + - 19 DIV 31
----
49

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL 89 + - 40 + - 19 / 31
----
49

query I rowsort
SELECT 67 * + + 72 * 7 AS col2
----
33768

query I rowsort
SELECT 2 + + 79 AS col0
----
81

query I rowsort
SELECT DISTINCT 41 + + + 30 AS col1
----
71

query I rowsort
SELECT ALL 53 + 52 * 32
----
1717

query I rowsort
SELECT DISTINCT 17 * + - ( 17 )
----
-289

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT ALL MAX( - 72 ) + 31 * 31 AS col0
----
889

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL MAX ( - 72 ) + 31 * 31 AS col0
----
889

query I rowsort
SELECT ALL 35 + + ( 27 ) * - 44 AS col1
----
-1153

query I rowsort
SELECT ALL 46 * - 19
----
-874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3923
SELECT NULLIF ( SUM( DISTINCT 2 ), - 57 * 30 ) / SUM( ALL - 16 * - CASE + 74 WHEN 83 THEN NULL ELSE + 36 * - CAST( NULL AS DECIMAL ) END ) + + CAST( 16 + SUM( + 60 ) AS SIGNED ) * 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT NULLIF ( SUM ( DISTINCT 2 ), - 57 * 30 ) / SUM ( ALL - 16 * - CASE + 74 WHEN 83 THEN NULL ELSE + 36 * - CAST ( NULL AS REAL ) END ) + + CAST ( 16 + SUM ( + 60 ) AS INTEGER ) * 25 AS col2
----
NULL

query I rowsort
SELECT - ( + 61 ) + 80 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT ALL + COUNT( * ) + - + 70
----
-69

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL + COUNT ( * ) + - + 70
----
-69

query I rowsort
SELECT 96 * + 86
----
8256

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3927
SELECT + NULLIF ( + 48, - CAST( + 7 AS DECIMAL ) ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-3927
SELECT + NULLIF ( + 48, - CAST ( + 7 AS REAL ) ) AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3928
SELECT 43 / + CASE 28 WHEN - NULLIF ( - 24, 69 ) - - 38 * 85 THEN + 96 + ( - 79 ) WHEN - COUNT( * ) THEN NULL END - - CAST( 79 + + 63 AS SIGNED ) + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3928
SELECT 43 / + CASE 28 WHEN - NULLIF ( - 24, 69 ) - - 38 * 85 THEN + 96 + ( - 79 ) WHEN - COUNT ( * ) THEN NULL END - - CAST ( 79 + + 63 AS INTEGER ) + 99
----
NULL

query I rowsort
SELECT - 70 * + CASE 99 WHEN 14 * 51 THEN + 5 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT + - MIN( DISTINCT + 88 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-3930
SELECT + - MIN ( DISTINCT + 88 ) AS col0
----
-88

query I rowsort
SELECT + ( 69 ) + + 24
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT - COUNT( * ) * + 60 + COUNT( * ) - + 76 AS col2
----
-135

skipif mysql # not compatible
query I rowsort label-3932
SELECT - COUNT ( * ) * + 60 + COUNT ( * ) - + 76 AS col2
----
-135

query I rowsort
SELECT DISTINCT + 57 - - - 68
----
-11

query I rowsort
SELECT DISTINCT 58 * 17
----
986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT DISTINCT - - NULLIF ( + CAST( NULL AS SIGNED ), 5 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT - - NULLIF ( + CAST ( NULL AS INTEGER ), 5 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3936
SELECT DISTINCT + COALESCE ( - NULLIF ( - 41, + 12 DIV - COUNT( * ) ), - MIN( DISTINCT - 65 ) DIV - 78, + 74 + + 59 ) - + 95
----
-54

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT + COALESCE ( - NULLIF ( - 41, + 12 / - COUNT ( * ) ), - MIN ( DISTINCT - 65 ) / - 78, + 74 + + 59 ) - + 95
----
-54

query I rowsort
SELECT 44 * + - 58 * 28
----
-71456

query I rowsort
SELECT - 42 + + 43 AS col1
----
1

query I rowsort
SELECT ALL - 47 * - 22 + + 13 AS col2
----
1047

query I rowsort
SELECT ALL - + ( + - 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT + 69 * NULLIF ( + 80, + COUNT( * ) - 61 * NULLIF ( + 45 - 99 * 11, - 26 * + COUNT( * ) ) ) + 22 AS col2
----
5542

skipif mysql # not compatible
query I rowsort label-3941
SELECT + 69 * NULLIF ( + 80, + COUNT ( * ) - 61 * NULLIF ( + 45 - 99 * 11, - 26 * + COUNT ( * ) ) ) + 22 AS col2
----
5542

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT + COUNT( * ) * + 78 * - NULLIF ( 49, - 9 * 51 )
----
-3822

skipif mysql # not compatible
query I rowsort label-3942
SELECT + COUNT ( * ) * + 78 * - NULLIF ( 49, - 9 * 51 )
----
-3822

query I rowsort
SELECT - ( + 91 ) * 57 + - 6
----
-5193

onlyif mysql # DIV for integer division: 
query I rowsort label-3944
SELECT 39 DIV 62 DIV + 78 * 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3944
SELECT 39 / 62 / + 78 * 27 AS col0
----
0

query I rowsort
SELECT DISTINCT 8 * - - ( 30 ) * - 31 AS col1
----
-7440

query I rowsort
SELECT DISTINCT - 14 + + - 23
----
-37

query I rowsort
SELECT DISTINCT - 41 * - 88 AS col1
----
3608

onlyif mysql # DIV for integer division: 
query I rowsort label-3948
SELECT - 37 DIV + - 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3948
SELECT - 37 / + - 48 AS col2
----
0

query I rowsort
SELECT ALL - 96 + 64 AS col2
----
-32

query II rowsort
SELECT - 39 AS col0, + 99 + - - 34 AS col1
----
-39
133

query I rowsort
SELECT ALL + 69 + 16
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3952
SELECT DISTINCT 84 + + + 38 DIV - - 48 * - 63 + MAX( 22 ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT 84 + + + 38 / - - 48 * - 63 + MAX ( 22 ) AS col0
----
106

query II rowsort
SELECT 4 AS col0, 65 * + - 28 AS col0
----
4
-1820

onlyif mysql # DIV for integer division: 
query I rowsort label-3954
SELECT - ( - 27 ) + + 92 DIV - 56 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3954
SELECT - ( - 27 ) + + 92 / - 56 AS col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT DISTINCT + 51 + 52 DIV 92
----
51

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT + 51 + 52 / 92
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT ALL - 96 + + 49 - - + 36 + 35 * - 1 * + COUNT( * ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL - 96 + + 49 - - + 36 + 35 * - 1 * + COUNT ( * ) AS col1
----
-46

query I rowsort
SELECT + 83 * + 81 AS col2
----
6723

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT ALL - 33 + + COALESCE ( 25, + 19 * COUNT( 17 ), 64 ) - 15 col0
----
-23

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL - 33 + + COALESCE ( 25, + 19 * COUNT ( 17 ), 64 ) - 15 col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT ALL NULLIF ( + 71, - - COUNT( * ) + 94 )
----
71

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL NULLIF ( + 71, - - COUNT ( * ) + 94 )
----
71

query II rowsort
SELECT - 7 AS col0, + 72 + - 5 + 75 * + 68 AS col2
----
-7
5167

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT ALL CASE + 49 WHEN + + 15 * 95 - + 4 THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL CASE + 49 WHEN + + 15 * 95 - + 4 THEN NULL ELSE COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT DISTINCT 41 * - COALESCE ( + + 10, 24 - + 7 ) * - COUNT( * )
----
410

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT 41 * - COALESCE ( + + 10, 24 - + 7 ) * - COUNT ( * )
----
410

query I rowsort
SELECT - 47 * + 23
----
-1081

onlyif mysql # DIV for integer division: 
query I rowsort label-3964
SELECT ALL - 33 + - 13 DIV - ( - 46 ) + - 2 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL - 33 + - 13 / - ( - 46 ) + - 2 AS col0
----
-35

query I rowsort
SELECT ALL 76 * - - 75
----
5700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3966
SELECT ALL COUNT( * ) + + CASE 77 WHEN - COUNT( 8 ) THEN NULL WHEN CAST( + 39 AS SIGNED ) + - 91 THEN + COUNT( * ) * COUNT( 76 ) - 25 WHEN CASE WHEN ( CASE 47 WHEN + MAX( DISTINCT - 40 ) * + ( - CASE 67 WHEN + CAST( NULL AS SIGNED ) THEN - 97 ELSE NULL END ) THEN 5 WHEN 26 * + CAST( NULL AS SIGNED ) + 22 THEN 30 END ) = + MIN( ALL + 95 ) THEN NULL ELSE 49 END THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL COUNT ( * ) + + CASE 77 WHEN - COUNT ( 8 ) THEN NULL WHEN CAST ( + 39 AS INTEGER ) + - 91 THEN + COUNT ( * ) * COUNT ( 76 ) - 25 WHEN CASE WHEN ( CASE 47 WHEN + MAX ( DISTINCT - 40 ) * + ( - CASE 67 WHEN + CAST ( NULL AS INTEGER ) THEN - 97 ELSE NULL END ) THEN 5 WHEN 26 * + CAST ( NULL AS INTEGER ) + 22 THEN 30 END ) = + MIN ( ALL + 95 ) THEN NULL ELSE 49 END THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT - COUNT( 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-3967
SELECT - COUNT ( 76 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT DISTINCT - 7 * + 64 * + 27 * COUNT( ALL 86 * - 61 ) col0
----
-12096

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT - 7 * + 64 * + 27 * COUNT ( ALL 86 * - 61 ) col0
----
-12096

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT + 17 - - - COUNT( * ) + 95 + 86
----
197

skipif mysql # not compatible
query I rowsort label-3969
SELECT + 17 - - - COUNT ( * ) + 95 + 86
----
197

query I rowsort
SELECT DISTINCT ( 10 ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT + COUNT( * ) - + 85
----
-84

skipif mysql # not compatible
query I rowsort label-3971
SELECT + COUNT ( * ) - + 85
----
-84

query I rowsort
SELECT ALL + 94 - - 69 AS col1
----
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3973
SELECT ALL + - 52 * + COUNT( * ) + CAST( NULLIF ( + 93, + 88 * 59 ) AS SIGNED ) + + ( COUNT( * ) ) * - CASE - COUNT( DISTINCT + ( - 52 ) ) * 14 WHEN + 88 / 20 + 77 * 3 THEN - 51 * COUNT( * ) ELSE + ( 58 ) END - 53
----
-70

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL + - 52 * + COUNT ( * ) + CAST ( NULLIF ( + 93, + 88 * 59 ) AS INTEGER ) + + ( COUNT ( * ) ) * - CASE - COUNT ( DISTINCT + ( - 52 ) ) * 14 WHEN + 88 / 20 + 77 * 3 THEN - 51 * COUNT ( * ) ELSE + ( 58 ) END - 53
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3974
SELECT 14 DIV 38 + - 24 - 88 + COUNT( DISTINCT 0 ) col1
----
-111

skipif mysql # not compatible
query I rowsort label-3974
SELECT 14 / 38 + - 24 - 88 + COUNT ( DISTINCT 0 ) col1
----
-111

query I rowsort
SELECT + - 8 * 34 AS col1
----
-272

onlyif mysql # DIV for integer division: 
query I rowsort label-3976
SELECT COALESCE ( 75, - - 21 DIV 68 )
----
75

skipif mysql # not compatible
query I rowsort label-3976
SELECT COALESCE ( 75, - - 21 / 68 )
----
75

query I rowsort
SELECT ALL 30 * 46 AS col0
----
1380

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3978
SELECT ( - + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT ( - + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3979
SELECT DISTINCT + 26 DIV + 44 + - 6 + - 81 * - 69
----
5583

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT + 26 / + 44 + - 6 + - 81 * - 69
----
5583

query I rowsort
SELECT DISTINCT - 20 * - - 83
----
-1660

query I rowsort
SELECT DISTINCT 78 * + 64 AS col0
----
4992

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT + + 82 * + COUNT( * ) * + + 53 * 35 AS col2
----
152110

skipif mysql # not compatible
query I rowsort label-3982
SELECT + + 82 * + COUNT ( * ) * + + 53 * 35 AS col2
----
152110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3983
SELECT ALL + 76 * + MAX( DISTINCT 98 ) * - CAST( 98 + + 87 AS SIGNED ) + CAST( 45 - 56 * 20 AS SIGNED )
----
-1378955

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL + 76 * + MAX ( DISTINCT 98 ) * - CAST ( 98 + + 87 AS INTEGER ) + CAST ( 45 - 56 * 20 AS INTEGER )
----
-1378955

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT + - COUNT( * ) * 76 - + 15 + - 51 AS col0
----
-142

skipif mysql # not compatible
query I rowsort label-3984
SELECT + - COUNT ( * ) * 76 - + 15 + - 51 AS col0
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT + CASE 7 WHEN + ( + COUNT( * ) ) THEN 48 * - 28 END + ( 65 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT + CASE 7 WHEN + ( + COUNT ( * ) ) THEN 48 * - 28 END + ( 65 ) AS col1
----
NULL

query II rowsort
SELECT - 65, - 16 AS col0
----
-65
-16

query I rowsort
SELECT DISTINCT + - ( - 70 )
----
70

query I rowsort
SELECT + NULLIF ( - 20, - - 2 ) * + 18 AS col2
----
-360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3989
SELECT ALL + - 51 * + CAST( NULL AS SIGNED ) + + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL + - 51 * + CAST ( NULL AS INTEGER ) + + - 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT ALL - 72 * + 47 + - SUM( - 49 ) AS col1
----
-3335

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL - 72 * + 47 + - SUM ( - 49 ) AS col1
----
-3335

query II rowsort
SELECT + ( - 14 ), 46 AS col1
----
-14
46

query I rowsort
SELECT CASE 41 WHEN + + 11 THEN - 10 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3993
SELECT ALL COUNT( * ) * - CAST( - - 25 AS SIGNED ) + - 5 * 27 col0
----
-160

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL COUNT ( * ) * - CAST ( - - 25 AS INTEGER ) + - 5 * 27 col0
----
-160

query I rowsort
SELECT DISTINCT ( + + 74 ) * 5 + - 88 + 97
----
379

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT COUNT( - + 24 )
----
1

skipif mysql # not compatible
query I rowsort label-3995
SELECT COUNT ( - + 24 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT ALL 84 * + 73 + + - COUNT( * ) - - + 33 AS col1
----
6164

skipif mysql # not compatible
query I rowsort label-3996
SELECT ALL 84 * + 73 + + - COUNT ( * ) - - + 33 AS col1
----
6164

query I rowsort
SELECT + NULLIF ( + 28, 83 ) + + - 89 * 15 AS col1
----
-1307

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT + 95 + - COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3998
SELECT + 95 + - COUNT ( * ) AS col0
----
94

query I rowsort
SELECT - NULLIF ( 79, 73 ) * + 36 + - 12 * 56 AS col0
----
-3516

query I rowsort
SELECT ALL - 92 * NULLIF ( + 32, + - 18 * 10 ) AS col2
----
-2944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4001
SELECT ALL NULLIF ( + ( + CAST( NULL AS SIGNED ) ), - 11 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL NULLIF ( + ( + CAST ( NULL AS INTEGER ) ), - 11 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT + 71 + - MIN( 20 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4002
SELECT + 71 + - MIN ( 20 ) AS col2
----
51

query I rowsort
SELECT - 77 - + + 62 + - 30 AS col1
----
-169

onlyif mysql # aggregate syntax: 
query II rowsort label-4004
SELECT DISTINCT ( 85 ), NULLIF ( + - 82, COUNT( * ) ) col1
----
85
-82

skipif mysql # not compatible
query II rowsort label-4004
SELECT DISTINCT ( 85 ), NULLIF ( + - 82, COUNT ( * ) ) col1
----
85
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT - NULLIF ( + 70, + 30 * - 82 + SUM( DISTINCT 62 + 79 * 59 ) ) + 62 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4005
SELECT - NULLIF ( + 70, + 30 * - 82 + SUM ( DISTINCT 62 + 79 * 59 ) ) + 62 AS col0
----
-8

query I rowsort
SELECT ALL 53 + 45
----
98

query I rowsort
SELECT ALL + 65 + + 62 + - - 76 + - + 89
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4008
SELECT - CASE + + COUNT( * ) WHEN - + 73 * 63 + 70 THEN 96 + + 25 WHEN + 25 + CAST( + 52 AS SIGNED ) * 25 THEN NULL ELSE NULL END * NULLIF ( + 31 - 11, + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4008
SELECT - CASE + + COUNT ( * ) WHEN - + 73 * 63 + 70 THEN 96 + + 25 WHEN + 25 + CAST ( + 52 AS INTEGER ) * 25 THEN NULL ELSE NULL END * NULLIF ( + 31 - 11, + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 71 * + 72
----
5112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4010
SELECT ALL - 2 - + 70 + 11 + CAST( - 55 AS SIGNED ) + - MIN( 31 + 43 ) * 20 DIV 64 * + 70 col0
----
-1726

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL - 2 - + 70 + 11 + CAST ( - 55 AS INTEGER ) + - MIN ( 31 + 43 ) * 20 / 64 * + 70 col0
----
-1726

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT - 41 + + - 55 + - 56 * 95 * - COUNT( * )
----
5224

skipif mysql # not compatible
query I rowsort label-4011
SELECT - 41 + + - 55 + - 56 * 95 * - COUNT ( * )
----
5224

query I rowsort
SELECT DISTINCT - 20 - 87
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT + NULLIF ( + - ( - 53 ), 10 - COUNT( * ) ) * + 81
----
4293

skipif mysql # not compatible
query I rowsort label-4013
SELECT + NULLIF ( + - ( - 53 ), 10 - COUNT ( * ) ) * + 81
----
4293

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT - 94 + - - COALESCE ( - - 68, + + COUNT( * ) ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-4014
SELECT - 94 + - - COALESCE ( - - 68, + + COUNT ( * ) ) AS col1
----
-26

query I rowsort
SELECT ALL - COALESCE ( + 5, 44 * + - 21 * + 36 ) - - 10
----
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4016
SELECT DISTINCT + COUNT( * ) / - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT DISTINCT + COUNT ( * ) / - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4017
SELECT - NULLIF ( + 10, - 94 ) DIV - 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4017
SELECT - NULLIF ( + 10, - 94 ) / - 50 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4018
SELECT - 8 / + CASE - 57 WHEN + - 92 THEN - 36 WHEN + CAST( NULL AS SIGNED ) * 82 THEN NULL END + + 2 / 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4018
SELECT - 8 / + CASE - 57 WHEN + - 92 THEN - 36 WHEN + CAST ( NULL AS INTEGER ) * 82 THEN NULL END + + 2 / 89 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4019
SELECT - 48 + - 4 + - 7 * - CAST( NULL AS SIGNED ) + - 55 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4019
SELECT - 48 + - 4 + - 7 * - CAST ( NULL AS INTEGER ) + - 55 * COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4020
SELECT ALL - 63 - ( 77 ) + ( + COUNT( * ) ) + 60 / CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL - 63 - ( 77 ) + ( + COUNT ( * ) ) + 60 / CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT - MIN( DISTINCT + - 80 ) + + + 77
----
157

skipif mysql # not compatible
query I rowsort label-4021
SELECT - MIN ( DISTINCT + - 80 ) + + + 77
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT - CASE COUNT( * ) WHEN + 14 * 44 THEN SUM( DISTINCT 9 ) WHEN - 32 + + 5 THEN NULL ELSE NULL END / - 4 + - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4022
SELECT - CASE COUNT ( * ) WHEN + 14 * 44 THEN SUM ( DISTINCT 9 ) WHEN - 32 + + 5 THEN NULL ELSE NULL END / - 4 + - 20 AS col1
----
NULL

query I rowsort
SELECT - + COALESCE ( + 64, - ( - 71 ) ) * 25 AS col0
----
-1600

query II rowsort
SELECT ALL + ( + 71 ) AS col0, 68 AS col2
----
71
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4025
SELECT - + CAST( 63 AS SIGNED ) + - + 78 AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-4025
SELECT - + CAST ( 63 AS INTEGER ) + - + 78 AS col2
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4026
SELECT - 66 * + - CAST( NULL AS SIGNED ) + + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4026
SELECT - 66 * + - CAST ( NULL AS INTEGER ) + + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT + 70 * + - 11 - CASE - 88 WHEN + 22 THEN + COUNT( * ) END * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT + 70 * + - 11 - CASE - 88 WHEN + 22 THEN + COUNT ( * ) END * 71
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4028
SELECT - 82 DIV + - 30 - 71 * + + 71 + 87 col2
----
-4952

skipif mysql # not compatible
query I rowsort label-4028
SELECT - 82 / + - 30 - 71 * + + 71 + 87 col2
----
-4952

onlyif mysql # DIV for integer division: 
query I rowsort label-4029
SELECT + 91 DIV - 71
----
-1

skipif mysql # not compatible
query I rowsort label-4029
SELECT + 91 / - 71
----
-1

query II rowsort
SELECT ALL - 64 + + 81 AS col1, - 84
----
17
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT + COUNT( * ) + 38 * + - 27
----
-1025

skipif mysql # not compatible
query I rowsort label-4031
SELECT + COUNT ( * ) + 38 * + - 27
----
-1025

query I rowsort
SELECT DISTINCT - COALESCE ( - + ( - 3 ), + 91 * 85 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT ALL - - ( + MIN( ALL - 0 ) ) + - ( - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL - - ( + MIN ( ALL - 0 ) ) + - ( - 73 )
----
73

query I rowsort
SELECT DISTINCT 67 * + 62 AS col1
----
4154

query I rowsort
SELECT ALL 26 + - - 72 * + 87 + + 54 AS col2
----
6344

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT ( - 62 ) + + 6 * - COUNT( * ) * - + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-4036
SELECT ( - 62 ) + + 6 * - COUNT ( * ) * - + COUNT ( * )
----
-56

query I rowsort
SELECT 77 + + 90 AS col2
----
167

query I rowsort
SELECT ALL 13 + - 75 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT DISTINCT 72 * + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT 72 * + COUNT ( * )
----
72

query I rowsort
SELECT DISTINCT 31 * 12
----
372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4041
SELECT 33 * 82 * - CASE + 89 WHEN + + CAST( NULL AS SIGNED ) * - MIN( ALL 39 ) + - COUNT( * ) THEN 32 - 91 WHEN 36 * - 73 + - 98 THEN - COUNT( * ) * COUNT( * ) ELSE + 6 END + + 38
----
-16198

skipif mysql # not compatible
query I rowsort label-4041
SELECT 33 * 82 * - CASE + 89 WHEN + + CAST ( NULL AS INTEGER ) * - MIN ( ALL 39 ) + - COUNT ( * ) THEN 32 - 91 WHEN 36 * - 73 + - 98 THEN - COUNT ( * ) * COUNT ( * ) ELSE + 6 END + + 38
----
-16198

query II rowsort
SELECT 72, - 10 col0
----
72
-10

query I rowsort
SELECT ALL 60 - - - 93 + - 22 col0
----
-55

query II rowsort
SELECT 80, 83 AS col0
----
80
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT ALL 24 - + COALESCE ( COUNT( * ), + NULLIF ( - 56, 32 ) * - 26 )
----
23

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL 24 - + COALESCE ( COUNT ( * ), + NULLIF ( - 56, 32 ) * - 26 )
----
23

query I rowsort
SELECT 8 + + 97 + - 45 col2
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4047
SELECT 4 AS col0, + CAST( NULL AS DECIMAL ) AS col0
----
4
NULL

skipif mysql # not compatible
query II rowsort label-4047
SELECT 4 AS col0, + CAST ( NULL AS REAL ) AS col0
----
4
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT 18 * MIN( DISTINCT - 23 ) * ( - ( 76 ) ) * - 77 + - 48 * - 67
----
-2419512

skipif mysql # not compatible
query I rowsort label-4048
SELECT 18 * MIN ( DISTINCT - 23 ) * ( - ( 76 ) ) * - 77 + - 48 * - 67
----
-2419512

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT 92 - - CASE + 53 WHEN + 17 THEN - + SUM( - 75 ) / + COUNT( * ) WHEN - 37 THEN NULL END * ( - 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT 92 - - CASE + 53 WHEN + 17 THEN - + SUM ( - 75 ) / + COUNT ( * ) WHEN - 37 THEN NULL END * ( - 52 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4050
SELECT 94 - - - 53 - - 73 * COALESCE ( + MIN( 1 ), 24 + 6 / + CASE + 46 WHEN 46 THEN - 95 / 77 END ) + 25 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT 94 - - - 53 - - 73 * COALESCE ( + MIN ( 1 ), 24 + 6 / + CASE + 46 WHEN 46 THEN - 95 / 77 END ) + 25 * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT ALL COUNT( * ) * - 79
----
-79

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL COUNT ( * ) * - 79
----
-79

query I rowsort
SELECT + 45 * - 15 AS col0
----
-675

query II rowsort
SELECT DISTINCT 65, 41 AS col1
----
65
41

query I rowsort
SELECT - ( + + 91 ) AS col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4055
SELECT ALL + 20 DIV 17
----
1

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL + 20 / 17
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4056
SELECT DISTINCT COUNT( * ) AS col0, 47 * 58 + - - COUNT( * ) DIV + + 76
----
1
2726

skipif mysql # not compatible
query II rowsort label-4056
SELECT DISTINCT COUNT ( * ) AS col0, 47 * 58 + - - COUNT ( * ) / + + 76
----
1
2726

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT ALL - + COALESCE ( - 89, + 25 ) + - 84 + + 52 + - COUNT( * ) * + 4 * 86
----
-287

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL - + COALESCE ( - 89, + 25 ) + - 84 + + 52 + - COUNT ( * ) * + 4 * 86
----
-287

query I rowsort
SELECT + 48 * - 1 * - + NULLIF ( 43, + - 58 ) col1
----
2064

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT + + MAX( DISTINCT - + 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-4059
SELECT + + MAX ( DISTINCT - + 87 ) AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4060
SELECT 73 * + 44 + COUNT( * ) DIV - COUNT( * ) + + CAST( 55 AS SIGNED ) + 0 * + 12 col1
----
3266

skipif mysql # not compatible
query I rowsort label-4060
SELECT 73 * + 44 + COUNT ( * ) / - COUNT ( * ) + + CAST ( 55 AS INTEGER ) + 0 * + 12 col1
----
3266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4061
SELECT + 43 * + 48 DIV + 47 + - 1 - + COUNT( DISTINCT + 18 ) + 19 * - COUNT( * ) col2
----
22

skipif mysql # not compatible
query I rowsort label-4061
SELECT + 43 * + 48 / + 47 + - 1 - + COUNT ( DISTINCT + 18 ) + 19 * - COUNT ( * ) col2
----
22

query I rowsort
SELECT DISTINCT + 68 + - - 10 AS col2
----
78

query II rowsort
SELECT 70 AS col0, 1 AS col2
----
70
1

query I rowsort
SELECT ALL - - 47 + 21 * 45 * - 61
----
-57598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT - COALESCE ( - 68, + - CAST( NULL AS SIGNED ) - + 48, + - 44 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4065
SELECT - COALESCE ( - 68, + - CAST ( NULL AS INTEGER ) - + 48, + - 44 ) AS col1
----
68

query I rowsort
SELECT DISTINCT - 66 + 62
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4067
SELECT DISTINCT - - ( + ( + + 88 ) ), 44 - - ( 10 ) + 65 * ( COUNT( * ) + 66 ) AS col1
----
88
4409

skipif mysql # not compatible
query II rowsort label-4067
SELECT DISTINCT - - ( + ( + + 88 ) ), 44 - - ( 10 ) + 65 * ( COUNT ( * ) + 66 ) AS col1
----
88
4409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4068
SELECT DISTINCT + + ( + 36 ) + - + COUNT( * ) + - 91 + 86 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT + + ( + 36 ) + - + COUNT ( * ) + - 91 + 86 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4069
SELECT ALL - ( MAX( DISTINCT - - 96 ) ) + CAST( NULL AS SIGNED ) / COUNT( * ) + + CAST( + 19 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL - ( MAX ( DISTINCT - - 96 ) ) + CAST ( NULL AS INTEGER ) / COUNT ( * ) + + CAST ( + 19 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT 48 - + COUNT( * ) + 69
----
116

skipif mysql # not compatible
query I rowsort label-4070
SELECT 48 - + COUNT ( * ) + 69
----
116

query II rowsort
SELECT + 32 AS col0, 5 + - 9 AS col1
----
32
-4

query I rowsort
SELECT 57 + - + 31 AS col2
----
26

query II rowsort
SELECT + 87 AS col1, + 69
----
87
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT ALL SUM( DISTINCT 75 ) - + 37 + - 64 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL SUM ( DISTINCT 75 ) - + 37 + - 64 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT 76 + + COUNT( * ) * - MAX( 49 ) * 3 * 26 + 31 AS col1
----
-3715

skipif mysql # not compatible
query I rowsort label-4075
SELECT 76 + + COUNT ( * ) * - MAX ( 49 ) * 3 * 26 + 31 AS col1
----
-3715

onlyif mysql # aggregate syntax: 
query II rowsort label-4076
SELECT + 47 AS col0, 96 * + COUNT( * ) * + 58 + ( 78 ) + 51 * 60 AS col2
----
47
8706

skipif mysql # not compatible
query II rowsort label-4076
SELECT + 47 AS col0, 96 * + COUNT ( * ) * + 58 + ( 78 ) + 51 * 60 AS col2
----
47
8706

query I rowsort
SELECT DISTINCT - COALESCE ( - ( 52 ), - 47 * - 28 * - 22 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4078
SELECT DISTINCT - 57 * + COUNT( + + CAST( + 5 AS SIGNED ) )
----
-57

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT - 57 * + COUNT ( + + CAST ( + 5 AS INTEGER ) )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT ALL 24 - + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL 24 - + COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT DISTINCT 83 * - COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT 83 * - COUNT ( * ) AS col0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4081
SELECT 76 * - 12 * + - COALESCE ( COALESCE ( + + 2, - 12, CAST( NULL AS SIGNED ) ), ( 68 ), - 45 * + 66 ) AS col0
----
1824

skipif mysql # not compatible
query I rowsort label-4081
SELECT 76 * - 12 * + - COALESCE ( COALESCE ( + + 2, - 12, CAST ( NULL AS INTEGER ) ), ( 68 ), - 45 * + 66 ) AS col0
----
1824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4082
SELECT 82 + - 74 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4082
SELECT 82 + - 74 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4083
SELECT 18 DIV + ( - COUNT( * ) ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4083
SELECT 18 / + ( - COUNT ( * ) ) AS col1
----
-18

query II rowsort
SELECT ALL 18 * + 43 col2, 7 col0
----
774
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4085
SELECT ALL SUM( - + CASE + 6 WHEN - 4 THEN + 4 DIV - 89 ELSE + 43 * - 6 END ) * + 82 AS col2
----
21156

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL SUM ( - + CASE + 6 WHEN - 4 THEN + 4 / - 89 ELSE + 43 * - 6 END ) * + 82 AS col2
----
21156

query I rowsort
SELECT ( + - 2 ) * - 69 * 25 AS col1
----
3450

query I rowsort
SELECT 1 + - 23 * 45
----
-1034

onlyif mysql # aggregate syntax: 
query II rowsort label-4088
SELECT ALL 23 AS col2, 58 * + - COUNT( * ) AS col0
----
23
-58

skipif mysql # not compatible
query II rowsort label-4088
SELECT ALL 23 AS col2, 58 * + - COUNT ( * ) AS col0
----
23
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4089
SELECT 8 DIV + CASE - CAST( NULL AS SIGNED ) WHEN + - COUNT( * ) THEN - 3 WHEN - COUNT( * ) DIV - 58 THEN 8 ELSE + 43 * + 2 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4089
SELECT 8 / + CASE - CAST ( NULL AS INTEGER ) WHEN + - COUNT ( * ) THEN - 3 WHEN - COUNT ( * ) / - 58 THEN 8 ELSE + 43 * + 2 END AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT DISTINCT NULLIF ( - 85, + ( - NULLIF ( 13, - - 18 * 46 + AVG ( ALL + ( + 31 ) + 3 ) ) ) * NULLIF ( 25 / COUNT( * ), + 91 ) ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT NULLIF ( - 85, + ( - NULLIF ( 13, - - 18 * 46 + AVG ( ALL + ( + 31 ) + 3 ) ) ) * NULLIF ( 25 / COUNT ( * ), + 91 ) ) AS col2
----
-85

query II rowsort
SELECT ALL - 26 AS col0, 80 AS col1
----
-26
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4092
SELECT - 70 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4092
SELECT - 70 + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 27 AS col0, - 6 + 54 AS col2
----
27
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4094
SELECT DISTINCT + CASE 3 WHEN - CAST( + 0 AS SIGNED ) * + - 1 THEN NULL WHEN + 55 * - 68 THEN - 8 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT + CASE 3 WHEN - CAST ( + 0 AS INTEGER ) * + - 1 THEN NULL WHEN + 55 * - 68 THEN - 8 END AS col0
----
NULL

query I rowsort
SELECT 78 + 76
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT CASE - MAX( ALL + - 91 ) WHEN 48 / + + 47 + - + 13 THEN - 55 * ( - 45 ) WHEN - 65 THEN 18 + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT CASE - MAX ( ALL + - 91 ) WHEN 48 / + + 47 + - + 13 THEN - 55 * ( - 45 ) WHEN - 65 THEN 18 + + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT + COUNT( * ) + - 19
----
-18

skipif mysql # not compatible
query I rowsort label-4097
SELECT + COUNT ( * ) + - 19
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-4098
SELECT - 89 AS col1, COUNT( - + 99 )
----
-89
1

skipif mysql # not compatible
query II rowsort label-4098
SELECT - 89 AS col1, COUNT ( - + 99 )
----
-89
1

query I rowsort
SELECT DISTINCT 24 * + - 51 AS col2
----
-1224

query I rowsort
SELECT ALL 29 + - 87 AS col2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4101
SELECT ALL - + 44 + + COUNT( * ) + ( NULLIF ( 97, - COALESCE ( - 49, SUM( + COALESCE ( 83, 2 ) ) + - CAST( NULL AS SIGNED ), COALESCE ( + 71, 36 ) ) ) )
----
54

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL - + 44 + + COUNT ( * ) + ( NULLIF ( 97, - COALESCE ( - 49, SUM ( + COALESCE ( 83, 2 ) ) + - CAST ( NULL AS INTEGER ), COALESCE ( + 71, 36 ) ) ) )
----
54

query II rowsort
SELECT - 73, 96 AS col1
----
-73
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4103
SELECT ALL 19 * + COUNT( * ) * - CASE - - 54 WHEN - COUNT( * ) THEN NULL WHEN + 88 THEN + 66 / - 94 + + 60 * + 72 ELSE + 92 * CAST( NULL AS DECIMAL ) + - 95 END + ( 72 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL 19 * + COUNT ( * ) * - CASE - - 54 WHEN - COUNT ( * ) THEN NULL WHEN + 88 THEN + 66 / - 94 + + 60 * + 72 ELSE + 92 * CAST ( NULL AS REAL ) + - 95 END + ( 72 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4104
SELECT NULLIF ( 72, - 59 ) DIV - 59 + + 66
----
65

skipif mysql # not compatible
query I rowsort label-4104
SELECT NULLIF ( 72, - 59 ) / - 59 + + 66
----
65

query I rowsort
SELECT ALL + 81 * + + 14 + + - 88 + - + 65 - - 4
----
985

query I rowsort
SELECT ALL + - ( - - 57 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT 82 * + ( - COUNT( * ) ) + - 47
----
-129

skipif mysql # not compatible
query I rowsort label-4107
SELECT 82 * + ( - COUNT ( * ) ) + - 47
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT ALL + COALESCE ( - 35, + COUNT( * ) - COUNT( * ) ) col1
----
-35

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL + COALESCE ( - 35, + COUNT ( * ) - COUNT ( * ) ) col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT - SUM( ALL + 39 ) * + + CASE + MAX( DISTINCT + 45 ) WHEN - 22 THEN - - COUNT( * ) WHEN COUNT( * ) - 46 THEN - 69 WHEN - 60 THEN NULL ELSE NULL END / + 34 - 23 * 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT - SUM ( ALL + 39 ) * + + CASE + MAX ( DISTINCT + 45 ) WHEN - 22 THEN - - COUNT ( * ) WHEN COUNT ( * ) - 46 THEN - 69 WHEN - 60 THEN NULL ELSE NULL END / + 34 - 23 * 18 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4110
SELECT ALL 15 * - + CASE - 66 WHEN + 14 + - 12 * 19 THEN - - SUM( DISTINCT 17 ) WHEN - 5 * COUNT( * ) THEN 48 ELSE + COALESCE ( 36, - COUNT( 52 ) ) * 32 + - CASE 87 WHEN - 34 * 79 THEN NULL WHEN 54 THEN - 89 * - COUNT( * ) ELSE + 63 * + 24 END * 53 END - - NULLIF ( CASE - 12 WHEN ( - COUNT( - 23 ) ) * - 78 THEN + 71 / CAST( NULL AS SIGNED ) END, ( 54 ) ) / ( CASE - 7 WHEN - 14 THEN COUNT( * ) WHEN 37 * + 62 + + CAST( + 12 + 82 AS SIGNED ) * + 9 THEN CASE 86 WHEN - COALESCE ( - 54, + 64 * 83, 35 + + 59 ) / COUNT( * ) THEN 61 ELSE COUNT( * ) + 38 * ( - COALESCE ( + 17, 59 ) * 97 + COUNT( * ) ) END + 53 END - 16 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL 15 * - + CASE - 66 WHEN + 14 + - 12 * 19 THEN - - SUM ( DISTINCT 17 ) WHEN - 5 * COUNT ( * ) THEN 48 ELSE + COALESCE ( 36, - COUNT ( 52 ) ) * 32 + - CASE 87 WHEN - 34 * 79 THEN NULL WHEN 54 THEN - 89 * - COUNT ( * ) ELSE + 63 * + 24 END * 53 END - - NULLIF ( CASE - 12 WHEN ( - COUNT ( - 23 ) ) * - 78 THEN + 71 / CAST ( NULL AS INTEGER ) END, ( 54 ) ) / ( CASE - 7 WHEN - 14 THEN COUNT ( * ) WHEN 37 * + 62 + + CAST ( + 12 + 82 AS INTEGER ) * + 9 THEN CASE 86 WHEN - COALESCE ( - 54, + 64 * 83, 35 + + 59 ) / COUNT ( * ) THEN 61 ELSE COUNT ( * ) + 38 * ( - COALESCE ( + 17, 59 ) * 97 + COUNT ( * ) ) END + 53 END - 16 ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4111
SELECT DISTINCT 96 DIV - 4, + ( - + 33 ) + + + CAST( + 55 AS SIGNED ) AS col0
----
-24
22

skipif mysql # not compatible
query II rowsort label-4111
SELECT DISTINCT 96 / - 4, + ( - + 33 ) + + + CAST ( + 55 AS INTEGER ) AS col0
----
-24
22

query I rowsort
SELECT ALL + COALESCE ( - ( + ( - 36 ) ), - 91 )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4113
SELECT + 34 * 76 + CAST( + 98 AS SIGNED ) * - MAX( DISTINCT 31 ) * + + 47 + + 36
----
-140166

skipif mysql # not compatible
query I rowsort label-4113
SELECT + 34 * 76 + CAST ( + 98 AS INTEGER ) * - MAX ( DISTINCT 31 ) * + + 47 + + 36
----
-140166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4114
SELECT DISTINCT + MIN( - NULLIF ( 31, + 86 + + CAST( + + 12 AS SIGNED ) ) ) * 31 + 46 * 73
----
2397

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT + MIN ( - NULLIF ( 31, + 86 + + CAST ( + + 12 AS INTEGER ) ) ) * 31 + 46 * 73
----
2397

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT MIN( DISTINCT - 82 ) * + 64 + - ( + - 86 ) AS col2
----
-5162

skipif mysql # not compatible
query I rowsort label-4115
SELECT MIN ( DISTINCT - 82 ) * + 64 + - ( + - 86 ) AS col2
----
-5162

onlyif mysql # aggregate syntax: 
query II rowsort label-4116
SELECT ALL - 70 * - COUNT( * ) * + 67, + 36 * + + 34 + - + 67 + - - 43 AS col0
----
4690
1200

skipif mysql # not compatible
query II rowsort label-4116
SELECT ALL - 70 * - COUNT ( * ) * + 67, + 36 * + + 34 + - + 67 + - - 43 AS col0
----
4690
1200

query I rowsort
SELECT - 30 * - 47 * - - 95 AS col0
----
133950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4118
SELECT ALL 71 + 3 DIV 29 * + - COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL 71 + 3 / 29 * + - COUNT ( * ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT - MAX( ALL 30 ) + 38 - - + 19 + + 36 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-4119
SELECT - MAX ( ALL 30 ) + 38 - - + 19 + + 36 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT + 55 * - 64 - - MIN( DISTINCT + 44 )
----
-3476

skipif mysql # not compatible
query I rowsort label-4120
SELECT + 55 * - 64 - - MIN ( DISTINCT + 44 )
----
-3476

query II rowsort
SELECT DISTINCT - 93 + + - 64, 93 AS col2
----
-157
93

query II rowsort
SELECT + ( + + 43 ), 92 col2
----
43
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4123
SELECT ALL 47 * 17 * - - CAST( 66 AS SIGNED )
----
52734

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL 47 * 17 * - - CAST ( 66 AS INTEGER )
----
52734

query I rowsort
SELECT - + 54 - - NULLIF ( + 95, 85 ) + - 44 * - + 95 AS col0
----
4221

query I rowsort
SELECT + - 79 + + 99
----
20

query I rowsort
SELECT COALESCE ( + - 34, 70 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL - - 76 * + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL - - 76 * + COUNT ( * )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT DISTINCT + COUNT( + COALESCE ( 71, + 54 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT + COUNT ( + COALESCE ( 71, + 54 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT ALL - COUNT( DISTINCT - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL - COUNT ( DISTINCT - 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT ALL 1 + 26 + - 80 * - MAX( ALL + 40 )
----
3227

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL 1 + 26 + - 80 * - MAX ( ALL + 40 )
----
3227

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT ALL SUM( ALL + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL SUM ( ALL + 83 )
----
83

query I rowsort
SELECT + - 53 * 30 AS col2
----
-1590

query I rowsort
SELECT DISTINCT 85 * 32 * + 47 * - 14 col0
----
-1789760

query I rowsort
SELECT ALL 43 * - 48
----
-2064

query II rowsort
SELECT ALL 55 * - + 34 * + 73 AS col2, - 54 * + 10 AS col2
----
-136510
-540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4136
SELECT ALL + CASE + 74 WHEN - 18 * + CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) * - AVG ( - 9 ) / NULLIF ( - 63, + 85 ) * 75 + - 22 THEN - 2 ELSE + 2 - COUNT( * ) * - ( 91 ) END AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL + CASE + 74 WHEN - 18 * + CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) * - AVG ( - 9 ) / NULLIF ( - 63, + 85 ) * 75 + - 22 THEN - 2 ELSE + 2 - COUNT ( * ) * - ( 91 ) END AS col1
----
93

query I rowsort
SELECT ALL 7 * + ( - 55 ) * 64 AS col0
----
-24640

query I rowsort
SELECT + 13 + - + 44
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT + ( + + COALESCE ( 42, + - COUNT( * ) + + 26 * - + 76 ) )
----
42

skipif mysql # not compatible
query I rowsort label-4139
SELECT + ( + + COALESCE ( 42, + - COUNT ( * ) + + 26 * - + 76 ) )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT ( - CASE - 56 WHEN + 35 * + 56 * - 6 + + COUNT( * ) THEN - NULLIF ( - ( 15 ), 74 / + 47 ) * - 30 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4140
SELECT ( - CASE - 56 WHEN + 35 * + 56 * - 6 + + COUNT ( * ) THEN - NULLIF ( - ( 15 ), 74 / + 47 ) * - 30 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT ALL + NULLIF ( - 70, + - MIN( 77 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL + NULLIF ( - 70, + - MIN ( 77 ) )
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4142
SELECT + CAST( NULL AS SIGNED ) + - - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4142
SELECT + CAST ( NULL AS INTEGER ) + - - 88
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4143
SELECT - 71 DIV - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-4143
SELECT - 71 / - COUNT ( * )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4144
SELECT ALL + COALESCE ( + + 47, - 84 * + COALESCE ( + 15, - 57 + COALESCE ( + 28, 63, 89 DIV MAX( DISTINCT 14 ) - MIN( DISTINCT - 88 ) * - COUNT( * ) ) ) * + 84 + + COUNT( * ) DIV - 29, - CASE 38 WHEN 83 THEN + 99 + 62 ELSE 16 + 41 END * 12, + 74 ) DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL + COALESCE ( + + 47, - 84 * + COALESCE ( + 15, - 57 + COALESCE ( + 28, 63, 89 / MAX ( DISTINCT 14 ) - MIN ( DISTINCT - 88 ) * - COUNT ( * ) ) ) * + 84 + + COUNT ( * ) / - 29, - CASE 38 WHEN 83 THEN + 99 + 62 ELSE 16 + 41 END * 12, + 74 ) / 65
----
0

query I rowsort
SELECT ALL + 85 * + 8 col0
----
680

query I rowsort
SELECT - 35 + - + 25
----
-60

query I rowsort
SELECT COALESCE ( - - 86, - NULLIF ( + 1, + 71 ) - + + 54 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT - 11 * - - NULLIF ( - 39, + 59 + SUM( - 51 ) ) AS col0
----
429

skipif mysql # not compatible
query I rowsort label-4148
SELECT - 11 * - - NULLIF ( - 39, + 59 + SUM ( - 51 ) ) AS col0
----
429

query I rowsort
SELECT ALL - 66 * + 21 + 47 AS col0
----
-1339

query I rowsort
SELECT ALL - 40 * + - 15
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL + COUNT( ALL 54 )
----
1

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL + COUNT ( ALL 54 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4152
SELECT CASE - + CAST( NULL AS SIGNED ) WHEN - - 59 * - - 37 + + COUNT( * ) + - - 56 - NULLIF ( - 95, COUNT( * ) * 91 ) * COUNT( * ) THEN - NULLIF ( 9, - ( + ( NULLIF ( - 2, 60 ) ) ) * + 36 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4152
SELECT CASE - + CAST ( NULL AS INTEGER ) WHEN - - 59 * - - 37 + + COUNT ( * ) + - - 56 - NULLIF ( - 95, COUNT ( * ) * 91 ) * COUNT ( * ) THEN - NULLIF ( 9, - ( + ( NULLIF ( - 2, 60 ) ) ) * + 36 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT - - 24 * 58 - SUM( DISTINCT - 69 ) + + 77 * + + 27 * 92 + + 50 AS col1
----
192779

skipif mysql # not compatible
query I rowsort label-4153
SELECT - - 24 * 58 - SUM ( DISTINCT - 69 ) + + 77 * + + 27 * 92 + + 50 AS col1
----
192779

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT + MIN( ALL + ( - - 87 ) )
----
87

skipif mysql # not compatible
query I rowsort label-4154
SELECT + MIN ( ALL + ( - - 87 ) )
----
87

query II rowsort
SELECT - 61 AS col0, + ( - 98 )
----
-61
-98

query I rowsort
SELECT ALL + ( + 40 ) * - 62 * - + 45 + - 51 + - 39 - 44 + - 97 + 32 * - 52
----
109705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4157
SELECT DISTINCT + - COALESCE ( - - CASE + 44 WHEN 11 * + COUNT( ALL 78 ) + + 74 + + 70 DIV - CAST( 3 AS SIGNED ) THEN + 74 DIV 42 END, + 29 ) + - COUNT( * ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT + - COALESCE ( - - CASE + 44 WHEN 11 * + COUNT ( ALL 78 ) + + 74 + + 70 / - CAST ( 3 AS INTEGER ) THEN + 74 / 42 END, + 29 ) + - COUNT ( * ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-4158
SELECT ALL + 81 col2, + 64 * COUNT( DISTINCT - 87 ) AS col1
----
81
64

skipif mysql # not compatible
query II rowsort label-4158
SELECT ALL + 81 col2, + 64 * COUNT ( DISTINCT - 87 ) AS col1
----
81
64

query I rowsort
SELECT DISTINCT - + 11 + - 93
----
-104

query II rowsort
SELECT ALL - 58 AS col2, 93
----
-58
93

query I rowsort
SELECT 17 + - 59
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4162
SELECT DISTINCT - MAX( DISTINCT - NULLIF ( + + 3, CAST( + 53 AS SIGNED ) ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4162
SELECT DISTINCT - MAX ( DISTINCT - NULLIF ( + + 3, CAST ( + 53 AS INTEGER ) ) ) AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4163
SELECT ALL + 87 - - CASE 50 WHEN 36 THEN + - ( CAST( - 95 AS SIGNED ) ) * - 24 ELSE 23 * 27 END
----
708

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL + 87 - - CASE 50 WHEN 36 THEN + - ( CAST ( - 95 AS INTEGER ) ) * - 24 ELSE 23 * 27 END
----
708

onlyif mysql # DIV for integer division: 
query I rowsort label-4164
SELECT 97 DIV 60 + - 59 * + 77
----
-4542

skipif mysql # not compatible
query I rowsort label-4164
SELECT 97 / 60 + - 59 * + 77
----
-4542

query I rowsort
SELECT - 91 * + 79
----
-7189

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT DISTINCT + 43 * + COALESCE ( COALESCE ( + CASE 97 WHEN + - 42 * + 35 - SUM( DISTINCT - 24 ) + 44 * - ( - 90 * + COUNT( * ) ) THEN - ( - 15 ) WHEN - 22 * 36 THEN NULL WHEN - 19 THEN 87 ELSE NULL END, 58 * 28 + - ( 14 ) * - NULLIF ( 46, - 76 + MAX( DISTINCT - 17 ) ) ), 67 * - 71 ) + - 45 AS col2
----
97479

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT + 43 * + COALESCE ( COALESCE ( + CASE 97 WHEN + - 42 * + 35 - SUM ( DISTINCT - 24 ) + 44 * - ( - 90 * + COUNT ( * ) ) THEN - ( - 15 ) WHEN - 22 * 36 THEN NULL WHEN - 19 THEN 87 ELSE NULL END, 58 * 28 + - ( 14 ) * - NULLIF ( 46, - 76 + MAX ( DISTINCT - 17 ) ) ), 67 * - 71 ) + - 45 AS col2
----
97479

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT MIN( DISTINCT - + 28 ) * - 59 + 63
----
1715

skipif mysql # not compatible
query I rowsort label-4167
SELECT MIN ( DISTINCT - + 28 ) * - 59 + 63
----
1715

query I rowsort
SELECT 86 * - ( 97 )
----
-8342

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT COUNT( * ) / + 42 + - CASE + + COUNT( * ) WHEN 28 * COUNT( * ) + - 56 THEN + COUNT( * ) / 66 END / - 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4169
SELECT COUNT ( * ) / + 42 + - CASE + + COUNT ( * ) WHEN 28 * COUNT ( * ) + - 56 THEN + COUNT ( * ) / 66 END / - 88 AS col1
----
NULL

query I rowsort
SELECT ( - 69 ) + - 47
----
-116

query I rowsort
SELECT 76 * - + 41 AS col0
----
-3116

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT DISTINCT COUNT( * ) + + 13 + - - COUNT( * ) + + SUM( - - 25 ) * - 59
----
-1460

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT COUNT ( * ) + + 13 + - - COUNT ( * ) + + SUM ( - - 25 ) * - 59
----
-1460

query I rowsort
SELECT ALL 65 + 74
----
139

query I rowsort
SELECT ALL 47 + - + ( - 79 )
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-4175
SELECT ALL + 80 + + 85 col2, + NULLIF ( + + 37, - 24 * - + NULLIF ( + - ( 56 ), COUNT( * ) ) )
----
165
37

skipif mysql # not compatible
query II rowsort label-4175
SELECT ALL + 80 + + 85 col2, + NULLIF ( + + 37, - 24 * - + NULLIF ( + - ( 56 ), COUNT ( * ) ) )
----
165
37

query I rowsort
SELECT ( - - 3 ) * - 9
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT ALL ( 56 ) + + 32 + + - ( 56 ) * + 65 * + COALESCE ( + COUNT( * ), - COALESCE ( 21, + 90 ) * COUNT( * ), 54 - + COUNT( * ) ) + 11 AS col1
----
-3541

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL ( 56 ) + + 32 + + - ( 56 ) * + 65 * + COALESCE ( + COUNT ( * ), - COALESCE ( 21, + 90 ) * COUNT ( * ), 54 - + COUNT ( * ) ) + 11 AS col1
----
-3541

query I rowsort
SELECT NULLIF ( 69, 34 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4179
SELECT COUNT( * ) * - 18 * - CAST( NULL AS SIGNED ) + COUNT( * ) col2, 17 + COUNT( * ) + - COALESCE ( 13, - 15 + 62 ) + + CASE - 85 + 82 * + 81 WHEN 61 * + 60 THEN 41 / - 49 END * 19 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4179
SELECT COUNT ( * ) * - 18 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) col2, 17 + COUNT ( * ) + - COALESCE ( 13, - 15 + 62 ) + + CASE - 85 + 82 * + 81 WHEN 61 * + 60 THEN 41 / - 49 END * 19 AS col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4180
SELECT 63 DIV 66 AS col1, + 57 + + 1 AS col1
----
0
58

skipif mysql # not compatible
query II rowsort label-4180
SELECT 63 / 66 AS col1, + 57 + + 1 AS col1
----
0
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4181
SELECT CAST( 39 AS DECIMAL ) * 68 / + CAST( - SUM( ALL + CAST( NULL AS SIGNED ) ) AS DECIMAL ) * 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT CAST ( 39 AS REAL ) * 68 / + CAST ( - SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS REAL ) * 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) + + - COUNT( * ) * + 37 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) + + - COUNT ( * ) * + 37 AS col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4183
SELECT - CAST( + SUM( + ( + CAST( NULL AS SIGNED ) ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4183
SELECT - CAST ( + SUM ( + ( + CAST ( NULL AS INTEGER ) ) ) AS INTEGER )
----
NULL

query I rowsort
SELECT + 83 + - 70
----
13

query I rowsort
SELECT 19 * + + 25 * + 12 AS col1
----
5700

query I rowsort
SELECT - 6 - + 51 + 72 - 38
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4187
SELECT 11 + - + CAST( NULL AS SIGNED ) + 26 + + COUNT( DISTINCT 57 ) + MIN( ALL - 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT 11 + - + CAST ( NULL AS INTEGER ) + 26 + + COUNT ( DISTINCT 57 ) + MIN ( ALL - 69 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4188
SELECT ALL - CAST( NULL AS SIGNED ) * - 52 / - 58 * 45 / - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL - CAST ( NULL AS INTEGER ) * - 52 / - 58 * 45 / - 79
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4189
SELECT ALL + + ( 95 ) DIV - - 3 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL + + ( 95 ) / - - 3 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4190
SELECT + SUM( - CAST( - - 73 AS SIGNED ) ) DIV + 88 + - - ( - ( + 29 ) ), - 4 AS col1
----
-29
-4

skipif mysql # not compatible
query II rowsort label-4190
SELECT + SUM ( - CAST ( - - 73 AS INTEGER ) ) / + 88 + - - ( - ( + 29 ) ), - 4 AS col1
----
-29
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT 96 - - - 66 + ( - 85 ) * - COUNT( * ) AS col1
----
115

skipif mysql # not compatible
query I rowsort label-4191
SELECT 96 - - - 66 + ( - 85 ) * - COUNT ( * ) AS col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT COUNT( * ) - + 24 * 83 + + 31 + - COUNT( - - 69 ) col0
----
-1961

skipif mysql # not compatible
query I rowsort label-4192
SELECT COUNT ( * ) - + 24 * 83 + + 31 + - COUNT ( - - 69 ) col0
----
-1961

onlyif mysql # DIV for integer division: 
query I rowsort label-4193
SELECT 76 DIV + NULLIF ( 93, - + 42 )
----
0

skipif mysql # not compatible
query I rowsort label-4193
SELECT 76 / + NULLIF ( 93, - + 42 )
----
0

query I rowsort
SELECT COALESCE ( 0, 2 * - 91 * + ( + - 14 ) * 16 ) * + 4 AS col2
----
0

query I rowsort
SELECT DISTINCT + 2 * + NULLIF ( + - 94, + - 39 )
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT - ( 57 ) * - 38 + + ( + 78 ) * - COUNT( * ) + - COALESCE ( + + 53, + ( + - 85 ) * CASE 60 * 51 WHEN 1 THEN 91 + + 85 WHEN + 34 + 84 THEN NULL END, - 78 )
----
2035

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT - ( 57 ) * - 38 + + ( + 78 ) * - COUNT ( * ) + - COALESCE ( + + 53, + ( + - 85 ) * CASE 60 * 51 WHEN 1 THEN 91 + + 85 WHEN + 34 + 84 THEN NULL END, - 78 )
----
2035

query II rowsort
SELECT ALL - 66 col1, 97
----
-66
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4198
SELECT DISTINCT - 61 * ( - CAST( NULL AS SIGNED ) ) + - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT - 61 * ( - CAST ( NULL AS INTEGER ) ) + - 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT DISTINCT + 11 * - + 90 + + - 46 + + ( + + COALESCE ( - 6, MIN( DISTINCT 99 ) + 31 * + + COALESCE ( 24, 22 * 0, + 9, + COUNT( * ) ) ) )
----
-1042

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT + 11 * - + 90 + + - 46 + + ( + + COALESCE ( - 6, MIN ( DISTINCT 99 ) + 31 * + + COALESCE ( 24, 22 * 0, + 9, + COUNT ( * ) ) ) )
----
-1042

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT DISTINCT + COUNT( * ) * NULLIF ( - 75, + COALESCE ( + 60, 0 ) + + 82 + + + 35 + - 51 + - CASE + 63 WHEN + 47 THEN NULL ELSE 85 END * + 38 ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT + COUNT ( * ) * NULLIF ( - 75, + COALESCE ( + 60, 0 ) + + 82 + + + 35 + - 51 + - CASE + 63 WHEN + 47 THEN NULL ELSE 85 END * + 38 ) col2
----
-75

query II rowsort
SELECT ALL - 56, 12 + 33 * - 89 AS col1
----
-56
-2925

query II rowsort
SELECT ALL - 51 * + - 23 * - - 75 + 60 * - 36 AS col0, - 85 AS col2
----
85815
-85

query I rowsort
SELECT 17 + - + 26 AS col0
----
-9

query I rowsort
SELECT + + 36 * - 42 AS col2
----
-1512

query I rowsort
SELECT ALL + 31 * + + 18 * + 64
----
35712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4206
SELECT DISTINCT + NULLIF ( + - 60, - 85 * - ( - 39 ) * - + 0 ) DIV - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT + NULLIF ( + - 60, - 85 * - ( - 39 ) * - + 0 ) / - COUNT ( * )
----
60

query II rowsort
SELECT + + 92 + + - 39 - - + 75, 67 AS col2
----
128
67

query I rowsort
SELECT ALL 80 * + - 90
----
-7200

query I rowsort
SELECT + 23 + - 87 + - 96 + - ( 63 )
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT + MIN( DISTINCT - 58 ) col1
----
-58

skipif mysql # not compatible
query I rowsort label-4210
SELECT + MIN ( DISTINCT - 58 ) col1
----
-58

query I rowsort
SELECT DISTINCT + ( + + 20 )
----
20

query I rowsort
SELECT ALL 7 - - 75
----
82

query I rowsort
SELECT + - ( + 93 ) * 79 AS col0
----
-7347

query I rowsort
SELECT + - 9 * - NULLIF ( 53, - 37 )
----
477

query I rowsort
SELECT + 50 + - + 99 AS col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4216
SELECT - - CASE ( - 62 ) WHEN 36 THEN - 82 WHEN + 47 + 93 THEN NULL ELSE - - COALESCE ( - 73, CAST( COUNT( * ) AS SIGNED ), - COUNT( 64 ) - 64 ) END
----
-73

skipif mysql # not compatible
query I rowsort label-4216
SELECT - - CASE ( - 62 ) WHEN 36 THEN - 82 WHEN + 47 + 93 THEN NULL ELSE - - COALESCE ( - 73, CAST ( COUNT ( * ) AS INTEGER ), - COUNT ( 64 ) - 64 ) END
----
-73

query I rowsort
SELECT + - 65 + - 19 AS col2
----
-84

query I rowsort
SELECT - - 60 + - 76 AS col1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4219
SELECT ALL - COUNT( - 14 ) DIV 19 + + 4 DIV ( - 71 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL - COUNT ( - 14 ) / 19 + + 4 / ( - 71 ) AS col1
----
0

query I rowsort
SELECT DISTINCT - + 68 * + + NULLIF ( + - 1, 65 + - + AVG ( ALL - + 44 ) * NULLIF ( + + 26, + 98 + - 85 + + COALESCE ( 73, - 17 ) / 35 ) )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4221
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT DISTINCT + + COUNT( 8 ) * - 29 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT + + COUNT ( 8 ) * - 29 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT DISTINCT + 35 + - - NULLIF ( + COUNT( * ), ( 23 ) * 65 + 87 * COUNT( * ) * - + 62 * - 93 * 1 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT + 35 + - - NULLIF ( + COUNT ( * ), ( 23 ) * 65 + 87 * COUNT ( * ) * - + 62 * - 93 * 1 ) AS col1
----
36

query I rowsort
SELECT - 53 + + 29
----
-24

query I rowsort
SELECT - 20 * + + 8 col1
----
-160

query I rowsort
SELECT - COALESCE ( + 33, - + 48 ) AS col2
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4227
SELECT - 83, - 18 * COUNT( * ) DIV COALESCE ( CASE + - COUNT( * ) WHEN + - 51 * - 97 * ( + 72 ) THEN - 53 DIV COUNT( * ) + ( + 68 ) WHEN 3 THEN NULL ELSE NULL END, - 67 + - 22 DIV - 73 ) + - 38 DIV - 40 AS col2
----
-83
0

skipif mysql # not compatible
query II rowsort label-4227
SELECT - 83, - 18 * COUNT ( * ) / COALESCE ( CASE + - COUNT ( * ) WHEN + - 51 * - 97 * ( + 72 ) THEN - 53 / COUNT ( * ) + ( + 68 ) WHEN 3 THEN NULL ELSE NULL END, - 67 + - 22 / - 73 ) + - 38 / - 40 AS col2
----
-83
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4228
SELECT + CAST( CASE 59 WHEN + 99 + + 84 * 21 THEN - 75 WHEN + - 51 THEN NULL ELSE + CAST( - + 69 AS SIGNED ) END AS SIGNED ) + + 73 + + COALESCE ( 81, 23, 8, - 44 + 34 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-4228
SELECT + CAST ( CASE 59 WHEN + 99 + + 84 * 21 THEN - 75 WHEN + - 51 THEN NULL ELSE + CAST ( - + 69 AS INTEGER ) END AS INTEGER ) + + 73 + + COALESCE ( 81, 23, 8, - 44 + 34 ) AS col2
----
85

query I rowsort
SELECT - 89 - - + 82 + + - 40
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT ALL COALESCE ( + - 27, 4, - 3 + - + 75 + + + 10 + - 12 * - - 19 * - + COUNT( * ) * + COUNT( * ), 98 )
----
-27

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL COALESCE ( + - 27, 4, - 3 + - + 75 + + + 10 + - 12 * - - 19 * - + COUNT ( * ) * + COUNT ( * ), 98 )
----
-27

query I rowsort
SELECT - 60 + - 16
----
-76

query II rowsort
SELECT ALL - NULLIF ( + 72, 21 * - 54 ) + + - 66 * - 74 AS col1, - ( - NULLIF ( 46, + 24 / + 76 * - 82 ) ) + - 67
----
4812
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4233
SELECT DISTINCT COUNT( * ), - 24 * SUM( - 71 ) * - + CASE + - 15 WHEN CAST( - 47 AS SIGNED ) * 21 + 9 + - - 93 + ( - 60 + 79 ) + 72 THEN 72 END * 66 col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4233
SELECT DISTINCT COUNT ( * ), - 24 * SUM ( - 71 ) * - + CASE + - 15 WHEN CAST ( - 47 AS INTEGER ) * 21 + 9 + - - 93 + ( - 60 + 79 ) + 72 THEN 72 END * 66 col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4234
SELECT ALL + MAX( ALL + 55 ) + + 89 * + + 53 AS col2, 6 AS col1
----
4772
6

skipif mysql # not compatible
query II rowsort label-4234
SELECT ALL + MAX ( ALL + 55 ) + + 89 * + + 53 AS col2, 6 AS col1
----
4772
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4235
SELECT - 53 + + ( + - COALESCE ( - 26, - 57 * 52 * 60 ) ) + - ( + 32 ) col0, + 20 * COUNT( * ) AS col0
----
-59
20

skipif mysql # not compatible
query II rowsort label-4235
SELECT - 53 + + ( + - COALESCE ( - 26, - 57 * 52 * 60 ) ) + - ( + 32 ) col0, + 20 * COUNT ( * ) AS col0
----
-59
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT - 6 + + - COALESCE ( MAX( + + 6 ), + 10, - COUNT( DISTINCT - + 99 ) + - COUNT( * ) - + COUNT( * ) )
----
-12

skipif mysql # not compatible
query I rowsort label-4236
SELECT - 6 + + - COALESCE ( MAX ( + + 6 ), + 10, - COUNT ( DISTINCT - + 99 ) + - COUNT ( * ) - + COUNT ( * ) )
----
-12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4237
SELECT ALL - NULLIF ( - COALESCE ( + ( - 30 ), - 38 * 72, + 95 * 67 ), 69 ) DIV + COALESCE ( - 71, + ( CAST( - 71 AS SIGNED ) ) ) + + 33 col2
----
33

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL - NULLIF ( - COALESCE ( + ( - 30 ), - 38 * 72, + 95 * 67 ), 69 ) / + COALESCE ( - 71, + ( CAST ( - 71 AS INTEGER ) ) ) + + 33 col2
----
33

query I rowsort
SELECT - 18 * 73 AS col2
----
-1314

query I rowsort
SELECT ( + + 30 )
----
30

query I rowsort
SELECT ALL - ( - + 76 ) * + - 34
----
-2584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4241
SELECT ( - COALESCE ( COALESCE ( 93, - - 24 DIV 10 DIV + COUNT( * ) * - - CASE - 11 WHEN + - CASE - 51 WHEN COUNT( * ) THEN NULL ELSE 32 * 44 END + - MIN( 60 ) THEN 35 + COUNT( * ) * 80 WHEN + 11 THEN - 71 END ), 38 * - 21 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-4241
SELECT ( - COALESCE ( COALESCE ( 93, - - 24 / 10 / + COUNT ( * ) * - - CASE - 11 WHEN + - CASE - 51 WHEN COUNT ( * ) THEN NULL ELSE 32 * 44 END + - MIN ( 60 ) THEN 35 + COUNT ( * ) * 80 WHEN + 11 THEN - 71 END ), 38 * - 21 ) )
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-4242
SELECT DISTINCT + 93 DIV + 11
----
8

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT + 93 / + 11
----
8

query I rowsort
SELECT - - 19 * 88 AS col0
----
1672

query I rowsort
SELECT - ( + 79 ) * 56
----
-4424

query I rowsort
SELECT + - 64 * + + ( - + 36 )
----
2304

query II rowsort
SELECT ALL + + 18, 96 AS col2
----
18
96

query II rowsort
SELECT + 10 col1, 15
----
10
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4248
SELECT ALL COUNT( * ) * - COUNT( * ) + 8 - COUNT( * ) * + COUNT( * ) / - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL COUNT ( * ) * - COUNT ( * ) + 8 - COUNT ( * ) * + COUNT ( * ) / - + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4249
SELECT ALL - + CAST( NULL AS DECIMAL ) * + - 78 + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL - + CAST ( NULL AS REAL ) * + - 78 + + 33
----
NULL

query II rowsort
SELECT DISTINCT - 43 AS col1, 55 AS col0
----
-43
55

query I rowsort
SELECT DISTINCT ( + 95 ) * - 45 + + + 37
----
-4238

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT DISTINCT 37 * + 21 + COUNT( * )
----
778

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT 37 * + 21 + COUNT ( * )
----
778

query I rowsort
SELECT + + 37 + - 99 + 37 * 46 AS col2
----
1640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4254
SELECT CAST( - 46 AS SIGNED ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-4254
SELECT CAST ( - 46 AS INTEGER ) AS col2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4255
SELECT ALL 86 * 71 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL 86 * 71 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT - - 51 col2, + 42 - + + 54 AS col1
----
51
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4257
SELECT CAST( 29 AS SIGNED ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4257
SELECT CAST ( 29 AS INTEGER ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT MAX( + + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-4258
SELECT MAX ( + + 58 )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4259
SELECT + 84 DIV + 82
----
1

skipif mysql # not compatible
query I rowsort label-4259
SELECT + 84 / + 82
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4260
SELECT + CAST( NULL AS DECIMAL ) + - 10, MAX( DISTINCT 24 ) * 30 * - + 10 + - 97 AS col0
----
NULL
-7297

skipif mysql # not compatible
query II rowsort label-4260
SELECT + CAST ( NULL AS REAL ) + - 10, MAX ( DISTINCT 24 ) * 30 * - + 10 + - 97 AS col0
----
NULL
-7297

query I rowsort
SELECT DISTINCT ( + - 13 ) + + 39 + - 75
----
-49

query I rowsort
SELECT ALL 31 * - + 70 AS col1
----
-2170

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT ALL 42 DIV - - 30 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL 42 / - - 30 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4264
SELECT ALL + 94 + - CAST( NULL AS SIGNED ) + + ( + - 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL + 94 + - CAST ( NULL AS INTEGER ) + + ( + - 22 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT ALL 71 * + ( - 93 ) * - - 95 - - + 49 - + - COUNT( * ) AS col0
----
-627235

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL 71 * + ( - 93 ) * - - 95 - - + 49 - + - COUNT ( * ) AS col0
----
-627235

query II rowsort
SELECT + 94 - + 32, 55 + 86 AS col1
----
62
141

query I rowsort
SELECT ALL 35 * + 11
----
385

onlyif mysql # aggregate syntax: 
query II rowsort label-4268
SELECT ALL - 50 - + - COUNT( * ) AS col2, + 20 col1
----
-49
20

skipif mysql # not compatible
query II rowsort label-4268
SELECT ALL - 50 - + - COUNT ( * ) AS col2, + 20 col1
----
-49
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT ALL - NULLIF ( - + 28, + SUM( 61 ) / - ( 21 ) )
----
28

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL - NULLIF ( - + 28, + SUM ( 61 ) / - ( 21 ) )
----
28

query II rowsort
SELECT 52 - - + 98 + - - 67 AS col0, 55 AS col0
----
217
55

query I rowsort
SELECT - 83 * - 28
----
2324

query I rowsort
SELECT - ( + 30 ) + - + 60 + - 94 AS col1
----
-184

query I rowsort
SELECT + 31 * ( + 58 ) + - 20
----
1778

query I rowsort
SELECT DISTINCT - + 60 * + 87 + - - 83
----
-5137

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT ALL - MIN( ALL - 97 ) + COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL - MIN ( ALL - 97 ) + COUNT ( * ) AS col1
----
98

query II rowsort
SELECT ALL + 46 + - 85, + 40 AS col1
----
-39
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4277
SELECT ALL - 88 + 94 + - 19 + - 10 + 63 + 56 + ( + ( + CAST( NULL AS SIGNED ) ) ) * - 68 * + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL - 88 + 94 + - 19 + - 10 + 63 + 56 + ( + ( + CAST ( NULL AS INTEGER ) ) ) * - 68 * + 72
----
NULL

query I rowsort
SELECT 86 + - 53 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT + COALESCE ( + ( - - COUNT( * ) ), 85 )
----
1

skipif mysql # not compatible
query I rowsort label-4279
SELECT + COALESCE ( + ( - - COUNT ( * ) ), 85 )
----
1

query I rowsort
SELECT ALL - 86 + + 12
----
-74

query II rowsort
SELECT 37 col0, + 59 * + - 23
----
37
-1357

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT DISTINCT CASE 17 WHEN + 79 * - 20 THEN 20 - + 3 * 96 ELSE - - 32 END + 71 * COUNT( * )
----
103

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT CASE 17 WHEN + 79 * - 20 THEN 20 - + 3 * 96 ELSE - - 32 END + 71 * COUNT ( * )
----
103

query I rowsort
SELECT DISTINCT 90 * - + 55
----
-4950

query II rowsort
SELECT ALL - 98 + 12 - + 19, 4 col2
----
-105
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT 21 * COALESCE ( - - NULLIF ( + NULLIF ( + 36, + 7 / + MIN( - 26 ) + - 78 * ( 48 ) * + + COUNT( - + 19 ) + + 37 ), 28 ), 84 ) AS col2
----
756

skipif mysql # not compatible
query I rowsort label-4285
SELECT 21 * COALESCE ( - - NULLIF ( + NULLIF ( + 36, + 7 / + MIN ( - 26 ) + - 78 * ( 48 ) * + + COUNT ( - + 19 ) + + 37 ), 28 ), 84 ) AS col2
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT 27 + NULLIF ( COUNT( * ), + + 53 + - 19 + + + 78 ) + - COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4286
SELECT 27 + NULLIF ( COUNT ( * ), + + 53 + - 19 + + + 78 ) + - COUNT ( * ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT DISTINCT 36 - - COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT 36 - - COUNT ( * ) AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4288
SELECT COUNT( * ) DIV + 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4288
SELECT COUNT ( * ) / + 74 AS col2
----
0

query I rowsort
SELECT 11 * - 52
----
-572

query II rowsort
SELECT - 47, - 54 + - 59 * - 79 * + 52 col2
----
-47
242318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4291
SELECT 26 + - CAST( NULL AS SIGNED ) * - 41 / + 34 * - 51 - - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-4291
SELECT 26 + - CAST ( NULL AS INTEGER ) * - 41 / + 34 * - 51 - - 44
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4292
SELECT COUNT( * ) DIV ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4292
SELECT COUNT ( * ) / ( COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4293
SELECT ( 45 ) DIV - COUNT( * ) AS col1, 27 * COUNT( * )
----
-45
27

skipif mysql # not compatible
query II rowsort label-4293
SELECT ( 45 ) / - COUNT ( * ) AS col1, 27 * COUNT ( * )
----
-45
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ( + 53 ) + + NULLIF ( + - COUNT( ALL - 87 ), COUNT( * ) / + - 68 + CASE + 33 WHEN - 71 THEN - 55 / 31 * - 75 + 33 + 31 ELSE 87 * + CASE + 28 * ( - ( 84 ) ) WHEN + 99 THEN NULL ELSE COUNT( * ) END + + 34 END - + NULLIF ( 27, - COUNT( 96 ) ) * 61 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-4294
SELECT ( + 53 ) + + NULLIF ( + - COUNT ( ALL - 87 ), COUNT ( * ) / + - 68 + CASE + 33 WHEN - 71 THEN - 55 / 31 * - 75 + 33 + 31 ELSE 87 * + CASE + 28 * ( - ( 84 ) ) WHEN + 99 THEN NULL ELSE COUNT ( * ) END + + 34 END - + NULLIF ( 27, - COUNT ( 96 ) ) * 61 ) AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4295
SELECT CASE + 34 WHEN 24 THEN + COUNT( * ) - + + ( ( 94 ) ) + - COUNT( + + ( + 92 ) ) END * - CAST( - 82 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT CASE + 34 WHEN 24 THEN + COUNT ( * ) - + + ( ( 94 ) ) + - COUNT ( + + ( + 92 ) ) END * - CAST ( - 82 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT - ( + 27 ) * - ( + + 22 ) + + + 10 * - + SUM( - + 61 ) AS col2
----
1204

skipif mysql # not compatible
query I rowsort label-4296
SELECT - ( + 27 ) * - ( + + 22 ) + + + 10 * - + SUM ( - + 61 ) AS col2
----
1204

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT + COUNT( DISTINCT 28 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4297
SELECT + COUNT ( DISTINCT 28 ) AS col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4298
SELECT DISTINCT - 30 + - + CAST( NULL AS DECIMAL ) * - - NULLIF ( + + ( - 52 ), - + 96 ) / + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT - 30 + - + CAST ( NULL AS REAL ) * - - NULLIF ( + + ( - 52 ), - + 96 ) / + 58 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT ALL - 97 + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL - 97 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 57 + + - 27 AS col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4301
SELECT DISTINCT - SUM( ALL - - 83 ) DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT - SUM ( ALL - - 83 ) / + 90
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4302
SELECT ALL - + 95 + - - 12 + + - 73 AS col1, - 72 + + - CAST( - + NULLIF ( - - AVG ( DISTINCT 80 ), + COUNT( * ) + + + 16 ) AS SIGNED )
----
-156
8

skipif mysql # not compatible
query II rowsort label-4302
SELECT ALL - + 95 + - - 12 + + - 73 AS col1, - 72 + + - CAST ( - + NULLIF ( - - AVG ( DISTINCT 80 ), + COUNT ( * ) + + + 16 ) AS INTEGER )
----
-156
8

query II rowsort
SELECT DISTINCT - 14 AS col0, 75
----
-14
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4304
SELECT + 50 DIV 33 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4304
SELECT + 50 / 33 AS col1
----
1

query I rowsort
SELECT 1 * CASE - 44 WHEN + ( 8 ) THEN + 58 + 97 / 94 END * - + 91 + 22 + + 7 * - 85 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4306
SELECT DISTINCT + + 82 * - 49 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT + + 82 * - 49 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT - COUNT( * ) * - + 6 * + ( + COUNT( * ) ) - + 57 col0
----
-51

skipif mysql # not compatible
query I rowsort label-4307
SELECT - COUNT ( * ) * - + 6 * + ( + COUNT ( * ) ) - + 57 col0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4308
SELECT 81 DIV + 26 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4308
SELECT 81 / + 26 AS col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4309
SELECT 80 AS col1, 45 * MIN( - 33 ) * 7 - + ( 11 )
----
80
-10406

skipif mysql # not compatible
query II rowsort label-4309
SELECT 80 AS col1, 45 * MIN ( - 33 ) * 7 - + ( 11 )
----
80
-10406

query I rowsort
SELECT ALL + 66 * + - 29 AS col1
----
-1914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT ALL CAST( NULL AS SIGNED ) / + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL CAST ( NULL AS INTEGER ) / + 31
----
NULL

query II rowsort
SELECT 95 + 82 * + - 13 * - - 61, - 53 * - 10 AS col0
----
-64931
530

query II rowsort
SELECT 30 * - 96 AS col1, 51 * - + 78
----
-2880
-3978

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4314
SELECT - 53 + - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4314
SELECT - 53 + - + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT + 59 * - + 88 * - 73 AS col2
----
379016

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT - COUNT( * ) + 67
----
66

skipif mysql # not compatible
query I rowsort label-4316
SELECT - COUNT ( * ) + 67
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT DISTINCT SUM( DISTINCT - - 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT SUM ( DISTINCT - - 85 ) AS col0
----
85

query I rowsort
SELECT - 87 * - - 73
----
-6351

onlyif mysql # aggregate syntax: 
query II rowsort label-4319
SELECT - COUNT( * ) - + 82 * - + 51 * + - COUNT( * ), + ( - 15 ) col1
----
-4183
-15

skipif mysql # not compatible
query II rowsort label-4319
SELECT - COUNT ( * ) - + 82 * - + 51 * + - COUNT ( * ), + ( - 15 ) col1
----
-4183
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4320
SELECT + MAX( DISTINCT + 89 ) AS col0, 65
----
89
65

skipif mysql # not compatible
query II rowsort label-4320
SELECT + MAX ( DISTINCT + 89 ) AS col0, 65
----
89
65

query I rowsort
SELECT - + 56 - + 50 AS col1
----
-106

query I rowsort
SELECT + - 82 * - 56 + + 16 + + ( + 79 ) * + 92 * - 59 * - 50
----
21445208

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT ALL + CASE + 15 WHEN + ( - 15 ) * + COUNT( * ) * - CASE - + 95 WHEN - + 50 * + ( 45 ) THEN NULL WHEN - 11 THEN - - 28 + + MIN( DISTINCT - 39 ) + + 50 / 90 END + + 97 THEN 96 + 50 ELSE - 77 END AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL + CASE + 15 WHEN + ( - 15 ) * + COUNT ( * ) * - CASE - + 95 WHEN - + 50 * + ( 45 ) THEN NULL WHEN - 11 THEN - - 28 + + MIN ( DISTINCT - 39 ) + + 50 / 90 END + + 97 THEN 96 + 50 ELSE - 77 END AS col0
----
-77

query II rowsort
SELECT ALL - 11 * - 83 + + 75 * - 52 AS col1, 37
----
-2987
37

query I rowsort
SELECT + ( + + 67 ) - - - 65 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT 46 DIV - 89 * 15 + - - 76
----
76

skipif mysql # not compatible
query I rowsort label-4326
SELECT 46 / - 89 * 15 + - - 76
----
76

query I rowsort
SELECT + - 55 + + 67 AS col1
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4328
SELECT COUNT( * ) * - 35 + - ( - 75 ) DIV 27 AS col1, - 55 AS col1
----
-33
-55

skipif mysql # not compatible
query II rowsort label-4328
SELECT COUNT ( * ) * - 35 + - ( - 75 ) / 27 AS col1, - 55 AS col1
----
-33
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4329
SELECT + + CAST( NULL AS SIGNED ) + + 90 + + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4329
SELECT + + CAST ( NULL AS INTEGER ) + + 90 + + 44 AS col2
----
NULL

query I rowsort
SELECT + 93 * + 52
----
4836

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4331
SELECT ALL - 24 * 52 DIV 25 - - COUNT( + 63 )
----
-48

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL - 24 * 52 / 25 - - COUNT ( + 63 )
----
-48

query I rowsort
SELECT - 13 + 56
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT + CASE WHEN NOT + 76 IS NULL THEN + 4 ELSE + + ( + + MAX( - 89 ) ) + + 49 * - 82 END
----
4

skipif mysql # not compatible
query I rowsort label-4333
SELECT + CASE WHEN NOT + 76 IS NULL THEN + 4 ELSE + + ( + + MAX ( - 89 ) ) + + 49 * - 82 END
----
4

query I rowsort
SELECT - 90 + - 85
----
-175

query I rowsort
SELECT + 1 * + 68
----
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4336
SELECT DISTINCT + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT + AVG ( DISTINCT + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT MAX( + - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-4337
SELECT MAX ( + - 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL + COUNT( * ) * + 42 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL + COUNT ( * ) * + 42 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT COUNT( - + 18 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4339
SELECT COUNT ( - + 18 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4340
SELECT - CASE - 10 WHEN + 50 THEN NULL ELSE + 89 END DIV + 17 AS col2, 55 AS col0
----
-5
55

skipif mysql # not compatible
query II rowsort label-4340
SELECT - CASE - 10 WHEN + 50 THEN NULL ELSE + 89 END / + 17 AS col2, 55 AS col0
----
-5
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4341
SELECT + 71 * - + ( - COUNT( * ) ) DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-4341
SELECT + 71 * - + ( - COUNT ( * ) ) / 84
----
0

query I rowsort
SELECT ALL NULLIF ( 88, - 77 ) AS col0
----
88

query I rowsort
SELECT DISTINCT + 8 * + 13 AS col1
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-4344
SELECT - 24 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-4344
SELECT - 24 / - 85
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4345
SELECT ALL CAST( - NULLIF ( - - 5, - 2 * 37 ) AS SIGNED ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL CAST ( - NULLIF ( - - 5, - 2 * 37 ) AS INTEGER ) AS col2
----
-5

query I rowsort
SELECT ALL + 63 * 56
----
3528

onlyif mysql # DIV for integer division: 
query I rowsort label-4347
SELECT - 93 DIV - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4347
SELECT - 93 / - 95 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4348
SELECT ALL - 91 + + 76 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL - 91 + + 76 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT - COUNT( ALL 19 ) + 0
----
-1

skipif mysql # not compatible
query I rowsort label-4349
SELECT - COUNT ( ALL 19 ) + 0
----
-1

query I rowsort
SELECT - 40 - + - 43 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT DISTINCT + + ( + 50 ) + 65 * - + NULLIF ( + - COUNT( * ), + - 4 + + NULLIF ( + 23, + 65 ) )
----
115

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT + + ( + 50 ) + 65 * - + NULLIF ( + - COUNT ( * ), + - 4 + + NULLIF ( + 23, + 65 ) )
----
115

query I rowsort
SELECT DISTINCT - - ( 60 ) + 34
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT DISTINCT - - 53 + + 44 * COALESCE ( - COUNT( * ), + 12 )
----
9

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT - - 53 + + 44 * COALESCE ( - COUNT ( * ), + 12 )
----
9

query II rowsort
SELECT ALL 91 + + 86 + + - 78 AS col0, - 30
----
99
-30

query I rowsort
SELECT - 61 + - 95 + 44 AS col2
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT ALL + - COUNT( * ) * 69
----
-69

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL + - COUNT ( * ) * 69
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4357
SELECT + + ( + ( AVG ( + 72 ) ) ) + CAST( NULL AS SIGNED ) AS col1, 36 + + NULLIF ( - COUNT( * ), + + 58 ) * - 30
----
NULL
66

skipif mysql # not compatible
query II rowsort label-4357
SELECT + + ( + ( AVG ( + 72 ) ) ) + CAST ( NULL AS INTEGER ) AS col1, 36 + + NULLIF ( - COUNT ( * ), + + 58 ) * - 30
----
NULL
66

onlyif mysql # DIV for integer division: 
query II rowsort label-4358
SELECT ALL + 28 DIV - - 32 * + ( - 92 ) + + 24, - NULLIF ( - 1, - - ( 3 ) ) * - 92 AS col0
----
24
-92

skipif mysql # not compatible
query II rowsort label-4358
SELECT ALL + 28 / - - 32 * + ( - 92 ) + + 24, - NULLIF ( - 1, - - ( 3 ) ) * - 92 AS col0
----
24
-92

query I rowsort
SELECT + + NULLIF ( + 15, - + 94 ) col0
----
15

query I rowsort
SELECT + - ( + ( + - 93 ) )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4361
SELECT DISTINCT - - 98 * COUNT( - 50 ) AS col1, + CASE - COUNT( * ) WHEN + - 27 THEN + - 80 END + - 55 / - 75 * - 5
----
98
NULL

skipif mysql # not compatible
query II rowsort label-4361
SELECT DISTINCT - - 98 * COUNT ( - 50 ) AS col1, + CASE - COUNT ( * ) WHEN + - 27 THEN + - 80 END + - 55 / - 75 * - 5
----
98
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4362
SELECT ALL - 99 DIV + + 67 - + 35
----
-36

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL - 99 / + + 67 - + 35
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4363
SELECT ALL 65 DIV CASE + 15 WHEN COUNT( * ) * + ( + 77 ) THEN 95 * 97 DIV CAST( NULL AS SIGNED ) + + + 40 ELSE + + 36 END * - 30 + + ( - 13 )
----
-43

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL 65 / CASE + 15 WHEN COUNT ( * ) * + ( + 77 ) THEN 95 * 97 / CAST ( NULL AS INTEGER ) + + + 40 ELSE + + 36 END * - 30 + + ( - 13 )
----
-43

query I rowsort
SELECT ( - - 88 ) AS col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4365
SELECT DISTINCT 13 * CAST( - 4 AS SIGNED ) * - - 7 * + 19 + + - 0 * + 55 * - ( + - 81 ) DIV - NULLIF ( - 93, - - NULLIF ( MIN( DISTINCT + + 62 ), + - 96 ) ) * 99 AS col1
----
-6916

skipif mysql # not compatible
query I rowsort label-4365
SELECT DISTINCT 13 * CAST ( - 4 AS INTEGER ) * - - 7 * + 19 + + - 0 * + 55 * - ( + - 81 ) / - NULLIF ( - 93, - - NULLIF ( MIN ( DISTINCT + + 62 ), + - 96 ) ) * 99 AS col1
----
-6916

query II rowsort
SELECT ALL - 75 AS col0, - ( - + 89 ) * - + 30 AS col2
----
-75
-2670

query I rowsort
SELECT COALESCE ( - 67, ( + 19 ), + 64 - - 42 * 91 * ( 47 ) + - + 99 ) * + 56 + - 75
----
-3827

query I rowsort
SELECT ( - 41 ) * - 14 * + - 39 AS col2
----
-22386

query I rowsort
SELECT 67 * + 63 - + 96 * NULLIF ( + 68, + 55 * 37 ) AS col2
----
-2307

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4370
SELECT ALL ( + - CASE - 66 WHEN COALESCE ( 27, 54 ) THEN + + 34 * - 27 END ) * + - 74, + CAST( + + 27 AS SIGNED ) AS col2
----
NULL
27

skipif mysql # not compatible
query II rowsort label-4370
SELECT ALL ( + - CASE - 66 WHEN COALESCE ( 27, 54 ) THEN + + 34 * - 27 END ) * + - 74, + CAST ( + + 27 AS INTEGER ) AS col2
----
NULL
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT ( + 12 ) * + + 32 * - - COUNT( * ) + - + 80 * - COUNT( * ) AS col2
----
464

skipif mysql # not compatible
query I rowsort label-4371
SELECT ( + 12 ) * + + 32 * - - COUNT ( * ) + - + 80 * - COUNT ( * ) AS col2
----
464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4372
SELECT DISTINCT - COALESCE ( + 23, + - CAST( + - 67 AS SIGNED ), 66 ) col2
----
-23

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT - COALESCE ( + 23, + - CAST ( + - 67 AS INTEGER ), 66 ) col2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4373
SELECT + 46 * - COUNT( * ) DIV - ( 86 ) - MAX( 92 ) + + 42 DIV + 17 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-4373
SELECT + 46 * - COUNT ( * ) / - ( 86 ) - MAX ( 92 ) + + 42 / + 17 AS col1
----
-90

query II rowsort
SELECT ALL 99 AS col1, 32 + ( 65 ) * - 29 AS col2
----
99
-1853

query I rowsort
SELECT 26 * + 71
----
1846

query I rowsort
SELECT 61 + + + ( 97 )
----
158

query I rowsort
SELECT 65 - + ( - - 97 )
----
-32

query I rowsort
SELECT ALL 58 + + - 71 AS col0
----
-13

query II rowsort
SELECT - 9, 39 AS col1
----
-9
39

query I rowsort
SELECT 51 * + 29 * - 86
----
-127194

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT DISTINCT 5 + - + MAX( ALL + 37 ) - COUNT( * ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT 5 + - + MAX ( ALL + 37 ) - COUNT ( * ) AS col1
----
-33

query I rowsort
SELECT ALL ( - 42 ) + 14
----
-28

query I rowsort
SELECT ALL 22 + + 29 + 6
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4384
SELECT - CASE - - 93 WHEN + 46 + CAST( + 55 AS SIGNED ) THEN NULL WHEN 8 THEN NULL ELSE - 41 * - COUNT( * ) END
----
-41

skipif mysql # not compatible
query I rowsort label-4384
SELECT - CASE - - 93 WHEN + 46 + CAST ( + 55 AS INTEGER ) THEN NULL WHEN 8 THEN NULL ELSE - 41 * - COUNT ( * ) END
----
-41

query I rowsort
SELECT 30 * - + 37
----
-1110

query I rowsort
SELECT ALL - 10 * + 60 AS col0
----
-600

query I rowsort
SELECT ALL + 19 + - 59 * 60 AS col2
----
-3521

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4388
SELECT - 11 - NULLIF ( - 20, 50 + 93 ) + - + 47 - 30 + CAST( NULL AS SIGNED ) + + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4388
SELECT - 11 - NULLIF ( - 20, 50 + 93 ) + - + 47 - 30 + CAST ( NULL AS INTEGER ) + + 5 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ALL + 58 - 93 * + 24 * 56 * COUNT( * ) col2
----
-124934

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL + 58 - 93 * + 24 * 56 * COUNT ( * ) col2
----
-124934

query I rowsort
SELECT DISTINCT - + 46 - 47
----
-93

query I rowsort
SELECT + 18 + + 75 AS col1
----
93

query I rowsort
SELECT - + 9 * + - 71 - + 1
----
638

query I rowsort
SELECT 58 * COALESCE ( + - COALESCE ( - 90, - - 67, - 7 ), + 26, + 62 ) * - 69
----
-360180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4394
SELECT ALL - COALESCE ( - NULLIF ( 40, - COALESCE ( + 66, - 58, + + 77 * - 62 ) + - 10 ), + 46, - + COALESCE ( - CAST( - COUNT( * ) AS SIGNED ), ( - NULLIF ( 7, - 54 ) ) ) + - ( - 95 ) * 80 ) * COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL - COALESCE ( - NULLIF ( 40, - COALESCE ( + 66, - 58, + + 77 * - 62 ) + - 10 ), + 46, - + COALESCE ( - CAST ( - COUNT ( * ) AS INTEGER ), ( - NULLIF ( 7, - 54 ) ) ) + - ( - 95 ) * 80 ) * COUNT ( * )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4395
SELECT 11 + - COUNT( * ) DIV + 40 * 35 * + 3 * + + 84
----
11

skipif mysql # not compatible
query I rowsort label-4395
SELECT 11 + - COUNT ( * ) / + 40 * 35 * + 3 * + + 84
----
11

query I rowsort
SELECT 46 * + 33 AS col0
----
1518

onlyif mysql # aggregate syntax: 
query II rowsort label-4397
SELECT DISTINCT - ( 0 ) AS col2, - 70 * - COUNT( * ) * + NULLIF ( - 39, - ( 67 ) * + ( - + COUNT( * ) ) + - 78 )
----
0
-2730

skipif mysql # not compatible
query II rowsort label-4397
SELECT DISTINCT - ( 0 ) AS col2, - 70 * - COUNT ( * ) * + NULLIF ( - 39, - ( 67 ) * + ( - + COUNT ( * ) ) + - 78 )
----
0
-2730

onlyif mysql # aggregate syntax: 
query II rowsort label-4398
SELECT ALL - 36 * 4 AS col0, CASE - MAX( DISTINCT 72 ) WHEN - COUNT( * ) THEN 3 WHEN NULLIF ( - ( 15 ), - + 93 ) / + 65 THEN - ( CASE - 93 WHEN + 1 THEN + + SUM( 35 ) WHEN - 49 + 83 THEN - 37 WHEN 20 THEN + 26 * - 37 - 91 END ) ELSE NULL END
----
-144
NULL

skipif mysql # not compatible
query II rowsort label-4398
SELECT ALL - 36 * 4 AS col0, CASE - MAX ( DISTINCT 72 ) WHEN - COUNT ( * ) THEN 3 WHEN NULLIF ( - ( 15 ), - + 93 ) / + 65 THEN - ( CASE - 93 WHEN + 1 THEN + + SUM ( 35 ) WHEN - 49 + 83 THEN - 37 WHEN 20 THEN + 26 * - 37 - 91 END ) ELSE NULL END
----
-144
NULL

query I rowsort
SELECT DISTINCT - ( - 46 ) AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4400
SELECT ALL - CAST( + 38 AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL - CAST ( + 38 AS INTEGER )
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-4401
SELECT 26 DIV 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4401
SELECT 26 / 72 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4402
SELECT CAST( + 7 AS SIGNED ) * + ( CASE + 18 WHEN - 31 THEN NULL WHEN COUNT( * ) THEN - - 1 + + 63 + - 76 * - 49 ELSE + ( + 77 ) END ) * + 21 + - 74
----
11245

skipif mysql # not compatible
query I rowsort label-4402
SELECT CAST ( + 7 AS INTEGER ) * + ( CASE + 18 WHEN - 31 THEN NULL WHEN COUNT ( * ) THEN - - 1 + + 63 + - 76 * - 49 ELSE + ( + 77 ) END ) * + 21 + - 74
----
11245

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT + COUNT( ALL + 42 )
----
1

skipif mysql # not compatible
query I rowsort label-4403
SELECT + COUNT ( ALL + 42 )
----
1

query I rowsort
SELECT ALL 52 * - 27 AS col1
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT 61 + + - 75 * COUNT( * ) + - MIN( + 16 ) + + - 43
----
-73

skipif mysql # not compatible
query I rowsort label-4405
SELECT 61 + + - 75 * COUNT ( * ) + - MIN ( + 16 ) + + - 43
----
-73

query I rowsort
SELECT ALL - ( - 39 ) + 76 + 45 AS col1
----
160

query II rowsort
SELECT ALL 23 + + 68, 28 AS col2
----
91
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL 46 + + + COUNT( * ) + + 8 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL 46 + + + COUNT ( * ) + + 8 AS col1
----
55

query I rowsort
SELECT ALL 5 + - 71 * - ( + 35 ) AS col1
----
2490

query I rowsort
SELECT 83 + ( + - 79 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4411
SELECT - - CAST( CAST( - 80 AS SIGNED ) AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-4411
SELECT - - CAST ( CAST ( - 80 AS INTEGER ) AS INTEGER )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT - COUNT( * ) + - 75
----
-76

skipif mysql # not compatible
query I rowsort label-4412
SELECT - COUNT ( * ) + - 75
----
-76

query II rowsort
SELECT ALL 13 - 38 AS col0, 57
----
-25
57

query I rowsort
SELECT 63 + 38 + 71 + 37 * 44
----
1800

onlyif mysql # DIV for integer division: 
query I rowsort label-4415
SELECT DISTINCT + 31 DIV + 84 + 71 * + 62
----
4402

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT + 31 / + 84 + 71 * + 62
----
4402

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4416
SELECT 52 - 95 * + 76 DIV - COUNT( * ) col2
----
7272

skipif mysql # not compatible
query I rowsort label-4416
SELECT 52 - 95 * + 76 / - COUNT ( * ) col2
----
7272

onlyif mysql # DIV for integer division: 
query I rowsort label-4417
SELECT DISTINCT 1 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT 1 / - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT + MIN( ALL + 92 ) * COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4418
SELECT + MIN ( ALL + 92 ) * COUNT ( * ) AS col2
----
92

query II rowsort
SELECT ALL + 38 * + 99, + 64 AS col1
----
3762
64

query I rowsort
SELECT - 59 + + - 66
----
-125

query I rowsort
SELECT 93 * + 37 AS col0
----
3441

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT 24 + + COUNT( ALL 3 ) * + + 45 * + ( + - 10 ) * - - 52 - COUNT( * )
----
-23377

skipif mysql # not compatible
query I rowsort label-4422
SELECT 24 + + COUNT ( ALL 3 ) * + + 45 * + ( + - 10 ) * - - 52 - COUNT ( * )
----
-23377

query II rowsort
SELECT + 12 * + 46 col0, 97 + - 84 AS col1
----
552
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4424
SELECT + 16 DIV + 73 AS col2, MIN( - 96 ) * + 8 + 20 AS col2
----
0
-748

skipif mysql # not compatible
query II rowsort label-4424
SELECT + 16 / + 73 AS col2, MIN ( - 96 ) * + 8 + 20 AS col2
----
0
-748

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4425
SELECT - + ( + - COUNT( * ) ) * + + 23 DIV - COUNT( * ) - 28 + ( 18 ) + COUNT( * ) col2
----
-32

skipif mysql # not compatible
query I rowsort label-4425
SELECT - + ( + - COUNT ( * ) ) * + + 23 / - COUNT ( * ) - 28 + ( 18 ) + COUNT ( * ) col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT + COUNT( * ) * + 56 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4426
SELECT + COUNT ( * ) * + 56 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL + MAX( + 66 ) col1
----
66

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL + MAX ( + 66 ) col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT COALESCE ( + 40, - 87 + - COUNT( * ) - + - 6 )
----
40

skipif mysql # not compatible
query I rowsort label-4428
SELECT COALESCE ( + 40, - 87 + - COUNT ( * ) - + - 6 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL + ( + 64 ) * + 47 * + - 78 + + 99 * 89 + + COUNT( * ) + - - ( - 33 ) + + 18 * - - 37 * 82 AS col0
----
-171233

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL + ( + 64 ) * + 47 * + - 78 + + 99 * 89 + + COUNT ( * ) + - - ( - 33 ) + + 18 * - - 37 * 82 AS col0
----
-171233

query II rowsort
SELECT + 85 AS col0, + 13 AS col2
----
85
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT - 71 * + MIN( + 90 )
----
-6390

skipif mysql # not compatible
query I rowsort label-4431
SELECT - 71 * + MIN ( + 90 )
----
-6390

query II rowsort
SELECT ALL 19 * - 12 + 24 AS col0, ( - ( - + 76 ) ) AS col1
----
-204
76

query I rowsort
SELECT - 38 * + 66 - - ( - COALESCE ( 61, + + 50 + 73 * - 97 * - + 82 + + 69, + 12 ) )
----
-2569

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT COUNT( DISTINCT + - 33 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4434
SELECT COUNT ( DISTINCT + - 33 ) col1
----
1

query I rowsort
SELECT - 17 - - + 79 * - 54
----
-4283

query I rowsort
SELECT ALL 62 * + 71 + + 23
----
4425

query I rowsort
SELECT ALL 81 * + 24 + - 4 + + 39
----
1979

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT DISTINCT NULLIF ( + + 62, 0 * + ( + COUNT( DISTINCT + 68 ) ) - + - 2 + + + 66 * 60 + 65 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-4438
SELECT DISTINCT NULLIF ( + + 62, 0 * + ( + COUNT ( DISTINCT + 68 ) ) - + - 2 + + + 66 * 60 + 65 ) AS col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4439
SELECT CAST( NULL AS SIGNED ) * - + COUNT( * ) - - - ( + 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) - - - ( + 36 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4440
SELECT ALL + + 34 DIV 55 DIV + 17 + COALESCE ( - COUNT( * ), COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL + + 34 / 55 / + 17 + COALESCE ( - COUNT ( * ), COUNT ( * ) )
----
-1

query I rowsort
SELECT - 71 * - 8 + + 71 + 12
----
651

query I rowsort
SELECT + 41 * - COALESCE ( + + 60, - 59 ) AS col0
----
-2460

query I rowsort
SELECT - 84 * + 1
----
-84

query I rowsort
SELECT ALL + 2 * - 91 AS col2
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT ALL - + CASE - CASE + 74 WHEN - MIN( DISTINCT 64 ) THEN - 41 ELSE NULL END WHEN - 35 + - - 86 + COUNT( * ) THEN 87 END - 92 * - 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL - + CASE - CASE + 74 WHEN - MIN ( DISTINCT 64 ) THEN - 41 ELSE NULL END WHEN - 35 + - - 86 + COUNT ( * ) THEN 87 END - 92 * - 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT ALL - - COUNT( * ) * 80 * + COALESCE ( 1, 20 + + - 50, 95 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL - - COUNT ( * ) * 80 * + COALESCE ( 1, 20 + + - 50, 95 ) AS col1
----
80

query II rowsort
SELECT ALL + 72 AS col1, 86
----
72
86

query I rowsort
SELECT DISTINCT + 8 * + 22 * + ( 76 ) AS col1
----
13376

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT + + SUM( ALL - - COALESCE ( + NULLIF ( + 23, 79 + + 52 ), 26 ) ) * COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-4449
SELECT + + SUM ( ALL - - COALESCE ( + NULLIF ( + 23, 79 + + 52 ), 26 ) ) * COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4450
SELECT 41 AS col0, 80 + - + COUNT( * ) + + ( - + 80 )
----
41
-1

skipif mysql # not compatible
query II rowsort label-4450
SELECT 41 AS col0, 80 + - + COUNT ( * ) + + ( - + 80 )
----
41
-1

query I rowsort
SELECT + + 95 - + + 27 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT - 84 * 90 + - - SUM( + - 76 ) AS col2
----
-7636

skipif mysql # not compatible
query I rowsort label-4452
SELECT - 84 * 90 + - - SUM ( + - 76 ) AS col2
----
-7636

query I rowsort
SELECT ALL - 26 + 81 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT + - 20 + + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-4454
SELECT + - 20 + + COUNT ( * )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4455
SELECT ALL - COUNT( * ) AS col0, 58 * - CAST( NULL AS SIGNED ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4455
SELECT ALL - COUNT ( * ) AS col0, 58 * - CAST ( NULL AS INTEGER ) AS col0
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4456
SELECT + + 45 + 1 * - 25 DIV - 76 + 62 - - 10 DIV - + 38
----
107

skipif mysql # not compatible
query I rowsort label-4456
SELECT + + 45 + 1 * - 25 / - 76 + 62 - - 10 / - + 38
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-4457
SELECT ALL - 44 DIV + 56 + - 10 col1
----
-10

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL - 44 / + 56 + - 10 col1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4458
SELECT DISTINCT 47 DIV + 11 + + 35 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT 47 / + 11 + + 35 AS col1
----
39

query I rowsort
SELECT + 71 + - - 66
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4460
SELECT + 34 * + - 26 * + 55 + 48 + COUNT( * ) * 5 DIV - ( + 13 )
----
-48572

skipif mysql # not compatible
query I rowsort label-4460
SELECT + 34 * + - 26 * + 55 + 48 + COUNT ( * ) * 5 / - ( + 13 )
----
-48572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4461
SELECT ALL ( - + COUNT( * ) ) DIV + - 71 + - CAST( ( - + 33 ) AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL ( - + COUNT ( * ) ) / + - 71 + - CAST ( ( - + 33 ) AS INTEGER )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4462
SELECT + MAX( DISTINCT + 44 ) * 56 DIV - ( SUM( + 46 ) ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-4462
SELECT + MAX ( DISTINCT + 44 ) * 56 / - ( SUM ( + 46 ) ) AS col1
----
-53

query I rowsort
SELECT + 65 + 24 * - - 69 * 49 AS col1
----
81209

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT ALL - ( - 72 ) * 75 * - 36 + - 74 * - COUNT( * ) * - 74 + + 92 * - + 34 AS col1
----
-203004

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL - ( - 72 ) * 75 * - 36 + - 74 * - COUNT ( * ) * - 74 + + 92 * - + 34 AS col1
----
-203004

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT DISTINCT + SUM( + + 30 ) * - - COUNT( * ) - 28
----
2

skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT + SUM ( + + 30 ) * - - COUNT ( * ) - 28
----
2

query I rowsort
SELECT DISTINCT 70 * + - 74 - + 18 AS col0
----
-5198

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT ( 30 ) * 93 + COUNT( 3 ) + + 77
----
2868

skipif mysql # not compatible
query I rowsort label-4467
SELECT ( 30 ) * 93 + COUNT ( 3 ) + + 77
----
2868

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT ALL 45 * - 33 - - COALESCE ( - 91, + + COUNT( * ) * 21 * - 19 ) AS col1
----
-1576

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL 45 * - 33 - - COALESCE ( - 91, + + COUNT ( * ) * 21 * - 19 ) AS col1
----
-1576

query I rowsort
SELECT DISTINCT + 56 * 84 * 57
----
268128

query I rowsort
SELECT - 29 + + ( + - 49 )
----
-78

query I rowsort
SELECT - + 42 * - 74 * - + 54
----
-167832

query I rowsort
SELECT - 78 + - 80
----
-158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4473
SELECT DISTINCT + - 39 * - 10 DIV + + COUNT( * ) AS col1
----
390

skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT + - 39 * - 10 / + + COUNT ( * ) AS col1
----
390

query I rowsort
SELECT - ( ( 90 ) )
----
-90

query I rowsort
SELECT - 5 * + - 72
----
360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4476
SELECT DISTINCT COALESCE ( - + ( + 5 ), 65 DIV - - COUNT( * ) + + ( + 92 ) + + 71 * + - COUNT( 52 ) ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT COALESCE ( - + ( + 5 ), 65 / - - COUNT ( * ) + + ( + 92 ) + + 71 * + - COUNT ( 52 ) ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-4477
SELECT + 71 * + 53 col1, - SUM( + 81 )
----
3763
-81

skipif mysql # not compatible
query II rowsort label-4477
SELECT + 71 * + 53 col1, - SUM ( + 81 )
----
3763
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT + 54 + NULLIF ( - 93, SUM( DISTINCT + 89 ) ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-4478
SELECT + 54 + NULLIF ( - 93, SUM ( DISTINCT + 89 ) ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT COUNT( - + 90 ) + 14 col0
----
15

skipif mysql # not compatible
query I rowsort label-4479
SELECT COUNT ( - + 90 ) + 14 col0
----
15

query I rowsort
SELECT 41 + 73
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT ALL - + SUM( + - 77 ) + + 84
----
161

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL - + SUM ( + - 77 ) + + 84
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4482
SELECT DISTINCT - 27 + - ( - CAST( COALESCE ( - 63, - CASE COUNT( * ) WHEN + 38 THEN - 93 * 87 WHEN 36 / + - CAST( NULL AS SIGNED ) * + - COUNT( * ) THEN NULL WHEN - + 77 - - CAST( NULL AS SIGNED ) THEN - + 60 END * 45 + - COUNT( * ) ) AS SIGNED ) ) * + 14
----
-909

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT - 27 + - ( - CAST ( COALESCE ( - 63, - CASE COUNT ( * ) WHEN + 38 THEN - 93 * 87 WHEN 36 / + - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) THEN NULL WHEN - + 77 - - CAST ( NULL AS INTEGER ) THEN - + 60 END * 45 + - COUNT ( * ) ) AS INTEGER ) ) * + 14
----
-909

query II rowsort
SELECT ALL CASE WHEN NOT ( 87 ) BETWEEN - 64 AND ( 28 ) THEN 6 * + 35 + - 46 ELSE 96 END AS col0, 73 AS col0
----
164
73

query I rowsort
SELECT ALL - 94 + 52
----
-42

query I rowsort
SELECT DISTINCT + 36 + 79 col2
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4486
SELECT ALL ( 77 ) + - 18 DIV + 7 - - - CAST( - NULLIF ( 5, + CAST( - NULLIF ( 3, + 19 * CAST( 0 AS SIGNED ) + 96 * 37 ) AS SIGNED ) + - 35 + 2 ) AS SIGNED ) - 63 + 87 + + + 28 * - COUNT( ALL 29 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL ( 77 ) + - 18 / + 7 - - - CAST ( - NULLIF ( 5, + CAST ( - NULLIF ( 3, + 19 * CAST ( 0 AS INTEGER ) + 96 * 37 ) AS INTEGER ) + - 35 + 2 ) AS INTEGER ) - 63 + 87 + + + 28 * - COUNT ( ALL 29 ) AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4487
SELECT CAST( - COUNT( * ) AS SIGNED ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4487
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT DISTINCT 94 - - COUNT( 48 )
----
95

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT 94 - - COUNT ( 48 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-4489
SELECT DISTINCT - 93, 86 * COUNT( * ) * - - COUNT( * ) * - + NULLIF ( 72, - 64 ) AS col2
----
-93
-6192

skipif mysql # not compatible
query II rowsort label-4489
SELECT DISTINCT - 93, 86 * COUNT ( * ) * - - COUNT ( * ) * - + NULLIF ( 72, - 64 ) AS col2
----
-93
-6192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4490
SELECT CAST( + + 96 AS SIGNED ) * - - 61 * - - 75
----
439200

skipif mysql # not compatible
query I rowsort label-4490
SELECT CAST ( + + 96 AS INTEGER ) * - - 61 * - - 75
----
439200

onlyif mysql # DIV for integer division: 
query I rowsort label-4491
SELECT DISTINCT 41 DIV + 1 col1
----
41

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT 41 / + 1 col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT DISTINCT - MAX( DISTINCT - 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4492
SELECT DISTINCT - MAX ( DISTINCT - 13 ) AS col0
----
13

query II rowsort
SELECT DISTINCT - 22, - 52 + 54 AS col1
----
-22
2

query I rowsort
SELECT ALL 93 * 25
----
2325

query I rowsort
SELECT 61 * - 14 col2
----
-854

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT + COUNT( * ) * - ( 19 ) + 75 + 15 * + 25 * 41 AS col0
----
15431

skipif mysql # not compatible
query I rowsort label-4496
SELECT + COUNT ( * ) * - ( 19 ) + 75 + 15 * + 25 * 41 AS col0
----
15431

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT COUNT( DISTINCT + 79 ) * + - 67 * + COUNT( * ) * - COUNT( * ) - 54
----
13

skipif mysql # not compatible
query I rowsort label-4497
SELECT COUNT ( DISTINCT + 79 ) * + - 67 * + COUNT ( * ) * - COUNT ( * ) - 54
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4498
SELECT 15 DIV - + 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4498
SELECT 15 / - + 51 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4499
SELECT ALL - + CAST( + MAX( - + ( - CAST( NULL AS DECIMAL ) ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL - + CAST ( + MAX ( - + ( - CAST ( NULL AS REAL ) ) ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT 30 - - 47 + + 24 * - - 35 * + 22 + SUM( 58 ) col1
----
18615

skipif mysql # not compatible
query I rowsort label-4500
SELECT 30 - - 47 + + 24 * - - 35 * + 22 + SUM ( 58 ) col1
----
18615

query II rowsort
SELECT ALL 36 * + + 71 * - - 56 AS col2, 55
----
143136
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4502
SELECT - MAX( DISTINCT - 6 ) + + 82 + - 75 + - 75 AS col2, - 86 + + 26 AS col1
----
-62
-60

skipif mysql # not compatible
query II rowsort label-4502
SELECT - MAX ( DISTINCT - 6 ) + + 82 + - 75 + - 75 AS col2, - 86 + + 26 AS col1
----
-62
-60

query I rowsort
SELECT ALL - - NULLIF ( - ( - + 84 ), 76 ) AS col1
----
84

query I rowsort
SELECT ALL + - 54 * + 81 * - 62 * + 28
----
7593264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4505
SELECT DISTINCT + CASE CAST( - 86 AS SIGNED ) WHEN 14 / - + 99 * + 88 + + 59 - + + 93 / - 2 + - 35 / + - 49 THEN - - 61 + 84 * - 77 - + 17 + - 82 - + 77 * 61 / - 72 + 23 + + MAX( - 50 ) / COUNT( * ) / 64 WHEN + COUNT( * ) / 79 + 98 * 49 THEN NULL WHEN 25 * 66 THEN - 53 * + ( COUNT( * ) ) + CAST( 17 AS SIGNED ) END + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT + CASE CAST ( - 86 AS INTEGER ) WHEN 14 / - + 99 * + 88 + + 59 - + + 93 / - 2 + - 35 / + - 49 THEN - - 61 + 84 * - 77 - + 17 + - 82 - + 77 * 61 / - 72 + 23 + + MAX ( - 50 ) / COUNT ( * ) / 64 WHEN + COUNT ( * ) / 79 + 98 * 49 THEN NULL WHEN 25 * 66 THEN - 53 * + ( COUNT ( * ) ) + CAST ( 17 AS INTEGER ) END + 73
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4506
SELECT + 30 - 77 + + - 72 + - + 87 / 97 * 86 + + + 18 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4506
SELECT + 30 - 77 + + - 72 + - + 87 / 97 * 86 + + + 18 / + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ( - + ( 96 ) ) * - 89 AS col2
----
8544

query I rowsort
SELECT ALL + - 62 + + 72
----
10

query I rowsort
SELECT - ( 96 ) * - - 77 + + 60
----
-7332

query I rowsort
SELECT + 96 + 38 + + ( 1 ) + + 37 + - + 51 AS col2
----
121

query I rowsort
SELECT DISTINCT + ( - - 0 ) col1
----
0

query I rowsort
SELECT DISTINCT - + ( + 76 ) + + 58
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-4513
SELECT ALL - 32 + - MIN( + 94 ) + - 14 * + 17, - ( + 45 ) * + 4 AS col0
----
-364
-180

skipif mysql # not compatible
query II rowsort label-4513
SELECT ALL - 32 + - MIN ( + 94 ) + - 14 * + 17, - ( + 45 ) * + 4 AS col0
----
-364
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT 36 - 13 + - - COUNT( * ) * ( - - 33 ) - + 0 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4514
SELECT 36 - 13 + - - COUNT ( * ) * ( - - 33 ) - + 0 AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4515
SELECT 45 + - 91 AS col0, 49 * 92 + + CAST( NULL AS SIGNED ) col2
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-4515
SELECT 45 + - 91 AS col0, 49 * 92 + + CAST ( NULL AS INTEGER ) col2
----
-46
NULL

query I rowsort
SELECT 81 * + + ( + 47 ) AS col0
----
3807

query I rowsort
SELECT 55 + - 76
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ALL 54 * + - 48 * - CASE - NULLIF ( + - 34, - + 31 * + - 89 ) WHEN + + COUNT( * ) + + 24 + + 97 THEN COUNT( * ) * + 91 * - 72 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL 54 * + - 48 * - CASE - NULLIF ( + - 34, - + 31 * + - 89 ) WHEN + + COUNT ( * ) + + 24 + + 97 THEN COUNT ( * ) * + 91 * - 72 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4519
SELECT + 39 AS col2, 3 * - 59 + + CAST( NULL AS SIGNED ) / + 39 AS col1
----
39
NULL

skipif mysql # not compatible
query II rowsort label-4519
SELECT + 39 AS col2, 3 * - 59 + + CAST ( NULL AS INTEGER ) / + 39 AS col1
----
39
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4520
SELECT ALL + 83 * - + ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL + 83 * - + ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT DISTINCT 19 * + 64 * ( + COUNT( * ) ) - + 22
----
1194

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT 19 * + 64 * ( + COUNT ( * ) ) - + 22
----
1194

query I rowsort
SELECT ALL - COALESCE ( - + 16, 98 )
----
16

query I rowsort
SELECT 70 * - - 59 AS col2
----
4130

query II rowsort
SELECT DISTINCT - 41 AS col2, 47 AS col1
----
-41
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4525
SELECT 84 * 66 + - 3 - 79 * 32 DIV - + 96 + 27 AS col0
----
5594

skipif mysql # not compatible
query I rowsort label-4525
SELECT 84 * 66 + - 3 - 79 * 32 / - + 96 + 27 AS col0
----
5594

query I rowsort
SELECT 96 * - 7 AS col1
----
-672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4527
SELECT + COUNT( * ) DIV - + COALESCE ( + + 39, - 97 DIV + 25 + 28, 53 ) * 48 + - 63 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-4527
SELECT + COUNT ( * ) / - + COALESCE ( + + 39, - 97 / + 25 + 28, 53 ) * 48 + - 63 AS col1
----
-63

query I rowsort
SELECT DISTINCT 8 * + 22
----
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4529
SELECT ALL - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - 99 AS col1
----
NULL

query I rowsort
SELECT + 26 + 93 AS col2
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-4531
SELECT DISTINCT SUM( - 13 ) + + + 29 + 12 AS col1, 22
----
28
22

skipif mysql # not compatible
query II rowsort label-4531
SELECT DISTINCT SUM ( - 13 ) + + + 29 + 12 AS col1, 22
----
28
22

query I rowsort
SELECT ALL 97 + - 32
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4533
SELECT COUNT( * ) AS col0, - 69 col2
----
1
-69

skipif mysql # not compatible
query II rowsort label-4533
SELECT COUNT ( * ) AS col0, - 69 col2
----
1
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4534
SELECT DISTINCT + 60 + - 40 DIV + ( - + 68 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4534
SELECT DISTINCT + 60 + - 40 / + ( - + 68 ) AS col1
----
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4535
SELECT ALL - 38 DIV CAST( + 71 AS SIGNED ) + 29 AS col0, 40 AS col1
----
29
40

skipif mysql # not compatible
query II rowsort label-4535
SELECT ALL - 38 / CAST ( + 71 AS INTEGER ) + 29 AS col0, 40 AS col1
----
29
40

query I rowsort
SELECT + + 33 + - - 74 + 28 AS col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT ALL + COUNT( * ) + - 0 col0
----
1

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL + COUNT ( * ) + - 0 col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4538
SELECT - COUNT( * ) AS col1, - MAX( ALL + 60 )
----
-1
-60

skipif mysql # not compatible
query II rowsort label-4538
SELECT - COUNT ( * ) AS col1, - MAX ( ALL + 60 )
----
-1
-60

query II rowsort
SELECT ALL - 47 + - 63 AS col2, 93 + 98 + - 81 * + + 6 AS col1
----
-110
-295

query II rowsort
SELECT DISTINCT 45, 99 AS col0
----
45
99

query II rowsort
SELECT 97 AS col2, 70 AS col1
----
97
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT - - 8 * + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-4542
SELECT - - 8 * + COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT - COUNT( * ) + 33 * + ( - - 15 ) AS col0
----
494

skipif mysql # not compatible
query I rowsort label-4543
SELECT - COUNT ( * ) + 33 * + ( - - 15 ) AS col0
----
494

query II rowsort
SELECT ALL - 86 - 42 AS col2, - 69 AS col2
----
-128
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4545
SELECT - ( - ( SUM( ALL CAST( NULL AS SIGNED ) ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4545
SELECT - ( - ( SUM ( ALL CAST ( NULL AS INTEGER ) ) ) ) AS col2
----
NULL

query I rowsort
SELECT + 25 * - ( + ( - - 47 ) ) * + 17
----
-19975

query I rowsort
SELECT DISTINCT NULLIF ( 11, 29 * - 50 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT ALL CASE + - 2 WHEN ( + 25 ) THEN + + COUNT( * ) ELSE 80 END
----
80

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL CASE + - 2 WHEN ( + 25 ) THEN + + COUNT ( * ) ELSE 80 END
----
80

query I rowsort
SELECT DISTINCT 83 - + 62 - + - 1
----
22

query I rowsort
SELECT - 95 * + + 37
----
-3515

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT - COUNT( * ) + + + 21 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4551
SELECT - COUNT ( * ) + + + 21 AS col0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4552
SELECT - CAST( + + 79 AS SIGNED ) + 96
----
17

skipif mysql # not compatible
query I rowsort label-4552
SELECT - CAST ( + + 79 AS INTEGER ) + 96
----
17

query I rowsort
SELECT ALL NULLIF ( - 55, + 84 ) col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-4554
SELECT ALL - 15 DIV - NULLIF ( + 84, 97 )
----
0

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL - 15 / - NULLIF ( + 84, 97 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT DISTINCT + 97 * 45 * + + NULLIF ( COUNT( * ), + - 77 ) * + COUNT( DISTINCT - + 65 ) AS col1
----
4365

skipif mysql # not compatible
query I rowsort label-4555
SELECT DISTINCT + 97 * 45 * + + NULLIF ( COUNT ( * ), + - 77 ) * + COUNT ( DISTINCT - + 65 ) AS col1
----
4365

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4556
SELECT ALL + 24 DIV - COUNT( * ) * COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL + 24 / - COUNT ( * ) * COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT ALL + 79 * - MIN( ALL - 9 )
----
711

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL + 79 * - MIN ( ALL - 9 )
----
711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4558
SELECT DISTINCT 2 * - 50 + - + 39 + - - CAST( NULL AS SIGNED ) * - + 90 * SUM( + 21 ) + + - CAST( NULL AS SIGNED ) * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT DISTINCT 2 * - 50 + - + 39 + - - CAST ( NULL AS INTEGER ) * - + 90 * SUM ( + 21 ) + + - CAST ( NULL AS INTEGER ) * - 77
----
NULL

query I rowsort
SELECT DISTINCT + 98 * NULLIF ( + ( 67 ), - + 36 ) AS col1
----
6566

query I rowsort
SELECT ALL + 70 * - - 88 + 6 AS col1
----
6166

query I rowsort
SELECT - + 19 + - 94 + + - 63 AS col1
----
-176

query I rowsort
SELECT ( - - 65 ) * 20 + - 78
----
1222

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT ALL + - 23 * - 96 + ( - COUNT( * ) ) + + + ( - - 61 ) + + + 59
----
2327

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL + - 23 * - 96 + ( - COUNT ( * ) ) + + + ( - - 61 ) + + + 59
----
2327

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4564
SELECT CASE + + 25 WHEN CASE - 38 WHEN - 12 * + 82 + + 12 THEN + 48 * - 53 * - 20 + + 17 WHEN + - COUNT( * ) * COUNT( * ) + 15 - + ( + 79 ) + - + MAX( + 57 ) * - 4 * - 72 THEN + - COUNT( * ) END THEN + 85 + + 40 WHEN + 67 THEN NULL WHEN 42 + + COUNT( * ) * 16 THEN NULL ELSE CAST( NULL AS SIGNED ) + 99 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT CASE + + 25 WHEN CASE - 38 WHEN - 12 * + 82 + + 12 THEN + 48 * - 53 * - 20 + + 17 WHEN + - COUNT ( * ) * COUNT ( * ) + 15 - + ( + 79 ) + - + MAX ( + 57 ) * - 4 * - 72 THEN + - COUNT ( * ) END THEN + 85 + + 40 WHEN + 67 THEN NULL WHEN 42 + + COUNT ( * ) * 16 THEN NULL ELSE CAST ( NULL AS INTEGER ) + 99 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4565
SELECT ALL - + 24 * - 53 * 46 * - + CAST( NULL AS SIGNED ) + + 41 + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL - + 24 * - 53 * 46 * - + CAST ( NULL AS INTEGER ) + + 41 + - 44
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4566
SELECT 53 * 10 - + CAST( NULL AS SIGNED ) - COALESCE ( 31, + + 50 * COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4566
SELECT 53 * 10 - + CAST ( NULL AS INTEGER ) - COALESCE ( 31, + + 50 * COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4567
SELECT - + 37 * + NULLIF ( COALESCE ( ( 64 ), + 21 DIV + - 26 ), - + ( + 73 ) )
----
-2368

skipif mysql # not compatible
query I rowsort label-4567
SELECT - + 37 * + NULLIF ( COALESCE ( ( 64 ), + 21 / + - 26 ), - + ( + 73 ) )
----
-2368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4568
SELECT DISTINCT + 98 * + - 16 * COUNT( * ) * + CAST( - - 0 AS SIGNED ) + - - 43
----
43

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT + 98 * + - 16 * COUNT ( * ) * + CAST ( - - 0 AS INTEGER ) + - - 43
----
43

query I rowsort
SELECT DISTINCT 9 * 89 AS col1
----
801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4570
SELECT + - 4 + ( + NULLIF ( 21, - ( - 23 ) * + MIN( ALL - - 47 ) ) ) AS col0, - ( + CASE - COUNT( * ) WHEN 46 THEN 19 + + 19 + + COUNT( - - 95 ) + - 33 + + 76 * ( + COUNT( * ) ) * + 42 * + COUNT( * ) - - CAST( + 37 AS SIGNED ) * NULLIF ( + 28 / - 7, + 52 ) ELSE NULL END )
----
17
NULL

skipif mysql # not compatible
query II rowsort label-4570
SELECT + - 4 + ( + NULLIF ( 21, - ( - 23 ) * + MIN ( ALL - - 47 ) ) ) AS col0, - ( + CASE - COUNT ( * ) WHEN 46 THEN 19 + + 19 + + COUNT ( - - 95 ) + - 33 + + 76 * ( + COUNT ( * ) ) * + 42 * + COUNT ( * ) - - CAST ( + 37 AS INTEGER ) * NULLIF ( + 28 / - 7, + 52 ) ELSE NULL END )
----
17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT ALL 94 * - 42 + - COUNT( + 82 ) AS col1
----
-3949

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL 94 * - 42 + - COUNT ( + 82 ) AS col1
----
-3949

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT - - COUNT( * ) + 59 * - 43
----
-2536

skipif mysql # not compatible
query I rowsort label-4572
SELECT - - COUNT ( * ) + 59 * - 43
----
-2536

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT + 36 * - COUNT( * ) - + 58 * - 9
----
486

skipif mysql # not compatible
query I rowsort label-4573
SELECT + 36 * - COUNT ( * ) - + 58 * - 9
----
486

onlyif mysql # aggregate syntax: 
query II rowsort label-4574
SELECT - + MAX( + 67 ) AS col1, COALESCE ( MAX( - - 40 ), COUNT( * ) * 65 - 11 )
----
-67
40

skipif mysql # not compatible
query II rowsort label-4574
SELECT - + MAX ( + 67 ) AS col1, COALESCE ( MAX ( - - 40 ), COUNT ( * ) * 65 - 11 )
----
-67
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4575
SELECT ALL COALESCE ( + + 85, + + 20 * - SUM( + 7 ), - SUM( DISTINCT + + 58 ) * + 87 / - - 71 ) * - 42 / - 14 - CASE - CASE - 43 WHEN + 88 * + 7 THEN 84 END WHEN + CAST( NULL AS DECIMAL ) / - ( + 24 ) THEN 44 WHEN + CAST( 98 AS SIGNED ) * + 8 THEN NULL ELSE 77 + 39 / - 86 END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL COALESCE ( + + 85, + + 20 * - SUM ( + 7 ), - SUM ( DISTINCT + + 58 ) * + 87 / - - 71 ) * - 42 / - 14 - CASE - CASE - 43 WHEN + 88 * + 7 THEN 84 END WHEN + CAST ( NULL AS REAL ) / - ( + 24 ) THEN 44 WHEN + CAST ( 98 AS INTEGER ) * + 8 THEN NULL ELSE 77 + 39 / - 86 END * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4576
SELECT SUM( DISTINCT + CAST( 45 AS SIGNED ) ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4576
SELECT SUM ( DISTINCT + CAST ( 45 AS INTEGER ) ) AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4577
SELECT + 81 DIV - + COUNT( * ) + + - 55
----
-136

skipif mysql # not compatible
query I rowsort label-4577
SELECT + 81 / - + COUNT ( * ) + + - 55
----
-136

query I rowsort
SELECT DISTINCT 90 * 92 * - ( 58 ) * 3 AS col1
----
-1440720

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT MAX( ALL - - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-4579
SELECT MAX ( ALL - - 22 )
----
22

query I rowsort
SELECT DISTINCT 83 - - - 80
----
3

query I rowsort
SELECT + ( - 68 ) * 60
----
-4080

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT ALL CASE - 53 WHEN - 33 THEN - COUNT( 63 ) * + COUNT( * ) WHEN + 85 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL CASE - 53 WHEN - 33 THEN - COUNT ( 63 ) * + COUNT ( * ) WHEN + 85 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - + 80, 71 * - 63 + COALESCE ( - COALESCE ( + 77, 38 ), - + 22 + + + 44 ) ) AS col2
----
-80

query I rowsort
SELECT + 71 * + - 13 AS col2
----
-923

onlyif mysql # aggregate syntax: 
query II rowsort label-4585
SELECT ALL COUNT( * ), 43 AS col0
----
1
43

skipif mysql # not compatible
query II rowsort label-4585
SELECT ALL COUNT ( * ), 43 AS col0
----
1
43

query I rowsort
SELECT + 83 + + 91 AS col1
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4587
SELECT + COUNT( * ) * - 96 DIV 12 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-4587
SELECT + COUNT ( * ) * - 96 / 12 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT - 41 * - ( + COUNT( * ) ) * + ( + - 76 ) * - 33 * - 75
----
-7712100

skipif mysql # not compatible
query I rowsort label-4588
SELECT - 41 * - ( + COUNT ( * ) ) * + ( + - 76 ) * - 33 * - 75
----
-7712100

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT DISTINCT - COUNT( * ) * - + CASE + 61 WHEN - - 9 THEN - 18 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT - COUNT ( * ) * - + CASE + 61 WHEN - - 9 THEN - 18 END AS col0
----
NULL

query I rowsort
SELECT + 29 + - - 5
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4591
SELECT ALL 11 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL 11 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 28 * - 97
----
-2716

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4593
SELECT ALL + 94 / + CAST( NULL AS DECIMAL ) * 44 + + 38 + - - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL + 94 / + CAST ( NULL AS REAL ) * 44 + + 38 + - - 36
----
NULL

query I rowsort
SELECT - 99 + 80 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT ( + - 59 ) * - COUNT( * ) + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-4595
SELECT ( + - 59 ) * - COUNT ( * ) + COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT DISTINCT + COUNT( * ) + - 35 col2
----
-34

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT + COUNT ( * ) + - 35 col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT + - COUNT( DISTINCT - 87 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4597
SELECT + - COUNT ( DISTINCT - 87 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT - - ( + 79 ) * - - 88 + - COUNT( * ) + + 96 + 37 AS col0
----
7084

skipif mysql # not compatible
query I rowsort label-4598
SELECT - - ( + 79 ) * - - 88 + - COUNT ( * ) + + 96 + 37 AS col0
----
7084

onlyif mysql # aggregate syntax: 
query III rowsort label-4599
SELECT + 5 * + MIN( DISTINCT + + 99 ) AS col2, 42 AS col0, - 5
----
495
42
-5

skipif mysql # not compatible
query III rowsort label-4599
SELECT + 5 * + MIN ( DISTINCT + + 99 ) AS col2, 42 AS col0, - 5
----
495
42
-5

query I rowsort
SELECT ALL - ( + + 95 ) + 43 * + 90 + + - 47
----
3728

query I rowsort
SELECT ALL - 2 + 55 AS col0
----
53

query I rowsort
SELECT ALL + - 88 + + 3 AS col1
----
-85

query I rowsort
SELECT - 71 * 66 + - 79 col2
----
-4765

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4604
SELECT ALL + 11 * - + 14 * - - 49 + - CAST( + CAST( - - 45 AS DECIMAL ) AS SIGNED )
----
-7591

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL + 11 * - + 14 * - - 49 + - CAST ( + CAST ( - - 45 AS REAL ) AS INTEGER )
----
-7591

query I rowsort
SELECT ALL - + 75 * + ( + + 72 ) + - - 36 + 2 + + 72
----
-5290

query II rowsort
SELECT + + 87, NULLIF ( + 4, - - 11 * - - 27 ) col2
----
87
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4607
SELECT ALL + + CAST( NULL AS SIGNED ) - + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL + + CAST ( NULL AS INTEGER ) - + + 92
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4608
SELECT + + CAST( + 5 AS SIGNED ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4608
SELECT + + CAST ( + 5 AS INTEGER ) AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4609
SELECT - + CASE + 30 WHEN + 61 THEN + 2 + - 40 / + - CAST( + AVG ( 74 ) AS SIGNED ) WHEN - - 62 THEN - MAX( 60 ) + + 62 + - 19 / NULLIF ( + 60, - 22 ) ELSE NULL END * + 43 - COUNT( + 12 ) + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-4609
SELECT - + CASE + 30 WHEN + 61 THEN + 2 + - 40 / + - CAST ( + AVG ( 74 ) AS INTEGER ) WHEN - - 62 THEN - MAX ( 60 ) + + 62 + - 19 / NULLIF ( + 60, - 22 ) ELSE NULL END * + 43 - COUNT ( + 12 ) + + 84
----
NULL

query II rowsort
SELECT 70, 8 + + + 36 * + 37 + 13 AS col0
----
70
1353

onlyif mysql # DIV for integer division: 
query I rowsort label-4611
SELECT - 74 + - 9 DIV + - 60 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-4611
SELECT - 74 + - 9 / + - 60 AS col2
----
-74

query I rowsort
SELECT ALL CASE + - 22 WHEN 79 THEN + - 47 * - - 32 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL 31 * COUNT( * ) col0
----
31

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL 31 * COUNT ( * ) col0
----
31

query I rowsort
SELECT 80 + - - 42
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4615
SELECT CASE - 74 WHEN - COUNT( * ) THEN NULL WHEN 34 THEN NULL ELSE + CAST( NULL AS SIGNED ) END / + ( - 78 ) + + NULLIF ( + - NULLIF ( MAX( ALL - + CAST( NULL AS SIGNED ) ), 64 ), + 81 / - 39 - 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4615
SELECT CASE - 74 WHEN - COUNT ( * ) THEN NULL WHEN 34 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END / + ( - 78 ) + + NULLIF ( + - NULLIF ( MAX ( ALL - + CAST ( NULL AS INTEGER ) ), 64 ), + 81 / - 39 - 8 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4616
SELECT COUNT( DISTINCT - 81 ) * + - 54 DIV + + 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4616
SELECT COUNT ( DISTINCT - 81 ) * + - 54 / + + 81 AS col2
----
0

query I rowsort
SELECT ALL 95 * 16
----
1520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4618
SELECT 99 + COALESCE ( + 22, + 65 ) * - 66 * 50 * + CAST( 67 AS SIGNED )
----
-4864101

skipif mysql # not compatible
query I rowsort label-4618
SELECT 99 + COALESCE ( + 22, + 65 ) * - 66 * 50 * + CAST ( 67 AS INTEGER )
----
-4864101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4619
SELECT ALL COUNT( * ) * + COUNT( * ), + CAST( NULL AS SIGNED ) * + 92 + - + ( + 4 ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4619
SELECT ALL COUNT ( * ) * + COUNT ( * ), + CAST ( NULL AS INTEGER ) * + 92 + - + ( + 4 ) AS col2
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4620
SELECT CAST( NULL AS SIGNED ) + - ( - 70 ) * + - 7 AS col0, - 34
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-4620
SELECT CAST ( NULL AS INTEGER ) + - ( - 70 ) * + - 7 AS col0, - 34
----
NULL
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4621
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4621
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) + 11 AS col2
----
NULL

query I rowsort
SELECT ALL 23 + - 53
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT DISTINCT CASE + + 30 WHEN + 70 THEN - 57 END + SUM( DISTINCT 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4623
SELECT DISTINCT CASE + + 30 WHEN + 70 THEN - 57 END + SUM ( DISTINCT 12 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4624
SELECT CAST( 43 AS SIGNED ) DIV + 35 + - - 3 * + + ( 0 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4624
SELECT CAST ( 43 AS INTEGER ) / + 35 + - - 3 * + + ( 0 ) col2
----
1

query I rowsort
SELECT ALL 87 + + 59 AS col1
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4626
SELECT DISTINCT - NULLIF ( - CAST( NULL AS SIGNED ), + + 82 ) * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT - NULLIF ( - CAST ( NULL AS INTEGER ), + + 82 ) * - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT DISTINCT COUNT( * ) + 90 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT COUNT ( * ) + 90 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT 34 * - - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-4628
SELECT 34 * - - COUNT ( * )
----
34

query I rowsort
SELECT ALL + 92 + + - 68 + 95
----
119

query I rowsort
SELECT DISTINCT 45 * - - 76 * + 57 AS col2
----
194940

query I rowsort
SELECT 99 * + 69 AS col2
----
6831

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT ALL COUNT( * ) - - + 32
----
33

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL COUNT ( * ) - - + 32
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT ALL - - COALESCE ( + + 44, - 17 + + 12 + + 30, - 66 + SUM( + + 25 ) ) - + - 79 AS col1
----
123

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL - - COALESCE ( + + 44, - 17 + + 12 + + 30, - 66 + SUM ( + + 25 ) ) - + - 79 AS col1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT ALL - NULLIF ( - 64, + 88 + - - 12 * - COUNT( * ) + + + 57 / + - 41 )
----
64

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL - NULLIF ( - 64, + 88 + - - 12 * - COUNT ( * ) + + + 57 / + - 41 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT ALL COUNT( * ) * + - 79 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL COUNT ( * ) * + - 79 AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT + 69 * - + NULLIF ( - + COUNT( * ), + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT + 69 * - + NULLIF ( - + COUNT ( * ), + - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT - NULLIF ( - + 63, - - 58 * MAX( ALL - 11 ) )
----
63

skipif mysql # not compatible
query I rowsort label-4637
SELECT - NULLIF ( - + 63, - - 58 * MAX ( ALL - 11 ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT ALL + COUNT( * ) - 75
----
-74

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL + COUNT ( * ) - 75
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4639
SELECT - 5 * + CAST( NULL AS SIGNED ) / + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4639
SELECT - 5 * + CAST ( NULL AS INTEGER ) / + 58
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4640
SELECT - 64 * - COUNT( * ) * 78 - + + 47 * - NULLIF ( - - COUNT( DISTINCT - 9 ), - COUNT( * ) * + + 82 + - 2 * + AVG ( ALL - - 8 ) * - ( CAST( + COUNT( * ) AS SIGNED ) ) * - + 98 + + ( 47 ) ) + + + CAST( + 55 AS SIGNED ) AS col1
----
5094

skipif mysql # not compatible
query I rowsort label-4640
SELECT - 64 * - COUNT ( * ) * 78 - + + 47 * - NULLIF ( - - COUNT ( DISTINCT - 9 ), - COUNT ( * ) * + + 82 + - 2 * + AVG ( ALL - - 8 ) * - ( CAST ( + COUNT ( * ) AS INTEGER ) ) * - + 98 + + ( 47 ) ) + + + CAST ( + 55 AS INTEGER ) AS col1
----
5094

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT - SUM( DISTINCT - + 49 ) + - 6
----
43

skipif mysql # not compatible
query I rowsort label-4641
SELECT - SUM ( DISTINCT - + 49 ) + - 6
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4642
SELECT ALL 32 DIV + + 55 * 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL 32 / + + 55 * 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT - 72 * COALESCE ( - 40, - 45 * - 35 * + 89 + COUNT( * ) + + - COUNT( * ) ) col1
----
2880

skipif mysql # not compatible
query I rowsort label-4643
SELECT - 72 * COALESCE ( - 40, - 45 * - 35 * + 89 + COUNT ( * ) + + - COUNT ( * ) ) col1
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT DISTINCT - - 35 * + + COUNT( * ) + - - 63 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT - - 35 * + + COUNT ( * ) + - - 63 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ALL + 75 * + - 76 * - 52 * + 38 + COUNT( * )
----
11263201

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL + 75 * + - 76 * - 52 * + 38 + COUNT ( * )
----
11263201

query I rowsort
SELECT - 85 * + 78 AS col0
----
-6630

query I rowsort
SELECT DISTINCT - 1 * - 34 col0
----
34

query I rowsort
SELECT DISTINCT + 37 + + 56 AS col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4649
SELECT DISTINCT COUNT( * ), 48 - + + 41 AS col2
----
1
7

skipif mysql # not compatible
query II rowsort label-4649
SELECT DISTINCT COUNT ( * ), 48 - + + 41 AS col2
----
1
7

query I rowsort
SELECT ALL + 28 * - 9
----
-252

onlyif mysql # aggregate syntax: 
query II rowsort label-4651
SELECT - 30 AS col2, - CASE - 76 WHEN + - 44 THEN + 29 + ( - MAX( DISTINCT + 56 ) ) + + - MIN( DISTINCT - 54 ) + - 69 + + 97 ELSE NULL END + + 77
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-4651
SELECT - 30 AS col2, - CASE - 76 WHEN + - 44 THEN + 29 + ( - MAX ( DISTINCT + 56 ) ) + + - MIN ( DISTINCT - 54 ) + - 69 + + 97 ELSE NULL END + + 77
----
-30
NULL

query I rowsort
SELECT ALL - 56 + - 97 AS col1
----
-153

query I rowsort
SELECT DISTINCT - 83 + - 19
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT MAX( ALL - COALESCE ( + 81, + 1, - + 31 ) ) * + 71 AS col1
----
-5751

skipif mysql # not compatible
query I rowsort label-4654
SELECT MAX ( ALL - COALESCE ( + 81, + 1, - + 31 ) ) * + 71 AS col1
----
-5751

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT DISTINCT COALESCE ( + + 89, - + 69, COALESCE ( + ( + 2 ), - - COUNT( * ) * 89 ) * 14 + + + 87 * 96 ) + 81 AS col2
----
170

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT COALESCE ( + + 89, - + 69, COALESCE ( + ( + 2 ), - - COUNT ( * ) * 89 ) * 14 + + + 87 * 96 ) + 81 AS col2
----
170

query I rowsort
SELECT ALL ( 20 ) * 66 * - - 1 + - 16 AS col1
----
1304

query I rowsort
SELECT DISTINCT - 39 + + 34 AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4658
SELECT - CASE WHEN NOT ( NULL ) < 45 THEN ( + CAST( + NULLIF ( 78, - COUNT( * ) ) AS SIGNED ) ) + - - 8 ELSE - 23 + - ( - COUNT( * ) ) + + 17 + CAST( NULL AS SIGNED ) * - 30 + + 66 END + - 66 * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4658
SELECT - CASE WHEN NOT ( NULL ) < 45 THEN ( + CAST ( + NULLIF ( 78, - COUNT ( * ) ) AS INTEGER ) ) + - - 8 ELSE - 23 + - ( - COUNT ( * ) ) + + 17 + CAST ( NULL AS INTEGER ) * - 30 + + 66 END + - 66 * + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT ALL MAX( 10 ) + + - CASE + 99 WHEN + + 35 THEN - COUNT( * ) * + CASE + MIN( + - ( + + 56 ) ) WHEN - COUNT( * ) THEN - COUNT( * ) / + 57 * 24 - - 93 + - SUM( + 76 ) + + + COUNT( * ) - 99 * + 89 + - + 46 + + ( - + 41 ) WHEN - - 1 - - - 51 THEN 0 * 90 + 86 * - 53 WHEN + COUNT( * ) THEN - COALESCE ( 93, + 39 ) END WHEN - 40 THEN 5 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL MAX ( 10 ) + + - CASE + 99 WHEN + + 35 THEN - COUNT ( * ) * + CASE + MIN ( + - ( + + 56 ) ) WHEN - COUNT ( * ) THEN - COUNT ( * ) / + 57 * 24 - - 93 + - SUM ( + 76 ) + + + COUNT ( * ) - 99 * + 89 + - + 46 + + ( - + 41 ) WHEN - - 1 - - - 51 THEN 0 * 90 + 86 * - 53 WHEN + COUNT ( * ) THEN - COALESCE ( 93, + 39 ) END WHEN - 40 THEN 5 END AS col2
----
NULL

query I rowsort
SELECT ALL 40 * + 63 col0
----
2520

query I rowsort
SELECT - 46 + 52 + 32 AS col1
----
38

query I rowsort
SELECT - 63 + ( + + 84 ) - + 72 + - 23
----
-74

query I rowsort
SELECT + 69 * - - 21 AS col1
----
1449

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT DISTINCT 75 * SUM( DISTINCT - 10 )
----
-750

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT 75 * SUM ( DISTINCT - 10 )
----
-750

onlyif mysql # aggregate syntax: 
query II rowsort label-4665
SELECT ALL 64 AS col0, SUM( - - 59 ) * 5
----
64
295

skipif mysql # not compatible
query II rowsort label-4665
SELECT ALL 64 AS col0, SUM ( - - 59 ) * 5
----
64
295

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT + 4 + 3 * - NULLIF ( + 22, NULLIF ( - + COUNT( * ), - + 75 / 19 + - - CASE SUM( + - NULLIF ( + 50, + 56 ) ) WHEN 46 THEN NULL WHEN 71 * + + 83 THEN + 62 * 28 * MAX( + + 36 ) - COALESCE ( - - MIN( + 28 ), COUNT( * ) + NULLIF ( + MIN( - 3 ), 29 - + 53 ) ) + - COUNT( * ) + + 86 ELSE MIN( DISTINCT 64 ) * 77 + ( - 95 + - 32 * + 10 ) END * 24 ) * 95 )
----
-62

skipif mysql # not compatible
query I rowsort label-4666
SELECT + 4 + 3 * - NULLIF ( + 22, NULLIF ( - + COUNT ( * ), - + 75 / 19 + - - CASE SUM ( + - NULLIF ( + 50, + 56 ) ) WHEN 46 THEN NULL WHEN 71 * + + 83 THEN + 62 * 28 * MAX ( + + 36 ) - COALESCE ( - - MIN ( + 28 ), COUNT ( * ) + NULLIF ( + MIN ( - 3 ), 29 - + 53 ) ) + - COUNT ( * ) + + 86 ELSE MIN ( DISTINCT 64 ) * 77 + ( - 95 + - 32 * + 10 ) END * 24 ) * 95 )
----
-62

query I rowsort
SELECT DISTINCT + - 34 * - 52
----
1768

query I rowsort
SELECT ALL - 80 - + 30 AS col2
----
-110

query I rowsort
SELECT DISTINCT 75 / - 20 / - CASE WHEN NOT 60 IS NULL THEN NULL ELSE + 99 - 94 END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4670
SELECT 16 * 5 + + - 84 + - 99 DIV 3 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-4670
SELECT 16 * 5 + + - 84 + - 99 / 3 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT DISTINCT - COUNT( * ) * + 15 - 90
----
-105

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT - COUNT ( * ) * + 15 - 90
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4672
SELECT + CAST( + 55 AS SIGNED ) * + + ( 68 )
----
3740

skipif mysql # not compatible
query I rowsort label-4672
SELECT + CAST ( + 55 AS INTEGER ) * + + ( 68 )
----
3740

onlyif mysql # aggregate syntax: 
query II rowsort label-4673
SELECT + - 93 AS col0, COUNT( * ) * 10 AS col1
----
-93
10

skipif mysql # not compatible
query II rowsort label-4673
SELECT + - 93 AS col0, COUNT ( * ) * 10 AS col1
----
-93
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT + 17 * + + 99 + - - COUNT( * )
----
1684

skipif mysql # not compatible
query I rowsort label-4674
SELECT + 17 * + + 99 + - - COUNT ( * )
----
1684

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL + 6 * 28 - + COALESCE ( - COUNT( * ), + + 53 * + COALESCE ( 0, - 68 ) + - CASE + + 84 WHEN + 41 / 59 THEN + 21 WHEN + SUM( ALL + 30 ) THEN NULL END + - 22 - + 72 + - COALESCE ( + 2, 8, + 79 ), + 5 ) - 90 + + 63 * - 72
----
-4457

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL + 6 * 28 - + COALESCE ( - COUNT ( * ), + + 53 * + COALESCE ( 0, - 68 ) + - CASE + + 84 WHEN + 41 / 59 THEN + 21 WHEN + SUM ( ALL + 30 ) THEN NULL END + - 22 - + 72 + - COALESCE ( + 2, 8, + 79 ), + 5 ) - 90 + + 63 * - 72
----
-4457

query I rowsort
SELECT + 6 * - 24 AS col1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT - 94 + + 21 + + + 30 * 8 * + - ( + ( 52 ) ) + NULLIF ( - 24, + 91 * + - 96 + - - 78 + 9 ) + + 16 + - + COUNT( * ) * + + 87 AS col0
----
-12648

skipif mysql # not compatible
query I rowsort label-4677
SELECT - 94 + + 21 + + + 30 * 8 * + - ( + ( 52 ) ) + NULLIF ( - 24, + 91 * + - 96 + - - 78 + 9 ) + + 16 + - + COUNT ( * ) * + + 87 AS col0
----
-12648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4678
SELECT ALL 64 * - ( - - 85 ) + - - CAST( NULL AS SIGNED ) + - 85 * 14 * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL 64 * - ( - - 85 ) + - - CAST ( NULL AS INTEGER ) + - 85 * 14 * - 85
----
NULL

query I rowsort
SELECT + + 48 * 44
----
2112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4680
SELECT + - COUNT( * ) * 24 * NULLIF ( + - 20, + ( + COALESCE ( - COUNT( DISTINCT - - 14 ), COUNT( * ) ) ) ) * + 77 + SUM( + 54 ) + 70 + - 78 + - CAST( NULL AS SIGNED ) * + 5 * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT + - COUNT ( * ) * 24 * NULLIF ( + - 20, + ( + COALESCE ( - COUNT ( DISTINCT - - 14 ), COUNT ( * ) ) ) ) * + 77 + SUM ( + 54 ) + 70 + - 78 + - CAST ( NULL AS INTEGER ) * + 5 * 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT DISTINCT 21 * - 73 * COUNT( * ) AS col0
----
-1533

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT 21 * - 73 * COUNT ( * ) AS col0
----
-1533

query I rowsort
SELECT + 61 * 68 AS col1
----
4148

query I rowsort
SELECT ALL + + ( - 27 ) AS col1
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4684
SELECT + + 98 DIV COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4684
SELECT + + 98 / COUNT ( * ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL - 55 * - 29 * - ( - 75 ) + MIN( + 46 )
----
119671

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL - 55 * - 29 * - ( - 75 ) + MIN ( + 46 )
----
119671

query I rowsort
SELECT DISTINCT 48 * + 82 AS col2
----
3936

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT DISTINCT COALESCE ( + + 55, - - 58 ) * 43 * + - ( - COUNT( * ) ) + + COUNT( * ) + + COUNT( * )
----
2367

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT COALESCE ( + + 55, - - 58 ) * 43 * + - ( - COUNT ( * ) ) + + COUNT ( * ) + + COUNT ( * )
----
2367

onlyif mysql # aggregate syntax: 
query II rowsort label-4688
SELECT DISTINCT + COUNT( * ), - ( - 33 ) + + - 12 col1
----
1
21

skipif mysql # not compatible
query II rowsort label-4688
SELECT DISTINCT + COUNT ( * ), - ( - 33 ) + + - 12 col1
----
1
21

query I rowsort
SELECT - 93 * 17 * - 61 + 65 + + - 76 AS col2
----
96430

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4690
SELECT DISTINCT - SUM( ALL + 67 ) DIV + COUNT( * ) + - + 56 + + - 98
----
-221

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT - SUM ( ALL + 67 ) / + COUNT ( * ) + - + 56 + + - 98
----
-221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4691
SELECT ALL 43 * + + 61 + - 21 + - CAST( + 68 AS SIGNED )
----
2534

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL 43 * + + 61 + - 21 + - CAST ( + 68 AS INTEGER )
----
2534

query I rowsort
SELECT + ( - 43 ) + - 41
----
-84

query II rowsort
SELECT ALL + 19, - 74 col2
----
19
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT - 30 + MIN( ALL + 56 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4694
SELECT - 30 + MIN ( ALL + 56 ) AS col0
----
26

query II rowsort
SELECT ALL ( - + 10 ), 68 AS col1
----
-10
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4696
SELECT - 86 AS col2, + 37 * + COALESCE ( + MIN( - 71 ), - - ( - 48 ), COUNT( * ) * 90 * + + 6 ) col1
----
-86
-2627

skipif mysql # not compatible
query II rowsort label-4696
SELECT - 86 AS col2, + 37 * + COALESCE ( + MIN ( - 71 ), - - ( - 48 ), COUNT ( * ) * 90 * + + 6 ) col1
----
-86
-2627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4697
SELECT ALL 80 * 32 * - 80 + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL 80 * 32 * - 80 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT ALL ( + COUNT( DISTINCT - - 93 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL ( + COUNT ( DISTINCT - - 93 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT ALL - COUNT( DISTINCT 90 ) * - 15 * - 48 - 99 AS col2
----
-819

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL - COUNT ( DISTINCT 90 ) * - 15 * - 48 - 99 AS col2
----
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT + 7 + + COUNT( * ) * 95 * 93 * - - 4
----
35347

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT + 7 + + COUNT ( * ) * 95 * 93 * - - 4
----
35347

query I rowsort
SELECT DISTINCT - 52 * 36 col0
----
-1872

query I rowsort
SELECT - 76 + 36
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ALL + CASE + 68 WHEN - 99 THEN - 89 * - 81 + MIN( DISTINCT - 39 ) / 54 + + 51 WHEN - 27 THEN + 75 END + 73 + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL + CASE + 68 WHEN - 99 THEN - 89 * - 81 + MIN ( DISTINCT - 39 ) / 54 + + 51 WHEN - 27 THEN + 75 END + 73 + 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4704
SELECT DISTINCT ( COUNT( * ) ) AS col2, + 56 + - 88 - - 84 DIV + 42 AS col1
----
1
-30

skipif mysql # not compatible
query II rowsort label-4704
SELECT DISTINCT ( COUNT ( * ) ) AS col2, + 56 + - 88 - - 84 / + 42 AS col1
----
1
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-4705
SELECT - 40 * 67 DIV - 8 AS col1
----
335

skipif mysql # not compatible
query I rowsort label-4705
SELECT - 40 * 67 / - 8 AS col1
----
335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4706
SELECT ALL CASE + 80 WHEN + ( + + 70 ) THEN - CAST( NULL AS SIGNED ) + + - COUNT( * ) WHEN 7 + - 8 THEN - COALESCE ( + - COUNT( * ), - COUNT( * ) / - 98 ) / 56 - - 28 * - + 55 * SUM( ALL + 73 ) + - - 17 * - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL CASE + 80 WHEN + ( + + 70 ) THEN - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) WHEN 7 + - 8 THEN - COALESCE ( + - COUNT ( * ), - COUNT ( * ) / - 98 ) / 56 - - 28 * - + 55 * SUM ( ALL + 73 ) + - - 17 * - + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4707
SELECT 29 AS col1, - 72 + - 76 * CASE - ( CAST( 87 AS SIGNED ) ) WHEN - MAX( ALL - 1 ) THEN + 78 END col2
----
29
NULL

skipif mysql # not compatible
query II rowsort label-4707
SELECT 29 AS col1, - 72 + - 76 * CASE - ( CAST ( 87 AS INTEGER ) ) WHEN - MAX ( ALL - 1 ) THEN + 78 END col2
----
29
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4708
SELECT ALL + 84 - - CAST( + 92 AS SIGNED ) + - 83 * 64 col1
----
-5136

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL + 84 - - CAST ( + 92 AS INTEGER ) + - 83 * 64 col1
----
-5136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4709
SELECT DISTINCT 41, 72 / 96 + - COUNT( * ) / CAST( NULL AS SIGNED ) col0
----
41
NULL

skipif mysql # not compatible
query II rowsort label-4709
SELECT DISTINCT 41, 72 / 96 + - COUNT ( * ) / CAST ( NULL AS INTEGER ) col0
----
41
NULL

query I rowsort
SELECT ALL + COALESCE ( - 60, + + 44 )
----
-60

query I rowsort
SELECT - 24 * 18 AS col0
----
-432

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4712
SELECT - - ( 40 ) AS col2, CAST( 52 AS SIGNED ) AS col2
----
40
52

skipif mysql # not compatible
query II rowsort label-4712
SELECT - - ( 40 ) AS col2, CAST ( 52 AS INTEGER ) AS col2
----
40
52

query II rowsort
SELECT ALL + 72 AS col0, - ( 12 ) * + 36
----
72
-432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4714
SELECT - + 62 col2, + CASE + COUNT( * ) WHEN + - 42 THEN - 98 WHEN - 61 + - + COUNT( * ) * - - CAST( NULL AS SIGNED ) * - ( + CAST( + COUNT( * ) AS SIGNED ) ) * - 80 * - - 83 THEN - + 52 / + + 59 END
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-4714
SELECT - + 62 col2, + CASE + COUNT ( * ) WHEN + - 42 THEN - 98 WHEN - 61 + - + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) * - 80 * - - 83 THEN - + 52 / + + 59 END
----
-62
NULL

query I rowsort
SELECT ALL - - 69 * + - 91 col2
----
-6279

onlyif mysql # aggregate syntax: 
query II rowsort label-4716
SELECT - 91 * + COUNT( * ) + - + COUNT( * ) * + - COUNT( * ) col2, 96
----
-90
96

skipif mysql # not compatible
query II rowsort label-4716
SELECT - 91 * + COUNT ( * ) + - + COUNT ( * ) * + - COUNT ( * ) col2, 96
----
-90
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4717
SELECT + CAST( - 99 AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4717
SELECT + CAST ( - 99 AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4718
SELECT ALL + COUNT( * ), - 4 col1
----
1
-4

skipif mysql # not compatible
query II rowsort label-4718
SELECT ALL + COUNT ( * ), - 4 col1
----
1
-4

query I rowsort
SELECT ALL + ( 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4720
SELECT DISTINCT + 80 DIV 78 * + 9 + + 67 + + MAX( + 77 )
----
153

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT + 80 / 78 * + 9 + + 67 + + MAX ( + 77 )
----
153

query I rowsort
SELECT - + 58 + 31 AS col0
----
-27

query II rowsort
SELECT ALL + 98, - 8 AS col2
----
98
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4723
SELECT - 7 * - 86 + - 45 * 13 + - 57 + + - 4 + + ( + MAX( ALL - + 32 ) ) + - 7 * + 9 DIV + CAST( + + COUNT( + 52 ) AS SIGNED )
----
-139

skipif mysql # not compatible
query I rowsort label-4723
SELECT - 7 * - 86 + - 45 * 13 + - 57 + + - 4 + + ( + MAX ( ALL - + 32 ) ) + - 7 * + 9 / + CAST ( + + COUNT ( + 52 ) AS INTEGER )
----
-139

query II rowsort
SELECT - 38, 29 AS col0
----
-38
29

query I rowsort
SELECT DISTINCT + ( + + 6 ) AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4726
SELECT ALL CASE + 56 WHEN COUNT( * ) THEN NULL WHEN + + 25 * + + 51 THEN 72 ELSE NULL END / + 3 * + + CAST( + COUNT( * ) AS SIGNED ) + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL CASE + 56 WHEN COUNT ( * ) THEN NULL WHEN + + 25 * + + 51 THEN 72 ELSE NULL END / + 3 * + + CAST ( + COUNT ( * ) AS INTEGER ) + - 55
----
NULL

query I rowsort
SELECT + 54 * + + 95
----
5130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4728
SELECT + CAST( - CASE - 3 WHEN - COUNT( * ) THEN + 18 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT + CAST ( - CASE - 3 WHEN - COUNT ( * ) THEN + 18 END AS INTEGER )
----
NULL

query I rowsort
SELECT + 89 + 76
----
165

query I rowsort
SELECT ALL 0 * + 73
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4731
SELECT 83 + - CAST( NULL AS SIGNED ), 64 AS col2
----
NULL
64

skipif mysql # not compatible
query II rowsort label-4731
SELECT 83 + - CAST ( NULL AS INTEGER ), 64 AS col2
----
NULL
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT COUNT( * ) * - + 19 * - 75
----
1425

skipif mysql # not compatible
query I rowsort label-4732
SELECT COUNT ( * ) * - + 19 * - 75
----
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT 28 + + 58 - - 54 - - - ( + 44 ) * ( - MIN( 67 ) ) * 60
----
177020

skipif mysql # not compatible
query I rowsort label-4733
SELECT 28 + + 58 - - 54 - - - ( + 44 ) * ( - MIN ( 67 ) ) * 60
----
177020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4734
SELECT CAST( NULL AS SIGNED ) - - + 2 * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4734
SELECT CAST ( NULL AS INTEGER ) - - + 2 * - 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT 43 * COUNT( - 96 ) * 74 AS col1
----
3182

skipif mysql # not compatible
query I rowsort label-4735
SELECT 43 * COUNT ( - 96 ) * 74 AS col1
----
3182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4736
SELECT DISTINCT - CAST( + - MIN( DISTINCT - 82 ) AS SIGNED ) - + + 45
----
-127

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT - CAST ( + - MIN ( DISTINCT - 82 ) AS INTEGER ) - + + 45
----
-127

query II rowsort
SELECT ALL - 58 - - 34 AS col2, + 99
----
-24
99

query I rowsort
SELECT 33 * + 29
----
957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4739
SELECT ALL CASE - MIN( - ( - 48 ) ) WHEN 95 THEN NULL WHEN + + 64 / + + CASE - 55 WHEN + MIN( - 85 ) THEN NULL WHEN - 43 THEN CAST( - - 40 AS SIGNED ) / + - 68 + - + 27 + - 58 / 84 * - 87 * - 74 ELSE - 97 END + - - 82 THEN - 38 END / + - 1 + + 2 * + + 32 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL CASE - MIN ( - ( - 48 ) ) WHEN 95 THEN NULL WHEN + + 64 / + + CASE - 55 WHEN + MIN ( - 85 ) THEN NULL WHEN - 43 THEN CAST ( - - 40 AS INTEGER ) / + - 68 + - + 27 + - 58 / 84 * - 87 * - 74 ELSE - 97 END + - - 82 THEN - 38 END / + - 1 + + 2 * + + 32 * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT 84 + COUNT( * ) * - 70 * + COUNT( * ) * 96 * COUNT( * ) AS col1
----
-6636

skipif mysql # not compatible
query I rowsort label-4740
SELECT 84 + COUNT ( * ) * - 70 * + COUNT ( * ) * 96 * COUNT ( * ) AS col1
----
-6636

query I rowsort
SELECT - 22 - + 31 AS col0
----
-53

query I rowsort
SELECT - 66 + 11 * - 87 * + 99
----
-94809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4743
SELECT - + SUM( ALL - CAST( 6 AS SIGNED ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-4743
SELECT - + SUM ( ALL - CAST ( 6 AS INTEGER ) ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4744
SELECT - MAX( + + ( - - 79 ) ), + 56 AS col2
----
-79
56

skipif mysql # not compatible
query II rowsort label-4744
SELECT - MAX ( + + ( - - 79 ) ), + 56 AS col2
----
-79
56

query I rowsort
SELECT + 88 + - ( - - ( + 28 ) ) + 1
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4746
SELECT + 58 * - + 47 DIV - - COUNT( * ) + 81 * - 1 - - + 48
----
-2759

skipif mysql # not compatible
query I rowsort label-4746
SELECT + 58 * - + 47 / - - COUNT ( * ) + 81 * - 1 - - + 48
----
-2759

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT ALL NULLIF ( + + COUNT( * ), + 18 )
----
1

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL NULLIF ( + + COUNT ( * ), + 18 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT ALL - - CASE - 59 WHEN - 32 * 67 + 4 - - SUM( + 92 ) THEN NULL WHEN - - 25 / - 68 + - COUNT( * ) THEN NULL ELSE - 98 END * 22
----
-2156

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL - - CASE - 59 WHEN - 32 * 67 + 4 - - SUM ( + 92 ) THEN NULL WHEN - - 25 / - 68 + - COUNT ( * ) THEN NULL ELSE - 98 END * 22
----
-2156

query I rowsort
SELECT DISTINCT - - 16 + + NULLIF ( + 66, - ( + 17 ) * ( - 22 ) ) col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT DISTINCT - + 87 + + COUNT( * ) + - 5 - - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT - + 87 + + COUNT ( * ) + - 5 - - COUNT ( * )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4751
SELECT DISTINCT + 43 * - CAST( NULL AS SIGNED ), 4 * + + COALESCE ( + 46, - COUNT( * ) * + 74 + - ( - 59 ) ) col0
----
NULL
184

skipif mysql # not compatible
query II rowsort label-4751
SELECT DISTINCT + 43 * - CAST ( NULL AS INTEGER ), 4 * + + COALESCE ( + 46, - COUNT ( * ) * + 74 + - ( - 59 ) ) col0
----
NULL
184

query I rowsort
SELECT DISTINCT - 85 + + - 9 * 92 col2
----
-913

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4753
SELECT ALL + + 74 + 55 AS col0, + CAST( NULL AS SIGNED )
----
129
NULL

skipif mysql # not compatible
query II rowsort label-4753
SELECT ALL + + 74 + 55 AS col0, + CAST ( NULL AS INTEGER )
----
129
NULL

query I rowsort
SELECT NULLIF ( - - ( + 35 ), + + 4 / - 41 ) * + 45 * + + 5
----
7875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4755
SELECT + CAST( ( - - 78 ) AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-4755
SELECT + CAST ( ( - - 78 ) AS INTEGER )
----
78

query I rowsort
SELECT ALL 7 + - 63 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-4757
SELECT DISTINCT MIN( - 12 ) + - + 63 AS col0, 45
----
-75
45

skipif mysql # not compatible
query II rowsort label-4757
SELECT DISTINCT MIN ( - 12 ) + - + 63 AS col0, 45
----
-75
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT DISTINCT + 79 * - NULLIF ( - MAX( 54 ), + 30 ) AS col0
----
4266

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT + 79 * - NULLIF ( - MAX ( 54 ), + 30 ) AS col0
----
4266

query I rowsort
SELECT DISTINCT - 24 + + 85
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4760
SELECT DISTINCT - 67 col0, - MIN( ALL 86 ) AS col2
----
-67
-86

skipif mysql # not compatible
query II rowsort label-4760
SELECT DISTINCT - 67 col0, - MIN ( ALL 86 ) AS col2
----
-67
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT DISTINCT NULLIF ( 11, - COUNT( * ) / + + 11 + + 79 ) + + 64 + - - 28
----
103

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT NULLIF ( 11, - COUNT ( * ) / + + 11 + + 79 ) + + 64 + - - 28
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4762
SELECT 83 DIV - ( - CAST( - COUNT( * ) AS SIGNED ) )
----
-83

skipif mysql # not compatible
query I rowsort label-4762
SELECT 83 / - ( - CAST ( - COUNT ( * ) AS INTEGER ) )
----
-83

query I rowsort
SELECT COALESCE ( 98, + 71 ) * 63
----
6174

query I rowsort
SELECT 28 * 31 * 25 AS col0
----
21700

query II rowsort
SELECT + 39, 2 AS col2
----
39
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT ALL ( + 43 ) - COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL ( + 43 ) - COUNT ( * ) AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4767
SELECT ( + 1 ) + + CAST( NULL AS SIGNED ) * - CAST( - 89 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT ( + 1 ) + + CAST ( NULL AS INTEGER ) * - CAST ( - 89 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT COUNT( * ) * - - CASE COUNT( * ) WHEN - + 65 THEN - 99 WHEN + - 53 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT COUNT ( * ) * - - CASE COUNT ( * ) WHEN - + 65 THEN - 99 WHEN + - 53 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT ALL NULLIF ( + COALESCE ( + - 66, - + 16 * 30 - - + 18, + 58 * - - ( 54 ) + + SUM( 40 ) ), + CASE + 96 WHEN + 57 THEN + 79 / - 23 WHEN - - 78 THEN - 79 END / - 97 + - MAX( - 66 ) - 79 / - ( - 61 ) * + 20 + + 20 + + - ( 0 ) ) * 62
----
-4092

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL NULLIF ( + COALESCE ( + - 66, - + 16 * 30 - - + 18, + 58 * - - ( 54 ) + + SUM ( 40 ) ), + CASE + 96 WHEN + 57 THEN + 79 / - 23 WHEN - - 78 THEN - 79 END / - 97 + - MAX ( - 66 ) - 79 / - ( - 61 ) * + 20 + + 20 + + - ( 0 ) ) * 62
----
-4092

onlyif mysql # aggregate syntax: 
query II rowsort label-4770
SELECT ALL 4 col0, - COUNT( * )
----
4
-1

skipif mysql # not compatible
query II rowsort label-4770
SELECT ALL 4 col0, - COUNT ( * )
----
4
-1

query I rowsort
SELECT DISTINCT 46 * 97
----
4462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4772
SELECT DISTINCT MIN( + - 11 ) * - COUNT( * ) DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-4772
SELECT DISTINCT MIN ( + - 11 ) * - COUNT ( * ) / 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT COALESCE ( 20, + - 94 ) * CASE + 48 WHEN - 74 THEN 37 * + 51 END * - COUNT( * ) - - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT COALESCE ( 20, + - 94 ) * CASE + 48 WHEN - 74 THEN 37 * + 51 END * - COUNT ( * ) - - 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT DISTINCT + SUM( ALL + ( - + 1 ) ) * - 25
----
25

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT + SUM ( ALL + ( - + 1 ) ) * - 25
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT + COUNT( * ) + + ( + + 23 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4775
SELECT + COUNT ( * ) + + ( + + 23 ) AS col0
----
24

query I rowsort
SELECT - ( - - 15 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4777
SELECT ALL + - 26 + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL + - 26 + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 68 * 27 col2
----
1836

query I rowsort
SELECT ALL 69 + - 51 AS col1
----
18

query II rowsort
SELECT - 99 AS col2, - 94 AS col1
----
-99
-94

query I rowsort
SELECT ALL - 91 + + - 7 AS col2
----
-98

query II rowsort
SELECT COALESCE ( 94, + 59 * - 44 ) * 4 - - 87 AS col0, 68 AS col0
----
463
68

query I rowsort
SELECT ALL - 5 * 2 col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT COUNT( * ) * - 11 * - + 24 col2
----
264

skipif mysql # not compatible
query I rowsort label-4784
SELECT COUNT ( * ) * - 11 * - + 24 col2
----
264

query I rowsort
SELECT - COALESCE ( - + 48, + 51 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT ALL - 56 + - - MIN( - 9 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL - 56 + - - MIN ( - 9 ) AS col2
----
-65

query I rowsort
SELECT 71 - 85 AS col2
----
-14

query I rowsort
SELECT 17 - - 30
----
47

query II rowsort
SELECT DISTINCT 36 * + ( 48 ) * 19 AS col2, 3 AS col0
----
32832
3

query I rowsort
SELECT NULLIF ( - - 36, + 99 + 67 + + 73 * 48 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT ALL COALESCE ( 55, - COUNT( * ) ) * - MIN( ALL - - 35 ) * + 22 - + - 14 AS col0
----
-42336

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL COALESCE ( 55, - COUNT ( * ) ) * - MIN ( ALL - - 35 ) * + 22 - + - 14 AS col0
----
-42336

query I rowsort
SELECT - 83 * 24
----
-1992

onlyif mysql # DIV for integer division: 
query I rowsort label-4793
SELECT 38 DIV + 17 - + + 0 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4793
SELECT 38 / + 17 - + + 0 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT NULLIF ( - 33, 46 * + ( 1 ) * - SUM( + + 72 ) + + 60 - 87 )
----
-33

skipif mysql # not compatible
query I rowsort label-4794
SELECT NULLIF ( - 33, 46 * + ( 1 ) * - SUM ( + + 72 ) + + 60 - 87 )
----
-33

query I rowsort
SELECT 30 * + + 27 + 11 AS col0
----
821

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL + COUNT( * ) * 79
----
79

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL + COUNT ( * ) * 79
----
79

query I rowsort
SELECT DISTINCT + ( 87 ) * - 89 + 43 AS col2
----
-7700

query I rowsort
SELECT - 0 + 33 AS col1
----
33

query I rowsort
SELECT - 17 * - + 39 * - 44
----
-29172

query I rowsort
SELECT ALL + 30 * + + 86
----
2580

onlyif mysql # DIV for integer division: 
query II rowsort label-4801
SELECT + 69 DIV 76 col2, + 43 col1
----
0
43

skipif mysql # not compatible
query II rowsort label-4801
SELECT + 69 / 76 col2, + 43 col1
----
0
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT + MIN( + 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4802
SELECT + MIN ( + 56 ) AS col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4803
SELECT DISTINCT - 86 DIV 95 * + 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT - 86 / 95 * + 38 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4804
SELECT - + 72 DIV + - 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4804
SELECT - + 72 / + - 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4805
SELECT ALL 87 + - 98 - - 95 - + - 76 * CASE + COUNT( * ) WHEN - COUNT( * ) THEN + 42 + - - 78 ELSE NULL END AS col0, + 47 AS col1
----
NULL
47

skipif mysql # not compatible
query II rowsort label-4805
SELECT ALL 87 + - 98 - - 95 - + - 76 * CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN + 42 + - - 78 ELSE NULL END AS col0, + 47 AS col1
----
NULL
47

query I rowsort
SELECT - 57 - 13
----
-70

query II rowsort
SELECT DISTINCT + 70 * - 52 AS col2, 70
----
-3640
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT ALL 14 + - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL 14 + - COUNT ( * )
----
13

query I rowsort
SELECT DISTINCT - 53 + - 48 AS col0
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-4810
SELECT + ( + ( MAX( - 38 ) ) ) * 76 AS col0, 40
----
-2888
40

skipif mysql # not compatible
query II rowsort label-4810
SELECT + ( + ( MAX ( - 38 ) ) ) * 76 AS col0, 40
----
-2888
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL + 20 + - 16 + + + ( + - COUNT( * ) ) * - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL + 20 + - 16 + + + ( + - COUNT ( * ) ) * - COUNT ( * )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4812
SELECT + - 15 - - 94 + + 30 - 72 + - CAST( NULL AS SIGNED ) AS col2, - 59 + + - 62 DIV + MAX( - 49 )
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-4812
SELECT + - 15 - - 94 + + 30 - 72 + - CAST ( NULL AS INTEGER ) AS col2, - 59 + + - 62 / + MAX ( - 49 )
----
NULL
-58

query I rowsort
SELECT ALL - ( - - 49 ) + 75 + - 59
----
-33

query II rowsort
SELECT + + 40 - - 54, 78 AS col0
----
94
78

onlyif mysql # DIV for integer division: 
query II rowsort label-4815
SELECT ALL + 76 * 34 * COALESCE ( + 61, AVG ( + 51 ) * + 12 DIV 68 + - 89 ) AS col2, - 19 AS col0
----
157624
-19

skipif mysql # not compatible
query II rowsort label-4815
SELECT ALL + 76 * 34 * COALESCE ( + 61, AVG ( + 51 ) * + 12 / 68 + - 89 ) AS col2, - 19 AS col0
----
157624
-19

query I rowsort
SELECT + - 65 * - + 4 AS col0
----
260

query I rowsort
SELECT ALL 3 + + 43 + 13 * - 8 col1
----
-58

query I rowsort
SELECT + 73 * + 74 * - 50
----
-270100

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4819
SELECT ALL ( - 10 ) + - + 28 DIV + CAST( + + 52 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL ( - 10 ) + - + 28 / + CAST ( + + 52 AS INTEGER )
----
-10

query I rowsort
SELECT DISTINCT NULLIF ( + 35, - 41 )
----
35

query I rowsort
SELECT + 14 + + 92 + 10
----
116

query I rowsort
SELECT ALL + ( - 88 ) - - 0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL - ( + 0 ) - COUNT( * ) + + 36 * - 8 AS col0
----
-289

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL - ( + 0 ) - COUNT ( * ) + + 36 * - 8 AS col0
----
-289

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT + 83 * + - COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4824
SELECT + 83 * + - COUNT ( * ) AS col0
----
-83

query II rowsort
SELECT ALL + 47, - 53 col2
----
47
-53

query I rowsort
SELECT + CASE - 83 WHEN 81 * - 48 + 16 THEN NULL ELSE - ( - + 34 ) END AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT - 89 * - 28 + + COUNT( * )
----
2493

skipif mysql # not compatible
query I rowsort label-4827
SELECT - 89 * - 28 + + COUNT ( * )
----
2493

query I rowsort
SELECT + ( - 29 ) AS col0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4829
SELECT ALL - 75 DIV 81 - - 10 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL - 75 / 81 - - 10 AS col2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4830
SELECT + 47 DIV - 23 col0
----
-2

skipif mysql # not compatible
query I rowsort label-4830
SELECT + 47 / - 23 col0
----
-2

query I rowsort
SELECT - 53 * + 90 AS col1
----
-4770

query I rowsort
SELECT ALL + 43 * 59
----
2537

query I rowsort
SELECT + 24 * 28
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT ALL + CASE 39 WHEN + COUNT( * ) - + - 40 THEN 52 - - - 48 + + MAX( + 10 ) * + - 0 ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL + CASE 39 WHEN + COUNT ( * ) - + - 40 THEN 52 - - - 48 + + MAX ( + 10 ) * + - 0 ELSE COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT + 41 + 57 - - 95 + 42 + - + COUNT( * ) * - 81
----
316

skipif mysql # not compatible
query I rowsort label-4835
SELECT + 41 + 57 - - 95 + 42 + - + COUNT ( * ) * - 81
----
316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4836
SELECT DISTINCT COUNT( * ) * + + 89 DIV + + 33
----
2

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT COUNT ( * ) * + + 89 / + + 33
----
2

query I rowsort
SELECT DISTINCT + ( + + 78 )
----
78

query II rowsort
SELECT + 89, - 39 AS col0
----
89
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT ALL + COUNT( 86 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL + COUNT ( 86 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4840
SELECT ALL + COUNT( * ) AS col0, ( - - 44 ) * - - COALESCE ( + 27, - - 63, 22 + + + 39 ) - - 49 / 86 * CASE + 96 WHEN ( + - 53 ) THEN + ( + - 5 ) ELSE NULL END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4840
SELECT ALL + COUNT ( * ) AS col0, ( - - 44 ) * - - COALESCE ( + 27, - - 63, 22 + + + 39 ) - - 49 / 86 * CASE + 96 WHEN ( + - 53 ) THEN + ( + - 5 ) ELSE NULL END AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ( - + MIN( - 48 ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4841
SELECT ( - + MIN ( - 48 ) ) AS col2
----
48

query II rowsort
SELECT CASE - + 92 WHEN + 30 THEN - 53 END / + 79 + - 64 * - 80 * + 77, - 15 AS col0
----
NULL
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4843
SELECT - 58 * - MAX( 81 ) AS col1, + 55 * - COALESCE ( 73, 20, + + 96 ) AS col0
----
4698
-4015

skipif mysql # not compatible
query II rowsort label-4843
SELECT - 58 * - MAX ( 81 ) AS col1, + 55 * - COALESCE ( 73, 20, + + 96 ) AS col0
----
4698
-4015

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT - 63 + COUNT( * ) - - 95 + 53 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-4844
SELECT - 63 + COUNT ( * ) - - 95 + 53 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT ALL + MAX( + ( 98 ) )
----
98

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL + MAX ( + ( 98 ) )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT NULLIF ( + 97, 30 - - + ( - MAX( ALL - 83 ) ) )
----
97

skipif mysql # not compatible
query I rowsort label-4846
SELECT NULLIF ( + 97, 30 - - + ( - MAX ( ALL - 83 ) ) )
----
97

query I rowsort
SELECT ALL 35 * 56 + - - ( - + 11 ) AS col0
----
1949

onlyif mysql # aggregate syntax: 
query II rowsort label-4848
SELECT - - COUNT( * ) + + ( - + 32 ) - - 89 * - - 74 + + + COUNT( * ) AS col0, + 61
----
6556
61

skipif mysql # not compatible
query II rowsort label-4848
SELECT - - COUNT ( * ) + + ( - + 32 ) - - 89 * - - 74 + + + COUNT ( * ) AS col0, + 61
----
6556
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4849
SELECT ALL - 7 * + 55 + + + 38 - - + COUNT( * ) + 72, + COUNT( * ) AS col2
----
-274
1

skipif mysql # not compatible
query II rowsort label-4849
SELECT ALL - 7 * + 55 + + + 38 - - + COUNT ( * ) + 72, + COUNT ( * ) AS col2
----
-274
1

query I rowsort
SELECT - + 35 + - 90 - + - 24 + + + 48
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT DISTINCT + COUNT( * ) * + ( - - 85 ) * + + 62 + + 54 AS col2
----
5324

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT + COUNT ( * ) * + ( - - 85 ) * + + 62 + + 54 AS col2
----
5324

query I rowsort
SELECT ALL 34 * - 89 + 88
----
-2938

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT + COUNT( DISTINCT 18 )
----
1

skipif mysql # not compatible
query I rowsort label-4853
SELECT + COUNT ( DISTINCT 18 )
----
1

query I rowsort
SELECT - 35 * - 27 AS col1
----
945

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4855
SELECT + 38 * - - 88 + + 68 + 9 + + COUNT( * ) * - 76 DIV - COUNT( * ) * - 80 DIV + 79
----
3345

skipif mysql # not compatible
query I rowsort label-4855
SELECT + 38 * - - 88 + + 68 + 9 + + COUNT ( * ) * - 76 / - COUNT ( * ) * - 80 / + 79
----
3345

query I rowsort
SELECT + - 11 * - + 85
----
935

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4857
SELECT ALL CAST( NULL AS SIGNED ) * + + 26 * + 17 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL CAST ( NULL AS INTEGER ) * + + 26 * + 17 + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT - CASE + - 97 WHEN + - NULLIF ( - COUNT( * ), 62 ) THEN + 10 END * + - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT - CASE + - 97 WHEN + - NULLIF ( - COUNT ( * ), 62 ) THEN + 10 END * + - 48 AS col1
----
NULL

query I rowsort
SELECT + 32 + - 22
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT - - 8 * - COUNT( * ) + + 2 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-4860
SELECT - - 8 * - COUNT ( * ) + + 2 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT DISTINCT CASE + 88 WHEN - 13 * 77 * + + 93 THEN NULL ELSE - - SUM( DISTINCT 55 ) END AS col2
----
55

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT CASE + 88 WHEN - 13 * 77 * + + 93 THEN NULL ELSE - - SUM ( DISTINCT 55 ) END AS col2
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4862
SELECT ALL - + 50 - + - COUNT( * ) DIV + + MIN( 86 )
----
-50

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL - + 50 - + - COUNT ( * ) / + + MIN ( 86 )
----
-50

query II rowsort
SELECT + 35, 94 AS col0
----
35
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL + COUNT( * ) - + 41
----
-40

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL + COUNT ( * ) - + 41
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT 31 * CASE - COUNT( * ) WHEN - 23 * 64 THEN NULL WHEN + 1 * 8 + 11 * + 68 THEN + 84 * + + COUNT( + 43 ) END * + 10 * + 2 * 4 * - - AVG ( - - 47 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4865
SELECT 31 * CASE - COUNT ( * ) WHEN - 23 * 64 THEN NULL WHEN + 1 * 8 + 11 * + 68 THEN + 84 * + + COUNT ( + 43 ) END * + 10 * + 2 * 4 * - - AVG ( - - 47 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT DISTINCT - + COUNT( * ) * + + 55 col2
----
-55

skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT - + COUNT ( * ) * + + 55 col2
----
-55

query II rowsort
SELECT ALL + 33 AS col0, 79 AS col0
----
33
79

query I rowsort
SELECT 89 * - + 97 AS col0
----
-8633

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4869
SELECT 89 AS col0, + CAST( NULL AS SIGNED )
----
89
NULL

skipif mysql # not compatible
query II rowsort label-4869
SELECT 89 AS col0, + CAST ( NULL AS INTEGER )
----
89
NULL

query I rowsort
SELECT 8 - + 29
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT NULLIF ( + + 41, + - 12 + + 17 + + COALESCE ( 5, - - 27 * + + 24 ) - COALESCE ( - NULLIF ( 8, + SUM( DISTINCT + ( + + NULLIF ( + 77, 52 ) ) ) + + 97 + - 76 + + MIN( ALL + + 48 ) + - - 74 * COUNT( ALL - CASE 18 WHEN - 19 THEN NULL WHEN 18 * - 43 + 7 / + - 93 * 16 THEN NULL ELSE 54 - + 37 * + 80 END ) - ( 6 + + ( 15 ) ) * 14 ), 89 ) / 89 ) - 49 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4871
SELECT NULLIF ( + + 41, + - 12 + + 17 + + COALESCE ( 5, - - 27 * + + 24 ) - COALESCE ( - NULLIF ( 8, + SUM ( DISTINCT + ( + + NULLIF ( + 77, 52 ) ) ) + + 97 + - 76 + + MIN ( ALL + + 48 ) + - - 74 * COUNT ( ALL - CASE 18 WHEN - 19 THEN NULL WHEN 18 * - 43 + 7 / + - 93 * 16 THEN NULL ELSE 54 - + 37 * + 80 END ) - ( 6 + + ( 15 ) ) * 14 ), 89 ) / 89 ) - 49 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-4872
SELECT ALL - 53, COUNT( * ) + - - 33 AS col1
----
-53
34

skipif mysql # not compatible
query II rowsort label-4872
SELECT ALL - 53, COUNT ( * ) + - - 33 AS col1
----
-53
34

query II rowsort
SELECT 75 AS col0, 67 AS col1
----
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL SUM( ALL 49 ) * + 37
----
1813

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL SUM ( ALL 49 ) * + 37
----
1813

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4875
SELECT COUNT( * ) DIV - + 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4875
SELECT COUNT ( * ) / - + 15 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4876
SELECT ALL 0 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL 0 / + 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT ALL - COALESCE ( + + 60, + - COUNT( * ) )
----
-60

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL - COALESCE ( + + 60, + - COUNT ( * ) )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4878
SELECT DISTINCT COUNT( * ) + - COUNT( * ) DIV - COALESCE ( - 72, CAST( NULL AS SIGNED ) * - - 17 - - ( - 28 ) * 24 ) * ( 90 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) / - COALESCE ( - 72, CAST ( NULL AS INTEGER ) * - - 17 - - ( - 28 ) * 24 ) * ( 90 ) AS col2
----
1

query I rowsort
SELECT 17 + 55
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4880
SELECT 13 DIV 22 - + + 4 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4880
SELECT 13 / 22 - + + 4 AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4881
SELECT COUNT( * ) / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT DISTINCT CASE + + AVG ( - + 56 ) WHEN + - 29 THEN COALESCE ( + 87, + 62 ) WHEN + MAX( DISTINCT + 88 ) THEN - 67 - + - 2 + + COUNT( * ) * 13 / - - ( + 96 ) END + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4882
SELECT DISTINCT CASE + + AVG ( - + 56 ) WHEN + - 29 THEN COALESCE ( + 87, + 62 ) WHEN + MAX ( DISTINCT + 88 ) THEN - 67 - + - 2 + + COUNT ( * ) * 13 / - - ( + 96 ) END + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL 28 + - ( + + 30 ) AS col0
----
-2

query II rowsort
SELECT + 1, - 3 AS col0
----
1
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT 69 * - MAX( 28 )
----
-1932

skipif mysql # not compatible
query I rowsort label-4885
SELECT 69 * - MAX ( 28 )
----
-1932

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT NULLIF ( - + 89, - - NULLIF ( 58, - 45 * - COUNT( * ) ) + + - 14 * - + 90 ) * + 55 * + 50
----
-244750

skipif mysql # not compatible
query I rowsort label-4886
SELECT NULLIF ( - + 89, - - NULLIF ( 58, - 45 * - COUNT ( * ) ) + + - 14 * - + 90 ) * + 55 * + 50
----
-244750

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT 52 + - COUNT( * ) + + COUNT( * ) * 25 * + 61 AS col2
----
1576

skipif mysql # not compatible
query I rowsort label-4887
SELECT 52 + - COUNT ( * ) + + COUNT ( * ) * 25 * + 61 AS col2
----
1576

query I rowsort
SELECT ALL 92 * - 36
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT DISTINCT + COUNT( * ) + 14
----
15

skipif mysql # not compatible
query I rowsort label-4889
SELECT DISTINCT + COUNT ( * ) + 14
----
15

query I rowsort
SELECT ALL - ( - 88 ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-4891
SELECT + 84, 45 + 23 * + MAX( 71 ) * COUNT( ALL + + 36 ) AS col0
----
84
1678

skipif mysql # not compatible
query II rowsort label-4891
SELECT + 84, 45 + 23 * + MAX ( 71 ) * COUNT ( ALL + + 36 ) AS col0
----
84
1678

query I rowsort
SELECT + 10 * 50
----
500

query II rowsort
SELECT + - 66 AS col2, + 72 + - - 35 + - - 28 AS col0
----
-66
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT + 7 * + COALESCE ( COUNT( * ), + 41 + + - 15 + 22 ) + - 58 col1
----
-51

skipif mysql # not compatible
query I rowsort label-4894
SELECT + 7 * + COALESCE ( COUNT ( * ), + 41 + + - 15 + 22 ) + - 58 col1
----
-51

query I rowsort
SELECT ALL - 60 * 5
----
-300

query II rowsort
SELECT - 57, 37 AS col1
----
-57
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT DISTINCT - ( + NULLIF ( CASE - COUNT( * ) WHEN + 97 THEN NULL WHEN - 6 THEN NULL ELSE - 12 END, NULLIF ( - 97, - - ( 40 ) ) * 60 * - 86 / - + 25 + + 45 - MAX( + 93 ) + + NULLIF ( - + 73, - 28 ) - 67 + NULLIF ( 95, + ( COUNT( * ) ) ) ) ) * 53
----
636

skipif mysql # not compatible
query I rowsort label-4897
SELECT DISTINCT - ( + NULLIF ( CASE - COUNT ( * ) WHEN + 97 THEN NULL WHEN - 6 THEN NULL ELSE - 12 END, NULLIF ( - 97, - - ( 40 ) ) * 60 * - 86 / - + 25 + + 45 - MAX ( + 93 ) + + NULLIF ( - + 73, - 28 ) - 67 + NULLIF ( 95, + ( COUNT ( * ) ) ) ) ) * 53
----
636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4898
SELECT + CAST( SUM( 42 ) AS SIGNED ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-4898
SELECT + CAST ( SUM ( 42 ) AS INTEGER ) AS col0
----
42

query I rowsort
SELECT - 91 * - 98 AS col2
----
8918

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4900
SELECT DISTINCT - 66 * - 1, 86 DIV - 61 AS col1, - MAX( DISTINCT 17 ) col2
----
66
-1
-17

skipif mysql # not compatible
query III rowsort label-4900
SELECT DISTINCT - 66 * - 1, 86 / - 61 AS col1, - MAX ( DISTINCT 17 ) col2
----
66
-1
-17

query I rowsort
SELECT 46 - + 39 - + 16
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4902
SELECT - NULLIF ( + 9, + CAST( NULL AS SIGNED ) * - 9 + - CAST( NULL AS SIGNED ) + + 49 ) * 24
----
-216

skipif mysql # not compatible
query I rowsort label-4902
SELECT - NULLIF ( + 9, + CAST ( NULL AS INTEGER ) * - 9 + - CAST ( NULL AS INTEGER ) + + 49 ) * 24
----
-216

query I rowsort
SELECT 94 + - 85
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4904
SELECT - COUNT( * ) + + NULLIF ( + - 79, - 61 + - 20 ) + 90 DIV + 19 + + 6 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-4904
SELECT - COUNT ( * ) + + NULLIF ( + - 79, - 61 + - 20 ) + 90 / + 19 + + 6 AS col2
----
-70

query II rowsort
SELECT 99 * - 72 AS col2, - 72
----
-7128
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT COUNT( * ) * COUNT( + - 30 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4906
SELECT COUNT ( * ) * COUNT ( + - 30 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT 8 + - - SUM( ALL - - 45 ) + 22
----
75

skipif mysql # not compatible
query I rowsort label-4907
SELECT 8 + - - SUM ( ALL - - 45 ) + 22
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4908
SELECT 18 + + + 93, ( - - ( + CASE - + 19 WHEN - 36 * + + 35 THEN NULL WHEN - COUNT( * ) + + + 41 THEN + 36 END ) ) AS col1
----
111
NULL

skipif mysql # not compatible
query II rowsort label-4908
SELECT 18 + + + 93, ( - - ( + CASE - + 19 WHEN - 36 * + + 35 THEN NULL WHEN - COUNT ( * ) + + + 41 THEN + 36 END ) ) AS col1
----
111
NULL

query II rowsort
SELECT 24 * 78, - 75 AS col0
----
1872
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT COUNT( * ) + - ( - 49 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-4910
SELECT COUNT ( * ) + - ( - 49 ) AS col0
----
50

query I rowsort
SELECT DISTINCT 47 * + + 45 AS col2
----
2115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4912
SELECT ALL - NULLIF ( + 81, CAST( + 89 AS SIGNED ) * - - CAST( + - 95 AS SIGNED ) ) + + NULLIF ( + 14, + ( + COUNT( * ) ) + - ( - 67 ) ) AS col0, 32
----
-67
32

skipif mysql # not compatible
query II rowsort label-4912
SELECT ALL - NULLIF ( + 81, CAST ( + 89 AS INTEGER ) * - - CAST ( + - 95 AS INTEGER ) ) + + NULLIF ( + 14, + ( + COUNT ( * ) ) + - ( - 67 ) ) AS col0, 32
----
-67
32

query I rowsort
SELECT 14 + 0 * - 93 AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4914
SELECT 17 DIV 4 * + 78 + + - 23 - - MIN( + - 69 ) + + 73
----
293

skipif mysql # not compatible
query I rowsort label-4914
SELECT 17 / 4 * + 78 + + - 23 - - MIN ( + - 69 ) + + 73
----
293

query I rowsort
SELECT DISTINCT + 0 * + 94 + + 35 AS col0
----
35

query I rowsort
SELECT 49 + - COALESCE ( - + 9, + - 81 ) + - 72 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT COUNT( - - 52 ) * 25 - - COUNT( * ) * - 72
----
-47

skipif mysql # not compatible
query I rowsort label-4917
SELECT COUNT ( - - 52 ) * 25 - - COUNT ( * ) * - 72
----
-47

query I rowsort
SELECT + 22 * - + 82 + - 94
----
-1898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4919
SELECT AVG ( DISTINCT + CAST( NULL AS SIGNED ) ), 8 * COUNT( * ) * + - 96 AS col0
----
NULL
-768

skipif mysql # not compatible
query II rowsort label-4919
SELECT AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ), 8 * COUNT ( * ) * + - 96 AS col0
----
NULL
-768

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4920
SELECT ALL 1 * 51 + - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL 1 * 51 + - - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + 73 + + 27 AS col0, 6 + - 43 col0
----
100
-37

query II rowsort
SELECT DISTINCT - 22 - - 14, 65 AS col0
----
-8
65

query I rowsort
SELECT ALL - + 47 col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT + SUM( + 37 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-4924
SELECT + SUM ( + 37 ) AS col1
----
37

query I rowsort
SELECT ( + + 94 ) + - 28 AS col2
----
66

query I rowsort
SELECT ALL - CASE - 93 WHEN - 51 THEN ( - CASE 82 WHEN + NULLIF ( AVG ( DISTINCT - - 56 ), + 23 ) THEN 79 - - 10 END ) END * ( + 65 ) * 87 - 55 + 9 AS col0
----
NULL

query I rowsort
SELECT + 30 * + 54
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT + 67 * + 63 + - 31 + - SUM( + 97 ) / 51 * + + ( CASE + ( 49 ) WHEN + 79 - 78 THEN 70 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4928
SELECT + 67 * + 63 + - 31 + - SUM ( + 97 ) / 51 * + + ( CASE + ( 49 ) WHEN + 79 - 78 THEN 70 ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 69, + - 2 ) - + 55
----
14

query I rowsort
SELECT - + 51 + + 80 AS col0
----
29

query I rowsort
SELECT - - 76 + 31 AS col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT DISTINCT SUM( ALL 50 )
----
50

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT SUM ( ALL 50 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4933
SELECT - 1 * + ( - CAST( + AVG ( DISTINCT + 85 ) AS SIGNED ) ) DIV - COUNT( ALL - + 47 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-4933
SELECT - 1 * + ( - CAST ( + AVG ( DISTINCT + 85 ) AS INTEGER ) ) / - COUNT ( ALL - + 47 ) AS col1
----
-85

query I rowsort
SELECT ALL + 76 * + 55 AS col0
----
4180

query II rowsort
SELECT ALL COALESCE ( 8, 22 ) AS col0, 82 AS col2
----
8
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4936
SELECT - 53 DIV - CAST( - + SUM( ALL - - 68 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4936
SELECT - 53 / - CAST ( - + SUM ( ALL - - 68 ) AS INTEGER )
----
0

query I rowsort
SELECT + 65 - + - 82 AS col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT - 41 + + COUNT( * ) * - - 83 + + + ( - COUNT( * ) ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-4938
SELECT - 41 + + COUNT ( * ) * - - 83 + + + ( - COUNT ( * ) ) AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4939
SELECT ALL COALESCE ( COUNT( DISTINCT - CAST( NULL AS SIGNED ) ), + - 56 )
----
0

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL COALESCE ( COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ), + - 56 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4940
SELECT - COALESCE ( 62, - - MAX( ALL + - 72 ) * COUNT( * ) + 96 * 44 ) DIV - COUNT( * ), + ( 43 ) AS col0
----
62
43

skipif mysql # not compatible
query II rowsort label-4940
SELECT - COALESCE ( 62, - - MAX ( ALL + - 72 ) * COUNT ( * ) + 96 * 44 ) / - COUNT ( * ), + ( 43 ) AS col0
----
62
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4941
SELECT DISTINCT + 40 DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT + 40 / 53
----
0

query I rowsort
SELECT - 11 - - 61 AS col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4943
SELECT ALL COUNT( * ) AS col0, 1 * + 38 DIV - 22
----
1
-1

skipif mysql # not compatible
query II rowsort label-4943
SELECT ALL COUNT ( * ) AS col0, 1 * + 38 / - 22
----
1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4944
SELECT ALL 0 DIV COUNT( * ) + - 91 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL 0 / COUNT ( * ) + - 91 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4945
SELECT ALL + 23 AS col1, COUNT( * )
----
23
1

skipif mysql # not compatible
query II rowsort label-4945
SELECT ALL + 23 AS col1, COUNT ( * )
----
23
1

query I rowsort
SELECT ALL 75 * - 67 * - 30
----
150750

query I rowsort
SELECT - 51 + + - 65 * - 76
----
4889

query II rowsort
SELECT DISTINCT + - 36, 19 AS col2
----
-36
19

query I rowsort
SELECT + CASE 99 WHEN + 55 THEN NULL ELSE - 65 END
----
-65

query I rowsort
SELECT ALL + - ( 61 )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4951
SELECT ALL + CAST( NULL AS SIGNED ) * - 93 + - + ( - - 95 ) * ( - + 39 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL + CAST ( NULL AS INTEGER ) * - 93 + - + ( - - 95 ) * ( - + 39 ) AS col1
----
NULL

query I rowsort
SELECT ALL 95 * + - ( - 40 ) AS col1
----
3800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4953
SELECT + + SUM( DISTINCT - 20 ) * 59 AS col1, - CAST( + 13 AS SIGNED ) col1
----
-1180
-13

skipif mysql # not compatible
query II rowsort label-4953
SELECT + + SUM ( DISTINCT - 20 ) * 59 AS col1, - CAST ( + 13 AS INTEGER ) col1
----
-1180
-13

query I rowsort
SELECT + 48 * 51 * + 48 * - 93 + + 72 AS col1
----
-10927800

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT COUNT( DISTINCT + 79 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4955
SELECT COUNT ( DISTINCT + 79 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4956
SELECT DISTINCT 43 DIV 9 col1
----
4

skipif mysql # not compatible
query I rowsort label-4956
SELECT DISTINCT 43 / 9 col1
----
4

query I rowsort
SELECT 86 * - - 98 + + 91 * + 48
----
12796

onlyif mysql # aggregate syntax: 
query II rowsort label-4958
SELECT + + COUNT( * ) AS col2, - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-4958
SELECT + + COUNT ( * ) AS col2, - COUNT ( * )
----
1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4959
SELECT 67 AS col0, COUNT( * ) + - 37 - - ( + COUNT( * ) )
----
67
-35

skipif mysql # not compatible
query II rowsort label-4959
SELECT 67 AS col0, COUNT ( * ) + - 37 - - ( + COUNT ( * ) )
----
67
-35

query I rowsort
SELECT + 40 - 35 * + 68
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT + - COUNT( * ) * - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4961
SELECT + - COUNT ( * ) * - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT + 14 * + ( + + 56 ) + 93
----
877

query I rowsort
SELECT + 53 + 35
----
88

query I rowsort
SELECT ALL ( + 58 ) * 2 + 29 AS col2
----
145

query I rowsort
SELECT + 67 + + 1
----
68

query I rowsort
SELECT ALL NULLIF ( - 69, + + 85 + 76 * - 72 )
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-4967
SELECT DISTINCT COALESCE ( + 99, + 94 * SUM( - 48 ) ) + - SUM( + 19 ) AS col1, - 6 * - 78 AS col2
----
80
468

skipif mysql # not compatible
query II rowsort label-4967
SELECT DISTINCT COALESCE ( + 99, + 94 * SUM ( - 48 ) ) + - SUM ( + 19 ) AS col1, - 6 * - 78 AS col2
----
80
468

query I rowsort
SELECT + 41 + - 2 * - - 71 * 64 col1
----
-9047

query I rowsort
SELECT DISTINCT NULLIF ( 0, - - 19 ) AS col0
----
0

query I rowsort
SELECT ALL + 54 + - 91 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT + COUNT( * ) + 62 col0
----
63

skipif mysql # not compatible
query I rowsort label-4971
SELECT + COUNT ( * ) + 62 col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT DISTINCT + 27 * - 40 * + MIN( - 11 )
----
11880

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT + 27 * - 40 * + MIN ( - 11 )
----
11880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4973
SELECT - ( 1 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4973
SELECT - ( 1 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( 84 ) * - - 63
----
-5292

query I rowsort
SELECT ALL CASE + 33 WHEN + - 57 * 44 * 80 * - 22 THEN 37 WHEN + + 67 THEN + ( - + 94 ) ELSE - - 49 END AS col2
----
49

query I rowsort
SELECT + 69 + 81 + + - 38 + - ( 68 ) * - 58
----
4056

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT COUNT( ALL + 22 ) * - COUNT( * ) + - 52 * - 89 AS col0
----
4627

skipif mysql # not compatible
query I rowsort label-4977
SELECT COUNT ( ALL + 22 ) * - COUNT ( * ) + - 52 * - 89 AS col0
----
4627

query I rowsort
SELECT - 45 * - 53 AS col1
----
2385

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4979
SELECT ALL - + COUNT( * ) / + 5 / ( - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL - + COUNT ( * ) / + 5 / ( - CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT 28 + + 78
----
106

query I rowsort
SELECT DISTINCT - 39 * - - ( - 1 ) - + 72 * + + 89
----
-6369

query I rowsort
SELECT + - 10 * + + 53 + + + 95 + + CASE + - 17 WHEN + ( 9 ) THEN - 64 WHEN - + 13 THEN NULL END + - - COALESCE ( + 6, 67 ) - - + 64 - 70 + + 83 AS col1
----
NULL

query I rowsort
SELECT ALL - ( - + 33 ) col2
----
33

query I rowsort
SELECT DISTINCT 83 * 32
----
2656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4985
SELECT + COUNT( * ) * - CAST( - - 26 AS SIGNED ) - + 68, CAST( + COUNT( * ) AS SIGNED ) + 4 AS col1
----
-94
5

skipif mysql # not compatible
query II rowsort label-4985
SELECT + COUNT ( * ) * - CAST ( - - 26 AS INTEGER ) - + 68, CAST ( + COUNT ( * ) AS INTEGER ) + 4 AS col1
----
-94
5

query I rowsort
SELECT ALL + - 29 * 95 * - 26 + + 90
----
71720

query I rowsort
SELECT 98 + 55
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT DISTINCT - + 87 + - 92 * + + NULLIF ( - 21, - ( + 34 ) + COUNT( * ) + 41 * - + MIN( ALL - 99 ) * - 66 ) AS col2
----
1845

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT - + 87 + - 92 * + + NULLIF ( - 21, - ( + 34 ) + COUNT ( * ) + 41 * - + MIN ( ALL - 99 ) * - 66 ) AS col2
----
1845

query I rowsort
SELECT DISTINCT + 63 + + 96
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT ALL - 93 + 96 - + MIN( ALL + 37 )
----
-34

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL - 93 + 96 - + MIN ( ALL + 37 )
----
-34

query I rowsort
SELECT DISTINCT + 30 + + 66
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4992
SELECT DISTINCT 7 * - CAST( ( - 97 ) AS SIGNED ) AS col1
----
679

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT 7 * - CAST ( ( - 97 ) AS INTEGER ) AS col1
----
679

onlyif mysql # aggregate syntax: 
query II rowsort label-4993
SELECT - COUNT( * ) * 36 + + 42 AS col2, + COUNT( * )
----
6
1

skipif mysql # not compatible
query II rowsort label-4993
SELECT - COUNT ( * ) * 36 + + 42 AS col2, + COUNT ( * )
----
6
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4994
SELECT ALL 36 DIV + - 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL 36 / + - 61 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4995
SELECT 17 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-4995
SELECT 17 / 51
----
0

query I rowsort
SELECT 53 + - 45 * - + 7 * + - 21 * - - 2
----
-13177

query I rowsort
SELECT 24 * - 92 col2
----
-2208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4998
SELECT ALL CAST( NULL AS SIGNED ) + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL CAST ( NULL AS INTEGER ) + + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT DISTINCT COUNT( * ) * - 49 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-4999
SELECT DISTINCT COUNT ( * ) * - 49 AS col1
----
-49

query II rowsort
SELECT ALL 86, 12 * + - 67 AS col0
----
86
-804

query II rowsort
SELECT ALL 38, 92 AS col2
----
38
92

query I rowsort
SELECT DISTINCT 28 * + 23 * 88 AS col1
----
56672

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5003
SELECT 94 + - - CAST( + 40 AS SIGNED ), - NULLIF ( COALESCE ( + - CAST( NULL AS SIGNED ), - ( - 33 ) + 88 * - ( 91 ), 24, 6 ), + - 71 ) AS col0
----
134
7975

skipif mysql # not compatible
query II rowsort label-5003
SELECT 94 + - - CAST ( + 40 AS INTEGER ), - NULLIF ( COALESCE ( + - CAST ( NULL AS INTEGER ), - ( - 33 ) + 88 * - ( 91 ), 24, 6 ), + - 71 ) AS col0
----
134
7975

query I rowsort
SELECT 3 * + 59 * + 1 col1
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-5005
SELECT 66 - 96 DIV + 91 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-5005
SELECT 66 - 96 / + 91 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT DISTINCT - - SUM( ALL - 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-5006
SELECT DISTINCT - - SUM ( ALL - 82 ) AS col2
----
-82

query I rowsort
SELECT ALL - 10 * - - 48
----
-480

query I rowsort
SELECT DISTINCT + 82 * COALESCE ( 26, 79 ) AS col1
----
2132

query I rowsort
SELECT - 77 + - - 55
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5010
SELECT ALL - 49 * + - ( - 3 ) * + + SUM( ALL - NULLIF ( 63, + 49 - - ( + 11 ) + - 87 + 44 * + - 27 ) ) + 52, COUNT( * ) + COALESCE ( - 89, + - 58 - - - 54 + CAST( COUNT( * ) AS SIGNED ) + - 2 + - 41 + - - COUNT( + + 15 ) DIV - + 75 * + COUNT( * ) * 61 * - CASE - COUNT( * ) WHEN - - COUNT( * ) THEN + 5 ELSE 79 * + MAX( DISTINCT + 41 ) END ) * CAST( + 7 AS SIGNED ) col0
----
9313
-622

skipif mysql # not compatible
query II rowsort label-5010
SELECT ALL - 49 * + - ( - 3 ) * + + SUM ( ALL - NULLIF ( 63, + 49 - - ( + 11 ) + - 87 + 44 * + - 27 ) ) + 52, COUNT ( * ) + COALESCE ( - 89, + - 58 - - - 54 + CAST ( COUNT ( * ) AS INTEGER ) + - 2 + - 41 + - - COUNT ( + + 15 ) / - + 75 * + COUNT ( * ) * 61 * - CASE - COUNT ( * ) WHEN - - COUNT ( * ) THEN + 5 ELSE 79 * + MAX ( DISTINCT + 41 ) END ) * CAST ( + 7 AS INTEGER ) col0
----
9313
-622

query I rowsort
SELECT - CASE 9 WHEN + 41 * + 45 * + 55 THEN - - 10 + + AVG ( ALL - 37 ) WHEN + 71 THEN 62 END - 98
----
NULL

query I rowsort
SELECT - ( - + 87 ) * 2
----
174

query I rowsort
SELECT ALL + 58 + - 71 + - 63
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT ALL - COUNT( * ) + 49 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL - COUNT ( * ) + 49 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT ALL - + COUNT( DISTINCT + 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL - + COUNT ( DISTINCT + 66 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5016
SELECT - - 5 DIV + 45 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5016
SELECT - - 5 / + 45 + + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT 0 + - 29
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT ALL + 97 + - + SUM( DISTINCT NULLIF ( - 56, - NULLIF ( + ( - 27 ), 38 ) ) ) * + - 54 * - 35
----
105937

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL + 97 + - + SUM ( DISTINCT NULLIF ( - 56, - NULLIF ( + ( - 27 ), 38 ) ) ) * + - 54 * - 35
----
105937

query I rowsort
SELECT ALL + + 14 * + 69 AS col0
----
966

query I rowsort
SELECT ALL + - 88 + - 30
----
-118

query II rowsort
SELECT 8, 35 AS col0
----
8
35

query II rowsort
SELECT 42 * + 43 * 61 + + + 17 + - + 16, 40 AS col0
----
110167
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5023
SELECT 15 * - CAST( NULL AS SIGNED ) + CASE 24 WHEN - 45 THEN - - ( AVG ( + 21 ) ) * - - COALESCE ( 65, - 35 * - CAST( NULL AS SIGNED ) ) * - 85 * - COUNT( * ) * + - 46 * + + MAX( - - 63 ) ELSE NULL END - - 72 - - ( + COUNT( * ) ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5023
SELECT 15 * - CAST ( NULL AS INTEGER ) + CASE 24 WHEN - 45 THEN - - ( AVG ( + 21 ) ) * - - COALESCE ( 65, - 35 * - CAST ( NULL AS INTEGER ) ) * - 85 * - COUNT ( * ) * + - 46 * + + MAX ( - - 63 ) ELSE NULL END - - 72 - - ( + COUNT ( * ) ) - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5024
SELECT - 70, - COUNT( + 0 ) AS col0
----
-70
-1

skipif mysql # not compatible
query II rowsort label-5024
SELECT - 70, - COUNT ( + 0 ) AS col0
----
-70
-1

query I rowsort
SELECT 43 + - 42 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT DISTINCT COUNT( + - 62 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT COUNT ( + - 62 ) AS col1
----
1

query I rowsort
SELECT 42 + - 25 * - 50 AS col2
----
1292

query II rowsort
SELECT 78 - 71 AS col1, - 86 AS col1
----
7
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT ( - + COALESCE ( - + 33, - + 93 * CASE + + 28 WHEN + + 36 THEN NULL WHEN + - 39 THEN - 18 WHEN ( + 10 ) + - 13 THEN NULL ELSE NULL END * + COALESCE ( - - NULLIF ( - COUNT( * ), - CASE - 25 WHEN + 84 THEN - 53 END * + COUNT( * ) + - 39 ), - 72 * + 43 * - 72, + 32 ) * 15 ) ) + + - 58
----
-25

skipif mysql # not compatible
query I rowsort label-5029
SELECT ( - + COALESCE ( - + 33, - + 93 * CASE + + 28 WHEN + + 36 THEN NULL WHEN + - 39 THEN - 18 WHEN ( + 10 ) + - 13 THEN NULL ELSE NULL END * + COALESCE ( - - NULLIF ( - COUNT ( * ), - CASE - 25 WHEN + 84 THEN - 53 END * + COUNT ( * ) + - 39 ), - 72 * + 43 * - 72, + 32 ) * 15 ) ) + + - 58
----
-25

query II rowsort
SELECT - 96 AS col2, ( + 47 ) AS col0
----
-96
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT ALL 16 * + COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL 16 * + COUNT ( * ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL NULLIF ( - 43, - MIN( ALL 91 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL NULLIF ( - 43, - MIN ( ALL 91 ) )
----
-43

query I rowsort
SELECT ALL 10 * 47 col1
----
470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5034
SELECT + - CAST( COUNT( - 0 ) AS SIGNED ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5034
SELECT + - CAST ( COUNT ( - 0 ) AS INTEGER ) + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT ALL + 45 * - - COUNT( * ) * - 28 + - ( 39 ) AS col0
----
-1299

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL + 45 * - - COUNT ( * ) * - 28 + - ( 39 ) AS col0
----
-1299

onlyif mysql # DIV for integer division: 
query I rowsort label-5036
SELECT + 3 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-5036
SELECT + 3 / - 97
----
0

query I rowsort
SELECT - - 48 + 21 col0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5038
SELECT COUNT( * ) AS col2, - 51 AS col2
----
1
-51

skipif mysql # not compatible
query II rowsort label-5038
SELECT COUNT ( * ) AS col2, - 51 AS col2
----
1
-51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5039
SELECT CASE CAST( NULL AS SIGNED ) WHEN + 66 THEN - - 45 WHEN CAST( - - 4 AS DECIMAL ) * + - CAST( NULL AS SIGNED ) * 1 - + 35 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT CASE CAST ( NULL AS INTEGER ) WHEN + 66 THEN - - 45 WHEN CAST ( - - 4 AS REAL ) * + - CAST ( NULL AS INTEGER ) * 1 - + 35 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-5040
SELECT + COUNT( * ), COALESCE ( - - 21, + 61 ) AS col2, - 22 col2
----
1
21
-22

skipif mysql # not compatible
query III rowsort label-5040
SELECT + COUNT ( * ), COALESCE ( - - 21, + 61 ) AS col2, - 22 col2
----
1
21
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT - + MIN( + - 53 ) / + 73 + + 67 + 72 / + - CASE SUM( ALL + 42 ) WHEN + MIN( DISTINCT + - ( 57 ) ) THEN NULL WHEN - + ( + + 71 ) THEN + NULLIF ( - - 29, - 73 / - - 17 / + 80 + - COUNT( * ) ) + + 26 + + 92 * 58 ELSE NULL END * - 45 + - + 60 + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5041
SELECT - + MIN ( + - 53 ) / + 73 + + 67 + 72 / + - CASE SUM ( ALL + 42 ) WHEN + MIN ( DISTINCT + - ( 57 ) ) THEN NULL WHEN - + ( + + 71 ) THEN + NULLIF ( - - 29, - 73 / - - 17 / + 80 + - COUNT ( * ) ) + + 26 + + 92 * 58 ELSE NULL END * - 45 + - + 60 + + 13
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5042
SELECT ALL - 15 * - CAST( NULL AS SIGNED ) + + 77 + 92 - - + 16 * - + CASE - - 92 WHEN 67 THEN + 96 WHEN + - 20 THEN NULL ELSE + + COUNT( * ) END * + + ( + 32 ) + COUNT( * ) * - 78 / + 57 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5042
SELECT ALL - 15 * - CAST ( NULL AS INTEGER ) + + 77 + 92 - - + 16 * - + CASE - - 92 WHEN 67 THEN + 96 WHEN + - 20 THEN NULL ELSE + + COUNT ( * ) END * + + ( + 32 ) + COUNT ( * ) * - 78 / + 57 col1
----
NULL

query I rowsort
SELECT + - 49 * + + 52 AS col0
----
-2548

query I rowsort
SELECT ALL - - 61 * 60
----
3660

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT ALL - - 77 * 7 + + + COUNT( DISTINCT 81 ) AS col0
----
540

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL - - 77 * 7 + + + COUNT ( DISTINCT 81 ) AS col0
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT - 65 * + + 90 + 36 + COUNT( ALL - NULLIF ( 14, - 67 ) ) AS col1
----
-5813

skipif mysql # not compatible
query I rowsort label-5046
SELECT - 65 * + + 90 + 36 + COUNT ( ALL - NULLIF ( 14, - 67 ) ) AS col1
----
-5813

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT + COUNT( + 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5047
SELECT + COUNT ( + 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT - + 91 + MIN( ALL + 1 ) + - 67 * 98 * + 70
----
-459710

skipif mysql # not compatible
query I rowsort label-5048
SELECT - + 91 + MIN ( ALL + 1 ) + - 67 * 98 * + 70
----
-459710

query II rowsort
SELECT + 18 * + - 57, 9 AS col0
----
-1026
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5050
SELECT + 36 DIV - + 48
----
0

skipif mysql # not compatible
query I rowsort label-5050
SELECT + 36 / - + 48
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5051
SELECT - SUM( ALL - 3 ) DIV + COUNT( - + 19 )
----
3

skipif mysql # not compatible
query I rowsort label-5051
SELECT - SUM ( ALL - 3 ) / + COUNT ( - + 19 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5052
SELECT ALL + 95 / + 57 * CASE 32 WHEN - COUNT( * ) THEN + ( - 38 ) WHEN - 99 THEN NULL ELSE + CAST( NULL AS SIGNED ) - - - 67 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL + 95 / + 57 * CASE 32 WHEN - COUNT ( * ) THEN + ( - 38 ) WHEN - 99 THEN NULL ELSE + CAST ( NULL AS INTEGER ) - - - 67 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 77 * + + NULLIF ( - + 7, + 27 ) col1
----
-539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5054
SELECT - 82 * + CASE - CAST( + - COUNT( * ) AS SIGNED ) WHEN + 80 THEN - + 12 * - - ( CASE WHEN - 36 = + 28 THEN + 61 ELSE NULL END ) WHEN - - 37 THEN - 79 WHEN + 27 + + + 84 THEN NULL ELSE NULL END * - + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5054
SELECT - 82 * + CASE - CAST ( + - COUNT ( * ) AS INTEGER ) WHEN + 80 THEN - + 12 * - - ( CASE WHEN - 36 = + 28 THEN + 61 ELSE NULL END ) WHEN - - 37 THEN - 79 WHEN + 27 + + + 84 THEN NULL ELSE NULL END * - + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT - COUNT( * ) * - 51 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-5055
SELECT - COUNT ( * ) * - 51 AS col0
----
51

query I rowsort
SELECT ALL - 23 * - - 85 AS col2
----
-1955

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5057
SELECT - 46 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5057
SELECT - 46 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 5 * + - 88 AS col1
----
440

query I rowsort
SELECT DISTINCT ( 69 )
----
69

query I rowsort
SELECT DISTINCT CASE 87 WHEN + 10 THEN NULL WHEN - - 66 THEN + 43 WHEN + + 10 + - - 6 * - ( + 48 ) * 52 + + 62 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5061
SELECT ALL - COUNT( * ) + 42, MIN( + - 83 ) AS col0
----
41
-83

skipif mysql # not compatible
query II rowsort label-5061
SELECT ALL - COUNT ( * ) + 42, MIN ( + - 83 ) AS col0
----
41
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5062
SELECT DISTINCT CASE 21 WHEN - - 81 + - 78 THEN NULL WHEN CAST( NULL AS SIGNED ) + - 60 + 3 + COUNT( * ) THEN + - COUNT( ALL 39 ) * - 21 * - CAST( NULL AS SIGNED ) + COUNT( * ) * - - 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT CASE 21 WHEN - - 81 + - 78 THEN NULL WHEN CAST ( NULL AS INTEGER ) + - 60 + 3 + COUNT ( * ) THEN + - COUNT ( ALL 39 ) * - 21 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) * - - 0 END
----
NULL

query I rowsort
SELECT ALL + 93 + - + 82 AS col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5064
SELECT - - NULLIF ( + + CASE - - CAST( NULL AS DECIMAL ) WHEN - ( + 32 ) THEN NULL WHEN 76 * + ( - - 43 ) - - + 6 THEN + 71 * - 77 + 81 * + 11 - - SUM( - 89 ) * - 71 * + + 23 ELSE NULL END, - 22 * 81 * 67 + + CAST( + - 18 AS SIGNED ) * - - 41 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5064
SELECT - - NULLIF ( + + CASE - - CAST ( NULL AS REAL ) WHEN - ( + 32 ) THEN NULL WHEN 76 * + ( - - 43 ) - - + 6 THEN + 71 * - 77 + 81 * + 11 - - SUM ( - 89 ) * - 71 * + + 23 ELSE NULL END, - 22 * 81 * 67 + + CAST ( + - 18 AS INTEGER ) * - - 41 ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( - + 98 ) + - + 91 * + 53 * + + 37 + + 73
----
-178280

query I rowsort
SELECT - - 19 + - + 69
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5067
SELECT - + NULLIF ( CASE - 30 WHEN - 96 THEN 27 WHEN COUNT( - CAST( + 10 AS SIGNED ) ) * + - 41 THEN - ( - + 57 ) - - COALESCE ( + 57, - 52 ) * + 52 END, + COUNT( * ) ) + + + 94 AS col1, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5067
SELECT - + NULLIF ( CASE - 30 WHEN - 96 THEN 27 WHEN COUNT ( - CAST ( + 10 AS INTEGER ) ) * + - 41 THEN - ( - + 57 ) - - COALESCE ( + 57, - 52 ) * + 52 END, + COUNT ( * ) ) + + + 94 AS col1, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT DISTINCT + 0 * - MAX( + ( - - 41 ) ) - - - 7
----
-7

skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT + 0 * - MAX ( + ( - - 41 ) ) - - - 7
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT ALL COUNT( * ) * NULLIF ( - NULLIF ( - + SUM( + - 49 ), + + ( + 54 ) * + 2 ), 37 * + 19 * 65 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL COUNT ( * ) * NULLIF ( - NULLIF ( - + SUM ( + - 49 ), + + ( + 54 ) * + 2 ), 37 * + 19 * 65 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT - NULLIF ( - - ( - 38 ), 68 + - + NULLIF ( COUNT( * ), CASE 83 WHEN + COUNT( * ) THEN + + 42 + - 58 + + 70 ELSE NULL END ) )
----
38

skipif mysql # not compatible
query I rowsort label-5070
SELECT - NULLIF ( - - ( - 38 ), 68 + - + NULLIF ( COUNT ( * ), CASE 83 WHEN + COUNT ( * ) THEN + + 42 + - 58 + + 70 ELSE NULL END ) )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5071
SELECT - 51 * - + NULLIF ( + - 40, + + 98 * - + 95 ) + - 95 + CASE + - 50 WHEN + 72 / - 21 + - 28 / - 73 THEN + 99 END + - 65 + - COALESCE ( - + 53, - CASE + 70 WHEN - - 70 THEN - MAX( 64 ) ELSE + - 14 + - 8 * CAST( NULL AS SIGNED ) + + 7 / MIN( DISTINCT - 47 ) END ) * - - 55 + - COALESCE ( CAST( NULL AS SIGNED ), 79 * - 59 * - ( - - ( COUNT( * ) ) ) * + 76 + - + NULLIF ( - 73, MIN( DISTINCT 44 ) * + 53 ) + 53 ) - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-5071
SELECT - 51 * - + NULLIF ( + - 40, + + 98 * - + 95 ) + - 95 + CASE + - 50 WHEN + 72 / - 21 + - 28 / - 73 THEN + 99 END + - 65 + - COALESCE ( - + 53, - CASE + 70 WHEN - - 70 THEN - MAX ( 64 ) ELSE + - 14 + - 8 * CAST ( NULL AS INTEGER ) + + 7 / MIN ( DISTINCT - 47 ) END ) * - - 55 + - COALESCE ( CAST ( NULL AS INTEGER ), 79 * - 59 * - ( - - ( COUNT ( * ) ) ) * + 76 + - + NULLIF ( - 73, MIN ( DISTINCT 44 ) * + 53 ) + 53 ) - 38
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5072
SELECT ALL + + 34 DIV + 87 + + + COUNT( * ) + 62 * - 98 + + 87 + + + 39 * - SUM( - - CAST( 68 AS SIGNED ) ) AS col0
----
-8640

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL + + 34 / + 87 + + + COUNT ( * ) + 62 * - 98 + + 87 + + + 39 * - SUM ( - - CAST ( 68 AS INTEGER ) ) AS col0
----
-8640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5073
SELECT DISTINCT + - COUNT( ALL + 81 ) * + 49 DIV - - 22 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT + - COUNT ( ALL + 81 ) * + 49 / - - 22 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT + + COALESCE ( - - CASE - + 38 WHEN + + 11 THEN NULL WHEN + NULLIF ( - - 91, + + 20 ) THEN ( + 9 ) * - - ( 80 ) * - 36 END, - 64, - MIN( - 45 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-5074
SELECT + + COALESCE ( - - CASE - + 38 WHEN + + 11 THEN NULL WHEN + NULLIF ( - - 91, + + 20 ) THEN ( + 9 ) * - - ( 80 ) * - 36 END, - 64, - MIN ( - 45 ) )
----
-64

query I rowsort
SELECT - + 42 + + 14 + - 36 + - - 58 * 43 AS col1
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT + + COUNT( * ) * - + 90
----
-90

skipif mysql # not compatible
query I rowsort label-5076
SELECT + + COUNT ( * ) * - + 90
----
-90

query I rowsort
SELECT + 95 * - + 33 AS col2
----
-3135

query I rowsort
SELECT ALL + 91 * + + ( 57 ) * - NULLIF ( - + COALESCE ( - 27, + 55 * + - 80 + - 37 ), 92 )
----
-140049

query I rowsort
SELECT + ( + + 70 ) AS col1
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-5080
SELECT - ( + + 65 ) DIV - - 3 AS col1, - 26 + - 75 + 18 DIV - 26 col1
----
-21
-101

skipif mysql # not compatible
query II rowsort label-5080
SELECT - ( + + 65 ) / - - 3 AS col1, - 26 + - 75 + 18 / - 26 col1
----
-21
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-5081
SELECT + COUNT( * ) + - 14 * + 31 AS col2, 79 * - 3 + - 41
----
-433
-278

skipif mysql # not compatible
query II rowsort label-5081
SELECT + COUNT ( * ) + - 14 * + 31 AS col2, 79 * - 3 + - 41
----
-433
-278

query I rowsort
SELECT NULLIF ( 39, 78 )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5083
SELECT ALL + MAX( ALL 68 ) + + 94 AS col2, 68 + 12 AS col0
----
162
80

skipif mysql # not compatible
query II rowsort label-5083
SELECT ALL + MAX ( ALL 68 ) + + 94 AS col2, 68 + 12 AS col0
----
162
80

query I rowsort
SELECT ( - 4 ) * - 78 + + 30 + + 0
----
342

onlyif mysql # DIV for integer division: 
query I rowsort label-5085
SELECT DISTINCT 39 DIV - 47 col2
----
0

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT 39 / - 47 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5086
SELECT 6 + + - COUNT( DISTINCT + 85 ) AS col2, - MAX( DISTINCT - + 1 ) - + + 11 col0
----
5
-10

skipif mysql # not compatible
query II rowsort label-5086
SELECT 6 + + - COUNT ( DISTINCT + 85 ) AS col2, - MAX ( DISTINCT - + 1 ) - + + 11 col0
----
5
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5087
SELECT + ( 58 ) + - CAST( NULL AS SIGNED ) * + + ( - 82 ) * + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5087
SELECT + ( 58 ) + - CAST ( NULL AS INTEGER ) * + + ( - 82 ) * + + 36
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5088
SELECT CAST( NULL AS SIGNED ) + 9 + + 50 * + 1 + 68 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5088
SELECT CAST ( NULL AS INTEGER ) + 9 + + 50 * + 1 + 68 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT - COUNT( * ) + - + 11 * + - 79 * + 32 + + + COUNT( * )
----
27808

skipif mysql # not compatible
query I rowsort label-5089
SELECT - COUNT ( * ) + - + 11 * + - 79 * + 32 + + + COUNT ( * )
----
27808

onlyif mysql # aggregate syntax: 
query II rowsort label-5090
SELECT ALL - 62 + + ( + 1 ), - CASE - 52 WHEN + 87 THEN NULL WHEN - 18 THEN + 72 + + ( NULLIF ( COUNT( - 3 ), - 93 * - ( - 85 ) + + - COUNT( - 89 ) ) ) WHEN - 48 THEN NULL END * + 38 * - 54 + 0 col1
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-5090
SELECT ALL - 62 + + ( + 1 ), - CASE - 52 WHEN + 87 THEN NULL WHEN - 18 THEN + 72 + + ( NULLIF ( COUNT ( - 3 ), - 93 * - ( - 85 ) + + - COUNT ( - 89 ) ) ) WHEN - 48 THEN NULL END * + 38 * - 54 + 0 col1
----
-61
NULL

query II rowsort
SELECT - 56 AS col2, 7 col1
----
-56
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT + COUNT( DISTINCT + + 85 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5092
SELECT + COUNT ( DISTINCT + + 85 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5093
SELECT DISTINCT - 34 + ( + + ( + 94 ) ) - - + 52 - - COUNT( * ), - COUNT( * ) - 23 - - 8 AS col2
----
113
-16

skipif mysql # not compatible
query II rowsort label-5093
SELECT DISTINCT - 34 + ( + + ( + 94 ) ) - - + 52 - - COUNT ( * ), - COUNT ( * ) - 23 - - 8 AS col2
----
113
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT ALL + 71 * - + COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL + 71 * - + COUNT ( * ) AS col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5095
SELECT ALL - 12 + + + MAX( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL - 12 + + + MAX ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5096
SELECT 13 + + CASE + 74 WHEN - + 81 - - + 2 + COALESCE ( - - 50, - 35 + + + 88 + - ( 68 ) / + CAST( NULL AS SIGNED ) ) THEN + - 87 + + COALESCE ( 2, - 72, - SUM( DISTINCT 88 ) ) + 39 / 89 * - 67 * + - 80 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5096
SELECT 13 + + CASE + 74 WHEN - + 81 - - + 2 + COALESCE ( - - 50, - 35 + + + 88 + - ( 68 ) / + CAST ( NULL AS INTEGER ) ) THEN + - 87 + + COALESCE ( 2, - 72, - SUM ( DISTINCT 88 ) ) + 39 / 89 * - 67 * + - 80 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT 35 AS col1, - 66 col1
----
35
-66

query II rowsort
SELECT - 54 + - ( + + 73 ) AS col1, 80
----
-127
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5099
SELECT 92 / + - CAST( NULL AS SIGNED ) * + + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT 92 / + - CAST ( NULL AS INTEGER ) * + + 81 AS col2
----
NULL

query I rowsort
SELECT + 29 + 13
----
42

query I rowsort
SELECT - 68 * + - ( ( - 68 ) ) * 93 col0
----
-430032

query I rowsort
SELECT DISTINCT + 27 * - 16
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT DISTINCT + - COUNT( DISTINCT - - 48 ) - - - 59 * + - 83 + + + COUNT( * )
----
4897

skipif mysql # not compatible
query I rowsort label-5103
SELECT DISTINCT + - COUNT ( DISTINCT - - 48 ) - - - 59 * + - 83 + + + COUNT ( * )
----
4897

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT ALL + 94 * - MAX( DISTINCT - 6 )
----
564

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL + 94 * - MAX ( DISTINCT - 6 )
----
564

onlyif mysql # aggregate syntax: 
query II rowsort label-5105
SELECT + COALESCE ( + ( 44 ), + 49 * COALESCE ( - + 69, - - 32 ) ) + 57 + + 73 AS col1, + COUNT( + - 70 )
----
174
1

skipif mysql # not compatible
query II rowsort label-5105
SELECT + COALESCE ( + ( 44 ), + 49 * COALESCE ( - + 69, - - 32 ) ) + 57 + + 73 AS col1, + COUNT ( + - 70 )
----
174
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5106
SELECT DISTINCT + 50 * 33 DIV - 68 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-5106
SELECT DISTINCT + 50 * 33 / - 68 AS col2
----
-24

query I rowsort
SELECT ALL - ( ( + 97 ) ) * 73
----
-7081

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5108
SELECT + COUNT( * ) DIV - - 77 + - 0
----
0

skipif mysql # not compatible
query I rowsort label-5108
SELECT + COUNT ( * ) / - - 77 + - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT 87 + + COUNT( ALL 83 ) * COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-5109
SELECT 87 + + COUNT ( ALL 83 ) * COUNT ( * ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT DISTINCT SUM( - 79 ) + - ( - 6 ) * + 6
----
-43

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT SUM ( - 79 ) + - ( - 6 ) * + 6
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ( - + NULLIF ( - 77, + - COUNT( * ) ) ) * - 55 * - NULLIF ( + - 71, 83 * + + 45 ) * - 73
----
21950005

skipif mysql # not compatible
query I rowsort label-5111
SELECT ( - + NULLIF ( - 77, + - COUNT ( * ) ) ) * - 55 * - NULLIF ( + - 71, 83 * + + 45 ) * - 73
----
21950005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5112
SELECT ALL CASE - + CAST( + - 48 AS SIGNED ) WHEN - CAST( - NULLIF ( 9, - - 11 ) AS SIGNED ) THEN 75 + + - 95 * - 62 * - COUNT( * ) + - + 91 + - 2 * + COUNT( * ) + COUNT( * ) * - 8 / - CAST( NULL AS SIGNED ) WHEN 68 * + + COUNT( * ) THEN - 51 END + + - 30 + 42 * + - 26 / - COUNT( * ) - - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL CASE - + CAST ( + - 48 AS INTEGER ) WHEN - CAST ( - NULLIF ( 9, - - 11 ) AS INTEGER ) THEN 75 + + - 95 * - 62 * - COUNT ( * ) + - + 91 + - 2 * + COUNT ( * ) + COUNT ( * ) * - 8 / - CAST ( NULL AS INTEGER ) WHEN 68 * + + COUNT ( * ) THEN - 51 END + + - 30 + 42 * + - 26 / - COUNT ( * ) - - 47
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5113
SELECT DISTINCT 99 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT 99 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 57 + + 2
----
59

query I rowsort
SELECT 12 * + 8 AS col0
----
96

query I rowsort
SELECT ALL - 30 - + - 16 AS col1
----
-14

query I rowsort
SELECT - 86 * 80 AS col1
----
-6880

query I rowsort
SELECT ALL ( + 8 ) col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT - NULLIF ( - COUNT( ALL - 79 ), - - 35 ) + - 48 * COALESCE ( + 92, 65, + - COUNT( DISTINCT 71 ) * + COUNT( * ) ) - - 2
----
-4413

skipif mysql # not compatible
query I rowsort label-5119
SELECT - NULLIF ( - COUNT ( ALL - 79 ), - - 35 ) + - 48 * COALESCE ( + 92, 65, + - COUNT ( DISTINCT 71 ) * + COUNT ( * ) ) - - 2
----
-4413

query I rowsort
SELECT 35 + + ( 56 )
----
91

query I rowsort
SELECT ALL + - 50 * - + 7
----
350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5122
SELECT ALL - MAX( ALL - - CAST( + 91 AS SIGNED ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL - MAX ( ALL - - CAST ( + 91 AS INTEGER ) ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT DISTINCT COUNT( DISTINCT + - 83 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT COUNT ( DISTINCT + - 83 ) col2
----
1

query I rowsort
SELECT 76 + - 85 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT COALESCE ( ( 60 ), 9 + + SUM( DISTINCT 89 ) * + 84 - - - ( - - MAX( - ( + 17 ) ) ) ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-5125
SELECT COALESCE ( ( 60 ), 9 + + SUM ( DISTINCT 89 ) * + 84 - - - ( - - MAX ( - ( + 17 ) ) ) ) AS col1
----
60

query I rowsort
SELECT 36 + 15
----
51

query I rowsort
SELECT 78 * - + 85 AS col2
----
-6630

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL - NULLIF ( + 45, - COALESCE ( + - ( - 79 ), 79 + - 62 * - 30, - 57 + + + COUNT( * ) * - 27 * - ( COUNT( * ) ) + + SUM( DISTINCT - 19 ) + - 42 / - 41 * + COUNT( * ) * + ( + + COUNT( * ) ) * - 89 ) + - 37 - - + COUNT( * ) - 92 * 31 * - + COUNT( * ) )
----
-45

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL - NULLIF ( + 45, - COALESCE ( + - ( - 79 ), 79 + - 62 * - 30, - 57 + + + COUNT ( * ) * - 27 * - ( COUNT ( * ) ) + + SUM ( DISTINCT - 19 ) + - 42 / - 41 * + COUNT ( * ) * + ( + + COUNT ( * ) ) * - 89 ) + - 37 - - + COUNT ( * ) - 92 * 31 * - + COUNT ( * ) )
----
-45

query I rowsort
SELECT COALESCE ( + 55, 74 * - + NULLIF ( + 6, - + ( + 40 ) ), + + 29 * + 79 ) AS col2
----
55

query I rowsort
SELECT 91 - 90
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT DISTINCT + ( SUM( DISTINCT - - 63 ) )
----
63

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT + ( SUM ( DISTINCT - - 63 ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT ALL 78 * MIN( ALL - 69 ) + - 0 * CASE 17 WHEN - AVG ( + 29 ) THEN - 91 * - 90 + - + COUNT( * ) - 16 WHEN + COUNT( * ) THEN NULL WHEN - NULLIF ( - 16, + + COUNT( * ) ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL 78 * MIN ( ALL - 69 ) + - 0 * CASE 17 WHEN - AVG ( + 29 ) THEN - 91 * - 90 + - + COUNT ( * ) - 16 WHEN + COUNT ( * ) THEN NULL WHEN - NULLIF ( - 16, + + COUNT ( * ) ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT - 23 - + - COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-5133
SELECT - 23 - + - COUNT ( * ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-5134
SELECT DISTINCT 53 * - 49 + - + COUNT( * ), 79 - 28 AS col0
----
-2598
51

skipif mysql # not compatible
query II rowsort label-5134
SELECT DISTINCT 53 * - 49 + - + COUNT ( * ), 79 - 28 AS col0
----
-2598
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT - 58 + MIN( ALL 61 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5135
SELECT - 58 + MIN ( ALL 61 ) AS col1
----
3

query I rowsort
SELECT ALL - 74 * - + 50
----
3700

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT DISTINCT 46 * + 1 + + NULLIF ( + + 11, - MAX( 78 ) )
----
57

skipif mysql # not compatible
query I rowsort label-5137
SELECT DISTINCT 46 * + 1 + + NULLIF ( + + 11, - MAX ( 78 ) )
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-5138
SELECT ALL + 61, - 52 * 55 DIV - 32 - NULLIF ( - 76, - 88 ) AS col1
----
61
165

skipif mysql # not compatible
query II rowsort label-5138
SELECT ALL + 61, - 52 * 55 / - 32 - NULLIF ( - 76, - 88 ) AS col1
----
61
165

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT DISTINCT - 17 * + - COUNT( * ) + + + 95 * - COUNT( * ) / COUNT( * ) + COUNT( * ) / CASE + ( + - 25 ) WHEN - 93 THEN NULL WHEN - 40 THEN + NULLIF ( + - 17, 85 * 25 / - 34 / - - ( + - 15 ) ) END + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT - 17 * + - COUNT ( * ) + + + 95 * - COUNT ( * ) / COUNT ( * ) + COUNT ( * ) / CASE + ( + - 25 ) WHEN - 93 THEN NULL WHEN - 40 THEN + NULLIF ( + - 17, 85 * 25 / - 34 / - - ( + - 15 ) ) END + 6
----
NULL

query I rowsort
SELECT + 69 - - 6
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT COUNT( * ) * 78 + - - 65 * - 48
----
-3042

skipif mysql # not compatible
query I rowsort label-5141
SELECT COUNT ( * ) * 78 + - - 65 * - 48
----
-3042

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT + 45 DIV + + 12 col2
----
3

skipif mysql # not compatible
query I rowsort label-5142
SELECT + 45 / + + 12 col2
----
3

query I rowsort
SELECT + 22 * 31
----
682

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT - + COUNT( * ) * + COUNT( * ) + 41 - - ( - MIN( + - 98 ) ) AS col0
----
138

skipif mysql # not compatible
query I rowsort label-5144
SELECT - + COUNT ( * ) * + COUNT ( * ) + 41 - - ( - MIN ( + - 98 ) ) AS col0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT ALL COUNT( * ) * 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL COUNT ( * ) * 49 AS col2
----
49

query I rowsort
SELECT + 84 * - + 0 + ( - 13 )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5147
SELECT + + CAST( NULL AS SIGNED ) + + - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5147
SELECT + + CAST ( NULL AS INTEGER ) + + - 82 AS col2
----
NULL

query I rowsort
SELECT + - 49 + - + 7
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT + - 38 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-5149
SELECT + - 38 / 91
----
0

query I rowsort
SELECT - - 33 * 9 AS col0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT ALL - COALESCE ( + 80, - COUNT( * ), + ( COUNT( * ) ) ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL - COALESCE ( + 80, - COUNT ( * ), + ( COUNT ( * ) ) ) AS col2
----
-80

query I rowsort
SELECT DISTINCT - 0 * - - 43
----
0

query I rowsort
SELECT + 86 * - - ( 86 ) * + + 45 AS col0
----
332820

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT DISTINCT + MIN( ALL - 0 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT + MIN ( ALL - 0 ) col0
----
0

query I rowsort
SELECT ALL 74 + 86 AS col1
----
160

query I rowsort
SELECT + 54 + - 43
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT - NULLIF ( + COUNT( * ), + - 95 * 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-5157
SELECT - NULLIF ( + COUNT ( * ), + - 95 * 49 )
----
-1

query I rowsort
SELECT - 18 + 35 AS col1
----
17

query I rowsort
SELECT - 36 * 26 * + 21 AS col0
----
-19656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5160
SELECT CAST( - 48 AS SIGNED ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-5160
SELECT CAST ( - 48 AS INTEGER ) AS col1
----
-48

query II rowsort
SELECT + 67 AS col2, 72 col0
----
67
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5162
SELECT ALL ( - COUNT( * ) ) / - CAST( NULL AS SIGNED ) + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL ( - COUNT ( * ) ) / - CAST ( NULL AS INTEGER ) + 27
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5163
SELECT CAST( - 0 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5163
SELECT CAST ( - 0 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT ALL 88 * 96 * - 60 * COUNT( * ) * - + COUNT( * ) * 99 AS col1
----
50181120

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL 88 * 96 * - 60 * COUNT ( * ) * - + COUNT ( * ) * 99 AS col1
----
50181120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT DISTINCT 68 / - ( - ( - - 30 ) ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT 68 / - ( - ( - - 30 ) ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5166
SELECT + 75 AS col2, COUNT( * ) + + - 44
----
75
-43

skipif mysql # not compatible
query II rowsort label-5166
SELECT + 75 AS col2, COUNT ( * ) + + - 44
----
75
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-5167
SELECT ALL + ( - 64 ), 92 + COUNT( * ) + 10 AS col1
----
-64
103

skipif mysql # not compatible
query II rowsort label-5167
SELECT ALL + ( - 64 ), 92 + COUNT ( * ) + 10 AS col1
----
-64
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT + NULLIF ( - - MIN( 80 ), COUNT( - 83 ) ) * + + COUNT( * ) + + 68 AS col1
----
148

skipif mysql # not compatible
query I rowsort label-5168
SELECT + NULLIF ( - - MIN ( 80 ), COUNT ( - 83 ) ) * + + COUNT ( * ) + + 68 AS col1
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5169
SELECT + 32 AS col1, - CAST( - SUM( - 88 ) AS SIGNED ) - + 95 AS col0
----
32
-183

skipif mysql # not compatible
query II rowsort label-5169
SELECT + 32 AS col1, - CAST ( - SUM ( - 88 ) AS INTEGER ) - + 95 AS col0
----
32
-183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5170
SELECT + 64 * + NULLIF ( - 62, + ( - COUNT( * ) ) + + 5 + - 71 ) * - - ( CAST( + CASE - COUNT( * ) WHEN + ( + 44 ) THEN + ( - ( + 73 ) ) + + - 75 ELSE NULL END AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT + 64 * + NULLIF ( - 62, + ( - COUNT ( * ) ) + + 5 + - 71 ) * - - ( CAST ( + CASE - COUNT ( * ) WHEN + ( + 44 ) THEN + ( - ( + 73 ) ) + + - 75 ELSE NULL END AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT + CAST( + + 36 AS SIGNED ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5171
SELECT + CAST ( + + 36 AS INTEGER ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT ( - + COUNT( + - 43 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5172
SELECT ( - + COUNT ( + - 43 ) ) AS col0
----
-1

query I rowsort
SELECT - 46 + - - 57
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT - 4 * - - 48 * COUNT( * )
----
-192

skipif mysql # not compatible
query I rowsort label-5174
SELECT - 4 * - - 48 * COUNT ( * )
----
-192

query II rowsort
SELECT + 43 AS col2, + 7 + + 36 * + 79 AS col1
----
43
2851

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT - COALESCE ( + - MAX( ALL + 3 ), + 59 ) * + 35 AS col1
----
105

skipif mysql # not compatible
query I rowsort label-5176
SELECT - COALESCE ( + - MAX ( ALL + 3 ), + 59 ) * + 35 AS col1
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5177
SELECT - 91 * - - COALESCE ( + - 71, - - 67, + - 97 ) + - 68 AS col2, - 98 * - 65 * - COALESCE ( 67, + 24, MAX( DISTINCT + 50 ) ) + - 56 / + 20 + + 99 * - CAST( 52 AS SIGNED ) + - 20 / - CAST( NULL AS SIGNED ) AS col0
----
6393
NULL

skipif mysql # not compatible
query II rowsort label-5177
SELECT - 91 * - - COALESCE ( + - 71, - - 67, + - 97 ) + - 68 AS col2, - 98 * - 65 * - COALESCE ( 67, + 24, MAX ( DISTINCT + 50 ) ) + - 56 / + 20 + + 99 * - CAST ( 52 AS INTEGER ) + - 20 / - CAST ( NULL AS INTEGER ) AS col0
----
6393
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5178
SELECT ALL + CAST( - CASE 74 WHEN - 7 + + 18 THEN - MAX( ALL - 98 ) ELSE + CAST( NULL AS SIGNED ) END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL + CAST ( - CASE 74 WHEN - 7 + + 18 THEN - MAX ( ALL - 98 ) ELSE + CAST ( NULL AS INTEGER ) END AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5179
SELECT DISTINCT + 80 * + 58 - CASE + + 14 WHEN - COUNT( * ) + - - AVG ( ALL + 15 ) THEN COALESCE ( - NULLIF ( + 79, - 53 ), - - AVG ( DISTINCT + 80 ) DIV + NULLIF ( - + AVG ( 57 ), + ( - 58 ) * 13 * + + 73 + CASE - 60 WHEN + + 13 THEN - 93 END * + 33 + 95 ), - MAX( DISTINCT + + 98 ) ) + + + 36 WHEN + 7 THEN + 23 * 35 * - + 69 ELSE 69 + + + 10 END
----
4683

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT + 80 * + 58 - CASE + + 14 WHEN - COUNT ( * ) + - - AVG ( ALL + 15 ) THEN COALESCE ( - NULLIF ( + 79, - 53 ), - - AVG ( DISTINCT + 80 ) / + NULLIF ( - + AVG ( 57 ), + ( - 58 ) * 13 * + + 73 + CASE - 60 WHEN + + 13 THEN - 93 END * + 33 + 95 ), - MAX ( DISTINCT + + 98 ) ) + + + 36 WHEN + 7 THEN + 23 * 35 * - + 69 ELSE 69 + + + 10 END
----
4683

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT - 69 * + MAX( - 67 )
----
4623

skipif mysql # not compatible
query I rowsort label-5180
SELECT - 69 * + MAX ( - 67 )
----
4623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5181
SELECT ALL + COUNT( * ) DIV - + 19 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL + COUNT ( * ) / - + 19 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5182
SELECT DISTINCT + 44, + 91 + 19 DIV + 97 AS col2
----
44
91

skipif mysql # not compatible
query II rowsort label-5182
SELECT DISTINCT + 44, + 91 + 19 / + 97 AS col2
----
44
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5183
SELECT ALL + - NULLIF ( - NULLIF ( + + CAST( NULL AS SIGNED ), - - 53 ), COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL + - NULLIF ( - NULLIF ( + + CAST ( NULL AS INTEGER ), - - 53 ), COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5184
SELECT CAST( + 65 AS SIGNED ) AS col0, 7 AS col2
----
65
7

skipif mysql # not compatible
query II rowsort label-5184
SELECT CAST ( + 65 AS INTEGER ) AS col0, 7 AS col2
----
65
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT - 59 * - MAX( DISTINCT + - 36 ) AS col0
----
-2124

skipif mysql # not compatible
query I rowsort label-5185
SELECT - 59 * - MAX ( DISTINCT + - 36 ) AS col0
----
-2124

query I rowsort
SELECT DISTINCT - - 33 * + - 56
----
-1848

onlyif mysql # aggregate syntax: 
query II rowsort label-5187
SELECT 78, 31 * 11 * + MAX( + 15 ) AS col0
----
78
5115

skipif mysql # not compatible
query II rowsort label-5187
SELECT 78, 31 * 11 * + MAX ( + 15 ) AS col0
----
78
5115

onlyif mysql # DIV for integer division: 
query II rowsort label-5188
SELECT ALL - 78 AS col0, 97 DIV - + 24
----
-78
-4

skipif mysql # not compatible
query II rowsort label-5188
SELECT ALL - 78 AS col0, 97 / - + 24
----
-78
-4

query I rowsort
SELECT + 75 * + 69 AS col0
----
5175

query II rowsort
SELECT - 82 col1, 97 AS col1
----
-82
97

query I rowsort
SELECT - - 57 + + - 14 AS col0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5192
SELECT - COALESCE ( 58, ( + CASE + - 3 WHEN - 62 * - COUNT( * ) + - 25 THEN 30 WHEN - + MIN( + 66 ) THEN NULL ELSE NULL END ) DIV + 18 + 26 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-5192
SELECT - COALESCE ( 58, ( + CASE + - 3 WHEN - 62 * - COUNT ( * ) + - 25 THEN 30 WHEN - + MIN ( + 66 ) THEN NULL ELSE NULL END ) / + 18 + 26 ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5193
SELECT ALL COUNT( * ), 64 AS col2
----
1
64

skipif mysql # not compatible
query II rowsort label-5193
SELECT ALL COUNT ( * ), 64 AS col2
----
1
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT - - MAX( 59 )
----
59

skipif mysql # not compatible
query I rowsort label-5194
SELECT - - MAX ( 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT + + 77 - - - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-5195
SELECT + + 77 - - - COUNT ( * )
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-5196
SELECT - 89, 78 DIV - ( + 67 ) AS col1
----
-89
-1

skipif mysql # not compatible
query II rowsort label-5196
SELECT - 89, 78 / - ( + 67 ) AS col1
----
-89
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5197
SELECT DISTINCT 42 + 46 AS col1, - COUNT( * ) * + 97 col0
----
88
-97

skipif mysql # not compatible
query II rowsort label-5197
SELECT DISTINCT 42 + 46 AS col1, - COUNT ( * ) * + 97 col0
----
88
-97

query I rowsort
SELECT ALL 77 + + 2 AS col0
----
79

query I rowsort
SELECT ALL 88 * - 53 AS col2
----
-4664

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5200
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) AS col1, 81 DIV - ( + - ( + + CAST( NULL AS DECIMAL ) ) ) + - COUNT( * ) + 98 * + 60 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5200
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) AS col1, 81 / - ( + - ( + + CAST ( NULL AS REAL ) ) ) + - COUNT ( * ) + 98 * + 60 AS col2
----
1
NULL

query I rowsort
SELECT ALL 41 + + 9 + 39 + + + 23 col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT + 88 * 77 + COUNT( * ) AS col1
----
6777

skipif mysql # not compatible
query I rowsort label-5202
SELECT + 88 * 77 + COUNT ( * ) AS col1
----
6777

query I rowsort
SELECT 12 * 63 AS col1
----
756

onlyif mysql # DIV for integer division: 
query I rowsort label-5204
SELECT 16 DIV 27
----
0

skipif mysql # not compatible
query I rowsort label-5204
SELECT 16 / 27
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5205
SELECT ( - 34 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT ( - 34 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 29 * + 83 AS col2
----
-2407

query I rowsort
SELECT DISTINCT 33 * + 72 * 40
----
95040

onlyif mysql # aggregate syntax: 
query II rowsort label-5208
SELECT ALL - MIN( + + 60 ), 86 + + + 27 * NULLIF ( + 62, + - 33 ) AS col0
----
-60
1760

skipif mysql # not compatible
query II rowsort label-5208
SELECT ALL - MIN ( + + 60 ), 86 + + + 27 * NULLIF ( + 62, + - 33 ) AS col0
----
-60
1760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5209
SELECT ALL MAX( ALL 30 ) * CAST( 48 AS SIGNED ) AS col2
----
1440

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL MAX ( ALL 30 ) * CAST ( 48 AS INTEGER ) AS col2
----
1440

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5210
SELECT DISTINCT 4 - + NULLIF ( + ( + - COUNT( + - 57 ) ), - + 34 ) DIV 40, ( + 65 ) * 28 col2
----
4
1820

skipif mysql # not compatible
query II rowsort label-5210
SELECT DISTINCT 4 - + NULLIF ( + ( + - COUNT ( + - 57 ) ), - + 34 ) / 40, ( + 65 ) * 28 col2
----
4
1820

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5211
SELECT DISTINCT NULLIF ( + 53, + 70 * - 22 / + 53 + 70 + ( - 25 ) * - - CAST( NULL AS DECIMAL ) + 30 * 21 ) * - ( - COUNT( * ) ) * - ( COUNT( * ) ) - + 26 + + 33
----
-46

skipif mysql # not compatible
query I rowsort label-5211
SELECT DISTINCT NULLIF ( + 53, + 70 * - 22 / + 53 + 70 + ( - 25 ) * - - CAST ( NULL AS REAL ) + 30 * 21 ) * - ( - COUNT ( * ) ) * - ( COUNT ( * ) ) - + 26 + + 33
----
-46

query I rowsort
SELECT 63 * - ( + + 93 ) + - 9 + - + 52 AS col2
----
-5920

query II rowsort
SELECT 64 - 51 col2, 54 AS col1
----
13
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5214
SELECT 80 * + - CAST( NULL AS SIGNED ) * - MIN( DISTINCT 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT 80 * + - CAST ( NULL AS INTEGER ) * - MIN ( DISTINCT 54 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT - CASE COUNT( * ) WHEN - 29 THEN 1 * 89 END * + 69 / - 43 - - - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT - CASE COUNT ( * ) WHEN - 29 THEN 1 * 89 END * + 69 / - 43 - - - 33
----
NULL

query I rowsort
SELECT 13 + + - 51 + + 97
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5217
SELECT 59 * CAST( 75 AS SIGNED ) col2
----
4425

skipif mysql # not compatible
query I rowsort label-5217
SELECT 59 * CAST ( 75 AS INTEGER ) col2
----
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT MAX( - 92 ) + + - NULLIF ( 81, + 76 )
----
-173

skipif mysql # not compatible
query I rowsort label-5218
SELECT MAX ( - 92 ) + + - NULLIF ( 81, + 76 )
----
-173

query I rowsort
SELECT DISTINCT + NULLIF ( + - 76, + 25 + - ( - - 6 ) ) * + - 38
----
2888

query I rowsort
SELECT DISTINCT + 0 + + 30 AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5221
SELECT ALL + - ( - - CAST( NULL AS SIGNED ) ) + 78 * + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL + - ( - - CAST ( NULL AS INTEGER ) ) + 78 * + 2 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT CASE + 5 WHEN + CASE - - COALESCE ( - 35, 2, - 20 / + 33 / 49 - + MAX( ( 17 ) ) - + 59, + - 40 * + 74 ) WHEN - 15 THEN - 50 END + 95 + - + 11 + - 3 / - 96 + + ( - NULLIF ( - - 79, - COUNT( * ) + - - 48 ) ) * - + 79 / - 81 * + 46 + + + 50 * - + ( - 36 ) THEN NULL ELSE + 93 + 70 + + + 74 * - MIN( - - 28 ) END + + 57
----
-1852

skipif mysql # not compatible
query I rowsort label-5222
SELECT CASE + 5 WHEN + CASE - - COALESCE ( - 35, 2, - 20 / + 33 / 49 - + MAX ( ( 17 ) ) - + 59, + - 40 * + 74 ) WHEN - 15 THEN - 50 END + 95 + - + 11 + - 3 / - 96 + + ( - NULLIF ( - - 79, - COUNT ( * ) + - - 48 ) ) * - + 79 / - 81 * + 46 + + + 50 * - + ( - 36 ) THEN NULL ELSE + 93 + 70 + + + 74 * - MIN ( - - 28 ) END + + 57
----
-1852

query I rowsort
SELECT ALL + - 76 + + - 7 + 37 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT DISTINCT + 50 + + COUNT( * ) - - - 15 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT + 50 + + COUNT ( * ) - - - 15 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT ALL + 17 + 19 + + MAX( 4 ) + + 79
----
119

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL + 17 + 19 + + MAX ( 4 ) + + 79
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5226
SELECT 61 DIV + 78 * + 45 * - - 90 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5226
SELECT 61 / + 78 * + 45 * - - 90 * - COUNT ( * )
----
0

query I rowsort
SELECT - 95 + 7 AS col2
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5228
SELECT + 39 * CAST( + 70 AS SIGNED ) * - - NULLIF ( + - 63, 15 / 8 * + 92 ) * + - 27
----
4643730

skipif mysql # not compatible
query I rowsort label-5228
SELECT + 39 * CAST ( + 70 AS INTEGER ) * - - NULLIF ( + - 63, 15 / 8 * + 92 ) * + - 27
----
4643730

query I rowsort
SELECT 51 + + - 69
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT ALL + + 89 + - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL + + 89 + - COUNT ( * )
----
88

query I rowsort
SELECT ALL + 15 * - + 47 * 91 AS col2
----
-64155

query I rowsort
SELECT ALL - 50 + - 73 col1
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-5233
SELECT DISTINCT - 32 + - 95 DIV 61 * + 22 + ( + 64 ) * + 65
----
4106

skipif mysql # not compatible
query I rowsort label-5233
SELECT DISTINCT - 32 + - 95 / 61 * + 22 + ( + 64 ) * + 65
----
4106

query I rowsort
SELECT 71 - - 63 AS col0
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5235
SELECT ALL COUNT( * ) * 23 DIV + - 5
----
-4

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL COUNT ( * ) * 23 / + - 5
----
-4

query I rowsort
SELECT 77 + + 53 AS col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT NULLIF ( + + COUNT( * ), + 52 ) + + + 16 - + - 11 * ( + 65 )
----
732

skipif mysql # not compatible
query I rowsort label-5237
SELECT NULLIF ( + + COUNT ( * ), + 52 ) + + + 16 - + - 11 * ( + 65 )
----
732

query I rowsort
SELECT ALL + 41 * - + 20 - + - 12 - - 61 + 17 AS col2
----
-730

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT ALL + COUNT( * ) * 88 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL + COUNT ( * ) * 88 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT DISTINCT + 25 * + COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT + 25 * + COUNT ( * ) AS col1
----
25

query II rowsort
SELECT ALL - 47 col1, 81 col0
----
-47
81

query II rowsort
SELECT ALL - 51 AS col1, + 64
----
-51
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5243
SELECT + MAX( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5243
SELECT + MAX ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT MIN( + 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-5244
SELECT MIN ( + 46 ) AS col1
----
46

query I rowsort
SELECT 35 * - - 16 * + ( + - 79 ) AS col0
----
-44240

query I rowsort
SELECT 79 + NULLIF ( + - 6, 24 ) + + 72 * - - 84 AS col1
----
6121

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT - CASE + COUNT( * ) WHEN 53 + 51 THEN + + 12 + 37 ELSE NULL END * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5247
SELECT - CASE + COUNT ( * ) WHEN 53 + 51 THEN + + 12 + 37 ELSE NULL END * + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 77 + + - 23 col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5249
SELECT ALL + + COALESCE ( + 59, 36 * 5 + + - CAST( - COUNT( * ) AS SIGNED ) + - - 68 ) + 92, + 49 AS col1
----
151
49

skipif mysql # not compatible
query II rowsort label-5249
SELECT ALL + + COALESCE ( + 59, 36 * 5 + + - CAST ( - COUNT ( * ) AS INTEGER ) + - - 68 ) + 92, + 49 AS col1
----
151
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5250
SELECT CAST( NULL AS SIGNED ) * - 43 * - AVG ( + 70 ) * + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-5250
SELECT CAST ( NULL AS INTEGER ) * - 43 * - AVG ( + 70 ) * + + 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT ALL - 71 + - 36 + ( - - COUNT( * ) )
----
-106

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL - 71 + - 36 + ( - - COUNT ( * ) )
----
-106

onlyif mysql # aggregate syntax: 
query II rowsort label-5252
SELECT DISTINCT + - MIN( ALL + 59 ) + 12 + - NULLIF ( - - 97, 23 * - 69 ) * - - 58, - 78 + MIN( + 14 ) AS col2
----
-5673
-64

skipif mysql # not compatible
query II rowsort label-5252
SELECT DISTINCT + - MIN ( ALL + 59 ) + 12 + - NULLIF ( - - 97, 23 * - 69 ) * - - 58, - 78 + MIN ( + 14 ) AS col2
----
-5673
-64

query II rowsort
SELECT ALL 27 + - + 63 + + 18 * + 20 + - 95 + + - 82 AS col2, 78 - 64 AS col1
----
147
14

query I rowsort
SELECT 84 - + 89 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT DISTINCT + - MAX( DISTINCT 33 ) + COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT + - MAX ( DISTINCT 33 ) + COUNT ( * ) AS col2
----
-32

query II rowsort
SELECT - - 76, 19 AS col2
----
76
19

query I rowsort
SELECT - 93 * + + 79
----
-7347

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT ALL + MIN( DISTINCT - 63 ) + + 9 * COUNT( * ) * - 25 AS col0
----
-288

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL + MIN ( DISTINCT - 63 ) + + 9 * COUNT ( * ) * - 25 AS col0
----
-288

query I rowsort
SELECT + + 49 * + 37 AS col1
----
1813

onlyif mysql # DIV for integer division: 
query II rowsort label-5260
SELECT ALL + 40 AS col0, - 12 DIV - 83 * + - 99
----
40
0

skipif mysql # not compatible
query II rowsort label-5260
SELECT ALL + 40 AS col0, - 12 / - 83 * + - 99
----
40
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5261
SELECT ALL - 19 * - + CAST( + 92 AS SIGNED ) col2
----
1748

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL - 19 * - + CAST ( + 92 AS INTEGER ) col2
----
1748

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5262
SELECT - 59 DIV + - COUNT( * ) AS col1, 11 AS col2
----
59
11

skipif mysql # not compatible
query II rowsort label-5262
SELECT - 59 / + - COUNT ( * ) AS col1, 11 AS col2
----
59
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5263
SELECT ALL 65 - + COUNT( * ) + 66 + + - MAX( ALL 34 ) * - + 33 * CAST( NULL AS SIGNED ) / + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL 65 - + COUNT ( * ) + 66 + + - MAX ( ALL 34 ) * - + 33 * CAST ( NULL AS INTEGER ) / + 63
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 43, + + 38 + 88 ) - - ( - - 7 ) AS col1
----
-36

query I rowsort
SELECT ALL - 19 * + 43 * - 61 AS col0
----
49837

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT - 23 + + + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-5266
SELECT - 23 + + + COUNT ( * )
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-5267
SELECT - 29 DIV 54 col1
----
0

skipif mysql # not compatible
query I rowsort label-5267
SELECT - 29 / 54 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5268
SELECT - 41 * - 92, + CASE + - COUNT( * ) WHEN - COUNT( * ) THEN - + COUNT( * ) END * + + ( + + 76 ) - + 18 AS col0
----
3772
-94

skipif mysql # not compatible
query II rowsort label-5268
SELECT - 41 * - 92, + CASE + - COUNT ( * ) WHEN - COUNT ( * ) THEN - + COUNT ( * ) END * + + ( + + 76 ) - + 18 AS col0
----
3772
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT - ( - 69 ) + + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-5269
SELECT - ( - 69 ) + + COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT - 5 - MAX( 23 )
----
-28

skipif mysql # not compatible
query I rowsort label-5270
SELECT - 5 - MAX ( 23 )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5271
SELECT ALL - CASE - 20 WHEN + COALESCE ( + + ( + 97 ), + COUNT( * ), + + COUNT( DISTINCT 11 ) ) + + COUNT( * ) THEN NULL WHEN CAST( - 27 AS SIGNED ) THEN 96 ELSE NULL END - - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL - CASE - 20 WHEN + COALESCE ( + + ( + 97 ), + COUNT ( * ), + + COUNT ( DISTINCT 11 ) ) + + COUNT ( * ) THEN NULL WHEN CAST ( - 27 AS INTEGER ) THEN 96 ELSE NULL END - - 7 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 56 * 68
----
3808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5273
SELECT - 69 + + 45 - - 84 * - 81 * - CAST( NULL AS SIGNED ) * 1 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT - 69 + + 45 - - 84 * - 81 * - CAST ( NULL AS INTEGER ) * 1 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT ALL COALESCE ( - COUNT( * ), - - COUNT( * ), + + 4 + + - 33 + + 18 * - 7 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL COALESCE ( - COUNT ( * ), - - COUNT ( * ), + + 4 + + - 33 + + 18 * - 7 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5275
SELECT DISTINCT + COUNT( DISTINCT + - 88 ) AS col2, + 22
----
1
22

skipif mysql # not compatible
query II rowsort label-5275
SELECT DISTINCT + COUNT ( DISTINCT + - 88 ) AS col2, + 22
----
1
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5276
SELECT ALL + CAST( - - 76 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL + CAST ( - - 76 AS INTEGER )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5277
SELECT - COUNT( * ) DIV + 34 + + 93 + + MIN( ALL 65 )
----
158

skipif mysql # not compatible
query I rowsort label-5277
SELECT - COUNT ( * ) / + 34 + + 93 + + MIN ( ALL 65 )
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT DISTINCT + CASE + - 21 WHEN + ( - CASE + COUNT( * ) WHEN - AVG ( DISTINCT 64 ) THEN NULL WHEN - 35 THEN 54 * - 51 - - - 45 * + - 12 * + 36 END ) THEN NULL WHEN 69 * - - COUNT( * ) + MAX( 7 ) THEN 54 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT + CASE + - 21 WHEN + ( - CASE + COUNT ( * ) WHEN - AVG ( DISTINCT 64 ) THEN NULL WHEN - 35 THEN 54 * - 51 - - - 45 * + - 12 * + 36 END ) THEN NULL WHEN 69 * - - COUNT ( * ) + MAX ( 7 ) THEN 54 END AS col1
----
NULL

query I rowsort
SELECT ALL + + 76 * - 99 + - 75 AS col2
----
-7599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5280
SELECT DISTINCT - - 9 * ( - 70 ) * COUNT( + ( + CAST( NULL AS SIGNED ) ) ) + + ( - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT - - 9 * ( - 70 ) * COUNT ( + ( + CAST ( NULL AS INTEGER ) ) ) + + ( - 1 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5281
SELECT ALL 1 * - CAST( NULL AS SIGNED ) / + 82 * - COUNT( * ) + - 1 * + 41 * 58 * + 3 + 35 + + 41 - - ( + 28 ) + - + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL 1 * - CAST ( NULL AS INTEGER ) / + 82 * - COUNT ( * ) + - 1 * + 41 * 58 * + 3 + 35 + + 41 - - ( + 28 ) + - + 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5282
SELECT ALL + - 44 * 13 DIV - + 18 + - 8 + - 11 + 8 + + - COUNT( * ) + + 46 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL + - 44 * 13 / - + 18 + - 8 + - 11 + 8 + + - COUNT ( * ) + + 46 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT DISTINCT + + COUNT( * ) * MIN( DISTINCT + + ( 15 ) ) * - 51 + + COUNT( * ) * + 43 * - 50 * + 49 + - 14 + + 41 AS col1
----
-106088

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT + + COUNT ( * ) * MIN ( DISTINCT + + ( 15 ) ) * - 51 + + COUNT ( * ) * + 43 * - 50 * + 49 + - 14 + + 41 AS col1
----
-106088

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5284
SELECT + COUNT( * ) * - + CAST( NULL AS DECIMAL ) + - 51 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5284
SELECT + COUNT ( * ) * - + CAST ( NULL AS REAL ) + - 51 col1
----
NULL

query I rowsort
SELECT + + COALESCE ( - ( 4 ), + - 70 ) - 5
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT ALL - ( COUNT( * ) ) * - + 23 + + 54
----
77

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL - ( COUNT ( * ) ) * - + 23 + + 54
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT + MAX( - 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-5287
SELECT + MAX ( - 31 ) AS col2
----
-31

query I rowsort
SELECT + + 95 + 55
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5289
SELECT + + ( + COALESCE ( - COALESCE ( + 74, - 85 ), + NULLIF ( - COUNT( * ), + + 90 ) ) ) DIV COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-5289
SELECT + + ( + COALESCE ( - COALESCE ( + 74, - 85 ), + NULLIF ( - COUNT ( * ), + + 90 ) ) ) / COUNT ( * ) AS col2
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5290
SELECT DISTINCT + COUNT( * ) * + - 58 + - - 1 + - 82 + - + 93 DIV + - 42 - - - 47 + 30 * 49 AS col1, 82 * NULLIF ( - ( + - 8 ), + - 45 ) + + COUNT( * )
----
1286
657

skipif mysql # not compatible
query II rowsort label-5290
SELECT DISTINCT + COUNT ( * ) * + - 58 + - - 1 + - 82 + - + 93 / + - 42 - - - 47 + 30 * 49 AS col1, 82 * NULLIF ( - ( + - 8 ), + - 45 ) + + COUNT ( * )
----
1286
657

query I rowsort
SELECT DISTINCT - 65 * + 12 AS col0
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT + 36 + - COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-5292
SELECT + 36 + - COUNT ( * ) AS col2
----
35

query I rowsort
SELECT + 47 * 86 AS col2
----
4042

query I rowsort
SELECT + 53 * - ( - 34 )
----
1802

query I rowsort
SELECT ALL 59 * 65 AS col0
----
3835

query I rowsort
SELECT - ( ( - 89 ) )
----
89

query I rowsort
SELECT - ( + + 42 )
----
-42

query I rowsort
SELECT - 6 + - - 68 - + NULLIF ( 76, 28 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT - 23 * - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-5299
SELECT - 23 * - COUNT ( * )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5300
SELECT - 82 + AVG ( DISTINCT - - 52 ) * + COUNT( * ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5300
SELECT - 82 + AVG ( DISTINCT - - 52 ) * + COUNT ( * ) - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 91 col0, - 60 AS col0
----
91
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5302
SELECT DISTINCT - CAST( COUNT( 45 ) AS SIGNED ) * - 43 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT - CAST ( COUNT ( 45 ) AS INTEGER ) * - 43 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT ALL MIN( ALL + 33 )
----
33

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL MIN ( ALL + 33 )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5304
SELECT - 40 DIV 50 * 0 DIV + 10
----
0

skipif mysql # not compatible
query I rowsort label-5304
SELECT - 40 / 50 * 0 / + 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL - MIN( DISTINCT + 48 ) * - ( - 40 ) * + 88 + - 4 + - 6 * MAX( ALL + 6 ) - - 16 + - 77 * + - MIN( DISTINCT - 11 )
----
-169831

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL - MIN ( DISTINCT + 48 ) * - ( - 40 ) * + 88 + - 4 + - 6 * MAX ( ALL + 6 ) - - 16 + - 77 * + - MIN ( DISTINCT - 11 )
----
-169831

query I rowsort
SELECT + 51 + - 37
----
14

query II rowsort
SELECT 28 AS col1, + 7 * 81 * + 75 + 98
----
28
42623

onlyif mysql # aggregate syntax: 
query II rowsort label-5308
SELECT - NULLIF ( + 52, 39 + 73 ) + - 93 + - MIN( ALL 32 ) + + COUNT( * ) AS col2, 85 * + 4 * - + 85
----
-176
-28900

skipif mysql # not compatible
query II rowsort label-5308
SELECT - NULLIF ( + 52, 39 + 73 ) + - 93 + - MIN ( ALL 32 ) + + COUNT ( * ) AS col2, 85 * + 4 * - + 85
----
-176
-28900

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT DISTINCT + COUNT( * ) + + + 70
----
71

skipif mysql # not compatible
query I rowsort label-5309
SELECT DISTINCT + COUNT ( * ) + + + 70
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5310
SELECT - 4 DIV 8
----
0

skipif mysql # not compatible
query I rowsort label-5310
SELECT - 4 / 8
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5311
SELECT DISTINCT - - 66 DIV + 61 - - 75 + 29 * + CAST( - COUNT( * ) AS SIGNED ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT - - 66 / + 61 - - 75 + 29 * + CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT - MAX( ALL + NULLIF ( 38, - 54 + 72 ) ) * - + 45 * 2 + - 65 + + + 13 * 98 * + ( + 83 ) AS col2
----
109097

skipif mysql # not compatible
query I rowsort label-5312
SELECT - MAX ( ALL + NULLIF ( 38, - 54 + 72 ) ) * - + 45 * 2 + - 65 + + + 13 * 98 * + ( + 83 ) AS col2
----
109097

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5313
SELECT DISTINCT 37 DIV 25 + 38 + 28 + + + 39, 41 * + 75 + + + 42 * - - COUNT( * ) DIV + + 83 * + 99 DIV - - 1 * + 63 AS col0
----
106
3075

skipif mysql # not compatible
query II rowsort label-5313
SELECT DISTINCT 37 / 25 + 38 + 28 + + + 39, 41 * + 75 + + + 42 * - - COUNT ( * ) / + + 83 * + 99 / - - 1 * + 63 AS col0
----
106
3075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5314
SELECT ALL + + AVG ( ALL - - CAST( NULL AS SIGNED ) ) / - + COUNT( - 80 ) + - 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL + + AVG ( ALL - - CAST ( NULL AS INTEGER ) ) / - + COUNT ( - 80 ) + - 59 col2
----
NULL

query II rowsort
SELECT 30 col2, + 93 * 83 + - 63
----
30
7656

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT MAX( + - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-5316
SELECT MAX ( + - 28 )
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5317
SELECT + - COUNT( * ) DIV - 95 + - 35 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-5317
SELECT + - COUNT ( * ) / - 95 + - 35 AS col0
----
-35

query II rowsort
SELECT + 79 col2, - 91
----
79
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5319
SELECT + 48 + + + 83 * - CAST( - 27 AS SIGNED ) * - 42 + + 97
----
-93977

skipif mysql # not compatible
query I rowsort label-5319
SELECT + 48 + + + 83 * - CAST ( - 27 AS INTEGER ) * - 42 + + 97
----
-93977

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT ALL - 88 + COALESCE ( - 41, SUM( + 93 ) ) * - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL - 88 + COALESCE ( - 41, SUM ( + 93 ) ) * - COUNT ( * )
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-5321
SELECT + + 13 AS col2, + CASE 1 WHEN - 83 THEN NULL WHEN 59 THEN - + COUNT( * ) END AS col1
----
13
NULL

skipif mysql # not compatible
query II rowsort label-5321
SELECT + + 13 AS col2, + CASE 1 WHEN - 83 THEN NULL WHEN 59 THEN - + COUNT ( * ) END AS col1
----
13
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5322
SELECT + + 33 * 69 DIV + 57 + - - 97 + - ( + - CASE - 74 WHEN 26 THEN NULL ELSE - COUNT( * ) END ) AS col2
----
135

skipif mysql # not compatible
query I rowsort label-5322
SELECT + + 33 * 69 / + 57 + - - 97 + - ( + - CASE - 74 WHEN 26 THEN NULL ELSE - COUNT ( * ) END ) AS col2
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5323
SELECT + CAST( + - AVG ( 6 ) AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-5323
SELECT + CAST ( + - AVG ( 6 ) AS INTEGER )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT ALL - COALESCE ( + - 32, - COUNT( * ), - + 0 )
----
32

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL - COALESCE ( + - 32, - COUNT ( * ), - + 0 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT COUNT( * ) * + - 34
----
-34

skipif mysql # not compatible
query I rowsort label-5325
SELECT COUNT ( * ) * + - 34
----
-34

query II rowsort
SELECT ALL - 35, 73 AS col2
----
-35
73

query I rowsort
SELECT 71 - + - 73
----
144

query II rowsort
SELECT 82 AS col0, 67
----
82
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5329
SELECT ALL COUNT( * ) DIV + + CAST( + + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL COUNT ( * ) / + + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT DISTINCT COUNT( * ) * - + 11 * ( + 74 )
----
-814

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT COUNT ( * ) * - + 11 * ( + 74 )
----
-814

query I rowsort
SELECT DISTINCT 5 * ( + - NULLIF ( 70, - 87 + - ( + 2 ) ) )
----
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT COALESCE ( - COUNT( * ), 25 * - + 53 ) - - 92
----
91

skipif mysql # not compatible
query I rowsort label-5332
SELECT COALESCE ( - COUNT ( * ), 25 * - + 53 ) - - 92
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5333
SELECT DISTINCT 77 AS col0, 50 * 39 + - COUNT( * )
----
77
1949

skipif mysql # not compatible
query II rowsort label-5333
SELECT DISTINCT 77 AS col0, 50 * 39 + - COUNT ( * )
----
77
1949

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ALL 70 + - MIN( + + 93 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL 70 + - MIN ( + + 93 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-5335
SELECT - 82, + COUNT( * ) AS col2
----
-82
1

skipif mysql # not compatible
query II rowsort label-5335
SELECT - 82, + COUNT ( * ) AS col2
----
-82
1

query I rowsort
SELECT ALL 4 + - + 66 * + 53 AS col0
----
-3494

query I rowsort
SELECT 5 + - 96 AS col2
----
-91

query I rowsort
SELECT 12 * 73
----
876

query I rowsort
SELECT 47 + 93 - - - 28 AS col2
----
112

query I rowsort
SELECT 50 - + 19 * + - 0
----
50

query I rowsort
SELECT ALL - 49 + 99
----
50

query I rowsort
SELECT - 87 + - 52 AS col0
----
-139

query I rowsort
SELECT ALL + 94 * - 95 * - 50 AS col0
----
446500

query I rowsort
SELECT + COALESCE ( 52, + - 75 ) AS col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5345
SELECT ALL - 83 + + COALESCE ( + 52, - - COUNT( * ) DIV 1 DIV + 42 + - - COUNT( * ) - + + 46 )
----
-31

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL - 83 + + COALESCE ( + 52, - - COUNT ( * ) / 1 / + 42 + - - COUNT ( * ) - + + 46 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT - MIN( + 88 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-5346
SELECT - MIN ( + 88 ) AS col0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5347
SELECT + 22 DIV + + MAX( 5 ) + - - 35 + + - 57 + 32
----
14

skipif mysql # not compatible
query I rowsort label-5347
SELECT + 22 / + + MAX ( 5 ) + - - 35 + + - 57 + 32
----
14

query I rowsort
SELECT + 23 * - 88 AS col0
----
-2024

query I rowsort
SELECT - 63 + 79 + - + 48
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT + ( + COUNT( * ) ) + 69 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-5350
SELECT + ( + COUNT ( * ) ) + 69 AS col2
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5351
SELECT + 85 AS col1, - SUM( ALL COALESCE ( + 5, - 37 ) ) + + 48
----
85
43

skipif mysql # not compatible
query II rowsort label-5351
SELECT + 85 AS col1, - SUM ( ALL COALESCE ( + 5, - 37 ) ) + + 48
----
85
43

query I rowsort
SELECT DISTINCT - 89 - 38 col2
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT DISTINCT - COUNT( * ) * - 40 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT - COUNT ( * ) * - 40 AS col1
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5354
SELECT ALL + - 42 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL + - 42 / - 78
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5355
SELECT + + 57 * + ( + COUNT( * ) ) - - 25 + - + 35 DIV - 5 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-5355
SELECT + + 57 * + ( + COUNT ( * ) ) - - 25 + - + 35 / - 5 AS col2
----
89

query I rowsort
SELECT ALL + 56 - + 20
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT ALL - MIN( ALL - 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL - MIN ( ALL - 51 ) AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5358
SELECT ALL - + CAST( - 50 AS SIGNED ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL - + CAST ( - 50 AS INTEGER ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT + 39 * - COUNT( * ) * + 45 AS col0
----
-1755

skipif mysql # not compatible
query I rowsort label-5359
SELECT + 39 * - COUNT ( * ) * + 45 AS col0
----
-1755

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT - 48 - - COUNT( * ) + - 93 * + - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-5360
SELECT - 48 - - COUNT ( * ) + - 93 * + - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT ALL - + ( + SUM( DISTINCT 24 ) ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL - + ( + SUM ( DISTINCT 24 ) ) AS col2
----
-24

query I rowsort
SELECT 31 + 63 * + 20 * - 68 + 97 AS col2
----
-85552

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT 88 * + 40 - - - COUNT( * )
----
3519

skipif mysql # not compatible
query I rowsort label-5363
SELECT 88 * + 40 - - - COUNT ( * )
----
3519

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT DISTINCT + COUNT( + 52 ) * - + 43 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT + COUNT ( + 52 ) * - + 43 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-5365
SELECT 90 * + + 32 AS col0, - ( COALESCE ( - - 75, + - 85 + + - 95 * - - 80 * CASE - 23 WHEN + - 43 + COUNT( * ) THEN - 57 WHEN - 27 + - COUNT( * ) * + - 22 * + 66 THEN NULL ELSE NULL END ) )
----
2880
-75

skipif mysql # not compatible
query II rowsort label-5365
SELECT 90 * + + 32 AS col0, - ( COALESCE ( - - 75, + - 85 + + - 95 * - - 80 * CASE - 23 WHEN + - 43 + COUNT ( * ) THEN - 57 WHEN - 27 + - COUNT ( * ) * + - 22 * + 66 THEN NULL ELSE NULL END ) )
----
2880
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-5366
SELECT COUNT( * ) + - 25 AS col0, + 68 * + 6 * - COUNT( * ) * - 51 AS col2
----
-24
20808

skipif mysql # not compatible
query II rowsort label-5366
SELECT COUNT ( * ) + - 25 AS col0, + 68 * + 6 * - COUNT ( * ) * - 51 AS col2
----
-24
20808

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT 96 + MAX( ALL - 74 ) * + 38 + - 67 * - + 7
----
-2247

skipif mysql # not compatible
query I rowsort label-5367
SELECT 96 + MAX ( ALL - 74 ) * + 38 + - 67 * - + 7
----
-2247

query I rowsort
SELECT 6 + - 31 + + 95 * ( + 47 )
----
4440

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5369
SELECT DISTINCT + 97 * - 95 AS col2, COUNT( * ) + NULLIF ( 59, + - 18 ) DIV - - ( - 23 )
----
-9215
-1

skipif mysql # not compatible
query II rowsort label-5369
SELECT DISTINCT + 97 * - 95 AS col2, COUNT ( * ) + NULLIF ( 59, + - 18 ) / - - ( - 23 )
----
-9215
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5370
SELECT COUNT( * ) DIV - + COUNT( * ), 83 AS col1
----
-1
83

skipif mysql # not compatible
query II rowsort label-5370
SELECT COUNT ( * ) / - + COUNT ( * ), 83 AS col1
----
-1
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5371
SELECT DISTINCT SUM( DISTINCT - 3 ) AS col2, 88
----
-3
88

skipif mysql # not compatible
query II rowsort label-5371
SELECT DISTINCT SUM ( DISTINCT - 3 ) AS col2, 88
----
-3
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT 50 + + 83 + - 92 + - + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-5372
SELECT 50 + + 83 + - 92 + - + COUNT ( * )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5373
SELECT COALESCE ( + COALESCE ( - + 3, - - SUM( 82 ) / - 23 - - + 75 + + + 5 ), + 38, - COALESCE ( + 44, + 83 ) + + COUNT( * ) + + 93 - 89 / - 30 * - 12 * - SUM( ALL 93 ) * - - COUNT( * ) / + - 97 / 1 + + + 47 ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT COALESCE ( + COALESCE ( - + 3, - - SUM ( 82 ) / - 23 - - + 75 + + + 5 ), + 38, - COALESCE ( + 44, + 83 ) + + COUNT ( * ) + + 93 - 89 / - 30 * - 12 * - SUM ( ALL 93 ) * - - COUNT ( * ) / + - 97 / 1 + + + 47 ) * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5374
SELECT ALL + ( + COUNT( - + 46 ) ) DIV + 83 - - - 4 col2, NULLIF ( + 5, + 0 ) AS col1
----
-4
5

skipif mysql # not compatible
query II rowsort label-5374
SELECT ALL + ( + COUNT ( - + 46 ) ) / + 83 - - - 4 col2, NULLIF ( + 5, + 0 ) AS col1
----
-4
5

query II rowsort
SELECT ALL 51 + - - 92 AS col0, + 3 * + - 9 AS col1
----
143
-27

query I rowsort
SELECT DISTINCT 10 * - 32 AS col2
----
-320

query I rowsort
SELECT - + ( + 87 ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT + 33 + - + COALESCE ( + COUNT( * ), 40 )
----
32

skipif mysql # not compatible
query I rowsort label-5378
SELECT + 33 + - + COALESCE ( + COUNT ( * ), 40 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5379
SELECT DISTINCT - CAST( - - 59 AS SIGNED ) col0, 20
----
-59
20

skipif mysql # not compatible
query II rowsort label-5379
SELECT DISTINCT - CAST ( - - 59 AS INTEGER ) col0, 20
----
-59
20

onlyif mysql # aggregate syntax: 
query II rowsort label-5380
SELECT ALL NULLIF ( + 72, + + 40 * - 45 * + - COUNT( * ) * COUNT( * ) ) - - 4 * 42 AS col1, - 29 + - + COUNT( * ) + - ( + 9 ) * + 45
----
240
-435

skipif mysql # not compatible
query II rowsort label-5380
SELECT ALL NULLIF ( + 72, + + 40 * - 45 * + - COUNT ( * ) * COUNT ( * ) ) - - 4 * 42 AS col1, - 29 + - + COUNT ( * ) + - ( + 9 ) * + 45
----
240
-435

query I rowsort
SELECT + 88 * + 3 AS col0
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT ALL + MIN( + - 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL + MIN ( + - 8 ) AS col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5383
SELECT DISTINCT + SUM( + - CAST( NULL AS DECIMAL ) ) * + 11, + CAST( NULL AS SIGNED ) * - COALESCE ( + + 18, 41 + + 5 * - 84, + 5 ), - COUNT( * ) AS col2
----
NULL
NULL
-1

skipif mysql # not compatible
query III rowsort label-5383
SELECT DISTINCT + SUM ( + - CAST ( NULL AS REAL ) ) * + 11, + CAST ( NULL AS INTEGER ) * - COALESCE ( + + 18, 41 + + 5 * - 84, + 5 ), - COUNT ( * ) AS col2
----
NULL
NULL
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5384
SELECT - + 67 * - 16 + - + CAST( NULL AS SIGNED ) + + 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5384
SELECT - + 67 * - 16 + - + CAST ( NULL AS INTEGER ) + + 53 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5385
SELECT - - 10 DIV + 87 + 47 + - + SUM( + 41 )
----
6

skipif mysql # not compatible
query I rowsort label-5385
SELECT - - 10 / + 87 + 47 + - + SUM ( + 41 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT ALL 2 * - MAX( 18 ) * 37 * + 29 + 38 * - 74 * 40 AS col0
----
-151108

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL 2 * - MAX ( 18 ) * 37 * + 29 + 38 * - 74 * 40 AS col0
----
-151108

query I rowsort
SELECT ALL - 86 * NULLIF ( + + 91, + 94 )
----
-7826

query I rowsort
SELECT DISTINCT + + 73 * - 76 * 10 AS col2
----
-55480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5389
SELECT DISTINCT + MIN( - CAST( 43 AS SIGNED ) ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT + MIN ( - CAST ( 43 AS INTEGER ) ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT ALL 52 * - 44 * 59 + COUNT( ALL + - 59 ) * - 58
----
-135050

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL 52 * - 44 * 59 + COUNT ( ALL + - 59 ) * - 58
----
-135050

query I rowsort
SELECT ALL + CASE WHEN ( NULL ) NOT BETWEEN NULL AND NULL THEN NULL ELSE + - 60 END AS col2
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5392
SELECT ALL + NULLIF ( + CAST( NULL AS DECIMAL ), - 78 + + 93 ) * + 30 + - 97 + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL + NULLIF ( + CAST ( NULL AS REAL ), - 78 + + 93 ) * + 30 + - 97 + 36
----
NULL

query I rowsort
SELECT + 14 * 91 - + COALESCE ( - + 54, 17 - - 26 ) AS col2
----
1328

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5394
SELECT ALL + CASE 0 WHEN + 0 * - ( + 95 ) THEN - 23 + - 89 + CAST( NULL AS DECIMAL ) ELSE NULL END, 96 AS col0
----
NULL
96

skipif mysql # not compatible
query II rowsort label-5394
SELECT ALL + CASE 0 WHEN + 0 * - ( + 95 ) THEN - 23 + - 89 + CAST ( NULL AS REAL ) ELSE NULL END, 96 AS col0
----
NULL
96

query I rowsort
SELECT - 11 - - + 46 - + 76 AS col0
----
-41

query I rowsort
SELECT ALL + ( 57 ) * + 3 AS col0
----
171

query I rowsort
SELECT - 87 + 62
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT - COUNT( + 4 ) * + ( 17 ) + - 48
----
-65

skipif mysql # not compatible
query I rowsort label-5398
SELECT - COUNT ( + 4 ) * + ( 17 ) + - 48
----
-65

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5399
SELECT ALL - CAST( - + 72 AS DECIMAL ) + CAST( NULL AS SIGNED ) * 50 * + ( + - 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL - CAST ( - + 72 AS REAL ) + CAST ( NULL AS INTEGER ) * 50 * + ( + - 50 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT - COUNT( ALL + 44 ) - SUM( 93 ) * 35
----
-3256

skipif mysql # not compatible
query I rowsort label-5400
SELECT - COUNT ( ALL + 44 ) - SUM ( 93 ) * 35
----
-3256

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT DISTINCT + ( MAX( DISTINCT 68 ) ) + - 12 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-5401
SELECT DISTINCT + ( MAX ( DISTINCT 68 ) ) + - 12 AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-5402
SELECT ALL - COUNT( - 7 ) - - - 95 AS col0, 82 / - 7 + CASE + 52 WHEN - ( + 46 ) THEN - 41 WHEN 51 THEN - - 12 END AS col2
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-5402
SELECT ALL - COUNT ( - 7 ) - - - 95 AS col0, 82 / - 7 + CASE + 52 WHEN - ( + 46 ) THEN - 41 WHEN 51 THEN - - 12 END AS col2
----
-96
NULL

query I rowsort
SELECT ALL + 31 - - - 29 + + + 75 + + - 88
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT - 21 + + - MIN( + + 93 ) AS col0
----
-114

skipif mysql # not compatible
query I rowsort label-5404
SELECT - 21 + + - MIN ( + + 93 ) AS col0
----
-114

query I rowsort
SELECT - 22 + - 58 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT DISTINCT SUM( DISTINCT + 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT SUM ( DISTINCT + 82 ) AS col0
----
82

query I rowsort
SELECT - + 11 * - 6 AS col1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5408
SELECT ALL - 0 DIV - COUNT( ( + ( 66 ) ) ) * - - 3
----
0

skipif mysql # not compatible
query I rowsort label-5408
SELECT ALL - 0 / - COUNT ( ( + ( 66 ) ) ) * - - 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL - 42 - - - 57 / - + CASE COUNT( * ) WHEN - 88 + 27 THEN + - 26 END + - - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL - 42 - - - 57 / - + CASE COUNT ( * ) WHEN - 88 + 27 THEN + - 26 END + - - 90
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5410
SELECT - - COUNT( * ) * - + CASE + - 11 WHEN COUNT( * ) THEN NULL WHEN + CAST( NULL AS DECIMAL ) THEN + 4 + + 91 + - 6 * 97 WHEN - 42 THEN NULL ELSE - 96 + 96 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5410
SELECT - - COUNT ( * ) * - + CASE + - 11 WHEN COUNT ( * ) THEN NULL WHEN + CAST ( NULL AS REAL ) THEN + 4 + + 91 + - 6 * 97 WHEN - 42 THEN NULL ELSE - 96 + 96 END AS col2
----
0

query I rowsort
SELECT ALL + NULLIF ( 68, + 44 )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT DISTINCT - - 9 DIV 9 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT - - 9 / 9 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT + + 62 + - MIN( ALL - - 91 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-5413
SELECT + + 62 + - MIN ( ALL - - 91 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL - 51 * + - 63 * + + 8 * - NULLIF ( - 68, + COUNT( + 19 ) * 40 ) AS col0
----
1747872

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL - 51 * + - 63 * + + 8 * - NULLIF ( - 68, + COUNT ( + 19 ) * 40 ) AS col0
----
1747872

query I rowsort
SELECT - 34 + - + NULLIF ( + 79, - 21 ) * - 0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5416
SELECT DISTINCT - NULLIF ( + + NULLIF ( + 79, + COUNT( * ) + COUNT( * ) + + 86 ), + CASE + 3 WHEN - 34 / + 51 THEN + 34 ELSE 78 END / 18 ) * + + CASE + 42 WHEN + + 67 THEN NULL WHEN - 32 THEN 43 + - CAST( 20 AS SIGNED ) + COUNT( * ) END / + NULLIF ( - + 11, - 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5416
SELECT DISTINCT - NULLIF ( + + NULLIF ( + 79, + COUNT ( * ) + COUNT ( * ) + + 86 ), + CASE + 3 WHEN - 34 / + 51 THEN + 34 ELSE 78 END / 18 ) * + + CASE + 42 WHEN + + 67 THEN NULL WHEN - 32 THEN 43 + - CAST ( 20 AS INTEGER ) + COUNT ( * ) END / + NULLIF ( - + 11, - 62 )
----
NULL

query II rowsort
SELECT 61 AS col2, 21 AS col2
----
61
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT + - COUNT( * ) + + + 48
----
47

skipif mysql # not compatible
query I rowsort label-5418
SELECT + - COUNT ( * ) + + + 48
----
47

query I rowsort
SELECT ALL + + 0 col1
----
0

query I rowsort
SELECT + ( + 16 ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT + + COUNT( * ) - COUNT( DISTINCT 2 ) + - ( + 99 ) + - 14 col2
----
-113

skipif mysql # not compatible
query I rowsort label-5421
SELECT + + COUNT ( * ) - COUNT ( DISTINCT 2 ) + - ( + 99 ) + - 14 col2
----
-113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5422
SELECT ALL COUNT( * ) DIV - COUNT( * ) + - + 52 * + 90 + 79 + - COUNT( * ) + + 31 - - 58 * 25 * - 26 * - + 51 * - 96
----
-184583772

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL COUNT ( * ) / - COUNT ( * ) + - + 52 * + 90 + 79 + - COUNT ( * ) + + 31 - - 58 * 25 * - 26 * - + 51 * - 96
----
-184583772

query I rowsort
SELECT DISTINCT 83 * - - 11
----
913

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5424
SELECT - COUNT( * ) DIV - + COUNT( * ) + - 69
----
-68

skipif mysql # not compatible
query I rowsort label-5424
SELECT - COUNT ( * ) / - + COUNT ( * ) + - 69
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT COUNT( * ) * COUNT( * ) * - 81 + + - 54 * 46 + + ( - - MIN( DISTINCT + 75 ) )
----
-2490

skipif mysql # not compatible
query I rowsort label-5425
SELECT COUNT ( * ) * COUNT ( * ) * - 81 + + - 54 * 46 + + ( - - MIN ( DISTINCT + 75 ) )
----
-2490

query I rowsort
SELECT DISTINCT 47 * + + 42
----
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ALL - COUNT( * ) * - - 55 + - MAX( DISTINCT - 69 ) * + - 7 col1
----
-538

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL - COUNT ( * ) * - - 55 + - MAX ( DISTINCT - 69 ) * + - 7 col1
----
-538

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT - 47 * - 0 + + - 64 * + COUNT( * ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-5428
SELECT - 47 * - 0 + + - 64 * + COUNT ( * ) col0
----
-64

query I rowsort
SELECT - 17 - 97
----
-114

query I rowsort
SELECT ALL 82 * 43 AS col2
----
3526

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT + 5 * + - COALESCE ( - COUNT( * ), - 70 )
----
5

skipif mysql # not compatible
query I rowsort label-5431
SELECT + 5 * + - COALESCE ( - COUNT ( * ), - 70 )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5432
SELECT + 81 + - 6, - COUNT( * ) AS col0
----
75
-1

skipif mysql # not compatible
query II rowsort label-5432
SELECT + 81 + - 6, - COUNT ( * ) AS col0
----
75
-1

query I rowsort
SELECT ALL CASE + 77 WHEN 95 THEN - 86 END * + 70
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5434
SELECT DISTINCT + COALESCE ( - 33, + - 21, COALESCE ( + 1, - + COUNT( * ) * + - COALESCE ( - 97, 73 ) DIV - - 86 - - COUNT( * ) - ( + 93 ) ) DIV + ( + 91 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-5434
SELECT DISTINCT + COALESCE ( - 33, + - 21, COALESCE ( + 1, - + COUNT ( * ) * + - COALESCE ( - 97, 73 ) / - - 86 - - COUNT ( * ) - ( + 93 ) ) / + ( + 91 ) )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5435
SELECT ALL - 90 DIV + COALESCE ( - - MAX( DISTINCT - - 68 ), + 3 + + + ( + - 87 ) - NULLIF ( 92, - COUNT( * ) * - ( - + 81 ) * + 47 + + 36 ), - - 45, - + CAST( + 16 AS SIGNED ) * - 39 ) * - + 1 + - 68 + - - 99 + - SUM( + 54 )
----
-22

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL - 90 / + COALESCE ( - - MAX ( DISTINCT - - 68 ), + 3 + + + ( + - 87 ) - NULLIF ( 92, - COUNT ( * ) * - ( - + 81 ) * + 47 + + 36 ), - - 45, - + CAST ( + 16 AS INTEGER ) * - 39 ) * - + 1 + - 68 + - - 99 + - SUM ( + 54 )
----
-22

query II rowsort
SELECT ALL + ( + + 68 ), 42 AS col1
----
68
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT + COUNT( * ) * - ( + + 61 ) + 24
----
-37

skipif mysql # not compatible
query I rowsort label-5437
SELECT + COUNT ( * ) * - ( + + 61 ) + 24
----
-37

query I rowsort
SELECT ALL - 57 * - 16 - + 2 AS col2
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT NULLIF ( - - 36, + 3 * + SUM( + - 13 ) ) + + 97 AS col0
----
133

skipif mysql # not compatible
query I rowsort label-5439
SELECT NULLIF ( - - 36, + 3 * + SUM ( + - 13 ) ) + + 97 AS col0
----
133

query II rowsort
SELECT - COALESCE ( - 20, + 1, - 57 ), 33 * - 73 AS col1
----
20
-2409

query I rowsort
SELECT ALL - 55 * 19
----
-1045

query I rowsort
SELECT - 52 + - 68 AS col2
----
-120

query I rowsort
SELECT DISTINCT - 44 * 56 AS col0
----
-2464

query I rowsort
SELECT - 65 + - - 72 AS col1
----
7

query I rowsort
SELECT ALL + CASE + 62 WHEN + - 69 THEN 14 WHEN 19 + 81 THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5446
SELECT 57 * - - NULLIF ( CAST( NULL AS SIGNED ), + 79 + - - 93 * - - COUNT( * ) * - COUNT( * ) + + - 6 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT 57 * - - NULLIF ( CAST ( NULL AS INTEGER ), + 79 + - - 93 * - - COUNT ( * ) * - COUNT ( * ) + + - 6 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT + ( COUNT( DISTINCT - 57 ) ) + - 54 + 5 * - 93
----
-518

skipif mysql # not compatible
query I rowsort label-5447
SELECT + ( COUNT ( DISTINCT - 57 ) ) + - 54 + 5 * - 93
----
-518

query I rowsort
SELECT ALL - - 31 + - 91 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT + ( ( - COALESCE ( CASE 81 WHEN + ( COUNT( * ) ) THEN + 94 + - 37 ELSE NULL END, - 73 * - 57 * - 74 ) ) )
----
307914

skipif mysql # not compatible
query I rowsort label-5449
SELECT + ( ( - COALESCE ( CASE 81 WHEN + ( COUNT ( * ) ) THEN + 94 + - 37 ELSE NULL END, - 73 * - 57 * - 74 ) ) )
----
307914

onlyif mysql # aggregate syntax: 
query II rowsort label-5450
SELECT ALL + 59 + + NULLIF ( - COUNT( * ), 38 ) * + COALESCE ( - 38, 90 * + 14 ) * 94, - 51 * 6 * + COALESCE ( 1, - + 16, - 52 * - 10 ) AS col1
----
3631
-306

skipif mysql # not compatible
query II rowsort label-5450
SELECT ALL + 59 + + NULLIF ( - COUNT ( * ), 38 ) * + COALESCE ( - 38, 90 * + 14 ) * 94, - 51 * 6 * + COALESCE ( 1, - + 16, - 52 * - 10 ) AS col1
----
3631
-306

query I rowsort
SELECT - 68 + + 86 + + 23 AS col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5452
SELECT ALL 11 + 32 * + 86 + - - 91 DIV ( + - 23 ) AS col1
----
2760

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL 11 + 32 * + 86 + - - 91 / ( + - 23 ) AS col1
----
2760

query I rowsort
SELECT ALL - 67 + - 46 AS col1
----
-113

onlyif mysql # DIV for integer division: 
query I rowsort label-5454
SELECT ALL - - ( - + 13 ) + + + 19 + - 3 - + 78 DIV + + 16 + + 52 * - + 32 AS col2
----
-1665

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL - - ( - + 13 ) + + + 19 + - 3 - + 78 / + + 16 + + 52 * - + 32 AS col2
----
-1665

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL 59 + + 32 + - - NULLIF ( COUNT( * ), 44 ) - + 77 * - 33
----
2633

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL 59 + + 32 + - - NULLIF ( COUNT ( * ), 44 ) - + 77 * - 33
----
2633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5456
SELECT DISTINCT - 57 col2, - CASE COUNT( * ) WHEN 61 THEN CASE - 55 WHEN + 1 * - + 12 / + - 89 THEN - 28 WHEN + - 70 + - - 16 * 38 THEN NULL ELSE - 94 / 55 END WHEN - 22 + - + ( - CASE 64 WHEN - MIN( - + CAST( NULL AS SIGNED ) ) THEN + 64 END ) THEN - 43 + 21 ELSE NULL END
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-5456
SELECT DISTINCT - 57 col2, - CASE COUNT ( * ) WHEN 61 THEN CASE - 55 WHEN + 1 * - + 12 / + - 89 THEN - 28 WHEN + - 70 + - - 16 * 38 THEN NULL ELSE - 94 / 55 END WHEN - 22 + - + ( - CASE 64 WHEN - MIN ( - + CAST ( NULL AS INTEGER ) ) THEN + 64 END ) THEN - 43 + 21 ELSE NULL END
----
-57
NULL

query I rowsort
SELECT - 81 * - 51 + - 30 col1
----
4101

query I rowsort
SELECT 5 * - 57 * 55 AS col0
----
-15675

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5459
SELECT 93 / + - CAST( NULL AS DECIMAL ) + + + 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5459
SELECT 93 / + - CAST ( NULL AS REAL ) + + + 71 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5460
SELECT 77 AS col1, 20 DIV 5 - - COUNT( - 88 )
----
77
5

skipif mysql # not compatible
query II rowsort label-5460
SELECT 77 AS col1, 20 / 5 - - COUNT ( - 88 )
----
77
5

query II rowsort
SELECT + 64, 13 * + 56 AS col1
----
64
728

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5462
SELECT ALL ( - 46 ) + - 19 AS col1, - CAST( NULL AS SIGNED ) AS col0
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-5462
SELECT ALL ( - 46 ) + - 19 AS col1, - CAST ( NULL AS INTEGER ) AS col0
----
-65
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5463
SELECT DISTINCT - ( ( + CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT - ( ( + CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT 31 * + + 30
----
930

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT ALL ( + 14 ) - + COUNT( + 18 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL ( + 14 ) - + COUNT ( + 18 ) AS col2
----
13

query I rowsort
SELECT ALL 28 * 36 AS col1
----
1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5467
SELECT ALL 40 - 80 + 21 + + COUNT( * ) * + 55 * + 55 * - 17 / + ( ( + 57 ) ) * - ( - - NULLIF ( + COUNT( * ), - COUNT( * ) ) ) * + COUNT( + 22 ) + - CAST( NULL AS SIGNED ) * COALESCE ( - CAST( NULL AS SIGNED ), + MIN( ALL 9 ), - MAX( + 86 ) ) + - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL 40 - 80 + 21 + + COUNT ( * ) * + 55 * + 55 * - 17 / + ( ( + 57 ) ) * - ( - - NULLIF ( + COUNT ( * ), - COUNT ( * ) ) ) * + COUNT ( + 22 ) + - CAST ( NULL AS INTEGER ) * COALESCE ( - CAST ( NULL AS INTEGER ), + MIN ( ALL 9 ), - MAX ( + 86 ) ) + - 2
----
NULL

query I rowsort
SELECT ALL 45 * + - 49
----
-2205

onlyif mysql # aggregate syntax: 
query II rowsort label-5469
SELECT 56 * + MIN( ALL - 6 ), + 96 AS col2
----
-336
96

skipif mysql # not compatible
query II rowsort label-5469
SELECT 56 * + MIN ( ALL - 6 ), + 96 AS col2
----
-336
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5470
SELECT DISTINCT MAX( ALL - - 56 ) DIV - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT MAX ( ALL - - 56 ) / - 87 AS col1
----
0

query I rowsort
SELECT NULLIF ( 59, + 74 ) - - - 50 + 24 AS col0
----
33

query II rowsort
SELECT ALL - 1, + 48 * - 86 AS col0
----
-1
-4128

query I rowsort
SELECT ALL 92 * - 12 AS col2
----
-1104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5474
SELECT 40 + + - 19 DIV - - 73 AS col2, 48 + + 81 - + + CAST( NULL AS SIGNED ) DIV + - COUNT( * ) * - COALESCE ( - ( + + 34 ), - 97 + - 32 )
----
40
NULL

skipif mysql # not compatible
query II rowsort label-5474
SELECT 40 + + - 19 / - - 73 AS col2, 48 + + 81 - + + CAST ( NULL AS INTEGER ) / + - COUNT ( * ) * - COALESCE ( - ( + + 34 ), - 97 + - 32 )
----
40
NULL

query I rowsort
SELECT - 79 * - 73 + + 19 * 60 AS col2
----
6907

query II rowsort
SELECT 7 col2, - 3 AS col0
----
7
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5477
SELECT ALL 86 * + ( NULLIF ( + COALESCE ( + - 75, - 76 + CAST( 4 AS SIGNED ) + 48 + + - 43 * - 99 ), 57 + + ( + COUNT( * ) ) ) )
----
-6450

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL 86 * + ( NULLIF ( + COALESCE ( + - 75, - 76 + CAST ( 4 AS INTEGER ) + 48 + + - 43 * - 99 ), 57 + + ( + COUNT ( * ) ) ) )
----
-6450

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT ALL CASE NULLIF ( 16, 2 ) WHEN 93 * + ( 80 ) + 91 THEN NULL WHEN + ( - MAX( DISTINCT - 40 ) ) THEN 27 ELSE NULL END * + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL CASE NULLIF ( 16, 2 ) WHEN 93 * + ( 80 ) + 91 THEN NULL WHEN + ( - MAX ( DISTINCT - 40 ) ) THEN 27 ELSE NULL END * + 31 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 32 * 62
----
1984

query I rowsort
SELECT DISTINCT 91 * + 5 col0
----
455

query I rowsort
SELECT ALL 50 * 92
----
4600

onlyif mysql # DIV for integer division: 
query I rowsort label-5482
SELECT DISTINCT + 41 DIV 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT + 41 / 84 AS col2
----
0

query I rowsort
SELECT 84 + ( + 31 ) AS col1
----
115

query I rowsort
SELECT ALL 43 + 69 * NULLIF ( 64 * 50, + 4 * + 96 )
----
220843

query I rowsort
SELECT 65 + - 59
----
6

query I rowsort
SELECT 71 * 66 AS col2
----
4686

query I rowsort
SELECT ( - 69 ) + - 80
----
-149

query I rowsort
SELECT ALL 84 + + 12
----
96

query I rowsort
SELECT DISTINCT 42 + 97 * 44 AS col1
----
4310

query I rowsort
SELECT DISTINCT - 52 * - ( 62 * 36 )
----
116064

query I rowsort
SELECT DISTINCT - 43 + 53
----
10

query I rowsort
SELECT ALL - 70 * ( COALESCE ( - 14, + 97 ) ) AS col2
----
980

query I rowsort
SELECT DISTINCT - COALESCE ( + ( - 62 ), 15, 76 ) + - 24 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT - COUNT( - 92 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5494
SELECT - COUNT ( - 92 ) AS col1
----
-1

query I rowsort
SELECT ALL + 98 + 86 * 67
----
5860

query I rowsort
SELECT 96 + + 41
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT 99 * - ( NULLIF ( - SUM( ALL - ( 29 ) ), - 66 * + 80 + + 40 ) ) AS col0
----
-2871

skipif mysql # not compatible
query I rowsort label-5497
SELECT 99 * - ( NULLIF ( - SUM ( ALL - ( 29 ) ), - 66 * + 80 + + 40 ) ) AS col0
----
-2871

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT - 2 DIV 67 + + 2 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5498
SELECT - 2 / 67 + + 2 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5499
SELECT 41 DIV 34 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5499
SELECT 41 / 34 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT ALL - 46 * COALESCE ( COUNT( * ), 50 ) + + 76 col0
----
30

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL - 46 * COALESCE ( COUNT ( * ), 50 ) + + 76 col0
----
30

query I rowsort
SELECT 15 + 59 AS col2
----
74

query I rowsort
SELECT ALL - 96 * + 53 - + 58
----
-5146

query I rowsort
SELECT 25 * + 46 AS col1
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT ALL - SUM( 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL - SUM ( 74 )
----
-74

query I rowsort
SELECT DISTINCT 93 * + COALESCE ( 95, + 90 - 35 )
----
8835

onlyif mysql # DIV for integer division: 
query I rowsort label-5506
SELECT DISTINCT + 17 DIV 60 col0
----
0

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT + 17 / 60 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5507
SELECT ALL + 8 DIV SUM( DISTINCT + 39 )
----
0

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL + 8 / SUM ( DISTINCT + 39 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT MAX( + 79 ) + 28 AS col1
----
107

skipif mysql # not compatible
query I rowsort label-5508
SELECT MAX ( + 79 ) + 28 AS col1
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT ALL COUNT( ALL 56 ) * + ( - ( 10 ) ) - SUM( 57 ) * + COUNT( DISTINCT + 80 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL COUNT ( ALL 56 ) * + ( - ( 10 ) ) - SUM ( 57 ) * + COUNT ( DISTINCT + 80 ) AS col1
----
-67

query I rowsort
SELECT 99 * - 65 + 71 AS col0
----
-6364

query I rowsort
SELECT + 28 * - 31 AS col0
----
-868

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT + SUM( ALL + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-5512
SELECT + SUM ( ALL + 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT - COUNT( * ) * - ( COUNT( * ) ) + - 11 col0
----
-10

skipif mysql # not compatible
query I rowsort label-5513
SELECT - COUNT ( * ) * - ( COUNT ( * ) ) + - 11 col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT + 13 * + COUNT( 37 ) - + CASE 42 - SUM( ALL - 61 ) WHEN + 56 * 26 THEN NULL ELSE 98 + 20 END AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-5514
SELECT + 13 * + COUNT ( 37 ) - + CASE 42 - SUM ( ALL - 61 ) WHEN + 56 * 26 THEN NULL ELSE 98 + 20 END AS col0
----
-105

query I rowsort
SELECT ( NULLIF ( 35, + 93 ) ) * - 64 + + 20 AS col0
----
-2220

query I rowsort
SELECT - 92 * - 98 AS col2
----
9016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5517
SELECT ALL + CAST( - NULLIF ( 22, 89 ) AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL + CAST ( - NULLIF ( 22, 89 ) AS INTEGER )
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5518
SELECT DISTINCT - 18 * - CAST( + 96 AS SIGNED ) AS col2
----
1728

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT - 18 * - CAST ( + 96 AS INTEGER ) AS col2
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT ALL + - MIN( ALL 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL + - MIN ( ALL 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT + 73 * + SUM( + 2 ) + + NULLIF ( + COUNT( * ), 40 ) AS col1
----
147

skipif mysql # not compatible
query I rowsort label-5520
SELECT + 73 * + SUM ( + 2 ) + + NULLIF ( + COUNT ( * ), 40 ) AS col1
----
147

query I rowsort
SELECT + - 74 + 89 * 76
----
6690

query I rowsort
SELECT ALL 17 + 61
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT - COUNT( DISTINCT - 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-5523
SELECT - COUNT ( DISTINCT - 60 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT + 0 + ( + 73 + COUNT( * ) ) * - 39 AS col2
----
-2886

skipif mysql # not compatible
query I rowsort label-5524
SELECT + 0 + ( + 73 + COUNT ( * ) ) * - 39 AS col2
----
-2886

query I rowsort
SELECT DISTINCT - 61 + 92
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5526
SELECT + CAST( NULL AS SIGNED ) * 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5526
SELECT + CAST ( NULL AS INTEGER ) * 57 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5527
SELECT - 88 + + CAST( + 43 AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-5527
SELECT - 88 + + CAST ( + 43 AS INTEGER )
----
-45

query I rowsort
SELECT ALL 57 + + 95
----
152

query I rowsort
SELECT ALL - 11 + 97 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT DISTINCT + 0 + ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT + 0 + ( - COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL + ( ( - 54 ) ) AS col1
----
-54

query I rowsort
SELECT + - COALESCE ( 76, 83 * ( - 77 ) + + 92 ) + 50 col1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5533
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 34 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 34 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT DISTINCT COUNT( * ) * 74
----
74

skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT COUNT ( * ) * 74
----
74

query I rowsort
SELECT DISTINCT + - 63 + 5 * 30
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT - MIN( + 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-5536
SELECT - MIN ( + 32 )
----
-32

query I rowsort
SELECT + 16 * + 73 col2
----
1168

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT + - 12 - COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-5538
SELECT + - 12 - COUNT ( * ) AS col2
----
-13

query I rowsort
SELECT DISTINCT - 85 - - 88
----
3

query I rowsort
SELECT - 94 + + 61
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT DISTINCT + 21 * + NULLIF ( + 60, - 40 * + COUNT( DISTINCT + NULLIF ( + 87, - 31 / + 77 ) / 50 ) ) * + 91
----
114660

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT + 21 * + NULLIF ( + 60, - 40 * + COUNT ( DISTINCT + NULLIF ( + 87, - 31 / + 77 ) / 50 ) ) * + 91
----
114660

query I rowsort
SELECT ALL COALESCE ( - - 71, 13 + + 42 ) AS col0
----
71

query I rowsort
SELECT ALL + 3 * + + 67
----
201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5544
SELECT ALL + MAX( 97 ) DIV + 1 - - 37 DIV MAX( ALL 32 )
----
98

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL + MAX ( 97 ) / + 1 - - 37 / MAX ( ALL 32 )
----
98

query I rowsort
SELECT DISTINCT + 94 * - 44 col0
----
-4136

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT DISTINCT CASE - 20 WHEN 26 * 41 THEN COUNT( * ) END * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT CASE - 20 WHEN 26 * 41 THEN COUNT ( * ) END * 31
----
NULL

query I rowsort
SELECT + 5 * + ( 37 ) AS col2
----
185

query I rowsort
SELECT - NULLIF ( - 65, 10 + 46 ) * 56 AS col0
----
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT ( NULLIF ( 5, COUNT( * ) ) )
----
5

skipif mysql # not compatible
query I rowsort label-5549
SELECT ( NULLIF ( 5, COUNT ( * ) ) )
----
5

query I rowsort
SELECT - 4 + 30
----
26

query I rowsort
SELECT ALL + ( + COALESCE ( 4, 40 * - 54 - - 89 ) ) AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5552
SELECT - MIN( + - ( CASE 25 WHEN 11 THEN + 41 WHEN - 70 * + 58 THEN 42 ELSE NULL END ) ) * + MAX( - 54 * - CAST( 71 AS DECIMAL ) + + 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5552
SELECT - MIN ( + - ( CASE 25 WHEN 11 THEN + 41 WHEN - 70 * + 58 THEN 42 ELSE NULL END ) ) * + MAX ( - 54 * - CAST ( 71 AS REAL ) + + 82 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5553
SELECT - CAST( COUNT( * ) AS SIGNED ) + COUNT( * ) * + 62 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5553
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + COUNT ( * ) * + 62 AS col1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-5554
SELECT DISTINCT + 59 DIV - + 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT + 59 / - + 82 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT ALL 71 * - CASE - 89 WHEN - SUM( + 79 ) THEN NULL WHEN - 51 + 95 THEN 51 WHEN 27 THEN 14 ELSE NULL END * 8 + NULLIF ( COUNT( * ) - + 9 * 76, COUNT( * ) + 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL 71 * - CASE - 89 WHEN - SUM ( + 79 ) THEN NULL WHEN - 51 + 95 THEN 51 WHEN 27 THEN 14 ELSE NULL END * 8 + NULLIF ( COUNT ( * ) - + 9 * 76, COUNT ( * ) + 60 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5556
SELECT - CAST( NULL AS SIGNED ) * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT - CAST ( NULL AS INTEGER ) * - 86
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5557
SELECT ALL + 68 DIV - 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL + 68 / - 76 AS col2
----
0

query I rowsort
SELECT DISTINCT + 68 * - 3 + - 21 + 80 * - 67
----
-5585

query I rowsort
SELECT DISTINCT 12 * + 24 + + 77 AS col0
----
365

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT - 89 + - 29 + - MAX( 46 ) AS col1
----
-164

skipif mysql # not compatible
query I rowsort label-5560
SELECT - 89 + - 29 + - MAX ( 46 ) AS col1
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT ALL + 32 * + 93 * - COUNT( * ) + - 7 AS col1
----
-2983

skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL + 32 * + 93 * - COUNT ( * ) + - 7 AS col1
----
-2983

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT - + CASE - 58 WHEN + 51 THEN + 47 + - ( + COUNT( * ) ) * - 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5562
SELECT - + CASE - 58 WHEN + 51 THEN + 47 + - ( + COUNT ( * ) ) * - 28 END
----
NULL

query I rowsort
SELECT ALL + - 50 * 33 * + ( + 42 ) + - 98 * 13 AS col2
----
-70574

query I rowsort
SELECT ALL - + 83 * + 2 + + 75 + 48
----
-43

query I rowsort
SELECT ALL - - 85 * 70 + + 76 AS col2
----
6026

query I rowsort
SELECT + - 27 + + 40 * 20
----
773

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT - CASE - 99 WHEN 70 THEN COALESCE ( COUNT( * ), + COALESCE ( - 44, 38 + 61 ) ) * + 81 WHEN 58 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5567
SELECT - CASE - 99 WHEN 70 THEN COALESCE ( COUNT ( * ), + COALESCE ( - 44, 38 + 61 ) ) * + 81 WHEN 58 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 5 + 80 AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5569
SELECT + 18 + - - CASE + ( MIN( DISTINCT - CAST( NULL AS SIGNED ) ) ) WHEN + CAST( NULL AS SIGNED ) * + 67 + 37 THEN NULL WHEN + 63 + 9 THEN NULL WHEN COALESCE ( 84, 40 * - 25 ) + - CAST( 92 AS SIGNED ) THEN MAX( 55 ) / 16 END * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5569
SELECT + 18 + - - CASE + ( MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) WHEN + CAST ( NULL AS INTEGER ) * + 67 + 37 THEN NULL WHEN + 63 + 9 THEN NULL WHEN COALESCE ( 84, 40 * - 25 ) + - CAST ( 92 AS INTEGER ) THEN MAX ( 55 ) / 16 END * 22
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5570
SELECT - - CAST( ( COUNT( * ) ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5570
SELECT - - CAST ( ( COUNT ( * ) ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT ALL - 86 - - 6 * 29 AS col2
----
88

query I rowsort
SELECT - ( - ( - 77 ) ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL COUNT( ALL - 86 )
----
1

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL COUNT ( ALL - 86 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5574
SELECT ALL COUNT( * ) AS col1, + 75 * + 52
----
1
3900

skipif mysql # not compatible
query II rowsort label-5574
SELECT ALL COUNT ( * ) AS col1, + 75 * + 52
----
1
3900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5575
SELECT + 41 DIV COUNT( * ) col1
----
41

skipif mysql # not compatible
query I rowsort label-5575
SELECT + 41 / COUNT ( * ) col1
----
41

query I rowsort
SELECT ALL 47 * + 34
----
1598

query I rowsort
SELECT DISTINCT CASE 25 WHEN - + 76 + + 12 THEN + 4 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT ALL 63 AS col0, - 83 * - 49 * - 65 col1
----
63
-264355

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT COUNT( * ) + - 22 + - 51 * 61 AS col2
----
-3132

skipif mysql # not compatible
query I rowsort label-5579
SELECT COUNT ( * ) + - 22 + - 51 * 61 AS col2
----
-3132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5580
SELECT 24 DIV COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-5580
SELECT 24 / COUNT ( * )
----
24

query I rowsort
SELECT 30 + - 5 AS col0
----
25

query I rowsort
SELECT 66 - + + 77 AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5583
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / - + 66 + 13 * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / - + 66 + 13 * - 35
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5584
SELECT ALL - 14 AS col0, SUM( DISTINCT - 57 ) DIV COUNT( * ) - + 7 DIV COUNT( * ) AS col0
----
-14
-64

skipif mysql # not compatible
query II rowsort label-5584
SELECT ALL - 14 AS col0, SUM ( DISTINCT - 57 ) / COUNT ( * ) - + 7 / COUNT ( * ) AS col0
----
-14
-64

query I rowsort
SELECT 49 + - 75 AS col2
----
-26

query II rowsort
SELECT + 28 col2, ( 32 ) + + 24
----
28
56

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5587
SELECT ALL + 73 + - AVG ( DISTINCT + 79 ) - CAST( NULL AS SIGNED ) * ( CAST( + 69 AS DECIMAL ) + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL + 73 + - AVG ( DISTINCT + 79 ) - CAST ( NULL AS INTEGER ) * ( CAST ( + 69 AS REAL ) + 66 )
----
NULL

query I rowsort
SELECT ALL + 46 + - + 80 AS col2
----
-34

query I rowsort
SELECT 84 + 33
----
117

query I rowsort
SELECT ALL 27 + 23 + 18
----
68

query I rowsort
SELECT 94 + 93 * + 11 + 49 AS col1
----
1166

onlyif mysql # DIV for integer division: 
query I rowsort label-5592
SELECT ALL - + COALESCE ( + + 66, + COALESCE ( + 35, 29 DIV 87 ) * 50 ) + - 60 AS col1
----
-126

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL - + COALESCE ( + + 66, + COALESCE ( + 35, 29 / 87 ) * 50 ) + - 60 AS col1
----
-126

query I rowsort
SELECT 80 * + - 72
----
-5760

query II rowsort
SELECT + 84, 43 - - - 48 AS col0
----
84
-5

query I rowsort
SELECT DISTINCT 61 + - 50 AS col1
----
11

query I rowsort
SELECT ALL - + 22 + + 87 + - 76 * ( 37 )
----
-2747

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT - 9 + + MIN( - 11 ) - 20
----
-40

skipif mysql # not compatible
query I rowsort label-5597
SELECT - 9 + + MIN ( - 11 ) - 20
----
-40

query II rowsort
SELECT ALL - 47 AS col1, - 13 AS col0
----
-47
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT DISTINCT - + COUNT( * ) * - - 11
----
-11

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT - + COUNT ( * ) * - - 11
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5600
SELECT 95 + - NULLIF ( CAST( COUNT( * ) AS SIGNED ), + AVG ( 33 ) + - COUNT( * ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-5600
SELECT 95 + - NULLIF ( CAST ( COUNT ( * ) AS INTEGER ), + AVG ( 33 ) + - COUNT ( * ) ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT ALL - - 30 - + 25 * + 79 * COUNT( * ) + + 62
----
-1883

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL - - 30 - + 25 * + 79 * COUNT ( * ) + + 62
----
-1883

onlyif mysql # DIV for integer division: 
query I rowsort label-5602
SELECT - 76 DIV 35 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5602
SELECT - 76 / 35 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT 26 * + ( + - COUNT( * ) ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5603
SELECT 26 * + ( + - COUNT ( * ) ) AS col1
----
-26

query I rowsort
SELECT 29 * + 95 col2
----
2755

onlyif mysql # aggregate syntax: 
query II rowsort label-5605
SELECT - - 75, + 87 * - COUNT( * ) AS col1
----
75
-87

skipif mysql # not compatible
query II rowsort label-5605
SELECT - - 75, + 87 * - COUNT ( * ) AS col1
----
75
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT 18 + - + COUNT( * ) * + + 10 col2
----
8

skipif mysql # not compatible
query I rowsort label-5606
SELECT 18 + - + COUNT ( * ) * + + 10 col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5607
SELECT DISTINCT + COUNT( * ) * - - ( 41 ) DIV + 82 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5607
SELECT DISTINCT + COUNT ( * ) * - - ( 41 ) / + 82 + - COUNT ( * )
----
-1

query I rowsort
SELECT ALL + + 50 * 61
----
3050

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT DISTINCT COUNT( DISTINCT - + 22 )
----
1

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT COUNT ( DISTINCT - + 22 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT ALL COALESCE ( - - 98, - + COUNT( * ), - 15 * 31 )
----
98

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL COALESCE ( - - 98, - + COUNT ( * ), - 15 * 31 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT DISTINCT - 21 * + 69 * - 41 * - + COUNT( * ) col2
----
-59409

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT - 21 * + 69 * - 41 * - + COUNT ( * ) col2
----
-59409

query I rowsort
SELECT 50 + 52 AS col2
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5613
SELECT 34 - CAST( NULL AS SIGNED ) * + COUNT( * ) * - - 45 * + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5613
SELECT 34 - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - - 45 * + 31 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5614
SELECT ALL 93 DIV + 31 * - 1 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL 93 / + 31 * - 1 AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5615
SELECT 40 * - - CAST( + + 20 AS SIGNED ) AS col2
----
800

skipif mysql # not compatible
query I rowsort label-5615
SELECT 40 * - - CAST ( + + 20 AS INTEGER ) AS col2
----
800

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT 75 + + - 74 - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5616
SELECT 75 + + - 74 - - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT DISTINCT 28 + 50 + COUNT( * ) + 0
----
79

skipif mysql # not compatible
query I rowsort label-5617
SELECT DISTINCT 28 + 50 + COUNT ( * ) + 0
----
79

query I rowsort
SELECT ALL 87 + 42 - 71
----
58

query I rowsort
SELECT ALL 63 + - - 16
----
79

query I rowsort
SELECT 65 * - + 39 * - + 99 * - - 39 AS col0
----
9787635

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT DISTINCT 92 + + 40 * SUM( 50 ) * - 34 AS col2
----
-67908

skipif mysql # not compatible
query I rowsort label-5621
SELECT DISTINCT 92 + + 40 * SUM ( 50 ) * - 34 AS col2
----
-67908

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5622
SELECT 5 DIV - - COUNT( * ) - - 80
----
85

skipif mysql # not compatible
query I rowsort label-5622
SELECT 5 / - - COUNT ( * ) - - 80
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT MAX( DISTINCT 83 ) * + 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5623
SELECT MAX ( DISTINCT 83 ) * + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5624
SELECT + COUNT( ALL + 76 ), + 66 AS col2
----
1
66

skipif mysql # not compatible
query II rowsort label-5624
SELECT + COUNT ( ALL + 76 ), + 66 AS col2
----
1
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT + - CASE - MAX( + 25 ) WHEN - + 98 * ( - 37 * 82 ) - - ( - 31 ) THEN 78 WHEN COUNT( * ) THEN 36 WHEN - 24 * - 25 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT + - CASE - MAX ( + 25 ) WHEN - + 98 * ( - 37 * 82 ) - - ( - 31 ) THEN 78 WHEN COUNT ( * ) THEN 36 WHEN - 24 * - 25 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5626
SELECT 26 * - + COUNT( * ) + + 0 + - 5 - - 42 DIV COUNT( ALL + 83 + 8 ) col1
----
11

skipif mysql # not compatible
query I rowsort label-5626
SELECT 26 * - + COUNT ( * ) + + 0 + - 5 - - 42 / COUNT ( ALL + 83 + 8 ) col1
----
11

query I rowsort
SELECT - NULLIF ( - + 9, + 79 * + 50 * + 22 )
----
9

query I rowsort
SELECT ALL - 49 * - 1 AS col0
----
49

query I rowsort
SELECT 41 * - 80 * + + 94 * 58 - - 7 * + ( - 21 ) AS col1
----
-17882707

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT - 82 * + COUNT( ALL + 43 ) + - 76 - 60 * + 67 AS col2
----
-4178

skipif mysql # not compatible
query I rowsort label-5630
SELECT - 82 * + COUNT ( ALL + 43 ) + - 76 - 60 * + 67 AS col2
----
-4178

query I rowsort
SELECT COALESCE ( 45, ( + + 38 ), + ( NULLIF ( + NULLIF ( + 12, 57 ), 78 ) ) ) + 10 * + 79
----
835

onlyif mysql # DIV for integer division: 
query I rowsort label-5632
SELECT 20 DIV 6
----
3

skipif mysql # not compatible
query I rowsort label-5632
SELECT 20 / 6
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT - ( COUNT( * ) ) - - 59 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-5633
SELECT - ( COUNT ( * ) ) - - 59 AS col0
----
58

query I rowsort
SELECT - 37 + + ( 22 ) col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT ALL - 44 * + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL - 44 * + COUNT ( * )
----
-44

query I rowsort
SELECT - 35 * + 30
----
-1050

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT - NULLIF ( + + COUNT( * ), COUNT( ALL + + 37 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5637
SELECT - NULLIF ( + + COUNT ( * ), COUNT ( ALL + + 37 ) ) col0
----
NULL

query I rowsort
SELECT - 11 * - 81 * - 33
----
-29403

query I rowsort
SELECT - 82 + + + 26
----
-56

query I rowsort
SELECT ALL + 45 * + - 34
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT DISTINCT - 90 + - COUNT( * ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT - 90 + - COUNT ( * ) AS col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5642
SELECT - 64 - CAST( + 36 AS SIGNED ) - - - 1
----
-101

skipif mysql # not compatible
query I rowsort label-5642
SELECT - 64 - CAST ( + 36 AS INTEGER ) - - - 1
----
-101

query I rowsort
SELECT - 76 * 20 AS col2
----
-1520

query I rowsort
SELECT ALL - 72 + + 5
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT ALL CASE - 95 WHEN + + 50 THEN - 42 * - 49 WHEN COUNT( ALL + 6 ) * - 38 THEN 97 ELSE 9 END
----
9

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL CASE - 95 WHEN + + 50 THEN - 42 * - 49 WHEN COUNT ( ALL + 6 ) * - 38 THEN 97 ELSE 9 END
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT ALL + NULLIF ( - - MAX( ALL - 46 ), 2 ) + + NULLIF ( 88, ( NULLIF ( MAX( 64 ), + 17 ) ) )
----
42

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL + NULLIF ( - - MAX ( ALL - 46 ), 2 ) + + NULLIF ( 88, ( NULLIF ( MAX ( 64 ), + 17 ) ) )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5647
SELECT ALL 40 + - + 32 + - - CAST( NULL AS SIGNED ) col0, 64 AS col0
----
NULL
64

skipif mysql # not compatible
query II rowsort label-5647
SELECT ALL 40 + - + 32 + - - CAST ( NULL AS INTEGER ) col0, 64 AS col0
----
NULL
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5648
SELECT - 45 * CAST( NULL AS SIGNED ) * + 91, 76 AS col0
----
NULL
76

skipif mysql # not compatible
query II rowsort label-5648
SELECT - 45 * CAST ( NULL AS INTEGER ) * + 91, 76 AS col0
----
NULL
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT - COALESCE ( 69, + - 42, - - COUNT( * ) + - COUNT( * ) ) + 76
----
7

skipif mysql # not compatible
query I rowsort label-5649
SELECT - COALESCE ( 69, + - 42, - - COUNT ( * ) + - COUNT ( * ) ) + 76
----
7

query I rowsort
SELECT - 9 + 48
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT + 15 - ( - - COUNT( * ) )
----
14

skipif mysql # not compatible
query I rowsort label-5651
SELECT + 15 - ( - - COUNT ( * ) )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5652
SELECT DISTINCT - 37 DIV 1 * 89
----
-3293

skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT - 37 / 1 * 89
----
-3293

query I rowsort
SELECT ALL ( + + 0 ) AS col1
----
0

query I rowsort
SELECT - ( 61 ) + 83
----
22

query I rowsort
SELECT + CASE + 53 WHEN - CASE + + 49 WHEN + 64 THEN NULL WHEN - 12 * + 45 THEN NULL ELSE AVG ( DISTINCT + 56 ) * + 74 END THEN 70 * 63 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5656
SELECT ALL + - 51 * + - 90 * + 74 - - 6 DIV 82 DIV + 71
----
339660

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL + - 51 * + - 90 * + 74 - - 6 / 82 / + 71
----
339660

query I rowsort
SELECT - - ( + 57 ) + 24 - + 72 + 19 AS col2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5658
SELECT DISTINCT + - 13 DIV - 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5658
SELECT DISTINCT + - 13 / - 47 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5659
SELECT - + COUNT( * ) DIV 94 + COUNT( * ) - - 90 + + + 80 * + 28 + - 73
----
2258

skipif mysql # not compatible
query I rowsort label-5659
SELECT - + COUNT ( * ) / 94 + COUNT ( * ) - - 90 + + + 80 * + 28 + - 73
----
2258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5660
SELECT ALL NULLIF ( + - 47, + COALESCE ( + COUNT( * ), + MIN( + 29 ), - NULLIF ( + 30, COALESCE ( - CAST( NULL AS SIGNED ), 79 + 41, 68 ) ) ) ) * + 20 - 93 * - 64
----
5012

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL NULLIF ( + - 47, + COALESCE ( + COUNT ( * ), + MIN ( + 29 ), - NULLIF ( + 30, COALESCE ( - CAST ( NULL AS INTEGER ), 79 + 41, 68 ) ) ) ) * + 20 - 93 * - 64
----
5012

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT ALL + CASE + + COUNT( * ) WHEN SUM( + 6 ) + 97 THEN 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL + CASE + + COUNT ( * ) WHEN SUM ( + 6 ) + 97 THEN 50 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT + + 15 + + COUNT( * ) * - + 49
----
-34

skipif mysql # not compatible
query I rowsort label-5662
SELECT + + 15 + + COUNT ( * ) * - + 49
----
-34

query I rowsort
SELECT - - 4 * + 73 col0
----
292

query I rowsort
SELECT + 80 * - 96 * 36 + 76
----
-276404

query I rowsort
SELECT DISTINCT + NULLIF ( + 19, 84 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT ALL - - SUM( ALL + 86 ) * - 39 + - 3
----
-3357

skipif mysql # not compatible
query I rowsort label-5666
SELECT ALL - - SUM ( ALL + 86 ) * - 39 + - 3
----
-3357

onlyif mysql # aggregate syntax: 
query II rowsort label-5667
SELECT + + 71 * - MAX( + - 61 ) AS col0, 42
----
4331
42

skipif mysql # not compatible
query II rowsort label-5667
SELECT + + 71 * - MAX ( + - 61 ) AS col0, 42
----
4331
42

onlyif mysql # aggregate syntax: 
query II rowsort label-5668
SELECT ALL + 25 AS col0, - COUNT( * ) + - 56 AS col2
----
25
-57

skipif mysql # not compatible
query II rowsort label-5668
SELECT ALL + 25 AS col0, - COUNT ( * ) + - 56 AS col2
----
25
-57

query I rowsort
SELECT + + 38 * + + 31 AS col2
----
1178

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT - ( MAX( DISTINCT 97 ) ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-5670
SELECT - ( MAX ( DISTINCT 97 ) ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-5671
SELECT COUNT( * ), + 1
----
1
1

skipif mysql # not compatible
query II rowsort label-5671
SELECT COUNT ( * ), + 1
----
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5672
SELECT + 0 + + - CASE - CAST( + 82 AS DECIMAL ) WHEN 91 THEN + - 48 + + 38 * + 75 WHEN + 63 + - 15 * 24 THEN NULL END + + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5672
SELECT + 0 + + - CASE - CAST ( + 82 AS REAL ) WHEN 91 THEN + - 48 + + 38 * + 75 WHEN + 63 + - 15 * 24 THEN NULL END + + 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT + 58 * + MIN( DISTINCT 13 )
----
754

skipif mysql # not compatible
query I rowsort label-5673
SELECT + 58 * + MIN ( DISTINCT 13 )
----
754

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5674
SELECT ALL - 86 + 60 + ( + CAST( NULL AS SIGNED ) ) col0, 60 AS col0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-5674
SELECT ALL - 86 + 60 + ( + CAST ( NULL AS INTEGER ) ) col0, 60 AS col0
----
NULL
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5675
SELECT ALL + 14 DIV - 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL + 14 / - 77 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5676
SELECT - COALESCE ( + - CAST( NULL AS SIGNED ), + ( - 81 ) ) + CASE + COUNT( * ) WHEN - COUNT( * ) + + 44 * 70 THEN 63 - COUNT( * ) ELSE NULL END / + MIN( ALL + 91 - 36 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5676
SELECT - COALESCE ( + - CAST ( NULL AS INTEGER ), + ( - 81 ) ) + CASE + COUNT ( * ) WHEN - COUNT ( * ) + + 44 * 70 THEN 63 - COUNT ( * ) ELSE NULL END / + MIN ( ALL + 91 - 36 ) AS col2
----
NULL

query I rowsort
SELECT ALL 52 + - 98
----
-46

query I rowsort
SELECT - 16 + + + 11
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT DISTINCT + 96 * - - COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT + 96 * - - COUNT ( * ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5680
SELECT 20, COUNT( * ) AS col2
----
20
1

skipif mysql # not compatible
query II rowsort label-5680
SELECT 20, COUNT ( * ) AS col2
----
20
1

query I rowsort
SELECT ALL - 51 * - + 61
----
3111

onlyif mysql # aggregate syntax: 
query II rowsort label-5682
SELECT DISTINCT - 96, MIN( ALL - 15 ) * 95 AS col2
----
-96
-1425

skipif mysql # not compatible
query II rowsort label-5682
SELECT DISTINCT - 96, MIN ( ALL - 15 ) * 95 AS col2
----
-96
-1425

query II rowsort
SELECT DISTINCT + 14 AS col1, + 45
----
14
45

query I rowsort
SELECT - - 49 * - 77 AS col2
----
-3773

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5685
SELECT + - 29 DIV COALESCE ( - 5, + MAX( DISTINCT - + CAST( NULL AS SIGNED ) ), - - 53 ) - + 21
----
-16

skipif mysql # not compatible
query I rowsort label-5685
SELECT + - 29 / COALESCE ( - 5, + MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ), - - 53 ) - + 21
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT - 98 * - 1 - - COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-5686
SELECT - 98 * - 1 - - COUNT ( * )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT DISTINCT + CASE - - 26 WHEN - 89 * - - 65 THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT + CASE - - 26 WHEN - 89 * - - 65 THEN - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5688
SELECT ALL + - CAST( NULL AS SIGNED ) / - 96 + + - CASE - ( + 84 ) WHEN + 75 THEN NULL ELSE - 17 END + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL + - CAST ( NULL AS INTEGER ) / - 96 + + - CASE - ( + 84 ) WHEN + 75 THEN NULL ELSE - 17 END + 78 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 45, 89 AS col0
----
45
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT ALL - 48 + SUM( + - ( + 43 ) ) * - + 31 + COUNT( * ) + + 49 AS col2
----
1335

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL - 48 + SUM ( + - ( + 43 ) ) * - + 31 + COUNT ( * ) + + 49 AS col2
----
1335

query I rowsort
SELECT DISTINCT + - ( - + 97 ) * + - 38
----
-3686

query I rowsort
SELECT + 19 * + + 35 col0
----
665

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT ALL MIN( 22 ) + + - COALESCE ( + + 39, - + NULLIF ( 89, + 63 / - 16 ) * ( + 42 + 12 * 31 ) ) + 31 * + SUM( DISTINCT + 27 ) * 43
----
35974

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL MIN ( 22 ) + + - COALESCE ( + + 39, - + NULLIF ( 89, + 63 / - 16 ) * ( + 42 + 12 * 31 ) ) + 31 * + SUM ( DISTINCT + 27 ) * 43
----
35974

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT ALL ( - 66 ) + 51 * + + COUNT( ALL 2 ) + + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-5694
SELECT ALL ( - 66 ) + 51 * + + COUNT ( ALL 2 ) + + COUNT ( * )
----
-14

query I rowsort
SELECT - 71 + + 74 * + 30 AS col0
----
2149

query I rowsort
SELECT 40 * + 65
----
2600

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5697
SELECT COALESCE ( 9, + 8, - 31 ) + 4, CASE 14 WHEN + COUNT( * ) * - 65 THEN - 41 + 83 WHEN 91 + 89 THEN NULL ELSE 58 DIV COUNT( * ) END + 35 AS col2
----
13
93

skipif mysql # not compatible
query II rowsort label-5697
SELECT COALESCE ( 9, + 8, - 31 ) + 4, CASE 14 WHEN + COUNT ( * ) * - 65 THEN - 41 + 83 WHEN 91 + 89 THEN NULL ELSE 58 / COUNT ( * ) END + 35 AS col2
----
13
93

query I rowsort
SELECT 79 * + 87 col2
----
6873

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT ALL 47 + + 18 * + ( COUNT( * ) ) * + - CASE 12 WHEN 70 * + 7 THEN + 86 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL 47 + + 18 * + ( COUNT ( * ) ) * + - CASE 12 WHEN 70 * + 7 THEN + 86 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 17 + 47 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT DISTINCT 76 + - 40 - - - COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-5701
SELECT DISTINCT 76 + - 40 - - - COUNT ( * ) AS col0
----
35

query I rowsort
SELECT DISTINCT 99 + ( - + 76 ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT CASE + 82 WHEN 8 THEN - 97 * + - 35 + + - 12 + - 97 + ( ( - 92 ) - 1 ) WHEN + COUNT( * ) THEN NULL END + - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5703
SELECT CASE + 82 WHEN 8 THEN - 97 * + - 35 + + - 12 + - 97 + ( ( - 92 ) - 1 ) WHEN + COUNT ( * ) THEN NULL END + - 82 AS col1
----
NULL

query I rowsort
SELECT 4 * + 54 * + - 63 col0
----
-13608

query I rowsort
SELECT DISTINCT 10 * - CASE 40 WHEN + + 42 THEN + 75 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT COUNT( 33 ) - + 20
----
-19

skipif mysql # not compatible
query I rowsort label-5706
SELECT COUNT ( 33 ) - + 20
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5707
SELECT CAST( + 24 AS SIGNED ) * - + 48
----
-1152

skipif mysql # not compatible
query I rowsort label-5707
SELECT CAST ( + 24 AS INTEGER ) * - + 48
----
-1152

query I rowsort
SELECT DISTINCT + ( - - 82 ) * 77 AS col0
----
6314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5709
SELECT ALL - - COUNT( ALL + - 39 ) - + CAST( + 1 AS SIGNED ) + 34 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL - - COUNT ( ALL + - 39 ) - + CAST ( + 1 AS INTEGER ) + 34 AS col2
----
34

query I rowsort
SELECT - 4 * + + ( + - 51 ) + - + 85
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5711
SELECT 70 * + - CAST( + - 77 AS SIGNED ) - - 18 - 14 col0
----
5394

skipif mysql # not compatible
query I rowsort label-5711
SELECT 70 * + - CAST ( + - 77 AS INTEGER ) - - 18 - 14 col0
----
5394

query I rowsort
SELECT 57 + + + 51
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT ALL - MIN( DISTINCT - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-5713
SELECT ALL - MIN ( DISTINCT - 43 )
----
43

query I rowsort
SELECT + 26 + 26 * 98
----
2574

query I rowsort
SELECT ( - 83 ) - - 18 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT 49 + + - 24 + + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-5716
SELECT 49 + + - 24 + + COUNT ( * )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5717
SELECT 7 DIV - 46 - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5717
SELECT 7 / - 46 - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5718
SELECT ALL - - 71 * ( + + COUNT( * ) ) + COUNT( - 31 ) AS col2, 11 * + - 3 * 80 + NULLIF ( 35, 58 ) AS col0
----
72
-2605

skipif mysql # not compatible
query II rowsort label-5718
SELECT ALL - - 71 * ( + + COUNT ( * ) ) + COUNT ( - 31 ) AS col2, 11 * + - 3 * 80 + NULLIF ( 35, 58 ) AS col0
----
72
-2605

query I rowsort
SELECT + - ( - 3 )
----
3

query I rowsort
SELECT DISTINCT - - 18 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5721
SELECT ALL + 32 + - CASE CAST( NULL AS SIGNED ) WHEN 87 + + 12 THEN NULL WHEN + 99 THEN 61 + + 87 WHEN - 9 THEN + 53 END + + 99 / + 60 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL + 32 + - CASE CAST ( NULL AS INTEGER ) WHEN 87 + + 12 THEN NULL WHEN + 99 THEN 61 + + 87 WHEN - 9 THEN + 53 END + + 99 / + 60 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5722
SELECT 26 + + - 54, COUNT( * ) AS col1
----
-28
1

skipif mysql # not compatible
query II rowsort label-5722
SELECT 26 + + - 54, COUNT ( * ) AS col1
----
-28
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT + ( - MIN( DISTINCT + - ( + 82 ) ) )
----
82

skipif mysql # not compatible
query I rowsort label-5723
SELECT + ( - MIN ( DISTINCT + - ( + 82 ) ) )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL - - 95 + - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL - - 95 + - COUNT ( * )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5725
SELECT + SUM( 36 ) * 25 + 82 DIV + + 91 * - - 53
----
900

skipif mysql # not compatible
query I rowsort label-5725
SELECT + SUM ( 36 ) * 25 + 82 / + + 91 * - - 53
----
900

query II rowsort
SELECT ALL + 77 + + - 2, 66 * - 34 AS col2
----
75
-2244

query I rowsort
SELECT 98 * - - 86 AS col0
----
8428

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT + 25 + - - 1 + + MAX( - COALESCE ( - ( + - 55 ), 90 ) ) * 8 AS col2
----
-414

skipif mysql # not compatible
query I rowsort label-5728
SELECT + 25 + - - 1 + + MAX ( - COALESCE ( - ( + - 55 ), 90 ) ) * 8 AS col2
----
-414

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT COUNT( - 87 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5729
SELECT COUNT ( - 87 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT COUNT( * ) * + 12 * + 73 + - 21
----
855

skipif mysql # not compatible
query I rowsort label-5730
SELECT COUNT ( * ) * + 12 * + 73 + - 21
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT DISTINCT + 67 * COUNT( * ) * - 55 AS col1
----
-3685

skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT + 67 * COUNT ( * ) * - 55 AS col1
----
-3685

onlyif mysql # aggregate syntax: 
query II rowsort label-5732
SELECT ALL + SUM( ALL + - 28 ) + 96 col0, 94 * + 87 * 7 col0
----
68
57246

skipif mysql # not compatible
query II rowsort label-5732
SELECT ALL + SUM ( ALL + - 28 ) + 96 col0, 94 * + 87 * 7 col0
----
68
57246

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT ALL 64 * MIN( DISTINCT - 69 )
----
-4416

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL 64 * MIN ( DISTINCT - 69 )
----
-4416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5734
SELECT ALL - NULLIF ( - CAST( NULL AS SIGNED ), + 30 + - 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL - NULLIF ( - CAST ( NULL AS INTEGER ), + 30 + - 23 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5735
SELECT 78 DIV COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5735
SELECT 78 / COUNT ( * ) AS col1
----
78

query I rowsort
SELECT 49 * + 70 AS col0
----
3430

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5737
SELECT 64 col2, COUNT( * ) * - 43 DIV 34 AS col2
----
64
-1

skipif mysql # not compatible
query II rowsort label-5737
SELECT 64 col2, COUNT ( * ) * - 43 / 34 AS col2
----
64
-1

query I rowsort
SELECT 65 + + - 2 + - 73 * 97 * 75
----
-531012

onlyif mysql # DIV for integer division: 
query I rowsort label-5739
SELECT 4 DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-5739
SELECT 4 / - 61
----
0

query I rowsort
SELECT 75 * + 39 AS col1
----
2925

query I rowsort
SELECT 10 + 35
----
45

query II rowsort
SELECT - 77 col2, - 9 AS col2
----
-77
-9

query II rowsort
SELECT 58, 75 AS col2
----
58
75

query I rowsort
SELECT 0 + 78 col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-5745
SELECT DISTINCT COUNT( * ), + CASE 2 WHEN CASE + 14 WHEN + 2 THEN + 18 * - 6 + - SUM( DISTINCT + 11 + 80 ) WHEN - AVG ( 10 ) THEN NULL ELSE NULL END + - 27 * 97 THEN NULL WHEN 17 / 43 THEN - 73 END col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5745
SELECT DISTINCT COUNT ( * ), + CASE 2 WHEN CASE + 14 WHEN + 2 THEN + 18 * - 6 + - SUM ( DISTINCT + 11 + 80 ) WHEN - AVG ( 10 ) THEN NULL ELSE NULL END + - 27 * 97 THEN NULL WHEN 17 / 43 THEN - 73 END col1
----
1
NULL

query I rowsort
SELECT ( - + 15 ) + - 98 AS col0
----
-113

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5747
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-5747
SELECT DISTINCT CAST ( NULL AS REAL ) * 10
----
NULL

query I rowsort
SELECT 85 * - 35 col1
----
-2975

query I rowsort
SELECT + COALESCE ( 60, 29, + 65 ) AS col0
----
60

query I rowsort
SELECT COALESCE ( + 96, - + 61 ) + - - 15 * - 46 + - 28 * + 18 AS col1
----
-1098

query I rowsort
SELECT ALL NULLIF ( - - 39, 83 + 64 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT MAX( DISTINCT - 69 ) * - + COUNT( * ) * - 79 AS col2
----
-5451

skipif mysql # not compatible
query I rowsort label-5752
SELECT MAX ( DISTINCT - 69 ) * - + COUNT ( * ) * - 79 AS col2
----
-5451

query I rowsort
SELECT ALL 7 + 30 - - 56 + 7
----
100

query I rowsort
SELECT DISTINCT + 3 + 46 AS col2
----
49

query II rowsort
SELECT 1 AS col2, 95 * - 21 AS col2
----
1
-1995

query I rowsort
SELECT + ( 57 ) * - 99
----
-5643

onlyif mysql # aggregate syntax: 
query II rowsort label-5757
SELECT + 94 AS col1, - COUNT( * )
----
94
-1

skipif mysql # not compatible
query II rowsort label-5757
SELECT + 94 AS col1, - COUNT ( * )
----
94
-1

query I rowsort
SELECT NULLIF ( + + 15, + 4 )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5759
SELECT + - 15 - + SUM( + COALESCE ( + CAST( NULL AS SIGNED ), + - 10 ) ) * 0 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-5759
SELECT + - 15 - + SUM ( + COALESCE ( + CAST ( NULL AS INTEGER ), + - 10 ) ) * 0 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT + SUM( - 61 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-5760
SELECT + SUM ( - 61 ) AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5761
SELECT + + 40 - - 89 + - 37 * - - 70 / + 9 * + CASE ( CAST( - ( ( + 77 ) ) AS SIGNED ) ) WHEN - 29 * 39 THEN + 67 * + 13 WHEN 65 * - COUNT( + 84 * + 73 ) + - MIN( ALL 86 + - 45 ) THEN NULL END * - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5761
SELECT + + 40 - - 89 + - 37 * - - 70 / + 9 * + CASE ( CAST ( - ( ( + 77 ) ) AS INTEGER ) ) WHEN - 29 * 39 THEN + 67 * + 13 WHEN 65 * - COUNT ( + 84 * + 73 ) + - MIN ( ALL 86 + - 45 ) THEN NULL END * - 78 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5762
SELECT ALL - COALESCE ( - 56, 93 / - 33 - MAX( ALL - + 51 ) ) * - 86 * - CASE WHEN NOT ( + 75 ) IN ( - ( 93 ) * + 94 + - COUNT( * ) ) THEN + 86 / NULLIF ( - 37 * 3, 62 * 73 ) - CAST( NULL AS SIGNED ) END * MIN( 87 + + 42 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL - COALESCE ( - 56, 93 / - 33 - MAX ( ALL - + 51 ) ) * - 86 * - CASE WHEN NOT ( + 75 ) IN ( - ( 93 ) * + 94 + - COUNT ( * ) ) THEN + 86 / NULLIF ( - 37 * 3, 62 * 73 ) - CAST ( NULL AS INTEGER ) END * MIN ( 87 + + 42 ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT + - 65 * + - ( + ( - 40 ) ) + 17 DIV - 65
----
-2600

skipif mysql # not compatible
query I rowsort label-5763
SELECT + - 65 * + - ( + ( - 40 ) ) + 17 / - 65
----
-2600

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT - COUNT( * ) * + - 65 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-5764
SELECT - COUNT ( * ) * + - 65 AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5765
SELECT DISTINCT + 37 * CAST( - - CASE - - 90 WHEN - MIN( ALL - 90 ) THEN + 99 WHEN + + 9 THEN NULL END AS SIGNED ) - - COUNT( * )
----
3664

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT + 37 * CAST ( - - CASE - - 90 WHEN - MIN ( ALL - 90 ) THEN + 99 WHEN + + 9 THEN NULL END AS INTEGER ) - - COUNT ( * )
----
3664

query II rowsort
SELECT ALL 25 * + - 1 * - - 44 - - + 85 AS col2, + 45 AS col2
----
-1015
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5767
SELECT - ( + - 19 ) - 88 DIV - - 59
----
18

skipif mysql # not compatible
query I rowsort label-5767
SELECT - ( + - 19 ) - 88 / - - 59
----
18

query I rowsort
SELECT ALL 35 * + 5 * 44 AS col2
----
7700

query I rowsort
SELECT NULLIF ( + 70, - - 56 + - AVG ( - 63 ) ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT COALESCE ( - SUM( - - ( - - 83 ) ), + + 44 )
----
-83

skipif mysql # not compatible
query I rowsort label-5770
SELECT COALESCE ( - SUM ( - - ( - - 83 ) ), + + 44 )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-5771
SELECT + 93 + - + 28 + 51 + - + 59 DIV - 81 + 2 DIV - 13
----
116

skipif mysql # not compatible
query I rowsort label-5771
SELECT + 93 + - + 28 + 51 + - + 59 / - 81 + 2 / - 13
----
116

query I rowsort
SELECT - 99 * + - 49
----
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT - CASE + 10 WHEN MIN( DISTINCT - 89 ) THEN + 62 ELSE NULL END + - 90 + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5773
SELECT - CASE + 10 WHEN MIN ( DISTINCT - 89 ) THEN + 62 ELSE NULL END + - 90 + + 96
----
NULL

query I rowsort
SELECT - ( + + 95 ) * + - 42 - - + 45 col0
----
4035

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT ALL + COALESCE ( + + COUNT( * ), - + 60 + - - 42 )
----
1

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL + COALESCE ( + + COUNT ( * ), - + 60 + - - 42 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5776
SELECT - CAST( NULL AS SIGNED ) * 77 + 63 * + - 41 * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5776
SELECT - CAST ( NULL AS INTEGER ) * 77 + 63 * + - 41 * + 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT ALL - MIN( ALL - 18 ) * + COUNT( * ) * + + 35 * + 26 * - 1 col2
----
-16380

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL - MIN ( ALL - 18 ) * + COUNT ( * ) * + + 35 * + 26 * - 1 col2
----
-16380

query I rowsort
SELECT DISTINCT 74 * - 19 - 63 + 15 - - 42 + + + 23 + + + 64 AS col2
----
-1325

query I rowsort
SELECT ALL 10 * - 90
----
-900

query I rowsort
SELECT ALL - 92 * 25 AS col0
----
-2300

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT DISTINCT CASE - + 35 WHEN - - MAX( ALL - 76 ) THEN + COALESCE ( + 72, - ( 69 ), + 68 ) + 78 * - COUNT( * ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5781
SELECT DISTINCT CASE - + 35 WHEN - - MAX ( ALL - 76 ) THEN + COALESCE ( + 72, - ( 69 ), + 68 ) + 78 * - COUNT ( * ) ELSE NULL END col2
----
NULL

query I rowsort
SELECT - 92 + + + 14 col2
----
-78

query I rowsort
SELECT ALL + 20 * - 56 AS col1
----
-1120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5784
SELECT - CAST( NULL AS SIGNED ) - + ( - - COUNT( * ) ) * 7 AS col2, + NULLIF ( - ( ( NULLIF ( + ( - COUNT( * ) ), - 37 * 61 ) ) ), - COUNT( * ) ) * - 27 AS col2
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-5784
SELECT - CAST ( NULL AS INTEGER ) - + ( - - COUNT ( * ) ) * 7 AS col2, + NULLIF ( - ( ( NULLIF ( + ( - COUNT ( * ) ), - 37 * 61 ) ) ), - COUNT ( * ) ) * - 27 AS col2
----
NULL
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-5785
SELECT + 85 DIV + 68
----
1

skipif mysql # not compatible
query I rowsort label-5785
SELECT + 85 / + 68
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5786
SELECT - COUNT( * ) * - + 99 AS col0, - 15 AS col0
----
99
-15

skipif mysql # not compatible
query II rowsort label-5786
SELECT - COUNT ( * ) * - + 99 AS col0, - 15 AS col0
----
99
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5787
SELECT - COUNT( * ) DIV - 26 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5787
SELECT - COUNT ( * ) / - 26 AS col1
----
0

query I rowsort
SELECT ALL 61 + - 80 + - 21
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5789
SELECT - - 79 - - ( - NULLIF ( - 18, + 96 ) ) DIV COALESCE ( + 42, + 8 DIV COUNT( 79 ) * 46 + 53, ( + 36 ), - AVG ( - 86 ) * 8 ) * - COUNT( * ) + - 17
----
62

skipif mysql # not compatible
query I rowsort label-5789
SELECT - - 79 - - ( - NULLIF ( - 18, + 96 ) ) / COALESCE ( + 42, + 8 / COUNT ( 79 ) * 46 + 53, ( + 36 ), - AVG ( - 86 ) * 8 ) * - COUNT ( * ) + - 17
----
62

query I rowsort
SELECT ALL + NULLIF ( 3, + 55 * + 82 - + 14 * - 45 ) + + 49 * - 85
----
-4162

query I rowsort
SELECT + + 4 - - - 76
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5792
SELECT DISTINCT - CAST( - + SUM( + + 77 ) AS SIGNED ) * - 17 + - 84
----
-1393

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT - CAST ( - + SUM ( + + 77 ) AS INTEGER ) * - 17 + - 84
----
-1393

onlyif mysql # aggregate syntax: 
query II rowsort label-5793
SELECT - + COUNT( * ) + + + 79 AS col0, 5
----
78
5

skipif mysql # not compatible
query II rowsort label-5793
SELECT - + COUNT ( * ) + + + 79 AS col0, 5
----
78
5

query II rowsort
SELECT ALL + 49 + + 54 AS col0, + ( + + 90 ) - + 46 - 60
----
103
-16

query I rowsort
SELECT - 11 + + 66 + + 16 AS col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-5796
SELECT + 24 + 18 + + COUNT( * ) * + + COUNT( * ) AS col1, + CASE 23 WHEN - 31 * 61 * + 21 - + 41 THEN + 61 - + 42 WHEN - 49 THEN NULL ELSE NULL END * 9 + - 98 AS col1
----
43
NULL

skipif mysql # not compatible
query II rowsort label-5796
SELECT + 24 + 18 + + COUNT ( * ) * + + COUNT ( * ) AS col1, + CASE 23 WHEN - 31 * 61 * + 21 - + 41 THEN + 61 - + 42 WHEN - 49 THEN NULL ELSE NULL END * 9 + - 98 AS col1
----
43
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5797
SELECT 89 DIV 92 + - 95 * 29 * - COUNT( * ) - - + 56 AS col2
----
2811

skipif mysql # not compatible
query I rowsort label-5797
SELECT 89 / 92 + - 95 * 29 * - COUNT ( * ) - - + 56 AS col2
----
2811

query I rowsort
SELECT + + 43 * - 84 - - 9 * - 1 + - 11 + - 30 AS col0
----
-3662

query I rowsort
SELECT 28 * + 8 * - 67 + + - NULLIF ( - 92, - 49 )
----
-14916

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5800
SELECT ALL - + 24 DIV - MAX( ALL 4 )
----
6

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL - + 24 / - MAX ( ALL 4 )
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5801
SELECT + CAST( NULL AS DECIMAL ) + - 56 * 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5801
SELECT + CAST ( NULL AS REAL ) + - 56 * 98 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5802
SELECT + CAST( + + 9 AS SIGNED ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-5802
SELECT + CAST ( + + 9 AS INTEGER ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT + MIN( 95 ) / - + 0 * + CASE - - COUNT( + 54 ) WHEN + 27 * + ( - - 48 ) - - 45 THEN COUNT( * ) * + 21 ELSE NULL END * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT + MIN ( 95 ) / - + 0 * + CASE - - COUNT ( + 54 ) WHEN + 27 * + ( - - 48 ) - - 45 THEN COUNT ( * ) * + 21 ELSE NULL END * 41
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5804
SELECT - CASE + 48 WHEN - 56 * - 42 + + 44 * - ( - + 23 ) + + 1 THEN - - AVG ( ALL - 94 ) ELSE + 93 END DIV 66
----
-1

skipif mysql # not compatible
query I rowsort label-5804
SELECT - CASE + 48 WHEN - 56 * - 42 + + 44 * - ( - + 23 ) + + 1 THEN - - AVG ( ALL - 94 ) ELSE + 93 END / 66
----
-1

query I rowsort
SELECT 60 * - 25 + 6 * 49
----
-1206

query I rowsort
SELECT DISTINCT 40 * - - 50
----
2000

onlyif mysql # DIV for integer division: 
query I rowsort label-5807
SELECT ALL 52 DIV - - 10
----
5

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL 52 / - - 10
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT + CASE - AVG ( 69 ) WHEN ( - 81 ) THEN 49 + - - 17 END / COUNT( * ) * + ( MIN( - 41 ) ) * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5808
SELECT + CASE - AVG ( 69 ) WHEN ( - 81 ) THEN 49 + - - 17 END / COUNT ( * ) * + ( MIN ( - 41 ) ) * 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT DISTINCT + SUM( DISTINCT + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT + SUM ( DISTINCT + 53 )
----
53

query I rowsort
SELECT ALL 45 * + 73 * - - 77 * - + 26
----
-6576570

query I rowsort
SELECT - 33 + 31
----
-2

query I rowsort
SELECT - 9 * + 42
----
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT ALL + COUNT( * ) * - 13 + + + 55 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL + COUNT ( * ) * - 13 + + + 55 AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5814
SELECT + CAST( + 37 AS SIGNED ) - 59 * - + SUM( NULLIF ( + + 18, + + 54 ) ) * 29 + - + COALESCE ( - 30, + COUNT( * ) * + CAST( NULL AS SIGNED ), - 80 + - 28 ) + - ( 8 )
----
30857

skipif mysql # not compatible
query I rowsort label-5814
SELECT + CAST ( + 37 AS INTEGER ) - 59 * - + SUM ( NULLIF ( + + 18, + + 54 ) ) * 29 + - + COALESCE ( - 30, + COUNT ( * ) * + CAST ( NULL AS INTEGER ), - 80 + - 28 ) + - ( 8 )
----
30857

query I rowsort
SELECT COALESCE ( - 35, - 62, 64 * + + 28 )
----
-35

query I rowsort
SELECT 34 * + ( 14 ) - + + 8
----
468

query I rowsort
SELECT NULLIF ( + + 10, - 14 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5818
SELECT - 79 + + + CAST( + + 12 AS SIGNED ) * + 82 col2
----
905

skipif mysql # not compatible
query I rowsort label-5818
SELECT - 79 + + + CAST ( + + 12 AS INTEGER ) * + 82 col2
----
905

query I rowsort
SELECT ALL + + 64 + + 33 + + 59 AS col2
----
156

query I rowsort
SELECT ALL - - 1 + ( - 87 ) - - + 68
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-5821
SELECT MAX( ALL - - 1 ) - 45 AS col2, COUNT( * )
----
-44
1

skipif mysql # not compatible
query II rowsort label-5821
SELECT MAX ( ALL - - 1 ) - 45 AS col2, COUNT ( * )
----
-44
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT ALL CASE WHEN NOT ( NULL ) IS NULL THEN 9 ELSE + + NULLIF ( - 94, - + COUNT( * ) + + - NULLIF ( 95, + 64 * - ( 24 + 74 ) ) ) END AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL CASE WHEN NOT ( NULL ) IS NULL THEN 9 ELSE + + NULLIF ( - 94, - + COUNT ( * ) + + - NULLIF ( 95, + 64 * - ( 24 + 74 ) ) ) END AS col0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-5823
SELECT ALL - + 72 + + 13 + COUNT( * ) * - 77 * + 14, 44 + - - 21 - 3 + 5 AS col1
----
-1137
67

skipif mysql # not compatible
query II rowsort label-5823
SELECT ALL - + 72 + + 13 + COUNT ( * ) * - 77 * + 14, 44 + - - 21 - 3 + 5 AS col1
----
-1137
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5824
SELECT - 65 + - 52 - 91 DIV ( + 88 ) * - COUNT( * ) * - 99
----
-216

skipif mysql # not compatible
query I rowsort label-5824
SELECT - 65 + - 52 - 91 / ( + 88 ) * - COUNT ( * ) * - 99
----
-216

query I rowsort
SELECT 4 * - ( + + 86 ) - - - 93
----
-437

query I rowsort
SELECT 63 * - 91
----
-5733

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT DISTINCT CASE + - 59 WHEN - NULLIF ( - + COUNT( ALL 54 ), + 93 ) * + COUNT( * ) + 5 THEN 87 / ( + 72 ) * + COUNT( * ) - NULLIF ( 20, 38 * 71 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT CASE + - 59 WHEN - NULLIF ( - + COUNT ( ALL 54 ), + 93 ) * + COUNT ( * ) + 5 THEN 87 / ( + 72 ) * + COUNT ( * ) - NULLIF ( 20, 38 * 71 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5828
SELECT - COALESCE ( 65, - 22 DIV - + MIN( DISTINCT 25 ), - 90, - 33 * COALESCE ( - + COUNT( + 85 ), + 56 ) * - 20 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-5828
SELECT - COALESCE ( 65, - 22 / - + MIN ( DISTINCT 25 ), - 90, - 33 * COALESCE ( - + COUNT ( + 85 ), + 56 ) * - 20 ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT + 45 * + MAX( - 66 ) * - + SUM( + NULLIF ( - - ( + 90 ), 2 ) ) + - NULLIF ( 82, + SUM( ALL + ( - 47 ) ) ) * 57 - COUNT( * ) AS col2
----
262625

skipif mysql # not compatible
query I rowsort label-5829
SELECT + 45 * + MAX ( - 66 ) * - + SUM ( + NULLIF ( - - ( + 90 ), 2 ) ) + - NULLIF ( 82, + SUM ( ALL + ( - 47 ) ) ) * 57 - COUNT ( * ) AS col2
----
262625

query II rowsort
SELECT ALL 69 AS col0, 78 * + + 50
----
69
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT ALL - 88 * - COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL - 88 * - COUNT ( * ) AS col1
----
88

query I rowsort
SELECT - ( + + 48 ) AS col0
----
-48

query I rowsort
SELECT - 11 * + - 6
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5834
SELECT COUNT( 82 ) - - + ( + NULLIF ( + 46, - 31 + 51 ) ) + - 86 DIV + 94 - - 79 + + - COALESCE ( 33, + 19 + - COUNT( * ) ) + ( + COUNT( * ) ) * - NULLIF ( + 11 DIV COUNT( * ) + - MAX( 92 ), + 51 - - 45 ) * + 93 AS col0
----
7626

skipif mysql # not compatible
query I rowsort label-5834
SELECT COUNT ( 82 ) - - + ( + NULLIF ( + 46, - 31 + 51 ) ) + - 86 / + 94 - - 79 + + - COALESCE ( 33, + 19 + - COUNT ( * ) ) + ( + COUNT ( * ) ) * - NULLIF ( + 11 / COUNT ( * ) + - MAX ( 92 ), + 51 - - 45 ) * + 93 AS col0
----
7626

query II rowsort
SELECT 80 AS col0, - 86 col0
----
80
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT 75 * + ( - MAX( 49 ) )
----
-3675

skipif mysql # not compatible
query I rowsort label-5836
SELECT 75 * + ( - MAX ( 49 ) )
----
-3675

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT MAX( - 28 ) * - 13
----
364

skipif mysql # not compatible
query I rowsort label-5837
SELECT MAX ( - 28 ) * - 13
----
364

onlyif mysql # DIV for integer division: 
query I rowsort label-5838
SELECT + 85 DIV - 75 - 4 * - 76 * - 32
----
-9729

skipif mysql # not compatible
query I rowsort label-5838
SELECT + 85 / - 75 - 4 * - 76 * - 32
----
-9729

query I rowsort
SELECT ALL 46 * + 78 AS col2
----
3588

onlyif mysql # aggregate syntax: 
query II rowsort label-5840
SELECT ALL CASE + 81 WHEN - ( + + 50 ) THEN 33 END + + COUNT( DISTINCT - 93 ) AS col0, 94
----
NULL
94

skipif mysql # not compatible
query II rowsort label-5840
SELECT ALL CASE + 81 WHEN - ( + + 50 ) THEN 33 END + + COUNT ( DISTINCT - 93 ) AS col0, 94
----
NULL
94

query I rowsort
SELECT - 97 * - 80 - + 53 + - 39 AS col1
----
7668

query II rowsort
SELECT ALL - 48 AS col0, + 29 * + CASE COALESCE ( - 55, - 49 ) WHEN 78 / + 7 THEN NULL ELSE 82 END
----
-48
2378

query I rowsort
SELECT 93 + + 38 * + 55 AS col2
----
2183

query II rowsort
SELECT + 29, + 34 AS col1
----
29
34

query II rowsort
SELECT ALL - 64 AS col2, 5 AS col1
----
-64
5

query II rowsort
SELECT + 30, + 57 + + 35 AS col2
----
30
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT COALESCE ( 43, + 31, - + 86 ) + + COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-5847
SELECT COALESCE ( 43, + 31, - + 86 ) + + COUNT ( * ) AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5848
SELECT 74 AS col2, - CAST( NULL AS SIGNED ) AS col2
----
74
NULL

skipif mysql # not compatible
query II rowsort label-5848
SELECT 74 AS col2, - CAST ( NULL AS INTEGER ) AS col2
----
74
NULL

query I rowsort
SELECT DISTINCT ( + 65 ) + + 35 + + 84 AS col0
----
184

query I rowsort
SELECT ALL + 2 + - + 14 + - 91
----
-103

query I rowsort
SELECT + 4 * + - 43
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT DISTINCT + ( - CASE - - COUNT( * ) WHEN - - COUNT( * ) THEN + 19 + - - 44 + 39 * - ( + - 2 ) * CASE + 1 WHEN + 28 * - 58 THEN + 43 END END ) + - ( + 67 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT + ( - CASE - - COUNT ( * ) WHEN - - COUNT ( * ) THEN + 19 + - - 44 + 39 * - ( + - 2 ) * CASE + 1 WHEN + 28 * - 58 THEN + 43 END END ) + - ( + 67 ) col0
----
NULL

query I rowsort
SELECT 62 + - - 91 + - 26
----
127

query I rowsort
SELECT ALL 96 + - - 17
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT ALL COUNT( * ) + + + 52 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL COUNT ( * ) + + + 52 AS col1
----
53

query I rowsort
SELECT + 79 + + 12 AS col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5857
SELECT 41 * - + 40 - - COALESCE ( + 27, + - COUNT( * ) DIV + 19 * - COUNT( * ) DIV - 14, COALESCE ( - - COUNT( * ), - + 66 ) * 61 - + 51 )
----
-1613

skipif mysql # not compatible
query I rowsort label-5857
SELECT 41 * - + 40 - - COALESCE ( + 27, + - COUNT ( * ) / + 19 * - COUNT ( * ) / - 14, COALESCE ( - - COUNT ( * ), - + 66 ) * 61 - + 51 )
----
-1613

query I rowsort
SELECT + 62 * 63
----
3906

query I rowsort
SELECT ALL - 41 - - 1 * - + 92 AS col2
----
-133

onlyif mysql # DIV for integer division: 
query II rowsort label-5860
SELECT DISTINCT + 39 DIV - 94 AS col0, - NULLIF ( + 14, 32 * - 73 - - ( + 78 ) - + - 8 ) + 11 AS col2
----
0
-3

skipif mysql # not compatible
query II rowsort label-5860
SELECT DISTINCT + 39 / - 94 AS col0, - NULLIF ( + 14, 32 * - 73 - - ( + 78 ) - + - 8 ) + 11 AS col2
----
0
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5861
SELECT 87 + - + COUNT( DISTINCT - CAST( - - ( - 46 ) AS SIGNED ) )
----
86

skipif mysql # not compatible
query I rowsort label-5861
SELECT 87 + - + COUNT ( DISTINCT - CAST ( - - ( - 46 ) AS INTEGER ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT ALL + 6 * + COALESCE ( ( - 35 ), + - COUNT( * ) + - 24, - + CASE 55 WHEN COALESCE ( + COUNT( - 26 ), - COUNT( * ) * 98 ) * - 6 THEN + COUNT( * ) ELSE NULL END, - 62 ) * 33 col2
----
-6930

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL + 6 * + COALESCE ( ( - 35 ), + - COUNT ( * ) + - 24, - + CASE 55 WHEN COALESCE ( + COUNT ( - 26 ), - COUNT ( * ) * 98 ) * - 6 THEN + COUNT ( * ) ELSE NULL END, - 62 ) * 33 col2
----
-6930

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5863
SELECT - - 90, + CAST( NULL AS SIGNED ) AS col1
----
90
NULL

skipif mysql # not compatible
query II rowsort label-5863
SELECT - - 90, + CAST ( NULL AS INTEGER ) AS col1
----
90
NULL

query I rowsort
SELECT + 9 + + - 31 - - 96
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT - SUM( ALL NULLIF ( - 73, ( - - 81 ) ) )
----
73

skipif mysql # not compatible
query I rowsort label-5865
SELECT - SUM ( ALL NULLIF ( - 73, ( - - 81 ) ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT COUNT( DISTINCT + 68 ) * + 24 + - + 97 - - 67 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-5866
SELECT COUNT ( DISTINCT + 68 ) * + 24 + - + 97 - - 67 AS col0
----
-6

query I rowsort
SELECT 68 + - + ( 86 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT COALESCE ( ( + + ( - 66 ) ), 9, - 69 - 26 * + + ( - COUNT( - 58 ) ) ) - - - 36 * 56 AS col0
----
-2082

skipif mysql # not compatible
query I rowsort label-5868
SELECT COALESCE ( ( + + ( - 66 ) ), 9, - 69 - 26 * + + ( - COUNT ( - 58 ) ) ) - - - 36 * 56 AS col0
----
-2082

query I rowsort
SELECT 78 + + + COALESCE ( + - 74, - - 49 * 13 ) col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5870
SELECT DISTINCT COUNT( ALL + - 84 ) * + 34 + - SUM( DISTINCT + + 65 ) + + CAST( NULL AS DECIMAL ) * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT COUNT ( ALL + - 84 ) * + 34 + - SUM ( DISTINCT + + 65 ) + + CAST ( NULL AS REAL ) * + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT COUNT( * ) * + 1 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5871
SELECT COUNT ( * ) * + 1 AS col0
----
1

query I rowsort
SELECT 13 + + - 32 * + 21 AS col2
----
-659

onlyif mysql # aggregate syntax: 
query II rowsort label-5873
SELECT COUNT( * ) + COUNT( * ) AS col2, MIN( ( - 87 ) )
----
2
-87

skipif mysql # not compatible
query II rowsort label-5873
SELECT COUNT ( * ) + COUNT ( * ) AS col2, MIN ( ( - 87 ) )
----
2
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5874
SELECT - 92 * - COUNT( * ) / + - 38 * - 9 / COUNT( * ) + + CAST( CASE + 92 WHEN 97 / + - COUNT( * ) + - 63 * - 28 THEN 38 END AS SIGNED ) * 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5874
SELECT - 92 * - COUNT ( * ) / + - 38 * - 9 / COUNT ( * ) + + CAST ( CASE + 92 WHEN 97 / + - COUNT ( * ) + - 63 * - 28 THEN 38 END AS INTEGER ) * 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT 34 * + 67 + + COUNT( * ) * + 68 AS col1
----
2346

skipif mysql # not compatible
query I rowsort label-5875
SELECT 34 * + 67 + + COUNT ( * ) * + 68 AS col1
----
2346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5876
SELECT DISTINCT + 33 * - + 31 * - - CAST( COUNT( * ) AS SIGNED ) + ( - + 34 ) + - + ( + 58 ) * 85
----
-5987

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT + 33 * - + 31 * - - CAST ( COUNT ( * ) AS INTEGER ) + ( - + 34 ) + - + ( + 58 ) * 85
----
-5987

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT MAX( - + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-5877
SELECT MAX ( - + 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT DISTINCT + ( COUNT( * ) ) * 51 + 36
----
87

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT + ( COUNT ( * ) ) * 51 + 36
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT - - 96 * + + COUNT( * ) + + ( 39 ) + COUNT( * ) AS col2
----
136

skipif mysql # not compatible
query I rowsort label-5879
SELECT - - 96 * + + COUNT ( * ) + + ( 39 ) + COUNT ( * ) AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT ALL 85 - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL 85 - COUNT ( * )
----
84

query I rowsort
SELECT + + ( 45 ) + - ( + + ( - + 35 ) ) + + 5 * - + 11 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT + + 73 - + - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-5882
SELECT + + 73 - + - COUNT ( * )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5883
SELECT ALL - 62 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL - 62 / + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT + 47 + - COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-5884
SELECT + 47 + - COUNT ( * ) AS col2
----
46

query I rowsort
SELECT - NULLIF ( - 3, + 13 * + 82 + - 58 ) AS col0
----
3

query I rowsort
SELECT - + ( - 27 )
----
27

query I rowsort
SELECT + 4 * + 5 AS col0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5888
SELECT ALL 74 DIV COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL 74 / COUNT ( * )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5889
SELECT + 9 * - + 93 * NULLIF ( + 79, - + 91 ) + 62 DIV - 34 * - + COUNT( * )
----
-66122

skipif mysql # not compatible
query I rowsort label-5889
SELECT + 9 * - + 93 * NULLIF ( + 79, - + 91 ) + 62 / - 34 * - + COUNT ( * )
----
-66122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5890
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), 0 / + 25 * + 43 * - 74 ) * + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5890
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), 0 / + 25 * + 43 * - 74 ) * + 94 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT ALL SUM( ALL 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL SUM ( ALL 64 ) AS col1
----
64

query I rowsort
SELECT + 27 + - 33
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-5893
SELECT ALL 14 * + COUNT( * ) * 37 AS col0, 50
----
518
50

skipif mysql # not compatible
query II rowsort label-5893
SELECT ALL 14 * + COUNT ( * ) * 37 AS col0, 50
----
518
50

query I rowsort
SELECT - - 66 * ( + 78 )
----
5148

query I rowsort
SELECT + COALESCE ( + + 67, 69 )
----
67

query I rowsort
SELECT - - 49 + - + COALESCE ( + + 58, + - 97 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5897
SELECT ALL MIN( DISTINCT CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - ( + - 45 ), - + 82, + - 94 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT ALL 29 + + - CASE + COUNT( * ) WHEN - 10 - NULLIF ( 35, 58 ) + 53 * + 22 THEN NULL WHEN 43 * - 54 THEN + 93 ELSE - 60 END
----
89

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL 29 + + - CASE + COUNT ( * ) WHEN - 10 - NULLIF ( 35, 58 ) + 53 * + 22 THEN NULL WHEN 43 * - 54 THEN + 93 ELSE - 60 END
----
89

query I rowsort
SELECT ALL - 37 + + 33
----
-4

query I rowsort
SELECT - 17 * 56 AS col2
----
-952

onlyif mysql # DIV for integer division: 
query I rowsort label-5902
SELECT + 76 DIV 57 - - 91 DIV + + 74 col2
----
2

skipif mysql # not compatible
query I rowsort label-5902
SELECT + 76 / 57 - - 91 / + + 74 col2
----
2

query I rowsort
SELECT + 81 - + 40 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT DISTINCT COUNT( + + 95 ) * - 86 * - - MIN( DISTINCT + 10 )
----
-860

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT COUNT ( + + 95 ) * - 86 * - - MIN ( DISTINCT + 10 )
----
-860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5905
SELECT ALL - 6 * + + 68 + - CAST( NULL AS SIGNED ) + - + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL - 6 * + + 68 + - CAST ( NULL AS INTEGER ) + - + 67
----
NULL

query I rowsort
SELECT - 51 * - - 3
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ALL - 45 * - - COALESCE ( - COUNT( * ), 80 ) + + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL - 45 * - - COALESCE ( - COUNT ( * ), 80 ) + + COUNT ( * )
----
46

query I rowsort
SELECT ALL 97 * - + 44 col2
----
-4268

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5909
SELECT - ( - ( + 34 ) ) * + CAST( NULL AS DECIMAL ) * - 65 + + 65 * 69 - ( + 0 ) + + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT - ( - ( + 34 ) ) * + CAST ( NULL AS REAL ) * - 65 + + 65 * 69 - ( + 0 ) + + 34 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5910
SELECT - 91 * + CAST( - 29 AS SIGNED ) AS col0
----
2639

skipif mysql # not compatible
query I rowsort label-5910
SELECT - 91 * + CAST ( - 29 AS INTEGER ) AS col0
----
2639

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5911
SELECT - - COUNT( * ) + 34 DIV - + 2
----
-16

skipif mysql # not compatible
query I rowsort label-5911
SELECT - - COUNT ( * ) + 34 / - + 2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT + - NULLIF ( + 42, 88 * 64 + - + COUNT( * ) )
----
-42

skipif mysql # not compatible
query I rowsort label-5912
SELECT + - NULLIF ( + 42, 88 * 64 + - + COUNT ( * ) )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT DISTINCT - + COUNT( * ) * 77
----
-77

skipif mysql # not compatible
query I rowsort label-5913
SELECT DISTINCT - + COUNT ( * ) * 77
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5914
SELECT - + 27 + + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5914
SELECT - + 27 + + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5915
SELECT + 36 - 47 + + 74 + - - 38 - + 51 DIV - 33 + - - 29 AS col0
----
131

skipif mysql # not compatible
query I rowsort label-5915
SELECT + 36 - 47 + + 74 + - - 38 - + 51 / - 33 + - - 29 AS col0
----
131

query I rowsort
SELECT DISTINCT + + ( 46 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT DISTINCT - MAX( + 37 ) * ( 57 )
----
-2109

skipif mysql # not compatible
query I rowsort label-5917
SELECT DISTINCT - MAX ( + 37 ) * ( 57 )
----
-2109

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT + 2 * - 13 + ( + + COALESCE ( 7, + - 28 * + 67 + 95 + + - 1, + 49 + - COUNT( * ) + + - 44 + 46, + 23 ) ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-5918
SELECT + 2 * - 13 + ( + + COALESCE ( 7, + - 28 * + 67 + 95 + + - 1, + 49 + - COUNT ( * ) + + - 44 + 46, + 23 ) ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-5919
SELECT DISTINCT - - SUM( + - 3 ) * + COUNT( * ) AS col2, + 98 AS col0
----
-3
98

skipif mysql # not compatible
query II rowsort label-5919
SELECT DISTINCT - - SUM ( + - 3 ) * + COUNT ( * ) AS col2, + 98 AS col0
----
-3
98

query I rowsort
SELECT - NULLIF ( - 31, - 20 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5921
SELECT - 64 + COUNT( * ) + + - CAST( NULL AS SIGNED ) + - 65 * - + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5921
SELECT - 64 + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) + - 65 * - + 43 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5922
SELECT - - 0 DIV 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5922
SELECT - - 0 / 20 AS col0
----
0

query I rowsort
SELECT + + 95 * 38
----
3610

query II rowsort
SELECT - 93, 89 AS col2
----
-93
89

query I rowsort
SELECT + 91 + - 86 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5926
SELECT DISTINCT - CASE WHEN - COUNT( * ) IS NOT NULL THEN + 1 * - + COUNT( * ) + 96 + ( - COUNT( * ) ) / CAST( NULL AS SIGNED ) - - 40 + + 15 / 95 + + 22 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT - CASE WHEN - COUNT ( * ) IS NOT NULL THEN + 1 * - + COUNT ( * ) + 96 + ( - COUNT ( * ) ) / CAST ( NULL AS INTEGER ) - - 40 + + 15 / 95 + + 22 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - + 6 + + 17
----
11

query I rowsort
SELECT + - 18 - - - 33
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT DISTINCT 88 + + - MAX( DISTINCT 18 ) - + 97
----
-27

skipif mysql # not compatible
query I rowsort label-5929
SELECT DISTINCT 88 + + - MAX ( DISTINCT 18 ) - + 97
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5930
SELECT ALL COUNT( * ) + CAST( 51 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL COUNT ( * ) + CAST ( 51 AS INTEGER )
----
52

query I rowsort
SELECT ALL 23 + 32
----
55

query I rowsort
SELECT ALL 82 * + 19
----
1558

query I rowsort
SELECT - COALESCE ( + + 24, + + 45 ) AS col2
----
-24

query I rowsort
SELECT + 93 + - + 42 + - - 61 - - 0 + + - 31 * 11 AS col0
----
-229

query I rowsort
SELECT DISTINCT 17 * - + 8 AS col0
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT - 87 - + COUNT( * ) col0
----
-88

skipif mysql # not compatible
query I rowsort label-5936
SELECT - 87 - + COUNT ( * ) col0
----
-88

query I rowsort
SELECT + 57 + + + 3
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT ALL COALESCE ( - + 80, + 19 * - COALESCE ( COALESCE ( - 72, MIN( + COALESCE ( - ( - 17 ), + 62 * + 82 ) ), - 82 * + - 67 + + 15 ), - 93 ) + 24 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL COALESCE ( - + 80, + 19 * - COALESCE ( COALESCE ( - 72, MIN ( + COALESCE ( - ( - 17 ), + 62 * + 82 ) ), - 82 * + - 67 + + 15 ), - 93 ) + 24 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT DISTINCT CASE 52 WHEN - - 28 THEN + 2 + + NULLIF ( + 95, COUNT( * ) ) ELSE NULL END - + 25 + ( 71 ) / + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT CASE 52 WHEN - - 28 THEN + 2 + + NULLIF ( + 95, COUNT ( * ) ) ELSE NULL END - + 25 + ( 71 ) / + 47
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5940
SELECT - 71 DIV + 54 + + COALESCE ( - + 2, - 35 * + - CAST( - 16 AS SIGNED ) ) AS col0, 35 AS col0
----
-3
35

skipif mysql # not compatible
query II rowsort label-5940
SELECT - 71 / + 54 + + COALESCE ( - + 2, - 35 * + - CAST ( - 16 AS INTEGER ) ) AS col0, 35 AS col0
----
-3
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5941
SELECT ALL ( + SUM( + CAST( NULL AS DECIMAL ) ) ) - - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL ( + SUM ( + CAST ( NULL AS REAL ) ) ) - - 70 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT COUNT( * ) * + 11
----
11

skipif mysql # not compatible
query I rowsort label-5942
SELECT COUNT ( * ) * + 11
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-5943
SELECT ALL - 98 * + 28 * - NULLIF ( - - ( 33 ), - 87 + 6 - + 63 - - + 55 * + 11 * - COUNT( * ) * - COUNT( * ) ) col2, + COUNT( * ) + + 35 * 0 AS col0
----
90552
1

skipif mysql # not compatible
query II rowsort label-5943
SELECT ALL - 98 * + 28 * - NULLIF ( - - ( 33 ), - 87 + 6 - + 63 - - + 55 * + 11 * - COUNT ( * ) * - COUNT ( * ) ) col2, + COUNT ( * ) + + 35 * 0 AS col0
----
90552
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT DISTINCT - COUNT( + 64 )
----
-1

skipif mysql # not compatible
query I rowsort label-5944
SELECT DISTINCT - COUNT ( + 64 )
----
-1

query I rowsort
SELECT ALL + 34 * - 53 + 16 AS col0
----
-1786

query I rowsort
SELECT ALL 33 * + + 7 AS col0
----
231

query I rowsort
SELECT - 95 + + - 79 AS col0
----
-174

query I rowsort
SELECT DISTINCT + 63 * 41 col2
----
2583

query I rowsort
SELECT + 39 * + 68 AS col1
----
2652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5950
SELECT + 54 * + CAST( - 38 AS SIGNED ) * - NULLIF ( 73, + COUNT( * ) + - 6 ) - + - ( - - CASE 90 WHEN + 28 THEN + + 87 WHEN 20 * + 47 + + COUNT( * ) + 61 THEN NULL END ) + COALESCE ( - 97 + 44 * SUM( + 44 * - 22 ), 36 ) * ( 9 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5950
SELECT + 54 * + CAST ( - 38 AS INTEGER ) * - NULLIF ( 73, + COUNT ( * ) + - 6 ) - + - ( - - CASE 90 WHEN + 28 THEN + + 87 WHEN 20 * + 47 + + COUNT ( * ) + 61 THEN NULL END ) + COALESCE ( - 97 + 44 * SUM ( + 44 * - 22 ), 36 ) * ( 9 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT SUM( - 40 ) * - 46 + + 48 * + + 69 + - - 88
----
5240

skipif mysql # not compatible
query I rowsort label-5951
SELECT SUM ( - 40 ) * - 46 + + 48 * + + 69 + - - 88
----
5240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5952
SELECT NULLIF ( + MIN( DISTINCT - + 63 ), - 30 + + + CAST( 88 AS DECIMAL ) ) + ( - 70 ) + - 62 AS col1, + COUNT( DISTINCT - 19 ) * + 47 - + CAST( COUNT( * ) AS SIGNED ) AS col0
----
-195
46

skipif mysql # not compatible
query II rowsort label-5952
SELECT NULLIF ( + MIN ( DISTINCT - + 63 ), - 30 + + + CAST ( 88 AS REAL ) ) + ( - 70 ) + - 62 AS col1, + COUNT ( DISTINCT - 19 ) * + 47 - + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-195
46

query II rowsort
SELECT DISTINCT - 27 + 91, + 53 AS col2
----
64
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5954
SELECT ALL + SUM( ALL - 87 ) + 95 + - CAST( - 60 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL + SUM ( ALL - 87 ) + 95 + - CAST ( - 60 AS INTEGER )
----
68

query I rowsort
SELECT DISTINCT - + 4 + + 28 + + 81 + - 98 + 3 * - + 54
----
-155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5956
SELECT ALL - 78 + + 14 + + SUM( DISTINCT 25 ) - - + CASE AVG ( 14 ) WHEN + - 75 + - ( + - 91 ) THEN NULL WHEN - 80 * - 1 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN + 82 / + 7 END * - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL - 78 + + 14 + + SUM ( DISTINCT 25 ) - - + CASE AVG ( 14 ) WHEN + - 75 + - ( + - 91 ) THEN NULL WHEN - 80 * - 1 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN + 82 / + 7 END * - 81
----
NULL

query II rowsort
SELECT 96 + - 80, - 50 * - + 59 AS col0
----
16
2950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5958
SELECT DISTINCT - MIN( DISTINCT - 0 ) + + + 45 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT - MIN ( DISTINCT - 0 ) + + + 45 / - 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT 42 + - MAX( + 28 )
----
14

skipif mysql # not compatible
query I rowsort label-5959
SELECT 42 + - MAX ( + 28 )
----
14

query II rowsort
SELECT 24, + 48 AS col1
----
24
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5961
SELECT 13 DIV + 78 * + 4 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5961
SELECT 13 / + 78 * + 4 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT 84 * - COALESCE ( + 60, - - 3, - + COUNT( * ) ) * - 23 AS col0
----
115920

skipif mysql # not compatible
query I rowsort label-5962
SELECT 84 * - COALESCE ( + 60, - - 3, - + COUNT ( * ) ) * - 23 AS col0
----
115920

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5963
SELECT ALL 1 col0, + COALESCE ( - + 6, + COUNT( * ) * + 38, - ( - + 66 ) + - 55, - - 60 ) * + 53 / 26 * + - 25 + + 18 - + 29 * CAST( NULL AS DECIMAL ) - 41 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5963
SELECT ALL 1 col0, + COALESCE ( - + 6, + COUNT ( * ) * + 38, - ( - + 66 ) + - 55, - - 60 ) * + 53 / 26 * + - 25 + + 18 - + 29 * CAST ( NULL AS REAL ) - 41 AS col2
----
1
NULL

query II rowsort
SELECT 38, + 93 * ( 71 ) AS col1
----
38
6603

query I rowsort
SELECT 29 + - 53
----
-24

query II rowsort
SELECT ALL 10 AS col1, + 38
----
10
38

onlyif mysql # aggregate syntax: 
query II rowsort label-5967
SELECT DISTINCT + NULLIF ( - 37, + ( + 45 ) + + 30 * + 99 ) - + COUNT( * ) * - 45 AS col1, COUNT( * )
----
8
1

skipif mysql # not compatible
query II rowsort label-5967
SELECT DISTINCT + NULLIF ( - 37, + ( + 45 ) + + 30 * + 99 ) - + COUNT ( * ) * - 45 AS col1, COUNT ( * )
----
8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT COUNT( * ) * 84 col0
----
84

skipif mysql # not compatible
query I rowsort label-5968
SELECT COUNT ( * ) * 84 col0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5969
SELECT ALL NULLIF ( + + 48, - 37 ) * 87 DIV - 11 + - 82 + - 42 * + ( + 2 ) AS col0
----
-545

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL NULLIF ( + + 48, - 37 ) * 87 / - 11 + - 82 + - 42 * + ( + 2 ) AS col0
----
-545

query I rowsort
SELECT DISTINCT 57 - 19
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5971
SELECT 9 * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5971
SELECT 9 * - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5972
SELECT - COUNT( * ) DIV - 11 - - - 65 + - 29
----
-94

skipif mysql # not compatible
query I rowsort label-5972
SELECT - COUNT ( * ) / - 11 - - - 65 + - 29
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT SUM( - 37 ) * - 1 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-5973
SELECT SUM ( - 37 ) * - 1 AS col1
----
37

query I rowsort
SELECT - 42 * - 16 + + 63 + + 7 col1
----
742

query I rowsort
SELECT DISTINCT - - NULLIF ( + 31, 43 + 89 )
----
31

query I rowsort
SELECT ALL - 83 * + + 63 * 66 * 73 + - 92
----
-25193414

query I rowsort
SELECT DISTINCT - - 36 col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5978
SELECT 18 DIV - ( + - 92 ) * + + 35
----
0

skipif mysql # not compatible
query I rowsort label-5978
SELECT 18 / - ( + - 92 ) * + + 35
----
0

query I rowsort
SELECT ALL 63 + - 6 AS col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5980
SELECT COUNT( * ) DIV + + 57 * + 12
----
0

skipif mysql # not compatible
query I rowsort label-5980
SELECT COUNT ( * ) / + + 57 * + 12
----
0

query II rowsort
SELECT + COALESCE ( - 39, 91 ) * - 36 + - 62, 51 col2
----
1342
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5982
SELECT ALL - 87 + 69 + - 64 DIV COUNT( * ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL - 87 + 69 + - 64 / COUNT ( * ) AS col1
----
-82

query I rowsort
SELECT ALL - 29 + 32 * - - 67 - - - 8
----
2107

query I rowsort
SELECT DISTINCT 52 * - 75
----
-3900

query I rowsort
SELECT DISTINCT 65 + + 62 AS col2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT DISTINCT + COUNT( DISTINCT 39 ) + 71 + + + 35 / + CASE - AVG ( DISTINCT + - 88 ) WHEN 55 * - + 2 / 90 THEN NULL WHEN - COALESCE ( 84, + + 75 ) + 90 THEN + 81 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5986
SELECT DISTINCT + COUNT ( DISTINCT 39 ) + 71 + + + 35 / + CASE - AVG ( DISTINCT + - 88 ) WHEN 55 * - + 2 / 90 THEN NULL WHEN - COALESCE ( 84, + + 75 ) + 90 THEN + 81 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 93 + + - 72 - + - 33
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5988
SELECT DISTINCT COUNT( * ) AS col2, - 65 DIV + 71 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-5988
SELECT DISTINCT COUNT ( * ) AS col2, - 65 / + 71 AS col1
----
1
0

query I rowsort
SELECT 3 + - 99
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT ALL + 15 * - - CASE + + 87 WHEN - NULLIF ( + 5, + 66 ) + - 59 THEN - 82 * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL + 15 * - - CASE + + 87 WHEN - NULLIF ( + 5, + 66 ) + - 59 THEN - 82 * - COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 34 + + 92 * - + 31 * + - 70 + + - 88
----
199518

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5992
SELECT DISTINCT + COUNT( * ) * - 49 DIV + 24
----
-2

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT + COUNT ( * ) * - 49 / + 24
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5993
SELECT - 28 + + COUNT( * ) AS col0, ( 14 ) + 19 + + - 16 * 82 * - - 19 AS col2
----
-27
-24895

skipif mysql # not compatible
query II rowsort label-5993
SELECT - 28 + + COUNT ( * ) AS col0, ( 14 ) + 19 + + - 16 * 82 * - - 19 AS col2
----
-27
-24895

query I rowsort
SELECT ALL + ( + - 22 ) * + 21 AS col0
----
-462

onlyif mysql # aggregate syntax: 
query II rowsort label-5995
SELECT DISTINCT COUNT( * ) AS col2, - 98
----
1
-98

skipif mysql # not compatible
query II rowsort label-5995
SELECT DISTINCT COUNT ( * ) AS col2, - 98
----
1
-98

query I rowsort
SELECT - 16 * + - 5 AS col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5997
SELECT ALL COALESCE ( 73, - 89, - + 63 DIV + - 14 + ( - - COALESCE ( - + 64, 76 ) ) )
----
73

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL COALESCE ( 73, - 89, - + 63 / + - 14 + ( - - COALESCE ( - + 64, 76 ) ) )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5998
SELECT + CASE - COUNT( * ) WHEN - CAST( + 61 AS SIGNED ) * 34 * 8 THEN + 78 END + + + 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5998
SELECT + CASE - COUNT ( * ) WHEN - CAST ( + 61 AS INTEGER ) * 34 * 8 THEN + 78 END + + + 75 AS col2
----
NULL

query I rowsort
SELECT - 68 + 75 AS col0
----
7

query I rowsort
SELECT ALL COALESCE ( - - 10, - 83 )
----
10

query II rowsort
SELECT - 35, 66 * - + ( 2 ) AS col1
----
-35
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT DISTINCT + COUNT( 20 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT + COUNT ( 20 ) col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6003
SELECT ALL + MAX( DISTINCT + - 53 ) DIV 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL + MAX ( DISTINCT + - 53 ) / 71 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT ALL 85 * + + COUNT( * ) + + 49
----
134

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL 85 * + + COUNT ( * ) + + 49
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT DISTINCT 54 * - 31 - - - 92 - COUNT( * ) + 38 + 91 + 87 AS col0
----
-1551

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT 54 * - 31 - - - 92 - COUNT ( * ) + 38 + 91 + 87 AS col0
----
-1551

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT DISTINCT - COUNT( ALL + 48 ) * - 68 + ( + 22 )
----
90

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT - COUNT ( ALL + 48 ) * - 68 + ( + 22 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT ALL + 56 * + 47 + - MAX( + 33 ) * - 55
----
4447

skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL + 56 * + 47 + - MAX ( + 33 ) * - 55
----
4447

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT + + MAX( + 74 )
----
74

skipif mysql # not compatible
query I rowsort label-6008
SELECT + + MAX ( + 74 )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6009
SELECT 96 * - - CAST( NULL AS SIGNED ) + + + ( + - 24 ) + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6009
SELECT 96 * - - CAST ( NULL AS INTEGER ) + + + ( + - 24 ) + - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT DISTINCT 78 * + COUNT( * ) + + 49
----
127

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT 78 * + COUNT ( * ) + + 49
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-6011
SELECT ALL + 92 AS col1, COUNT( 5 )
----
92
1

skipif mysql # not compatible
query II rowsort label-6011
SELECT ALL + 92 AS col1, COUNT ( 5 )
----
92
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT DISTINCT SUM( + 61 ) * - 0 + 76 * - NULLIF ( + - 34, + 38 ) * + 27
----
69768

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT SUM ( + 61 ) * - 0 + 76 * - NULLIF ( + - 34, + 38 ) * + 27
----
69768

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT ALL + + SUM( DISTINCT + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL + + SUM ( DISTINCT + 48 )
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6014
SELECT + + 11 * + COALESCE ( - ( 73 ), - COUNT( * ) ) + 55 DIV - 37 AS col2
----
-804

skipif mysql # not compatible
query I rowsort label-6014
SELECT + + 11 * + COALESCE ( - ( 73 ), - COUNT ( * ) ) + 55 / - 37 AS col2
----
-804

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT - 95 * + ( - + 0 ) + + SUM( DISTINCT - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-6015
SELECT - 95 * + ( - + 0 ) + + SUM ( DISTINCT - 89 )
----
-89

query I rowsort
SELECT + 34 * - 56 * + + 53
----
-100912

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL COUNT( * ) * - 7 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL COUNT ( * ) * - 7 AS col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-6018
SELECT - 87 DIV + 43
----
-2

skipif mysql # not compatible
query I rowsort label-6018
SELECT - 87 / + 43
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6019
SELECT DISTINCT SUM( ALL + + 73 ), 90 AS col0
----
73
90

skipif mysql # not compatible
query II rowsort label-6019
SELECT DISTINCT SUM ( ALL + + 73 ), 90 AS col0
----
73
90

onlyif mysql # DIV for integer division: 
query II rowsort label-6020
SELECT + 51 DIV 13 col2, 8
----
3
8

skipif mysql # not compatible
query II rowsort label-6020
SELECT + 51 / 13 col2, 8
----
3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT ALL SUM( ALL 41 )
----
41

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL SUM ( ALL 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT DISTINCT + 67 + 93 * COUNT( 38 )
----
160

skipif mysql # not compatible
query I rowsort label-6022
SELECT DISTINCT + 67 + 93 * COUNT ( 38 )
----
160

query I rowsort
SELECT ALL + 85 + + 56
----
141

query I rowsort
SELECT ALL - 97 + 22 AS col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6025
SELECT - 96 + + COALESCE ( + CAST( 53 AS SIGNED ), - NULLIF ( + 92, + 20 + - - 78 ), + 51 DIV - 9 ) AS col2, + 86
----
-43
86

skipif mysql # not compatible
query II rowsort label-6025
SELECT - 96 + + COALESCE ( + CAST ( 53 AS INTEGER ), - NULLIF ( + 92, + 20 + - - 78 ), + 51 / - 9 ) AS col2, + 86
----
-43
86

query I rowsort
SELECT - - 28 * + 80
----
2240

query I rowsort
SELECT ALL + + 64 + - 7 col1
----
57

query I rowsort
SELECT - + 17 - 89
----
-106

query I rowsort
SELECT - - 42 + - 45
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT + 81 * + 54 + COUNT( * ) * NULLIF ( 7, MIN( - 24 ) + + + ( 48 ) )
----
4381

skipif mysql # not compatible
query I rowsort label-6030
SELECT + 81 * + 54 + COUNT ( * ) * NULLIF ( 7, MIN ( - 24 ) + + + ( 48 ) )
----
4381

onlyif mysql # DIV for integer division: 
query I rowsort label-6031
SELECT ALL 72 DIV - - 8 + + 16 DIV + 22 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL 72 / - - 8 + + 16 / + 22 AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6032
SELECT ALL - + 12 DIV + + COALESCE ( + NULLIF ( 75, 29 ), + + 69 * - MAX( - 82 ), + - 3 + - 64 * + + 83 + - CASE + 55 WHEN 90 THEN + 34 DIV + - 52 WHEN - 45 THEN + COUNT( * ) * 79 - - COUNT( * ) * COUNT( * ) WHEN + 47 THEN NULL ELSE NULL END * 77 ) - 67 + + 72 * + 91
----
6485

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL - + 12 / + + COALESCE ( + NULLIF ( 75, 29 ), + + 69 * - MAX ( - 82 ), + - 3 + - 64 * + + 83 + - CASE + 55 WHEN 90 THEN + 34 / + - 52 WHEN - 45 THEN + COUNT ( * ) * 79 - - COUNT ( * ) * COUNT ( * ) WHEN + 47 THEN NULL ELSE NULL END * 77 ) - 67 + + 72 * + 91
----
6485

query I rowsort
SELECT ALL + + 25 col2
----
25

query I rowsort
SELECT + 69 - 47 AS col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-6035
SELECT ALL - 90 * - 86 * + + SUM( ALL + 81 ) - 43 * COUNT( DISTINCT + 59 ) + + 38, + 60 * 9 * + COUNT( * ) * - 78 * - 37 AS col0
----
626935
1558440

skipif mysql # not compatible
query II rowsort label-6035
SELECT ALL - 90 * - 86 * + + SUM ( ALL + 81 ) - 43 * COUNT ( DISTINCT + 59 ) + + 38, + 60 * 9 * + COUNT ( * ) * - 78 * - 37 AS col0
----
626935
1558440

query I rowsort
SELECT + - ( - 55 ) AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6037
SELECT CAST( + + 12 AS SIGNED ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-6037
SELECT CAST ( + + 12 AS INTEGER ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ALL + - ( - COUNT( * ) ) / + COUNT( * ) * - - 18 - + - NULLIF ( + - 65, + 47 ) * - + 60 * - CASE - 55 WHEN + - 57 THEN 44 / - - ( 76 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL + - ( - COUNT ( * ) ) / + COUNT ( * ) * - - 18 - + - NULLIF ( + - 65, + 47 ) * - + 60 * - CASE - 55 WHEN + - 57 THEN 44 / - - ( 76 ) END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6039
SELECT - CAST( NULL AS DECIMAL ) * + - ( - 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6039
SELECT - CAST ( NULL AS REAL ) * + - ( - 89 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT ALL + 44 * + ( - CASE + COUNT( ALL 20 ) WHEN + - MIN( + 53 ) THEN + SUM( ALL - 35 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL + 44 * + ( - CASE + COUNT ( ALL 20 ) WHEN + - MIN ( + 53 ) THEN + SUM ( ALL - 35 ) END ) AS col0
----
NULL

query I rowsort
SELECT ALL - 88 - + 11 AS col1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6042
SELECT ALL CAST( NULL AS SIGNED ) - - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL CAST ( NULL AS INTEGER ) - - 43
----
NULL

query I rowsort
SELECT DISTINCT 40 * + - NULLIF ( - 59, 39 )
----
2360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6044
SELECT ALL - 3 AS col2, + 72 * - + CAST( NULL AS SIGNED ) AS col1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6044
SELECT ALL - 3 AS col2, + 72 * - + CAST ( NULL AS INTEGER ) AS col1
----
-3
NULL

query I rowsort
SELECT 12 * + 34 AS col2
----
408

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT 18 + + + 9 * - 32 * CASE - 38 WHEN + COUNT( * ) THEN 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6046
SELECT 18 + + + 9 * - 32 * CASE - 38 WHEN + COUNT ( * ) THEN 36 END
----
NULL

query II rowsort
SELECT - 63 AS col2, + 34
----
-63
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6048
SELECT - 17 AS col2, - CAST( NULL AS SIGNED )
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-6048
SELECT - 17 AS col2, - CAST ( NULL AS INTEGER )
----
-17
NULL

query I rowsort
SELECT ALL 39 * - 3
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6050
SELECT DISTINCT 68 * + - 54 * + MIN( DISTINCT - + COALESCE ( CAST( NULL AS SIGNED ), + 10 ) )
----
36720

skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT 68 * + - 54 * + MIN ( DISTINCT - + COALESCE ( CAST ( NULL AS INTEGER ), + 10 ) )
----
36720

query I rowsort
SELECT ALL + 81 + + 72 + + 79 + + 0 col0
----
232

query I rowsort
SELECT DISTINCT ( + 87 ) * 49 + - + 18
----
4245

query I rowsort
SELECT ALL 3 + - - 20 AS col0
----
23

query I rowsort
SELECT 72 + + ( + 9 ) AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6055
SELECT ALL 97 + - ( - 69 ) DIV ( - SUM( 31 ) )
----
95

skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL 97 + - ( - 69 ) / ( - SUM ( 31 ) )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT + 50 + MAX( 17 ) - + + 91
----
-24

skipif mysql # not compatible
query I rowsort label-6056
SELECT + 50 + MAX ( 17 ) - + + 91
----
-24

query I rowsort
SELECT - 90 * 91 AS col2
----
-8190

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT 14 * - - NULLIF ( + 24, COUNT( * ) ) * 82 AS col0
----
27552

skipif mysql # not compatible
query I rowsort label-6058
SELECT 14 * - - NULLIF ( + 24, COUNT ( * ) ) * 82 AS col0
----
27552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6059
SELECT ALL - + 99 DIV - + CASE + 53 WHEN + ( + COUNT( * ) ) - + 66 THEN 42 ELSE 24 + - + COALESCE ( - CAST( NULL AS SIGNED ), COUNT( * ) * 32 DIV + 48 + + 68 ) END + + 87 col0
----
85

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL - + 99 / - + CASE + 53 WHEN + ( + COUNT ( * ) ) - + 66 THEN 42 ELSE 24 + - + COALESCE ( - CAST ( NULL AS INTEGER ), COUNT ( * ) * 32 / + 48 + + 68 ) END + + 87 col0
----
85

query I rowsort
SELECT ALL + + 37 + + - 80
----
-43

query II rowsort
SELECT - 28 AS col1, + 35
----
-28
35

query II rowsort
SELECT DISTINCT + 21 AS col2, ( 49 ) AS col1
----
21
49

query I rowsort
SELECT ALL - COALESCE ( 49, + 71 )
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-6064
SELECT ALL - ( 19 ) + + 54 DIV + ( - 83 ) + 73 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL - ( 19 ) + + 54 / + ( - 83 ) + 73 AS col2
----
54

query I rowsort
SELECT + 39 * + 77 AS col0
----
3003

query I rowsort
SELECT DISTINCT - - 95 - + + 58 * - 17 + - 27
----
1054

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT ALL - 50 - + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL - 50 - + COUNT ( * )
----
-51

query I rowsort
SELECT - 6 * 12 AS col2
----
-72

query II rowsort
SELECT + - 62 AS col0, 78
----
-62
78

query I rowsort
SELECT CASE 82 WHEN + 64 THEN 80 * - + 85 + + 19 / + + 56 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6071
SELECT ( - CAST( + 32 AS SIGNED ) ), ( + 19 ) + - 75 AS col0
----
-32
-56

skipif mysql # not compatible
query II rowsort label-6071
SELECT ( - CAST ( + 32 AS INTEGER ) ), ( + 19 ) + - 75 AS col0
----
-32
-56

query I rowsort
SELECT 55 * 61 + - + 36 AS col2
----
3319

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT - COUNT( * ) * + ( + - 34 ) + + COUNT( * ) + - 68
----
-33

skipif mysql # not compatible
query I rowsort label-6073
SELECT - COUNT ( * ) * + ( + - 34 ) + + COUNT ( * ) + - 68
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-6074
SELECT 21 AS col0, 77 + + + SUM( 33 ) + + - 38 AS col0
----
21
72

skipif mysql # not compatible
query II rowsort label-6074
SELECT 21 AS col0, 77 + + + SUM ( 33 ) + + - 38 AS col0
----
21
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6075
SELECT ALL - - 16, + ( - CAST( - 32 AS SIGNED ) ) + - ( + 49 ) + - COUNT( * ) * + - 0 * - + 83 AS col1
----
16
-17

skipif mysql # not compatible
query II rowsort label-6075
SELECT ALL - - 16, + ( - CAST ( - 32 AS INTEGER ) ) + - ( + 49 ) + - COUNT ( * ) * + - 0 * - + 83 AS col1
----
16
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-6076
SELECT ALL - 32, 54 DIV - 76 * - - 50 + 93 + - 38 AS col1
----
-32
55

skipif mysql # not compatible
query II rowsort label-6076
SELECT ALL - 32, 54 / - 76 * - - 50 + 93 + - 38 AS col1
----
-32
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6077
SELECT 22 DIV - COUNT( + 52 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-6077
SELECT 22 / - COUNT ( + 52 ) AS col0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6078
SELECT DISTINCT - CAST( + 36 AS SIGNED ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT - CAST ( + 36 AS INTEGER ) AS col2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-6079
SELECT DISTINCT - 75 DIV 66 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6079
SELECT DISTINCT - 75 / 66 AS col0
----
-1

query I rowsort
SELECT ALL 99 * + - 86 AS col2
----
-8514

onlyif mysql # DIV for integer division: 
query I rowsort label-6081
SELECT 12 DIV - + 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6081
SELECT 12 / - + 39 AS col2
----
0

query I rowsort
SELECT 18 * - - 41 AS col2
----
738

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT 57 * - + COUNT( * ) col2
----
-57

skipif mysql # not compatible
query I rowsort label-6083
SELECT 57 * - + COUNT ( * ) col2
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-6084
SELECT ALL 63 * - 74 DIV ( + 1 )
----
-4662

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL 63 * - 74 / ( + 1 )
----
-4662

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT DISTINCT NULLIF ( 11, - COUNT( * ) + + - 83 ) + 64 * + - 81
----
-5173

skipif mysql # not compatible
query I rowsort label-6085
SELECT DISTINCT NULLIF ( 11, - COUNT ( * ) + + - 83 ) + 64 * + - 81
----
-5173

query I rowsort
SELECT - 14 * - - 91 - - - 19
----
-1293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6087
SELECT ALL CAST( NULL AS SIGNED ) + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL CAST ( NULL AS INTEGER ) + - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT 72 * + + ( + + COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-6088
SELECT 72 * + + ( + + COUNT ( * ) )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT ALL 97 + 41 + - 18 + - + ( + + SUM( - 64 ) ) AS col2
----
184

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL 97 + 41 + - 18 + - + ( + + SUM ( - 64 ) ) AS col2
----
184

onlyif mysql # aggregate syntax: 
query II rowsort label-6090
SELECT + 57 * + 27 + - + 66 * + COUNT( * ) AS col1, + CASE 19 WHEN - - 63 THEN 49 ELSE NULL END
----
1473
NULL

skipif mysql # not compatible
query II rowsort label-6090
SELECT + 57 * + 27 + - + 66 * + COUNT ( * ) AS col1, + CASE 19 WHEN - - 63 THEN 49 ELSE NULL END
----
1473
NULL

query I rowsort
SELECT DISTINCT 36 + + ( - - 94 ) + - 44 + 33 * 7 col2
----
317

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT ALL - 15 + - COUNT( * ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL - 15 + - COUNT ( * ) AS col1
----
-16

query I rowsort
SELECT + 24 - - 62 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT ALL + ( + + 13 ) * ( 32 ) + + CASE - - 23 WHEN + SUM( ALL - - 70 ) + - COUNT( * ) THEN - 87 + + 68 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL + ( + + 13 ) * ( 32 ) + + CASE - - 23 WHEN + SUM ( ALL - - 70 ) + - COUNT ( * ) THEN - 87 + + 68 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6095
SELECT DISTINCT 2 - CAST( 44 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-6095
SELECT DISTINCT 2 - CAST ( 44 AS INTEGER )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6096
SELECT ALL COUNT( * ) - - 36 + + - CASE ( - 80 ) WHEN - + CAST( NULL AS SIGNED ) THEN - - 65 * + + 33 * 24 + - + 25 - 23 + COUNT( * ) + CAST( + - 44 AS SIGNED ) * COUNT( * ) + + - 36 ELSE NULL END + - 17 + - 97 + - 53 + + 79 * 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL COUNT ( * ) - - 36 + + - CASE ( - 80 ) WHEN - + CAST ( NULL AS INTEGER ) THEN - - 65 * + + 33 * 24 + - + 25 - 23 + COUNT ( * ) + CAST ( + - 44 AS INTEGER ) * COUNT ( * ) + + - 36 ELSE NULL END + - 17 + - 97 + - 53 + + 79 * 15 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6097
SELECT - CAST( + 22 AS SIGNED ) DIV - 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6097
SELECT - CAST ( + 22 AS INTEGER ) / - 24 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6098
SELECT 31 * + 98 + + 66 DIV - ( + - 52 ) AS col1
----
3039

skipif mysql # not compatible
query I rowsort label-6098
SELECT 31 * + 98 + + 66 / - ( + - 52 ) AS col1
----
3039

onlyif mysql # aggregate syntax: 
query II rowsort label-6099
SELECT DISTINCT COALESCE ( + 61, - MAX( DISTINCT + 91 ) ) AS col2, - 10
----
61
-10

skipif mysql # not compatible
query II rowsort label-6099
SELECT DISTINCT COALESCE ( + 61, - MAX ( DISTINCT + 91 ) ) AS col2, - 10
----
61
-10

query I rowsort
SELECT - 4 + 49 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT - COUNT( + ( NULLIF ( 57, - + 16 ) ) ) * - 72 * + 5
----
360

skipif mysql # not compatible
query I rowsort label-6101
SELECT - COUNT ( + ( NULLIF ( 57, - + 16 ) ) ) * - 72 * + 5
----
360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6102
SELECT - - 18 - COALESCE ( - - CASE 53 WHEN - - 15 - + 12 THEN NULLIF ( COUNT( * ), + + 22 * - 80 - COUNT( * ) ) DIV + 61 WHEN + 3 THEN NULL END, - 62, + COUNT( * ) - + - COUNT( * ) * 93 )
----
80

skipif mysql # not compatible
query I rowsort label-6102
SELECT - - 18 - COALESCE ( - - CASE 53 WHEN - - 15 - + 12 THEN NULLIF ( COUNT ( * ), + + 22 * - 80 - COUNT ( * ) ) / + 61 WHEN + 3 THEN NULL END, - 62, + COUNT ( * ) - + - COUNT ( * ) * 93 )
----
80

query I rowsort
SELECT - + 33 * + 97
----
-3201

query I rowsort
SELECT DISTINCT + 94 * - 13 * - ( - - 72 )
----
87984

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT DISTINCT + MAX( 20 )
----
20

skipif mysql # not compatible
query I rowsort label-6105
SELECT DISTINCT + MAX ( 20 )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6106
SELECT ALL - ( - + ( - COUNT( - - 12 ) ) ) * - - CAST( + 2 AS SIGNED ) * 47 + - 49 + + COUNT( * ) - 16 + + 12 / - CASE - 80 WHEN + NULLIF ( + COUNT( * ), + 60 ) * - 16 THEN NULL WHEN - COALESCE ( 53, - 40 - - ( - 68 ), + 45 * 83 ) * CASE 20 WHEN NULLIF ( 82, 61 ) THEN 44 WHEN AVG ( ALL 61 ) + AVG ( + CAST( - 74 AS SIGNED ) ) THEN NULL END THEN + 19 WHEN + 91 * COUNT( * ) THEN NULL END + 26 * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL - ( - + ( - COUNT ( - - 12 ) ) ) * - - CAST ( + 2 AS INTEGER ) * 47 + - 49 + + COUNT ( * ) - 16 + + 12 / - CASE - 80 WHEN + NULLIF ( + COUNT ( * ), + 60 ) * - 16 THEN NULL WHEN - COALESCE ( 53, - 40 - - ( - 68 ), + 45 * 83 ) * CASE 20 WHEN NULLIF ( 82, 61 ) THEN 44 WHEN AVG ( ALL 61 ) + AVG ( + CAST ( - 74 AS INTEGER ) ) THEN NULL END THEN + 19 WHEN + 91 * COUNT ( * ) THEN NULL END + 26 * - 24
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6107
SELECT + 99 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6107
SELECT + 99 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT - COUNT( * ) * - 22 + - - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-6108
SELECT - COUNT ( * ) * - 22 + - - COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT ALL + COUNT( * ) * + 2 + - 71 + ( - 15 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL + COUNT ( * ) * + 2 + - 71 + ( - 15 ) AS col2
----
-84

query I rowsort
SELECT - 69 * 48
----
-3312

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6111
SELECT ALL + 26 DIV - COUNT( DISTINCT 64 ) AS col1, - 31 + 54
----
-26
23

skipif mysql # not compatible
query II rowsort label-6111
SELECT ALL + 26 / - COUNT ( DISTINCT 64 ) AS col1, - 31 + 54
----
-26
23

query II rowsort
SELECT DISTINCT + ( + 34 ) * 30 * - 50 + - 84, 18 AS col2
----
-51084
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT ALL 15 * - COUNT( * ) + 80 + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL 15 * - COUNT ( * ) + 80 + COUNT ( * )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ALL - COUNT( * ) * + 31 + - + 86 * - + NULLIF ( - + CASE - COALESCE ( + 40, 52, - - 11 * 82 * - 29 + - - 96 ) WHEN - 13 THEN NULL WHEN COALESCE ( - 64, - 64 ) THEN 78 WHEN + 52 * 40 + - + MIN( - 52 ) + 75 - NULLIF ( ( + COUNT( + 61 ) ), ( COUNT( * ) ) ) THEN NULL END, COUNT( * ) + + ( COUNT( * ) ) ) * 90 + - ( + COUNT( * ) + - MIN( 55 + + 9 ) * + 69 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL - COUNT ( * ) * + 31 + - + 86 * - + NULLIF ( - + CASE - COALESCE ( + 40, 52, - - 11 * 82 * - 29 + - - 96 ) WHEN - 13 THEN NULL WHEN COALESCE ( - 64, - 64 ) THEN 78 WHEN + 52 * 40 + - + MIN ( - 52 ) + 75 - NULLIF ( ( + COUNT ( + 61 ) ), ( COUNT ( * ) ) ) THEN NULL END, COUNT ( * ) + + ( COUNT ( * ) ) ) * 90 + - ( + COUNT ( * ) + - MIN ( 55 + + 9 ) * + 69 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6115
SELECT ALL + 26 DIV - 8 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL + 26 / - 8 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT - COUNT( * ) + - ( - 4 ) * + - 77 + 45 AS col1
----
-264

skipif mysql # not compatible
query I rowsort label-6116
SELECT - COUNT ( * ) + - ( - 4 ) * + - 77 + 45 AS col1
----
-264

query I rowsort
SELECT DISTINCT + 9 * - + 92 col2
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT ALL - 54 + + COUNT( + 50 )
----
-53

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL - 54 + + COUNT ( + 50 )
----
-53

query I rowsort
SELECT - 79 + + 43
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6120
SELECT + CAST( CAST( - 48 AS SIGNED ) AS SIGNED ) - + 96 + + 31 + - 29 * + - 68 * + 22 AS col2
----
43271

skipif mysql # not compatible
query I rowsort label-6120
SELECT + CAST ( CAST ( - 48 AS INTEGER ) AS INTEGER ) - + 96 + + 31 + - 29 * + - 68 * + 22 AS col2
----
43271

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT - 94 * + 93 * - + COUNT( * ) * + 93 + + - COUNT( * )
----
813005

skipif mysql # not compatible
query I rowsort label-6121
SELECT - 94 * + 93 * - + COUNT ( * ) * + 93 + + - COUNT ( * )
----
813005

query I rowsort
SELECT DISTINCT - + 28 * + 1 + - 54 AS col2
----
-82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6123
SELECT DISTINCT - 16 - + 51 + - NULLIF ( 27, + 68 ) * - 12 - 90 * - 74 * 4 - + NULLIF ( - + CASE - 21 WHEN - + 73 THEN + + COALESCE ( - 75, - + 71 * + - 78 DIV 83 + + 87 * + 21 ) ELSE + ( 59 ) * 93 END, + 36 * CAST( NULL AS SIGNED ) ) AS col2
----
32384

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT - 16 - + 51 + - NULLIF ( 27, + 68 ) * - 12 - 90 * - 74 * 4 - + NULLIF ( - + CASE - 21 WHEN - + 73 THEN + + COALESCE ( - 75, - + 71 * + - 78 / 83 + + 87 * + 21 ) ELSE + ( 59 ) * 93 END, + 36 * CAST ( NULL AS INTEGER ) ) AS col2
----
32384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6124
SELECT ALL + + CAST( - - 3 AS SIGNED ) - COUNT( * ) AS col2, 86 AS col1
----
2
86

skipif mysql # not compatible
query II rowsort label-6124
SELECT ALL + + CAST ( - - 3 AS INTEGER ) - COUNT ( * ) AS col2, 86 AS col1
----
2
86

query I rowsort
SELECT + 35 + + - 44 col1
----
-9

query II rowsort
SELECT + 48 + + 41 * + 66, 75 AS col2
----
2754
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6127
SELECT ALL + 33 DIV - 7 + - - MAX( DISTINCT + 71 )
----
67

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL + 33 / - 7 + - - MAX ( DISTINCT + 71 )
----
67

query I rowsort
SELECT - + ( - 64 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT + - 22 * + - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-6129
SELECT + - 22 * + - COUNT ( * )
----
22

query I rowsort
SELECT + 62 + + 28 * 67 AS col0
----
1938

query I rowsort
SELECT - ( - 98 ) AS col0
----
98

query I rowsort
SELECT + + 78 * - 1 AS col1
----
-78

query I rowsort
SELECT ALL 54 * + + 59 AS col0
----
3186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6134
SELECT + 24 DIV + - MAX( + 99 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6134
SELECT + 24 / + - MAX ( + 99 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6135
SELECT ALL MIN( ALL - 46 ) * + 75 * - 66 * - + 27, + 70 * + - ( - 66 ) AS col2
----
-6147900
4620

skipif mysql # not compatible
query II rowsort label-6135
SELECT ALL MIN ( ALL - 46 ) * + 75 * - 66 * - + 27, + 70 * + - ( - 66 ) AS col2
----
-6147900
4620

query I rowsort
SELECT DISTINCT + 40 * + 5 col2
----
200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6137
SELECT ALL + - 77 AS col0, 63 * + 76 + + CAST( NULL AS SIGNED ) AS col1
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-6137
SELECT ALL + - 77 AS col0, 63 * + 76 + + CAST ( NULL AS INTEGER ) AS col1
----
-77
NULL

query II rowsort
SELECT ALL + - 21, ( + 42 ) AS col0
----
-21
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6139
SELECT + + 1 DIV - 75 * 51
----
0

skipif mysql # not compatible
query I rowsort label-6139
SELECT + + 1 / - 75 * 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT DISTINCT + MAX( - 53 ) col2
----
-53

skipif mysql # not compatible
query I rowsort label-6140
SELECT DISTINCT + MAX ( - 53 ) col2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6141
SELECT ALL - 44 DIV - 83 + 83 * + 4 AS col0, COALESCE ( 32, - 81 DIV + COUNT( * ) + - MIN( ALL - 92 ) + + 38 + CAST( NULL AS SIGNED ) + + - 60 * + - COUNT( + - 55 ) * + - 49 ) * + 45 AS col1
----
332
1440

skipif mysql # not compatible
query II rowsort label-6141
SELECT ALL - 44 / - 83 + 83 * + 4 AS col0, COALESCE ( 32, - 81 / + COUNT ( * ) + - MIN ( ALL - 92 ) + + 38 + CAST ( NULL AS INTEGER ) + + - 60 * + - COUNT ( + - 55 ) * + - 49 ) * + 45 AS col1
----
332
1440

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6142
SELECT CAST( NULL AS DECIMAL ) AS col1, - 45 + + CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6142
SELECT CAST ( NULL AS REAL ) AS col1, - 45 + + CAST ( NULL AS REAL )
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6143
SELECT DISTINCT + 11 DIV MIN( ALL 52 ) + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT + 11 / MIN ( ALL 52 ) + COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT + 46 * + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-6144
SELECT + 46 * + COUNT ( * )
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6145
SELECT ALL + 50 DIV 27 DIV + 65 * + - 37 + + + 7
----
7

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL + 50 / 27 / + 65 * + - 37 + + + 7
----
7

query I rowsort
SELECT DISTINCT + 40 * + - 36
----
-1440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6147
SELECT - COUNT( * ) + + ( CAST( NULL AS SIGNED ) ) + 81 - + + 55 * + - SUM( 8 ) * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-6147
SELECT - COUNT ( * ) + + ( CAST ( NULL AS INTEGER ) ) + 81 - + + 55 * + - SUM ( 8 ) * - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT DISTINCT - MIN( 39 ) * - - 86 + + 68 + + 23 * - COUNT( * ) * + - 10
----
-3056

skipif mysql # not compatible
query I rowsort label-6148
SELECT DISTINCT - MIN ( 39 ) * - - 86 + + 68 + + 23 * - COUNT ( * ) * + - 10
----
-3056

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6149
SELECT ALL + 2 AS col0, 1 / - - ( + CAST( - 27 AS SIGNED ) ) * - - CASE - 59 WHEN 30 THEN + + ( + 37 ) ELSE NULL END + - 56 AS col2
----
2
NULL

skipif mysql # not compatible
query II rowsort label-6149
SELECT ALL + 2 AS col0, 1 / - - ( + CAST ( - 27 AS INTEGER ) ) * - - CASE - 59 WHEN 30 THEN + + ( + 37 ) ELSE NULL END + - 56 AS col2
----
2
NULL

query I rowsort
SELECT ALL + 22 * + - ( 46 )
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT + COUNT( DISTINCT + 75 ) * 98
----
98

skipif mysql # not compatible
query I rowsort label-6151
SELECT + COUNT ( DISTINCT + 75 ) * 98
----
98

query I rowsort
SELECT NULLIF ( 97, + - COALESCE ( - 57, + 50 ) )
----
97

query I rowsort
SELECT - 62 + + 99
----
37

onlyif mysql # DIV for integer division: 
query II rowsort label-6154
SELECT + 82 AS col0, + COALESCE ( + 72, - 77 DIV - + 52 + - - 11 ) AS col0
----
82
72

skipif mysql # not compatible
query II rowsort label-6154
SELECT + 82 AS col0, + COALESCE ( + 72, - 77 / - + 52 + - - 11 ) AS col0
----
82
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT NULLIF ( COUNT( * ), - 37 * + 64 )
----
1

skipif mysql # not compatible
query I rowsort label-6155
SELECT NULLIF ( COUNT ( * ), - 37 * + 64 )
----
1

query I rowsort
SELECT ALL NULLIF ( - - ( - 52 ), - 24 + 99 )
----
-52

query I rowsort
SELECT DISTINCT - ( + ( + 73 ) ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT DISTINCT COUNT( DISTINCT 75 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT COUNT ( DISTINCT 75 ) AS col2
----
1

query I rowsort
SELECT ALL + 23 * - 84
----
-1932

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6160
SELECT - 30 AS col0, + 73 + NULLIF ( - - 2, COUNT( * ) + - 70 * + 99 / - COUNT( * ) + - + CAST( 74 AS SIGNED ) )
----
-30
75

skipif mysql # not compatible
query II rowsort label-6160
SELECT - 30 AS col0, + 73 + NULLIF ( - - 2, COUNT ( * ) + - 70 * + 99 / - COUNT ( * ) + - + CAST ( 74 AS INTEGER ) )
----
-30
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT ALL 13 * + COUNT( * ) - 96
----
-83

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL 13 * + COUNT ( * ) - 96
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT - + MIN( 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6162
SELECT - + MIN ( 18 ) AS col2
----
-18

query I rowsort
SELECT - - 32 - - + ( 30 )
----
62

query I rowsort
SELECT - - 74 * + - 59 * - 20 AS col0
----
87320

query I rowsort
SELECT - - 68 * - 74 col2
----
-5032

query I rowsort
SELECT ALL - 63 * 76 * - ( + 64 ) + - 55
----
306377

query II rowsort
SELECT DISTINCT - 89, + 17 * + 75 AS col1
----
-89
1275

query I rowsort
SELECT ALL + 71 * + 19 + 13
----
1362

query I rowsort
SELECT - 95 * - 91 col2
----
8645

query I rowsort
SELECT DISTINCT + ( - - 55 ) * - 35 AS col0
----
-1925

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT - COUNT( + ( + 8 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6171
SELECT - COUNT ( + ( + 8 ) )
----
-1

query I rowsort
SELECT 9 * 0 * + 10
----
0

query II rowsort
SELECT ALL 26 AS col1, 61
----
26
61

query I rowsort
SELECT 40 - ( + 63 ) AS col2
----
-23

query I rowsort
SELECT ALL - ( + 52 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-6176
SELECT DISTINCT + 45, + MAX( ALL ( 72 ) ) AS col0
----
45
72

skipif mysql # not compatible
query II rowsort label-6176
SELECT DISTINCT + 45, + MAX ( ALL ( 72 ) ) AS col0
----
45
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT 89 + + COUNT( * ) * + 81 + - 69 col2
----
101

skipif mysql # not compatible
query I rowsort label-6177
SELECT 89 + + COUNT ( * ) * + 81 + - 69 col2
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-6178
SELECT - - COALESCE ( + 36, + 42 + 47 * + + 20 DIV - 59 * + 58 - + 10 DIV - + 3 + - ( 57 ) * + 13 + + 48 ) col0
----
36

skipif mysql # not compatible
query I rowsort label-6178
SELECT - - COALESCE ( + 36, + 42 + 47 * + + 20 / - 59 * + 58 - + 10 / - + 3 + - ( 57 ) * + 13 + + 48 ) col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT ALL 27 + - MAX( ALL + - 5 )
----
32

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL 27 + - MAX ( ALL + - 5 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT ALL 40 * 73 * - 0 * - ( COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL 40 * 73 * - 0 * - ( COUNT ( * ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT ALL + MIN( + + CASE - 87 WHEN - 60 THEN - ( - - 24 ) END ) + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL + MIN ( + + CASE - 87 WHEN - 60 THEN - ( - - 24 ) END ) + 90
----
NULL

query I rowsort
SELECT ALL - 99 + 87
----
-12

query I rowsort
SELECT DISTINCT 75 * 53 * + 67 * - 25 AS col2
----
-6658125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6184
SELECT ALL 34 + - CASE WHEN NOT ( NULL ) = - + 9 THEN NULL WHEN NOT NULLIF ( + 99, + 28 / + - 69 ) IS NOT NULL THEN - 82 + ( - + 20 ) * ( ( 10 ) ) END * + - CASE + 77 WHEN + - 38 THEN + 24 * + 29 WHEN - ( + 63 ) * + 61 THEN 10 WHEN 62 THEN NULL ELSE - CASE ( - 31 ) WHEN 80 - + 61 THEN - NULLIF ( - 31, CAST( NULL AS SIGNED ) + MAX( 12 ) ) + 59 ELSE NULLIF ( + COUNT( * ), 67 ) END * 55 + - 16 * + 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL 34 + - CASE WHEN NOT ( NULL ) = - + 9 THEN NULL WHEN NOT NULLIF ( + 99, + 28 / + - 69 ) IS NOT NULL THEN - 82 + ( - + 20 ) * ( ( 10 ) ) END * + - CASE + 77 WHEN + - 38 THEN + 24 * + 29 WHEN - ( + 63 ) * + 61 THEN 10 WHEN 62 THEN NULL ELSE - CASE ( - 31 ) WHEN 80 - + 61 THEN - NULLIF ( - 31, CAST ( NULL AS INTEGER ) + MAX ( 12 ) ) + 59 ELSE NULLIF ( + COUNT ( * ), 67 ) END * 55 + - 16 * + 34 END
----
NULL

query I rowsort
SELECT ALL 93 + + 55 + + + 2 AS col0
----
150

query I rowsort
SELECT ALL 4 * 86 AS col2
----
344

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6187
SELECT 63 DIV - 64 AS col2, + ( NULLIF ( + 29, + CAST( NULL AS SIGNED ) ) ) * - + 95 + + 67 + - 29 * 24 DIV + 90 + + 48 AS col2
----
0
-2647

skipif mysql # not compatible
query II rowsort label-6187
SELECT 63 / - 64 AS col2, + ( NULLIF ( + 29, + CAST ( NULL AS INTEGER ) ) ) * - + 95 + + 67 + - 29 * 24 / + 90 + + 48 AS col2
----
0
-2647

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6188
SELECT ALL 98 + + + CAST( NULL AS SIGNED ) AS col1, - 46
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-6188
SELECT ALL 98 + + + CAST ( NULL AS INTEGER ) AS col1, - 46
----
NULL
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-6189
SELECT 66 DIV 32 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6189
SELECT 66 / 32 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT 72 * - NULLIF ( - - 35, + 14 - + + COUNT( * ) * 89 * SUM( ALL - 4 ) )
----
-2520

skipif mysql # not compatible
query I rowsort label-6190
SELECT 72 * - NULLIF ( - - 35, + 14 - + + COUNT ( * ) * 89 * SUM ( ALL - 4 ) )
----
-2520

onlyif mysql # DIV for integer division: 
query I rowsort label-6191
SELECT ALL 38 DIV - - 95 col2
----
0

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL 38 / - - 95 col2
----
0

query I rowsort
SELECT ALL 97 - + - 69 AS col1
----
166

query I rowsort
SELECT ALL + 91 * - 10
----
-910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6194
SELECT CAST( - 75 AS SIGNED ) - 98 AS col2
----
-173

skipif mysql # not compatible
query I rowsort label-6194
SELECT CAST ( - 75 AS INTEGER ) - 98 AS col2
----
-173

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6195
SELECT 75 + + CAST( NULL AS DECIMAL ) / 3 - + - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6195
SELECT 75 + + CAST ( NULL AS REAL ) / 3 - + - 38 AS col1
----
NULL

query II rowsort
SELECT ALL - 83 * 28, 89 AS col0
----
-2324
89

query I rowsort
SELECT ALL 73 * + 83
----
6059

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT COUNT( ALL + 10 )
----
1

skipif mysql # not compatible
query I rowsort label-6198
SELECT COUNT ( ALL + 10 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6199
SELECT - 56 + + COUNT( * ) DIV - 73 + - - COUNT( - 29 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-6199
SELECT - 56 + + COUNT ( * ) / - 73 + - - COUNT ( - 29 ) AS col1
----
-55

query I rowsort
SELECT 86 + + 39 + - - 15 + 13 * 70 + - 49 * 21 + 81 * + 41 AS col0
----
3342

query II rowsort
SELECT DISTINCT - 84 + 38 + - - 34, 30 AS col1
----
-12
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6202
SELECT 78 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-6202
SELECT 78 / + 83
----
0

query I rowsort
SELECT ALL - + 10 + - 88 AS col2
----
-98

query I rowsort
SELECT + 6 + + + COALESCE ( + 46, 8 * + ( + - 39 ) + - + 28 )
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6205
SELECT DISTINCT - - 43 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-6205
SELECT DISTINCT - - 43 / + 84
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6206
SELECT ( + ( + 91 ) ) DIV - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-6206
SELECT ( + ( + 91 ) ) / - COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT ALL - 90 + + - COUNT( DISTINCT - 9 )
----
-91

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL - 90 + + - COUNT ( DISTINCT - 9 )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6208
SELECT ALL + + 31 + - + 71 * - COUNT( * ) + - 32 + + 97 * - + COALESCE ( + 95, + CAST( - 8 AS SIGNED ) )
----
-9145

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL + + 31 + - + 71 * - COUNT ( * ) + - 32 + + 97 * - + COALESCE ( + 95, + CAST ( - 8 AS INTEGER ) )
----
-9145

query I rowsort
SELECT DISTINCT - - 68 + 31 * 54 - + 50 AS col1
----
1692

onlyif mysql # DIV for integer division: 
query II rowsort label-6210
SELECT ALL + - 6 * 70 DIV - 18, + 98 AS col0
----
23
98

skipif mysql # not compatible
query II rowsort label-6210
SELECT ALL + - 6 * 70 / - 18, + 98 AS col0
----
23
98

onlyif mysql # DIV for integer division: 
query II rowsort label-6211
SELECT - 99 DIV 44 AS col1, 78 - 65
----
-2
13

skipif mysql # not compatible
query II rowsort label-6211
SELECT - 99 / 44 AS col1, 78 - 65
----
-2
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT ALL COALESCE ( + + ( ( - 63 ) ), + + 17 + + 59 + 71, - CAST( NULL AS SIGNED ), - - 74 * + 98 + + 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL COALESCE ( + + ( ( - 63 ) ), + + 17 + + 59 + 71, - CAST ( NULL AS INTEGER ), - - 74 * + 98 + + 63 ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT 41 * COUNT( * ) col2
----
41

skipif mysql # not compatible
query I rowsort label-6213
SELECT 41 * COUNT ( * ) col2
----
41

query I rowsort
SELECT ALL + 67 + + 81
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-6215
SELECT DISTINCT 41 AS col0, COUNT( * ) AS col1
----
41
1

skipif mysql # not compatible
query II rowsort label-6215
SELECT DISTINCT 41 AS col0, COUNT ( * ) AS col1
----
41
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT ALL 93 + + 51 + - - SUM( 58 ) * 67
----
4030

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL 93 + + 51 + - - SUM ( 58 ) * 67
----
4030

query II rowsort
SELECT 40, 70 AS col1
----
40
70

query I rowsort
SELECT 66 * + - 74
----
-4884

query I rowsort
SELECT DISTINCT - NULLIF ( - 1, 18 ) AS col1
----
1

query II rowsort
SELECT 68 * + 80 - + - 13 AS col2, - 7 AS col2
----
5453
-7

query I rowsort
SELECT 92 * - 90 AS col2
----
-8280

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6222
SELECT + 66 AS col0, 86 * + CAST( NULL AS SIGNED ) + - 38 AS col2
----
66
NULL

skipif mysql # not compatible
query II rowsort label-6222
SELECT + 66 AS col0, 86 * + CAST ( NULL AS INTEGER ) + - 38 AS col2
----
66
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6223
SELECT DISTINCT 86 * - 7 * 37 AS col1, + MAX( ( - 48 ) ) DIV 27 + + 43 * + + COUNT( * ) * - - 36 + - 62 - - 64 + - 37 * - 4 * - + 71 * + 29 * 87 + - 5 * 13 + + COUNT( + 53 )
----
-22274
-26510199

skipif mysql # not compatible
query II rowsort label-6223
SELECT DISTINCT 86 * - 7 * 37 AS col1, + MAX ( ( - 48 ) ) / 27 + + 43 * + + COUNT ( * ) * - - 36 + - 62 - - 64 + - 37 * - 4 * - + 71 * + 29 * 87 + - 5 * 13 + + COUNT ( + 53 )
----
-22274
-26510199

query I rowsort
SELECT 88 + 11 - - ( + 80 ) AS col0
----
179

query I rowsort
SELECT 5 * + + 14 - 40 col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT 72 * - CASE + + 37 WHEN 31 THEN - 38 * + - COUNT( * ) * - 17 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6226
SELECT 72 * - CASE + + 37 WHEN 31 THEN - 38 * + - COUNT ( * ) * - 17 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6227
SELECT + - 62, 50 + - SUM( ALL + + CAST( NULL AS SIGNED ) ) * - - MIN( DISTINCT - 62 ) AS col0
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-6227
SELECT + - 62, 50 + - SUM ( ALL + + CAST ( NULL AS INTEGER ) ) * - - MIN ( DISTINCT - 62 ) AS col0
----
-62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT + 32 * - ( + 80 ) * - 24 + CASE - 97 WHEN + + 25 * + 79 THEN NULL WHEN ( + + COUNT( * ) ) + - MIN( - 77 ) THEN + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6228
SELECT + 32 * - ( + 80 ) * - 24 + CASE - 97 WHEN + + 25 * + 79 THEN NULL WHEN ( + + COUNT ( * ) ) + - MIN ( - 77 ) THEN + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6229
SELECT DISTINCT + + CAST( + NULLIF ( 76, + - 72 ) AS SIGNED ), - 94 * 90 AS col0
----
76
-8460

skipif mysql # not compatible
query II rowsort label-6229
SELECT DISTINCT + + CAST ( + NULLIF ( 76, + - 72 ) AS INTEGER ), - 94 * 90 AS col0
----
76
-8460

onlyif mysql # DIV for integer division: 
query I rowsort label-6230
SELECT ALL 84 DIV 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL 84 / 96 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT ALL + - SUM( ALL + - 34 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL + - SUM ( ALL + - 34 ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6232
SELECT + + 66 * + ( NULLIF ( + + 23, + CASE - - ( + 40 ) WHEN + COUNT( * ) THEN NULL ELSE - 92 END ) ), COUNT( * ) AS col1
----
1518
1

skipif mysql # not compatible
query II rowsort label-6232
SELECT + + 66 * + ( NULLIF ( + + 23, + CASE - - ( + 40 ) WHEN + COUNT ( * ) THEN NULL ELSE - 92 END ) ), COUNT ( * ) AS col1
----
1518
1

query I rowsort
SELECT ALL + 60 + 71
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-6234
SELECT ALL + 55 + + + 57 * - 61 * - + 69 * 77 + + 82 DIV + 96
----
18473356

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL + 55 + + + 57 * - 61 * - + 69 * 77 + + 82 / + 96
----
18473356

query II rowsort
SELECT - 99, 51 - + 30 col1
----
-99
21

query II rowsort
SELECT 1, 24 - - - NULLIF ( 67, + 16 ) + + 50 AS col2
----
1
7

onlyif mysql # aggregate syntax: 
query II rowsort label-6237
SELECT DISTINCT 72 AS col1, - COUNT( * ) * MIN( ALL 3 ) AS col2
----
72
-3

skipif mysql # not compatible
query II rowsort label-6237
SELECT DISTINCT 72 AS col1, - COUNT ( * ) * MIN ( ALL 3 ) AS col2
----
72
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT DISTINCT + MAX( ALL + + 18 ) + 10 * - 12
----
-102

skipif mysql # not compatible
query I rowsort label-6238
SELECT DISTINCT + MAX ( ALL + + 18 ) + 10 * - 12
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-6239
SELECT - 22, - SUM( + 59 ) AS col0
----
-22
-59

skipif mysql # not compatible
query II rowsort label-6239
SELECT - 22, - SUM ( + 59 ) AS col0
----
-22
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6240
SELECT DISTINCT - CAST( - - 61 AS SIGNED ) + + - MIN( ALL 47 ) * 97 AS col2
----
-4620

skipif mysql # not compatible
query I rowsort label-6240
SELECT DISTINCT - CAST ( - - 61 AS INTEGER ) + + - MIN ( ALL 47 ) * 97 AS col2
----
-4620

query I rowsort
SELECT ALL 87 + 27 + + - 37
----
77

query I rowsort
SELECT - - NULLIF ( - 0, + ( + AVG ( - + 89 ) ) * - 49 )
----
0

query I rowsort
SELECT + 70 - + 42 AS col0
----
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6244
SELECT - COUNT( * ) col0, CAST( NULL AS DECIMAL ) - - 42 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6244
SELECT - COUNT ( * ) col0, CAST ( NULL AS REAL ) - - 42 AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT - + 73 * + ( + 10 ) * 15 * + 20 + - - 74 + - MAX( - CASE + ( + 46 ) WHEN + 28 THEN + - 82 / + 30 WHEN + 60 THEN NULL END ) + - - 87 + + + 4 + + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT - + 73 * + ( + 10 ) * 15 * + 20 + - - 74 + - MAX ( - CASE + ( + 46 ) WHEN + 28 THEN + - 82 / + 30 WHEN + 60 THEN NULL END ) + - - 87 + + + 4 + + 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6246
SELECT ALL + 35 - COUNT( - NULLIF ( + 70, 60 - + 16 ) ) DIV MAX( + - 55 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL + 35 - COUNT ( - NULLIF ( + 70, 60 - + 16 ) ) / MAX ( + - 55 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT ALL COUNT( + 22 )
----
1

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL COUNT ( + 22 )
----
1

query I rowsort
SELECT + 87 * - - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT + COUNT( * ) + - + 50 + 6 + - + 74 + + 38 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-6249
SELECT + COUNT ( * ) + - + 50 + 6 + - + 74 + + 38 AS col0
----
-79

query II rowsort
SELECT ALL - 36 - 52 AS col1, 58
----
-88
58

query II rowsort
SELECT - ( 85 ) AS col0, - 34
----
-85
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT ALL + 63 * - 9 * - - COALESCE ( + 52, COUNT( * ) + 27 )
----
-29484

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL + 63 * - 9 * - - COALESCE ( + 52, COUNT ( * ) + 27 )
----
-29484

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT - MAX( ALL + 85 ) * + 86 + + COUNT( - - 65 )
----
-7309

skipif mysql # not compatible
query I rowsort label-6253
SELECT - MAX ( ALL + 85 ) * + 86 + + COUNT ( - - 65 )
----
-7309

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6254
SELECT DISTINCT ( - - 61 ) * - 66 + + - CASE ( + CASE - 55 WHEN - + COALESCE ( - - CAST( + + NULLIF ( ( - 93 ), + 16 - 18 ) AS SIGNED ), - 57 * - 63 - 41 - + 31 ) * + 44 THEN NULL WHEN 43 * + ( 51 ) + - 92 * - 24 + 48 THEN 97 ELSE NULL END ) WHEN 35 THEN + 67 * COALESCE ( - 90, 96 ) WHEN + 91 / 89 + + 94 THEN 21 - 35 * - ( + 25 ) WHEN + 47 THEN ( + 15 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT ( - - 61 ) * - 66 + + - CASE ( + CASE - 55 WHEN - + COALESCE ( - - CAST ( + + NULLIF ( ( - 93 ), + 16 - 18 ) AS INTEGER ), - 57 * - 63 - 41 - + 31 ) * + 44 THEN NULL WHEN 43 * + ( 51 ) + - 92 * - 24 + 48 THEN 97 ELSE NULL END ) WHEN 35 THEN + 67 * COALESCE ( - 90, 96 ) WHEN + 91 / 89 + + 94 THEN 21 - 35 * - ( + 25 ) WHEN + 47 THEN ( + 15 ) END AS col0
----
NULL

query I rowsort
SELECT ( + + 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT ALL + 73 * + - COALESCE ( - 36, + - 53 * + 23 * - MAX( ALL - 2 ) * + + 58 + + 19, 15 * 97 - - 25 )
----
2628

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL + 73 * + - COALESCE ( - 36, + - 53 * + 23 * - MAX ( ALL - 2 ) * + + 58 + + 19, 15 * 97 - - 25 )
----
2628

query I rowsort
SELECT ALL + ( + 58 ) col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6258
SELECT - NULLIF ( 7, - 39 - + - 1 ) DIV - - 33 + + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6258
SELECT - NULLIF ( 7, - 39 - + - 1 ) / - - 33 + + - COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6259
SELECT ALL + 64 * CAST( - 32 AS SIGNED ) AS col1
----
-2048

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL + 64 * CAST ( - 32 AS INTEGER ) AS col1
----
-2048

onlyif mysql # aggregate syntax: 
query II rowsort label-6260
SELECT ( + 16 ) col2, - 74 * - COUNT( * ) * - + 61
----
16
-4514

skipif mysql # not compatible
query II rowsort label-6260
SELECT ( + 16 ) col2, - 74 * - COUNT ( * ) * - + 61
----
16
-4514

query I rowsort
SELECT ALL - 0 * ( - ( + - 89 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT DISTINCT + COALESCE ( + COUNT( * ), 47 )
----
1

skipif mysql # not compatible
query I rowsort label-6262
SELECT DISTINCT + COALESCE ( + COUNT ( * ), 47 )
----
1

query I rowsort
SELECT - 62 + 1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6264
SELECT ( COUNT( * ) ) * - COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col0, - 40 AS col1
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-6264
SELECT ( COUNT ( * ) ) * - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col0, - 40 AS col1
----
NULL
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT ALL + SUM( ALL + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL + SUM ( ALL + 57 )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6266
SELECT - + 70 + - COUNT( * ) AS col1, - 85 DIV 66 * - COUNT( * ) AS col2
----
-71
1

skipif mysql # not compatible
query II rowsort label-6266
SELECT - + 70 + - COUNT ( * ) AS col1, - 85 / 66 * - COUNT ( * ) AS col2
----
-71
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT - - MAX( 16 ) * + 49 - 51 * + 30 * COALESCE ( + 31, 69, + - 46 * + 4 )
----
-46646

skipif mysql # not compatible
query I rowsort label-6267
SELECT - - MAX ( 16 ) * + 49 - 51 * + 30 * COALESCE ( + 31, 69, + - 46 * + 4 )
----
-46646

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6268
SELECT ALL - + 23 * + COUNT( * ) * + 71 * 0 DIV - 90 + 50
----
50

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL - + 23 * + COUNT ( * ) * + 71 * 0 / - 90 + 50
----
50

query II rowsort
SELECT + - ( + 21 ), ( + 20 ) + 85 AS col2
----
-21
105

onlyif mysql # aggregate syntax: 
query II rowsort label-6270
SELECT ALL - 57 * 89 + COUNT( * ) + COUNT( * ) AS col0, 80
----
-5071
80

skipif mysql # not compatible
query II rowsort label-6270
SELECT ALL - 57 * 89 + COUNT ( * ) + COUNT ( * ) AS col0, 80
----
-5071
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT COUNT( * ) * - 92 * MIN( ALL + + 11 ) - + 6 - - 80
----
-938

skipif mysql # not compatible
query I rowsort label-6271
SELECT COUNT ( * ) * - 92 * MIN ( ALL + + 11 ) - + 6 - - 80
----
-938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6272
SELECT ALL + 40 * + CAST( + COUNT( ALL - 73 ) AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL + 40 * + CAST ( + COUNT ( ALL - 73 ) AS INTEGER )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6273
SELECT ALL + 93 * + 4 * - 71 + 95 + + 56 DIV - ( 1 ) + - 66 + 60 DIV 93 + 65 * - + 5 AS col2
----
-26764

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL + 93 * + 4 * - 71 + 95 + + 56 / - ( 1 ) + - 66 + 60 / 93 + 65 * - + 5 AS col2
----
-26764

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6274
SELECT - + 36 * COUNT( * ) + - - COUNT( * ) DIV + + COUNT( * ) + + NULLIF ( - NULLIF ( + - 70, 14 ), - 86 )
----
35

skipif mysql # not compatible
query I rowsort label-6274
SELECT - + 36 * COUNT ( * ) + - - COUNT ( * ) / + + COUNT ( * ) + + NULLIF ( - NULLIF ( + - 70, 14 ), - 86 )
----
35

query I rowsort
SELECT - - 43 + - + 39
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT - + COUNT( * ) * - - 7 - + 92 + + + ( + 81 ) + - + 58 + - 11
----
-87

skipif mysql # not compatible
query I rowsort label-6276
SELECT - + COUNT ( * ) * - - 7 - + 92 + + + ( + 81 ) + - + 58 + - 11
----
-87

query I rowsort
SELECT + + COALESCE ( 19, - - 55, - 90 ) + 82
----
101

query I rowsort
SELECT ALL 21 - + - 52
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT + 90 * + COUNT( ALL 13 )
----
90

skipif mysql # not compatible
query I rowsort label-6279
SELECT + 90 * + COUNT ( ALL 13 )
----
90

query I rowsort
SELECT + 4 + 62 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT ALL + 16 * 50 + - 55 + 43 * - COUNT( * ) + + 92 + + + 14 + - - 27 AS col1
----
835

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL + 16 * 50 + - 55 + 43 * - COUNT ( * ) + + 92 + + + 14 + - - 27 AS col1
----
835

query I rowsort
SELECT + ( 80 ) + + 75
----
155

query I rowsort
SELECT ALL 81 - CASE + 96 WHEN + - 64 * + - 11 - + NULLIF ( + + 88, + 51 * + + 40 ) THEN NULL ELSE 21 - 80 * 30 END
----
2460

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6284
SELECT + MIN( + + 28 ) + + 85 + + + 48 + 58 + + + 98 + + 14 DIV - COUNT( * ), COUNT( * ) + + 45 AS col0
----
303
46

skipif mysql # not compatible
query II rowsort label-6284
SELECT + MIN ( + + 28 ) + + 85 + + + 48 + 58 + + + 98 + + 14 / - COUNT ( * ), COUNT ( * ) + + 45 AS col0
----
303
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT - MAX( DISTINCT 0 ) * - - 35 + 25 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-6285
SELECT - MAX ( DISTINCT 0 ) * - - 35 + 25 AS col2
----
25

query I rowsort
SELECT ALL 75 * + 5
----
375

onlyif mysql # DIV for integer division: 
query II rowsort label-6287
SELECT - ( - COALESCE ( - CASE + 67 WHEN - - 26 THEN 49 + + 47 ELSE NULL END, - 17 ) ) col2, 40 + - 77 - - + 68 DIV 77
----
-17
-37

skipif mysql # not compatible
query II rowsort label-6287
SELECT - ( - COALESCE ( - CASE + 67 WHEN - - 26 THEN 49 + + 47 ELSE NULL END, - 17 ) ) col2, 40 + - 77 - - + 68 / 77
----
-17
-37

onlyif mysql # aggregate syntax: 
query III rowsort label-6288
SELECT 82 AS col1, - 43 * + - ( MIN( - + 18 ) ) * - 33 AS col0, - COUNT( * ) + COUNT( * ) AS col2
----
82
25542
0

skipif mysql # not compatible
query III rowsort label-6288
SELECT 82 AS col1, - 43 * + - ( MIN ( - + 18 ) ) * - 33 AS col0, - COUNT ( * ) + COUNT ( * ) AS col2
----
82
25542
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT + COUNT( * ) * ( 35 )
----
35

skipif mysql # not compatible
query I rowsort label-6289
SELECT + COUNT ( * ) * ( 35 )
----
35

query I rowsort
SELECT DISTINCT ( + - NULLIF ( + 71, + - 20 ) )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6291
SELECT ALL MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT ALL + ( + ( - - MAX( 39 ) ) ) * - MAX( ALL + 97 ) AS col0
----
-3783

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL + ( + ( - - MAX ( 39 ) ) ) * - MAX ( ALL + 97 ) AS col0
----
-3783

query I rowsort
SELECT + 63 * + + ( - 47 ) + 17
----
-2944

query I rowsort
SELECT 10 * - 19 col0
----
-190

onlyif mysql # DIV for integer division: 
query I rowsort label-6295
SELECT ALL + 42 DIV - 7 col0
----
-6

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL + 42 / - 7 col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6296
SELECT 17 / + + ( - CAST( NULL AS SIGNED ) ) * - ( + - 71 ) * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6296
SELECT 17 / + + ( - CAST ( NULL AS INTEGER ) ) * - ( + - 71 ) * + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT 42 * + COUNT( * ) - - - 89 col2
----
-47

skipif mysql # not compatible
query I rowsort label-6297
SELECT 42 * + COUNT ( * ) - - - 89 col2
----
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6298
SELECT ALL - 69 * - CASE + 38 WHEN + CAST( NULL AS DECIMAL ) THEN + NULLIF ( + + 29, ( 19 ) ) - + + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL - 69 * - CASE + 38 WHEN + CAST ( NULL AS REAL ) THEN + NULLIF ( + + 29, ( 19 ) ) - + + 99 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6299
SELECT 97 * CAST( + 14 AS SIGNED ) AS col1
----
1358

skipif mysql # not compatible
query I rowsort label-6299
SELECT 97 * CAST ( + 14 AS INTEGER ) AS col1
----
1358

query I rowsort
SELECT 0 * 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT ALL + 13 + + - 95 + COUNT( * ) * 44
----
-38

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL + 13 + + - 95 + COUNT ( * ) * 44
----
-38

query II rowsort
SELECT ALL - 40 AS col0, + 48 AS col0
----
-40
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT DISTINCT + - 37 + + + COUNT( DISTINCT - 56 ) + - 0 * COUNT( * ) + - ( 99 ) * - 66 col2
----
6498

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT + - 37 + + + COUNT ( DISTINCT - 56 ) + - 0 * COUNT ( * ) + - ( 99 ) * - 66 col2
----
6498

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT DISTINCT - COUNT( * ) + - 37 + - - 95 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT - COUNT ( * ) + - 37 + - - 95 AS col0
----
57

query I rowsort
SELECT ALL - 52 + 62 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT - COUNT( 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-6306
SELECT - COUNT ( 23 )
----
-1

query I rowsort
SELECT ALL + - 24 * + 10
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT ALL 5 - - COUNT( * ) + + 34 - - 35 + 36 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL 5 - - COUNT ( * ) + + 34 - - 35 + 36 AS col0
----
111

query I rowsort
SELECT 78 * + NULLIF ( + 10, - 22 )
----
780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6310
SELECT DISTINCT NULLIF ( + + ( - COUNT( * ) ), + CAST( - 32 AS SIGNED ) ) AS col2, + 58 + + + 43 + - + 37 AS col1
----
-1
64

skipif mysql # not compatible
query II rowsort label-6310
SELECT DISTINCT NULLIF ( + + ( - COUNT ( * ) ), + CAST ( - 32 AS INTEGER ) ) AS col2, + 58 + + + 43 + - + 37 AS col1
----
-1
64

query I rowsort
SELECT DISTINCT COALESCE ( 63, + 65 - - 98 * - + 87 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT DISTINCT + + 82 * SUM( ALL 69 ) + - - COUNT( * ) AS col0
----
5659

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT + + 82 * SUM ( ALL 69 ) + - - COUNT ( * ) AS col0
----
5659

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT ALL - + COALESCE ( + + ( + 55 ), - - 40, COUNT( * ) ) - - - COUNT( * ) + + - COALESCE ( - + 95, - - COUNT( * ) ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL - + COALESCE ( + + ( + 55 ), - - 40, COUNT ( * ) ) - - - COUNT ( * ) + + - COALESCE ( - + 95, - - COUNT ( * ) ) AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6314
SELECT ( - ( - COUNT( * ) ) ) DIV - - 18
----
0

skipif mysql # not compatible
query I rowsort label-6314
SELECT ( - ( - COUNT ( * ) ) ) / - - 18
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6315
SELECT ALL COUNT( * ) DIV + ( - ( 80 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL COUNT ( * ) / + ( - ( 80 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6316
SELECT ALL COUNT( * ) DIV 49 col0
----
0

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL COUNT ( * ) / 49 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6317
SELECT 72 DIV - 38 AS col2, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-6317
SELECT 72 / - 38 AS col2, COUNT ( * )
----
-1
1

query I rowsort
SELECT ALL 74 + - ( + - 70 ) - - 49
----
193

onlyif mysql # aggregate syntax: 
query II rowsort label-6319
SELECT 43, 72 - - MIN( 70 ) AS col2
----
43
142

skipif mysql # not compatible
query II rowsort label-6319
SELECT 43, 72 - - MIN ( 70 ) AS col2
----
43
142

query II rowsort
SELECT ALL 64, - 24 AS col2
----
64
-24

query II rowsort
SELECT - 20 AS col2, ( + ( - 38 ) )
----
-20
-38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6322
SELECT CASE + - AVG ( ALL + 26 ) WHEN 18 + + CAST( NULL AS DECIMAL ) * + COUNT( * ) - - COUNT( - + 73 ) - + ( - 32 ) THEN + 27 ELSE - COUNT( * ) + - - 56 END + 94
----
149

skipif mysql # not compatible
query I rowsort label-6322
SELECT CASE + - AVG ( ALL + 26 ) WHEN 18 + + CAST ( NULL AS REAL ) * + COUNT ( * ) - - COUNT ( - + 73 ) - + ( - 32 ) THEN + 27 ELSE - COUNT ( * ) + - - 56 END + 94
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6323
SELECT + 43 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT + 43 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6324
SELECT DISTINCT - 56 + 10 - + 76 + + 39 / - - 19 + - ( 12 ) + + 27 - + CAST( NULL AS SIGNED ) / + - NULLIF ( + 27, + 39 * - 48 * 6 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT - 56 + 10 - + 76 + + 39 / - - 19 + - ( 12 ) + + 27 - + CAST ( NULL AS INTEGER ) / + - NULLIF ( + 27, + 39 * - 48 * 6 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT + COUNT( DISTINCT + ( - 50 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6325
SELECT + COUNT ( DISTINCT + ( - 50 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6326
SELECT + - ( - + 88 ) AS col0, MAX( DISTINCT - 45 )
----
88
-45

skipif mysql # not compatible
query II rowsort label-6326
SELECT + - ( - + 88 ) AS col0, MAX ( DISTINCT - 45 )
----
88
-45

query I rowsort
SELECT ALL ( + 97 ) + - 25 AS col2
----
72

query I rowsort
SELECT ALL - ( + 59 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-6329
SELECT DISTINCT - - 35 AS col0, - COUNT( * )
----
35
-1

skipif mysql # not compatible
query II rowsort label-6329
SELECT DISTINCT - - 35 AS col0, - COUNT ( * )
----
35
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT 1 * - 87 * - 41 + ( + 73 ) * - CASE 26 WHEN COUNT( * ) * + 43 - + ( + 77 ) THEN - 57 * + + COUNT( * ) END * - 38 * + 0 * + 40 * 35 * - - 36 * + 99 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6330
SELECT 1 * - 87 * - 41 + ( + 73 ) * - CASE 26 WHEN COUNT ( * ) * + 43 - + ( + 77 ) THEN - 57 * + + COUNT ( * ) END * - 38 * + 0 * + 40 * 35 * - - 36 * + 99 col1
----
NULL

query II rowsort
SELECT + 57 AS col2, 40 + 62 AS col1
----
57
102

onlyif mysql # aggregate syntax: 
query II rowsort label-6332
SELECT + 68, SUM( DISTINCT 18 ) AS col2
----
68
18

skipif mysql # not compatible
query II rowsort label-6332
SELECT + 68, SUM ( DISTINCT 18 ) AS col2
----
68
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT 24 * 21 * - COUNT( * )
----
-504

skipif mysql # not compatible
query I rowsort label-6333
SELECT 24 * 21 * - COUNT ( * )
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT 67 * + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-6334
SELECT 67 * + COUNT ( * )
----
67

query I rowsort
SELECT 55 + + ( - 2 ) AS col2
----
53

query I rowsort
SELECT ALL + + ( 15 ) * + 62
----
930

query II rowsort
SELECT 39 AS col2, + 53
----
39
53

query I rowsort
SELECT 47 * - + 95 * 81
----
-361665

query III rowsort
SELECT ALL - + 42 AS col0, 98 AS col1, + 99
----
-42
98
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT CASE + 43 WHEN + 24 + + 73 + - ( + 79 ) THEN NULL WHEN - 29 THEN NULL ELSE MAX( - 18 ) END
----
-18

skipif mysql # not compatible
query I rowsort label-6340
SELECT CASE + 43 WHEN + 24 + + 73 + - ( + 79 ) THEN NULL WHEN - 29 THEN NULL ELSE MAX ( - 18 ) END
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6341
SELECT + 88 * - 33 + - - CAST( NULL AS SIGNED ) * + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-6341
SELECT + 88 * - 33 + - - CAST ( NULL AS INTEGER ) * + 36
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6342
SELECT - 25 * 84 + + NULLIF ( + - 2, - + CAST( NULL AS SIGNED ) ) AS col1
----
-2102

skipif mysql # not compatible
query I rowsort label-6342
SELECT - 25 * 84 + + NULLIF ( + - 2, - + CAST ( NULL AS INTEGER ) ) AS col1
----
-2102

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT 57 + + COUNT( + + 41 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-6343
SELECT 57 + + COUNT ( + + 41 ) AS col0
----
58

query I rowsort
SELECT 72 * 95
----
6840

query II rowsort
SELECT 16 * + 48, ( + 33 ) AS col2
----
768
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6346
SELECT ALL MAX( - 62 ), 27 DIV - - 75 * + 48 AS col0
----
-62
0

skipif mysql # not compatible
query II rowsort label-6346
SELECT ALL MAX ( - 62 ), 27 / - - 75 * + 48 AS col0
----
-62
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6347
SELECT + 25 * 78 * + CAST( NULL AS SIGNED ) + 31 + + 95 - + 28 / COUNT( * ) * - + 1 * - NULLIF ( CAST( NULL AS SIGNED ), + - 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6347
SELECT + 25 * 78 * + CAST ( NULL AS INTEGER ) + 31 + + 95 - + 28 / COUNT ( * ) * - + 1 * - NULLIF ( CAST ( NULL AS INTEGER ), + - 45 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6348
SELECT MIN( - 74 ) - + - 35 + + - 93 DIV 62 * COALESCE ( 64, + 21 - 95 + + + ( COUNT( * ) ), + - 39 ) * - 26 * 2 AS col0
----
3289

skipif mysql # not compatible
query I rowsort label-6348
SELECT MIN ( - 74 ) - + - 35 + + - 93 / 62 * COALESCE ( 64, + 21 - 95 + + + ( COUNT ( * ) ), + - 39 ) * - 26 * 2 AS col0
----
3289

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT 66 + - 53 + MAX( DISTINCT - + 94 ) * + - 86
----
8097

skipif mysql # not compatible
query I rowsort label-6349
SELECT 66 + - 53 + MAX ( DISTINCT - + 94 ) * + - 86
----
8097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6350
SELECT DISTINCT 22 + - NULLIF ( - - 82, 26 / + 52 + + 8 * COUNT( * ) ), - 41 * - 10 - ( 22 ) + - CAST( NULL AS SIGNED ) * + 19 AS col1
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-6350
SELECT DISTINCT 22 + - NULLIF ( - - 82, 26 / + 52 + + 8 * COUNT ( * ) ), - 41 * - 10 - ( 22 ) + - CAST ( NULL AS INTEGER ) * + 19 AS col1
----
-60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT ALL SUM( ALL + - COALESCE ( - ( 58 ), + - 93, 44 ) ) + - 85 * 46
----
-3852

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL SUM ( ALL + - COALESCE ( - ( 58 ), + - 93, 44 ) ) + - 85 * 46
----
-3852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6352
SELECT 91 + - ( - CAST( - + 67 AS SIGNED ) ) * - - MAX( 87 ) AS col1
----
-5738

skipif mysql # not compatible
query I rowsort label-6352
SELECT 91 + - ( - CAST ( - + 67 AS INTEGER ) ) * - - MAX ( 87 ) AS col1
----
-5738

onlyif mysql # aggregate syntax: 
query II rowsort label-6353
SELECT ALL MAX( ALL - 2 ) AS col2, + 76 * + - 1 col1
----
-2
-76

skipif mysql # not compatible
query II rowsort label-6353
SELECT ALL MAX ( ALL - 2 ) AS col2, + 76 * + - 1 col1
----
-2
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-6354
SELECT + 63 + 59 DIV 96 + + 86 + - 64 * + + 87
----
-5419

skipif mysql # not compatible
query I rowsort label-6354
SELECT + 63 + 59 / 96 + + 86 + - 64 * + + 87
----
-5419

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6355
SELECT ALL - 41 + 34 DIV + - 52 col0, - 12 + - 65 * + 81 + CASE + MAX( + - 37 ) WHEN + 76 * + 39 + + 3 THEN COUNT( * ) END + - 82 + - 93 AS col2
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-6355
SELECT ALL - 41 + 34 / + - 52 col0, - 12 + - 65 * + 81 + CASE + MAX ( + - 37 ) WHEN + 76 * + 39 + + 3 THEN COUNT ( * ) END + - 82 + - 93 AS col2
----
-41
NULL

query I rowsort
SELECT ALL CASE + COALESCE ( - + 50, + 14 ) WHEN - 88 THEN 37 * + COALESCE ( 29, + + 67 ) * + - 39 / - + 85 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6357
SELECT ALL 21 + + - 69 AS col0, 20 * ( + 17 ) * ( - 50 ) - + CAST( NULL AS SIGNED )
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-6357
SELECT ALL 21 + + - 69 AS col0, 20 * ( + 17 ) * ( - 50 ) - + CAST ( NULL AS INTEGER )
----
-48
NULL

query I rowsort
SELECT - 27 * - 32 * + 2 * COALESCE ( + 88, - - 57 * NULLIF ( 20, + + 12 * - ( 78 ) + + 38 ), + - 64 )
----
152064

query II rowsort
SELECT + 32 * - 58, + 57 AS col0
----
-1856
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6360
SELECT DISTINCT MAX( DISTINCT - + 2 ), CAST( NULL AS SIGNED ) + + 49 AS col2
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-6360
SELECT DISTINCT MAX ( DISTINCT - + 2 ), CAST ( NULL AS INTEGER ) + + 49 AS col2
----
-2
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6361
SELECT DISTINCT 56 + 58 + + 54 DIV + 4 AS col2
----
127

skipif mysql # not compatible
query I rowsort label-6361
SELECT DISTINCT 56 + 58 + + 54 / + 4 AS col2
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-6362
SELECT DISTINCT 73 DIV - + 44
----
-1

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT 73 / - + 44
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT ALL - COUNT( * ) + 38
----
37

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL - COUNT ( * ) + 38
----
37

query I rowsort
SELECT ALL 8 * + - 84 * 32
----
-21504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6365
SELECT ALL CAST( ( - 22 ) AS SIGNED ) + NULLIF ( - 43, + COUNT( * ) )
----
-65

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL CAST ( ( - 22 ) AS INTEGER ) + NULLIF ( - 43, + COUNT ( * ) )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6366
SELECT - MAX( DISTINCT - 2 ) AS col0, 42 DIV - - 92 * - 96 DIV - COUNT( * )
----
2
0

skipif mysql # not compatible
query II rowsort label-6366
SELECT - MAX ( DISTINCT - 2 ) AS col0, 42 / - - 92 * - 96 / - COUNT ( * )
----
2
0

query I rowsort
SELECT - - 73 * - 5 + + - 7 + + + 21 * - 69 AS col0
----
-1821

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT DISTINCT + CASE + MAX( DISTINCT 55 ) WHEN - ( - 55 ) + + 69 * - + 91 + + COUNT( * ) THEN - + 80 WHEN 36 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT + CASE + MAX ( DISTINCT 55 ) WHEN - ( - 55 ) + + 69 * - + 91 + + COUNT ( * ) THEN - + 80 WHEN 36 THEN NULL END
----
NULL

query I rowsort
SELECT + 98 * - 28 * + 15 * - 45 AS col2
----
1852200

query I rowsort
SELECT ALL 38 * - - 79 col0
----
3002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6371
SELECT - - 44 * - - 64 - - + COUNT( DISTINCT - 73 ) + CASE COUNT( * ) WHEN + 29 * + 69 THEN NULL ELSE + - ( + - 93 ) - CAST( NULL AS SIGNED ) * - COALESCE ( - - 69, + + CAST( - 25 AS SIGNED ) + 3 ) * - + 45 * + 0 END AS col0, + 91
----
NULL
91

skipif mysql # not compatible
query II rowsort label-6371
SELECT - - 44 * - - 64 - - + COUNT ( DISTINCT - 73 ) + CASE COUNT ( * ) WHEN + 29 * + 69 THEN NULL ELSE + - ( + - 93 ) - CAST ( NULL AS INTEGER ) * - COALESCE ( - - 69, + + CAST ( - 25 AS INTEGER ) + 3 ) * - + 45 * + 0 END AS col0, + 91
----
NULL
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6372
SELECT + 61 DIV COALESCE ( + + CASE 70 WHEN + COUNT( * ) THEN + 57 WHEN + - 23 * 45 * 98 THEN NULL END, + - CAST( 69 AS SIGNED ) ) * + 62 + + + 17 * - COUNT( * ) - - - 34 - + 5 + + 87 * + 62 + 85
----
5423

skipif mysql # not compatible
query I rowsort label-6372
SELECT + 61 / COALESCE ( + + CASE 70 WHEN + COUNT ( * ) THEN + 57 WHEN + - 23 * 45 * 98 THEN NULL END, + - CAST ( 69 AS INTEGER ) ) * + 62 + + + 17 * - COUNT ( * ) - - - 34 - + 5 + + 87 * + 62 + 85
----
5423

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT DISTINCT COUNT( * ) * 63 / COUNT( * ) + - SUM( + + 36 ) - 78 - 76 - + + CASE - - COUNT( * ) WHEN 20 THEN + - 75 + + 83 - + - 2 + - 32 + - 15 + + MIN( - + ( + + 58 ) ) ELSE NULL END + ( + - 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6373
SELECT DISTINCT COUNT ( * ) * 63 / COUNT ( * ) + - SUM ( + + 36 ) - 78 - 76 - + + CASE - - COUNT ( * ) WHEN 20 THEN + - 75 + + 83 - + - 2 + - 32 + - 15 + + MIN ( - + ( + + 58 ) ) ELSE NULL END + ( + - 32 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6374
SELECT + - 6 * SUM( CAST( - 42 AS SIGNED ) )
----
252

skipif mysql # not compatible
query I rowsort label-6374
SELECT + - 6 * SUM ( CAST ( - 42 AS INTEGER ) )
----
252

query I rowsort
SELECT + 48 * + 68 + 57 AS col1
----
3321

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6376
SELECT DISTINCT - COUNT( * ) DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-6376
SELECT DISTINCT - COUNT ( * ) / 83
----
0

query I rowsort
SELECT - ( + - 73 ) * 30 * + 53
----
116070

query I rowsort
SELECT ALL 67 * + 92
----
6164

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6379
SELECT + - 79 * - 36, - MAX( DISTINCT + 41 ) + ( - 31 ) DIV ( + 80 ) AS col0
----
2844
-41

skipif mysql # not compatible
query II rowsort label-6379
SELECT + - 79 * - 36, - MAX ( DISTINCT + 41 ) + ( - 31 ) / ( + 80 ) AS col0
----
2844
-41

query I rowsort
SELECT 74 * - ( - + 59 ) * + 52 * + 28 + - - 58
----
6356954

onlyif mysql # aggregate syntax: 
query II rowsort label-6381
SELECT DISTINCT - CASE - COALESCE ( - 62, - COUNT( * ) * - + 47, + 2, - MIN( + - 19 ) ) WHEN + - 17 THEN - 66 * - + 45 + - 22 WHEN + COUNT( * ) + - AVG ( + 37 ) * - 50 THEN NULL END * 17 AS col1, + 5
----
NULL
5

skipif mysql # not compatible
query II rowsort label-6381
SELECT DISTINCT - CASE - COALESCE ( - 62, - COUNT ( * ) * - + 47, + 2, - MIN ( + - 19 ) ) WHEN + - 17 THEN - 66 * - + 45 + - 22 WHEN + COUNT ( * ) + - AVG ( + 37 ) * - 50 THEN NULL END * 17 AS col1, + 5
----
NULL
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6382
SELECT DISTINCT + 86 * + 25 * - 95 * 21 + + - 76 AS col0, COUNT( * ) DIV + 89 + + 80 col1
----
-4289326
80

skipif mysql # not compatible
query II rowsort label-6382
SELECT DISTINCT + 86 * + 25 * - 95 * 21 + + - 76 AS col0, COUNT ( * ) / + 89 + + 80 col1
----
-4289326
80

onlyif mysql # aggregate syntax: 
query II rowsort label-6383
SELECT COUNT( * ) col0, + 78 + + 36 * - 29
----
1
-966

skipif mysql # not compatible
query II rowsort label-6383
SELECT COUNT ( * ) col0, + 78 + + 36 * - 29
----
1
-966

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6384
SELECT DISTINCT - ( + 49 ) * CAST( NULL AS DECIMAL ) + - 14 + + 3 / - 43 AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6384
SELECT DISTINCT - ( + 49 ) * CAST ( NULL AS REAL ) + - 14 + + 3 / - 43 AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6385
SELECT DISTINCT NULLIF ( - + ( + + COUNT( + - CAST( NULL AS SIGNED ) ) ), COUNT( * ) + - + 78 * - CAST( NULL AS SIGNED ) / + 49 )
----
0

skipif mysql # not compatible
query I rowsort label-6385
SELECT DISTINCT NULLIF ( - + ( + + COUNT ( + - CAST ( NULL AS INTEGER ) ) ), COUNT ( * ) + - + 78 * - CAST ( NULL AS INTEGER ) / + 49 )
----
0

query I rowsort
SELECT - 39 * - - 48 AS col2
----
-1872

query I rowsort
SELECT + 51 - + 82
----
-31

query I rowsort
SELECT ALL + 83 + - 33
----
50

query I rowsort
SELECT DISTINCT 50 + - 37
----
13

query I rowsort
SELECT ALL - 10 * - - 89 AS col0
----
-890

query I rowsort
SELECT DISTINCT ( - - 82 )
----
82

query I rowsort
SELECT DISTINCT - 1 * + 29 AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6393
SELECT ALL CAST( - 48 AS SIGNED ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL CAST ( - 48 AS INTEGER ) AS col1
----
-48

query I rowsort
SELECT ALL - NULLIF ( - 12, - 97 ) * + 42 AS col0
----
504

query II rowsort
SELECT 5, + 0 AS col1
----
5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT - COUNT( * ) - + 47 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-6396
SELECT - COUNT ( * ) - + 47 AS col2
----
-48

query I rowsort
SELECT DISTINCT - 23 * - 63 + - - 58
----
1507

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT ALL - + 17 - - + COUNT( DISTINCT + - 62 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL - + 17 - - + COUNT ( DISTINCT + - 62 ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT + + AVG ( - - 79 ) * - - 85 - + - CASE - 27 WHEN + COUNT( * ) * + 74 + 61 THEN + 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT + + AVG ( - - 79 ) * - - 85 - + - CASE - 27 WHEN + COUNT ( * ) * + 74 + 61 THEN + 10 END
----
NULL

query II rowsort
SELECT DISTINCT - 63 * + 90 + 89 AS col0, 34 AS col2
----
-5581
34

query II rowsort
SELECT ALL + 35 AS col0, - 18 col1
----
35
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6402
SELECT ALL 58 / 18 + - CAST( NULL AS DECIMAL ) * + ( - 56 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6402
SELECT ALL 58 / 18 + - CAST ( NULL AS REAL ) * + ( - 56 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6403
SELECT + 3, ( + ( - - 42 ) ) * + 95 + 29 + + COUNT( * ) AS col2
----
3
4020

skipif mysql # not compatible
query II rowsort label-6403
SELECT + 3, ( + ( - - 42 ) ) * + 95 + 29 + + COUNT ( * ) AS col2
----
3
4020

onlyif mysql # DIV for integer division: 
query I rowsort label-6404
SELECT ALL + 80 DIV 4 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL + 80 / 4 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT + 55 * - 3 + - 59 + - NULLIF ( - CASE 44 WHEN + - 47 THEN - - 46 ELSE NULL END, - + 2 + - + CASE + 22 WHEN - 97 * + 32 THEN NULL WHEN + + COUNT( * ) * 32 + 97 * + + 54 / - COUNT( * ) THEN 26 + - 82 * - 43 ELSE 81 * - 40 + - 6 + - + 14 + 90 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT + 55 * - 3 + - 59 + - NULLIF ( - CASE 44 WHEN + - 47 THEN - - 46 ELSE NULL END, - + 2 + - + CASE + 22 WHEN - 97 * + 32 THEN NULL WHEN + + COUNT ( * ) * 32 + 97 * + + 54 / - COUNT ( * ) THEN 26 + - 82 * - 43 ELSE 81 * - 40 + - 6 + - + 14 + 90 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6406
SELECT + 68 * - 86 + CASE + 17 WHEN + + 85 * + 54 THEN + 7 END * CAST( + COUNT( * ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6406
SELECT + 68 * - 86 + CASE + 17 WHEN + + 85 * + 54 THEN + 7 END * CAST ( + COUNT ( * ) AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL + 88 * + 18 AS col1
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT 83 * - COUNT( * ) + + 3 * - 76 - - NULLIF ( ( + 46 ), + ( + 74 ) ) + - - 75
----
-190

skipif mysql # not compatible
query I rowsort label-6408
SELECT 83 * - COUNT ( * ) + + 3 * - 76 - - NULLIF ( ( + 46 ), + ( + 74 ) ) + - - 75
----
-190

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6409
SELECT + 37 AS col1, + NULLIF ( - 50, - CAST( - + 22 AS DECIMAL ) ) AS col0
----
37
-50

skipif mysql # not compatible
query II rowsort label-6409
SELECT + 37 AS col1, + NULLIF ( - 50, - CAST ( - + 22 AS REAL ) ) AS col0
----
37
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6410
SELECT + 17 DIV - 39 + - - MIN( ALL - 58 ) DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-6410
SELECT + 17 / - 39 + - - MIN ( ALL - 58 ) / + 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT + COUNT( ALL 85 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6411
SELECT + COUNT ( ALL 85 ) AS col0
----
1

query I rowsort
SELECT ALL + 39 * - 79
----
-3081

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT + - COUNT( * ) + - 92 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-6413
SELECT + - COUNT ( * ) + - 92 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT ALL 17 * - 26 + - MAX( 19 ) * - - 14 AS col2
----
-708

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL 17 * - 26 + - MAX ( 19 ) * - - 14 AS col2
----
-708

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT ALL + 33 * - MIN( 93 ) + - + COUNT( 55 ) AS col2
----
-3070

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL + 33 * - MIN ( 93 ) + - + COUNT ( 55 ) AS col2
----
-3070

query I rowsort
SELECT ALL 45 + - + ( 64 )
----
-19

query I rowsort
SELECT 17 * - 78
----
-1326

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT ALL COUNT( DISTINCT 57 ) * - - ( - 64 ) * + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL COUNT ( DISTINCT 57 ) * - - ( - 64 ) * + COUNT ( * )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT NULLIF ( + 65, 42 * - AVG ( ALL 26 ) - COUNT( 48 ) * - 46 ) * ( + - 31 ) AS col1
----
-2015

skipif mysql # not compatible
query I rowsort label-6419
SELECT NULLIF ( + 65, 42 * - AVG ( ALL 26 ) - COUNT ( 48 ) * - 46 ) * ( + - 31 ) AS col1
----
-2015

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6420
SELECT ALL - CAST( NULL AS SIGNED ) - + 29 AS col1, NULLIF ( + ( + 60 ), - 73 ) AS col0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-6420
SELECT ALL - CAST ( NULL AS INTEGER ) - + 29 AS col1, NULLIF ( + ( + 60 ), - 73 ) AS col0
----
NULL
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6421
SELECT 26 + - COUNT( * ) AS col0, 47 AS col0
----
25
47

skipif mysql # not compatible
query II rowsort label-6421
SELECT 26 + - COUNT ( * ) AS col0, 47 AS col0
----
25
47

query I rowsort
SELECT CASE + ( + - 59 ) WHEN + 47 + 21 THEN ( - - 23 ) WHEN - 19 THEN NULL END * + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT 35 + - COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-6423
SELECT 35 + - COUNT ( * ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT 45 + - NULLIF ( 68, + COUNT( * ) * - NULLIF ( + ( - 29 ), - + 27 ) + 70 * - 83 / ( - - 50 ) + - 43 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-6424
SELECT 45 + - NULLIF ( 68, + COUNT ( * ) * - NULLIF ( + ( - 29 ), - + 27 ) + 70 * - 83 / ( - - 50 ) + - 43 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-6425
SELECT - MAX( DISTINCT - 54 ), 41 * + 44 AS col1
----
54
1804

skipif mysql # not compatible
query II rowsort label-6425
SELECT - MAX ( DISTINCT - 54 ), 41 * + 44 AS col1
----
54
1804

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT 60 + NULLIF ( COUNT( * ), 41 ) * - - 5
----
65

skipif mysql # not compatible
query I rowsort label-6426
SELECT 60 + NULLIF ( COUNT ( * ), 41 ) * - - 5
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6427
SELECT CAST( - ( - + 86 ) AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-6427
SELECT CAST ( - ( - + 86 ) AS INTEGER )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT DISTINCT - + 15 * - CASE - 55 WHEN 69 * 27 THEN + COUNT( * ) + - - COUNT( * ) + + - 70 WHEN + - 94 * 35 THEN NULL ELSE NULL END * - + 21 * 54 * + + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT - + 15 * - CASE - 55 WHEN 69 * 27 THEN + COUNT ( * ) + - - COUNT ( * ) + + - 70 WHEN + - 94 * 35 THEN NULL ELSE NULL END * - + 21 * 54 * + + 34 AS col1
----
NULL

query I rowsort
SELECT 53 * - 32 - 68
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT - MAX( ALL - 84 ) * - 64 + + 28 + 67 AS col1
----
-5281

skipif mysql # not compatible
query I rowsort label-6430
SELECT - MAX ( ALL - 84 ) * - 64 + + 28 + 67 AS col1
----
-5281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6431
SELECT + 14 DIV + 83 * COUNT( * ) * + - 17 - + 4 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6431
SELECT + 14 / + 83 * COUNT ( * ) * + - 17 - + 4 AS col2
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6432
SELECT ALL + + CASE - 62 WHEN + + 13 THEN + 7 * COUNT( * ) WHEN 14 THEN 8 + 64 * + - 77 DIV + + 89 ELSE 23 END + 91
----
114

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL + + CASE - 62 WHEN + + 13 THEN + 7 * COUNT ( * ) WHEN 14 THEN 8 + 64 * + - 77 / + + 89 ELSE 23 END + 91
----
114

query I rowsort
SELECT DISTINCT - NULLIF ( 56, + 62 * 55 + + + 5 ) + 83 AS col1
----
27

query II rowsort
SELECT ALL 76 + 31, + 68 col1
----
107
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6435
SELECT ALL - 46 + 57 + - 22 * NULLIF ( CAST( NULL AS SIGNED ), - 55 + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL - 46 + 57 + - 22 * NULLIF ( CAST ( NULL AS INTEGER ), - 55 + 24 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6436
SELECT ALL COUNT( * ) * + 42 DIV - COUNT( * ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL COUNT ( * ) * + 42 / - COUNT ( * ) AS col0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6437
SELECT DISTINCT + 28 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6437
SELECT DISTINCT + 28 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6438
SELECT 44, + 50 + - 73 * + + COUNT( * ) * - 23 * + - 42 + + - 48 AS col1
----
44
-70516

skipif mysql # not compatible
query II rowsort label-6438
SELECT 44, + 50 + - 73 * + + COUNT ( * ) * - 23 * + - 42 + + - 48 AS col1
----
44
-70516

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT - MAX( ALL - 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-6439
SELECT - MAX ( ALL - 56 ) AS col0
----
56

query I rowsort
SELECT ( - CASE + 41 WHEN CASE - 82 WHEN 74 THEN + 31 - - - 5 END THEN - 62 * + ( - 60 ) WHEN - 76 THEN + ( + - 82 ) END ) * - 82 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT 16 - + + COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-6441
SELECT 16 - + + COUNT ( * ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6442
SELECT - COUNT( * ) AS col0, - ( 47 )
----
-1
-47

skipif mysql # not compatible
query II rowsort label-6442
SELECT - COUNT ( * ) AS col0, - ( 47 )
----
-1
-47

query I rowsort
SELECT NULLIF ( - + 75, 64 ) + - + 73 AS col1
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6444
SELECT ALL CAST( NULL AS SIGNED ) * + 60 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL CAST ( NULL AS INTEGER ) * + 60 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT 29 * + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-6445
SELECT 29 * + COUNT ( * )
----
29

query I rowsort
SELECT DISTINCT - 82 * 19
----
-1558

query II rowsort
SELECT DISTINCT 70 AS col2, 97 * + 36 * - + 75
----
70
-261900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6448
SELECT DISTINCT CAST( 16 AS SIGNED ) + - - COALESCE ( - 74, 83 * + COUNT( * ) ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT CAST ( 16 AS INTEGER ) + - - COALESCE ( - 74, 83 * + COUNT ( * ) ) AS col1
----
-58

query I rowsort
SELECT - 44 + 75
----
31

query I rowsort
SELECT 67 - + + 19 AS col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6451
SELECT 44 DIV COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-6451
SELECT 44 / COUNT ( * )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6452
SELECT COUNT( * ) + - 83 DIV 3 - - 2 DIV - - 37 + + - 72 * + 82
----
-5930

skipif mysql # not compatible
query I rowsort label-6452
SELECT COUNT ( * ) + - 83 / 3 - - 2 / - - 37 + + - 72 * + 82
----
-5930

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT DISTINCT 59 + + - COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT 59 + + - COUNT ( * ) AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6454
SELECT DISTINCT COUNT( * ) * MIN( - 12 ) + - 75 + - + CAST( + 20 AS SIGNED ) AS col2
----
-107

skipif mysql # not compatible
query I rowsort label-6454
SELECT DISTINCT COUNT ( * ) * MIN ( - 12 ) + - 75 + - + CAST ( + 20 AS INTEGER ) AS col2
----
-107

query I rowsort
SELECT DISTINCT - ( + 88 ) AS col1
----
-88

query I rowsort
SELECT DISTINCT + ( 62 ) * + ( - 17 ) AS col1
----
-1054

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6457
SELECT DISTINCT - 37 * CAST( COUNT( * ) AS SIGNED ) + 39 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT - 37 * CAST ( COUNT ( * ) AS INTEGER ) + 39 AS col2
----
2

query I rowsort
SELECT - + 67 + + 80 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6459
SELECT + CASE + - 48 WHEN + 20 THEN NULL WHEN - 93 - + 64 * + - 77 - - - NULLIF ( + - 36, 6 ) THEN - + 13 * 51 * + 71 / COALESCE ( + + 65, - 33 ) * - 54 + - + 66 * + NULLIF ( + - 92, 96 ) * - 17 + NULLIF ( ( COUNT( - 97 ) ), - 76 ) - 65 + + 41 * + + CAST( NULL AS SIGNED ) + + 1 ELSE NULL END * 44 + + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6459
SELECT + CASE + - 48 WHEN + 20 THEN NULL WHEN - 93 - + 64 * + - 77 - - - NULLIF ( + - 36, 6 ) THEN - + 13 * 51 * + 71 / COALESCE ( + + 65, - 33 ) * - 54 + - + 66 * + NULLIF ( + - 92, 96 ) * - 17 + NULLIF ( ( COUNT ( - 97 ) ), - 76 ) - 65 + + 41 * + + CAST ( NULL AS INTEGER ) + + 1 ELSE NULL END * 44 + + 78 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT ALL 9 * - 38 + - + 22 * - 87 * - - 11 + + COUNT( * ) * + 99 AS col2
----
20811

skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL 9 * - 38 + - + 22 * - 87 * - - 11 + + COUNT ( * ) * + 99 AS col2
----
20811

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6461
SELECT - CAST( NULL AS DECIMAL ) * - - 35 / + + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6461
SELECT - CAST ( NULL AS REAL ) * - - 35 / + + 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT ALL 46 * + 34 * - 84 - - 27 * COUNT( * )
----
-131349

skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL 46 * + 34 * - 84 - - 27 * COUNT ( * )
----
-131349

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT ALL - 2 * 97 - + NULLIF ( - - 85, + - 78 * 50 + - CASE WHEN NOT COUNT( ALL + 49 ) IS NOT NULL THEN + + 37 END ) + + + ( 27 ) + - 34 + + - 40
----
-326

skipif mysql # not compatible
query I rowsort label-6463
SELECT ALL - 2 * 97 - + NULLIF ( - - 85, + - 78 * 50 + - CASE WHEN NOT COUNT ( ALL + 49 ) IS NOT NULL THEN + + 37 END ) + + + ( 27 ) + - 34 + + - 40
----
-326

onlyif mysql # DIV for integer division: 
query I rowsort label-6464
SELECT ALL 92 DIV + + 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL 92 / + + 95 AS col2
----
0

query I rowsort
SELECT - 98 + + 50
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT ALL + SUM( - - 63 ) col0
----
63

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL + SUM ( - - 63 ) col0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-6467
SELECT DISTINCT - 70 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT - 70 / 85
----
0

query I rowsort
SELECT - 44 * - 55 AS col2
----
2420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6469
SELECT + 50 + + + 74 DIV + CASE - - 15 WHEN - + ( COUNT( * ) ) THEN NULL ELSE - 80 END AS col1
----
50

skipif mysql # not compatible
query I rowsort label-6469
SELECT + 50 + + + 74 / + CASE - - 15 WHEN - + ( COUNT ( * ) ) THEN NULL ELSE - 80 END AS col1
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6470
SELECT - 62 DIV + 57 col2
----
-1

skipif mysql # not compatible
query I rowsort label-6470
SELECT - 62 / + 57 col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6471
SELECT + 68 DIV - - COALESCE ( - CASE - - 44 WHEN + + COUNT( * ) - ( - 29 ) THEN NULL WHEN - 7 THEN - + 54 + - MAX( ALL - 75 ) ELSE NULL END, - - 73, - 41 ) * + - MAX( 36 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6471
SELECT + 68 / - - COALESCE ( - CASE - - 44 WHEN + + COUNT ( * ) - ( - 29 ) THEN NULL WHEN - 7 THEN - + 54 + - MAX ( ALL - 75 ) ELSE NULL END, - - 73, - 41 ) * + - MAX ( 36 ) AS col0
----
0

query II rowsort
SELECT - 38 + + 9 AS col2, 50 AS col2
----
-29
50

query I rowsort
SELECT ALL ( + 80 ) * + 54
----
4320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6474
SELECT DISTINCT CASE + 67 WHEN + - 20 THEN + - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT CASE + 67 WHEN + - 20 THEN + - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6475
SELECT DISTINCT COALESCE ( 64, + 36 + - - 10 + + + 53 + - 71 - + COUNT( * ) * - 57 * + 28 * - - 43 * 30 DIV + - 29 )
----
64

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT COALESCE ( 64, + 36 + - - 10 + + + 53 + - 71 - + COUNT ( * ) * - 57 * + 28 * - - 43 * 30 / + - 29 )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6476
SELECT ALL + + 81 * - 74, + 56 * + COUNT( * ) AS col2
----
-5994
56

skipif mysql # not compatible
query II rowsort label-6476
SELECT ALL + + 81 * - 74, + 56 * + COUNT ( * ) AS col2
----
-5994
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6477
SELECT + COALESCE ( + ( + 97 ), - 67 DIV CASE 85 WHEN - NULLIF ( - 82, - 50 DIV + - 2 ) * + - CAST( + + MAX( DISTINCT + - 49 ) AS SIGNED ) THEN - COALESCE ( - - ( - + 32 ), 11 * CAST( + + 17 AS SIGNED ) + + - 48 ) - - 39 + + ( + + 13 ) - + + 84 END - 87, + CASE COUNT( * ) WHEN + AVG ( ALL 14 ) THEN - 42 + - 69 WHEN - 15 * - 60 THEN NULL END )
----
97

skipif mysql # not compatible
query I rowsort label-6477
SELECT + COALESCE ( + ( + 97 ), - 67 / CASE 85 WHEN - NULLIF ( - 82, - 50 / + - 2 ) * + - CAST ( + + MAX ( DISTINCT + - 49 ) AS INTEGER ) THEN - COALESCE ( - - ( - + 32 ), 11 * CAST ( + + 17 AS INTEGER ) + + - 48 ) - - 39 + + ( + + 13 ) - + + 84 END - 87, + CASE COUNT ( * ) WHEN + AVG ( ALL 14 ) THEN - 42 + - 69 WHEN - 15 * - 60 THEN NULL END )
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6478
SELECT 12 AS col1, 99 * - + COUNT( * ) AS col0
----
12
-99

skipif mysql # not compatible
query II rowsort label-6478
SELECT 12 AS col1, 99 * - + COUNT ( * ) AS col0
----
12
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6479
SELECT + 7 * + 9 * + - CAST( - 6 AS SIGNED ), 9 AS col1
----
378
9

skipif mysql # not compatible
query II rowsort label-6479
SELECT + 7 * + 9 * + - CAST ( - 6 AS INTEGER ), 9 AS col1
----
378
9

query I rowsort
SELECT ALL 82 + - 22 AS col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6481
SELECT + + 23 + - 42 * 35 DIV - - 8
----
-160

skipif mysql # not compatible
query I rowsort label-6481
SELECT + + 23 + - 42 * 35 / - - 8
----
-160

onlyif mysql # DIV for integer division: 
query I rowsort label-6482
SELECT ALL 4 DIV - 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6482
SELECT ALL 4 / - 16 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT DISTINCT - COUNT( + 51 ) + 89
----
88

skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT - COUNT ( + 51 ) + 89
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-6484
SELECT ALL + - 27 + - - COUNT( + + 39 ) + - 53 AS col0, - 92 * + COUNT( * ) AS col1
----
-79
-92

skipif mysql # not compatible
query II rowsort label-6484
SELECT ALL + - 27 + - - COUNT ( + + 39 ) + - 53 AS col0, - 92 * + COUNT ( * ) AS col1
----
-79
-92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6485
SELECT DISTINCT COALESCE ( + 71, 44 DIV + CAST( NULL AS SIGNED ) + + 31 ) * - + 28 col2, + CASE + 49 WHEN 17 THEN NULL WHEN - 67 + + + 73 + + - 94 + - - 76 * - 15 THEN NULL WHEN 39 THEN + 87 WHEN + 62 THEN NULL END col0, + + 82 AS col2
----
-1988
NULL
82

skipif mysql # not compatible
query III rowsort label-6485
SELECT DISTINCT COALESCE ( + 71, 44 / + CAST ( NULL AS INTEGER ) + + 31 ) * - + 28 col2, + CASE + 49 WHEN 17 THEN NULL WHEN - 67 + + + 73 + + - 94 + - - 76 * - 15 THEN NULL WHEN 39 THEN + 87 WHEN + 62 THEN NULL END col0, + + 82 AS col2
----
-1988
NULL
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6486
SELECT + 92 DIV - 44 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6486
SELECT + 92 / - 44 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT ALL - MAX( + 47 ) * 37
----
-1739

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL - MAX ( + 47 ) * 37
----
-1739

query II rowsort
SELECT ALL + 77 + 7 AS col1, COALESCE ( - COALESCE ( + 66, - 65 ), - ( + + 69 ), + + ( + 4 ) )
----
84
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-6489
SELECT DISTINCT 84 AS col2, COUNT( ALL - + 98 )
----
84
1

skipif mysql # not compatible
query II rowsort label-6489
SELECT DISTINCT 84 AS col2, COUNT ( ALL - + 98 )
----
84
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6490
SELECT ALL - 72 AS col1, - COUNT( * )
----
-72
-1

skipif mysql # not compatible
query II rowsort label-6490
SELECT ALL - 72 AS col1, - COUNT ( * )
----
-72
-1

query I rowsort
SELECT + 23 + 30
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT DISTINCT 93 + + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT 93 + + COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-6493
SELECT + 51, COUNT( * ) + - ( - - 52 ) + - 85 AS col0
----
51
-136

skipif mysql # not compatible
query II rowsort label-6493
SELECT + 51, COUNT ( * ) + - ( - - 52 ) + - 85 AS col0
----
51
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT + COUNT( * ) * + - 85 + - - 0 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-6494
SELECT + COUNT ( * ) * + - 85 + - - 0 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT + + COUNT( * ) * + + 57
----
57

skipif mysql # not compatible
query I rowsort label-6495
SELECT + + COUNT ( * ) * + + 57
----
57

query II rowsort
SELECT - 1 AS col1, 15 - 80
----
-1
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT + ( - + COUNT( ALL - 43 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6497
SELECT + ( - + COUNT ( ALL - 43 ) )
----
-1

query I rowsort
SELECT + ( - + 49 ) AS col1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6499
SELECT + CAST( - - 27 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-6499
SELECT + CAST ( - - 27 AS INTEGER )
----
27

query I rowsort
SELECT ( + + 51 ) col2
----
51

query I rowsort
SELECT ALL 80 * - 64
----
-5120

query I rowsort
SELECT + 21 * 42
----
882

query I rowsort
SELECT - 27 * - + 72
----
1944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6504
SELECT CASE 26 WHEN - 36 THEN - COUNT( * ) ELSE 51 * + CAST( + 3 AS SIGNED ) END
----
153

skipif mysql # not compatible
query I rowsort label-6504
SELECT CASE 26 WHEN - 36 THEN - COUNT ( * ) ELSE 51 * + CAST ( + 3 AS INTEGER ) END
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT COALESCE ( 63, - 48, - 23 * COUNT( * ) + + 78 )
----
63

skipif mysql # not compatible
query I rowsort label-6505
SELECT COALESCE ( 63, - 48, - 23 * COUNT ( * ) + + 78 )
----
63

query I rowsort
SELECT ALL + CASE + 29 WHEN + 26 - - - 6 THEN NULL ELSE - + 60 END col0
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-6507
SELECT ALL + MAX( + + 71 ) AS col0, - 85 * + - 51
----
71
4335

skipif mysql # not compatible
query II rowsort label-6507
SELECT ALL + MAX ( + + 71 ) AS col0, - 85 * + - 51
----
71
4335

onlyif mysql # aggregate syntax: 
query II rowsort label-6508
SELECT DISTINCT 79 * - - 42, - SUM( DISTINCT + 27 ) * - + COUNT( * ) col0
----
3318
27

skipif mysql # not compatible
query II rowsort label-6508
SELECT DISTINCT 79 * - - 42, - SUM ( DISTINCT + 27 ) * - + COUNT ( * ) col0
----
3318
27

query I rowsort
SELECT - 91 * + - 2
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT DISTINCT + ( + + ( - COUNT( 58 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6510
SELECT DISTINCT + ( + + ( - COUNT ( 58 ) ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6511
SELECT ALL + CAST( + 5 AS SIGNED ) * 48 * - 63 + + - COALESCE ( - COUNT( * ), - 16 + - 19 ) * COUNT( * ) * 25 - + - 13 * 82
----
-14029

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL + CAST ( + 5 AS INTEGER ) * 48 * - 63 + + - COALESCE ( - COUNT ( * ), - 16 + - 19 ) * COUNT ( * ) * 25 - + - 13 * 82
----
-14029

query I rowsort
SELECT COALESCE ( + + 42, + 22 * ( 13 ) * + 84 ) col2
----
42

query I rowsort
SELECT - 13 + + 77 - - - 3 + + 85
----
146

query I rowsort
SELECT - 83 * 86 + + - 76 col2
----
-7214

onlyif mysql # DIV for integer division: 
query I rowsort label-6515
SELECT ALL - 96 DIV + - 74 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL - 96 / + - 74 AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6516
SELECT - 26 + + 87 AS col1, - 81 DIV 80 AS col2
----
61
-1

skipif mysql # not compatible
query II rowsort label-6516
SELECT - 26 + + 87 AS col1, - 81 / 80 AS col2
----
61
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6517
SELECT DISTINCT - 63 DIV 37 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT - 63 / 37 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT - + COUNT( * ) + + 52 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-6518
SELECT - + COUNT ( * ) + + 52 AS col2
----
51

query I rowsort
SELECT ALL + + ( + 0 ) + 38 * 8 AS col2
----
304

query I rowsort
SELECT ALL - 61 + 71 * + 74 AS col2
----
5193

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT - + ( - + CASE + 62 WHEN - 88 * - 98 + - - ( COUNT( * ) ) - - - 97 * - COUNT( * ) THEN - - ( - 78 ) END ) + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT - + ( - + CASE + 62 WHEN - 88 * - 98 + - - ( COUNT ( * ) ) - - - 97 * - COUNT ( * ) THEN - - ( - 78 ) END ) + - 31
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6522
SELECT ALL + 81 + CASE WHEN NULL IS NOT NULL THEN - CASE 90 WHEN + + 7 THEN - - CASE - - COALESCE ( + + COALESCE ( + CAST( NULL AS SIGNED ), + 8 ), + COALESCE ( + 69, - 46 ) + - + 54 * + + NULLIF ( + COUNT( * ), - 8 ) DIV 20 - - SUM( + 2 ) ) WHEN - 30 + 87 * + COALESCE ( 28, - 53 * + - NULLIF ( + 99, - - COUNT( * ) * + + 80 ) + - 90 + - - 79 ) THEN 19 WHEN 56 + 32 THEN NULL END WHEN + 75 THEN + CASE - 5 WHEN + 34 * + COUNT( * ) THEN + 73 WHEN CASE COUNT( * ) WHEN 6 + 71 * - 11 THEN + 99 + - 78 WHEN + 83 THEN 16 ELSE + 43 + 55 END THEN 56 ELSE NULL END + + MAX( ALL + 83 ) END WHEN NOT 24 + 21 IS NOT NULL THEN 85 ELSE 67 DIV - 81 END DIV - 43
----
81

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL + 81 + CASE WHEN NULL IS NOT NULL THEN - CASE 90 WHEN + + 7 THEN - - CASE - - COALESCE ( + + COALESCE ( + CAST ( NULL AS INTEGER ), + 8 ), + COALESCE ( + 69, - 46 ) + - + 54 * + + NULLIF ( + COUNT ( * ), - 8 ) / 20 - - SUM ( + 2 ) ) WHEN - 30 + 87 * + COALESCE ( 28, - 53 * + - NULLIF ( + 99, - - COUNT ( * ) * + + 80 ) + - 90 + - - 79 ) THEN 19 WHEN 56 + 32 THEN NULL END WHEN + 75 THEN + CASE - 5 WHEN + 34 * + COUNT ( * ) THEN + 73 WHEN CASE COUNT ( * ) WHEN 6 + 71 * - 11 THEN + 99 + - 78 WHEN + 83 THEN 16 ELSE + 43 + 55 END THEN 56 ELSE NULL END + + MAX ( ALL + 83 ) END WHEN NOT 24 + 21 IS NOT NULL THEN 85 ELSE 67 / - 81 END / - 43
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6523
SELECT ALL - COUNT( * ) + + - 38 - + 29 DIV - 65 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL - COUNT ( * ) + + - 38 - + 29 / - 65 AS col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6524
SELECT - 99 * CAST( NULL AS SIGNED ), - 24 AS col0
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-6524
SELECT - 99 * CAST ( NULL AS INTEGER ), - 24 AS col0
----
NULL
-24

query I rowsort
SELECT 56 + ( 80 )
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6526
SELECT - CAST( NULL AS SIGNED ) - - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6526
SELECT - CAST ( NULL AS INTEGER ) - - 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT 45 + - COUNT( ALL - ( + 50 ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-6527
SELECT 45 + - COUNT ( ALL - ( + 50 ) ) AS col1
----
44

query I rowsort
SELECT ALL ( + 33 ) AS col0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6529
SELECT - + CAST( + 76 AS SIGNED ), 57 AS col2
----
-76
57

skipif mysql # not compatible
query II rowsort label-6529
SELECT - + CAST ( + 76 AS INTEGER ), 57 AS col2
----
-76
57

query I rowsort
SELECT + 79 + - + 75
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6531
SELECT COUNT( * ) + 28 DIV - 15
----
0

skipif mysql # not compatible
query I rowsort label-6531
SELECT COUNT ( * ) + 28 / - 15
----
0

query II rowsort
SELECT + 88, + 54 AS col2
----
88
54

query II rowsort
SELECT ALL - 46 AS col1, - 11 AS col2
----
-46
-11

query I rowsort
SELECT DISTINCT 45 * + 38
----
1710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6535
SELECT COUNT( * ) DIV + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6535
SELECT COUNT ( * ) / + 84 AS col1
----
0

query II rowsort
SELECT 52 * + - 62 + + - 15 AS col0, 90 + 89
----
-3239
179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6537
SELECT COUNT( * ) DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-6537
SELECT COUNT ( * ) / + 64
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6538
SELECT NULLIF ( - ( - COUNT( * ) ), + NULLIF ( - 95, - 8 DIV + COUNT( - - 69 ) + - + 77 + - - 38 * 50 + - 46 ) ) DIV - + 28 + 30 - - - 87 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-6538
SELECT NULLIF ( - ( - COUNT ( * ) ), + NULLIF ( - 95, - 8 / + COUNT ( - - 69 ) + - + 77 + - - 38 * 50 + - 46 ) ) / - + 28 + 30 - - - 87 AS col1
----
-57

query I rowsort
SELECT 51 - + 52
----
-1

query I rowsort
SELECT 26 + + - 67 AS col1
----
-41

query II rowsort
SELECT ALL - 64 AS col0, ( - 3 ) + - 75 * + + 48
----
-64
-3603

query I rowsort
SELECT DISTINCT 38 + - 4 - + 54 + 62
----
42

query II rowsort
SELECT ALL - 9 AS col2, + 81
----
-9
81

query I rowsort
SELECT 45 * + - 72 * - 33
----
106920

query I rowsort
SELECT ALL 73 + 8 AS col0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6546
SELECT DISTINCT ( - 37 ) + + - 10, + 43 + - COUNT( * ) - 70 + + - ( - + 66 ) col2
----
-47
38

skipif mysql # not compatible
query II rowsort label-6546
SELECT DISTINCT ( - 37 ) + + - 10, + 43 + - COUNT ( * ) - 70 + + - ( - + 66 ) col2
----
-47
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6547
SELECT ALL CAST( - 58 AS SIGNED ) + - 60, 23 - 53 * 85 AS col1
----
-118
-4482

skipif mysql # not compatible
query II rowsort label-6547
SELECT ALL CAST ( - 58 AS INTEGER ) + - 60, 23 - 53 * 85 AS col1
----
-118
-4482

query I rowsort
SELECT - 80 + - 7 col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6549
SELECT + CASE 23 WHEN + 97 * CASE - COUNT( * ) WHEN + + 48 / - ( 44 ) + COUNT( * ) * 5 THEN + - 9 END / - 0 / COUNT( * ) + - 80 THEN NULL WHEN + CAST( - CASE - MAX( DISTINCT + 82 ) WHEN 80 THEN NULL WHEN + + 57 - + - 64 THEN 25 * + - 69 END AS SIGNED ) THEN NULL ELSE - + 56 END AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-6549
SELECT + CASE 23 WHEN + 97 * CASE - COUNT ( * ) WHEN + + 48 / - ( 44 ) + COUNT ( * ) * 5 THEN + - 9 END / - 0 / COUNT ( * ) + - 80 THEN NULL WHEN + CAST ( - CASE - MAX ( DISTINCT + 82 ) WHEN 80 THEN NULL WHEN + + 57 - + - 64 THEN 25 * + - 69 END AS INTEGER ) THEN NULL ELSE - + 56 END AS col2
----
-56

query II rowsort
SELECT + 6 AS col1, + 98
----
6
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6551
SELECT + COALESCE ( - + ( + + 85 ), - MIN( + 15 ) - ( + 55 ) + 50 * COUNT( * ), + 98 ) * + COUNT( * ) AS col1, + 2 * 94 * + + 6 * 27
----
-85
30456

skipif mysql # not compatible
query II rowsort label-6551
SELECT + COALESCE ( - + ( + + 85 ), - MIN ( + 15 ) - ( + 55 ) + 50 * COUNT ( * ), + 98 ) * + COUNT ( * ) AS col1, + 2 * 94 * + + 6 * 27
----
-85
30456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6552
SELECT DISTINCT + CASE + 30 WHEN - - 44 - + 69 + - - 44 + + + 85 + 7 * + + 98 * + 72 THEN - + CAST( + 51 AS SIGNED ) + + 36 * + + 2 - + MIN( + ( - + 10 ) ) WHEN - ( + ( + 58 ) ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT + CASE + 30 WHEN - - 44 - + 69 + - - 44 + + + 85 + 7 * + + 98 * + 72 THEN - + CAST ( + 51 AS INTEGER ) + + 36 * + + 2 - + MIN ( + ( - + 10 ) ) WHEN - ( + ( + 58 ) ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6553
SELECT DISTINCT 26 * - + CAST( NULL AS SIGNED ) * + 0 / - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT 26 * - + CAST ( NULL AS INTEGER ) * + 0 / - 32
----
NULL

query II rowsort
SELECT + 40 AS col1, NULLIF ( - 91, - 37 )
----
40
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT DISTINCT - + COUNT( * ) - + - MIN( + - 89 )
----
-90

skipif mysql # not compatible
query I rowsort label-6555
SELECT DISTINCT - + COUNT ( * ) - + - MIN ( + - 89 )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6556
SELECT 1 DIV - 45 + + 72 + + - COUNT( * ) * 42 * + SUM( - + ( 22 ) ) + + COUNT( * ) + + 0
----
997

skipif mysql # not compatible
query I rowsort label-6556
SELECT 1 / - 45 + + 72 + + - COUNT ( * ) * 42 * + SUM ( - + ( 22 ) ) + + COUNT ( * ) + + 0
----
997

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT + COUNT( ALL - 16 ) * + MIN( 47 ) * - + COUNT( * ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-6557
SELECT + COUNT ( ALL - 16 ) * + MIN ( 47 ) * - + COUNT ( * ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT ( 65 ) * + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-6558
SELECT ( 65 ) * + COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT DISTINCT - 66 * - 99 * - COUNT( * ) + + + ( 56 ) AS col1
----
-6478

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT - 66 * - 99 * - COUNT ( * ) + + + ( 56 ) AS col1
----
-6478

onlyif mysql # aggregate syntax: 
query II rowsort label-6560
SELECT ALL 58 col1, ( - 7 ) * + 80 + COUNT( * ) + - 74
----
58
-633

skipif mysql # not compatible
query II rowsort label-6560
SELECT ALL 58 col1, ( - 7 ) * + 80 + COUNT ( * ) + - 74
----
58
-633

onlyif mysql # aggregate syntax: 
query II rowsort label-6561
SELECT DISTINCT - 83 * - 27 AS col0, 31 * - + COUNT( * )
----
2241
-31

skipif mysql # not compatible
query II rowsort label-6561
SELECT DISTINCT - 83 * - 27 AS col0, 31 * - + COUNT ( * )
----
2241
-31

query II rowsort
SELECT 0 * + 86 AS col2, + 32 AS col0
----
0
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6563
SELECT DISTINCT - MIN( DISTINCT + 33 ) * - 62 * - 23 + + + CAST( 34 AS SIGNED )
----
-47024

skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT - MIN ( DISTINCT + 33 ) * - 62 * - 23 + + + CAST ( 34 AS INTEGER )
----
-47024

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT ALL + COUNT( * ) * + - 48 + 84 * + 45
----
3732

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL + COUNT ( * ) * + - 48 + 84 * + 45
----
3732

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT DISTINCT ( + 82 ) * - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-6565
SELECT DISTINCT ( + 82 ) * - COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT MAX( DISTINCT + 71 ) col1
----
71

skipif mysql # not compatible
query I rowsort label-6566
SELECT MAX ( DISTINCT + 71 ) col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6567
SELECT ALL CAST( NULL AS SIGNED ) * - ( + NULLIF ( - - 30, - 81 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL CAST ( NULL AS INTEGER ) * - ( + NULLIF ( - - 30, - 81 ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 84 * 83 AS col2
----
6972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6569
SELECT - COUNT( * ) * + 26 DIV - + MIN( + 8 ) - + - 93 + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-6569
SELECT - COUNT ( * ) * + 26 / - + MIN ( + 8 ) - + - 93 + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT ALL + COUNT( * ) + - 42 + - 54 + + - COUNT( * ) + + 68
----
-28

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL + COUNT ( * ) + - 42 + - 54 + + - COUNT ( * ) + + 68
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6571
SELECT - 18 * - + CAST( NULL AS SIGNED ) * 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6571
SELECT - 18 * - + CAST ( NULL AS INTEGER ) * 79 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT ALL COUNT( * ) - 78
----
-77

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL COUNT ( * ) - 78
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT + + 33 * MAX( + + 41 )
----
1353

skipif mysql # not compatible
query I rowsort label-6573
SELECT + + 33 * MAX ( + + 41 )
----
1353

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT DISTINCT 32 - - + COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT 32 - - + COUNT ( * ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT + - 14 + - + COUNT( * ) + - + 67 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-6575
SELECT + - 14 + - + COUNT ( * ) + - + 67 AS col2
----
-82

query I rowsort
SELECT - COALESCE ( + + 28, + + 81 * + - 31 ) AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6577
SELECT ALL + NULLIF ( - + 29, + 21 * - 71 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL + NULLIF ( - + 29, + 21 * - 71 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6578
SELECT + 47 + + + 44 AS col1, COUNT( * )
----
91
1

skipif mysql # not compatible
query II rowsort label-6578
SELECT + 47 + + + 44 AS col1, COUNT ( * )
----
91
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6579
SELECT + CASE + COUNT( * ) WHEN 62 - - COUNT( * ) + - - 25 THEN NULL WHEN 55 * + 39 THEN + 15 ELSE NULL END + - 1 AS col1, - 38 AS col1
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-6579
SELECT + CASE + COUNT ( * ) WHEN 62 - - COUNT ( * ) + - - 25 THEN NULL WHEN 55 * + 39 THEN + 15 ELSE NULL END + - 1 AS col1, - 38 AS col1
----
NULL
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6580
SELECT - 74 + ( CAST( - 88 AS SIGNED ) ) * 51 - + COUNT( * ) AS col1
----
-4563

skipif mysql # not compatible
query I rowsort label-6580
SELECT - 74 + ( CAST ( - 88 AS INTEGER ) ) * 51 - + COUNT ( * ) AS col1
----
-4563

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT ALL + NULLIF ( - CASE 60 WHEN + + 75 THEN + - COUNT( * ) * 89 + SUM( + 50 ) + - COUNT( * ) WHEN + 61 * 77 + + 65 THEN NULL WHEN 82 THEN + 70 - + 72 ELSE NULL END, - 16 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL + NULLIF ( - CASE 60 WHEN + + 75 THEN + - COUNT ( * ) * 89 + SUM ( + 50 ) + - COUNT ( * ) WHEN + 61 * 77 + + 65 THEN NULL WHEN 82 THEN + 70 - + 72 ELSE NULL END, - 16 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6582
SELECT + CAST( NULL AS SIGNED ) * 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6582
SELECT + CAST ( NULL AS INTEGER ) * 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT ALL + COUNT( * ) + + ( - COUNT( * ) ) - - 64 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL + COUNT ( * ) + + ( - COUNT ( * ) ) - - 64 AS col0
----
64

query I rowsort
SELECT - 39 - + + 17 AS col0
----
-56

query II rowsort
SELECT - 98 + - + 44 + + - 81, - ( - 67 ) * + 24 AS col1
----
-223
1608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6586
SELECT ALL NULLIF ( + + NULLIF ( - 29, + CAST( - 75 AS SIGNED ) * COUNT( * ) + - 31 ), + 17 * - - 37 ) DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-6586
SELECT ALL NULLIF ( + + NULLIF ( - 29, + CAST ( - 75 AS INTEGER ) * COUNT ( * ) + - 31 ), + 17 * - - 37 ) / 63
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6587
SELECT DISTINCT 62 + + + ( + 29 ) + + + 29 / + - 49 - - + 17 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6587
SELECT DISTINCT 62 + + + ( + 29 ) + + + 29 / + - 49 - - + 17 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 74 + + 8 + + 94 AS col0
----
28

query I rowsort
SELECT ALL + 34 * - 43
----
-1462

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT DISTINCT - 80 + - MIN( DISTINCT + + 35 )
----
-115

skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT - 80 + - MIN ( DISTINCT + + 35 )
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT COALESCE ( - 12, - + 10 * - 72 + COUNT( * ), + 72 ) * - - 82 - - 97
----
-887

skipif mysql # not compatible
query I rowsort label-6591
SELECT COALESCE ( - 12, - + 10 * - 72 + COUNT ( * ), + 72 ) * - - 82 - - 97
----
-887

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6592
SELECT - 56 + + 50 DIV - + 61 * + - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-6592
SELECT - 56 + + 50 / - + 61 * + - COUNT ( * )
----
-56

query I rowsort
SELECT DISTINCT + ( - + 72 ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT ALL 15 * - MAX( ALL ( - + 90 ) ) + 89 + COUNT( ALL + 5 )
----
1440

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL 15 * - MAX ( ALL ( - + 90 ) ) + 89 + COUNT ( ALL + 5 )
----
1440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6595
SELECT 26 * + 79 + - + CAST( NULL AS SIGNED ) / ( - - COUNT( * ) ) * 26 + - CASE 37 WHEN - 60 THEN MAX( NULLIF ( + CAST( + 76 AS SIGNED ), + 85 ) ) + + 57 WHEN + - CASE + - 60 WHEN + COALESCE ( + 83, + + 78 - + 15 + + COUNT( * ) ) THEN - 21 ELSE NULL END THEN NULL ELSE + 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6595
SELECT 26 * + 79 + - + CAST ( NULL AS INTEGER ) / ( - - COUNT ( * ) ) * 26 + - CASE 37 WHEN - 60 THEN MAX ( NULLIF ( + CAST ( + 76 AS INTEGER ), + 85 ) ) + + 57 WHEN + - CASE + - 60 WHEN + COALESCE ( + 83, + + 78 - + 15 + + COUNT ( * ) ) THEN - 21 ELSE NULL END THEN NULL ELSE + 68 END
----
NULL

query II rowsort
SELECT + 34 * - 38 + - 34 col2, 90
----
-1326
90

query II rowsort
SELECT + 46 * - 39 - - 89 AS col2, + 25 + + 79
----
-1705
104

query II rowsort
SELECT DISTINCT + 21, 39 AS col1
----
21
39

query I rowsort
SELECT ALL 59 * + 10 + 6 AS col2
----
596

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT DISTINCT 18 * 60 * + 72 - - ( + - 51 ) * 14 * - COUNT( * )
----
78474

skipif mysql # not compatible
query I rowsort label-6600
SELECT DISTINCT 18 * 60 * + 72 - - ( + - 51 ) * 14 * - COUNT ( * )
----
78474

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT ALL + ( + MAX( + 43 ) ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL + ( + MAX ( + 43 ) ) AS col0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6602
SELECT ALL + 3, 48 * 79 DIV - COUNT( * ) AS col2
----
3
-3792

skipif mysql # not compatible
query II rowsort label-6602
SELECT ALL + 3, 48 * 79 / - COUNT ( * ) AS col2
----
3
-3792

query I rowsort
SELECT ALL + 24 * 51
----
1224

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6604
SELECT - ( + COALESCE ( - CASE 41 WHEN ( + 38 ) + MAX( ALL 92 ) DIV - 60 THEN + 73 + - 50 END, + 97 ) ) DIV 54 * + 67 DIV COUNT( * ) * + 36 + + 45 + 21 col1, 47
----
-2346
47

skipif mysql # not compatible
query II rowsort label-6604
SELECT - ( + COALESCE ( - CASE 41 WHEN ( + 38 ) + MAX ( ALL 92 ) / - 60 THEN + 73 + - 50 END, + 97 ) ) / 54 * + 67 / COUNT ( * ) * + 36 + + 45 + 21 col1, 47
----
-2346
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6605
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6605
SELECT DISTINCT CAST ( NULL AS REAL ) * + 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6606
SELECT - 18 * 27 DIV + 87 * + COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-6606
SELECT - 18 * 27 / + 87 * + COUNT ( * ) AS col2
----
-5

query I rowsort
SELECT DISTINCT + 88 * 35
----
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT + + COUNT( - - 10 ) * + COUNT( * ) + + 15 + 69
----
85

skipif mysql # not compatible
query I rowsort label-6608
SELECT + + COUNT ( - - 10 ) * + COUNT ( * ) + + 15 + 69
----
85

query I rowsort
SELECT COALESCE ( - + 91, + 34 + - 13 )
----
-91

query I rowsort
SELECT ALL - NULLIF ( - 31, + - 52 + 74 )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6611
SELECT - - CASE + 22 WHEN + 15 THEN NULL WHEN 82 * - CAST( - 66 AS SIGNED ) THEN + 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6611
SELECT - - CASE + 22 WHEN + 15 THEN NULL WHEN 82 * - CAST ( - 66 AS INTEGER ) THEN + 83 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6612
SELECT - ( + CASE COALESCE ( + SUM( + 95 ), - - 30 - + + 23 + + 3 + 3 - 43 + MIN( DISTINCT - 56 ) * 36 + - 6 / - - 89 + - 42 + CAST( + - 96 AS DECIMAL ) ) WHEN - 92 * + 33 - + + COUNT( * ) + 55 THEN 60 * + 28 / - 21 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6612
SELECT - ( + CASE COALESCE ( + SUM ( + 95 ), - - 30 - + + 23 + + 3 + 3 - 43 + MIN ( DISTINCT - 56 ) * 36 + - 6 / - - 89 + - 42 + CAST ( + - 96 AS REAL ) ) WHEN - 92 * + 33 - + + COUNT ( * ) + 55 THEN 60 * + 28 / - 21 ELSE NULL END )
----
NULL

query II rowsort
SELECT 6 AS col1, 59 AS col2
----
6
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6614
SELECT ALL COALESCE ( - CAST( 12 AS SIGNED ), + 77 )
----
-12

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL COALESCE ( - CAST ( 12 AS INTEGER ), + 77 )
----
-12

query I rowsort
SELECT + 16 + - + NULLIF ( + + 52, - 48 ) + - 52
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-6616
SELECT ALL 21 + - 52 + - 64 DIV + - 13 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL 21 + - 52 + - 64 / + - 13 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT ALL + 93 + + COALESCE ( + - 24, - 26 + - 69 + + 17 + - COUNT( * ) * 99 ) * 92 AS col0
----
-2115

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL + 93 + + COALESCE ( + - 24, - 26 + - 69 + + 17 + - COUNT ( * ) * 99 ) * 92 AS col0
----
-2115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6618
SELECT - 86 + COALESCE ( - + COUNT( * ), - + 71 DIV - ( - 37 ), + 78 + - + 51 * - CAST( SUM( - 76 ) AS SIGNED ) )
----
-87

skipif mysql # not compatible
query I rowsort label-6618
SELECT - 86 + COALESCE ( - + COUNT ( * ), - + 71 / - ( - 37 ), + 78 + - + 51 * - CAST ( SUM ( - 76 ) AS INTEGER ) )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT - 44 * COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-6619
SELECT - 44 * COUNT ( * ) AS col2
----
-44

query II rowsort
SELECT - 60 AS col2, - 57 + + - 81 * - - ( + - ( - 47 ) ) AS col2
----
-60
-3864

query I rowsort
SELECT - COALESCE ( - 32, - 56 ) + + 41
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-6622
SELECT ALL 11 DIV 89 * 17 - - ( + 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL 11 / 89 * 17 - - ( + 23 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT ALL + COALESCE ( - - COUNT( * ), - 66 + 23, 59 * + 96 )
----
1

skipif mysql # not compatible
query I rowsort label-6623
SELECT ALL + COALESCE ( - - COUNT ( * ), - 66 + 23, 59 * + 96 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6624
SELECT + 28 AS col2, - COUNT( * ) + MIN( + CAST( - 15 AS SIGNED ) ) col2
----
28
-16

skipif mysql # not compatible
query II rowsort label-6624
SELECT + 28 AS col2, - COUNT ( * ) + MIN ( + CAST ( - 15 AS INTEGER ) ) col2
----
28
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-6625
SELECT DISTINCT + 44 - + 13 DIV COALESCE ( 10, 6 )
----
43

skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT + 44 - + 13 / COALESCE ( 10, 6 )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-6626
SELECT DISTINCT - - 92 AS col0, 8 * - COUNT( * )
----
92
-8

skipif mysql # not compatible
query II rowsort label-6626
SELECT DISTINCT - - 92 AS col0, 8 * - COUNT ( * )
----
92
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6627
SELECT + ( + ( - COALESCE ( + 32, + CAST( NULL AS SIGNED ) * - + COUNT( * ) + - 99 ) ) ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-6627
SELECT + ( + ( - COALESCE ( + 32, + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + - 99 ) ) ) AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6628
SELECT ALL - CAST( - ( + + 45 ) AS SIGNED ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL - CAST ( - ( + + 45 ) AS INTEGER ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT 76 * + COUNT( * ) + + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-6629
SELECT 76 * + COUNT ( * ) + + COUNT ( * )
----
77

query II rowsort
SELECT + 58, + 33 AS col0
----
58
33

query I rowsort
SELECT NULLIF ( 57, + COALESCE ( + + 98, 0 ) ) - - + 31
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT ALL - SUM( + 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL - SUM ( + 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT CASE - 57 WHEN - 58 * - - 50 * + 18 THEN NULL WHEN - - 57 THEN + COUNT( * ) ELSE + 36 END * + ( + 61 ) + + + 44 AS col2
----
2240

skipif mysql # not compatible
query I rowsort label-6633
SELECT CASE - 57 WHEN - 58 * - - 50 * + 18 THEN NULL WHEN - - 57 THEN + COUNT ( * ) ELSE + 36 END * + ( + 61 ) + + + 44 AS col2
----
2240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6634
SELECT ALL - + AVG ( ALL - ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL - + AVG ( ALL - ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6635
SELECT + - 76 AS col2, MIN( CAST( - 57 AS SIGNED ) ) AS col1
----
-76
-57

skipif mysql # not compatible
query II rowsort label-6635
SELECT + - 76 AS col2, MIN ( CAST ( - 57 AS INTEGER ) ) AS col1
----
-76
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6636
SELECT + CAST( - 38 AS SIGNED ) DIV COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-6636
SELECT + CAST ( - 38 AS INTEGER ) / COUNT ( * )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6637
SELECT - 65 - + 29 + + CAST( + 74 AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-6637
SELECT - 65 - + 29 + + CAST ( + 74 AS INTEGER )
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-6638
SELECT - 5 DIV 84 col0
----
0

skipif mysql # not compatible
query I rowsort label-6638
SELECT - 5 / 84 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6639
SELECT 21 col1, - 64 + - MAX( DISTINCT + - 24 )
----
21
-40

skipif mysql # not compatible
query II rowsort label-6639
SELECT 21 col1, - 64 + - MAX ( DISTINCT + - 24 )
----
21
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6640
SELECT ALL 62 + + COUNT( * ) DIV - 66 * + + 54
----
62

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL 62 + + COUNT ( * ) / - 66 * + + 54
----
62

query I rowsort
SELECT + 32 * + 24
----
768

query II rowsort
SELECT DISTINCT - 25 + - - 2 AS col1, - 55 col0
----
-23
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT DISTINCT SUM( ALL + + 86 ) + - COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6643
SELECT DISTINCT SUM ( ALL + + 86 ) + - COUNT ( * ) AS col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6644
SELECT 29 + - 11 + - 72 + ( + 52 ) DIV - 24
----
-56

skipif mysql # not compatible
query I rowsort label-6644
SELECT 29 + - 11 + - 72 + ( + 52 ) / - 24
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6645
SELECT ALL - COALESCE ( - 75, + 93 + - COUNT( * ) * - CAST( NULL AS SIGNED ) * + + 83 ) + + 5 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL - COALESCE ( - 75, + 93 + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + + 83 ) + + 5 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT DISTINCT + 52 * COUNT( * ) col1
----
52

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT + 52 * COUNT ( * ) col1
----
52

query II rowsort
SELECT DISTINCT 4 + - 32, + 43 AS col1
----
-28
43

query I rowsort
SELECT ALL 63 + 9 AS col0
----
72

query II rowsort
SELECT ALL 3 - + 42 col1, 52
----
-39
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT DISTINCT 62 * - - 44 * COUNT( * )
----
2728

skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT 62 * - - 44 * COUNT ( * )
----
2728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6651
SELECT DISTINCT COALESCE ( + + CAST( 27 AS SIGNED ), - + 71 DIV 41 + - 78, + - 43, COUNT( * ) ) - - 95 * + 4 AS col1
----
407

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT COALESCE ( + + CAST ( 27 AS INTEGER ), - + 71 / 41 + - 78, + - 43, COUNT ( * ) ) - - 95 * + 4 AS col1
----
407

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6652
SELECT ALL 96 * + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) + 73 * + + 80 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6652
SELECT ALL 96 * + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) + 73 * + + 80 AS col0
----
NULL
NULL

query I rowsort
SELECT 79 * - - 3
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT ALL 61 * - + 81 * - MIN( + - 61 )
----
-301401

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL 61 * - + 81 * - MIN ( + - 61 )
----
-301401

query I rowsort
SELECT 46 * + 91 - - 10 AS col2
----
4196

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT COUNT( * ) + + COUNT( ( + + 13 ) ) col2
----
2

skipif mysql # not compatible
query I rowsort label-6656
SELECT COUNT ( * ) + + COUNT ( ( + + 13 ) ) col2
----
2

query I rowsort
SELECT + 47 * - 32 AS col2
----
-1504

query I rowsort
SELECT ( 83 ) * - 1 * + ( - + 79 ) + - 72 AS col1
----
6485

query I rowsort
SELECT 91 * - + 66 + + - 86 * - 72 AS col2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT ALL - 41 * - 96 * COUNT( * ) AS col1
----
3936

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL - 41 * - 96 * COUNT ( * ) AS col1
----
3936

query II rowsort
SELECT + 13 + 71, + 68 AS col2
----
84
68

query II rowsort
SELECT ALL 83 + - 89, - 80 AS col0
----
-6
-80

query I rowsort
SELECT ALL - 39 * + 87 + + 1 * - 23 col0
----
-3416

query I rowsort
SELECT - + 21 * + 50 * + - 76 + 78 col2
----
79878

query I rowsort
SELECT + + ( - + CASE 41 WHEN - 60 + + 34 THEN + 57 END )
----
NULL

query I rowsort
SELECT 93 * - - 22 + + 67 AS col1
----
2113

query I rowsort
SELECT 95 * - 99 + - ( - + 89 ) AS col2
----
-9316

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT SUM( + 6 ) + + COUNT( * ) * 57
----
63

skipif mysql # not compatible
query I rowsort label-6668
SELECT SUM ( + 6 ) + + COUNT ( * ) * 57
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT 29 + - CASE 87 WHEN + 54 THEN 98 ELSE + SUM( + 15 ) END * - 84 AS col2
----
1289

skipif mysql # not compatible
query I rowsort label-6669
SELECT 29 + - CASE 87 WHEN + 54 THEN 98 ELSE + SUM ( + 15 ) END * - 84 AS col2
----
1289

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6670
SELECT ALL - + COUNT( * ) * - 41 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL - + COUNT ( * ) * - 41 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT ALL COUNT( ALL - 70 )
----
1

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL COUNT ( ALL - 70 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6672
SELECT 25 AS col0, ( - + MAX( + 39 ) ) + - 81 * + - 46 + CAST( NULL AS SIGNED ) AS col2
----
25
NULL

skipif mysql # not compatible
query II rowsort label-6672
SELECT 25 AS col0, ( - + MAX ( + 39 ) ) + - 81 * + - 46 + CAST ( NULL AS INTEGER ) AS col2
----
25
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6673
SELECT ALL + CASE + 33 WHEN - 99 * + 10 THEN MAX( DISTINCT + 38 ) ELSE NULL END + - 54 - + COALESCE ( + CAST( + 88 AS SIGNED ), - - 82 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6673
SELECT ALL + CASE + 33 WHEN - 99 * + 10 THEN MAX ( DISTINCT + 38 ) ELSE NULL END + - 54 - + COALESCE ( + CAST ( + 88 AS INTEGER ), - - 82 ) col0
----
NULL

query I rowsort
SELECT 45 * - - NULLIF ( + 68, + + 8 )
----
3060

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT ALL COUNT( - 3 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL COUNT ( - 3 ) AS col0
----
1

query I rowsort
SELECT CASE CASE 2 WHEN - + 18 THEN + 66 + - 74 WHEN - - ( + + 11 ) THEN NULL END WHEN + 30 / 92 THEN + - 73 END + + - 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT ALL - 76 - MIN( ALL + + 53 ) * - ( + 75 ) AS col2
----
3899

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL - 76 - MIN ( ALL + + 53 ) * - ( + 75 ) AS col2
----
3899

query I rowsort
SELECT 35 * 70
----
2450

onlyif mysql # aggregate syntax: 
query II rowsort label-6679
SELECT DISTINCT COUNT( * ) AS col0, - 14 AS col1
----
1
-14

skipif mysql # not compatible
query II rowsort label-6679
SELECT DISTINCT COUNT ( * ) AS col0, - 14 AS col1
----
1
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6680
SELECT ALL + CAST( + 76 AS SIGNED ) * 43 * - - 3
----
9804

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL + CAST ( + 76 AS INTEGER ) * 43 * - - 3
----
9804

query I rowsort
SELECT ALL - ( + + 56 ) - - 67 AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6682
SELECT ALL NULLIF ( + SUM( - - COALESCE ( - CAST( NULL AS SIGNED ), - 39 ) ), - 1 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL NULLIF ( + SUM ( - - COALESCE ( - CAST ( NULL AS INTEGER ), - 39 ) ), - 1 ) AS col2
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6683
SELECT ALL CASE + 61 WHEN 58 THEN 72 WHEN COALESCE ( - 65, + CAST( NULL AS DECIMAL ) ) + + 71 THEN NULL ELSE + - 74 END AS col2, 88
----
-74
88

skipif mysql # not compatible
query II rowsort label-6683
SELECT ALL CASE + 61 WHEN 58 THEN 72 WHEN COALESCE ( - 65, + CAST ( NULL AS REAL ) ) + + 71 THEN NULL ELSE + - 74 END AS col2, 88
----
-74
88

onlyif mysql # DIV for integer division: 
query II rowsort label-6684
SELECT + ( + 70 ) + + COALESCE ( + 36, - 99 ) + - - 57 + - + 69 DIV + - 90 AS col0, - 37
----
163
-37

skipif mysql # not compatible
query II rowsort label-6684
SELECT + ( + 70 ) + + COALESCE ( + 36, - 99 ) + - - 57 + - + 69 / + - 90 AS col0, - 37
----
163
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT - 43 * MAX( NULLIF ( - + 11, + 25 ) )
----
473

skipif mysql # not compatible
query I rowsort label-6685
SELECT - 43 * MAX ( NULLIF ( - + 11, + 25 ) )
----
473

query I rowsort
SELECT + 49 + + ( - 50 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT ALL + COUNT( DISTINCT 47 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL + COUNT ( DISTINCT 47 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6688
SELECT ALL 48 AS col2, - SUM( DISTINCT - 90 ) AS col1
----
48
90

skipif mysql # not compatible
query II rowsort label-6688
SELECT ALL 48 AS col2, - SUM ( DISTINCT - 90 ) AS col1
----
48
90

query I rowsort
SELECT DISTINCT - 75 * + - COALESCE ( - ( + 59 ), + 16 ) + - ( + + 40 ) AS col0
----
-4465

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT + + NULLIF ( + + 23, - + 33 / - - 44 + + 21 + NULLIF ( - + 91, - COUNT( * ) + NULLIF ( - 44, - + 15 ) + 93 ) * ( + ( 14 ) ) )
----
23

skipif mysql # not compatible
query I rowsort label-6690
SELECT + + NULLIF ( + + 23, - + 33 / - - 44 + + 21 + NULLIF ( - + 91, - COUNT ( * ) + NULLIF ( - 44, - + 15 ) + 93 ) * ( + ( 14 ) ) )
----
23

query I rowsort
SELECT ALL + 82 * 89 + 14 * + 26 - + 87 AS col0
----
7575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6692
SELECT + + NULLIF ( COUNT( * ), 78 * - 83 ) DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-6692
SELECT + + NULLIF ( COUNT ( * ), 78 * - 83 ) / 71
----
0

query I rowsort
SELECT - + 24 * + 91
----
-2184

query I rowsort
SELECT ALL - 3 * 77 * + 67 + + 77 * + + ( + + 64 )
----
-10549

query I rowsort
SELECT + 14 - + 77
----
-63

query II rowsort
SELECT DISTINCT + + 88 AS col0, - 86 AS col1
----
88
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6697
SELECT ALL - - NULLIF ( + 97, 49 * 73 + + 64 ) * + MAX( + 21 ) - - + 31 + + - 29 DIV MIN( - 19 )
----
2069

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL - - NULLIF ( + 97, 49 * 73 + + 64 ) * + MAX ( + 21 ) - - + 31 + + - 29 / MIN ( - 19 )
----
2069

query I rowsort
SELECT ALL ( + ( 52 ) ) * + 24 * - 35
----
-43680

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT DISTINCT - 89 * COUNT( * ) * - 21 AS col2
----
1869

skipif mysql # not compatible
query I rowsort label-6699
SELECT DISTINCT - 89 * COUNT ( * ) * - 21 AS col2
----
1869

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT ALL COUNT( * ) * 94 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL COUNT ( * ) * 94 AS col1
----
94

query I rowsort
SELECT - 45 - + - 70
----
25

query I rowsort
SELECT - 62 * + 94 + - + 41 * 7 col0
----
-6115

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT ALL - COUNT( * ) * + 6 - - COUNT( * ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL - COUNT ( * ) * + 6 - - COUNT ( * ) col1
----
-5

query I rowsort
SELECT - 9 + 36
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-6705
SELECT - COUNT( * ) * - 14 AS col0, COUNT( * )
----
14
1

skipif mysql # not compatible
query II rowsort label-6705
SELECT - COUNT ( * ) * - 14 AS col0, COUNT ( * )
----
14
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT ALL NULLIF ( + - COUNT( * ), 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL NULLIF ( + - COUNT ( * ), 10 )
----
-1

query I rowsort
SELECT ALL NULLIF ( + - 36, + + 98 ) AS col1
----
-36

query I rowsort
SELECT - 85 + + 61 + - 2 AS col0
----
-26

onlyif mysql # DIV for integer division: 
query II rowsort label-6709
SELECT ALL + 45 DIV 89 AS col2, ( + - 36 ) * 91
----
0
-3276

skipif mysql # not compatible
query II rowsort label-6709
SELECT ALL + 45 / 89 AS col2, ( + - 36 ) * 91
----
0
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT ALL CASE - - 35 WHEN + 12 THEN - + SUM( DISTINCT - 55 ) WHEN + 96 * + + 14 - + ( 75 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL CASE - - 35 WHEN + 12 THEN - + SUM ( DISTINCT - 55 ) WHEN + 96 * + + 14 - + ( 75 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT - 67 + - 3 * COUNT( * ) * - 94 + 25 + - 36 + - + COUNT( DISTINCT - - 11 ) * + 81 * 7 + 20 AS col1
----
-343

skipif mysql # not compatible
query I rowsort label-6711
SELECT - 67 + - 3 * COUNT ( * ) * - 94 + 25 + - 36 + - + COUNT ( DISTINCT - - 11 ) * + 81 * 7 + 20 AS col1
----
-343

query I rowsort
SELECT - ( - + 56 ) + + 81 AS col0
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-6713
SELECT - COUNT( * ) * COUNT( * ) AS col1, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-6713
SELECT - COUNT ( * ) * COUNT ( * ) AS col1, - COUNT ( * )
----
-1
-1

query I rowsort
SELECT - ( + 87 ) * 55
----
-4785

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT - 8 + + COUNT( * ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-6715
SELECT - 8 + + COUNT ( * ) AS col1
----
-7

query I rowsort
SELECT - 19 * - 14 * 64 AS col1
----
17024

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6717
SELECT ALL + - CAST( NULL AS DECIMAL ) + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL + - CAST ( NULL AS REAL ) + - - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6718
SELECT - ( ( - 64 ) ) + - 83 DIV - 50 + - + 20 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6718
SELECT - ( ( - 64 ) ) + - 83 / - 50 + - + 20 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT DISTINCT + 47 + + COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT + 47 + + COUNT ( * ) AS col0
----
48

query I rowsort
SELECT ALL + 83 + - 36
----
47

query I rowsort
SELECT ALL + ( + 75 ) + - 68 + + 15 + - 48 * + + ( + ( - 86 ) ) * + - 85 + + 11 * - - 25 AS col0
----
-350583

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6722
SELECT DISTINCT COUNT( DISTINCT + + 42 ) DIV - COUNT( * ) + + - 35 * + + SUM( 13 ) AS col0
----
-456

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT COUNT ( DISTINCT + + 42 ) / - COUNT ( * ) + + - 35 * + + SUM ( 13 ) AS col0
----
-456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6723
SELECT + CASE 84 WHEN CASE 49 WHEN + CASE ( - 91 ) WHEN - 64 THEN + ( - 13 ) WHEN + - COUNT( * ) * - 5 - + MAX( 81 ) THEN NULL ELSE + - COUNT( * ) END THEN + 62 WHEN + - 67 THEN - 4 END THEN + 27 + 89 + 93 * + + 48 * + + 6 WHEN + - 2 / - 63 + + - 64 + + - CAST( NULL AS SIGNED ) - 62 THEN + 88 * - + 18 + 97 + + - COALESCE ( + COALESCE ( 52, + 33, - COALESCE ( 22, + SUM( DISTINCT + 64 ) ) ), 81 ) - - AVG ( 47 ) * - 91 + 26 * - 68 WHEN COALESCE ( - 39, + 37 * 40, COUNT( * ) ) THEN 9 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6723
SELECT + CASE 84 WHEN CASE 49 WHEN + CASE ( - 91 ) WHEN - 64 THEN + ( - 13 ) WHEN + - COUNT ( * ) * - 5 - + MAX ( 81 ) THEN NULL ELSE + - COUNT ( * ) END THEN + 62 WHEN + - 67 THEN - 4 END THEN + 27 + 89 + 93 * + + 48 * + + 6 WHEN + - 2 / - 63 + + - 64 + + - CAST ( NULL AS INTEGER ) - 62 THEN + 88 * - + 18 + 97 + + - COALESCE ( + COALESCE ( 52, + 33, - COALESCE ( 22, + SUM ( DISTINCT + 64 ) ) ), 81 ) - - AVG ( 47 ) * - 91 + 26 * - 68 WHEN COALESCE ( - 39, + 37 * 40, COUNT ( * ) ) THEN 9 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6724
SELECT - + COUNT( * ) + - 31 * + - 44 - + 28, + 87 AS col2
----
1335
87

skipif mysql # not compatible
query II rowsort label-6724
SELECT - + COUNT ( * ) + - 31 * + - 44 - + 28, + 87 AS col2
----
1335
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6725
SELECT ALL + - 32 DIV + NULLIF ( + + 63, - 75 ) + - 14 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL + - 32 / + NULLIF ( + + 63, - 75 ) + - 14 AS col2
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6726
SELECT + 32 + + 96 * - 36 DIV - + COUNT( * ) AS col1
----
3488

skipif mysql # not compatible
query I rowsort label-6726
SELECT + 32 + + 96 * - 36 / - + COUNT ( * ) AS col1
----
3488

query I rowsort
SELECT ALL + NULLIF ( 66, + - 57 ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT - ( COUNT( * ) ) * + 68 + + 6 + 42 col1
----
-20

skipif mysql # not compatible
query I rowsort label-6728
SELECT - ( COUNT ( * ) ) * + 68 + + 6 + 42 col1
----
-20

query I rowsort
SELECT + 54 * - 35 AS col0
----
-1890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6730
SELECT ALL + 55 DIV 65 - + COUNT( * ) * - ( 76 ) - + - 8
----
84

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL + 55 / 65 - + COUNT ( * ) * - ( 76 ) - + - 8
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT + - 1 * + - COUNT( ALL 34 ) * - - 21 + COUNT( * ) - COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-6731
SELECT + - 1 * + - COUNT ( ALL 34 ) * - - 21 + COUNT ( * ) - COUNT ( * ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT + COUNT( * ) * - 43 * - COUNT( * ) * + + 63 AS col0
----
2709

skipif mysql # not compatible
query I rowsort label-6732
SELECT + COUNT ( * ) * - 43 * - COUNT ( * ) * + + 63 AS col0
----
2709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6733
SELECT + 96 * + 90 * + 95 + - - CAST( NULL AS SIGNED ) * - 67 * 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6733
SELECT + 96 * + 90 * + 95 + - - CAST ( NULL AS INTEGER ) * - 67 * 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT + 57 * CASE - - COUNT( * ) WHEN - ( - MAX( - 87 ) ) THEN NULL WHEN + + ( + + 35 ) THEN + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6734
SELECT + 57 * CASE - - COUNT ( * ) WHEN - ( - MAX ( - 87 ) ) THEN NULL WHEN + + ( + + 35 ) THEN + 97 END
----
NULL

query I rowsort
SELECT + 22 + + + 83 + 31
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6736
SELECT - ( - + 66 ) + + 89 - 79 DIV - - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-6736
SELECT - ( - + 66 ) + + 89 - 79 / - - COUNT ( * )
----
76

query I rowsort
SELECT + ( - - 5 ) AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6738
SELECT DISTINCT 39 DIV - 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6738
SELECT DISTINCT 39 / - 62 AS col2
----
0

query I rowsort
SELECT 63 * + 97 * + - 16 col1
----
-97776

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT ALL - 13 * + MIN( ALL - 14 ) AS col2
----
182

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL - 13 * + MIN ( ALL - 14 ) AS col2
----
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6741
SELECT 70 DIV + ( - + MAX( - - 99 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6741
SELECT 70 / + ( - + MAX ( - - 99 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6742
SELECT ALL 85 DIV 34
----
2

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL 85 / 34
----
2

query I rowsort
SELECT DISTINCT 3 * 2
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-6744
SELECT CASE - 35 WHEN + 31 THEN NULL ELSE 16 END * 28, - ( - 66 ) - + 68 DIV - - 99 + 32 AS col1
----
448
98

skipif mysql # not compatible
query II rowsort label-6744
SELECT CASE - 35 WHEN + 31 THEN NULL ELSE 16 END * 28, - ( - 66 ) - + 68 / - - 99 + 32 AS col1
----
448
98

query I rowsort
SELECT 53 - + COALESCE ( - ( 6 ), - 48 )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6746
SELECT DISTINCT 96 + - - COUNT( * ) * - + 51 DIV + + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT 96 + - - COUNT ( * ) * - + 51 / + + COUNT ( * )
----
45

query I rowsort
SELECT 85 + + + ( - 20 )
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6748
SELECT - MIN( - NULLIF ( 90, + - 29 ) ) - + COUNT( * ), 52 DIV - - 31 + + SUM( ALL + 31 ) AS col2
----
89
32

skipif mysql # not compatible
query II rowsort label-6748
SELECT - MIN ( - NULLIF ( 90, + - 29 ) ) - + COUNT ( * ), 52 / - - 31 + + SUM ( ALL + 31 ) AS col2
----
89
32

query I rowsort
SELECT ALL + 34 * 89 AS col0
----
3026

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6750
SELECT + 66 * 45 DIV - CAST( - 39 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-6750
SELECT + 66 * 45 / - CAST ( - 39 AS INTEGER )
----
76

query I rowsort
SELECT ALL - 18 + + ( - 82 )
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT DISTINCT + + 68 * - - COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-6752
SELECT DISTINCT + + 68 * - - COUNT ( * ) AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6753
SELECT - 33 DIV - COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-6753
SELECT - 33 / - COUNT ( * ) AS col0
----
33

query I rowsort
SELECT 97 + - 40 + + ( 98 ) AS col0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT DISTINCT + - COUNT( * ) + + 43 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT + - COUNT ( * ) + + 43 AS col2
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6756
SELECT DISTINCT + + MAX( 76 ) * - - COUNT( * ) AS col0, - COUNT( * ) DIV + + 84 AS col2
----
76
0

skipif mysql # not compatible
query II rowsort label-6756
SELECT DISTINCT + + MAX ( 76 ) * - - COUNT ( * ) AS col0, - COUNT ( * ) / + + 84 AS col2
----
76
0

query I rowsort
SELECT ALL - - 26 * + 80
----
2080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6758
SELECT SUM( ALL - ( - + 25 ) ) DIV - 1
----
-25

skipif mysql # not compatible
query I rowsort label-6758
SELECT SUM ( ALL - ( - + 25 ) ) / - 1
----
-25

query I rowsort
SELECT DISTINCT + + ( - 95 ) * - - ( - + 55 ) col0
----
5225

query I rowsort
SELECT ALL - - 34 * - - 36
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT DISTINCT - ( - COALESCE ( - 69, + 33, + NULLIF ( - + COUNT( * ), ( + - COUNT( * ) ) ) ) ) - 87 - 37 AS col0
----
-193

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT - ( - COALESCE ( - 69, + 33, + NULLIF ( - + COUNT ( * ), ( + - COUNT ( * ) ) ) ) ) - 87 - 37 AS col0
----
-193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6762
SELECT - CASE 31 WHEN 59 THEN - NULLIF ( MIN( DISTINCT + + CASE CAST( NULL AS SIGNED ) WHEN - - 21 THEN - + 84 - - 50 WHEN + 20 THEN NULL END ), + ( - - 39 ) ) * + 85 * COALESCE ( + ( + - 48 ), + + 92 * 83, + 58 ) WHEN - 60 THEN NULL END * - 59 + - COUNT( * ) + - + 10 + 56 + + 38 * - 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6762
SELECT - CASE 31 WHEN 59 THEN - NULLIF ( MIN ( DISTINCT + + CASE CAST ( NULL AS INTEGER ) WHEN - - 21 THEN - + 84 - - 50 WHEN + 20 THEN NULL END ), + ( - - 39 ) ) * + 85 * COALESCE ( + ( + - 48 ), + + 92 * 83, + 58 ) WHEN - 60 THEN NULL END * - 59 + - COUNT ( * ) + - + 10 + 56 + + 38 * - 51 AS col0
----
NULL

query I rowsort
SELECT 35 * + 97
----
3395

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT 44 - - 69 - - 59 - - - MAX( ALL - 75 ) AS col1
----
247

skipif mysql # not compatible
query I rowsort label-6764
SELECT 44 - - 69 - - 59 - - - MAX ( ALL - 75 ) AS col1
----
247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6765
SELECT CASE 71 WHEN - ( + 95 ) / 6 / + 52 * - 3 * + - 39 THEN 86 ELSE NULL END * 92 * - NULLIF ( ( + 20 ), + ( CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT CASE 71 WHEN - ( + 95 ) / 6 / + 52 * - 3 * + - 39 THEN 86 ELSE NULL END * 92 * - NULLIF ( ( + 20 ), + ( CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT DISTINCT + 72 * MAX( ( + + 41 ) )
----
2952

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT + 72 * MAX ( ( + + 41 ) )
----
2952

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT ALL - SUM( - + 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-6767
SELECT ALL - SUM ( - + 36 ) AS col0
----
36

query II rowsort
SELECT + 46 AS col0, + 53 AS col2
----
46
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6769
SELECT ( 12 ) * + + 50 - + + ( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) + + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6769
SELECT ( 12 ) * + + 50 - + + ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + + 33 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6770
SELECT DISTINCT - 12, CAST( COUNT( * ) AS SIGNED ) AS col2
----
-12
1

skipif mysql # not compatible
query II rowsort label-6770
SELECT DISTINCT - 12, CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-12
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT ALL 62 * + COUNT( + 90 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL 62 * + COUNT ( + 90 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT 50 * - - CASE + 9 WHEN + NULLIF ( 18, - - 84 + 87 + + - 95 * - + ( + + 92 ) ) THEN + COUNT( * ) WHEN 9 THEN NULL ELSE - 65 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6772
SELECT 50 * - - CASE + 9 WHEN + NULLIF ( 18, - - 84 + 87 + + - 95 * - + ( + + 92 ) ) THEN + COUNT ( * ) WHEN 9 THEN NULL ELSE - 65 END AS col1
----
NULL

query I rowsort
SELECT + 10 * + 65 + 25
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT CASE + - 71 WHEN - + 18 * + + 56 THEN - - 61 ELSE NULL END - - NULLIF ( - COUNT( * ), - ( + - 17 ) * + 31 * + 80 - + 29 + + 2 - - 17 + + + COUNT( * ) * 25 + 99 / + - SUM( ALL + 50 ) * - ( 45 ) * + 43 * - 51 ) + + + COUNT( * ) + + 16 / + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6774
SELECT CASE + - 71 WHEN - + 18 * + + 56 THEN - - 61 ELSE NULL END - - NULLIF ( - COUNT ( * ), - ( + - 17 ) * + 31 * + 80 - + 29 + + 2 - - 17 + + + COUNT ( * ) * 25 + 99 / + - SUM ( ALL + 50 ) * - ( 45 ) * + 43 * - 51 ) + + + COUNT ( * ) + + 16 / + 1
----
NULL

query II rowsort
SELECT + 57 AS col1, + 41 + + 26 + - - 90 + - 75 AS col1
----
57
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6776
SELECT 84 AS col0, - 36 + - NULLIF ( - 22, + - 79 * - - COALESCE ( - 18, + ( + - CASE 60 WHEN + 90 THEN NULL WHEN 32 THEN - 24 ELSE 40 END ) ) * + 51 - 4 + 55 + - 83 + + 47 + + + NULLIF ( - ( + MAX( ALL + + 81 ) ), - COUNT( * ) - ( - + CAST( - + 34 AS DECIMAL ) ) + + + 60 ) - - COUNT( * ) * + ( - 21 ) * MIN( DISTINCT + 3 ) * - COUNT( * ) + + COUNT( * ) * - 87 - + 6 ) + + 50
----
84
36

skipif mysql # not compatible
query II rowsort label-6776
SELECT 84 AS col0, - 36 + - NULLIF ( - 22, + - 79 * - - COALESCE ( - 18, + ( + - CASE 60 WHEN + 90 THEN NULL WHEN 32 THEN - 24 ELSE 40 END ) ) * + 51 - 4 + 55 + - 83 + + 47 + + + NULLIF ( - ( + MAX ( ALL + + 81 ) ), - COUNT ( * ) - ( - + CAST ( - + 34 AS REAL ) ) + + + 60 ) - - COUNT ( * ) * + ( - 21 ) * MIN ( DISTINCT + 3 ) * - COUNT ( * ) + + COUNT ( * ) * - 87 - + 6 ) + + 50
----
84
36

query II rowsort
SELECT ALL 32 + - COALESCE ( + - 11, + - 61 * + - 10 * - + 11 ) AS col0, + 86 - - 50 * NULLIF ( - 57, 79 * 72 ) * ( 42 )
----
43
-119614

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT ALL MIN( + 22 ) + + - 64 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL MIN ( + 22 ) + + - 64 AS col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6779
SELECT CASE + 68 WHEN + 87 * COUNT( * ) - 69 + - CAST( - COUNT( * ) AS SIGNED ) THEN MAX( 30 ) END + + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6779
SELECT CASE + 68 WHEN + 87 * COUNT ( * ) - 69 + - CAST ( - COUNT ( * ) AS INTEGER ) THEN MAX ( 30 ) END + + 57 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 61 + + 23 AS col2
----
84

query I rowsort
SELECT ALL 84 * + 25 * 73 AS col0
----
153300

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT ALL 96 + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL 96 + + COUNT ( * )
----
97

query I rowsort
SELECT ALL 54 + - 58 - 49 * + 25 * - - 94 + + + 40
----
-115114

query II rowsort
SELECT DISTINCT - ( + 51 ) * 10 * 84, + 77 AS col1
----
-42840
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT ALL + 66 + + - 67 * + COUNT( * ) + 42 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL + 66 + + - 67 * + COUNT ( * ) + 42 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT DISTINCT - MIN( ALL + - ( - ( + 50 ) ) )
----
-50

skipif mysql # not compatible
query I rowsort label-6786
SELECT DISTINCT - MIN ( ALL + - ( - ( + 50 ) ) )
----
-50

query I rowsort
SELECT ALL ( 60 ) * + 67 * + 21
----
84420

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT COUNT( * ) + + 55 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-6788
SELECT COUNT ( * ) + + 55 AS col0
----
56

query I rowsort
SELECT - 91 + - 92
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT ALL + COUNT( * ) - + + 57 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL + COUNT ( * ) - + + 57 AS col1
----
-56

query II rowsort
SELECT 64 AS col1, 87
----
64
87

onlyif mysql # aggregate syntax: 
query II rowsort label-6792
SELECT ALL COUNT( * ), + 44 + + 14 col1
----
1
58

skipif mysql # not compatible
query II rowsort label-6792
SELECT ALL COUNT ( * ), + 44 + + 14 col1
----
1
58

query I rowsort
SELECT 45 + + + 0
----
45

query I rowsort
SELECT + 58 * - + 97
----
-5626

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT ALL - 62 * 13 - - + CASE - COALESCE ( - 55, + + 74 ) WHEN 82 THEN 97 * COUNT( DISTINCT + - 8 ) WHEN - 12 THEN NULL WHEN + ( - 41 ) * 55 + + + 87 THEN - 52 ELSE - COUNT( * ) END - - 19 + 38
----
-750

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL - 62 * 13 - - + CASE - COALESCE ( - 55, + + 74 ) WHEN 82 THEN 97 * COUNT ( DISTINCT + - 8 ) WHEN - 12 THEN NULL WHEN + ( - 41 ) * 55 + + + 87 THEN - 52 ELSE - COUNT ( * ) END - - 19 + 38
----
-750

query I rowsort
SELECT ( - + 39 ) + - 12
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6797
SELECT DISTINCT 45 * + NULLIF ( + ( - 98 ), - 54 * ( - 80 ) + - CAST( NULL AS SIGNED ) )
----
-4410

skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT 45 * + NULLIF ( + ( - 98 ), - 54 * ( - 80 ) + - CAST ( NULL AS INTEGER ) )
----
-4410

query I rowsort
SELECT 83 * - 73
----
-6059

query I rowsort
SELECT - 47 + 40 + - 60 AS col2
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6800
SELECT + - 75 DIV 86 + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6800
SELECT + - 75 / 86 + + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6801
SELECT ALL - - COUNT( * ) DIV + 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL - - COUNT ( * ) / + 98 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT SUM( - 82 ) * 44 * + 53 AS col1
----
-191224

skipif mysql # not compatible
query I rowsort label-6802
SELECT SUM ( - 82 ) * 44 * + 53 AS col1
----
-191224

query I rowsort
SELECT + 30 + - - ( 88 )
----
118

query I rowsort
SELECT ALL - NULLIF ( + 88, + 78 ) * 63 * - 29 * + - 27
----
-4340952

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT ( - 84 ) * 78 * - 53 + + + 96 * - COUNT( * ) + + 51 + - - COUNT( - 53 ) * + 46
----
347257

skipif mysql # not compatible
query I rowsort label-6805
SELECT ( - 84 ) * 78 * - 53 + + + 96 * - COUNT ( * ) + + 51 + - - COUNT ( - 53 ) * + 46
----
347257

query II rowsort
SELECT + + 9 AS col0, + ( - 36 )
----
9
-36

query I rowsort
SELECT - 88 * - 57 + - - 40
----
5056

query I rowsort
SELECT ALL 75 * + 8 * + - 77 AS col2
----
-46200

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT DISTINCT + MAX( - + 61 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT + MAX ( - + 61 ) AS col0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6810
SELECT DISTINCT - 71 * + - 32 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT - 71 * + - 32 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6811
SELECT ALL + 87 * + - 19 + + + COUNT( * ) + NULLIF ( - + ( CASE + 39 WHEN + 4 THEN - 31 / - - CAST( + - 14 AS SIGNED ) * 76 + ( + 43 ) + - + 44 * + - 15 END ), + 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL + 87 * + - 19 + + + COUNT ( * ) + NULLIF ( - + ( CASE + 39 WHEN + 4 THEN - 31 / - - CAST ( + - 14 AS INTEGER ) * 76 + ( + 43 ) + - + 44 * + - 15 END ), + 65 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 31 * - 3
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6813
SELECT - COUNT( * ) DIV - 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6813
SELECT - COUNT ( * ) / - 93 AS col1
----
0

query I rowsort
SELECT ALL NULLIF ( 39, ( 21 ) ) * + 54 + - NULLIF ( - 2, + + AVG ( 9 ) + - - 60 ) * 56 * 71 + + 47 * - + 6
----
9776

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT NULLIF ( + COUNT( * ), - + 27 ) * + + 8 + + 19
----
27

skipif mysql # not compatible
query I rowsort label-6815
SELECT NULLIF ( + COUNT ( * ), - + 27 ) * + + 8 + + 19
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT ALL 24 * + CASE - 72 WHEN SUM( + 28 ) * - COUNT( * ) * + 92 + 21 THEN 70 * 81 - + 93 - - - 35 WHEN 48 THEN NULL END + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL 24 * + CASE - 72 WHEN SUM ( + 28 ) * - COUNT ( * ) * + 92 + 21 THEN 70 * 81 - + 93 - - - 35 WHEN 48 THEN NULL END + 35 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + ( + + 11 ), - CASE + 31 WHEN - 73 - - 91 THEN - 40 END )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT DISTINCT 99 * - MIN( ALL - 65 ) + ( 68 ) + - 52 AS col2
----
6451

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT 99 * - MIN ( ALL - 65 ) + ( 68 ) + - 52 AS col2
----
6451

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6819
SELECT ALL 68 * - + 49 + + - COUNT( * ) * + 49 DIV + - 34 col0
----
-3331

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL 68 * - + 49 + + - COUNT ( * ) * + 49 / + - 34 col0
----
-3331

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT MIN( - 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-6820
SELECT MIN ( - 20 ) AS col2
----
-20

query I rowsort
SELECT DISTINCT - 41 + + 24 + - - 96 * - 20 AS col0
----
-1937

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT + 30 * 45 + + COUNT( * ) AS col2
----
1351

skipif mysql # not compatible
query I rowsort label-6822
SELECT + 30 * 45 + + COUNT ( * ) AS col2
----
1351

query I rowsort
SELECT DISTINCT CASE - 6 WHEN 28 THEN + 72 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT ALL ( - - 34 ) + + 50 * + 51 * + COUNT( * ) + 14
----
2598

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL ( - - 34 ) + + 50 * + 51 * + COUNT ( * ) + 14
----
2598

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT DISTINCT COUNT( * ) * + - 11 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT COUNT ( * ) * + - 11 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT - MAX( + + 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-6826
SELECT - MAX ( + + 66 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6827
SELECT + - ( + - CAST( - MAX( ALL NULLIF ( + CASE 92 WHEN 61 THEN + 74 END, + 63 ) ) AS DECIMAL ) ) + 25 + - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6827
SELECT + - ( + - CAST ( - MAX ( ALL NULLIF ( + CASE 92 WHEN 61 THEN + 74 END, + 63 ) ) AS REAL ) ) + 25 + - 42 AS col1
----
NULL

query I rowsort
SELECT ALL - 77 - + 74 * + 10 AS col2
----
-817

query I rowsort
SELECT + + 66 + 62 + + 86
----
214

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6830
SELECT + + 96 DIV + 88 AS col0, 39 * + ( + CAST( NULL AS SIGNED ) ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6830
SELECT + + 96 / + 88 AS col0, 39 * + ( + CAST ( NULL AS INTEGER ) ) AS col1
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6831
SELECT DISTINCT + CAST( - 79 AS SIGNED ) * + - 8 * ( 49 ) * - - ( 99 )
----
3065832

skipif mysql # not compatible
query I rowsort label-6831
SELECT DISTINCT + CAST ( - 79 AS INTEGER ) * + - 8 * ( 49 ) * - - ( 99 )
----
3065832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6832
SELECT + + CAST( NULL AS SIGNED ) + - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6832
SELECT + + CAST ( NULL AS INTEGER ) + - 9 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 8 * 23 + - 35 * 45 AS col1
----
-1391

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT ALL CASE 34 WHEN - COUNT( * ) THEN NULL WHEN + ( - - 76 ) * + 31 + 39 THEN - 60 + + 44 WHEN + SUM( - 33 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL CASE 34 WHEN - COUNT ( * ) THEN NULL WHEN + ( - - 76 ) * + 31 + 39 THEN - 60 + + 44 WHEN + SUM ( - 33 ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6835
SELECT + - 39 + - 72 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6835
SELECT + - 39 + - 72 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 5 - + - CASE 32 WHEN - + 26 + - 52 * - 68 / - - 57 THEN - 49 WHEN ( + 35 ) * - 80 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6837
SELECT ALL + COUNT( * ) * 16 DIV 89 col0
----
0

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL + COUNT ( * ) * 16 / 89 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT - - 89 * - + MIN( + + 81 ) AS col2
----
-7209

skipif mysql # not compatible
query I rowsort label-6838
SELECT - - 89 * - + MIN ( + + 81 ) AS col2
----
-7209

query II rowsort
SELECT ALL + 89 AS col2, 96
----
89
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT + 63 * - + SUM( 5 ) AS col1
----
-315

skipif mysql # not compatible
query I rowsort label-6840
SELECT + 63 * - + SUM ( 5 ) AS col1
----
-315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6841
SELECT ALL 58 / 42 * + + 75 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL 58 / 42 * + + 75 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 90 * + 99 + 8
----
8918

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT - COUNT( * ) * + + 29 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-6843
SELECT - COUNT ( * ) * + + 29 AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6844
SELECT ALL 95 * 44 + + CAST( NULL AS SIGNED ) + 47 + - 60 * 71 + - 5 + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL 95 * 44 + + CAST ( NULL AS INTEGER ) + 47 + - 60 * 71 + - 5 + 30
----
NULL

query I rowsort
SELECT ( + 69 ) AS col0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6846
SELECT - 85 DIV 18 col0
----
-4

skipif mysql # not compatible
query I rowsort label-6846
SELECT - 85 / 18 col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT ALL + 82 * - COUNT( * ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL + 82 * - COUNT ( * ) AS col0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6848
SELECT DISTINCT 64 * + CAST( NULL AS SIGNED ) * 79 + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6848
SELECT DISTINCT 64 * + CAST ( NULL AS INTEGER ) * 79 + 80 AS col0
----
NULL

query I rowsort
SELECT NULLIF ( - 6, + ( + - 54 ) ) col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT NULLIF ( - 54, - ( + 56 ) / ( + ( - + ( - + 76 ) ) ) - + ( - - COUNT( * ) ) ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-6850
SELECT NULLIF ( - 54, - ( + 56 ) / ( + ( - + ( - + 76 ) ) ) - + ( - - COUNT ( * ) ) ) col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT NULLIF ( + + COUNT( * ), + AVG ( DISTINCT 20 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6851
SELECT NULLIF ( + + COUNT ( * ), + AVG ( DISTINCT 20 ) )
----
1

query I rowsort
SELECT + 63 * + ( + + 37 ) * - 41 + + 30
----
-95541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6853
SELECT - 19 - + + 66 / + CAST( NULL AS SIGNED ) + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6853
SELECT - 19 - + + 66 / + CAST ( NULL AS INTEGER ) + 43
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6854
SELECT - 99 * - - 92 * - + CASE + - 92 WHEN - 97 THEN - + 59 + + 20 * + 30 + + 63 ELSE NULL END * + CAST( + - 54 AS SIGNED ) AS col1, + 98 + CASE - ( - 91 ) WHEN - 64 THEN - NULLIF ( + - COUNT( * ), - - 51 ) ELSE NULL END + COUNT( - 57 ) * + CASE + COUNT( * ) WHEN - - 50 THEN NULL ELSE + 47 + 56 END / + 77
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6854
SELECT - 99 * - - 92 * - + CASE + - 92 WHEN - 97 THEN - + 59 + + 20 * + 30 + + 63 ELSE NULL END * + CAST ( + - 54 AS INTEGER ) AS col1, + 98 + CASE - ( - 91 ) WHEN - 64 THEN - NULLIF ( + - COUNT ( * ), - - 51 ) ELSE NULL END + COUNT ( - 57 ) * + CASE + COUNT ( * ) WHEN - - 50 THEN NULL ELSE + 47 + 56 END / + 77
----
NULL
NULL

query I rowsort
SELECT - + NULLIF ( + 40, - + 51 * + 86 + + 94 ) - + 11 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT DISTINCT SUM( - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT SUM ( - 34 )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6857
SELECT - - COUNT( * ) * 36 / + - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT - - COUNT ( * ) * 36 / + - CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT DISTINCT - - 90 * + 11 + COUNT( 55 ) + 97 AS col1
----
1088

skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT - - 90 * + 11 + COUNT ( 55 ) + 97 AS col1
----
1088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6859
SELECT - + 73 + - COALESCE ( + CAST( NULL AS SIGNED ), - 69 + + 45 + - 26 - + 14 )
----
-9

skipif mysql # not compatible
query I rowsort label-6859
SELECT - + 73 + - COALESCE ( + CAST ( NULL AS INTEGER ), - 69 + + 45 + - 26 - + 14 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT DISTINCT + - COUNT( * ) * 23 + 75
----
52

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT + - COUNT ( * ) * 23 + 75
----
52

query I rowsort
SELECT - ( COALESCE ( - + 48, - - 63, + 61 ) ) AS col1
----
48

query II rowsort
SELECT - 15, + 39 AS col1
----
-15
39

query I rowsort
SELECT - ( 93 ) + - 29 col1
----
-122

query II rowsort
SELECT 11, + 28 * 51 col0
----
11
1428

query I rowsort
SELECT ALL 95 + + ( - 46 ) AS col0
----
49

query I rowsort
SELECT 23 + 8 col1
----
31

query I rowsort
SELECT ALL - 27 + - 56 AS col2
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6868
SELECT ALL - 82, CAST( NULL AS SIGNED ) * 79 * - 40 AS col1
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-6868
SELECT ALL - 82, CAST ( NULL AS INTEGER ) * 79 * - 40 AS col1
----
-82
NULL

query I rowsort
SELECT + ( + 41 ) + - + 94
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6870
SELECT ALL 75 + - 58 DIV MAX( - 31 )
----
76

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL 75 + - 58 / MAX ( - 31 )
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-6871
SELECT DISTINCT 86 DIV 25, 44 + + 12 AS col1
----
3
56

skipif mysql # not compatible
query II rowsort label-6871
SELECT DISTINCT 86 / 25, 44 + + 12 AS col1
----
3
56

onlyif mysql # DIV for integer division: 
query I rowsort label-6872
SELECT 79 + 22 * - - 0 DIV - 39 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-6872
SELECT 79 + 22 * - - 0 / - 39 AS col2
----
79

query I rowsort
SELECT ALL 21 * + + 59 AS col2
----
1239

query I rowsort
SELECT ALL 39 + - 75
----
-36

query I rowsort
SELECT ALL 15 + + 27 AS col0
----
42

query I rowsort
SELECT DISTINCT 33 * - 30
----
-990

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6877
SELECT DISTINCT 44 + + 9 * + 24 + + 1 col0, 6 + - - 18 + - ( COUNT( + 66 ) ) DIV + 67
----
261
24

skipif mysql # not compatible
query II rowsort label-6877
SELECT DISTINCT 44 + + 9 * + 24 + + 1 col0, 6 + - - 18 + - ( COUNT ( + 66 ) ) / + 67
----
261
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT SUM( ALL - 95 ) + - 23 AS col0
----
-118

skipif mysql # not compatible
query I rowsort label-6878
SELECT SUM ( ALL - 95 ) + - 23 AS col0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT 98 + - + ( + + 17 ) - CASE - 34 WHEN - + 58 THEN COUNT( * ) * - COUNT( * ) - - + COUNT( * ) ELSE NULL END * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-6879
SELECT 98 + - + ( + + 17 ) - CASE - 34 WHEN - + 58 THEN COUNT ( * ) * - COUNT ( * ) - - + COUNT ( * ) ELSE NULL END * 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT ALL - COUNT( * ) - + 48 - + 71 * + - MIN( 50 ) AS col2
----
3501

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL - COUNT ( * ) - + 48 - + 71 * + - MIN ( 50 ) AS col2
----
3501

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6881
SELECT 33 + - MIN( ALL 42 ) DIV + 30 + - + 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6881
SELECT 33 + - MIN ( ALL 42 ) / + 30 + - + 32 AS col1
----
0

query I rowsort
SELECT ALL + 60 * - ( + 87 )
----
-5220

query I rowsort
SELECT ( + 89 ) * - 49 * 91 * 82 * - 63 + - 80 col0
----
2050132186

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT - MAX( ALL 81 ) * + - 51 * + 71
----
293301

skipif mysql # not compatible
query I rowsort label-6884
SELECT - MAX ( ALL 81 ) * + - 51 * + 71
----
293301

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6885
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 61
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6886
SELECT 38 * - 58 + + 19 - 17 + 1 DIV 26 * 57 DIV + - 90 * + - 28 AS col2
----
-2202

skipif mysql # not compatible
query I rowsort label-6886
SELECT 38 * - 58 + + 19 - 17 + 1 / 26 * 57 / + - 90 * + - 28 AS col2
----
-2202

query I rowsort
SELECT DISTINCT - COALESCE ( + 70, - 36 ) col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6888
SELECT DISTINCT - - CASE + 91 WHEN - 80 THEN - + 15 * + - ( - - 45 ) + - CAST( NULL AS SIGNED ) * 94 + - 21 + + ( - - 87 ) * COUNT( ALL - 74 ) * + 28 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6888
SELECT DISTINCT - - CASE + 91 WHEN - 80 THEN - + 15 * + - ( - - 45 ) + - CAST ( NULL AS INTEGER ) * 94 + - 21 + + ( - - 87 ) * COUNT ( ALL - 74 ) * + 28 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT + COUNT( * ) * + - 17 + + 82 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-6889
SELECT + COUNT ( * ) * + - 17 + + 82 AS col0
----
65

query I rowsort
SELECT ALL NULLIF ( ( + - 59 ), - 80 ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-6891
SELECT MIN( DISTINCT - - 14 ) * 28 * 1 AS col2, + 15 * - + 80 AS col2
----
392
-1200

skipif mysql # not compatible
query II rowsort label-6891
SELECT MIN ( DISTINCT - - 14 ) * 28 * 1 AS col2, + 15 * - + 80 AS col2
----
392
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT - + 41 * - + SUM( 29 ) - COUNT( * ) * + 76 AS col2
----
1113

skipif mysql # not compatible
query I rowsort label-6892
SELECT - + 41 * - + SUM ( 29 ) - COUNT ( * ) * + 76 AS col2
----
1113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6893
SELECT - 99 DIV + 6 + 96 - + 49 + + + 0 + + 1 * - - 0 * + + COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-6893
SELECT - 99 / + 6 + 96 - + 49 + + + 0 + + 1 * - - 0 * + + COUNT ( * ) AS col0
----
31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6894
SELECT - 69 + - + 44 DIV - 53 * + 23 * + + CAST( + + 97 AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-6894
SELECT - 69 + - + 44 / - 53 * + 23 * + + CAST ( + + 97 AS INTEGER )
----
-69

query I rowsort
SELECT 68 * 66
----
4488

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6896
SELECT - 83 + 67 AS col0, - CAST( - 98 AS SIGNED ) * - 87
----
-16
-8526

skipif mysql # not compatible
query II rowsort label-6896
SELECT - 83 + 67 AS col0, - CAST ( - 98 AS INTEGER ) * - 87
----
-16
-8526

query II rowsort
SELECT ( - 18 ) AS col2, 11
----
-18
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT ALL - 42 + COUNT( * ) col0
----
-41

skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL - 42 + COUNT ( * ) col0
----
-41

query I rowsort
SELECT ALL 2 + + 62 col2
----
64

query I rowsort
SELECT 44 * + 71 AS col2
----
3124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6901
SELECT DISTINCT + 8 + + CAST( NULL AS SIGNED ) * 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT + 8 + + CAST ( NULL AS INTEGER ) * 54 AS col1
----
NULL

query I rowsort
SELECT ALL - 54 + CASE - 67 WHEN 50 * + 32 THEN NULL ELSE + + 23 * + - 57 END * + 60
----
-78714

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6903
SELECT ALL + 99 * - 57 * + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL + 99 * - 57 * + - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 9 - - 45 AS col0
----
54

query II rowsort
SELECT ALL - 54 - - ( + 35 ) AS col1, + 59 AS col0
----
-19
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6906
SELECT DISTINCT - 57 * - + 79 * - + 11 - + - 89 * CASE + + 63 WHEN COUNT( * ) + 35 + 3 * - 11 THEN - 37 WHEN - 51 / 78 * + CAST( NULL AS SIGNED ) * + - SUM( - 74 ) + AVG ( ( + NULLIF ( + + 22, - - 68 ) ) ) THEN + 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT - 57 * - + 79 * - + 11 - + - 89 * CASE + + 63 WHEN COUNT ( * ) + 35 + 3 * - 11 THEN - 37 WHEN - 51 / 78 * + CAST ( NULL AS INTEGER ) * + - SUM ( - 74 ) + AVG ( ( + NULLIF ( + + 22, - - 68 ) ) ) THEN + 28 END
----
NULL

query I rowsort
SELECT ALL + 24 * 90 - + 79 * 72 AS col1
----
-3528

query I rowsort
SELECT DISTINCT 20 * ( + + 86 ) AS col1
----
1720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6909
SELECT 8 * - MIN( ALL - 28 ) * + CAST( NULL AS SIGNED ) - - + 93 + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT 8 * - MIN ( ALL - 28 ) * + CAST ( NULL AS INTEGER ) - - + 93 + + 82
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6910
SELECT ALL 32 DIV + + 26
----
1

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL 32 / + + 26
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT COUNT( * ) * 23 + - 87 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-6911
SELECT COUNT ( * ) * 23 + - 87 AS col1
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-6912
SELECT 14 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-6912
SELECT 14 / 60
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6913
SELECT + 18 DIV 41 + - 95 + - 66 + COUNT( * ) DIV + 3 + - + 37 + - - SUM( ALL ( + 80 ) ) + - 2 - + + ( - COUNT( * ) ) * - + 20 AS col2
----
-140

skipif mysql # not compatible
query I rowsort label-6913
SELECT + 18 / 41 + - 95 + - 66 + COUNT ( * ) / + 3 + - + 37 + - - SUM ( ALL ( + 80 ) ) + - 2 - + + ( - COUNT ( * ) ) * - + 20 AS col2
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT MAX( DISTINCT + 3 ) * - - 40
----
120

skipif mysql # not compatible
query I rowsort label-6914
SELECT MAX ( DISTINCT + 3 ) * - - 40
----
120

query I rowsort
SELECT 98 + 47 + 19 * + - 42 + + 43 AS col0
----
-610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6916
SELECT DISTINCT CASE - 28 WHEN 90 THEN NULL WHEN - COUNT( * ) / - + 97 THEN 25 + - 95 + - - MAX( ALL + CAST( NULL AS SIGNED ) ) WHEN - 28 * 6 * + - 74 THEN 60 + + 54 + + 55 * + COUNT( * ) ELSE 3 END * 62 * 1
----
186

skipif mysql # not compatible
query I rowsort label-6916
SELECT DISTINCT CASE - 28 WHEN 90 THEN NULL WHEN - COUNT ( * ) / - + 97 THEN 25 + - 95 + - - MAX ( ALL + CAST ( NULL AS INTEGER ) ) WHEN - 28 * 6 * + - 74 THEN 60 + + 54 + + 55 * + COUNT ( * ) ELSE 3 END * 62 * 1
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT ALL CASE - - 17 WHEN + AVG ( + - 79 ) - 85 THEN NULL ELSE - 42 END * - + COUNT( * ) + - ( - 75 ) + - COALESCE ( + 68, + - 89 * + 87 - 94 ) * + - 67
----
4673

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL CASE - - 17 WHEN + AVG ( + - 79 ) - 85 THEN NULL ELSE - 42 END * - + COUNT ( * ) + - ( - 75 ) + - COALESCE ( + 68, + - 89 * + 87 - 94 ) * + - 67
----
4673

onlyif mysql # aggregate syntax: 
query II rowsort label-6918
SELECT - 82 * - SUM( - 52 ) + + + COUNT( * ) + + 60 AS col0, - 23 * + + 73 col1
----
-4203
-1679

skipif mysql # not compatible
query II rowsort label-6918
SELECT - 82 * - SUM ( - 52 ) + + + COUNT ( * ) + + 60 AS col0, - 23 * + + 73 col1
----
-4203
-1679

onlyif mysql # aggregate syntax: 
query II rowsort label-6919
SELECT ALL - 14 AS col2, MAX( ALL 11 ) - + COUNT( * )
----
-14
10

skipif mysql # not compatible
query II rowsort label-6919
SELECT ALL - 14 AS col2, MAX ( ALL 11 ) - + COUNT ( * )
----
-14
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT DISTINCT - + SUM( + - 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-6920
SELECT DISTINCT - + SUM ( + - 69 ) AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6921
SELECT ( - ( + - 57 ) ) * + 84 + 62 + 70 DIV COALESCE ( - 76, - SUM( ALL + + CAST( NULL AS SIGNED ) ) ) * 50 * + + 66 AS col2
----
4850

skipif mysql # not compatible
query I rowsort label-6921
SELECT ( - ( + - 57 ) ) * + 84 + 62 + 70 / COALESCE ( - 76, - SUM ( ALL + + CAST ( NULL AS INTEGER ) ) ) * 50 * + + 66 AS col2
----
4850

onlyif mysql # aggregate syntax: 
query II rowsort label-6922
SELECT ALL + + COUNT( + 86 ) + + COALESCE ( - 12, - 48 ) AS col2, - NULLIF ( - - MIN( DISTINCT - - 47 ), - COUNT( * ) * 18 + + 9 ) - 44 AS col1
----
-11
-91

skipif mysql # not compatible
query II rowsort label-6922
SELECT ALL + + COUNT ( + 86 ) + + COALESCE ( - 12, - 48 ) AS col2, - NULLIF ( - - MIN ( DISTINCT - - 47 ), - COUNT ( * ) * 18 + + 9 ) - 44 AS col1
----
-11
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6923
SELECT + COUNT( * ) DIV + SUM( + - 12 ), 15 + + 86 + + 29 AS col1
----
0
130

skipif mysql # not compatible
query II rowsort label-6923
SELECT + COUNT ( * ) / + SUM ( + - 12 ), 15 + + 86 + + 29 AS col1
----
0
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6924
SELECT - + ( COUNT( * ) ) DIV - 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6924
SELECT - + ( COUNT ( * ) ) / - 61 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT DISTINCT - - 56 + 73 + + NULLIF ( 14, - - 69 + - 50 ) * 63 + + - CASE 43 WHEN - + 4 THEN - ( + - 78 ) / - CASE + 32 WHEN + 67 * + COALESCE ( - - 9, + + 70 + - + 95 ) / + + COUNT( DISTINCT 13 ) THEN - - 67 - 72 + - + SUM( 96 ) END * + - 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT - - 56 + 73 + + NULLIF ( 14, - - 69 + - 50 ) * 63 + + - CASE 43 WHEN - + 4 THEN - ( + - 78 ) / - CASE + 32 WHEN + 67 * + COALESCE ( - - 9, + + 70 + - + 95 ) / + + COUNT ( DISTINCT 13 ) THEN - - 67 - 72 + - + SUM ( 96 ) END * + - 69 END
----
NULL

query I rowsort
SELECT - - 50 * - - 47 AS col2
----
2350

query I rowsort
SELECT ALL + 22 + + - 43 AS col0
----
-21

query I rowsort
SELECT - COALESCE ( + 54, + ( - - 73 ) )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT - 21 + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-6929
SELECT - 21 + COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT - ( - SUM( + - 15 ) ) + - 65 + + 28 * - + 34 * 45
----
-42920

skipif mysql # not compatible
query I rowsort label-6930
SELECT - ( - SUM ( + - 15 ) ) + - 65 + + 28 * - + 34 * 45
----
-42920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6931
SELECT ALL 4 - + - NULLIF ( - 59, + + 57 + - 37 * CAST( NULL AS SIGNED ) )
----
-55

skipif mysql # not compatible
query I rowsort label-6931
SELECT ALL 4 - + - NULLIF ( - 59, + + 57 + - 37 * CAST ( NULL AS INTEGER ) )
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-6932
SELECT - COUNT( + 65 ) + + 16 * + - 61 AS col1, COUNT( - 68 )
----
-977
1

skipif mysql # not compatible
query II rowsort label-6932
SELECT - COUNT ( + 65 ) + + 16 * + - 61 AS col1, COUNT ( - 68 )
----
-977
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT ALL - NULLIF ( - + 5, - COALESCE ( - ( 60 ), + 29, 97 ) ) - CASE - 70 WHEN - 26 + - - COUNT( * ) + - - 10 + - 74 THEN NULL ELSE + 2 END + - 58
----
-55

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL - NULLIF ( - + 5, - COALESCE ( - ( 60 ), + 29, 97 ) ) - CASE - 70 WHEN - 26 + - - COUNT ( * ) + - - 10 + - 74 THEN NULL ELSE + 2 END + - 58
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT ALL MAX( DISTINCT - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-6934
SELECT ALL MAX ( DISTINCT - 15 )
----
-15

query II rowsort
SELECT - 68 * 34 col2, - 83 + - CASE 31 WHEN 14 + 24 THEN NULL ELSE + 43 END + + 44
----
-2312
-82

query I rowsort
SELECT ALL NULLIF ( + 91, - ( + 32 ) ) AS col2
----
91

query II rowsort
SELECT ( 6 ), + 6 col2
----
6
6

query I rowsort
SELECT ALL - 60 * - 92 AS col2
----
5520

query I rowsort
SELECT - 32 * + 8
----
-256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6940
SELECT DISTINCT - AVG ( - 9 ) * - + 82 * - CASE - + 33 WHEN COALESCE ( - + COALESCE ( - ( - - CASE 94 WHEN - CAST( COALESCE ( - - COUNT( * ), + 76 ) AS SIGNED ) THEN COUNT( * ) END ), 86 + - 66, + 18 * - - 16 * + - 48 * 29 + + 52 + - NULLIF ( CASE - 83 WHEN 18 + - - 4 + - 23 / 40 * - + 83 + - + COUNT( * ) THEN NULL ELSE + 86 END, + + 88 * + 67 * + 10 ) + - - COALESCE ( + - 84, + 88 + + - 36 + + + 84 ) / - CASE - - CAST( NULL AS SIGNED ) WHEN - + 19 THEN - 81 END / + 44 - + + 42 * CAST( NULL AS SIGNED ) ), + 69 ) THEN 54 * 20 + 67 / - 35 WHEN 40 THEN 21 * + MIN( 63 ) WHEN + 49 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT - AVG ( - 9 ) * - + 82 * - CASE - + 33 WHEN COALESCE ( - + COALESCE ( - ( - - CASE 94 WHEN - CAST ( COALESCE ( - - COUNT ( * ), + 76 ) AS INTEGER ) THEN COUNT ( * ) END ), 86 + - 66, + 18 * - - 16 * + - 48 * 29 + + 52 + - NULLIF ( CASE - 83 WHEN 18 + - - 4 + - 23 / 40 * - + 83 + - + COUNT ( * ) THEN NULL ELSE + 86 END, + + 88 * + 67 * + 10 ) + - - COALESCE ( + - 84, + 88 + + - 36 + + + 84 ) / - CASE - - CAST ( NULL AS INTEGER ) WHEN - + 19 THEN - 81 END / + 44 - + + 42 * CAST ( NULL AS INTEGER ) ), + 69 ) THEN 54 * 20 + 67 / - 35 WHEN 40 THEN 21 * + MIN ( 63 ) WHEN + 49 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - 88 * + 52 + + + 25 AS col0
----
-4551

query I rowsort
SELECT - 67 * 2 * 98 AS col0
----
-13132

query I rowsort
SELECT DISTINCT + NULLIF ( + + 89, CASE - + 81 WHEN 77 + + 73 THEN NULL WHEN - + 86 THEN NULL WHEN - - 40 THEN NULL ELSE + 92 * + 93 END ) AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6944
SELECT ALL + CASE - 76 WHEN 88 THEN NULL WHEN - + 8 THEN NULL ELSE - - 31 * 69 DIV + NULLIF ( - COUNT( + 92 ), - 40 - + ( 4 ) ) + 47 + - 8 END
----
-2100

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL + CASE - 76 WHEN 88 THEN NULL WHEN - + 8 THEN NULL ELSE - - 31 * 69 / + NULLIF ( - COUNT ( + 92 ), - 40 - + ( 4 ) ) + 47 + - 8 END
----
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT - 60 + - + 43 + - ( MAX( ALL - 40 ) ) col1
----
-63

skipif mysql # not compatible
query I rowsort label-6945
SELECT - 60 + - + 43 + - ( MAX ( ALL - 40 ) ) col1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT ALL - 69 DIV - + 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6946
SELECT ALL - 69 / - + 84 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT + 6 * - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-6947
SELECT + 6 * - COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT ALL - + COUNT( * ) * + - 66 + - + 8 + + COUNT( * ) + - - 44 * 48 + - 20 AS col1
----
2151

skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL - + COUNT ( * ) * + - 66 + - + 8 + + COUNT ( * ) + - - 44 * 48 + - 20 AS col1
----
2151

query II rowsort
SELECT ALL + + 98 AS col2, 50 + 22
----
98
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT 97 * - NULLIF ( + - 0, - SUM( 61 ) + + 49 ) + - COUNT( * ) + + - 95 * - - 37 + ( + + 0 ) AS col2
----
-3516

skipif mysql # not compatible
query I rowsort label-6950
SELECT 97 * - NULLIF ( + - 0, - SUM ( 61 ) + + 49 ) + - COUNT ( * ) + + - 95 * - - 37 + ( + + 0 ) AS col2
----
-3516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6951
SELECT ALL - COUNT( * ) * - + COALESCE ( - COUNT( * ), + ( 59 ), - 77 - + - CAST( NULL AS SIGNED ) * + - 1, - 32 - - 22 + + - 8 * 86 + ( + ( + 34 ) ) DIV - 40 - 29 + 64 + 86 ) + - - 75
----
74

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL - COUNT ( * ) * - + COALESCE ( - COUNT ( * ), + ( 59 ), - 77 - + - CAST ( NULL AS INTEGER ) * + - 1, - 32 - - 22 + + - 8 * 86 + ( + ( + 34 ) ) / - 40 - 29 + 64 + 86 ) + - - 75
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-6952
SELECT + + 52 AS col1, MAX( DISTINCT - + 17 ) + - + 42
----
52
-59

skipif mysql # not compatible
query II rowsort label-6952
SELECT + + 52 AS col1, MAX ( DISTINCT - + 17 ) + - + 42
----
52
-59

query II rowsort
SELECT - 33 AS col0, 30
----
-33
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT ALL 34 * ( + NULLIF ( SUM( DISTINCT - 64 ), + 52 ) )
----
-2176

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL 34 * ( + NULLIF ( SUM ( DISTINCT - 64 ), + 52 ) )
----
-2176

onlyif mysql # aggregate syntax: 
query II rowsort label-6955
SELECT ALL - 97 * - 74 + CASE + 96 WHEN + SUM( - 11 ) THEN CASE NULLIF ( - 61, + + 7 ) WHEN + ( + 80 ) THEN + 97 + + 92 + + CASE 3 WHEN - + 83 THEN - - 26 WHEN + COUNT( * ) THEN NULL ELSE - 92 END + + COUNT( * ) / + COUNT( * ) / + NULLIF ( + ( - COALESCE ( + ( COUNT( * ) ), - 66, - 13 * + 4 ) ), + - 50 ) - - 57 + + 96 + - 48 + - COUNT( * ) + - 53 * + 30 END + - 60 + - - ( 30 ) WHEN + 98 THEN NULL END, - 30 * + + 41 AS col2
----
NULL
-1230

skipif mysql # not compatible
query II rowsort label-6955
SELECT ALL - 97 * - 74 + CASE + 96 WHEN + SUM ( - 11 ) THEN CASE NULLIF ( - 61, + + 7 ) WHEN + ( + 80 ) THEN + 97 + + 92 + + CASE 3 WHEN - + 83 THEN - - 26 WHEN + COUNT ( * ) THEN NULL ELSE - 92 END + + COUNT ( * ) / + COUNT ( * ) / + NULLIF ( + ( - COALESCE ( + ( COUNT ( * ) ), - 66, - 13 * + 4 ) ), + - 50 ) - - 57 + + 96 + - 48 + - COUNT ( * ) + - 53 * + 30 END + - 60 + - - ( 30 ) WHEN + 98 THEN NULL END, - 30 * + + 41 AS col2
----
NULL
-1230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6956
SELECT DISTINCT - CAST( - 69 AS SIGNED ) * - + CAST( NULL AS SIGNED ) + 7 + - + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT - CAST ( - 69 AS INTEGER ) * - + CAST ( NULL AS INTEGER ) + 7 + - + 39
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6957
SELECT DISTINCT + + 96 AS col2, COUNT( * )
----
96
1

skipif mysql # not compatible
query II rowsort label-6957
SELECT DISTINCT + + 96 AS col2, COUNT ( * )
----
96
1

query I rowsort
SELECT DISTINCT + ( - - 75 ) AS col2
----
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6959
SELECT ALL 66 * + - COALESCE ( + - 97, 21 * + + 33 * - 7 DIV CAST( 59 AS SIGNED ) ) + CAST( - 78 AS SIGNED ) AS col2
----
6324

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL 66 * + - COALESCE ( + - 97, 21 * + + 33 * - 7 / CAST ( 59 AS INTEGER ) ) + CAST ( - 78 AS INTEGER ) AS col2
----
6324

query I rowsort
SELECT - NULLIF ( - 8, + 61 / + 15 ) AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6961
SELECT DISTINCT - 60 * + COUNT( * ) + - - 87 DIV - MIN( + 97 ) * - 95 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT - 60 * + COUNT ( * ) + - - 87 / - MIN ( + 97 ) * - 95 AS col2
----
-60

query I rowsort
SELECT + 88 - + 42 col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT + COUNT( ALL + 16 ) * 18
----
18

skipif mysql # not compatible
query I rowsort label-6963
SELECT + COUNT ( ALL + 16 ) * 18
----
18

query I rowsort
SELECT ALL ( - 12 ) AS col1
----
-12

query I rowsort
SELECT + + ( + + 68 ) + 89
----
157

query II rowsort
SELECT - + 13 AS col1, 46 AS col2
----
-13
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT - - COUNT( * ) + - + 24 * + 9
----
-215

skipif mysql # not compatible
query I rowsort label-6967
SELECT - - COUNT ( * ) + - + 24 * + 9
----
-215

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT DISTINCT MIN( ALL + 81 ) col1
----
81

skipif mysql # not compatible
query I rowsort label-6968
SELECT DISTINCT MIN ( ALL + 81 ) col1
----
81

query I rowsort
SELECT + ( 95 ) - 94 AS col1
----
1

query I rowsort
SELECT ALL 56 * - + 22 AS col2
----
-1232

query II rowsort
SELECT - ( - + 49 ) AS col1, + 66
----
49
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT DISTINCT MIN( DISTINCT 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT MIN ( DISTINCT 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-6973
SELECT ALL COALESCE ( - - 53, + 5 ), - 49 * - COUNT( * ) col0
----
53
49

skipif mysql # not compatible
query II rowsort label-6973
SELECT ALL COALESCE ( - - 53, + 5 ), - 49 * - COUNT ( * ) col0
----
53
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT + COUNT( * ) * 69 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-6974
SELECT + COUNT ( * ) * 69 AS col0
----
69

query I rowsort
SELECT ALL COALESCE ( - + 35, - CASE + 12 WHEN + + 69 + - + 56 / 79 THEN 11 WHEN - 91 THEN NULL ELSE NULL END + 6 ) AS col2
----
-35

query II rowsort
SELECT ALL ( - 54 ), ( - + 56 ) * 11 + + + 87 + + 93 AS col2
----
-54
-436

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT + 8 - MIN( DISTINCT 40 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-6977
SELECT + 8 - MIN ( DISTINCT 40 ) AS col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-6978
SELECT - 67 DIV + ( ( - 35 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6978
SELECT - 67 / + ( ( - 35 ) ) col0
----
1

query I rowsort
SELECT ALL ( - - 94 )
----
94

query I rowsort
SELECT DISTINCT ( - - 85 ) AS col2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6981
SELECT DISTINCT - 15 DIV 24 * + + 4 + + MAX( DISTINCT + 0 ) + - - 52 DIV 55 AS col0, 0 * - ( + - 8 ) AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-6981
SELECT DISTINCT - 15 / 24 * + + 4 + + MAX ( DISTINCT + 0 ) + - - 52 / 55 AS col0, 0 * - ( + - 8 ) AS col2
----
0
0

query I rowsort
SELECT ALL - ( + + 83 ) * + + 41 + 64
----
-3339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6983
SELECT DISTINCT 90 DIV - - 34 + - ( - COALESCE ( + NULLIF ( COUNT( * ), - 84 * + CAST( + - 8 AS SIGNED ) ), + + 81 * 33 * 37 - + - 99 DIV + 27 + + 26 ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT 90 / - - 34 + - ( - COALESCE ( + NULLIF ( COUNT ( * ), - 84 * + CAST ( + - 8 AS INTEGER ) ), + + 81 * 33 * 37 - + - 99 / + 27 + + 26 ) ) AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6984
SELECT ALL - + CAST( + 8 AS SIGNED ) * - 40 AS col2
----
320

skipif mysql # not compatible
query I rowsort label-6984
SELECT ALL - + CAST ( + 8 AS INTEGER ) * - 40 AS col2
----
320

onlyif mysql # DIV for integer division: 
query I rowsort label-6985
SELECT ALL + - 32 DIV + 46 * - 37 + + 79 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL + - 32 / + 46 * - 37 + + 79 AS col2
----
79

query I rowsort
SELECT DISTINCT - 62 * + 76
----
-4712

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT + MIN( - 93 ) + - 4
----
-97

skipif mysql # not compatible
query I rowsort label-6987
SELECT + MIN ( - 93 ) + - 4
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT NULLIF ( + 4, - 81 / + 4 * COUNT( * ) ) * + 16 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-6988
SELECT NULLIF ( + 4, - 81 / + 4 * COUNT ( * ) ) * + 16 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT ALL - + 6 + - COUNT( * ) + ( - 98 ) AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL - + 6 + - COUNT ( * ) + ( - 98 ) AS col2
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT - 79 + + + MIN( + 30 ) * + 33
----
911

skipif mysql # not compatible
query I rowsort label-6990
SELECT - 79 + + + MIN ( + 30 ) * + 33
----
911

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT 66 + + + COUNT( * ) * - - 54 col1
----
120

skipif mysql # not compatible
query I rowsort label-6991
SELECT 66 + + + COUNT ( * ) * - - 54 col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT DISTINCT + - MIN( + + 42 ) + + 87 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT + - MIN ( + + 42 ) + + 87 AS col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6993
SELECT ALL - 80 DIV 12 + + 85 * + 96 col0
----
8154

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL - 80 / 12 + + 85 * + 96 col0
----
8154

query I rowsort
SELECT ALL - 10 + - + 18 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT 36 - + 56 + + COUNT( * ) + 5 + 70
----
56

skipif mysql # not compatible
query I rowsort label-6995
SELECT 36 - + 56 + + COUNT ( * ) + 5 + 70
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6996
SELECT ALL + 19 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL + 19 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 86 * + 54 + - + 48 * - 92 AS col0
----
9060

query I rowsort
SELECT ALL 35 * - 35 col1
----
-1225

query I rowsort
SELECT ALL 39 - 91
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-7000
SELECT 15 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-7000
SELECT 15 / 84
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7001
SELECT ALL + CASE + ( + + 41 ) WHEN + MIN( - 17 ) THEN + 38 END / + 67 * - - 55 * + 77 * + COALESCE ( + CAST( NULL AS SIGNED ), + - 85, ( - 38 ), COUNT( * ) * - 8 / 33 * - + 35 * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL + CASE + ( + + 41 ) WHEN + MIN ( - 17 ) THEN + 38 END / + 67 * - - 55 * + 77 * + COALESCE ( + CAST ( NULL AS INTEGER ), + - 85, ( - 38 ), COUNT ( * ) * - 8 / 33 * - + 35 * COUNT ( * ) )
----
NULL

query II rowsort
SELECT 58, 16 AS col1
----
58
16

query I rowsort
SELECT ALL - 95 * - 27
----
2565

onlyif mysql # aggregate syntax: 
query II rowsort label-7004
SELECT 79 + - - 31 - + + 73, 93 + COUNT( * ) AS col1
----
37
94

skipif mysql # not compatible
query II rowsort label-7004
SELECT 79 + - - 31 - + + 73, 93 + COUNT ( * ) AS col1
----
37
94

query II rowsort
SELECT - 38, + 51 AS col1
----
-38
51

query II rowsort
SELECT ALL 90 AS col2, - 84 AS col2
----
90
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7007
SELECT ALL COUNT( * ) DIV - 1 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL COUNT ( * ) / - 1 AS col2
----
-1

query I rowsort
SELECT COALESCE ( + + 16, - 37, - + 75 ) + 33 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT ALL - 34 + 52 * - COUNT( DISTINCT + + 82 )
----
-86

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL - 34 + 52 * - COUNT ( DISTINCT + + 82 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT NULLIF ( + 6, - - MAX( - 7 ) ) * - ( - 67 ) * + + 9
----
3618

skipif mysql # not compatible
query I rowsort label-7010
SELECT NULLIF ( + 6, - - MAX ( - 7 ) ) * - ( - 67 ) * + + 9
----
3618

query I rowsort
SELECT 48 + + 19 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT ALL - SUM( DISTINCT - + 74 )
----
74

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL - SUM ( DISTINCT - + 74 )
----
74

query II rowsort
SELECT DISTINCT - 30 AS col0, 25 + - 91
----
-30
-66

query I rowsort
SELECT 89 * + + 26 AS col2
----
2314

query II rowsort
SELECT ALL - + 33 AS col0, + 18
----
-33
18

onlyif mysql # aggregate syntax: 
query II rowsort label-7016
SELECT ALL - + 16 AS col2, COALESCE ( - MAX( DISTINCT - - 42 ), + COALESCE ( - 43, + 23 ) ) col0
----
-16
-42

skipif mysql # not compatible
query II rowsort label-7016
SELECT ALL - + 16 AS col2, COALESCE ( - MAX ( DISTINCT - - 42 ), + COALESCE ( - 43, + 23 ) ) col0
----
-16
-42

query I rowsort
SELECT ALL - 14 - + + 64 * + 57 AS col2
----
-3662

query II rowsort
SELECT DISTINCT - 99, + 3 * 29 + - 73 col2
----
-99
14

query I rowsort
SELECT ALL - 34 - + 27 AS col0
----
-61

query I rowsort
SELECT 58 * 28 * - 18 * - 6 * 35 AS col0
----
6138720

onlyif mysql # aggregate syntax: 
query II rowsort label-7021
SELECT ALL - - 83, 83 * + COUNT( * ) AS col1
----
83
83

skipif mysql # not compatible
query II rowsort label-7021
SELECT ALL - - 83, 83 * + COUNT ( * ) AS col1
----
83
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7022
SELECT 91 AS col1, COALESCE ( + ( - NULLIF ( + MAX( 35 ), + 78 * + 19 + CAST( 30 AS SIGNED ) ) ), + 11 + - 30 ) * - - 22 * + CASE + 24 WHEN + 18 THEN 83 * - ( - CAST( + + 11 AS SIGNED ) ) ELSE NULL END + - 40 + + - 5 * SUM( + 7 ) + + COUNT( * )
----
91
NULL

skipif mysql # not compatible
query II rowsort label-7022
SELECT 91 AS col1, COALESCE ( + ( - NULLIF ( + MAX ( 35 ), + 78 * + 19 + CAST ( 30 AS INTEGER ) ) ), + 11 + - 30 ) * - - 22 * + CASE + 24 WHEN + 18 THEN 83 * - ( - CAST ( + + 11 AS INTEGER ) ) ELSE NULL END + - 40 + + - 5 * SUM ( + 7 ) + + COUNT ( * )
----
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT + COUNT( ALL + 27 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7023
SELECT + COUNT ( ALL + 27 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT + NULLIF ( - COUNT( * ), - 45 + + ( 89 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7024
SELECT + NULLIF ( - COUNT ( * ), - 45 + + ( 89 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7025
SELECT 50 + - + CAST( NULL AS SIGNED ) + - MIN( ALL - + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7025
SELECT 50 + - + CAST ( NULL AS INTEGER ) + - MIN ( ALL - + 72 )
----
NULL

query II rowsort
SELECT 38 * + - 50 * - 26, 20 AS col2
----
49400
20

query I rowsort
SELECT DISTINCT + - 61 * + 67 * - ( - 57 )
----
-232959

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT + + COUNT( DISTINCT 40 )
----
1

skipif mysql # not compatible
query I rowsort label-7028
SELECT + + COUNT ( DISTINCT 40 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT DISTINCT + COUNT( * ) * 57
----
57

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT + COUNT ( * ) * 57
----
57

query I rowsort
SELECT DISTINCT - 66 - 58
----
-124

onlyif mysql # aggregate syntax: 
query II rowsort label-7031
SELECT ALL - NULLIF ( - - 21, COUNT( DISTINCT 71 ) ) AS col0, - COUNT( * ) col1
----
-21
-1

skipif mysql # not compatible
query II rowsort label-7031
SELECT ALL - NULLIF ( - - 21, COUNT ( DISTINCT 71 ) ) AS col0, - COUNT ( * ) col1
----
-21
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7032
SELECT - 92 AS col0, + COUNT( - + 24 ) DIV COALESCE ( + 27, + 11 ) - - 86 AS col2
----
-92
86

skipif mysql # not compatible
query II rowsort label-7032
SELECT - 92 AS col0, + COUNT ( - + 24 ) / COALESCE ( + 27, + 11 ) - - 86 AS col2
----
-92
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT DISTINCT NULLIF ( - 24, ( + 12 ) - 94 ) / + CASE 42 WHEN + 88 THEN + - 23 ELSE NULL END * + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT NULLIF ( - 24, ( + 12 ) - 94 ) / + CASE 42 WHEN + 88 THEN + - 23 ELSE NULL END * + COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7034
SELECT ALL MAX( - - ( + ( - 24 ) ) ), COUNT( * ) DIV 48 - + 74 AS col1
----
-24
-74

skipif mysql # not compatible
query II rowsort label-7034
SELECT ALL MAX ( - - ( + ( - 24 ) ) ), COUNT ( * ) / 48 - + 74 AS col1
----
-24
-74

query I rowsort
SELECT + 84 * - 52 - - 13 AS col1
----
-4355

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7036
SELECT COUNT( * ) DIV 2 * + 32
----
0

skipif mysql # not compatible
query I rowsort label-7036
SELECT COUNT ( * ) / 2 * + 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT ALL MIN( + 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL MIN ( + 32 ) AS col0
----
32

query I rowsort
SELECT 79 * - 18 * + 72 AS col1
----
-102384

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT COUNT( * ) + - 48 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-7039
SELECT COUNT ( * ) + - 48 AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7040
SELECT DISTINCT + COUNT( * ) / + CASE + 66 WHEN + ( 30 ) + - 21 THEN - - MAX( 53 ) * + - 26 WHEN - + CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7040
SELECT DISTINCT + COUNT ( * ) / + CASE + 66 WHEN + ( 30 ) + - 21 THEN - - MAX ( 53 ) * + - 26 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7041
SELECT 98 DIV + - 45 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7041
SELECT 98 / + - 45 AS col0
----
-2

query I rowsort
SELECT ( + 86 ) + + - 44 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT COUNT( * ) * ( 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-7043
SELECT COUNT ( * ) * ( 22 ) AS col2
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7044
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7044
SELECT DISTINCT CAST ( NULL AS REAL ) * + + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT DISTINCT NULLIF ( - + COUNT( * ), 66 ) + + 93
----
92

skipif mysql # not compatible
query I rowsort label-7045
SELECT DISTINCT NULLIF ( - + COUNT ( * ), 66 ) + + 93
----
92

query I rowsort
SELECT ALL + 47 * + 74
----
3478

query I rowsort
SELECT DISTINCT 90 + + + 27 - 97 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT - MAX( DISTINCT - 75 )
----
75

skipif mysql # not compatible
query I rowsort label-7048
SELECT - MAX ( DISTINCT - 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT - MIN( ALL ( + 2 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-7049
SELECT - MIN ( ALL ( + 2 ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT ALL ( + 79 ) + CASE - 28 WHEN 8 THEN NULL WHEN - 6 + + 61 + + 54 - + 20 + + COUNT( * ) THEN NULL WHEN + 83 THEN NULL ELSE - + ( + MAX( 79 ) ) * - 80 * + 15 + 0 + + - CASE - + 97 WHEN - 12 THEN - - 90 END - - 29 END * + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL ( + 79 ) + CASE - 28 WHEN 8 THEN NULL WHEN - 6 + + 61 + + 54 - + 20 + + COUNT ( * ) THEN NULL WHEN + 83 THEN NULL ELSE - + ( + MAX ( 79 ) ) * - 80 * + 15 + 0 + + - CASE - + 97 WHEN - 12 THEN - - 90 END - - 29 END * + 87 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7051
SELECT + 19 * + COUNT( * ) AS col0, + 77 * + COUNT( DISTINCT + 6 ) AS col2
----
19
77

skipif mysql # not compatible
query II rowsort label-7051
SELECT + 19 * + COUNT ( * ) AS col0, + 77 * + COUNT ( DISTINCT + 6 ) AS col2
----
19
77

query I rowsort
SELECT ALL + 4 + 62 col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT + + 99 - + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-7053
SELECT + + 99 - + COUNT ( * )
----
98

query I rowsort
SELECT DISTINCT 26 + + + 28 * + - 40 AS col1
----
-1094

query I rowsort
SELECT ALL ( - 5 ) * - 42 col2
----
210

query I rowsort
SELECT ALL + NULLIF ( + CASE + 38 WHEN + + 51 THEN NULL WHEN - - 29 THEN - - 27 + - 65 - - - 70 * - + 53 + - 23 ELSE NULL END, - 74 * 24 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7057
SELECT DISTINCT - 85 * + 67 * + 8 + + 10 * - 74 / + NULLIF ( - CASE 7 WHEN COUNT( * ) THEN - 68 - + 54 * 85 WHEN 45 THEN NULL ELSE NULL END, + - 81 / + COUNT( * ) * + 99 + 98 ) * - 81 * - 34 + + 90, 41 AS col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-7057
SELECT DISTINCT - 85 * + 67 * + 8 + + 10 * - 74 / + NULLIF ( - CASE 7 WHEN COUNT ( * ) THEN - 68 - + 54 * 85 WHEN 45 THEN NULL ELSE NULL END, + - 81 / + COUNT ( * ) * + 99 + 98 ) * - 81 * - 34 + + 90, 41 AS col2
----
NULL
41

query I rowsort
SELECT + 97 * - 59
----
-5723

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT ALL ( - 95 ) * 25 + + - COUNT( * )
----
-2376

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL ( - 95 ) * 25 + + - COUNT ( * )
----
-2376

onlyif mysql # DIV for integer division: 
query I rowsort label-7060
SELECT + + 33 DIV 30 + - - 28 * - 43 * + 49 AS col2
----
-58995

skipif mysql # not compatible
query I rowsort label-7060
SELECT + + 33 / 30 + - - 28 * - 43 * + 49 AS col2
----
-58995

query I rowsort
SELECT ALL + 19 * + - 93 * + - 4 + - 29 - 27 col0
----
7012

onlyif mysql # DIV for integer division: 
query I rowsort label-7062
SELECT + + 97 DIV + 45 + - 54 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-7062
SELECT + + 97 / + 45 + - 54 AS col1
----
-52

query I rowsort
SELECT - - 92 * 78 AS col2
----
7176

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT + - COUNT( * ) + + 51 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-7064
SELECT + - COUNT ( * ) + + 51 AS col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7065
SELECT ALL - 36 DIV - COUNT( * ), 23 AS col0
----
36
23

skipif mysql # not compatible
query II rowsort label-7065
SELECT ALL - 36 / - COUNT ( * ), 23 AS col0
----
36
23

query I rowsort
SELECT DISTINCT + + 35 col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7067
SELECT DISTINCT + COALESCE ( + 9, - 55, + CAST( NULL AS SIGNED ) ), 65 / + + CAST( NULL AS SIGNED ) AS col0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-7067
SELECT DISTINCT + COALESCE ( + 9, - 55, + CAST ( NULL AS INTEGER ) ), 65 / + + CAST ( NULL AS INTEGER ) AS col0
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT DISTINCT + COUNT( * ) * ( - 85 ) col2
----
-85

skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT + COUNT ( * ) * ( - 85 ) col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT MAX( ALL + + 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7069
SELECT MAX ( ALL + + 3 ) AS col2
----
3

query I rowsort
SELECT - 4 + + + 92 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT + ( + - 64 ) * - MIN( 69 )
----
4416

skipif mysql # not compatible
query I rowsort label-7071
SELECT + ( + - 64 ) * - MIN ( 69 )
----
4416

query I rowsort
SELECT - 21 * + 10 * - - 18 AS col1
----
-3780

onlyif mysql # aggregate syntax: 
query II rowsort label-7073
SELECT DISTINCT - 26 * COUNT( * ) + - COUNT( * ), - 36 - + 27 + 2 AS col2
----
-27
-61

skipif mysql # not compatible
query II rowsort label-7073
SELECT DISTINCT - 26 * COUNT ( * ) + - COUNT ( * ), - 36 - + 27 + 2 AS col2
----
-27
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-7074
SELECT ALL + 93 * 2 DIV - 74 + - 16 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL + 93 * 2 / - 74 + - 16 AS col2
----
-18

query I rowsort
SELECT DISTINCT COALESCE ( - ( - 29 ), + 0 ) col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7076
SELECT ALL + ( 75 ) + CAST( NULL AS SIGNED ) * - 27 * - + SUM( + + 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL + ( 75 ) + CAST ( NULL AS INTEGER ) * - 27 * - + SUM ( + + 74 )
----
NULL

query I rowsort
SELECT - 85 * - + 54
----
4590

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT DISTINCT CASE + 29 WHEN + - 53 THEN MIN( ALL - 3 ) END + - NULLIF ( - 54, + COALESCE ( - SUM( + 2 ), - + 47 + - + 7 * - 49 ) * - 96 * - COUNT( * ) ) * - 93 + + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT CASE + 29 WHEN + - 53 THEN MIN ( ALL - 3 ) END + - NULLIF ( - 54, + COALESCE ( - SUM ( + 2 ), - + 47 + - + 7 * - 49 ) * - 96 * - COUNT ( * ) ) * - 93 + + 64 AS col0
----
NULL

query I rowsort
SELECT ALL ( + 68 ) AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7080
SELECT DISTINCT - ( + 3 ) + - + 84 * - - CASE CAST( NULL AS SIGNED ) WHEN 42 THEN + 24 + - 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT - ( + 3 ) + - + 84 * - - CASE CAST ( NULL AS INTEGER ) WHEN 42 THEN + 24 + - 89 END
----
NULL

query I rowsort
SELECT ALL - 70 + + 85 + - 69 AS col1
----
-54

query I rowsort
SELECT DISTINCT COALESCE ( 39, - + 59 + - + 49 * - 10 )
----
39

query I rowsort
SELECT - 26 + ( - 11 ) col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT - 31 - + + COUNT( * ) + + + 1 - COUNT( DISTINCT - + ( + 59 ) ) * - 4
----
-27

skipif mysql # not compatible
query I rowsort label-7084
SELECT - 31 - + + COUNT ( * ) + + + 1 - COUNT ( DISTINCT - + ( + 59 ) ) * - 4
----
-27

query I rowsort
SELECT - 90 * 95 * + 90
----
-769500

query I rowsort
SELECT - 2 + - + 66 col1
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-7087
SELECT - 95 + - 21 DIV + - 82 + + 25
----
-70

skipif mysql # not compatible
query I rowsort label-7087
SELECT - 95 + - 21 / + - 82 + + 25
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7088
SELECT ALL 66 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL 66 * CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - 72 + + 91
----
19

query I rowsort
SELECT ALL 42 * + 89 AS col2
----
3738

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT - NULLIF ( 93, - 68 + COUNT( ALL 79 ) ) + - 74 AS col1
----
-167

skipif mysql # not compatible
query I rowsort label-7091
SELECT - NULLIF ( 93, - 68 + COUNT ( ALL 79 ) ) + - 74 AS col1
----
-167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7092
SELECT + CASE 91 WHEN ( 77 ) THEN + 35 ELSE ( - 95 ) + + MIN( - CAST( NULL AS SIGNED ) ) END * + 94 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7092
SELECT + CASE 91 WHEN ( 77 ) THEN + 35 ELSE ( - 95 ) + + MIN ( - CAST ( NULL AS INTEGER ) ) END * + 94 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7093
SELECT DISTINCT + CAST( + 21 AS SIGNED ) * 88
----
1848

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT + CAST ( + 21 AS INTEGER ) * 88
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT + 41 + + COUNT( * ) * COUNT( * ) col2
----
42

skipif mysql # not compatible
query I rowsort label-7094
SELECT + 41 + + COUNT ( * ) * COUNT ( * ) col2
----
42

query I rowsort
SELECT + ( - 63 ) * ( + 19 ) AS col2
----
-1197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7096
SELECT + CAST( NULL AS SIGNED ) + 3 * + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7096
SELECT + CAST ( NULL AS INTEGER ) + 3 * + 72 AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( - 22, 10 ) * - 34
----
-748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7098
SELECT + MIN( ALL 45 ) + + CAST( NULL AS SIGNED ) / 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7098
SELECT + MIN ( ALL 45 ) + + CAST ( NULL AS INTEGER ) / 64
----
NULL

query I rowsort
SELECT - ( + 43 ) * 92
----
-3956

query I rowsort
SELECT - ( 11 ) * CASE + 87 + - 32 WHEN 89 THEN 79 END + 20 AS col0
----
NULL

query I rowsort
SELECT + 34 * - 89
----
-3026

query I rowsort
SELECT ALL 46 * 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7103
SELECT + 52 DIV - 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7103
SELECT + 52 / - 98 AS col2
----
0

query I rowsort
SELECT ALL 57 * 87 AS col1
----
4959

onlyif mysql # DIV for integer division: 
query I rowsort label-7105
SELECT + 38 DIV - 31 - - 94 * 12
----
1127

skipif mysql # not compatible
query I rowsort label-7105
SELECT + 38 / - 31 - - 94 * 12
----
1127

query I rowsort
SELECT + 98 * - 55
----
-5390

onlyif mysql # DIV for integer division: 
query I rowsort label-7107
SELECT + 16 DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-7107
SELECT + 16 / + 64
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7108
SELECT + 22 DIV ( + 39 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7108
SELECT + 22 / ( + 39 ) AS col1
----
0

query I rowsort
SELECT DISTINCT - 82 * 2 + 0
----
-164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7110
SELECT ALL + MAX( ( - 29 ) ) * MIN( DISTINCT 84 * 42 + 64 * NULLIF ( - 55 + + 21 * + CAST( NULL AS SIGNED ), + 73 ) ) + CASE 52 + - 77 WHEN - 90 THEN - 28 + - 76 * + 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL + MAX ( ( - 29 ) ) * MIN ( DISTINCT 84 * 42 + 64 * NULLIF ( - 55 + + 21 * + CAST ( NULL AS INTEGER ), + 73 ) ) + CASE 52 + - 77 WHEN - 90 THEN - 28 + - 76 * + 31 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7111
SELECT - 56 DIV 28 col2
----
-2

skipif mysql # not compatible
query I rowsort label-7111
SELECT - 56 / 28 col2
----
-2

query I rowsort
SELECT + 68 * ( - 27 ) AS col0
----
-1836

onlyif mysql # DIV for integer division: 
query I rowsort label-7113
SELECT ALL 80 DIV - 30 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL 80 / - 30 AS col1
----
-2

query I rowsort
SELECT + 86 + - 18 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT DISTINCT 44 * ( - ( ( + 18 ) ) ) + - COUNT( * )
----
-793

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT 44 * ( - ( ( + 18 ) ) ) + - COUNT ( * )
----
-793

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7116
SELECT DISTINCT + COUNT( + CAST( 86 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT + COUNT ( + CAST ( 86 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT - 37 * COUNT( * ) + SUM( - 89 )
----
-126

skipif mysql # not compatible
query I rowsort label-7117
SELECT - 37 * COUNT ( * ) + SUM ( - 89 )
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT COALESCE ( - 77, - COUNT( * ) )
----
-77

skipif mysql # not compatible
query I rowsort label-7118
SELECT COALESCE ( - 77, - COUNT ( * ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT ALL SUM( 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL SUM ( 22 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT DISTINCT + 73 * 85 + COUNT( * ) * - 25 AS col2
----
6180

skipif mysql # not compatible
query I rowsort label-7120
SELECT DISTINCT + 73 * 85 + COUNT ( * ) * - 25 AS col2
----
6180

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT + 85 + + CASE 48 WHEN ( MIN( ALL 23 ) ) THEN - 44 WHEN 94 THEN 32 WHEN - COUNT( * ) * COUNT( * ) + 40 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7121
SELECT + 85 + + CASE 48 WHEN ( MIN ( ALL 23 ) ) THEN - 44 WHEN 94 THEN 32 WHEN - COUNT ( * ) * COUNT ( * ) + 40 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7122
SELECT + CAST( - 29 AS SIGNED ) * 5 - - ( + 81 )
----
-64

skipif mysql # not compatible
query I rowsort label-7122
SELECT + CAST ( - 29 AS INTEGER ) * 5 - - ( + 81 )
----
-64

query I rowsort
SELECT ALL + 39 - 35
----
4

query I rowsort
SELECT 39 * - 95
----
-3705

query I rowsort
SELECT ALL 36 * - 4
----
-144

query I rowsort
SELECT ALL - ( + 20 ) - 42 * 78
----
-3296

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT DISTINCT + MAX( ALL + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT + MAX ( ALL + 23 )
----
23

query I rowsort
SELECT + 96 - 37
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7129
SELECT ALL - 36 DIV - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL - 36 / - 82 AS col0
----
0

query I rowsort
SELECT DISTINCT - 3 * ( + 47 * 30 ) AS col1
----
-4230

onlyif mysql # DIV for integer division: 
query I rowsort label-7131
SELECT + 37 DIV + 22 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7131
SELECT + 37 / + 22 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7132
SELECT COUNT( * ) * CAST( 69 AS SIGNED ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-7132
SELECT COUNT ( * ) * CAST ( 69 AS INTEGER ) AS col2
----
69

query I rowsort
SELECT DISTINCT - + ( 41 ) * 33 AS col2
----
-1353

query I rowsort
SELECT ALL + + 92 * - 54 col1
----
-4968

query I rowsort
SELECT + - ( 9 ) AS col1
----
-9

query I rowsort
SELECT - 86 * - 36
----
3096

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT 45 * - 99 + + COALESCE ( + CASE + NULLIF ( - 0, + MAX( DISTINCT + 24 ) * - 79 ) WHEN - 55 + 59 * + 94 THEN 12 END, ( ( + 97 ) ) ) * 24
----
-2127

skipif mysql # not compatible
query I rowsort label-7137
SELECT 45 * - 99 + + COALESCE ( + CASE + NULLIF ( - 0, + MAX ( DISTINCT + 24 ) * - 79 ) WHEN - 55 + 59 * + 94 THEN 12 END, ( ( + 97 ) ) ) * 24
----
-2127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7138
SELECT CAST( NULL AS SIGNED ) - 73 * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7138
SELECT CAST ( NULL AS INTEGER ) - 73 * + 89
----
NULL

query I rowsort
SELECT ALL - + 79 col2
----
-79

query I rowsort
SELECT + 23 * - 45 col0
----
-1035

query I rowsort
SELECT ALL CASE + 92 WHEN - 61 THEN + 38 - + 25 WHEN 94 THEN NULL END + 19 * 16
----
NULL

query I rowsort
SELECT DISTINCT 4 + - - 38
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT DISTINCT - 33 + SUM( DISTINCT - 50 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-7143
SELECT DISTINCT - 33 + SUM ( DISTINCT - 50 ) AS col1
----
-83

query I rowsort
SELECT ALL 39 + + - 4 AS col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7145
SELECT DISTINCT - CAST( + - 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT - CAST ( + - 19 AS INTEGER )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7146
SELECT - 33 * CAST( NULL AS SIGNED ) + + 3 * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7146
SELECT - 33 * CAST ( NULL AS INTEGER ) + + 3 * - 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT DISTINCT 91 * - - CASE + 84 WHEN - 74 THEN + SUM( + 29 ) WHEN COALESCE ( - 39, - 19 ) THEN NULL ELSE NULL END * + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7147
SELECT DISTINCT 91 * - - CASE + 84 WHEN - 74 THEN + SUM ( + 29 ) WHEN COALESCE ( - 39, - 19 ) THEN NULL ELSE NULL END * + 78
----
NULL

query I rowsort
SELECT - 96 * + 28 + - 74 * 77 AS col0
----
-8386

query I rowsort
SELECT 7 * + 67
----
469

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT COUNT( * ) * 23 col2
----
23

skipif mysql # not compatible
query I rowsort label-7150
SELECT COUNT ( * ) * 23 col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT DISTINCT COUNT( * ) - - 81
----
82

skipif mysql # not compatible
query I rowsort label-7151
SELECT DISTINCT COUNT ( * ) - - 81
----
82

query I rowsort
SELECT + ( - 4 ) * 9 + 40 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT CASE WHEN NOT - 3 IS NOT NULL THEN COALESCE ( 58, SUM( ALL + 45 ) ) END * - ( COUNT( ALL 34 ) + AVG ( - 55 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7153
SELECT CASE WHEN NOT - 3 IS NOT NULL THEN COALESCE ( 58, SUM ( ALL + 45 ) ) END * - ( COUNT ( ALL 34 ) + AVG ( - 55 ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 43 * 46 * 40 AS col0
----
79120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7155
SELECT DISTINCT 25 DIV COUNT( DISTINCT 15 ) * + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-7155
SELECT DISTINCT 25 / COUNT ( DISTINCT 15 ) * + COUNT ( * ) AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7156
SELECT CASE - COALESCE ( SUM( ( + 9 ) ), 15 - 4 * 59, 10 ) WHEN - COUNT( * ) THEN 38 + - CAST( ( COALESCE ( 6, + 2 * 85 ) ) AS SIGNED ) ELSE 66 END DIV + 6 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-7156
SELECT CASE - COALESCE ( SUM ( ( + 9 ) ), 15 - 4 * 59, 10 ) WHEN - COUNT ( * ) THEN 38 + - CAST ( ( COALESCE ( 6, + 2 * 85 ) ) AS INTEGER ) ELSE 66 END / + 6 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT ALL + 7 * + + MAX( - 29 )
----
-203

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL + 7 * + + MAX ( - 29 )
----
-203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7158
SELECT CAST( + 75 AS SIGNED ) * - COUNT( * ) + - 42 * 99
----
-4233

skipif mysql # not compatible
query I rowsort label-7158
SELECT CAST ( + 75 AS INTEGER ) * - COUNT ( * ) + - 42 * 99
----
-4233

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT - MIN( DISTINCT - - 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7159
SELECT - MIN ( DISTINCT - - 1 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT - SUM( - 69 ) + - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-7160
SELECT - SUM ( - 69 ) + - COUNT ( * )
----
68

query I rowsort
SELECT 79 - + 99 + + 55 * - 38 AS col0
----
-2110

query I rowsort
SELECT ALL - 6 * - + 23 * + 17 AS col1
----
2346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7163
SELECT DISTINCT - CAST( + + 29 AS SIGNED ) * 60
----
-1740

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT - CAST ( + + 29 AS INTEGER ) * 60
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT + 44 + + - MAX( ALL 32 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-7164
SELECT + 44 + + - MAX ( ALL 32 ) AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7165
SELECT ALL - CAST( - 47 AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL - CAST ( - 47 AS INTEGER )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT ALL + COUNT( * ) + - 81
----
-80

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL + COUNT ( * ) + - 81
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7167
SELECT + ( - 4 ) DIV NULLIF ( + COUNT( DISTINCT + 53 ), 99 )
----
-4

skipif mysql # not compatible
query I rowsort label-7167
SELECT + ( - 4 ) / NULLIF ( + COUNT ( DISTINCT + 53 ), 99 )
----
-4

query I rowsort
SELECT 27 + - 44 * ( + 58 * - 82 )
----
209291

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT - COUNT( DISTINCT 24 ) + 93 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-7169
SELECT - COUNT ( DISTINCT 24 ) + 93 AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7170
SELECT ALL + - 85 DIV + 72
----
-1

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL + - 85 / + 72
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7171
SELECT - ( + 95 ) DIV 55
----
-1

skipif mysql # not compatible
query I rowsort label-7171
SELECT - ( + 95 ) / 55
----
-1

query I rowsort
SELECT 19 + + + 42 AS col0
----
61

query I rowsort
SELECT 7 * + NULLIF ( 1, 28 * 25 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7174
SELECT DISTINCT + CAST( - - COUNT( * ) AS SIGNED ) * - 76
----
-76

skipif mysql # not compatible
query I rowsort label-7174
SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER ) * - 76
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT + + SUM( + 84 )
----
84

skipif mysql # not compatible
query I rowsort label-7175
SELECT + + SUM ( + 84 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT ALL - 11 * - + COALESCE ( MAX( 7 ), - 86 ) + 20 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL - 11 * - + COALESCE ( MAX ( 7 ), - 86 ) + 20 AS col2
----
97

query I rowsort
SELECT DISTINCT + 28 * - 13 * - - 88 + CASE 67 WHEN + 26 + 87 THEN + 15 WHEN 13 * 11 THEN NULL ELSE 93 END
----
-31939

query I rowsort
SELECT ALL - ( - ( - 91 ) )
----
-91

query II rowsort
SELECT ALL - 97, - 25 AS col0
----
-97
-25

query I rowsort
SELECT + 91 * CASE WHEN ( + 17 ) IN ( 56 ) THEN NULL ELSE 91 END AS col2
----
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT ALL + COUNT( ALL - 65 )
----
1

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL + COUNT ( ALL - 65 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7182
SELECT DISTINCT + CAST( + + 52 AS SIGNED ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT + CAST ( + + 52 AS INTEGER ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT COUNT( DISTINCT + 88 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7183
SELECT COUNT ( DISTINCT + 88 ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7184
SELECT COUNT( * ) AS col2, 32
----
1
32

skipif mysql # not compatible
query II rowsort label-7184
SELECT COUNT ( * ) AS col2, 32
----
1
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7185
SELECT DISTINCT - COUNT( * ) * + - ( - 22 ) - + 94 DIV 39 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT - COUNT ( * ) * + - ( - 22 ) - + 94 / 39 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT ALL + SUM( DISTINCT - 1 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7186
SELECT ALL + SUM ( DISTINCT - 1 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT - 85 * + - CASE + 97 WHEN MIN( ALL + 57 ) THEN - ( - COUNT( * ) ) END * 79 + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-7187
SELECT - 85 * + - CASE + 97 WHEN MIN ( ALL + 57 ) THEN - ( - COUNT ( * ) ) END * 79 + - 14
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7188
SELECT - 31 - + - CAST( + - 61 AS SIGNED ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7188
SELECT - 31 - + - CAST ( + - 61 AS INTEGER ) AS col0
----
-92

query II rowsort
SELECT ALL + 93 AS col0, - 30
----
93
-30

query I rowsort
SELECT ALL 19 * - 65
----
-1235

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT + COUNT( * ) * + - 58
----
-58

skipif mysql # not compatible
query I rowsort label-7191
SELECT + COUNT ( * ) * + - 58
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7192
SELECT + 48 + - CASE 52 WHEN CAST( COUNT( * ) AS SIGNED ) THEN 5 * - 30 + + 57 / + 23 WHEN - 95 / 30 THEN NULL ELSE NULL END / - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-7192
SELECT + 48 + - CASE 52 WHEN CAST ( COUNT ( * ) AS INTEGER ) THEN 5 * - 30 + + 57 / + 23 WHEN - 95 / 30 THEN NULL ELSE NULL END / - 25
----
NULL

query I rowsort
SELECT ALL 22 * + 10 AS col1
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT + COUNT( * ) * - 54 * 21 AS col2
----
-1134

skipif mysql # not compatible
query I rowsort label-7194
SELECT + COUNT ( * ) * - 54 * 21 AS col2
----
-1134

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT DISTINCT - + 83 * + + COUNT( * ) + - 71 * + COALESCE ( - 38 * - 72 + + 42, 48 + 41 ) AS col2
----
-197321

skipif mysql # not compatible
query I rowsort label-7195
SELECT DISTINCT - + 83 * + + COUNT ( * ) + - 71 * + COALESCE ( - 38 * - 72 + + 42, 48 + 41 ) AS col2
----
-197321

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT + - 64 * 92 * + COUNT( * )
----
-5888

skipif mysql # not compatible
query I rowsort label-7196
SELECT + - 64 * 92 * + COUNT ( * )
----
-5888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7197
SELECT DISTINCT 67 / + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT 67 / + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7198
SELECT ALL 60 col0, COUNT( * ) AS col1
----
60
1

skipif mysql # not compatible
query II rowsort label-7198
SELECT ALL 60 col0, COUNT ( * ) AS col1
----
60
1

query I rowsort
SELECT + + 89 * 31
----
2759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7200
SELECT ALL COALESCE ( + COUNT( ALL CAST( NULL AS SIGNED ) ), - CAST( NULL AS SIGNED ) ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL COALESCE ( + COUNT ( ALL CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER ) ) + + COUNT ( * )
----
1

query II rowsort
SELECT 95, + 10 AS col1
----
95
10

query I rowsort
SELECT + 94 - 68
----
26

query I rowsort
SELECT - NULLIF ( - ( - - 2 ), 47 ) col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT DISTINCT + 1 + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7204
SELECT DISTINCT + 1 + - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT - - CASE - 13 WHEN - + 52 * 92 THEN - 46 * 60 WHEN 67 + COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7205
SELECT - - CASE - 13 WHEN - + 52 * 92 THEN - 46 * 60 WHEN 67 + COUNT ( * ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT + - 62 - + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-7206
SELECT + - 62 - + COUNT ( * )
----
-63

query I rowsort
SELECT ALL - 57 * ( + ( + 24 ) ) AS col2
----
-1368

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT ALL COUNT( + 67 )
----
1

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL COUNT ( + 67 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT + + MAX( 10 ) - - + 47 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-7209
SELECT + + MAX ( 10 ) - - + 47 AS col2
----
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7210
SELECT ALL + CASE + NULLIF ( 14, 44 ) WHEN - CAST( NULL AS DECIMAL ) * 92 THEN - 68 ELSE 7 END
----
7

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL + CASE + NULLIF ( 14, 44 ) WHEN - CAST ( NULL AS REAL ) * 92 THEN - 68 ELSE 7 END
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7211
SELECT ALL - 40 DIV - 28 - + + 71
----
-70

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL - 40 / - 28 - + + 71
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT - 39 * 86 * + COUNT( * )
----
-3354

skipif mysql # not compatible
query I rowsort label-7212
SELECT - 39 * 86 * + COUNT ( * )
----
-3354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7213
SELECT 88 * 87 + 13 + - + 94 + CAST( NULL AS SIGNED ) * CASE 17 WHEN CASE + 83 WHEN 82 THEN - 51 END * - 87 + 26 THEN 65 ELSE - 35 / 12 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7213
SELECT 88 * 87 + 13 + - + 94 + CAST ( NULL AS INTEGER ) * CASE 17 WHEN CASE + 83 WHEN 82 THEN - 51 END * - 87 + 26 THEN 65 ELSE - 35 / 12 + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7214
SELECT - 15 - + 10 - NULLIF ( - 90, CAST( - 38 AS SIGNED ) + - CASE 8 WHEN + 51 THEN - 73 + - 1 END * ( 24 ) ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-7214
SELECT - 15 - + 10 - NULLIF ( - 90, CAST ( - 38 AS INTEGER ) + - CASE 8 WHEN + 51 THEN - 73 + - 1 END * ( 24 ) ) AS col1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7215
SELECT ( - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7215
SELECT ( - CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7216
SELECT - 25 / + 45 * AVG ( + - 7 ) * - 73 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7216
SELECT - 25 / + 45 * AVG ( + - 7 ) * - 73 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7217
SELECT + CAST( NULL AS SIGNED ) * + MAX( + 47 ) - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7217
SELECT + CAST ( NULL AS INTEGER ) * + MAX ( + 47 ) - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT + 3 * COUNT( - 15 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7218
SELECT + 3 * COUNT ( - 15 ) AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7219
SELECT DISTINCT + 43 DIV - + 40
----
-1

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT + 43 / - + 40
----
-1

query I rowsort
SELECT ALL + 25 * + 9 * - NULLIF ( + 71, 2 + 85 ) * 67 AS col0
----
-1070325

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT - COUNT( DISTINCT - 35 ) + - - 44
----
43

skipif mysql # not compatible
query I rowsort label-7221
SELECT - COUNT ( DISTINCT - 35 ) + - - 44
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7222
SELECT ALL CAST( - 57 AS SIGNED ) DIV - - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL CAST ( - 57 AS INTEGER ) / - - COUNT ( * )
----
-57

query I rowsort
SELECT 25 * - + 96 + - 81 + - 55 + 48 * 68 col1
----
728

query I rowsort
SELECT ALL + 53 * + 33 AS col1
----
1749

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT ( COALESCE ( - COUNT( * ), + + 79, 29 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7225
SELECT ( COALESCE ( - COUNT ( * ), + + 79, 29 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT ALL + MIN( ALL + 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL + MIN ( ALL + 73 ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT - 37 + 24 * + COUNT( DISTINCT - 41 )
----
-13

skipif mysql # not compatible
query I rowsort label-7227
SELECT - 37 + 24 * + COUNT ( DISTINCT - 41 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7228
SELECT COALESCE ( - 15, ( 77 ) + + 89 * ( COUNT( * ) ), 98 * 10 + CAST( NULL AS SIGNED ) DIV - 55 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-7228
SELECT COALESCE ( - 15, ( 77 ) + + 89 * ( COUNT ( * ) ), 98 * 10 + CAST ( NULL AS INTEGER ) / - 55 ) AS col2
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7229
SELECT COALESCE ( - 76, - 73 DIV - COUNT( * ), + 39 - - 15 )
----
-76

skipif mysql # not compatible
query I rowsort label-7229
SELECT COALESCE ( - 76, - 73 / - COUNT ( * ), + 39 - - 15 )
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7230
SELECT - COUNT( * ) + + COALESCE ( + 44, - 24 DIV ( - 9 ) ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7230
SELECT - COUNT ( * ) + + COALESCE ( + 44, - 24 / ( - 9 ) ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT + COUNT( 65 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7231
SELECT + COUNT ( 65 ) AS col2
----
1

query I rowsort
SELECT - 78 + + 55 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT DISTINCT 17 * + COUNT( * ) + + + 10 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT 17 * + COUNT ( * ) + + + 10 AS col0
----
27

query I rowsort
SELECT + + ( - ( - + 46 ) )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7235
SELECT ALL - NULLIF ( - 44, + 63 ) * 41 + NULLIF ( + 44, ( - 88 ) ) DIV - COUNT( * ) + + 86 * 48 AS col1
----
5888

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL - NULLIF ( - 44, + 63 ) * 41 + NULLIF ( + 44, ( - 88 ) ) / - COUNT ( * ) + + 86 * 48 AS col1
----
5888

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT DISTINCT + + COUNT( DISTINCT 69 ) * + 14 + 82 + + 42 * - CASE - ( + 25 ) * 37 + - 22 * 95 WHEN + 23 + + COUNT( - 27 + - ( 34 + + 59 * + 47 ) ) THEN 66 END + - 54 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7236
SELECT DISTINCT + + COUNT ( DISTINCT 69 ) * + 14 + 82 + + 42 * - CASE - ( + 25 ) * 37 + - 22 * 95 WHEN + 23 + + COUNT ( - 27 + - ( 34 + + 59 * + 47 ) ) THEN 66 END + - 54 col0
----
NULL

query I rowsort
SELECT ALL 56 * - 44 AS col1
----
-2464

onlyif mysql # DIV for integer division: 
query I rowsort label-7238
SELECT - 26 DIV + 9 + 40 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-7238
SELECT - 26 / + 9 + 40 AS col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7239
SELECT DISTINCT 6 * - - 28 + - CAST( NULL AS SIGNED ) * 12 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT 6 * - - 28 + - CAST ( NULL AS INTEGER ) * 12 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT + - COUNT( * ) - - 49 * - - 84
----
4115

skipif mysql # not compatible
query I rowsort label-7240
SELECT + - COUNT ( * ) - - 49 * - - 84
----
4115

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT - + ( - COUNT( * ) ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7241
SELECT - + ( - COUNT ( * ) ) + - COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT 40 * 44 col1
----
1760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7243
SELECT - - 66 + SUM( ALL - CAST( NULL AS SIGNED ) ) * + 35 - - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7243
SELECT - - 66 + SUM ( ALL - CAST ( NULL AS INTEGER ) ) * + 35 - - 93
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7244
SELECT ALL + ( + + CAST( - 22 AS SIGNED ) ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL + ( + + CAST ( - 22 AS INTEGER ) ) AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7245
SELECT + CAST( NULL AS DECIMAL ) + + MAX( ALL - + 11 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7245
SELECT + CAST ( NULL AS REAL ) + + MAX ( ALL - + 11 ) col1
----
NULL

query I rowsort
SELECT ALL + 28 * 78 + ( - 3 )
----
2181

query I rowsort
SELECT + 42 + + COALESCE ( 60, 8 + - 1 * 35 ) AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT + ( 59 ) + + 17 + - - COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-7248
SELECT + ( 59 ) + + 17 + - - COUNT ( * ) AS col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7249
SELECT + - 25 DIV + 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7249
SELECT + - 25 / + 36 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7250
SELECT - CAST( - ( - 0 ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7250
SELECT - CAST ( - ( - 0 ) AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT 61 + - COUNT( * ) * + SUM( ALL + 12 ) col1
----
49

skipif mysql # not compatible
query I rowsort label-7251
SELECT 61 + - COUNT ( * ) * + SUM ( ALL + 12 ) col1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7252
SELECT ALL CAST( - + 7 AS SIGNED ) * 49 * - 83 col1
----
28469

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL CAST ( - + 7 AS INTEGER ) * 49 * - 83 col1
----
28469

query I rowsort
SELECT ( ( 73 ) ) * - 56 * + 55 + - 91 AS col1
----
-224931

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT DISTINCT 9 * 43 * + CASE COUNT( * ) WHEN 58 + 2 THEN COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7254
SELECT DISTINCT 9 * 43 * + CASE COUNT ( * ) WHEN 58 + 2 THEN COUNT ( * ) END AS col0
----
NULL

query II rowsort
SELECT ALL - 13 AS col1, 6 AS col1
----
-13
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT ALL - NULLIF ( 5, ( COUNT( * ) ) ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL - NULLIF ( 5, ( COUNT ( * ) ) ) AS col2
----
-5

query I rowsort
SELECT DISTINCT - ( - 13 ) AS col2
----
13

query I rowsort
SELECT DISTINCT 73 * 31 AS col1
----
2263

query I rowsort
SELECT 48 * 16 AS col0
----
768

query I rowsort
SELECT 49 * + - 7 + 86 AS col0
----
-257

onlyif mysql # aggregate syntax: 
query II rowsort label-7261
SELECT 86 col0, COUNT( * ) col1
----
86
1

skipif mysql # not compatible
query II rowsort label-7261
SELECT 86 col0, COUNT ( * ) col1
----
86
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT ALL + 49 + - - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL + 49 + - - COUNT ( * )
----
50

query I rowsort
SELECT ALL - 95 + - - 93 AS col0
----
-2

query I rowsort
SELECT 73 + + 94 * - 96 + 59 AS col1
----
-8892

query I rowsort
SELECT DISTINCT - 75 + - 85 col2
----
-160

query I rowsort
SELECT 25 - + - 89 col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT ALL - - 46 * - NULLIF ( + 60, 33 ) * + 31 - + 49 - - COUNT( * ) AS col1
----
-85608

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL - - 46 * - NULLIF ( + 60, 33 ) * + 31 - + 49 - - COUNT ( * ) AS col1
----
-85608

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT DISTINCT + - CASE 59 WHEN + 91 / COALESCE ( + + 19, 78 * COUNT( * ) ) / 23 THEN NULL ELSE + 12 END + + 86 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT + - CASE 59 WHEN + 91 / COALESCE ( + + 19, 78 * COUNT ( * ) ) / 23 THEN NULL ELSE + 12 END + + 86 AS col0
----
74

query I rowsort
SELECT ALL - 36 + - 29 + + 85 * 69 col0
----
5800

onlyif mysql # aggregate syntax: 
query II rowsort label-7270
SELECT DISTINCT - 25 * 85 - 23 AS col0, + MIN( ALL + ( - 14 ) ) - + 79 * - 68
----
-2148
5358

skipif mysql # not compatible
query II rowsort label-7270
SELECT DISTINCT - 25 * 85 - 23 AS col0, + MIN ( ALL + ( - 14 ) ) - + 79 * - 68
----
-2148
5358

query I rowsort
SELECT + 32 + ( - - 32 ) + - - 66 - 81 + + 39
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT - + NULLIF ( - ( - 49 ), COUNT( ALL 20 ) * 82 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-7272
SELECT - + NULLIF ( - ( - 49 ), COUNT ( ALL 20 ) * 82 ) AS col1
----
-49

query I rowsort
SELECT ALL + ( + 40 ) col0
----
40

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7274
SELECT - 6, CAST( NULL AS DECIMAL ) col0
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-7274
SELECT - 6, CAST ( NULL AS REAL ) col0
----
-6
NULL

query I rowsort
SELECT - 99 * - + 99
----
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT DISTINCT + MAX( DISTINCT - - ( + - 49 ) ) * + 66
----
-3234

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT + MAX ( DISTINCT - - ( + - 49 ) ) * + 66
----
-3234

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7277
SELECT ALL + 71 AS col0, CASE 37 WHEN + CAST( NULL AS SIGNED ) THEN - - 71 - - 36 WHEN AVG ( ALL 97 ) THEN 60 ELSE - 60 END AS col1
----
71
-60

skipif mysql # not compatible
query II rowsort label-7277
SELECT ALL + 71 AS col0, CASE 37 WHEN + CAST ( NULL AS INTEGER ) THEN - - 71 - - 36 WHEN AVG ( ALL 97 ) THEN 60 ELSE - 60 END AS col1
----
71
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT ALL - NULLIF ( + - 41, 30 ) - + COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL - NULLIF ( + - 41, 30 ) - + COUNT ( * ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7279
SELECT ALL COUNT( * ), - COUNT( + + 41 ) + - + COUNT( * ) * + + 57 AS col2
----
1
-58

skipif mysql # not compatible
query II rowsort label-7279
SELECT ALL COUNT ( * ), - COUNT ( + + 41 ) + - + COUNT ( * ) * + + 57 AS col2
----
1
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7280
SELECT COUNT( - 98 ) * - + 0 + 58 DIV + 31
----
1

skipif mysql # not compatible
query I rowsort label-7280
SELECT COUNT ( - 98 ) * - + 0 + 58 / + 31
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7281
SELECT 84 + - + 63 DIV + 53
----
83

skipif mysql # not compatible
query I rowsort label-7281
SELECT 84 + - + 63 / + 53
----
83

query II rowsort
SELECT ALL 68 col2, 30 * 38
----
68
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT 17 + - 66 * + + MAX( - - 56 ) AS col0
----
-3679

skipif mysql # not compatible
query I rowsort label-7283
SELECT 17 + - 66 * + + MAX ( - - 56 ) AS col0
----
-3679

query II rowsort
SELECT 61 AS col0, 99 * + + 41
----
61
4059

query I rowsort
SELECT 26 * + CASE - - 96 WHEN + - 11 * 6 THEN - 29 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7286
SELECT 62 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7286
SELECT 62 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7287
SELECT 32 - CASE - COUNT( * ) WHEN 24 + - - 86 - + 47 THEN NULL ELSE 77 END DIV 98
----
32

skipif mysql # not compatible
query I rowsort label-7287
SELECT 32 - CASE - COUNT ( * ) WHEN 24 + - - 86 - + 47 THEN NULL ELSE 77 END / 98
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7288
SELECT ALL - ( CAST( NULL AS SIGNED ) ) * 48 / 63 + + 73 - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) * 48 / 63 + + 73 - 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT COUNT( * ) - COUNT( * ) + + 78 * - 75 + - + COUNT( * ) AS col0
----
-5851

skipif mysql # not compatible
query I rowsort label-7289
SELECT COUNT ( * ) - COUNT ( * ) + + 78 * - 75 + - + COUNT ( * ) AS col0
----
-5851

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT 51 + COUNT( * ) + + + 50
----
102

skipif mysql # not compatible
query I rowsort label-7290
SELECT 51 + COUNT ( * ) + + + 50
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-7291
SELECT ALL COUNT( * ) AS col1, - 1
----
1
-1

skipif mysql # not compatible
query II rowsort label-7291
SELECT ALL COUNT ( * ) AS col1, - 1
----
1
-1

query II rowsort
SELECT + 90 AS col1, 74 col0
----
90
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT COUNT( * ) + - 99 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-7293
SELECT COUNT ( * ) + - 99 AS col0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7294
SELECT ALL - 3, + ( - CAST( NULL AS SIGNED ) ) + 34 * + COUNT( * ) AS col0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-7294
SELECT ALL - 3, + ( - CAST ( NULL AS INTEGER ) ) + 34 * + COUNT ( * ) AS col0
----
-3
NULL

query I rowsort
SELECT DISTINCT 67 + 56 + - - ( - - 72 )
----
195

query II rowsort
SELECT + 4 col0, ( ( - 29 ) ) * - ( - 70 ) + 67 * 26 col2
----
4
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT + CASE + + 95 WHEN 97 THEN - 25 WHEN + MIN( - 17 ) THEN NULL END * 16 - 49 / 53
----
NULL

skipif mysql # not compatible
query I rowsort label-7297
SELECT + CASE + + 95 WHEN 97 THEN - 25 WHEN + MIN ( - 17 ) THEN NULL END * 16 - 49 / 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT ALL 60 + + 51 + + COUNT( * )
----
112

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL 60 + + 51 + + COUNT ( * )
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7299
SELECT DISTINCT 19 * - 65 DIV + ( - - ( - CAST( - COUNT( * ) AS SIGNED ) ) )
----
-1235

skipif mysql # not compatible
query I rowsort label-7299
SELECT DISTINCT 19 * - 65 / + ( - - ( - CAST ( - COUNT ( * ) AS INTEGER ) ) )
----
-1235

query I rowsort
SELECT DISTINCT 31 + - ( - 79 )
----
110

query I rowsort
SELECT 83 * + - 69 * - 11 col2
----
62997

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT DISTINCT 66 + SUM( ALL + 91 )
----
157

skipif mysql # not compatible
query I rowsort label-7302
SELECT DISTINCT 66 + SUM ( ALL + 91 )
----
157

onlyif mysql # aggregate syntax: 
query II rowsort label-7303
SELECT ALL 55 + + 6 + COUNT( DISTINCT + 50 ) AS col1, + 71 * - 28
----
62
-1988

skipif mysql # not compatible
query II rowsort label-7303
SELECT ALL 55 + + 6 + COUNT ( DISTINCT + 50 ) AS col1, + 71 * - 28
----
62
-1988

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT DISTINCT - - NULLIF ( - + COUNT( * ), + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7304
SELECT DISTINCT - - NULLIF ( - + COUNT ( * ), + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + - 81 + + + 65 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT + 38 * 55 * + - MAX( DISTINCT 88 ) * + 70
----
-12874400

skipif mysql # not compatible
query I rowsort label-7306
SELECT + 38 * 55 * + - MAX ( DISTINCT 88 ) * + 70
----
-12874400

onlyif mysql # aggregate syntax: 
query II rowsort label-7307
SELECT + 89 AS col0, ( - COUNT( * ) ) * - 21 + + COUNT( * )
----
89
22

skipif mysql # not compatible
query II rowsort label-7307
SELECT + 89 AS col0, ( - COUNT ( * ) ) * - 21 + + COUNT ( * )
----
89
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7308
SELECT - 47 + + 26 DIV COUNT( * ) * + 51 col0, + COUNT( * )
----
1279
1

skipif mysql # not compatible
query II rowsort label-7308
SELECT - 47 + + 26 / COUNT ( * ) * + 51 col0, + COUNT ( * )
----
1279
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7309
SELECT + - 73 AS col0, 49 * + 29 + COALESCE ( + ( - 54 ), + ( + 50 ), - 87, - 73, - COUNT( * ) ) + 11 DIV 10 AS col1
----
-73
1368

skipif mysql # not compatible
query II rowsort label-7309
SELECT + - 73 AS col0, 49 * + 29 + COALESCE ( + ( - 54 ), + ( + 50 ), - 87, - 73, - COUNT ( * ) ) + 11 / 10 AS col1
----
-73
1368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7310
SELECT CASE + 97 WHEN + 50 THEN - CAST( + - 59 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7310
SELECT CASE + 97 WHEN + 50 THEN - CAST ( + - 59 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT DISTINCT - + CASE ( COUNT( * ) ) WHEN - COUNT( * ) + + 55 THEN SUM( 29 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7311
SELECT DISTINCT - + CASE ( COUNT ( * ) ) WHEN - COUNT ( * ) + + 55 THEN SUM ( 29 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7312
SELECT DISTINCT CAST( NULL AS SIGNED ) - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7313
SELECT ALL + + 39 - + CAST( - + 22 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL + + 39 - + CAST ( - + 22 AS INTEGER )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7314
SELECT 43 DIV CASE + 2 WHEN + 99 DIV 43 THEN 20 ELSE NULL END DIV 51 + - COUNT( * ) * + 71 col0
----
-71

skipif mysql # not compatible
query I rowsort label-7314
SELECT 43 / CASE + 2 WHEN + 99 / 43 THEN 20 ELSE NULL END / 51 + - COUNT ( * ) * + 71 col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT ALL + 69 / - 51 * + CASE - COUNT( * ) WHEN + 69 THEN + 66 WHEN COUNT( * ) + - 76 THEN + 18 ELSE NULL END - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL + 69 / - 51 * + CASE - COUNT ( * ) WHEN + 69 THEN + 66 WHEN COUNT ( * ) + - 76 THEN + 18 ELSE NULL END - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT ( - 27 ) + COUNT( * ) + 64
----
38

skipif mysql # not compatible
query I rowsort label-7316
SELECT ( - 27 ) + COUNT ( * ) + 64
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT + 63 + + MIN( - 11 ) col0
----
52

skipif mysql # not compatible
query I rowsort label-7317
SELECT + 63 + + MIN ( - 11 ) col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-7318
SELECT + - 31 DIV + + ( + + 24 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7318
SELECT + - 31 / + + ( + + 24 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7319
SELECT - - 25 * 83 * - CASE - 52 WHEN - 24 THEN + 39 * NULLIF ( + COALESCE ( + 5, + COALESCE ( + 48, - 28 DIV - 37 + 48 DIV CASE 47 WHEN AVG ( 39 ) THEN NULL ELSE 16 END ) * 97 - 85, - SUM( DISTINCT 75 ) ), - COALESCE ( ( 71 ), 80, 3 ) * + COUNT( * ) ) WHEN + 12 THEN + 77 + - 89 ELSE 9 * - 21 - + 0 * 94 END * NULLIF ( COUNT( * ), 58 + 67 )
----
392175

skipif mysql # not compatible
query I rowsort label-7319
SELECT - - 25 * 83 * - CASE - 52 WHEN - 24 THEN + 39 * NULLIF ( + COALESCE ( + 5, + COALESCE ( + 48, - 28 / - 37 + 48 / CASE 47 WHEN AVG ( 39 ) THEN NULL ELSE 16 END ) * 97 - 85, - SUM ( DISTINCT 75 ) ), - COALESCE ( ( 71 ), 80, 3 ) * + COUNT ( * ) ) WHEN + 12 THEN + 77 + - 89 ELSE 9 * - 21 - + 0 * 94 END * NULLIF ( COUNT ( * ), 58 + 67 )
----
392175

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT ALL + - 34 * + ( + 42 ) + ( + - SUM( 92 ) ) - COALESCE ( - 48 + COUNT( * ) * + COUNT( ALL 45 + 0 * - 29 ), - 22 ) * 75
----
2005

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL + - 34 * + ( + 42 ) + ( + - SUM ( 92 ) ) - COALESCE ( - 48 + COUNT ( * ) * + COUNT ( ALL 45 + 0 * - 29 ), - 22 ) * 75
----
2005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7321
SELECT - CAST( NULL AS SIGNED ) - - - CAST( - COUNT( * ) AS SIGNED ) + 47 * + SUM( DISTINCT + 48 ) * - ( + 17 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT - CAST ( NULL AS INTEGER ) - - - CAST ( - COUNT ( * ) AS INTEGER ) + 47 * + SUM ( DISTINCT + 48 ) * - ( + 17 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7322
SELECT - + 51 * - CASE + + MAX( - 89 ) WHEN - + 52 - + COUNT( * ) * - 8 THEN + CASE - ( - 20 ) WHEN 38 THEN + 48 * COUNT( CAST( NULL AS SIGNED ) ) + 87 DIV CASE WHEN ( NULL ) NOT BETWEEN ( - COUNT( * ) ) AND ( NULL ) THEN NULL WHEN ( 10 * - ( - 90 ) ) >= ( 67 + + 45 * 3 ) THEN NULL WHEN 99 IS NULL THEN 41 END WHEN COUNT( + 45 ) THEN - 75 - - 37 ELSE NULL END DIV + 8 WHEN 58 * + CASE 13 WHEN + MAX( ALL - ( 43 ) ) THEN NULL WHEN + 25 THEN AVG ( + NULLIF ( - 18, 93 ) ) ELSE NULL END + + 93 THEN + 75 ELSE SUM( ( 98 ) ) + - 89 * - 80 END
----
368118

skipif mysql # not compatible
query I rowsort label-7322
SELECT - + 51 * - CASE + + MAX ( - 89 ) WHEN - + 52 - + COUNT ( * ) * - 8 THEN + CASE - ( - 20 ) WHEN 38 THEN + 48 * COUNT ( CAST ( NULL AS INTEGER ) ) + 87 / CASE WHEN ( NULL ) NOT BETWEEN ( - COUNT ( * ) ) AND ( NULL ) THEN NULL WHEN ( 10 * - ( - 90 ) ) >= ( 67 + + 45 * 3 ) THEN NULL WHEN 99 IS NULL THEN 41 END WHEN COUNT ( + 45 ) THEN - 75 - - 37 ELSE NULL END / + 8 WHEN 58 * + CASE 13 WHEN + MAX ( ALL - ( 43 ) ) THEN NULL WHEN + 25 THEN AVG ( + NULLIF ( - 18, 93 ) ) ELSE NULL END + + 93 THEN + 75 ELSE SUM ( ( 98 ) ) + - 89 * - 80 END
----
368118

query II rowsort
SELECT 7, 11 AS col2
----
7
11

query I rowsort
SELECT - 60 + 11 - + 89
----
-138

query I rowsort
SELECT ALL - 29 * - 68 + 70 AS col2
----
2042

query I rowsort
SELECT - 99 * - 66
----
6534

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT - MAX( - 4 ) + - - ( + 71 )
----
75

skipif mysql # not compatible
query I rowsort label-7327
SELECT - MAX ( - 4 ) + - - ( + 71 )
----
75

query II rowsort
SELECT - 80 + 73, + 40 * + 24 AS col0
----
-7
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7329
SELECT - 39 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7329
SELECT - 39 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT ALL NULLIF ( MAX( DISTINCT + - 82 ), - NULLIF ( - CASE + + 90 WHEN - 62 THEN + 25 ELSE 65 END, 25 ) - 92 )
----
-82

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL NULLIF ( MAX ( DISTINCT + - 82 ), - NULLIF ( - CASE + + 90 WHEN - 62 THEN + 25 ELSE 65 END, 25 ) - 92 )
----
-82

query I rowsort
SELECT ALL + 67 + 10
----
77

query I rowsort
SELECT - ( - 65 ) + - - 38
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT - 73 * - + SUM( ALL + 20 ) col2
----
1460

skipif mysql # not compatible
query I rowsort label-7333
SELECT - 73 * - + SUM ( ALL + 20 ) col2
----
1460

query I rowsort
SELECT ALL - 94 + + 3
----
-91

query I rowsort
SELECT + 55 + 75
----
130

query I rowsort
SELECT ALL + 4 * - 60 AS col2
----
-240

query II rowsort
SELECT ( + - 23 ) AS col0, 49
----
-23
49

query I rowsort
SELECT ALL 74 * - + 49 + - 4
----
-3630

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT DISTINCT + COALESCE ( - - COUNT( * ), + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT + COALESCE ( - - COUNT ( * ), + 71 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7340
SELECT + COUNT( ALL + - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7340
SELECT + COUNT ( ALL + - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7341
SELECT + 92 * + COUNT( * ) AS col1, COALESCE ( 6, - 34 ) + + 17
----
92
23

skipif mysql # not compatible
query II rowsort label-7341
SELECT + 92 * + COUNT ( * ) AS col1, COALESCE ( 6, - 34 ) + + 17
----
92
23

query I rowsort
SELECT ALL + ( + + 7 ) AS col0
----
7

query I rowsort
SELECT 40 * - 43 + - 89
----
-1809

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT DISTINCT - - COUNT( * ) * + + 63 * - - 75 - - 13
----
4738

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT - - COUNT ( * ) * + + 63 * - - 75 - - 13
----
4738

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT + 72 * + 15 + + + COUNT( * ) + - 67 + + - NULLIF ( CASE + 32 WHEN 70 * 58 + + 38 THEN AVG ( ALL + 30 ) + + 21 END, 70 * ( - 15 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7345
SELECT + 72 * + 15 + + + COUNT ( * ) + - 67 + + - NULLIF ( CASE + 32 WHEN 70 * 58 + + 38 THEN AVG ( ALL + 30 ) + + 21 END, 70 * ( - 15 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT ALL - 84 * - COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL - 84 * - COUNT ( * ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT + NULLIF ( + COUNT( * ), COUNT( * ) * - - 60 * + 60 * - 90 + - 97 )
----
1

skipif mysql # not compatible
query I rowsort label-7347
SELECT + NULLIF ( + COUNT ( * ), COUNT ( * ) * - - 60 * + 60 * - 90 + - 97 )
----
1

query I rowsort
SELECT + + 29 * + 23
----
667

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7349
SELECT + + CAST( - - 31 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-7349
SELECT + + CAST ( - - 31 AS INTEGER )
----
31

onlyif mysql # DIV for integer division: 
query II rowsort label-7350
SELECT + 31 + + ( - - 56 ), 76 DIV - 33 AS col0
----
87
-2

skipif mysql # not compatible
query II rowsort label-7350
SELECT + 31 + + ( - - 56 ), 76 / - 33 AS col0
----
87
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7351
SELECT + COALESCE ( ( + - 63 ), CASE 48 WHEN - - 60 THEN - 48 * + AVG ( DISTINCT ( + 19 ) * 63 - 33 ) - - CAST( - 75 AS SIGNED ) * 81 WHEN 62 + 17 THEN + ( - ( 8 ) ) ELSE - COALESCE ( + CASE COALESCE ( - 56, + 16 * 97, + COUNT( * ) DIV 22, AVG ( ALL - ( 33 ) ) + + 39 ) WHEN 10 THEN NULL WHEN 26 THEN 58 ELSE 70 END, 38 DIV - ( + 22 * 34 ) ) END * + CASE + 66 + 89 WHEN + COALESCE ( 51, - 51 + 83 * + 28 ) DIV COUNT( * ) THEN COUNT( * ) ELSE - 93 END ) DIV - 19 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7351
SELECT + COALESCE ( ( + - 63 ), CASE 48 WHEN - - 60 THEN - 48 * + AVG ( DISTINCT ( + 19 ) * 63 - 33 ) - - CAST ( - 75 AS INTEGER ) * 81 WHEN 62 + 17 THEN + ( - ( 8 ) ) ELSE - COALESCE ( + CASE COALESCE ( - 56, + 16 * 97, + COUNT ( * ) / 22, AVG ( ALL - ( 33 ) ) + + 39 ) WHEN 10 THEN NULL WHEN 26 THEN 58 ELSE 70 END, 38 / - ( + 22 * 34 ) ) END * + CASE + 66 + 89 WHEN + COALESCE ( 51, - 51 + 83 * + 28 ) / COUNT ( * ) THEN COUNT ( * ) ELSE - 93 END ) / - 19 AS col2
----
3

query I rowsort
SELECT - 44 + - + 62 * + 13 * - - 59 * - 19 AS col2
----
903482

query II rowsort
SELECT ALL - ( - - 19 ) AS col2, 96 + + 5 AS col2
----
-19
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT - SUM( + 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-7354
SELECT - SUM ( + 97 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT + SUM( ALL - + ( - 75 ) ) * 75 + - 9 AS col0
----
5616

skipif mysql # not compatible
query I rowsort label-7355
SELECT + SUM ( ALL - + ( - 75 ) ) * 75 + - 9 AS col0
----
5616

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7356
SELECT DISTINCT + 80 + + 54 + - 8, - 56 * + 23 * + 87 / CAST( NULL AS SIGNED ) col1
----
126
NULL

skipif mysql # not compatible
query II rowsort label-7356
SELECT DISTINCT + 80 + + 54 + - 8, - 56 * + 23 * + 87 / CAST ( NULL AS INTEGER ) col1
----
126
NULL

query I rowsort
SELECT DISTINCT 56 + 54
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-7358
SELECT 10, - 48 * + COUNT( * ) * 82 AS col2
----
10
-3936

skipif mysql # not compatible
query II rowsort label-7358
SELECT 10, - 48 * + COUNT ( * ) * 82 AS col2
----
10
-3936

query I rowsort
SELECT ALL 91 + + + 9 AS col0
----
100

query I rowsort
SELECT + 97 + - - ( 33 ) + - - 90
----
220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7361
SELECT - CAST( - - SUM( DISTINCT + 15 ) AS SIGNED ) DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-7361
SELECT - CAST ( - - SUM ( DISTINCT + 15 ) AS INTEGER ) / + 73
----
0

query I rowsort
SELECT ALL + 62 + COALESCE ( - 0, - + 34 ) + - 86
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7363
SELECT - CAST( - - 31 AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-7363
SELECT - CAST ( - - 31 AS INTEGER )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7364
SELECT ALL MAX( DISTINCT 60 ) + + + 35 + + SUM( - 21 ) - - - 41 * CAST( NULL AS SIGNED ) / - COUNT( DISTINCT 36 ) * + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL MAX ( DISTINCT 60 ) + + + 35 + + SUM ( - 21 ) - - - 41 * CAST ( NULL AS INTEGER ) / - COUNT ( DISTINCT 36 ) * + 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT - SUM( ALL + 89 ) - + 10 + - COUNT( * ) * + ( + MAX( DISTINCT 79 ) ) * - SUM( ALL 13 ) AS col0
----
928

skipif mysql # not compatible
query I rowsort label-7365
SELECT - SUM ( ALL + 89 ) - + 10 + - COUNT ( * ) * + ( + MAX ( DISTINCT 79 ) ) * - SUM ( ALL 13 ) AS col0
----
928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7366
SELECT ALL + 36 + 89 + - - 55 * - COUNT( * ) DIV + + 72
----
125

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL + 36 + 89 + - - 55 * - COUNT ( * ) / + + 72
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7367
SELECT ALL + 63 * 27 * + + CAST( NULL AS SIGNED ) AS col0, CAST( 52 AS SIGNED ) AS col1
----
NULL
52

skipif mysql # not compatible
query II rowsort label-7367
SELECT ALL + 63 * 27 * + + CAST ( NULL AS INTEGER ) AS col0, CAST ( 52 AS INTEGER ) AS col1
----
NULL
52

query I rowsort
SELECT DISTINCT CASE 8 WHEN + 27 THEN 51 END col0
----
NULL

query I rowsort
SELECT + 7 + + 79
----
86

query I rowsort
SELECT - 90 - + 50 * - 67
----
3260

query I rowsort
SELECT - + 74 * 87
----
-6438

query II rowsort
SELECT ALL + 44 AS col2, - 92 AS col1
----
44
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-7373
SELECT + + 88, + 28 DIV + 94 AS col2
----
88
0

skipif mysql # not compatible
query II rowsort label-7373
SELECT + + 88, + 28 / + 94 AS col2
----
88
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7374
SELECT ALL + - 68 DIV 98 - 30 + - 31 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL + - 68 / 98 - 30 + - 31 AS col1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-7375
SELECT - + 25 DIV - + 40 * + - 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7375
SELECT - + 25 / - + 40 * + - 57 AS col0
----
0

query II rowsort
SELECT ALL + 21 AS col2, 76 AS col1
----
21
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7377
SELECT DISTINCT + 3 * ( - - CAST( - + 93 AS SIGNED ) )
----
-279

skipif mysql # not compatible
query I rowsort label-7377
SELECT DISTINCT + 3 * ( - - CAST ( - + 93 AS INTEGER ) )
----
-279

query I rowsort
SELECT - ( 19 ) * + + 18 * + 23 + - 96
----
-7962

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7379
SELECT - 92 * + CASE + CAST( NULL AS DECIMAL ) WHEN + ( 84 ) THEN NULL WHEN + + 56 THEN NULL WHEN - - NULLIF ( - 4, ( + 21 ) ) THEN 97 + 21 WHEN - 38 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7379
SELECT - 92 * + CASE + CAST ( NULL AS REAL ) WHEN + ( 84 ) THEN NULL WHEN + + 56 THEN NULL WHEN - - NULLIF ( - 4, ( + 21 ) ) THEN 97 + 21 WHEN - 38 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT + 34 * 72 + + 39
----
2487

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7381
SELECT 3 * + 95 + + 53 + + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * 45 - - 14 - + COUNT( * ) + + 3 * ( SUM( - 67 ) + 35 * ( - AVG ( 5 ) * - MAX( ALL - 18 + + COALESCE ( + 20 + 80, - ( 44 ) * - 48, 65 ) ) + - COUNT( * ) ) ) * COALESCE ( - COUNT( * ), + 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7381
SELECT 3 * + 95 + + 53 + + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * 45 - - 14 - + COUNT ( * ) + + 3 * ( SUM ( - 67 ) + 35 * ( - AVG ( 5 ) * - MAX ( ALL - 18 + + COALESCE ( + 20 + 80, - ( 44 ) * - 48, 65 ) ) + - COUNT ( * ) ) ) * COALESCE ( - COUNT ( * ), + 13 )
----
NULL

query II rowsort
SELECT + + 5 AS col1, 9 + 6 col0
----
5
15

query I rowsort
SELECT + 59 + + 29 * - 77 * + - 96 AS col0
----
214427

query I rowsort
SELECT + 42 * - 74
----
-3108

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT DISTINCT - 59 + + 50 + + COUNT( DISTINCT + 18 ) + + 75 + - 81 * 69 * 0 * - 30 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-7385
SELECT DISTINCT - 59 + + 50 + + COUNT ( DISTINCT + 18 ) + + 75 + - 81 * 69 * 0 * - 30 AS col0
----
67

query I rowsort
SELECT ALL + 37 + - 17 * + + 20 * + 9 - - 88
----
-2935

query I rowsort
SELECT ALL - - 50 + + - 45 * NULLIF ( - 66, + 57 )
----
3020

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT ALL 45 + 85 * COALESCE ( 6, + NULLIF ( + 13, 94 * - 1 ), - COUNT( * ) * - 37 + + 2, 43 ) AS col2
----
555

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL 45 + 85 * COALESCE ( 6, + NULLIF ( + 13, 94 * - 1 ), - COUNT ( * ) * - 37 + + 2, 43 ) AS col2
----
555

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT DISTINCT ( - 85 ) * - 56 + CASE - 67 WHEN - 48 THEN 75 END * - ( COUNT( * ) ) - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT ( - 85 ) * - 56 + CASE - 67 WHEN - 48 THEN 75 END * - ( COUNT ( * ) ) - 48
----
NULL

query II rowsort
SELECT ALL 15 + + ( 90 ) - + 33 AS col1, - 64
----
72
-64

query I rowsort
SELECT 67 - - 0 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT COUNT( * ) + + 77 - + + 50 * - - 5 + + 78 * 87
----
6614

skipif mysql # not compatible
query I rowsort label-7392
SELECT COUNT ( * ) + + 77 - + + 50 * - - 5 + + 78 * 87
----
6614

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7393
SELECT ( - 95 ) + - + 88 DIV + - 88 - + COUNT( DISTINCT 81 )
----
-95

skipif mysql # not compatible
query I rowsort label-7393
SELECT ( - 95 ) + - + 88 / + - 88 - + COUNT ( DISTINCT 81 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT SUM( DISTINCT - ( - 68 ) ) + COALESCE ( 93, - ( NULLIF ( + 13, - - 42 + - 85 ) ), CASE 35 WHEN - 90 THEN - MAX( ALL - 69 ) * - ( + 42 ) + 35 END )
----
161

skipif mysql # not compatible
query I rowsort label-7394
SELECT SUM ( DISTINCT - ( - 68 ) ) + COALESCE ( 93, - ( NULLIF ( + 13, - - 42 + - 85 ) ), CASE 35 WHEN - 90 THEN - MAX ( ALL - 69 ) * - ( + 42 ) + 35 END )
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT DISTINCT COUNT( * ) + - + SUM( - - ( + - 83 ) ) + - + COUNT( * ) * - + 62 * - CASE COUNT( * ) WHEN - - CASE 66 WHEN 76 + - 74 THEN + 49 ELSE NULL END * COUNT( * ) + COUNT( * ) THEN - 91 * + COUNT( * ) WHEN + ( COUNT( * ) ) - + 57 THEN NULL WHEN 56 + 66 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT COUNT ( * ) + - + SUM ( - - ( + - 83 ) ) + - + COUNT ( * ) * - + 62 * - CASE COUNT ( * ) WHEN - - CASE 66 WHEN 76 + - 74 THEN + 49 ELSE NULL END * COUNT ( * ) + COUNT ( * ) THEN - 91 * + COUNT ( * ) WHEN + ( COUNT ( * ) ) - + 57 THEN NULL WHEN 56 + 66 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT MIN( ALL - 47 ) + - - 46 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7396
SELECT MIN ( ALL - 47 ) + - - 46 AS col1
----
-1

query I rowsort
SELECT ALL 49 - 2 - 70 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT ALL - 31 * NULLIF ( + 59, + 42 ) * - - COALESCE ( 39, + COUNT( * ) * - NULLIF ( + - 14, 43 ) ) - - 63
----
-71268

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL - 31 * NULLIF ( + 59, + 42 ) * - - COALESCE ( 39, + COUNT ( * ) * - NULLIF ( + - 14, 43 ) ) - - 63
----
-71268

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7399
SELECT 92 * CASE + - 60 WHEN - + 56 THEN + 26 ELSE CAST( - - 62 AS SIGNED ) + 20 + 17 DIV - 29 END AS col2
----
7544

skipif mysql # not compatible
query I rowsort label-7399
SELECT 92 * CASE + - 60 WHEN - + 56 THEN + 26 ELSE CAST ( - - 62 AS INTEGER ) + 20 + 17 / - 29 END AS col2
----
7544

query I rowsort
SELECT DISTINCT 36 * - + 82 AS col2
----
-2952

query I rowsort
SELECT ALL 95 * 8
----
760

query I rowsort
SELECT 82 * 70 AS col1
----
5740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7403
SELECT ALL CAST( NULL AS SIGNED ) * + + 84 - - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL CAST ( NULL AS INTEGER ) * + + 84 - - 62
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7404
SELECT - + ( + + 78 ) DIV - ( - - MIN( DISTINCT - 71 ) ) + - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7404
SELECT - + ( + + 78 ) / - ( - - MIN ( DISTINCT - 71 ) ) + - COUNT ( * ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT ALL - MIN( - 28 )
----
28

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL - MIN ( - 28 )
----
28

query II rowsort
SELECT ( 85 ) AS col1, ( + 4 )
----
85
4

query I rowsort
SELECT + 29 * - 22
----
-638

query I rowsort
SELECT 74 - - 37 AS col2
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7409
SELECT ALL - + CASE + 67 WHEN 63 THEN NULL ELSE - CAST( 69 AS SIGNED ) + - 77 + - + 23 + - 93 * - - 18 END
----
1843

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL - + CASE + 67 WHEN 63 THEN NULL ELSE - CAST ( 69 AS INTEGER ) + - 77 + - + 23 + - 93 * - - 18 END
----
1843

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT - 11 * - - 34 * ( - 63 ) + 76 - + 47 * + COUNT( DISTINCT 21 ) + 87 * + COUNT( * ) AS col1
----
23678

skipif mysql # not compatible
query I rowsort label-7410
SELECT - 11 * - - 34 * ( - 63 ) + 76 - + 47 * + COUNT ( DISTINCT 21 ) + 87 * + COUNT ( * ) AS col1
----
23678

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7411
SELECT CASE + 42 WHEN - 9 / - CAST( - + 78 AS SIGNED ) THEN + COUNT( * ) / + 98 WHEN - 43 - + 69 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT CASE + 42 WHEN - 9 / - CAST ( - + 78 AS INTEGER ) THEN + COUNT ( * ) / + 98 WHEN - 43 - + 69 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT ALL - - COUNT( * ) + ( + - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL - - COUNT ( * ) + ( + - COUNT ( * ) )
----
0

query I rowsort
SELECT DISTINCT - - 98 + - ( + 82 ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT COUNT( * ) * - + ( 35 ) + + 88 + - 22 + + 83 - + - 46 - + - 6 - + 78
----
88

skipif mysql # not compatible
query I rowsort label-7414
SELECT COUNT ( * ) * - + ( 35 ) + + 88 + - 22 + + 83 - + - 46 - + - 6 - + 78
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7415
SELECT COUNT( ALL 42 ) DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-7415
SELECT COUNT ( ALL 42 ) / + 62
----
0

query I rowsort
SELECT ALL + 34 + + 63
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7417
SELECT DISTINCT - 80 + + 34 + 87 + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7417
SELECT DISTINCT - 80 + + 34 + 87 + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 35 * - ( 96 ) AS col1
----
-3360

onlyif mysql # DIV for integer division: 
query I rowsort label-7419
SELECT 42 DIV - 1
----
-42

skipif mysql # not compatible
query I rowsort label-7419
SELECT 42 / - 1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-7420
SELECT 77 DIV 60 col0
----
1

skipif mysql # not compatible
query I rowsort label-7420
SELECT 77 / 60 col0
----
1

query I rowsort
SELECT DISTINCT - 62 + + 20 AS col1
----
-42

query I rowsort
SELECT 61 * - 16 * 47 AS col0
----
-45872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7423
SELECT ALL 61 - + COALESCE ( 91, - 94 + COUNT( * ), 65 * - 70, - - CAST( - COUNT( * ) AS SIGNED ), + 64 * NULLIF ( - 57, + 2 * - 50 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL 61 - + COALESCE ( 91, - 94 + COUNT ( * ), 65 * - 70, - - CAST ( - COUNT ( * ) AS INTEGER ), + 64 * NULLIF ( - 57, + 2 * - 50 ) )
----
-30

query II rowsort
SELECT - 45 AS col2, - ( - 70 )
----
-45
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT ALL COUNT( * ) * + + 92 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL COUNT ( * ) * + + 92 AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7426
SELECT 76 + 95 + - COALESCE ( - 90, - 73, - 25 ) - + 15 * + CAST( - SUM( ALL - 31 ) AS SIGNED )
----
-204

skipif mysql # not compatible
query I rowsort label-7426
SELECT 76 + 95 + - COALESCE ( - 90, - 73, - 25 ) - + 15 * + CAST ( - SUM ( ALL - 31 ) AS INTEGER )
----
-204

query II rowsort
SELECT 78 AS col1, 11
----
78
11

query II rowsort
SELECT - 56 AS col0, - 49 AS col0
----
-56
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7429
SELECT 86 + - + CAST( 18 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-7429
SELECT 86 + - + CAST ( 18 AS INTEGER )
----
68

query I rowsort
SELECT 92 * - + 85 AS col0
----
-7820

query I rowsort
SELECT + 65 + - + ( + ( 31 ) )
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-7432
SELECT + MIN( ALL NULLIF ( - 95, + 30 * - - 11 ) ), - 43 * - ( + 54 ) + + 73 AS col1
----
-95
2395

skipif mysql # not compatible
query II rowsort label-7432
SELECT + MIN ( ALL NULLIF ( - 95, + 30 * - - 11 ) ), - 43 * - ( + 54 ) + + 73 AS col1
----
-95
2395

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT - 4 * - + 20 + + + COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7433
SELECT - 4 * - + 20 + + + COUNT ( * ) AS col1
----
81

query I rowsort
SELECT ALL 58 * + 92 + - - 54
----
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT - 97 * + - COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-7435
SELECT - 97 * + - COUNT ( * ) AS col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7436
SELECT - 8 * + + MIN( DISTINCT + + ( - + CAST( NULL AS DECIMAL ) ) ) + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7436
SELECT - 8 * + + MIN ( DISTINCT + + ( - + CAST ( NULL AS REAL ) ) ) + 89 AS col2
----
NULL

query II rowsort
SELECT + - 19, 59 AS col2
----
-19
59

query I rowsort
SELECT ALL + + CASE - 42 WHEN 57 THEN NULL ELSE + 7 END * + 13 * + 90 + + 82 + - + 19 AS col0
----
8253

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT ALL 12 * - 47 - 23 + - + MIN( - 41 ) + + + ( + + CASE - 5 WHEN - COUNT( DISTINCT - 4 ) * + 88 THEN NULL ELSE 7 END ) AS col1
----
-539

skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL 12 * - 47 - 23 + - + MIN ( - 41 ) + + + ( + + CASE - 5 WHEN - COUNT ( DISTINCT - 4 ) * + 88 THEN NULL ELSE 7 END ) AS col1
----
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT + COUNT( ALL + + 95 )
----
1

skipif mysql # not compatible
query I rowsort label-7440
SELECT + COUNT ( ALL + + 95 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT 29 * + + 71 * - 62 + - + COUNT( * ) AS col1
----
-127659

skipif mysql # not compatible
query I rowsort label-7441
SELECT 29 * + + 71 * - 62 + - + COUNT ( * ) AS col1
----
-127659

query I rowsort
SELECT + 43 + - - 56 * - + ( + 19 )
----
-1021

query II rowsort
SELECT + 65 AS col0, - 57 AS col1
----
65
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT - 62 * - SUM( ALL + 60 ) AS col2
----
3720

skipif mysql # not compatible
query I rowsort label-7444
SELECT - 62 * - SUM ( ALL + 60 ) AS col2
----
3720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7445
SELECT ALL - 76 * SUM( + 82 ) / - MIN( + + CAST( NULL AS SIGNED ) ) * + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7445
SELECT ALL - 76 * SUM ( + 82 ) / - MIN ( + + CAST ( NULL AS INTEGER ) ) * + - 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT COUNT( * ) * 75 * 46 * + 72 + + + 31 AS col0
----
248431

skipif mysql # not compatible
query I rowsort label-7446
SELECT COUNT ( * ) * 75 * 46 * + 72 + + + 31 AS col0
----
248431

onlyif mysql # aggregate syntax: 
query II rowsort label-7447
SELECT COUNT( * ), 68 col1
----
1
68

skipif mysql # not compatible
query II rowsort label-7447
SELECT COUNT ( * ), 68 col1
----
1
68

query I rowsort
SELECT ALL 32 * - 76
----
-2432

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT - 44 + ( - 83 ) - - - COUNT( * ) - - 31
----
-97

skipif mysql # not compatible
query I rowsort label-7449
SELECT - 44 + ( - 83 ) - - - COUNT ( * ) - - 31
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7450
SELECT DISTINCT + COUNT( * ) AS col1, + 6 DIV + 87 + - 51 DIV - 34 + + + 12
----
1
13

skipif mysql # not compatible
query II rowsort label-7450
SELECT DISTINCT + COUNT ( * ) AS col1, + 6 / + 87 + - 51 / - 34 + + + 12
----
1
13

query I rowsort
SELECT ALL ( + 33 ) AS col1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7452
SELECT - CAST( NULL AS SIGNED ) + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7452
SELECT - CAST ( NULL AS INTEGER ) + 43 AS col0
----
NULL

query I rowsort
SELECT + 90 * - 51
----
-4590

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT - 14 + - - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-7454
SELECT - 14 + - - COUNT ( * )
----
-13

query I rowsort
SELECT DISTINCT NULLIF ( - + 79, - 18 ) AS col2
----
-79

query I rowsort
SELECT - 90 + + 41 AS col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7457
SELECT ALL + 14 DIV + CAST( 22 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL + 14 / + CAST ( 22 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7458
SELECT + 66 + - NULLIF ( + 41, 95 / + + 10 ) + + - 16, + COUNT( * ) + COUNT( * ) AS col0
----
9
2

skipif mysql # not compatible
query II rowsort label-7458
SELECT + 66 + - NULLIF ( + 41, 95 / + + 10 ) + + - 16, + COUNT ( * ) + COUNT ( * ) AS col0
----
9
2

query II rowsort
SELECT 26 col2, + ( - 71 )
----
26
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT DISTINCT CASE - - 88 WHEN + COUNT( * ) THEN 73 - + - 71 * - - MAX( DISTINCT - ( + 64 ) ) / + 57 * - 79 * 74 * AVG ( 2 * + 90 ) + + 11 + - 11 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7460
SELECT DISTINCT CASE - - 88 WHEN + COUNT ( * ) THEN 73 - + - 71 * - - MAX ( DISTINCT - ( + 64 ) ) / + 57 * - 79 * 74 * AVG ( 2 * + 90 ) + + 11 + - 11 END AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( - - 63, - COALESCE ( + 87, - - 41 ) ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-7462
SELECT DISTINCT NULLIF ( + - COUNT( * ), + 83 + + 23 ), 90 + + - 8 AS col1
----
-1
82

skipif mysql # not compatible
query II rowsort label-7462
SELECT DISTINCT NULLIF ( + - COUNT ( * ), + 83 + + 23 ), 90 + + - 8 AS col1
----
-1
82

query I rowsort
SELECT ALL - ( + ( 66 ) ) * + 70 AS col2
----
-4620

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7464
SELECT + - 62 * - 28 * + CAST( NULL AS DECIMAL ) + + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7464
SELECT + - 62 * - 28 * + CAST ( NULL AS REAL ) + + - 49
----
NULL

query I rowsort
SELECT ALL - + 48 + 85
----
37

query I rowsort
SELECT - 2 * + 11
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT + COUNT( ALL - NULLIF ( - 42, 87 ) ) + + 61 + 95 + + 66 + + + 69
----
292

skipif mysql # not compatible
query I rowsort label-7467
SELECT + COUNT ( ALL - NULLIF ( - 42, 87 ) ) + + 61 + 95 + + 66 + + + 69
----
292

onlyif mysql # aggregate syntax: 
query II rowsort label-7468
SELECT - 16 AS col2, + 58 / COUNT( * ) * 9 * CASE + + 57 WHEN - + 69 THEN NULL WHEN + COUNT( - 61 ) THEN 28 END / 75
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-7468
SELECT - 16 AS col2, + 58 / COUNT ( * ) * 9 * CASE + + 57 WHEN - + 69 THEN NULL WHEN + COUNT ( - 61 ) THEN 28 END / 75
----
-16
NULL

query I rowsort
SELECT + 86 + 30
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7470
SELECT ALL + COUNT( * ) AS col2, + 35 / CASE - 74 WHEN + 65 THEN NULL WHEN 61 THEN - - COUNT( * ) END - - 94 + + 80 * CAST( COUNT( * ) AS SIGNED ) * 21 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7470
SELECT ALL + COUNT ( * ) AS col2, + 35 / CASE - 74 WHEN + 65 THEN NULL WHEN 61 THEN - - COUNT ( * ) END - - 94 + + 80 * CAST ( COUNT ( * ) AS INTEGER ) * 21 AS col1
----
1
NULL

query I rowsort
SELECT + - 36 * - - 77
----
-2772

onlyif mysql # DIV for integer division: 
query I rowsort label-7472
SELECT DISTINCT + 88 DIV + 66 + - - 79
----
80

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT + 88 / + 66 + - - 79
----
80

query II rowsort
SELECT ALL + ( + - 85 ) AS col0, - 43
----
-85
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-7474
SELECT + 52 DIV + 15 + - 83 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-7474
SELECT + 52 / + 15 + - 83 AS col1
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7475
SELECT ALL + ( COUNT( * ) ) DIV - 86 + + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL + ( COUNT ( * ) ) / - 86 + + + COUNT ( * ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7476
SELECT + 14 DIV - + ( + - 58 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7476
SELECT + 14 / - + ( + - 58 ) AS col1
----
0

query II rowsort
SELECT + - 3 col0, - 26 AS col1
----
-3
-26

query I rowsort
SELECT + 97 + + 92 * + + 5 col2
----
557

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7479
SELECT + 2 DIV + COUNT( * ) AS col1, 83 AS col0
----
2
83

skipif mysql # not compatible
query II rowsort label-7479
SELECT + 2 / + COUNT ( * ) AS col1, 83 AS col0
----
2
83

query I rowsort
SELECT + 41 * NULLIF ( + + 97, + 31 ) * - 83
----
-330091

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT + - 44 * - 48 * SUM( + + 89 ) + - 82 AS col0
----
187886

skipif mysql # not compatible
query I rowsort label-7481
SELECT + - 44 * - 48 * SUM ( + + 89 ) + - 82 AS col0
----
187886

query I rowsort
SELECT - 39 * 70
----
-2730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7483
SELECT + CAST( + ( - + 75 ) AS SIGNED ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-7483
SELECT + CAST ( + ( - + 75 ) AS INTEGER ) AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7484
SELECT COALESCE ( - - CAST( NULL AS SIGNED ), - 18 + COUNT( * ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-7484
SELECT COALESCE ( - - CAST ( NULL AS INTEGER ), - 18 + COUNT ( * ) ) AS col2
----
-17

query I rowsort
SELECT - 73 * - 0
----
0

query II rowsort
SELECT DISTINCT ( 14 ), 77 AS col0
----
14
77

query I rowsort
SELECT 21 * 78 AS col1
----
1638

query I rowsort
SELECT ALL + 10 + 48 - 51 AS col1
----
7

query I rowsort
SELECT 34 + 59
----
93

query I rowsort
SELECT - ( + + 3 ) - + 1 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-7491
SELECT 80 + - COUNT( * ) AS col2, ( - 97 ) AS col0
----
79
-97

skipif mysql # not compatible
query II rowsort label-7491
SELECT 80 + - COUNT ( * ) AS col2, ( - 97 ) AS col0
----
79
-97

query I rowsort
SELECT ALL - - 21 + + 13
----
34

query II rowsort
SELECT ALL - 84 + + NULLIF ( + 56, + 11 / + 18 ) AS col0, - 29 + 82 + + + 2 AS col1
----
-28
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT DISTINCT - COUNT( - 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT - COUNT ( - 5 )
----
-1

query I rowsort
SELECT 72 * - - 64 AS col2
----
4608

query I rowsort
SELECT ALL + - 28 * - 2 - 88 + - 26 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT SUM( ALL ( 45 ) ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-7497
SELECT SUM ( ALL ( 45 ) ) AS col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7498
SELECT + 57 DIV + 13 + 43 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-7498
SELECT + 57 / + 13 + 43 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT DISTINCT - SUM( + - 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT - SUM ( + - 63 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-7500
SELECT ALL + 69 - - + COUNT( * ) + + COUNT( * ) * NULLIF ( + 18, + - 27 + 37 ), - 17 AS col0
----
88
-17

skipif mysql # not compatible
query II rowsort label-7500
SELECT ALL + 69 - - + COUNT ( * ) + + COUNT ( * ) * NULLIF ( + 18, + - 27 + 37 ), - 17 AS col0
----
88
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7501
SELECT ALL + + 36 * + 93 * ( + - ( + CASE - NULLIF ( - 75, - 59 * SUM( ALL + 42 ) - 13 + 26 * CASE + SUM( + 54 ) + + 87 WHEN COUNT( * ) * 33 + ( - 87 + - 47 * ( + 53 ) ) * 85 THEN 5 * 91 WHEN 18 THEN NULL ELSE 21 END + COUNT( ALL - 96 ) ) WHEN ( ( 48 ) ) * 84 + - 84 THEN AVG ( + 56 ) * - 25 + + 50 WHEN - SUM( DISTINCT - 3 ) THEN 42 / COUNT( * ) + 30 ELSE - CASE + CASE + 69 WHEN - 96 THEN - 84 WHEN + 58 THEN NULL WHEN 53 * + 60 - COUNT( * ) THEN NULL END WHEN - 78 + 80 THEN ( 1 ) ELSE NULL END * CAST( + 70 AS SIGNED ) + - 16 END ) ) / - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL + + 36 * + 93 * ( + - ( + CASE - NULLIF ( - 75, - 59 * SUM ( ALL + 42 ) - 13 + 26 * CASE + SUM ( + 54 ) + + 87 WHEN COUNT ( * ) * 33 + ( - 87 + - 47 * ( + 53 ) ) * 85 THEN 5 * 91 WHEN 18 THEN NULL ELSE 21 END + COUNT ( ALL - 96 ) ) WHEN ( ( 48 ) ) * 84 + - 84 THEN AVG ( + 56 ) * - 25 + + 50 WHEN - SUM ( DISTINCT - 3 ) THEN 42 / COUNT ( * ) + 30 ELSE - CASE + CASE + 69 WHEN - 96 THEN - 84 WHEN + 58 THEN NULL WHEN 53 * + 60 - COUNT ( * ) THEN NULL END WHEN - 78 + 80 THEN ( 1 ) ELSE NULL END * CAST ( + 70 AS INTEGER ) + - 16 END ) ) / - 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT DISTINCT - NULLIF ( CASE - 76 WHEN + + 99 + - - 81 THEN NULL WHEN 13 THEN - + NULLIF ( - COALESCE ( - 63, + 51 ), - COUNT( * ) * 34 * - 72 ) * 53 - 54 * + 76 ELSE 86 END, - 42 )
----
-86

skipif mysql # not compatible
query I rowsort label-7502
SELECT DISTINCT - NULLIF ( CASE - 76 WHEN + + 99 + - - 81 THEN NULL WHEN 13 THEN - + NULLIF ( - COALESCE ( - 63, + 51 ), - COUNT ( * ) * 34 * - 72 ) * 53 - 54 * + 76 ELSE 86 END, - 42 )
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-7503
SELECT DISTINCT - 38 AS col0, SUM( + - 95 ) * + 43 * + - 96 + COUNT( * )
----
-38
392161

skipif mysql # not compatible
query II rowsort label-7503
SELECT DISTINCT - 38 AS col0, SUM ( + - 95 ) * + 43 * + - 96 + COUNT ( * )
----
-38
392161

onlyif mysql # aggregate syntax: 
query II rowsort label-7504
SELECT + 88 * - + 87 + - 54, - MAX( - 8 ) + + 35 col1
----
-7710
43

skipif mysql # not compatible
query II rowsort label-7504
SELECT + 88 * - + 87 + - 54, - MAX ( - 8 ) + + 35 col1
----
-7710
43

query II rowsort
SELECT 37, - 3 AS col1
----
37
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7506
SELECT ALL - 31, + 86 * - COUNT( * ) AS col1
----
-31
-86

skipif mysql # not compatible
query II rowsort label-7506
SELECT ALL - 31, + 86 * - COUNT ( * ) AS col1
----
-31
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7507
SELECT 40 DIV + 93 + - 66 - - COUNT( * ) * + 24 * - 47 - - 92
----
-1102

skipif mysql # not compatible
query I rowsort label-7507
SELECT 40 / + 93 + - 66 - - COUNT ( * ) * + 24 * - 47 - - 92
----
-1102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7508
SELECT ( - - 19 ) / - CAST( NULL AS SIGNED ) * - ( - - NULLIF ( + CAST( 10 AS SIGNED ), - 93 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7508
SELECT ( - - 19 ) / - CAST ( NULL AS INTEGER ) * - ( - - NULLIF ( + CAST ( 10 AS INTEGER ), - 93 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7509
SELECT CAST( NULL AS SIGNED ) * - - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7509
SELECT CAST ( NULL AS INTEGER ) * - - 47
----
NULL

query I rowsort
SELECT COALESCE ( 55, ( - + 60 ) ) * + ( 50 ) + - 0
----
2750

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7511
SELECT ALL 73 * 24 DIV - 20, MIN( - 42 ) + + 44 AS col0
----
-87
2

skipif mysql # not compatible
query II rowsort label-7511
SELECT ALL 73 * 24 / - 20, MIN ( - 42 ) + + 44 AS col0
----
-87
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT ALL - MAX( DISTINCT - - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL - MAX ( DISTINCT - - 56 )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7513
SELECT ( 51 ) DIV + NULLIF ( - COUNT( * ), - + 6 * - - 13 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-7513
SELECT ( 51 ) / + NULLIF ( - COUNT ( * ), - + 6 * - - 13 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT ALL COUNT( * ) + + 12 + + COUNT( * ) * 77 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL COUNT ( * ) + + 12 + + COUNT ( * ) * 77 AS col2
----
90

query I rowsort
SELECT DISTINCT 2 + + 99 * + + 25
----
2477

onlyif mysql # aggregate syntax: 
query II rowsort label-7516
SELECT ALL COUNT( * ) + + ( - 54 ), COALESCE ( + - 12, - 54 ) * + 13 AS col2
----
-53
-156

skipif mysql # not compatible
query II rowsort label-7516
SELECT ALL COUNT ( * ) + + ( - 54 ), COALESCE ( + - 12, - 54 ) * + 13 AS col2
----
-53
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT COUNT( * ) + - 24
----
-23

skipif mysql # not compatible
query I rowsort label-7517
SELECT COUNT ( * ) + - 24
----
-23

query I rowsort
SELECT ALL 37 + + 45 + - + ( - 3 )
----
85

query II rowsort
SELECT ALL - 50 col0, 22 * - 11
----
-50
-242

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT 21 + - 22 + - + 55 * 41 + + + MIN( + 71 ) AS col0
----
-2185

skipif mysql # not compatible
query I rowsort label-7520
SELECT 21 + - 22 + - + 55 * 41 + + + MIN ( + 71 ) AS col0
----
-2185

onlyif mysql # aggregate syntax: 
query II rowsort label-7521
SELECT - 6 AS col1, 42 * - COUNT( * ) AS col2
----
-6
-42

skipif mysql # not compatible
query II rowsort label-7521
SELECT - 6 AS col1, 42 * - COUNT ( * ) AS col2
----
-6
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-7522
SELECT DISTINCT 8 AS col2, + 32 + + + COUNT( * ) - 6 * + - COUNT( * ) + + 57 AS col1
----
8
96

skipif mysql # not compatible
query II rowsort label-7522
SELECT DISTINCT 8 AS col2, + 32 + + + COUNT ( * ) - 6 * + - COUNT ( * ) + + 57 AS col1
----
8
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT COUNT( * ) * + 72 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-7523
SELECT COUNT ( * ) * + 72 AS col0
----
72

query I rowsort
SELECT 36 + - 85
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7525
SELECT 61 AS col1, 11 * + CAST( NULL AS SIGNED )
----
61
NULL

skipif mysql # not compatible
query II rowsort label-7525
SELECT 61 AS col1, 11 * + CAST ( NULL AS INTEGER )
----
61
NULL

query II rowsort
SELECT 98, + 90 col2
----
98
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7527
SELECT - COUNT( * ) col2, - 75 AS col0
----
-1
-75

skipif mysql # not compatible
query II rowsort label-7527
SELECT - COUNT ( * ) col2, - 75 AS col0
----
-1
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7528
SELECT COUNT( * ) + - - CAST( NULL AS SIGNED ) * - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-7528
SELECT COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * - 71
----
NULL

query I rowsort
SELECT 25 * + + 65 * ( 50 )
----
81250

query I rowsort
SELECT - ( + - ( - 19 ) ) AS col0
----
-19

query II rowsort
SELECT DISTINCT - 47 + - 18 * - + 78 AS col0, + 78
----
1357
78

query I rowsort
SELECT ALL + + 6 * + + 57
----
342

onlyif mysql # DIV for integer division: 
query I rowsort label-7533
SELECT 18 DIV + 2 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7533
SELECT 18 / + 2 AS col0
----
9

query II rowsort
SELECT + 12 AS col0, 4 + + 79 col0
----
12
83

query I rowsort
SELECT - 73 - - ( - 84 )
----
-157

query I rowsort
SELECT 28 * - 44
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT SUM( ALL 54 ) * + ( + 11 ) * - 25 + - 37 * 11
----
-15257

skipif mysql # not compatible
query I rowsort label-7537
SELECT SUM ( ALL 54 ) * + ( + 11 ) * - 25 + - 37 * 11
----
-15257

query I rowsort
SELECT - ( - - 53 ) AS col0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-7539
SELECT DISTINCT - + 72 DIV + + 52
----
-1

skipif mysql # not compatible
query I rowsort label-7539
SELECT DISTINCT - + 72 / + + 52
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT ALL - SUM( + 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL - SUM ( + 17 )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7541
SELECT + - 7 * - 31 + 60 + ( COUNT( * ) ) + CAST( NULL AS SIGNED ) * + 7 * + - ( - MIN( + ( + 21 ) ) ) + + - 5 + - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7541
SELECT + - 7 * - 31 + 60 + ( COUNT ( * ) ) + CAST ( NULL AS INTEGER ) * + 7 * + - ( - MIN ( + ( + 21 ) ) ) + + - 5 + - + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT DISTINCT - COALESCE ( + - 82, - - COUNT( * ) * + SUM( DISTINCT + 93 ) - + - MIN( DISTINCT + - 43 ) )
----
82

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT - COALESCE ( + - 82, - - COUNT ( * ) * + SUM ( DISTINCT + 93 ) - + - MIN ( DISTINCT + - 43 ) )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT COUNT( DISTINCT + 89 ) * 45 + - + 95 - - - 13 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-7543
SELECT COUNT ( DISTINCT + 89 ) * 45 + - + 95 - - - 13 AS col0
----
-63

query II rowsort
SELECT ALL + 45 * - 54 AS col0, - 21
----
-2430
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT ALL - 49 * COUNT( * ) + + 21 + - 60 + - 53 * 17
----
-989

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL - 49 * COUNT ( * ) + + 21 + - 60 + - 53 * 17
----
-989

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT ALL 58 * - COUNT( * ) + - 66
----
-124

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL 58 * - COUNT ( * ) + - 66
----
-124

query I rowsort
SELECT - 95 * - NULLIF ( + 61, - 24 * - 76 ) AS col0
----
5795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7548
SELECT ALL CASE + 32 WHEN - 75 / 74 - - 56 THEN - CAST( 59 AS SIGNED ) * - 58 WHEN + + 94 + - - MIN( 32 ) THEN - 77 + + + 5 END + - - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL CASE + 32 WHEN - 75 / 74 - - 56 THEN - CAST ( 59 AS INTEGER ) * - 58 WHEN + + 94 + - - MIN ( 32 ) THEN - 77 + + + 5 END + - - 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7549
SELECT ALL + NULLIF ( + COUNT( * ), + + CAST( - 48 AS SIGNED ) + - 88 * + - ( - 69 ) ) * - 39 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL + NULLIF ( + COUNT ( * ), + + CAST ( - 48 AS INTEGER ) + - 88 * + - ( - 69 ) ) * - 39 AS col1
----
-39

query I rowsort
SELECT DISTINCT 40 - - 8
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT DISTINCT 79 * + + COUNT( * ) + - 72
----
7

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT 79 * + + COUNT ( * ) + - 72
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT DISTINCT SUM( ALL ( 41 ) )
----
41

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT SUM ( ALL ( 41 ) )
----
41

query I rowsort
SELECT + + 62 + - 68 AS col2
----
-6

query I rowsort
SELECT + - 57 * - 25 * + 93
----
132525

query I rowsort
SELECT + + 13 + + 81
----
94

query I rowsort
SELECT + 94 * + + 9
----
846

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7557
SELECT DISTINCT + 69 * + SUM( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT + 69 * + SUM ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7558
SELECT DISTINCT + CASE + 47 WHEN - 24 THEN NULL WHEN - + 53 + 37 THEN + 79 - - + 48 + MIN( + CAST( 90 AS SIGNED ) ) WHEN + - CASE - ( + ( + AVG ( DISTINCT + 25 ) ) ) WHEN 73 THEN ( - 21 ) WHEN 34 + + 47 * - MIN( DISTINCT 22 * 59 ) THEN MAX( DISTINCT 4 ) END + ( + 65 ) THEN - CAST( 22 AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT + CASE + 47 WHEN - 24 THEN NULL WHEN - + 53 + 37 THEN + 79 - - + 48 + MIN ( + CAST ( 90 AS INTEGER ) ) WHEN + - CASE - ( + ( + AVG ( DISTINCT + 25 ) ) ) WHEN 73 THEN ( - 21 ) WHEN 34 + + 47 * - MIN ( DISTINCT 22 * 59 ) THEN MAX ( DISTINCT 4 ) END + ( + 65 ) THEN - CAST ( 22 AS INTEGER ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + + 30 * + + 49 * - - 52
----
76440

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT + ( + ( 81 ) ) + + 5 * 32 + + + COUNT( * ) + - + COUNT( * ) * + 55
----
187

skipif mysql # not compatible
query I rowsort label-7560
SELECT + ( + ( 81 ) ) + + 5 * 32 + + + COUNT ( * ) + - + COUNT ( * ) * + 55
----
187

query I rowsort
SELECT DISTINCT 9 * + 99 * + + 44
----
39204

query I rowsort
SELECT - 48 + - 69 AS col2
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7563
SELECT 76, + CAST( NULL AS SIGNED ) / - ( - 79 ) col2
----
76
NULL

skipif mysql # not compatible
query II rowsort label-7563
SELECT 76, + CAST ( NULL AS INTEGER ) / - ( - 79 ) col2
----
76
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7564
SELECT - 97 DIV COUNT( * ) * + 29, 95 DIV CAST( NULL AS SIGNED ) DIV + 59 AS col1
----
-2813
NULL

skipif mysql # not compatible
query II rowsort label-7564
SELECT - 97 / COUNT ( * ) * + 29, 95 / CAST ( NULL AS INTEGER ) / + 59 AS col1
----
-2813
NULL

query I rowsort
SELECT ALL 3 * + ( - 5 ) AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7566
SELECT + 9 * - + CAST( + 76 AS SIGNED ) / - 85 * + - CAST( NULL AS SIGNED ) + + + 8 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7566
SELECT + 9 * - + CAST ( + 76 AS INTEGER ) / - 85 * + - CAST ( NULL AS INTEGER ) + + + 8 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7567
SELECT ( - MIN( - CAST( 75 AS SIGNED ) ) )
----
75

skipif mysql # not compatible
query I rowsort label-7567
SELECT ( - MIN ( - CAST ( 75 AS INTEGER ) ) )
----
75

query I rowsort
SELECT + 44 * + 72 AS col2
----
3168

query I rowsort
SELECT + ( - + 43 )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7570
SELECT - CASE - NULLIF ( + 46, + + 43 ) WHEN - - CAST( NULL AS SIGNED ) THEN SUM( 46 ) * - NULLIF ( 49, + - 18 ) * + + 29 + + 41 ELSE + 24 + - 56 + 92 - - 27 END DIV 97 - 6 * + COUNT( - 48 - + 12 ) col1
----
-6

skipif mysql # not compatible
query I rowsort label-7570
SELECT - CASE - NULLIF ( + 46, + + 43 ) WHEN - - CAST ( NULL AS INTEGER ) THEN SUM ( 46 ) * - NULLIF ( 49, + - 18 ) * + + 29 + + 41 ELSE + 24 + - 56 + 92 - - 27 END / 97 - 6 * + COUNT ( - 48 - + 12 ) col1
----
-6

query I rowsort
SELECT DISTINCT 79 * + + 86 * + 61 + + CASE 49 WHEN - 60 + 0 * - - 33 THEN NULL WHEN - 63 THEN NULL ELSE - + 15 END
----
414419

onlyif mysql # DIV for integer division: 
query I rowsort label-7572
SELECT ALL 20 DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL 20 / - 50
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7573
SELECT - 31 DIV COUNT( * ) * 52 * 23 * - + NULLIF ( 38, COUNT( DISTINCT + + 9 ) + 83 DIV 32 * + + ( - NULLIF ( 27, - 36 ) ) )
----
1408888

skipif mysql # not compatible
query I rowsort label-7573
SELECT - 31 / COUNT ( * ) * 52 * 23 * - + NULLIF ( 38, COUNT ( DISTINCT + + 9 ) + 83 / 32 * + + ( - NULLIF ( 27, - 36 ) ) )
----
1408888

query I rowsort
SELECT + 4 * + 65 + - + 10 AS col2
----
250

query II rowsort
SELECT + 46, + 56 + 10 + 32 * - + 83 col1
----
46
-2590

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ALL + COUNT( DISTINCT - - 29 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL + COUNT ( DISTINCT - - 29 ) AS col2
----
1

query I rowsort
SELECT - 95 + - 17
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-7578
SELECT 78 * ( + ( - - 2 ) ) DIV - - 60 + + 68 - + 56 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7578
SELECT 78 * ( + ( - - 2 ) ) / - - 60 + + 68 - + 56 AS col2
----
14

query I rowsort
SELECT - 72 + + 70
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7580
SELECT COUNT( * ) DIV - 51 - 96 + SUM( + 1 ) * + + 33
----
-63

skipif mysql # not compatible
query I rowsort label-7580
SELECT COUNT ( * ) / - 51 - 96 + SUM ( + 1 ) * + + 33
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7581
SELECT DISTINCT - 68 * - - 88 * + + 65 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7581
SELECT DISTINCT - 68 * - - 88 * + + 65 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + ( - + 47 )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7583
SELECT 52 * + 76 * + 61 + + COUNT( + 67 ) DIV - + MAX( ALL - 68 ) AS col0
----
241072

skipif mysql # not compatible
query I rowsort label-7583
SELECT 52 * + 76 * + 61 + + COUNT ( + 67 ) / - + MAX ( ALL - 68 ) AS col0
----
241072

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7584
SELECT + - 2 + - + 75 + 93 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7584
SELECT + - 2 + - + 75 + 93 + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7585
SELECT ALL NULLIF ( 46, - + 45 / - ( COALESCE ( + CAST( + - ( 49 ) AS DECIMAL ), - ( 14 ) ) ) )
----
46

skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL NULLIF ( 46, - + 45 / - ( COALESCE ( + CAST ( + - ( 49 ) AS REAL ), - ( 14 ) ) ) )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT + 12 * - + MAX( DISTINCT ( + - 88 ) )
----
1056

skipif mysql # not compatible
query I rowsort label-7586
SELECT + 12 * - + MAX ( DISTINCT ( + - 88 ) )
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT - - ( + CASE ( + + ( + 87 ) ) WHEN 62 THEN NULL ELSE SUM( ALL - 4 ) * 89 - - + COUNT( * ) - COUNT( * ) END )
----
-356

skipif mysql # not compatible
query I rowsort label-7587
SELECT - - ( + CASE ( + + ( + 87 ) ) WHEN 62 THEN NULL ELSE SUM ( ALL - 4 ) * 89 - - + COUNT ( * ) - COUNT ( * ) END )
----
-356

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT COALESCE ( + 9, MIN( ALL + + 27 ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7588
SELECT COALESCE ( + 9, MIN ( ALL + + 27 ) ) AS col0
----
9

query I rowsort
SELECT + - 53 * + 41 * + 21 + - 78 col1
----
-45711

query I rowsort
SELECT NULLIF ( + 15, - 17 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT - 30 * 72 + COUNT( * ) + - 99
----
-2258

skipif mysql # not compatible
query I rowsort label-7591
SELECT - 30 * 72 + COUNT ( * ) + - 99
----
-2258

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT ALL NULLIF ( + 38, - + 58 ) * - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL NULLIF ( + 38, - + 58 ) * - COUNT ( * )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7593
SELECT - + 25 DIV 73 DIV + 42 * - NULLIF ( MIN( DISTINCT - 54 ), - 53 DIV + COUNT( * ) + ( 66 ) DIV - COUNT( * ) DIV + CAST( - + 58 AS DECIMAL ) DIV - ( - + 65 ) + - 93 + + 80 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7593
SELECT - + 25 / 73 / + 42 * - NULLIF ( MIN ( DISTINCT - 54 ), - 53 / + COUNT ( * ) + ( 66 ) / - COUNT ( * ) / + CAST ( - + 58 AS REAL ) / - ( - + 65 ) + - 93 + + 80 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7594
SELECT ALL COUNT( * ) AS col1, ( 55 )
----
1
55

skipif mysql # not compatible
query II rowsort label-7594
SELECT ALL COUNT ( * ) AS col1, ( 55 )
----
1
55

onlyif mysql # DIV for integer division: 
query I rowsort label-7595
SELECT DISTINCT - COALESCE ( - 3, + 94, + - 47 ) DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT - COALESCE ( - 3, + 94, + - 47 ) / - 82
----
0

query I rowsort
SELECT DISTINCT + 40 * 94
----
3760

query I rowsort
SELECT ALL - - NULLIF ( + 31, + 12 * - 13 / - + 26 * + 66 ) * + - 25
----
-775

onlyif mysql # aggregate syntax: 
query II rowsort label-7598
SELECT DISTINCT + COALESCE ( + 29, - 2 * + 35 ) * 10 * + - 33 AS col1, COUNT( * ) + 26 AS col0
----
-9570
27

skipif mysql # not compatible
query II rowsort label-7598
SELECT DISTINCT + COALESCE ( + 29, - 2 * + 35 ) * 10 * + - 33 AS col1, COUNT ( * ) + 26 AS col0
----
-9570
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7599
SELECT DISTINCT 54 DIV 84 DIV + MIN( ALL + 68 ) - - + 25 AS col1, 78
----
25
78

skipif mysql # not compatible
query II rowsort label-7599
SELECT DISTINCT 54 / 84 / + MIN ( ALL + 68 ) - - + 25 AS col1, 78
----
25
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7600
SELECT ALL 54, - 54 * - CAST( NULL AS SIGNED ) AS col1
----
54
NULL

skipif mysql # not compatible
query II rowsort label-7600
SELECT ALL 54, - 54 * - CAST ( NULL AS INTEGER ) AS col1
----
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT + COALESCE ( + MIN( + 3 ), - - COUNT( * ) ) * - COUNT( * ) * 18
----
-54

skipif mysql # not compatible
query I rowsort label-7601
SELECT + COALESCE ( + MIN ( + 3 ), - - COUNT ( * ) ) * - COUNT ( * ) * 18
----
-54

query I rowsort
SELECT DISTINCT 97 + + 70 - + 4 * NULLIF ( 70, 57 ) AS col0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT ALL - 46 + - 31 + - + 6 + - 50 * + MAX( DISTINCT + + ( + 60 ) ) AS col0
----
-3083

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL - 46 + - 31 + - + 6 + - 50 * + MAX ( DISTINCT + + ( + 60 ) ) AS col0
----
-3083

query I rowsort
SELECT DISTINCT + 88 + + 11 col1
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7605
SELECT DISTINCT COUNT( * ) AS col0, CASE - + ( - 85 ) WHEN + - 95 * + 52 + - + 80 THEN NULL WHEN 64 THEN NULL WHEN 35 THEN - 91 + MAX( ALL 7 ) ELSE NULL END - 28 * 92 * - - ( + COALESCE ( + 82, - ( 82 ) + - 15, + 38 + NULLIF ( COUNT( + 11 ), + 72 + COUNT( * ) ) ) ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7605
SELECT DISTINCT COUNT ( * ) AS col0, CASE - + ( - 85 ) WHEN + - 95 * + 52 + - + 80 THEN NULL WHEN 64 THEN NULL WHEN 35 THEN - 91 + MAX ( ALL 7 ) ELSE NULL END - 28 * 92 * - - ( + COALESCE ( + 82, - ( 82 ) + - 15, + 38 + NULLIF ( COUNT ( + 11 ), + 72 + COUNT ( * ) ) ) ) AS col1
----
1
NULL

query I rowsort
SELECT ALL 26 + + + 7 - 75
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-7607
SELECT ALL 50 + + + 81 DIV - - 89
----
50

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL 50 + + + 81 / - - 89
----
50

query II rowsort
SELECT ALL - 40, 45 * + 14 AS col2
----
-40
630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7609
SELECT - 0 DIV - + 39 + - COUNT( * ) DIV - 86 * COUNT( * ) + + 32
----
32

skipif mysql # not compatible
query I rowsort label-7609
SELECT - 0 / - + 39 + - COUNT ( * ) / - 86 * COUNT ( * ) + + 32
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT COUNT( * ) * - 94 col0
----
-94

skipif mysql # not compatible
query I rowsort label-7610
SELECT COUNT ( * ) * - 94 col0
----
-94

query II rowsort
SELECT ALL 14 + 11 col2, 32 AS col1
----
25
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7612
SELECT ALL CASE + - 92 WHEN + 39 THEN + + 80 ELSE - NULLIF ( MIN( + 10 ), + - 24 ) + + - 32 + - 49 - 12 * CAST( NULL AS SIGNED ) END + - ( - 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL CASE + - 92 WHEN + 39 THEN + + 80 ELSE - NULLIF ( MIN ( + 10 ), + - 24 ) + + - 32 + - 49 - 12 * CAST ( NULL AS INTEGER ) END + - ( - 63 )
----
NULL

query II rowsort
SELECT + 89 col0, 90
----
89
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7614
SELECT COUNT( * ) + - 21 AS col0, 64
----
-20
64

skipif mysql # not compatible
query II rowsort label-7614
SELECT COUNT ( * ) + - 21 AS col0, 64
----
-20
64

query II rowsort
SELECT ALL - CASE + + 30 WHEN - 0 THEN - - 27 END AS col1, 92 AS col0
----
NULL
92

query II rowsort
SELECT ALL - 91 col0, 84
----
-91
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT NULLIF ( + - 38, + 52 * - ( - 55 ) + + 13 * - COUNT( * ) * - 87 ) * 5 * 38 * ( + + 71 ) AS col0
----
-512620

skipif mysql # not compatible
query I rowsort label-7617
SELECT NULLIF ( + - 38, + 52 * - ( - 55 ) + + 13 * - COUNT ( * ) * - 87 ) * 5 * 38 * ( + + 71 ) AS col0
----
-512620

query II rowsort
SELECT 4 AS col2, - 25 + 48
----
4
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT DISTINCT COUNT( * ) - - 80 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7619
SELECT DISTINCT COUNT ( * ) - - 80 AS col1
----
81

query II rowsort
SELECT ALL - 75, - 31 * - 13 AS col1
----
-75
403

query I rowsort
SELECT ALL - - 61 - - - 70
----
-9

query I rowsort
SELECT ALL + - 99 * - 33 AS col1
----
3267

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT - 26 - - COUNT( * ) + + - 29
----
-54

skipif mysql # not compatible
query I rowsort label-7623
SELECT - 26 - - COUNT ( * ) + + - 29
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT + MIN( + 89 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-7624
SELECT + MIN ( + 89 ) AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7625
SELECT ALL - + 70 * + - AVG ( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7625
SELECT ALL - + 70 * + - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7626
SELECT + + 49 col0, + CASE - - 71 WHEN ( + + 23 ) THEN NULL ELSE - 22 * - MAX( ALL + - 68 ) END AS col0
----
49
-1496

skipif mysql # not compatible
query II rowsort label-7626
SELECT + + 49 col0, + CASE - - 71 WHEN ( + + 23 ) THEN NULL ELSE - 22 * - MAX ( ALL + - 68 ) END AS col0
----
49
-1496

query II rowsort
SELECT ALL 75 AS col2, 82
----
75
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7628
SELECT + 76 - - 93 + + MIN( ALL 4 ) DIV - 48
----
169

skipif mysql # not compatible
query I rowsort label-7628
SELECT + 76 - - 93 + + MIN ( ALL 4 ) / - 48
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT ALL - + SUM( ALL 10 ) * - - 97
----
-970

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL - + SUM ( ALL 10 ) * - - 97
----
-970

query I rowsort
SELECT ALL + 10 + - - ( 73 )
----
83

query I rowsort
SELECT ALL - COALESCE ( - - 81, + - 22 + + 95, - 1 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT DISTINCT + - ( - - 45 ) + - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-7632
SELECT DISTINCT + - ( - - 45 ) + - COUNT ( * )
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-7633
SELECT ALL 42 DIV + 80 * ( + + 51 ) - - - 85 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL 42 / + 80 * ( + + 51 ) - - - 85 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-7634
SELECT + COUNT( * ), + 54 AS col1
----
1
54

skipif mysql # not compatible
query II rowsort label-7634
SELECT + COUNT ( * ), + 54 AS col1
----
1
54

query I rowsort
SELECT ALL - 50 + + - 59 AS col0
----
-109

query I rowsort
SELECT 51 + + 60 + - 59 * - 98 - + + 13 + - ( 90 )
----
5790

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT - + MAX( - NULLIF ( - ( + + 34 ), - 50 ) ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-7637
SELECT - + MAX ( - NULLIF ( - ( + + 34 ), - 50 ) ) AS col1
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-7638
SELECT 10 DIV + 95 * 95
----
0

skipif mysql # not compatible
query I rowsort label-7638
SELECT 10 / + 95 * 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT - 69 + - SUM( ALL 14 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-7639
SELECT - 69 + - SUM ( ALL 14 ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT 41 - + SUM( 73 )
----
-32

skipif mysql # not compatible
query I rowsort label-7640
SELECT 41 - + SUM ( 73 )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-7641
SELECT ALL + 58 DIV - ( + - NULLIF ( + + 84, + - 88 * + 45 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL + 58 / - ( + - NULLIF ( + + 84, + - 88 * + 45 ) )
----
0

query I rowsort
SELECT - 83 + - - 73
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-7643
SELECT + ( + + 94 ) - 6 + + - ( + MAX( + + 7 ) ) * - 22, 74 AS col2
----
242
74

skipif mysql # not compatible
query II rowsort label-7643
SELECT + ( + + 94 ) - 6 + + - ( + MAX ( + + 7 ) ) * - 22, 74 AS col2
----
242
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7644
SELECT ALL + 86 * + 41 AS col2, + 9 * - CAST( NULL AS SIGNED )
----
3526
NULL

skipif mysql # not compatible
query II rowsort label-7644
SELECT ALL + 86 * + 41 AS col2, + 9 * - CAST ( NULL AS INTEGER )
----
3526
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7645
SELECT ALL 9 + + 54 DIV 11
----
13

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL 9 + + 54 / 11
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7646
SELECT 5 + + - COUNT( * ), - 14 AS col2
----
4
-14

skipif mysql # not compatible
query II rowsort label-7646
SELECT 5 + + - COUNT ( * ), - 14 AS col2
----
4
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT DISTINCT + SUM( - 49 ) * - 26 - - 17 AS col1
----
1291

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT + SUM ( - 49 ) * - 26 - - 17 AS col1
----
1291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7648
SELECT DISTINCT - 14 + - 63 AS col1, ( - ( + - 2 ) ) DIV - + ( + + COALESCE ( + 63, - 62, + - CAST( NULL AS SIGNED ) + + - COUNT( * ) ) ) * + 57 * 91 * - 8
----
-77
0

skipif mysql # not compatible
query II rowsort label-7648
SELECT DISTINCT - 14 + - 63 AS col1, ( - ( + - 2 ) ) / - + ( + + COALESCE ( + 63, - 62, + - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) ) ) * + 57 * 91 * - 8
----
-77
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7649
SELECT ALL ( - 87 ) / - 85 + - 87 / MAX( + 83 ) / - NULLIF ( - + CAST( NULL AS SIGNED ), + + 69 ) + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL ( - 87 ) / - 85 + - 87 / MAX ( + 83 ) / - NULLIF ( - + CAST ( NULL AS INTEGER ), + + 69 ) + 35 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7650
SELECT 24 + COUNT( * ) + + + 29 DIV + + 6 + - - 6 AS col1, + COUNT( * ) * + 8
----
35
8

skipif mysql # not compatible
query II rowsort label-7650
SELECT 24 + COUNT ( * ) + + + 29 / + + 6 + - - 6 AS col1, + COUNT ( * ) * + 8
----
35
8

query I rowsort
SELECT ALL 73 - 96
----
-23

query I rowsort
SELECT 95 * + + 21 * - 2
----
-3990

query I rowsort
SELECT 1 + + - 21 * - 61 - 82
----
1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7654
SELECT COUNT( + 5 ), 70 + - - ( + CAST( NULL AS SIGNED ) ) * CASE 78 WHEN NULLIF ( - + COUNT( * ), + 50 + CASE 48 WHEN - 65 THEN - + COUNT( * ) ELSE NULL END ) + COUNT( ALL - 75 ) THEN - 73 / - 51 WHEN + 20 * ( - 71 ) THEN - 17 END + 79 * 55 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7654
SELECT COUNT ( + 5 ), 70 + - - ( + CAST ( NULL AS INTEGER ) ) * CASE 78 WHEN NULLIF ( - + COUNT ( * ), + 50 + CASE 48 WHEN - 65 THEN - + COUNT ( * ) ELSE NULL END ) + COUNT ( ALL - 75 ) THEN - 73 / - 51 WHEN + 20 * ( - 71 ) THEN - 17 END + 79 * 55 AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7655
SELECT 97 * - + 27 + 96 - + COUNT( * ) + - 7 * + 70 - - 70 AS col0, ( + 47 )
----
-2944
47

skipif mysql # not compatible
query II rowsort label-7655
SELECT 97 * - + 27 + 96 - + COUNT ( * ) + - 7 * + 70 - - 70 AS col0, ( + 47 )
----
-2944
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT MIN( - 33 ) col1
----
-33

skipif mysql # not compatible
query I rowsort label-7656
SELECT MIN ( - 33 ) col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7657
SELECT ALL COALESCE ( 17, NULLIF ( 96, + CAST( + 50 AS SIGNED ) ), + + 28 * 9 + 60 ) * 55 AS col1, COUNT( * ) * - 2 * - 37 * + 77 AS col1
----
935
5698

skipif mysql # not compatible
query II rowsort label-7657
SELECT ALL COALESCE ( 17, NULLIF ( 96, + CAST ( + 50 AS INTEGER ) ), + + 28 * 9 + 60 ) * 55 AS col1, COUNT ( * ) * - 2 * - 37 * + 77 AS col1
----
935
5698

onlyif mysql # aggregate syntax: 
query II rowsort label-7658
SELECT - 34 * - 31 + + 30 * 28 + COUNT( * ) AS col2, - 62 + 90
----
1895
28

skipif mysql # not compatible
query II rowsort label-7658
SELECT - 34 * - 31 + + 30 * 28 + COUNT ( * ) AS col2, - 62 + 90
----
1895
28

query I rowsort
SELECT + 24 + 78 * COALESCE ( + ( - 88 ), 36 )
----
-6840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7660
SELECT + ( - 41 ) * 47 * - 26 * + - CAST( NULL AS SIGNED ) - - COUNT( * ) * ( - 13 ) / ( - 22 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7660
SELECT + ( - 41 ) * 47 * - 26 * + - CAST ( NULL AS INTEGER ) - - COUNT ( * ) * ( - 13 ) / ( - 22 ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7661
SELECT + 51 DIV COUNT( * ) col2, - 95 DIV + 97 - + + 73
----
51
-73

skipif mysql # not compatible
query II rowsort label-7661
SELECT + 51 / COUNT ( * ) col2, - 95 / + 97 - + + 73
----
51
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7662
SELECT + + 70 * + 36 * - - COUNT( * ) + - + CAST( 91 AS SIGNED )
----
2429

skipif mysql # not compatible
query I rowsort label-7662
SELECT + + 70 * + 36 * - - COUNT ( * ) + - + CAST ( 91 AS INTEGER )
----
2429

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT + 65 * + - MIN( DISTINCT + 84 ) AS col2
----
-5460

skipif mysql # not compatible
query I rowsort label-7663
SELECT + 65 * + - MIN ( DISTINCT + 84 ) AS col2
----
-5460

query I rowsort
SELECT - 59 * + - 68 + - 96
----
3916

query I rowsort
SELECT ALL - - 48 col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT DISTINCT - 12 + + MAX( DISTINCT + 36 )
----
24

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT - 12 + + MAX ( DISTINCT + 36 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT ALL 57 + COUNT( * ) * + - COUNT( * ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL 57 + COUNT ( * ) * + - COUNT ( * ) AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7668
SELECT - COUNT( * ) + + ( - COUNT( * ) ) DIV ( - 69 ) - + - 50 + - - 22 * + - 69
----
-1469

skipif mysql # not compatible
query I rowsort label-7668
SELECT - COUNT ( * ) + + ( - COUNT ( * ) ) / ( - 69 ) - + - 50 + - - 22 * + - 69
----
-1469

onlyif mysql # aggregate syntax: 
query III rowsort label-7669
SELECT ALL + ( - COUNT( * ) ) * + 50 AS col0, 18 * 16 AS col2, - + 3 * - 57
----
-50
288
171

skipif mysql # not compatible
query III rowsort label-7669
SELECT ALL + ( - COUNT ( * ) ) * + 50 AS col0, 18 * 16 AS col2, - + 3 * - 57
----
-50
288
171

onlyif mysql # aggregate syntax: 
query II rowsort label-7670
SELECT DISTINCT + - 50 + + COUNT( * ) AS col2, 26 + 29 * - 3 + + - 64 + - - 25 AS col1
----
-49
-100

skipif mysql # not compatible
query II rowsort label-7670
SELECT DISTINCT + - 50 + + COUNT ( * ) AS col2, 26 + 29 * - 3 + + - 64 + - - 25 AS col1
----
-49
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT DISTINCT SUM( DISTINCT 15 ) col1
----
15

skipif mysql # not compatible
query I rowsort label-7671
SELECT DISTINCT SUM ( DISTINCT 15 ) col1
----
15

query I rowsort
SELECT - 15 * + 18 AS col1
----
-270

query I rowsort
SELECT ALL CASE 85 WHEN - 26 THEN 97 WHEN - + 55 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT DISTINCT MIN( 34 ) col0
----
34

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT MIN ( 34 ) col0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7675
SELECT ALL - NULLIF ( - CAST( - CASE + + 85 WHEN + COUNT( * ) / - - COUNT( * ) THEN - 10 WHEN + 10 THEN - 32 ELSE + + ( - COALESCE ( - + 86, + 28 ) ) * - ( - CASE + 88 WHEN 83 THEN + - CAST( 49 AS SIGNED ) * 59 + - AVG ( + 72 ) END ) + COUNT( * ) END AS SIGNED ), - 29 ) - - 94 * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL - NULLIF ( - CAST ( - CASE + + 85 WHEN + COUNT ( * ) / - - COUNT ( * ) THEN - 10 WHEN + 10 THEN - 32 ELSE + + ( - COALESCE ( - + 86, + 28 ) ) * - ( - CASE + 88 WHEN 83 THEN + - CAST ( 49 AS INTEGER ) * 59 + - AVG ( + 72 ) END ) + COUNT ( * ) END AS INTEGER ), - 29 ) - - 94 * 14
----
NULL

query I rowsort
SELECT + 78 + - - 73 AS col2
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7677
SELECT DISTINCT COALESCE ( COUNT( * ), - + 5 * CASE - 83 WHEN - 34 + - COUNT( - - ( - - CAST( - 17 AS SIGNED ) ) ) + 11 + - 66 + - 75 * + 56 THEN + 35 + + - 47 WHEN + 80 THEN NULL ELSE NULL END * - - 1, - 80 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT COALESCE ( COUNT ( * ), - + 5 * CASE - 83 WHEN - 34 + - COUNT ( - - ( - - CAST ( - 17 AS INTEGER ) ) ) + 11 + - 66 + - 75 * + 56 THEN + 35 + + - 47 WHEN + 80 THEN NULL ELSE NULL END * - - 1, - 80 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7678
SELECT ALL CAST( 47 AS SIGNED ) * - + ( + 43 )
----
-2021

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL CAST ( 47 AS INTEGER ) * - + ( + 43 )
----
-2021

query II rowsort
SELECT DISTINCT + ( - 38 ) * 25 AS col1, 59
----
-950
59

query II rowsort
SELECT ALL + 10, 67 + 51 col0
----
10
118

onlyif mysql # DIV for integer division: 
query I rowsort label-7681
SELECT 56 DIV - - 91 * + 97 * - 59 + + 34 col2
----
34

skipif mysql # not compatible
query I rowsort label-7681
SELECT 56 / - - 91 * + 97 * - 59 + + 34 col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7682
SELECT ALL - 20 * + 79 * + NULLIF ( - 1, 68 / - - MAX( DISTINCT + 91 ) * 84 * + 64 ) * MAX( DISTINCT + 79 ) * + 29 - + CAST( + - 88 AS SIGNED )
----
3619868

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL - 20 * + 79 * + NULLIF ( - 1, 68 / - - MAX ( DISTINCT + 91 ) * 84 * + 64 ) * MAX ( DISTINCT + 79 ) * + 29 - + CAST ( + - 88 AS INTEGER )
----
3619868

query II rowsort
SELECT ALL + ( + 75 ) * 38, - 96 AS col1
----
2850
-96

query II rowsort
SELECT - 89 * + 89 * 20 col0, 70 + - - 72
----
-158420
142

query I rowsort
SELECT ( + COALESCE ( - 94, 81 ) ) col2
----
-94

query II rowsort
SELECT ALL + 0 col1, 12 AS col1
----
0
12

onlyif mysql # DIV for integer division: 
query I rowsort label-7687
SELECT + 11 * 75 DIV 21 + - - 17 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-7687
SELECT + 11 * 75 / 21 + - - 17 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT + - CASE 0 WHEN ( + ( + COUNT( ALL + + 32 ) ) ) THEN + 28 ELSE 58 * + 86 END - - 4 * + 80
----
-4668

skipif mysql # not compatible
query I rowsort label-7688
SELECT + - CASE 0 WHEN ( + ( + COUNT ( ALL + + 32 ) ) ) THEN + 28 ELSE 58 * + 86 END - - 4 * + 80
----
-4668

query I rowsort
SELECT ALL - 85 * - - 97 + - 0 * - - 66
----
-8245

query II rowsort
SELECT + 15 AS col1, 5 AS col1
----
15
5

query I rowsort
SELECT DISTINCT 73 * + - 40 * - 62 + - 71 + - 51
----
180918

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7692
SELECT ALL 40 * - - 86 * + NULLIF ( COALESCE ( MAX( - NULLIF ( + 1, - 19 ) ), - - 71, 69 + + COUNT( * ) ), + ( COALESCE ( CAST( NULL AS SIGNED ), + 43 * + 28, 75 + 90 * + 74, 65 + + 52 ) ) ) + - 55 + - 1 AS col0
----
-3496

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL 40 * - - 86 * + NULLIF ( COALESCE ( MAX ( - NULLIF ( + 1, - 19 ) ), - - 71, 69 + + COUNT ( * ) ), + ( COALESCE ( CAST ( NULL AS INTEGER ), + 43 * + 28, 75 + 90 * + 74, 65 + + 52 ) ) ) + - 55 + - 1 AS col0
----
-3496

query I rowsort
SELECT ALL 46 * 84 AS col0
----
3864

query I rowsort
SELECT + + 2 - + NULLIF ( + ( - 8 ), - 22 - + 92 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT + - NULLIF ( 82, - COUNT( * ) )
----
-82

skipif mysql # not compatible
query I rowsort label-7695
SELECT + - NULLIF ( 82, - COUNT ( * ) )
----
-82

query I rowsort
SELECT + NULLIF ( + 91, 8 ) AS col1
----
91

query I rowsort
SELECT 28 * 62 + 7 + - 13 AS col1
----
1730

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7698
SELECT - 21 DIV - 30 * - - 25, SUM( + 85 ) col1
----
0
85

skipif mysql # not compatible
query II rowsort label-7698
SELECT - 21 / - 30 * - - 25, SUM ( + 85 ) col1
----
0
85

query II rowsort
SELECT ALL + - 70 * 55 + - 76, - 32 AS col1
----
-3926
-32

query I rowsort
SELECT + 60 * + 0 * + 64 AS col0
----
0

query I rowsort
SELECT DISTINCT 30 * 99 AS col2
----
2970

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT ALL - COUNT( * ) * - + 53 + + COUNT( * ) + + + 2 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL - COUNT ( * ) * - + 53 + + COUNT ( * ) + + + 2 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT + SUM( - 90 ) - + - 58 col0
----
-32

skipif mysql # not compatible
query I rowsort label-7703
SELECT + SUM ( - 90 ) - + - 58 col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT DISTINCT + NULLIF ( + - 91, - - 49 * + 45 - + - 7 - + 40 - + + MAX( 63 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-7704
SELECT DISTINCT + NULLIF ( + - 91, - - 49 * + 45 - + - 7 - + 40 - + + MAX ( 63 ) )
----
-91

query I rowsort
SELECT DISTINCT 6 * - 23 - - - 52 AS col1
----
-190

query I rowsort
SELECT ALL - 23 * - - 22 AS col0
----
-506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7707
SELECT ALL CASE WHEN COUNT( * ) NOT BETWEEN + + 92 * 64 AND + - CAST( NULL AS SIGNED ) * + 9 - 94 * + AVG ( + 21 ) - ( CAST( NULL AS SIGNED ) ) THEN NULL WHEN NULL NOT BETWEEN + 3 AND NULL THEN NULL ELSE + + 70 / - + 87 + 67 + + 59 + + - 12 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL CASE WHEN COUNT ( * ) NOT BETWEEN + + 92 * 64 AND + - CAST ( NULL AS INTEGER ) * + 9 - 94 * + AVG ( + 21 ) - ( CAST ( NULL AS INTEGER ) ) THEN NULL WHEN NULL NOT BETWEEN + 3 AND NULL THEN NULL ELSE + + 70 / - + 87 + 67 + + 59 + + - 12 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT + 91 + + - COALESCE ( 2, - COUNT( * ) )
----
89

skipif mysql # not compatible
query I rowsort label-7708
SELECT + 91 + + - COALESCE ( 2, - COUNT ( * ) )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7709
SELECT ALL COUNT( DISTINCT + 89 ) - - + ( + COUNT( * ) ) + CAST( NULL AS SIGNED ) - + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL COUNT ( DISTINCT + 89 ) - - + ( + COUNT ( * ) ) + CAST ( NULL AS INTEGER ) - + 35 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7710
SELECT DISTINCT 56 DIV CAST( 17 AS SIGNED ) col2
----
3

skipif mysql # not compatible
query I rowsort label-7710
SELECT DISTINCT 56 / CAST ( 17 AS INTEGER ) col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7711
SELECT ALL SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT - COUNT( - 68 ) - + 63
----
-64

skipif mysql # not compatible
query I rowsort label-7712
SELECT - COUNT ( - 68 ) - + 63
----
-64

query I rowsort
SELECT - 37 - - 33
----
-4

query I rowsort
SELECT - 25 * - + 53 AS col0
----
1325

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7715
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col2, + 37
----
NULL
37

skipif mysql # not compatible
query II rowsort label-7715
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col2, + 37
----
NULL
37

query I rowsort
SELECT DISTINCT ( + + 96 ) * 14 AS col1
----
1344

query I rowsort
SELECT DISTINCT ( + 95 )
----
95

query I rowsort
SELECT - 83 + 59
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-7719
SELECT DISTINCT 63 DIV 37 + + 3 + + + 43 + - 10 * 30
----
-253

skipif mysql # not compatible
query I rowsort label-7719
SELECT DISTINCT 63 / 37 + + 3 + + + 43 + - 10 * 30
----
-253

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT ALL - + ( - 86 ) / + + 38 + - COUNT( DISTINCT - 89 ) - CASE - + MIN( ALL + + 16 ) WHEN - 79 * + COALESCE ( 41, + + 45 ) THEN + COUNT( * ) * COUNT( * ) - - COUNT( - 23 ) / + ( - COUNT( * ) ) WHEN + - ( - 75 ) + + CASE 92 + + AVG ( ALL + ( 4 ) ) WHEN + 81 THEN 91 * + 1 - - 58 * 18 ELSE NULL END THEN NULL ELSE NULL END - + 86 * - 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL - + ( - 86 ) / + + 38 + - COUNT ( DISTINCT - 89 ) - CASE - + MIN ( ALL + + 16 ) WHEN - 79 * + COALESCE ( 41, + + 45 ) THEN + COUNT ( * ) * COUNT ( * ) - - COUNT ( - 23 ) / + ( - COUNT ( * ) ) WHEN + - ( - 75 ) + + CASE 92 + + AVG ( ALL + ( 4 ) ) WHEN + 81 THEN 91 * + 1 - - 58 * 18 ELSE NULL END THEN NULL ELSE NULL END - + 86 * - 59 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7721
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / - + 50 * + - ( - 67 ) + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / - + 50 * + - ( - 67 ) + + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT - - SUM( ALL - ( - - 23 ) ) + - - MIN( - 17 ) - + 59 * + 7
----
-453

skipif mysql # not compatible
query I rowsort label-7722
SELECT - - SUM ( ALL - ( - - 23 ) ) + - - MIN ( - 17 ) - + 59 * + 7
----
-453

onlyif mysql # aggregate syntax: 
query II rowsort label-7723
SELECT ALL + + MAX( - 77 ) AS col2, - COUNT( * )
----
-77
-1

skipif mysql # not compatible
query II rowsort label-7723
SELECT ALL + + MAX ( - 77 ) AS col2, - COUNT ( * )
----
-77
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7724
SELECT - + 17 + + - 63 * + + CAST( - ( - 33 ) AS SIGNED ) AS col0
----
-2096

skipif mysql # not compatible
query I rowsort label-7724
SELECT - + 17 + + - 63 * + + CAST ( - ( - 33 ) AS INTEGER ) AS col0
----
-2096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7725
SELECT ALL - 90 DIV 51 * 26 + 98 - + ( - + CAST( ( - ( - + CAST( - 32 AS SIGNED ) ) ) AS SIGNED ) ) DIV + COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL - 90 / 51 * 26 + 98 - + ( - + CAST ( ( - ( - + CAST ( - 32 AS INTEGER ) ) ) AS INTEGER ) ) / + COUNT ( * ) AS col1
----
40

query I rowsort
SELECT ALL - + 21 * + 74
----
-1554

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT DISTINCT + MIN( - 5 ) * + 15 + + 43 * + 39 AS col0
----
1602

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT + MIN ( - 5 ) * + 15 + + 43 * + 39 AS col0
----
1602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7728
SELECT 32 DIV - 46 + 19 + CAST( - 97 AS SIGNED ) * - - MIN( DISTINCT + 52 ) + - 98 + 82 * - 20 AS col0
----
-6763

skipif mysql # not compatible
query I rowsort label-7728
SELECT 32 / - 46 + 19 + CAST ( - 97 AS INTEGER ) * - - MIN ( DISTINCT + 52 ) + - 98 + 82 * - 20 AS col0
----
-6763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7729
SELECT + - COALESCE ( + 63, - 65 + - 59 * + CAST( + CAST( + 60 AS SIGNED ) AS SIGNED ) + + + 93 - CAST( 68 AS SIGNED ) * - - 12, - 45 + + 14 * - 23 ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-7729
SELECT + - COALESCE ( + 63, - 65 + - 59 * + CAST ( + CAST ( + 60 AS INTEGER ) AS INTEGER ) + + + 93 - CAST ( 68 AS INTEGER ) * - - 12, - 45 + + 14 * - 23 ) col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT ALL + - SUM( 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-7730
SELECT ALL + - SUM ( 89 ) AS col1
----
-89

query I rowsort
SELECT - 22 + COALESCE ( - 26, - - 3 + + 11 )
----
-48

query I rowsort
SELECT - CASE + 31 WHEN - + 74 THEN + 48 + - 56 END * - 12 - 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT 82 * NULLIF ( - CASE - 75 WHEN - - 21 THEN - 14 / + - ( + + 11 ) + 70 END, - - 69 ) + COUNT( * ) + COUNT( * ) * - + 77 * COUNT( * ) / - - ( 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7733
SELECT 82 * NULLIF ( - CASE - 75 WHEN - - 21 THEN - 14 / + - ( + + 11 ) + 70 END, - - 69 ) + COUNT ( * ) + COUNT ( * ) * - + 77 * COUNT ( * ) / - - ( 16 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT + COUNT( * ) + - - 33
----
34

skipif mysql # not compatible
query I rowsort label-7734
SELECT + COUNT ( * ) + - - 33
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7735
SELECT + CASE - 86 WHEN - COUNT( * ) * - + COUNT( * ) - 21 THEN NULL WHEN + 85 THEN NULL WHEN + 91 * CAST( NULL AS SIGNED ) - + + CAST( - 55 AS DECIMAL ) THEN 81 ELSE - COUNT( 26 ) END
----
-1

skipif mysql # not compatible
query I rowsort label-7735
SELECT + CASE - 86 WHEN - COUNT ( * ) * - + COUNT ( * ) - 21 THEN NULL WHEN + 85 THEN NULL WHEN + 91 * CAST ( NULL AS INTEGER ) - + + CAST ( - 55 AS REAL ) THEN 81 ELSE - COUNT ( 26 ) END
----
-1

query I rowsort
SELECT DISTINCT - + 14 col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-7737
SELECT DISTINCT - 80 * - - 88 AS col2, NULLIF ( + 22, + ( + 36 ) + + - 85 ) + 74 * + ( COUNT( * ) ) * + 24 AS col2
----
-7040
1798

skipif mysql # not compatible
query II rowsort label-7737
SELECT DISTINCT - 80 * - - 88 AS col2, NULLIF ( + 22, + ( + 36 ) + + - 85 ) + 74 * + ( COUNT ( * ) ) * + 24 AS col2
----
-7040
1798

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7738
SELECT ALL - COUNT( * ) - - - 77 + - + CASE COUNT( * ) WHEN 33 THEN 56 WHEN + 25 THEN NULL WHEN ( 38 ) THEN NULL ELSE - 94 * - 63 - + ( - + 45 ) DIV + 96 END AS col0, + 68 AS col2
----
-6000
68

skipif mysql # not compatible
query II rowsort label-7738
SELECT ALL - COUNT ( * ) - - - 77 + - + CASE COUNT ( * ) WHEN 33 THEN 56 WHEN + 25 THEN NULL WHEN ( 38 ) THEN NULL ELSE - 94 * - 63 - + ( - + 45 ) / + 96 END AS col0, + 68 AS col2
----
-6000
68

query I rowsort
SELECT 6 * 7 col1
----
42

query I rowsort
SELECT DISTINCT 15 * - + 72 AS col0
----
-1080

query I rowsort
SELECT 34 * COALESCE ( + + 98, - 29 )
----
3332

query I rowsort
SELECT 11 * + - 23 AS col1
----
-253

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT 24 * - MAX( DISTINCT 45 ) AS col1
----
-1080

skipif mysql # not compatible
query I rowsort label-7743
SELECT 24 * - MAX ( DISTINCT 45 ) AS col1
----
-1080

query I rowsort
SELECT ALL 14 * 56 col1
----
784

query II rowsort
SELECT DISTINCT 80 AS col0, 67 * + 66 * - 88
----
80
-389136

onlyif mysql # DIV for integer division: 
query I rowsort label-7746
SELECT ALL 37 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL 37 / + 66
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7747
SELECT CAST( NULL AS SIGNED ) + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT CAST ( NULL AS INTEGER ) + - 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7748
SELECT ( NULLIF ( + 6, + + CAST( + COUNT( * ) AS SIGNED ) ) ) - + 11
----
-5

skipif mysql # not compatible
query I rowsort label-7748
SELECT ( NULLIF ( + 6, + + CAST ( + COUNT ( * ) AS INTEGER ) ) ) - + 11
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7749
SELECT CAST( NULL AS DECIMAL ) * + 16 * + - 67 / - + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7749
SELECT CAST ( NULL AS REAL ) * + 16 * + - 67 / - + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT COUNT( * ) - COUNT( * ) - 90
----
-90

skipif mysql # not compatible
query I rowsort label-7750
SELECT COUNT ( * ) - COUNT ( * ) - 90
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7751
SELECT 81 + + + 60 * + 36 + - 13 * CASE - - COUNT( * ) WHEN - CAST( - 62 AS SIGNED ) THEN NULL WHEN 52 THEN + - 70 ELSE + COUNT( * ) END
----
2228

skipif mysql # not compatible
query I rowsort label-7751
SELECT 81 + + + 60 * + 36 + - 13 * CASE - - COUNT ( * ) WHEN - CAST ( - 62 AS INTEGER ) THEN NULL WHEN 52 THEN + - 70 ELSE + COUNT ( * ) END
----
2228

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT DISTINCT + 57 + - - 1 + - 20 * + 39 + + - COUNT( * ) + - - COUNT( * ) * - 63
----
-786

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT + 57 + - - 1 + - 20 * + 39 + + - COUNT ( * ) + - - COUNT ( * ) * - 63
----
-786

query I rowsort
SELECT ALL - 3 * - 90 AS col1
----
270

query I rowsort
SELECT ALL 42 + - + 26
----
16

query I rowsort
SELECT ALL + 27 + - + 74
----
-47

query I rowsort
SELECT DISTINCT ( - 91 ) + - - 89 + - 16 + + + NULLIF ( - 95, + ( 36 ) + + 80 / - 30 + + 67 ) AS col0
----
-113

query I rowsort
SELECT ALL + 58 * - 63 + + 86 * + 7 * 24 AS col2
----
10794

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7758
SELECT + 11 AS col1, - 77 DIV 22 + - - COUNT( * ) - + 83 + 37 - + 59 * - 44
----
11
2548

skipif mysql # not compatible
query II rowsort label-7758
SELECT + 11 AS col1, - 77 / 22 + - - COUNT ( * ) - + 83 + 37 - + 59 * - 44
----
11
2548

query I rowsort
SELECT ALL + 83 + + 69
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT + MAX( DISTINCT + 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-7760
SELECT + MAX ( DISTINCT + 30 ) AS col2
----
30

query II rowsort
SELECT ALL - - 37 AS col1, + 28 * + - 90 * 9
----
37
-22680

query II rowsort
SELECT + - 72, 60 * + - 29 * - 39 AS col1
----
-72
67860

query I rowsort
SELECT + 76 + - 68 * + 82 + - NULLIF ( - - 6, + 74 ) AS col0
----
-5506

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT DISTINCT - + COUNT( * ) + + NULLIF ( + 63, - CASE + - 89 WHEN 56 THEN NULL ELSE - 37 + + 18 END * + - COALESCE ( - COUNT( * ), - 87, - 95 ) + + 56 ) + COUNT( DISTINCT 28 ) - - 43
----
106

skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT - + COUNT ( * ) + + NULLIF ( + 63, - CASE + - 89 WHEN 56 THEN NULL ELSE - 37 + + 18 END * + - COALESCE ( - COUNT ( * ), - 87, - 95 ) + + 56 ) + COUNT ( DISTINCT 28 ) - - 43
----
106

query I rowsort
SELECT ALL + 0 - + 30 + + 1
----
-29

query I rowsort
SELECT ALL - 42 * - 60 + - + 7 AS col2
----
2513

query I rowsort
SELECT 64 * ( + 69 )
----
4416

onlyif mysql # DIV for integer division: 
query I rowsort label-7768
SELECT ALL - 31 DIV + - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL - 31 / + - 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT DISTINCT + - 14 - 30 + ( COUNT( + + 59 ) ) * 44 + - + 98 * + 87 + + + 51
----
-8475

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT + - 14 - 30 + ( COUNT ( + + 59 ) ) * 44 + - + 98 * + 87 + + + 51
----
-8475

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT + - NULLIF ( - - 56, + COUNT( * ) ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-7770
SELECT + - NULLIF ( - - 56, + COUNT ( * ) ) AS col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7771
SELECT ALL + CAST( - 81 AS SIGNED ) * 21 - - ( - CASE + 21 WHEN COUNT( * ) THEN NULL WHEN - 34 * - ( + - 84 ) * - + 25 + + CAST( NULL AS SIGNED ) * + - 30 THEN 48 ELSE NULL END ) - 85 * + 44 * 77 * + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL + CAST ( - 81 AS INTEGER ) * 21 - - ( - CASE + 21 WHEN COUNT ( * ) THEN NULL WHEN - 34 * - ( + - 84 ) * - + 25 + + CAST ( NULL AS INTEGER ) * + - 30 THEN 48 ELSE NULL END ) - 85 * + 44 * 77 * + - 13
----
NULL

query I rowsort
SELECT ALL + 39 - - + 54
----
93

query I rowsort
SELECT ALL - 81 * - 69
----
5589

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7774
SELECT DISTINCT - + NULLIF ( + 57, + - CAST( NULL AS SIGNED ) * + + 39 / + 76 )
----
-57

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT - + NULLIF ( + 57, + - CAST ( NULL AS INTEGER ) * + + 39 / + 76 )
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7775
SELECT - ( - + 97 ) - + - 30 DIV MIN( ALL 15 ) + - MIN( DISTINCT + - 57 ) AS col1
----
156

skipif mysql # not compatible
query I rowsort label-7775
SELECT - ( - + 97 ) - + - 30 / MIN ( ALL 15 ) + - MIN ( DISTINCT + - 57 ) AS col1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT DISTINCT + COUNT( * ) * - 28 * + COUNT( - 70 )
----
-28

skipif mysql # not compatible
query I rowsort label-7776
SELECT DISTINCT + COUNT ( * ) * - 28 * + COUNT ( - 70 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT ALL - COUNT( DISTINCT - ( + 77 ) ) * - - 53
----
-53

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL - COUNT ( DISTINCT - ( + 77 ) ) * - - 53
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT - SUM( DISTINCT 50 ) * ( + + 10 ) AS col2
----
-500

skipif mysql # not compatible
query I rowsort label-7778
SELECT - SUM ( DISTINCT 50 ) * ( + + 10 ) AS col2
----
-500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7779
SELECT COUNT( * ) DIV 64 * + 40 col1
----
0

skipif mysql # not compatible
query I rowsort label-7779
SELECT COUNT ( * ) / 64 * + 40 col1
----
0

query I rowsort
SELECT ALL - CASE + 17 WHEN - 22 THEN 22 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT - COUNT( * ) * + + ( 81 ) + - 23 AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-7781
SELECT - COUNT ( * ) * + + ( 81 ) + - 23 AS col1
----
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-7782
SELECT 40 AS col1, MIN( ( 81 ) ) AS col1
----
40
81

skipif mysql # not compatible
query II rowsort label-7782
SELECT 40 AS col1, MIN ( ( 81 ) ) AS col1
----
40
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT COUNT( * ) - - MAX( DISTINCT 67 ) + - 28
----
40

skipif mysql # not compatible
query I rowsort label-7783
SELECT COUNT ( * ) - - MAX ( DISTINCT 67 ) + - 28
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT ALL 96 + + - SUM( - + 14 )
----
110

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL 96 + + - SUM ( - + 14 )
----
110

query I rowsort
SELECT 39 - + 19
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-7786
SELECT ALL COUNT( * ) AS col0, - 41 - - - 32
----
1
-73

skipif mysql # not compatible
query II rowsort label-7786
SELECT ALL COUNT ( * ) AS col0, - 41 - - - 32
----
1
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT DISTINCT SUM( DISTINCT + 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT SUM ( DISTINCT + 97 ) AS col2
----
97

query I rowsort
SELECT - 4 * 4 + - + 3
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7789
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 71 * + 65 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 71 * + 65 col0
----
NULL

query II rowsort
SELECT 75, 23 AS col2
----
75
23

query I rowsort
SELECT 36 * + + 58
----
2088

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT NULLIF ( 20, - 86 * 19 * COUNT( * ) * - 0 * NULLIF ( 25, - 0 ) + - + 44 ) + + - 2 * - + 40 * - 41 AS col0
----
-3260

skipif mysql # not compatible
query I rowsort label-7792
SELECT NULLIF ( 20, - 86 * 19 * COUNT ( * ) * - 0 * NULLIF ( 25, - 0 ) + - + 44 ) + + - 2 * - + 40 * - 41 AS col0
----
-3260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7793
SELECT CAST( 33 AS SIGNED ) - 3 + - 89 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-7793
SELECT CAST ( 33 AS INTEGER ) - 3 + - 89 AS col0
----
-59

query II rowsort
SELECT - 96, - 93 - - 99 AS col0
----
-96
6

onlyif mysql # DIV for integer division: 
query II rowsort label-7795
SELECT 89 col1, 24 DIV - 28
----
89
0

skipif mysql # not compatible
query II rowsort label-7795
SELECT 89 col1, 24 / - 28
----
89
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT ALL 30 + + COUNT( * ) * - + 15 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL 30 + + COUNT ( * ) * - + 15 AS col0
----
15

query II rowsort
SELECT 71 * 46 col0, + 72
----
3266
72

query I rowsort
SELECT DISTINCT - 39 + - + 25
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT 76 + - - MIN( DISTINCT - - 54 ) AS col1
----
130

skipif mysql # not compatible
query I rowsort label-7799
SELECT 76 + - - MIN ( DISTINCT - - 54 ) AS col1
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7800
SELECT + 6 AS col1, + ( ( - CAST( - 97 AS SIGNED ) ) ) * SUM( - - 65 )
----
6
6305

skipif mysql # not compatible
query II rowsort label-7800
SELECT + 6 AS col1, + ( ( - CAST ( - 97 AS INTEGER ) ) ) * SUM ( - - 65 )
----
6
6305

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT + COUNT( + + 57 ) + - + NULLIF ( + 4, + SUM( ALL - + 90 ) + COALESCE ( - 66, + 11 ) ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7801
SELECT + COUNT ( + + 57 ) + - + NULLIF ( + 4, + SUM ( ALL - + 90 ) + COALESCE ( - 66, + 11 ) ) AS col2
----
-3

query I rowsort
SELECT 10 * - 22 + - 16
----
-236

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT - MAX( 47 ) * - - 18 AS col2
----
-846

skipif mysql # not compatible
query I rowsort label-7803
SELECT - MAX ( 47 ) * - - 18 AS col2
----
-846

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7804
SELECT + 60 DIV - 53 * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7804
SELECT + 60 / - 53 * + COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7805
SELECT ALL - 46 * + SUM( ALL - + 6 ) + - 57 + - CAST( NULL AS SIGNED ) + - + 73 * + 15 * - COALESCE ( + 48, + 84 * - - 30 ) / - + SUM( ALL ( + ( - 61 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL - 46 * + SUM ( ALL - + 6 ) + - 57 + - CAST ( NULL AS INTEGER ) + - + 73 * + 15 * - COALESCE ( + 48, + 84 * - - 30 ) / - + SUM ( ALL ( + ( - 61 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT ALL + COALESCE ( 81, - - 18 * + MAX( DISTINCT + 5 ) * + + COUNT( * ) + + + 18 + - 18 )
----
81

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL + COALESCE ( 81, - - 18 * + MAX ( DISTINCT + 5 ) * + + COUNT ( * ) + + + 18 + - 18 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT + ( + COALESCE ( - - COUNT( * ), + 43 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7807
SELECT + ( + COALESCE ( - - COUNT ( * ), + 43 ) ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7808
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7809
SELECT + - 91 * + + COUNT( * ) AS col1, 38 AS col1
----
-91
38

skipif mysql # not compatible
query II rowsort label-7809
SELECT + - 91 * + + COUNT ( * ) AS col1, 38 AS col1
----
-91
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7810
SELECT ALL + 66 AS col2, + 15 * 39 + - CASE ( 29 ) WHEN - 37 THEN NULL ELSE + 19 * 20 + + - 35 + - SUM( ALL 78 ) * - 40 END + 25 + - CAST( NULL AS DECIMAL ) * + 0 * - MIN( - + 57 ) * - 29
----
66
NULL

skipif mysql # not compatible
query II rowsort label-7810
SELECT ALL + 66 AS col2, + 15 * 39 + - CASE ( 29 ) WHEN - 37 THEN NULL ELSE + 19 * 20 + + - 35 + - SUM ( ALL 78 ) * - 40 END + 25 + - CAST ( NULL AS REAL ) * + 0 * - MIN ( - + 57 ) * - 29
----
66
NULL

query I rowsort
SELECT + 40 + 38 AS col2
----
78

query I rowsort
SELECT DISTINCT - 52 * + + COALESCE ( 5, - 70 * 94 )
----
-260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7813
SELECT + CAST( NULL AS SIGNED ) * + - COUNT( * ) + - - 65 * AVG ( - - 6 ) * + 16 * 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7813
SELECT + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + - - 65 * AVG ( - - 6 ) * + 16 * 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7814
SELECT + MAX( DISTINCT + 68 ) * 89 DIV 49 + + - 80 * - 93 + - + 36 AS col2
----
7527

skipif mysql # not compatible
query I rowsort label-7814
SELECT + MAX ( DISTINCT + 68 ) * 89 / 49 + + - 80 * - 93 + - + 36 AS col2
----
7527

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT - 67 * SUM( ALL + 91 ) AS col2
----
-6097

skipif mysql # not compatible
query I rowsort label-7815
SELECT - 67 * SUM ( ALL + 91 ) AS col2
----
-6097

onlyif mysql # aggregate syntax: 
query II rowsort label-7816
SELECT ALL + NULLIF ( 54, + MIN( DISTINCT + 25 ) ), + 8 * - 49 AS col0
----
54
-392

skipif mysql # not compatible
query II rowsort label-7816
SELECT ALL + NULLIF ( 54, + MIN ( DISTINCT + 25 ) ), + 8 * - 49 AS col0
----
54
-392

query I rowsort
SELECT - 32 * - ( - - 46 ) * + 7 + - + 23 - ( 43 )
----
10238

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT + - 39 + + COALESCE ( + - 43, + + COUNT( * ) ) - - COUNT( * ) + - 5 + + 38 * + 44 * - 4 * - COUNT( * ) - - 51 * - 83
----
2369

skipif mysql # not compatible
query I rowsort label-7818
SELECT + - 39 + + COALESCE ( + - 43, + + COUNT ( * ) ) - - COUNT ( * ) + - 5 + + 38 * + 44 * - 4 * - COUNT ( * ) - - 51 * - 83
----
2369

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7819
SELECT + COUNT( * ) * COALESCE ( - 50, NULLIF ( + - 54, 16 * 98 ) ) DIV 82 + - 55 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-7819
SELECT + COUNT ( * ) * COALESCE ( - 50, NULLIF ( + - 54, 16 * 98 ) ) / 82 + - 55 AS col2
----
-55

query I rowsort
SELECT 1 * + 16 * - - 14 + - 32 + - - 17 + + - 29 * - - 72
----
-1879

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7821
SELECT ALL CAST( NULL AS SIGNED ) * 80 * - 53 + COUNT( * ) * 92 + + MIN( ALL + 41 ) + - 89 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL CAST ( NULL AS INTEGER ) * 80 * - 53 + COUNT ( * ) * 92 + + MIN ( ALL + 41 ) + - 89 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7822
SELECT - COUNT( * ) + + 47 AS col1, 29 AS col0
----
46
29

skipif mysql # not compatible
query II rowsort label-7822
SELECT - COUNT ( * ) + + 47 AS col1, 29 AS col0
----
46
29

onlyif mysql # aggregate syntax: 
query II rowsort label-7823
SELECT ALL + ( - COUNT( * ) ) AS col1, + COUNT( * ) - - 80 AS col1
----
-1
81

skipif mysql # not compatible
query II rowsort label-7823
SELECT ALL + ( - COUNT ( * ) ) AS col1, + COUNT ( * ) - - 80 AS col1
----
-1
81

query I rowsort
SELECT DISTINCT - 29 + 2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7825
SELECT ALL + ( 93 ) + CAST( 51 AS SIGNED ) * - 98 - + 89 + - 82
----
-5076

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL + ( 93 ) + CAST ( 51 AS INTEGER ) * - 98 - + 89 + - 82
----
-5076

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT - SUM( ALL - 14 )
----
14

skipif mysql # not compatible
query I rowsort label-7826
SELECT - SUM ( ALL - 14 )
----
14

query II rowsort
SELECT - 43 * + + 26, - 70 AS col1
----
-1118
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT COUNT( * ) * - 96 * + 65 * - 59 + 2 + 53
----
368215

skipif mysql # not compatible
query I rowsort label-7828
SELECT COUNT ( * ) * - 96 * + 65 * - 59 + 2 + 53
----
368215

onlyif mysql # aggregate syntax: 
query II rowsort label-7829
SELECT DISTINCT ( + + 23 ) AS col2, - 23 * 76 - + + MIN( - 49 ) + + 90
----
23
-1609

skipif mysql # not compatible
query II rowsort label-7829
SELECT DISTINCT ( + + 23 ) AS col2, - 23 * 76 - + + MIN ( - 49 ) + + 90
----
23
-1609

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT ALL NULLIF ( + 95, - - MAX( 21 ) ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL NULLIF ( + 95, - - MAX ( 21 ) ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT ALL 83 + + COUNT( + + 35 ) col1
----
84

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL 83 + + COUNT ( + + 35 ) col1
----
84

query I rowsort
SELECT DISTINCT ( + 17 ) AS col0
----
17

query I rowsort
SELECT DISTINCT ( 92 ) AS col1
----
92

query I rowsort
SELECT - + 36 * - 33 AS col0
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT ALL + - 76 * + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL + - 76 * + COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT - + COALESCE ( + 55, - COUNT( * ), + 21 + - COUNT( * ), - 75 )
----
-55

skipif mysql # not compatible
query I rowsort label-7836
SELECT - + COALESCE ( + 55, - COUNT ( * ), + 21 + - COUNT ( * ), - 75 )
----
-55

query I rowsort
SELECT - + 86 - - 43 - 48 * 22 AS col1
----
-1099

query I rowsort
SELECT ALL + 75 * 5 AS col2
----
375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7839
SELECT ALL + ( 8 ) * - COUNT( * ) DIV + 38 col1
----
0

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL + ( 8 ) * - COUNT ( * ) / + 38 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7840
SELECT DISTINCT - MAX( 78 ) AS col0, - 9 AS col1
----
-78
-9

skipif mysql # not compatible
query II rowsort label-7840
SELECT DISTINCT - MAX ( 78 ) AS col0, - 9 AS col1
----
-78
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7841
SELECT ALL + SUM( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL + SUM ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + - NULLIF ( ( - 9 ), 42 )
----
9

query I rowsort
SELECT ALL + + ( + 93 ) AS col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7844
SELECT + + NULLIF ( + - 93, 53 + + 93 ) * 56 DIV COALESCE ( + 69, - 2 )
----
-75

skipif mysql # not compatible
query I rowsort label-7844
SELECT + + NULLIF ( + - 93, 53 + + 93 ) * 56 / COALESCE ( + 69, - 2 )
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7845
SELECT + CAST( NULL AS DECIMAL ) / + 22 + + + 17 + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7845
SELECT + CAST ( NULL AS REAL ) / + 22 + + + 17 + + 70
----
NULL

query I rowsort
SELECT + + 79 * - 71 AS col0
----
-5609

query I rowsort
SELECT ALL - 99 * + 45 + 78 * - 78 AS col1
----
-10539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7848
SELECT DISTINCT + - COUNT( 28 ) DIV 39 DIV 79 * + 28 + - 68 + + 26 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT + - COUNT ( 28 ) / 39 / 79 * + 28 + - 68 + + 26 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT + - MAX( ALL + 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-7849
SELECT + - MAX ( ALL + 51 )
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7850
SELECT ALL - 26 DIV + + 22 + - ( + 22 )
----
-23

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL - 26 / + + 22 + - ( + 22 )
----
-23

query II rowsort
SELECT DISTINCT + 98 AS col1, 55
----
98
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7852
SELECT + 73 * - 2 * - 94 AS col2, + CAST( NULL AS SIGNED )
----
13724
NULL

skipif mysql # not compatible
query II rowsort label-7852
SELECT + 73 * - 2 * - 94 AS col2, + CAST ( NULL AS INTEGER )
----
13724
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7853
SELECT + 72 AS col2, 25 * + + COUNT( * ) AS col1
----
72
25

skipif mysql # not compatible
query II rowsort label-7853
SELECT + 72 AS col2, 25 * + + COUNT ( * ) AS col1
----
72
25

query I rowsort
SELECT ( + 71 ) AS col2
----
71

query I rowsort
SELECT + 67 + 31 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT NULLIF ( + + NULLIF ( - 99, - 75 * - 96 * - 79 - 0 ), - COUNT( * ) ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-7856
SELECT NULLIF ( + + NULLIF ( - 99, - 75 * - 96 * - 79 - 0 ), - COUNT ( * ) ) AS col2
----
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7857
SELECT - 96 * + 35 * ( - COUNT( DISTINCT + - 58 ) ) + + CASE + 41 WHEN 75 THEN + 25 * + 5 + + + 73 * + - 16 / - - COUNT( * ) + + + CAST( NULL AS DECIMAL ) WHEN - 67 + - + 50 THEN NULL END + - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7857
SELECT - 96 * + 35 * ( - COUNT ( DISTINCT + - 58 ) ) + + CASE + 41 WHEN 75 THEN + 25 * + 5 + + + 73 * + - 16 / - - COUNT ( * ) + + + CAST ( NULL AS REAL ) WHEN - 67 + - + 50 THEN NULL END + - 17 AS col0
----
NULL

query I rowsort
SELECT - ( - 60 ) * - ( 57 ) * - ( 62 ) * - 79
----
-16751160

query I rowsort
SELECT ALL + COALESCE ( - 49, - 14 * - 68 )
----
-49

query I rowsort
SELECT + 19 + + 61 col1
----
80

query I rowsort
SELECT ALL - 22 * - - 19 + + 90 AS col0
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT COALESCE ( + 48, - + COUNT( * ) ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-7862
SELECT COALESCE ( + 48, - + COUNT ( * ) ) AS col0
----
48

query I rowsort
SELECT ALL 33 * + 4 * 20 + + 87
----
2727

onlyif mysql # DIV for integer division: 
query I rowsort label-7864
SELECT ALL 19 DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL 19 / + 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT DISTINCT + 53 * + 58 * + - COUNT( ALL 33 ) AS col2
----
-3074

skipif mysql # not compatible
query I rowsort label-7865
SELECT DISTINCT + 53 * + 58 * + - COUNT ( ALL 33 ) AS col2
----
-3074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7866
SELECT + 77 * + AVG ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7866
SELECT + 77 * + AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 83 * + 36
----
-2988

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT - MIN( DISTINCT - 36 ) + + ( 90 ) - ( 99 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-7868
SELECT - MIN ( DISTINCT - 36 ) + + ( 90 ) - ( 99 ) AS col0
----
27

query I rowsort
SELECT - - ( - - 63 ) + - 73
----
-10

query I rowsort
SELECT 37 - - 14 AS col2
----
51

query I rowsort
SELECT - 73 * + + 13 * - 44
----
41756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7872
SELECT DISTINCT - CAST( COALESCE ( + - 49, + 85 ) AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT - CAST ( COALESCE ( + - 49, + 85 ) AS INTEGER )
----
49

onlyif mysql # DIV for integer division: 
query II rowsort label-7873
SELECT ALL 25 AS col1, 82 DIV + 30 AS col0
----
25
2

skipif mysql # not compatible
query II rowsort label-7873
SELECT ALL 25 AS col1, 82 / + 30 AS col0
----
25
2

query II rowsort
SELECT ALL + 72, - 69 AS col2
----
72
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT + COUNT( * ) * + - 1
----
-1

skipif mysql # not compatible
query I rowsort label-7875
SELECT + COUNT ( * ) * + - 1
----
-1

query II rowsort
SELECT ALL - 37 AS col1, 13
----
-37
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7877
SELECT 26 + - - 15 * + CAST( 0 AS SIGNED ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7877
SELECT 26 + - - 15 * + CAST ( 0 AS INTEGER ) AS col1
----
26

query I rowsort
SELECT 16 * + + 76
----
1216

query I rowsort
SELECT - 63 + + 71
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT 22 * + + 41 + - - COUNT( * ) - + 59 * - 90 AS col1
----
6213

skipif mysql # not compatible
query I rowsort label-7880
SELECT 22 * + + 41 + - - COUNT ( * ) - + 59 * - 90 AS col1
----
6213

query I rowsort
SELECT ALL - 11 + - 80 * + 54
----
-4331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7882
SELECT DISTINCT - + CASE - COUNT( * ) WHEN + 88 * - NULLIF ( + 15, - - COALESCE ( + 14, + - 48 * - - 30, 35, + COUNT( * ) + - 95 ) ) - + ( + CAST( NULL AS SIGNED ) ) THEN NULL WHEN 57 THEN + 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT - + CASE - COUNT ( * ) WHEN + 88 * - NULLIF ( + 15, - - COALESCE ( + 14, + - 48 * - - 30, 35, + COUNT ( * ) + - 95 ) ) - + ( + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 57 THEN + 19 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT ALL + COUNT( * ) + - - SUM( - 20 ) + - 2 * 57 AS col0
----
-133

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL + COUNT ( * ) + - - SUM ( - 20 ) + - 2 * 57 AS col0
----
-133

onlyif mysql # DIV for integer division: 
query I rowsort label-7884
SELECT ALL 85 + 60 - + + NULLIF ( 76, - + CASE 85 WHEN + 1 DIV - + 91 THEN + COALESCE ( + ( + 7 ), - 11 ) WHEN + + 54 * + 84 DIV - - 66 * - + 25 THEN - 98 ELSE + 21 END + - 86 DIV 3 ) DIV 98 DIV - 43 AS col1
----
145

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL 85 + 60 - + + NULLIF ( 76, - + CASE 85 WHEN + 1 / - + 91 THEN + COALESCE ( + ( + 7 ), - 11 ) WHEN + + 54 * + 84 / - - 66 * - + 25 THEN - 98 ELSE + 21 END + - 86 / 3 ) / 98 / - 43 AS col1
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT 38 * COUNT( * ) * COUNT( * ) + 17 + 21
----
76

skipif mysql # not compatible
query I rowsort label-7885
SELECT 38 * COUNT ( * ) * COUNT ( * ) + 17 + 21
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT + 92 * - SUM( ALL - + 61 ) + - 14 AS col1
----
5598

skipif mysql # not compatible
query I rowsort label-7886
SELECT + 92 * - SUM ( ALL - + 61 ) + - 14 AS col1
----
5598

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT COUNT( * ) + 59 * - - 36 + - 86 AS col2
----
2039

skipif mysql # not compatible
query I rowsort label-7887
SELECT COUNT ( * ) + 59 * - - 36 + - 86 AS col2
----
2039

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7888
SELECT + 30 * + + COUNT( ALL - 18 ) DIV - 92 * COUNT( * ) * + 76 * - + 27 + 5 + ( + 79 ) + + ( + - 67 ) * - 66
----
4506

skipif mysql # not compatible
query I rowsort label-7888
SELECT + 30 * + + COUNT ( ALL - 18 ) / - 92 * COUNT ( * ) * + 76 * - + 27 + 5 + ( + 79 ) + + ( + - 67 ) * - 66
----
4506

onlyif mysql # DIV for integer division: 
query I rowsort label-7889
SELECT ALL 37 DIV 19
----
1

skipif mysql # not compatible
query I rowsort label-7889
SELECT ALL 37 / 19
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7890
SELECT 39 DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-7890
SELECT 39 / 41
----
0

query I rowsort
SELECT DISTINCT 72 * + 15 * - 5 AS col0
----
-5400

query I rowsort
SELECT ALL 7 - 34 + - 81 + 87 AS col1
----
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-7893
SELECT 76 * + + 19 + + NULLIF ( - + 59, 74 + 63 ) DIV + 55 + + 90 - + 6 * + - 60 AS col0, COALESCE ( - + 10, + 98 ) AS col2
----
1893
-10

skipif mysql # not compatible
query II rowsort label-7893
SELECT 76 * + + 19 + + NULLIF ( - + 59, 74 + 63 ) / + 55 + + 90 - + 6 * + - 60 AS col0, COALESCE ( - + 10, + 98 ) AS col2
----
1893
-10

query I rowsort
SELECT ALL 78 * + 73 AS col2
----
5694

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7895
SELECT ALL - NULLIF ( - + CAST( NULL AS SIGNED ), 56 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL - NULLIF ( - + CAST ( NULL AS INTEGER ), 56 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7896
SELECT ALL - 58 DIV - 97 + - 35 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL - 58 / - 97 + - 35 AS col1
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7897
SELECT + 71 DIV - + 44
----
-1

skipif mysql # not compatible
query I rowsort label-7897
SELECT + 71 / - + 44
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT ALL COUNT( + 46 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL COUNT ( + 46 ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7899
SELECT DISTINCT - 25 * - + 80 - + COUNT( DISTINCT + + 41 ) - - CAST( - 84 AS SIGNED ) + 50 + + 94 + + + COUNT( * ) * - 22 AS col2
----
2037

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT - 25 * - + 80 - + COUNT ( DISTINCT + + 41 ) - - CAST ( - 84 AS INTEGER ) + 50 + + 94 + + + COUNT ( * ) * - 22 AS col2
----
2037

onlyif mysql # DIV for integer division: 
query I rowsort label-7900
SELECT DISTINCT - 14 DIV - - 97 * - - 57 DIV - 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT - 14 / - - 97 * - - 57 / - 8 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT MIN( - 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-7901
SELECT MIN ( - 13 ) AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7902
SELECT CASE + + 45 WHEN 22 * + CAST( + COUNT( * ) AS DECIMAL ) * + + 55 + - + 18 THEN + 37 * - 87 WHEN ( 15 ) THEN - 55 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7902
SELECT CASE + + 45 WHEN 22 * + CAST ( + COUNT ( * ) AS REAL ) * + + 55 + - + 18 THEN + 37 * - 87 WHEN ( 15 ) THEN - 55 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7903
SELECT DISTINCT - COUNT( + 5 ) * - + 38 * - COALESCE ( + CASE - - 70 WHEN + - ( + + 27 ) * - - 12 THEN + - 67 WHEN + ( 47 ) THEN NULL END, - CASE - + 98 WHEN + + 42 THEN + SUM( DISTINCT - ( - 57 ) ) - 53 END * - 72 - - 85 + 15 ) AS col1, 45 * + COUNT( * ) * 54
----
NULL
2430

skipif mysql # not compatible
query II rowsort label-7903
SELECT DISTINCT - COUNT ( + 5 ) * - + 38 * - COALESCE ( + CASE - - 70 WHEN + - ( + + 27 ) * - - 12 THEN + - 67 WHEN + ( 47 ) THEN NULL END, - CASE - + 98 WHEN + + 42 THEN + SUM ( DISTINCT - ( - 57 ) ) - 53 END * - 72 - - 85 + 15 ) AS col1, 45 * + COUNT ( * ) * 54
----
NULL
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT - - SUM( 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7904
SELECT - - SUM ( 5 ) AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7905
SELECT 41 DIV - CAST( - 62 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7905
SELECT 41 / - CAST ( - 62 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7906
SELECT + ( + NULLIF ( - 47, + 43 + - 85 * 15 ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT + ( + NULLIF ( - 47, + 43 + - 85 * 15 ) ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + 29 + + - 49 * - 44 AS col2
----
2185

query I rowsort
SELECT + 27 - + 25 AS col1
----
2

query II rowsort
SELECT ( - + 80 ) AS col2, + ( + - 8 )
----
-80
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7910
SELECT ALL - CAST( - SUM( ALL 24 ) AS SIGNED ) * 69 + - - 89, - 1 AS col0
----
1745
-1

skipif mysql # not compatible
query II rowsort label-7910
SELECT ALL - CAST ( - SUM ( ALL 24 ) AS INTEGER ) * 69 + - - 89, - 1 AS col0
----
1745
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7911
SELECT DISTINCT - CASE 46 WHEN - 10 * + MIN( ALL + - 55 ) THEN CASE - + 70 WHEN + + 85 * - + MIN( + 37 ) THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN - - 96 + 12 END + 25 + 87 WHEN 4 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT - CASE 46 WHEN - 10 * + MIN ( ALL + - 55 ) THEN CASE - + 70 WHEN + + 85 * - + MIN ( + 37 ) THEN NULL WHEN CAST ( NULL AS REAL ) THEN - - 96 + 12 END + 25 + 87 WHEN 4 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7912
SELECT 30 * - - 62 DIV + COUNT( * ) col2
----
1860

skipif mysql # not compatible
query I rowsort label-7912
SELECT 30 * - - 62 / + COUNT ( * ) col2
----
1860

query I rowsort
SELECT 65 * - 19
----
-1235

query I rowsort
SELECT DISTINCT - 70 * - - 63 AS col0
----
-4410

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT ALL 81 * COUNT( * ) * + - 94 - - - 92 + - 33
----
-7739

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL 81 * COUNT ( * ) * + - 94 - - - 92 + - 33
----
-7739

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7916
SELECT 55 - + CAST( + NULLIF ( + 78, CASE + 66 WHEN 72 THEN + 68 * + COUNT( * ) END ) AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-7916
SELECT 55 - + CAST ( + NULLIF ( + 78, CASE + 66 WHEN 72 THEN + 68 * + COUNT ( * ) END ) AS INTEGER )
----
-23

query I rowsort
SELECT ALL - ( + 37 ) AS col1
----
-37

query I rowsort
SELECT DISTINCT 56 * 22 - + 71 * + 58 - - 73 + 72 + 31 + + + ( - - 88 ) + + 80 + + 67 AS col2
----
-2475

query I rowsort
SELECT 68 * + 34 AS col1
----
2312

query II rowsort
SELECT ALL - 39 AS col1, + NULLIF ( 45, 4 )
----
-39
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7921
SELECT 45 * + 3 DIV + + COUNT( * )
----
135

skipif mysql # not compatible
query I rowsort label-7921
SELECT 45 * + 3 / + + COUNT ( * )
----
135

query I rowsort
SELECT 48 + - 98
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT COUNT( DISTINCT 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7923
SELECT COUNT ( DISTINCT 63 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT + COUNT( ALL - - 56 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7924
SELECT + COUNT ( ALL - - 56 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT MIN( ALL - 83 ) * + 43 AS col0
----
-3569

skipif mysql # not compatible
query I rowsort label-7925
SELECT MIN ( ALL - 83 ) * + 43 AS col0
----
-3569

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7926
SELECT MIN( - + 38 ) DIV + 21 - 84 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-7926
SELECT MIN ( - + 38 ) / + 21 - 84 AS col1
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-7927
SELECT ALL 65 DIV + 81 * ( + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL 65 / + 81 * ( + 80 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7928
SELECT + 49 * 78 DIV + 90 + - + 10 + COUNT( * ) * + + 59 DIV - COUNT( * ) + - 5 DIV 52 col0
----
-27

skipif mysql # not compatible
query I rowsort label-7928
SELECT + 49 * 78 / + 90 + - + 10 + COUNT ( * ) * + + 59 / - COUNT ( * ) + - 5 / 52 col0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-7929
SELECT DISTINCT + 27 DIV 2 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-7929
SELECT DISTINCT + 27 / 2 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7930
SELECT + COALESCE ( + COUNT( * ), 89 ) + - 42 - CAST( 97 AS SIGNED ) AS col1
----
-138

skipif mysql # not compatible
query I rowsort label-7930
SELECT + COALESCE ( + COUNT ( * ), 89 ) + - 42 - CAST ( 97 AS INTEGER ) AS col1
----
-138

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7931
SELECT ALL COUNT( * ) * + + 75 DIV + 71 AS col2, 45 * + + COUNT( * ) col1
----
1
45

skipif mysql # not compatible
query II rowsort label-7931
SELECT ALL COUNT ( * ) * + + 75 / + 71 AS col2, 45 * + + COUNT ( * ) col1
----
1
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7932
SELECT DISTINCT 90 * - 16 DIV - COUNT( * ) AS col2
----
1440

skipif mysql # not compatible
query I rowsort label-7932
SELECT DISTINCT 90 * - 16 / - COUNT ( * ) AS col2
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT ALL COUNT( * ) * + - 9 * - 24 * - 13 AS col2
----
-2808

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL COUNT ( * ) * + - 9 * - 24 * - 13 AS col2
----
-2808

query I rowsort
SELECT ALL - 38 + + - 29 - + 49 + - ( - 53 ) col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT + 82 + + + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-7935
SELECT + 82 + + + COUNT ( * )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7936
SELECT - COALESCE ( CAST( NULL AS SIGNED ), - COUNT( * ), + - 9 ) * - - 74 + - + COUNT( * ) * + 73 * SUM( DISTINCT + 28 ) + + 98 * + 77 + + 72 AS col1
----
5648

skipif mysql # not compatible
query I rowsort label-7936
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), - COUNT ( * ), + - 9 ) * - - 74 + - + COUNT ( * ) * + 73 * SUM ( DISTINCT + 28 ) + + 98 * + 77 + + 72 AS col1
----
5648

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT + COUNT( * ) + + MAX( - - 69 )
----
70

skipif mysql # not compatible
query I rowsort label-7937
SELECT + COUNT ( * ) + + MAX ( - - 69 )
----
70

query I rowsort
SELECT ALL - 36 + 62
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7939
SELECT MIN( + NULLIF ( 9, CAST( 60 AS SIGNED ) ) ) AS col1, 6 * - + 46
----
9
-276

skipif mysql # not compatible
query II rowsort label-7939
SELECT MIN ( + NULLIF ( 9, CAST ( 60 AS INTEGER ) ) ) AS col1, 6 * - + 46
----
9
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT ALL - COUNT( ALL - 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL - COUNT ( ALL - 14 )
----
-1

query II rowsort
SELECT 79 AS col1, 99 AS col2
----
79
99

query I rowsort
SELECT - + 91 - 42 AS col1
----
-133

query I rowsort
SELECT ALL + + 27 + - 20
----
7

query I rowsort
SELECT DISTINCT - + 65 * - 37 AS col1
----
2405

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT DISTINCT - COUNT( * ) + - 4 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT - COUNT ( * ) + - 4 AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7946
SELECT + - NULLIF ( - CAST( NULL AS SIGNED ), - 46 ) + - COUNT( * ) - - + ( 0 ) - + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7946
SELECT + - NULLIF ( - CAST ( NULL AS INTEGER ), - 46 ) + - COUNT ( * ) - - + ( 0 ) - + + 84
----
NULL

query I rowsort
SELECT ALL - 20 * + 2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-7948
SELECT - NULLIF ( - - 75, + ( + 64 ) ) DIV - 5 + + 82
----
97

skipif mysql # not compatible
query I rowsort label-7948
SELECT - NULLIF ( - - 75, + ( + 64 ) ) / - 5 + + 82
----
97

query II rowsort
SELECT DISTINCT 77 + 46 + 44, 42 * + 50 AS col1
----
167
2100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7950
SELECT ALL - 38 AS col2, + 22 * - + 44 - + 65 - - - COUNT( DISTINCT - 0 ) + - + ( - 97 ) AS col1, 51 * - + CAST( + 17 AS SIGNED ) + + 34 AS col0
----
-38
-937
-833

skipif mysql # not compatible
query III rowsort label-7950
SELECT ALL - 38 AS col2, + 22 * - + 44 - + 65 - - - COUNT ( DISTINCT - 0 ) + - + ( - 97 ) AS col1, 51 * - + CAST ( + 17 AS INTEGER ) + + 34 AS col0
----
-38
-937
-833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7951
SELECT + 68 + + 48 + - CAST( NULLIF ( + 95, 22 ) AS SIGNED ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-7951
SELECT + 68 + + 48 + - CAST ( NULLIF ( + 95, 22 ) AS INTEGER ) AS col1
----
21

query I rowsort
SELECT - ( + - 7 )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-7953
SELECT ALL COUNT( * ), + NULLIF ( + 47, 19 * - ( + + 17 ) ) AS col2
----
1
47

skipif mysql # not compatible
query II rowsort label-7953
SELECT ALL COUNT ( * ), + NULLIF ( + 47, 19 * - ( + + 17 ) ) AS col2
----
1
47

query I rowsort
SELECT + 44 + + - 5 * 42 AS col0
----
-166

query II rowsort
SELECT 30, 18 * - 53 col0
----
30
-954

query I rowsort
SELECT DISTINCT - 75 - - - 57
----
-132

query I rowsort
SELECT DISTINCT 67 * 7 * - 48 * - 14
----
315168

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7958
SELECT ALL + 12 DIV COUNT( - + 80 ) * + + 69, 78 AS col1
----
828
78

skipif mysql # not compatible
query II rowsort label-7958
SELECT ALL + 12 / COUNT ( - + 80 ) * + + 69, 78 AS col1
----
828
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT ( - MAX( + 6 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-7959
SELECT ( - MAX ( + 6 ) )
----
-6

query I rowsort
SELECT ALL 2 * - 27 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT DISTINCT + SUM( - - 28 )
----
28

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT + SUM ( - - 28 )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-7962
SELECT ( + COUNT( * ) ) AS col1, + 48 col2
----
1
48

skipif mysql # not compatible
query II rowsort label-7962
SELECT ( + COUNT ( * ) ) AS col1, + 48 col2
----
1
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7963
SELECT - ( - CAST( - NULLIF ( 44, + + 12 ) AS SIGNED ) ) + + + 81 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-7963
SELECT - ( - CAST ( - NULLIF ( 44, + + 12 ) AS INTEGER ) ) + + + 81 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT ALL + COALESCE ( + COALESCE ( + 70, - 83 ), + - COUNT( * ) ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL + COALESCE ( + COALESCE ( + 70, - 83 ), + - COUNT ( * ) ) AS col0
----
70

query I rowsort
SELECT + 60 * - 29 * + ( 76 ) AS col0
----
-132240

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT - SUM( DISTINCT + 89 ) * - 46 col2
----
4094

skipif mysql # not compatible
query I rowsort label-7966
SELECT - SUM ( DISTINCT + 89 ) * - 46 col2
----
4094

query II rowsort
SELECT DISTINCT + 25 AS col0, 63 AS col0
----
25
63

query II rowsort
SELECT ( - 64 ) AS col0, - COALESCE ( - 3, + - 58 ) AS col0
----
-64
3

query I rowsort
SELECT - 19 * + - 89
----
1691

query II rowsort
SELECT ALL - 22 * + - 35 AS col0, - 78 AS col0
----
770
-78

query I rowsort
SELECT NULLIF ( - 42, + 35 / - 41 + - 54 + + - 89 + + 92 * + 13 - 59 ) col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT + 36 + + - 10 * + MAX( ALL - CASE 52 WHEN + ( + + 96 ) * + - 18 THEN + - 30 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7972
SELECT + 36 + + - 10 * + MAX ( ALL - CASE 52 WHEN + ( + + 96 ) * + - 18 THEN + - 30 END )
----
NULL

query I rowsort
SELECT ALL - 13 * - 64 * + 87
----
72384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7974
SELECT DISTINCT - 40 * + 86 DIV + + COUNT( * ) AS col1
----
-3440

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT - 40 * + 86 / + + COUNT ( * ) AS col1
----
-3440

query II rowsort
SELECT + 0 AS col0, 23
----
0
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7976
SELECT ALL + 22 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL + 22 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7977
SELECT DISTINCT + 31, MIN( + 15 ) AS col2
----
31
15

skipif mysql # not compatible
query II rowsort label-7977
SELECT DISTINCT + 31, MIN ( + 15 ) AS col2
----
31
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT ALL + + CASE + + 47 WHEN + + COUNT( * ) THEN - 83 * 67 * ( + 82 ) + 89 + + 27 WHEN 82 THEN - - ( + - 7 ) * + - 20 * - - NULLIF ( - 79, - 60 * + 49 - 29 + - 86 ) WHEN 88 / + + ( - + ( 73 ) ) + 79 * 37 - - 6 THEN NULL ELSE 43 - 24 * - 55 END * 95 + 14 AS col1
----
129499

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL + + CASE + + 47 WHEN + + COUNT ( * ) THEN - 83 * 67 * ( + 82 ) + 89 + + 27 WHEN 82 THEN - - ( + - 7 ) * + - 20 * - - NULLIF ( - 79, - 60 * + 49 - 29 + - 86 ) WHEN 88 / + + ( - + ( 73 ) ) + 79 * 37 - - 6 THEN NULL ELSE 43 - 24 * - 55 END * 95 + 14 AS col1
----
129499

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT ( - SUM( + 29 ) ) col2
----
-29

skipif mysql # not compatible
query I rowsort label-7979
SELECT ( - SUM ( + 29 ) ) col2
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-7980
SELECT + 93 AS col1, COUNT( 42 ) - + 66 AS col2
----
93
-65

skipif mysql # not compatible
query II rowsort label-7980
SELECT + 93 AS col1, COUNT ( 42 ) - + 66 AS col2
----
93
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7981
SELECT CAST( 75 AS SIGNED ) AS col2, + 21 AS col2
----
75
21

skipif mysql # not compatible
query II rowsort label-7981
SELECT CAST ( 75 AS INTEGER ) AS col2, + 21 AS col2
----
75
21

query I rowsort
SELECT + 80 * + 76 AS col1
----
6080

query II rowsort
SELECT + + 1, - 56 AS col1
----
1
-56

query I rowsort
SELECT ALL + + ( - + ( - + 23 ) ) AS col1
----
23

query I rowsort
SELECT 95 * - - 94 + + + 33
----
8963

onlyif mysql # DIV for integer division: 
query I rowsort label-7986
SELECT - - COALESCE ( + 14, + 4 * 65, + - 18 ) DIV - 4
----
-3

skipif mysql # not compatible
query I rowsort label-7986
SELECT - - COALESCE ( + 14, + 4 * 65, + - 18 ) / - 4
----
-3

query I rowsort
SELECT ALL CASE + 81 WHEN - + 59 * 64 + + 83 THEN + ( COALESCE ( - - 24, 86 ) ) * - 49 - 71 + 24 END * 49 * + - 91 AS col1
----
NULL

query I rowsort
SELECT ALL - - NULLIF ( 27, - 82 ) * + 58 + + 45
----
1611

query II rowsort
SELECT - 28 AS col2, - 68
----
-28
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT ALL COUNT( * ) * + 0 + + 84 - + 83 * + 32
----
-2572

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL COUNT ( * ) * + 0 + + 84 - + 83 * + 32
----
-2572

onlyif mysql # aggregate syntax: 
query II rowsort label-7991
SELECT ALL - 4, SUM( ALL - + 66 ) col1
----
-4
-66

skipif mysql # not compatible
query II rowsort label-7991
SELECT ALL - 4, SUM ( ALL - + 66 ) col1
----
-4
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-7992
SELECT ALL 65 + + 37 DIV - 86 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL 65 + + 37 / - 86 AS col2
----
65

query II rowsort
SELECT ALL - 83 col1, NULLIF ( - 48, + - ( + + 89 ) + + + 20 * - 26 / 70 ) AS col1
----
-83
-48

query I rowsort
SELECT + + 25 - + 85
----
-60

query I rowsort
SELECT + + 19 * 15 - + + 23
----
262

query II rowsort
SELECT - 85 AS col2, COALESCE ( - 24, 94 )
----
-85
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-7997
SELECT DISTINCT 56 - + 22 AS col2, + COUNT( * )
----
34
1

skipif mysql # not compatible
query II rowsort label-7997
SELECT DISTINCT 56 - + 22 AS col2, + COUNT ( * )
----
34
1

query I rowsort
SELECT ALL 91 - - + 42 AS col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT ALL + 16 * + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL + 16 * + COUNT ( * )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8000
SELECT DISTINCT 20 - 68, 31 - + 65 / - 49 * CAST( NULL AS SIGNED ) AS col0
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-8000
SELECT DISTINCT 20 - 68, 31 - + 65 / - 49 * CAST ( NULL AS INTEGER ) AS col0
----
-48
NULL

query I rowsort
SELECT ALL NULLIF ( + + 20, + NULLIF ( + 36, - - 34 ) ) AS col2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8002
SELECT ALL 55 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL 55 / 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT + COUNT( ALL + 96 ) * + 21 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-8003
SELECT + COUNT ( ALL + 96 ) * + 21 AS col1
----
21

query I rowsort
SELECT - ( 35 ) * - 64
----
2240

onlyif mysql # aggregate syntax: 
query II rowsort label-8005
SELECT DISTINCT 7 * + + 19, NULLIF ( + 84, 29 + + NULLIF ( - 5, COUNT( ALL 34 ) + - 7 ) ) * 15 + - COUNT( * ) * - 1 AS col1
----
133
1261

skipif mysql # not compatible
query II rowsort label-8005
SELECT DISTINCT 7 * + + 19, NULLIF ( + 84, 29 + + NULLIF ( - 5, COUNT ( ALL 34 ) + - 7 ) ) * 15 + - COUNT ( * ) * - 1 AS col1
----
133
1261

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8006
SELECT 3 DIV - 50 AS col2, 4 + COUNT( * )
----
0
5

skipif mysql # not compatible
query II rowsort label-8006
SELECT 3 / - 50 AS col2, 4 + COUNT ( * )
----
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8007
SELECT CAST( - 48 AS SIGNED ) * 16 AS col1
----
-768

skipif mysql # not compatible
query I rowsort label-8007
SELECT CAST ( - 48 AS INTEGER ) * 16 AS col1
----
-768

query II rowsort
SELECT 9 * - 18 AS col2, 11 AS col2
----
-162
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT ALL 13 + + COUNT( * ) + - 63
----
-49

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL 13 + + COUNT ( * ) + - 63
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-8010
SELECT 93 DIV - - 98
----
0

skipif mysql # not compatible
query I rowsort label-8010
SELECT 93 / - - 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8011
SELECT ALL + ( - 24 ) + - COUNT( * ) + + - CAST( SUM( DISTINCT + + 30 ) AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL + ( - 24 ) + - COUNT ( * ) + + - CAST ( SUM ( DISTINCT + + 30 ) AS INTEGER )
----
-55

query I rowsort
SELECT ALL - NULLIF ( - ( - 57 ), 36 + 60 + - + 45 * + 39 / 68 / - 3 * + 38 * - 13 + 63 )
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8013
SELECT ALL + CASE - 13 WHEN - 19 THEN + + 21 - - 46 ELSE + 11 END + - CAST( NULL AS DECIMAL ) + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL + CASE - 13 WHEN - 19 THEN + + 21 - - 46 ELSE + 11 END + - CAST ( NULL AS REAL ) + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT 9 * + - COALESCE ( 32, + - CASE + SUM( DISTINCT - 92 ) WHEN - 39 * 87 + 45 THEN - - 40 ELSE + - 51 END ) col2
----
-288

skipif mysql # not compatible
query I rowsort label-8014
SELECT 9 * + - COALESCE ( 32, + - CASE + SUM ( DISTINCT - 92 ) WHEN - 39 * 87 + 45 THEN - - 40 ELSE + - 51 END ) col2
----
-288

query I rowsort
SELECT DISTINCT + - 98 + - - 58 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT ALL + COUNT( * ) + - - 38 * 44 AS col2
----
1673

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL + COUNT ( * ) + - - 38 * 44 AS col2
----
1673

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8017
SELECT + 40 * CAST( NULL AS SIGNED ) * 11 + - 65 + - + 78 - - 87 + - ( - - 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8017
SELECT + 40 * CAST ( NULL AS INTEGER ) * 11 + - 65 + - + 78 - - 87 + - ( - - 80 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8018
SELECT 60 - - 53 + + 67 DIV - 67
----
112

skipif mysql # not compatible
query I rowsort label-8018
SELECT 60 - - 53 + + 67 / - 67
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT 55 * - 3 + + 68 * 25 + COALESCE ( 43, + 29 * + 59, + 78 ) + + COUNT( * ) * 10
----
1588

skipif mysql # not compatible
query I rowsort label-8019
SELECT 55 * - 3 + + 68 * 25 + COALESCE ( 43, + 29 * + 59, + 78 ) + + COUNT ( * ) * 10
----
1588

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL - COUNT( * ) + + - COUNT( * ) + - 62
----
-64

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) + - 62
----
-64

query I rowsort
SELECT 8 + + + 57 * 73 + - 92 AS col1
----
4077

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8022
SELECT ALL - SUM( DISTINCT - 81 ) + - 23 + CAST( + 31 AS SIGNED ) DIV - 83 * - - 52 * + 6
----
58

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL - SUM ( DISTINCT - 81 ) + - 23 + CAST ( + 31 AS INTEGER ) / - 83 * - - 52 * + 6
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT + COUNT( ALL + 1 ) + - - NULLIF ( - + COUNT( * ), 17 * + 73 ) * - - 25 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-8023
SELECT + COUNT ( ALL + 1 ) + - - NULLIF ( - + COUNT ( * ), 17 * + 73 ) * - - 25 AS col0
----
-24

query I rowsort
SELECT 18 * - 31
----
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT 77 + + + 42 * + - SUM( DISTINCT + 15 )
----
-553

skipif mysql # not compatible
query I rowsort label-8025
SELECT 77 + + + 42 * + - SUM ( DISTINCT + 15 )
----
-553

onlyif mysql # DIV for integer division: 
query II rowsort label-8026
SELECT - 16 DIV 75, 20 * 76 col2
----
0
1520

skipif mysql # not compatible
query II rowsort label-8026
SELECT - 16 / 75, 20 * 76 col2
----
0
1520

query I rowsort
SELECT 57 + 48 * - 53 AS col1
----
-2487

onlyif mysql # DIV for integer division: 
query I rowsort label-8028
SELECT 58 DIV + + 16
----
3

skipif mysql # not compatible
query I rowsort label-8028
SELECT 58 / + + 16
----
3

query II rowsort
SELECT - 10 AS col2, 17 AS col2
----
-10
17

query I rowsort
SELECT DISTINCT - 12 * + + NULLIF ( - ( - + 48 ), 84 ) AS col2
----
-576

query II rowsort
SELECT ALL 20, + 36 AS col1
----
20
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT 55 + COUNT( * ) * ( + 35 ) - - COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8032
SELECT 55 + COUNT ( * ) * ( + 35 ) - - COUNT ( * ) AS col1
----
91

query I rowsort
SELECT 74 + + 70 + - 38 AS col0
----
106

query I rowsort
SELECT ALL 13 + - 90 + + 30
----
-47

query I rowsort
SELECT DISTINCT 72 + - - 97 AS col1
----
169

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8036
SELECT 73, CASE - CAST( NULL AS DECIMAL ) WHEN - + 48 THEN NULL WHEN - 89 / - 21 THEN - 38 ELSE NULL END AS col2
----
73
NULL

skipif mysql # not compatible
query II rowsort label-8036
SELECT 73, CASE - CAST ( NULL AS REAL ) WHEN - + 48 THEN NULL WHEN - 89 / - 21 THEN - 38 ELSE NULL END AS col2
----
73
NULL

query I rowsort
SELECT ALL 95 + - 47
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT ALL 6 + + - 47 + + 26 * - + SUM( - 73 )
----
1857

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL 6 + + - 47 + + 26 * - + SUM ( - 73 )
----
1857

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8039
SELECT CAST( NULL AS SIGNED ) + - CASE - 85 WHEN + 82 THEN NULL ELSE + MAX( 41 ) END / - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8039
SELECT CAST ( NULL AS INTEGER ) + - CASE - 85 WHEN + 82 THEN NULL ELSE + MAX ( 41 ) END / - 50
----
NULL

query I rowsort
SELECT ALL 59 + 91 AS col1
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-8041
SELECT 85 DIV 47
----
1

skipif mysql # not compatible
query I rowsort label-8041
SELECT 85 / 47
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8042
SELECT 54 * - - ( + - ( + CAST( NULL AS SIGNED ) ) ) - - + 62 + - COUNT( + 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8042
SELECT 54 * - - ( + - ( + CAST ( NULL AS INTEGER ) ) ) - - + 62 + - COUNT ( + 9 )
----
NULL

query I rowsort
SELECT ALL 98 * 71
----
6958

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT DISTINCT 2 + - + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT 2 + - + COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8045
SELECT CAST( - 95 AS SIGNED ) * - + ( - 34 )
----
-3230

skipif mysql # not compatible
query I rowsort label-8045
SELECT CAST ( - 95 AS INTEGER ) * - + ( - 34 )
----
-3230

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT MIN( ( + 14 ) )
----
14

skipif mysql # not compatible
query I rowsort label-8046
SELECT MIN ( ( + 14 ) )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT DISTINCT - MIN( 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-8047
SELECT DISTINCT - MIN ( 35 ) AS col0
----
-35

query I rowsort
SELECT - 87 * - - 7 * - + ( ( - 90 ) ) + - 73
----
-54883

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8049
SELECT DISTINCT + + 78 - - - COUNT( * ) + + - 19 * + NULLIF ( + 62, - 26 * + + CAST( - AVG ( 10 ) AS SIGNED ) ) + COUNT( * )
----
-1100

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT + + 78 - - - COUNT ( * ) + + - 19 * + NULLIF ( + 62, - 26 * + + CAST ( - AVG ( 10 ) AS INTEGER ) ) + COUNT ( * )
----
-1100

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8050
SELECT + 53 * - ( - 7 ) * + + COUNT( * ) + - 20 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8050
SELECT + 53 * - ( - 7 ) * + + COUNT ( * ) + - 20 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8051
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 2 / + - COUNT( * ) / - 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 2 / + - COUNT ( * ) / - 82 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 86 * - COALESCE ( + 23, + + 15, 31 ) + - + 7 + - + 52 - + 71 AS col2
----
-2108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8053
SELECT ALL COALESCE ( - CASE CASE + + 24 WHEN - 91 THEN ( - - COALESCE ( - NULLIF ( + - 37, + 58 * 69 ), - 29 ) ) WHEN - - 61 THEN NULL END WHEN + 31 DIV - + 88 + - 93 + 88 DIV - + 78 * - + 14 THEN 65 END, 43 * 31 DIV + 73 - 19 + + + COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL COALESCE ( - CASE CASE + + 24 WHEN - 91 THEN ( - - COALESCE ( - NULLIF ( + - 37, + 58 * 69 ), - 29 ) ) WHEN - - 61 THEN NULL END WHEN + 31 / - + 88 + - 93 + 88 / - + 78 * - + 14 THEN 65 END, 43 * 31 / + 73 - 19 + + + COUNT ( * ) ) AS col1
----
0

query II rowsort
SELECT ALL NULLIF ( ( - + 10 ), + + 8 ) AS col1, 2
----
-10
2

query I rowsort
SELECT - COALESCE ( - + 21, + 47 * 89 ) + - - 42 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT ALL + 54 + - - COUNT( * ) + + 2 * + 96 * + - 59 AS col0
----
-11273

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL + 54 + - - COUNT ( * ) + + 2 * + 96 * + - 59 AS col0
----
-11273

query I rowsort
SELECT DISTINCT 54 + - + 96
----
-42

query I rowsort
SELECT + 60 * + 58 AS col1
----
3480

query I rowsort
SELECT ALL - 63 * - 18 * + + 24 AS col2
----
27216

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT ( - MIN( + 87 ) )
----
-87

skipif mysql # not compatible
query I rowsort label-8060
SELECT ( - MIN ( + 87 ) )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT + COUNT( * ) * 11 - 36 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-8061
SELECT + COUNT ( * ) * 11 - 36 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT + NULLIF ( - MAX( + 35 ), - 64 / 29 * 18 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-8062
SELECT + NULLIF ( - MAX ( + 35 ), - 64 / 29 * 18 ) AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8063
SELECT ALL 64 * - + CAST( NULL AS SIGNED ) + - - 17 + 49 + 46 * + ( - - 13 ) - 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL 64 * - + CAST ( NULL AS INTEGER ) + - - 17 + 49 + 46 * + ( - - 13 ) - 82 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8064
SELECT + - 97 * 47 * - COUNT( * ) + + 0, 15 DIV 10 + + MIN( ALL + 22 ) AS col0
----
4559
23

skipif mysql # not compatible
query II rowsort label-8064
SELECT + - 97 * 47 * - COUNT ( * ) + + 0, 15 / 10 + + MIN ( ALL + 22 ) AS col0
----
4559
23

query II rowsort
SELECT ( - - 80 ) AS col1, 85 * + 26
----
80
2210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8066
SELECT ALL - - ( + + 46 ) * - - NULLIF ( - CAST( - 1 AS SIGNED ), 6 ) - + + 77
----
-31

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL - - ( + + 46 ) * - - NULLIF ( - CAST ( - 1 AS INTEGER ), 6 ) - + + 77
----
-31

query I rowsort
SELECT + - 64 * + 84 * + + 16 AS col2
----
-86016

onlyif mysql # DIV for integer division: 
query I rowsort label-8068
SELECT + 35 DIV 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8068
SELECT + 35 / 38 AS col1
----
0

query I rowsort
SELECT ALL 74 * 67 * + 82 col2
----
406556

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT - 79 + + - 11 / + - COUNT( * ) + - ( - - 87 ) / - + NULLIF ( COUNT( * ), + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8070
SELECT - 79 + + - 11 / + - COUNT ( * ) + - ( - - 87 ) / - + NULLIF ( COUNT ( * ), + COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT + 92 * + 37
----
3404

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT ALL COUNT( * ) * + + ( - 32 ) + - - 80 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL COUNT ( * ) * + + ( - 32 ) + - - 80 AS col2
----
48

query I rowsort
SELECT - 93 * + + 83 * + 51 * CASE 29 WHEN 8 * - + NULLIF ( - 39, - AVG ( + 97 ) ) THEN + 66 WHEN - - ( - 82 ) + - + 71 + 84 + + AVG ( - 54 ) * + 0 * + 76 * - 84 THEN NULL END * + 69 + ( - + 72 ) * - 95 * + 25 + - 55 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8074
SELECT - - CAST( NULL AS SIGNED ) - - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8074
SELECT - - CAST ( NULL AS INTEGER ) - - 6
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8075
SELECT + + 37 + + CAST( 71 AS SIGNED ) + + + COUNT( * ) + + 40 DIV + 74 * - CAST( 40 AS SIGNED )
----
109

skipif mysql # not compatible
query I rowsort label-8075
SELECT + + 37 + + CAST ( 71 AS INTEGER ) + + + COUNT ( * ) + + 40 / + 74 * - CAST ( 40 AS INTEGER )
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT ALL + COUNT( * ) * - - 94 * + 76
----
7144

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL + COUNT ( * ) * - - 94 * + 76
----
7144

onlyif mysql # DIV for integer division: 
query I rowsort label-8077
SELECT + - 21 DIV - 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8077
SELECT + - 21 / - 77 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8078
SELECT + - 62 + + 1 AS col1, + ( - MAX( DISTINCT - 28 ) ) DIV - - 3 col0
----
-61
9

skipif mysql # not compatible
query II rowsort label-8078
SELECT + - 62 + + 1 AS col1, + ( - MAX ( DISTINCT - 28 ) ) / - - 3 col0
----
-61
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8079
SELECT DISTINCT COALESCE ( + - 44, - 23 * + - MAX( ALL 68 ) + 58 DIV + COUNT( * ) ) * - 39 * - 72 AS col1, 99
----
-123552
99

skipif mysql # not compatible
query II rowsort label-8079
SELECT DISTINCT COALESCE ( + - 44, - 23 * + - MAX ( ALL 68 ) + 58 / + COUNT ( * ) ) * - 39 * - 72 AS col1, 99
----
-123552
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8080
SELECT ALL - + CAST( NULL AS SIGNED ) / - ( - CAST( 32 AS SIGNED ) ) + + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL - + CAST ( NULL AS INTEGER ) / - ( - CAST ( 32 AS INTEGER ) ) + + + 82
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8081
SELECT ALL + 60 DIV + 92 * ( 77 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL + 60 / + 92 * ( 77 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8082
SELECT + CAST( NULL AS SIGNED ) * + + COUNT( * ) * 38 + - 95 * - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8082
SELECT + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * 38 + - 95 * - 8 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT - NULLIF ( - 99, + 47 + - 18 * + ( - MIN( - 24 ) ) ) + + 29 * + - 64 AS col1
----
-1757

skipif mysql # not compatible
query I rowsort label-8083
SELECT - NULLIF ( - 99, + 47 + - 18 * + ( - MIN ( - 24 ) ) ) + + 29 * + - 64 AS col1
----
-1757

query I rowsort
SELECT ALL 32 + 5 col1
----
37

query I rowsort
SELECT ALL - 94 * + 80
----
-7520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8086
SELECT + 31 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT + 31 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8087
SELECT ALL 37 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL 37 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 22 + + 94
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8089
SELECT 12, - COUNT( * ) * + 35 DIV NULLIF ( - + 97, + 25 * - 22 * - 80 ) AS col1
----
12
0

skipif mysql # not compatible
query II rowsort label-8089
SELECT 12, - COUNT ( * ) * + 35 / NULLIF ( - + 97, + 25 * - 22 * - 80 ) AS col1
----
12
0

query I rowsort
SELECT ALL 90 * - 1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT - COUNT( * ) + COUNT( * ) - - - 82 + + CASE + 32 WHEN 53 THEN + + 91 WHEN + 83 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8091
SELECT - COUNT ( * ) + COUNT ( * ) - - - 82 + + CASE + 32 WHEN 53 THEN + + 91 WHEN + 83 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8092
SELECT - CAST( - - 49 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-8092
SELECT - CAST ( - - 49 AS INTEGER )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT ALL + COUNT( * ) + + 65 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL + COUNT ( * ) + + 65 AS col0
----
66

query II rowsort
SELECT - 38, + 59 AS col1
----
-38
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT - MAX( DISTINCT - ( 99 ) ) + + 74 AS col2
----
173

skipif mysql # not compatible
query I rowsort label-8095
SELECT - MAX ( DISTINCT - ( 99 ) ) + + 74 AS col2
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT + 6 * + + COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8096
SELECT + 6 * + + COUNT ( * ) AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8097
SELECT ALL - 32 DIV + 42 col2
----
0

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL - 32 / + 42 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8098
SELECT - 18 + - + 1 DIV - - 1 * + 36 DIV + 34 AS col0, + 83 - + COUNT( * )
----
-19
82

skipif mysql # not compatible
query II rowsort label-8098
SELECT - 18 + - + 1 / - - 1 * + 36 / + 34 AS col0, + 83 - + COUNT ( * )
----
-19
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8099
SELECT - 20 / - ( COUNT( * ) ) + - CAST( NULL AS SIGNED ) + + 47 + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8099
SELECT - 20 / - ( COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) + + 47 + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT DISTINCT + - CASE + - ( + COUNT( * ) ) WHEN - 9 - - - COUNT( * ) + + 6 * - + 34 THEN - COUNT( * ) * + 75 WHEN 83 THEN NULL ELSE + 11 END
----
-11

skipif mysql # not compatible
query I rowsort label-8100
SELECT DISTINCT + - CASE + - ( + COUNT ( * ) ) WHEN - 9 - - - COUNT ( * ) + + 6 * - + 34 THEN - COUNT ( * ) * + 75 WHEN 83 THEN NULL ELSE + 11 END
----
-11

query I rowsort
SELECT - 19 + - - 89
----
70

query I rowsort
SELECT ALL - + 37 * 10
----
-370

query I rowsort
SELECT - + 91 * 6 + 7 col1
----
-539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8104
SELECT + - 56 * NULLIF ( - 33, + - 78 ) + + 27 + + + 56 + 17 * + COALESCE ( + 85, - COUNT( * ) + + + COUNT( * ) + 68 - + 42 + - 82 + 60 + - COALESCE ( - - 9, - 83 - - COUNT( * ) ) * - 83 DIV 24 + - 33 * 23 DIV + - 29 * - + 42 * + 86 + CAST( NULL AS SIGNED ) * + 17 ) AS col2
----
3376

skipif mysql # not compatible
query I rowsort label-8104
SELECT + - 56 * NULLIF ( - 33, + - 78 ) + + 27 + + + 56 + 17 * + COALESCE ( + 85, - COUNT ( * ) + + + COUNT ( * ) + 68 - + 42 + - 82 + 60 + - COALESCE ( - - 9, - 83 - - COUNT ( * ) ) * - 83 / 24 + - 33 * 23 / + - 29 * - + 42 * + 86 + CAST ( NULL AS INTEGER ) * + 17 ) AS col2
----
3376

query I rowsort
SELECT DISTINCT - 63 * + - 31 col1
----
1953

query I rowsort
SELECT + + 52 * - NULLIF ( ( - + 13 ), + - AVG ( ALL + ( 20 ) ) )
----
676

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8107
SELECT + 45 DIV + 56 + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8107
SELECT + 45 / + 56 + - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL + + 43 col0
----
43

query I rowsort
SELECT DISTINCT - - 95 * + 66
----
6270

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT + + 91 * - - NULLIF ( 64, + SUM( - 98 ) * - - ( 36 ) / 14 * - + 96 )
----
5824

skipif mysql # not compatible
query I rowsort label-8110
SELECT + + 91 * - - NULLIF ( 64, + SUM ( - 98 ) * - - ( 36 ) / 14 * - + 96 )
----
5824

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT + COUNT( + - 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8111
SELECT + COUNT ( + - 16 ) AS col2
----
1

query I rowsort
SELECT + + ( + 84 )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8113
SELECT ALL - 20 DIV + + 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL - 20 / + + 41 AS col2
----
0

query I rowsort
SELECT 99 * + COALESCE ( 85, - 17 ) - 15 col2
----
8400

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT NULLIF ( + 9, - COUNT( * ) / 55 ) * + 1 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-8115
SELECT NULLIF ( + 9, - COUNT ( * ) / 55 ) * + 1 AS col2
----
9

query II rowsort
SELECT - 12 col2, + 74 - 44 * - 8 AS col0
----
-12
426

onlyif mysql # aggregate syntax: 
query II rowsort label-8117
SELECT ALL 96 + 92 - - 26 + + + 79 * - - CASE 58 WHEN - COUNT( * ) THEN - ( + AVG ( 79 ) ) END * COUNT( * ) col2, 25 * - 93 AS col2
----
NULL
-2325

skipif mysql # not compatible
query II rowsort label-8117
SELECT ALL 96 + 92 - - 26 + + + 79 * - - CASE 58 WHEN - COUNT ( * ) THEN - ( + AVG ( 79 ) ) END * COUNT ( * ) col2, 25 * - 93 AS col2
----
NULL
-2325

query I rowsort
SELECT DISTINCT 55 * + 74
----
4070

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT ALL MAX( - + 73 ) + + 8 + - 64 / - 53 * - CASE 15 WHEN 62 THEN + 61 + + 97 * - - 39 WHEN - 9 * + 79 - - MIN( DISTINCT + 46 ) / + + COUNT( * ) THEN NULL END * + 80 * 46 * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8119
SELECT ALL MAX ( - + 73 ) + + 8 + - 64 / - 53 * - CASE 15 WHEN 62 THEN + 61 + + 97 * - - 39 WHEN - 9 * + 79 - - MIN ( DISTINCT + 46 ) / + + COUNT ( * ) THEN NULL END * + 80 * 46 * + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8120
SELECT ( 55 ) * CAST( - 88 AS SIGNED )
----
-4840

skipif mysql # not compatible
query I rowsort label-8120
SELECT ( 55 ) * CAST ( - 88 AS INTEGER )
----
-4840

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8121
SELECT ALL 71, - COUNT( * ) DIV 52 DIV + 57 AS col2, + MAX( + - 70 ) AS col0
----
71
0
-70

skipif mysql # not compatible
query III rowsort label-8121
SELECT ALL 71, - COUNT ( * ) / 52 / + 57 AS col2, + MAX ( + - 70 ) AS col0
----
71
0
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8122
SELECT DISTINCT 49 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT 49 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 2 - - 57
----
59

query I rowsort
SELECT 9 + + 47
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT ALL COUNT( * ) + + ( + + 53 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL COUNT ( * ) + + ( + + 53 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-8126
SELECT ALL 37 AS col2, + 0 + - COUNT( * ) - 92 * 51 AS col2
----
37
-4693

skipif mysql # not compatible
query II rowsort label-8126
SELECT ALL 37 AS col2, + 0 + - COUNT ( * ) - 92 * 51 AS col2
----
37
-4693

onlyif mysql # aggregate syntax: 
query II rowsort label-8127
SELECT 34 + - 99 * 6 * + 79 + - ( 51 ) AS col0, + COUNT( DISTINCT 21 )
----
-46943
1

skipif mysql # not compatible
query II rowsort label-8127
SELECT 34 + - 99 * 6 * + 79 + - ( 51 ) AS col0, + COUNT ( DISTINCT 21 )
----
-46943
1

query I rowsort
SELECT ALL + 91 - + 35
----
56

query II rowsort
SELECT 24 * + 40 AS col2, - 43
----
960
-43

query II rowsort
SELECT - 1, + 73 col0
----
-1
73

query II rowsort
SELECT ALL 2 AS col1, + 15
----
2
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8132
SELECT CASE + COALESCE ( - COALESCE ( - COUNT( * ), + - 52 ), + 56 ) WHEN + + SUM( + 60 ) + 21 + - NULLIF ( - 7, 88 - 71 ) THEN + 69 WHEN + - 47 THEN 79 * - - CAST( NULL AS SIGNED ) END * + - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8132
SELECT CASE + COALESCE ( - COALESCE ( - COUNT ( * ), + - 52 ), + 56 ) WHEN + + SUM ( + 60 ) + 21 + - NULLIF ( - 7, 88 - 71 ) THEN + 69 WHEN + - 47 THEN 79 * - - CAST ( NULL AS INTEGER ) END * + - 25 AS col1
----
NULL

query I rowsort
SELECT + 56 - - + 44 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT - COUNT( * ) * - 23 - 45 + + 77 * + 9
----
671

skipif mysql # not compatible
query I rowsort label-8134
SELECT - COUNT ( * ) * - 23 - 45 + + 77 * + 9
----
671

query I rowsort
SELECT 98 * 99 * + 12
----
116424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8136
SELECT - 83 * - CAST( NULL AS SIGNED ) AS col2, + ( + 94 ) * + - SUM( ALL - 86 ) * 47 + + + NULLIF ( + - 7, - 76 ) col1
----
NULL
379941

skipif mysql # not compatible
query II rowsort label-8136
SELECT - 83 * - CAST ( NULL AS INTEGER ) AS col2, + ( + 94 ) * + - SUM ( ALL - 86 ) * 47 + + + NULLIF ( + - 7, - 76 ) col1
----
NULL
379941

onlyif mysql # aggregate syntax: 
query II rowsort label-8137
SELECT ALL - + 58, 66 + + + COUNT( * ) + - + 62 AS col1
----
-58
5

skipif mysql # not compatible
query II rowsort label-8137
SELECT ALL - + 58, 66 + + + COUNT ( * ) + - + 62 AS col1
----
-58
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT COUNT( * ) - + 41 - + 39 * - - 67
----
-2653

skipif mysql # not compatible
query I rowsort label-8138
SELECT COUNT ( * ) - + 41 - + 39 * - - 67
----
-2653

onlyif mysql # aggregate syntax: 
query II rowsort label-8139
SELECT + + COUNT( * ) AS col2, - 16 * - 94 * + 54 * 42
----
1
3411072

skipif mysql # not compatible
query II rowsort label-8139
SELECT + + COUNT ( * ) AS col2, - 16 * - 94 * + 54 * 42
----
1
3411072

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT SUM( ALL - 36 ) + - 31 - 1 + - + 9 * 48 - - COUNT( * ) col1
----
-499

skipif mysql # not compatible
query I rowsort label-8140
SELECT SUM ( ALL - 36 ) + - 31 - 1 + - + 9 * 48 - - COUNT ( * ) col1
----
-499

query I rowsort
SELECT ALL + - 29 + 10
----
-19

query II rowsort
SELECT DISTINCT - + 67 * - 4, + 62 AS col1
----
268
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8143
SELECT 47 * + ( 98 ) * 71 * + NULLIF ( - 30, - 3 + CAST( - 30 AS SIGNED ) * + CASE - 50 WHEN - - 80 THEN + 80 * - 97 * + + 14 * - 21 WHEN 74 + 51 THEN NULL ELSE NULL END ) + + 39 - 80 col0
----
-9810821

skipif mysql # not compatible
query I rowsort label-8143
SELECT 47 * + ( 98 ) * 71 * + NULLIF ( - 30, - 3 + CAST ( - 30 AS INTEGER ) * + CASE - 50 WHEN - - 80 THEN + 80 * - 97 * + + 14 * - 21 WHEN 74 + 51 THEN NULL ELSE NULL END ) + + 39 - 80 col0
----
-9810821

query I rowsort
SELECT + 0 + + 44 AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8145
SELECT ALL - - 17 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL - - 17 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8146
SELECT + 46 * + - 80 + - + 16 - 7 DIV + 69 * - + ( 3 ) * 33 + - 84 + + 26 + - ( - + 64 ) * - CASE + + 73 WHEN + + 32 + + - 7 THEN NULL ELSE - 37 * 89 END * 21 AS col1, 49 AS col1
----
4422038
49

skipif mysql # not compatible
query II rowsort label-8146
SELECT + 46 * + - 80 + - + 16 - 7 / + 69 * - + ( 3 ) * 33 + - 84 + + 26 + - ( - + 64 ) * - CASE + + 73 WHEN + + 32 + + - 7 THEN NULL ELSE - 37 * 89 END * 21 AS col1, 49 AS col1
----
4422038
49

query I rowsort
SELECT 3 - ( 21 )
----
-18

query I rowsort
SELECT ALL 2 + - - 38 AS col2
----
40

query I rowsort
SELECT ALL + 95 * + 7
----
665

query I rowsort
SELECT DISTINCT - ( - + 67 ) col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT ALL 43 - - COUNT( + - ( + 76 ) )
----
44

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL 43 - - COUNT ( + - ( + 76 ) )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT MAX( - 68 ) * + + 45 AS col0
----
-3060

skipif mysql # not compatible
query I rowsort label-8152
SELECT MAX ( - 68 ) * + + 45 AS col0
----
-3060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8153
SELECT ( + 80 ) * + ( + ( - + 57 ) ) / - - 8 * + 73 + - + 60 + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8153
SELECT ( + 80 ) * + ( + ( - + 57 ) ) / - - 8 * + 73 + - + 60 + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8154
SELECT ALL NULLIF ( 62, - - 41 ) * - - COUNT( * ) + - 22 AS col0, 0 - + - 81 + - 32 * + 81 * - 20 AS col2
----
40
51921

skipif mysql # not compatible
query II rowsort label-8154
SELECT ALL NULLIF ( 62, - - 41 ) * - - COUNT ( * ) + - 22 AS col0, 0 - + - 81 + - 32 * + 81 * - 20 AS col2
----
40
51921

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT MIN( ALL + + 68 ) + + 35 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-8155
SELECT MIN ( ALL + + 68 ) + + 35 AS col2
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-8156
SELECT COUNT( * ) + + 93 AS col0, + 8 AS col2
----
94
8

skipif mysql # not compatible
query II rowsort label-8156
SELECT COUNT ( * ) + + 93 AS col0, + 8 AS col2
----
94
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT ALL NULLIF ( + 45, 98 + + + 93 + + 95 * + ( 3 ) + - + 95 ) * + 85 * - COUNT( * )
----
-3825

skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL NULLIF ( + 45, 98 + + + 93 + + 95 * + ( 3 ) + - + 95 ) * + 85 * - COUNT ( * )
----
-3825

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8158
SELECT COUNT( * ) * - COALESCE ( + 57, - 25 * + + COUNT( * ) + - 66 * COUNT( * ) ) DIV + 23 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8158
SELECT COUNT ( * ) * - COALESCE ( + 57, - 25 * + + COUNT ( * ) + - 66 * COUNT ( * ) ) / + 23 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT DISTINCT SUM( - 8 ) * + 83 * ( ( + 12 ) ) AS col0
----
-7968

skipif mysql # not compatible
query I rowsort label-8159
SELECT DISTINCT SUM ( - 8 ) * + 83 * ( ( + 12 ) ) AS col0
----
-7968

query I rowsort
SELECT 8 * + + 89 AS col1
----
712

query I rowsort
SELECT ( + + 87 ) * - 85 AS col0
----
-7395

query I rowsort
SELECT - 15 * + 89 * + + 55
----
-73425

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT - 24 - + COALESCE ( - 48, + + 70 - 11 ) + + - CASE - 16 WHEN 72 + 89 + CASE - 19 WHEN - 62 * - - 46 THEN + 76 END THEN NULL ELSE + COUNT( * ) * - + 2 + - 2 + - 58 END * - ( 67 )
----
-4130

skipif mysql # not compatible
query I rowsort label-8163
SELECT - 24 - + COALESCE ( - 48, + + 70 - 11 ) + + - CASE - 16 WHEN 72 + 89 + CASE - 19 WHEN - 62 * - - 46 THEN + 76 END THEN NULL ELSE + COUNT ( * ) * - + 2 + - 2 + - 58 END * - ( 67 )
----
-4130

onlyif mysql # DIV for integer division: 
query I rowsort label-8164
SELECT 54 + COALESCE ( - 3, - - 86 + - AVG ( ALL 45 ) ) DIV - 79 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-8164
SELECT 54 + COALESCE ( - 3, - - 86 + - AVG ( ALL 45 ) ) / - 79 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT ( + 81 ) + 26 * COUNT( * ) - + 60 + + 68 * - + COUNT( * ) * - + 40 col2
----
2767

skipif mysql # not compatible
query I rowsort label-8165
SELECT ( + 81 ) + 26 * COUNT ( * ) - + 60 + + 68 * - + COUNT ( * ) * - + 40 col2
----
2767

query I rowsort
SELECT COALESCE ( - 95, + 29, - 85 + - - 51 ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-8167
SELECT 84 * - 92 + + 44 AS col1, 72 * - 86 + COUNT( * ) AS col2
----
-7684
-6191

skipif mysql # not compatible
query II rowsort label-8167
SELECT 84 * - 92 + + 44 AS col1, 72 * - 86 + COUNT ( * ) AS col2
----
-7684
-6191

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT - SUM( ALL 25 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-8168
SELECT - SUM ( ALL 25 ) AS col2
----
-25

query I rowsort
SELECT + 11 * 73 + 90 AS col2
----
893

query I rowsort
SELECT + 84 * + 70
----
5880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8171
SELECT - 53 * + + SUM( ALL + 24 ) + 70 + - - 51 + - + 73 * 40 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT - 53 * + + SUM ( ALL + 24 ) + 70 + - - 51 + - + 73 * 40 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 74 * + + 44 + - + 58 AS col0
----
3198

query II rowsort
SELECT ALL + 22 AS col1, - 1
----
22
-1

query II rowsort
SELECT + 57 AS col2, 59 * + - 40 AS col0
----
57
-2360

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT ALL - COUNT( * ) * - + 13 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL - COUNT ( * ) * - + 13 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT ALL 99 * 67 - + - MIN( - 68 ) + 83
----
6648

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL 99 * 67 - + - MIN ( - 68 ) + 83
----
6648

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT + 73 * - COUNT( * ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-8177
SELECT + 73 * - COUNT ( * ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT ALL + MIN( 88 ) * 67 AS col2
----
5896

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL + MIN ( 88 ) * 67 AS col2
----
5896

query II rowsort
SELECT ALL + ( - + 10 ) * + 87 AS col0, 98 + 19 + + ( - 97 )
----
-870
20

query I rowsort
SELECT - 1 - + 72 AS col1
----
-73

query I rowsort
SELECT ALL + 73 - + + 27 AS col2
----
46

query I rowsort
SELECT ALL + 64 * - 74 AS col0
----
-4736

onlyif mysql # aggregate syntax: 
query II rowsort label-8183
SELECT DISTINCT + COUNT( * ) * - + NULLIF ( 62, + 11 * CASE - COUNT( * ) WHEN - 42 / 34 THEN + 62 * + 9 + - 65 ELSE NULL END * 49 + - - 78 - + - NULLIF ( + - 69, - 37 + + + 87 * COUNT( * ) ) ) * + COUNT( - + 62 ) + + COUNT( * ) col0, 96 AS col2
----
-61
96

skipif mysql # not compatible
query II rowsort label-8183
SELECT DISTINCT + COUNT ( * ) * - + NULLIF ( 62, + 11 * CASE - COUNT ( * ) WHEN - 42 / 34 THEN + 62 * + 9 + - 65 ELSE NULL END * 49 + - - 78 - + - NULLIF ( + - 69, - 37 + + + 87 * COUNT ( * ) ) ) * + COUNT ( - + 62 ) + + COUNT ( * ) col0, 96 AS col2
----
-61
96

query I rowsort
SELECT - 71 * + 79 * + 3 AS col0
----
-16827

onlyif mysql # DIV for integer division: 
query I rowsort label-8185
SELECT - 35 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-8185
SELECT - 35 / - 71
----
0

query I rowsort
SELECT - 43 + 87
----
44

query II rowsort
SELECT ALL - 71, - 81 col0
----
-71
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT DISTINCT - + 88 + - COUNT( * ) * 26
----
-114

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT - + 88 + - COUNT ( * ) * 26
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8189
SELECT - - CAST( + 65 AS SIGNED ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-8189
SELECT - - CAST ( + 65 AS INTEGER ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT ALL 32 + + 61 + + NULLIF ( + - COALESCE ( + + 82, 80 ), + 50 + - + COUNT( * ) * - - 25 ) + + CASE - 44 WHEN - + 10 THEN NULL WHEN + 29 THEN + - 50 ELSE - 31 END * - + ( + 4 )
----
135

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL 32 + + 61 + + NULLIF ( + - COALESCE ( + + 82, 80 ), + 50 + - + COUNT ( * ) * - - 25 ) + + CASE - 44 WHEN - + 10 THEN NULL WHEN + 29 THEN + - 50 ELSE - 31 END * - + ( + 4 )
----
135

query I rowsort
SELECT + 2 * - - 16 * - - 18
----
576

query I rowsort
SELECT ALL 71 + + 64 AS col2
----
135

query II rowsort
SELECT ALL 55 AS col2, 5 + - + 41
----
55
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8194
SELECT + COUNT( * ) * - ( - 97 ) + + - ( - 75 ) * - CAST( 47 AS SIGNED ) * ( 56 ) AS col1, - 40 AS col0
----
-197303
-40

skipif mysql # not compatible
query II rowsort label-8194
SELECT + COUNT ( * ) * - ( - 97 ) + + - ( - 75 ) * - CAST ( 47 AS INTEGER ) * ( 56 ) AS col1, - 40 AS col0
----
-197303
-40

query I rowsort
SELECT + 55 - - - 36 AS col2
----
19

query I rowsort
SELECT + 54 * - 15 - 71 * 27
----
-2727

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT DISTINCT + - MAX( - 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-8197
SELECT DISTINCT + - MAX ( - 54 ) AS col1
----
54

query II rowsort
SELECT - 84 AS col1, - 40 AS col0
----
-84
-40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8199
SELECT DISTINCT + 34 DIV CAST( - 47 AS SIGNED ) - 92 + ( - + ( ( + 52 ) ) ) * - + 50 * - 24 AS col2
----
-62492

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT + 34 / CAST ( - 47 AS INTEGER ) - 92 + ( - + ( ( + 52 ) ) ) * - + 50 * - 24 AS col2
----
-62492

onlyif mysql # aggregate syntax: 
query II rowsort label-8200
SELECT ALL + MIN( ALL 2 ), + COUNT( * ) AS col2
----
2
1

skipif mysql # not compatible
query II rowsort label-8200
SELECT ALL + MIN ( ALL 2 ), + COUNT ( * ) AS col2
----
2
1

query II rowsort
SELECT ( + 83 ) col1, + 78
----
83
78

onlyif mysql # aggregate syntax: 
query II rowsort label-8202
SELECT - 55 * + + COUNT( * ) AS col0, 55 AS col0
----
-55
55

skipif mysql # not compatible
query II rowsort label-8202
SELECT - 55 * + + COUNT ( * ) AS col0, 55 AS col0
----
-55
55

query I rowsort
SELECT ALL 61 * 49
----
2989

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8204
SELECT ( - + NULLIF ( + COUNT( * ), + - CAST( NULL AS SIGNED ) ) ) col1, - 48 AS col2
----
-1
-48

skipif mysql # not compatible
query II rowsort label-8204
SELECT ( - + NULLIF ( + COUNT ( * ), + - CAST ( NULL AS INTEGER ) ) ) col1, - 48 AS col2
----
-1
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8205
SELECT 77 * + - 60 DIV - + COUNT( * ) + + 3
----
4623

skipif mysql # not compatible
query I rowsort label-8205
SELECT 77 * + - 60 / - + COUNT ( * ) + + 3
----
4623

query I rowsort
SELECT + 19 * + - 34 AS col0
----
-646

query I rowsort
SELECT - 78 + 29
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT COALESCE ( - 79, + 48 * + + SUM( ALL - + ( - 51 ) ) )
----
-79

skipif mysql # not compatible
query I rowsort label-8208
SELECT COALESCE ( - 79, + 48 * + + SUM ( ALL - + ( - 51 ) ) )
----
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8209
SELECT DISTINCT + AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) AS col1, + 97
----
NULL
97

skipif mysql # not compatible
query II rowsort label-8209
SELECT DISTINCT + AVG ( DISTINCT CAST ( NULL AS REAL ) ) AS col1, + 97
----
NULL
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8210
SELECT - 89 * - 83 * 89 * - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8210
SELECT - 89 * - 83 * 89 * - - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT - COUNT( * ) + COUNT( * ) + - - 62
----
62

skipif mysql # not compatible
query I rowsort label-8211
SELECT - COUNT ( * ) + COUNT ( * ) + - - 62
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-8212
SELECT ALL + CASE COUNT( - - 12 ) WHEN - 24 + - 7 THEN NULL WHEN 68 THEN - - 10 ELSE NULL END col2, - 71 AS col2
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-8212
SELECT ALL + CASE COUNT ( - - 12 ) WHEN - 24 + - 7 THEN NULL WHEN 68 THEN - - 10 ELSE NULL END col2, - 71 AS col2
----
NULL
-71

query I rowsort
SELECT + 59 * 21
----
1239

query I rowsort
SELECT 15 * 87 * - 46 + - 33
----
-60063

onlyif mysql # DIV for integer division: 
query I rowsort label-8215
SELECT - 41 DIV 65 * + 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8215
SELECT - 41 / 65 * + 71 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT ALL - COUNT( ALL + ( + 63 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL - COUNT ( ALL + ( + 63 ) )
----
-1

query I rowsort
SELECT ALL - + 36 + + 88
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8218
SELECT - 72 + + 29 DIV - 69 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-8218
SELECT - 72 + + 29 / - 69 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-8219
SELECT DISTINCT - 86 + COUNT( * ) + - - 32 * + - 14 AS col1, + COUNT( * ) AS col2
----
-533
1

skipif mysql # not compatible
query II rowsort label-8219
SELECT DISTINCT - 86 + COUNT ( * ) + - - 32 * + - 14 AS col1, + COUNT ( * ) AS col2
----
-533
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8220
SELECT 6 + + CAST( + NULLIF ( - 3, NULLIF ( 79, + 18 ) ) AS SIGNED ) * + + 93
----
-273

skipif mysql # not compatible
query I rowsort label-8220
SELECT 6 + + CAST ( + NULLIF ( - 3, NULLIF ( 79, + 18 ) ) AS INTEGER ) * + + 93
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT MAX( + - 59 ) + + COALESCE ( + 93, + 10 + + 72, - ( - 7 ), + - MIN( 89 ), - 67 )
----
34

skipif mysql # not compatible
query I rowsort label-8221
SELECT MAX ( + - 59 ) + + COALESCE ( + 93, + 10 + + 72, - ( - 7 ), + - MIN ( 89 ), - 67 )
----
34

query I rowsort
SELECT 83 - 50
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8223
SELECT ALL + CAST( - 72 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL + CAST ( - 72 AS INTEGER )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT 55 + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-8224
SELECT 55 + COUNT ( * )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8225
SELECT 37, CAST( - - 28 AS SIGNED ) AS col1
----
37
28

skipif mysql # not compatible
query II rowsort label-8225
SELECT 37, CAST ( - - 28 AS INTEGER ) AS col1
----
37
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8226
SELECT 77 * - 73 * + COALESCE ( + 66, - 1 ) AS col0, + COUNT( * )
----
-370986
1

skipif mysql # not compatible
query II rowsort label-8226
SELECT 77 * - 73 * + COALESCE ( + 66, - 1 ) AS col0, + COUNT ( * )
----
-370986
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8227
SELECT 83 DIV + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8227
SELECT 83 / + 93 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8228
SELECT DISTINCT COUNT( - 13 ) DIV - 90 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8228
SELECT DISTINCT COUNT ( - 13 ) / - 90 * COUNT ( * ) AS col1
----
0

query II rowsort
SELECT + 19, + 30 col0
----
19
30

query I rowsort
SELECT DISTINCT 7 * 42
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT ALL - SUM( - + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL - SUM ( - + 89 )
----
89

query I rowsort
SELECT DISTINCT 36 * + ( + 62 ) AS col2
----
2232

query I rowsort
SELECT 2 * + 77
----
154

query I rowsort
SELECT DISTINCT 71 + 0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT ALL COUNT( * ) + + 15 * - + 8 col2
----
-119

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL COUNT ( * ) + + 15 * - + 8 col2
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT COUNT( * ) - - 11
----
12

skipif mysql # not compatible
query I rowsort label-8236
SELECT COUNT ( * ) - - 11
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT COUNT( * ) / CASE - 88 WHEN + - 58 * - ( + + 73 ) * 1 + + + ( 4 ) + - 17 - - - 22 * 87 * + 40 * - + CASE 45 WHEN - 56 * + NULLIF ( - 1, + 31 * + + 88 ) * - + COUNT( * ) * 55 + - 97 - + + 67 - - ( 88 ) THEN NULL WHEN + 78 * - 63 + + 80 THEN NULL ELSE 46 - - - 19 END + + + 37 THEN - 97 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT COUNT ( * ) / CASE - 88 WHEN + - 58 * - ( + + 73 ) * 1 + + + ( 4 ) + - 17 - - - 22 * 87 * + 40 * - + CASE 45 WHEN - 56 * + NULLIF ( - 1, + 31 * + + 88 ) * - + COUNT ( * ) * 55 + - 97 - + + 67 - - ( 88 ) THEN NULL WHEN + 78 * - 63 + + 80 THEN NULL ELSE 46 - - - 19 END + + + 37 THEN - 97 END col1
----
NULL

query I rowsort
SELECT DISTINCT - 56 + + + 35 AS col2
----
-21

query I rowsort
SELECT ALL + - 63 + - + 42 AS col1
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-8240
SELECT DISTINCT 35 DIV - - 21
----
1

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT 35 / - - 21
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT - 75 - CASE 95 WHEN + COUNT( * ) * 63 - - 10 THEN NULL WHEN - 33 THEN - 1 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT - 75 - CASE 95 WHEN + COUNT ( * ) * 63 - - 10 THEN NULL WHEN - 33 THEN - 1 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8242
SELECT - 39, 97 + + - 94 + + 21 DIV + 17 + - COUNT( * ) + - COUNT( - + 87 ) * + - ( + - 67 ) * 24 AS col2
----
-39
-1605

skipif mysql # not compatible
query II rowsort label-8242
SELECT - 39, 97 + + - 94 + + 21 / + 17 + - COUNT ( * ) + - COUNT ( - + 87 ) * + - ( + - 67 ) * 24 AS col2
----
-39
-1605

query I rowsort
SELECT 52 + + + 70 AS col2
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8244
SELECT DISTINCT - + CASE - CAST( 56 AS SIGNED ) WHEN 61 * - + 89 - 8 + - 83 THEN + ( 57 ) + - 65 DIV + 92 + + 36 WHEN - + 76 THEN NULL WHEN + 16 THEN NULL ELSE - + ( 27 ) + + + 48 + + ( + 58 ) END * + + COUNT( * ), - COUNT( * ) * + MAX( - 84 ) DIV + 79 AS col0
----
-79
1

skipif mysql # not compatible
query II rowsort label-8244
SELECT DISTINCT - + CASE - CAST ( 56 AS INTEGER ) WHEN 61 * - + 89 - 8 + - 83 THEN + ( 57 ) + - 65 / + 92 + + 36 WHEN - + 76 THEN NULL WHEN + 16 THEN NULL ELSE - + ( 27 ) + + + 48 + + ( + 58 ) END * + + COUNT ( * ), - COUNT ( * ) * + MAX ( - 84 ) / + 79 AS col0
----
-79
1

query I rowsort
SELECT DISTINCT ( 30 ) AS col0
----
30

query I rowsort
SELECT DISTINCT + + 29 - + + 16
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8247
SELECT DISTINCT - - 33 - ( + - CAST( COUNT( * ) AS SIGNED ) ) * - + 66, COUNT( * ) col2
----
-33
1

skipif mysql # not compatible
query II rowsort label-8247
SELECT DISTINCT - - 33 - ( + - CAST ( COUNT ( * ) AS INTEGER ) ) * - + 66, COUNT ( * ) col2
----
-33
1

query I rowsort
SELECT - + ( 71 )
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-8249
SELECT 11 * 84 + - COUNT( * ), 1 AS col0
----
923
1

skipif mysql # not compatible
query II rowsort label-8249
SELECT 11 * 84 + - COUNT ( * ), 1 AS col0
----
923
1

query II rowsort
SELECT DISTINCT - 98 AS col0, 7 AS col1
----
-98
7

query I rowsort
SELECT 22 * 25
----
550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8252
SELECT + 5 * 39 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8252
SELECT + 5 * 39 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT MIN( 35 )
----
35

skipif mysql # not compatible
query I rowsort label-8253
SELECT MIN ( 35 )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8254
SELECT ALL + 5 * + CAST( - - 35 AS SIGNED )
----
175

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL + 5 * + CAST ( - - 35 AS INTEGER )
----
175

onlyif mysql # DIV for integer division: 
query I rowsort label-8255
SELECT 14 DIV 54 + 41 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-8255
SELECT 14 / 54 + 41 AS col1
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8256
SELECT ALL + COUNT( * ) DIV 34 * + + 6 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL + COUNT ( * ) / 34 * + + 6 AS col2
----
0

query I rowsort
SELECT ALL + 5 * + 67 * 84 AS col2
----
28140

query I rowsort
SELECT ALL + 87 * 33
----
2871

query I rowsort
SELECT 2 + - 94 + ( 44 )
----
-48

query I rowsort
SELECT - 67 * - + 55 - 79 col0
----
3606

query II rowsort
SELECT + 76, + 41 col0
----
76
41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8262
SELECT COALESCE ( - 89, - 88 * + NULLIF ( + 52, - 32 + + + 31 ) + + 99 + - + CAST( NULL AS SIGNED ) ) DIV 37
----
-2

skipif mysql # not compatible
query I rowsort label-8262
SELECT COALESCE ( - 89, - 88 * + NULLIF ( + 52, - 32 + + + 31 ) + + 99 + - + CAST ( NULL AS INTEGER ) ) / 37
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT ALL 30 + COUNT( ALL + 49 )
----
31

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL 30 + COUNT ( ALL + 49 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT 17 + - 51 + - COUNT( * ) + - 69 * - + COUNT( + 23 )
----
34

skipif mysql # not compatible
query I rowsort label-8264
SELECT 17 + - 51 + - COUNT ( * ) + - 69 * - + COUNT ( + 23 )
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-8265
SELECT + COUNT( * ) AS col0, NULLIF ( + 98, + 13 ) * - - CASE - 44 WHEN - 99 THEN + 86 * + + COALESCE ( - COUNT( * ), 10 * - 23 ) END * - 96 * + COUNT( * )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8265
SELECT + COUNT ( * ) AS col0, NULLIF ( + 98, + 13 ) * - - CASE - 44 WHEN - 99 THEN + 86 * + + COALESCE ( - COUNT ( * ), 10 * - 23 ) END * - 96 * + COUNT ( * )
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8266
SELECT ( + 4 ) DIV 4 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8266
SELECT ( + 4 ) / 4 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8267
SELECT DISTINCT - 11 AS col1, - CAST( - 80 AS SIGNED ) AS col0
----
-11
80

skipif mysql # not compatible
query II rowsort label-8267
SELECT DISTINCT - 11 AS col1, - CAST ( - 80 AS INTEGER ) AS col0
----
-11
80

onlyif mysql # DIV for integer division: 
query II rowsort label-8268
SELECT DISTINCT - 85, - 46 DIV 18 AS col0
----
-85
-2

skipif mysql # not compatible
query II rowsort label-8268
SELECT DISTINCT - 85, - 46 / 18 AS col0
----
-85
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8269
SELECT ALL 76 + - - COUNT( DISTINCT + 62 ) * - 40 AS col1, 77 * + + NULLIF ( + ( + MIN( - 20 ) ), + 73 ) AS col1
----
36
-1540

skipif mysql # not compatible
query II rowsort label-8269
SELECT ALL 76 + - - COUNT ( DISTINCT + 62 ) * - 40 AS col1, 77 * + + NULLIF ( + ( + MIN ( - 20 ) ), + 73 ) AS col1
----
36
-1540

query II rowsort
SELECT ALL - + 15 AS col0, - 49 + - 97 + + 1 AS col1
----
-15
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8271
SELECT DISTINCT 24 + + CASE + CASE - - ( 74 ) WHEN ( - - 56 ) + SUM( ALL + 64 ) THEN + 72 + + NULLIF ( - ( 26 ), + - 14 ) WHEN ( MAX( ALL 50 ) ) * CAST( NULL AS SIGNED ) * - 1 THEN NULL ELSE NULL END WHEN 31 + - MIN( DISTINCT + ( + 74 ) ) + + 38 / 71 + - 17 THEN 84 * + 4 END + - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT 24 + + CASE + CASE - - ( 74 ) WHEN ( - - 56 ) + SUM ( ALL + 64 ) THEN + 72 + + NULLIF ( - ( 26 ), + - 14 ) WHEN ( MAX ( ALL 50 ) ) * CAST ( NULL AS INTEGER ) * - 1 THEN NULL ELSE NULL END WHEN 31 + - MIN ( DISTINCT + ( + 74 ) ) + + 38 / 71 + - 17 THEN 84 * + 4 END + - 80 AS col1
----
NULL

query II rowsort
SELECT ALL + 36 - + 77 + - 15 + 82 AS col0, 83
----
26
83

query I rowsort
SELECT + + 31 * + 9 AS col2
----
279

query II rowsort
SELECT - + 92, - 33 + - 72 * 50 col2
----
-92
-3633

query II rowsort
SELECT ALL 57 AS col1, 38
----
57
38

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8276
SELECT ALL CAST( NULL AS DECIMAL ) - 44, + 42 AS col2
----
NULL
42

skipif mysql # not compatible
query II rowsort label-8276
SELECT ALL CAST ( NULL AS REAL ) - 44, + 42 AS col2
----
NULL
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8277
SELECT + 48 * + MIN( 7 ) + + 70 + - CAST( + - 3 AS SIGNED ) + 23 AS col2
----
432

skipif mysql # not compatible
query I rowsort label-8277
SELECT + 48 * + MIN ( 7 ) + + 70 + - CAST ( + - 3 AS INTEGER ) + 23 AS col2
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT DISTINCT MIN( - ( - 57 ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT MIN ( - ( - 57 ) ) AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8279
SELECT - + CAST( 75 AS SIGNED ) + + COUNT( * ) + - 5 * 54 * - ( 83 ) * + 12 * - - 16 + + - 80 AS col2
----
4302566

skipif mysql # not compatible
query I rowsort label-8279
SELECT - + CAST ( 75 AS INTEGER ) + + COUNT ( * ) + - 5 * 54 * - ( 83 ) * + 12 * - - 16 + + - 80 AS col2
----
4302566

query I rowsort
SELECT - 98 + + + 39 - 89 * - 41 AS col2
----
3590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8281
SELECT + 37 + - CASE + 54 WHEN + - 12 + MIN( ALL + - 32 ) * - 2 THEN 53 - - 68 + - COALESCE ( + 16, - 49 ) + 75 * - CAST( 11 AS SIGNED ) DIV - 54 ELSE - NULLIF ( 53, + MAX( 80 ) ) + + 47 END
----
43

skipif mysql # not compatible
query I rowsort label-8281
SELECT + 37 + - CASE + 54 WHEN + - 12 + MIN ( ALL + - 32 ) * - 2 THEN 53 - - 68 + - COALESCE ( + 16, - 49 ) + 75 * - CAST ( 11 AS INTEGER ) / - 54 ELSE - NULLIF ( 53, + MAX ( 80 ) ) + + 47 END
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-8282
SELECT + - 54 DIV - - 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8282
SELECT + - 54 / - - 86 AS col0
----
0

query I rowsort
SELECT DISTINCT + + 51 * - 11 AS col2
----
-561

query I rowsort
SELECT ALL + ( + + 76 ) * + 53 AS col2
----
4028

query I rowsort
SELECT ALL COALESCE ( + 42, - 51 ) AS col2
----
42

query I rowsort
SELECT - 55 * + 40 col1
----
-2200

onlyif mysql # aggregate syntax: 
query II rowsort label-8287
SELECT ALL + COUNT( * ) + + 22 AS col2, + COUNT( * )
----
23
1

skipif mysql # not compatible
query II rowsort label-8287
SELECT ALL + COUNT ( * ) + + 22 AS col2, + COUNT ( * )
----
23
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8288
SELECT - MIN( + 8 ) DIV + + 11 + - 61 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-8288
SELECT - MIN ( + 8 ) / + + 11 + - 61 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT ALL + 21 * - 83 / - SUM( - - 25 ) + 60 + + ( CASE 72 WHEN 14 * - 26 THEN + 50 END ) * + 26 * - 19 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL + 21 * - 83 / - SUM ( - - 25 ) + 60 + + ( CASE 72 WHEN 14 * - 26 THEN + 50 END ) * + 26 * - 19 * - COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT - 19 * + 83, + 78 AS col1
----
-1577
78

query II rowsort
SELECT 47 * + NULLIF ( - 9, - - 16 ) + + 29 AS col2, 68 AS col0
----
-394
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8292
SELECT ( + + CAST( - - 45 AS SIGNED ) ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-8292
SELECT ( + + CAST ( - - 45 AS INTEGER ) ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT ALL + COUNT( + + 67 )
----
1

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL + COUNT ( + + 67 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8294
SELECT COALESCE ( COUNT( * ), 7 DIV + AVG ( + CASE + + 64 WHEN - 2 * CAST( + 68 AS SIGNED ) THEN + ( CASE + - 71 WHEN - 83 THEN + 54 + - - 72 END ) DIV - 18 * - + ( + ( + CAST( NULL AS SIGNED ) ) ) WHEN + + 11 THEN NULL END ) DIV - ( COALESCE ( + NULLIF ( 34, 66 ), - - 64 ) ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8294
SELECT COALESCE ( COUNT ( * ), 7 / + AVG ( + CASE + + 64 WHEN - 2 * CAST ( + 68 AS INTEGER ) THEN + ( CASE + - 71 WHEN - 83 THEN + 54 + - - 72 END ) / - 18 * - + ( + ( + CAST ( NULL AS INTEGER ) ) ) WHEN + + 11 THEN NULL END ) / - ( COALESCE ( + NULLIF ( 34, 66 ), - - 64 ) ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT + ( + + 20 ) * + - 98 + - COUNT( * ) AS col0
----
-1961

skipif mysql # not compatible
query I rowsort label-8295
SELECT + ( + + 20 ) * + - 98 + - COUNT ( * ) AS col0
----
-1961

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT DISTINCT COUNT( * ) * - COUNT( * ) - - 21
----
20

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) - - 21
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT ALL 16 * + COUNT( * ) * + + 59 + + 50 - - 43 - + 20 + + AVG ( DISTINCT + - 16 ) + - ( CASE - 3 WHEN - 76 THEN NULL WHEN + + 5 * 77 + - 84 + - - 8 THEN NULL WHEN - - 32 + - 93 THEN - 65 + + 99 + 75 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL 16 * + COUNT ( * ) * + + 59 + + 50 - - 43 - + 20 + + AVG ( DISTINCT + - 16 ) + - ( CASE - 3 WHEN - 76 THEN NULL WHEN + + 5 * 77 + - 84 + - - 8 THEN NULL WHEN - - 32 + - 93 THEN - 65 + + 99 + 75 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT ALL - 62 * + + 53 - - COUNT( * )
----
-3285

skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL - 62 * + + 53 - - COUNT ( * )
----
-3285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8299
SELECT + CASE - + ( + CAST( + COUNT( * ) AS SIGNED ) ) WHEN + 58 THEN 52 * + CAST( NULL AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT + CASE - + ( + CAST ( + COUNT ( * ) AS INTEGER ) ) WHEN + 58 THEN 52 * + CAST ( NULL AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT - COALESCE ( - MAX( DISTINCT + 49 ), - 75 ) - - 4 - + ( - 98 ) + - - 16
----
167

skipif mysql # not compatible
query I rowsort label-8300
SELECT - COALESCE ( - MAX ( DISTINCT + 49 ), - 75 ) - - 4 - + ( - 98 ) + - - 16
----
167

query II rowsort
SELECT + 79 * - - COALESCE ( - 88, 46, 0 ) AS col2, 63
----
-6952
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT - 23 - - - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-8302
SELECT - 23 - - - COUNT ( * )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8303
SELECT ALL + 33 * CASE + - COUNT( DISTINCT + 75 ) WHEN COUNT( * ) - - 32 * - ( - + 91 ) THEN NULL WHEN 40 THEN - COUNT( * ) * + 95 + - NULLIF ( - 0, - CAST( NULL AS SIGNED ) + + 49 + + + 34 ) END - + - 47 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL + 33 * CASE + - COUNT ( DISTINCT + 75 ) WHEN COUNT ( * ) - - 32 * - ( - + 91 ) THEN NULL WHEN 40 THEN - COUNT ( * ) * + 95 + - NULLIF ( - 0, - CAST ( NULL AS INTEGER ) + + 49 + + + 34 ) END - + - 47 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8304
SELECT + MAX( 60 ), 63 * COUNT( - 81 ) + - - SUM( ALL 49 ) col1
----
60
112

skipif mysql # not compatible
query II rowsort label-8304
SELECT + MAX ( 60 ), 63 * COUNT ( - 81 ) + - - SUM ( ALL 49 ) col1
----
60
112

query I rowsort
SELECT ALL + - 24 * + 38 - + + 60 AS col0
----
-972

onlyif mysql # aggregate syntax: 
query II rowsort label-8306
SELECT + - COUNT( * ) * + 29, - 17 + - ( + 36 ) * + + 84 * + 38 AS col1
----
-29
-114929

skipif mysql # not compatible
query II rowsort label-8306
SELECT + - COUNT ( * ) * + 29, - 17 + - ( + 36 ) * + + 84 * + 38 AS col1
----
-29
-114929

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT - 45 * COALESCE ( 93, + 25 + - 32 + 67, COUNT( * ) + + ( - 68 ) - + 52 * - 59 ) - - MIN( DISTINCT + 29 ) * + 54
----
-2619

skipif mysql # not compatible
query I rowsort label-8307
SELECT - 45 * COALESCE ( 93, + 25 + - 32 + 67, COUNT ( * ) + + ( - 68 ) - + 52 * - 59 ) - - MIN ( DISTINCT + 29 ) * + 54
----
-2619

onlyif mysql # aggregate syntax: 
query II rowsort label-8308
SELECT ALL 42 * - + COUNT( * ) AS col2, - 12 * + 24 * + - NULLIF ( + + 29, + 0 ) + + 60 col1
----
-42
8412

skipif mysql # not compatible
query II rowsort label-8308
SELECT ALL 42 * - + COUNT ( * ) AS col2, - 12 * + 24 * + - NULLIF ( + + 29, + 0 ) + + 60 col1
----
-42
8412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8309
SELECT - COUNT( * ) * - 37 * + - CAST( - - 33 AS SIGNED ) - 86 DIV 1 AS col1
----
-1307

skipif mysql # not compatible
query I rowsort label-8309
SELECT - COUNT ( * ) * - 37 * + - CAST ( - - 33 AS INTEGER ) - 86 / 1 AS col1
----
-1307

query I rowsort
SELECT + 82 * - ( + ( + + 66 ) ) * + 73 * + + 40
----
-15803040

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT DISTINCT - COALESCE ( COUNT( * ), + 95 ) * - 15 + + 17
----
32

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT - COALESCE ( COUNT ( * ), + 95 ) * - 15 + + 17
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8312
SELECT + - 61 + + 60 AS col1, - 94 + + - CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8312
SELECT + - 61 + + 60 AS col1, - 94 + + - CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT + + MIN( DISTINCT + 83 ) * - 12 AS col0
----
-996

skipif mysql # not compatible
query I rowsort label-8313
SELECT + + MIN ( DISTINCT + 83 ) * - 12 AS col0
----
-996

query I rowsort
SELECT ALL + 87 + + 66
----
153

query I rowsort
SELECT DISTINCT NULLIF ( - ( + 6 ), 21 ) * - - 32 AS col2
----
-192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8316
SELECT - CAST( NULL AS SIGNED ), - 57 * ( + SUM( - + 23 ) ) AS col1
----
NULL
1311

skipif mysql # not compatible
query II rowsort label-8316
SELECT - CAST ( NULL AS INTEGER ), - 57 * ( + SUM ( - + 23 ) ) AS col1
----
NULL
1311

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8317
SELECT ALL 61 + - CAST( NULL AS DECIMAL ) / - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL 61 + - CAST ( NULL AS REAL ) / - 56
----
NULL

query I rowsort
SELECT + 73 * 33
----
2409

query I rowsort
SELECT + 43 + - 45
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8320
SELECT ALL CASE 54 WHEN + 10 THEN NULL WHEN + - CAST( NULL AS SIGNED ) + 61 - - 91 * + + 91 * + CAST( - 68 AS SIGNED ) * + 27 * - + 58 + + + CAST( NULL AS SIGNED ) THEN - 11 * + AVG ( ALL 7 ) ELSE NULL END + 24 * + - 71 * + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL CASE 54 WHEN + 10 THEN NULL WHEN + - CAST ( NULL AS INTEGER ) + 61 - - 91 * + + 91 * + CAST ( - 68 AS INTEGER ) * + 27 * - + 58 + + + CAST ( NULL AS INTEGER ) THEN - 11 * + AVG ( ALL 7 ) ELSE NULL END + 24 * + - 71 * + 40 AS col1
----
NULL

query II rowsort
SELECT 69 AS col2, - 93
----
69
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-8322
SELECT - 25 DIV - + 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8322
SELECT - 25 / - + 36 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8323
SELECT + 37 - + CAST( - COALESCE ( 77, + COUNT( * ), - + 9 ) AS SIGNED ) + - - 85 * MIN( DISTINCT + - 37 ) * - - 15
----
-47061

skipif mysql # not compatible
query I rowsort label-8323
SELECT + 37 - + CAST ( - COALESCE ( 77, + COUNT ( * ), - + 9 ) AS INTEGER ) + - - 85 * MIN ( DISTINCT + - 37 ) * - - 15
----
-47061

query I rowsort
SELECT - 42 * + 31
----
-1302

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8325
SELECT - 58 DIV - + 97 * + 68 + + 89 * 18 DIV - - NULLIF ( 84, - 11 * + ( 71 ) DIV + 89 + + 80 * CAST( + COUNT( * ) AS DECIMAL ) * - 94 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-8325
SELECT - 58 / - + 97 * + 68 + + 89 * 18 / - - NULLIF ( 84, - 11 * + ( 71 ) / + 89 + + 80 * CAST ( + COUNT ( * ) AS REAL ) * - 94 ) AS col1
----
19

query I rowsort
SELECT ALL - 24 * - 37
----
888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8327
SELECT SUM( + 33 ) DIV - 38 + + NULLIF ( 14, 61 + + + CAST( NULL AS SIGNED ) * + - 78 * + - COUNT( * ) * - 98 * - COALESCE ( + - 7, COALESCE ( 54, + 99 DIV 44 ) + - + COUNT( * ) * 93 * + 19, - 52 + COALESCE ( - 37, + COUNT( * ) ), - 77 + 40 + 61 ) + 69 + + MAX( ALL - 83 ) DIV + NULLIF ( COALESCE ( + 35, 86 ), + 74 ) * + AVG ( ALL - 71 ) * - 90 + COUNT( * ) * 26 )
----
14

skipif mysql # not compatible
query I rowsort label-8327
SELECT SUM ( + 33 ) / - 38 + + NULLIF ( 14, 61 + + + CAST ( NULL AS INTEGER ) * + - 78 * + - COUNT ( * ) * - 98 * - COALESCE ( + - 7, COALESCE ( 54, + 99 / 44 ) + - + COUNT ( * ) * 93 * + 19, - 52 + COALESCE ( - 37, + COUNT ( * ) ), - 77 + 40 + 61 ) + 69 + + MAX ( ALL - 83 ) / + NULLIF ( COALESCE ( + 35, 86 ), + 74 ) * + AVG ( ALL - 71 ) * - 90 + COUNT ( * ) * 26 )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8328
SELECT ALL + MAX( - + 26 ) / - NULLIF ( - MIN( + + 48 ), 52 * - 28 + 3 - 85 ) + - + 85 + - 49 + - + CAST( - + 62 AS DECIMAL ) + + 91 * + + 21 + + CAST( NULL AS SIGNED ) + - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL + MAX ( - + 26 ) / - NULLIF ( - MIN ( + + 48 ), 52 * - 28 + 3 - 85 ) + - + 85 + - 49 + - + CAST ( - + 62 AS REAL ) + + 91 * + + 21 + + CAST ( NULL AS INTEGER ) + - 21 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8329
SELECT ALL CAST( + 35 AS SIGNED ) * - 24 AS col1
----
-840

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL CAST ( + 35 AS INTEGER ) * - 24 AS col1
----
-840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8330
SELECT DISTINCT CAST( NULL AS SIGNED ) - - + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - + 90
----
NULL

query II rowsort
SELECT + 41, 36 * + 75 + 73 AS col1
----
41
2773

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8332
SELECT CAST( NULL AS SIGNED ) + + 63 + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8332
SELECT CAST ( NULL AS INTEGER ) + + 63 + + 56
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8333
SELECT + COUNT( * ) * - 25 * + + 75 DIV - + COUNT( * ) + 5
----
1880

skipif mysql # not compatible
query I rowsort label-8333
SELECT + COUNT ( * ) * - 25 * + + 75 / - + COUNT ( * ) + 5
----
1880

query I rowsort
SELECT ALL + 52 - + + 82 + ( 28 ) * + - 65
----
-1850

onlyif mysql # aggregate syntax: 
query II rowsort label-8335
SELECT + 96 AS col1, COUNT( * ) * 32 * 69 * + - 38 * - - 78
----
96
-6544512

skipif mysql # not compatible
query II rowsort label-8335
SELECT + 96 AS col1, COUNT ( * ) * 32 * 69 * + - 38 * - - 78
----
96
-6544512

query I rowsort
SELECT 81 + + 9 - 33 + + 88 * + 96 col2
----
8505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8337
SELECT 14 * - CAST( - 88 AS SIGNED ) + 59 AS col2
----
1291

skipif mysql # not compatible
query I rowsort label-8337
SELECT 14 * - CAST ( - 88 AS INTEGER ) + 59 AS col2
----
1291

query II rowsort
SELECT ALL - + 77, + 70 AS col1
----
-77
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8339
SELECT - COUNT( * ) DIV 20 + - 38 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-8339
SELECT - COUNT ( * ) / 20 + - 38 AS col0
----
-38

query I rowsort
SELECT ALL - + 84 * - 23 AS col0
----
1932

query I rowsort
SELECT DISTINCT - 26 * - + 78 AS col1
----
2028

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT CASE ( 37 ) WHEN + MAX( - 78 ) THEN 26 * 77 * AVG ( 25 ) / - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8342
SELECT CASE ( 37 ) WHEN + MAX ( - 78 ) THEN 26 * 77 * AVG ( 25 ) / - COUNT ( * ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 72 * - 61 AS col0
----
-4392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8344
SELECT ALL - + 9 * - 55 * - 31 col2, - CAST( CASE - COALESCE ( - 98, - - COUNT( * ), + COALESCE ( 54, - - 70 * - MAX( ALL + 63 ) * + COUNT( * ) * - + 47, - - 54, 18 ), 61 - + + 69 ) WHEN + 1 THEN AVG ( 20 ) WHEN + + 74 THEN NULL END AS SIGNED ) + + ( MAX( + COALESCE ( - 87, - - 20, 50 ) ) ) - + 21 AS col0
----
-15345
NULL

skipif mysql # not compatible
query II rowsort label-8344
SELECT ALL - + 9 * - 55 * - 31 col2, - CAST ( CASE - COALESCE ( - 98, - - COUNT ( * ), + COALESCE ( 54, - - 70 * - MAX ( ALL + 63 ) * + COUNT ( * ) * - + 47, - - 54, 18 ), 61 - + + 69 ) WHEN + 1 THEN AVG ( 20 ) WHEN + + 74 THEN NULL END AS INTEGER ) + + ( MAX ( + COALESCE ( - 87, - - 20, 50 ) ) ) - + 21 AS col0
----
-15345
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8345
SELECT - 96 DIV - - 39 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8345
SELECT - 96 / - - 39 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8346
SELECT + 19 + - 75 DIV - 34 + 17 * - 3
----
-30

skipif mysql # not compatible
query I rowsort label-8346
SELECT + 19 + - 75 / - 34 + 17 * - 3
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT MAX( - 98 ) + - 14 * + 9 * 46 AS col0
----
-5894

skipif mysql # not compatible
query I rowsort label-8347
SELECT MAX ( - 98 ) + - 14 * + 9 * 46 AS col0
----
-5894

query I rowsort
SELECT ALL 72 + + 64 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT DISTINCT MAX( 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT MAX ( 95 ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT DISTINCT - 1 + - COUNT( * ) * + 71 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-8350
SELECT DISTINCT - 1 + - COUNT ( * ) * + 71 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT ALL 7 * + MIN( DISTINCT 47 ) AS col2
----
329

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL 7 * + MIN ( DISTINCT 47 ) AS col2
----
329

query I rowsort
SELECT 27 + - 72 AS col0
----
-45

query I rowsort
SELECT 63 + + - 55 AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8354
SELECT DISTINCT 42 + ( + + COALESCE ( 22, - + COUNT( DISTINCT - + 82 ) * + CAST( NULL AS SIGNED ) DIV + ( + 1 ) + - + 11 DIV - - 38 - - 59 ) ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-8354
SELECT DISTINCT 42 + ( + + COALESCE ( 22, - + COUNT ( DISTINCT - + 82 ) * + CAST ( NULL AS INTEGER ) / + ( + 1 ) + - + 11 / - - 38 - - 59 ) ) AS col0
----
64

query II rowsort
SELECT ALL 1 - - 8, + 69 + - 46 AS col2
----
9
23

query I rowsort
SELECT ALL 71 * - 21 AS col0
----
-1491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8357
SELECT 53 + MIN( DISTINCT + + 11 ) + + MIN( ALL 54 ) DIV + 84 + + - COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8357
SELECT 53 + MIN ( DISTINCT + + 11 ) + + MIN ( ALL 54 ) / + 84 + + - COUNT ( * ) AS col2
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-8358
SELECT DISTINCT 95 DIV 85 col2
----
1

skipif mysql # not compatible
query I rowsort label-8358
SELECT DISTINCT 95 / 85 col2
----
1

query I rowsort
SELECT ( + - 23 ) + 6
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8360
SELECT MAX( ALL + 18 ) + - COALESCE ( + 56, + + 33 DIV - - 71 )
----
-38

skipif mysql # not compatible
query I rowsort label-8360
SELECT MAX ( ALL + 18 ) + - COALESCE ( + 56, + + 33 / - - 71 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT ALL 41 - + COUNT( * ) - + 5 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL 41 - + COUNT ( * ) - + 5 AS col0
----
35

query I rowsort
SELECT 42 * + 87 AS col0
----
3654

query I rowsort
SELECT 91 * - + 71 AS col0
----
-6461

query I rowsort
SELECT ALL 94 * + - 4 AS col2
----
-376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8365
SELECT DISTINCT - COALESCE ( + 23, + CAST( - COUNT( ALL 68 ) AS SIGNED ), 61 * + 72 + 76 - + 33 DIV 22 * + + 36 + - COUNT( * ) ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT - COALESCE ( + 23, + CAST ( - COUNT ( ALL 68 ) AS INTEGER ), 61 * + 72 + 76 - + 33 / 22 * + + 36 + - COUNT ( * ) ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT 29 * - COUNT( * ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-8366
SELECT 29 * - COUNT ( * ) AS col1
----
-29

query I rowsort
SELECT ALL - - 49 * + 4 + - 94
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8368
SELECT DISTINCT - + CAST( 32 AS SIGNED ) AS col1, CAST( NULL AS SIGNED ) + - + 66 AS col1
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-8368
SELECT DISTINCT - + CAST ( 32 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) + - + 66 AS col1
----
-32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT ALL + 97 * - 31 + + COUNT( * ) AS col1
----
-3006

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL + 97 * - 31 + + COUNT ( * ) AS col1
----
-3006

query I rowsort
SELECT ALL + + 44 + + 58 - 67 AS col1
----
35

query I rowsort
SELECT ALL - 31 + + 3 - + 90 - - 82 + - 9 + - 1 * + - 41 - + + ( 15 ) * - 69
----
1031

onlyif mysql # aggregate syntax: 
query II rowsort label-8372
SELECT - COUNT( * ) * MIN( ALL + ( + 33 ) ) + - 87 AS col0, - 3 AS col0
----
-120
-3

skipif mysql # not compatible
query II rowsort label-8372
SELECT - COUNT ( * ) * MIN ( ALL + ( + 33 ) ) + - 87 AS col0, - 3 AS col0
----
-120
-3

query I rowsort
SELECT DISTINCT + 39 + - + 9 + 53
----
83

query I rowsort
SELECT ALL - 81 * - 30
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT DISTINCT + - 2 + COUNT( * ) - - 39
----
38

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT + - 2 + COUNT ( * ) - - 39
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT DISTINCT - + COUNT( * ) * + 16 * - 88
----
1408

skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT - + COUNT ( * ) * + 16 * - 88
----
1408

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8377
SELECT DISTINCT + 79 + - 53 - - CAST( NULL AS DECIMAL ) - + 12 AS col2, - 97 AS col0
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-8377
SELECT DISTINCT + 79 + - 53 - - CAST ( NULL AS REAL ) - + 12 AS col2, - 97 AS col0
----
NULL
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT ALL - - 90 * MIN( - + 82 ) * 37
----
-273060

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL - - 90 * MIN ( - + 82 ) * 37
----
-273060

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT DISTINCT SUM( ALL + 23 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT SUM ( ALL + 23 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT 21 * + - COUNT( * ) col1
----
-21

skipif mysql # not compatible
query I rowsort label-8380
SELECT 21 * + - COUNT ( * ) col1
----
-21

query II rowsort
SELECT - 58 AS col2, + 97 - - 60 * + 96
----
-58
5857

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT ALL COUNT( + - 97 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL COUNT ( + - 97 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT DISTINCT SUM( + 32 )
----
32

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT SUM ( + 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT ALL 1 - - 37 + + + COUNT( * ) * + 98
----
136

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL 1 - - 37 + + + COUNT ( * ) * + 98
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-8385
SELECT ALL 60 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL 60 / - 64
----
0

query I rowsort
SELECT 46 * + + 62 * 42 AS col1
----
119784

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT ALL COUNT( ALL + + 18 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL COUNT ( ALL + + 18 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 70 - - 82 AS col1
----
12

query I rowsort
SELECT ALL 54 * 41 AS col0
----
2214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8390
SELECT ALL - ( 5 ) - + + COUNT( * ) + - COUNT( * ) + - + 28 + - 33 * 59 DIV - - 53, 34 - + ( - 69 ) + + 15 + - NULLIF ( - CASE + 3 WHEN + + 8 * - 47 * + - 16 THEN NULL WHEN NULLIF ( - + 56, + CAST( NULL AS SIGNED ) ) THEN - - 25 * - + 27 + COALESCE ( + 7, - 63 * - - ( 45 ), + 62 DIV + ( 98 ) * 23 + + CASE + 48 WHEN + - 70 * 7 THEN NULL WHEN + - 61 + - 4 + 22 + 19 * 62 THEN 1 WHEN - 43 + - 31 * - 0 THEN + 41 END ) - 39 WHEN 13 * CAST( NULL AS SIGNED ) THEN NULL WHEN 17 * 33 THEN NULL ELSE NULL END, 11 ) * - 41 AS col2
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-8390
SELECT ALL - ( 5 ) - + + COUNT ( * ) + - COUNT ( * ) + - + 28 + - 33 * 59 / - - 53, 34 - + ( - 69 ) + + 15 + - NULLIF ( - CASE + 3 WHEN + + 8 * - 47 * + - 16 THEN NULL WHEN NULLIF ( - + 56, + CAST ( NULL AS INTEGER ) ) THEN - - 25 * - + 27 + COALESCE ( + 7, - 63 * - - ( 45 ), + 62 / + ( 98 ) * 23 + + CASE + 48 WHEN + - 70 * 7 THEN NULL WHEN + - 61 + - 4 + 22 + 19 * 62 THEN 1 WHEN - 43 + - 31 * - 0 THEN + 41 END ) - 39 WHEN 13 * CAST ( NULL AS INTEGER ) THEN NULL WHEN 17 * 33 THEN NULL ELSE NULL END, 11 ) * - 41 AS col2
----
-71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT - COUNT( * ) + + 16 * + 13
----
207

skipif mysql # not compatible
query I rowsort label-8391
SELECT - COUNT ( * ) + + 16 * + 13
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT - SUM( + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-8392
SELECT - SUM ( + 43 )
----
-43

query I rowsort
SELECT DISTINCT - 34 * + + 21
----
-714

query I rowsort
SELECT - 6 * + 78
----
-468

query I rowsort
SELECT - 24 + 39
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT + COUNT( * ) * - + 69
----
-69

skipif mysql # not compatible
query I rowsort label-8396
SELECT + COUNT ( * ) * - + 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT - COUNT( DISTINCT - 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-8397
SELECT - COUNT ( DISTINCT - 96 )
----
-1

query II rowsort
SELECT ALL 90, - 75 AS col0
----
90
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8399
SELECT ALL + CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL + CAST ( + CAST ( NULL AS REAL ) AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - 35 * + 50
----
-1750

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT + SUM( 35 ) + - 11 + - 26 * + 93 * - 42 AS col2
----
101580

skipif mysql # not compatible
query I rowsort label-8401
SELECT + SUM ( 35 ) + - 11 + - 26 * + 93 * - 42 AS col2
----
101580

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT ALL + + COUNT( DISTINCT - 7 ) * - 86
----
-86

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL + + COUNT ( DISTINCT - 7 ) * - 86
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8403
SELECT ALL + 77, + 64 DIV NULLIF ( - - 85, + 47 ) * NULLIF ( - + SUM( - 63 ), 38 + + 5 ) - - 77 AS col1
----
77
77

skipif mysql # not compatible
query II rowsort label-8403
SELECT ALL + 77, + 64 / NULLIF ( - - 85, + 47 ) * NULLIF ( - + SUM ( - 63 ), 38 + + 5 ) - - 77 AS col1
----
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT ALL - 98 * - 51 + COUNT( * )
----
4999

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL - 98 * - 51 + COUNT ( * )
----
4999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8405
SELECT + 26 * CAST( NULL AS SIGNED ) - NULLIF ( + + CAST( - 34 AS SIGNED ), + 70 ) + + + 5 * + 94 + - - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8405
SELECT + 26 * CAST ( NULL AS INTEGER ) - NULLIF ( + + CAST ( - 34 AS INTEGER ), + 70 ) + + + 5 * + 94 + - - 93 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8406
SELECT - + 21 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-8406
SELECT - + 21 / 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT + NULLIF ( COUNT( * ), 31 ) * + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8407
SELECT + NULLIF ( COUNT ( * ), 31 ) * + COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8408
SELECT + 38 DIV NULLIF ( 9, ( - 15 ) * - + ( + + 54 ) * - 33 * - 21 * - COALESCE ( 93, 63 * - + ( + MAX( DISTINCT + 70 ) ) ) + + - 47 - + + CASE 8 WHEN 4 THEN NULL WHEN + + SUM( + - 92 ) THEN NULL WHEN - + 5 + 69 + - 24 DIV 29 + ( - 88 ) DIV COUNT( * ) THEN NULL ELSE COUNT( * ) END * - 25 DIV - + 60 + 9 + + 81 ) * - 5 + 82 * 71
----
5802

skipif mysql # not compatible
query I rowsort label-8408
SELECT + 38 / NULLIF ( 9, ( - 15 ) * - + ( + + 54 ) * - 33 * - 21 * - COALESCE ( 93, 63 * - + ( + MAX ( DISTINCT + 70 ) ) ) + + - 47 - + + CASE 8 WHEN 4 THEN NULL WHEN + + SUM ( + - 92 ) THEN NULL WHEN - + 5 + 69 + - 24 / 29 + ( - 88 ) / COUNT ( * ) THEN NULL ELSE COUNT ( * ) END * - 25 / - + 60 + 9 + + 81 ) * - 5 + 82 * 71
----
5802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8409
SELECT DISTINCT - 93 / - - ( - - ( + + MAX( ALL CAST( NULL AS SIGNED ) ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT - 93 / - - ( - - ( + + MAX ( ALL CAST ( NULL AS INTEGER ) ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT ALL - 5 * - 75 + 14 * + COUNT( * ) + - 90
----
299

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL - 5 * - 75 + 14 * + COUNT ( * ) + - 90
----
299

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT ALL NULLIF ( - 2, - + COUNT( * ) / + - COUNT( * ) ) * - 8 + SUM( ALL - + 26 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL NULLIF ( - 2, - + COUNT ( * ) / + - COUNT ( * ) ) * - 8 + SUM ( ALL - + 26 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT ALL + MIN( + ( + 67 ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL + MIN ( + ( + 67 ) ) AS col2
----
67

query I rowsort
SELECT + + NULLIF ( - 58, - - ( + 24 ) ) AS col1
----
-58

query I rowsort
SELECT ALL - ( - 50 ) * - ( + + 24 )
----
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT ALL - - 55 * - 57 - - - 30 + + COUNT( * )
----
-3164

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL - - 55 * - 57 - - - 30 + + COUNT ( * )
----
-3164

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8416
SELECT DISTINCT - + 89 * - 76 + 31 - + COUNT( * ) * + - 33 - - ( CAST( NULL AS DECIMAL ) ) + - - 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT - + 89 * - 76 + 31 - + COUNT ( * ) * + - 33 - - ( CAST ( NULL AS REAL ) ) + - - 52 AS col0
----
NULL

query I rowsort
SELECT + + 13 * ( - - 81 )
----
1053

query I rowsort
SELECT DISTINCT 16 * + 79
----
1264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8419
SELECT + CASE COUNT( DISTINCT - 82 ) WHEN - 64 - + 14 + - CAST( ( - - ( + ( - 87 ) ) ) AS SIGNED ) THEN NULL WHEN + - 12 THEN NULL WHEN 43 THEN - 79 ELSE - 47 * + 55 END * - + 31 + - - COUNT( * ) * + 22 + + - 30
----
80127

skipif mysql # not compatible
query I rowsort label-8419
SELECT + CASE COUNT ( DISTINCT - 82 ) WHEN - 64 - + 14 + - CAST ( ( - - ( + ( - 87 ) ) ) AS INTEGER ) THEN NULL WHEN + - 12 THEN NULL WHEN 43 THEN - 79 ELSE - 47 * + 55 END * - + 31 + - - COUNT ( * ) * + 22 + + - 30
----
80127

onlyif mysql # aggregate syntax: 
query II rowsort label-8420
SELECT ALL COUNT( * ) AS col0, 1 AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-8420
SELECT ALL COUNT ( * ) AS col0, 1 AS col1
----
1
1

query I rowsort
SELECT 19 * 99 + - 50
----
1831

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT + 14 + - - COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8422
SELECT + 14 + - - COUNT ( * ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT + 72 * ( - - COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-8423
SELECT + 72 * ( - - COUNT ( * ) )
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8424
SELECT ALL + 29 DIV + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL + 29 / + COUNT ( * )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8425
SELECT - 90 + 19 * - COUNT( * ) - - + ( + + CAST( - 73 AS SIGNED ) )
----
-182

skipif mysql # not compatible
query I rowsort label-8425
SELECT - 90 + 19 * - COUNT ( * ) - - + ( + + CAST ( - 73 AS INTEGER ) )
----
-182

query I rowsort
SELECT ALL NULLIF ( - + 36, + 72 - - - 30 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT DISTINCT + 11 * COUNT( * ) * 34
----
374

skipif mysql # not compatible
query I rowsort label-8427
SELECT DISTINCT + 11 * COUNT ( * ) * 34
----
374

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT ALL + 93 * - + COUNT( * ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL + 93 * - + COUNT ( * ) AS col0
----
-93

query I rowsort
SELECT ALL NULLIF ( - 50, 77 )
----
-50

query I rowsort
SELECT - 36 + + + 74 + 35
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8431
SELECT ALL ( - 25 ) col1, COUNT( * ) * - + COUNT( + 34 ) * - 85 - + + 23
----
-25
62

skipif mysql # not compatible
query II rowsort label-8431
SELECT ALL ( - 25 ) col1, COUNT ( * ) * - + COUNT ( + 34 ) * - 85 - + + 23
----
-25
62

query II rowsort
SELECT - 80 AS col1, 65 + + - 90
----
-80
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT - COUNT( + 12 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8433
SELECT - COUNT ( + 12 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8434
SELECT 47, + 39 / + CASE + 93 WHEN + 31 THEN NULL WHEN ( - COUNT( - 64 ) ) THEN - + COUNT( * ) * 62 ELSE NULL END + 24 AS col1
----
47
NULL

skipif mysql # not compatible
query II rowsort label-8434
SELECT 47, + 39 / + CASE + 93 WHEN + 31 THEN NULL WHEN ( - COUNT ( - 64 ) ) THEN - + COUNT ( * ) * 62 ELSE NULL END + 24 AS col1
----
47
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8435
SELECT DISTINCT ( CAST( - 23 AS SIGNED ) ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT ( CAST ( - 23 AS INTEGER ) ) AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8436
SELECT ALL ( - CAST( + + ( + 56 ) AS SIGNED ) ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL ( - CAST ( + + ( + 56 ) AS INTEGER ) ) AS col1
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8437
SELECT ALL + 67 DIV - CASE + 30 WHEN + COUNT( * ) * - 36 - + 12 THEN NULL ELSE + + 91 END
----
0

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL + 67 / - CASE + 30 WHEN + COUNT ( * ) * - 36 - + 12 THEN NULL ELSE + + 91 END
----
0

query I rowsort
SELECT - ( - 27 ) * - + 48
----
-1296

query II rowsort
SELECT 30 col0, + 0
----
30
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT - SUM( ALL - 65 ) * 43 * - - ( + + 85 ) col1
----
237575

skipif mysql # not compatible
query I rowsort label-8440
SELECT - SUM ( ALL - 65 ) * 43 * - - ( + + 85 ) col1
----
237575

query I rowsort
SELECT ALL - 31 + - - 36 + 36
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8442
SELECT DISTINCT + 76 DIV - 98 * + - 60 * - 60
----
0

skipif mysql # not compatible
query I rowsort label-8442
SELECT DISTINCT + 76 / - 98 * + - 60 * - 60
----
0

query II rowsort
SELECT ALL - 2 AS col1, - ( - - 48 ) - - 31
----
-2
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT ALL + 66 + COUNT( * ) * - NULLIF ( 30, 59 * 71 ) + - COUNT( * ) + - - COUNT( ALL + - ( - - 40 ) ) + + 56 + - 19 * + ( + - 39 ) AS col0
----
833

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL + 66 + COUNT ( * ) * - NULLIF ( 30, 59 * 71 ) + - COUNT ( * ) + - - COUNT ( ALL + - ( - - 40 ) ) + + 56 + - 19 * + ( + - 39 ) AS col0
----
833

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8445
SELECT ALL + - 66 AS col2, - 45 + + COUNT( ALL + 57 ) + - 58 + - + 9 DIV + + 80 - - COUNT( ALL + + 83 ) + COUNT( * ) AS col2
----
-66
-100

skipif mysql # not compatible
query II rowsort label-8445
SELECT ALL + - 66 AS col2, - 45 + + COUNT ( ALL + 57 ) + - 58 + - + 9 / + + 80 - - COUNT ( ALL + + 83 ) + COUNT ( * ) AS col2
----
-66
-100

query I rowsort
SELECT - - 91 * - 26
----
-2366

query I rowsort
SELECT + 10 * + + 49 * 45 AS col0
----
22050

query II rowsort
SELECT + 71, - 79 AS col0
----
71
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-8449
SELECT DISTINCT ( - + 86 ) DIV + 73 + 64 col2
----
63

skipif mysql # not compatible
query I rowsort label-8449
SELECT DISTINCT ( - + 86 ) / + 73 + 64 col2
----
63

query I rowsort
SELECT - 76 * + 62 AS col0
----
-4712

query II rowsort
SELECT 75, 0 + + 34 AS col0
----
75
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8452
SELECT ALL 10 DIV + - 10 - - 28 + 38 DIV - 34 + + 85
----
111

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL 10 / + - 10 - - 28 + 38 / - 34 + + 85
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT MAX( - 48 ) * - + 73 + + + COUNT( * ) + 42
----
3547

skipif mysql # not compatible
query I rowsort label-8453
SELECT MAX ( - 48 ) * - + 73 + + + COUNT ( * ) + 42
----
3547

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT ALL + - SUM( 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL + - SUM ( 37 )
----
-37

query I rowsort
SELECT DISTINCT + ( - 58 ) AS col1
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8456
SELECT + 39 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-8456
SELECT + 39 / 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT - 79 * - COUNT( * ) * - + 21 * - COUNT( * ) col1
----
1659

skipif mysql # not compatible
query I rowsort label-8457
SELECT - 79 * - COUNT ( * ) * - + 21 * - COUNT ( * ) col1
----
1659

onlyif mysql # aggregate syntax: 
query II rowsort label-8458
SELECT 37, 85 * + NULLIF ( - 31, - - 39 + + + 30 - + CASE 99 WHEN - - ( - 20 ) / 18 * 71 * + + 32 * 15 - 36 * - 62 THEN - - 71 + + MAX( - 14 ) + + 95 / ( + 35 ) + - COUNT( * ) + + 87 * - ( COUNT( * ) ) + - 89 * - 48 WHEN - COUNT( * ) + ( 95 ) THEN - 99 * + ( - 79 ) WHEN - 25 THEN 34 ELSE NULL END * + 28 ) col0
----
37
-2635

skipif mysql # not compatible
query II rowsort label-8458
SELECT 37, 85 * + NULLIF ( - 31, - - 39 + + + 30 - + CASE 99 WHEN - - ( - 20 ) / 18 * 71 * + + 32 * 15 - 36 * - 62 THEN - - 71 + + MAX ( - 14 ) + + 95 / ( + 35 ) + - COUNT ( * ) + + 87 * - ( COUNT ( * ) ) + - 89 * - 48 WHEN - COUNT ( * ) + ( 95 ) THEN - 99 * + ( - 79 ) WHEN - 25 THEN 34 ELSE NULL END * + 28 ) col0
----
37
-2635

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8459
SELECT ALL 18 DIV + COALESCE ( - + 3, - COUNT( * ) - + 70 + + 63 + + 40 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL 18 / + COALESCE ( - + 3, - COUNT ( * ) - + 70 + + 63 + + 40 ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT ALL + 85 * + COUNT( * ) * + - COUNT( * ) - + + 12 + + 37 * 45 - + + 86 * - 48 * 91
----
377216

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL + 85 * + COUNT ( * ) * + - COUNT ( * ) - + + 12 + + 37 * 45 - + + 86 * - 48 * 91
----
377216

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT + MAX( ALL + - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-8461
SELECT + MAX ( ALL + - 50 )
----
-50

query I rowsort
SELECT + 90 * + 85
----
7650

query I rowsort
SELECT ALL 78 * 74 * + - 36 AS col2
----
-207792

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT DISTINCT CASE MIN( - 11 ) WHEN + 95 - 83 THEN - COUNT( * ) * 16 * - - 70 WHEN + 76 - - + 92 - 51 * + + 99 THEN NULL ELSE 91 + + + COUNT( * ) * + 40 END * 27 AS col0
----
3537

skipif mysql # not compatible
query I rowsort label-8464
SELECT DISTINCT CASE MIN ( - 11 ) WHEN + 95 - 83 THEN - COUNT ( * ) * 16 * - - 70 WHEN + 76 - - + 92 - 51 * + + 99 THEN NULL ELSE 91 + + + COUNT ( * ) * + 40 END * 27 AS col0
----
3537

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT DISTINCT + 80 + CASE + 52 WHEN - 38 THEN NULL WHEN - + 37 THEN + + 71 WHEN - COUNT( * ) * - + 85 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT + 80 + CASE + 52 WHEN - 38 THEN NULL WHEN - + 37 THEN + + 71 WHEN - COUNT ( * ) * - + 85 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT 81 * - COUNT( + 27 ) * 79 col2
----
-6399

skipif mysql # not compatible
query I rowsort label-8466
SELECT 81 * - COUNT ( + 27 ) * 79 col2
----
-6399

query I rowsort
SELECT 87 - 51 col0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8468
SELECT ALL 76 DIV - 19 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL 76 / - 19 AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8469
SELECT ALL 35 + COUNT( * ) * - ( - 16 ) * - NULLIF ( - 65, - ( + + COUNT( * ) ) + - + 46 * - ( - 33 ) / ( - CASE - 76 WHEN - COUNT( * ) + - 95 / + 75 THEN NULL ELSE - ( + 34 ) - - 58 + - + MAX( DISTINCT - + 80 ) - + 19 + + + CASE - 49 WHEN + 13 THEN - CAST( NULL AS SIGNED ) + - - 10 END END ) * - 66 ) * 30
----
31235

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL 35 + COUNT ( * ) * - ( - 16 ) * - NULLIF ( - 65, - ( + + COUNT ( * ) ) + - + 46 * - ( - 33 ) / ( - CASE - 76 WHEN - COUNT ( * ) + - 95 / + 75 THEN NULL ELSE - ( + 34 ) - - 58 + - + MAX ( DISTINCT - + 80 ) - + 19 + + + CASE - 49 WHEN + 13 THEN - CAST ( NULL AS INTEGER ) + - - 10 END END ) * - 66 ) * 30
----
31235

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT 75 + + - 44 + + 32 * 52 * + COUNT( * ) * 7 col2
----
11679

skipif mysql # not compatible
query I rowsort label-8470
SELECT 75 + + - 44 + + 32 * 52 * + COUNT ( * ) * 7 col2
----
11679

onlyif mysql # aggregate syntax: 
query II rowsort label-8471
SELECT - 94 * COUNT( * ) AS col2, COUNT( * )
----
-94
1

skipif mysql # not compatible
query II rowsort label-8471
SELECT - 94 * COUNT ( * ) AS col2, COUNT ( * )
----
-94
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT ALL - COUNT( * ) + + 72 * - - 40
----
2879

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL - COUNT ( * ) + + 72 * - - 40
----
2879

query II rowsort
SELECT - ( + 99 ) AS col0, + 86 AS col1
----
-99
86

query I rowsort
SELECT ALL + - 63 + + 48
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-8475
SELECT + COUNT( * ) + 85 AS col0, 69 + + - 94 col0
----
86
-25

skipif mysql # not compatible
query II rowsort label-8475
SELECT + COUNT ( * ) + 85 AS col0, 69 + + - 94 col0
----
86
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8476
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col0, 51
----
-1
51

skipif mysql # not compatible
query II rowsort label-8476
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 51
----
-1
51

query I rowsort
SELECT DISTINCT - - 25 + - 84 col2
----
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8478
SELECT CAST( NULL AS DECIMAL ) * 45 + + 93 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT CAST ( NULL AS REAL ) * 45 + + 93 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT - 97 + 94 * + COUNT( * ) + - 44 + 36 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8479
SELECT - 97 + 94 * + COUNT ( * ) + - 44 + 36 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT - - 3 * - + 28 + - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-8480
SELECT - - 3 * - + 28 + - COUNT ( * )
----
-85

query I rowsort
SELECT - 37 + + + 13
----
-24

query I rowsort
SELECT 47 * + - 18 + - + 2
----
-848

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT DISTINCT + - 53 * - MAX( DISTINCT + ( - - 71 ) ) * 71 AS col2
----
267173

skipif mysql # not compatible
query I rowsort label-8483
SELECT DISTINCT + - 53 * - MAX ( DISTINCT + ( - - 71 ) ) * 71 AS col2
----
267173

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT ALL + COUNT( * ) * - 44 col2
----
-44

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL + COUNT ( * ) * - 44 col2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8485
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 65
----
NULL

query II rowsort
SELECT DISTINCT - 24 col0, - 6 col0
----
-24
-6

query I rowsort
SELECT 27 + + 50
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT 36 * + 35 * + - COALESCE ( - 37, 53, + - 87 - + + 92 ) * + COUNT( * ) * + + 67 AS col1
----
3123540

skipif mysql # not compatible
query I rowsort label-8488
SELECT 36 * + 35 * + - COALESCE ( - 37, 53, + - 87 - + + 92 ) * + COUNT ( * ) * + + 67 AS col1
----
3123540

query I rowsort
SELECT 72 * 2
----
144

query II rowsort
SELECT ALL - 7, + 54 * - 65 AS col2
----
-7
-3510

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT MAX( DISTINCT + 11 ) + 81
----
92

skipif mysql # not compatible
query I rowsort label-8491
SELECT MAX ( DISTINCT + 11 ) + 81
----
92

query II rowsort
SELECT 50, 82 + - - 30 col0
----
50
112

query I rowsort
SELECT ALL 95 * + 52 col1
----
4940

query I rowsort
SELECT 62 + - + 84
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT ALL + 30 + + COUNT( * ) - - + 40 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-8495
SELECT ALL + 30 + + COUNT ( * ) - - + 40 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT DISTINCT 76 * + - COUNT( 69 )
----
-76

skipif mysql # not compatible
query I rowsort label-8496
SELECT DISTINCT 76 * + - COUNT ( 69 )
----
-76

query I rowsort
SELECT ALL 29 + - 96 AS col2
----
-67

query II rowsort
SELECT - 45 AS col2, + 59 AS col2
----
-45
59

query I rowsort
SELECT 34 + - 24 * + - 79
----
1930

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT COUNT( * ) * + 4
----
4

skipif mysql # not compatible
query I rowsort label-8500
SELECT COUNT ( * ) * + 4
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT + COUNT( * ) + - 17 col1
----
-16

skipif mysql # not compatible
query I rowsort label-8501
SELECT + COUNT ( * ) + - 17 col1
----
-16

query I rowsort
SELECT ALL - ( 30 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT DISTINCT + MAX( ALL - + ( - + 88 ) )
----
88

skipif mysql # not compatible
query I rowsort label-8503
SELECT DISTINCT + MAX ( ALL - + ( - + 88 ) )
----
88

query I rowsort
SELECT ALL + 23 - 50 AS col0
----
-27

query I rowsort
SELECT DISTINCT - 65 * + + 22 * - 64 AS col1
----
91520

onlyif mysql # aggregate syntax: 
query II rowsort label-8506
SELECT + COUNT( * ) AS col0, - COUNT( * ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-8506
SELECT + COUNT ( * ) AS col0, - COUNT ( * ) AS col0
----
1
-1

query I rowsort
SELECT + 34 * + 63
----
2142

query I rowsort
SELECT DISTINCT - 20 * - 1 col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8509
SELECT DISTINCT - COUNT( * ) * - CASE - 36 WHEN + + 95 THEN + 79 + - - MAX( DISTINCT - 96 ) - + - 33 WHEN + 96 * + ( - 67 ) THEN - CAST( NULL AS SIGNED ) * COUNT( * ) WHEN - 30 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT - COUNT ( * ) * - CASE - 36 WHEN + + 95 THEN + 79 + - - MAX ( DISTINCT - 96 ) - + - 33 WHEN + 96 * + ( - 67 ) THEN - CAST ( NULL AS INTEGER ) * COUNT ( * ) WHEN - 30 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8510
SELECT + 61 DIV - + 4 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-8510
SELECT + 61 / - + 4 AS col0
----
-15

query I rowsort
SELECT ALL 44 * 70
----
3080

query I rowsort
SELECT - + 32 * - + 19 + 45 col1
----
653

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8513
SELECT ALL - 21 / + 88 + + + CAST( NULL AS SIGNED ) + 82 + + - 23 * - 62 / 83 / + 88, + 14 * + 82 * + 17 AS col1
----
NULL
19516

skipif mysql # not compatible
query II rowsort label-8513
SELECT ALL - 21 / + 88 + + + CAST ( NULL AS INTEGER ) + 82 + + - 23 * - 62 / 83 / + 88, + 14 * + 82 * + 17 AS col1
----
NULL
19516

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8514
SELECT DISTINCT - 52 * + CAST( NULL AS DECIMAL ), 34 + 60 AS col1
----
NULL
94

skipif mysql # not compatible
query II rowsort label-8514
SELECT DISTINCT - 52 * + CAST ( NULL AS REAL ), 34 + 60 AS col1
----
NULL
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8515
SELECT DISTINCT + 79 DIV - 12 * + + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT + 79 / - 12 * + + COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT - 34 * - ( - 62 ) * + - 13 * - 28 * - 86 + + COUNT( * ) + + 48
----
65988881

skipif mysql # not compatible
query I rowsort label-8516
SELECT - 34 * - ( - 62 ) * + - 13 * - 28 * - 86 + + COUNT ( * ) + + 48
----
65988881

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8517
SELECT - COUNT( * ) + + 72 DIV - 95 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8517
SELECT - COUNT ( * ) + + 72 / - 95 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT + COUNT( DISTINCT - + 59 )
----
1

skipif mysql # not compatible
query I rowsort label-8518
SELECT + COUNT ( DISTINCT - + 59 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT - 60 + MAX( ALL + ( + 49 ) ) * + 73
----
3517

skipif mysql # not compatible
query I rowsort label-8519
SELECT - 60 + MAX ( ALL + ( + 49 ) ) * + 73
----
3517

query I rowsort
SELECT ALL - 7 * - 11
----
77

query I rowsort
SELECT - 77 * 4
----
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT DISTINCT - 89 * + + ( + + CASE - 24 WHEN + CASE 37 WHEN + 97 THEN + 29 ELSE NULL END * - 91 * - NULLIF ( ( - 37 ), - COUNT( DISTINCT + 72 ) ) THEN - 98 WHEN 72 THEN NULL ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT - 89 * + + ( + + CASE - 24 WHEN + CASE 37 WHEN + 97 THEN + 29 ELSE NULL END * - 91 * - NULLIF ( ( - 37 ), - COUNT ( DISTINCT + 72 ) ) THEN - 98 WHEN 72 THEN NULL ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT ALL + 35 + + 79 + - 65 * - 17 AS col1
----
1219

query I rowsort
SELECT ALL 24 + - 44 col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT ALL - 72 * - + COUNT( * ) * NULLIF ( + 97, + 60 )
----
6984

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL - 72 * - + COUNT ( * ) * NULLIF ( + 97, + 60 )
----
6984

onlyif mysql # DIV for integer division: 
query II rowsort label-8526
SELECT - 41 DIV + 46 * - ( 91 ) AS col2, - 94 AS col1
----
0
-94

skipif mysql # not compatible
query II rowsort label-8526
SELECT - 41 / + 46 * - ( 91 ) AS col2, - 94 AS col1
----
0
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-8527
SELECT + COUNT( * ) * + - 32, - 53 AS col0
----
-32
-53

skipif mysql # not compatible
query II rowsort label-8527
SELECT + COUNT ( * ) * + - 32, - 53 AS col0
----
-32
-53

query I rowsort
SELECT ALL + 99 + + COALESCE ( 73, 1 ) AS col2
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-8529
SELECT - ( + 2 ) - - 49 DIV + 94 * 7 * COALESCE ( - - 29, - ( ( - 75 ) ) + - 15 * + + 39 )
----
-2

skipif mysql # not compatible
query I rowsort label-8529
SELECT - ( + 2 ) - - 49 / + 94 * 7 * COALESCE ( - - 29, - ( ( - 75 ) ) + - 15 * + + 39 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT - COUNT( * ) - + + SUM( DISTINCT - + 26 )
----
25

skipif mysql # not compatible
query I rowsort label-8530
SELECT - COUNT ( * ) - + + SUM ( DISTINCT - + 26 )
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8531
SELECT DISTINCT 23 DIV - 53 * - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8531
SELECT DISTINCT 23 / - 53 * - COUNT ( * ) AS col0
----
0

query II rowsort
SELECT DISTINCT - 60 + + 57 AS col2, 93 AS col1
----
-3
93

query II rowsort
SELECT + - 21 * - + 88 AS col2, - 58
----
1848
-58

query I rowsort
SELECT DISTINCT + 16 * + + 73
----
1168

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT ALL SUM( 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL SUM ( 78 ) AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8536
SELECT + + COUNT( * ) - CAST( - - 10 AS SIGNED ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-8536
SELECT + + COUNT ( * ) - CAST ( - - 10 AS INTEGER ) AS col0
----
-9

query I rowsort
SELECT ALL - 83 * - 19 AS col1
----
1577

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT - - 77 + - COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-8538
SELECT - - 77 + - COUNT ( * ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT ALL - 66 - 89 * + COUNT( * )
----
-155

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL - 66 - 89 * + COUNT ( * )
----
-155

query I rowsort
SELECT + + 2 + 51
----
53

query I rowsort
SELECT ALL + ( - 85 ) * + ( + 12 ) + - 81 + 53 + ( + ( + 40 ) ) + - + 63 + 64 * + - 16 * 69 AS col0
----
-71727

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT + 1 * + MIN( DISTINCT + - 36 ) * + 81 * 91 AS col1
----
-265356

skipif mysql # not compatible
query I rowsort label-8542
SELECT + 1 * + MIN ( DISTINCT + - 36 ) * + 81 * 91 AS col1
----
-265356

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT + - COUNT( * ) * + + ( - - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-8543
SELECT + - COUNT ( * ) * + + ( - - 85 )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8544
SELECT + SUM( + 91 ) + - COALESCE ( + 76, + 29 ) * + CAST( NULL AS SIGNED ) + + + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8544
SELECT + SUM ( + 91 ) + - COALESCE ( + 76, + 29 ) * + CAST ( NULL AS INTEGER ) + + + 86 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8545
SELECT DISTINCT - + 53 * + 51 AS col2, - 64 DIV + 92
----
-2703
0

skipif mysql # not compatible
query II rowsort label-8545
SELECT DISTINCT - + 53 * + 51 AS col2, - 64 / + 92
----
-2703
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8546
SELECT CASE + 68 WHEN + 8 / - - 42 + 26 THEN NULL WHEN + + CAST( + - 72 AS DECIMAL ) THEN NULL WHEN + 28 * + 0 THEN + - 66 / - - 45 END * + - 2 * - + 1 + - 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8546
SELECT CASE + 68 WHEN + 8 / - - 42 + 26 THEN NULL WHEN + + CAST ( + - 72 AS REAL ) THEN NULL WHEN + 28 * + 0 THEN + - 66 / - - 45 END * + - 2 * - + 1 + - 88 AS col1
----
NULL

query II rowsort
SELECT + + 59 * 97 AS col2, 0 + ( + - 98 ) - 90
----
5723
-188

query I rowsort
SELECT ALL 2 * + 3 AS col1
----
6

query II rowsort
SELECT + 53 AS col0, 89 AS col2
----
53
89

query I rowsort
SELECT ALL 30 * - 37 + - - 86 col1
----
-1024

query I rowsort
SELECT DISTINCT 80 * 22 + - 67 AS col0
----
1693

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT - ( - MIN( ALL + 29 ) ) * + 55
----
1595

skipif mysql # not compatible
query I rowsort label-8552
SELECT - ( - MIN ( ALL + 29 ) ) * + 55
----
1595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8553
SELECT + CAST( 48 AS SIGNED ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-8553
SELECT + CAST ( 48 AS INTEGER ) AS col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8554
SELECT + CAST( NULL AS SIGNED ), 71 col1
----
NULL
71

skipif mysql # not compatible
query II rowsort label-8554
SELECT + CAST ( NULL AS INTEGER ), 71 col1
----
NULL
71

query I rowsort
SELECT ALL ( + 55 ) col0
----
55

query I rowsort
SELECT ALL + 18 * + + 28 - - ( + 73 )
----
577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8557
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 41 AS col2
----
NULL

query I rowsort
SELECT ALL + + 57 * + - 46 - - 58
----
-2564

query I rowsort
SELECT ALL + 87 * + 29
----
2523

query I rowsort
SELECT - - 76 + - 2 + 3 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8561
SELECT - MAX( ALL - CAST( + + 38 AS SIGNED ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-8561
SELECT - MAX ( ALL - CAST ( + + 38 AS INTEGER ) ) AS col1
----
38

query I rowsort
SELECT - ( + + 66 ) + + 30
----
-36

query II rowsort
SELECT 2 AS col1, 59 AS col2
----
2
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8564
SELECT ALL 73 DIV + MAX( - 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL 73 / + MAX ( - 59 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8565
SELECT - COALESCE ( COUNT( * ), + 91, - ( + 35 ) DIV - 55 - - COUNT( * ) ) * 51 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-8565
SELECT - COALESCE ( COUNT ( * ), + 91, - ( + 35 ) / - 55 - - COUNT ( * ) ) * 51 AS col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8566
SELECT ALL + CAST( + 87 AS SIGNED ) * - 49 * + 39 AS col0
----
-166257

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL + CAST ( + 87 AS INTEGER ) * - 49 * + 39 AS col0
----
-166257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8567
SELECT CAST( NULL AS SIGNED ) / - COUNT( * ) - + ( - + MAX( DISTINCT - 84 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8567
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) - + ( - + MAX ( DISTINCT - 84 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + - 97 + - + 60 AS col2
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT DISTINCT - MIN( ALL + 67 ) col1
----
-67

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT - MIN ( ALL + 67 ) col1
----
-67

query I rowsort
SELECT - ( - + 69 ) AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8571
SELECT ALL 62 * - CAST( 66 AS SIGNED ) * - 12 + - 94 + + COUNT( * ) AS col2
----
49011

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL 62 * - CAST ( 66 AS INTEGER ) * - 12 + - 94 + + COUNT ( * ) AS col2
----
49011

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8572
SELECT 26 AS col0, - CAST( - + 93 AS SIGNED ) * + 56
----
26
5208

skipif mysql # not compatible
query II rowsort label-8572
SELECT 26 AS col0, - CAST ( - + 93 AS INTEGER ) * + 56
----
26
5208

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT 99 * COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-8573
SELECT 99 * COUNT ( * ) AS col1
----
99

query II rowsort
SELECT DISTINCT - 14 col0, - 25 * 54
----
-14
-1350

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT ALL 20 + + MAX( ALL - 46 ) - + - MAX( + 26 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL 20 + + MAX ( ALL - 46 ) - + - MAX ( + 26 ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8576
SELECT ALL 78 + CAST( NULL AS DECIMAL ) AS col1, - NULLIF ( + - 74, 4 ) AS col2
----
NULL
74

skipif mysql # not compatible
query II rowsort label-8576
SELECT ALL 78 + CAST ( NULL AS REAL ) AS col1, - NULLIF ( + - 74, 4 ) AS col2
----
NULL
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8577
SELECT COUNT( - ( - 45 ) ) - - 96 * 5 * + - 85 AS col0, + 74 col1
----
-40799
74

skipif mysql # not compatible
query II rowsort label-8577
SELECT COUNT ( - ( - 45 ) ) - - 96 * 5 * + - 85 AS col0, + 74 col1
----
-40799
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8578
SELECT ALL + CAST( NULL AS SIGNED ) * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL + CAST ( NULL AS INTEGER ) * - 93
----
NULL

query II rowsort
SELECT 71, + 90 * + 52 AS col2
----
71
4680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8580
SELECT ALL 84 + + - 67 + + 4 DIV - + 37 * COUNT( * ) * 76 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL 84 + + - 67 + + 4 / - + 37 * COUNT ( * ) * 76 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT ALL 48 + - 51 * - + 38 + + MIN( - 70 ) * + 65 AS col0
----
-2564

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL 48 + - 51 * - + 38 + + MIN ( - 70 ) * + 65 AS col0
----
-2564

query II rowsort
SELECT + 62 AS col2, ( - 44 ) col2
----
62
-44

query II rowsort
SELECT 58, + 83 col0
----
58
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8584
SELECT NULLIF ( 31, - 1 ) * 41 + + 83 + CAST( 53 AS SIGNED )
----
1407

skipif mysql # not compatible
query I rowsort label-8584
SELECT NULLIF ( 31, - 1 ) * 41 + + 83 + CAST ( 53 AS INTEGER )
----
1407

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT DISTINCT 54 + - - SUM( DISTINCT 63 ) + + + COUNT( * ) + + COUNT( * ) * 80 * - 95 AS col1
----
-7482

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT 54 + - - SUM ( DISTINCT 63 ) + + + COUNT ( * ) + + COUNT ( * ) * 80 * - 95 AS col1
----
-7482

query II rowsort
SELECT + 27 AS col0, + 79 col1
----
27
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8587
SELECT ( 9 ) + + 1 * MIN( ALL 21 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8587
SELECT ( 9 ) + + 1 * MIN ( ALL 21 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT ALL 76 * - NULLIF ( - 39, - - COUNT( * ) / - + 85 + ( 76 ) * + 52 ) * - 41 + 44 AS col2
----
-121480

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL 76 * - NULLIF ( - 39, - - COUNT ( * ) / - + 85 + ( 76 ) * + 52 ) * - 41 + 44 AS col2
----
-121480

query II rowsort
SELECT + 85 col2, 37
----
85
37

onlyif mysql # aggregate syntax: 
query III rowsort label-8590
SELECT ALL - 70 AS col2, + 97 * - CASE + 12 WHEN + COUNT( * ) + - 73 + - 97 * 8 - + + 24 + - 39 * + + 66 * + + 28 THEN + 56 ELSE 57 END AS col0, - 50
----
-70
-5529
-50

skipif mysql # not compatible
query III rowsort label-8590
SELECT ALL - 70 AS col2, + 97 * - CASE + 12 WHEN + COUNT ( * ) + - 73 + - 97 * 8 - + + 24 + - 39 * + + 66 * + + 28 THEN + 56 ELSE 57 END AS col0, - 50
----
-70
-5529
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-8591
SELECT ALL + 82 DIV - 69
----
-1

skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL + 82 / - 69
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8592
SELECT ALL + + 16 DIV + + COUNT( * ) + - - 69 * 51 + + - 8 AS col1
----
3527

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL + + 16 / + + COUNT ( * ) + - - 69 * 51 + + - 8 AS col1
----
3527

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8593
SELECT DISTINCT COUNT( * ) - - 55 DIV 81 DIV MAX( 67 ) * + COUNT( * ) * + 97
----
1

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT COUNT ( * ) - - 55 / 81 / MAX ( 67 ) * + COUNT ( * ) * + 97
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8594
SELECT ALL - - 49 DIV + NULLIF ( 76, - 42 + - + 11 )
----
0

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL - - 49 / + NULLIF ( 76, - 42 + - + 11 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8595
SELECT 75 - - CAST( - 47 AS SIGNED ) + 38 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8595
SELECT 75 - - CAST ( - 47 AS INTEGER ) + 38 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT - 5 * + + CASE + 36 WHEN 24 THEN + 7 * - 17 WHEN - COUNT( * ) THEN - - ( + 32 ) + - - 38 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8596
SELECT - 5 * + + CASE + 36 WHEN 24 THEN + 7 * - 17 WHEN - COUNT ( * ) THEN - - ( + 32 ) + - - 38 ELSE NULL END col1
----
NULL

query I rowsort
SELECT 34 * + 10 AS col1
----
340

query II rowsort
SELECT ALL - 78, 16 * + 82 AS col2
----
-78
1312

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT ALL SUM( DISTINCT - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL SUM ( DISTINCT - 4 )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8600
SELECT NULLIF ( + CAST( NULL AS SIGNED ), - - COUNT( * ) / + + COUNT( * ) ) * + - 3 * + 28 * - 22 * + 37 * + - CASE - 48 WHEN - 46 THEN - 52 ELSE - 78 - 8 + + ( - 15 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8600
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), - - COUNT ( * ) / + + COUNT ( * ) ) * + - 3 * + 28 * - 22 * + 37 * + - CASE - 48 WHEN - 46 THEN - 52 ELSE - 78 - 8 + + ( - 15 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8601
SELECT ALL - NULLIF ( + CAST( NULL AS SIGNED ), MAX( ALL 19 ) * + + 64 * - + MIN( DISTINCT - + 13 ) * - + 42 ) + CASE - + SUM( + 50 ) WHEN - 56 THEN NULL WHEN - - 43 / + 27 * + NULLIF ( + CAST( + + 25 AS SIGNED ), SUM( DISTINCT + 46 ) ) + + - 69 THEN + 61 + - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL - NULLIF ( + CAST ( NULL AS INTEGER ), MAX ( ALL 19 ) * + + 64 * - + MIN ( DISTINCT - + 13 ) * - + 42 ) + CASE - + SUM ( + 50 ) WHEN - 56 THEN NULL WHEN - - 43 / + 27 * + NULLIF ( + CAST ( + + 25 AS INTEGER ), SUM ( DISTINCT + 46 ) ) + + - 69 THEN + 61 + - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8602
SELECT - MAX( - CAST( NULL AS SIGNED ) ) - + + COUNT( * ) * + COALESCE ( - 66, 37, + 46 ) / - 8 + - + 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT - MAX ( - CAST ( NULL AS INTEGER ) ) - + + COUNT ( * ) * + COALESCE ( - 66, 37, + 46 ) / - 8 + - + 68 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8603
SELECT 93 + - - CASE - 4 WHEN + CAST( 28 AS SIGNED ) + + - 42 * - 16 * + - ( - 11 ) / - - 14 + + + COUNT( * ) - - - 83 + + - 95 * + 16 / COUNT( * ) + - - CAST( - 74 AS DECIMAL ) THEN NULL ELSE 53 END
----
146

skipif mysql # not compatible
query I rowsort label-8603
SELECT 93 + - - CASE - 4 WHEN + CAST ( 28 AS INTEGER ) + + - 42 * - 16 * + - ( - 11 ) / - - 14 + + + COUNT ( * ) - - - 83 + + - 95 * + 16 / COUNT ( * ) + - - CAST ( - 74 AS REAL ) THEN NULL ELSE 53 END
----
146

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8604
SELECT DISTINCT - 96 col1, - CAST( NULL AS DECIMAL ) + + 59 * + ( 23 ) * + - 55 * - + COUNT( * ) + + + 50
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-8604
SELECT DISTINCT - 96 col1, - CAST ( NULL AS REAL ) + + 59 * + ( 23 ) * + - 55 * - + COUNT ( * ) + + + 50
----
-96
NULL

query I rowsort
SELECT DISTINCT 31 * ( + ( + 65 ) )
----
2015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8606
SELECT 75 + - 38 AS col2, + CAST( + + NULLIF ( + 43, - CAST( NULL AS DECIMAL ) * + COUNT( * ) ) AS SIGNED ) AS col2
----
37
43

skipif mysql # not compatible
query II rowsort label-8606
SELECT 75 + - 38 AS col2, + CAST ( + + NULLIF ( + 43, - CAST ( NULL AS REAL ) * + COUNT ( * ) ) AS INTEGER ) AS col2
----
37
43

query I rowsort
SELECT ALL 90 * + 99 + + 6 AS col2
----
8916

query I rowsort
SELECT 81 * + 73
----
5913

query III rowsort
SELECT ALL 66 * 52 AS col1, + 7 col0, + 58
----
3432
7
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8610
SELECT + 21 * 2 * - - 66 * 77 + + COUNT( * ) AS col0, 81
----
213445
81

skipif mysql # not compatible
query II rowsort label-8610
SELECT + 21 * 2 * - - 66 * 77 + + COUNT ( * ) AS col0, 81
----
213445
81

query I rowsort
SELECT 71 * COALESCE ( + 23, 65 ) AS col0
----
1633

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT 6 * + 88 * CASE WHEN NOT ( NULL ) IS NOT NULL THEN COUNT( * ) ELSE NULL END
----
528

skipif mysql # not compatible
query I rowsort label-8612
SELECT 6 * + 88 * CASE WHEN NOT ( NULL ) IS NOT NULL THEN COUNT ( * ) ELSE NULL END
----
528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8613
SELECT COALESCE ( + 73, + CAST( + - 10 AS SIGNED ), + 70 + + 46, - ( - 60 ) ) + + + 74 * 26 AS col2
----
1997

skipif mysql # not compatible
query I rowsort label-8613
SELECT COALESCE ( + 73, + CAST ( + - 10 AS INTEGER ), + 70 + + 46, - ( - 60 ) ) + + + 74 * 26 AS col2
----
1997

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT COUNT( - + 18 ) * - 40 * - 52 * + CASE 85 WHEN - 36 THEN + 56 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8614
SELECT COUNT ( - + 18 ) * - 40 * - 52 * + CASE 85 WHEN - 36 THEN + 56 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 99, 4 ) - - - 58 AS col2
----
41

query I rowsort
SELECT DISTINCT + 59 * 60 AS col1
----
3540

onlyif mysql # DIV for integer division: 
query I rowsort label-8617
SELECT COALESCE ( 55, 98 DIV - 89 DIV + + 50 + 0, - 57 ) * 92 * - 75 AS col1
----
-379500

skipif mysql # not compatible
query I rowsort label-8617
SELECT COALESCE ( 55, 98 / - 89 / + + 50 + 0, - 57 ) * 92 * - 75 AS col1
----
-379500

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8618
SELECT COUNT( * ) + - 80, - 7 + + COUNT( * ) DIV + ( 65 ) * COUNT( * ) + + ( - COUNT( * ) ) AS col1
----
-79
-8

skipif mysql # not compatible
query II rowsort label-8618
SELECT COUNT ( * ) + - 80, - 7 + + COUNT ( * ) / + ( 65 ) * COUNT ( * ) + + ( - COUNT ( * ) ) AS col1
----
-79
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8619
SELECT CAST( NULL AS SIGNED ) * 5 AS col2, 73
----
NULL
73

skipif mysql # not compatible
query II rowsort label-8619
SELECT CAST ( NULL AS INTEGER ) * 5 AS col2, 73
----
NULL
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT DISTINCT COUNT( * ) * - 99 * 96 AS col2
----
-9504

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT COUNT ( * ) * - 99 * 96 AS col2
----
-9504

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8621
SELECT + CASE 39 WHEN + ( - 33 ) THEN CAST( - - 13 AS DECIMAL ) ELSE CAST( NULL AS SIGNED ) + 67 END / - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8621
SELECT + CASE 39 WHEN + ( - 33 ) THEN CAST ( - - 13 AS REAL ) ELSE CAST ( NULL AS INTEGER ) + 67 END / - 24
----
NULL

query I rowsort
SELECT ( - 85 ) * 36 + + 64 - + 86 + + 25 AS col0
----
-3057

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8623
SELECT ALL - 4 * + 57 * - + NULLIF ( CAST( - 51 AS SIGNED ), 86 ) - + ( - - 58 ) + 42 + - COUNT( * ) + + 7 * + - 57 AS col1, - MIN( - 89 ) AS col2
----
-12044
89

skipif mysql # not compatible
query II rowsort label-8623
SELECT ALL - 4 * + 57 * - + NULLIF ( CAST ( - 51 AS INTEGER ), 86 ) - + ( - - 58 ) + 42 + - COUNT ( * ) + + 7 * + - 57 AS col1, - MIN ( - 89 ) AS col2
----
-12044
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8624
SELECT 90 + + + 77 - - + 67 DIV + 82
----
167

skipif mysql # not compatible
query I rowsort label-8624
SELECT 90 + + + 77 - - + 67 / + 82
----
167

query I rowsort
SELECT + 2 - - - 37 + + + 72 * 13
----
901

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT DISTINCT SUM( DISTINCT - 42 ) + 10 + + + 57 - 44
----
-19

skipif mysql # not compatible
query I rowsort label-8626
SELECT DISTINCT SUM ( DISTINCT - 42 ) + 10 + + + 57 - 44
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT ALL NULLIF ( - COUNT( * ), + ( + 54 ) + 5 * + 92 )
----
-1

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL NULLIF ( - COUNT ( * ), + ( + 54 ) + 5 * + 92 )
----
-1

query I rowsort
SELECT ALL 95 + 60
----
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8629
SELECT DISTINCT - - 71 + - + 82 + - COUNT( * ) + + COUNT( * ) DIV ( + + 36 ) + - + 88 * + - 88 + - 20 * COUNT( * ) * 14 AS col1
----
7452

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT - - 71 + - + 82 + - COUNT ( * ) + + COUNT ( * ) / ( + + 36 ) + - + 88 * + - 88 + - 20 * COUNT ( * ) * 14 AS col1
----
7452

onlyif mysql # DIV for integer division: 
query I rowsort label-8630
SELECT + 91 DIV - 94 + - + 9 - - 25
----
16

skipif mysql # not compatible
query I rowsort label-8630
SELECT + 91 / - 94 + - + 9 - - 25
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT - - 83 + COUNT( + ( 98 ) ) col2
----
84

skipif mysql # not compatible
query I rowsort label-8631
SELECT - - 83 + COUNT ( + ( 98 ) ) col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT ALL + COUNT( * ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8633
SELECT + CAST( - 22 AS SIGNED ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-8633
SELECT + CAST ( - 22 AS INTEGER ) AS col1
----
-22

query I rowsort
SELECT - - 47 * 20 AS col0
----
940

query I rowsort
SELECT ALL + 44 * 49
----
2156

query I rowsort
SELECT DISTINCT NULLIF ( + - CASE + 53 WHEN - 95 THEN 73 * - 89 END, - 29 * - 89 )
----
NULL

query II rowsort
SELECT - 46 AS col0, 18
----
-46
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8638
SELECT DISTINCT CASE - 94 WHEN + 96 THEN NULL ELSE + 85 * + - 50 DIV COALESCE ( COUNT( * ), - SUM( 68 ) * + 28 ) + + 8 END AS col0, SUM( ALL - + 6 ) AS col1
----
-4242
-6

skipif mysql # not compatible
query II rowsort label-8638
SELECT DISTINCT CASE - 94 WHEN + 96 THEN NULL ELSE + 85 * + - 50 / COALESCE ( COUNT ( * ), - SUM ( 68 ) * + 28 ) + + 8 END AS col0, SUM ( ALL - + 6 ) AS col1
----
-4242
-6

query I rowsort
SELECT + 25 - 73 AS col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8640
SELECT - 31 * - - 66 * - + CASE - 15 WHEN - 29 THEN ( - + 7 ) DIV + + CASE 67 WHEN NULLIF ( + + 62, + + COUNT( * ) ) - - 2 + - - COUNT( ALL + 21 ) THEN + + 8 - - + 85 + + + 36 * 36 + - 66 + + COUNT( * ) DIV - 72 END - - + 74 WHEN - 77 * - 91 DIV + - 66 THEN - COALESCE ( + CASE - 36 WHEN COUNT( * ) * - 37 DIV + - ( + MIN( DISTINCT + 54 ) ) THEN + 48 ELSE - 0 END, 19 ) WHEN + + 25 + + 30 + 19 THEN + 6 ELSE - + 70 END
----
-143220

skipif mysql # not compatible
query I rowsort label-8640
SELECT - 31 * - - 66 * - + CASE - 15 WHEN - 29 THEN ( - + 7 ) / + + CASE 67 WHEN NULLIF ( + + 62, + + COUNT ( * ) ) - - 2 + - - COUNT ( ALL + 21 ) THEN + + 8 - - + 85 + + + 36 * 36 + - 66 + + COUNT ( * ) / - 72 END - - + 74 WHEN - 77 * - 91 / + - 66 THEN - COALESCE ( + CASE - 36 WHEN COUNT ( * ) * - 37 / + - ( + MIN ( DISTINCT + 54 ) ) THEN + 48 ELSE - 0 END, 19 ) WHEN + + 25 + + 30 + 19 THEN + 6 ELSE - + 70 END
----
-143220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8641
SELECT ALL - 44 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL - 44 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 39 AS col1, + 30
----
39
30

query I rowsort
SELECT DISTINCT + NULLIF ( - 95, + + 79 )
----
-95

query II rowsort
SELECT ALL + 45 AS col2, + 17 col2
----
45
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT - 1 * MAX( DISTINCT + ( - 51 ) ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-8645
SELECT - 1 * MAX ( DISTINCT + ( - 51 ) ) AS col0
----
51

query I rowsort
SELECT ALL + ( - 51 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-8647
SELECT - ( - 80 ) - 11 + - - COUNT( * ) AS col1, 86 + + 45 AS col2
----
70
131

skipif mysql # not compatible
query II rowsort label-8647
SELECT - ( - 80 ) - 11 + - - COUNT ( * ) AS col1, 86 + + 45 AS col2
----
70
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8648
SELECT DISTINCT + COALESCE ( 77, - CAST( 58 AS SIGNED ), 65 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT + COALESCE ( 77, - CAST ( 58 AS INTEGER ), 65 ) AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8649
SELECT - 65 * - CAST( 9 AS SIGNED ) * - COUNT( * ) AS col1
----
-585

skipif mysql # not compatible
query I rowsort label-8649
SELECT - 65 * - CAST ( 9 AS INTEGER ) * - COUNT ( * ) AS col1
----
-585

query I rowsort
SELECT DISTINCT 76 * + 11 col1
----
836

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8651
SELECT DISTINCT - COUNT( * ) DIV + 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT - COUNT ( * ) / + 15 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8652
SELECT ALL CAST( - 80 AS SIGNED ) * 81 AS col0
----
-6480

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL CAST ( - 80 AS INTEGER ) * 81 AS col0
----
-6480

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT - COUNT( * ) + 35 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-8653
SELECT - COUNT ( * ) + 35 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT 18 / + SUM( + - 25 ) - - + 76 + + 81 / + 16 + + CASE + COUNT( * ) WHEN - ( + COUNT( + + 36 ) ) THEN NULL WHEN - + 17 THEN + - 86 WHEN - 20 THEN + + 64 * - + 3 ELSE NULL END + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT 18 / + SUM ( + - 25 ) - - + 76 + + 81 / + 16 + + CASE + COUNT ( * ) WHEN - ( + COUNT ( + + 36 ) ) THEN NULL WHEN - + 17 THEN + - 86 WHEN - 20 THEN + + 64 * - + 3 ELSE NULL END + + 22
----
NULL

query I rowsort
SELECT ALL - 82 * - + ( + - 40 ) * - + 59 AS col2
----
193520

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT - COUNT( * ) * - 19
----
19

skipif mysql # not compatible
query I rowsort label-8656
SELECT - COUNT ( * ) * - 19
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8657
SELECT 9 * - + 6 * - + AVG ( DISTINCT - 31 ) * + 99 + - + CAST( 20 AS DECIMAL ) + CASE 25 WHEN - - 98 THEN NULL WHEN + + 16 THEN + 44 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8657
SELECT 9 * - + 6 * - + AVG ( DISTINCT - 31 ) * + 99 + - + CAST ( 20 AS REAL ) + CASE 25 WHEN - - 98 THEN NULL WHEN + + 16 THEN + 44 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT + MIN( DISTINCT + 42 ) - 42
----
0

skipif mysql # not compatible
query I rowsort label-8658
SELECT + MIN ( DISTINCT + 42 ) - 42
----
0

query I rowsort
SELECT - 5 * + - 11
----
55

query II rowsort
SELECT ALL + + 3 col1, 59 * - + 34
----
3
-2006

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8661
SELECT + CAST( NULL AS SIGNED ), 19 AS col1
----
NULL
19

skipif mysql # not compatible
query II rowsort label-8661
SELECT + CAST ( NULL AS INTEGER ), 19 AS col1
----
NULL
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT - + ( - + MAX( - 16 ) ) + - 10 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-8662
SELECT - + ( - + MAX ( - 16 ) ) + - 10 AS col1
----
-26

query I rowsort
SELECT DISTINCT - - 54 * - - 38 * - - 69 + + - 56 AS col1
----
141532

onlyif mysql # aggregate syntax: 
query II rowsort label-8664
SELECT ALL + 7, - COUNT( * ) * + 30 AS col2
----
7
-30

skipif mysql # not compatible
query II rowsort label-8664
SELECT ALL + 7, - COUNT ( * ) * + 30 AS col2
----
7
-30

query I rowsort
SELECT COALESCE ( - 46, 25 )
----
-46

query I rowsort
SELECT CASE 17 WHEN - 94 * - + 58 THEN NULL ELSE + + 41 - 41 + + 0 END
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8667
SELECT + + 87 * + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8667
SELECT + + 87 * + - CAST ( NULL AS INTEGER ) col0
----
NULL

query II rowsort
SELECT ALL 83 AS col2, 33
----
83
33

query I rowsort
SELECT DISTINCT + 27 * 72 + + 16 * - 52
----
1112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8670
SELECT + CAST( + NULLIF ( - 98, 89 + 44 + + 92 ) AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-8670
SELECT + CAST ( + NULLIF ( - 98, 89 + 44 + + 92 ) AS INTEGER )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8671
SELECT + 98 - - SUM( 51 ) + - + 54 + - - CAST( NULL AS SIGNED ) + - ( CAST( NULL AS DECIMAL ) ) + 66 - - MAX( ALL - 19 ) - - COUNT( ALL + 22 ) * - + 89 / + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8671
SELECT + 98 - - SUM ( 51 ) + - + 54 + - - CAST ( NULL AS INTEGER ) + - ( CAST ( NULL AS REAL ) ) + 66 - - MAX ( ALL - 19 ) - - COUNT ( ALL + 22 ) * - + 89 / + 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8672
SELECT + CASE COUNT( * ) WHEN 47 THEN - + 63 + - 1 * - 33 END * COALESCE ( 14, + MAX( DISTINCT 27 ), - CAST( MIN( 72 ) AS SIGNED ) ) * - 91 + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-8672
SELECT + CASE COUNT ( * ) WHEN 47 THEN - + 63 + - 1 * - 33 END * COALESCE ( 14, + MAX ( DISTINCT 27 ), - CAST ( MIN ( 72 ) AS INTEGER ) ) * - 91 + 9
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8673
SELECT + CAST( NULL AS DECIMAL ) + - - 52 + + 46 + - + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-8673
SELECT + CAST ( NULL AS REAL ) + - - 52 + + 46 + - + 29
----
NULL

query I rowsort
SELECT + - 60 * - + 88
----
5280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT + CAST( + 88 AS SIGNED ) - - 96
----
184

skipif mysql # not compatible
query I rowsort label-8675
SELECT + CAST ( + 88 AS INTEGER ) - - 96
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT + COUNT( * ) * - NULLIF ( + 89, - - 85 + - + 99 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-8676
SELECT + COUNT ( * ) * - NULLIF ( + 89, - - 85 + - + 99 ) AS col0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8677
SELECT + 25 + - + ( + COUNT( DISTINCT 9 ) ) * - + 76 DIV 24 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8677
SELECT + 25 + - + ( + COUNT ( DISTINCT 9 ) ) * - + 76 / 24 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT + NULLIF ( - 18, + - MIN( + 79 ) / - - 5 ) - 80 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-8678
SELECT + NULLIF ( - 18, + - MIN ( + 79 ) / - - 5 ) - 80 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-8679
SELECT DISTINCT MAX( ALL + - 93 ) AS col0, ( + 54 )
----
-93
54

skipif mysql # not compatible
query II rowsort label-8679
SELECT DISTINCT MAX ( ALL + - 93 ) AS col0, ( + 54 )
----
-93
54

query I rowsort
SELECT + 19 * 99
----
1881

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT + MIN( ALL 33 ) * - 57
----
-1881

skipif mysql # not compatible
query I rowsort label-8681
SELECT + MIN ( ALL 33 ) * - 57
----
-1881

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT ALL 89 DIV - 77 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL 89 / - 77 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8683
SELECT - 1 DIV 54 * + - COUNT( * ) * 98, - 0 * 46 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-8683
SELECT - 1 / 54 * + - COUNT ( * ) * 98, - 0 * 46 AS col2
----
0
0

query II rowsort
SELECT + 71 + - 18 AS col0, - 96 AS col1
----
53
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-8685
SELECT ALL ( 65 ) col0, CASE WHEN NOT ( NULL IS NULL ) THEN COALESCE ( COUNT( * ), - 60 ) ELSE - COUNT( * ) END
----
65
-1

skipif mysql # not compatible
query II rowsort label-8685
SELECT ALL ( 65 ) col0, CASE WHEN NOT ( NULL IS NULL ) THEN COALESCE ( COUNT ( * ), - 60 ) ELSE - COUNT ( * ) END
----
65
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8686
SELECT ALL MAX( DISTINCT - 27 ), - 54 AS col1
----
-27
-54

skipif mysql # not compatible
query II rowsort label-8686
SELECT ALL MAX ( DISTINCT - 27 ), - 54 AS col1
----
-27
-54

query I rowsort
SELECT DISTINCT - 95 * 88 AS col0
----
-8360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8688
SELECT 59 * 56 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8688
SELECT 59 * 56 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT ALL - MIN( + - 93 ) * - 90 + - COALESCE ( 63, + 8 )
----
-8433

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL - MIN ( + - 93 ) * - 90 + - COALESCE ( 63, + 8 )
----
-8433

query II rowsort
SELECT - 41 * + 58 AS col0, + 26
----
-2378
26

query I rowsort
SELECT ALL 47 * 60
----
2820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT + CAST( - - 66 AS SIGNED ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8692
SELECT + CAST ( - - 66 AS INTEGER ) AS col1
----
66

query I rowsort
SELECT - 11 * 41 AS col1
----
-451

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8694
SELECT ALL + 81 / + CASE + 13 WHEN + 88 * + + 82 THEN + + 8 * 65 END + + CAST( - 31 AS SIGNED ) AS col0, - ( - - 71 )
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-8694
SELECT ALL + 81 / + CASE + 13 WHEN + 88 * + + 82 THEN + + 8 * 65 END + + CAST ( - 31 AS INTEGER ) AS col0, - ( - - 71 )
----
NULL
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-8695
SELECT DISTINCT + MAX( DISTINCT + 52 ) AS col0, + 58
----
52
58

skipif mysql # not compatible
query II rowsort label-8695
SELECT DISTINCT + MAX ( DISTINCT + 52 ) AS col0, + 58
----
52
58

query I rowsort
SELECT + ( ( - 23 ) ) * + 49 + + 2 + 19 AS col1
----
-1106

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL - 18 + + + COUNT( * ) * - 64 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL - 18 + + + COUNT ( * ) * - 64 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-8698
SELECT DISTINCT + 54 + - + COUNT( * ), 12 + 53 AS col0
----
53
65

skipif mysql # not compatible
query II rowsort label-8698
SELECT DISTINCT + 54 + - + COUNT ( * ), 12 + 53 AS col0
----
53
65

query I rowsort
SELECT ALL - 96 + 99 AS col2
----
3

query I rowsort
SELECT ALL + 38 + - 29 AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8701
SELECT - ( - COALESCE ( + SUM( DISTINCT 17 ), + 37 - - CAST( + + 63 AS SIGNED ) - CASE 89 WHEN + 7 / 83 / + + ( + COUNT( 13 ) ) THEN NULL WHEN + 30 THEN NULL ELSE + + NULLIF ( 81, + 5 + 10 / - COALESCE ( + 37, 35, - + 34 * MAX( ALL - 99 ) * + + COUNT( * ), + + 53 * - - COUNT( 26 ) ) + + - COALESCE ( - 99, + - 36 * + 34 + - 80 + - 35 ) * - CASE - 12 WHEN 86 THEN + 49 + + ( - - 46 ) + - + 52 * + 81 WHEN 15 THEN - - COUNT( DISTINCT 68 ) ELSE 38 * + 72 * 13 * COUNT( + 78 ) + 16 END + + 61 ) END * 85 ) )
----
17

skipif mysql # not compatible
query I rowsort label-8701
SELECT - ( - COALESCE ( + SUM ( DISTINCT 17 ), + 37 - - CAST ( + + 63 AS INTEGER ) - CASE 89 WHEN + 7 / 83 / + + ( + COUNT ( 13 ) ) THEN NULL WHEN + 30 THEN NULL ELSE + + NULLIF ( 81, + 5 + 10 / - COALESCE ( + 37, 35, - + 34 * MAX ( ALL - 99 ) * + + COUNT ( * ), + + 53 * - - COUNT ( 26 ) ) + + - COALESCE ( - 99, + - 36 * + 34 + - 80 + - 35 ) * - CASE - 12 WHEN 86 THEN + 49 + + ( - - 46 ) + - + 52 * + 81 WHEN 15 THEN - - COUNT ( DISTINCT 68 ) ELSE 38 * + 72 * 13 * COUNT ( + 78 ) + 16 END + + 61 ) END * 85 ) )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8702
SELECT ALL + - 38 DIV COUNT( * ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL + - 38 / COUNT ( * ) AS col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8703
SELECT - 16 + 81 col2, 76 + 15 + - - 26 * - AVG ( - 80 ) * - + CAST( NULL AS SIGNED ) * 66 * 56 / - COALESCE ( - 19, + 51 ) * + 74
----
65
NULL

skipif mysql # not compatible
query II rowsort label-8703
SELECT - 16 + 81 col2, 76 + 15 + - - 26 * - AVG ( - 80 ) * - + CAST ( NULL AS INTEGER ) * 66 * 56 / - COALESCE ( - 19, + 51 ) * + 74
----
65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT ALL - + COUNT( * ) + - COUNT( * ) - 30 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL - + COUNT ( * ) + - COUNT ( * ) - 30 AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8705
SELECT DISTINCT + + 96 * - 12 * - 2 * + - CAST( NULL AS SIGNED ) * SUM( - + 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT + + 96 * - 12 * - 2 * + - CAST ( NULL AS INTEGER ) * SUM ( - + 39 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8706
SELECT ALL + 0 - - CASE 69 WHEN - CAST( 31 AS SIGNED ) THEN 56 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8706
SELECT ALL + 0 - - CASE 69 WHEN - CAST ( 31 AS INTEGER ) THEN 56 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT DISTINCT - - SUM( ALL + - 83 ) * - 26 - - 95
----
2253

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT - - SUM ( ALL + - 83 ) * - 26 - - 95
----
2253

query I rowsort
SELECT + 32 + - 65 - - + 88
----
55

query I rowsort
SELECT - CASE + 37 WHEN - 93 * - 50 * - - 31 THEN - 28 WHEN 50 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 71 * + 22
----
1562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8711
SELECT ALL COUNT( DISTINCT 76 ) * 32 + ( + 74 ) col1, CAST( NULLIF ( + 34, 9 + - + SUM( 37 ) + 45 ) AS SIGNED ) AS col0
----
106
34

skipif mysql # not compatible
query II rowsort label-8711
SELECT ALL COUNT ( DISTINCT 76 ) * 32 + ( + 74 ) col1, CAST ( NULLIF ( + 34, 9 + - + SUM ( 37 ) + 45 ) AS INTEGER ) AS col0
----
106
34

query I rowsort
SELECT DISTINCT 12 * - 99
----
-1188

query I rowsort
SELECT NULLIF ( + 50, + + 44 ) * 92
----
4600

query II rowsort
SELECT ALL 67 AS col2, 64 AS col1
----
67
64

query II rowsort
SELECT ALL 69 AS col0, 86 + + 67 AS col2
----
69
153

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT MIN( - - 96 ) * 43 + 7 * + ( + 62 ) AS col0
----
4562

skipif mysql # not compatible
query I rowsort label-8716
SELECT MIN ( - - 96 ) * 43 + 7 * + ( + 62 ) AS col0
----
4562

query I rowsort
SELECT 90 + - - 79 AS col0
----
169

query I rowsort
SELECT 31 + + 36 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT DISTINCT 41 + + - CASE + 14 WHEN - ( COUNT( ALL - 71 ) ) THEN + 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8719
SELECT DISTINCT 41 + + - CASE + 14 WHEN - ( COUNT ( ALL - 71 ) ) THEN + 62 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT ALL COUNT( DISTINCT - 45 ) + 58
----
59

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL COUNT ( DISTINCT - 45 ) + 58
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT COUNT( * ) * - COUNT( DISTINCT - ( 75 ) ) * + MIN( - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-8721
SELECT COUNT ( * ) * - COUNT ( DISTINCT - ( 75 ) ) * + MIN ( - 91 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8722
SELECT DISTINCT 5 + - CASE - ( - - 81 ) WHEN 22 * CAST( NULL AS DECIMAL ) + 52 + - 96 * COUNT( * ) / + - 9 * - 93 * + + 46 + - 93 + + - 57 * + 58 * - 70 * - - COUNT( * ) * - 95 THEN 6 WHEN 77 + + 52 THEN NULL ELSE + 50 END
----
-45

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT 5 + - CASE - ( - - 81 ) WHEN 22 * CAST ( NULL AS REAL ) + 52 + - 96 * COUNT ( * ) / + - 9 * - 93 * + + 46 + - 93 + + - 57 * + 58 * - 70 * - - COUNT ( * ) * - 95 THEN 6 WHEN 77 + + 52 THEN NULL ELSE + 50 END
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT ALL - CASE + 95 WHEN - + 70 * + + 87 + - 80 + + 15 - 11 * + 67 THEN NULL WHEN + SUM( + 95 ) THEN COUNT( - 68 ) END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL - CASE + 95 WHEN - + 70 * + + 87 + - 80 + + 15 - 11 * + 67 THEN NULL WHEN + SUM ( + 95 ) THEN COUNT ( - 68 ) END AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT DISTINCT - MAX( - 86 ) + - 61 - + 30 col2
----
-5

skipif mysql # not compatible
query I rowsort label-8724
SELECT DISTINCT - MAX ( - 86 ) + - 61 - + 30 col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT ALL COUNT( * ) + 41 * + ( 49 + 78 ) AS col2
----
5208

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL COUNT ( * ) + 41 * + ( 49 + 78 ) AS col2
----
5208

query I rowsort
SELECT ALL - 47 + - 12
----
-59

query I rowsort
SELECT ALL + 92 + - 76 AS col1
----
16

query I rowsort
SELECT DISTINCT + 38 * - 9 AS col0
----
-342

query I rowsort
SELECT 59 - ( 97 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT ALL + 47 + + CASE + 79 WHEN 89 / - COUNT( * ) THEN - SUM( ( - ( 87 ) ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL + 47 + + CASE + 79 WHEN 89 / - COUNT ( * ) THEN - SUM ( ( - ( 87 ) ) ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ( + 83 ) * 4 col2
----
332

query I rowsort
SELECT ALL - COALESCE ( 6, - 20 + 39, + 62 ) AS col0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8733
SELECT DISTINCT + 2 DIV 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8733
SELECT DISTINCT + 2 / 29 AS col1
----
0

query I rowsort
SELECT ALL - 48 - 97 col2
----
-145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8735
SELECT 75 * COALESCE ( 95 DIV MAX( 58 ), NULLIF ( ( - 28 ), 63 ) * - ( MIN( DISTINCT + 43 ) ) - 26 )
----
75

skipif mysql # not compatible
query I rowsort label-8735
SELECT 75 * COALESCE ( 95 / MAX ( 58 ), NULLIF ( ( - 28 ), 63 ) * - ( MIN ( DISTINCT + 43 ) ) - 26 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT ALL + 85 * NULLIF ( MIN( ALL + 64 ) * - 16, - AVG ( DISTINCT + 5 ) )
----
-87040

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL + 85 * NULLIF ( MIN ( ALL + 64 ) * - 16, - AVG ( DISTINCT + 5 ) )
----
-87040

onlyif mysql # DIV for integer division: 
query I rowsort label-8737
SELECT 81 DIV - 14
----
-5

skipif mysql # not compatible
query I rowsort label-8737
SELECT 81 / - 14
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT 21 * 60 + + COUNT( - NULLIF ( + 8, - 28 ) )
----
1261

skipif mysql # not compatible
query I rowsort label-8738
SELECT 21 * 60 + + COUNT ( - NULLIF ( + 8, - 28 ) )
----
1261

query I rowsort
SELECT 65 * 63 col1
----
4095

query I rowsort
SELECT ALL + 85 * COALESCE ( 33, + 86, 50 + - 45 ) AS col1
----
2805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8741
SELECT 71 - + CAST( 76 + 90 AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-8741
SELECT 71 - + CAST ( 76 + 90 AS INTEGER )
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-8742
SELECT 81 - 22 DIV - 71
----
81

skipif mysql # not compatible
query I rowsort label-8742
SELECT 81 - 22 / - 71
----
81

query I rowsort
SELECT DISTINCT - 13 * + 97
----
-1261

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT ALL MIN( DISTINCT 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL MIN ( DISTINCT 38 ) AS col0
----
38

query I rowsort
SELECT 90 + + 33
----
123

query I rowsort
SELECT ALL - 86 * - 28
----
2408

query I rowsort
SELECT 0 + - 58
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT DISTINCT + COUNT( * ) * 2
----
2

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT + COUNT ( * ) * 2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT 16 - COUNT( * ) * - 30
----
46

skipif mysql # not compatible
query I rowsort label-8749
SELECT 16 - COUNT ( * ) * - 30
----
46

query I rowsort
SELECT ALL + 95 + - 2
----
93

query I rowsort
SELECT 90 + 90 AS col0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT COUNT( * ) - CASE 29 WHEN + COUNT( * ) THEN NULL ELSE COUNT( * ) END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8752
SELECT COUNT ( * ) - CASE 29 WHEN + COUNT ( * ) THEN NULL ELSE COUNT ( * ) END AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8753
SELECT 99 + - 37 DIV NULLIF ( - 40 - - 78, + CAST( NULL AS SIGNED ) - + 57 )
----
99

skipif mysql # not compatible
query I rowsort label-8753
SELECT 99 + - 37 / NULLIF ( - 40 - - 78, + CAST ( NULL AS INTEGER ) - + 57 )
----
99

query I rowsort
SELECT 35 + 59 * - 35 AS col0
----
-2030

query I rowsort
SELECT ALL 0 + 12 AS col2
----
12

query I rowsort
SELECT COALESCE ( NULLIF ( - 34, + ( 64 ) ), - NULLIF ( 2, 58 * 49 ) ) + - 77
----
-111

query I rowsort
SELECT - 82 + 31 col1
----
-51

query I rowsort
SELECT ALL ( - 76 ) * - 23 AS col2
----
1748

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT ALL 53 + + 10 * - COUNT( * ) col0
----
43

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL 53 + + 10 * - COUNT ( * ) col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT + 58 + COUNT( DISTINCT + 39 ) * 79
----
137

skipif mysql # not compatible
query I rowsort label-8760
SELECT + 58 + COUNT ( DISTINCT + 39 ) * 79
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8761
SELECT ALL - COUNT( * ) + + CAST( NULL AS SIGNED ) * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 57
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8762
SELECT DISTINCT CAST( NULL AS SIGNED ) * + CAST( + CASE - 18 WHEN COALESCE ( - CASE + AVG ( ALL - 3 ) WHEN CASE NULLIF ( NULLIF ( + 51, - 61 * - 9 ), 20 ) WHEN + 97 + COUNT( * ) THEN 85 ELSE NULL END - + 18 THEN NULL ELSE 57 + + 18 END, 48 ) * 89 THEN + 65 END AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8762
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + CAST ( + CASE - 18 WHEN COALESCE ( - CASE + AVG ( ALL - 3 ) WHEN CASE NULLIF ( NULLIF ( + 51, - 61 * - 9 ), 20 ) WHEN + 97 + COUNT ( * ) THEN 85 ELSE NULL END - + 18 THEN NULL ELSE 57 + + 18 END, 48 ) * 89 THEN + 65 END AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8763
SELECT + COUNT( * ) + + COUNT( * ) DIV - 94 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8763
SELECT + COUNT ( * ) + + COUNT ( * ) / - 94 AS col2
----
1

query I rowsort
SELECT DISTINCT COALESCE ( 51, + 87 + 22 ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT ALL ( 15 ) * - CASE WHEN NOT NULL NOT IN ( - 45 * 84 ) THEN NULLIF ( + CASE 57 WHEN + MIN( 76 ) THEN 1 WHEN + 27 THEN NULL WHEN - 90 * 85 THEN NULL END, 71 ) * + 5 + 97 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL ( 15 ) * - CASE WHEN NOT NULL NOT IN ( - 45 * 84 ) THEN NULLIF ( + CASE 57 WHEN + MIN ( 76 ) THEN 1 WHEN + 27 THEN NULL WHEN - 90 * 85 THEN NULL END, 71 ) * + 5 + 97 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8766
SELECT ALL - CAST( NULL AS SIGNED ) * - 4 + + 14 * ( 20 + + 70 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL - CAST ( NULL AS INTEGER ) * - 4 + + 14 * ( 20 + + 70 ) AS col2
----
NULL

query I rowsort
SELECT 80 * + 73 + + 69
----
5909

onlyif mysql # DIV for integer division: 
query I rowsort label-8768
SELECT - 19 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-8768
SELECT - 19 / 81
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8769
SELECT + 79 * + CAST( NULL AS DECIMAL ) + + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8769
SELECT + 79 * + CAST ( NULL AS REAL ) + + 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT + CASE - COUNT( * ) WHEN + COUNT( * ) * 62 THEN + 63 + - 23 / 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8770
SELECT + CASE - COUNT ( * ) WHEN + COUNT ( * ) * 62 THEN + 63 + - 23 / 12 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8771
SELECT + - SUM( DISTINCT ( - ( 71 ) ) ) / - 7 + CAST( NULL AS SIGNED ) * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8771
SELECT + - SUM ( DISTINCT ( - ( 71 ) ) ) / - 7 + CAST ( NULL AS INTEGER ) * 2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8772
SELECT ALL 83 * + 54 - 3 DIV 20 AS col1
----
4482

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL 83 * + 54 - 3 / 20 AS col1
----
4482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8773
SELECT DISTINCT 77 / - CASE - ( 8 ) * + 82 WHEN 96 THEN ( 57 ) WHEN - 82 + - CAST( + 91 AS SIGNED ) * 22 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT 77 / - CASE - ( 8 ) * + 82 WHEN 96 THEN ( 57 ) WHEN - 82 + - CAST ( + 91 AS INTEGER ) * 22 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8774
SELECT + + 55 DIV - 29
----
-1

skipif mysql # not compatible
query I rowsort label-8774
SELECT + + 55 / - 29
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8775
SELECT ALL + 44 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL + 44 / - 89
----
0

query I rowsort
SELECT + ( 15 ) + + 35
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8777
SELECT ALL 34 DIV 7 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL 34 / 7 AS col2
----
4

query I rowsort
SELECT ALL + + 39 col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT + CASE 65 WHEN - 13 THEN 18 END * 18 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8779
SELECT + CASE 65 WHEN - 13 THEN 18 END * 18 + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + + 58 * ( 23 ) AS col2
----
1334

query I rowsort
SELECT ALL + - 61 col0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8782
SELECT + NULLIF ( - 5, - 38 * ( CASE + 11 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE + 68 * + 50 END ) + + 60 * 35 ) * 73 col1
----
-365

skipif mysql # not compatible
query I rowsort label-8782
SELECT + NULLIF ( - 5, - 38 * ( CASE + 11 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 68 * + 50 END ) + + 60 * 35 ) * 73 col1
----
-365

query I rowsort
SELECT - + 98 + + 63 * + 1
----
-35

query I rowsort
SELECT ALL + ( + 81 ) * 13 AS col2
----
1053

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT + 70 * NULLIF ( 31 - + COUNT( * ), 75 ) + 28 AS col1
----
2128

skipif mysql # not compatible
query I rowsort label-8785
SELECT + 70 * NULLIF ( 31 - + COUNT ( * ), 75 ) + 28 AS col1
----
2128

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT - 99 * COUNT( * ) + - NULLIF ( 72, 99 + 11 ) * 70
----
-5139

skipif mysql # not compatible
query I rowsort label-8786
SELECT - 99 * COUNT ( * ) + - NULLIF ( 72, 99 + 11 ) * 70
----
-5139

query I rowsort
SELECT + - 37 + + ( + 46 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT - + 77 * - 53 - 79 * CASE + 99 WHEN - 33 THEN + 24 + - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8788
SELECT - + 77 * - 53 - 79 * CASE + 99 WHEN - 33 THEN + 24 + - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT - 48 * - 88 AS col2
----
4224

query I rowsort
SELECT ALL 31 + + + 77 AS col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT - 42 + + COUNT( * ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-8791
SELECT - 42 + + COUNT ( * ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT - 18 + - ( - COUNT( * ) ) * + 91
----
73

skipif mysql # not compatible
query I rowsort label-8792
SELECT - 18 + - ( - COUNT ( * ) ) * + 91
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT ALL - 55 + ( ( COUNT( * ) ) ) - - 71 * + 36
----
2502

skipif mysql # not compatible
query I rowsort label-8793
SELECT ALL - 55 + ( ( COUNT ( * ) ) ) - - 71 * + 36
----
2502

query I rowsort
SELECT - 95 + + 38
----
-57

query I rowsort
SELECT DISTINCT - NULLIF ( 23, - 29 ) * 57 col2
----
-1311

query I rowsort
SELECT DISTINCT + 82 * + ( 88 ) AS col2
----
7216

query I rowsort
SELECT - 82 * + 40 AS col0
----
-3280

query I rowsort
SELECT - 59 * - 44
----
2596

query I rowsort
SELECT DISTINCT - 37 * - 68 AS col2
----
2516

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8800
SELECT DISTINCT + 46 + + 25 * - CAST( 24 / + NULLIF ( 75, + 77 ) AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT + 46 + + 25 * - CAST ( 24 / + NULLIF ( 75, + 77 ) AS INTEGER )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8801
SELECT ALL 46 + + CAST( COUNT( * ) AS SIGNED ) col2
----
47

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL 46 + + CAST ( COUNT ( * ) AS INTEGER ) col2
----
47

query I rowsort
SELECT ALL + 65 + - 28
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8803
SELECT - COALESCE ( + CASE - CASE 67 WHEN + 55 THEN - CAST( NULL AS SIGNED ) ELSE CASE + 44 WHEN 58 * ( - CAST( NULL AS SIGNED ) ) THEN NULL WHEN + 84 / COUNT( * ) THEN - 68 * COUNT( * ) ELSE + COUNT( * ) END END WHEN + ( 17 ) * 17 THEN 2 WHEN 41 THEN - COUNT( * ) ELSE NULL END, 25 ) * - 26 AS col2
----
650

skipif mysql # not compatible
query I rowsort label-8803
SELECT - COALESCE ( + CASE - CASE 67 WHEN + 55 THEN - CAST ( NULL AS INTEGER ) ELSE CASE + 44 WHEN 58 * ( - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + 84 / COUNT ( * ) THEN - 68 * COUNT ( * ) ELSE + COUNT ( * ) END END WHEN + ( 17 ) * 17 THEN 2 WHEN 41 THEN - COUNT ( * ) ELSE NULL END, 25 ) * - 26 AS col2
----
650

query I rowsort
SELECT - ( + 22 ) + - 9 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT ALL ( + MIN( 98 ) ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL ( + MIN ( 98 ) ) AS col2
----
98

query I rowsort
SELECT - + 59 * + NULLIF ( + 29, - 46 + 32 ) + 59 AS col0
----
-1652

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT ALL MIN( 38 ) * + ( + 81 ) AS col0
----
3078

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL MIN ( 38 ) * + ( + 81 ) AS col0
----
3078

query I rowsort
SELECT DISTINCT + 15 * - 72 * 82
----
-88560

query I rowsort
SELECT - + 9 - 26 + 65 * 90 * - 92
----
-538235

onlyif mysql # DIV for integer division: 
query I rowsort label-8810
SELECT ALL - + 51 DIV 86 + 33
----
33

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL - + 51 / 86 + 33
----
33

query I rowsort
SELECT + 62 * - 33 * 56 + 10
----
-114566

query I rowsort
SELECT DISTINCT - 82 * + 93
----
-7626

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT + MAX( ALL - 20 ) col0
----
-20

skipif mysql # not compatible
query I rowsort label-8813
SELECT + MAX ( ALL - 20 ) col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT DISTINCT - + 76 * + ( SUM( 67 ) ) * + 30 AS col2
----
-152760

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT - + 76 * + ( SUM ( 67 ) ) * + 30 AS col2
----
-152760

query I rowsort
SELECT - - 32 * - 54
----
-1728

query I rowsort
SELECT + + 68 - - 25 * 87 AS col1
----
2243

query I rowsort
SELECT ALL + CASE 17 WHEN 20 THEN 15 * + 36 + - 31 ELSE + 44 END
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8818
SELECT + - 77 DIV + COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-8818
SELECT + - 77 / + COUNT ( * ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT + CASE - 37 WHEN + NULLIF ( + 20, 95 * - 84 ) * 31 THEN SUM( + 33 ) WHEN + 16 THEN NULL END * + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-8819
SELECT + CASE - 37 WHEN + NULLIF ( + 20, 95 * - 84 ) * 31 THEN SUM ( + 33 ) WHEN + 16 THEN NULL END * + 92
----
NULL

query I rowsort
SELECT DISTINCT + - 34 AS col2
----
-34

query I rowsort
SELECT + + 22 col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8822
SELECT ALL + 82 * - - CAST( NULL AS SIGNED ) * 74 + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL + 82 * - - CAST ( NULL AS INTEGER ) * 74 + 59 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT + 25 * CASE - + COUNT( * ) WHEN + 87 THEN COUNT( * ) + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8823
SELECT + 25 * CASE - + COUNT ( * ) WHEN + 87 THEN COUNT ( * ) + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT DISTINCT COUNT( * ) * - 85 + + + COUNT( * ) col2
----
-84

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT COUNT ( * ) * - 85 + + + COUNT ( * ) col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT ALL 83 * + + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL 83 * + + COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT + 89 + MIN( + 15 ) - - CASE 89 WHEN + 39 THEN - 80 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8826
SELECT + 89 + MIN ( + 15 ) - - CASE 89 WHEN + 39 THEN - 80 ELSE NULL END
----
NULL

query I rowsort
SELECT - 95 * + + NULLIF ( 37, ( - 78 ) ) AS col2
----
-3515

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT + 7 - - - 99 + - NULLIF ( COUNT( * ), 5 - + 93 / ( - NULLIF ( - 77, - 66 * - 93 ) * + CASE - 44 * 82 WHEN + 18 - - 55 THEN + CASE 38 WHEN AVG ( DISTINCT 51 ) THEN NULL WHEN 4 THEN NULL ELSE COUNT( * ) END / 87 ELSE MAX( ALL 48 ) END + 30 * + SUM( DISTINCT NULLIF ( + 2, - 53 + ( 7 ) ) + + 64 ) ) ) * - 70 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-8828
SELECT + 7 - - - 99 + - NULLIF ( COUNT ( * ), 5 - + 93 / ( - NULLIF ( - 77, - 66 * - 93 ) * + CASE - 44 * 82 WHEN + 18 - - 55 THEN + CASE 38 WHEN AVG ( DISTINCT 51 ) THEN NULL WHEN 4 THEN NULL ELSE COUNT ( * ) END / 87 ELSE MAX ( ALL 48 ) END + 30 * + SUM ( DISTINCT NULLIF ( + 2, - 53 + ( 7 ) ) + + 64 ) ) ) * - 70 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-8829
SELECT 13 AS col0, + 72 * - COUNT( * )
----
13
-72

skipif mysql # not compatible
query II rowsort label-8829
SELECT 13 AS col0, + 72 * - COUNT ( * )
----
13
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ALL CASE COUNT( * ) WHEN COALESCE ( + COUNT( - 33 ), 2, 37, - 83 - 53 * + 91 ) + 56 THEN + 16 * - 70 WHEN + 74 THEN NULL ELSE 4 END + 19 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL CASE COUNT ( * ) WHEN COALESCE ( + COUNT ( - 33 ), 2, 37, - 83 - 53 * + 91 ) + 56 THEN + 16 * - 70 WHEN + 74 THEN NULL ELSE 4 END + 19 AS col1
----
23

query I rowsort
SELECT 25 + 47 * + + 18
----
871

query II rowsort
SELECT DISTINCT 71 AS col0, 33 * + 32
----
71
1056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8833
SELECT CAST( NULL AS SIGNED ) + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8833
SELECT CAST ( NULL AS INTEGER ) + - 57
----
NULL

query I rowsort
SELECT ALL + 60 - + + 59 AS col1
----
1

query II rowsort
SELECT 5 AS col0, 40 AS col2
----
5
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8836
SELECT DISTINCT ( - 81 ) - + 32 + 23 DIV ( 96 ) AS col0
----
-113

skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT ( - 81 ) - + 32 + 23 / ( 96 ) AS col0
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8837
SELECT CAST( NULL AS SIGNED ) + 78 - + + MAX( + 65 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8837
SELECT CAST ( NULL AS INTEGER ) + 78 - + + MAX ( + 65 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT 60 + + 89 + NULLIF ( 54, - MAX( DISTINCT - 38 ) ) AS col2
----
203

skipif mysql # not compatible
query I rowsort label-8838
SELECT 60 + + 89 + NULLIF ( 54, - MAX ( DISTINCT - 38 ) ) AS col2
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT DISTINCT - ( 14 ) * COUNT( * ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT - ( 14 ) * COUNT ( * ) AS col0
----
-14

query I rowsort
SELECT 69 + - 64 AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8841
SELECT - 10 DIV + + 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8841
SELECT - 10 / + + 78 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8842
SELECT 63 * + 7 * + 17 * - 6 + 96 * CAST( - 28 + 35 AS SIGNED ) AS col1
----
-44310

skipif mysql # not compatible
query I rowsort label-8842
SELECT 63 * + 7 * + 17 * - 6 + 96 * CAST ( - 28 + 35 AS INTEGER ) AS col1
----
-44310

query I rowsort
SELECT ALL - 77 * - 64 * + + 29
----
142912

query I rowsort
SELECT ALL + - 16 * - 86
----
1376

query I rowsort
SELECT + COALESCE ( - 72, 17 )
----
-72

query I rowsort
SELECT 12 + - 39 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT DISTINCT - + 49 * - ( + - COUNT( * ) )
----
-49

skipif mysql # not compatible
query I rowsort label-8847
SELECT DISTINCT - + 49 * - ( + - COUNT ( * ) )
----
-49

query I rowsort
SELECT + 60 * + 91 * 56
----
305760

query II rowsort
SELECT ALL - + 34 AS col2, 37 AS col0
----
-34
37

query II rowsort
SELECT + 47 AS col0, + 6 AS col2
----
47
6

query I rowsort
SELECT + 3 * + 44 + + 44 AS col2
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT + CASE ( 87 ) WHEN 10 THEN + 34 - COALESCE ( + ( 81 ), SUM( 58 ) * + ( 84 ), - ( 79 ) + - 70, 92 ) * - 46 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8852
SELECT + CASE ( 87 ) WHEN 10 THEN + 34 - COALESCE ( + ( 81 ), SUM ( 58 ) * + ( 84 ), - ( 79 ) + - 70, 92 ) * - 46 END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8853
SELECT ( + 61 ) * 92 DIV ( 64 ) + MAX( 21 ) col0
----
108

skipif mysql # not compatible
query I rowsort label-8853
SELECT ( + 61 ) * 92 / ( 64 ) + MAX ( 21 ) col0
----
108

query II rowsort
SELECT ALL - + 57 AS col1, - 49 * + 0 AS col1
----
-57
0

query I rowsort
SELECT - 26 * - 89
----
2314

onlyif mysql # DIV for integer division: 
query I rowsort label-8856
SELECT - 45 DIV 48 + 59 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-8856
SELECT - 45 / 48 + 59 AS col2
----
59

query I rowsort
SELECT ALL + 1 + 79 AS col0
----
80

query I rowsort
SELECT + 49 + 93 AS col2
----
142

query I rowsort
SELECT DISTINCT - + 19 col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT SUM( 48 ) + + COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-8860
SELECT SUM ( 48 ) + + COUNT ( * ) AS col2
----
49

query I rowsort
SELECT DISTINCT - 98 * + 90 col0
----
-8820

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL + COUNT( * ) + 14
----
15

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL + COUNT ( * ) + 14
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT ALL COUNT( * ) + + + COUNT( - 7 )
----
2

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL COUNT ( * ) + + + COUNT ( - 7 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT 91 * + 26 * 6 + COUNT( * ) + + 4 AS col1
----
14201

skipif mysql # not compatible
query I rowsort label-8864
SELECT 91 * + 26 * 6 + COUNT ( * ) + + 4 AS col1
----
14201

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT DISTINCT - 54 * - 87 * + 40 * + - COUNT( * ) AS col0
----
-187920

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT - 54 * - 87 * + 40 * + - COUNT ( * ) AS col0
----
-187920

query I rowsort
SELECT ( - - 79 ) + - 38 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT COUNT( * ) + + MAX( DISTINCT + + 45 ) * NULLIF ( CASE 79 WHEN 66 THEN NULL ELSE - 31 END, 39 * - COUNT( * ) )
----
-1394

skipif mysql # not compatible
query I rowsort label-8867
SELECT COUNT ( * ) + + MAX ( DISTINCT + + 45 ) * NULLIF ( CASE 79 WHEN 66 THEN NULL ELSE - 31 END, 39 * - COUNT ( * ) )
----
-1394

query I rowsort
SELECT 41 * + - 7 AS col1
----
-287

query I rowsort
SELECT DISTINCT 65 * 14
----
910

query I rowsort
SELECT DISTINCT 76 - - + 47
----
123

query I rowsort
SELECT 60 + + 69
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT 30 * + COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-8872
SELECT 30 * + COUNT ( * ) AS col2
----
30

query I rowsort
SELECT DISTINCT 29 * - ( - + 40 ) AS col2
----
1160

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT ALL - ( + MIN( DISTINCT 74 ) ) * - - ( 51 ) * + 21 + 62
----
-79192

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL - ( + MIN ( DISTINCT 74 ) ) * - - ( 51 ) * + 21 + 62
----
-79192

query I rowsort
SELECT 27 * 71 * - 35 - - 90 + 99 * 50
----
-62055

onlyif mysql # DIV for integer division: 
query I rowsort label-8876
SELECT ( + 75 ) DIV + - 20 - 36
----
-39

skipif mysql # not compatible
query I rowsort label-8876
SELECT ( + 75 ) / + - 20 - 36
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT 60 + - + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-8877
SELECT 60 + - + COUNT ( * )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8878
SELECT NULLIF ( 38, + 21 + 58 ) + + CAST( NULL AS SIGNED ) * + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT NULLIF ( 38, + 21 + 58 ) + + CAST ( NULL AS INTEGER ) * + 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8879
SELECT COUNT( * ) DIV 20 * - COALESCE ( - 5, 36 - + 24 ) * 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8879
SELECT COUNT ( * ) / 20 * - COALESCE ( - 5, 36 - + 24 ) * 87 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8880
SELECT - CAST( 71 AS SIGNED ) + - 49 DIV - + 3 - 38
----
-93

skipif mysql # not compatible
query I rowsort label-8880
SELECT - CAST ( 71 AS INTEGER ) + - 49 / - + 3 - 38
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT DISTINCT + 5 + NULLIF ( + COUNT( * ), - 69 + - ( 54 ) )
----
6

skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT + 5 + NULLIF ( + COUNT ( * ), - 69 + - ( 54 ) )
----
6

query I rowsort
SELECT ALL + 94 * - - 28 + + + COALESCE ( + 34, 5 * + 67 - + 39 * + 2, 89 )
----
2666

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT COUNT( * ) - 85 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-8883
SELECT COUNT ( * ) - 85 AS col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8884
SELECT ALL + 61 * + 71 + - - CAST( - 8 AS SIGNED ) AS col1
----
4323

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL + 61 * + 71 + - - CAST ( - 8 AS INTEGER ) AS col1
----
4323

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT ALL - + COUNT( ALL 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL - + COUNT ( ALL 87 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8886
SELECT DISTINCT - - 83 * - 2 + NULLIF ( - 34, 91 + CASE + 12 + 38 WHEN - 16 THEN NULL WHEN + 88 * - 29 - - 1 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE + 91 + 90 * 80 END ) AS col2
----
-200

skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT - - 83 * - 2 + NULLIF ( - 34, 91 + CASE + 12 + 38 WHEN - 16 THEN NULL WHEN + 88 * - 29 - - 1 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 91 + 90 * 80 END ) AS col2
----
-200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8887
SELECT ALL - 64 * + + 68 * - 57 + + 15 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL - 64 * + + 68 * - 57 + + 15 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8888
SELECT ALL - CAST( NULL AS SIGNED ) * - + 14 * + 76 + ( + 2 ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 14 * + 76 + ( + 2 ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT COUNT( * ) - 34 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-8889
SELECT COUNT ( * ) - 34 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT DISTINCT - MIN( DISTINCT 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT - MIN ( DISTINCT 10 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL - CASE 42 WHEN 58 THEN NULL WHEN 95 THEN + - 1 + COUNT( * ) END * 60 + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL - CASE 42 WHEN 58 THEN NULL WHEN 95 THEN + - 1 + COUNT ( * ) END * 60 + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT - 7 - - COUNT( * ) * - 76 + + - ( 79 )
----
-162

skipif mysql # not compatible
query I rowsort label-8892
SELECT - 7 - - COUNT ( * ) * - 76 + + - ( 79 )
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT MIN( ( - + 13 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-8893
SELECT MIN ( ( - + 13 ) )
----
-13

query I rowsort
SELECT - 83 * + - ( ( - + 77 ) )
----
-6391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8895
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 57 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 57 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT ALL + COUNT( * ) * + 45 * - + 38
----
-1710

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL + COUNT ( * ) * + 45 * - + 38
----
-1710

query I rowsort
SELECT DISTINCT - 78 - 36 * + - 65 * 41 AS col0
----
95862

query I rowsort
SELECT 33 * 22 + - 85
----
641

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8899
SELECT ALL + CAST( NULL AS SIGNED ) * + 94 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL + CAST ( NULL AS INTEGER ) * + 94 col1
----
NULL

query I rowsort
SELECT - 0 + + - 55 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT + SUM( - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-8901
SELECT + SUM ( - 28 )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT - 17 DIV + 28
----
0

skipif mysql # not compatible
query I rowsort label-8902
SELECT - 17 / + 28
----
0

query I rowsort
SELECT - 76 + + 64
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-8904
SELECT - 93 + - 27 DIV - 84 + - 21 * 37 col0
----
-870

skipif mysql # not compatible
query I rowsort label-8904
SELECT - 93 + - 27 / - 84 + - 21 * 37 col0
----
-870

query I rowsort
SELECT + ( + 38 ) * + 40
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT - MAX( DISTINCT - 25 ) + + 50 + - 9 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-8906
SELECT - MAX ( DISTINCT - 25 ) + + 50 + - 9 AS col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8907
SELECT ALL 81 DIV + 70 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL 81 / + 70 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT + COALESCE ( - 21, 28 * + NULLIF ( - COUNT( * ), ( - ( + COUNT( * ) ) ) ) * 32 ) * + 84 AS col2
----
-1764

skipif mysql # not compatible
query I rowsort label-8908
SELECT + COALESCE ( - 21, 28 * + NULLIF ( - COUNT ( * ), ( - ( + COUNT ( * ) ) ) ) * 32 ) * + 84 AS col2
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT + + 22 + - COUNT( * ) * + 65 * 10 col1
----
-628

skipif mysql # not compatible
query I rowsort label-8909
SELECT + + 22 + - COUNT ( * ) * + 65 * 10 col1
----
-628

onlyif mysql # DIV for integer division: 
query I rowsort label-8910
SELECT ALL + - 45 DIV - 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL + - 45 / - 91 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT + - 47 + + 94 * + 22 + + - 90 + + 1 * 81 * + NULLIF ( + 15 * + 94, COUNT( * ) * - 99 + 21 * 73 )
----
116141

skipif mysql # not compatible
query I rowsort label-8911
SELECT + - 47 + + 94 * + 22 + + - 90 + + 1 * 81 * + NULLIF ( + 15 * + 94, COUNT ( * ) * - 99 + 21 * 73 )
----
116141

query I rowsort
SELECT - 72 + - 59 col0
----
-131

query I rowsort
SELECT + NULLIF ( + ( + + COALESCE ( + ( - 93 ), + 61 ) ), 26 * + 66 ) + - 10 AS col2
----
-103

query I rowsort
SELECT - + NULLIF ( 59, - - 35 + - 12 ) * - 64 * - 90 AS col2
----
-339840

query I rowsort
SELECT + 56 + - 27
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT DISTINCT + COUNT( * ) + - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT + COUNT ( * ) + - + COUNT ( * )
----
0

query I rowsort
SELECT ALL + 76 + - ( 69 ) AS col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8918
SELECT + 93 AS col1, + 65 DIV + - ( - - COUNT( * ) ) + - 70 * 95 AS col2
----
93
-6715

skipif mysql # not compatible
query II rowsort label-8918
SELECT + 93 AS col1, + 65 / + - ( - - COUNT ( * ) ) + - 70 * 95 AS col2
----
93
-6715

query I rowsort
SELECT ALL + ( - - 80 )
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8920
SELECT DISTINCT ( + - CAST( NULL AS DECIMAL ) ) + 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT ( + - CAST ( NULL AS REAL ) ) + 39 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8921
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - - 36 + 98 AS col0, SUM( 77 ) AS col1
----
NULL
77

skipif mysql # not compatible
query II rowsort label-8921
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - - 36 + 98 AS col0, SUM ( 77 ) AS col1
----
NULL
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8922
SELECT + 2 * + + COUNT( * ) DIV 45 * + + 72 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8922
SELECT + 2 * + + COUNT ( * ) / 45 * + + 72 + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT + 72 * + + 11 * + 99 + MAX( DISTINCT - 91 ) + COUNT( * )
----
78318

skipif mysql # not compatible
query I rowsort label-8923
SELECT + 72 * + + 11 * + 99 + MAX ( DISTINCT - 91 ) + COUNT ( * )
----
78318

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8924
SELECT ALL + 70, SUM( DISTINCT + 9 ) + + + CASE - 67 WHEN ( - 41 ) * 98 THEN - 69 + - CAST( NULL AS DECIMAL ) * 43 ELSE NULL END * + ( + 46 ) AS col2
----
70
NULL

skipif mysql # not compatible
query II rowsort label-8924
SELECT ALL + 70, SUM ( DISTINCT + 9 ) + + + CASE - 67 WHEN ( - 41 ) * 98 THEN - 69 + - CAST ( NULL AS REAL ) * 43 ELSE NULL END * + ( + 46 ) AS col2
----
70
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8925
SELECT ALL + 39 DIV + 55 - - 30 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL + 39 / + 55 - - 30 AS col2
----
30

query I rowsort
SELECT + 66 * + 1 * - 32
----
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT - MAX( DISTINCT 85 ) * + 97 AS col2
----
-8245

skipif mysql # not compatible
query I rowsort label-8927
SELECT - MAX ( DISTINCT 85 ) * + 97 AS col2
----
-8245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8928
SELECT DISTINCT + CAST( 11 AS SIGNED ) * + ( - COUNT( * ) ) * 20 AS col0
----
-220

skipif mysql # not compatible
query I rowsort label-8928
SELECT DISTINCT + CAST ( 11 AS INTEGER ) * + ( - COUNT ( * ) ) * 20 AS col0
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT ALL - COALESCE ( MIN( ALL + - 77 ), SUM( - 13 ) * - - 25 * 33 ) * 29 AS col2
----
2233

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL - COALESCE ( MIN ( ALL + - 77 ), SUM ( - 13 ) * - - 25 * 33 ) * 29 AS col2
----
2233

query I rowsort
SELECT - 9 * - 56 + + + 87 AS col1
----
591

query I rowsort
SELECT 37 * + 89 + - 67 AS col0
----
3226

query II rowsort
SELECT ALL + 5, - 76 * 99 AS col2
----
5
-7524

query I rowsort
SELECT ( + 75 ) AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8934
SELECT + 59 / - + 76 * NULLIF ( - 38, - ( + 38 ) + + 65 ) + + CASE - 98 - - 43 * 95 WHEN 23 THEN NULL WHEN + 81 + - CAST( 62 AS SIGNED ) THEN 60 + + COUNT( * ) * COUNT( - 87 * + 58 ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8934
SELECT + 59 / - + 76 * NULLIF ( - 38, - ( + 38 ) + + 65 ) + + CASE - 98 - - 43 * 95 WHEN 23 THEN NULL WHEN + 81 + - CAST ( 62 AS INTEGER ) THEN 60 + + COUNT ( * ) * COUNT ( - 87 * + 58 ) ELSE NULL END col1
----
NULL

query I rowsort
SELECT NULLIF ( - + 3, - + 90 )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8936
SELECT DISTINCT + MIN( - 49 ) AS col0, SUM( + 28 ) col0
----
-49
28

skipif mysql # not compatible
query II rowsort label-8936
SELECT DISTINCT + MIN ( - 49 ) AS col0, SUM ( + 28 ) col0
----
-49
28

query I rowsort
SELECT - 76 * + - 93 * 28
----
197904

query I rowsort
SELECT NULLIF ( - 68, + 47 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-8939
SELECT ALL + 75 * + COUNT( * ) col0, 7
----
75
7

skipif mysql # not compatible
query II rowsort label-8939
SELECT ALL + 75 * + COUNT ( * ) col0, 7
----
75
7

query I rowsort
SELECT - NULLIF ( - 13, 92 ) * - + 27 + - 20 col1
----
-371

query II rowsort
SELECT - 36 AS col0, - 25 AS col0
----
-36
-25

query I rowsort
SELECT DISTINCT + - ( + + 15 ) * 72 - + - 59
----
-1021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8943
SELECT - + COUNT( * ) AS col0, + CAST( - ( - - 49 ) AS SIGNED ), 7 AS col0
----
-1
-49
7

skipif mysql # not compatible
query III rowsort label-8943
SELECT - + COUNT ( * ) AS col0, + CAST ( - ( - - 49 ) AS INTEGER ), 7 AS col0
----
-1
-49
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8944
SELECT - - CAST( NULL AS SIGNED ) / + 41 + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-8944
SELECT - - CAST ( NULL AS INTEGER ) / + 41 + - 54
----
NULL

query I rowsort
SELECT + - 10 * 44 * + - 12 AS col0
----
5280

query I rowsort
SELECT ALL - 5 + 29
----
24

query I rowsort
SELECT - - 99 - - 17 + + + 91
----
207

query I rowsort
SELECT ALL + + 38 + 69 col1
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-8949
SELECT + 33 AS col2, - COUNT( DISTINCT 88 ) + - 49
----
33
-50

skipif mysql # not compatible
query II rowsort label-8949
SELECT + 33 AS col2, - COUNT ( DISTINCT 88 ) + - 49
----
33
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8950
SELECT DISTINCT + COUNT( * ) + - 48 DIV + 31
----
0

skipif mysql # not compatible
query I rowsort label-8950
SELECT DISTINCT + COUNT ( * ) + - 48 / + 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT ALL - + COUNT( * ) + - COUNT( ALL + 21 ) + - 15
----
-17

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL - + COUNT ( * ) + - COUNT ( ALL + 21 ) + - 15
----
-17

query I rowsort
SELECT ALL 73 + + - 10 AS col1
----
63

query II rowsort
SELECT - 33 AS col0, 88 AS col1
----
-33
88

query I rowsort
SELECT ALL NULLIF ( - 96, + 23 )
----
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8955
SELECT - ( 16 ) + + 69 * - CAST( NULL AS DECIMAL ) * - 48 + - COALESCE ( 52, 69 - 68 ) + + 28 * 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8955
SELECT - ( 16 ) + + 69 * - CAST ( NULL AS REAL ) * - 48 + - COALESCE ( 52, 69 - 68 ) + + 28 * 53 AS col1
----
NULL

query II rowsort
SELECT - NULLIF ( - ( 41 ), 16 ), 95 AS col0
----
41
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT + - CASE - COUNT( ALL - 95 ) WHEN - 86 * - + 41 * 30 THEN 4 + + 86 END + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8957
SELECT + - CASE - COUNT ( ALL - 95 ) WHEN - 86 * - + 41 * 30 THEN 4 + + 86 END + 21
----
NULL

query I rowsort
SELECT DISTINCT 35 - + 40
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8959
SELECT - - CASE - + 47 WHEN + 94 * - NULLIF ( + 69, + + 37 * + ( 81 ) ) / - 16 - ( NULLIF ( - ( 91 ), 85 / 65 + ( 64 ) * 6 ) + + 1 ) THEN - CAST( NULL AS SIGNED ) * + 57 + AVG ( DISTINCT - 56 + 54 / 84 ) WHEN 61 * + 50 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8959
SELECT - - CASE - + 47 WHEN + 94 * - NULLIF ( + 69, + + 37 * + ( 81 ) ) / - 16 - ( NULLIF ( - ( 91 ), 85 / 65 + ( 64 ) * 6 ) + + 1 ) THEN - CAST ( NULL AS INTEGER ) * + 57 + AVG ( DISTINCT - 56 + 54 / 84 ) WHEN 61 * + 50 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL + COUNT( * ) - + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL + COUNT ( * ) - + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT DISTINCT + 50 * - - 59 * - - COUNT( * )
----
2950

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT + 50 * - - 59 * - - COUNT ( * )
----
2950

query I rowsort
SELECT ALL ( 98 ) * + 11
----
1078

onlyif mysql # DIV for integer division: 
query I rowsort label-8963
SELECT 44 * - 65 DIV + + 1
----
-2860

skipif mysql # not compatible
query I rowsort label-8963
SELECT 44 * - 65 / + + 1
----
-2860

query I rowsort
SELECT 63 - + - 20 - + 0
----
83

query I rowsort
SELECT 34 * - COALESCE ( + 8, - 70 )
----
-272

query II rowsort
SELECT 69 * - 7 AS col0, 5 + + - 2 col0
----
-483
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8967
SELECT 40 - + ( + 43 ) + + - 17 - + - CAST( NULL AS DECIMAL ) / + 31 - + + COUNT( 70 ) + + 78 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8967
SELECT 40 - + ( + 43 ) + + - 17 - + - CAST ( NULL AS REAL ) / + 31 - + + COUNT ( 70 ) + + 78 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT ALL - 43 * + COUNT( * ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL - 43 * + COUNT ( * ) AS col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8969
SELECT 59 * + CAST( - - 14 AS SIGNED ) * COUNT( * ) AS col1
----
826

skipif mysql # not compatible
query I rowsort label-8969
SELECT 59 * + CAST ( - - 14 AS INTEGER ) * COUNT ( * ) AS col1
----
826

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT ALL 52 + + COUNT( 13 ) * + + 15 + + 23 - 76
----
14

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL 52 + + COUNT ( 13 ) * + + 15 + + 23 - 76
----
14

query I rowsort
SELECT ALL + 70 + - 85 AS col1
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8972
SELECT DISTINCT 46 * + NULLIF ( + 41, - ( 17 ) ) * 97 * + - CAST( NULL AS DECIMAL ) * - 7 + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT 46 * + NULLIF ( + 41, - ( 17 ) ) * 97 * + - CAST ( NULL AS REAL ) * - 7 + 14 AS col0
----
NULL

query I rowsort
SELECT 85 - + 17 AS col2
----
68

query I rowsort
SELECT 12 + + NULLIF ( + 0, 80 ) col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT MAX( + 62 ) * - 51 AS col0
----
-3162

skipif mysql # not compatible
query I rowsort label-8975
SELECT MAX ( + 62 ) * - 51 AS col0
----
-3162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8976
SELECT COUNT( - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8976
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT - 77 + - ( 75 ) AS col0
----
-152

onlyif mysql # aggregate syntax: 
query II rowsort label-8978
SELECT DISTINCT + COUNT( * ) + - - 93 + - - 81 AS col2, 82 AS col1
----
175
82

skipif mysql # not compatible
query II rowsort label-8978
SELECT DISTINCT + COUNT ( * ) + - - 93 + - - 81 AS col2, 82 AS col1
----
175
82

query I rowsort
SELECT 81 + + 33
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8980
SELECT DISTINCT + COUNT( DISTINCT - 27 ) col2, - 58 - 49 + + 18 * CAST( NULL AS SIGNED ) col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8980
SELECT DISTINCT + COUNT ( DISTINCT - 27 ) col2, - 58 - 49 + + 18 * CAST ( NULL AS INTEGER ) col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT + COALESCE ( - 50, + + SUM( - 8 ) * + 42 ) * + 23
----
-1150

skipif mysql # not compatible
query I rowsort label-8981
SELECT + COALESCE ( - 50, + + SUM ( - 8 ) * + 42 ) * + 23
----
-1150

query I rowsort
SELECT ALL - 82 * - - 38 AS col1
----
-3116

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT COUNT( * ) + + - ( - 42 )
----
43

skipif mysql # not compatible
query I rowsort label-8983
SELECT COUNT ( * ) + + - ( - 42 )
----
43

query I rowsort
SELECT + ( + 33 ) AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8985
SELECT CAST( + - 47 AS SIGNED ) + - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-8985
SELECT CAST ( + - 47 AS INTEGER ) + - COUNT ( * )
----
-48

query I rowsort
SELECT - 93 * - 88 + - 58 + 49
----
8175

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT + SUM( 20 ) + 44
----
64

skipif mysql # not compatible
query I rowsort label-8987
SELECT + SUM ( 20 ) + 44
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-8988
SELECT DISTINCT ( - + 13 ), COUNT( * ) + 14 AS col1
----
-13
15

skipif mysql # not compatible
query II rowsort label-8988
SELECT DISTINCT ( - + 13 ), COUNT ( * ) + 14 AS col1
----
-13
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT ALL - MIN( 78 ) col1
----
-78

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL - MIN ( 78 ) col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT MAX( DISTINCT 39 ) * - COUNT( ( 88 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-8990
SELECT MAX ( DISTINCT 39 ) * - COUNT ( ( 88 ) )
----
-39

query I rowsort
SELECT ALL 7 * 71 AS col2
----
497

onlyif mysql # DIV for integer division: 
query I rowsort label-8992
SELECT 44 DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-8992
SELECT 44 / - 60
----
0

query I rowsort
SELECT ALL - 74 / + CASE + - 49 WHEN - ( - 52 ) THEN - 49 WHEN + 15 * + 79 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT 37 * - 16 + - + 79 + + 9 * + 43 * + - MAX( 14 ) AS col0
----
-6089

skipif mysql # not compatible
query I rowsort label-8994
SELECT 37 * - 16 + - + 79 + + 9 * + 43 * + - MAX ( 14 ) AS col0
----
-6089

query I rowsort
SELECT 24 * 36
----
864

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8996
SELECT ALL - 98 AS col1, 60 * + + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) + 20
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-8996
SELECT ALL - 98 AS col1, 60 * + + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) + 20
----
-98
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8997
SELECT + 58 col0, ( + CAST( NULL AS SIGNED ) )
----
58
NULL

skipif mysql # not compatible
query II rowsort label-8997
SELECT + 58 col0, ( + CAST ( NULL AS INTEGER ) )
----
58
NULL

query I rowsort
SELECT ALL 65 + + 36 * + 45 + + 41 * + 94 AS col1
----
5539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8999
SELECT 50 + + - COALESCE ( - - 62, + 26 DIV - + COUNT( * ) * - - 6 + + - NULLIF ( - ( COUNT( * ) ), CAST( NULL AS DECIMAL ) * - CAST( NULL AS SIGNED ) - + 46 * 54 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-8999
SELECT 50 + + - COALESCE ( - - 62, + 26 / - + COUNT ( * ) * - - 6 + + - NULLIF ( - ( COUNT ( * ) ), CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER ) - + 46 * 54 ) )
----
-12

query I rowsort
SELECT ALL - ( - ( - 64 ) )
----
-64

query I rowsort
SELECT 69 * - 11 AS col0
----
-759

onlyif mysql # DIV for integer division: 
query I rowsort label-9002
SELECT ALL 29 + 88 * NULLIF ( - 22, - + 32 ) DIV - 6
----
351

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL 29 + 88 * NULLIF ( - 22, - + 32 ) / - 6
----
351

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT SUM( DISTINCT 40 ) col1
----
40

skipif mysql # not compatible
query I rowsort label-9003
SELECT SUM ( DISTINCT 40 ) col1
----
40

query I rowsort
SELECT DISTINCT 64 + 42
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-9005
SELECT 59 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-9005
SELECT 59 / - 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT COUNT( ALL + 32 ) + 24 + - 96
----
-71

skipif mysql # not compatible
query I rowsort label-9006
SELECT COUNT ( ALL + 32 ) + 24 + - 96
----
-71

query I rowsort
SELECT ALL 99 + + + 20 AS col0
----
119

query I rowsort
SELECT 65 * 35 AS col1
----
2275

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9009
SELECT + 27, + 31 * + CAST( 71 AS SIGNED ) AS col2
----
27
2201

skipif mysql # not compatible
query II rowsort label-9009
SELECT + 27, + 31 * + CAST ( 71 AS INTEGER ) AS col2
----
27
2201

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT - - COUNT( * ) * + 6 - - 73 + - COUNT( * ) + - + 83 - + COUNT( ALL - - 62 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-9010
SELECT - - COUNT ( * ) * + 6 - - 73 + - COUNT ( * ) + - + 83 - + COUNT ( ALL - - 62 ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT + - SUM( ALL + + 61 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-9011
SELECT + - SUM ( ALL + + 61 ) AS col1
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9012
SELECT + - NULLIF ( + - NULLIF ( - + 36, - 6 ), - 5 * CAST( + - 48 AS SIGNED ) + - - 18 - CAST( + 58 AS SIGNED ) )
----
-36

skipif mysql # not compatible
query I rowsort label-9012
SELECT + - NULLIF ( + - NULLIF ( - + 36, - 6 ), - 5 * CAST ( + - 48 AS INTEGER ) + - - 18 - CAST ( + 58 AS INTEGER ) )
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-9013
SELECT ALL 5 * + 82 + + - 52, + COUNT( * ) AS col1
----
358
1

skipif mysql # not compatible
query II rowsort label-9013
SELECT ALL 5 * + 82 + + - 52, + COUNT ( * ) AS col1
----
358
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9014
SELECT + 75 DIV - 8
----
-9

skipif mysql # not compatible
query I rowsort label-9014
SELECT + 75 / - 8
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT ALL - 77 + + COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL - 77 + + COUNT ( * ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT DISTINCT + - 0 + + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT + - 0 + + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT ALL - - 37 - - - 51 * + - COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL - - 37 - - - 51 * + - COUNT ( * ) AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9018
SELECT ALL + CAST( 36 AS SIGNED ) * - - 49 * + - NULLIF ( 50, - + 52 ) * + MIN( 32 ) * - 26 AS col0
----
73382400

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL + CAST ( 36 AS INTEGER ) * - - 49 * + - NULLIF ( 50, - + 52 ) * + MIN ( 32 ) * - 26 AS col0
----
73382400

query I rowsort
SELECT DISTINCT + 94 - - 63 AS col1
----
157

query II rowsort
SELECT - + 75 col2, + 36 AS col0
----
-75
36

query II rowsort
SELECT ALL + + 58 - 75 + 30, - 90 AS col1
----
13
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9022
SELECT COALESCE ( + 98, + - 66 DIV - 16 + - + COUNT( * ) - 71 + - - NULLIF ( - COUNT( * ), - 18 ) + COUNT( NULLIF ( 67, - 15 ) ), - ( + ( + 19 ) ) )
----
98

skipif mysql # not compatible
query I rowsort label-9022
SELECT COALESCE ( + 98, + - 66 / - 16 + - + COUNT ( * ) - 71 + - - NULLIF ( - COUNT ( * ), - 18 ) + COUNT ( NULLIF ( 67, - 15 ) ), - ( + ( + 19 ) ) )
----
98

query I rowsort
SELECT + 91 - - - 31 * - 62 * + + 61 * ( ( + - 39 ) ) AS col1
----
-4572347

onlyif mysql # aggregate syntax: 
query II rowsort label-9024
SELECT DISTINCT 97 AS col0, - CASE - 50 WHEN COUNT( DISTINCT - 15 ) THEN 85 + 90 + - 45 - ( 48 + ( SUM( DISTINCT 93 ) + ( CASE 54 WHEN 11 + + COUNT( * ) THEN NULL WHEN + 82 + 83 * - COUNT( * ) THEN - 42 END - 33 ) ) ) * 35 END
----
97
NULL

skipif mysql # not compatible
query II rowsort label-9024
SELECT DISTINCT 97 AS col0, - CASE - 50 WHEN COUNT ( DISTINCT - 15 ) THEN 85 + 90 + - 45 - ( 48 + ( SUM ( DISTINCT 93 ) + ( CASE 54 WHEN 11 + + COUNT ( * ) THEN NULL WHEN + 82 + 83 * - COUNT ( * ) THEN - 42 END - 33 ) ) ) * 35 END
----
97
NULL

query I rowsort
SELECT ALL - 20 * + - 41 AS col2
----
820

query I rowsort
SELECT - + 15 * - 52 - - + 43
----
823

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT - CASE 65 WHEN + + 5 * - - 13 * + COUNT( * ) + 18 THEN - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9027
SELECT - CASE 65 WHEN + + 5 * - - 13 * + COUNT ( * ) + 18 THEN - + COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 89 - + 76 + + + 20 + - 83 + + 17 + + - 35
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT DISTINCT CASE 47 WHEN + 29 THEN + 75 WHEN - 63 THEN NULL ELSE - - 96 - + MIN( ALL - 88 ) END
----
184

skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT CASE 47 WHEN + 29 THEN + 75 WHEN - 63 THEN NULL ELSE - - 96 - + MIN ( ALL - 88 ) END
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT DISTINCT + ( COUNT( * ) ) * - - 23 + - SUM( ALL + - 44 ) * COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-9030
SELECT DISTINCT + ( COUNT ( * ) ) * - - 23 + - SUM ( ALL + - 44 ) * COUNT ( * )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9031
SELECT ALL 17 DIV 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL 17 / 45 AS col0
----
0

query II rowsort
SELECT ( - - 35 ) AS col2, + 15 + + 30 + + ( 9 )
----
35
54

query I rowsort
SELECT ALL 9 * 52 + - + 27 AS col2
----
441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9034
SELECT DISTINCT CAST( + ( + + COUNT( * ) ) AS SIGNED ) * - 61 + + - CASE + MAX( ALL 3 ) WHEN - - 26 * + COUNT( * ) * + 26 + + 29 THEN - COUNT( * ) - - 69 END * + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT DISTINCT CAST ( + ( + + COUNT ( * ) ) AS INTEGER ) * - 61 + + - CASE + MAX ( ALL 3 ) WHEN - - 26 * + COUNT ( * ) * + 26 + + 29 THEN - COUNT ( * ) - - 69 END * + 31
----
NULL

query I rowsort
SELECT ( - CASE - - 68 WHEN + - 11 THEN + AVG ( - 95 ) * + 10 ELSE NULL END )
----
NULL

query I rowsort
SELECT - 11 * + 96 col1
----
-1056

query I rowsort
SELECT + 17 * 98 * - + 5 AS col0
----
-8330

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT DISTINCT 52 * COUNT( * ) + + - 23 + - 75 + NULLIF ( - 77, - - SUM( - - 92 ) )
----
-123

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT 52 * COUNT ( * ) + + - 23 + - 75 + NULLIF ( - 77, - - SUM ( - - 92 ) )
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9039
SELECT ALL - 53 * 36, + CAST( + MAX( ALL - 82 ) AS SIGNED ) AS col2
----
-1908
-82

skipif mysql # not compatible
query II rowsort label-9039
SELECT ALL - 53 * 36, + CAST ( + MAX ( ALL - 82 ) AS INTEGER ) AS col2
----
-1908
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9040
SELECT ( + - 54 ) * + 1 + + 49 - - ( - 74 ) + - 38 DIV + COUNT( DISTINCT ( 11 ) ) + + 92
----
-25

skipif mysql # not compatible
query I rowsort label-9040
SELECT ( + - 54 ) * + 1 + + 49 - - ( - 74 ) + - 38 / + COUNT ( DISTINCT ( 11 ) ) + + 92
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT + - CASE ( - COUNT( ( + 22 ) ) ) WHEN - + 1 THEN + 73 * - - NULLIF ( 44, 27 ) WHEN 43 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE MAX( ALL + ( 49 ) ) * ( 65 + COUNT( * ) ) + + 0 END AS col2
----
-3212

skipif mysql # not compatible
query I rowsort label-9041
SELECT + - CASE ( - COUNT ( ( + 22 ) ) ) WHEN - + 1 THEN + 73 * - - NULLIF ( 44, 27 ) WHEN 43 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE MAX ( ALL + ( 49 ) ) * ( 65 + COUNT ( * ) ) + + 0 END AS col2
----
-3212

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT ALL 94 * + COUNT( DISTINCT - 39 ) + + - COALESCE ( 23, - 71 ) - - 35 AS col2
----
106

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL 94 * + COUNT ( DISTINCT - 39 ) + + - COALESCE ( 23, - 71 ) - - 35 AS col2
----
106

query I rowsort
SELECT ALL - 44 * - + 72 - 41
----
3127

onlyif mysql # aggregate syntax: 
query II rowsort label-9044
SELECT DISTINCT - + 81 * - 88 + + SUM( - 11 ) AS col1, - 59
----
7117
-59

skipif mysql # not compatible
query II rowsort label-9044
SELECT DISTINCT - + 81 * - 88 + + SUM ( - 11 ) AS col1, - 59
----
7117
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT DISTINCT ( + 15 ) * - - MIN( ALL 87 ) - + - NULLIF ( + 40, + 59 * + 45 ) - + 80
----
1265

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT ( + 15 ) * - - MIN ( ALL 87 ) - + - NULLIF ( + 40, + 59 * + 45 ) - + 80
----
1265

query I rowsort
SELECT + - 29 * + 19 + + + 88 + - - 11 AS col1
----
-452

query II rowsort
SELECT + 9 - + - 76 AS col2, 59
----
85
59

query I rowsort
SELECT - + 60 * + 21 col1
----
-1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9049
SELECT DISTINCT 96 DIV 66 + + 89 + - - ( + + 47 ) + - ( COUNT( * ) ) * - 7 - - 2 AS col1
----
146

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT 96 / 66 + + 89 + - - ( + + 47 ) + - ( COUNT ( * ) ) * - 7 - - 2 AS col1
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9050
SELECT + MAX( - CAST( NULL AS SIGNED ) ) * + COUNT( * ) * + - MAX( ALL + 97 ) + - 73 * + CAST( NULL AS SIGNED ) / - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT + MAX ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * + - MAX ( ALL + 97 ) + - 73 * + CAST ( NULL AS INTEGER ) / - 25
----
NULL

query I rowsort
SELECT + + 10 + - 67 + + - 2 AS col1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9052
SELECT ALL - CAST( - 53 AS SIGNED ) AS col0, 60
----
53
60

skipif mysql # not compatible
query II rowsort label-9052
SELECT ALL - CAST ( - 53 AS INTEGER ) AS col0, 60
----
53
60

query I rowsort
SELECT + - ( + 30 ) + - - ( 17 ) * + 84
----
1398

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9054
SELECT ALL NULLIF ( 66, + - CAST( NULL AS SIGNED ) )
----
66

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL NULLIF ( 66, + - CAST ( NULL AS INTEGER ) )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9055
SELECT DISTINCT + 72 DIV - + ( + + 65 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT + 72 / - + ( + + 65 ) AS col1
----
-1

query I rowsort
SELECT + + 61 + 19 + 26 AS col0
----
106

onlyif mysql # DIV for integer division: 
query II rowsort label-9057
SELECT + 11 DIV - 62, - 33 + + 33 col0
----
0
0

skipif mysql # not compatible
query II rowsort label-9057
SELECT + 11 / - 62, - 33 + + 33 col0
----
0
0

query I rowsort
SELECT DISTINCT + 22 * - 47
----
-1034

query I rowsort
SELECT + 84 * - 24 * - 66 AS col0
----
133056

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT ALL COUNT( ALL 46 )
----
1

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL COUNT ( ALL 46 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9061
SELECT + 1 DIV - 18 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9061
SELECT + 1 / - 18 AS col2
----
0

query I rowsort
SELECT + 71 + - - 6 col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9063
SELECT - CAST( - SUM( - 54 ) AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-9063
SELECT - CAST ( - SUM ( - 54 ) AS INTEGER )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT - COUNT( * ) * 56
----
-56

skipif mysql # not compatible
query I rowsort label-9064
SELECT - COUNT ( * ) * 56
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9065
SELECT ALL CASE - + 60 WHEN + - 87 THEN - 85 ELSE - NULLIF ( + 18, - - SUM( 59 ) ) END + - 3 DIV 91 col2
----
-18

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL CASE - + 60 WHEN + - 87 THEN - 85 ELSE - NULLIF ( + 18, - - SUM ( 59 ) ) END + - 3 / 91 col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT ALL ( + + SUM( + 22 ) ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL ( + + SUM ( + 22 ) ) AS col2
----
22

query I rowsort
SELECT DISTINCT + 29 * + 78 AS col1
----
2262

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT ALL 88 + + - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL 88 + + - COUNT ( * )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9069
SELECT + COUNT( * ) + + COALESCE ( - + CAST( NULL AS SIGNED ), - 30 * + - 12 / 42 ) - - CASE - 35 WHEN + 45 THEN - - 21 WHEN 33 THEN + 48 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9069
SELECT + COUNT ( * ) + + COALESCE ( - + CAST ( NULL AS INTEGER ), - 30 * + - 12 / 42 ) - - CASE - 35 WHEN + 45 THEN - - 21 WHEN 33 THEN + 48 ELSE NULL END col2
----
NULL

query I rowsort
SELECT - ( + + 86 ) - - + 45 AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9071
SELECT - CAST( + ( 1 ) AS SIGNED ) * 16 DIV - - 22 AS col1, 65
----
0
65

skipif mysql # not compatible
query II rowsort label-9071
SELECT - CAST ( + ( 1 ) AS INTEGER ) * 16 / - - 22 AS col1, 65
----
0
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9072
SELECT - ( - CAST( - 63 AS SIGNED ) ) + - + ( - 7 ) * + CASE 39 WHEN + 25 * - 14 - + + 15 THEN NULL WHEN - 83 THEN 92 + - COUNT( * ) WHEN 4 * - 23 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9072
SELECT - ( - CAST ( - 63 AS INTEGER ) ) + - + ( - 7 ) * + CASE 39 WHEN + 25 * - 14 - + + 15 THEN NULL WHEN - 83 THEN 92 + - COUNT ( * ) WHEN 4 * - 23 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 58 + 4 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT DISTINCT + SUM( + 84 )
----
84

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT + SUM ( + 84 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9075
SELECT + + NULLIF ( - ( + 84 ), + 25 / - + CASE CAST( NULL AS SIGNED ) WHEN ( CAST( - - 4 AS DECIMAL ) ) THEN - - ( 20 ) + - 8 END * NULLIF ( 74 + NULLIF ( 40 + ( 52 + 34 ), - 95 ), - SUM( + 90 ) * COUNT( * ) ) ) * + 62 + - 83 AS col1
----
-5291

skipif mysql # not compatible
query I rowsort label-9075
SELECT + + NULLIF ( - ( + 84 ), + 25 / - + CASE CAST ( NULL AS INTEGER ) WHEN ( CAST ( - - 4 AS REAL ) ) THEN - - ( 20 ) + - 8 END * NULLIF ( 74 + NULLIF ( 40 + ( 52 + 34 ), - 95 ), - SUM ( + 90 ) * COUNT ( * ) ) ) * + 62 + - 83 AS col1
----
-5291

query II rowsort
SELECT ALL + 89, - 76 AS col1
----
89
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-9077
SELECT DISTINCT + + 16 DIV + 16
----
1

skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT + + 16 / + 16
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT DISTINCT + NULLIF ( + 20, MIN( DISTINCT - - 47 ) )
----
20

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT + NULLIF ( + 20, MIN ( DISTINCT - - 47 ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT ALL - SUM( DISTINCT + + 84 ) - + 48
----
-132

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL - SUM ( DISTINCT + + 84 ) - + 48
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9080
SELECT DISTINCT + 3 * + COUNT( * ) * + 61 * - + CASE + SUM( - ( 83 ) ) WHEN ( 43 ) * + CASE 40 WHEN + 89 THEN NULL WHEN 19 * 14 + 41 THEN NULL WHEN NULLIF ( + 8, 1 / + 55 + CAST( NULL AS SIGNED ) ) + - 64 THEN + 21 END * 5 + 89 THEN + 4 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9080
SELECT DISTINCT + 3 * + COUNT ( * ) * + 61 * - + CASE + SUM ( - ( 83 ) ) WHEN ( 43 ) * + CASE 40 WHEN + 89 THEN NULL WHEN 19 * 14 + 41 THEN NULL WHEN NULLIF ( + 8, 1 / + 55 + CAST ( NULL AS INTEGER ) ) + - 64 THEN + 21 END * 5 + 89 THEN + 4 END AS col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 83, + 14 ) AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9082
SELECT 9 AS col1, - SUM( ALL + + 17 ) + 32 - + 0 + + - ( + + CAST( NULL AS SIGNED ) ) + - 15 - - 21 + - 56 + + COUNT( * ) / - 53 * 42 / - MIN( + 47 ) * + 22
----
9
NULL

skipif mysql # not compatible
query II rowsort label-9082
SELECT 9 AS col1, - SUM ( ALL + + 17 ) + 32 - + 0 + + - ( + + CAST ( NULL AS INTEGER ) ) + - 15 - - 21 + - 56 + + COUNT ( * ) / - 53 * 42 / - MIN ( + 47 ) * + 22
----
9
NULL

query I rowsort
SELECT ALL - - 12 col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT SUM( - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-9084
SELECT SUM ( - 70 )
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9085
SELECT ALL + + 11 + 86 + - + COALESCE ( + + 77, - COUNT( * ) ) DIV - 65 AS col0, + 0
----
98
0

skipif mysql # not compatible
query II rowsort label-9085
SELECT ALL + + 11 + 86 + - + COALESCE ( + + 77, - COUNT ( * ) ) / - 65 AS col0, + 0
----
98
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT - 39 - - + COUNT( DISTINCT 21 ) - + ( - 6 ) col1
----
-32

skipif mysql # not compatible
query I rowsort label-9086
SELECT - 39 - - + COUNT ( DISTINCT 21 ) - + ( - 6 ) col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT ALL NULLIF ( - CASE - 18 WHEN + 16 THEN NULL WHEN 38 * + COUNT( * ) * COUNT( * ) + + 8 + AVG ( DISTINCT + 4 ) THEN - 17 - 19 ELSE NULL END, - 47 * - 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL NULLIF ( - CASE - 18 WHEN + 16 THEN NULL WHEN 38 * + COUNT ( * ) * COUNT ( * ) + + 8 + AVG ( DISTINCT + 4 ) THEN - 17 - 19 ELSE NULL END, - 47 * - 9 )
----
NULL

query I rowsort
SELECT ALL - ( 47 ) AS col2
----
-47

query II rowsort
SELECT 89 col0, - 60
----
89
-60

query I rowsort
SELECT 7 * + 34 * + 62 AS col1
----
14756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9091
SELECT ( - + CAST( - - COUNT( * ) AS SIGNED ) ) * - MIN( + 34 ) col0
----
34

skipif mysql # not compatible
query I rowsort label-9091
SELECT ( - + CAST ( - - COUNT ( * ) AS INTEGER ) ) * - MIN ( + 34 ) col0
----
34

query I rowsort
SELECT DISTINCT 89 + - - 34
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-9093
SELECT DISTINCT + 61 + + 5 + - + ( - - COUNT( * ) ) col0, + 66 col0
----
65
66

skipif mysql # not compatible
query II rowsort label-9093
SELECT DISTINCT + 61 + + 5 + - + ( - - COUNT ( * ) ) col0, + 66 col0
----
65
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT ( 86 ) - COUNT( * ) + - 30 + + + 54 * - 37 AS col2
----
-1943

skipif mysql # not compatible
query I rowsort label-9094
SELECT ( 86 ) - COUNT ( * ) + - 30 + + + 54 * - 37 AS col2
----
-1943

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT ALL 42 * - COUNT( * ) col2
----
-42

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL 42 * - COUNT ( * ) col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT ALL COALESCE ( 43, 59 ) + - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL COALESCE ( 43, 59 ) + - COUNT ( * )
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9097
SELECT DISTINCT 36 + 40 + 84 + 15 AS col2, COUNT( * ) - + 39 AS col0
----
175
-38

skipif mysql # not compatible
query II rowsort label-9097
SELECT DISTINCT 36 + 40 + 84 + 15 AS col2, COUNT ( * ) - + 39 AS col0
----
175
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9098
SELECT 43 + + COALESCE ( - 7, 45 * 21 ) DIV - - 60, COUNT( * ) AS col0
----
43
1

skipif mysql # not compatible
query II rowsort label-9098
SELECT 43 + + COALESCE ( - 7, 45 * 21 ) / - - 60, COUNT ( * ) AS col0
----
43
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT 78 * COALESCE ( MIN( - 18 ), - - 16 ) * 68 + + - 58 - - 30
----
-95500

skipif mysql # not compatible
query I rowsort label-9099
SELECT 78 * COALESCE ( MIN ( - 18 ), - - 16 ) * 68 + + - 58 - - 30
----
-95500

query I rowsort
SELECT ALL 6 * 70 AS col1
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT ( + SUM( - 68 ) ) - - ( + 79 ) * - - NULLIF ( - + 23, + 60 + COUNT( * ) ) * - - 79 * 56 + - 37
----
-8038513

skipif mysql # not compatible
query I rowsort label-9101
SELECT ( + SUM ( - 68 ) ) - - ( + 79 ) * - - NULLIF ( - + 23, + 60 + COUNT ( * ) ) * - - 79 * 56 + - 37
----
-8038513

query I rowsort
SELECT ALL 82 * + 89
----
7298

onlyif mysql # aggregate syntax: 
query II rowsort label-9103
SELECT 64 col0, - COUNT( * ) AS col2
----
64
-1

skipif mysql # not compatible
query II rowsort label-9103
SELECT 64 col0, - COUNT ( * ) AS col2
----
64
-1

query I rowsort
SELECT ( 47 ) + + 47 AS col1
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9105
SELECT - 19 AS col2, + COUNT( * ) * - 44
----
-19
-44

skipif mysql # not compatible
query II rowsort label-9105
SELECT - 19 AS col2, + COUNT ( * ) * - 44
----
-19
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-9106
SELECT ( - - 42 ) * 10 DIV - 40
----
-10

skipif mysql # not compatible
query I rowsort label-9106
SELECT ( - - 42 ) * 10 / - 40
----
-10

query II rowsort
SELECT ALL 75, + 52 AS col1
----
75
52

query II rowsort
SELECT ALL - 29, 6 AS col0
----
-29
6

query I rowsort
SELECT ALL 99 - - - 48 AS col2
----
51

query I rowsort
SELECT - 55 * + 66 AS col2
----
-3630

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT + + 29 * 12 * + + 39 + - + 93 + - - COUNT( * ) + + 45
----
13525

skipif mysql # not compatible
query I rowsort label-9111
SELECT + + 29 * 12 * + + 39 + - + 93 + - - COUNT ( * ) + + 45
----
13525

onlyif mysql # aggregate syntax: 
query II rowsort label-9112
SELECT + + 48 AS col1, + 87 + - + COUNT( * )
----
48
86

skipif mysql # not compatible
query II rowsort label-9112
SELECT + + 48 AS col1, + 87 + - + COUNT ( * )
----
48
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT ALL + - SUM( COALESCE ( - + 19, 10, - + 80 * + 36 ) ) * - - 79 * 18 * - - 45 AS col1
----
1215810

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL + - SUM ( COALESCE ( - + 19, 10, - + 80 * + 36 ) ) * - - 79 * 18 * - - 45 AS col1
----
1215810

query I rowsort
SELECT + 21 * + - 97 col0
----
-2037

query I rowsort
SELECT 12 - - 65 + 95 AS col2
----
172

query II rowsort
SELECT ALL - 14 AS col2, 47 AS col0
----
-14
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9117
SELECT - - COUNT( * ) * - ( + + 76 ) * - 86 - - + MAX( ALL + + 52 ) - + CAST( NULL AS DECIMAL ) + + 19 / 77
----
NULL

skipif mysql # not compatible
query I rowsort label-9117
SELECT - - COUNT ( * ) * - ( + + 76 ) * - 86 - - + MAX ( ALL + + 52 ) - + CAST ( NULL AS REAL ) + + 19 / 77
----
NULL

query I rowsort
SELECT ALL 18 * + 50 AS col2
----
900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9119
SELECT 94 * - - CAST( + 30 AS SIGNED ) * 37 + - + 33 * + 9
----
104043

skipif mysql # not compatible
query I rowsort label-9119
SELECT 94 * - - CAST ( + 30 AS INTEGER ) * 37 + - + 33 * + 9
----
104043

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT ALL - COUNT( ALL - ( 87 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL - COUNT ( ALL - ( 87 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9121
SELECT ALL + + 59 + - NULLIF ( + + CAST( - - ( COUNT( * ) ) AS SIGNED ), 97 + + 28 * 33 * 26 ) * 54 - - 1 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL + + 59 + - NULLIF ( + + CAST ( - - ( COUNT ( * ) ) AS INTEGER ), 97 + + 28 * 33 * 26 ) * 54 - - 1 AS col0
----
6

query II rowsort
SELECT DISTINCT - - 45 AS col0, 0 * 29
----
45
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9123
SELECT + 63 * + 82 * - NULLIF ( + 37, + - 91 ) DIV - COUNT( ALL - - 28 ) + - 8 + + - COUNT( * ) + + + 38
----
191171

skipif mysql # not compatible
query I rowsort label-9123
SELECT + 63 * + 82 * - NULLIF ( + 37, + - 91 ) / - COUNT ( ALL - - 28 ) + - 8 + + - COUNT ( * ) + + + 38
----
191171

query II rowsort
SELECT + 93 - 94, 93 * 3 col1
----
-1
279

onlyif mysql # DIV for integer division: 
query I rowsort label-9125
SELECT ALL - + 47 DIV - 91 * - 25
----
0

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL - + 47 / - 91 * - 25
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9126
SELECT ALL - 89 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL - 89 / - 97
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9127
SELECT + 20 DIV + SUM( ALL - 65 ) * - SUM( + + 50 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9127
SELECT + 20 / + SUM ( ALL - 65 ) * - SUM ( + + 50 ) AS col2
----
0

query I rowsort
SELECT ALL - + ( - 20 ) + + ( 96 )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT - 60 * + - 88 * - ( + ( - 78 ) ) * 79 + + - SUM( + 85 )
----
32535275

skipif mysql # not compatible
query I rowsort label-9129
SELECT - 60 * + - 88 * - ( + ( - 78 ) ) * 79 + + - SUM ( + 85 )
----
32535275

query I rowsort
SELECT 44 + - 33
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT DISTINCT + ( - 64 ) + - 53 + 2 + - 87 * 40 * - + MAX( - + 68 ) + - + 84
----
-236839

skipif mysql # not compatible
query I rowsort label-9131
SELECT DISTINCT + ( - 64 ) + - 53 + 2 + - 87 * 40 * - + MAX ( - + 68 ) + - + 84
----
-236839

query II rowsort
SELECT DISTINCT - 39 + + - 9 col0, 72 AS col0
----
-48
72

query I rowsort
SELECT 49 + + 39 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT 88 + - COUNT( * ) * 4 col2
----
84

skipif mysql # not compatible
query I rowsort label-9134
SELECT 88 + - COUNT ( * ) * 4 col2
----
84

query I rowsort
SELECT ALL 59 - ( 91 ) AS col1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9136
SELECT ALL 35 DIV - SUM( ALL 98 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL 35 / - SUM ( ALL 98 ) AS col0
----
0

query I rowsort
SELECT 78 * 75 AS col1
----
5850

query I rowsort
SELECT ALL 99 * + 17 AS col1
----
1683

query II rowsort
SELECT 3 * 89 AS col1, 55 AS col1
----
267
55

query I rowsort
SELECT 74 + 62 + ( + 53 ) AS col0
----
189

query I rowsort
SELECT - ( + 28 ) - + 13
----
-41

query I rowsort
SELECT + 87 * + + 8 * + + 3
----
2088

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT ALL + 69 * CASE + - 36 WHEN - 33 + - 28 THEN + + 42 + COUNT( ALL + ( + - 76 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL + 69 * CASE + - 36 WHEN - 33 + - 28 THEN + + 42 + COUNT ( ALL + ( + - 76 ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9144
SELECT + + SUM( + CASE + + 32 WHEN 23 THEN + CAST( 94 AS SIGNED ) - - 44 * - - 44 WHEN + 29 + + + 22 THEN 39 + 84 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9144
SELECT + + SUM ( + CASE + + 32 WHEN 23 THEN + CAST ( 94 AS INTEGER ) - - 44 * - - 44 WHEN + 29 + + + 22 THEN 39 + 84 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9145
SELECT + COUNT( * ) DIV - + 28 DIV - NULLIF ( + 3, + - 28 - + 26 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9145
SELECT + COUNT ( * ) / - + 28 / - NULLIF ( + 3, + - 28 - + 26 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9146
SELECT + ( + - 26 ) * + 33 * 88 + + COUNT( ALL CAST( NULL AS DECIMAL ) ) * + 83 + + 64
----
-75440

skipif mysql # not compatible
query I rowsort label-9146
SELECT + ( + - 26 ) * + 33 * 88 + + COUNT ( ALL CAST ( NULL AS REAL ) ) * + 83 + + 64
----
-75440

query I rowsort
SELECT - 89 * 45 col2
----
-4005

query I rowsort
SELECT DISTINCT + + 67 col2
----
67

query I rowsort
SELECT ALL + 16 * + 31 + + 89 + - 16 * - - 13 AS col0
----
377

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT 48 * 0 + + MIN( + NULLIF ( + + 84, - 31 ) )
----
84

skipif mysql # not compatible
query I rowsort label-9150
SELECT 48 * 0 + + MIN ( + NULLIF ( + + 84, - 31 ) )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT DISTINCT + MAX( DISTINCT - + 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT + MAX ( DISTINCT - + 41 )
----
-41

query I rowsort
SELECT - + 87 * - AVG ( - 15 ) + + CASE 79 WHEN - 13 THEN - 59 * + + 2 * - - 54 / + - 9 / + + 2 + 39 END + - 11 * + 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT ( + - CASE - 8 WHEN CASE + 92 WHEN + - 28 + 32 + + 88 THEN NULL WHEN + + 32 THEN + - COUNT( * ) * 43 END THEN + 45 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT ( + - CASE - 8 WHEN CASE + 92 WHEN + - 28 + 32 + + 88 THEN NULL WHEN + + 32 THEN + - COUNT ( * ) * 43 END THEN + 45 ELSE NULL END )
----
NULL

query I rowsort
SELECT + ( + 88 ) * + 45 * 32 * - - 27 * - - 74
----
253186560

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT DISTINCT - - COUNT( DISTINCT - 35 ) * - - ( - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT - - COUNT ( DISTINCT - 35 ) * - - ( - 86 )
----
-86

query I rowsort
SELECT + - 21 * 21 AS col2
----
-441

query I rowsort
SELECT DISTINCT + 22 * + 57 + + 55
----
1309

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT ALL - ( - - COUNT( ALL 12 ) ) * + 11 + + NULLIF ( + - 14, 0 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL - ( - - COUNT ( ALL 12 ) ) * + 11 + + NULLIF ( + - 14, 0 ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-9159
SELECT COUNT( * ) AS col0, + ( + - COUNT( * ) )
----
1
-1

skipif mysql # not compatible
query II rowsort label-9159
SELECT COUNT ( * ) AS col0, + ( + - COUNT ( * ) )
----
1
-1

query II rowsort
SELECT - 96 AS col0, + 24
----
-96
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT COUNT( 42 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9161
SELECT COUNT ( 42 ) AS col1
----
1

query I rowsort
SELECT - ( 24 ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT - MIN( 52 ) * + 48
----
-2496

skipif mysql # not compatible
query I rowsort label-9163
SELECT - MIN ( 52 ) * + 48
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT DISTINCT + 80 * + MIN( - + 37 )
----
-2960

skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT + 80 * + MIN ( - + 37 )
----
-2960

query I rowsort
SELECT - 65 * - - 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9166
SELECT ALL 29 DIV - - 25 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL 29 / - - 25 AS col2
----
1

query I rowsort
SELECT - NULLIF ( - + 88, 32 ) - + 31
----
57

query II rowsort
SELECT - 64 AS col2, + 63
----
-64
63

query I rowsort
SELECT ALL - 26 - 41 + - - 9 AS col0
----
-58

query I rowsort
SELECT - 35 * + - 61
----
2135

onlyif mysql # aggregate syntax: 
query II rowsort label-9171
SELECT DISTINCT 20 AS col0, COUNT( * ) * - - 84 AS col0
----
20
84

skipif mysql # not compatible
query II rowsort label-9171
SELECT DISTINCT 20 AS col0, COUNT ( * ) * - - 84 AS col0
----
20
84

query I rowsort
SELECT DISTINCT - 8 * 97 AS col2
----
-776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9173
SELECT - 81 + - CAST( NULL AS SIGNED ) - - - 9 * - CASE - - NULLIF ( + 85, - COUNT( * ) ) WHEN + 6 + + 32 + COUNT( * ) THEN NULL ELSE CASE - + CASE - + 49 WHEN 61 THEN 92 ELSE 81 + CAST( NULL AS SIGNED ) END WHEN 82 * 42 THEN NULL ELSE 31 - - 80 END / + COUNT( 79 * - 48 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT - 81 + - CAST ( NULL AS INTEGER ) - - - 9 * - CASE - - NULLIF ( + 85, - COUNT ( * ) ) WHEN + 6 + + 32 + COUNT ( * ) THEN NULL ELSE CASE - + CASE - + 49 WHEN 61 THEN 92 ELSE 81 + CAST ( NULL AS INTEGER ) END WHEN 82 * 42 THEN NULL ELSE 31 - - 80 END / + COUNT ( 79 * - 48 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT + 5 + - 83 + COUNT( ALL + 30 )
----
-77

skipif mysql # not compatible
query I rowsort label-9174
SELECT + 5 + - 83 + COUNT ( ALL + 30 )
----
-77

query I rowsort
SELECT + 63 - - - 47 AS col2
----
16

query I rowsort
SELECT ALL + 7 + + NULLIF ( - 52, 58 ) + + 29 * + 34 AS col1
----
941

query I rowsort
SELECT + + 38 * - 90
----
-3420

query I rowsort
SELECT DISTINCT 52 * 1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9179
SELECT - NULLIF ( - COUNT( * ), + - NULLIF ( - 81, 55 - + 4 ) ) AS col2, - 80 AS col1
----
1
-80

skipif mysql # not compatible
query II rowsort label-9179
SELECT - NULLIF ( - COUNT ( * ), + - NULLIF ( - 81, 55 - + 4 ) ) AS col2, - 80 AS col1
----
1
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9180
SELECT ALL + - COUNT( * ) DIV + COUNT( * ) + + + 2 - + 28 + + - ( - 1 ) + 98 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL + - COUNT ( * ) / + COUNT ( * ) + + + 2 - + 28 + + - ( - 1 ) + 98 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT ALL - - 5 / - CASE + ( - - 1 ) WHEN - MAX( DISTINCT - - 66 ) + - - MAX( - 73 ) + 76 THEN - 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL - - 5 / - CASE + ( - - 1 ) WHEN - MAX ( DISTINCT - - 66 ) + - - MAX ( - 73 ) + 76 THEN - 19 END
----
NULL

query I rowsort
SELECT DISTINCT + 55 * + 81 + - 8
----
4447

query I rowsort
SELECT - 6 + - 82 AS col0
----
-88

query I rowsort
SELECT + - 25 - - + 26 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9185
SELECT DISTINCT + 31 AS col2, + COUNT( * )
----
31
1

skipif mysql # not compatible
query II rowsort label-9185
SELECT DISTINCT + 31 AS col2, + COUNT ( * )
----
31
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT DISTINCT - 75 / CASE - + 82 WHEN - 14 + + 37 THEN + COALESCE ( - 55, + 46 + + 78, - 9 ) + + 46 ELSE NULL END * + COALESCE ( 84, MAX( DISTINCT - 68 ) + + 66, 77, 63 ) + 37 + + 49 * - ( + ( ( - 34 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9186
SELECT DISTINCT - 75 / CASE - + 82 WHEN - 14 + + 37 THEN + COALESCE ( - 55, + 46 + + 78, - 9 ) + + 46 ELSE NULL END * + COALESCE ( 84, MAX ( DISTINCT - 68 ) + + 66, 77, 63 ) + 37 + + 49 * - ( + ( ( - 34 ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9187
SELECT DISTINCT + - ( + NULLIF ( - 64, + + 40 - - 64 + 35 + - 84 + NULLIF ( - COUNT( * ), + 72 - 21 ) - 22 / + CASE - 92 WHEN 9 THEN 22 + CAST( NULL AS SIGNED ) WHEN 88 + 42 THEN - CAST( 9 AS SIGNED ) END * - 5 + NULLIF ( 10, - 97 ) * 61 * 77 ) )
----
64

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT + - ( + NULLIF ( - 64, + + 40 - - 64 + 35 + - 84 + NULLIF ( - COUNT ( * ), + 72 - 21 ) - 22 / + CASE - 92 WHEN 9 THEN 22 + CAST ( NULL AS INTEGER ) WHEN 88 + 42 THEN - CAST ( 9 AS INTEGER ) END * - 5 + NULLIF ( 10, - 97 ) * 61 * 77 ) )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9188
SELECT ALL + CAST( + 92 AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL + CAST ( + 92 AS INTEGER )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT 76 * + 16 * 49 - - - MAX( ALL - - 12 ) + + - 56 * + 99 AS col1
----
54028

skipif mysql # not compatible
query I rowsort label-9189
SELECT 76 * + 16 * 49 - - - MAX ( ALL - - 12 ) + + - 56 * + 99 AS col1
----
54028

query I rowsort
SELECT ALL - 32 * - + 8 - - + 22
----
278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9191
SELECT + CAST( NULL AS SIGNED ) * + 85 * + 7 - + 69 * - - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9191
SELECT + CAST ( NULL AS INTEGER ) * + 85 * + 7 - + 69 * - - 53
----
NULL

query II rowsort
SELECT + ( - 55 ) col1, 27 AS col0
----
-55
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT + COUNT( * ) + ( + COUNT( * ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9193
SELECT + COUNT ( * ) + ( + COUNT ( * ) ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT + MIN( DISTINCT + 80 ) * - + 94 AS col0
----
-7520

skipif mysql # not compatible
query I rowsort label-9194
SELECT + MIN ( DISTINCT + 80 ) * - + 94 AS col0
----
-7520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9195
SELECT - 71 * 18 AS col0, CAST( NULL AS SIGNED ) + + 26 * + COUNT( * ) + COUNT( * ) * + ( + - 43 ) AS col1
----
-1278
NULL

skipif mysql # not compatible
query II rowsort label-9195
SELECT - 71 * 18 AS col0, CAST ( NULL AS INTEGER ) + + 26 * + COUNT ( * ) + COUNT ( * ) * + ( + - 43 ) AS col1
----
-1278
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9196
SELECT + 88 * - 13 + - ( - 47 ) AS col2, COALESCE ( 63, CAST( + ( AVG ( DISTINCT + - 21 ) ) AS SIGNED ), + - COUNT( * ) ) * - 46 AS col1
----
-1097
-2898

skipif mysql # not compatible
query II rowsort label-9196
SELECT + 88 * - 13 + - ( - 47 ) AS col2, COALESCE ( 63, CAST ( + ( AVG ( DISTINCT + - 21 ) ) AS INTEGER ), + - COUNT ( * ) ) * - 46 AS col1
----
-1097
-2898

query I rowsort
SELECT ALL 23 * - ( + 13 ) * - - 9 AS col1
----
-2691

onlyif mysql # aggregate syntax: 
query II rowsort label-9198
SELECT - 94 + - NULLIF ( + + MIN( - 33 ), + 38 + + 47 ) * 5, - 45 AS col2
----
71
-45

skipif mysql # not compatible
query II rowsort label-9198
SELECT - 94 + - NULLIF ( + + MIN ( - 33 ), + 38 + + 47 ) * 5, - 45 AS col2
----
71
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT DISTINCT MAX( DISTINCT + 88 )
----
88

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT MAX ( DISTINCT + 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT ( - 58 ) + + NULLIF ( + COALESCE ( 24, + 49, 93 + + 28 - 98, - 45 ), - - COUNT( * ) * 3 ) - 65 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-9200
SELECT ( - 58 ) + + NULLIF ( + COALESCE ( 24, + 49, 93 + + 28 - 98, - 45 ), - - COUNT ( * ) * 3 ) - 65 AS col1
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9201
SELECT DISTINCT + 49 DIV - NULLIF ( 63, + 18 + + + COUNT( * ) - + + ( 30 ) * - - 80 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9201
SELECT DISTINCT + 49 / - NULLIF ( 63, + 18 + + + COUNT ( * ) - + + ( 30 ) * - - 80 ) AS col0
----
0

query II rowsort
SELECT 32 + + - 25 AS col2, ( + - 87 ) AS col0
----
7
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT ALL + COUNT( * ) * - - 12 * + 67
----
804

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL + COUNT ( * ) * - - 12 * + 67
----
804

query I rowsort
SELECT ALL + 61 + + - 68 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT - MIN( - - 2 ) + + - NULLIF ( - - 86, + + 6 - + - 82 + - 49 * + - 11 / 75 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-9205
SELECT - MIN ( - - 2 ) + + - NULLIF ( - - 86, + + 6 - + - 82 + - 49 * + - 11 / 75 ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT ALL - + COUNT( * ) + + - 19 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL - + COUNT ( * ) + + - 19 AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9207
SELECT ALL - CASE + 56 WHEN + + 21 * + 44 + - 5 THEN + 65 WHEN + 63 + - - 75 + - 22 - - + 97 + - 5 + + SUM( DISTINCT - 40 ) / CAST( NULL AS DECIMAL ) - ( + 38 ) * COALESCE ( - 80, ( 4 ) / 94, CAST( NULL AS SIGNED ) ) THEN NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL - CASE + 56 WHEN + + 21 * + 44 + - 5 THEN + 65 WHEN + 63 + - - 75 + - 22 - - + 97 + - 5 + + SUM ( DISTINCT - 40 ) / CAST ( NULL AS REAL ) - ( + 38 ) * COALESCE ( - 80, ( 4 ) / 94, CAST ( NULL AS INTEGER ) ) THEN NULL END + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9208
SELECT DISTINCT - CAST( - CAST( + 55 AS SIGNED ) AS SIGNED ) * - - 95 + + 29 + 25 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT - CAST ( - CAST ( + 55 AS INTEGER ) AS INTEGER ) * - - 95 + + 29 + 25 * + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL - 26 * + - 50 AS col0
----
1300

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT DISTINCT - 68 + ( - COALESCE ( - - 31, + 91 ) ) * - + COUNT( * ) + + + 87 * 94 - 71 + - 26 + - 6 * + - 68 + + - 72 * + - ( 59 )
----
12700

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT - 68 + ( - COALESCE ( - - 31, + 91 ) ) * - + COUNT ( * ) + + + 87 * 94 - 71 + - 26 + - 6 * + - 68 + + - 72 * + - ( 59 )
----
12700

query II rowsort
SELECT - 81 - 43 * + 36 * + 1, + 6 AS col1
----
-1629
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT + CASE - + 91 WHEN + 77 THEN + - 53 WHEN 27 THEN - + 33 + 80 + + NULLIF ( - 55, - + CASE + 9 WHEN MIN( + + 84 ) * + 17 THEN 21 ELSE 51 END / + 75 ) END * + ( 83 * - 96 ) + 76 * 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT + CASE - + 91 WHEN + 77 THEN + - 53 WHEN 27 THEN - + 33 + 80 + + NULLIF ( - 55, - + CASE + 9 WHEN MIN ( + + 84 ) * + 17 THEN 21 ELSE 51 END / + 75 ) END * + ( 83 * - 96 ) + 76 * 7 AS col1
----
NULL

query I rowsort
SELECT ALL - + ( - ( + 11 ) ) AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9214
SELECT DISTINCT + CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL ) * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ) * 83
----
NULL

query I rowsort
SELECT ALL - 74 - - 81 * - - 57 AS col2
----
4543

onlyif mysql # DIV for integer division: 
query I rowsort label-9216
SELECT ALL + - 60 - + 50 + + 82 DIV 42 * 29 * + 0 AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL + - 60 - + 50 + + 82 / 42 * 29 * + 0 AS col0
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9217
SELECT DISTINCT + 83 DIV COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-9217
SELECT DISTINCT + 83 / COUNT ( * ) AS col1
----
83

query I rowsort
SELECT ALL 93 - + 30 + + 36
----
99

query I rowsort
SELECT + COALESCE ( 81, + 93, 70 ) AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9220
SELECT ALL + - 85 * + - 34 * + ( 69 ) - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL + - 85 * + - 34 * + ( 69 ) - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ( - - CASE - 8 WHEN - 48 - - - 90 THEN NULL WHEN 76 THEN + + COUNT( * ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9221
SELECT ( - - CASE - 8 WHEN - 48 - - - 90 THEN NULL WHEN 76 THEN + + COUNT ( * ) ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 25 * - 2 AS col1
----
-50

query I rowsort
SELECT ALL 83 - - + 86 + - - ( 95 )
----
264

query II rowsort
SELECT DISTINCT - 39 AS col1, 24 AS col0
----
-39
24

onlyif mysql # DIV for integer division: 
query II rowsort label-9225
SELECT ALL - 43, 48 DIV + + 61 * + 88 DIV - 76 AS col1
----
-43
0

skipif mysql # not compatible
query II rowsort label-9225
SELECT ALL - 43, 48 / + + 61 * + 88 / - 76 AS col1
----
-43
0

query I rowsort
SELECT ALL - 26 * + 96 col2
----
-2496

onlyif mysql # DIV for integer division: 
query II rowsort label-9227
SELECT 78 - - 39 DIV 68 + + + 49 + 37 + - 91 AS col1, + 41 * 39 * ( + 14 ) + 70 * + - 44 col2
----
73
19306

skipif mysql # not compatible
query II rowsort label-9227
SELECT 78 - - 39 / 68 + + + 49 + 37 + - 91 AS col1, + 41 * 39 * ( + 14 ) + 70 * + - 44 col2
----
73
19306

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT MIN( - 76 ) + + - 69 * - - SUM( ALL 6 )
----
-490

skipif mysql # not compatible
query I rowsort label-9228
SELECT MIN ( - 76 ) + + - 69 * - - SUM ( ALL 6 )
----
-490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9229
SELECT ALL SUM( ALL 29 ) * + CAST( - - 82 AS SIGNED ) AS col2
----
2378

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL SUM ( ALL 29 ) * + CAST ( - - 82 AS INTEGER ) AS col2
----
2378

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9230
SELECT 29 + - + 92 + - 37 DIV COUNT( * ) DIV - 16 AS col0, + 31 AS col1
----
-61
31

skipif mysql # not compatible
query II rowsort label-9230
SELECT 29 + - + 92 + - 37 / COUNT ( * ) / - 16 AS col0, + 31 AS col1
----
-61
31

query I rowsort
SELECT ALL 63 + + + 93
----
156

query I rowsort
SELECT ALL ( + ( + 45 ) ) + - 77 AS col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9233
SELECT ( 81 ) - - + 86 + + COALESCE ( - CAST( NULL AS SIGNED ), + - MAX( + 0 ) )
----
167

skipif mysql # not compatible
query I rowsort label-9233
SELECT ( 81 ) - - + 86 + + COALESCE ( - CAST ( NULL AS INTEGER ), + - MAX ( + 0 ) )
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT - CASE CASE 36 WHEN - 86 * - 27 * COUNT( * ) * ( 13 ) THEN - 41 WHEN + + 37 / 45 THEN NULL WHEN + - ( - + 40 ) + + - 57 THEN + 15 * + 0 END WHEN - 64 - - 29 THEN NULL WHEN + 39 THEN COUNT( * ) * + COUNT( * ) ELSE NULL END / 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9234
SELECT - CASE CASE 36 WHEN - 86 * - 27 * COUNT ( * ) * ( 13 ) THEN - 41 WHEN + + 37 / 45 THEN NULL WHEN + - ( - + 40 ) + + - 57 THEN + 15 * + 0 END WHEN - 64 - - 29 THEN NULL WHEN + 39 THEN COUNT ( * ) * + COUNT ( * ) ELSE NULL END / 28 AS col1
----
NULL

query I rowsort
SELECT 94 - 62 * + 71 AS col1
----
-4308

query II rowsort
SELECT ALL 99 AS col0, + 10 * - 42 col1
----
99
-420

query I rowsort
SELECT ALL - NULLIF ( - - NULLIF ( 81, 72 + - 85 ), - 24 ) + + - 45
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT - + MAX( ALL - + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-9238
SELECT - + MAX ( ALL - + 20 )
----
20

query I rowsort
SELECT - 44 * - - 5 * - 3
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT DISTINCT + + 0 + NULLIF ( + 95, + 4 + - 28 ) + 12 - + COUNT( * ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT + + 0 + NULLIF ( + 95, + 4 + - 28 ) + 12 - + COUNT ( * ) AS col0
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9241
SELECT DISTINCT + SUM( DISTINCT 23 ) DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-9241
SELECT DISTINCT + SUM ( DISTINCT 23 ) / 86
----
0

query I rowsort
SELECT DISTINCT - + 62 - 21 + + 43 AS col2
----
-40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9243
SELECT ALL CAST( + 5 AS SIGNED ) DIV + 35 + - 12 * + 40
----
-480

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL CAST ( + 5 AS INTEGER ) / + 35 + - 12 * + 40
----
-480

query I rowsort
SELECT DISTINCT + 81 * - 4 AS col2
----
-324

query I rowsort
SELECT DISTINCT + 67 * - 52 - 45 * - 57 AS col2
----
-919

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT ALL + + CASE + CASE + ( + - CASE 68 WHEN 87 / 46 THEN NULL WHEN 2 * + - 63 THEN NULL ELSE + 37 * AVG ( + - 96 ) - 88 END ) WHEN COUNT( ALL - 4 ) THEN NULL WHEN - 48 THEN NULL ELSE + 4 * - 5 - 31 END WHEN + COUNT( * ) THEN NULL ELSE - 89 + 37 * 42 END * - 78
----
-114270

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL + + CASE + CASE + ( + - CASE 68 WHEN 87 / 46 THEN NULL WHEN 2 * + - 63 THEN NULL ELSE + 37 * AVG ( + - 96 ) - 88 END ) WHEN COUNT ( ALL - 4 ) THEN NULL WHEN - 48 THEN NULL ELSE + 4 * - 5 - 31 END WHEN + COUNT ( * ) THEN NULL ELSE - 89 + 37 * 42 END * - 78
----
-114270

query I rowsort
SELECT ALL + + 33 * - 48 * 98
----
-155232

query I rowsort
SELECT + - 22 col0
----
-22

query II rowsort
SELECT ALL - + 21 AS col0, 43 + - 1
----
-21
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9250
SELECT CASE + - 11 WHEN + 59 THEN NULL ELSE + 18 + + 53 + + 38 / - - CAST( NULL AS SIGNED ) / + + MIN( ALL COALESCE ( - 25, CAST( NULL AS SIGNED ) + - 4 ) ) END / + - 81 + + COUNT( * ) + + 57 - ( 3 ) * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9250
SELECT CASE + - 11 WHEN + 59 THEN NULL ELSE + 18 + + 53 + + 38 / - - CAST ( NULL AS INTEGER ) / + + MIN ( ALL COALESCE ( - 25, CAST ( NULL AS INTEGER ) + - 4 ) ) END / + - 81 + + COUNT ( * ) + + 57 - ( 3 ) * + 87
----
NULL

query II rowsort
SELECT DISTINCT - - 30 AS col2, + CASE - - 39 WHEN - - 27 THEN NULL ELSE - 91 * - 52 * - 33 + - 37 END
----
30
-156193

query I rowsort
SELECT 69 - - + 70 * 6 AS col2
----
489

query I rowsort
SELECT ALL - ( - ( + 87 ) )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9254
SELECT 67 DIV + NULLIF ( - + 11, + 1 + - 14 ) + - 58 DIV COUNT( * ) + + - COUNT( * ) + + 83 + + 64 - - - 60 col0, - 50 + + COUNT( + 17 ) DIV - 43 - 50 AS col1
----
22
-100

skipif mysql # not compatible
query II rowsort label-9254
SELECT 67 / + NULLIF ( - + 11, + 1 + - 14 ) + - 58 / COUNT ( * ) + + - COUNT ( * ) + + 83 + + 64 - - - 60 col0, - 50 + + COUNT ( + 17 ) / - 43 - 50 AS col1
----
22
-100

query I rowsort
SELECT 97 + - COALESCE ( - 39, 44 * + 50 + 69 + - + 77 ) AS col1
----
136

query II rowsort
SELECT + 55, - 10 + + 95 - - 46 AS col0
----
55
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9257
SELECT + CASE + 6 WHEN 67 + + + 60 THEN NULL ELSE + 72 END * CASE + 24 WHEN - NULLIF ( - 75, + COUNT( * ) ) THEN NULL WHEN 28 + + + 75 THEN NULL WHEN - 14 - + + 20 / - CAST( NULL AS SIGNED ) THEN NULL ELSE - 36 END + 28 + 54 AS col2
----
-2510

skipif mysql # not compatible
query I rowsort label-9257
SELECT + CASE + 6 WHEN 67 + + + 60 THEN NULL ELSE + 72 END * CASE + 24 WHEN - NULLIF ( - 75, + COUNT ( * ) ) THEN NULL WHEN 28 + + + 75 THEN NULL WHEN - 14 - + + 20 / - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 36 END + 28 + 54 AS col2
----
-2510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9258
SELECT + 88 - - 83 - - - MAX( - 86 ) AS col0, + COUNT( * ) + + MAX( - + 67 ) * + NULLIF ( + CAST( NULL AS SIGNED ), COALESCE ( 16, + 1 ) * + + 97 ) + + + 80 + + - 31 + + 7 + - COALESCE ( 32 + - ( 82 + 83 ), + 57 - + 92 ) * 91
----
257
NULL

skipif mysql # not compatible
query II rowsort label-9258
SELECT + 88 - - 83 - - - MAX ( - 86 ) AS col0, + COUNT ( * ) + + MAX ( - + 67 ) * + NULLIF ( + CAST ( NULL AS INTEGER ), COALESCE ( 16, + 1 ) * + + 97 ) + + + 80 + + - 31 + + 7 + - COALESCE ( 32 + - ( 82 + 83 ), + 57 - + 92 ) * 91
----
257
NULL

query I rowsort
SELECT ALL + COALESCE ( + 21, + 45 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT - COALESCE ( 39, + COUNT( * ), + + 57 ) * - + 61 AS col1
----
2379

skipif mysql # not compatible
query I rowsort label-9260
SELECT - COALESCE ( 39, + COUNT ( * ), + + 57 ) * - + 61 AS col1
----
2379

onlyif mysql # aggregate syntax: 
query II rowsort label-9261
SELECT - 58 + 57 AS col2, MIN( DISTINCT - + 36 ) * 74
----
-1
-2664

skipif mysql # not compatible
query II rowsort label-9261
SELECT - 58 + 57 AS col2, MIN ( DISTINCT - + 36 ) * 74
----
-1
-2664

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL - COUNT( * ) + + 99 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL - COUNT ( * ) + + 99 AS col1
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-9263
SELECT COUNT( * ), - 48 col0
----
1
-48

skipif mysql # not compatible
query II rowsort label-9263
SELECT COUNT ( * ), - 48 col0
----
1
-48

query I rowsort
SELECT DISTINCT 87 + 8 AS col1
----
95

query II rowsort
SELECT ALL 71 AS col1, - 41 AS col0
----
71
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT DISTINCT + CASE + 71 WHEN - + 80 + 25 THEN + - 1 WHEN - NULLIF ( + 30, - NULLIF ( - + 33, + 81 ) - 26 ) * + COUNT( * ) * - COUNT( * ) + - 43 THEN NULL END * - 11 + 28 * 74 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT + CASE + 71 WHEN - + 80 + 25 THEN + - 1 WHEN - NULLIF ( + 30, - NULLIF ( - + 33, + 81 ) - 26 ) * + COUNT ( * ) * - COUNT ( * ) + - 43 THEN NULL END * - 11 + 28 * 74 col1
----
NULL

query II rowsort
SELECT ALL 80 AS col2, - 5 col2
----
80
-5

query II rowsort
SELECT DISTINCT 32 col1, + 33
----
32
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT + 97 + - COUNT( ALL 47 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-9269
SELECT + 97 + - COUNT ( ALL 47 ) AS col1
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-9270
SELECT - + 96, 82 DIV 36 AS col0
----
-96
2

skipif mysql # not compatible
query II rowsort label-9270
SELECT - + 96, 82 / 36 AS col0
----
-96
2

query I rowsort
SELECT - 45 + - - 28 + - 36 * + 58
----
-2105

query I rowsort
SELECT - + 20 * 70
----
-1400

query I rowsort
SELECT + + 15 * - ( + 74 ) AS col2
----
-1110

query II rowsort
SELECT ALL - 29 AS col2, + 15 - - + 12 AS col0
----
-29
27

query I rowsort
SELECT + - 40 + 0 AS col2
----
-40

query I rowsort
SELECT DISTINCT - 76 * 17
----
-1292

query I rowsort
SELECT + COALESCE ( + 55, - 82 ) + + 79
----
134

query I rowsort
SELECT ALL - 43 * + 21
----
-903

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT DISTINCT - COUNT( * ) * - + 78 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT - COUNT ( * ) * - + 78 AS col1
----
78

query I rowsort
SELECT ALL NULLIF ( + 58, + + 25 ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT ALL - COUNT( ALL - 15 ) * + + MIN( 55 ) * + 85
----
-4675

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL - COUNT ( ALL - 15 ) * + + MIN ( 55 ) * + 85
----
-4675

onlyif mysql # aggregate syntax: 
query II rowsort label-9282
SELECT ALL - COUNT( * ) AS col0, + 62 AS col1
----
-1
62

skipif mysql # not compatible
query II rowsort label-9282
SELECT ALL - COUNT ( * ) AS col0, + 62 AS col1
----
-1
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT + ( + CAST( - - COALESCE ( 89, - 57 ) AS SIGNED ) ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-9283
SELECT + ( + CAST ( - - COALESCE ( 89, - 57 ) AS INTEGER ) ) AS col0
----
89

query I rowsort
SELECT DISTINCT COALESCE ( + NULLIF ( + 0, + 5 ), - - 37 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT + MAX( + + COALESCE ( + - 55, - 49 ) ) * + - 2 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-9285
SELECT + MAX ( + + COALESCE ( + - 55, - 49 ) ) * + - 2 AS col2
----
110

query I rowsort
SELECT - 58 + - 94 col2
----
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9287
SELECT + 97 / 97 + - 90 + + CAST( NULL AS SIGNED ) / - MIN( + 42 ) * COUNT( * ) AS col0, 56 col1
----
NULL
56

skipif mysql # not compatible
query II rowsort label-9287
SELECT + 97 / 97 + - 90 + + CAST ( NULL AS INTEGER ) / - MIN ( + 42 ) * COUNT ( * ) AS col0, 56 col1
----
NULL
56

onlyif mysql # DIV for integer division: 
query III rowsort label-9288
SELECT + 25 DIV - 33 AS col0, + 99, - 43 col0
----
0
99
-43

skipif mysql # not compatible
query III rowsort label-9288
SELECT + 25 / - 33 AS col0, + 99, - 43 col0
----
0
99
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9289
SELECT ALL 52 DIV - 68 + - COUNT( * ) * - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL 52 / - 68 + - COUNT ( * ) * - COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT + 42 + COUNT( * ) * - + 44 * - - COUNT( * ) * + 57 * + 82 col2
----
-205614

skipif mysql # not compatible
query I rowsort label-9290
SELECT + 42 + COUNT ( * ) * - + 44 * - - COUNT ( * ) * + 57 * + 82 col2
----
-205614

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT DISTINCT - 26 * - - COUNT( * ) * - 50 * - ( + SUM( DISTINCT 82 ) )
----
-106600

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT - 26 * - - COUNT ( * ) * - 50 * - ( + SUM ( DISTINCT 82 ) )
----
-106600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9292
SELECT DISTINCT COUNT( * ) * + 71 + - 52 + + 3 + + COUNT( * ) + 56 - COUNT( * ) + 45 - - + 30 DIV 34 * 18 * + 12 * - - ( - - 5 ) col0
----
123

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT COUNT ( * ) * + 71 + - 52 + + 3 + + COUNT ( * ) + 56 - COUNT ( * ) + 45 - - + 30 / 34 * 18 * + 12 * - - ( - - 5 ) col0
----
123

query I rowsort
SELECT ALL + 62 * + + ( - + 79 )
----
-4898

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT ALL + COUNT( - ( - 27 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL + COUNT ( - ( - 27 ) )
----
1

query I rowsort
SELECT DISTINCT - 87 * + + 70 + + 70 - + - 7 AS col1
----
-6013

query I rowsort
SELECT + 82 * 80 AS col2
----
6560

query I rowsort
SELECT - 88 + + - 27
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT ALL + MIN( - + 44 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL + MIN ( - + 44 ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT - 64 + COUNT( - 44 )
----
-63

skipif mysql # not compatible
query I rowsort label-9299
SELECT - 64 + COUNT ( - 44 )
----
-63

query I rowsort
SELECT NULLIF ( + 15, - 10 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT ALL - 77 * + COUNT( * ) + + - 82 AS col0
----
-159

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL - 77 * + COUNT ( * ) + + - 82 AS col0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT - 52 * - MAX( 86 ) AS col0
----
4472

skipif mysql # not compatible
query I rowsort label-9302
SELECT - 52 * - MAX ( 86 ) AS col0
----
4472

onlyif mysql # aggregate syntax: 
query II rowsort label-9303
SELECT ALL 58 * + 59 AS col1, + 97 * - MIN( DISTINCT + 20 ) AS col0
----
3422
-1940

skipif mysql # not compatible
query II rowsort label-9303
SELECT ALL 58 * + 59 AS col1, + 97 * - MIN ( DISTINCT + 20 ) AS col0
----
3422
-1940

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT ALL - COUNT( * ) * - ( - COUNT( * ) ) + - + 73
----
-74

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL - COUNT ( * ) * - ( - COUNT ( * ) ) + - + 73
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT COALESCE ( + - ( + COUNT( DISTINCT + + 46 ) ), + 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-9305
SELECT COALESCE ( + - ( + COUNT ( DISTINCT + + 46 ) ), + 60 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9306
SELECT ALL + ( + ( 57 ) ) AS col0, - MAX( ALL 83 ) * + 63 + + - COUNT( * )
----
57
-5230

skipif mysql # not compatible
query II rowsort label-9306
SELECT ALL + ( + ( 57 ) ) AS col0, - MAX ( ALL 83 ) * + 63 + + - COUNT ( * )
----
57
-5230

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT DISTINCT + 83 * - - 67 + - - COUNT( * ) AS col1
----
5562

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT + 83 * - - 67 + - - COUNT ( * ) AS col1
----
5562

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT ALL - 0 * - 69 * - - NULLIF ( - + 69, - 47 + - MIN( - 11 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL - 0 * - 69 * - - NULLIF ( - + 69, - 47 + - MIN ( - 11 ) ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9309
SELECT + MAX( ALL + CAST( 21 AS SIGNED ) )
----
21

skipif mysql # not compatible
query I rowsort label-9309
SELECT + MAX ( ALL + CAST ( 21 AS INTEGER ) )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9310
SELECT ALL + ( - 0 ) * - + 24 * - 54 + + 57 + - CAST( + 66 AS SIGNED ) / - + CASE - ( CAST( NULL AS SIGNED ) ) WHEN 77 * + COUNT( * ) + + 49 - 39 - - - ( - ( - 11 ) ) THEN - MAX( ALL COALESCE ( - 28, - 49 / - 50 ) ) + COUNT( * ) * - 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL + ( - 0 ) * - + 24 * - 54 + + 57 + - CAST ( + 66 AS INTEGER ) / - + CASE - ( CAST ( NULL AS INTEGER ) ) WHEN 77 * + COUNT ( * ) + + 49 - 39 - - - ( - ( - 11 ) ) THEN - MAX ( ALL COALESCE ( - 28, - 49 / - 50 ) ) + COUNT ( * ) * - 19 END
----
NULL

query I rowsort
SELECT - 93 - + 93
----
-186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9312
SELECT + MAX( ALL - 54 ) AS col1, + 62 / + CASE + + 85 WHEN - 63 THEN NULL WHEN - 32 THEN - + 59 + - 7 END * - NULLIF ( + CAST( + + 78 AS SIGNED ), 66 )
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-9312
SELECT + MAX ( ALL - 54 ) AS col1, + 62 / + CASE + + 85 WHEN - 63 THEN NULL WHEN - 32 THEN - + 59 + - 7 END * - NULLIF ( + CAST ( + + 78 AS INTEGER ), 66 )
----
-54
NULL

query I rowsort
SELECT - 34 + 6 AS col0
----
-28

query II rowsort
SELECT + 3 * - 53 + + 97 AS col2, 18 col2
----
-62
18

query I rowsort
SELECT - 43 * 71 AS col0
----
-3053

query I rowsort
SELECT + 17 * + + 15
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9317
SELECT + - 53 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT + - 53 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT ALL - ( + - COUNT( * ) ) * - - COUNT( * ) + + ( + - CASE - 37 WHEN + 91 + - 68 + - 2 * - + ( 24 ) * CASE - 70 WHEN 98 THEN - 13 - COUNT( DISTINCT 92 ) / + ( ( - COUNT( * ) ) * + 35 + + 67 ) ELSE - MIN( ALL 72 ) END THEN NULL WHEN - 59 THEN - 78 END ) - 41 * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL - ( + - COUNT ( * ) ) * - - COUNT ( * ) + + ( + - CASE - 37 WHEN + 91 + - 68 + - 2 * - + ( 24 ) * CASE - 70 WHEN 98 THEN - 13 - COUNT ( DISTINCT 92 ) / + ( ( - COUNT ( * ) ) * + 35 + + 67 ) ELSE - MIN ( ALL 72 ) END THEN NULL WHEN - 59 THEN - 78 END ) - 41 * 90
----
NULL

query I rowsort
SELECT - + ( - - ( + 49 ) ) - - + 61 AS col0
----
12

query I rowsort
SELECT ALL - 3 * + + 56 col1
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-9321
SELECT ALL + 23 DIV - 57 - 28 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL + 23 / - 57 - 28 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-9322
SELECT - - COUNT( * ) + + 63 col1, 23 + + 11
----
64
34

skipif mysql # not compatible
query II rowsort label-9322
SELECT - - COUNT ( * ) + + 63 col1, 23 + + 11
----
64
34

query I rowsort
SELECT + 19 * - 91 + + + 20 AS col2
----
-1709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9324
SELECT - 63 + + COUNT( * ) + + 83 / - + 53 + ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT - 63 + + COUNT ( * ) + + 83 / - + 53 + ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9325
SELECT + + 76 * + - 11, MIN( + - 80 ) * COUNT( DISTINCT - 89 ) AS col2
----
-836
-80

skipif mysql # not compatible
query II rowsort label-9325
SELECT + + 76 * + - 11, MIN ( + - 80 ) * COUNT ( DISTINCT - 89 ) AS col2
----
-836
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT ALL + 71 + + ( - + SUM( DISTINCT + 48 ) )
----
23

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL + 71 + + ( - + SUM ( DISTINCT + 48 ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT + + 32 + - + NULLIF ( + 49, MAX( ALL + 53 ) * 55 )
----
-17

skipif mysql # not compatible
query I rowsort label-9327
SELECT + + 32 + - + NULLIF ( + 49, MAX ( ALL + 53 ) * 55 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT ALL 7 * + + MAX( - ( + + CASE 98 WHEN + 63 THEN 18 ELSE 54 END ) ) AS col0
----
-378

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL 7 * + + MAX ( - ( + + CASE 98 WHEN + 63 THEN 18 ELSE 54 END ) ) AS col0
----
-378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9329
SELECT ALL COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9329
SELECT ALL COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT ALL 25 + - NULLIF ( + COUNT( * ), + 79 / - 65 + 35 - - 15 + - COUNT( * ) * - 11 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL 25 + - NULLIF ( + COUNT ( * ), + 79 / - 65 + 35 - - 15 + - COUNT ( * ) * - 11 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT ALL - COUNT( DISTINCT - 44 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL - COUNT ( DISTINCT - 44 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT + 28 * - MIN( 63 ) + + 23 col2
----
-1741

skipif mysql # not compatible
query I rowsort label-9332
SELECT + 28 * - MIN ( 63 ) + + 23 col2
----
-1741

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9333
SELECT + 43, 8 + + CAST( - 41 AS SIGNED ) AS col0
----
43
-33

skipif mysql # not compatible
query II rowsort label-9333
SELECT + 43, 8 + + CAST ( - 41 AS INTEGER ) AS col0
----
43
-33

query II rowsort
SELECT 73, + 87 + + 45 col1
----
73
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9335
SELECT + 47 * - 36 + CAST( NULL AS SIGNED ) / - - 23 * - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9335
SELECT + 47 * - 36 + CAST ( NULL AS INTEGER ) / - - 23 * - 87
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9336
SELECT 32 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-9336
SELECT 32 / - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT ALL COUNT( * ) + COUNT( * ) + - - 41 + + 37 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL COUNT ( * ) + COUNT ( * ) + - - 41 + + 37 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT - MIN( - 57 ) * - 72 * + 32 + + 66 AS col0
----
-131262

skipif mysql # not compatible
query I rowsort label-9338
SELECT - MIN ( - 57 ) * - 72 * + 32 + + 66 AS col0
----
-131262

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9339
SELECT ALL - 39 AS col1, + SUM( + + 7 ) + 73 + - 10 - 16 DIV + 8 col0
----
-39
68

skipif mysql # not compatible
query II rowsort label-9339
SELECT ALL - 39 AS col1, + SUM ( + + 7 ) + 73 + - 10 - 16 / + 8 col0
----
-39
68

onlyif mysql # aggregate syntax: 
query II rowsort label-9340
SELECT ALL - 42, - COUNT( * ) AS col0
----
-42
-1

skipif mysql # not compatible
query II rowsort label-9340
SELECT ALL - 42, - COUNT ( * ) AS col0
----
-42
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT ALL - COUNT( * ) * - 59 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL - COUNT ( * ) * - 59 AS col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-9342
SELECT ( + COUNT( * ) ) + + 76 AS col2, COUNT( * ) + + - COUNT( * )
----
77
0

skipif mysql # not compatible
query II rowsort label-9342
SELECT ( + COUNT ( * ) ) + + 76 AS col2, COUNT ( * ) + + - COUNT ( * )
----
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT ALL COUNT( * ) - - - 72
----
-71

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL COUNT ( * ) - - - 72
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT 29 * - COUNT( * ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9344
SELECT 29 * - COUNT ( * ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT 32 + + COUNT( * ) + - + 42 * + 45 * + 72
----
-136047

skipif mysql # not compatible
query I rowsort label-9345
SELECT 32 + + COUNT ( * ) + - + 42 * + 45 * + 72
----
-136047

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT ALL 87 * - COUNT( * ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL 87 * - COUNT ( * ) AS col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9347
SELECT 5 * NULLIF ( - 54, CAST( 64 AS SIGNED ) ) + - 87 + COUNT( * ) - 5 * - - 92 * + 65 + + COUNT( * ) * - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
-30256

skipif mysql # not compatible
query I rowsort label-9347
SELECT 5 * NULLIF ( - 54, CAST ( 64 AS INTEGER ) ) + - 87 + COUNT ( * ) - 5 * - - 92 * + 65 + + COUNT ( * ) * - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
-30256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9348
SELECT ALL 5 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL 5 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT - COUNT( * ) * + - 82 + - 21
----
61

skipif mysql # not compatible
query I rowsort label-9349
SELECT - COUNT ( * ) * + - 82 + - 21
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT DISTINCT - COUNT( * ) * 56 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-9350
SELECT DISTINCT - COUNT ( * ) * 56 AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9351
SELECT COUNT( * ) + - 56 * - ( - - 26 ) / - - CAST( NULL AS SIGNED ) + + 61 + - - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9351
SELECT COUNT ( * ) + - 56 * - ( - - 26 ) / - - CAST ( NULL AS INTEGER ) + + 61 + - - 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9352
SELECT 98 * 33 + + CAST( NULL AS SIGNED ) AS col1, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9352
SELECT 98 * 33 + + CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT + COUNT( * ) * - SUM( + CASE - 7 WHEN + + 24 THEN 54 END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9353
SELECT + COUNT ( * ) * - SUM ( + CASE - 7 WHEN + + 24 THEN 54 END ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT DISTINCT - - SUM( DISTINCT + 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT - - SUM ( DISTINCT + 7 ) AS col0
----
7

query I rowsort
SELECT - 35 * - 6 + 90
----
300

onlyif mysql # DIV for integer division: 
query I rowsort label-9356
SELECT ALL - - 18 DIV - + ( + - 4 )
----
4

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL - - 18 / - + ( + - 4 )
----
4

query I rowsort
SELECT 79 * - + 61 * - 12
----
57828

query I rowsort
SELECT ALL + + CASE 82 WHEN 67 THEN 35 + - 35 - + ( + 80 ) + + 23 ELSE NULL END / + NULLIF ( + 93, - 87 * + 77 + - + 23 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9359
SELECT - - 27, MAX( - ( + - CAST( NULL AS SIGNED ) ) ) - + 49 AS col1
----
27
NULL

skipif mysql # not compatible
query II rowsort label-9359
SELECT - - 27, MAX ( - ( + - CAST ( NULL AS INTEGER ) ) ) - + 49 AS col1
----
27
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9360
SELECT 17 + - 61 - + 53 DIV + 80 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-9360
SELECT 17 + - 61 - + 53 / + 80 AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9361
SELECT DISTINCT + CAST( MAX( DISTINCT - 6 ) AS SIGNED ) col1, 14 - + 11
----
-6
3

skipif mysql # not compatible
query II rowsort label-9361
SELECT DISTINCT + CAST ( MAX ( DISTINCT - 6 ) AS INTEGER ) col1, 14 - + 11
----
-6
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9362
SELECT + 40 DIV + 47 * + 9
----
0

skipif mysql # not compatible
query I rowsort label-9362
SELECT + 40 / + 47 * + 9
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT ALL + 0 + - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL + 0 + - + COUNT ( * )
----
-1

query I rowsort
SELECT ALL COALESCE ( 30, + 82 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT - COUNT( ALL + + COALESCE ( 35, - 66 / + 59 / + 17, - 78 * - 44 + + 41 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9365
SELECT - COUNT ( ALL + + COALESCE ( 35, - 66 / + 59 / + 17, - 78 * - 44 + + 41 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT DISTINCT + + SUM( + - 85 ) + - COUNT( * ) + + 58
----
-28

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT + + SUM ( + - 85 ) + - COUNT ( * ) + + 58
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-9367
SELECT ALL 37 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL 37 / + 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT ALL + - COUNT( * ) + - + 30 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL + - COUNT ( * ) + - + 30 AS col1
----
-31

query I rowsort
SELECT ALL - - ( + + 44 ) + + COALESCE ( - 86, - - 43 )
----
-42

query I rowsort
SELECT 97 + + 98 AS col1
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT ( - 55 ) + + 55 + + + ( - NULLIF ( + COUNT( * ), - 64 * + - 75 + 77 + + 53 * + 41 * - - 48 ) ) * + ( - + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-9371
SELECT ( - 55 ) + + 55 + + + ( - NULLIF ( + COUNT ( * ), - 64 * + - 75 + 77 + + 53 * + 41 * - - 48 ) ) * + ( - + 9 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT DISTINCT COALESCE ( CASE - 26 WHEN 74 + - - ( - ( - + 97 ) ) - - 11 THEN COUNT( * ) - + - 58 ELSE NULL END, - - 7 ) + - 72 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-9372
SELECT DISTINCT COALESCE ( CASE - 26 WHEN 74 + - - ( - ( - + 97 ) ) - - 11 THEN COUNT ( * ) - + - 58 ELSE NULL END, - - 7 ) + - 72 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT ALL 71 + + SUM( + 76 ) + - 99 * - 3 * + 50 * 79 AS col2
----
1173297

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL 71 + + SUM ( + 76 ) + - 99 * - 3 * + 50 * 79 AS col2
----
1173297

query I rowsort
SELECT ALL ( + 1 ) + + 20 * 5 AS col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT DISTINCT COUNT( * ) + - ( + SUM( - 40 ) )
----
41

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT COUNT ( * ) + - ( + SUM ( - 40 ) )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9376
SELECT ALL - NULLIF ( + + 31, - + 76 * - 61 * CASE - 99 WHEN SUM( ALL - 34 ) + + 57 + + - 29 * - - COALESCE ( ( - 92 ), - CASE + 59 WHEN + - 94 THEN NULL ELSE + SUM( - + 82 ) * + CAST( + 87 AS SIGNED ) + 77 END / COALESCE ( ( 18 ) + ( CASE + ( 99 ) WHEN COUNT( * ) THEN + 22 + MAX( - 58 + - ( + 73 ) * + 71 ) ELSE NULL END ), - 35 * - 90 - + 30 ) ) / + COUNT( * ) + COUNT( * ) THEN CAST( NULL AS SIGNED ) * + 27 ELSE 36 + 53 * 93 END + + COUNT( * ) )
----
-31

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL - NULLIF ( + + 31, - + 76 * - 61 * CASE - 99 WHEN SUM ( ALL - 34 ) + + 57 + + - 29 * - - COALESCE ( ( - 92 ), - CASE + 59 WHEN + - 94 THEN NULL ELSE + SUM ( - + 82 ) * + CAST ( + 87 AS INTEGER ) + 77 END / COALESCE ( ( 18 ) + ( CASE + ( 99 ) WHEN COUNT ( * ) THEN + 22 + MAX ( - 58 + - ( + 73 ) * + 71 ) ELSE NULL END ), - 35 * - 90 - + 30 ) ) / + COUNT ( * ) + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) * + 27 ELSE 36 + 53 * 93 END + + COUNT ( * ) )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT COUNT( * ) * 66 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-9377
SELECT COUNT ( * ) * 66 AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9378
SELECT DISTINCT NULLIF ( - 47, - CAST( 22 AS SIGNED ) - + 89 + - CAST( - 61 AS SIGNED ) ) * + - COUNT( ALL + + 2 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT NULLIF ( - 47, - CAST ( 22 AS INTEGER ) - + 89 + - CAST ( - 61 AS INTEGER ) ) * + - COUNT ( ALL + + 2 ) AS col0
----
47

query I rowsort
SELECT ALL 11 - 5
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9380
SELECT COALESCE ( + - CAST( NULL AS SIGNED ), - 83 * + 19 + 69 ) * 21
----
-31668

skipif mysql # not compatible
query I rowsort label-9380
SELECT COALESCE ( + - CAST ( NULL AS INTEGER ), - 83 * + 19 + 69 ) * 21
----
-31668

query I rowsort
SELECT 48 + + - 38 * - 89 * + 77
----
260462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9382
SELECT COALESCE ( - 0, + COUNT( * ) * MIN( - - 39 ) ) DIV + CAST( 64 AS SIGNED ) * - 80 * - - 88 - + COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9382
SELECT COALESCE ( - 0, + COUNT ( * ) * MIN ( - - 39 ) ) / + CAST ( 64 AS INTEGER ) * - 80 * - - 88 - + COUNT ( * ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT 63 * - - 6 * + - COUNT( * )
----
-378

skipif mysql # not compatible
query I rowsort label-9383
SELECT 63 * - - 6 * + - COUNT ( * )
----
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT ALL - COALESCE ( COUNT( * ), + ( - 36 ) + - 46, - 73 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL - COALESCE ( COUNT ( * ), + ( - 36 ) + - 46, - 73 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9385
SELECT DISTINCT + MAX( DISTINCT - 46 ) / + + ( - 59 ) * 13 + 46 * CAST( NULL AS SIGNED ) + + AVG ( 34 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT DISTINCT + MAX ( DISTINCT - 46 ) / + + ( - 59 ) * 13 + 46 * CAST ( NULL AS INTEGER ) + + AVG ( 34 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 56 * - - 11
----
616

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9387
SELECT 47 * + 4 + 63 DIV COUNT( * ) * COUNT( * ) * COUNT( ALL - 71 ) + - COALESCE ( COUNT( * ), - - 11 ) AS col2
----
250

skipif mysql # not compatible
query I rowsort label-9387
SELECT 47 * + 4 + 63 / COUNT ( * ) * COUNT ( * ) * COUNT ( ALL - 71 ) + - COALESCE ( COUNT ( * ), - - 11 ) AS col2
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT DISTINCT + - 53 * + + SUM( 58 ) col1
----
-3074

skipif mysql # not compatible
query I rowsort label-9388
SELECT DISTINCT + - 53 * + + SUM ( 58 ) col1
----
-3074

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9389
SELECT DISTINCT 40 * - 36 * 0 DIV COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT 40 * - 36 * 0 / COUNT ( * ) AS col2
----
0

query I rowsort
SELECT - 79 * 86
----
-6794

query I rowsort
SELECT 96 - 67
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT ALL - MIN( DISTINCT 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL - MIN ( DISTINCT 57 ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-9393
SELECT ALL ( - + 40 ) + COUNT( * ) + + 20, 6 AS col0
----
-19
6

skipif mysql # not compatible
query II rowsort label-9393
SELECT ALL ( - + 40 ) + COUNT ( * ) + + 20, 6 AS col0
----
-19
6

query I rowsort
SELECT 73 * + ( + 74 )
----
5402

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT + 82 * + - MIN( ALL 52 ) + - 91
----
-4355

skipif mysql # not compatible
query I rowsort label-9395
SELECT + 82 * + - MIN ( ALL 52 ) + - 91
----
-4355

query I rowsort
SELECT 96 * - 52 + 20 AS col1
----
-4972

onlyif mysql # DIV for integer division: 
query I rowsort label-9397
SELECT DISTINCT + 43 + - 34 + - - 64 DIV + - 57 + + 83 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT + 43 + - 34 + - - 64 / + - 57 + + 83 AS col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9398
SELECT ALL COUNT( - 82 ), 66 AS col0
----
1
66

skipif mysql # not compatible
query II rowsort label-9398
SELECT ALL COUNT ( - 82 ), 66 AS col0
----
1
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT DISTINCT + 21 + - ( - COUNT( * ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9399
SELECT DISTINCT + 21 + - ( - COUNT ( * ) ) AS col0
----
22

query II rowsort
SELECT - 95 + - 84 - + + 97 + + 24 AS col2, 40 + - 41 AS col0
----
-252
-1

query I rowsort
SELECT ALL + 10 + - + 92 AS col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9402
SELECT + COALESCE ( + 8, + CAST( - - MIN( DISTINCT + - 21 ) AS SIGNED ) * 75 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-9402
SELECT + COALESCE ( + 8, + CAST ( - - MIN ( DISTINCT + - 21 ) AS INTEGER ) * 75 ) AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9403
SELECT + + COUNT( 69 ) * CAST( + 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-9403
SELECT + + COUNT ( 69 ) * CAST ( + 86 AS INTEGER )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT + + NULLIF ( - - COUNT( * ), - 11 ) + 21 - - 94 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-9404
SELECT + + NULLIF ( - - COUNT ( * ), - 11 ) + 21 - - 94 AS col2
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9405
SELECT ALL COUNT( * ), ( + CAST( 97 AS DECIMAL ) ) * CAST( NULL AS SIGNED ) * - 85 * + 13 - 85 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9405
SELECT ALL COUNT ( * ), ( + CAST ( 97 AS REAL ) ) * CAST ( NULL AS INTEGER ) * - 85 * + 13 - 85 AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT - ( + CASE + + 29 WHEN - + 28 THEN NULL ELSE + NULLIF ( - 61, COUNT( * ) ) END ) + + + 60 AS col1
----
121

skipif mysql # not compatible
query I rowsort label-9406
SELECT - ( + CASE + + 29 WHEN - + 28 THEN NULL ELSE + NULLIF ( - 61, COUNT ( * ) ) END ) + + + 60 AS col1
----
121

query I rowsort
SELECT - 48 * - 86 AS col0
----
4128

query II rowsort
SELECT 6 col2, - NULLIF ( - 1, - + 25 * - 14 ) * + - 51
----
6
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT ALL + COUNT( * ) + - + CASE - + 15 WHEN 51 THEN + 29 * + 20 ELSE 69 END AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL + COUNT ( * ) + - + CASE - + 15 WHEN 51 THEN + 29 * + 20 ELSE 69 END AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9410
SELECT ALL COALESCE ( + 85, ( - - 93 ) + + 53 * 74 - - - 2 DIV - 58 * - 28 DIV + ( ( - 52 ) ) * + CAST( NULL AS SIGNED ) + - + COUNT( * ) DIV - - NULLIF ( - 62, 8 + - 0 ) * - 12, + ( + 90 ) ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL COALESCE ( + 85, ( - - 93 ) + + 53 * 74 - - - 2 / - 58 * - 28 / + ( ( - 52 ) ) * + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) / - - NULLIF ( - 62, 8 + - 0 ) * - 12, + ( + 90 ) ) AS col0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9411
SELECT DISTINCT + 86 - + - 64 * 47 DIV COUNT( * ) + - + ( + ( 25 ) )
----
3069

skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT + 86 - + - 64 * 47 / COUNT ( * ) + - + ( + ( 25 ) )
----
3069

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT - 12 * + 94 * + + COUNT( * )
----
-1128

skipif mysql # not compatible
query I rowsort label-9412
SELECT - 12 * + 94 * + + COUNT ( * )
----
-1128

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT ALL CASE - - 51 WHEN 41 + 76 - - ( + 53 ) / COUNT( 83 ) * COUNT( * ) + ( + - 2 ) * - 53 THEN + 2 WHEN + 75 + - 56 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL CASE - - 51 WHEN 41 + 76 - - ( + 53 ) / COUNT ( 83 ) * COUNT ( * ) + ( + - 2 ) * - 53 THEN + 2 WHEN + 75 + - 56 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 4 - 67 + 37 AS col0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9415
SELECT DISTINCT 59 DIV - - COALESCE ( 67, + + 24 DIV 22, 76, COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9415
SELECT DISTINCT 59 / - - COALESCE ( 67, + + 24 / 22, 76, COUNT ( * ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT DISTINCT + CASE + 77 WHEN + 84 - - COUNT( * ) THEN NULL WHEN - 37 THEN - 8 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT DISTINCT + CASE + 77 WHEN + 84 - - COUNT ( * ) THEN NULL WHEN - 37 THEN - 8 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9417
SELECT 41 DIV - + 2 + 87 - + + 94 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9417
SELECT 41 / - + 2 + 87 - + + 94 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT - 99 - COUNT( * )
----
-100

skipif mysql # not compatible
query I rowsort label-9418
SELECT - 99 - COUNT ( * )
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT + MIN( DISTINCT + - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-9419
SELECT + MIN ( DISTINCT + - 3 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9420
SELECT - 70 + - ( - CAST( NULL AS SIGNED ) ) + 22 + - 10 + - 84 + - 4 + - 22 / COUNT( ALL + 1 ) + - 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9420
SELECT - 70 + - ( - CAST ( NULL AS INTEGER ) ) + 22 + - 10 + - 84 + - 4 + - 22 / COUNT ( ALL + 1 ) + - 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT + MIN( ALL + 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-9421
SELECT + MIN ( ALL + 9 ) AS col0
----
9

query I rowsort
SELECT - 46 + - ( + 17 )
----
-63

query I rowsort
SELECT NULLIF ( - + 4, + AVG ( 74 ) )
----
-4

query I rowsort
SELECT - 22 * - + 66 col1
----
1452

query I rowsort
SELECT ALL 80 * + 60 col1
----
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT + 50 + + + NULLIF ( - + 46, + + COUNT( - - CASE + - 5 WHEN 63 THEN NULL WHEN + + 76 + 48 THEN - 58 ELSE NULL END ) * - 41 + - 69 * + - ( + 52 ) + - 83 * 28 * + - 97 * - ( - 12 ) - - + 56 / 73 )
----
4

skipif mysql # not compatible
query I rowsort label-9426
SELECT + 50 + + + NULLIF ( - + 46, + + COUNT ( - - CASE + - 5 WHEN 63 THEN NULL WHEN + + 76 + 48 THEN - 58 ELSE NULL END ) * - 41 + - 69 * + - ( + 52 ) + - 83 * 28 * + - 97 * - ( - 12 ) - - + 56 / 73 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9427
SELECT ALL - COALESCE ( + - ( 66 ), - NULLIF ( + 24, - 48 ), + 34 + - 46 ) * - 13 + + + 83 + COALESCE ( + 48, - + CAST( NULL AS SIGNED ) ), + COUNT( - COALESCE ( + 32, - COALESCE ( + 38, ( + 48 ) ) ) ) + 55 * + COUNT( * ) AS col1
----
-727
56

skipif mysql # not compatible
query II rowsort label-9427
SELECT ALL - COALESCE ( + - ( 66 ), - NULLIF ( + 24, - 48 ), + 34 + - 46 ) * - 13 + + + 83 + COALESCE ( + 48, - + CAST ( NULL AS INTEGER ) ), + COUNT ( - COALESCE ( + 32, - COALESCE ( + 38, ( + 48 ) ) ) ) + 55 * + COUNT ( * ) AS col1
----
-727
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT - 76 * - ( - 56 ) * 28 * 68 + + - 22 + ( 66 ) + 68 * - COUNT( * ) * - MIN( DISTINCT + 61 ) + 86 + + 40
----
-8099106

skipif mysql # not compatible
query I rowsort label-9428
SELECT - 76 * - ( - 56 ) * 28 * 68 + + - 22 + ( 66 ) + 68 * - COUNT ( * ) * - MIN ( DISTINCT + 61 ) + 86 + + 40
----
-8099106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9429
SELECT + CAST( - 49 AS SIGNED ) * - - SUM( 53 ) + - 39 + + 15 + - MAX( ALL - 39 ) - - - ( - 16 )
----
-2566

skipif mysql # not compatible
query I rowsort label-9429
SELECT + CAST ( - 49 AS INTEGER ) * - - SUM ( 53 ) + - 39 + + 15 + - MAX ( ALL - 39 ) - - - ( - 16 )
----
-2566

onlyif mysql # DIV for integer division: 
query I rowsort label-9430
SELECT DISTINCT - NULLIF ( 74, + 23 * + 47 ) DIV 47
----
-1

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT - NULLIF ( 74, + 23 * + 47 ) / 47
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9431
SELECT + 52 + 56 / + 66 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9431
SELECT + 52 + 56 / + 66 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 83 * - 70 * + 89 AS col0
----
-517090

query I rowsort
SELECT ALL 96 * NULLIF ( + - COALESCE ( + 46, - 49, - NULLIF ( - 5, - + ( 17 ) ) ), + 65 ) + + 29 * - + 37
----
-5489

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9434
SELECT + 79 + COALESCE ( CAST( + COUNT( * ) AS SIGNED ), - 79 * - - 13, + COUNT( * ) )
----
80

skipif mysql # not compatible
query I rowsort label-9434
SELECT + 79 + COALESCE ( CAST ( + COUNT ( * ) AS INTEGER ), - 79 * - - 13, + COUNT ( * ) )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT ALL - - 84 * MAX( DISTINCT + + COALESCE ( + 86, 40 - + 17 * + 9 + ( - 84 ) * + 81 * + 69 * - 33 - 9 * - 67 ) ) * - 33
----
-238392

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL - - 84 * MAX ( DISTINCT + + COALESCE ( + 86, 40 - + 17 * + 9 + ( - 84 ) * + 81 * + 69 * - 33 - 9 * - 67 ) ) * - 33
----
-238392

query II rowsort
SELECT - - 57 AS col2, 74 col1
----
57
74

query I rowsort
SELECT ALL - 23 * - + 20 AS col2
----
460

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT - - MAX( DISTINCT - 86 ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-9438
SELECT - - MAX ( DISTINCT - 86 ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT ALL MIN( ALL 53 ) * + 90 col0
----
4770

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL MIN ( ALL 53 ) * + 90 col0
----
4770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9440
SELECT DISTINCT 81 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT 81 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9441
SELECT DISTINCT COUNT( * ) col2, + 13 AS col1
----
1
13

skipif mysql # not compatible
query II rowsort label-9441
SELECT DISTINCT COUNT ( * ) col2, + 13 AS col1
----
1
13

query I rowsort
SELECT + 54 + + - NULLIF ( + 19, + 36 - 2 / 12 ) + + 74 - 95 * 6 * - 35 * - + 0 * - - 88
----
109

query I rowsort
SELECT + 30 + + 98
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT ALL MIN( ALL + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL MIN ( ALL + 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT - 6 + COUNT( * ) * - + 82 + + 5 * - - 58 AS col2
----
202

skipif mysql # not compatible
query I rowsort label-9445
SELECT - 6 + COUNT ( * ) * - + 82 + + 5 * - - 58 AS col2
----
202

query I rowsort
SELECT ALL + 73 * - 15 AS col1
----
-1095

query I rowsort
SELECT - 0 + + 5 col0
----
5

query I rowsort
SELECT - 58 * - 20
----
1160

query I rowsort
SELECT DISTINCT CASE - 34 WHEN + 5 THEN NULL ELSE - + 23 END
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9450
SELECT - 22 * 56 DIV - + ( + + COUNT( + 14 ) )
----
1232

skipif mysql # not compatible
query I rowsort label-9450
SELECT - 22 * 56 / - + ( + + COUNT ( + 14 ) )
----
1232

query I rowsort
SELECT ALL 28 * - 30 col2
----
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9452
SELECT DISTINCT + COUNT( - + 86 ) AS col0, 42 * ( - ( CAST( NULL AS SIGNED ) ) ) col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9452
SELECT DISTINCT + COUNT ( - + 86 ) AS col0, 42 * ( - ( CAST ( NULL AS INTEGER ) ) ) col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9453
SELECT - MIN( - 56 ) * 99 + 84 AS col2, + 65 * 96 AS col1
----
5628
6240

skipif mysql # not compatible
query II rowsort label-9453
SELECT - MIN ( - 56 ) * 99 + 84 AS col2, + 65 * 96 AS col1
----
5628
6240

query I rowsort
SELECT ALL + 10 * - + 17
----
-170

query I rowsort
SELECT ALL - ( - - ( + - 38 ) ) * - 28 * 94 AS col2
----
-100016

query I rowsort
SELECT - 92 * + 73
----
-6716

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9457
SELECT ALL CAST( + + ( - - 11 ) AS SIGNED ) DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL CAST ( + + ( - - 11 ) AS INTEGER ) / + 97
----
0

query I rowsort
SELECT - - 75 * 92 col1
----
6900

onlyif mysql # aggregate syntax: 
query II rowsort label-9459
SELECT COUNT( * ), - 0 - - 87 AS col0
----
1
87

skipif mysql # not compatible
query II rowsort label-9459
SELECT COUNT ( * ), - 0 - - 87 AS col0
----
1
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9460
SELECT + - 77 AS col1, NULLIF ( 1, + MIN( DISTINCT + 73 ) + - 94 ) AS col1
----
-77
1

skipif mysql # not compatible
query II rowsort label-9460
SELECT + - 77 AS col1, NULLIF ( 1, + MIN ( DISTINCT + 73 ) + - 94 ) AS col1
----
-77
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9461
SELECT ALL COUNT( * ) DIV 12 * 24 + + 71 + 28 * 27 + + 34 + 47
----
908

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL COUNT ( * ) / 12 * 24 + + 71 + 28 * 27 + + 34 + 47
----
908

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT - 14 * + CAST( NULL AS SIGNED ) + + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9462
SELECT - 14 * + CAST ( NULL AS INTEGER ) + + 51 AS col2
----
NULL

query I rowsort
SELECT ALL 32 / + 67 + - ( - 53 ) + 34 * + 41 + - 60 + - CASE ( + ( - 17 ) ) WHEN - + 85 * - - 19 * 6 + + NULLIF ( + 43, + 99 ) THEN 26 + + 60 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9464
SELECT DISTINCT COALESCE ( + ( - 95 ), + NULLIF ( + 19, - 16 ) DIV 56 ) DIV - ( + 19 ) + - NULLIF ( 41, 18 ) + + + SUM( ALL + + 4 ) * - 63 * 17 + - 96 DIV - - 4 AS col1
----
-4344

skipif mysql # not compatible
query I rowsort label-9464
SELECT DISTINCT COALESCE ( + ( - 95 ), + NULLIF ( + 19, - 16 ) / 56 ) / - ( + 19 ) + - NULLIF ( 41, 18 ) + + + SUM ( ALL + + 4 ) * - 63 * 17 + - 96 / - - 4 AS col1
----
-4344

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT ALL + + CASE + + 50 WHEN 41 + - - 22 + + 73 THEN COUNT( * ) ELSE + - 41 END AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-9465
SELECT ALL + + CASE + + 50 WHEN 41 + - - 22 + + 73 THEN COUNT ( * ) ELSE + - 41 END AS col2
----
-41

query I rowsort
SELECT ALL + 54 + + + 41 AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ALL - + 40 + - - SUM( + 90 )
----
50

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL - + 40 + - - SUM ( + 90 )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9468
SELECT DISTINCT 98 + COUNT( - 35 ) + + - 72 DIV 40 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT 98 + COUNT ( - 35 ) + + - 72 / 40 AS col2
----
98

query II rowsort
SELECT ALL - 82, - ( + 21 ) AS col2
----
-82
-21

query I rowsort
SELECT ALL - - COALESCE ( + 73, - 25 ) col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT 72 * + - COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-9471
SELECT 72 * + - COUNT ( * ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-9472
SELECT + COUNT( * ) AS col0, + 27 + + 42
----
1
69

skipif mysql # not compatible
query II rowsort label-9472
SELECT + COUNT ( * ) AS col0, + 27 + + 42
----
1
69

query I rowsort
SELECT 74 + + + 50
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT + COALESCE ( - + 87, - SUM( ALL + 47 ) + + 2 + + + 0 ) + 85 + + 29
----
27

skipif mysql # not compatible
query I rowsort label-9474
SELECT + COALESCE ( - + 87, - SUM ( ALL + 47 ) + + 2 + + + 0 ) + 85 + + 29
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-9475
SELECT 64 DIV 12 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9475
SELECT 64 / 12 AS col0
----
5

query I rowsort
SELECT ALL 83 - - 3 AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9477
SELECT 51 * - CAST( NULL AS SIGNED ) * + - 77 + - 94 * + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9477
SELECT 51 * - CAST ( NULL AS INTEGER ) * + - 77 + - 94 * + 2 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9478
SELECT ALL 48 DIV + NULLIF ( - 15, - + 54 )
----
-3

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL 48 / + NULLIF ( - 15, - + 54 )
----
-3

query I rowsort
SELECT DISTINCT - 4 - + 78
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9480
SELECT 16 + - + COALESCE ( - 37, + - 48 * - COUNT( * ) * 34 - 40 * + CAST( NULL AS SIGNED ) ) + - - 51
----
104

skipif mysql # not compatible
query I rowsort label-9480
SELECT 16 + - + COALESCE ( - 37, + - 48 * - COUNT ( * ) * 34 - 40 * + CAST ( NULL AS INTEGER ) ) + - - 51
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9481
SELECT COUNT( * ) * + ( CAST( 39 AS SIGNED ) ) * - 48 * + 73 * + + 92
----
-12572352

skipif mysql # not compatible
query I rowsort label-9481
SELECT COUNT ( * ) * + ( CAST ( 39 AS INTEGER ) ) * - 48 * + 73 * + + 92
----
-12572352

query II rowsort
SELECT 6 + - 86 AS col0, 38
----
-80
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9483
SELECT COALESCE ( 38, - ( - - 42 ) ) DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-9483
SELECT COALESCE ( 38, - ( - - 42 ) ) / - 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT ALL 41 * - - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL 41 * - - COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT 22 * - NULLIF ( 25, 17 + - + 43 * COUNT( * ) ) col0
----
-550

skipif mysql # not compatible
query I rowsort label-9485
SELECT 22 * - NULLIF ( 25, 17 + - + 43 * COUNT ( * ) ) col0
----
-550

query II rowsort
SELECT ALL 34 + 7 AS col1, + 88 AS col0
----
41
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9487
SELECT NULLIF ( CASE 11 WHEN + 86 THEN - 89 - - CAST( NULL AS SIGNED ) WHEN - - 24 THEN NULL ELSE NULL END, CAST( + + 15 AS SIGNED ) ) - - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT NULLIF ( CASE 11 WHEN + 86 THEN - 89 - - CAST ( NULL AS INTEGER ) WHEN - - 24 THEN NULL ELSE NULL END, CAST ( + + 15 AS INTEGER ) ) - - COUNT ( * ) col2
----
NULL

query I rowsort
SELECT ALL - 51 + + 40 * + - 87 AS col2
----
-3531

query I rowsort
SELECT DISTINCT 40 + - 37 * 79
----
-2883

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ALL + 79 + + - COUNT( * ) + ( + 67 )
----
145

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL + 79 + + - COUNT ( * ) + ( + 67 )
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-9491
SELECT 66 DIV + 19 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9491
SELECT 66 / + 19 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT - 85 + ( - COUNT( * ) ) - + 38 - + 86
----
-210

skipif mysql # not compatible
query I rowsort label-9492
SELECT - 85 + ( - COUNT ( * ) ) - + 38 - + 86
----
-210

query I rowsort
SELECT ALL + - 80 + 24 - + - 38 + + 50 AS col1
----
32

query I rowsort
SELECT + - ( + + 15 )
----
-15

query I rowsort
SELECT + NULLIF ( - 26, - 20 ) * + + 0 + - 75 + - 51
----
-126

query I rowsort
SELECT + 68 * 0 * 18 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT + 7 * 58 + - SUM( 56 ) AS col2
----
350

skipif mysql # not compatible
query I rowsort label-9497
SELECT + 7 * 58 + - SUM ( 56 ) AS col2
----
350

query I rowsort
SELECT DISTINCT - - 67 * + 72
----
4824

onlyif mysql # DIV for integer division: 
query I rowsort label-9499
SELECT 78 DIV 44 + + ( + 6 )
----
7

skipif mysql # not compatible
query I rowsort label-9499
SELECT 78 / 44 + + ( + 6 )
----
7

query I rowsort
SELECT DISTINCT + + 75 * 35
----
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT ALL - CASE + COUNT( * ) WHEN - ( + 92 ) THEN 88 END - COALESCE ( + NULLIF ( 1, - ( - 66 ) ), - - 27 * + 53 * + 86 + 48 + - COALESCE ( - 80, + 17 ) ) + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL - CASE + COUNT ( * ) WHEN - ( + 92 ) THEN 88 END - COALESCE ( + NULLIF ( 1, - ( - 66 ) ), - - 27 * + 53 * + 86 + 48 + - COALESCE ( - 80, + 17 ) ) + 2
----
NULL

query I rowsort
SELECT - 33 * 80 + - 21
----
-2661

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9503
SELECT - NULLIF ( COUNT( * ), + 91 + + 37 ) DIV + 29
----
0

skipif mysql # not compatible
query I rowsort label-9503
SELECT - NULLIF ( COUNT ( * ), + 91 + + 37 ) / + 29
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9504
SELECT COUNT( * ) DIV - 14 col0
----
0

skipif mysql # not compatible
query I rowsort label-9504
SELECT COUNT ( * ) / - 14 col0
----
0

query I rowsort
SELECT ( - 29 ) * + - 16
----
464

query II rowsort
SELECT + - COALESCE ( 86, - 12 ), 36 / - 0 / + + CASE + - 0 WHEN + 89 THEN NULL WHEN 34 THEN 67 + 62 + + 74 * CASE - 30 WHEN + - 60 THEN + 33 END ELSE NULL END AS col0
----
-86
NULL

query I rowsort
SELECT + 97 + - 53
----
44

query I rowsort
SELECT ALL - 82 * 29
----
-2378

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT + 50 * - COUNT( * ) * 26 * + 61
----
-79300

skipif mysql # not compatible
query I rowsort label-9509
SELECT + 50 * - COUNT ( * ) * 26 * + 61
----
-79300

query II rowsort
SELECT - 80, 46 AS col0
----
-80
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT - COUNT( * ) * - 71
----
71

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT - COUNT ( * ) * - 71
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9512
SELECT 32 * - ( COUNT( * ) ) DIV + - COALESCE ( + 92, + 68 * + 50 )
----
0

skipif mysql # not compatible
query I rowsort label-9512
SELECT 32 * - ( COUNT ( * ) ) / + - COALESCE ( + 92, + 68 * + 50 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT MAX( DISTINCT + 91 ) + 51 + 39
----
181

skipif mysql # not compatible
query I rowsort label-9513
SELECT MAX ( DISTINCT + 91 ) + 51 + 39
----
181

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9514
SELECT 22 * 16 DIV - + SUM( ALL + - 15 ) AS col1, 58
----
23
58

skipif mysql # not compatible
query II rowsort label-9514
SELECT 22 * 16 / - + SUM ( ALL + - 15 ) AS col1, 58
----
23
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9515
SELECT 60 + - CAST( + ( - 34 ) AS SIGNED ) AS col0, 55 col2
----
94
55

skipif mysql # not compatible
query II rowsort label-9515
SELECT 60 + - CAST ( + ( - 34 ) AS INTEGER ) AS col0, 55 col2
----
94
55

query II rowsort
SELECT DISTINCT 54 AS col1, 26 col1
----
54
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9517
SELECT ALL 35 + - CASE + ( + + 9 ) WHEN + + CAST( NULL AS SIGNED ) * + 43 + COALESCE ( + 26, + 49 ) THEN + 7 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL 35 + - CASE + ( + + 9 ) WHEN + + CAST ( NULL AS INTEGER ) * + 43 + COALESCE ( + 26, + 49 ) THEN + 7 END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9518
SELECT 38 + 70 + CAST( - + 4 AS SIGNED ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-9518
SELECT 38 + 70 + CAST ( - + 4 AS INTEGER ) AS col1
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-9519
SELECT DISTINCT COUNT( * ) AS col0, + ( + 92 )
----
1
92

skipif mysql # not compatible
query II rowsort label-9519
SELECT DISTINCT COUNT ( * ) AS col0, + ( + 92 )
----
1
92

query I rowsort
SELECT DISTINCT 28 * - 61 AS col1
----
-1708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9521
SELECT ALL 14, + CASE + MIN( - ( + COALESCE ( + 1, 90 + + ( - 51 ) ) ) ) WHEN - + 0 + - + MAX( DISTINCT + ( 52 ) ) * 40 + - CASE + - CAST( NULL AS SIGNED ) WHEN - + 37 THEN NULL WHEN ( + 61 ) THEN NULL WHEN - 91 + + 93 THEN - 2 ELSE + 8 / CAST( NULL AS SIGNED ) + 1 END THEN 70 * 46 END AS col0
----
14
NULL

skipif mysql # not compatible
query II rowsort label-9521
SELECT ALL 14, + CASE + MIN ( - ( + COALESCE ( + 1, 90 + + ( - 51 ) ) ) ) WHEN - + 0 + - + MAX ( DISTINCT + ( 52 ) ) * 40 + - CASE + - CAST ( NULL AS INTEGER ) WHEN - + 37 THEN NULL WHEN ( + 61 ) THEN NULL WHEN - 91 + + 93 THEN - 2 ELSE + 8 / CAST ( NULL AS INTEGER ) + 1 END THEN 70 * 46 END AS col0
----
14
NULL

query I rowsort
SELECT 57 + 30 col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT ( 29 ) + - CASE + + 35 WHEN + ( + COUNT( * ) ) + + 66 THEN - 9 * + - COUNT( * ) * - 6 * + 94 WHEN 10 THEN 82 / + 26 - - 67 - MAX( DISTINCT 18 ) * 41 * + 40 * - 71 WHEN 8 THEN NULL END * + ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9523
SELECT ( 29 ) + - CASE + + 35 WHEN + ( + COUNT ( * ) ) + + 66 THEN - 9 * + - COUNT ( * ) * - 6 * + 94 WHEN 10 THEN 82 / + 26 - - 67 - MAX ( DISTINCT 18 ) * 41 * + 40 * - 71 WHEN 8 THEN NULL END * + ( COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT DISTINCT 92 * + 29 * - COUNT( * ) * - 32 AS col0
----
85376

skipif mysql # not compatible
query I rowsort label-9524
SELECT DISTINCT 92 * + 29 * - COUNT ( * ) * - 32 AS col0
----
85376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9525
SELECT 82 + - COALESCE ( - - SUM( DISTINCT ( + - 74 ) ), + CAST( NULL AS SIGNED ) * - 87 ) * + MIN( - 22 ) * + 91 + - 76 + + 38 - + 81 * 74 * 10 + + 24 * 84 AS col0
----
-206028

skipif mysql # not compatible
query I rowsort label-9525
SELECT 82 + - COALESCE ( - - SUM ( DISTINCT ( + - 74 ) ), + CAST ( NULL AS INTEGER ) * - 87 ) * + MIN ( - 22 ) * + 91 + - 76 + + 38 - + 81 * 74 * 10 + + 24 * 84 AS col0
----
-206028

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT - SUM( DISTINCT + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-9526
SELECT - SUM ( DISTINCT + 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ( ( + 49 ) ) + MIN( + + ( + + 59 ) ) AS col1
----
108

skipif mysql # not compatible
query I rowsort label-9527
SELECT ( ( + 49 ) ) + MIN ( + + ( + + 59 ) ) AS col1
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-9528
SELECT DISTINCT + 9 + + 47 - 14 DIV + 71 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9528
SELECT DISTINCT + 9 + + 47 - 14 / + 71 AS col2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9529
SELECT - CAST( NULL AS SIGNED ) col0, + 14 AS col2
----
NULL
14

skipif mysql # not compatible
query II rowsort label-9529
SELECT - CAST ( NULL AS INTEGER ) col0, + 14 AS col2
----
NULL
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9530
SELECT ALL SUM( 94 ) * COUNT( * ) AS col2, + MIN( 60 ) col0
----
94
60

skipif mysql # not compatible
query II rowsort label-9530
SELECT ALL SUM ( 94 ) * COUNT ( * ) AS col2, + MIN ( 60 ) col0
----
94
60

query II rowsort
SELECT - 89 AS col2, - 41 * ( 78 ) AS col1
----
-89
-3198

query II rowsort
SELECT ALL + - 62, 15 AS col0
----
-62
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9533
SELECT + + 9 AS col0, COUNT( * ) + 27
----
9
28

skipif mysql # not compatible
query II rowsort label-9533
SELECT + + 9 AS col0, COUNT ( * ) + 27
----
9
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT ALL + MAX( 38 )
----
38

skipif mysql # not compatible
query I rowsort label-9534
SELECT ALL + MAX ( 38 )
----
38

query II rowsort
SELECT 80 AS col1, - 88
----
80
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9536
SELECT + COUNT( * ) * + - CAST( + + 98 AS SIGNED ) + + COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-9536
SELECT + COUNT ( * ) * + - CAST ( + + 98 AS INTEGER ) + + COUNT ( * )
----
-97

query I rowsort
SELECT DISTINCT + 44 * 50 AS col0
----
2200

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT DISTINCT COUNT( * ) * + + 97 - - 95
----
192

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT COUNT ( * ) * + + 97 - - 95
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT - COUNT( * ) - - COALESCE ( - 82, - ( + 59 ), 65 ) col0
----
-83

skipif mysql # not compatible
query I rowsort label-9539
SELECT - COUNT ( * ) - - COALESCE ( - 82, - ( + 59 ), 65 ) col0
----
-83

query I rowsort
SELECT ALL 4 * - 97 AS col2
----
-388

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT NULLIF ( + 89, - + SUM( DISTINCT - + 34 ) + + - 30 )
----
89

skipif mysql # not compatible
query I rowsort label-9541
SELECT NULLIF ( + 89, - + SUM ( DISTINCT - + 34 ) + + - 30 )
----
89

query II rowsort
SELECT 60 AS col0, 60 AS col1
----
60
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9543
SELECT - 83 DIV + + 12, 46 + + CAST( + 86 AS SIGNED ) AS col2
----
-6
132

skipif mysql # not compatible
query II rowsort label-9543
SELECT - 83 / + + 12, 46 + + CAST ( + 86 AS INTEGER ) AS col2
----
-6
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9544
SELECT + 53 + + COALESCE ( - 3, - - 6 DIV + + 89 + + + 19 - - - 2 + + 46 DIV - 16 ) * - ( - COUNT( * ) ) DIV 79
----
53

skipif mysql # not compatible
query I rowsort label-9544
SELECT + 53 + + COALESCE ( - 3, - - 6 / + + 89 + + + 19 - - - 2 + + 46 / - 16 ) * - ( - COUNT ( * ) ) / 79
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9545
SELECT - 71 * + + CAST( + COALESCE ( 15, + - 32 * - 3, 11 ) AS SIGNED )
----
-1065

skipif mysql # not compatible
query I rowsort label-9545
SELECT - 71 * + + CAST ( + COALESCE ( 15, + - 32 * - 3, 11 ) AS INTEGER )
----
-1065

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT COUNT( * ) * + ( 21 ) * + - 87 * + - NULLIF ( - 5, + - 31 ) * - + 58 + + NULLIF ( - 30, - 11 ) AS col0
----
529800

skipif mysql # not compatible
query I rowsort label-9546
SELECT COUNT ( * ) * + ( 21 ) * + - 87 * + - NULLIF ( - 5, + - 31 ) * - + 58 + + NULLIF ( - 30, - 11 ) AS col0
----
529800

onlyif mysql # aggregate syntax: 
query II rowsort label-9547
SELECT DISTINCT COALESCE ( - NULLIF ( + + 57, - 96 + + 86 + - + 72 * 14 / 1 * 69 ), + 74 ) AS col1, CASE - + 29 WHEN + ( - 94 ) THEN NULL ELSE + 55 END + - + 38 * + COUNT( * ) * - 85
----
-57
3285

skipif mysql # not compatible
query II rowsort label-9547
SELECT DISTINCT COALESCE ( - NULLIF ( + + 57, - 96 + + 86 + - + 72 * 14 / 1 * 69 ), + 74 ) AS col1, CASE - + 29 WHEN + ( - 94 ) THEN NULL ELSE + 55 END + - + 38 * + COUNT ( * ) * - 85
----
-57
3285

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL - 51 + + - 64 - + + COUNT( * )
----
-116

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL - 51 + + - 64 - + + COUNT ( * )
----
-116

query I rowsort
SELECT DISTINCT + 42 * + ( + + 74 ) * + 84
----
261072

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT - COUNT( ALL - 83 ) * - - ( - - 78 ) * + + COUNT( * ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-9550
SELECT - COUNT ( ALL - 83 ) * - - ( - - 78 ) * + + COUNT ( * ) col0
----
-78

query II rowsort
SELECT - 5 - + 79 AS col0, 58
----
-84
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT - 40 * + - 33 * COUNT( * ) AS col0
----
1320

skipif mysql # not compatible
query I rowsort label-9552
SELECT - 40 * + - 33 * COUNT ( * ) AS col0
----
1320

onlyif mysql # aggregate syntax: 
query II rowsort label-9553
SELECT - SUM( - + 15 ) AS col0, 19 * + - 21 AS col1
----
15
-399

skipif mysql # not compatible
query II rowsort label-9553
SELECT - SUM ( - + 15 ) AS col0, 19 * + - 21 AS col1
----
15
-399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9554
SELECT ALL + 24 * + + CAST( - + 66 AS SIGNED )
----
-1584

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL + 24 * + + CAST ( - + 66 AS INTEGER )
----
-1584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9555
SELECT DISTINCT CAST( + ( + 70 ) AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT CAST ( + ( + 70 ) AS INTEGER )
----
70

query I rowsort
SELECT ALL 45 + 64
----
109

query I rowsort
SELECT - 51 - + 17 + + + 18
----
-50

query II rowsort
SELECT - 89 - 21 AS col0, 2 AS col1
----
-110
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9559
SELECT DISTINCT - 0 DIV NULLIF ( - 21, - + MAX( ALL + 52 ) ) * 25
----
0

skipif mysql # not compatible
query I rowsort label-9559
SELECT DISTINCT - 0 / NULLIF ( - 21, - + MAX ( ALL + 52 ) ) * 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT DISTINCT - SUM( DISTINCT + + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT - SUM ( DISTINCT + + 30 )
----
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9561
SELECT ALL COALESCE ( - 68, + - 70 - - 66 ) * NULLIF ( - 25, + 73 * + ( CAST( - + 99 AS DECIMAL ) ) - + - 76 )
----
1700

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL COALESCE ( - 68, + - 70 - - 66 ) * NULLIF ( - 25, + 73 * + ( CAST ( - + 99 AS REAL ) ) - + - 76 )
----
1700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9562
SELECT ALL + MAX( ALL CAST( + - 79 AS SIGNED ) ) DIV - - 55 - + 9 + 24 * - COALESCE ( - 98, - - ( - CAST( NULL AS SIGNED ) ) * CASE - 98 WHEN - + 52 - + + NULLIF ( - - 67, - + 58 ) + - - 71 THEN + - 57 + + 96 - CASE + 1 WHEN - 3 THEN - - 78 * + 49 - - 90 ELSE - 33 END END DIV + ( 16 ) ) AS col1
----
2342

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL + MAX ( ALL CAST ( + - 79 AS INTEGER ) ) / - - 55 - + 9 + 24 * - COALESCE ( - 98, - - ( - CAST ( NULL AS INTEGER ) ) * CASE - 98 WHEN - + 52 - + + NULLIF ( - - 67, - + 58 ) + - - 71 THEN + - 57 + + 96 - CASE + 1 WHEN - 3 THEN - - 78 * + 49 - - 90 ELSE - 33 END END / + ( 16 ) ) AS col1
----
2342

query I rowsort
SELECT + 29 * + 58 - + - 33 AS col0
----
1715

onlyif mysql # aggregate syntax: 
query II rowsort label-9564
SELECT + + COUNT( * ) * - 44 AS col2, + 40
----
-44
40

skipif mysql # not compatible
query II rowsort label-9564
SELECT + + COUNT ( * ) * - 44 AS col2, + 40
----
-44
40

query I rowsort
SELECT - - ( - - 18 ) + 46 AS col0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-9566
SELECT + 92 DIV - 45 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9566
SELECT + 92 / - 45 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT + 62 * + ( - 93 ) + 59 + + COUNT( * ) AS col0
----
-5706

skipif mysql # not compatible
query I rowsort label-9567
SELECT + 62 * + ( - 93 ) + 59 + + COUNT ( * ) AS col0
----
-5706

query I rowsort
SELECT ALL 36 * + 8 + - 75 AS col0
----
213

query I rowsort
SELECT + 5 * + 27 AS col0
----
135

query I rowsort
SELECT - 49 * 50 + - 27 + + 33 AS col1
----
-2444

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT ALL + CASE 40 WHEN 4 + + 69 THEN SUM( + 67 ) WHEN + 87 / 91 * + + 61 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL + CASE 40 WHEN 4 + + 69 THEN SUM ( + 67 ) WHEN + 87 / 91 * + + 61 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9572
SELECT - 62 DIV - 59 + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9572
SELECT - 62 / - 59 + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT + - COUNT( * ) * + NULLIF ( + ( + 43 ), + ( 53 ) * + 53 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-9573
SELECT + - COUNT ( * ) * + NULLIF ( + ( + 43 ), + ( 53 ) * + 53 ) AS col1
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9574
SELECT ALL + NULLIF ( 87, - - CAST( NULL AS SIGNED ) + - 2 + - 46 + 83 ) col0
----
87

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL + NULLIF ( 87, - - CAST ( NULL AS INTEGER ) + - 2 + - 46 + 83 ) col0
----
87

query I rowsort
SELECT + 71 * - 69
----
-4899

query I rowsort
SELECT 28 * - 73 + + + 43 + ( - 6 ) AS col2
----
-2007

query I rowsort
SELECT DISTINCT + COALESCE ( + 10, + - 67 ) * 16 * ( 83 ) + - + 82 AS col2
----
13198

query I rowsort
SELECT ALL - 49 * + 95 * - 32 + + 54 AS col1
----
149014

query I rowsort
SELECT CASE - ( - 74 ) WHEN 10 THEN NULL WHEN - + 78 THEN 56 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9580
SELECT ALL ( COUNT( * ) ) DIV 48 DIV - 90 * + ( 41 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL ( COUNT ( * ) ) / 48 / - 90 * + ( 41 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9581
SELECT ALL ( - - COUNT( * ) ) * + - CAST( NULL AS SIGNED ) + CASE - + 80 WHEN 30 - - - 49 * - 97 THEN NULL WHEN + - 91 * 61 * + SUM( CAST( - 5 AS DECIMAL ) ) - + COUNT( ALL + 87 ) THEN 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL ( - - COUNT ( * ) ) * + - CAST ( NULL AS INTEGER ) + CASE - + 80 WHEN 30 - - - 49 * - 97 THEN NULL WHEN + - 91 * 61 * + SUM ( CAST ( - 5 AS REAL ) ) - + COUNT ( ALL + 87 ) THEN 32 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9582
SELECT DISTINCT CAST( - - 0 AS SIGNED ) * + 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT CAST ( - - 0 AS INTEGER ) * + 6 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9583
SELECT DISTINCT - CAST( + + 0 AS SIGNED ) * 90 DIV - + 16 * - 28 * 29 + - - 9 DIV COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT - CAST ( + + 0 AS INTEGER ) * 90 / - + 16 * - 28 * 29 + - - 9 / COUNT ( * ) AS col1
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-9584
SELECT - 2 col2, 45 DIV 66 AS col1
----
-2
0

skipif mysql # not compatible
query II rowsort label-9584
SELECT - 2 col2, 45 / 66 AS col1
----
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9585
SELECT - CAST( - 22 AS SIGNED ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-9585
SELECT - CAST ( - 22 AS INTEGER ) AS col1
----
22

query I rowsort
SELECT + 81 + - - 5 AS col2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9587
SELECT - 46 * + CASE WHEN 91 IS NOT NULL THEN 83 * 29 + ( + - 73 ) + + - 82 + + 65 DIV + 47 WHEN NOT NULL >= + 97 + 73 - - 30 THEN NULL ELSE NULL END * - + COUNT( * ) col0
----
103638

skipif mysql # not compatible
query I rowsort label-9587
SELECT - 46 * + CASE WHEN 91 IS NOT NULL THEN 83 * 29 + ( + - 73 ) + + - 82 + + 65 / + 47 WHEN NOT NULL >= + 97 + 73 - - 30 THEN NULL ELSE NULL END * - + COUNT ( * ) col0
----
103638

query I rowsort
SELECT ALL NULLIF ( - + 16, 53 * - 9 / - + 89 - 15 * + - 24 ) AS col1
----
-16

query I rowsort
SELECT + 58 + + 86 AS col1
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9590
SELECT - 63 + COALESCE ( - 83, - 61 + - + 72 * - CAST( NULL AS SIGNED ) + + 3 )
----
-146

skipif mysql # not compatible
query I rowsort label-9590
SELECT - 63 + COALESCE ( - 83, - 61 + - + 72 * - CAST ( NULL AS INTEGER ) + + 3 )
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT - COUNT( 52 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9591
SELECT - COUNT ( 52 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT - COUNT( 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-9592
SELECT - COUNT ( 26 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT ALL - 66 - + 81 + - 36 * COUNT( * ) / - 11 * + 59 + - CASE - 26 WHEN 6 * - 31 THEN + ( + 69 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL - 66 - + 81 + - 36 * COUNT ( * ) / - 11 * + 59 + - CASE - 26 WHEN 6 * - 31 THEN + ( + 69 ) END AS col0
----
NULL

query I rowsort
SELECT 72 + + ( - 91 ) + - 35
----
-54

query I rowsort
SELECT ALL + + 98 * ( - - 35 ) + + - 79 AS col1
----
3351

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT + 87 + ( + 63 ) * + + 62 * COUNT( * )
----
3993

skipif mysql # not compatible
query I rowsort label-9596
SELECT + 87 + ( + 63 ) * + + 62 * COUNT ( * )
----
3993

query I rowsort
SELECT DISTINCT + - 31 - - + 55 + - COALESCE ( + - 40, + ( - 6 ) ) * - 70
----
-2776

query I rowsort
SELECT 15 * - 14
----
-210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9599
SELECT - + 79 AS col2, + COUNT( * ) * - SUM( ALL + 99 ) * - - COUNT( DISTINCT + CAST( NULL AS SIGNED ) )
----
-79
0

skipif mysql # not compatible
query II rowsort label-9599
SELECT - + 79 AS col2, + COUNT ( * ) * - SUM ( ALL + 99 ) * - - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
-79
0

query I rowsort
SELECT 95 * + + 3 col0
----
285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9601
SELECT ALL - + 89 * 21 * - CAST( NULLIF ( + + 28, + ( - 86 ) + 98 ) AS SIGNED ) + - - COUNT( * )
----
52333

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL - + 89 * 21 * - CAST ( NULLIF ( + + 28, + ( - 86 ) + 98 ) AS INTEGER ) + - - COUNT ( * )
----
52333

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT ALL - SUM( ALL 29 ) col2
----
-29

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL - SUM ( ALL 29 ) col2
----
-29

query I rowsort
SELECT + 17 * - - 57 + 97 - - + 42
----
1108

query I rowsort
SELECT ALL - + CASE - 78 WHEN 19 THEN NULL WHEN - 14 / 22 / + 61 THEN + 52 - + 35 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9605
SELECT - COALESCE ( - 49, 47, - 47, COUNT( * ) ) DIV - 25
----
-1

skipif mysql # not compatible
query I rowsort label-9605
SELECT - COALESCE ( - 49, 47, - 47, COUNT ( * ) ) / - 25
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9606
SELECT - 70 - MIN( ALL - 89 ), 19 col0
----
19
19

skipif mysql # not compatible
query II rowsort label-9606
SELECT - 70 - MIN ( ALL - 89 ), 19 col0
----
19
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9607
SELECT + 44 DIV + CAST( NULLIF ( - 10, - - COALESCE ( - 75, ( + 21 ) * 93, - ( + + 31 ) * - 74 ) ) AS SIGNED ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9607
SELECT + 44 / + CAST ( NULLIF ( - 10, - - COALESCE ( - 75, ( + 21 ) * 93, - ( + + 31 ) * - 74 ) ) AS INTEGER ) AS col0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9608
SELECT - CAST( 8 AS SIGNED ) - - 88
----
80

skipif mysql # not compatible
query I rowsort label-9608
SELECT - CAST ( 8 AS INTEGER ) - - 88
----
80

query II rowsort
SELECT + 32, 90 + ( + 5 ) AS col1
----
32
95

query I rowsort
SELECT ( 25 ) * 56
----
1400

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9611
SELECT ALL COUNT( * ) + + ( + + CAST( NULL AS DECIMAL ) ) * + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL COUNT ( * ) + + ( + + CAST ( NULL AS REAL ) ) * + + 28
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT DISTINCT CAST( - 53 AS SIGNED ) * 91 + + 46
----
-4777

skipif mysql # not compatible
query I rowsort label-9612
SELECT DISTINCT CAST ( - 53 AS INTEGER ) * 91 + + 46
----
-4777

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT NULLIF ( - 26, + COALESCE ( - - 12, - COUNT( * ) * - 85 + + 33 * - 6 + + + 32 ) ) - + 75 AS col2
----
-101

skipif mysql # not compatible
query I rowsort label-9613
SELECT NULLIF ( - 26, + COALESCE ( - - 12, - COUNT ( * ) * - 85 + + 33 * - 6 + + + 32 ) ) - + 75 AS col2
----
-101

query II rowsort
SELECT 71, - 79 col0
----
71
-79

query I rowsort
SELECT 31 + 35 * + - 55 col0
----
-1894

query I rowsort
SELECT DISTINCT 63 * - 49
----
-3087

onlyif mysql # DIV for integer division: 
query I rowsort label-9617
SELECT DISTINCT 75 DIV 14 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-9617
SELECT DISTINCT 75 / 14 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT 75 + - 67 + + COUNT( * ) + + 54 + + ( + 63 )
----
126

skipif mysql # not compatible
query I rowsort label-9618
SELECT 75 + - 67 + + COUNT ( * ) + + 54 + + ( + 63 )
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9619
SELECT MAX( - + 32 ) + - - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9619
SELECT MAX ( - + 32 ) + - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - + NULLIF ( 80, - 56 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT 30 * 15 + - COALESCE ( - ( - 36 ), + - 95 * + COALESCE ( 40, + - COUNT( * ) ) )
----
414

skipif mysql # not compatible
query I rowsort label-9621
SELECT 30 * 15 + - COALESCE ( - ( - 36 ), + - 95 * + COALESCE ( 40, + - COUNT ( * ) ) )
----
414

onlyif mysql # DIV for integer division: 
query III rowsort label-9622
SELECT - - 61, 11 AS col0, ( - 62 ) + - - 37 DIV + 27 AS col2
----
61
11
-61

skipif mysql # not compatible
query III rowsort label-9622
SELECT - - 61, 11 AS col0, ( - 62 ) + - - 37 / + 27 AS col2
----
61
11
-61

query I rowsort
SELECT 9 * - 45 - 27
----
-432

query II rowsort
SELECT DISTINCT - 68 AS col2, 68 * + - 93
----
-68
-6324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9625
SELECT ALL + 23 + + 0 * - 38 - + 86 - + CASE 25 WHEN - 36 * 53 THEN NULL WHEN - 29 * + - 58 - + + NULLIF ( + 61, CAST( CAST( 51 AS SIGNED ) AS SIGNED ) ) THEN + - COUNT( * ) ELSE NULL END / ( 58 ) * - 45 + + CAST( NULL AS SIGNED ) + 92 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL + 23 + + 0 * - 38 - + 86 - + CASE 25 WHEN - 36 * 53 THEN NULL WHEN - 29 * + - 58 - + + NULLIF ( + 61, CAST ( CAST ( 51 AS INTEGER ) AS INTEGER ) ) THEN + - COUNT ( * ) ELSE NULL END / ( 58 ) * - 45 + + CAST ( NULL AS INTEGER ) + 92 col0
----
NULL

query I rowsort
SELECT - 1 + - 29 AS col2
----
-30

query I rowsort
SELECT ALL + 12 + + 49 AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9628
SELECT DISTINCT - 21 * + 26 + COUNT( * ) + + 88 DIV - - 47 AS col1
----
-544

skipif mysql # not compatible
query I rowsort label-9628
SELECT DISTINCT - 21 * + 26 + COUNT ( * ) + + 88 / - - 47 AS col1
----
-544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9629
SELECT ALL - + 3 * - NULLIF ( + CAST( - - 67 AS SIGNED ), - 70 ) + + + 50
----
251

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL - + 3 * - NULLIF ( + CAST ( - - 67 AS INTEGER ), - 70 ) + + + 50
----
251

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9630
SELECT COUNT( * ) + - 25 DIV + COUNT( * ) + + 31 * + ( + 2 ) DIV + + 70 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-9630
SELECT COUNT ( * ) + - 25 / + COUNT ( * ) + + 31 * + ( + 2 ) / + + 70 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT ALL - ( - 47 ) * 0 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL - ( - 47 ) * 0 + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9632
SELECT - + 54 * - 31 + NULLIF ( - 96, - 55 ) + + ( - + COUNT( * ) ) DIV ( 29 ) AS col2
----
1578

skipif mysql # not compatible
query I rowsort label-9632
SELECT - + 54 * - 31 + NULLIF ( - 96, - 55 ) + + ( - + COUNT ( * ) ) / ( 29 ) AS col2
----
1578

query I rowsort
SELECT ALL - ( 6 ) * - 44 AS col0
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9634
SELECT ALL + 83 * - CAST( NULL AS SIGNED ) + - - CAST( + COALESCE ( 13, + CASE 46 WHEN + - 59 + + - 74 THEN NULL WHEN 74 THEN NULL WHEN - 18 THEN + 78 - - 15 ELSE - ( - COUNT( - ( 39 ) ) ) / + ( + + 75 ) END ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL + 83 * - CAST ( NULL AS INTEGER ) + - - CAST ( + COALESCE ( 13, + CASE 46 WHEN + - 59 + + - 74 THEN NULL WHEN 74 THEN NULL WHEN - 18 THEN + 78 - - 15 ELSE - ( - COUNT ( - ( 39 ) ) ) / + ( + + 75 ) END ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT DISTINCT - MIN( 86 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT - MIN ( 86 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT 60 + COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-9636
SELECT 60 + COUNT ( * ) AS col2
----
61

query I rowsort
SELECT 31 * + - 80
----
-2480

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT 66 * - - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-9638
SELECT 66 * - - COUNT ( * )
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9639
SELECT 41 * 84 * COALESCE ( - MIN( CAST( - 55 AS SIGNED ) ), 40 ) * + 20
----
3788400

skipif mysql # not compatible
query I rowsort label-9639
SELECT 41 * 84 * COALESCE ( - MIN ( CAST ( - 55 AS INTEGER ) ), 40 ) * + 20
----
3788400

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT + 59 * + 44 + - - SUM( + 7 ) * + - 19 * - - 36 AS col0
----
-2192

skipif mysql # not compatible
query I rowsort label-9640
SELECT + 59 * + 44 + - - SUM ( + 7 ) * + - 19 * - - 36 AS col0
----
-2192

query I rowsort
SELECT ALL 29 * + 44 * - 66 * 70
----
-5895120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9642
SELECT ALL + COUNT( DISTINCT - - 76 ) DIV 23 * + SUM( - ( - 63 ) ) + + - 90 + - 80 DIV 86 * - 73 - + 59 + + - COUNT( DISTINCT + 1 ) AS col0
----
-150

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL + COUNT ( DISTINCT - - 76 ) / 23 * + SUM ( - ( - 63 ) ) + + - 90 + - 80 / 86 * - 73 - + 59 + + - COUNT ( DISTINCT + 1 ) AS col0
----
-150

query I rowsort
SELECT - 11 * + 94 col2
----
-1034

query I rowsort
SELECT DISTINCT + COALESCE ( + 7, + 83, - 12 )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9645
SELECT ALL - 3 - COUNT( * ) AS col2, + 39
----
-4
39

skipif mysql # not compatible
query II rowsort label-9645
SELECT ALL - 3 - COUNT ( * ) AS col2, + 39
----
-4
39

query I rowsort
SELECT + 80 * 83
----
6640

query I rowsort
SELECT - 92 + 10 * 48
----
388

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9648
SELECT + - CAST( - - COUNT( * ) AS SIGNED ) + - 17 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-9648
SELECT + - CAST ( - - COUNT ( * ) AS INTEGER ) + - 17 AS col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9649
SELECT + + MAX( + CAST( NULL AS SIGNED ) ) * + COUNT( + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9649
SELECT + + MAX ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( + 44 )
----
NULL

query II rowsort
SELECT + + 83 + - 93 AS col2, + 59 + - 25 * 97 + + - 16 * - ( - + 32 ) AS col2
----
-10
-2878

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT - NULLIF ( - - COUNT( * ), + + COUNT( * ) * + + MAX( DISTINCT + ( + - 81 ) ) + - 44 * 93 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9651
SELECT - NULLIF ( - - COUNT ( * ), + + COUNT ( * ) * + + MAX ( DISTINCT + ( + - 81 ) ) + - 44 * 93 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9652
SELECT ALL + 8 + - CAST( NULL AS SIGNED ) + - + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL + 8 + - CAST ( NULL AS INTEGER ) + - + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT DISTINCT + COUNT( ALL 95 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT + COUNT ( ALL 95 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL - - 26 + + 8 + + 16 + 26 - - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL - - 26 + + 8 + + 16 + 26 - - COUNT ( * )
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9655
SELECT DISTINCT - 25 + - - 4 AS col2, - CASE - - CASE - + 45 WHEN 20 THEN - 35 ELSE NULL END WHEN - - 55 * - ( + COUNT( * ) ) + - + MAX( ALL - - 32 ) + + 3 / + + 30 + - 78 THEN NULL WHEN ( + 72 ) / - COUNT( DISTINCT 76 ) + - 78 THEN + 19 ELSE - 95 + - 35 * + 76 + + 93 END + + 85 AS col2
----
-21
2747

skipif mysql # not compatible
query II rowsort label-9655
SELECT DISTINCT - 25 + - - 4 AS col2, - CASE - - CASE - + 45 WHEN 20 THEN - 35 ELSE NULL END WHEN - - 55 * - ( + COUNT ( * ) ) + - + MAX ( ALL - - 32 ) + + 3 / + + 30 + - 78 THEN NULL WHEN ( + 72 ) / - COUNT ( DISTINCT 76 ) + - 78 THEN + 19 ELSE - 95 + - 35 * + 76 + + 93 END + + 85 AS col2
----
-21
2747

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9656
SELECT ALL + CAST( + + 12 AS SIGNED ) + + ( - 6 ) + + - 6 * 41 + + - 13 + + 70 AS col2
----
-183

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL + CAST ( + + 12 AS INTEGER ) + + ( - 6 ) + + - 6 * 41 + + - 13 + + 70 AS col2
----
-183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9657
SELECT DISTINCT 86 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT 86 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9658
SELECT MIN( DISTINCT - 30 ) AS col2, 39, 91 * CASE MAX( ALL 81 ) WHEN + COALESCE ( - 2, - + 74 - + 42 + - 65 + NULLIF ( + COUNT( * ), - 43 ) * - + COUNT( * ) - + + COUNT( * ) / - 49 * + 91 ) THEN NULL ELSE + ( - + 18 ) END AS col1
----
-30
39
-1638

skipif mysql # not compatible
query III rowsort label-9658
SELECT MIN ( DISTINCT - 30 ) AS col2, 39, 91 * CASE MAX ( ALL 81 ) WHEN + COALESCE ( - 2, - + 74 - + 42 + - 65 + NULLIF ( + COUNT ( * ), - 43 ) * - + COUNT ( * ) - + + COUNT ( * ) / - 49 * + 91 ) THEN NULL ELSE + ( - + 18 ) END AS col1
----
-30
39
-1638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9659
SELECT ALL - COUNT( 6 ) DIV + + 84 + - 3 + + 34 + + 55 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL - COUNT ( 6 ) / + + 84 + - 3 + + 34 + + 55 AS col2
----
86

query I rowsort
SELECT - 77 * - - 60 AS col2
----
-4620

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT ALL - 96 * + - COUNT( * ) * - 19
----
-1824

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL - 96 * + - COUNT ( * ) * - 19
----
-1824

onlyif mysql # aggregate syntax: 
query II rowsort label-9662
SELECT + 85 AS col1, COUNT( * ) AS col1
----
85
1

skipif mysql # not compatible
query II rowsort label-9662
SELECT + 85 AS col1, COUNT ( * ) AS col1
----
85
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT ALL - 6 * - CAST( - ( - 79 ) AS SIGNED )
----
474

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL - 6 * - CAST ( - ( - 79 ) AS INTEGER )
----
474

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT ALL 99 * - 47 - + COUNT( 18 ) * 56
----
-4709

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL 99 * - 47 - + COUNT ( 18 ) * 56
----
-4709

query I rowsort
SELECT ALL + NULLIF ( 83, + AVG ( DISTINCT + 93 ) ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-9666
SELECT ALL + 40 AS col0, - MAX( - - 88 ) AS col2
----
40
-88

skipif mysql # not compatible
query II rowsort label-9666
SELECT ALL + 40 AS col0, - MAX ( - - 88 ) AS col2
----
40
-88

query I rowsort
SELECT - 87 - - 53 col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT NULLIF ( 54, + 21 * + MAX( 24 ) )
----
54

skipif mysql # not compatible
query I rowsort label-9668
SELECT NULLIF ( 54, + 21 * + MAX ( 24 ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT + 29 * - 5 - + COUNT( * ) - 47 * - 2 + 5
----
-47

skipif mysql # not compatible
query I rowsort label-9669
SELECT + 29 * - 5 - + COUNT ( * ) - 47 * - 2 + 5
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT ALL MAX( ALL 76 ) * - + 78
----
-5928

skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL MAX ( ALL 76 ) * - + 78
----
-5928

query I rowsort
SELECT - ( + 27 ) * - 37 AS col1
----
999

query I rowsort
SELECT - 57 * 7 col0
----
-399

onlyif mysql # DIV for integer division: 
query I rowsort label-9673
SELECT DISTINCT + 44 DIV + 22
----
2

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT + 44 / + 22
----
2

query I rowsort
SELECT CASE - - 77 WHEN - + 39 THEN COALESCE ( - - 46, + 75, + 92, + + 70 ) + 62 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9675
SELECT - + 26 * + CAST( NULL AS SIGNED ) + + 12 * - 84 * + - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9675
SELECT - + 26 * + CAST ( NULL AS INTEGER ) + + 12 * - 84 * + - 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ALL - + COUNT( * ) * - 90 + - 33 + 21 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL - + COUNT ( * ) * - 90 + - 33 + 21 AS col2
----
78

query I rowsort
SELECT - 33 * ( + + 21 )
----
-693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9678
SELECT ALL - + CASE 58 WHEN + + 67 / + 20 + - 82 + + COUNT( * ) + - 44 THEN + - NULLIF ( + ( 32 ), + 98 ) + - - 83 * + 53 ELSE NULL END * 79 * - + 84 + - - 45 + - - 91 * + + MAX( ALL - ( + + CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL - + CASE 58 WHEN + + 67 / + 20 + - 82 + + COUNT ( * ) + - 44 THEN + - NULLIF ( + ( 32 ), + 98 ) + - - 83 * + 53 ELSE NULL END * 79 * - + 84 + - - 45 + - - 91 * + + MAX ( ALL - ( + + CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT - SUM( DISTINCT 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-9679
SELECT - SUM ( DISTINCT 1 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9680
SELECT DISTINCT 82 * 44 + - COUNT( ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
3608

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT 82 * 44 + - COUNT ( ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
3608

query I rowsort
SELECT ALL - 87 * - 37
----
3219

query I rowsort
SELECT + - 76 * 99 + - 66 * 23 + - - 31
----
-9011

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9683
SELECT - + 90 + COUNT( * ) DIV + 49, - 4 * - - 36 AS col2
----
-90
-144

skipif mysql # not compatible
query II rowsort label-9683
SELECT - + 90 + COUNT ( * ) / + 49, - 4 * - - 36 AS col2
----
-90
-144

query I rowsort
SELECT - - 16 + 35 col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT + COUNT( * ) * NULLIF ( COUNT( DISTINCT - 61 ), + - 48 )
----
1

skipif mysql # not compatible
query I rowsort label-9685
SELECT + COUNT ( * ) * NULLIF ( COUNT ( DISTINCT - 61 ), + - 48 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT DISTINCT + COUNT( 99 )
----
1

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT + COUNT ( 99 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT + - ( - NULLIF ( - 92, + + 55 ) ) - 51 * MAX( DISTINCT 64 ) - - 77 + + CASE AVG ( DISTINCT + + 38 ) WHEN - 10 / + 33 THEN NULL WHEN + + 16 THEN NULL WHEN COUNT( * ) * + 74 + + CASE - NULLIF ( - 8, - NULLIF ( - - 1, + ( - 97 ) * + - 13 + 21 - + - 78 ) ) WHEN - 41 THEN - 10 ELSE NULL END * 73 THEN COALESCE ( 38, 11 / 52 + 89, - 45 ) + 77 END * COUNT( * ) * 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9687
SELECT + - ( - NULLIF ( - 92, + + 55 ) ) - 51 * MAX ( DISTINCT 64 ) - - 77 + + CASE AVG ( DISTINCT + + 38 ) WHEN - 10 / + 33 THEN NULL WHEN + + 16 THEN NULL WHEN COUNT ( * ) * + 74 + + CASE - NULLIF ( - 8, - NULLIF ( - - 1, + ( - 97 ) * + - 13 + 21 - + - 78 ) ) WHEN - 41 THEN - 10 ELSE NULL END * 73 THEN COALESCE ( 38, 11 / 52 + 89, - 45 ) + 77 END * COUNT ( * ) * 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT + + 0 + 60 + + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-9688
SELECT + + 0 + 60 + + COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT + 65 + + - MAX( + + 54 )
----
11

skipif mysql # not compatible
query I rowsort label-9689
SELECT + 65 + + - MAX ( + + 54 )
----
11

query I rowsort
SELECT + ( 30 ) * + - 41 - 49 - - 27 col2
----
-1252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9691
SELECT - 95 / COUNT( DISTINCT 10 ) + + + CAST( NULL AS SIGNED ) * + COUNT( 36 ) * - SUM( - + 65 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT - 95 / COUNT ( DISTINCT 10 ) + + + CAST ( NULL AS INTEGER ) * + COUNT ( 36 ) * - SUM ( - + 65 ) AS col2
----
NULL

query I rowsort
SELECT + 8 * + 97 - 32 AS col2
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT MAX( ALL + 93 ) * + 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9693
SELECT MAX ( ALL + 93 ) * + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT + COUNT( ALL + 84 ) * + MAX( - 88 ) + - - COUNT( DISTINCT + - 82 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-9694
SELECT + COUNT ( ALL + 84 ) * + MAX ( - 88 ) + - - COUNT ( DISTINCT + - 82 ) AS col0
----
-87

query I rowsort
SELECT 82 * 65
----
5330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9696
SELECT 85 + + 33 * - CAST( NULL AS SIGNED ) + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-9696
SELECT 85 + + 33 * - CAST ( NULL AS INTEGER ) + 34
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9697
SELECT 95 + + SUM( ( + 18 ) ) AS col2, 15
----
113
15

skipif mysql # not compatible
query II rowsort label-9697
SELECT 95 + + SUM ( ( + 18 ) ) AS col2, 15
----
113
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9698
SELECT + 25 * 48 + + 58 + CASE + COUNT( * ) WHEN MIN( + 33 ) THEN NULL WHEN 1 * - 76 - + 7 * - CAST( + + 40 AS SIGNED ) + - 8 THEN MAX( + 62 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9698
SELECT + 25 * 48 + + 58 + CASE + COUNT ( * ) WHEN MIN ( + 33 ) THEN NULL WHEN 1 * - 76 - + 7 * - CAST ( + + 40 AS INTEGER ) + - 8 THEN MAX ( + 62 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9699
SELECT DISTINCT + MIN( DISTINCT - 67 ) * - ( 5 ), 82 AS col0
----
335
82

skipif mysql # not compatible
query II rowsort label-9699
SELECT DISTINCT + MIN ( DISTINCT - 67 ) * - ( 5 ), 82 AS col0
----
335
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9700
SELECT MAX( ALL 4 ) * - CASE + - 96 WHEN + - CASE + 80 WHEN + 89 + - + ( - COUNT( * ) ) + - + 33 / COUNT( * ) THEN - 27 - - + COUNT( * ) ELSE NULL END THEN + + MIN( - 38 ) + - + 69 * - 15 END / - CASE + ( - CAST( NULL AS SIGNED ) ) WHEN + - 79 * - AVG ( + 38 ) THEN NULL WHEN 84 * + MIN( - 3 ) * + 93 / + ( + ( 6 ) ) THEN NULL WHEN 58 THEN + MAX( ALL + 8 ) + 32 END + COUNT( * ) * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9700
SELECT MAX ( ALL 4 ) * - CASE + - 96 WHEN + - CASE + 80 WHEN + 89 + - + ( - COUNT ( * ) ) + - + 33 / COUNT ( * ) THEN - 27 - - + COUNT ( * ) ELSE NULL END THEN + + MIN ( - 38 ) + - + 69 * - 15 END / - CASE + ( - CAST ( NULL AS INTEGER ) ) WHEN + - 79 * - AVG ( + 38 ) THEN NULL WHEN 84 * + MIN ( - 3 ) * + 93 / + ( + ( 6 ) ) THEN NULL WHEN 58 THEN + MAX ( ALL + 8 ) + 32 END + COUNT ( * ) * - 42
----
NULL

query II rowsort
SELECT ( 67 ) * - - 27 + - - 55, 32 AS col0
----
1864
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT ALL + + COUNT( * ) + - COUNT( * ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL + + COUNT ( * ) + - COUNT ( * ) + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9703
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9704
SELECT 46 + - COUNT( * ) AS col1, - 75 * 0
----
45
0

skipif mysql # not compatible
query II rowsort label-9704
SELECT 46 + - COUNT ( * ) AS col1, - 75 * 0
----
45
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT - COUNT( * ) * + 91
----
-91

skipif mysql # not compatible
query I rowsort label-9705
SELECT - COUNT ( * ) * + 91
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT - + 35 * - 59 * CASE - 70 WHEN COALESCE ( COUNT( * ), + 4 ) THEN - 51 - - 30 END + 1 + 14 + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-9706
SELECT - + 35 * - 59 * CASE - 70 WHEN COALESCE ( COUNT ( * ), + 4 ) THEN - 51 - - 30 END + 1 + 14 + - 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT ALL - COUNT( * ) + - 56 * 3
----
-169

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL - COUNT ( * ) + - 56 * 3
----
-169

query I rowsort
SELECT 25 + - - 27 + - 72 AS col2
----
-20

query I rowsort
SELECT 15 + - - NULLIF ( + 80, + 77 ) * 48
----
3855

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT DISTINCT + COUNT( * ) + + 96 * 88 * SUM( 65 ) AS col0
----
549121

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT + COUNT ( * ) + + 96 * 88 * SUM ( 65 ) AS col0
----
549121

query I rowsort
SELECT 64 * - 34 * - - 71 - + 6
----
-154502

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT MIN( DISTINCT + 80 ) + 0
----
80

skipif mysql # not compatible
query I rowsort label-9712
SELECT MIN ( DISTINCT + 80 ) + 0
----
80

query I rowsort
SELECT DISTINCT - - 63 * - + 7 * + - 85 AS col2
----
37485

query I rowsort
SELECT DISTINCT + 82 * + 39 + 93
----
3291

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT SUM( ALL - + 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-9715
SELECT SUM ( ALL - + 99 )
----
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-9716
SELECT 76 + 0 * + + 65 * - 74 + - - 41 * - 48 AS col1, + 76 DIV + - 3
----
-1892
-25

skipif mysql # not compatible
query II rowsort label-9716
SELECT 76 + 0 * + + 65 * - 74 + - - 41 * - 48 AS col1, + 76 / + - 3
----
-1892
-25

query I rowsort
SELECT ( - + 41 ) + - - 51
----
10

query I rowsort
SELECT DISTINCT 11 * - + 37 AS col0
----
-407

query I rowsort
SELECT ALL 46 + + 54 - + 53
----
47

query I rowsort
SELECT + 21 * - 38 * + 91 - - + 36 - + 29 AS col1
----
-72611

query I rowsort
SELECT DISTINCT 69 * - + 94 * - 35 AS col2
----
227010

query I rowsort
SELECT ALL CASE 81 WHEN - 50 THEN NULL WHEN + - 71 * 12 + 34 * + 91 * + 57 * + 33 / 63 THEN - + 38 END + - 67 + + - 61 - - 6 AS col2
----
NULL

query II rowsort
SELECT ALL - 36, 24 AS col1
----
-36
24

query I rowsort
SELECT 30 - + 91
----
-61

query I rowsort
SELECT 94 * - 73 AS col1
----
-6862

onlyif mysql # DIV for integer division: 
query I rowsort label-9726
SELECT 9 + - 85 DIV 72
----
8

skipif mysql # not compatible
query I rowsort label-9726
SELECT 9 + - 85 / 72
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9727
SELECT SUM( 28 ) * CAST( + 13 AS SIGNED ) + + + 41 * 90 AS col2
----
4054

skipif mysql # not compatible
query I rowsort label-9727
SELECT SUM ( 28 ) * CAST ( + 13 AS INTEGER ) + + + 41 * 90 AS col2
----
4054

query I rowsort
SELECT ALL + 5 * - 5 - 5 + + - 93
----
-123

query I rowsort
SELECT ALL 92 - - 0 col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT DISTINCT SUM( + ( + + 83 ) ) * - 79 col2
----
-6557

skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT SUM ( + ( + + 83 ) ) * - 79 col2
----
-6557

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT ALL MAX( ALL + - 87 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL MAX ( ALL + - 87 ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT 79 * 26 + - SUM( ALL - + 68 )
----
2122

skipif mysql # not compatible
query I rowsort label-9732
SELECT 79 * 26 + - SUM ( ALL - + 68 )
----
2122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9733
SELECT ALL - 44 * + 32 * - 17 / 5 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL - 44 * + 32 * - 17 / 5 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 43 + - 64 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT 2 * + - MIN( - + 94 ) * + - 55 AS col1
----
-10340

skipif mysql # not compatible
query I rowsort label-9735
SELECT 2 * + - MIN ( - + 94 ) * + - 55 AS col1
----
-10340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9736
SELECT MAX( DISTINCT - 65 ) + ( - 0 ) * - ( + 19 ), CAST( NULL AS SIGNED ) / + 97 * - 66 / + 73 AS col2
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-9736
SELECT MAX ( DISTINCT - 65 ) + ( - 0 ) * - ( + 19 ), CAST ( NULL AS INTEGER ) / + 97 * - 66 / + 73 AS col2
----
-65
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9737
SELECT DISTINCT - + COUNT( * ) DIV 3
----
0

skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT - + COUNT ( * ) / 3
----
0

query I rowsort
SELECT + 34 + + 3 * + + 67 + - 78
----
157

query I rowsort
SELECT ALL - 47 * + 17 AS col0
----
-799

query I rowsort
SELECT - 18 + + 55 AS col0
----
37

query I rowsort
SELECT - 24 * + + 77 AS col1
----
-1848

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9742
SELECT DISTINCT 79 AS col1, CAST( NULL AS SIGNED ) * - 0 AS col2
----
79
NULL

skipif mysql # not compatible
query II rowsort label-9742
SELECT DISTINCT 79 AS col1, CAST ( NULL AS INTEGER ) * - 0 AS col2
----
79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL + 75 * - - COUNT( * ) col1
----
75

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL + 75 * - - COUNT ( * ) col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9744
SELECT - NULLIF ( - 73, + COUNT( * ) ) - - 52 + + - ( + - 19 ) * - + 79, + 89 * + 72 AS col2
----
-1376
6408

skipif mysql # not compatible
query II rowsort label-9744
SELECT - NULLIF ( - 73, + COUNT ( * ) ) - - 52 + + - ( + - 19 ) * - + 79, + 89 * + 72 AS col2
----
-1376
6408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9745
SELECT ALL - 47 * + - COUNT( * ) * + 79 * + 40, NULLIF ( + 3, - 98 + CAST( - 7 AS SIGNED ) ) AS col0
----
148520
3

skipif mysql # not compatible
query II rowsort label-9745
SELECT ALL - 47 * + - COUNT ( * ) * + 79 * + 40, NULLIF ( + 3, - 98 + CAST ( - 7 AS INTEGER ) ) AS col0
----
148520
3

query I rowsort
SELECT DISTINCT - 30 + + - 65
----
-95

query II rowsort
SELECT ALL + 75 + + 68 + - 8 + - 87 * - 25 * 42 * 0 AS col0, 41 AS col2
----
135
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9748
SELECT - CASE + CAST( 26 AS SIGNED ) WHEN - 92 + - 73 THEN 85 END + MIN( - 16 ) + - 19 * - - 59 * + + 97 + - + 76, - 20 AS col0
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-9748
SELECT - CASE + CAST ( 26 AS INTEGER ) WHEN - 92 + - 73 THEN 85 END + MIN ( - 16 ) + - 19 * - - 59 * + + 97 + - + 76, - 20 AS col0
----
NULL
-20

query II rowsort
SELECT 46 col0, 4 + + 89 AS col1
----
46
93

query II rowsort
SELECT 49, 19 AS col2
----
49
19

query I rowsort
SELECT - 28 + - + 31 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT 76 * + 53 - + 88 + 52 * - 71 * CASE - 1 WHEN - 46 THEN - 73 * COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT 76 * + 53 - + 88 + 52 * - 71 * CASE - 1 WHEN - 46 THEN - 73 * COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT + 55 * + 73 + - 46 AS col1
----
3969

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT ALL 67 * 39 + - COUNT( * ) + + + ( + - 88 ) * 94
----
-5660

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL 67 * 39 + - COUNT ( * ) + + + ( + - 88 ) * 94
----
-5660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9755
SELECT COALESCE ( + CAST( + + COALESCE ( - + 38, + AVG ( DISTINCT + 53 ) ) AS SIGNED ), 78 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-9755
SELECT COALESCE ( + CAST ( + + COALESCE ( - + 38, + AVG ( DISTINCT + 53 ) ) AS INTEGER ), 78 ) AS col0
----
-38

query II rowsort
SELECT ALL + 99 * - 2 + - 48 * - 56, + 80 AS col1
----
2490
80

query I rowsort
SELECT 76 * - + 89 * - 59 + - 23 AS col0
----
399053

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT DISTINCT 48 * - 87 * COUNT( * ) + - 55 AS col0
----
-4231

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT 48 * - 87 * COUNT ( * ) + - 55 AS col0
----
-4231

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT DISTINCT + + NULLIF ( + 90, + SUM( DISTINCT + 96 ) ) * + 26 + COUNT( * ) AS col0
----
2341

skipif mysql # not compatible
query I rowsort label-9759
SELECT DISTINCT + + NULLIF ( + 90, + SUM ( DISTINCT + 96 ) ) * + 26 + COUNT ( * ) AS col0
----
2341

query I rowsort
SELECT - 66 * - 72
----
4752

query II rowsort
SELECT + 84 AS col0, 42
----
84
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9762
SELECT + 93 DIV - ( + - 98 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9762
SELECT + 93 / - ( + - 98 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT + + 28 * SUM( - - 3 )
----
84

skipif mysql # not compatible
query I rowsort label-9763
SELECT + + 28 * SUM ( - - 3 )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-9764
SELECT DISTINCT + - COUNT( * ), 10 AS col0
----
-1
10

skipif mysql # not compatible
query II rowsort label-9764
SELECT DISTINCT + - COUNT ( * ), 10 AS col0
----
-1
10

query I rowsort
SELECT DISTINCT - 6 * + + 87 + + 8 + NULLIF ( + 88, 62 ) * - 21 + 18 * - 7
----
-2488

onlyif mysql # DIV for integer division: 
query I rowsort label-9766
SELECT + + 79 DIV 57
----
1

skipif mysql # not compatible
query I rowsort label-9766
SELECT + + 79 / 57
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9767
SELECT ALL + - CAST( - + 45 AS SIGNED ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL + - CAST ( - + 45 AS INTEGER ) AS col2
----
45

query II rowsort
SELECT DISTINCT + - 8 AS col1, 83
----
-8
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT ALL + MAX( ALL 39 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL + MAX ( ALL 39 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query III rowsort label-9770
SELECT + COUNT( * ) AS col0, - ( + - 55 ) * 52 AS col1, 86 AS col2
----
1
2860
86

skipif mysql # not compatible
query III rowsort label-9770
SELECT + COUNT ( * ) AS col0, - ( + - 55 ) * 52 AS col1, 86 AS col2
----
1
2860
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9771
SELECT + COUNT( * ) - 42 - 50 + ( - - 15 ) DIV + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-9771
SELECT + COUNT ( * ) - 42 - 50 + ( - - 15 ) / + COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT - + 38 * COUNT( - + 21 ) - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-9772
SELECT - + 38 * COUNT ( - + 21 ) - COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT ALL + COUNT( * ) * COUNT( DISTINCT + 47 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL + COUNT ( * ) * COUNT ( DISTINCT + 47 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT - + COUNT( * ) + COUNT( * ) + - 99 + + 37 + + - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-9774
SELECT - + COUNT ( * ) + COUNT ( * ) + - 99 + + 37 + + - COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9775
SELECT - COUNT( * ) col1, 96 + 70 * 94 DIV 85 + ( - 91 ) AS col2
----
-1
82

skipif mysql # not compatible
query II rowsort label-9775
SELECT - COUNT ( * ) col1, 96 + 70 * 94 / 85 + ( - 91 ) AS col2
----
-1
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT + 95 * + 10 * + SUM( + + 44 )
----
41800

skipif mysql # not compatible
query I rowsort label-9776
SELECT + 95 * + 10 * + SUM ( + + 44 )
----
41800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9777
SELECT - CAST( + 67 AS SIGNED ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-9777
SELECT - CAST ( + 67 AS INTEGER ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT - COUNT( - + 10 ) * + 43 col2
----
-43

skipif mysql # not compatible
query I rowsort label-9778
SELECT - COUNT ( - + 10 ) * + 43 col2
----
-43

query I rowsort
SELECT ALL 70 + 13
----
83

query I rowsort
SELECT ALL - 16 + + 64 + + - 22 + + 21
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9781
SELECT - 34 + 56 * - - 54 * - 56 + - ( - MIN( + 76 ) ) AS col2, - CAST( NULL AS SIGNED ) AS col0
----
-169302
NULL

skipif mysql # not compatible
query II rowsort label-9781
SELECT - 34 + 56 * - - 54 * - 56 + - ( - MIN ( + 76 ) ) AS col2, - CAST ( NULL AS INTEGER ) AS col0
----
-169302
NULL

query I rowsort
SELECT - 5 * + 40 col0
----
-200

onlyif mysql # DIV for integer division: 
query II rowsort label-9783
SELECT ALL 87 + - 28, + 38 DIV + 13 AS col2
----
59
2

skipif mysql # not compatible
query II rowsort label-9783
SELECT ALL 87 + - 28, + 38 / + 13 AS col2
----
59
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT - 98 * + COUNT( * ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-9784
SELECT - 98 * + COUNT ( * ) AS col1
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9785
SELECT ALL CAST( + 49 AS SIGNED ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL CAST ( + 49 AS INTEGER ) AS col0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-9786
SELECT DISTINCT 75 DIV 95 + 40 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT 75 / 95 + 40 AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9787
SELECT ALL COUNT( * ) DIV + 83 + COALESCE ( - 52, 65 )
----
-52

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL COUNT ( * ) / + 83 + COALESCE ( - 52, 65 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT - - COUNT( * ) - + COUNT( * ) - - + 47 - + 46 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9788
SELECT - - COUNT ( * ) - + COUNT ( * ) - - + 47 - + 46 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT - + COUNT( * ) * + 22
----
-22

skipif mysql # not compatible
query I rowsort label-9789
SELECT - + COUNT ( * ) * + 22
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-9790
SELECT ALL + ( 90 ) AS col1, - SUM( + + 39 )
----
90
-39

skipif mysql # not compatible
query II rowsort label-9790
SELECT ALL + ( 90 ) AS col1, - SUM ( + + 39 )
----
90
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT - + ( + 76 ) * 49 + - - 6 - SUM( + 12 ) * + 38 + 87 AS col0
----
-4087

skipif mysql # not compatible
query I rowsort label-9791
SELECT - + ( + 76 ) * 49 + - - 6 - SUM ( + 12 ) * + 38 + 87 AS col0
----
-4087

query I rowsort
SELECT - 13 - - 23
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT DISTINCT + - MIN( 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT + - MIN ( 50 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT + - COUNT( * ) * - 89 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-9794
SELECT + - COUNT ( * ) * - 89 AS col1
----
89

query I rowsort
SELECT 58 * - 82 + 31 * - - 5 AS col0
----
-4601

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT + COALESCE ( - COUNT( * ), + - 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-9796
SELECT + COALESCE ( - COUNT ( * ), + - 87 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9797
SELECT + - COALESCE ( + 14, + 30 * 74 * + + CAST( - + ( - 92 ) AS SIGNED ) ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-9797
SELECT + - COALESCE ( + 14, + 30 * 74 * + + CAST ( - + ( - 92 ) AS INTEGER ) ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT 72 * 27 + - 23 + - COUNT( * ) + + 27 * - - 76 * 70 col1
----
145560

skipif mysql # not compatible
query I rowsort label-9798
SELECT 72 * 27 + - 23 + - COUNT ( * ) + + 27 * - - 76 * 70 col1
----
145560

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT - 72 * + - COUNT( * ) + - 31 * - 40 - COUNT( * ) AS col2
----
1311

skipif mysql # not compatible
query I rowsort label-9799
SELECT - 72 * + - COUNT ( * ) + - 31 * - 40 - COUNT ( * ) AS col2
----
1311

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9800
SELECT COALESCE ( + 41, 76 - + 41 DIV - 40 * + MIN( + 33 ) * + 5 + + + 66 ) - - 21 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9800
SELECT COALESCE ( + 41, 76 - + 41 / - 40 * + MIN ( + 33 ) * + 5 + + + 66 ) - - 21 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT DISTINCT - - 39 + ( + COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-9801
SELECT DISTINCT - - 39 + ( + COUNT ( * ) )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9802
SELECT DISTINCT 24 DIV 63 * - COUNT( * ) AS col0, 85 + + - 71 * - + CAST( NULL AS SIGNED ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9802
SELECT DISTINCT 24 / 63 * - COUNT ( * ) AS col0, 85 + + - 71 * - + CAST ( NULL AS INTEGER ) AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT ALL 83 + MIN( 6 ) - + - COUNT( * ) + + COUNT( * ) * - 32 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL 83 + MIN ( 6 ) - + - COUNT ( * ) + + COUNT ( * ) * - 32 AS col2
----
58

query I rowsort
SELECT 66 + - - 73 AS col1
----
139

query I rowsort
SELECT ( - 59 ) + + 37
----
-22

query I rowsort
SELECT ALL 17 + - + 32 - - - 11 * + 18 * - 85
----
16815

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9807
SELECT DISTINCT 28 * + CASE CAST( - ( + + 50 ) AS SIGNED ) WHEN - + 3 + COALESCE ( - COALESCE ( + - 64, 67 ), - 95, - - 91 ) THEN NULL ELSE + - 44 END AS col2, - COALESCE ( - 44, CAST( NULL AS SIGNED ) * 19 ) AS col1
----
-1232
44

skipif mysql # not compatible
query II rowsort label-9807
SELECT DISTINCT 28 * + CASE CAST ( - ( + + 50 ) AS INTEGER ) WHEN - + 3 + COALESCE ( - COALESCE ( + - 64, 67 ), - 95, - - 91 ) THEN NULL ELSE + - 44 END AS col2, - COALESCE ( - 44, CAST ( NULL AS INTEGER ) * 19 ) AS col1
----
-1232
44

query I rowsort
SELECT DISTINCT 46 + + 82 AS col0
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-9809
SELECT DISTINCT 5 AS col2, COUNT( * ) * + CASE - 45 WHEN - + 81 THEN NULL ELSE + - 92 END col2
----
5
-92

skipif mysql # not compatible
query II rowsort label-9809
SELECT DISTINCT 5 AS col2, COUNT ( * ) * + CASE - 45 WHEN - + 81 THEN NULL ELSE + - 92 END col2
----
5
-92

query II rowsort
SELECT ALL 56 col1, 40 AS col0
----
56
40

query I rowsort
SELECT ALL 81 - + + ( + 47 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT 20 + + 40 * 68 + COUNT( + 11 )
----
2741

skipif mysql # not compatible
query I rowsort label-9812
SELECT 20 + + 40 * 68 + COUNT ( + 11 )
----
2741

query I rowsort
SELECT 91 + - + ( + 98 ) AS col0
----
-7

query II rowsort
SELECT DISTINCT 16 AS col0, - 71 AS col0
----
16
-71

query II rowsort
SELECT ALL 67 AS col2, + 98 AS col2
----
67
98

onlyif mysql # aggregate syntax: 
query II rowsort label-9816
SELECT NULLIF ( - - 84, + NULLIF ( + 10, - 79 * + 74 + 7 + 2 * + + 20 ) - - 66 ) + + 50 + - 97 + - COUNT( * ) AS col0, 1 AS col2
----
36
1

skipif mysql # not compatible
query II rowsort label-9816
SELECT NULLIF ( - - 84, + NULLIF ( + 10, - 79 * + 74 + 7 + 2 * + + 20 ) - - 66 ) + + 50 + - 97 + - COUNT ( * ) AS col0, 1 AS col2
----
36
1

query I rowsort
SELECT 36 * 4 AS col2
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT - 62 + + - CAST( NULL AS SIGNED ) + + ( 73 ) - - 20 * - - 67 * + - 42 * 37 * - 14 + + + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT - 62 + + - CAST ( NULL AS INTEGER ) + + ( 73 ) - - 20 * - - 67 * + - 42 * 37 * - 14 + + + 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT + COUNT( DISTINCT + 91 )
----
1

skipif mysql # not compatible
query I rowsort label-9819
SELECT + COUNT ( DISTINCT + 91 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9820
SELECT DISTINCT - NULLIF ( - - 4, ( - 61 ) / + 11 + 2 + 90 * COUNT( * ) ) AS col1, 7
----
-4
7

skipif mysql # not compatible
query II rowsort label-9820
SELECT DISTINCT - NULLIF ( - - 4, ( - 61 ) / + 11 + 2 + 90 * COUNT ( * ) ) AS col1, 7
----
-4
7

query I rowsort
SELECT ALL + 17 * - 3 AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9822
SELECT 38 DIV - - 76 * + COUNT( * ) * + 58
----
0

skipif mysql # not compatible
query I rowsort label-9822
SELECT 38 / - - 76 * + COUNT ( * ) * + 58
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9823
SELECT ALL - NULLIF ( 60, - COUNT( * ) + + 38 ) DIV + + 64
----
0

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL - NULLIF ( 60, - COUNT ( * ) + + 38 ) / + + 64
----
0

query II rowsort
SELECT ALL - 97 AS col2, + 37 * 5
----
-97
185

onlyif mysql # DIV for integer division: 
query I rowsort label-9825
SELECT DISTINCT + 90 DIV 10
----
9

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT + 90 / 10
----
9

query I rowsort
SELECT ALL - 26 * + 71
----
-1846

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9827
SELECT - 62 DIV + 41 + COUNT( * ) * 90 + - 90 * - 3
----
359

skipif mysql # not compatible
query I rowsort label-9827
SELECT - 62 / + 41 + COUNT ( * ) * 90 + - 90 * - 3
----
359

query I rowsort
SELECT ALL + ( 76 ) * - 97
----
-7372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9829
SELECT DISTINCT - + CAST( + CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) * COUNT( * ) * MIN( 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-9829
SELECT DISTINCT - + CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) * COUNT ( * ) * MIN ( 69 )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT CASE + + 21 WHEN - + 3 THEN - + 41 ELSE + CAST( NULL AS SIGNED ) END + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9830
SELECT CASE + + 21 WHEN - + 3 THEN - + 41 ELSE + CAST ( NULL AS INTEGER ) END + + 7
----
NULL

query II rowsort
SELECT 88, - 32 AS col1
----
88
-32

query I rowsort
SELECT ALL - 65 * - 90 AS col1
----
5850

query I rowsort
SELECT 95 + 49 * + 13 AS col0
----
732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9834
SELECT + CAST( 76 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-9834
SELECT + CAST ( 76 AS INTEGER )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9835
SELECT - CAST( NULL AS SIGNED ) * ( + 61 ) * + 71 * 91 + + 8 + 69 + - 1 - + 86 * + MAX( ALL - 12 ) * 64 * + 64 - - SUM( DISTINCT - 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9835
SELECT - CAST ( NULL AS INTEGER ) * ( + 61 ) * + 71 * 91 + + 8 + 69 + - 1 - + 86 * + MAX ( ALL - 12 ) * 64 * + 64 - - SUM ( DISTINCT - 89 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9836
SELECT + 74 * - - 74 + + - 38 * COUNT( * ) DIV + 95
----
5476

skipif mysql # not compatible
query I rowsort label-9836
SELECT + 74 * - - 74 + + - 38 * COUNT ( * ) / + 95
----
5476

query I rowsort
SELECT 87 * 45
----
3915

query I rowsort
SELECT ALL - - ( + 48 )
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9839
SELECT ALL - + 61 + + 62 DIV + MIN( ALL - 42 ) col0
----
-62

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL - + 61 + + 62 / + MIN ( ALL - 42 ) col0
----
-62

query II rowsort
SELECT + + 79, 43 + 49 - - + NULLIF ( - - 97, + 93 ) + 90 AS col2
----
79
279

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT ALL + COALESCE ( NULLIF ( + - 7, + 94 + + + COALESCE ( + - 1, - 52, + - 23 ) + - ( + 28 ) / - 31 ), + COUNT( 77 ) ) + + COUNT( * ) col1
----
-6

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL + COALESCE ( NULLIF ( + - 7, + 94 + + + COALESCE ( + - 1, - 52, + - 23 ) + - ( + 28 ) / - 31 ), + COUNT ( 77 ) ) + + COUNT ( * ) col1
----
-6

query I rowsort
SELECT + 36 + + 68 + + + NULLIF ( ( 70 ), + 40 + 39 ) AS col0
----
174

query I rowsort
SELECT ALL + + 49 + + 76 AS col2
----
125

query I rowsort
SELECT ALL - + ( 64 )
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-9845
SELECT DISTINCT + 34 DIV 17 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9845
SELECT DISTINCT + 34 / 17 AS col1
----
2

query I rowsort
SELECT ALL + 16 + - ( - 0 )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT - 37 * - 34 * + 25 * 27 + + 30 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9847
SELECT - 37 * - 34 * + 25 * 27 + + 30 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 41 + - - 80 + - COALESCE ( 28, + 83 ) col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL + 17 * + COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL + 17 * + COUNT ( * ) AS col1
----
17

query I rowsort
SELECT ALL - 53 * + + 13 * + 69
----
-47541

query II rowsort
SELECT DISTINCT + 99 - - + 0 AS col0, 43 AS col1
----
99
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9852
SELECT ( + NULLIF ( + COUNT( * ), - 76 * - 65 + 22 + + 29 * COUNT( * ) - - ( - ( + 62 ) ) + + - CASE + 16 WHEN + - 0 THEN - + 41 * - ( + + 78 ) WHEN + 29 THEN + + 62 * - CAST( - SUM( 87 ) AS SIGNED ) ELSE + 66 - - 22 + COUNT( * ) END ) ) * - 97 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-9852
SELECT ( + NULLIF ( + COUNT ( * ), - 76 * - 65 + 22 + + 29 * COUNT ( * ) - - ( - ( + 62 ) ) + + - CASE + 16 WHEN + - 0 THEN - + 41 * - ( + + 78 ) WHEN + 29 THEN + + 62 * - CAST ( - SUM ( 87 ) AS INTEGER ) ELSE + 66 - - 22 + COUNT ( * ) END ) ) * - 97 AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT DISTINCT COUNT( * ) - 59 * + CASE 3 WHEN + 53 / - 54 * - - 1 THEN + - 37 WHEN - ( - + 89 ) * 34 THEN NULL ELSE - 94 + 76 END * - 87 AS col0
----
-92393

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT COUNT ( * ) - 59 * + CASE 3 WHEN + 53 / - 54 * - - 1 THEN + - 37 WHEN - ( - + 89 ) * 34 THEN NULL ELSE - 94 + 76 END * - 87 AS col0
----
-92393

onlyif mysql # DIV for integer division: 
query I rowsort label-9854
SELECT DISTINCT 99 DIV - - ( + + 6 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT 99 / - - ( + + 6 ) AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9855
SELECT ( - COUNT( * ) ) + - - MIN( ALL + 64 ) + + ( - COUNT( 7 ) ) * - CAST( NULL AS SIGNED ) / + 44 * - + 52 * COUNT( + + 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT ( - COUNT ( * ) ) + - - MIN ( ALL + 64 ) + + ( - COUNT ( 7 ) ) * - CAST ( NULL AS INTEGER ) / + 44 * - + 52 * COUNT ( + + 13 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT NULLIF ( 24, + ( - - 30 ) ) * + + COUNT( * ) * - + 85 * + COUNT( DISTINCT + 18 ) + + 59 AS col0
----
-1981

skipif mysql # not compatible
query I rowsort label-9856
SELECT NULLIF ( 24, + ( - - 30 ) ) * + + COUNT ( * ) * - + 85 * + COUNT ( DISTINCT + 18 ) + + 59 AS col0
----
-1981

query I rowsort
SELECT - ( NULLIF ( 62, + 61 ) )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9858
SELECT ALL - MAX( - + CAST( NULL AS SIGNED ) ) * - + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL - MAX ( - + CAST ( NULL AS INTEGER ) ) * - + 83 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT COUNT( DISTINCT + 47 )
----
1

skipif mysql # not compatible
query I rowsort label-9859
SELECT COUNT ( DISTINCT + 47 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9860
SELECT DISTINCT - COUNT( * ) * - 7 AS col0, 23 col1
----
7
23

skipif mysql # not compatible
query II rowsort label-9860
SELECT DISTINCT - COUNT ( * ) * - 7 AS col0, 23 col1
----
7
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9861
SELECT + 9 * COUNT( * ) * - + 69 + - 77 + + 5 DIV - + 62 * - ( - 3 )
----
-698

skipif mysql # not compatible
query I rowsort label-9861
SELECT + 9 * COUNT ( * ) * - + 69 + - 77 + + 5 / - + 62 * - ( - 3 )
----
-698

query I rowsort
SELECT 32 - 29 + - 1 + + ( - - 15 ) * - 55
----
-823

query II rowsort
SELECT + 62 + + - 45 AS col1, 66
----
17
66

onlyif mysql # aggregate syntax: 
query II rowsort label-9864
SELECT - COUNT( * ) * + 94 + 66 + + ( + 89 ) * 57 - + 70 + SUM( 38 ) AS col2, + COUNT( * ) AS col1
----
5013
1

skipif mysql # not compatible
query II rowsort label-9864
SELECT - COUNT ( * ) * + 94 + 66 + + ( + 89 ) * 57 - + 70 + SUM ( 38 ) AS col2, + COUNT ( * ) AS col1
----
5013
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9865
SELECT ALL - - 16 * - - CAST( 76 AS SIGNED ) + + 98 + - + MAX( + + ( + 81 ) ) DIV - + CASE - 25 WHEN + COUNT( ALL 51 ) THEN NULL ELSE + 53 * - - 8 END
----
1314

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL - - 16 * - - CAST ( 76 AS INTEGER ) + + 98 + - + MAX ( + + ( + 81 ) ) / - + CASE - 25 WHEN + COUNT ( ALL 51 ) THEN NULL ELSE + 53 * - - 8 END
----
1314

query I rowsort
SELECT ALL + + 50 * - + 77 + 98 AS col0
----
-3752

query I rowsort
SELECT DISTINCT - 12 * - - 37 + - - 88 - COALESCE ( 54, + + 61, + CASE 54 WHEN + + 48 THEN - - 4 * - 88 * + 4 ELSE + + 29 END )
----
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ALL - 77 * 2 + 9 + + COUNT( * ) + - - 3 + 2 * 13 * SUM( - ( - 79 ) ) * 99
----
203205

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL - 77 * 2 + 9 + + COUNT ( * ) + - - 3 + 2 * 13 * SUM ( - ( - 79 ) ) * 99
----
203205

onlyif mysql # aggregate syntax: 
query II rowsort label-9869
SELECT DISTINCT + COUNT( ALL + ( + 67 ) ) * COALESCE ( - - 73, - NULLIF ( - NULLIF ( + 61, COUNT( * ) + 8 + - 13 + + 69 * + - 51 ), COUNT( * ) ) ) + + COUNT( * ) AS col1, + 12 AS col1
----
74
12

skipif mysql # not compatible
query II rowsort label-9869
SELECT DISTINCT + COUNT ( ALL + ( + 67 ) ) * COALESCE ( - - 73, - NULLIF ( - NULLIF ( + 61, COUNT ( * ) + 8 + - 13 + + 69 * + - 51 ), COUNT ( * ) ) ) + + COUNT ( * ) AS col1, + 12 AS col1
----
74
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT ALL - 48 * + ( 23 ) * 45 + 60 + + MAX( DISTINCT - 98 ) + + + 6 + + 60 + 41 AS col0
----
-49611

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL - 48 * + ( 23 ) * 45 + 60 + + MAX ( DISTINCT - 98 ) + + + 6 + + 60 + 41 AS col0
----
-49611

query I rowsort
SELECT + 78 * 94
----
7332

query II rowsort
SELECT + COALESCE ( - 67, 15, + 38 + 89 ) AS col0, - 53
----
-67
-53

query I rowsort
SELECT - 35 * 15 * + 73 * + - 80 * - 66
----
-202356000

onlyif mysql # aggregate syntax: 
query II rowsort label-9874
SELECT DISTINCT 53 * 5 * 43 AS col1, - COUNT( * )
----
11395
-1

skipif mysql # not compatible
query II rowsort label-9874
SELECT DISTINCT 53 * 5 * 43 AS col1, - COUNT ( * )
----
11395
-1

query I rowsort
SELECT DISTINCT + 30 - + 3 * 10
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9876
SELECT DISTINCT COALESCE ( - ( 71 ), + 90 DIV + 33, - MIN( 40 ) + - 98 * - COUNT( ALL 40 ) DIV - - 23 + - - 61 - + 17 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT COALESCE ( - ( 71 ), + 90 / + 33, - MIN ( 40 ) + - 98 * - COUNT ( ALL 40 ) / - - 23 + - - 61 - + 17 ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-9877
SELECT DISTINCT + 12 - - MIN( + 15 ) AS col2, + 67
----
27
67

skipif mysql # not compatible
query II rowsort label-9877
SELECT DISTINCT + 12 - - MIN ( + 15 ) AS col2, + 67
----
27
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9878
SELECT - CAST( NULL AS SIGNED ) * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9878
SELECT - CAST ( NULL AS INTEGER ) * 86
----
NULL

query I rowsort
SELECT - 63 + - 44 col2
----
-107

query I rowsort
SELECT - 69 * 6 * 81
----
-33534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9881
SELECT - 40 + ( - COUNT( * ) ) * + COALESCE ( + 17, - CAST( NULL AS SIGNED ) * + NULLIF ( + 80, 49 ) + 52 - + 3 )
----
-57

skipif mysql # not compatible
query I rowsort label-9881
SELECT - 40 + ( - COUNT ( * ) ) * + COALESCE ( + 17, - CAST ( NULL AS INTEGER ) * + NULLIF ( + 80, 49 ) + 52 - + 3 )
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9882
SELECT + 45 - + 73 - - 8 + - - 92 + - + 70 + - 5 DIV - COUNT( * ) col0
----
7

skipif mysql # not compatible
query I rowsort label-9882
SELECT + 45 - + 73 - - 8 + - - 92 + - + 70 + - 5 / - COUNT ( * ) col0
----
7

query I rowsort
SELECT ALL ( 22 ) col0
----
22

query I rowsort
SELECT - 16 + + 49
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT - NULLIF ( + COALESCE ( - 71, 98, - - 16 ), + COUNT( * ) ) col1
----
71

skipif mysql # not compatible
query I rowsort label-9885
SELECT - NULLIF ( + COALESCE ( - 71, 98, - - 16 ), + COUNT ( * ) ) col1
----
71

query I rowsort
SELECT ALL - 50 * + 7 AS col2
----
-350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9887
SELECT - 33 DIV MAX( - 71 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9887
SELECT - 33 / MAX ( - 71 ) col2
----
0

query I rowsort
SELECT DISTINCT - 77 * 2 AS col0
----
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-9889
SELECT - 68 DIV + - 17 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9889
SELECT - 68 / + - 17 AS col0
----
4

query I rowsort
SELECT DISTINCT + + 24 * 31 col0
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT DISTINCT MAX( DISTINCT + ( - 22 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT MAX ( DISTINCT + ( - 22 ) )
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9892
SELECT - ( - 99 ) DIV + NULLIF ( + 86, - CASE - 2 WHEN - ( + 69 ) THEN NULL WHEN + - 57 + COALESCE ( - MIN( ALL - 96 ), MAX( ALL - 26 ) ) * + COUNT( * ) THEN 68 WHEN - 55 + - + MIN( + 47 ) THEN - 80 END DIV 17 + 49 )
----
1

skipif mysql # not compatible
query I rowsort label-9892
SELECT - ( - 99 ) / + NULLIF ( + 86, - CASE - 2 WHEN - ( + 69 ) THEN NULL WHEN + - 57 + COALESCE ( - MIN ( ALL - 96 ), MAX ( ALL - 26 ) ) * + COUNT ( * ) THEN 68 WHEN - 55 + - + MIN ( + 47 ) THEN - 80 END / 17 + 49 )
----
1

query I rowsort
SELECT + 93 + + 88 + 40 * + + 10
----
581

query I rowsort
SELECT ALL 63 + + 15 * 18 AS col2
----
333

query I rowsort
SELECT + 7 + + 77 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT ALL MAX( ALL 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL MAX ( ALL 78 ) AS col0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT + + COALESCE ( - 96, - CAST( NULL AS SIGNED ), - 47 + 53 ) * - 36 AS col0
----
3456

skipif mysql # not compatible
query I rowsort label-9897
SELECT + + COALESCE ( - 96, - CAST ( NULL AS INTEGER ), - 47 + 53 ) * - 36 AS col0
----
3456

onlyif mysql # DIV for integer division: 
query I rowsort label-9898
SELECT 79 DIV + - 6 + 62 + - + NULLIF ( + 39, - 21 * - 8 + 17 + + 1 DIV + 56 * - + 20 ) + + 1 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-9898
SELECT 79 / + - 6 + 62 + - + NULLIF ( + 39, - 21 * - 8 + 17 + + 1 / + 56 * - + 20 ) + + 1 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT ALL + + SUM( ALL 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL + + SUM ( ALL 88 ) AS col2
----
88

query I rowsort
SELECT - NULLIF ( + + 33, + 72 ) AS col0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9901
SELECT ALL + 52 / + CAST( NULL AS SIGNED ) + CAST( - 56 AS SIGNED ) / 91, 33 - - 48 AS col2
----
NULL
81

skipif mysql # not compatible
query II rowsort label-9901
SELECT ALL + 52 / + CAST ( NULL AS INTEGER ) + CAST ( - 56 AS INTEGER ) / 91, 33 - - 48 AS col2
----
NULL
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9902
SELECT DISTINCT - 16 DIV + 85 + - 79
----
-79

skipif mysql # not compatible
query I rowsort label-9902
SELECT DISTINCT - 16 / + 85 + - 79
----
-79

query II rowsort
SELECT DISTINCT + + 84 AS col2, ( 3 ) * - 2 + - ( 81 ) + - 93
----
84
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT ALL - COUNT( * ) * + 20 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL - COUNT ( * ) * + 20 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-9905
SELECT ALL + 58 * 78 + - 83 + 13 + - + COUNT( * ) AS col0, 40
----
4453
40

skipif mysql # not compatible
query II rowsort label-9905
SELECT ALL + 58 * 78 + - 83 + 13 + - + COUNT ( * ) AS col0, 40
----
4453
40

query I rowsort
SELECT ( + + 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT - ( - NULLIF ( + + COALESCE ( + COUNT( * ), + SUM( - 88 ) * 75 ), - 5 + + - 97 ) ) * - 76 + - + 18 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-9907
SELECT - ( - NULLIF ( + + COALESCE ( + COUNT ( * ), + SUM ( - 88 ) * 75 ), - 5 + + - 97 ) ) * - 76 + - + 18 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-9908
SELECT + 0 + + + 82 AS col1, 50 * - + NULLIF ( - 48, 40 + 76 * - + COUNT( * ) )
----
82
2400

skipif mysql # not compatible
query II rowsort label-9908
SELECT + 0 + + + 82 AS col1, 50 * - + NULLIF ( - 48, 40 + 76 * - + COUNT ( * ) )
----
82
2400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9909
SELECT DISTINCT 47 * 43 DIV 54 - COUNT( - 48 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-9909
SELECT DISTINCT 47 * 43 / 54 - COUNT ( - 48 ) AS col2
----
36

query I rowsort
SELECT DISTINCT 23 * + - 56
----
-1288

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT + COUNT( * ) * + 46 * + - 45
----
-2070

skipif mysql # not compatible
query I rowsort label-9911
SELECT + COUNT ( * ) * + 46 * + - 45
----
-2070

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT CASE 27 WHEN + ( - 93 ) * 89 + 36 THEN - MAX( DISTINCT - 46 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9912
SELECT CASE 27 WHEN + ( - 93 ) * 89 + 36 THEN - MAX ( DISTINCT - 46 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT - 46 + + - 27 + + + 43 + + - COUNT( * ) * + MIN( ALL + - 10 ) - 96
----
-116

skipif mysql # not compatible
query I rowsort label-9913
SELECT - 46 + + - 27 + + + 43 + + - COUNT ( * ) * + MIN ( ALL + - 10 ) - 96
----
-116

query I rowsort
SELECT ALL ( 7 ) AS col2
----
7

query II rowsort
SELECT - 22 + + + ( 2 ) * + 31, - ( - 17 ) * - 31 AS col2
----
40
-527

query II rowsort
SELECT ALL ( + - 15 ), + 51 AS col2
----
-15
51

query I rowsort
SELECT ALL 98 * - 81 AS col1
----
-7938

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT DISTINCT MIN( ALL + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-9918
SELECT DISTINCT MIN ( ALL + 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT DISTINCT COALESCE ( - 24, - + COUNT( * ) )
----
-24

skipif mysql # not compatible
query I rowsort label-9919
SELECT DISTINCT COALESCE ( - 24, - + COUNT ( * ) )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9920
SELECT DISTINCT CAST( NULL AS SIGNED ), 6 * - + 75 + - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9920
SELECT DISTINCT CAST ( NULL AS INTEGER ), 6 * - + 75 + - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9921
SELECT DISTINCT + 9 + + 4 - + COUNT( * ) DIV 60 + - 40 + + 8 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT + 9 + + 4 - + COUNT ( * ) / 60 + - 40 + + 8 AS col1
----
-19

query I rowsort
SELECT DISTINCT - 27 + + + 79 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT ALL + - COUNT( * ) + + - 75 col0
----
-76

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL + - COUNT ( * ) + + - 75 col0
----
-76

query I rowsort
SELECT - + 64 - 99
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT - - ( - MIN( ALL 4 ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9925
SELECT - - ( - MIN ( ALL 4 ) ) AS col2
----
-4

query I rowsort
SELECT + 30 * + ( 15 ) AS col0
----
450

query I rowsort
SELECT - COALESCE ( 71, + 98 * + 40 + 22 + - 67 * + 80 + - + 9 ) AS col1
----
-71

query I rowsort
SELECT ALL + - 72 + + 0 + + 59 col0
----
-13

query I rowsort
SELECT ALL - 34 + - 49 * + + 78 col2
----
-3856

query I rowsort
SELECT DISTINCT + 75 + 60
----
135

query I rowsort
SELECT ALL - + 42 * - 87 AS col0
----
3654

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9932
SELECT + COUNT( * ) AS col1, 63 + - COALESCE ( - - 92, - - 85, - - ( 78 ) * - NULLIF ( - SUM( ( + - 71 ) ), 58 ) DIV - + 90 + 70 ) AS col2
----
1
-29

skipif mysql # not compatible
query II rowsort label-9932
SELECT + COUNT ( * ) AS col1, 63 + - COALESCE ( - - 92, - - 85, - - ( 78 ) * - NULLIF ( - SUM ( ( + - 71 ) ), 58 ) / - + 90 + 70 ) AS col2
----
1
-29

query II rowsort
SELECT ALL + 28 AS col0, + 75 AS col0
----
28
75

query I rowsort
SELECT DISTINCT - + 30 + + 55 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT + 33 * + COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-9935
SELECT + 33 * + COUNT ( * ) AS col0
----
33

query II rowsort
SELECT + 89 AS col1, - 36 AS col0
----
89
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT + NULLIF ( - - 0, - 20 * - + SUM( 21 ) + 5 )
----
0

skipif mysql # not compatible
query I rowsort label-9937
SELECT + NULLIF ( - - 0, - 20 * - + SUM ( 21 ) + 5 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT + 83 * NULLIF ( 71, 64 / + + COUNT( * ) ) + - 90 col2
----
5803

skipif mysql # not compatible
query I rowsort label-9938
SELECT + 83 * NULLIF ( 71, 64 / + + COUNT ( * ) ) + - 90 col2
----
5803

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9939
SELECT + NULLIF ( + 70, COUNT( ALL + 21 ) ) DIV + + 28
----
2

skipif mysql # not compatible
query I rowsort label-9939
SELECT + NULLIF ( + 70, COUNT ( ALL + 21 ) ) / + + 28
----
2

query II rowsort
SELECT - 12, 1 AS col1
----
-12
1

query I rowsort
SELECT ALL 18 * - - 11 AS col1
----
198

query I rowsort
SELECT ALL 53 * - 72 col2
----
-3816

query I rowsort
SELECT 4 + 95 + - + 55 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT ALL 82 * + - MAX( DISTINCT - 38 ) * 33 AS col0
----
102828

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL 82 * + - MAX ( DISTINCT - 38 ) * 33 AS col0
----
102828

onlyif mysql # DIV for integer division: 
query II rowsort label-9945
SELECT 94 DIV 82 * - - 12 * + 94 * + 27 AS col0, 50 col2
----
30456
50

skipif mysql # not compatible
query II rowsort label-9945
SELECT 94 / 82 * - - 12 * + 94 * + 27 AS col0, 50 col2
----
30456
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT COUNT( * ) * 59 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-9946
SELECT COUNT ( * ) * 59 AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9947
SELECT ( COUNT( DISTINCT + 95 ) ) + - CAST( NULL AS SIGNED ) + COUNT( * ) + + - 10 / 9 / + + 45 * 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9947
SELECT ( COUNT ( DISTINCT + 95 ) ) + - CAST ( NULL AS INTEGER ) + COUNT ( * ) + + - 10 / 9 / + + 45 * 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT COUNT( * ) * + 77 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-9948
SELECT COUNT ( * ) * + 77 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT NULLIF ( 57, 75 ) - COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-9949
SELECT NULLIF ( 57, 75 ) - COUNT ( * ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT COUNT( * ) * - + ( + 17 ) * - 28 - - ( 61 ) AS col1
----
537

skipif mysql # not compatible
query I rowsort label-9950
SELECT COUNT ( * ) * - + ( + 17 ) * - 28 - - ( 61 ) AS col1
----
537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9951
SELECT ALL 45 + + 61 * - 67 + - 2 DIV + + 92 * COALESCE ( + - CASE - 94 WHEN + + COUNT( * ) + + + 39 + + 29 + - - COUNT( * ) * - CAST( - 44 AS SIGNED ) DIV - COUNT( * ) * - + 78 THEN - 71 * - 18 WHEN + 54 THEN NULL ELSE + 88 * 45 + CASE - 46 WHEN + COUNT( * ) + + 29 THEN + 87 WHEN - ( - 31 ) + 85 + - COUNT( ALL + - 58 ) * + 36 DIV + + 66 * + 82 * 75 + - 30 THEN - 35 WHEN - 53 * + MIN( - 41 ) + - 54 THEN NULL END * + 69 END, - 9, 53 )
----
-4042

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL 45 + + 61 * - 67 + - 2 / + + 92 * COALESCE ( + - CASE - 94 WHEN + + COUNT ( * ) + + + 39 + + 29 + - - COUNT ( * ) * - CAST ( - 44 AS INTEGER ) / - COUNT ( * ) * - + 78 THEN - 71 * - 18 WHEN + 54 THEN NULL ELSE + 88 * 45 + CASE - 46 WHEN + COUNT ( * ) + + 29 THEN + 87 WHEN - ( - 31 ) + 85 + - COUNT ( ALL + - 58 ) * + 36 / + + 66 * + 82 * 75 + - 30 THEN - 35 WHEN - 53 * + MIN ( - 41 ) + - 54 THEN NULL END * + 69 END, - 9, 53 )
----
-4042

query II rowsort
SELECT 25 + - 19 col1, - 69 * + 10
----
6
-690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9953
SELECT DISTINCT 41 * + COALESCE ( - - 76, MIN( - ( + CAST( - 99 AS SIGNED ) ) ) ) * 53
----
165148

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT 41 * + COALESCE ( - - 76, MIN ( - ( + CAST ( - 99 AS INTEGER ) ) ) ) * 53
----
165148

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT - ( 48 ) + - 19 * COUNT( * ) col1
----
-67

skipif mysql # not compatible
query I rowsort label-9954
SELECT - ( 48 ) + - 19 * COUNT ( * ) col1
----
-67

query I rowsort
SELECT 28 - 44
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-9956
SELECT - 28 + 58, COUNT( * ) col0
----
30
1

skipif mysql # not compatible
query II rowsort label-9956
SELECT - 28 + 58, COUNT ( * ) col0
----
30
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT - MAX( - - 44 ) * + COUNT( * ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-9957
SELECT - MAX ( - - 44 ) * + COUNT ( * ) AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9958
SELECT DISTINCT - CASE 10 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - 49 * - - 25 + - 84 + + + 81 * - 74 THEN - 36 + - 1 * COUNT( * ) + + - 2 - COUNT( * ) ELSE 52 * + MIN( DISTINCT - - 41 ) * 43 * + 11 END
----
-1008436

skipif mysql # not compatible
query I rowsort label-9958
SELECT DISTINCT - CASE 10 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - 49 * - - 25 + - 84 + + + 81 * - 74 THEN - 36 + - 1 * COUNT ( * ) + + - 2 - COUNT ( * ) ELSE 52 * + MIN ( DISTINCT - - 41 ) * 43 * + 11 END
----
-1008436

query I rowsort
SELECT ALL ( + + 89 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT + SUM( 49 ) + 62
----
111

skipif mysql # not compatible
query I rowsort label-9960
SELECT + SUM ( 49 ) + 62
----
111

query I rowsort
SELECT + 78 + 45 + + ( - 74 ) * 95
----
-6907

query I rowsort
SELECT ALL + 97 - - 2
----
99

query I rowsort
SELECT COALESCE ( + 60, - 12 * 2 + - + 41, - 86 ) + - 56 AS col1
----
4

query II rowsort
SELECT + 31 * + 30, + 87 col0
----
930
87

query II rowsort
SELECT 76 * - ( + 59 ), - 14 AS col1
----
-4484
-14

query I rowsort
SELECT - 14 + 28 + 79 * 87
----
6887

query I rowsort
SELECT DISTINCT - ( 63 ) AS col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9968
SELECT DISTINCT 98 * - - COALESCE ( 79, + 2 * COUNT( * ) * + 57 * + ( + 17 ) ) + + - 13 * - 76 * COUNT( * ) - - 16 DIV - 2 + - - COALESCE ( - COUNT( * ), + 13 * 32 * - - 36 * - 83 - 20 + - - COUNT( * ) ) * - - 6 col2, + 80 DIV + ( + 83 ) * CASE 31 WHEN - + 66 * - 37 * + - CAST( NULL AS SIGNED ) THEN + 34 + + 44 WHEN 18 + + 55 * 20 DIV + 14 * + 36 THEN NULL ELSE NULL END
----
8716
NULL

skipif mysql # not compatible
query II rowsort label-9968
SELECT DISTINCT 98 * - - COALESCE ( 79, + 2 * COUNT ( * ) * + 57 * + ( + 17 ) ) + + - 13 * - 76 * COUNT ( * ) - - 16 / - 2 + - - COALESCE ( - COUNT ( * ), + 13 * 32 * - - 36 * - 83 - 20 + - - COUNT ( * ) ) * - - 6 col2, + 80 / + ( + 83 ) * CASE 31 WHEN - + 66 * - 37 * + - CAST ( NULL AS INTEGER ) THEN + 34 + + 44 WHEN 18 + + 55 * 20 / + 14 * + 36 THEN NULL ELSE NULL END
----
8716
NULL

query I rowsort
SELECT ALL - COALESCE ( - 2, + 94 - + + 35 ) AS col1
----
2

query I rowsort
SELECT DISTINCT + 71 * - ( + ( 13 ) ) AS col2
----
-923

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT DISTINCT - SUM( DISTINCT + 19 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT - SUM ( DISTINCT + 19 ) AS col2
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-9972
SELECT ALL + 27 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL + 27 / 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT - COUNT( * ) * + 22 * - 60 + - 51
----
1269

skipif mysql # not compatible
query I rowsort label-9973
SELECT - COUNT ( * ) * + 22 * - 60 + - 51
----
1269

query I rowsort
SELECT 27 * + 29 * + 63 + + + 2 AS col1
----
49331

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT DISTINCT - MIN( DISTINCT + - 94 )
----
94

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT - MIN ( DISTINCT + - 94 )
----
94

query I rowsort
SELECT DISTINCT - 9 + + 31
----
22

query II rowsort
SELECT 39 AS col0, 49 AS col0
----
39
49

query I rowsort
SELECT - 51 * - + 9 AS col2
----
459

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT DISTINCT + COUNT( * ) + + 67
----
68

skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT + COUNT ( * ) + + 67
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9980
SELECT ALL - CASE + 13 WHEN + - 7 THEN NULL ELSE + + 44 END + - - COUNT( DISTINCT + 28 ) DIV 74 * + 0 AS col0, + 3
----
-44
3

skipif mysql # not compatible
query II rowsort label-9980
SELECT ALL - CASE + 13 WHEN + - 7 THEN NULL ELSE + + 44 END + - - COUNT ( DISTINCT + 28 ) / 74 * + 0 AS col0, + 3
----
-44
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT + - 56 * + - NULLIF ( - - NULLIF ( + MIN( - 16 ), 79 ), - 96 ) * + 10 AS col0
----
-8960

skipif mysql # not compatible
query I rowsort label-9981
SELECT + - 56 * + - NULLIF ( - - NULLIF ( + MIN ( - 16 ), 79 ), - 96 ) * + 10 AS col0
----
-8960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9982
SELECT ALL + 86 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL + 86 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT - + CASE + 78 WHEN + - SUM( DISTINCT 90 ) * + 86 + + 74 THEN + + 57 WHEN - 60 THEN NULL WHEN 12 THEN - + 9 ELSE - + 68 END
----
68

skipif mysql # not compatible
query I rowsort label-9983
SELECT - + CASE + 78 WHEN + - SUM ( DISTINCT 90 ) * + 86 + + 74 THEN + + 57 WHEN - 60 THEN NULL WHEN 12 THEN - + 9 ELSE - + 68 END
----
68

query II rowsort
SELECT DISTINCT 89 col1, - 89
----
89
-89

query I rowsort
SELECT DISTINCT 14 - + 13 AS col0
----
1

query I rowsort
SELECT ALL 32 - 7
----
25

query I rowsort
SELECT DISTINCT + 68 * - 0 AS col0
----
0

query I rowsort
SELECT + - 62 * - 28 * - 35
----
-60760

query II rowsort
SELECT - 18, + 20 AS col1
----
-18
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9990
SELECT + 15 - + + ( - 11 ) - 28 * ( + 0 ) + + 32 * - - CAST( - - ( 2 ) AS SIGNED ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-9990
SELECT + 15 - + + ( - 11 ) - 28 * ( + 0 ) + + 32 * - - CAST ( - - ( 2 ) AS INTEGER ) AS col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9991
SELECT - 85 DIV COUNT( * ) - + 80 * + 94 + + 71
----
-7534

skipif mysql # not compatible
query I rowsort label-9991
SELECT - 85 / COUNT ( * ) - + 80 * + 94 + + 71
----
-7534

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9992
SELECT ALL 59 * - ( - 58 ), - 27 * 63 * CAST( - 96 AS SIGNED ) + - 32 AS col1
----
3422
163264

skipif mysql # not compatible
query II rowsort label-9992
SELECT ALL 59 * - ( - 58 ), - 27 * 63 * CAST ( - 96 AS INTEGER ) + - 32 AS col1
----
3422
163264

onlyif mysql # aggregate syntax: 
query II rowsort label-9993
SELECT - COUNT( * ) AS col2, + 42 * 4
----
-1
168

skipif mysql # not compatible
query II rowsort label-9993
SELECT - COUNT ( * ) AS col2, + 42 * 4
----
-1
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9994
SELECT ALL - + ( + NULLIF ( - ( - - MIN( - 20 ) ), - 99 + CAST( 67 AS SIGNED ) ) ) - 41 AS col2, - MAX( ALL + 68 )
----
-61
-68

skipif mysql # not compatible
query II rowsort label-9994
SELECT ALL - + ( + NULLIF ( - ( - - MIN ( - 20 ) ), - 99 + CAST ( 67 AS INTEGER ) ) ) - 41 AS col2, - MAX ( ALL + 68 )
----
-61
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9995
SELECT ALL - 99 * + + MAX( DISTINCT + 86 ) + - 87 + 93 * - CAST( - CAST( + + 67 AS SIGNED ) AS SIGNED ) * 24 * - 58 + + COALESCE ( ( - 90 ), + - 88, COUNT( * ) DIV - + MIN( DISTINCT - 36 ) + - 60 ) AS col0, + 79 + - + COUNT( * )
----
-8682243
78

skipif mysql # not compatible
query II rowsort label-9995
SELECT ALL - 99 * + + MAX ( DISTINCT + 86 ) + - 87 + 93 * - CAST ( - CAST ( + + 67 AS INTEGER ) AS INTEGER ) * 24 * - 58 + + COALESCE ( ( - 90 ), + - 88, COUNT ( * ) / - + MIN ( DISTINCT - 36 ) + - 60 ) AS col0, + 79 + - + COUNT ( * )
----
-8682243
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9996
SELECT NULLIF ( 31, + - CASE + 73 WHEN - 79 * + CAST( NULL AS DECIMAL ) THEN - 18 + - 45 / - 99 WHEN - + 43 + + 65 + - 61 THEN - + 41 + + 18 END * + 30 / + + 41 + - - ( 89 ) - - COUNT( * ) )
----
31

skipif mysql # not compatible
query I rowsort label-9996
SELECT NULLIF ( 31, + - CASE + 73 WHEN - 79 * + CAST ( NULL AS REAL ) THEN - 18 + - 45 / - 99 WHEN - + 43 + + 65 + - 61 THEN - + 41 + + 18 END * + 30 / + + 41 + - - ( 89 ) - - COUNT ( * ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT + CASE COUNT( * ) WHEN 5 THEN 93 WHEN - - 19 * + + 16 + 16 THEN NULL WHEN 10 + + - ( - + 0 ) * - 44 THEN + + 39 + - 76 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT + CASE COUNT ( * ) WHEN 5 THEN 93 WHEN - - 19 * + + 16 + 16 THEN NULL WHEN 10 + + - ( - + 0 ) * - 44 THEN + + 39 + - 76 ELSE NULL END
----
NULL

query II rowsort
SELECT - 53 * - 3 AS col2, - NULLIF ( + - 97, + 14 )
----
159
97

query I rowsort
SELECT + 23 + + - 36
----
-13

