sqllogictest
Artifact Content
Not logged in

Artifact 6e977a8f974140f8d5e350c20b4b7128163eaa87:


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
q